@lokascript/semantic 2.6.0 → 2.7.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.
- package/dist/browser-ar.ar.global.js +5 -5
- package/dist/browser-bn.bn.global.js +4 -4
- package/dist/browser-de.de.global.js +4 -4
- package/dist/browser-east-asian.east-asian.global.js +3 -3
- package/dist/browser-en-tr.en-tr.global.js +4 -4
- package/dist/browser-es.es.global.js +4 -4
- package/dist/browser-fr.fr.global.js +3 -3
- package/dist/browser-hi.hi.global.js +3 -3
- package/dist/browser-id.id.global.js +4 -4
- package/dist/browser-it.it.global.js +3 -3
- package/dist/browser-ja.ja.global.js +4 -4
- package/dist/browser-ko.ko.global.js +5 -5
- package/dist/browser-lazy.lazy.global.js +1 -1
- package/dist/browser-ms.ms.global.js +4 -4
- package/dist/browser-pl.pl.global.js +4 -4
- package/dist/browser-priority.priority.global.js +1 -1
- package/dist/browser-qu.qu.global.js +5 -5
- package/dist/browser-ru.ru.global.js +5 -5
- package/dist/browser-sw.sw.global.js +4 -4
- package/dist/browser-th.th.global.js +3 -3
- package/dist/browser-tl.tl.global.js +4 -4
- package/dist/browser-tr.tr.global.js +4 -4
- package/dist/browser-uk.uk.global.js +5 -5
- package/dist/browser-vi.vi.global.js +3 -3
- package/dist/browser.global.js +22 -22
- package/dist/browser.global.js.map +1 -1
- package/dist/generators/index.d.ts +1 -0
- package/dist/generators/index.d.ts.map +1 -1
- package/dist/generators/profile-queries.d.ts +32 -0
- package/dist/generators/profile-queries.d.ts.map +1 -0
- package/dist/index.cjs +19 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/generators/index.ts +3 -0
- package/src/generators/profile-queries.ts +53 -0
- package/src/index.ts +4 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var LokaScriptSemanticLazy=(()=>{var en=Object.defineProperty;var up=Object.getOwnPropertyDescriptor;var fp=Object.getOwnPropertyNames;var yp=Object.prototype.hasOwnProperty;var z=(n,e)=>()=>(n&&(e=n(n=0)),e);var N=(n,e)=>{for(var t in e)en(n,t,{get:e[t],enumerable:!0})},gp=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of fp(e))!yp.call(n,a)&&a!==t&&en(n,a,{get:()=>e[a],enumerable:!(r=up(e,a))||r.enumerable});return n};var vp=n=>gp(en({},"__esModule",{value:!0}),n);function li(n,e){let t={...n};for(let r of Object.keys(e)){let a=e[r],i=n[r];a!==void 0&&(typeof a=="object"&&a!==null&&!Array.isArray(a)&&typeof i=="object"&&i!==null&&!Array.isArray(i)?t[r]=li(i,a):t[r]=a)}return t}function hp(n,e){return li(n,e)}function nn(n){if(!n.extends)return n;let e=Ae.get(n.extends);if(!e)return console.warn(`[Registry] Profile '${n.code}' extends '${n.extends}' but base is not registered. Make sure to import the base language before the variant.`),n;let t=nn(e);return hp(t,n)}function ci(n,e,t){Ne.set(n,e),Ae.set(n,t),Ye.delete(n)}function pi(n){tn=n}function an(n,e){rn.set(n,e),Ye.delete(n)}function De(n){return n.split("-")[0]}function Fe(n){return n.includes("-")}function on(n){let e=Ne.get(n);if(!e&&Fe(n)){let t=De(n);e=Ne.get(t)}if(!e){let t=Array.from(Ne.keys()).join(", ");throw new Error(`Language '${n}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${n}';`)}return e}function sn(n){let e=Ae.get(n);if(!e&&Fe(n)){let t=De(n);e=Ae.get(t)}if(!e){let t=Array.from(Ae.keys()).join(", ");throw new Error(`Language profile '${n}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${n}';`)}return nn(e)}function H(n){let e=Ae.get(n);return!e&&Fe(n)&&(e=Ae.get(De(n))),e?nn(e):void 0}function Bt(){return Array.from(Ne.keys())}function Te(n){if(Ne.has(n)&&Ae.has(n))return!0;if(Fe(n)){let e=De(n);return Ne.has(e)&&Ae.has(e)}return!1}function mi(n){return Ne.has(n)?!0:Fe(n)?Ne.has(De(n)):!1}function di(n,e){return on(e).tokenize(n)}function xe(n){let e=Ye.get(n);if(!e&&Fe(n)&&(e=Ye.get(De(n))),e)return e;let t=rn.get(n);if(!t&&Fe(n)&&(t=rn.get(De(n))),t)return Ye.set(n,t),t;if(!tn)throw new Error(`No patterns registered for language '${n}'. Either import the language module or set a pattern generator.`);let r=sn(n),a=tn(r);return Ye.set(n,a),a}function ui(n,e){return xe(n).filter(t=>t.command===e).sort((t,r)=>r.priority-t.priority)}var Ne,Ae,Ye,tn,rn,ve=z(()=>{"use strict";Ne=new Map,Ae=new Map,Ye=new Map,tn=null;rn=new Map});function se(n,e){return e?{type:"literal",value:n,dataType:e}:{type:"literal",value:n}}function lt(n,e){return e?{type:"selector",value:n,selectorKind:e}:{type:"selector",value:n}}function Je(n){return{type:"reference",value:n}}function Ft(n,e){return{type:"property-path",object:n,property:e}}function ln(n,e=!0){return{type:"flag",name:n,enabled:e}}function yi(n,e,t){let r=e instanceof Map?e:new Map(Object.entries(e)),a={kind:"command",action:n,roles:r};return t?{...a,metadata:t}:a}function cn(n,e,t,r,a){let i=e instanceof Map?e:new Map(Object.entries(e));return{kind:"event-handler",action:n,roles:i,body:t,...a&&{eventModifiers:a},...r&&{metadata:r}}}function gi(n,e,t,r,a){let i=e instanceof Map?e:new Map(Object.entries(e));return{kind:"conditional",action:n,roles:i,thenBranch:t,...r&&{elseBranch:r},...a&&{metadata:a}}}function vi(n,e,t,r,a,i,o){let s=e instanceof Map?e:new Map(Object.entries(e));return{kind:"loop",action:n,roles:s,loopVariant:t,body:r,...a&&{loopVariable:a},...i&&{indexVariable:i},...o&&{metadata:o}}}function Ht(n,e=pn){return e.has(n)}function zp(n){let e=n.slice(1,-1),t=0;for(let r of e)if(r==="[")t++;else if(r==="]")t--;else if(t===0&&(r===" "||r===":"))return!0;return!1}function Ut(n,e={}){let t=n.trim(),r=e.collectDiagnostics===!0,a=[];if(!t.startsWith("[")||!t.endsWith("]"))throw new Error("Explicit syntax must be wrapped in brackets: [command role:value ...]");let i=t.slice(1,-1).trim();if(!i)throw new Error("Empty explicit statement");let o=xp(i);if(o.length===0)throw new Error("No command specified in explicit statement");let s=o[0].toLowerCase(),l=new Map,c=e.referenceSet??pn,p=e.schemaLookup?.getSchema(s),m=p?new Set(p.roles.map(u=>u.role)):null;for(let u=1;u<o.length;u++){let f=o[u];if(f.startsWith("+")||f.startsWith("~")){let L=f.startsWith("+"),w=f.slice(1);if(!w){if(r){a.push({severity:"error",code:"EMPTY_FLAG",message:`Empty flag name: "${f}"`,source:"schema"});continue}throw new Error(`Empty flag name: "${f}"`)}if(m&&!m.has(w)){if(r){a.push({severity:"error",code:"UNKNOWN_FLAG",message:`Unknown flag "${w}" for command "${s}"`,source:"schema",suggestions:[...m].map(k=>`+${k}`)}),l.set(w,ln(w,L));continue}throw new Error(`Unknown flag "${w}" for command "${s}". Valid roles: ${[...m].join(", ")}`)}l.set(w,ln(w,L));continue}let y=f.indexOf(":");if(y===-1){if(r){a.push({severity:"error",code:"INVALID_ROLE_FORMAT",message:`Invalid role format: "${f}". Expected role:value or +flag`,source:"schema"});continue}throw new Error(`Invalid role format: "${f}". Expected role:value or +flag`)}let g=f.slice(0,y);if(m&&!fi.has(g)&&!m.has(g))if(r)a.push({severity:"error",code:"UNKNOWN_ROLE",message:`Unknown role "${g}" for command "${s}"`,source:"schema",suggestions:[...m]});else throw new Error(`Unknown role "${g}" for command "${s}". Valid roles: ${[...m].join(", ")}`);let v=g,b=f.slice(y+1);if(fi.has(g)&&b.startsWith("[")&&zp(b)){let L=bp(f,y+1),w=f.slice(y+1,L+1);l.set(v,{type:"expression",raw:w});continue}let E=wp(b,c);l.set(v,E)}if(p&&s!=="on"){for(let u of p.roles)if(u.required&&!l.has(u.role)&&!u.default)if(r)a.push({severity:"error",code:"MISSING_REQUIRED_ROLE",message:`Missing required role "${u.role}" for command "${s}": ${u.description}`,source:"schema"});else throw new Error(`Missing required role "${u.role}" for command "${s}": ${u.description}`)}let d=u=>a.length===0?u:{...u,diagnostics:a};switch(s){case"on":{if(!l.get("event")){if(r)return a.push({severity:"error",code:"MISSING_EVENT_ROLE",message:"Event handler requires event role: [on event:click ...]",source:"schema"}),d(cn("on",l,[],{sourceLanguage:"explicit"}));throw new Error("Event handler requires event role: [on event:click ...]")}let f=Dt(l,"body",e);return l.delete("body"),d(cn("on",l,f,{sourceLanguage:"explicit"}))}case"if":{let u=Dt(l,"then",e),f=Dt(l,"else",e);return l.delete("then"),l.delete("else"),d(gi(s,l,u,f.length>0?f:void 0,{sourceLanguage:"explicit"}))}case"repeat":{let u=Dt(l,"loop-body",e),f=l.get("loop-variant"),y=l.get("variable"),g=l.get("index-variable");l.delete("loop-body"),l.delete("loop-variant"),l.delete("variable"),l.delete("index-variable");let v;f&&f.type==="literal"&&typeof f.value=="string"?v=f.value:l.has("quantity")?v="times":l.has("source")?v="for":l.has("condition")?v="while":v="forever";let b=y?.type==="literal"&&typeof y.value=="string"?y.value:y?.type==="expression"?y.raw:void 0,E=g?.type==="literal"&&typeof g.value=="string"?g.value:void 0;return d(vi(s,l,v,u,b,E,{sourceLanguage:"explicit"}))}default:return d(yi(s,l,{sourceLanguage:"explicit"}))}}function _e(n){let e=n.trim();return e.startsWith("[")&&e.endsWith("]")}function Dt(n,e,t){let r=n.get(e);return r?r.type==="expression"?[Ut(r.raw,t)]:[]:[]}function kp(n){if(n){if(n.startsWith("#"))return"id";if(n.startsWith("."))return"class";if(n.startsWith("["))return"attribute";if(n.startsWith("<")||n.startsWith("*"))return"element";if(/[>+~ ]/.test(n)&&n.length>1)return"complex"}}function xp(n){let e=[],t="",r=!1,a="",i=0;for(let o=0;o<n.length;o++){let s=n[o];if(r){t+=s,s===a&&n[o-1]!=="\\"&&(r=!1);continue}if(s==='"'||s==="'"){r=!0,a=s,t+=s;continue}if(s==="["){i++,t+=s;continue}if(s==="]"){i--,t+=s;continue}if(s===" "&&i===0){t&&(e.push(t),t="");continue}t+=s}return t&&e.push(t),e}function wp(n,e){if(n.startsWith("#")||n.startsWith(".")||n.startsWith("[")||n.startsWith("@")||n.startsWith("*"))return lt(n,kp(n));if(n.startsWith('"')||n.startsWith("'"))return se(n.slice(1,-1),"string");if(n==="true")return se(!0,"boolean");if(n==="false")return se(!1,"boolean");let t=n.toLowerCase();if(Ht(t,e))return Je(t);let r=n.match(/^(-?\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(r){let a=parseFloat(r[1]);return r[2]?se(n,"duration"):se(a,"number")}return se(n)}function bp(n,e){let t=0;for(let r=e;r<n.length;r++)if(n[r]==="[")t++;else if(n[r]==="]"&&(t--,t===0))return r;return n.length-1}function he(n){let e;if(n.kind==="compound"){let t=n;e=t.statements.map(r=>he(r)).join(` ${t.chainType} `)}else e=Sp(n);return n.annotations&&n.annotations.length>0?n.annotations.map(r=>r.value!==void 0?`@${r.name}(${r.value})`:`@${r.name}`).join(" ")+" "+e:e}function Sp(n){let e=[n.action];for(let[t,r]of n.roles)r.type==="flag"?e.push(r.enabled?`+${r.name}`:`~${r.name}`):e.push(`${t}:${hi(r)}`);if(n.kind==="event-handler"){let t=n;t.body&&t.body.length>0&&e.push(`body:${t.body.map(r=>he(r)).join(" ")}`)}if(n.kind==="conditional"){let t=n;t.thenBranch&&t.thenBranch.length>0&&e.push(`then:${t.thenBranch.map(r=>he(r)).join(" ")}`),t.elseBranch&&t.elseBranch.length>0&&e.push(`else:${t.elseBranch.map(r=>he(r)).join(" ")}`)}if(n.kind==="loop"){let t=n;t.loopVariant&&e.push(`loop-variant:${t.loopVariant}`),t.loopVariable&&e.push(`variable:${t.loopVariable}`),t.indexVariable&&e.push(`index-variable:${t.indexVariable}`),t.body&&t.body.length>0&&e.push(`loop-body:${t.body.map(r=>he(r)).join(" ")}`)}if(n.kind==="command"){let t=n;t.body&&t.body.length>0&&e.push(`body:${t.body.map(r=>he(r)).join(" ")}`),t.catchBranch&&t.catchBranch.length>0&&e.push(`catch:${t.catchBranch.map(r=>he(r)).join(" ")}`),t.finallyBranch&&t.finallyBranch.length>0&&e.push(`finally:${t.finallyBranch.map(r=>he(r)).join(" ")}`),t.asyncVariant&&e.push(`async-variant:${t.asyncVariant}`),t.asyncBody&&t.asyncBody.length>0&&e.push(`async-body:${t.asyncBody.map(r=>he(r)).join(" ")}`)}return`[${e.join(" ")}]`}function hi(n){switch(n.type){case"literal":return typeof n.value=="string"?n.dataType==="string"||/\s/.test(n.value)?`"${n.value}"`:n.value:String(n.value);case"selector":return n.value;case"reference":return n.value;case"property-path":return`${hi(n.object)}'s ${n.property}`;case"expression":return n.raw;case"flag":return n.name}}var pn,fi,ct=z(()=>{"use strict";pn=new Set(["me","you","it","result","event","target","body"]);fi=new Set(["body","then","else","condition","loop-body","variable","catch","finally"])});function Ep(n){return new Tp(n)}function Qe(n,e){return!e||e.length===0||e.includes(n)||e.includes("expression")?!0:n==="property-path"?e.some(t=>["selector","reference","expression"].includes(t)):!1}function Pp(n,e){return n?.possessive?.keywords?.[e]}function zi(n){return!1}function Cp(n){return"setContext"in n&&typeof n.setContext=="function"}function Rp(n){let e={language:n.language,direction:n.direction,lookupKeyword:n.lookupKeyword.bind(n),isKeyword:n.isKeyword.bind(n),isKeywordStart:n.isKeywordStart.bind(n),...n.isKeywordStartAtBoundary?{isKeywordStartAtBoundary:n.isKeywordStartAtBoundary.bind(n)}:{}};return n.normalizer?{...e,normalizer:n.normalizer}:e}function Z(n,e){return{start:n,end:e}}function Y(n,e,t,r){if(typeof n=="object"){let{value:i,kind:o,position:s,normalized:l,stem:c,stemConfidence:p,metadata:m}=n;return{value:i,kind:o,position:s,...l!==void 0&&{normalized:l},...c!==void 0&&{stem:c},...p!==void 0&&{stemConfidence:p},...m!==void 0&&{metadata:m}}}let a=n;if(!e||!t)throw new Error("createToken requires kind and position parameters");if(typeof r=="string")return{value:a,kind:e,position:t,normalized:r};if(r){let{normalized:i,stem:o,stemConfidence:s,metadata:l}=r;return{value:a,kind:e,position:t,...i!==void 0&&{normalized:i},...o!==void 0&&{stem:o},...s!==void 0&&{stemConfidence:s},...l!==void 0&&{metadata:l}}}return{value:a,kind:e,position:t}}function ze(n){return/\s/.test(n)}function Gt(n){return n==="#"||n==="."||n==="["||n==="@"||n==="*"||n==="<"}function Xt(n){return n==='"'||n==="'"||n==="`"||n==="\u300C"||n==="\u300D"}function Ee(n){return/\d/.test(n)}function Zt(n){return/[a-zA-Z]/.test(n)}function ne(n){return/[a-zA-Z0-9_-]/.test(n)}function ki(n,e){if(e>=n.length)return null;let t=n[e];if(!Gt(t))return null;let r=e,a="";if(t==="#"||t==="."){for(a+=n[r++];r<n.length&&ne(n[r]);)a+=n[r++];if(a.length<=1)return null;if(r<n.length&&n[r]==="."&&t==="#"){let o=r+1;for(;o<n.length&&ne(n[o]);)o++;if(o<n.length&&n[o]==="(")return a}}else if(t==="["){let i=1,o=!1,s=null,l=!1;for(a+=n[r++];r<n.length&&i>0;){let c=n[r];a+=c,l?l=!1:c==="\\"?l=!0:o?c===s&&(o=!1,s=null):c==='"'||c==="'"||c==="`"?(o=!0,s=c):c==="["?i++:c==="]"&&i--,r++}if(i!==0)return null}else if(t==="@"){for(a+=n[r++];r<n.length&&ne(n[r]);)a+=n[r++];if(a.length<=1)return null}else if(t==="*"){for(a+=n[r++];r<n.length&&ne(n[r]);)a+=n[r++];if(a.length<=1)return null}else if(t==="<"){if(a+=n[r++],r>=n.length||!Zt(n[r]))return null;for(;r<n.length&&ne(n[r]);)a+=n[r++];for(;r<n.length;){let i=n[r];if(i==="."){if(a+=n[r++],r>=n.length||!ne(n[r]))return null;for(;r<n.length&&ne(n[r]);)a+=n[r++]}else if(i==="#"){if(a+=n[r++],r>=n.length||!ne(n[r]))return null;for(;r<n.length&&ne(n[r]);)a+=n[r++]}else if(i==="["){let o=1,s=!1,l=null,c=!1;for(a+=n[r++];r<n.length&&o>0;){let p=n[r];a+=p,c?c=!1:p==="\\"?c=!0:s?p===l&&(s=!1,l=null):p==='"'||p==="'"||p==="`"?(s=!0,l=p):p==="["?o++:p==="]"&&o--,r++}if(o!==0)return null}else break}for(;r<n.length&&ze(n[r]);)a+=n[r++];if(r<n.length&&n[r]==="/")for(a+=n[r++];r<n.length&&ze(n[r]);)a+=n[r++];if(r>=n.length||n[r]!==">")return null;a+=n[r++]}return a||null}function Np(n,e){if(e>=n.length||n[e]!=="'"||e+1>=n.length||n[e+1].toLowerCase()!=="s")return!1;if(e+2>=n.length)return!0;let r=n[e+2];return ze(r)||r==="*"||!ne(r)}function xi(n,e){if(e>=n.length)return null;let t=n[e];if(!Xt(t)||t==="'"&&Np(n,e))return null;let a={'"':'"',"'":"'","`":"`","\u300C":"\u300D"}[t];if(!a)return null;let i=e+1,o=t,s=!1;for(;i<n.length;){let l=n[i];if(o+=l,s)s=!1;else if(l==="\\")s=!0;else if(l===a)return o;i++}return o}function wi(n,e){if(e>=n.length)return!1;let t=n[e],r=n[e+1]||"",a=n[e+2]||"";if(t==="/"&&r!=="/"&&/[a-zA-Z0-9._-]/.test(r)||t==="/"&&r==="/"&&/[a-zA-Z]/.test(a)||t==="."&&(r==="/"||r==="."&&a==="/"))return!0;let i=n.slice(e,e+8).toLowerCase();return!!(i.startsWith("http://")||i.startsWith("https://"))}function bi(n,e){if(!wi(n,e))return null;let t=e,r="",a=/[a-zA-Z0-9/:._\-?&=%@+~!$'()*,;[\]]/;for(;t<n.length;){let i=n[t];if(i==="#"){if(r.length>0&&/[a-zA-Z0-9/.]$/.test(r))for(r+=i,t++;t<n.length&&/[a-zA-Z0-9_-]/.test(n[t]);)r+=n[t++];break}if(a.test(i))r+=i,t++;else break}return r.length<2?null:r}function Si(n,e){if(e>=n.length)return null;let t=n[e];if(!Ee(t)&&t!=="-"&&t!=="+")return null;let r=e,a="";if((n[r]==="-"||n[r]==="+")&&(a+=n[r++]),r>=n.length||!Ee(n[r]))return null;for(;r<n.length&&Ee(n[r]);)a+=n[r++];if(r<n.length&&n[r]===".")for(a+=n[r++];r<n.length&&Ee(n[r]);)a+=n[r++];return r<n.length&&(n.slice(r,r+2)==="ms"?a+="ms":(n[r]==="s"||n[r]==="m"||n[r]==="h")&&(a+=n[r])),a}function ye(n){return e=>{let t=e.charCodeAt(0);return n.some(([r,a])=>t>=r&&t<=a)}}function V(n){return{stem:n,confidence:1}}function x(n,e,t){return t?{stem:n,confidence:e,metadata:t}:{stem:n,confidence:e}}var Tp,pt,Lp,fx,_,M,ce,Ap,zx,jp,Mp,Ti,R,mn,je=z(()=>{"use strict";ct();ct();ct();ct();Tp=class{constructor(n){this.namespace=n,this.enabled=this.checkEnabled()}checkEnabled(){if(typeof process<"u"&&process.env){let n=process.env.DEBUG||"";return n==="*"||n.includes("framework:*")||n.includes(`framework:${this.namespace}`)}return!1}log(n,e,...t){if(!this.enabled)return;let r=`[framework:${this.namespace}]`,a=new Date().toISOString();switch(n){case"debug":console.debug(`${a} ${r} DEBUG:`,e,...t);break;case"info":console.info(`${a} ${r} INFO:`,e,...t);break;case"warn":console.warn(`${a} ${r} WARN:`,e,...t);break;case"error":console.error(`${a} ${r} ERROR:`,e,...t);break}}debug(n,...e){this.log("debug",n,...e)}info(n,...e){this.log("info",n,...e)}warn(n,...e){this.log("warn",n,...e)}error(n,...e){this.log("error",n,...e)}isEnabled(){return this.enabled}enable(){this.enabled=!0}disable(){this.enabled=!1}};pt=class et{constructor(){this.logger=Ep("pattern-matcher"),this.stemMatchCount=0,this.totalKeywordMatches=0}safeToLowerCase(e){return typeof e=="string"?e.toLowerCase():e==null?"":String(e).toLowerCase()}matchPattern(e,t,r){let a=e.mark(),i=new Map;if(this.logger.debug("========================================"),this.logger.debug("matchPattern ENTRY"),this.logger.debug("Pattern ID:",t.id),this.logger.debug("Pattern command:",t.command),this.logger.debug("Pattern language:",t.language),this.logger.debug("Pattern template:",JSON.stringify(t.template,null,2)),this.logger.isEnabled()){let l=[];for(let c=0;c<10;c++){let p=e.peek(c);if(p)l.push({type:p.type,value:p.value,kind:p.kind});else break}this.logger.debug("Input tokens (first 10):",l),this.logger.debug("Profile code:",r?.code)}this.currentProfile=r,this.stemMatchCount=0,this.totalKeywordMatches=0,this.logger.debug("--- Calling matchTokenSequence ---"),this.logger.debug("Pattern tokens to match:",JSON.stringify(t.template.tokens,null,2));let o=this.matchTokenSequence(e,t.template.tokens,i);if(this.logger.debug("matchTokenSequence returned:",o),this.logger.debug("Captured roles:",Array.from(i.entries()).map(([l,c])=>[l,JSON.stringify(c)])),!o)return this.logger.debug(">>> MATCH FAILED - resetting token position"),e.reset(a),null;let s=this.calculateConfidence(t,i);return this.applyExtractionRules(t,i),{pattern:t,captured:i,consumedTokens:e.position()-a.position,confidence:s}}matchBest(e,t,r){let a=[];for(let o of t){let s=e.mark(),l=this.matchPattern(e,o,r);l&&a.push(l),e.reset(s)}if(a.length===0)return null;a.sort((o,s)=>{let l=s.pattern.priority-o.pattern.priority;if(l!==0)return l;let c=s.confidence-o.confidence;return Math.abs(c)>.001?c:s.consumedTokens-o.consumedTokens});let i=a[0];return this.matchPattern(e,i.pattern),i}matchTokenSequence(e,t,r,a){let i=t[0],o=i?.type==="literal"&&(i.value==="and"||i.value==="then"||i.alternatives?.includes("and")||i.alternatives?.includes("then"));if(this.currentProfile?.code==="ar"&&!o)for(;e.peek()?.kind==="conjunction";)e.advance();let s=null,l=null;for(let c=0;c<t.length;c++){let p=t[c];this.logger.debug(" >> Matching pattern token:",JSON.stringify(p,null,2));let m=e.peek();if(this.logger.debug(" >> Current input token:",m?JSON.stringify({type:m.type,value:m.value,kind:m.kind}):"EOF"),p.type==="role"&&p.greedy){let g=this.collectStopMarkers(t,c+1);if(a)for(let b of a)g.add(b);let v=[];for(;!e.isAtEnd();){let b=e.peek();if(!b||this.isStopMarker(b,g))break;v.push(b.value),e.advance()}if(v.length>0){r.set(p.role,{type:"expression",raw:v.join(" ")}),s=null,l=null;continue}else{if(p.optional)continue;return!1}}if(p.type==="group"){let g=this.collectStopMarkers(t,c+1);if(a)for(let b of a)g.add(b);if(this.matchGroupToken(e,p,r,g)){s=null,l=null;continue}if(this.isOptional(p))continue;return!1}let d=p.type==="role"&&p.optional===!0,u=d?e.mark():null;if(p.type==="role"&&!d){let g=c+1<t.length?t[c+1]:null;if(g?.type==="literal"){let v=e.peek();if(v&&this.getMatchType(v,g.value)!=="none"){if(this.logger.debug(" >> MARKER-STEAL GUARD: current token matches next literal, skipping role"),this.logger.debug(" >> Token match FAILED"),this.isOptional(p))continue;if(s&&l){this.logger.debug(" >> BACKTRACKING: undoing optional role",l),e.reset(s),r.delete(l),s=null,l=null;let b=this.matchPatternToken(e,p,r);if(this.logger.debug(" >> Backtrack retry result:",b),b)continue}return!1}}}let y=this.matchPatternToken(e,p,r);if(this.logger.debug(" >> Match result:",y),y){d?(s=u,l=p.role):(s=null,l=null);continue}if(this.logger.debug(" >> Token match FAILED"),!this.isOptional(p)){if(s&&l){this.logger.debug(" >> BACKTRACKING: undoing optional role",l),e.reset(s),r.delete(l),s=null,l=null;let g=this.matchPatternToken(e,p,r);if(this.logger.debug(" >> Backtrack retry result:",g),g)continue}return!1}}return!0}matchPatternToken(e,t,r){switch(t.type){case"literal":return this.matchLiteralToken(e,t);case"role":return this.matchRoleToken(e,t,r);case"group":return this.matchGroupToken(e,t,r);default:return!1}}matchLiteralToken(e,t){let r=e.peek();if(this.logger.debug(" >>> matchLiteralToken: expecting",t.value),this.logger.debug(" >>> matchLiteralToken: got token",r?JSON.stringify({type:r.type,value:r.value,kind:r.kind}):"null"),!r)return this.logger.debug(" >>> matchLiteralToken: FAIL - no token"),!1;let a=this.getMatchType(r,t.value);if(this.logger.debug(" >>> matchType for",r.value,"vs",t.value,":",a),a!=="none")return this.totalKeywordMatches++,a==="stem"&&this.stemMatchCount++,e.advance(),!0;if(t.alternatives)for(let i of t.alternatives){let o=this.getMatchType(r,i);if(o!=="none")return this.totalKeywordMatches++,o==="stem"&&this.stemMatchCount++,e.advance(),!0}return!1}matchRoleToken(e,t,r){this.logger.debug(" >>> matchRoleToken ENTRY: capturing role",t.role),this.logger.debug(" >>> matchRoleToken: expected types",t.expectedTypes),this.logger.debug(" >>> matchRoleToken: optional?",t.optional),this.skipNoiseWords(e);let a=e.peek();if(this.logger.debug(" >>> After skipNoiseWords, current token:",a?JSON.stringify({value:a.value,kind:a.kind}):"null"),!a)return t.optional||!1;let i=this.tryMatchPossessiveExpression(e);if(i)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(i.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,i),!0);let o=this.tryMatchMethodCallExpression(e);if(o)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(o.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,o),!0);let s=this.tryMatchPossessiveSelectorExpression(e);if(s)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(s.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,s),!0);let l=this.tryMatchPropertyAccessExpression(e);if(l)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(l.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,l),!0);let c=this.tryMatchSelectorPropertyExpression(e);if(c)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(c.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,c),!0);this.logger.debug(" >>> Trying tokenToSemanticValue for token:",a?JSON.stringify({value:a.value,kind:a.kind}):"null");let p=this.tokenToSemanticValue(a);return this.logger.debug(" >>> tokenToSemanticValue returned:",p?JSON.stringify(p):"null"),p?(this.logger.debug(" >>> Validating type:",p.type,"against expected:",t.expectedTypes),t.expectedTypes&&t.expectedTypes.length>0&&!Qe(p.type,t.expectedTypes)?(this.logger.debug(" >>> TYPE MISMATCH - returning",t.optional||!1),t.optional||!1):(this.logger.debug(" >>> Type validation PASSED"),r.set(t.role,p),e.advance(),!0)):t.optional||!1}tryMatchPossessiveExpression(e){let t=e.peek();if(!t||!this.currentProfile)return null;let r=t.normalized||t.value,a=this.safeToLowerCase(r),i=Pp(this.currentProfile,a);if(!i)return null;let o=e.mark();e.advance();let s=e.peek();if(!s)return e.reset(o),null;if(s.kind==="identifier"||s.kind==="keyword"&&!this.isStructuralKeyword(s.value)||s.kind==="selector"&&s.value.startsWith("*")||s.kind==="selector"&&s.value.startsWith("@")||s.kind==="selector"&&s.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(s.value)){e.advance();let l=s.value;s.kind==="selector"&&l.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(l)&&(l=l.substring(1));let c=l;for(;e.peek()?.kind==="selector"&&e.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(e.peek().value);)c+=e.peek().value,e.advance();let p=e.peek();return p?.kind==="literal"&&p.value.startsWith("(")&&(c+=p.value,e.advance()),Ft(Je(i),c)}return e.reset(o),null}isStructuralKeyword(e){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(e.toLowerCase())}tryMatchMethodCallExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="operator"||a.value!==".")return e.reset(r),null;e.advance();let i=e.peek();if(!i||i.kind!=="identifier")return e.reset(r),null;e.advance();let o=e.peek();if(!o||o.kind!=="punctuation"||o.value!=="(")return e.reset(r),null;e.advance();let s=[];for(;!e.isAtEnd()&&s.length<et.MAX_METHOD_ARGS;){let c=e.peek();if(!c)break;if(c.kind==="punctuation"&&c.value===")"){e.advance();break}if(c.kind==="punctuation"&&c.value===","){e.advance();continue}s.push(c.value),e.advance()}return{type:"expression",raw:`${t.value}.${i.value}(${s.join(", ")})`}}tryMatchPropertyAccessExpression(e){let t=e.peek();if(!t||t.kind!=="identifier"&&t.kind!=="keyword")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="operator"||a.value!==".")return e.reset(r),null;e.advance();let i=e.peek();if(!i||i.kind!=="identifier")return e.reset(r),null;e.advance();let o=`${t.value}.${i.value}`,s=1;for(;!e.isAtEnd()&&s<et.MAX_PROPERTY_DEPTH;){let c=e.peek();if(!c||c.kind!=="operator"||c.value!==".")break;e.advance();let p=e.peek();if(!p||p.kind!=="identifier")break;e.advance(),o+=`.${p.value}`,s++}let l=e.peek();if(l&&l.kind==="punctuation"&&l.value==="("){e.advance();let c=[],p=0;for(;!e.isAtEnd()&&c.length<et.MAX_METHOD_ARGS;){let d=e.peek();if(!d)break;if(d.kind==="punctuation"&&d.value===")"){if(p===0){e.advance();break}p--}if(d.kind==="punctuation"&&d.value==="("&&p++,d.kind==="punctuation"&&d.value===","){e.advance();continue}c.push(d.value),e.advance()}return{type:"expression",raw:`${o}(${c.join(", ")})`}}return{type:"expression",raw:o}}tryMatchPossessiveSelectorExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="punctuation"||a.value!=="'s")return e.reset(r),null;e.advance();let i=e.peek();return!i||i.kind!=="selector"&&i.kind!=="identifier"?(e.reset(r),null):(e.advance(),Ft(lt(t.value),i.value))}tryMatchSelectorPropertyExpression(e){let t=e.peek();if(!t||t.kind!=="selector"||typeof t.value!="string"||!t.value.startsWith("#"))return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="selector"||!a.value.startsWith("."))return e.reset(r),null;let i=e.peek(1);i&&i.kind,e.advance();let o=a.value.slice(1);return Ft(lt(t.value),o)}matchGroupToken(e,t,r,a){let i=e.mark(),o=new Set(r.keys());if(this.matchTokenSequence(e,t.tokens,r,a))return!0;e.reset(i);for(let c of r.keys())o.has(c)||r.delete(c);if(!t.optional)return!1;let l=this.getGroupLeadingMarker(t);if(l)for(let c=1;c<=et.MAX_MARKER_SCAN;c++){let p=e.peek(c);if(!p)break;if((p.normalized||p.value).toLowerCase()===l){this.logger.debug(" >> MARKER SCAN: found",l,"at offset",c,"- skipping intervening tokens");for(let u=0;u<c;u++)e.advance();if(this.matchTokenSequence(e,t.tokens,r,a))return!0;e.reset(i);for(let u of r.keys())o.has(u)||r.delete(u);break}}return!0}getGroupLeadingMarker(e){let t=e.tokens[0];return t?.type==="literal"?t.value.toLowerCase():null}getMatchType(e,t){return e.value===t?"exact":e.normalized===t?"normalized":e.stem===t&&e.stemConfidence!==void 0&&e.stemConfidence>=.7?"stem":e.kind==="keyword"&&this.safeToLowerCase(e.value)===t.toLowerCase()?"case-insensitive":"none"}collectStopMarkers(e,t){let r=new Set;for(let a=t;a<e.length;a++){let i=e[a];if(i.type==="literal"){if(r.add(i.value.toLowerCase()),i.alternatives)for(let o of i.alternatives)r.add(o.toLowerCase());break}if(i.type==="group"){for(let o of i.tokens)if(o.type==="literal"){if(r.add(o.value.toLowerCase()),o.alternatives)for(let s of o.alternatives)r.add(s.toLowerCase());break}if(!i.optional)break}}return r}isStopMarker(e,t){return t.size===0?!1:!!(t.has(e.value.toLowerCase())||e.normalized&&t.has(e.normalized.toLowerCase()))}tokenToSemanticValue(e){switch(e.kind){case"selector":return lt(e.value);case"literal":return this.parseLiteralValue(e.value);case"keyword":let t=e.normalized||e.value,r=this.safeToLowerCase(t);return zi(r)?Je(r):se(e.normalized||e.value);case"identifier":if(typeof e.value=="string"&&e.value.startsWith(":"))return Je(e.value);let a=this.safeToLowerCase(e.value);return zi(a)?Je(a):{type:"expression",raw:e.value};case"url":return se(e.value,"string");default:return null}}parseLiteralValue(e){if(e.startsWith('"')||e.startsWith("'")||e.startsWith("`")||e.startsWith("\u300C")){let a=e.slice(1,-1);return se(a,"string")}if(e==="true")return se(!0,"boolean");if(e==="false")return se(!1,"boolean");let t=e.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(t){let a=parseFloat(t[1]);return t[2]?se(e,"duration"):se(a,"number")}let r=parseFloat(e);return isNaN(r)?se(e,"string"):se(r,"number")}applyExtractionRules(e,t){for(let[r,a]of Object.entries(e.extraction))t.has(r)||(a.value!==void 0?t.set(r,{type:"literal",value:a.value}):a.default&&t.set(r,a.default))}isOptional(e){return e.type!=="literal"&&e.optional===!0}calculateConfidence(e,t){let r=0,a=0,i=c=>e.extraction?.[c]?.default!==void 0;for(let c of e.template.tokens)if(c.type==="role")a+=1,t.has(c.role)&&(r+=1);else if(c.type==="group"){for(let p of c.tokens)if(p.type==="role"){let m=i(p.role),d=.8;a+=d,t.has(p.role)?r+=d:m&&(r+=d*.6)}}let o=a>0?r/a:1;if(this.stemMatchCount>0&&this.totalKeywordMatches>0){let c=this.stemMatchCount/this.totalKeywordMatches*.15;o=Math.max(.5,o-c)}let s=this.calculateVSOConfidenceBoost(e);o=Math.min(1,o+s);let l=this.arabicPrepositionDisambiguation(e,t);return o=Math.max(0,Math.min(1,o+l)),o}calculateVSOConfidenceBoost(e){if(e.language!=="ar")return 0;let t=e.template.tokens[0];if(!t||t.type!=="literal")return 0;let r=new Set(["\u0628\u062F\u0644","\u063A\u064A\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062C\u0639\u0644","\u0639\u064A\u0646","\u0632\u062F","\u0627\u0646\u0642\u0635","\u0633\u062C\u0644","\u0623\u0638\u0647\u0631","\u0623\u062E\u0641","\u0634\u063A\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062A\u0648\u0642\u0641","\u0627\u0646\u0633\u062E","\u0627\u062D\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062A\u0638\u0631","\u0627\u0646\u062A\u0642\u0627\u0644","\u0623\u0648"]);if(r.has(t.value))return .15;if(t.alternatives){for(let a of t.alternatives)if(r.has(a))return .15}return 0}arabicPrepositionDisambiguation(e,t){if(e.language!=="ar")return 0;let r=0,a={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]};for(let[i,o]of t.entries()){let s=a[i];if(!s||s.length===0)continue;let l="metadata"in o?o.metadata:void 0;if(l&&typeof l.prepositionValue=="string"){let c=l.prepositionValue;s.includes(c)?r+=.1:r-=.1}}return Math.max(-.1,Math.min(.1,r))}skipNoiseWords(e){let t=e.peek();if(!t)return;let r=this.safeToLowerCase(t.value);if(et.ENGLISH_NOISE_WORDS.has(r)){let a=e.mark();e.advance();let i=e.peek();if(i&&i.kind==="selector")return;e.reset(a)}r==="class"&&e.advance()}extractEventModifiers(e){let t={},r=!1;for(;!e.isAtEnd();){let a=e.peek();if(!a||a.kind!=="event-modifier")break;let i=a.metadata;if(!i)break;switch(r=!0,i.modifierName){case"once":t.once=!0;break;case"debounce":typeof i.value=="number"&&(t.debounce=i.value);break;case"throttle":typeof i.value=="number"&&(t.throttle=i.value);break;case"queue":(i.value==="first"||i.value==="last"||i.value==="all"||i.value==="none")&&(t.queue=i.value);break}e.advance()}return r?t:void 0}};pt.MAX_MARKER_SCAN=3;pt.MAX_PROPERTY_DEPTH=10;pt.MAX_METHOD_ARGS=20;pt.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]);Lp=pt,fx=new Lp,_=class{constructor(){this.name="string-literal"}canExtract(n,e){let t=n[e];return t==='"'||t==="'"||t==="`"||t==="\u201C"||t==="\u2018"}extract(n,e){let t=n[e];if(t==="\u201C"){let i=1;for(;e+i<n.length;){if(n[e+i]==="\u201D")return i++,{value:n.substring(e,e+i),length:i};i++}return null}if(t==="\u2018"){let i=1;for(;e+i<n.length;){if(n[e+i]==="\u2019")return i++,{value:n.substring(e,e+i),length:i};i++}return null}let r=1,a=!1;for(;e+r<n.length;){let i=n[e+r];if(a){a=!1,r++;continue}if(i==="\\"){a=!0,r++;continue}if(i===t)return r++,{value:n.substring(e,e+r),length:r};r++}return null}},M=class{constructor(){this.name="number"}canExtract(n,e){return/\d/.test(n[e])}extract(n,e){let t=0,r=!1;for(;e+t<n.length;){let o=n[e+t];if(/\d/.test(o))t++;else if(o==="."&&!r)r=!0,t++;else break}if(t===0)return null;let a=n.substring(e,e+t),i=e+t;if(i<n.length){let o=n.slice(i),s=[{pattern:"\u6BEB\u79D2",suffix:"ms"},{pattern:"\u5206\u949F",suffix:"m"},{pattern:"\u5C0F\u65F6",suffix:"h"},{pattern:"\u30DF\u30EA\u79D2",suffix:"ms"},{pattern:"\u6642\u9593",suffix:"h"}];for(let c of s)if(o.startsWith(c.pattern))return{value:a+c.suffix,length:t+c.pattern.length,metadata:{hasTimeUnit:!0}};if(o.startsWith("ms"))return{value:a+"ms",length:t+2,metadata:{hasTimeUnit:!0}};let l=[{pattern:"\u79D2",suffix:"s"},{pattern:"\u5206",suffix:"m"}];for(let c of l)if(o.startsWith(c.pattern))return{value:a+c.suffix,length:t+1,metadata:{hasTimeUnit:!0}};if(/^[smh](?![a-zA-Z])/.test(o))return{value:a+o[0],length:t+1,metadata:{hasTimeUnit:!0}}}return{value:a,length:t}}};ce=class{constructor(n,e){this.pos=0,this.tokens=n,this.language=e}peek(n=0){let e=this.pos+n;return e<0||e>=this.tokens.length?null:this.tokens[e]}advance(){if(this.isAtEnd())throw new Error("Unexpected end of token stream");return this.tokens[this.pos++]}isAtEnd(){return this.pos>=this.tokens.length}mark(){return{position:this.pos}}reset(n){this.pos=n.position}position(){return this.pos}remaining(){return this.tokens.slice(this.pos)}takeWhile(n){let e=[];for(;!this.isAtEnd()&&n(this.peek());)e.push(this.advance());return e}skipWhile(n){for(;!this.isAtEnd()&&n(this.peek());)this.advance()}};Ap=["===","!==","->","==","!=","<=",">=","&&","||","**","+=","-=","*=","/=","+","-","*","/","=",">","<","!","&","|","%","^","~"];zx=new Set(Ap),jp=new Set(["patient","destination","source","style","event","eventMarker","agent","goal","manner","into","from","to","with","at","of","as","by","in","on","over","under","between","through","without"]),Mp=["click","dblclick","input","change","submit","keydown","keyup","keypress","mousedown","mouseup","mouseover","mouseout","mouseenter","mouseleave","mousemove","pointerdown","pointerup","pointermove","focus","blur","load","resize","scroll"],Ti=class Ei{constructor(){this.profileKeywords=[],this.multiWordKeywords=[],this.profileKeywordMap=new Map,this.rawExtraEntries=[],this.extractors=[]}getExtraKeywordEntries(){return this.rawExtraEntries}tokenize(e){if(this.isUsingExtractors())return this.tokenizeWithExtractors(e);throw new Error(`${this.constructor.name}: tokenize() not implemented and no extractors registered. Either register extractors or override tokenize() method.`)}registerExtractor(e){Cp(e)&&e.setContext(Rp(this)),this.extractors.push(e)}registerExtractors(e){for(let t of e)this.registerExtractor(t)}clearExtractors(){this.extractors=[]}isUsingExtractors(){return this.extractors.length>0}tokenizeWithExtractors(e){let t=[],r=0;for(;r<e.length;){for(;r<e.length&&ze(e[r]);)r++;if(r>=e.length)break;let a=this.tryMultiWordKeyword(e,r);if(a){t.push(a),r=a.position.end;continue}let i=!1;for(let o of this.extractors)if(o.canExtract(e,r)){let s=o.extract(e,r);if(s){let l=s.metadata?.normalized,c=s.metadata?.stem,p=s.metadata?.stemConfidence,m={};if(s.metadata)for(let[u,f]of Object.entries(s.metadata))u!=="normalized"&&u!=="stem"&&u!=="stemConfidence"&&(m[u]=f);let d={};l&&(d.normalized=l),c&&(d.stem=c),p!==void 0&&(d.stemConfidence=p),Object.keys(m).length>0&&(d.metadata=m),t.push(Y(s.value,this.classifyToken(s.value),Z(r,r+s.length),Object.keys(d).length>0?d:void 0)),r+=s.length,i=!0;break}}if(!i){let o=e[r],s=this.classifyUnknownChar(o);t.push(Y(o,s,Z(r,r+1))),r++}}return new ce(t,this.language)}classifyUnknownChar(e){return"()[]{},:;".includes(e)?"punctuation":"+-*/<>=!&|".includes(e)?"operator":"identifier"}tryPropertyAccess(e,t,r){if(e[t]!==".")return!1;let a=r[r.length-1],i=a&&a.position.end<t;if(a&&!i&&(a.kind==="identifier"||a.kind==="keyword"||a.kind==="selector"))return r.push(Y(".","operator",Z(t,t+1))),!0;let l=t+1;for(;l<e.length&&ne(e[l]);)l++;return l<e.length&&e[l]==="("?(r.push(Y(".","operator",Z(t,t+1))),!0):!1}initializeKeywordsFromProfile(e,t=[]){let r=new Map;if(this.rawExtraEntries=t,e.keywords){for(let[a,i]of Object.entries(e.keywords))if(r.set(i.primary,{native:i.primary,normalized:i.normalized||a}),i.alternatives)for(let o of i.alternatives)r.set(o,{native:o,normalized:i.normalized||a})}if(e.references){for(let[a,i]of Object.entries(e.references))r.set(i,{native:i,normalized:a});for(let a of Object.keys(e.references))r.has(a)||r.set(a,{native:a,normalized:a})}if(e.roleMarkers){for(let[a,i]of Object.entries(e.roleMarkers))if(i.primary&&r.set(i.primary,{native:i.primary,normalized:a}),i.alternatives)for(let o of i.alternatives)r.set(o,{native:o,normalized:a})}if(e.possessive?.keywords)for(let[a,i]of Object.entries(e.possessive.keywords))r.set(a,{native:a,normalized:i});for(let a of Mp)r.has(a)||r.set(a,{native:a,normalized:a});for(let a of t)r.set(a.native,a);this.profileKeywords=Array.from(r.values()).sort((a,i)=>i.native.length-a.native.length),this.multiWordKeywords=this.profileKeywords.filter(a=>a.native.includes(" ")&&!jp.has(a.normalized)),this.profileKeywordMap=new Map;for(let a of this.profileKeywords){this.profileKeywordMap.set(a.native.toLowerCase(),a);let i=this.removeDiacritics(a.native);i!==a.native&&!this.profileKeywordMap.has(i.toLowerCase())&&this.profileKeywordMap.set(i.toLowerCase(),a)}}removeDiacritics(e){return e.replace(/[\u064B-\u0652\u0670]/g,"")}tryProfileKeyword(e,t){for(let r of this.profileKeywords)if(e.slice(t).startsWith(r.native))return Y(r.native,"keyword",Z(t,t+r.native.length),r.normalized);return null}tryMultiWordKeyword(e,t,r=a=>/[\p{L}\p{N}_]/u.test(a)){if(this.multiWordKeywords.length===0)return null;let a=e.slice(t);for(let i of this.multiWordKeywords){if(!a.startsWith(i.native))continue;let o=e[t+i.native.length];if(!(o!==void 0&&r(o)))return Y(i.native,"keyword",Z(t,t+i.native.length),i.normalized)}return null}isKeywordStart(e,t){let r=e.slice(t);return this.profileKeywords.some(a=>r.startsWith(a.native))}isKeywordStartAtBoundary(e,t,r=a=>/[\p{L}\p{N}_]/u.test(a)){let a=e.slice(t);return this.profileKeywords.some(i=>{if(!a.startsWith(i.native))return!1;let o=e[t+i.native.length];return o===void 0||!r(o)})}lookupKeyword(e){return this.profileKeywordMap.get(e.toLowerCase())}isKeyword(e){return this.profileKeywordMap.has(e.toLowerCase())}setNormalizer(e){this.normalizer=e}tryNormalize(e){if(!this.normalizer)return null;let t=this.normalizer.normalize(e);return t.stem!==e&&t.confidence>=.7?t:null}tryMorphKeywordMatch(e,t,r){let a=this.tryNormalize(e);if(!a)return null;let i=this.lookupKeyword(a.stem);if(!i)return null;let o={normalized:i.normalized,stem:a.stem,stemConfidence:a.confidence};return Y(e,"keyword",Z(t,r),o)}trySelector(e,t){let r=ki(e,t);return r?Y(r,"selector",Z(t,t+r.length)):null}tryEventModifier(e,t){if(e[t]!==".")return null;let r=e.slice(t).match(/^\.(?:once|debounce|throttle|queue)(?:\(([^)]+)\))?(?:\s|$|\.)/);if(!r)return null;let a=r[0].replace(/(\s|\.)$/,""),i=a.slice(1).split("(")[0],o=r[1];return{...Y(a,"event-modifier",Z(t,t+a.length)),metadata:{modifierName:i,value:o?i==="queue"?o:parseInt(o,10):void 0}}}tryString(e,t){let r=xi(e,t);return r?Y(r,"literal",Z(t,t+r.length)):null}tryNumber(e,t){let r=Si(e,t);return r?Y(r,"literal",Z(t,t+r.length)):null}tryMatchTimeUnit(e,t,r,a=!1){let i=t;if(a)for(;i<e.length&&ze(e[i]);)i++;let o=e.slice(i);for(let s of r){let l=o.slice(0,s.length);if(s.caseInsensitive?l.toLowerCase()===s.pattern.toLowerCase():l===s.pattern){if(s.notFollowedBy&&(o[s.length]||"")===s.notFollowedBy)continue;if(s.checkBoundary){let p=o[s.length]||"";if(ne(p))continue}return{suffix:s.suffix,endPos:i+s.length}}}return null}parseBaseNumber(e,t,r=!0){let a=t,i="";if(r&&(e[a]==="-"||e[a]==="+")&&(i+=e[a++]),a>=e.length||!Ee(e[a]))return null;for(;a<e.length&&Ee(e[a]);)i+=e[a++];if(a<e.length&&e[a]===".")for(i+=e[a++];a<e.length&&Ee(e[a]);)i+=e[a++];return!i||i==="-"||i==="+"?null:{number:i,endPos:a}}tryNumberWithTimeUnits(e,t,r,a={}){let{allowSign:i=!0,skipWhitespace:o=!1}=a,s=this.parseBaseNumber(e,t,i);if(!s)return null;let{number:l,endPos:c}=s,p=[...r,...Ei.STANDARD_TIME_UNITS],m=this.tryMatchTimeUnit(e,c,p,o);return m&&(l+=m.suffix,c=m.endPos),Y(l,"literal",Z(t,c))}tryUrl(e,t){let r=bi(e,t);return r?Y(r,"url",Z(t,t+r.length)):null}tryVariableRef(e,t){if(e[t]!==":"||t+1>=e.length||!ne(e[t+1]))return null;let r=t+1;for(;r<e.length&&ne(e[r]);)r++;let a=e.slice(t,r);return Y(a,"identifier",Z(t,r))}tryOperator(e,t){let r=e.slice(t,t+2);if(["==","!=","<=",">=","&&","||","->"].includes(r))return Y(r,"operator",Z(t,t+2));let a=e[t];return["<",">","!","+","-","*","/","="].includes(a)?Y(a,"operator",Z(t,t+1)):["(",")","{","}",",",";",":"].includes(a)?Y(a,"punctuation",Z(t,t+1)):null}tryMultiCharParticle(e,t,r){for(let a of r)if(e.slice(t,t+a.length)===a)return Y(a,"particle",Z(t,t+a.length));return null}};Ti.STANDARD_TIME_UNITS=[{pattern:"ms",suffix:"ms",length:2},{pattern:"s",suffix:"s",length:1,checkBoundary:!0},{pattern:"m",suffix:"m",length:1,checkBoundary:!0,notFollowedBy:"s"},{pattern:"h",suffix:"h",length:1,checkBoundary:!0}];R=Ti;mn=class{constructor(n){this.language=n.language,this.config={minWordLength:3,minStemLength:2,...n}}normalize(n){let e=n.toLowerCase();if(this.isAlreadyNormalized(e))return V(n);if(this.config.reflexiveSuffixes){let t=this.tryReflexiveNormalization(e);if(t)return t}if(this.config.endings){let t=this.tryConjugationEndings(e);if(t)return t}if(this.config.suffixRules){let t=this.trySuffixRules(e);if(t)return t}if(this.config.prefixRules){let t=this.tryPrefixRules(e);if(t)return t}return V(n)}isAlreadyNormalized(n){return this.config.infinitiveEndings?this.config.infinitiveEndings.some(e=>n.endsWith(e)):!1}tryReflexiveNormalization(n){let e=this.config.reflexiveSuffixes;if(!e)return null;for(let t of e){if(!n.endsWith(t))continue;let r=n.slice(0,-t.length);if(this.isAlreadyNormalized(r))return x(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let a=this.tryConjugationEndings(r)||this.trySuffixRules(r);if(a&&a.stem!==r)return x(a.stem,a.confidence*.95,{removedSuffixes:[t,...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationEndings(n){let e=this.config.endings;if(!e)return null;let t=this.config.minStemLength??2;for(let r of e){if(!n.endsWith(r.ending))continue;let a=n.slice(0,-r.ending.length);if(a.length<t)continue;let i=a+r.stem;return x(i,r.confidence,{removedSuffixes:[r.ending],conjugationType:r.type})}return null}trySuffixRules(n){let e=this.config.suffixRules;if(!e)return null;let t=this.config.minStemLength??2;for(let r of e){if(!n.endsWith(r.pattern))continue;let a=n.slice(0,-r.pattern.length),i=r.minStemLength??t;if(a.length<i)continue;let o=a+(r.replacement||"");return x(o,r.confidence,{removedSuffixes:[r.pattern],...r.conjugationType&&{conjugationType:r.conjugationType}})}return null}tryPrefixRules(n){let e=this.config.prefixRules;if(!e)return null;for(let t of e){if(!n.startsWith(t.pattern))continue;let r=n.slice(t.pattern.length),a=t.minRemaining??this.config.minStemLength??2;if(!(r.length<a))return x(r,1-t.confidencePenalty,{removedPrefixes:[t.pattern]})}return null}}});var Pi=z(()=>{"use strict";je()});var Ri=z(()=>{"use strict";je()});var Ni=z(()=>{"use strict";je()});var D=z(()=>{"use strict";Pi();Ri();Ni()});var Ai={};N(Ai,{englishProfile:()=>mt});var mt,Yt=z(()=>{"use strict";mt={code:"en",name:"English",nativeName:"English",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!1},references:{me:"me",it:"it",you:"you",result:"result",event:"event",target:"target",body:"body"},possessive:{marker:"'s",markerPosition:"after-object",specialForms:{me:"my",it:"its",you:"your"},keywords:{my:"me",your:"you",its:"it"}},roleMarkers:{destination:{primary:"on",alternatives:["to","from"],position:"before"},source:{primary:"from",position:"before"},patient:{primary:"",position:"before"},style:{primary:"with",alternatives:["by","using"],position:"before"},responseType:{primary:"as",position:"before"},method:{primary:"via",alternatives:["using"],position:"before"}},keywords:{toggle:{primary:"toggle"},add:{primary:"add"},remove:{primary:"remove"},put:{primary:"put"},append:{primary:"append"},prepend:{primary:"prepend"},take:{primary:"take"},make:{primary:"make"},clone:{primary:"clone"},swap:{primary:"swap"},morph:{primary:"morph"},set:{primary:"set"},get:{primary:"get"},increment:{primary:"increment"},decrement:{primary:"decrement"},log:{primary:"log"},show:{primary:"show"},hide:{primary:"hide"},transition:{primary:"transition"},on:{primary:"on"},trigger:{primary:"trigger"},send:{primary:"send"},focus:{primary:"focus"},blur:{primary:"blur"},empty:{primary:"empty",normalized:"empty"},open:{primary:"open",normalized:"open"},close:{primary:"close",normalized:"close"},select:{primary:"select",normalized:"select"},clear:{primary:"clear",normalized:"clear"},reset:{primary:"reset",normalized:"reset"},breakpoint:{primary:"breakpoint",normalized:"breakpoint"},go:{primary:"go"},scroll:{primary:"scroll",normalized:"scroll"},push:{primary:"push",normalized:"push"},replace:{primary:"replace",normalized:"replace"},process:{primary:"process",normalized:"process"},wait:{primary:"wait"},fetch:{primary:"fetch"},settle:{primary:"settle"},if:{primary:"if"},when:{primary:"when",normalized:"when"},where:{primary:"where",normalized:"where"},else:{primary:"else"},repeat:{primary:"repeat"},for:{primary:"for"},while:{primary:"while"},continue:{primary:"continue"},halt:{primary:"halt"},throw:{primary:"throw"},call:{primary:"call"},return:{primary:"return"},then:{primary:"then"},and:{primary:"and"},end:{primary:"end"},js:{primary:"js"},async:{primary:"async"},tell:{primary:"tell"},default:{primary:"default"},init:{primary:"init"},behavior:{primary:"behavior"},install:{primary:"install"},measure:{primary:"measure"},beep:{primary:"beep"},break:{primary:"break"},copy:{primary:"copy"},exit:{primary:"exit"},pick:{primary:"pick"},render:{primary:"render"},into:{primary:"into"},before:{primary:"before"},after:{primary:"after"},until:{primary:"until"},event:{primary:"event"},from:{primary:"from"},connect:{primary:"connect",normalized:"connect"},stream:{primary:"stream",normalized:"stream"},live:{primary:"live",normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"bind",normalized:"bind"},eventsource:{primary:"eventsource",normalized:"eventsource"},worker:{primary:"worker",normalized:"worker"},intercept:{primary:"intercept",normalized:"intercept"}}}});var Op,A,Wp,j,G=z(()=>{"use strict";je();Op=["===","!==","->","==","!=","<=",">=","&&","||","**","+=","-=","*=","/=","+","-","*","/","=",">","<","!","&","|","%","^","~"],A=class{constructor(e=Op){this.name="operator";this.operators=[...e].sort((t,r)=>r.length-t.length)}canExtract(e,t){return this.operators.some(r=>e.startsWith(r,t))}extract(e,t){for(let r of this.operators)if(e.startsWith(r,t))return{value:r,length:r.length};return null}},Wp="()[]{},:;",j=class{constructor(e=Wp){this.punctuation=e;this.name="punctuation"}canExtract(e,t){return this.punctuation.includes(e[t])}extract(e,t){let r=e[t];return this.punctuation.includes(r)?{value:r,length:1}:null}}});function dn(n,e){let t=n[e];if(t==="#"){let r=n.slice(e).match(/^#[a-zA-Z_][\w-]*/);return r?r[0]:null}if(t==="."){let r=n.slice(e).match(/^\.\{[a-zA-Z_$][\w$]*\}/);if(r)return r[0];let a=n.slice(e).match(/^\.[a-zA-Z_][\w-]*/);return a?a[0]:null}if(t==="@"){let r=n.slice(e).match(/^@[a-zA-Z_][\w-]*/);return r?r[0]:null}if(t==="*"){let r=n.slice(e).match(/^\*(?:--)?[a-zA-Z_][\w-]*/);return r?r[0]:null}if(t==="["){let r=0,a=e;for(;a<n.length;){if(n[a]==="["&&r++,n[a]==="]"&&(r--,r===0))return n.slice(e,a+1);a++}return null}if(t==="<"){let r=n.slice(e).match(/^<(?=[\w.#[])[\w-]*(?:[#.][\w-]+|\[[^\]]+\])*\s*\/>/);return r?r[0]:null}return null}var dt,ji=z(()=>{"use strict";dt=class{constructor(){this.name="css-selector"}canExtract(e,t){let r=e[t];return r==="#"||r==="."||r==="["||r==="<"?!0:r==="@"||r==="*"?dn(e,t)!==null:!1}extract(e,t){let r=dn(e,t);return r?{value:r,length:r.length,metadata:{type:"css-selector"}}:null}}});var ut,Mi=z(()=>{"use strict";ut=class{constructor(){this.name="event-modifier"}canExtract(e,t){if(e[t]!==".")return!1;let r=e.slice(t);return/^\.(once|prevent|stop|debounce|throttle|queue)/.test(r)}extract(e,t){let r=e.slice(t).match(/^\.(?:once|prevent|stop|debounce|throttle|queue)(?:\(([^)]+)\))?/);if(!r)return null;let a=r[0],i=a.slice(1).split("(")[0],o=r[1];return{value:a,length:a.length,metadata:{modifierName:i,value:o?i==="queue"?o:parseInt(o,10):void 0}}}}});function Oi(n,e){let t=n.slice(e);if(t.startsWith("http://")||t.startsWith("https://")){let r=t.match(/^https?:\/\/[^\s]*/);return r?r[0]:null}if(t.startsWith("//")){let r=t.match(/^\/\/[^\s]*/);return r?r[0]:null}if(t.startsWith("./")||t.startsWith("../")){let r=t.match(/^\.\.?\/[^\s]*/);return r?r[0]:null}if(t.startsWith("/")){let r=t.match(/^\/[^\s]*/);return r?r[0]:null}return null}var ft,Wi=z(()=>{"use strict";ft=class{constructor(){this.name="url"}canExtract(e,t){let r=e.slice(t);return r.startsWith("http://")||r.startsWith("https://")||r.startsWith("//")||r.startsWith("./")||r.startsWith("../")||r.startsWith("/")}extract(e,t){let r=Oi(e,t);return r?{value:r,length:r.length,metadata:{type:"url"}}:null}}});var yt,Ii=z(()=>{"use strict";yt=class{constructor(){this.name="variable-ref"}canExtract(e,t){let r=e[t];return(r===":"||r==="$"||r==="^")&&t+1<e.length&&/[a-zA-Z_]/.test(e[t+1])}extract(e,t){if(!this.canExtract(e,t))return null;let r=1;for(;t+r<e.length&&/[a-zA-Z0-9_]/.test(e[t+r]);)r++;return{value:e.substring(t,t+r),length:r,metadata:{type:"variable-reference"}}}}});function Ip(n){let e=n.charCodeAt(0);return e>=12352&&e<=12447}function Vp(n){let e=n.charCodeAt(0);return e>=12448&&e<=12543}function _p(n){let e=n.charCodeAt(0);return e>=19968&&e<=40879||e>=13312&&e<=19903}function Vi(n){return Ip(n)||Vp(n)||_p(n)}var Jt,_i=z(()=>{"use strict";Jt=class{constructor(){this.name="japanese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Vi(e[t])}extract(e,t){if(!this.context)throw new Error("JapaneseKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let a="",i=t;for(;i<e.length&&Vi(e[i]);)a+=e[i],i++;let o=a,s=a.length;for(let m=a.length;m>0;m--){let d=a.substring(0,m);if(this.context.lookupKeyword(d)){o=d,s=m;break}}if(a=o,i=t+s,!a)return null;let l=this.context.lookupKeyword(a),c=l&&l.normalized!==l.native?l.normalized:void 0,p;if(!l&&this.context.normalizer){let m=this.context.normalizer.normalize(a);if(m.stem!==a&&m.confidence>=.7){let d=this.context.lookupKeyword(m.stem);d&&(p=d.normalized)}}return{value:a,length:i-r,metadata:{normalized:c||p}}}}});var qi,Ki,Qt,$i=z(()=>{"use strict";qi=new Map([["\u3092",{role:"patient",confidence:.95}],["\u306B",{role:"destination",confidence:.85}],["\u304C",{role:"subject",confidence:.9}],["\u306E",{role:"possessive",confidence:.9}],["\u3068",{role:"conjunction",confidence:.8}],["\u3067",{role:"instrument",confidence:.85}],["\u3078",{role:"direction",confidence:.85}],["\u3084",{role:"listing",confidence:.8}],["\u304B",{role:"question",confidence:.85}],["\u3082",{role:"also",confidence:.85}],["\u306F",{role:"topic",confidence:.9}]]),Ki=new Map([["\u304B\u3089",{role:"source",confidence:.95}],["\u307E\u3067",{role:"until",confidence:.95}],["\u3088\u308A",{role:"comparison",confidence:.9}],["\u3068\u3057\u3066",{role:"as",confidence:.9}],["\u306B\u3064\u3044\u3066",{role:"about",confidence:.9}],["\u306B\u3088\u3063\u3066",{role:"by-means",confidence:.9}],["\u306B\u3066",{role:"at-location",confidence:.85}]]),Qt=class{constructor(){this.name="japanese-particle"}setContext(e){this._context=e}longerKeywordStartsHere(e,t){if(!this._context)return!1;for(let r=4;r>=2;r--){let a=e.slice(t,t+r);if(a.length===r&&this._context.isKeyword(a))return!0}return!1}canExtract(e,t){let r=e[t];if(qi.has(r)&&!this.longerKeywordStartsHere(e,t))return!0;for(let[a]of Ki)if(e.startsWith(a,t))return!0;return!1}extract(e,t){for(let[i,o]of Ki)if(e.startsWith(i,t))return{value:i,length:i.length,metadata:{role:o.role,confidence:o.confidence,variant:i}};let r=e[t];if(this.longerKeywordStartsHere(e,t))return null;let a=qi.get(r);return a?{value:r,length:1,metadata:{role:a.role,confidence:a.confidence,variant:r}}:null}}});function qp(n){let e=n.charCodeAt(0);return e>=44032&&e<=55203}function Kp(n){let e=n.charCodeAt(0);return e>=4352&&e<=4607||e>=12592&&e<=12687}function un(n){return qp(n)||Kp(n)}var $p,er,Bi=z(()=>{"use strict";$p=["\uD560\uB54C","\uD558\uBA74","\uD558\uB2C8\uAE4C","\uD560 \uB54C"],er=class{constructor(){this.name="korean-keyword"}setContext(e){this.context=e}canExtract(e,t){return un(e[t])}extract(e,t){if(!this.context)throw new Error("KoreanKeywordExtractor: context not set");let r=t,a=6;for(let d=Math.min(a,e.length-r);d>=2;d--){let u=e.slice(r,r+d),f=!0;for(let g=0;g<u.length;g++)if(!un(u[g])){f=!1;break}if(!f)continue;let y=this.context.lookupKeyword(u);if(y)return{value:u,length:d,metadata:{normalized:y.normalized!==y.native?y.normalized:void 0}};if(this.context.normalizer){let g=this.context.normalizer.normalize(u);if(g.stem!==u&&g.confidence>=.7){let v=this.context.lookupKeyword(g.stem);if(v)return{value:u,length:d,metadata:{normalized:v.normalized,stem:g.stem,stemConfidence:g.confidence}}}}}let i="",o=t;for(;o<e.length&&un(e[o])&&!(i.length>0&&this.context.isKeywordStart(e,o));)i+=e[o],o++;if(!i)return null;for(let d of $p)if(i.endsWith(d)&&i.length>d.length){let u=i.slice(0,-d.length),f=this.context.lookupKeyword(u);if(f)return{value:u,length:u.length,metadata:{normalized:f.normalized,hasSuffix:!0,suffix:d,stem:u}}}let s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0;i.includes("\uD1A0\uAE00")&&(console.log(`[KO DEBUG] word="${i}"`),console.log(`[KO DEBUG] keywordEntry=${s?"FOUND":"NOT FOUND"}`),console.log(`[KO DEBUG] normalizer=${this.context.normalizer?"EXISTS":"MISSING"}`));let c,p,m;if(!s&&this.context.normalizer){let d=this.context.normalizer.normalize(i);if(d.stem!==i&&d.confidence>=.7){let u=this.context.lookupKeyword(d.stem);u&&(c=u.normalized,p=d.stem,m=d.confidence,i.includes("\uD1A0\uAE00")&&console.log(`[KO DEBUG] word="${i}", stem="${d.stem}", normalized="${c}"`))}}return{value:i,length:o-r,metadata:{normalized:l||c,stem:p,stemConfidence:m}}}}});function Hi(n){if(!n)return!1;let e=n.codePointAt(0);return e>=44032&&e<=55203}var Di,Fi,tr,Ui=z(()=>{"use strict";Di=new Map([["\uC774",{role:"agent",confidence:.85,variant:"consonant",description:"subject marker (after consonant)"}],["\uAC00",{role:"agent",confidence:.85,variant:"vowel",description:"subject marker (after vowel)"}],["\uC744",{role:"patient",confidence:.95,variant:"consonant",description:"object marker (after consonant)"}],["\uB97C",{role:"patient",confidence:.95,variant:"vowel",description:"object marker (after vowel)"}],["\uC740",{role:"agent",confidence:.75,variant:"consonant",description:"topic marker (after consonant)"}],["\uB294",{role:"agent",confidence:.75,variant:"vowel",description:"topic marker (after vowel)"}],["\uC5D0",{role:"destination",confidence:.85,description:"at/to marker"}],["\uB85C",{role:"destination",confidence:.85,variant:"vowel",description:"to/by means (after vowel or \u3139)"}],["\uC640",{role:"style",confidence:.7,variant:"vowel",description:"and/with (after vowel)"}],["\uACFC",{role:"style",confidence:.7,variant:"consonant",description:"and/with (after consonant)"}],["\uC758",{role:"patient",confidence:.6,description:"possessive marker"}],["\uB3C4",{role:"patient",confidence:.65,description:"also/too marker"}],["\uB9CC",{role:"patient",confidence:.65,description:"only marker"}]]),Fi=new Map([["\uC5D0\uC11C",{role:"source",confidence:.8,description:"at/from marker (action location)"}],["\uC73C\uB85C",{role:"destination",confidence:.85,variant:"consonant",description:"to/by means (after consonant)"}],["\uBD80\uD130",{role:"source",confidence:.9,description:"from/since marker"}],["\uAE4C\uC9C0",{role:"destination",confidence:.75,description:"until/to marker"}],["\uCC98\uB7FC",{role:"manner",confidence:.8,description:"like/as marker"}],["\uBCF4\uB2E4",{role:"source",confidence:.75,description:"than marker"}]]);tr=class{constructor(){this.name="korean-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r=e[t];if(Di.has(r)&&!Hi(e[t+1]))return!0;for(let[a]of Fi)if(e.startsWith(a,t))return!0;return!1}extract(e,t){for(let[i,o]of Fi)if(e.startsWith(i,t))return{value:i,length:i.length,metadata:{particleRole:o.role,particleConfidence:o.confidence,particleVariant:o.variant}};let r=e[t],a=Di.get(r);return a&&!Hi(e[t+1])?{value:r,length:1,metadata:{particleRole:a.role,particleConfidence:a.confidence,particleVariant:a.variant}}:null}}});function fn(n){let e=n.charCodeAt(0);return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=63744&&e<=64255||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=194560&&e<=195103}var rr,Gi=z(()=>{"use strict";rr=class{constructor(){this.name="chinese-keyword"}setContext(e){this.context=e}canExtract(e,t){return fn(e[t])}extract(e,t){if(!this.context)throw new Error("ChineseKeywordExtractor: context not set");let r=t,a=null;if(this.context.isKeywordStart(e,t))for(let s=10;s>=1;s--){let l=e.slice(t,t+s);if([...l].every(c=>fn(c))){let c=this.context.lookupKeyword(l);if(c){a={word:l,entry:c};break}}}if(a)return{value:a.word,length:a.word.length,metadata:{normalized:a.entry.normalized}};let i="",o=t;for(;o<e.length&&fn(e[o])&&(i+=e[o],o++,!(o<e.length&&this.context.isKeywordStart(e,o))););return i?{value:i,length:o-r,metadata:{}}:null}}});var Xi,Zi,nr,Yi=z(()=>{"use strict";Xi=new Map([["\u628A",{role:"patient",confidence:.95,description:"ba-construction object marker"}],["\u5728",{role:"location",confidence:.85,description:"at/in/on location marker"}],["\u4ECE",{role:"source",confidence:.9,description:"from marker"}],["\u5230",{role:"destination",confidence:.9,description:"to/until marker"}],["\u5411",{role:"destination",confidence:.85,description:"towards marker"}],["\u7ED9",{role:"destination",confidence:.85,description:"to/for recipient marker"}],["\u5BF9",{role:"destination",confidence:.8,description:"to/towards marker"}],["\u7528",{role:"instrument",confidence:.85,description:"with/using marker"}],["\u88AB",{role:"agent",confidence:.8,description:"by (passive) marker"}],["\u8BA9",{role:"agent",confidence:.75,description:"let/make causative marker"}],["\u7684",{role:"possessive",confidence:.9,description:"possessive/attributive marker"}],["\u5730",{role:"manner",confidence:.85,description:"adverbial marker"}],["\u5F97",{role:"manner",confidence:.8,description:"complement marker"}],["\u4E86",{role:"aspect",confidence:.7,description:"completion aspect marker"}],["\u7740",{role:"aspect",confidence:.7,description:"progressive aspect marker"}],["\u8FC7",{role:"aspect",confidence:.7,description:"experiential aspect marker"}],["\u5417",{role:"mood",confidence:.75,description:"question particle"}],["\u5462",{role:"mood",confidence:.7,description:"question/emphasis particle"}],["\u5427",{role:"mood",confidence:.7,description:"suggestion particle"}]]),Zi=new Map([["\u7136\u540E",{role:"sequence",confidence:.9,description:"then/afterwards"}],["\u63A5\u7740",{role:"sequence",confidence:.85,description:"next/following"}],["\u5E76\u4E14",{role:"conjunction",confidence:.85,description:"and/moreover"}],["\u6216\u8005",{role:"conjunction",confidence:.85,description:"or"}],["\u5982\u679C",{role:"condition",confidence:.9,description:"if"}],["\u90A3\u4E48",{role:"consequence",confidence:.85,description:"then"}],["\u5426\u5219",{role:"alternative",confidence:.85,description:"otherwise"}]]),nr=class{constructor(){this.name="chinese-particle"}setContext(e){this._context=e}longerKeywordAt(e,t,r){let a=this._context;if(!a)return!1;let i=Math.min(10,e.length-t);for(let o=i;o>r;o--)if(a.lookupKeyword(e.slice(t,t+o)))return!0;return!1}canExtract(e,t){let r=e[t];if(Xi.has(r)&&!this.longerKeywordAt(e,t,1))return!0;for(let[a]of Zi)if(e.startsWith(a,t)&&!this.longerKeywordAt(e,t,a.length))return!0;return!1}extract(e,t){for(let[i,o]of Zi)if(e.startsWith(i,t)&&!this.longerKeywordAt(e,t,i.length))return{value:i,length:i.length,metadata:{particleRole:o.role,particleConfidence:o.confidence,particleDescription:o.description}};let r=e[t],a=Xi.get(r);return a&&!this.longerKeywordAt(e,t,1)?{value:r,length:1,metadata:{particleRole:a.role,particleConfidence:a.confidence,particleDescription:a.description}}:null}}});function Bp(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Ji(){return[new yn]}var Dp,Fp,Hp,yn,Qi=z(()=>{"use strict";({isLetter:Dp,isIdentifierChar:Fp}=Bp(/[a-zA-ZàáảãạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵđÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÈÉẺẼẸÊỀẾỂỄỆÌÍỈĨỊÒÓỎÕỌÔỒỐỔỖỘƠỜỚỞỠỢÙÚỦŨỤƯỪỨỬỮỰỲÝỶỸỴĐ]/)),Hp=new Set(["trong","ngo\xE0i","tr\xEAn","d\u01B0\u1EDBi","v\xE0o","ra","\u0111\u1EBFn","t\u1EEB","v\u1EDBi","cho","b\u1EDFi","qua","tr\u01B0\u1EDBc","sau","gi\u1EEFa","b\xEAn","theo","v\u1EC1","t\u1EDBi","l\xEAn","xu\u1ED1ng"]),yn=class{constructor(){this.name="vietnamese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Dp(e[t])}extract(e,t){if(!this.context)throw new Error("VietnameseKeywordExtractor: context not set");let r=this.tryMultiWordPhrase(e,t);if(r)return r;let a=t,i="";for(;a<e.length&&Fp(e[a]);)i+=e[a++];if(!i)return null;let o=i.toLowerCase(),s=Hp.has(o),l=this.context.lookupKeyword(o),c=l&&l.normalized!==l.native?l.normalized:void 0;return{value:i,length:a-t,metadata:{normalized:c,isPreposition:s}}}tryMultiWordPhrase(e,t){if(!this.context)return null;let r=["v\xE0o trong","s\u1EF1 ki\u1EC7n"];for(let a of r)if(e.slice(t,t+a.length).toLowerCase()===a.toLowerCase()){let o=t+a.length;if(o>=e.length||!/[a-zA-Zàáảãạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵđ]/.test(e[o])){let s=this.context.lookupKeyword(a);return{value:e.slice(t,o),length:a.length,metadata:{normalized:s?.normalized,isPreposition:!1}}}}return null}}});var eo,Up,ar,to=z(()=>{"use strict";D();eo=ye([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),Up=new Set(["\u0641\u064A","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062F","\u0628\u064A\u0646"]),ar=class{constructor(){this.name="arabic-keyword"}setContext(e){this.context=e}canExtract(e,t){return eo(e[t])}extract(e,t){if(!this.context)throw new Error("ArabicKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let a="",i=t;for(;i<e.length&&(eo(e[i])||e[i]==="\u0640");)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;if(Up.has(a))return{value:a,length:i-r,metadata:{prepositionValue:a,normalized:s}};let l,c,p;if(!o&&this.context.normalizer){let m=this.context.normalizer.normalize(a);if(m.stem!==a&&m.confidence>=.7){let d=this.context.lookupKeyword(m.stem);d&&(l=d.normalized,c=m.stem,p=m.confidence)}}return{value:a,length:i-r,metadata:{normalized:s||l,stem:c,stemConfidence:p}}}}});var gt,vt,Gp,ir,ro=z(()=>{"use strict";D();gt=ye([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),vt=new Map([["\u0648",{normalized:"and",type:"conjunction"}],["\u0641",{normalized:"then",type:"conjunction"}],["\u0628",{normalized:"with",type:"preposition"}],["\u0644",{normalized:"to",type:"preposition"}],["\u0643",{normalized:"like",type:"preposition"}],["\u0648\u0644",{normalized:"and-to",type:"conjunction"}],["\u0648\u0628",{normalized:"and-with",type:"conjunction"}],["\u0648\u0643",{normalized:"and-like",type:"conjunction"}],["\u0641\u0644",{normalized:"then-to",type:"conjunction"}],["\u0641\u0628",{normalized:"then-with",type:"conjunction"}],["\u0641\u0643",{normalized:"then-like",type:"conjunction"}]]),Gp=new Set(["\u0648\u062B\u064A\u0642\u0629"]),ir=class{constructor(){this.name="arabic-proclitic"}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return vt.has(r)||t+1<e.length&&vt.has(e.slice(t,t+2))}extract(e,t){if(!this.context)throw new Error("ArabicProcliticExtractor: context not set");let r=t;for(;r<e.length&&(gt(e[r])||e[r]==="\u0640");)r++;let a=e.slice(t,r);if(this.context.isKeyword(a)||Gp.has(a))return null;if(t+2<=e.length){let p=e.slice(t,t+2),m=vt.get(p);if(m){let d=t+2;if(d<e.length&>(e[d])){let u=0,f=d;for(;f<e.length&>(e[f]);)u++,f++;if(u>=2)if(vt.get(e[t])){let g=e.slice(t+1,r);if(!this.context.isKeyword(g))return{value:p,length:2,metadata:{procliticType:m.type,normalized:m.normalized}}}else return{value:p,length:2,metadata:{procliticType:m.type,normalized:m.normalized}}}}}let i=e[t],o=vt.get(i);if(!o)return null;let s=t+1;if(s>=e.length||!gt(e[s]))return null;let l=0,c=s;for(;c<e.length&>(e[c]);)l++,c++;return l<2?null:{value:i,length:1,metadata:{procliticType:o.type,normalized:o.normalized}}}}});var Xp,no,or,ao=z(()=>{"use strict";D();Xp=ye([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),no=new Map([["\u0639\u0646\u062F\u0645\u0627",{normalized:"on",formality:"formal",confidence:.95,description:"when (formal MSA)"}],["\u062D\u064A\u0646\u0645\u0627",{normalized:"on",formality:"formal",confidence:.93,description:"when/whenever (formal)"}],["\u0639\u0646\u062F",{normalized:"on",formality:"neutral",confidence:.88,description:"at/when (neutral)"}],["\u062D\u064A\u0646",{normalized:"on",formality:"neutral",confidence:.85,description:"when/time (neutral)"}],["\u0644\u0645\u0651\u0627",{normalized:"on",formality:"dialectal",confidence:.7,description:"when (dialectal, with shadda)"}],["\u0644\u0645\u0627",{normalized:"on",formality:"dialectal",confidence:.68,description:"when (dialectal, no diacritic)"}],["\u0644\u062F\u0649",{normalized:"on",formality:"neutral",confidence:.82,description:"at/with (temporal)"}]]),or=class{constructor(){this.name="arabic-temporal"}setContext(e){this._context=e,this._context}canExtract(e,t){for(let[r]of no)if(e.startsWith(r,t))return!0;return!1}extract(e,t){let r=Array.from(no.entries()).sort(([a],[i])=>i.length-a.length);for(let[a,i]of r)if(e.startsWith(a,t)){let o=t+a.length;if(o>=e.length||/\s/.test(e[o])||!Xp(e[o]))return{value:a,length:a.length,metadata:{temporalFormality:i.formality,temporalConfidence:i.confidence,normalized:i.normalized,description:i.description}}}return null}}});function Zp(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function io(){return[new sr("russian-keyword",/[a-zA-Zа-яА-ЯёЁ]/,Yp)]}function oo(){return[new sr("ukrainian-keyword",/[a-zA-Zа-яА-ЯіІїЇєЄґҐьЬ']/,Jp)]}var sr,Yp,Jp,gn=z(()=>{"use strict";sr=class{constructor(e,t,r){this.name=e;let a=Zp(t);this.isLetter=a.isLetter,this.isIdentifierChar=a.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return r==="'"?!1:this.isLetter(r)}extract(e,t){if(!this.context)throw new Error(`${this.name}: context not set`);let r=t,a="";for(;r<e.length&&this.isIdentifierChar(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.prepositions.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}},Yp=new Set(["\u0432","\u0432\u043E","\u043D\u0430","\u0441","\u0441\u043E","\u043A","\u043A\u043E","\u043E","\u043E\u0431","\u043E\u0431\u043E","\u0443","\u043E\u0442","\u0434\u043E","\u0438\u0437","\u0437\u0430","\u043F\u043E","\u043F\u043E\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043F\u0435\u0440\u0435\u0434\u043E","\u043C\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043B\u044F","\u043F\u0440\u0438","\u043F\u0440\u043E","\u043F\u043E\u0441\u043B\u0435","\u0432\u043E\u043A\u0440\u0443\u0433","\u043F\u0440\u043E\u0442\u0438\u0432","\u0432\u043C\u0435\u0441\u0442\u043E","\u043A\u0440\u043E\u043C\u0435","\u0441\u0440\u0435\u0434\u0438"]);Jp=new Set(["\u0432","\u0443","\u043D\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043E","\u0432\u0456\u0434","\u043E","\u043E\u0431","\u043F\u0440\u0438","\u0434\u043B\u044F","\u043F\u0456\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043C\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043F\u043E","\u0437\u0430","\u043F\u0440\u043E","\u043F\u0456\u0441\u043B\u044F","\u043D\u0430\u0432\u043A\u043E\u043B\u043E","\u043F\u0440\u043E\u0442\u0438","\u0437\u0430\u043C\u0456\u0441\u0442\u044C","\u043A\u0440\u0456\u043C","\u0441\u0435\u0440\u0435\u0434","\u043A"])});function lr(n){let e=n.charCodeAt(0);return e>=2304&&e<=2431||e>=43232&&e<=43263}var cr,so=z(()=>{"use strict";cr=class{constructor(){this.name="hindi-keyword"}setContext(e){this.context=e}canExtract(e,t){return lr(e[t])}extract(e,t){if(!this.context)throw new Error("HindiKeywordExtractor: context not set");let r=t,a="",i=t;for(;i<e.length&&lr(e[i]);)a+=e[i],i++;if(this.context&&e[i]==="-"&&i+1<e.length&&lr(e[i+1])){let c=i,p=a;for(;c<e.length&&(e[c]==="-"||lr(e[c]));)p+=e[c++];this.context.lookupKeyword(p)&&(a=p,i=c)}if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0,l;if(!o&&this.context.normalizer){let c=this.context.normalizer.normalize(a);if(c.stem!==a&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(l=p.normalized)}}return{value:a,length:i-r,metadata:{normalized:s||l}}}}});var lo,co,pr,po=z(()=>{"use strict";lo=new Map([["\u0915\u094B",{role:"patient",confidence:.95}],["\u092E\u0947\u0902",{role:"destination",confidence:.9}],["\u092A\u0930",{role:"event",confidence:.85}],["\u0938\u0947",{role:"source",confidence:.9}],["\u0915\u093E",{role:"possessive",confidence:.95}],["\u0915\u0940",{role:"possessive",confidence:.95}],["\u0915\u0947",{role:"possessive",confidence:.95}],["\u0924\u0915",{role:"until",confidence:.9}],["\u0928\u0947",{role:"agent",confidence:.85}]]),co=new Map([["\u0915\u0947 \u0938\u093E\u0925",{role:"instrument",confidence:.95}],["\u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902",{role:"about",confidence:.9}]]),pr=class{constructor(){this.name="hindi-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){for(let[i]of co)if(e.startsWith(i,t))return!0;let r="",a=t;for(;a<e.length&&this.isDevanagari(e[a]);)r+=e[a],a++;return lo.has(r)}extract(e,t){for(let[o,s]of co)if(e.startsWith(o,t))return{value:o,length:o.length,metadata:{role:s.role,confidence:s.confidence,variant:o}};let r="",a=t;for(;a<e.length&&this.isDevanagari(e[a]);)r+=e[a],a++;let i=lo.get(r);return i?{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}}:null}isDevanagari(e){let t=e.charCodeAt(0);return t>=2304&&t<=2431||t>=43232&&t<=43263}}});function mo(n){let e=n.charCodeAt(0);return e>=2432&&e<=2559}var mr,uo=z(()=>{"use strict";mr=class{constructor(){this.name="bengali-keyword"}setContext(e){this.context=e}canExtract(e,t){return mo(e[t])}extract(e,t){if(!this.context)throw new Error("BengaliKeywordExtractor: context not set");let r=t,a="",i=t;for(;i<e.length&&mo(e[i]);)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0,l;if(!o&&this.context.normalizer){let c=this.context.normalizer.normalize(a);if(c.stem!==a&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(l=p.normalized)}}return{value:a,length:i-r,metadata:{normalized:s||l}}}}});var fo,dr,yo=z(()=>{"use strict";fo=new Map([["\u0995\u09C7",{role:"patient",confidence:.95}],["\u09A4\u09C7",{role:"destination",confidence:.9}],["\u098F",{role:"event",confidence:.85}],["\u09A5\u09C7\u0995\u09C7",{role:"source",confidence:.95}],["\u09B0",{role:"possessive",confidence:.95}],["\u098F\u09B0",{role:"possessive",confidence:.95}],["\u09A6\u09BF\u09AF\u09BC\u09C7",{role:"instrument",confidence:.9}],["\u099C\u09A8\u09CD\u09AF",{role:"purpose",confidence:.9}],["\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",{role:"until",confidence:.9}],["\u09AE\u09A7\u09CD\u09AF\u09C7",{role:"location",confidence:.85}]]),dr=class{constructor(){this.name="bengali-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r="",a=t;for(;a<e.length&&this.isBengali(e[a]);)r+=e[a],a++;return fo.has(r)}extract(e,t){let r="",a=t;for(;a<e.length&&this.isBengali(e[a]);)r+=e[a],a++;let i=fo.get(r);return i?{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}}:null}isBengali(e){let t=e.charCodeAt(0);return t>=2432&&t<=2559}}});function ht(n){let e=n.charCodeAt(0);return e>=3584&&e<=3711}function vn(n){return/[a-zA-Z0-9_]/.test(n)}function go(){return[new hn]}var hn,vo=z(()=>{"use strict";hn=class{constructor(){this.name="thai-keyword"}setContext(e){this.context=e}canExtract(e,t){return ht(e[t])||vn(e[t])}extract(e,t){if(!this.context)throw new Error("ThaiKeywordExtractor: context not set");let r=e[t];return ht(r)?this.extractThaiWord(e,t):vn(r)?this.extractAsciiWord(e,t):null}extractThaiWord(e,t){if(!this.context)return null;let r=null,a=t,i="";for(;a<e.length&&ht(e[a]);){i+=e[a],a++;let l=this.context.lookupKeyword(i);l&&(r={word:i,entry:l})}if(r){let l=r.entry.normalized!==r.entry.native?r.entry.normalized:void 0;return{value:r.word,length:r.word.length,metadata:{normalized:l}}}let o=t,s="";for(;o<e.length&&ht(e[o])&&!(s.length>0&&this.isKeywordStart(e,o));)s+=e[o],o++;return s?{value:s,length:s.length,metadata:{}}:null}extractAsciiWord(e,t){if(!this.context)return null;let r=t,a="";for(;r<e.length&&vn(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.context.lookupKeyword(i),s=o&&o.normalized!==o.native?o.normalized:void 0;return{value:a,length:a.length,metadata:{normalized:s}}}isKeywordStart(e,t){if(!this.context)return!1;let r=t,a="";for(;r<e.length&&ht(e[r]);){if(a+=e[r],r++,this.context.lookupKeyword(a))return!0;if(a.length>10)break}return!1}}});function Qp(n){return/[a-zA-Z_]/.test(n)}function em(n){return/[a-zA-Z0-9_]/.test(n)}function ho(){return[new zn]}var zn,zo=z(()=>{"use strict";zn=class{constructor(){this.name="malay-keyword"}setContext(e){this.context=e}canExtract(e,t){return Qp(e[t])}extract(e,t){if(!this.context)throw new Error("MalayKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&em(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.context.lookupKeyword(i),s=o&&o.normalized!==o.native?o.normalized:void 0;return{value:a,length:a.length,metadata:{normalized:s}}}}});function tm(n){return/[a-zA-Z_]/.test(n)}function rm(n){return/[a-zA-Z0-9_]/.test(n)}function ko(){return[new kn]}var nm,kn,xo=z(()=>{"use strict";nm=new Set(["sa","ng","para","mula","hanggang","gaya","tulad","kasama","para sa"]),kn=class{constructor(){this.name="tagalog-keyword"}setContext(e){this.context=e}canExtract(e,t){return tm(e[t])}extract(e,t){if(!this.context)throw new Error("TagalogKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&rm(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=nm.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:a.length,metadata:{normalized:l||c,isPreposition:o}}}}});function im(){let n=/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/;return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function wo(){return[new xn]}var am,om,sm,xn,bo=z(()=>{"use strict";am=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015Br\xF3d","wsrod","obok","poza","wok\xF3\u0142","wokol","przeciw","ku"]);({isLetter:om,isIdentifierChar:sm}=im()),xn=class{constructor(){this.name="polish-keyword"}setContext(e){this.context=e}canExtract(e,t){return om(e[t])}extract(e,t){if(!this.context)throw new Error("PolishKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&sm(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=am.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});function cm(){let n=/[a-zA-Z]/;return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function So(){return[new wn]}var lm,pm,mm,wn,To=z(()=>{"use strict";lm=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]);({isLetter:pm,isIdentifierChar:mm}=cm()),wn=class{constructor(){this.name="indonesian-keyword"}setContext(e){this.context=e}canExtract(e,t){return pm(e[t])}extract(e,t){if(!this.context)throw new Error("IndonesianKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&mm(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=lm.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});function um(){let n=/[a-zA-Z]/;return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Po(){return[new bn]}var dm,fm,Eo,bn,Lo=z(()=>{"use strict";dm=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]);({isLetter:fm,isIdentifierChar:Eo}=um()),bn=class{constructor(){this.name="swahili-keyword"}setContext(e){this.context=e}canExtract(e,t){return fm(e[t])}extract(e,t){if(!this.context)throw new Error("SwahiliKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&Eo(e[r]);)a+=e[r++];if(this.context&&r<e.length&&e[r]==="_"){let p=r,m=a;for(;p<e.length&&(e[p]==="_"||Eo(e[p]));)m+=e[p++];this.context.lookupKeyword(m.toLowerCase())&&(a=m,r=p)}if(!a)return null;let i=a.toLowerCase(),o=dm.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});function ur(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:"\xE7\xC7\u011F\u011E\u0131\u0130\xF6\xD6\u015F\u015E\xFC\xDC".includes(n)}function Co(){return new Sn}var ym,gm,Sn,Ro=z(()=>{"use strict";ym=new Set(["ile","i\xE7in","kadar","gibi","\xF6nce","\xFCzerinde","alt\u0131nda","i\xE7inde","d\u0131\u015F\u0131nda","aras\u0131nda","kar\u015F\u0131","g\xF6re","ra\u011Fmen","do\u011Fru","boyunca"]),gm=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\xFC","in","\u0131n","un","\xFCn","le","la","yle","yla"]),Sn=class{constructor(){this.name="turkish-keyword"}setContext(e){this.context=e}canExtract(e,t){return ur(e[t])}extract(e,t){if(!this.context)throw new Error("TurkishKeywordExtractor: context not set");let r=t,a=12;for(let d=Math.min(a,e.length-r);d>=2;d--){let u=e.slice(r,r+d);if(r+d<e.length&&ur(e[r+d]))continue;let f=!0;for(let g=0;g<u.length;g++)if(!ur(u[g])){f=!1;break}if(!f)continue;let y=this.context.lookupKeyword(u);if(y)return{value:u,length:d,metadata:{normalized:y.normalized!==y.native?y.normalized:void 0}};if(this.context.normalizer){let g=this.context.normalizer.normalize(u);if(g.stem!==u&&g.confidence>=.7){let v=this.context.lookupKeyword(g.stem);if(v)return{value:u,length:d,metadata:{normalized:v.normalized,stem:g.stem,stemConfidence:g.confidence}}}}}let i="",o=t;for(;o<e.length&&ur(e[o]);)i+=e[o],o++;for(let d=i.length;d>=2&&!(d<i.length);d--){let u=i.substring(0,d),f=this.context.lookupKeyword(u);if(f)return{value:u,length:d,metadata:{normalized:f.normalized!==f.native?f.normalized:void 0}}}if(!i||!i)return null;if(ym.has(i.toLowerCase()))return{value:i,length:o-r,metadata:{postpositionValue:i.toLowerCase()}};if(gm.has(i.toLowerCase()))return{value:i,length:o-r,metadata:{caseSuffixValue:i.toLowerCase()}};let s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c,p,m;if(!s&&this.context.normalizer){let d=this.context.normalizer.normalize(i);if(d.stem!==i&&d.confidence>=.7){let u=this.context.lookupKeyword(d.stem);u&&(c=u.normalized,p=d.stem,m=d.confidence)}}return{value:i,length:o-r,metadata:{normalized:l||c,stem:p,stemConfidence:m}}}}});function zt(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:n==="\xF1"||n==="\xD1"||n==="'"||n==="\u2019"}function hm(n,e){let t=n.slice(e);for(let r of vm){if(!t.startsWith(r))continue;let a=n[e+r.length];if(a===void 0||!zt(a))return!0}return!1}function Ao(){return new En}var Tn,No,vm,En,jo=z(()=>{"use strict";Tn=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),No=new Set(["kama","hina","rayku","paq"]),vm=new Set([...Tn,...No].map(n=>n.startsWith("-")?n.slice(1):n));En=class{constructor(){this.name="quechua-keyword"}setContext(e){this.context=e}canExtract(e,t){return zt(e[t])?!0:this.isHyphenatedSuffix(e,t)!==null}isHyphenatedSuffix(e,t){if(e[t]!=="-")return null;let r=e.slice(t).match(/^-([a-zñ'’]+)/i);return r&&Tn.has(`-${r[1].toLowerCase()}`)?r[1]:null}extract(e,t){if(!this.context)throw new Error("QuechuaKeywordExtractor: context not set");let r=t,a=this.isHyphenatedSuffix(e,t);if(a!==null)return{value:a,length:a.length+1,metadata:{suffixValue:a.toLowerCase()}};let i=12;for(let m=Math.min(i,e.length-r);m>=2;m--){let d=e.slice(r,r+m),u=e[r+m];if(u!==void 0&&zt(u))continue;let f=!0;for(let g=0;g<d.length;g++)if(!zt(d[g])){f=!1;break}if(!f)continue;let y=this.context.lookupKeyword(d);if(y)return{value:d,length:m,metadata:{normalized:y.normalized!==y.native?y.normalized:void 0}};if(this.context.normalizer){let g=this.context.normalizer.normalize(d);if(g.stem!==d&&g.confidence>=.7){let v=this.context.lookupKeyword(g.stem);if(v)return{value:d,length:m,metadata:{normalized:v.normalized}}}}}let o="",s=t;for(;s<e.length&&zt(e[s])&&!(o.length>0&&hm(e,s));)o+=e[s],s++;if(!o)return null;if(Tn.has(o.toLowerCase()))return{value:o,length:s-r,metadata:{suffixValue:o.toLowerCase()}};if(No.has(o.toLowerCase()))return{value:o,length:s-r,metadata:{postpositionValue:o.toLowerCase()}};let l=this.context.lookupKeyword(o),c=l&&l.normalized!==l.native?l.normalized:void 0,p;if(!l&&this.context.normalizer){let m=this.context.normalizer.normalize(o);if(m.stem!==o&&m.confidence>=.7){let d=this.context.lookupKeyword(m.stem);d&&(p=d.normalized)}}return{value:o,length:s-r,metadata:{normalized:c||p}}}}});function Oo(){return[new Pn]}var Mo,zm,km,Pn,Wo=z(()=>{"use strict";D();Mo=ye([[1424,1535],[64285,64335]]),zm=new Set(["\u05E2\u05DC","\u05D0\u05EA","\u05D0\u05DC","\u05DE\u05DF","\u05E2\u05DD","\u05D1\u05EA\u05D5\u05DA","\u05DE\u05EA\u05D5\u05DA","\u05DC\u05D9\u05D3","\u05D0\u05D7\u05E8\u05D9","\u05DC\u05E4\u05E0\u05D9","\u05D1\u05D9\u05DF","\u05E2\u05D3","\u05E9\u05DC"]),km=new Set(["\u05D5"]),Pn=class{constructor(){this.name="hebrew-keyword"}setContext(e){this.context=e}canExtract(e,t){return Mo(e[t])}extract(e,t){if(!this.context)throw new Error("HebrewKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let a="",i=t;for(;i<e.length&&Mo(e[i]);)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;if(zm.has(a))return{value:a,length:i-r,metadata:{prepositionValue:a,normalized:s}};if(km.has(a))return{value:a,length:i-r,metadata:{conjunctionValue:a,normalized:s}};let l;if(!o&&this.context.normalizer){let c=this.context.normalizer.normalize(a);if(c.stem!==a&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(l=p.normalized)}}return{value:a,length:i-r,metadata:{normalized:s||l}}}}});function _o(){return new Ln}var Io,fr,xm,Vo,Ln,qo=z(()=>{"use strict";D();Io=ye([[1424,1535],[64285,64335]]),fr=new Map([["\u05D1","on"],["\u05DC","to"],["\u05DE","from"],["\u05DB","as"],["\u05D4","the"],["\u05D5","and"],["\u05E9","that"]]),xm=new Set(["\u05D1","\u05DB"]),Vo=new Set(["\u05DC\u05D7\u05D9\u05E6\u05D4","\u05E7\u05DC\u05D9\u05E7","\u05E9\u05DC\u05D9\u05D7\u05D4","\u05D4\u05D2\u05E9\u05D4","\u05E8\u05D9\u05D7\u05D5\u05E3","\u05DE\u05E2\u05D1\u05E8","\u05E9\u05D9\u05E0\u05D5\u05D9","\u05E2\u05D3\u05DB\u05D5\u05DF","\u05E7\u05DC\u05D8","\u05D4\u05D6\u05E0\u05D4","\u05DE\u05D9\u05E7\u05D5\u05D3","\u05D8\u05E9\u05D8\u05D5\u05E9","\u05D8\u05E2\u05D9\u05E0\u05D4","\u05D2\u05DC\u05D9\u05DC\u05D4"]),Ln=class{constructor(){this.name="hebrew-proclitic"}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return fr.has(r)&&t+1<e.length&&Io(e[t+1])}extract(e,t){if(!this.context)throw new Error("HebrewProcliticExtractor: context not set");let r=e[t],a=fr.get(r);if(!a)return null;let i=t;for(;i<e.length&&Io(e[i]);)i++;let o=e.slice(t,i);if(this.context?.lookupKeyword(o))return null;if(t+1<e.length&&fr.has(e[t+1])){let u=e.slice(t+1,i),f=this.context?.lookupKeyword(u),y=Vo.has(u);if(!(f||y||u.length>=3))return null}let l=e.slice(t+1,i),c=this.context?.lookupKeyword(l),p=xm.has(r),m=Vo.has(l);return p&&m?{value:r,length:1,metadata:{normalized:a,procliticType:a,isEventMarker:!0}}:l.length===1&&fr.has(l)||!c&&!m&&l.length<2?null:{value:r,length:1,metadata:{normalized:a,procliticType:a,isEventMarker:p&&c}}}}});function wm(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122||e===95||e===36}function bm(n){let e=n.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===95||e===36}var ee,Pe=z(()=>{"use strict";ee=class{constructor(){this.name="ascii-identifier"}setContext(e){this.context=e}canExtract(e,t){return wm(e[t])}extract(e,t){if(!this.context)throw new Error("AsciiIdentifierExtractor: context not set");let r=t,a="",i=t;for(;i<e.length&&bm(e[i]);)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;return{value:a,length:i-r,metadata:{normalized:s}}}}});var Ko=z(()=>{"use strict";ji();Mi();Wi();Ii()});function W(){return[new ft,new ut,new yt,new dt]}var X=z(()=>{"use strict";Ko()});function Cn(n){return/[a-zA-Z0-9_]/.test(n)}function $o(){return[new Rn]}var Rn,Bo=z(()=>{"use strict";Rn=class{constructor(){this.name="english-keyword"}setContext(e){this.context=e}canExtract(e,t){return/[a-zA-Z_]/.test(e[t])}extract(e,t){if(!this.context)throw new Error("EnglishKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&Cn(e[r]);)a+=e[r++];if(!a)return null;if(r<e.length&&e[r]===":"){let l=r;r++;let c="";for(;r<e.length&&Cn(e[r]);)c+=e[r++];c?a=a+":"+c:r=l}let i=this.context.lookupKeyword(a),o=i&&i.normalized!==i.native?i.normalized:void 0,s=null;return this.context.isKeyword(a)||(s=this.tryClassSyntaxConversion(e,r,a)),{value:s||a,length:r-t,metadata:{normalized:o,classConversion:s?!0:void 0}}}tryClassSyntaxConversion(e,t,r){let a=t;for(;a<e.length&&/\s/.test(e[a]);)a++;if(e.slice(a,a+5).toLowerCase()==="class"){let i=a+5;if(i>=e.length||!Cn(e[i]))return"."+r}return null}}});var Do={};N(Do,{EnglishTokenizer:()=>yr,englishTokenizer:()=>Tm});var Sm,yr,Tm,Fo=z(()=>{"use strict";D();Yt();G();X();Bo();Sm=[{native:"true",normalized:"true"},{native:"false",normalized:"false"},{native:"null",normalized:"null"},{native:"undefined",normalized:"undefined"},{native:"first",normalized:"first"},{native:"last",normalized:"last"},{native:"next",normalized:"next"},{native:"previous",normalized:"previous"},{native:"closest",normalized:"closest"},{native:"click",normalized:"click"},{native:"dblclick",normalized:"dblclick"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"mouseover",normalized:"mouseover"},{native:"mouseout",normalized:"mouseout"},{native:"mouseenter",normalized:"mouseenter"},{native:"mouseleave",normalized:"mouseleave"},{native:"mousemove",normalized:"mousemove"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"keypress",normalized:"keypress"},{native:"input",normalized:"input"},{native:"change",normalized:"change"},{native:"submit",normalized:"submit"},{native:"reset",normalized:"reset"},{native:"load",normalized:"load"},{native:"unload",normalized:"unload"},{native:"scroll",normalized:"scroll"},{native:"resize",normalized:"resize"},{native:"dragstart",normalized:"dragstart"},{native:"drag",normalized:"drag"},{native:"dragend",normalized:"dragend"},{native:"dragenter",normalized:"dragenter"},{native:"dragleave",normalized:"dragleave"},{native:"dragover",normalized:"dragover"},{native:"drop",normalized:"drop"},{native:"touchstart",normalized:"touchstart"},{native:"touchmove",normalized:"touchmove"},{native:"touchend",normalized:"touchend"},{native:"touchcancel",normalized:"touchcancel"},{native:"in",normalized:"in"},{native:"to",normalized:"to"},{native:"at",normalized:"at"},{native:"by",normalized:"by"},{native:"with",normalized:"with"},{native:"without",normalized:"without"},{native:"of",normalized:"of"},{native:"as",normalized:"as"},{native:"every",normalized:"every"},{native:"upon",normalized:"upon"},{native:"unless",normalized:"unless"},{native:"forever",normalized:"forever"},{native:"times",normalized:"times"},{native:"and",normalized:"and"},{native:"or",normalized:"or"},{native:"not",normalized:"not"},{native:"is",normalized:"is"},{native:"exists",normalized:"exists"},{native:"empty",normalized:"empty"},{native:"my",normalized:"my"},{native:"your",normalized:"your"},{native:"its",normalized:"its"},{native:"the",normalized:"the"},{native:"a",normalized:"a"},{native:"an",normalized:"an"},{native:"delete",normalized:"delete"},{native:"innerHTML",normalized:"innerHTML"},{native:"outerHTML",normalized:"outerHTML"},{native:"beforebegin",normalized:"beforebegin"},{native:"afterend",normalized:"afterend"},{native:"beforeend",normalized:"beforeend"},{native:"afterbegin",normalized:"afterbegin"},{native:"flip",normalized:"toggle"},{native:"switch",normalized:"toggle"},{native:"increase",normalized:"increment"},{native:"decrease",normalized:"decrement"},{native:"display",normalized:"show"},{native:"reveal",normalized:"show"},{native:"conceal",normalized:"hide"},{native:"colour",normalized:"color"},{native:"grey",normalized:"gray"},{native:"centre",normalized:"center"},{native:"behaviour",normalized:"behavior"},{native:"initialise",normalized:"initialize"},{native:"favourite",normalized:"favorite"}],yr=class extends R{constructor(){super();this.language="en";this.direction="ltr";this.initializeKeywordsFromProfile(mt,Sm),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors($o()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":"identifier"}},Tm=new yr});function Me(n){let e=n.roles.find(t=>t.role==="destination");return e?{destination:e.default?{fromRole:"destination",default:e.default}:{fromRole:"destination"}}:{}}function Oe(n){let e=n.roles.find(t=>t.role==="source");return e?{source:e.default?{fromRole:"source",default:e.default}:{fromRole:"source"}}:{}}function We(n,e){return Ho(n,e,"source")}function gr(n,e){return Ho(n,e,"destination")}function Ho(n,e,t){if(!e||!n.roles.some(i=>i.role===t))return[];let r=e.alternatives?{type:"literal",value:e.primary,alternatives:[...e.alternatives]}:{type:"literal",value:e.primary},a={type:"role",role:t,optional:!0};return[{type:"group",optional:!0,tokens:e.position==="after"?[a,r]:[r,a]}]}function we(n){return He[n]}function Go(){return Object.values(He).filter(n=>n.roles.length>0||n.bareKeyword===!0)}var Em,Pm,Lm,Cm,Rm,Nm,Am,jm,Mm,Om,Wm,Im,Vm,_m,qm,Km,$m,Bm,Dm,Fm,Hm,Um,Gm,Xm,Zm,Ym,Jm,Qm,ed,td,rd,nd,ad,id,od,sd,ld,cd,pd,md,dd,ud,fd,yd,gd,vd,hd,zd,kd,xd,wd,bd,Sd,Td,Ed,Pd,Ld,Cd,Rd,Nd,Ad,jd,Md,Od,Wd,Id,Uo,Vd,_d,qd,Kd,$d,He,Ue=z(()=>{"use strict";Em={action:"toggle",description:"Toggle a class or attribute on/off",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to toggle",required:!0,expectedTypes:["selector"],selectorKinds:["class","attribute"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerVariants:{ko:["\uC5D0\uC11C"]}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","INVALID_CSS_PROPERTY"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"toggle command requires an argument"},{condition:"Class names are valid CSS identifiers",errorCode:"NO_VALID_CLASS_NAMES",message:"toggle command: no valid class names found"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to toggle",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",INVALID_CSS_PROPERTY:"Check CSS property name syntax (use kebab-case)"}},Pm={action:"add",description:"Add a class or attribute to an element",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to add",required:!0,expectedTypes:["selector","literal"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","PROPERTY_REQUIRES_VALUE"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"add command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to add",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",PROPERTY_REQUIRES_VALUE:"When adding a property (*prop), provide a value argument"}},Lm={action:"remove",description:"Remove a class or attribute from an element",category:"dom-class",primaryRole:"patient",targetRole:"source",roles:[{role:"patient",description:"The class/attribute to remove, or the element to remove",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to remove from (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"remove command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to remove",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers"}},Cm={action:"put",description:"Put content into a target element or variable",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to put",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"destination",description:"Where to put the content",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"into"},markerVariants:{en:["before","after"]},methodCarrier:"method"}],errorCodes:["MISSING_ARGUMENTS","MISSING_CONTENT","MISSING_POSITION","INVALID_POSITION","NO_TARGET","NO_ELEMENTS"],preconditions:[{condition:"Command has content and position arguments",errorCode:"MISSING_ARGUMENTS",message:"put requires arguments"},{condition:"Content to put is specified",errorCode:"MISSING_CONTENT",message:"put requires content"},{condition:"Position keyword is specified (into, before, after, etc.)",errorCode:"MISSING_POSITION",message:"put requires position keyword"}],recoveryHints:{MISSING_ARGUMENTS:"Use syntax: put <content> into/before/after <target>",MISSING_CONTENT:"Add content to put (string, element, or expression)",MISSING_POSITION:"Add position keyword: into, before, after, at start of, at end of",INVALID_POSITION:"Valid positions: into, before, after, at start of, at end of",NO_TARGET:'Ensure target element exists or use "me" reference',NO_ELEMENTS:"Check that the selector matches existing elements"}},Rm={action:"set",description:"Set a property or variable to a value",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The property or variable to set",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ja:"\u3092",ko:"\uB97C",tr:"i",ar:"",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta",hi:"\u0915\u094B"}},{role:"patient",description:"The value to set",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\xE0",de:"auf",id:"ke",ja:"\u306B",ko:"\uC5D0",tr:"e",ar:"\u0625\u0644\u0649",sw:"kwenye",tl:"sa",bn:"\u09A4\u09C7",qu:"man",hi:"\u092E\u0947\u0902"},markerVariants:{tr:["e","a","ye","ya"]}},{role:"scope",description:"The element(s) the attribute/property is set on (defaults to me)",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3,markerOverride:{en:"on",es:"on",pt:"on",fr:"on",de:"on",it:"on",id:"on",ms:"on",sw:"on",tl:"on",zh:"on",vi:"on",ru:"on",uk:"on",pl:"on",th:"on",he:"on",ar:"on",ja:"on",ko:"on",tr:"on",hi:"on",bn:"on",qu:"on"}}],errorCodes:["MISSING_TARGET","INVALID_TARGET","MISSING_VALUE","INVALID_SYNTAX"],preconditions:[{condition:"Command has a target variable or property",errorCode:"MISSING_TARGET",message:"set command requires a target"},{condition:"Target is a valid variable or property reference",errorCode:"INVALID_TARGET",message:"set command target must be a string or object literal"},{condition:'Value is specified with "to" keyword',errorCode:"MISSING_VALUE",message:'set command requires a value (use "to" keyword)'}],recoveryHints:{MISSING_TARGET:"Add a target: set :variable to value OR set element.property to value",INVALID_TARGET:'Use local variable (:name), element property (el.prop), or "the X of Y" syntax',MISSING_VALUE:'Add "to <value>" to specify what to set',INVALID_SYNTAX:"Use syntax: set <target> to <value>"}},Nm={action:"bind",description:"Reactively bind a variable to an element or property value",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The variable to bind",required:!0,expectedTypes:["reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",it:"",id:"",ms:"",vi:"",ru:"",uk:"",pl:"",th:"",zh:"",he:"",ar:"",sw:"",tl:"",ja:"\u3092",ko:"\uB97C",tr:"i",bn:"\u0995\u09C7",qu:"ta",hi:"\u0915\u094B"}},{role:"source",description:"The element or property to bind to",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\xE0",de:"zu",it:"in",id:"ke",ms:"ke",vi:"v\xE0o",ru:"\u0432",uk:"\u0432",pl:"do",ja:"\u306B",ko:"\uC5D0",tr:"e",ar:"\u0625\u0644\u0649",zh:"\u5230",he:"\u05DC",sw:"kwa",th:"\u0E43\u0E19",tl:"sa",bn:"\u09A4\u09C7",qu:"man",hi:"\u092E\u0947\u0902"}}],errorCodes:["MISSING_TARGET","MISSING_VALUE","INVALID_SYNTAX"],recoveryHints:{MISSING_TARGET:"Add a variable to bind: bind $name to #input",MISSING_VALUE:'Add "to <element>" to specify the binding source',INVALID_SYNTAX:"Use syntax: bind <variable> to <element>"}},Am={action:"live",description:"Reactive block: re-run the body when its dependencies change",category:"control-flow",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},jm={action:"eventsource",description:"Open a Server-Sent Events stream and handle its events",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Mm={action:"socket",description:"Open a WebSocket and handle its messages",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Om={action:"worker",description:"Define a Web Worker with inline methods",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Wm={action:"intercept",description:"Service-worker fetch interception / caching strategies",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Im={action:"show",description:"Make an element visible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to show",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},Vm={action:"hide",description:"Make an element invisible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to hide",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},_m={action:"on",description:"Handle an event",category:"event",primaryRole:"event",hasBody:!0,roles:[{role:"event",description:"The event to handle",required:!0,expectedTypes:["literal"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to listen on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},qm={action:"trigger",description:"Trigger/dispatch an event",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to trigger (supports namespaced events like draggable:start)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Km={action:"wait",description:"Wait for a duration or event",category:"async",primaryRole:"duration",roles:[{role:"duration",description:"Duration or event to wait for",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},$m={action:"fetch",description:"Fetch data from a URL",category:"async",primaryRole:"source",roles:[{role:"source",description:"The URL to fetch from",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,renderOverride:{en:""}},{role:"responseType",description:"Response format (json, text, html, blob, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"as"}},{role:"method",description:"HTTP method (GET, POST, etc.)",required:!1,expectedTypes:["literal"],svoPosition:3,sovPosition:3},{role:"destination",description:"Where to store the result",required:!1,expectedTypes:["selector","reference"],svoPosition:4,sovPosition:4}]},Bm={action:"increment",description:"Increment a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to increment",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to increment by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by",es:"por",pt:"por",fr:"par",de:"um"}}]},Dm={action:"decrement",description:"Decrement a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to decrement",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to decrement by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by",es:"por",pt:"por",fr:"par",de:"um"}}]},Fm={action:"append",description:"Append content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to append",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to append to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},Hm={action:"prepend",description:"Prepend content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to prepend",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to prepend to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},Um={action:"log",description:"Log a value to the console",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to log",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Gm={action:"get",description:"Get a value from a source",category:"variable",primaryRole:"source",roles:[{role:"source",description:"The source to get from",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",ja:"\u3092",zh:"",ko:"\uB97C",ar:"\u0639\u0644\u0649",tr:"i",id:"",he:"\u05D0\u05EA",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"destination",description:"Where to store the result (optional)",required:!1,expectedTypes:["reference"],svoPosition:2,sovPosition:1}]},Xm={action:"take",description:"Take content from a source element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The class or element to take",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to take from (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Zm={action:"make",description:"Create a new element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element type or selector to create",required:!0,expectedTypes:["literal","selector"],svoPosition:1,sovPosition:1}]},Ym={action:"halt",description:"Halt/stop execution or event propagation",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"What to halt (event, default, bubbling, etc.)",required:!1,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},Jm={action:"settle",description:"Wait for animations/transitions to settle",category:"async",primaryRole:"patient",roles:[{role:"patient",description:"The element to settle (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Qm={action:"throw",description:"Throw an error",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The error message or object to throw",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},ed={action:"send",description:"Send an event to an element",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to send",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to",ja:"\u306B",ar:"\u0625\u0644\u0649",es:"a",ko:"\uC5D0\uAC8C",zh:"\u5230",tr:"-e",pt:"para",fr:"\xE0",de:"an",id:"ke",qu:"-man",sw:"kwa"}}]},td={action:"if",description:"Conditional execution",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate",required:!0,expectedTypes:["expression","reference","selector"],svoPosition:1,sovPosition:1}]},rd={action:"unless",description:"Negated conditional execution (executes when condition is false)",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate (body executes when false)",required:!0,expectedTypes:["expression","reference","selector"],svoPosition:1,sovPosition:1}]},nd={action:"else",description:"Else branch of conditional",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},ad={action:"repeat",description:"Repeat a block of commands",category:"control-flow",primaryRole:"loopType",hasBody:!0,roles:[{role:"loopType",description:"Loop variant: forever, times, for, while, until, until-event",required:!0,expectedTypes:["literal"],svoPosition:0,sovPosition:0},{role:"quantity",description:"Number of times to repeat",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"event",description:"Event to wait for (terminates loop)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2},{role:"source",description:"Element to listen for event on",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3}],notes:'Can also use "repeat forever", "repeat until condition", or "repeat until event X from Y"'},id={action:"for",description:"Iterate over a collection",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The iteration variable",required:!0,expectedTypes:["reference","expression"],svoPosition:1,sovPosition:2},{role:"source",description:"The collection to iterate over",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"in",es:"en",fr:"en",de:"in",it:"in",pt:"dentro",id:"dalam",ms:"dalam",pl:"w",ru:"\u0432",uk:"\u0443",sw:"ndani",th:"\u0E43\u0E19",vi:"trong",ar:"\u0641\u064A",tl:"sa_loob",he:"in",zh:"\u5728"}}]},od={action:"while",description:"Loop while condition is true",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to check",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},sd={action:"continue",description:"Continue to next loop iteration",category:"control-flow",primaryRole:"patient",roles:[]},ld={action:"go",description:"Navigate to a URL",category:"navigation",primaryRole:"destination",roles:[{role:"destination",description:"The URL to navigate to",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"to"},renderOverride:{en:""},markerOptional:{en:!0},markerVariants:{he:["\u05D0\u05EA"],zh:["\u628A"]}}]},cd={action:"transition",description:"Transition an element with animation",category:"dom-visibility",primaryRole:"patient",omitRoleVariants:["goal"],roles:[{role:"patient",description:"The property to transition (opacity, *background-color, etc.)",required:!0,expectedTypes:["literal","expression","selector"],svoPosition:1,sovPosition:2,markerOverride:{en:"",ar:"",tl:"",sw:""}},{role:"goal",description:"The target value to transition to",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:3,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwa",bn:"\u09A4\u09C7",qu:"man",es:"a",pt:"para",fr:"\xE0",de:"zu",he:"\u05E2\u05DC",it:"in",ja:"\u306B",ko:"\uC5D0",ms:"ke",pl:"do",ru:"\u0432",th:"\u0E43\u0E19",tr:"e",uk:"\u0432",vi:"v\xE0o",zh:"\u5230",id:"ke"}},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:3,sovPosition:1},{role:"duration",description:"Transition duration (over 500ms, for 2 seconds)",required:!1,expectedTypes:["literal"],svoPosition:4,sovPosition:4,markerOverride:{en:"over"}},{role:"style",description:"Easing function (ease-in, linear, etc.)",required:!1,expectedTypes:["literal"],svoPosition:5,sovPosition:5}]},pd={action:"clone",description:"Clone an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to clone",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:2},{role:"destination",description:"Where to put the clone",required:!1,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"into"}}]},md={action:"focus",description:"Focus an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to focus (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},dd={action:"blur",description:"Remove focus from an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to blur (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},ud={action:"empty",description:"Remove all children from an element (sets innerHTML to empty)",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to empty (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},fd={action:"open",description:"Open a dialog, details element, or popover",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to open (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:2},{role:"style",description:"Open-mode variant (modal / non-modal) for <dialog>",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"as"}}]},yd={action:"close",description:"Close a dialog, details element, or popover",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to close (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},gd={action:"select",description:"Select the contents of a text field or DOM element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element whose contents to select (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},vd={action:"clear",description:"Clear a variable, local, or input element",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The variable or element to clear (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},hd={action:"reset",description:"Reset a <form> element to its default values",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The form element to reset (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},zd={action:"breakpoint",description:"Drop into the debugger",category:"control-flow",primaryRole:"patient",roles:[],bareKeyword:!0},kd={action:"call",description:"Call a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The function to call",required:!0,expectedTypes:["expression","reference"],markerOptional:{he:!0,zh:!0},svoPosition:1,sovPosition:1}]},xd={action:"return",description:"Return a value from a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The value to return",required:!1,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1}]},wd={action:"js",description:"Execute raw JavaScript code",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The JavaScript code to execute",required:!1,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},bd={action:"async",description:"Execute commands asynchronously",category:"async",primaryRole:"patient",hasBody:!0,roles:[]},Sd={action:"tell",description:"Execute commands in context of another element",category:"control-flow",primaryRole:"destination",hasBody:!0,roles:[{role:"destination",description:"The element to tell",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:"",he:"\u05D0\u05EA",zh:"\u628A"}}]},Td={action:"default",description:"Set a default value for a variable",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The variable to set default for",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ar:"",tl:"",sw:"",bn:"\u0995\u09C7",qu:"ta",ja:"\u3092",ko:"\uB97C",tr:"i",hi:"\u0915\u094B",de:"",es:"",fr:"",it:"",pt:"",pl:"",ru:"",uk:"",vi:"",id:"",ms:"",th:"",zh:"\u628A",he:"\u05D0\u05EA"}},{role:"patient",description:"The default value",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwa",bn:"\u09A4\u09C7",qu:"man",ja:"\u306B",ko:"\uC5D0",tr:"e",hi:"\u092E\u0947\u0902",de:"zu",es:"a",fr:"\xE0",it:"in",pt:"para",pl:"do",ru:"\u0432",uk:"\u0432",vi:"v\xE0o",id:"ke",ms:"ke",th:"\u0E43\u0E19",zh:"\u5230",he:"\u05E2\u05DC"}}]},Ed={action:"init",description:"Initialization block that runs once",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},Pd={action:"behavior",description:"Define a reusable behavior",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The behavior name (PascalCase identifier)",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},Ld={action:"install",description:"Install a behavior on an element",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The behavior name to install",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"Element to install on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Cd={action:"measure",description:"Measure element dimensions (x, y, width, height, etc.)",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"Property to measure (x, y, width, height, top, left, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"source",description:"Element to measure (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:2,markerOverride:{en:"of"}}]},Rd={action:"swap",description:"Swap DOM content using various strategies (innerHTML, outerHTML, delete, etc.)",category:"dom-content",primaryRole:"destination",roles:[{role:"method",description:"The swap strategy (innerHTML, outerHTML, beforebegin, afterend, delete)",required:!1,expectedTypes:["literal"],svoPosition:1,sovPosition:3,markerOverride:{en:""}},{role:"destination",description:"The element to swap content in/for",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"of",es:"",fr:"",pt:"",it:"",de:"",pl:"",ru:"",uk:"",id:"",ms:"",sw:"",th:"",vi:"",he:"\u05D0\u05EA",zh:"\u628A"}},{role:"patient",description:"The content to swap in (optional for delete)",required:!1,expectedTypes:["literal","expression","selector"],svoPosition:3,sovPosition:2,markerOverride:{en:"with",es:"con",fr:"avec",pt:"com",it:"con",de:"mit",pl:"z",ru:"\u0441",uk:"\u0437",id:"dengan",ms:"dengan",sw:"na",th:"\u0E14\u0E49\u0E27\u0E22",vi:"v\u1EDBi",he:"\u05E2\u05DD",zh:"\u7528"}}]},Nd={action:"morph",description:"Morph an element into another using DOM diffing",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to morph",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:""}},{role:"destination",description:"The target content/element to morph into",required:!0,expectedTypes:["literal","expression","selector","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"to"}}]},Ad={action:"beep",description:"Debug output for expressions with type information",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The expression(s) to debug",required:!1,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},jd={action:"break",description:"Exit from the current loop",category:"control-flow",primaryRole:"patient",roles:[]},Md={action:"copy",description:"Copy text or element content to the clipboard",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The text or element to copy",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Od={action:"exit",description:"Exit from the current event handler",category:"control-flow",primaryRole:"patient",roles:[],bareKeyword:!0},Wd={action:"pick",description:"Select a random element from a collection",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The items to pick from",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1},{role:"source",description:'The array to pick from (with "from" keyword)',required:!1,expectedTypes:["reference","expression"],svoPosition:2,sovPosition:2}]},Id={action:"scroll",description:"Scroll the viewport to a target element",category:"navigation",primaryRole:"destination",argSkipTokens:["of","the","top","bottom","middle","center","nearest","left","right","smoothly","instantly"],roles:[{role:"destination",description:"The element to scroll to",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"to"}}]},Uo={en:"url",es:"url",pt:"url",fr:"url",de:"url",it:"url",ja:"url",ko:"url",zh:"url",ar:"url",he:"url",hi:"url",bn:"url",tr:"url",ru:"url",uk:"url",pl:"url",id:"url",vi:"url",th:"url",ms:"url",tl:"url",sw:"url",qu:"url"},Vd={en:"partials in",es:"partials in",pt:"partials in",fr:"partials in",de:"partials in",it:"partials in",ja:"partials in",ko:"partials in",zh:"partials in",ar:"partials in",he:"partials in",hi:"partials in",bn:"partials in",tr:"partials in",ru:"partials in",uk:"partials in",pl:"partials in",id:"partials in",vi:"partials in",th:"partials in",ms:"partials in",tl:"partials in",sw:"partials in",qu:"partials in"},_d={action:"push",description:"Push a URL onto the browser history",category:"navigation",primaryRole:"patient",roles:[{role:"patient",description:"The URL to push (after the `url` keyword)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:Uo}]},qd={action:"replace",description:"Replace the current browser history entry with a URL",category:"navigation",primaryRole:"patient",roles:[{role:"patient",description:"The URL to replace with (after the `url` keyword)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:Uo}]},Kd={action:"process",description:"Process hx-partial markup in HTML content",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The HTML content (string, element, or response) to process",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:Vd}]},$d={action:"render",description:"Render a template with optional variables",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The template to render",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2},{role:"style",description:"Variables to pass to the template (with keyword)",required:!1,expectedTypes:["expression","reference"],svoPosition:2,sovPosition:1}]},He={toggle:Em,add:Pm,remove:Lm,put:Cm,set:Rm,show:Im,hide:Vm,on:_m,trigger:qm,wait:Km,fetch:$m,increment:Bm,decrement:Dm,append:Fm,prepend:Hm,log:Um,get:Gm,take:Xm,make:Zm,halt:Ym,settle:Jm,throw:Qm,send:ed,if:td,unless:rd,else:nd,repeat:ad,for:id,while:od,continue:sd,go:ld,scroll:Id,push:_d,replace:qd,process:Kd,transition:cd,clone:pd,focus:md,blur:dd,empty:ud,open:fd,close:yd,select:gd,clear:vd,reset:hd,breakpoint:zd,call:kd,return:xd,js:wd,async:bd,tell:Sd,default:Td,init:Ed,behavior:Pd,install:Ld,measure:Cd,swap:Rd,morph:Nd,beep:Ad,break:jd,copy:Md,exit:Od,pick:Wd,render:$d,bind:Nm,live:Am,eventsource:jm,socket:Mm,worker:Om,intercept:Wm,compound:{action:"compound",description:"A compound node representing chained statements",primaryRole:"patient",category:"control-flow",hasBody:!0,roles:[]}}});function Nn(n,e){let t=e==="SOV"?"sovPosition":"svoPosition";return[...n].sort((r,a)=>{let i=r[t]??99,o=a[t]??99;return i-o})}var Xo=z(()=>{"use strict"});function Zo(n,e){let t=n.markerOverride?.[e.code],r=e.roleMarkers[n.role];if(t!==void 0)return{primary:t,position:r?.position??"before",isOverride:!0};if(r&&r.primary){let a={primary:r.primary,position:r.position,isOverride:!1};return r.alternatives&&(a.alternatives=r.alternatives),a}return null}var Yo=z(()=>{"use strict"});function vr(n,e){let t,r;if(n.markerOverride&&n.markerOverride[e.code]!==void 0)t=n.markerOverride[e.code];else{let i=e.roleMarkers[n.role];i&&(t=i.primary,r=i.alternatives?[...i.alternatives]:void 0)}let a=n.markerVariants?.[e.code];if(a&&a.length>0){let i=r?[...r]:[];for(let o of a)o!==t&&!i.includes(o)&&i.push(o);r=i}return{marker:t,alternatives:r}}function tt(n,e,t){t.roles.find(a=>a.role==="scope"&&!a.required)&&(n.push({type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"scope",optional:!0,expectedTypes:["selector","reference"]}]}),e.scope={fromRole:"scope"})}function Jo(n,e,t,r,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let c=r.primary.split(/\s+/);if(c.length>1)for(let p of c)i.push({type:"literal",value:p});else{let p=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(p)}}let o=e.roleMarkers.destination;o&&i.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary}]}),i.push({type:"role",role:"patient",optional:!1});let s=e.roleMarkers.patient;if(s){let c=s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary};i.push(c)}let l=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(l),i.push(...We(n,e.roleMarkers.source)),i.push(...gr(n,e.roleMarkers.destination)),{id:`${n.action}-event-${e.code}-sov`,language:e.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`{event} ${r.primary} {destination?} {patient} ${s?.primary||""} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function Qo(n,e,t,r,a){let i=[];i.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.patient;if(o){let l=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(l)}if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let l=r.primary.split(/\s+/);if(l.length>1)for(let c of l)i.push({type:"literal",value:c});else{let c=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(c)}}let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(s),i.push(...We(n,e.roleMarkers.source)),i.push(...gr(n,e.roleMarkers.destination)),{id:`${n.action}-event-${e.code}-sov-patient-first`,language:e.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`{patient} ${o?.primary||""} {event} ${r.primary} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function es(n,e,t,r,a){let i=[];i.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.patient;if(o){let c=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(c)}let s=e.roleMarkers.destination;if(s&&(i.push({type:"role",role:"destination",optional:!1}),i.push(s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary})),i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let c=r.primary.split(/\s+/);if(c.length>1)for(let p of c)i.push({type:"literal",value:p});else{let p=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(p)}}let l=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(l),{id:`${n.action}-event-${e.code}-sov-patient-first-dest`,language:e.code,command:"on",priority:(a.basePriority??100)+40,template:{format:`{patient} ${o?.primary||""} {destination} ${s?.primary||""} {event} ${r.primary} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination"}}}}function ts(n,e,t,r,a){let i=[];i.push({type:"role",role:"event",optional:!1});let o=r.alternatives?.filter(p=>!p.includes(" ")&&p.length>1)||[];o.length>0&&i.push({type:"literal",value:o[0],alternatives:o.slice(1)});let s=e.roleMarkers.destination;s&&i.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary}]}),i.push({type:"role",role:"patient",optional:!1});let l=e.roleMarkers.patient;if(l){let p=l.alternatives?{type:"literal",value:l.primary,alternatives:l.alternatives}:{type:"literal",value:l.primary};i.push(p)}let c=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(c),i.push(...We(n,e.roleMarkers.source)),i.push(...gr(n,e.roleMarkers.destination)),{id:`${n.action}-event-${e.code}-sov-compact`,language:e.code,command:"on",priority:(a.basePriority??100)+52,template:{format:`{event}${o[0]||""} {patient} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function rs(n,e,t,r,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let s=r.primary.split(/\s+/);if(s.length>1)for(let l of s)i.push({type:"literal",value:l});else{let l=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(l)}}let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(o),{id:`${n.action}-event-${e.code}-sov-simple`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{event} ${r.primary} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{default:{type:"reference",value:"me"}}}}}function ns(n,e,t,r){let a=e.eventHandler?.temporalMarkers;if(!a||a.length===0)return null;let i=[];i.push({type:"role",role:"event",optional:!1}),e.possessive?.marker&&i.push({type:"group",optional:!0,tokens:[{type:"literal",value:e.possessive.marker}]}),i.push({type:"literal",value:a[0],alternatives:a.slice(1)}),i.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.patient;if(o?.primary){let l=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(l)}let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(s),{id:`${n.action}-event-${e.code}-sov-temporal`,language:e.code,command:"on",priority:(r.basePriority??100)+49,template:{format:`{event} ${a[0]} {patient} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"}}}}function as(n,e,t,r,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let m=r.primary.split(/\s+/);if(m.length>1)for(let d of m)i.push({type:"literal",value:d});else{let d=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(d)}}let s=[...n.roles.filter(m=>m.required)].sort((m,d)=>{let u=m.sovPosition??999,f=d.sovPosition??999;return u-f});for(let m of s){i.push({type:"role",role:m.role,optional:!1});let{marker:d,alternatives:u}=vr(m,e);if(d){let f=u?{type:"literal",value:d,alternatives:u}:{type:"literal",value:d};i.push(f)}}let l=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(l);let c=s.map(m=>`{${m.role}}`).join(" "),p={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(s.map(m=>[m.role,{fromRole:m.role}]))};return tt(i,p,n),{id:`${n.action}-event-${e.code}-sov-2role`,language:e.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`{event} ${r.primary} ${c} ${t.primary}`,tokens:i},extraction:p}}function is(n,e,t,r,a){let i=[],s=[...n.roles.filter(p=>p.required)].sort((p,m)=>{let d=p.sovPosition??999,u=m.sovPosition??999;return d-u});for(let p of s){i.push({type:"role",role:p.role,optional:!1});let{marker:m,alternatives:d}=vr(p,e);m&&i.push(d?{type:"literal",value:m,alternatives:d}:{type:"literal",value:m})}if(i.push(t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary}),i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let p=r.primary.split(/\s+/);if(p.length>1)for(let m of p)i.push({type:"literal",value:m});else i.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary})}let l=s.map(p=>`{${p.role}}`).join(" "),c={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(s.map(p=>[p.role,{fromRole:p.role}]))};return tt(i,c,n),{id:`${n.action}-event-${e.code}-sov-2role-event-last`,language:e.code,command:"on",priority:(a.basePriority??100)+40,template:{format:`${l} ${t.primary} {event} ${r.primary}`,tokens:i},extraction:c}}function os(n,e,t,r,a){let i=[],s=[...n.roles.filter(g=>g.required)].sort((g,v)=>{let b=g.sovPosition??999,E=v.sovPosition??999;return b-E}),l=s[0];i.push({type:"role",role:l.role,optional:!1});let{marker:c,alternatives:p}=vr(l,e);if(c){let g=p?{type:"literal",value:c,alternatives:p}:{type:"literal",value:c};i.push(g)}if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let g=r.primary.split(/\s+/);if(g.length>1)for(let v of g)i.push({type:"literal",value:v});else{let v=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(v)}}let m=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(m);let d=s[1];i.push({type:"role",role:d.role,optional:!1});let{marker:u,alternatives:f}=vr(d,e);if(u){let g=f?{type:"literal",value:u,alternatives:f}:{type:"literal",value:u};i.push(g)}let y={action:{value:n.action},event:{fromRole:"event"},[l.role]:{fromRole:l.role},[d.role]:{fromRole:d.role}};return tt(i,y,n),{id:`${n.action}-event-${e.code}-sov-2role-dest-first`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{${l.role}} {event} ${r.primary} ${t.primary} {${d.role}}`,tokens:i},extraction:y}}var An=z(()=>{"use strict";Ue()});function jn(n,e,t,r,a){let i=[];if(r.position==="before"){let l=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(l)}i.push({type:"role",role:"event",optional:!1});let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o),i.push({type:"role",role:"patient",optional:!1});let s=e.roleMarkers.destination;return s&&i.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),i.push(...We(n,e.roleMarkers.source)),{id:`${n.action}-event-${e.code}-vso`,language:e.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`${r.primary} {event} ${t.primary} {patient} ${s?.primary||""} {destination?}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function ss(n,e,t,r,a){let i=[],o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o),i.push({type:"role",role:"patient",optional:!1});let s=e.roleMarkers.destination;if(s&&i.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),i.push(...We(n,e.roleMarkers.source)),r.position==="before"){let l=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(l)}return i.push({type:"role",role:"event",optional:!1}),{id:`${n.action}-event-${e.code}-vso-verb-first`,language:e.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`${t.primary} {patient} ${s?.primary||""} {destination?} ${r.primary} {event}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function ls(n,e,t,r,a){let i=[],o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o);let l=[...n.roles.filter(m=>m.required)].sort((m,d)=>{let u=m.svoPosition??999,f=d.svoPosition??999;return u-f});for(let m of l){let d,u;if(m.markerOverride&&m.markerOverride[e.code]!==void 0)d=m.markerOverride[e.code];else{let f=e.roleMarkers[m.role];f&&(d=f.primary,u=f.alternatives)}if(d){let f=u?{type:"literal",value:d,alternatives:u}:{type:"literal",value:d};i.push(f)}i.push({type:"role",role:m.role,optional:!1})}if(r.position==="before"){let m=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(m)}i.push({type:"role",role:"event",optional:!1});let c=l.map(m=>`{${m.role}}`).join(" "),p={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(l.map(m=>[m.role,{fromRole:m.role}]))};return tt(i,p,n),{id:`${n.action}-event-${e.code}-vso-verb-first-2role`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${t.primary} ${c} ${r.primary} {event}`,tokens:i},extraction:p}}function Mn(n,e,t,r,a){let i=[];if(r.position==="before"){let m=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(m)}i.push({type:"role",role:"event",optional:!1});let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o);let l=[...n.roles.filter(m=>m.required)].sort((m,d)=>{let u=m.svoPosition??999,f=d.svoPosition??999;return u-f});for(let m of l){let d,u;if(m.markerOverride&&m.markerOverride[e.code]!==void 0)d=m.markerOverride[e.code];else{let f=e.roleMarkers[m.role];f&&(d=f.primary,u=f.alternatives)}if(d){let f=u?{type:"literal",value:d,alternatives:u}:{type:"literal",value:d};i.push(f)}i.push({type:"role",role:m.role,optional:!1})}let c=l.map(m=>`{${m.role}}`).join(" "),p={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(l.map(m=>[m.role,{fromRole:m.role}]))};return tt(i,p,n),{id:`${n.action}-event-${e.code}-vso-2role`,language:e.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`${r.primary} {event} ${t.primary} ${c}`,tokens:i},extraction:p}}function cs(n,e,t,r,a){let i=[],o=e.eventHandler?.negationMarker;if(r.position==="before"){let c=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(c)}if(o){let c=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(c)}i.push({type:"role",role:"event",optional:!1});let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(s),i.push({type:"role",role:"patient",optional:!1});let l=e.roleMarkers.destination;return l&&i.push({type:"group",optional:!0,tokens:[l.alternatives?{type:"literal",value:l.primary,alternatives:l.alternatives}:{type:"literal",value:l.primary},{type:"role",role:"destination",optional:!0}]}),i.push(...We(n,e.roleMarkers.source)),{id:`${n.action}-event-${e.code}-vso-negated`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${r.primary} ${o?.primary||""} {event} ${t.primary} {patient} ${l?.primary||""} {destination?}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function ps(n,e,t,r){let a=[];a.push({type:"literal",value:"and",alternatives:["then"]}),a.push({type:"role",role:"event",optional:!1});let i=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};a.push(i),a.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.destination;return o&&a.push({type:"group",optional:!0,tokens:[o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary},{type:"role",role:"destination",optional:!0}]}),a.push(...We(n,e.roleMarkers.source)),{id:`${n.action}-event-${e.code}-vso-proclitic`,language:e.code,command:"on",priority:(r.basePriority??100)+45,template:{format:`[proclitic?] {event} ${t.primary} {patient} ${o?.primary||""} {destination?}`,tokens:a},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}var ms=z(()=>{"use strict";Ue();An()});function On(n,e,t=rt){let r=`${n.action}-${e.code}-generated`,a=t.basePriority??100,i=e.keywords[n.action];if(!i)throw new Error(`No keyword translation for '${n.action}' in ${e.code}`);let o=Ud(n,e,i),s=Wn(n,e),l=Jd(n,e,i);return{id:r,language:e.code,command:n.action,priority:a,template:{format:l,tokens:o},extraction:s}}function Bd(n,e,t=rt){if(n.roles.filter(s=>!s.required).length===0)return null;let a=n.roles.filter(s=>s.required),i={...n,roles:a};return{...On(i,e,t),id:`${n.action}-${e.code}-generated-simple`,priority:(t.basePriority??100)-5,extraction:Wn(n,e)}}function Dd(n,e,t=rt){if(e.wordOrder!=="SOV")return null;let r=n.roles.filter(s=>s.required);if(r.length!==1)return null;let a=e.keywords[n.action];if(!a)return null;let i=a.alternatives?{type:"literal",value:a.primary,alternatives:a.alternatives}:{type:"literal",value:a.primary},o=r.map(s=>({type:"role",role:s.role,optional:!1,expectedTypes:s.expectedTypes}));return{id:`${n.action}-${e.code}-generated-verb-first`,language:e.code,command:n.action,priority:(t.basePriority??100)-20,template:{format:`${a.primary} <${r[0].role}>`,tokens:[i,...o]},extraction:Wn(n,e)}}function Fd(n,e,t=rt){let r=[];if(r.push(On(n,e,t)),t.generateSimpleVariants){let a=Bd(n,e,t);a&&r.push(a)}for(let a of n.omitRoleVariants??[]){let i={...n,roles:n.roles.filter(s=>s.role!==a)},o=On(i,e,t);r.push({...o,id:`${n.action}-${e.code}-generated-no-${a}`,priority:(t.basePriority??100)-8})}if(t.generateVerbFirstVariants!==!1){let a=Dd(n,e,t);a&&r.push(a)}return r}function hr(n,e=rt){let t=[],r=Go();for(let a of r){if(!n.keywords[a.action])continue;let i=Fd(a,n,e);if(t.push(...i),n.eventHandler?.eventMarker){let o=Hd(a,n,e);t.push(...o)}}return t}function Hd(n,e,t=rt){if(!e.eventHandler||!e.eventHandler.eventMarker)return[];let r=[],a=e.eventHandler.eventMarker,i=e.keywords[n.action];if(!i)return[];if(n.roles.length===0)return[];let s=n.roles.filter(l=>l.required).length===2;if(e.wordOrder==="SOV")if(s)r.push(as(n,e,i,a,t)),r.push(os(n,e,i,a,t)),r.push(is(n,e,i,a,t));else{r.push(Jo(n,e,i,a,t)),r.push(Qo(n,e,i,a,t));let l=e.roleMarkers.destination;l&&l.primary!==a.primary&&r.push(es(n,e,i,a,t));let c=a.primary.split(/\s+/),p=a.alternatives?.some(d=>!d.includes(" ")&&d.length>1);c.length>1&&p&&r.push(ts(n,e,i,a,t)),r.push(rs(n,e,i,a,t));let m=ns(n,e,i,t);m&&r.push(m)}else e.wordOrder==="VSO"?s?(r.push(Mn(n,e,i,a,t)),r.push(ls(n,e,i,a,t))):(r.push(jn(n,e,i,a,t)),r.push(ss(n,e,i,a,t)),e.eventHandler?.negationMarker&&r.push(cs(n,e,i,a,t)),e.tokenization?.prefixes&&r.push(ps(n,e,i,t))):s?r.push(Mn(n,e,i,a,t)):r.push(jn(n,e,i,a,t));return r}function Ud(n,e,t){let r=[],a=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary},i=Xd(n,e);switch(e.wordOrder){case"SVO":r.push(a),r.push(...i);break;case"SOV":r.push(...i),r.push(a);break;case"VSO":r.push(a),r.push(...i);break;default:r.push(a),r.push(...i)}return Gd(r)}function Gd(n){let e=[];for(let t of n){let r=e[e.length-1];if(r&&r.type==="literal"&&t.type==="literal"&&r.value===t.value){let a=[...r.alternatives??[],...t.alternatives??[]];a.length&&(e[e.length-1]={...r,alternatives:[...new Set(a)]});continue}e.push(t)}return e}function Xd(n,e){let t=[],r=Nn(n.roles,e.wordOrder);for(let a of r){let i=Zd(a,e);a.required?t.push(...i):t.push({type:"group",optional:!0,tokens:i})}return t}function Zd(n,e){let t=[],r=n.markerOverride?.[e.code],a=e.roleMarkers[n.role],i={type:"role",role:n.role,optional:!n.required,expectedTypes:n.expectedTypes};if(r!==void 0){let o=r?r.split(/\s+/).filter(Boolean):[],s=a?.position??"before",l=n.markerOptional?.[e.code]===!0,c=p=>{let m={type:"literal",value:p};t.push(l?{type:"group",optional:!0,tokens:[m]}:m)};if(s==="before"){for(let p of o)c(p);t.push(i)}else{t.push(i);for(let p of o)c(p)}}else if(a){let o=n.markerVariants?.[e.code]??[],s=()=>{let c=[...new Set([...a.alternatives??[],...o])].filter(p=>p!==a.primary);return c.length?{type:"literal",value:a.primary,alternatives:c}:{type:"literal",value:a.primary}},l=c=>{t.push(e.markersOptional||n.markerOptional?.[e.code]?{type:"group",optional:!0,tokens:[c]}:c)};a.position==="before"?(a.primary&&l(s()),t.push(i)):(t.push(i),l(s()))}else t.push(i);return t}function Yd(n,e){let t={};for(let r of n.roles){let a=r.markerOverride?.[e.code],i=e.roleMarkers[r.role];if(a!==void 0)t[r.role]=a?{marker:a}:{};else if(i&&i.primary){let o=r.markerVariants?.[e.code]??[],s=[...new Set([...i.alternatives??[],...o])].filter(l=>l!==i.primary);t[r.role]=s.length?{marker:i.primary,markerAlternatives:s}:{marker:i.primary}}else t[r.role]={}}return t}function Wn(n,e){let t=Yd(n,e),r={};for(let a of n.roles){let i=t[a.role]||{};!a.required&&a.default?r[a.role]={...i,default:a.default}:r[a.role]=i}return r}function Jd(n,e,t){let r=[],i=Nn(n.roles,e.wordOrder).map(o=>{let s=Zo(o,e),l="";return s&&s.primary?s.position==="before"?l=`${s.primary} {${o.role}}`:l=`{${o.role}} ${s.primary}`:l=`{${o.role}}`,o.required?l:`[${l}]`});switch(e.wordOrder){case"SVO":case"VSO":r.push(t.primary,...i);break;case"SOV":r.push(...i,t.primary);break;default:r.push(t.primary,...i)}return r.join(" ")}var rt,In=z(()=>{"use strict";Ue();Xo();Yo();An();ms();rt={basePriority:100,generateSimpleVariants:!0,generateAlternatives:!0}});function Qd(){return[{id:"toggle-bn-full",language:"bn",command:"toggle",priority:100,template:{format:"{patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"toggle-bn-simple",language:"bn",command:"toggle",priority:90,template:{format:"\u099F\u0997\u09B2 {patient}",tokens:[{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-bn-with-dest",language:"bn",command:"toggle",priority:95,template:{format:"{destination} \u098F {patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{destination:{position:0},patient:{position:2}}}]}function eu(){return[{id:"toggle-en-full",language:"en",command:"toggle",priority:100,template:{format:"toggle {patient} on {target}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"on",alternatives:["from"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"on",markerAlternatives:["from"],default:{type:"reference",value:"me"}}}},{id:"toggle-en-simple",language:"en",command:"toggle",priority:90,template:{format:"toggle {patient}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function tu(){return[{id:"toggle-es-full",language:"es",command:"toggle",priority:100,template:{format:"alternar {patient} en {target}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"en",alternatives:["sobre","de"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["sobre","de"],default:{type:"reference",value:"me"}}}},{id:"toggle-es-simple",language:"es",command:"toggle",priority:90,template:{format:"alternar {patient}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function ru(){return[{id:"toggle-hi-full",language:"hi",command:"toggle",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092A\u0930 \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092A\u0930"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{marker:"\u0915\u094B",position:2}}},{id:"toggle-hi-simple",language:"hi",command:"toggle",priority:90,template:{format:"{patient} \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-hi-bare",language:"hi",command:"toggle",priority:80,template:{format:"\u091F\u0949\u0917\u0932 {patient}",tokens:[{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function nu(){return[{id:"toggle-it-full",language:"it",command:"toggle",priority:100,template:{format:"commutare {patient} su {target}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"su",alternatives:["in","di"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"su",markerAlternatives:["in","di"],default:{type:"reference",value:"me"}}}},{id:"toggle-it-simple",language:"it",command:"toggle",priority:90,template:{format:"commutare {patient}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function au(){return[{id:"toggle-pl-full",language:"pl",command:"toggle",priority:100,template:{format:"prze\u0142\u0105cz {patient} na {destination}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","dla"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"na",markerAlternatives:["w","dla"],default:{type:"reference",value:"me"}}}},{id:"toggle-pl-simple",language:"pl",command:"toggle",priority:90,template:{format:"prze\u0142\u0105cz {patient}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function iu(){return[{id:"toggle-qu-sov",language:"qu",command:"toggle",priority:100,template:{format:"{patient} ta t'ikray",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{patient:{position:0}}},{id:"toggle-qu-simple",language:"qu",command:"toggle",priority:90,template:{format:"t'ikray {patient}",tokens:[{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-qu-with-dest",language:"qu",command:"toggle",priority:95,template:{format:"{destination} pi {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"pi"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}},{id:"toggle-qu-dest-man",language:"qu",command:"toggle",priority:93,template:{format:"{destination} man {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function ou(){return[{id:"toggle-ru-full",language:"ru",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-ru-simple",language:"ru",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function su(){return[{id:"toggle-th-simple",language:"th",command:"toggle",priority:100,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-th-with-dest",language:"th",command:"toggle",priority:95,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function lu(){return[{id:"toggle-uk-full",language:"uk",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-uk-simple",language:"uk",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function cu(){return[{id:"toggle-vi-full",language:"vi",command:"toggle",priority:100,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient} tr\xEAn {target}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i","\u1EDF"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i","\u1EDF"],default:{type:"reference",value:"me"}}}},{id:"toggle-vi-simple",language:"vi",command:"toggle",priority:90,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function pu(){return[{id:"toggle-zh-full",language:"zh",command:"toggle",priority:100,template:{format:"\u5207\u6362 {patient} \u5728 {target}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"],default:{type:"reference",value:"me"}}}},{id:"toggle-zh-simple",language:"zh",command:"toggle",priority:90,template:{format:"\u5207\u6362 {patient}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-ba",language:"zh",command:"toggle",priority:95,template:{format:"\u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{patient:{marker:"\u628A"},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-full-ba",language:"zh",command:"toggle",priority:98,template:{format:"\u5728 {target} \u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"},{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"]},patient:{marker:"\u628A"}}}]}function zr(n){switch(n){case"bn":return Qd();case"en":return eu();case"es":return tu();case"hi":return ru();case"it":return nu();case"pl":return au();case"qu":return iu();case"ru":return ou();case"th":return su();case"uk":return lu();case"vi":return cu();case"zh":return pu();default:return[]}}var Vn=z(()=>{"use strict"});function mu(){return[{id:"put-bn-before",language:"bn",command:"put",priority:105,template:{format:"{patient} before {destination} \u0995\u09C7 \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-bn-after",language:"bn",command:"put",priority:105,template:{format:"{patient} after {destination} \u0995\u09C7 \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-bn-full",language:"bn",command:"put",priority:100,template:{format:"{patient} \u0995\u09C7 {destination} \u098F \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"\u098F",position:2}}},{id:"put-bn-simple",language:"bn",command:"put",priority:90,template:{format:"\u09B0\u09BE\u0996\u09C1\u09A8 {patient} {destination} \u098F",tokens:[{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]},{type:"role",role:"patient"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]}]},extraction:{patient:{position:1},destination:{position:2}}}]}function du(){return[{id:"put-en-into",language:"en",command:"put",priority:100,template:{format:"put {patient} into {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"into",alternatives:["in","to"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"into",markerAlternatives:["in","to"]}}},{id:"put-en-before",language:"en",command:"put",priority:95,template:{format:"put {patient} before {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-en-after",language:"en",command:"put",priority:95,template:{format:"put {patient} after {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-en-at-end",language:"en",command:"put",priority:96,template:{format:"put {patient} at end of {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"at"},{type:"literal",value:"end"},{type:"literal",value:"of"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{position:5},manner:{default:{type:"literal",value:"at end of"}}}},{id:"put-en-at-start",language:"en",command:"put",priority:96,template:{format:"put {patient} at start of {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"at"},{type:"literal",value:"start"},{type:"literal",value:"of"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{position:5},manner:{default:{type:"literal",value:"at start of"}}}}]}function uu(){return[{id:"put-es-full",language:"es",command:"put",priority:100,template:{format:"poner {patient} en {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar","put"]},{type:"role",role:"patient"},{type:"literal",value:"en",alternatives:["dentro de","a"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["dentro de","a"]}}},{id:"put-es-before",language:"es",command:"put",priority:95,template:{format:"poner {patient} antes de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"antes de",alternatives:["antes"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"antes de",markerAlternatives:["antes"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-es-after",language:"es",command:"put",priority:95,template:{format:"poner {patient} despu\xE9s de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"despu\xE9s de",alternatives:["despues de","despu\xE9s"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"despu\xE9s de",markerAlternatives:["despues de","despu\xE9s"]},manner:{default:{type:"literal",value:"after"}}}}]}function fu(){return[{id:"put-hi-before",language:"hi",command:"put",priority:106,template:{format:"{patient} before {destination} \u0915\u094B \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-hi-after",language:"hi",command:"put",priority:106,template:{format:"{patient} after {destination} \u0915\u094B \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-hi-verb-medial",language:"hi",command:"put",priority:105,template:{format:"{patient} \u0915\u094B \u0930\u0916\u0947\u0902 {destination} \u092E\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"put-hi-full",language:"hi",command:"put",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092E\u0947\u0902 \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"put-hi-simple",language:"hi",command:"put",priority:90,template:{format:"{patient} \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"put-hi-bare",language:"hi",command:"put",priority:80,template:{format:"\u0930\u0916\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function yu(){return[{id:"put-id-full",language:"id",command:"put",priority:100,template:{format:"taruh {patient} ke dalam {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke"},{type:"literal",value:"dalam",alternatives:["di"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:4}}},{id:"put-id-simple-ke",language:"id",command:"put",priority:95,template:{format:"taruh {patient} ke {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["di","pada"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-id-di",language:"id",command:"put",priority:90,template:{format:"taruh {patient} di {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"di"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function gu(){return[{id:"put-it-full",language:"it",command:"put",priority:100,template:{format:"mettere {patient} in {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"in",alternatives:["dentro","nel"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"in",markerAlternatives:["dentro","nel"]}}},{id:"put-it-before",language:"it",command:"put",priority:105,template:{format:"mettere {patient} prima {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"literal",value:"prima"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"prima"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-it-after",language:"it",command:"put",priority:105,template:{format:"mettere {patient} dopo {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"literal",value:"dopo"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"dopo"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-it-simple",language:"it",command:"put",priority:90,template:{format:"mettere {patient}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function vu(){return[{id:"put-pl-full",language:"pl",command:"put",priority:100,template:{format:"umie\u015B\u0107 {patient} w {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw","w\u0142\xF3\u017C","wloz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"w",alternatives:["do","na"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"w",markerAlternatives:["do","na"]}}},{id:"put-pl-before",language:"pl",command:"put",priority:105,template:{format:"umie\u015B\u0107 {patient} przed {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"przed"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"przed"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-pl-after",language:"pl",command:"put",priority:105,template:{format:"umie\u015B\u0107 {patient} po {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"po"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"po"},manner:{default:{type:"literal",value:"after"}}}}]}function hu(){return[{id:"put-ru-full",language:"ru",command:"put",priority:100,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0432\u043E","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0432\u043E","\u043D\u0430"]}}},{id:"put-ru-before",language:"ru",command:"put",priority:105,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-ru-after",language:"ru",command:"put",priority:105,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u043E\u0441\u043B\u0435 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u043E\u0441\u043B\u0435"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u043E\u0441\u043B\u0435"},manner:{default:{type:"literal",value:"after"}}}}]}function zu(){return[{id:"put-th-full",language:"th",command:"put",priority:100,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}},{id:"put-th-before",language:"th",command:"put",priority:105,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E01\u0E48\u0E2D\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E01\u0E48\u0E2D\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E01\u0E48\u0E2D\u0E19"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-th-after",language:"th",command:"put",priority:105,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E2B\u0E25\u0E31\u0E07 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E2B\u0E25\u0E31\u0E07"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E2B\u0E25\u0E31\u0E07"},manner:{default:{type:"literal",value:"after"}}}}]}function ku(){return[{id:"put-uk-full",language:"uk",command:"put",priority:100,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0443","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0443","\u043D\u0430"]}}},{id:"put-uk-before",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-uk-after",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0456\u0441\u043B\u044F {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0456\u0441\u043B\u044F"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0456\u0441\u043B\u044F"},manner:{default:{type:"literal",value:"after"}}}}]}function xu(){return[{id:"put-vi-into",language:"vi",command:"put",priority:100,template:{format:"\u0111\u1EB7t {patient} v\xE0o {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"v\xE0o",alternatives:["v\xE0o trong"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"v\xE0o",markerAlternatives:["v\xE0o trong"]}}},{id:"put-vi-before",language:"vi",command:"put",priority:105,template:{format:"\u0111\u1EB7t {patient} tr\u01B0\u1EDBc {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"tr\u01B0\u1EDBc",markerAlternatives:["tr\u01B0\u1EDBc khi"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-vi-after",language:"vi",command:"put",priority:105,template:{format:"\u0111\u1EB7t {patient} sau {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"sau",alternatives:["sau khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"sau",markerAlternatives:["sau khi"]},manner:{default:{type:"literal",value:"after"}}}}]}function wu(){return[...["before","after"].map(n=>{let e=n==="before"?"\xF1awpaqpi":"qhepapi";return{id:`put-qu-${n}`,language:"qu",command:"put",priority:105,template:{format:`{patient} ${e} {destination} ta churay`,tokens:[{type:"role",role:"patient"},{type:"literal",value:e,alternatives:[n]},{type:"role",role:"destination"},{type:"group",optional:!0,tokens:[{type:"literal",value:"ta"}]},{type:"literal",value:"churay",alternatives:["tiyachiy"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:n}}}}}),{id:"put-qu-patient-first",language:"qu",command:"put",priority:96,template:{format:"{patient} ta {destination} man churay",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"literal",value:"churay",alternatives:["tiyachiy"]}]},extraction:{patient:{position:0},destination:{position:2}}}]}function bu(){return[{id:"put-zh-full",language:"zh",command:"put",priority:100,template:{format:"\u653E\u7F6E {patient} \u5230 {destination}",tokens:[{type:"literal",value:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165","\u7F6E\u5165","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u5230",alternatives:["\u5728","\u4E8E","\u5165"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-zh-ba",language:"zh",command:"put",priority:95,template:{format:"\u628A {patient} \u653E\u7F6E \u5230 {destination}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u653E\u7F6E",alternatives:["\u653E\u5230","\u653E\u5728","\u653E\u5165","\u653E","\u7F6E\u5165"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5230",alternatives:["\u5728","\u4E8E","\u5165"]}]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{marker:"\u5230",markerAlternatives:["\u5728","\u4E8E","\u5165"]}}}]}function qn(n,e,t,r){let a=_n.find(o=>o.lang===n);if(!a)return!1;let i=(o,s)=>(o??"").toLowerCase()===s.toLowerCase();return i(e,a.end)&&i(t,a.at)&&i(r,a.of)}function ds(n,e){let t=_n.find(a=>a.lang===n);if(!t)return!1;let r=e.toLowerCase();return r===t.at.toLowerCase()||r===t.of.toLowerCase()||r===t.end.toLowerCase()}function Tu(n){let e=_n.find(i=>i.lang===n);if(!e)return[];let t=[],r=e.verbAlts?{type:"literal",value:e.verb,alternatives:e.verbAlts}:{type:"literal",value:e.verb},a=i=>{t.push({type:"literal",value:i})};return e.sov?(t.push({type:"role",role:"patient"}),a(e.at),a(e.end),a(e.of),t.push({type:"role",role:"destination"}),e.objMarker&&t.push({type:"literal",value:e.objMarker}),t.push(r)):(t.push(r),e.patientPrefix&&t.push({type:"literal",value:e.patientPrefix}),t.push({type:"role",role:"patient"}),a(e.at),a(e.end),a(e.of),t.push({type:"role",role:"destination"})),[{id:`put-${e.lang}-at-end`,language:e.lang,command:"put",priority:110,template:{format:`put {patient} ${e.at} ${e.end} ${e.of} {destination}`,tokens:t},extraction:{manner:{default:{type:"literal",value:"at end of"}}}}]}function Eu(){return["before","after"].map(n=>{let e=n==="before"?"\u524D\u306B":"\u5F8C\u306B",t=n==="before"?"\u524D":"\u5F8C";return{id:`put-ja-${n}`,language:"ja",command:"put",priority:105,template:{format:`{patient} ${e} {destination} \u3092 \u7F6E\u304F`,tokens:[{type:"role",role:"patient"},{type:"literal",value:e,alternatives:[t]},{type:"role",role:"destination"},{type:"literal",value:"\u3092"},{type:"literal",value:"\u7F6E\u304F",alternatives:["\u5165\u308C\u308B"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:n}}}}})}function Pu(){return["before","after"].map(n=>{let e=n==="before"?"\uC804\uC5D0":"\uD6C4\uC5D0";return{id:`put-ko-${n}`,language:"ko",command:"put",priority:105,template:{format:`{patient} ${e} {destination} \uB97C \uB123\uB2E4`,tokens:[{type:"role",role:"patient"},{type:"literal",value:e},{type:"role",role:"destination"},{type:"literal",value:"\uB97C",alternatives:["\uC744"]},{type:"literal",value:"\uB123\uB2E4",alternatives:["\uB123\uAE30","\uB193\uAE30"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:n}}}}})}function Lu(){let n=(e,t)=>({id:`put-tr-${e}`,language:"tr",command:"put",priority:105,template:{format:`{patient} ${t} {destination} i koy`,tokens:[{type:"role",role:"patient"},{type:"literal",value:t},{type:"role",role:"destination"},{type:"group",optional:!0,tokens:[{type:"literal",value:"i",alternatives:["\u0131","u","\xFC","yi","y\u0131","yu","y\xFC"]}]},{type:"literal",value:"koy",alternatives:["koymak"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:e}}}});return[n("before","\xF6nce"),n("after","sonra")]}function Cu(n){let e=Su.find(t=>t.lang===n);return e?["before","after"].map(t=>{let r=e[t],a=[e.verbAlts?{type:"literal",value:e.verb,alternatives:e.verbAlts}:{type:"literal",value:e.verb}];return e.patientPrefix&&a.push(e.patientPrefixOptional?{type:"group",optional:!0,tokens:[{type:"literal",value:e.patientPrefix}]}:{type:"literal",value:e.patientPrefix}),a.push({type:"role",role:"patient"},{type:"literal",value:r},{type:"role",role:"destination"}),{id:`put-${e.lang}-${t}`,language:e.lang,command:"put",priority:95,template:{format:`${e.verb} {patient} ${r} {destination}`,tokens:a},extraction:{patient:{position:e.patientPrefix&&!e.patientPrefixOptional?2:1},destination:{marker:r},manner:{default:{type:"literal",value:t}}}}}):[]}function kr(n){let e=Cu(n),t=Tu(n);switch(n){case"bn":return[...mu(),...t];case"en":return du();case"es":return[...uu(),...t];case"hi":return[...fu(),...t];case"id":return[...yu(),...e,...t];case"it":return[...gu(),...t];case"ja":return[...Eu(),...t];case"ko":return[...Pu(),...t];case"tr":return[...Lu(),...t];case"pl":return[...vu(),...t];case"ru":return[...hu(),...t];case"qu":return[...wu(),...t];case"th":return[...zu(),...t];case"uk":return[...ku(),...t];case"vi":return[...xu(),...t];case"zh":return[...bu(),...e,...t];default:return[...e,...t]}}var Su,_n,kt=z(()=>{"use strict";Su=[{lang:"de",verb:"setzen",before:"vor",after:"nach"},{lang:"fr",verb:"mettre",before:"avant",after:"apr\xE8s"},{lang:"he",verb:"\u05E9\u05D9\u05DD",patientPrefix:"\u05D0\u05EA",before:"\u05DC\u05E4\u05E0\u05D9",after:"\u05D0\u05D7\u05E8\u05D9"},{lang:"id",verb:"taruh",verbAlts:["letakkan","masukkan","tempatkan"],before:"sebelum",after:"setelah"},{lang:"ms",verb:"letak",before:"sebelum",after:"selepas"},{lang:"pt",verb:"colocar",before:"antes",after:"depois"},{lang:"sw",verb:"weka",before:"kabla",after:"baada"},{lang:"zh",verb:"\u653E\u7F6E",verbAlts:["\u653E","\u653E\u5165"],patientPrefix:"\u628A",patientPrefixOptional:!0,before:"\u4E4B\u524D",after:"\u4E4B\u540E"}],_n=[{lang:"es",verb:"poner",verbAlts:["pon","colocar","put"],at:"en",end:"fin",of:"de"},{lang:"fr",verb:"mettre",at:"\xE0",end:"fin",of:"de"},{lang:"pt",verb:"colocar",at:"em",end:"fim",of:"de"},{lang:"it",verb:"mettere",at:"a",end:"fine",of:"di"},{lang:"de",verb:"setzen",at:"bei",end:"ende",of:"von"},{lang:"sw",verb:"weka",at:"katika",end:"mwisho",of:"ya"},{lang:"id",verb:"taruh",verbAlts:["letakkan","masukkan","tempatkan"],at:"di",end:"akhir",of:"dari"},{lang:"ms",verb:"letak",at:"di",end:"tamat",of:"daripada"},{lang:"vi",verb:"\u0111\u1EB7t",at:"t\u1EA1i",end:"k\u1EBFt th\xFAc",of:"c\u1EE7a"},{lang:"pl",verb:"umie\u015B\u0107",at:"przy",end:"koniec",of:"z"},{lang:"ru",verb:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",at:"\u0443",end:"\u043A\u043E\u043D\u0435\u0446",of:"\u0438\u0437"},{lang:"uk",verb:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",at:"\u0432",end:"\u043A\u0456\u043D\u0435\u0446\u044C",of:"\u0437"},{lang:"th",verb:"\u0E43\u0E2A\u0E48",at:"\u0E17\u0E35\u0E48",end:"\u0E08\u0E1A",of:"\u0E02\u0E2D\u0E07"},{lang:"tl",verb:"ilagay",at:"sa",end:"wakas",of:"ng"},{lang:"ar",verb:"\u0636\u0639",at:"\u0639\u0646\u062F",end:"\u0627\u0644\u0646\u0647\u0627\u064A\u0629",of:"\u0645\u0646"},{lang:"zh",verb:"\u653E\u7F6E",verbAlts:["\u653E","\u653E\u5165"],patientPrefix:"\u628A",at:"\u5728",end:"\u7ED3\u675F",of:"\u7684"},{lang:"he",verb:"\u05E9\u05D9\u05DD",patientPrefix:"\u05D0\u05EA",at:"at",end:"\u05E1\u05D5\u05E3",of:"of"},{lang:"tr",verb:"koy",sov:!0,objMarker:"i",at:"de",end:"son",of:"nin"},{lang:"ja",verb:"\u7F6E\u304F",sov:!0,objMarker:"\u3092",at:"\u3067",end:"\u7D42\u308F\u308A",of:"\u306E"},{lang:"ko",verb:"\uB123\uB2E4",sov:!0,objMarker:"\uB97C",at:"\uC5D0",end:"\uB05D",of:"\uC758"},{lang:"hi",verb:"\u0930\u0916\u0947\u0902",verbAlts:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"],sov:!0,objMarker:"\u0915\u094B",at:"\u092A\u0930",end:"\u0938\u092E\u093E\u092A\u094D\u0924",of:"\u0915\u093E"},{lang:"bn",verb:"\u09B0\u09BE\u0996\u09C1\u09A8",verbAlts:["\u09B0\u09BE\u0996"],sov:!0,objMarker:"\u0995\u09C7",at:"\u098F",end:"\u09B6\u09C7\u09B7",of:"\u09B0"},{lang:"qu",verb:"churay",sov:!0,objMarker:"ta",at:"pi",end:"tukuy",of:"pa"}]});function us(n,e){return Nu[e]?.has(n)?n:Ru[e]?.[n]??n}function Au(){return[{id:"event-handler-bn-sov",language:"bn",command:"on",priority:100,template:{format:"{event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{event:{position:0},action:{position:2}}},{id:"event-handler-bn-with-source",language:"bn",command:"on",priority:95,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 {event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{source:{position:0},event:{marker:"\u09A4\u09C7",position:2},action:{position:4}}},{id:"event-handler-bn-when",language:"bn",command:"on",priority:90,template:{format:"\u09AF\u0996\u09A8 {event} {action}",tokens:[{type:"literal",value:"\u09AF\u0996\u09A8"},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}}]}function ju(){return[{id:"event-de-wenn-source",language:"de",command:"on",priority:115,template:{format:"wenn {event} von {source} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-wenn",language:"de",command:"on",priority:105,template:{format:"wenn {event} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-bei-source",language:"de",command:"on",priority:110,template:{format:"bei {event} von {source} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-bei",language:"de",command:"on",priority:100,template:{format:"bei {event} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-auf",language:"de",command:"on",priority:95,template:{format:"auf {event} {body}",tokens:[{type:"literal",value:"auf"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-im-falle",language:"de",command:"on",priority:90,template:{format:"im Falle von {event} {body}",tokens:[{type:"literal",value:"im Falle von",alternatives:["im Fall von"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Mu(){return[{id:"event-en-when-source",language:"en",command:"on",priority:115,template:{format:"when {event} from {source} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-when",language:"en",command:"on",priority:105,template:{format:"when {event} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-source",language:"en",command:"on",priority:110,template:{format:"on {event} from {source} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-standard",language:"en",command:"on",priority:100,template:{format:"on {event} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-upon",language:"en",command:"on",priority:98,template:{format:"upon {event} {body}",tokens:[{type:"literal",value:"upon"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-if",language:"en",command:"on",priority:95,template:{format:"if {event} {body}",tokens:[{type:"literal",value:"if"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Ou(){return[{id:"event-es-native-al-source",language:"es",command:"on",priority:115,template:{format:"al {event} en {source} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-cuando-source",language:"es",command:"on",priority:112,template:{format:"cuando {event} en {source} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-native-al",language:"es",command:"on",priority:108,template:{format:"al {event} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-standard",language:"es",command:"on",priority:100,template:{format:"en {event} {body}",tokens:[{type:"literal",value:"en",alternatives:["al","cuando"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-source",language:"es",command:"on",priority:110,template:{format:"en {event} desde {source} {body}",tokens:[{type:"literal",value:"en",alternatives:["al"]},{type:"role",role:"event"},{type:"literal",value:"desde",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"desde",markerAlternatives:["de"]}}},{id:"event-es-when",language:"es",command:"on",priority:95,template:{format:"cuando {event} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-conditional-si",language:"es",command:"on",priority:85,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Wu(){return[{id:"event-fr-quand-source",language:"fr",command:"on",priority:115,template:{format:"quand {event} de {source} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-quand",language:"fr",command:"on",priority:105,template:{format:"quand {event} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-sur-source",language:"fr",command:"on",priority:110,template:{format:"sur {event} de {source} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-sur",language:"fr",command:"on",priority:100,template:{format:"sur {event} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-si",language:"fr",command:"on",priority:95,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-a",language:"fr",command:"on",priority:90,template:{format:"\xE0 {event} {body}",tokens:[{type:"literal",value:"\xE0",alternatives:["au"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Iu(){return[{id:"event-hi-standard",language:"hi",command:"on",priority:100,template:{format:"{event} \u092A\u0930",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{event:{position:0}}},{id:"event-hi-with-source",language:"hi",command:"on",priority:95,template:{format:"{source} \u0938\u0947 {event} \u092A\u0930",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{source:{position:0},event:{marker:"\u0938\u0947",position:2}}},{id:"event-hi-bare",language:"hi",command:"on",priority:80,template:{format:"{event}",tokens:[{type:"role",role:"event"}]},extraction:{event:{position:0}}}]}function Vu(){return[{id:"event-id-ketika-source",language:"id",command:"on",priority:115,template:{format:"ketika {event} dari {source} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-ketika",language:"id",command:"on",priority:105,template:{format:"ketika {event} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-pada-source",language:"id",command:"on",priority:110,template:{format:"pada {event} dari {source} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-pada",language:"id",command:"on",priority:100,template:{format:"pada {event} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-jika",language:"id",command:"on",priority:95,template:{format:"jika {event} {body}",tokens:[{type:"literal",value:"jika",alternatives:["kalau","apabila"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-bila",language:"id",command:"on",priority:90,template:{format:"bila {event} {body}",tokens:[{type:"literal",value:"bila"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function _u(){return[{id:"event-handler-it-full",language:"it",command:"on",priority:100,template:{format:"su {event} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-it-from",language:"it",command:"on",priority:95,template:{format:"su {event} da {source} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"da",markerAlternatives:["di"]},action:{position:-1}}}]}function qu(){return[{id:"event-ms-apabila",language:"ms",command:"on",priority:100,template:{format:"apabila {event} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-ms-apabila-source",language:"ms",command:"on",priority:110,template:{format:"apabila {event} dari {source} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}}]}function Ku(){return[{id:"event-handler-pl-full",language:"pl",command:"on",priority:100,template:{format:"gdy {event} na {source}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","przy","z"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"na",markerAlternatives:["w","przy","z"],default:{type:"reference",value:"me"}}}},{id:"event-handler-pl-simple",language:"pl",command:"on",priority:90,template:{format:"gdy {event}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function $u(){return[{id:"event-pt-ao-source",language:"pt",command:"on",priority:115,template:{format:"ao {event} em {source} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"},{type:"literal",value:"em",alternatives:["de","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"em",markerAlternatives:["de","no","na"]}}},{id:"event-pt-quando-source",language:"pt",command:"on",priority:110,template:{format:"quando {event} de {source} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["em","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["em","no","na"]}}},{id:"event-pt-ao",language:"pt",command:"on",priority:105,template:{format:"ao {event} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-quando",language:"pt",command:"on",priority:100,template:{format:"quando {event} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-em",language:"pt",command:"on",priority:95,template:{format:"em {event} {body}",tokens:[{type:"literal",value:"em",alternatives:["no","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-se",language:"pt",command:"on",priority:90,template:{format:"se {event} {body}",tokens:[{type:"literal",value:"se"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Bu(){return[{id:"event-qu-maykama",language:"qu",command:"on",priority:115,template:{format:"maykama {event} {body}",tokens:[{type:"literal",value:"maykama"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-qu-kaqtin",language:"qu",command:"on",priority:105,template:{format:"{event} kaqtin {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"kaqtin",alternatives:["qtin","ptin"]}]},extraction:{event:{position:0}}},{id:"event-qu-standard",language:"qu",command:"on",priority:100,template:{format:"{event} pi {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"pi",alternatives:["kaqpi","kaqpim"]}]},extraction:{event:{position:0}}}]}function Du(){return[{id:"event-handler-ru-full",language:"ru",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u043E\u0442"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u043E\u0442"],default:{type:"reference",value:"me"}}}},{id:"event-handler-ru-simple",language:"ru",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Fu(){return[{id:"event-sw-unapo-source",language:"sw",command:"on",priority:115,template:{format:"unapo {event} kutoka {source} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-unapo",language:"sw",command:"on",priority:105,template:{format:"unapo {event} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-kwa-source",language:"sw",command:"on",priority:110,template:{format:"kwa {event} kutoka {source} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-kwa",language:"sw",command:"on",priority:100,template:{format:"kwa {event} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-ikiwa",language:"sw",command:"on",priority:95,template:{format:"ikiwa {event} {body}",tokens:[{type:"literal",value:"ikiwa",alternatives:["kama"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-baada-ya",language:"sw",command:"on",priority:90,template:{format:"baada ya {event} {body}",tokens:[{type:"literal",value:"baada ya"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Hu(){return[{id:"event-handler-th-svo",language:"th",command:"on",priority:100,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-th-with-source",language:"th",command:"on",priority:95,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} \u0E08\u0E32\u0E01 {source} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"literal",value:"\u0E08\u0E32\u0E01"},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"\u0E08\u0E32\u0E01",position:3},action:{position:4}}}]}function Kn(n){let e=n.verbAlts?{type:"literal",value:n.verb,alternatives:n.verbAlts}:{type:"literal",value:n.verb},t=n.eventMarkerAlts?{type:"literal",value:n.eventMarker,alternatives:n.eventMarkerAlts}:{type:"literal",value:n.eventMarker};return["before","after"].map(r=>{let a={type:"literal",value:r==="before"?n.before:n.after},i={type:"role",role:"patient"},o={type:"role",role:"destination"},s={type:"role",role:"event"},l=n.order==="verb-first"?[e,i,a,o,t,s]:[t,s,e,i,a,o],c=n.order==="verb-first"?{action:{value:"put"},patient:{position:1},destination:{position:3},event:{position:5},manner:{default:{type:"literal",value:r}}}:{action:{value:"put"},event:{position:1},patient:{position:3},destination:{position:5},manner:{default:{type:"literal",value:r}}};return{id:`put-event-${n.lang}-vso-${r}`,language:n.lang,command:"on",priority:160,template:{format:`${n.lang} put ${r}`,tokens:l},extraction:c}})}function Uu(){return[...Kn({lang:"tl",verb:"ilagay",verbAlts:["maglagay"],eventMarker:"kapag",eventMarkerAlts:["sa"],before:"bago",after:"matapos",order:"verb-first"}),{id:"event-tl-kapag-source",language:"tl",command:"on",priority:115,template:{format:"kapag {event} mula_sa {source} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["sa"]},{type:"role",role:"event"},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"mula_sa"}}},{id:"event-tl-kapag",language:"tl",command:"on",priority:105,template:{format:"kapag {event} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["sa"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Gu(){return[...Kn({lang:"uk",verb:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",verbAlts:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],eventMarker:"\u043F\u0440\u0438",eventMarkerAlts:["\u043A\u043E\u043B\u0438"],before:"\u0434\u043E",after:"\u043F\u0456\u0441\u043B\u044F",order:"event-first"}),{id:"event-handler-uk-full",language:"uk",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0432\u0456\u0434"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0432\u0456\u0434"],default:{type:"reference",value:"me"}}}},{id:"event-handler-uk-simple",language:"uk",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Xu(){return[{id:"event-handler-vi-full",language:"vi",command:"on",priority:100,template:{format:"khi {event} tr\xEAn {source}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i"],default:{type:"reference",value:"me"}}}},{id:"event-handler-vi-simple",language:"vi",command:"on",priority:90,template:{format:"khi {event}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Zu(){return[{id:"event-zh-temporal-source",language:"zh",command:"on",priority:115,template:{format:"{event} \u7684\u65F6\u5019 \u4ECE {source} {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:0},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-source",language:"zh",command:"on",priority:110,template:{format:"\u5F53 {event} \u4ECE {source} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-immediate",language:"zh",command:"on",priority:108,template:{format:"\u4E00 {event} \u5C31 {body}",tokens:[{type:"literal",value:"\u4E00"},{type:"role",role:"event"},{type:"literal",value:"\u5C31"}]},extraction:{event:{position:1}}},{id:"event-zh-temporal",language:"zh",command:"on",priority:105,template:{format:"{event} \u7684\u65F6\u5019 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]}]},extraction:{event:{position:0}}},{id:"event-zh-whenever",language:"zh",command:"on",priority:103,template:{format:"\u6BCF\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u6BCF\u5F53",alternatives:["\u6BCF\u6B21"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-circumfix",language:"zh",command:"on",priority:106,template:{format:"\u5F53 {event} \u65F6 {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"},{type:"literal",value:"\u65F6",alternatives:["\u7684\u65F6\u5019","\u65F6\u5019"]}]},extraction:{event:{position:1}}},{id:"event-zh-standard",language:"zh",command:"on",priority:100,template:{format:"\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-completion",language:"zh",command:"on",priority:95,template:{format:"{event} \u4E86 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u4E86"}]},extraction:{event:{position:0}}},{id:"event-zh-conditional",language:"zh",command:"on",priority:90,template:{format:"\u5982\u679C {event} {body}",tokens:[{type:"literal",value:"\u5982\u679C",alternatives:["\u82E5","\u5047\u5982"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Yu(){return[{id:"event-ja-when",language:"ja",command:"on",priority:95,template:{format:"\u3068\u304D {event} {body}",tokens:[{type:"literal",value:"\u3068\u304D",alternatives:["\u6642","\u3068\u304D\u306B"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Ju(){return[{id:"event-tr-when",language:"tr",command:"on",priority:95,template:{format:"iken {event} {body}",tokens:[{type:"literal",value:"iken",alternatives:["durumunda","oldu\u011Funda"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Qu(){return[...Kn({lang:"ar",verb:"\u0636\u0639",verbAlts:["\u0627\u062C\u0639\u0644"],eventMarker:"\u0639\u0646\u062F",eventMarkerAlts:["\u0641\u064A","\u0644\u062F\u0649","\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u062D\u064A\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],before:"\u0642\u0628\u0644",after:"\u0628\u0639\u062F",order:"verb-first"}),{id:"event-ar-when",language:"ar",command:"on",priority:95,template:{format:"\u0639\u0646\u062F\u0645\u0627 {event} {body}",tokens:[{type:"literal",value:"\u0639\u0646\u062F\u0645\u0627",alternatives:["\u062D\u064A\u0646","\u0644\u0645\u0651\u0627"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function ef(){return[{id:"event-he-when",language:"he",command:"on",priority:95,template:{format:"\u05DB\u05D0\u05E9\u05E8 {event} {body}",tokens:[{type:"literal",value:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function xr(n){switch(n){case"bn":return Au();case"de":return ju();case"en":return Mu();case"es":return Ou();case"fr":return Wu();case"hi":return Iu();case"id":return Vu();case"it":return _u();case"ms":return qu();case"pl":return Ku();case"pt":return $u();case"qu":return Bu();case"ru":return Du();case"sw":return Fu();case"th":return Hu();case"tl":return Uu();case"uk":return Gu();case"vi":return Xu();case"zh":return Zu();case"ja":return Yu();case"tr":return Ju();case"ar":return Qu();case"he":return ef();default:return[]}}var Ge,Ru,Nu,xt=z(()=>{"use strict";Ge={ko:{\uD074\uB9AD:"click",\uC785\uB825:"input",\uBCC0\uACBD:"change",\uC81C\uCD9C:"submit",\uD0A4\uB2E4\uC6B4:"keydown",\uD0A4\uC5C5:"keyup",\uB9C8\uC6B0\uC2A4\uC624\uBC84:"mouseover",\uB9C8\uC6B0\uC2A4\uC544\uC6C3:"mouseout",\uB9C8\uC6B0\uC2A4\uB2E4\uC6B4:"mousedown",\uB9C8\uC6B0\uC2A4\uC5C5:"mouseup",\uD3EC\uCEE4\uC2A4:"focus",\uBE14\uB7EC:"blur",\uB85C\uB4DC:"load",\uB9AC\uC0AC\uC774\uC988:"resize",\uC2A4\uD06C\uB864:"scroll"},ja:{\u30AF\u30EA\u30C3\u30AF:"click",\u5165\u529B:"input",\u5909\u66F4:"change",\u9001\u4FE1:"submit",\u30AD\u30FC\u30C0\u30A6\u30F3:"keydown",\u30AD\u30FC\u30A2\u30C3\u30D7:"keyup",\u30AD\u30FC\u30D7\u30EC\u30B9:"keypress",\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC:"mouseover",\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8:"mouseout",\u30DE\u30A6\u30B9\u62BC\u4E0B:"mousedown",\u30DE\u30A6\u30B9\u89E3\u653E:"mouseup",\u30D5\u30A9\u30FC\u30AB\u30B9:"focus",\u30D6\u30E9\u30FC:"blur",\u30ED\u30FC\u30C9:"load",\u8AAD\u307F\u8FBC\u307F:"load",\u30B5\u30A4\u30BA\u5909\u66F4:"resize",\u30B9\u30AF\u30ED\u30FC\u30EB:"scroll"},ar:{\u0627\u0644\u0646\u0642\u0631:"click",\u0646\u0642\u0631:"click",\u0627\u0644\u0625\u062F\u062E\u0627\u0644:"input",\u0625\u062F\u062E\u0627\u0644:"input",\u0627\u0644\u062A\u063A\u064A\u064A\u0631:"change",\u062A\u063A\u064A\u064A\u0631:"change",\u0627\u0644\u0625\u0631\u0633\u0627\u0644:"submit",\u0625\u0631\u0633\u0627\u0644:"submit","\u0636\u063A\u0637 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keydown","\u0631\u0641\u0639 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keyup","\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0645\u0627\u0648\u0633":"mouseover",\u0627\u0644\u062A\u0631\u0643\u064A\u0632:"focus",\u062A\u062D\u0645\u064A\u0644:"load",\u062A\u0645\u0631\u064A\u0631:"scroll"},es:{clic:"click",click:"click",entrada:"input",cambio:"change",env\u00EDo:"submit",enviar:"submit","tecla abajo":"keydown","tecla arriba":"keyup","rat\xF3n encima":"mouseover","rat\xF3n fuera":"mouseout",enfoque:"focus",desenfoque:"blur",carga:"load",desplazamiento:"scroll"},tr:{t\u0131klama:"click",t\u0131kla:"click",t\u0131k:"click",giri\u015F:"input",girdi:"input",de\u011Fi\u015Fiklik:"change",de\u011Fi\u015Fim:"change",g\u00F6nderme:"submit",g\u00F6nder:"submit",tu\u015Fbasma:"keydown",tu\u015Fb\u0131rakma:"keyup",fare_bas:"mousedown",fare_b\u0131rak:"mouseup",farei\u00E7inde:"mouseover",fared\u0131\u015F\u0131nda:"mouseout",odaklanma:"focus",odak:"focus",bulan\u0131kl\u0131k:"blur",y\u00FCkleme:"load",y\u00FCkle:"load",boyutland\u0131rma:"resize",boyutland\u0131r:"resize",kayd\u0131rma:"scroll"},pt:{clique:"click",clicar:"click",click:"click",entrada:"input",inserir:"input",mudan\u00E7a:"change",mudanca:"change",alterar:"change",envio:"submit",enviar:"submit","tecla baixo":"keydown","tecla cima":"keyup","pressionar tecla":"keydown","soltar tecla":"keyup","mouse sobre":"mouseover","mouse fora":"mouseout",foco:"focus",focar:"focus",desfoque:"blur",desfocar:"blur",carregar:"load",carregamento:"load",rolagem:"scroll",rolar:"scroll"},zh:{\u70B9\u51FB:"click",\u5355\u51FB:"click",\u53CC\u51FB:"dblclick",\u8F93\u5165:"input",\u6539\u53D8:"change",\u53D8\u5316:"change",\u53D8\u66F4:"change",\u63D0\u4EA4:"submit",\u53D1\u9001:"submit",\u6309\u952E:"keydown",\u952E\u5165:"keydown",\u677E\u952E:"keyup",\u9F20\u6807\u8FDB\u5165:"mouseover",\u9F20\u6807\u79FB\u5165:"mouseover",\u9F20\u6807\u79BB\u5F00:"mouseout",\u9F20\u6807\u79FB\u51FA:"mouseout",\u7126\u70B9:"focus",\u805A\u7126:"focus",\u5931\u7126:"blur",\u6A21\u7CCA:"blur",\u52A0\u8F7D:"load",\u8F7D\u5165:"load",\u6EDA\u52A8:"scroll"},fr:{clic:"click",cliquer:"click",click:"click",saisie:"input",entr\u00E9e:"input",changement:"change",changer:"change",soumettre:"submit",soumission:"submit",envoi:"submit","touche bas":"keydown","touche haut":"keyup","souris dessus":"mouseover","souris dehors":"mouseout",focus:"focus",focaliser:"focus",d\u00E9focus:"blur",d\u00E9focaliser:"blur",chargement:"load",charger:"load",d\u00E9filement:"scroll",d\u00E9filer:"scroll"},de:{klick:"click",klicken:"click",click:"click",eingabe:"input",eingeben:"input",\u00E4nderung:"change",\u00E4ndern:"change",absenden:"submit",einreichen:"submit","taste runter":"keydown","taste hoch":"keyup","maus \xFCber":"mouseover","maus raus":"mouseout",fokus:"focus",fokussieren:"focus",defokussieren:"blur",unsch\u00E4rfe:"blur",laden:"load",ladung:"load",scrollen:"scroll",bl\u00E4ttern:"scroll"},id:{klik:"click",click:"click",masukan:"input",input:"input",ubah:"change",perubahan:"change",kirim:"submit","tekan tombol":"keydown","lepas tombol":"keyup","mouse masuk":"mouseover","mouse keluar":"mouseout",fokus:"focus",blur:"blur",muat:"load",memuat:"load",gulir:"scroll",menggulir:"scroll"},bn:{\u0995\u09CD\u09B2\u09BF\u0995:"click",\u0987\u09A8\u09AA\u09C1\u099F:"input",\u099C\u09AE\u09BE:"submit",\u09B2\u09CB\u09A1:"load",\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2:"scroll",\u09B0\u09BF\u09B8\u09BE\u0987\u099C:"resize",\u099D\u09BE\u09AA\u09B8\u09BE:"blur",\u09AB\u09CB\u0995\u09BE\u09B8:"focus",\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8:"change"},qu:{click:"click","\xF1it'iy":"click",\u00F1itiy:"click",yaykuchiy:"input",yaykuy:"input",tikray:"change","t'ikray":"change",apachiy:"submit",kachay:"submit","llave uray":"keydown","llave hawa":"keyup","q'away":"focus",qhaway:"focus",paqariy:"blur","mana q'away":"blur",cargay:"load",apakuy:"load",apamuy:"load",kunray:"scroll",muyuy:"scroll",hatun_kay:"resize"},sw:{bofya:"click",click:"click",kubofya:"click",ingiza:"input",kubadilisha:"change",mabadiliko:"change",tuma:"submit",kutuma:"submit","bonyeza chini":"keydown","bonyeza juu":"keyup","panya juu":"mouseover","panya nje":"mouseout",lenga:"focus",kulenga:"focus",blur:"blur",pakia:"load",kupakia:"load",sogeza:"scroll",kusogeza:"scroll"}},Ru=Object.fromEntries(Object.entries(Ge).map(([n,e])=>{let t={};for(let[r,a]of Object.entries(e))a in t||(t[a]=r);return[n,t]})),Nu={ar:new Set(["mouseover"]),bn:new Set(["resize"]),de:new Set(["keydown","keyup","load","mouseout","mouseover"]),fr:new Set(["blur"]),id:new Set(["input","keyup","mouseout","mouseover"]),ja:new Set(["keypress","mousedown","mouseup","resize"]),qu:new Set(["change","focus","load","resize","submit"]),sw:new Set(["change","click","input","keydown","keyup","mouseout","mouseover","submit"]),tr:new Set(["keydown","keyup","load","mousedown","mouseout","mouseover","mouseup","resize","scroll"]),zh:new Set(["focus","keyup","mouseout","mouseover"])}});function tf(n,e,t,r){let a=[];return a.push({type:"literal",value:e}),r&&a.push({type:"literal",value:r}),a.push({type:"role",role:"quantity",expectedTypes:["literal","expression"]}),a.push({type:"literal",value:t}),{id:`repeat-${n}-times`,language:n,command:"repeat",priority:110,template:{format:`${e}${r?" "+r:""} {quantity} ${t}`,tokens:a},extraction:{loopType:{default:{type:"literal",value:"times"}}}}}function nf(n,e,t){return{id:`repeat-${n}-times`,language:n,command:"repeat",priority:110,template:{format:`{quantity} ${e} ${t} repeat`,tokens:[{type:"role",role:"quantity",expectedTypes:["literal","expression"]},{type:"literal",value:e},{type:"literal",value:t},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"times"}}}}}function of(n,e){let t=[{type:"literal",value:"repeat"}];e.forWords&&e.forWords.length>0&&t.push({type:"group",optional:!0,tokens:e.forWords.map(r=>({type:"literal",value:r}))}),t.push({type:"role",role:"patient",expectedTypes:["expression","reference"]});for(let r of e.inWords)t.push({type:"literal",value:r});return t.push({type:"role",role:"source",expectedTypes:["selector","expression","reference"]}),{id:`repeat-${n}-for-in`,language:n,command:"repeat",priority:110,template:{format:`repeat [${(e.forWords??[]).join(" ")}] {patient} ${e.inWords.join(" ")} {source}`,tokens:t},extraction:{loopType:{default:{type:"literal",value:"for"}}}}}function lf(n,e){let t=[{type:"literal",value:"repeat"}];for(let r of e.pre??[])t.push({type:"literal",value:r});return t.push({type:"literal",value:e.whileWord}),t.push({type:"role",role:"condition",expectedTypes:["property-path","expression"]}),{id:`repeat-${n}-while-head`,language:n,command:"repeat",priority:110,template:{format:`repeat ${(e.pre??[]).join(" ")} ${e.whileWord} {condition}`,tokens:t},extraction:{loopType:{default:{type:"literal",value:"while"}}}}}function pf(n,e){let t=[{type:"literal",value:"repeat"}];for(let r of e.pre??[])t.push({type:"literal",value:r});return t.push({type:"literal",value:e.untilWord}),e.preEvent&&t.push({type:"literal",value:e.preEvent}),t.push({type:"literal",value:e.eventWord}),t.push({type:"role",role:"event",expectedTypes:["literal","expression"]}),t.push({type:"group",optional:!0,tokens:[{type:"literal",value:e.fromWord},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]}),{id:`repeat-${n}-until-head`,language:n,command:"repeat",priority:110,template:{format:`repeat ${e.untilWord} ${e.eventWord} {event} [${e.fromWord} {source}]`,tokens:t},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}}function df(n,e){return{id:`repeat-${n}-until-head`,language:n,command:"repeat",priority:110,template:{format:`${e.untilWord} ${e.eventWord} {event} ${e.objMarker} repeat [{source} ${e.fromWord}]`,tokens:[{type:"literal",value:e.untilWord},{type:"literal",value:e.eventWord},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:e.objMarker},{type:"literal",value:"repeat"},{type:"group",optional:!0,tokens:[{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:e.fromWord}]}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}}function wr(n){return $n.get(n)??[]}var rf,af,sf,cf,mf,uf,ff,yf,$n,qe,Bn=z(()=>{"use strict";rf=[["es","repetir","times"],["de","wiederholen","times"],["fr","r\xE9p\xE9ter","times"],["it","ripetere","times"],["pt","repetir","times"],["ru","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","times"],["uk","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438","times"],["pl","powt\xF3rz","times"],["ar","\u0643\u0631\u0631","times"],["he","\u05D7\u05D6\u05D5\u05E8","times","\u05D0\u05EA"],["id","ulangi","times"],["ms","ulang","times"],["sw","rudia","times"],["th","\u0E17\u0E33\u0E0B\u0E49\u0E33","\u0E04\u0E23\u0E31\u0E49\u0E07"],["vi","l\u1EB7p l\u1EA1i","l\u1EA7n"],["tl","ulitin","beses"],["zh","\u91CD\u590D","times","\u628A"]];af=[["ja","times","\u3092"],["ko","times","\uB97C"],["tr","times","i"],["hi","times","\u0915\u094B"],["bn","\u09AC\u09BE\u09B0","\u0995\u09C7"],["qu","times","ta"]];sf=[["en",{forWords:["for"],inWords:["in"]}],["es",{forWords:["para"],inWords:["en"]}],["pt",{forWords:["para"],inWords:["dentro"]}],["fr",{forWords:["pour"],inWords:["en"]}],["it",{forWords:["per"],inWords:["in"]}],["de",{forWords:["f\xFCr"],inWords:["in"]}],["ru",{forWords:["\u0434\u043B\u044F"],inWords:["\u0432"]}],["uk",{forWords:["\u0434\u043B\u044F"],inWords:["\u0443"]}],["pl",{forWords:["dla"],inWords:["w"]}],["ar",{forWords:["\u0644\u0643\u0644"],inWords:["\u0641\u064A"]}],["he",{forWords:["\u05E2\u05D1\u05D5\u05E8","\u05D0\u05EA"],inWords:["in"]}],["hi",{inWords:["\u092E\u0947\u0902"]}],["bn",{inWords:["\u098F"]}],["ja",{inWords:["\u306E","\u4E2D"]}],["ko",{inWords:["\uC548","\uC5D0"]}],["zh",{forWords:["\u4E3A","\u628A"],inWords:["\u5728"]}],["tr",{inWords:["i\xE7inde"]}],["id",{forWords:["untuk"],inWords:["dalam"]}],["ms",{forWords:["untuk"],inWords:["dalam"]}],["sw",{forWords:["kwa"],inWords:["ndani"]}],["th",{forWords:["\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A"],inWords:["\u0E43\u0E19"]}],["vi",{forWords:["v\u1EDBi m\u1ED7i"],inWords:["trong"]}],["tl",{forWords:["para_sa"],inWords:["sa_loob"]}],["qu",{inWords:["uku","pi"]}]];cf=[["en",{whileWord:"while"}],["es",{whileWord:"mientras"}],["pt",{whileWord:"enquanto"}],["fr",{whileWord:"tantque"}],["it",{whileWord:"mentre"}],["de",{whileWord:"w\xE4hrend"}],["ru",{whileWord:"\u043F\u043E\u043A\u0430"}],["uk",{whileWord:"\u043F\u043E\u043A\u0438"}],["pl",{whileWord:"dop\xF3ki"}],["ar",{whileWord:"\u0628\u064A\u0646\u0645\u0627"}],["he",{pre:["\u05D0\u05EA"],whileWord:"\u05DB\u05DC \u05E2\u05D5\u05D3"}],["zh",{pre:["\u628A"],whileWord:"\u5F53"}],["id",{whileWord:"selama"}],["ms",{whileWord:"selagi"}],["sw",{whileWord:"wakati"}],["th",{whileWord:"\u0E43\u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48"}],["vi",{whileWord:"trong khi"}],["tl",{whileWord:"habang"}]];mf=[["es",{untilWord:"hasta",eventWord:"evento",fromWord:"de"}],["pt",{untilWord:"at\xE9",eventWord:"evento",fromWord:"de"}],["fr",{untilWord:"jusqu\xE0",eventWord:"\xE9v\xE9nement",fromWord:"de"}],["it",{untilWord:"fino",eventWord:"evento",fromWord:"da"}],["de",{untilWord:"bis",eventWord:"ereignis",fromWord:"von"}],["ru",{untilWord:"\u0434\u043E",eventWord:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",fromWord:"\u0438\u0437"}],["uk",{untilWord:"\u0434\u043E",eventWord:"\u043F\u043E\u0434\u0456\u044F",fromWord:"\u0437"}],["pl",{untilWord:"a\u017C",eventWord:"zdarzenie",fromWord:"z"}],["ar",{untilWord:"\u062D\u062A\u0649",eventWord:"\u062D\u062F\u062B",fromWord:"\u0645\u0646"}],["he",{untilWord:"\u05E2\u05D3",preEvent:"\u05D0\u05EA",eventWord:"\u05D0\u05D9\u05E8\u05D5\u05E2",fromWord:"\u05DE"}],["id",{untilWord:"sampai",eventWord:"peristiwa",fromWord:"dari"}],["ms",{untilWord:"sehingga",eventWord:"peristiwa",fromWord:"dari"}],["sw",{untilWord:"hadi",eventWord:"tukio",fromWord:"kutoka"}],["th",{untilWord:"\u0E08\u0E19\u0E16\u0E36\u0E07",eventWord:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",fromWord:"\u0E08\u0E32\u0E01"}],["vi",{untilWord:"cho \u0111\u1EBFn khi",eventWord:"s\u1EF1 ki\u1EC7n",fromWord:"t\u1EEB"}],["tl",{untilWord:"hanggang",eventWord:"pangyayari",fromWord:"mula_sa"}],["zh",{pre:["\u628A"],untilWord:"\u76F4\u5230",eventWord:"\u4E8B\u4EF6",fromWord:"\u4ECE"}]];uf={id:"repeat-qu-midclause-until-head",language:"qu",command:"repeat",priority:109,template:{format:"until event {event} ta {source} manta repeat",tokens:[{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}},ff=[["hi",{untilWord:"\u0924\u0915",eventWord:"\u0918\u091F\u0928\u093E",objMarker:"\u0915\u094B",fromWord:"\u0938\u0947"}],["bn",{untilWord:"\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",eventWord:"\u0998\u099F\u09A8\u09BE",objMarker:"\u0995\u09C7",fromWord:"\u09A5\u09C7\u0995\u09C7"}],["ja",{untilWord:"\u307E\u3067",eventWord:"\u30A4\u30D9\u30F3\u30C8",objMarker:"\u3092",fromWord:"\u304B\u3089"}],["ko",{untilWord:"\uAE4C\uC9C0",eventWord:"\uC774\uBCA4\uD2B8",objMarker:"\uB97C",fromWord:"\uC5D0\uC11C"}],["tr",{untilWord:"kadar",eventWord:"olay",objMarker:"i",fromWord:"den"}]],yf={id:"repeat-qu-until-head",language:"qu",command:"repeat",priority:110,template:{format:"hayk _ a until event {event} ta {source} manta repeat",tokens:[{type:"literal",value:"hayk"},{type:"literal",value:"_"},{type:"literal",value:"a"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}},$n=new Map,qe=(n,e)=>{let t=$n.get(n);t?t.push(e):$n.set(n,[e])};for(let[n,e,t,r]of rf)qe(n,tf(n,e,t,r));for(let[n,e,t]of af)qe(n,nf(n,e,t));for(let[n,e]of sf)qe(n,of(n,e));for(let[n,e]of cf)qe(n,lf(n,e));for(let[n,e]of mf)qe(n,pf(n,e));for(let[n,e]of ff)qe(n,df(n,e));qe("qu",yf);qe("qu",uf)});function gf(){return[{id:"wait-zh-ba",language:"zh",command:"wait",priority:105,template:{format:"\u7B49\u5F85 \u628A {duration}",tokens:[{type:"literal",value:"\u7B49\u5F85",alternatives:["\u7B49","\u7A0D\u5019"]},{type:"literal",value:"\u628A"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:2}}}]}function vf(){return[{id:"wait-he-et",language:"he",command:"wait",priority:105,template:{format:"\u05D7\u05DB\u05D4 \u05D0\u05EA {duration}",tokens:[{type:"literal",value:"\u05D7\u05DB\u05D4",alternatives:["\u05D4\u05DE\u05EA\u05DF"]},{type:"literal",value:"\u05D0\u05EA"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:2}}}]}function hf(){return[{id:"wait-ar-from-first",language:"ar",command:"wait",priority:105,template:{format:"\u0627\u0646\u062A\u0638\u0631 \u0645\u0646 {source} {duration}",tokens:[{type:"literal",value:"\u0627\u0646\u062A\u0638\u0631",alternatives:["\u0627\u0646\u062A\u0638\u0631\u064A"]},{type:"literal",value:"\u0645\u0646"},{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"role",role:"duration",expectedTypes:["expression","literal"]}]},extraction:{source:{position:2},duration:{position:3}}}]}function zf(){return[{id:"wait-en-for-event",language:"en",command:"wait",priority:110,template:{format:"wait for {event}",tokens:[{type:"literal",value:"wait"},{type:"literal",value:"for"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{position:2}}}]}function kf(){return[{id:"wait-tl-from-first",language:"tl",command:"wait",priority:105,template:{format:"maghintay mula_sa {source} {duration}",tokens:[{type:"literal",value:"maghintay",alternatives:["hintay"]},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"role",role:"duration",expectedTypes:["expression","literal"]}]},extraction:{source:{position:2},duration:{position:3}}}]}function br(n){switch(n){case"en":return zf();case"zh":return gf();case"he":return vf();case"ar":return hf();case"tl":return kf();default:return[]}}var Dn=z(()=>{"use strict"});var fs={};N(fs,{buildEnglishPatterns:()=>Of});function Of(){let n=[];n.push(...zr("en")),n.push(...kr("en")),n.push(...xr("en")),n.push(...wr("en")),n.push(...br("en")),n.push(xf,wf,Sf,bf,Tf,Ef,Pf,Lf,Cf,Rf,Nf,Af,jf,Mf);let e=hr(mt);return n.push(...e),n}var xf,wf,bf,Sf,Tf,Ef,Pf,Lf,Cf,Rf,Nf,Af,jf,Mf,ys=z(()=>{"use strict";Yt();In();Vn();kt();xt();Bn();Dn();xf={id:"fetch-en-with-response-type",language:"en",command:"fetch",priority:90,template:{format:"fetch {source} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},responseType:{marker:"as"}}},wf={id:"fetch-en-simple",language:"en",command:"fetch",priority:80,template:{format:"fetch {source}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source"}]},extraction:{source:{position:1}}},bf={id:"swap-en-handcrafted",language:"en",command:"swap",priority:110,template:{format:"swap {method} {destination}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"}]},extraction:{method:{position:1},destination:{position:2}}},Sf={id:"swap-en-element",language:"en",command:"swap",priority:120,template:{format:"swap {destination} with {patient}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"destination"},{type:"literal",value:"with"},{type:"role",role:"patient"}]},extraction:{}},Tf={id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},Ef={id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}},Pf={id:"repeat-en-times",language:"en",command:"repeat",priority:110,template:{format:"repeat {quantity} times",tokens:[{type:"literal",value:"repeat"},{type:"role",role:"quantity",expectedTypes:["literal","expression"]},{type:"literal",value:"times"}]},extraction:{loopType:{default:{type:"literal",value:"times"}}}},Lf={id:"repeat-en-forever",language:"en",command:"repeat",priority:110,template:{format:"repeat forever",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"forever"}]},extraction:{loopType:{default:{type:"literal",value:"forever"}}}},Cf={id:"set-en-possessive",language:"en",command:"set",priority:100,template:{format:"set {destination} to {patient} [on {scope}]",tokens:[{type:"literal",value:"set"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"to"},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"scope",optional:!0,expectedTypes:["selector","reference"]}]}]},extraction:{destination:{position:1},patient:{marker:"to"},scope:{marker:"on"}}},Rf={id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"}}},Nf={id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},Af={id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},jf={id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},Mf={id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}}});var ae=z(()=>{"use strict";je()});function Wf(n){return/[áéíóúüñÁÉÍÓÚÜÑ]/.test(n)}var If,Vf,_f,qf,wt,lb,gs=z(()=>{"use strict";ae();If=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"\xE1is",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.82,type:"present"},{ending:"an",stem:"ar",confidence:.8,type:"present"},{ending:"\xE9",stem:"ar",confidence:.85,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"\xF3",stem:"ar",confidence:.82,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"asteis",stem:"ar",confidence:.88,type:"past"},{ending:"aron",stem:"ar",confidence:.88,type:"past"},{ending:"aba",stem:"ar",confidence:.88,type:"past"},{ending:"abas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1bamos",stem:"ar",confidence:.88,type:"past"},{ending:"abamos",stem:"ar",confidence:.85,type:"past"},{ending:"abais",stem:"ar",confidence:.88,type:"past"},{ending:"aban",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"\xE9is",stem:"ar",confidence:.85,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"en",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ad",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],Vf=[{ending:"iendo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"\xE9is",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"en",stem:"er",confidence:.78,type:"present"},{ending:"\xED",stem:"er",confidence:.85,type:"past"},{ending:"iste",stem:"er",confidence:.88,type:"past"},{ending:"i\xF3",stem:"er",confidence:.85,type:"past"},{ending:"io",stem:"er",confidence:.82,type:"past"},{ending:"imos",stem:"er",confidence:.85,type:"past"},{ending:"isteis",stem:"er",confidence:.88,type:"past"},{ending:"ieron",stem:"er",confidence:.88,type:"past"},{ending:"\xEDa",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"\xEDas",stem:"er",confidence:.88,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDais",stem:"er",confidence:.88,type:"past"},{ending:"iais",stem:"er",confidence:.85,type:"past"},{ending:"\xEDan",stem:"er",confidence:.88,type:"past"},{ending:"ian",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],_f=[{ending:"iendo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"\xEDs",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"en",stem:"ir",confidence:.78,type:"present"},{ending:"\xED",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"i\xF3",stem:"ir",confidence:.85,type:"past"},{ending:"io",stem:"ir",confidence:.82,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"isteis",stem:"ir",confidence:.88,type:"past"},{ending:"ieron",stem:"ir",confidence:.88,type:"past"},{ending:"\xEDa",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDas",stem:"ir",confidence:.88,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDais",stem:"ir",confidence:.88,type:"past"},{ending:"iais",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDan",stem:"ir",confidence:.88,type:"past"},{ending:"ian",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],qf=[...If,...Vf,..._f].sort((n,e)=>e.ending.length-n.ending.length),wt=class extends mn{constructor(){super({language:"es",minWordLength:3,minStemLength:2,endings:qf,reflexiveSuffixes:["se","me","te","nos","os"],infinitiveEndings:["ar","er","ir"]})}isNormalizable(e){if(e.length<3)return!1;let t=e.toLowerCase();if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir")||t.endsWith("ando")||t.endsWith("iendo")||t.endsWith("ado")||t.endsWith("ido")||t.endsWith("arse")||t.endsWith("erse")||t.endsWith("irse"))return!0;for(let r of e)if(Wf(r))return!0;return!1}},lb=new wt});var vs={};N(vs,{spanishProfile:()=>Fn});var Fn,Hn=z(()=>{"use strict";Fn={code:"es",name:"Spanish",nativeName:"Espa\xF1ol",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"yo",it:"ello",you:"t\xFA",result:"resultado",event:"evento",target:"objetivo",body:"cuerpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mi",it:"su",you:"tu"},keywords:{mi:"me",tu:"you",su:"it"}},roleMarkers:{destination:{primary:"en",alternatives:["sobre","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["conmutar","toggle"],normalized:"toggle"},add:{primary:"agregar",alternatives:["a\xF1adir"],normalized:"add"},remove:{primary:"quitar",alternatives:["eliminar","remover","sacar","borrar"],normalized:"remove"},put:{primary:"poner",alternatives:["colocar","pon"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"anteponer",normalized:"prepend"},take:{primary:"tomar",normalized:"take"},make:{primary:"hacer",alternatives:["crear"],normalized:"make"},clone:{primary:"clonar",alternatives:["duplicar"],normalized:"clone"},swap:{primary:"intercambiar",alternatives:["permutar"],normalized:"swap"},morph:{primary:"transformar",alternatives:["convertir"],normalized:"morph"},set:{primary:"establecer",alternatives:["fijar","definir"],normalized:"set"},get:{primary:"obtener",alternatives:["conseguir"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["disminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["ense\xF1ar"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transici\xF3n",alternatives:["animar"],normalized:"transition"},on:{primary:"en",alternatives:["al"],normalized:"on"},trigger:{primary:"disparar",alternatives:["activar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"enfocar",alternatives:["enfoque"],normalized:"focus"},blur:{primary:"desenfocar",alternatives:["desenfoque"],normalized:"blur"},open:{primary:"abrir",normalized:"open"},close:{primary:"cerrar",normalized:"close"},select:{primary:"seleccionar",normalized:"select"},clear:{primary:"limpiar",normalized:"clear"},reset:{primary:"reiniciar",alternatives:["restablecer"],normalized:"reset"},breakpoint:{primary:"punto-interrupci\xF3n",alternatives:["punto-interrupcion"],normalized:"breakpoint"},click:{primary:"clic",alternatives:["hacer clic","click"],normalized:"click"},resize:{primary:"redimensionar",normalized:"resize"},hover:{primary:"sobrevolar",alternatives:["pasar por encima"],normalized:"hover"},submit:{primary:"env\xEDo",alternatives:["envio","someter"],normalized:"submit"},input:{primary:"entrada",alternatives:["introducir"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiar"],normalized:"change"},load:{primary:"carga",alternatives:["cargar"],normalized:"load"},scroll:{primary:"desplazar",alternatives:["desplazamiento"],normalized:"scroll"},keydown:{primary:"tecla abajo",normalized:"keydown"},keyup:{primary:"tecla arriba",normalized:"keyup"},mouseover:{primary:"rat\xF3n encima",alternatives:["raton encima"],normalized:"mouseover"},mouseout:{primary:"rat\xF3n fuera",alternatives:["raton fuera"],normalized:"mouseout"},mousedown:{primary:"rat\xF3nabajo",normalized:"mousedown"},mouseup:{primary:"rat\xF3narriba",normalized:"mouseup"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},push:{primary:"empujar",alternatives:["push"],normalized:"push"},replace:{primary:"reemplazar",alternatives:["sustituir"],normalized:"replace"},process:{primary:"procesar",normalized:"process"},wait:{primary:"esperar",normalized:"wait"},fetch:{primary:"buscar",alternatives:["recuperar"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"si",normalized:"if"},unless:{primary:"menos",alternatives:["a menos que","salvo"],normalized:"unless"},when:{primary:"cuando",normalized:"when"},where:{primary:"donde",normalized:"where"},else:{primary:"sino",alternatives:["de lo contrario"],normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"mientras",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"detener",alternatives:["parar"],normalized:"halt"},throw:{primary:"lanzar",alternatives:["arrojar"],normalized:"throw"},call:{primary:"llamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"entonces",alternatives:["luego"],normalized:"then"},and:{primary:"y",alternatives:["adem\xE1s","tambi\xE9n"],normalized:"and"},or:{primary:"o",normalized:"or"},not:{primary:"no",normalized:"not"},is:{primary:"es",normalized:"is"},exists:{primary:"existe",normalized:"exists"},empty:{primary:"vac\xEDo",alternatives:["vacio"],normalized:"empty"},end:{primary:"fin",alternatives:["final","terminar"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"as\xEDncrono",alternatives:["asincrono"],normalized:"async"},tell:{primary:"decir",normalized:"tell"},default:{primary:"predeterminar",alternatives:["por defecto"],normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamiento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"pitido",normalized:"beep"},break:{primary:"romper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"salir",normalized:"exit"},pick:{primary:"escoger",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},first:{primary:"primero",alternatives:["primera"],normalized:"first"},last:{primary:"\xFAltimo",alternatives:["ultima"],normalized:"last"},next:{primary:"siguiente",normalized:"next"},previous:{primary:"anterior",normalized:"previous"},closest:{primary:"cercano",normalized:"closest"},parent:{primary:"padre",normalized:"parent"},into:{primary:"dentro",alternatives:["adentro","dentro de"],normalized:"into"},before:{primary:"antes",alternatives:["antes de"],normalized:"before"},after:{primary:"despu\xE9s",alternatives:["despues","despu\xE9s de","despues de"],normalized:"after"},out:{primary:"fuera",alternatives:["fuera de"],normalized:"out"},until:{primary:"hasta",alternatives:["hasta que"],normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"},connect:{primary:"conectar",alternatives:["conectarse"],normalized:"connect"},stream:{primary:"transmitir",alternatives:["flujo"],normalized:"stream"},live:{primary:"en-vivo",alternatives:["vivo","directo"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"vincular",alternatives:["enlazar","bind"],normalized:"bind"},intercept:{primary:"interceptar",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"trabajador",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["fuente-de-eventos"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"al",alternatives:["cuando","en"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},eventMarker:{primary:"al",alternatives:["cuando","en"],position:"before"},temporalMarkers:["cuando","al"]}}});function Kf(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function zs(){return[new Un]}var hs,$f,Bf,Un,ks=z(()=>{"use strict";D();({isLetter:hs,isIdentifierChar:$f}=Kf(/[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]/)),Bf=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\xE9s","despues","dentro","fuera","al","del"]),Un=class{constructor(){this.name="spanish-keyword"}setContext(e){this.context=e}canExtract(e,t){return hs(e[t])}extract(e,t){if(!this.context)throw new Error("SpanishKeywordExtractor: context not set");let r=this.tryMultiWordPhrase(e,t);return r||this.extractSpanishWord(e,t)}tryMultiWordPhrase(e,t){if(!this.context)return null;let r=["de lo contrario","de lo normal","por defecto","de nuevo","de otra manera"];for(let a of r)if(e.slice(t,t+a.length).toLowerCase()===a.toLowerCase()){let o=t+a.length;if(o>=e.length||ze(e[o])||!hs(e[o])){let s=this.context.lookupKeyword(a);return{value:e.slice(t,o),length:a.length,metadata:{normalized:s?.normalized,multiWord:!0}}}}return null}extractSpanishWord(e,t){if(!this.context)return null;let r=t,a="";for(;r<e.length&&$f(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=Bf.has(i),s=this.context.lookupKeyword(a),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var xs={};N(xs,{SpanishTokenizer:()=>Sr,spanishTokenizer:()=>Hf});var Df,Ff,Sr,Hf,ws=z(()=>{"use strict";D();gs();Hn();G();X();ks();Df=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\xE9s","despues","dentro","fuera","al","del"]),Ff=[{native:"verdadero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milisegundo",normalized:"ms"},{native:"milisegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"m\xED",normalized:"me"},{native:"destino",normalized:"target"}],Sr=class extends R{constructor(){super();this.language="es";this.direction="ltr";this.initializeKeywordsFromProfile(Fn,Ff),this.setNormalizer(new wt),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(zs()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Df.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Hf=new Sr});function bs(n){let e=n.charCodeAt(0);return e>=12352&&e<=12447}function Xf(n){let e=n.charCodeAt(0);return e>=12448&&e<=12543}function Zf(n){let e=n.charCodeAt(0);return e>=19968&&e<=40959||e>=13312&&e<=19903}function Yf(n){for(let e of n)if(bs(e)||Xf(e)||Zf(e))return!0;return!1}var Uf,Gf,bt,zb,Ss=z(()=>{"use strict";ae();Uf=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to",minStemLength:2},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u305F\u3089",confidence:.85,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u308C\u3070",confidence:.82,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3057\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3067\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304A\u304F",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u307F\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u3042\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3067\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3061\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3058\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3061\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u3058\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u307E\u3057\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u307E\u305B\u3093",confidence:.85,conjugationType:"negative",minStemLength:2},{pattern:"\u307E\u3059",confidence:.85,conjugationType:"polite",minStemLength:2},{pattern:"\u3066",confidence:.85,conjugationType:"te-form",minStemLength:2},{pattern:"\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u306A\u3044",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"\u306A\u304B\u3063\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3089\u308C\u308B",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"\u308C\u308B",confidence:.78,conjugationType:"potential",minStemLength:2},{pattern:"\u3089\u308C\u305F",confidence:.8,conjugationType:"passive",minStemLength:2},{pattern:"\u3055\u305B\u308B",confidence:.8,conjugationType:"causative",minStemLength:2},{pattern:"\u305B\u308B",confidence:.78,conjugationType:"causative",minStemLength:2},{pattern:"\u3088\u3046",confidence:.8,conjugationType:"volitional",minStemLength:2},{pattern:"\u308B",confidence:.75,conjugationType:"dictionary",minStemLength:3}],Gf=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara"},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to"},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba"},{pattern:"\u3057\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u307E\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3057\u307E\u3059",confidence:.85,conjugationType:"polite"},{pattern:"\u3057\u306A\u3044",confidence:.82,conjugationType:"negative"},{pattern:"\u3057\u3066",confidence:.85,conjugationType:"te-form"},{pattern:"\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3059\u308B",confidence:.88,conjugationType:"dictionary"}];bt=class{constructor(){this.language="ja"}isNormalizable(e){if(!Yf(e)||e.length<2)return!1;let t=e[e.length-1];return bs(t)}normalize(e){let t=this.normalizeCompound(e);if(t)return t;let r=this.trySuruNormalization(e);if(r)return r;for(let a of Uf)if(e.endsWith(a.pattern)){let i=e.slice(0,-a.pattern.length),o=a.minStemLength??2;if(i.length<o)continue;let s={removedSuffixes:[a.pattern]};return a.conjugationType&&(s.conjugationType=a.conjugationType),x(i,a.confidence,s)}return V(e)}trySuruNormalization(e){for(let t of Gf)if(e.endsWith(t.pattern)){let r=e.slice(0,-t.pattern.length);if(r.length<1)continue;return x(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"suru-verb"})}return null}normalizeCompound(e){let t=[{pattern:"\u3066\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3066","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3067\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3067","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3066\u3044\u306A\u3044",suffixes:["\u3066","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3067\u3044\u306A\u3044",suffixes:["\u3067","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3066\u3044\u305F",suffixes:["\u3066","\u3044","\u305F"],confidence:.85,minStemLength:2},{pattern:"\u3067\u3044\u305F",suffixes:["\u3067","\u3044","\u305F"],confidence:.85,minStemLength:2}];for(let{pattern:r,suffixes:a,confidence:i,minStemLength:o}of t)if(e.endsWith(r)){let s=e.slice(0,-r.length);if(s.length<o)continue;return x(s,i,{removedSuffixes:a,conjugationType:"compound"})}return null}},zb=new bt});var Ts={};N(Ts,{japaneseProfile:()=>Gn});var Gn,Xn=z(()=>{"use strict";Gn={code:"ja",name:"Japanese",nativeName:"\u65E5\u672C\u8A9E",regions:["east-asian","priority"],direction:"ltr",script:"cjk",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"end",suffixes:["\u308B","\u3066","\u305F","\u307E\u3059","\u306A\u3044"],subjectDrop:!0},references:{me:"\u81EA\u5206",it:"\u305D\u308C",you:"\u3042\u306A\u305F",result:"\u7D50\u679C",event:"\u30A4\u30D9\u30F3\u30C8",target:"\u30BF\u30FC\u30B2\u30C3\u30C8",body:"\u30DC\u30C7\u30A3"},possessive:{marker:"\u306E",markerPosition:"between",keywords:{\u79C1\u306E:"me",\u3042\u306A\u305F\u306E:"you",\u305D\u306E:"it"}},roleMarkers:{patient:{primary:"\u3092",position:"after"},destination:{primary:"\u306B",alternatives:["\u3078","\u3067","\u306E"],position:"after"},source:{primary:"\u304B\u3089",position:"after"},style:{primary:"\u3067",position:"after"},event:{primary:"\u3092",position:"after"}},keywords:{toggle:{primary:"\u5207\u308A\u66FF\u3048",alternatives:["\u5207\u308A\u66FF\u3048\u308B","\u30C8\u30B0\u30EB","\u30C8\u30B0\u30EB\u3059\u308B"],normalized:"toggle"},add:{primary:"\u8FFD\u52A0",alternatives:["\u8FFD\u52A0\u3059\u308B","\u52A0\u3048\u308B"],normalized:"add"},remove:{primary:"\u524A\u9664",alternatives:["\u524A\u9664\u3059\u308B","\u53D6\u308A\u9664\u304F"],normalized:"remove"},put:{primary:"\u7F6E\u304F",alternatives:["\u5165\u308C\u308B"],normalized:"put"},append:{primary:"\u672B\u5C3E\u8FFD\u52A0",alternatives:["\u672B\u5C3E\u306B\u8FFD\u52A0","\u30A2\u30DA\u30F3\u30C9"],normalized:"append"},prepend:{primary:"\u5148\u982D\u8FFD\u52A0",alternatives:["\u5148\u982D\u306B\u8FFD\u52A0","\u30D7\u30EA\u30DA\u30F3\u30C9"],normalized:"prepend"},take:{primary:"\u53D6\u308B",normalized:"take"},make:{primary:"\u4F5C\u308B",alternatives:["\u4F5C\u6210"],normalized:"make"},clone:{primary:"\u8907\u88FD",alternatives:["\u30AF\u30ED\u30FC\u30F3"],normalized:"clone"},swap:{primary:"\u4EA4\u63DB",alternatives:["\u30B9\u30EF\u30C3\u30D7","\u5165\u308C\u66FF\u3048"],normalized:"swap"},morph:{primary:"\u5909\u5F62",alternatives:["\u30E2\u30FC\u30D5","\u5909\u63DB"],normalized:"morph"},set:{primary:"\u8A2D\u5B9A",alternatives:["\u8A2D\u5B9A\u3059\u308B"],normalized:"set"},get:{primary:"\u53D6\u5F97",alternatives:["\u53D6\u5F97\u3059\u308B","\u30B2\u30C3\u30C8"],normalized:"get"},increment:{primary:"\u5897\u52A0",alternatives:["\u5897\u3084\u3059","\u30A4\u30F3\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"increment"},decrement:{primary:"\u6E1B\u5C11",alternatives:["\u6E1B\u3089\u3059","\u30C7\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"decrement"},log:{primary:"\u8A18\u9332",alternatives:["\u30ED\u30B0","\u51FA\u529B"],normalized:"log"},show:{primary:"\u8868\u793A",alternatives:["\u8868\u793A\u3059\u308B","\u898B\u305B\u308B"],normalized:"show"},hide:{primary:"\u96A0\u3059",alternatives:["\u975E\u8868\u793A","\u975E\u8868\u793A\u306B\u3059\u308B"],normalized:"hide"},transition:{primary:"\u9077\u79FB",alternatives:["\u30C8\u30E9\u30F3\u30B8\u30B7\u30E7\u30F3","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3"],normalized:"transition"},on:{primary:"\u3067",alternatives:["\u6642"],normalized:"on"},trigger:{primary:"\u5F15\u304D\u91D1",alternatives:["\u767A\u706B","\u30C8\u30EA\u30AC\u30FC"],normalized:"trigger"},send:{primary:"\u9001\u308B",alternatives:["\u9001\u4FE1"],normalized:"send"},focus:{primary:"\u30D5\u30A9\u30FC\u30AB\u30B9",alternatives:["\u96C6\u4E2D"],normalized:"focus"},blur:{primary:"\u307C\u304B\u3057",alternatives:["\u30D5\u30A9\u30FC\u30AB\u30B9\u89E3\u9664","\u30D6\u30E9\u30FC"],normalized:"blur"},empty:{primary:"\u7A7A\u306B",alternatives:["\u7A7A\u306B\u3059\u308B"],normalized:"empty"},open:{primary:"\u958B\u304F",alternatives:["\u30AA\u30FC\u30D7\u30F3"],normalized:"open"},close:{primary:"\u9589\u3058\u308B",alternatives:["\u30AF\u30ED\u30FC\u30BA"],normalized:"close"},select:{primary:"\u9078\u3076",alternatives:["\u30BB\u30EC\u30AF\u30C8"],normalized:"select"},clear:{primary:"\u30AF\u30EA\u30A2",alternatives:["\u6D88\u53BB"],normalized:"clear"},reset:{primary:"\u30EA\u30BB\u30C3\u30C8",alternatives:["\u518D\u8A2D\u5B9A"],normalized:"reset"},breakpoint:{primary:"\u30D6\u30EC\u30FC\u30AF\u30DD\u30A4\u30F3\u30C8",normalized:"breakpoint"},go:{primary:"\u79FB\u52D5",alternatives:["\u884C\u304F","\u30CA\u30D3\u30B2\u30FC\u30C8"],normalized:"go"},scroll:{primary:"\u30B9\u30AF\u30ED\u30FC\u30EB",normalized:"scroll"},push:{primary:"\u30D7\u30C3\u30B7\u30E5",normalized:"push"},replace:{primary:"\u7F6E\u63DB",alternatives:["\u7F6E\u304D\u63DB\u3048"],normalized:"replace"},process:{primary:"\u51E6\u7406",normalized:"process"},wait:{primary:"\u5F85\u3064",alternatives:["\u5F85\u6A5F"],normalized:"wait"},fetch:{primary:"\u30D5\u30A7\u30C3\u30C1",normalized:"fetch"},settle:{primary:"\u5B89\u5B9A",alternatives:["\u843D\u3061\u7740\u304F"],normalized:"settle"},if:{primary:"\u3082\u3057",normalized:"if"},when:{primary:"\u3068\u304D",alternatives:["\u3068\u304D\u306B"],normalized:"when"},where:{primary:"\u3069\u3053",normalized:"where"},else:{primary:"\u305D\u3046\u3067\u306A\u3051\u308C\u3070",alternatives:["\u305D\u308C\u4EE5\u5916"],normalized:"else"},unless:{primary:"\u306A\u3044\u9650\u308A",normalized:"unless"},repeat:{primary:"\u7E70\u308A\u8FD4\u3057",alternatives:["\u7E70\u308A\u8FD4\u3059","\u30EA\u30D4\u30FC\u30C8"],normalized:"repeat"},for:{primary:"\u305F\u3081\u306B",alternatives:["\u5404"],normalized:"for"},while:{primary:"\u306E\u9593",alternatives:["\u9593"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u7D9A\u3051\u308B",alternatives:["\u7D99\u7D9A"],normalized:"continue"},halt:{primary:"\u505C\u6B62",alternatives:["\u6B62\u3081\u308B","\u30CF\u30EB\u30C8"],normalized:"halt"},throw:{primary:"\u6295\u3052\u308B",alternatives:["\u30B9\u30ED\u30FC"],normalized:"throw"},call:{primary:"\u547C\u3073\u51FA\u3057",alternatives:["\u30B3\u30FC\u30EB","\u547C\u3076"],normalized:"call"},return:{primary:"\u623B\u308B",alternatives:["\u8FD4\u3059","\u30EA\u30BF\u30FC\u30F3"],normalized:"return"},then:{primary:"\u305D\u308C\u304B\u3089",alternatives:["\u6B21\u306B","\u306A\u3089\u3070","\u306A\u3089"],normalized:"then"},and:{primary:"\u307E\u305F",alternatives:["\u3068","\u305D\u3057\u3066"],normalized:"and"},end:{primary:"\u7D42\u308F\u308A",alternatives:["\u304A\u308F\u308A"],normalized:"end"},js:{primary:"JS\u5B9F\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u975E\u540C\u671F",alternatives:["\u30A2\u30B7\u30F3\u30AF"],normalized:"async"},tell:{primary:"\u4F1D\u3048\u308B",alternatives:["\u30C6\u30EB"],normalized:"tell"},default:{primary:"\u65E2\u5B9A",alternatives:["\u30C7\u30D5\u30A9\u30EB\u30C8"],normalized:"default"},init:{primary:"\u521D\u671F\u5316",alternatives:["\u30A4\u30CB\u30C3\u30C8"],normalized:"init"},behavior:{primary:"\u632F\u308B\u821E\u3044",alternatives:["\u30D3\u30D8\u30A4\u30D3\u30A2"],normalized:"behavior"},install:{primary:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",alternatives:["\u5C0E\u5165"],normalized:"install"},measure:{primary:"\u6E2C\u5B9A",alternatives:["\u8A08\u6E2C","\u30E1\u30B8\u30E3\u30FC"],normalized:"measure"},beep:{primary:"\u30D3\u30FC\u30D7",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u30B3\u30D4\u30FC",normalized:"copy"},exit:{primary:"\u9000\u51FA",normalized:"exit"},pick:{primary:"\u9078\u629E",normalized:"pick"},render:{primary:"\u63CF\u753B",normalized:"render"},into:{primary:"\u3078",alternatives:["\u306B"],normalized:"into"},before:{primary:"\u524D\u306B",alternatives:["\u524D"],normalized:"before"},after:{primary:"\u5F8C\u306B",alternatives:["\u5F8C"],normalized:"after"},until:{primary:"\u307E\u3067",alternatives:["\u8FC4"],normalized:"until"},event:{primary:"\u30A4\u30D9\u30F3\u30C8",alternatives:["\u4E8B\u8C61"],normalized:"event"},from:{primary:"\u304B\u3089",normalized:"from"},connect:{primary:"\u63A5\u7D9A",alternatives:["\u63A5\u7D9A\u3059\u308B"],normalized:"connect"},stream:{primary:"\u30B9\u30C8\u30EA\u30FC\u30E0",alternatives:["\u914D\u4FE1"],normalized:"stream"},live:{primary:"\u30E9\u30A4\u30D6",alternatives:["\u5B9F\u6642\u9593"],normalized:"live"},socket:{primary:"\u30BD\u30B1\u30C3\u30C8",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\u30D0\u30A4\u30F3\u30C9",alternatives:["\u7D50\u3073\u3064\u3051\u308B","bind"],normalized:"bind"},intercept:{primary:"\u30A4\u30F3\u30BF\u30FC\u30BB\u30D7\u30C8",alternatives:["\u508D\u53D7","intercept"],normalized:"intercept"},worker:{primary:"\u30EF\u30FC\u30AB\u30FC",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u30A4\u30D9\u30F3\u30C8\u30BD\u30FC\u30B9"],normalized:"eventsource"}},tokenization:{particles:["\u3092","\u306B","\u3067","\u304B\u3089","\u306E","\u304C","\u306F","\u3082","\u3078","\u3068"],boundaryStrategy:"particle"},eventHandler:{eventMarker:{primary:"\u3067",position:"after"},temporalMarkers:["\u6642","\u3068\u304D"]}}});var Es={};N(Es,{JapaneseTokenizer:()=>Tr,japaneseTokenizer:()=>ey});var Jf,Qf,Tr,ey,Ps=z(()=>{"use strict";D();Ss();Xn();G();X();_i();$i();Pe();Jf=new Set(["\u3092","\u306B","\u3067","\u304B\u3089","\u307E\u3067","\u3078","\u3068","\u306E","\u304C","\u306F","\u3082","\u3088\u308A"]),Qf=[{native:"\u771F",normalized:"true"},{native:"\u507D",normalized:"false"},{native:"\u30CC\u30EB",normalized:"null"},{native:"\u672A\u5B9A\u7FA9",normalized:"undefined"},{native:"\u6700\u521D",normalized:"first"},{native:"\u6700\u5F8C",normalized:"last"},{native:"\u6B21",normalized:"next"},{native:"\u524D",normalized:"previous"},{native:"\u6700\u3082\u8FD1\u3044",normalized:"closest"},{native:"\u89AA",normalized:"parent"},{native:"\u30AF\u30EA\u30C3\u30AF",normalized:"click"},{native:"\u5909\u66F4",normalized:"change"},{native:"\u9001\u4FE1",normalized:"submit"},{native:"\u5165\u529B",normalized:"input"},{native:"\u30ED\u30FC\u30C9",normalized:"load"},{native:"\u8AAD\u307F\u8FBC\u307F",normalized:"load"},{native:"\u30B9\u30AF\u30ED\u30FC\u30EB",normalized:"scroll"},{native:"\u30AD\u30FC\u30C0\u30A6\u30F3",normalized:"keydown"},{native:"\u30AD\u30FC\u30A2\u30C3\u30D7",normalized:"keyup"},{native:"\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC",normalized:"mouseover"},{native:"\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8",normalized:"mouseout"},{native:"\u30DE\u30A6\u30B9\u62BC\u4E0B",normalized:"mousedown"},{native:"\u30DE\u30A6\u30B9\u89E3\u653E",normalized:"mouseup"},{native:"\u307E\u305F\u306F",normalized:"or"},{native:"\u79C1",normalized:"me"},{native:"\u3057\u305F\u3089",normalized:"on"},{native:"\u3059\u308B\u3068",normalized:"on"},{native:"\u6642\u306B",normalized:"on"},{native:"\u79D2",normalized:"s"},{native:"\u30DF\u30EA\u79D2",normalized:"ms"},{native:"\u5206",normalized:"m"},{native:"\u6642\u9593",normalized:"h"}],Tr=class extends R{constructor(){super();this.language="ja";this.direction="ltr";this.initializeKeywordsFromProfile(Gn,Qf),this.normalizer=new bt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new Qt),this.registerExtractor(new Jt),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return Jf.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||t.startsWith("\u300C")||/^\d/.test(t)?"literal":"identifier"}},ey=new Tr});function ty(n){let e=n.charCodeAt(0);return e>=1536&&e<=1791||e>=1872&&e<=1919||e>=2208&&e<=2303||e>=64336&&e<=65023||e>=65136&&e<=65279}function ry(n){for(let e of n)if(ty(e))return!0;return!1}function ny(n){return n.replace(/[\u064B-\u0652\u0670]/g,"")}var ay,iy,oy,sy,St,Rb,Ls=z(()=>{"use strict";ae();ay=[{pattern:"\u0648\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0641\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0628\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0643\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0644\u0644",confidencePenalty:.12,prefixType:"preposition"}],iy=[{pattern:"\u0627\u0644",confidencePenalty:.08,prefixType:"article",minRemaining:2},{pattern:"\u0648",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0641",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0628",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0644",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0643",confidencePenalty:.1,prefixType:"preposition",minRemaining:3}],oy=[{pattern:"\u064A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u062A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0646",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0623",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0627",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],sy=[{pattern:"\u0648\u0646",confidencePenalty:.1,type:"masculine-plural"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"masculine-plural-accusative"},{pattern:"\u0627\u062A",confidencePenalty:.1,type:"feminine-plural"},{pattern:"\u0627\u0646",confidencePenalty:.1,type:"dual-nominative"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"dual-accusative"},{pattern:"\u0647\u0627",confidencePenalty:.1,type:"pronoun-her"},{pattern:"\u0647\u0645",confidencePenalty:.1,type:"pronoun-them"},{pattern:"\u0647\u0646",confidencePenalty:.1,type:"pronoun-them-f"},{pattern:"\u0646\u0627",confidencePenalty:.1,type:"pronoun-us"},{pattern:"\u0643\u0645",confidencePenalty:.1,type:"pronoun-you-pl"},{pattern:"\u0643",confidencePenalty:.08,type:"pronoun-you"},{pattern:"\u0647",confidencePenalty:.08,type:"pronoun-him"},{pattern:"\u064A",confidencePenalty:.08,type:"pronoun-me"},{pattern:"\u0629",confidencePenalty:.08,type:"feminine"}],St=class{constructor(){this.language="ar"}isNormalizable(e){return!(!ry(e)||e.length<2)}normalize(e){let t=ny(e),r=1,a=[],i=[];for(let s of ay)if(t.startsWith(s.pattern)){let l=t.slice(s.pattern.length);if(l.length>=2){t=l,r-=s.confidencePenalty,a.push(s.pattern);break}}if(a.length===0){for(let s of iy)if(t.startsWith(s.pattern)){let l=t.slice(s.pattern.length),c=s.minRemaining??2;if(l.length>=c){t=l,r-=s.confidencePenalty,a.push(s.pattern);break}}}if(!(t.endsWith("\u0627\u062A")||t.endsWith("\u0629")||t.endsWith("\u0648\u0646")||t.endsWith("\u064A\u0646")||t.endsWith("\u0647\u0627")||t.endsWith("\u0647\u0645")||t.endsWith("\u0647\u0646")||t.endsWith("\u0646\u0627")||t.endsWith("\u0643\u0645"))&&(a.length===0||a[0]==="\u0648"||a[0]==="\u0641")){for(let s of oy)if(t.startsWith(s.pattern)){let l=t.slice(s.pattern.length),c=s.minRemaining??3;if(l.length>=c){t=l,r-=s.confidencePenalty,a.push(s.pattern);break}}}for(let s of sy)if(t.endsWith(s.pattern)){let l=t.slice(0,-s.pattern.length);l.length>=2&&(t=l,r-=s.confidencePenalty,i.push(s.pattern))}return r=Math.max(.5,r),a.length===0&&i.length===0?V(e):x(t,r,{removedPrefixes:a,removedSuffixes:i})}},Rb=new St});var Cs={};N(Cs,{arabicProfile:()=>Zn});var Zn,Yn=z(()=>{"use strict";Zn={code:"ar",name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",regions:["priority"],direction:"rtl",script:"arabic",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"\u0623\u0646\u0627",it:"\u0647\u0648",you:"\u0623\u0646\u062A",result:"\u0627\u0644\u0646\u062A\u064A\u062C\u0629",event:"\u0627\u0644\u062D\u062F\u062B",target:"\u0627\u0644\u0647\u062F\u0641",body:"\u062C\u0633\u0645"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u0644\u064A",it:"\u0644\u0647",you:"\u0644\u0643"},keywords:{\u0644\u064A:"me",\u0644\u0643:"you",\u0644\u0647:"it",\u0644\u0647\u0627:"it"}},roleMarkers:{destination:{primary:"\u0639\u0644\u0649",alternatives:["\u0641\u064A","\u0625\u0644\u0649","\u0628","\u0642\u0628\u0644","\u0628\u0639\u062F"],position:"before"},source:{primary:"\u0645\u0646",position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0628\u0640",alternatives:["\u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645"],position:"before"}},keywords:{toggle:{primary:"\u0628\u062F\u0651\u0644",alternatives:["\u0628\u062F\u0644","\u063A\u064A\u0651\u0631","\u063A\u064A\u0631"],normalized:"toggle"},add:{primary:"\u0623\u0636\u0641",alternatives:["\u0627\u0636\u0641"],normalized:"add"},remove:{primary:"\u0627\u062D\u0630\u0641",alternatives:["\u0623\u0632\u0644","\u0627\u0645\u0633\u062D"],normalized:"remove"},put:{primary:"\u0636\u0639",alternatives:["\u0627\u062C\u0639\u0644"],normalized:"put"},append:{primary:"\u0623\u0644\u062D\u0642",normalized:"append"},prepend:{primary:"\u0633\u0628\u0642",normalized:"prepend"},take:{primary:"\u062E\u0630",normalized:"take"},make:{primary:"\u0627\u0635\u0646\u0639",alternatives:["\u0623\u0646\u0634\u0626"],normalized:"make"},clone:{primary:"\u0627\u0633\u062A\u0646\u0633\u062E",normalized:"clone"},swap:{primary:"\u0627\u0633\u062A\u0628\u062F\u0644",alternatives:["\u062A\u0628\u0627\u062F\u0644"],normalized:"swap"},morph:{primary:"\u062D\u0648\u0651\u0644",normalized:"morph"},set:{primary:"\u0627\u0636\u0628\u0637",alternatives:["\u0639\u064A\u0651\u0646","\u062D\u062F\u062F"],normalized:"set"},get:{primary:"\u0627\u062D\u0635\u0644",normalized:"get"},increment:{primary:"\u0632\u0650\u062F",alternatives:["\u0632\u062F","\u0627\u0631\u0641\u0639"],normalized:"increment"},decrement:{primary:"\u0623\u0646\u0642\u0635",alternatives:["\u0627\u0646\u0642\u0635","\u0642\u0644\u0644"],normalized:"decrement"},log:{primary:"\u0633\u062C\u0644",normalized:"log"},show:{primary:"\u0627\u0638\u0647\u0631",alternatives:["\u0623\u0638\u0647\u0631","\u0627\u0639\u0631\u0636"],normalized:"show"},hide:{primary:"\u0627\u062E\u0641",alternatives:["\u0623\u062E\u0641\u0650","\u0627\u062E\u0641\u064A","\u0623\u062E\u0641"],normalized:"hide"},transition:{primary:"\u0627\u0646\u062A\u0642\u0627\u0644",alternatives:["\u0627\u0646\u062A\u0642\u0644"],normalized:"transition"},on:{primary:"\u0639\u0644\u0649",alternatives:["\u0639\u0646\u062F","\u0644\u062F\u0649","\u062D\u064A\u0646"],normalized:"on"},trigger:{primary:"\u062A\u0634\u063A\u064A\u0644",alternatives:["\u0623\u0637\u0644\u0642","\u0641\u0639\u0651\u0644"],normalized:"trigger"},send:{primary:"\u0623\u0631\u0633\u0644",normalized:"send"},focus:{primary:"\u062A\u0631\u0643\u064A\u0632",alternatives:["\u0631\u0643\u0632"],normalized:"focus"},blur:{primary:"\u0636\u0628\u0627\u0628\u064A\u0629",alternatives:["\u0634\u0648\u0634"],normalized:"blur"},empty:{primary:"\u0625\u0641\u0631\u0627\u063A",alternatives:["\u0641\u0627\u0631\u063A"],normalized:"empty"},open:{primary:"\u0627\u0641\u062A\u062D",normalized:"open"},close:{primary:"\u0623\u063A\u0644\u0642",normalized:"close"},select:{primary:"\u0638\u0644\u0644",normalized:"select"},clear:{primary:"\u0646\u0638\u0651\u0641",normalized:"clear"},reset:{primary:"\u0625\u0639\u0627\u062F\u0629-\u0636\u0628\u0637",alternatives:["\u0623\u0639\u062F-\u062A\u0639\u064A\u064A\u0646"],normalized:"reset"},breakpoint:{primary:"\u0646\u0642\u0637\u0629-\u062A\u0648\u0642\u0641",normalized:"breakpoint"},go:{primary:"\u0627\u0630\u0647\u0628",normalized:"go"},scroll:{primary:"\u0645\u0631\u0631",alternatives:["\u062A\u0645\u0631\u064A\u0631"],normalized:"scroll"},push:{primary:"\u0627\u062F\u0641\u0639",alternatives:["\u062F\u0641\u0639"],normalized:"push"},replace:{primary:"\u0627\u0633\u062A\u0628\u062F\u0644_\u0639\u0646\u0648\u0627\u0646",alternatives:["\u0623\u0639\u062F_\u062A\u0639\u064A\u064A\u0646_\u0639\u0646\u0648\u0627\u0646"],normalized:"replace"},process:{primary:"\u0639\u0627\u0644\u062C",alternatives:["\u0645\u0639\u0627\u0644\u062C\u0629"],normalized:"process"},wait:{primary:"\u0627\u0646\u062A\u0638\u0631",normalized:"wait"},fetch:{primary:"\u0627\u062D\u0636\u0631",alternatives:["\u062C\u0644\u0628"],normalized:"fetch"},settle:{primary:"\u0627\u0633\u062A\u0642\u0631",normalized:"settle"},if:{primary:"\u0625\u0630\u0627",normalized:"if"},unless:{primary:"\u0625\u0644\u0627",normalized:"unless"},when:{primary:"\u0639\u0646\u062F\u0645\u0627",normalized:"when"},where:{primary:"\u0623\u064A\u0646",normalized:"where"},else:{primary:"\u0648\u0625\u0644\u0627",alternatives:["\u062E\u0644\u0627\u0641 \u0630\u0644\u0643"],normalized:"else"},repeat:{primary:"\u0643\u0631\u0631",normalized:"repeat"},for:{primary:"\u0644\u0643\u0644",normalized:"for"},while:{primary:"\u0628\u064A\u0646\u0645\u0627",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u0648\u0627\u0635\u0644",normalized:"continue"},halt:{primary:"\u0623\u0648\u0642\u0641",normalized:"halt"},throw:{primary:"\u0627\u0631\u0645",alternatives:["\u0627\u0631\u0645\u0650"],normalized:"throw"},call:{primary:"\u0627\u0633\u062A\u062F\u0639",alternatives:["\u0646\u0627\u062F\u0650"],normalized:"call"},return:{primary:"\u0627\u0631\u062C\u0639",alternatives:["\u0639\u064F\u062F"],normalized:"return"},then:{primary:"\u062B\u0645",alternatives:["\u0628\u0639\u062F\u0647\u0627","\u062B\u0645\u0651"],normalized:"then"},and:{primary:"\u0648\u0623\u064A\u0636\u0627\u064B",alternatives:["\u0623\u064A\u0636\u0627\u064B"],normalized:"and"},end:{primary:"\u0646\u0647\u0627\u064A\u0629",alternatives:["\u0627\u0646\u062A\u0647\u0649","\u0627\u0644\u0646\u0647\u0627\u064A\u0629"],normalized:"end"},js:{primary:"\u062C\u0627\u0641\u0627\u0633\u0643\u0631\u0628\u062A",alternatives:["js"],normalized:"js"},async:{primary:"\u0645\u062A\u0632\u0627\u0645\u0646",normalized:"async"},tell:{primary:"\u0623\u062E\u0628\u0631",normalized:"tell"},default:{primary:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",normalized:"default"},init:{primary:"\u062A\u0647\u064A\u0626\u0629",alternatives:["\u0628\u062F\u0621"],normalized:"init"},behavior:{primary:"\u0633\u0644\u0648\u0643",normalized:"behavior"},install:{primary:"\u062A\u062B\u0628\u064A\u062A",alternatives:["\u062B\u0628\u0651\u062A"],normalized:"install"},measure:{primary:"\u0642\u064A\u0627\u0633",alternatives:["\u0642\u0650\u0633","\u0642\u0633"],normalized:"measure"},beep:{primary:"\u0635\u0641\u0651\u0631",normalized:"beep"},break:{primary:"\u062A\u0648\u0642\u0641",normalized:"break"},copy:{primary:"\u0627\u0646\u0633\u062E",normalized:"copy"},exit:{primary:"\u0627\u062E\u0631\u062C",normalized:"exit"},pick:{primary:"\u0627\u062E\u062A\u0631",normalized:"pick"},render:{primary:"\u0627\u0631\u0633\u0645",normalized:"render"},into:{primary:"\u0641\u064A",alternatives:["\u0625\u0644\u0649"],normalized:"into"},before:{primary:"\u0642\u0628\u0644",normalized:"before"},after:{primary:"\u0628\u0639\u062F",normalized:"after"},until:{primary:"\u062D\u062A\u0649",normalized:"until"},event:{primary:"\u062D\u062F\u062B",normalized:"event"},from:{primary:"\u0645\u0646",normalized:"from"},connect:{primary:"\u0627\u062A\u0635\u0644",alternatives:["\u0627\u062A\u0635\u0627\u0644"],normalized:"connect"},stream:{primary:"\u062A\u062F\u0641\u0642",alternatives:["\u0628\u062B"],normalized:"stream"},live:{primary:"\u0645\u0628\u0627\u0634\u0631",alternatives:["\u062D\u064A"],normalized:"live"},socket:{primary:"\u0645\u0642\u0628\u0633",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\u0627\u0631\u0628\u0637",alternatives:["\u0631\u0628\u0637","bind"],normalized:"bind"},intercept:{primary:"\u0627\u0639\u062A\u0631\u0636",alternatives:["\u0627\u0639\u062A\u0631\u0627\u0636","intercept"],normalized:"intercept"},worker:{primary:"\u0639\u0627\u0645\u0644",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0645\u0635\u062F\u0631-\u0627\u0644\u0623\u062D\u062F\u0627\u062B"],normalized:"eventsource"}},tokenization:{prefixes:["\u0627\u0644","\u0648","\u0641","\u0628","\u0643","\u0644"]},eventHandler:{eventMarker:{primary:"\u0639\u0646\u062F",alternatives:["\u0641\u064A","\u0644\u062F\u0649","\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u062D\u064A\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],position:"before"},temporalMarkers:["\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u0644\u0645\u0651\u0627"],negationMarker:{primary:"\u0639\u062F\u0645",alternatives:["\u0639\u062F\u0645"],position:"before"}}}});var Rs={};N(Rs,{ArabicTokenizer:()=>Er,arabicTokenizer:()=>my});var ly,cy,py,Er,my,Ns=z(()=>{"use strict";D();Ls();Yn();G();X();to();Pe();ro();ao();ly=new Set(["\u0648\u0644","\u0648\u0628","\u0648\u0643","\u0641\u0644","\u0641\u0628","\u0641\u0643"]),cy=new Set(["\u0641\u064A","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062F","\u0628\u064A\u0646","\u0628","\u0644","\u0643"]),py=[{native:"\u0635\u062D\u064A\u062D",normalized:"true"},{native:"\u062E\u0637\u0623",normalized:"false"},{native:"null",normalized:"null"},{native:"\u0641\u0627\u0631\u063A",normalized:"null"},{native:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0641",normalized:"undefined"},{native:"\u0627\u0644\u0623\u0648\u0644",normalized:"first"},{native:"\u0623\u0648\u0644",normalized:"first"},{native:"\u0627\u0644\u0623\u062E\u064A\u0631",normalized:"last"},{native:"\u0622\u062E\u0631",normalized:"last"},{native:"\u0627\u0644\u062A\u0627\u0644\u064A",normalized:"next"},{native:"\u0627\u0644\u0633\u0627\u0628\u0642",normalized:"previous"},{native:"\u0627\u0644\u0623\u0642\u0631\u0628",normalized:"closest"},{native:"\u0627\u0644\u0623\u0628",normalized:"parent"},{native:"\u0627\u0644\u0646\u0642\u0631",normalized:"click"},{native:"\u0646\u0642\u0631",normalized:"click"},{native:"\u0627\u0644\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0627\u0644\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u0627\u0644\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"focus"},{native:"\u0641\u0642\u062F\u0627\u0646 \u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"blur"},{native:"\u0636\u063A\u0637",normalized:"keydown"},{native:"\u0631\u0641\u0639",normalized:"keyup"},{native:"\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseover"},{native:"\u0645\u063A\u0627\u062F\u0631\u0629 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseout"},{native:"\u062A\u062D\u0645\u064A\u0644",normalized:"load"},{native:"\u062A\u0645\u0631\u064A\u0631",normalized:"scroll"},{native:"\u0641\u0623\u0631\u0629 \u0623\u0633\u0641\u0644",normalized:"mousedown"},{native:"\u0641\u0623\u0631\u0629 \u0623\u0639\u0644\u0649",normalized:"mouseup"},{native:"\u0641\u0623\u0631\u0629 \u062F\u062E\u0648\u0644",normalized:"mouseenter"},{native:"\u0641\u0623\u0631\u0629 \u062E\u0631\u0648\u062C",normalized:"mouseleave"},{native:"\u0641\u0623\u0631\u0629 \u0641\u0648\u0642",normalized:"mouseover"},{native:"\u0641\u0623\u0631\u0629 \u062E\u0627\u0631\u062C",normalized:"mouseout"},{native:"\u0641\u0623\u0631\u0629 \u062A\u062D\u0631\u0643",normalized:"mousemove"},{native:"\u0645\u0641\u062A\u0627\u062D \u0623\u0633\u0641\u0644",normalized:"keydown"},{native:"\u0645\u0641\u062A\u0627\u062D \u0623\u0639\u0644\u0649",normalized:"keyup"},{native:"\u0647\u064A",normalized:"it"},{native:"\u062B\u0627\u0646\u064A\u0629",normalized:"s"},{native:"\u062B\u0648\u0627\u0646\u064A",normalized:"s"},{native:"\u0645\u0644\u064A \u062B\u0627\u0646\u064A\u0629",normalized:"ms"},{native:"\u062F\u0642\u064A\u0642\u0629",normalized:"m"},{native:"\u062F\u0642\u0627\u0626\u0642",normalized:"m"},{native:"\u0633\u0627\u0639\u0629",normalized:"h"},{native:"\u0633\u0627\u0639\u0627\u062A",normalized:"h"},{native:"\u0639\u0646\u062F\u0645\u0627",normalized:"on"},{native:"\u062D\u064A\u0646\u0645\u0627",normalized:"on"},{native:"\u0639\u0646\u062F",normalized:"on"},{native:"\u062D\u064A\u0646",normalized:"on"},{native:"\u0644\u0645\u0651\u0627",normalized:"on"},{native:"\u0644\u0645\u0627",normalized:"on"},{native:"\u0644\u062F\u0649",normalized:"on"}],Er=class extends R{constructor(){super();this.language="ar";this.direction="rtl";this.initializeKeywordsFromProfile(Zn,py),this.normalizer=new St,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new or),this.registerExtractor(new ir),this.registerExtractor(new ar),this.registerExtractor(new A),this.registerExtractor(new j)}tokenizeWithExtractors(t){let r=[],a=0;for(;a<t.length;){for(;a<t.length&&ze(t[a]);)a++;if(a>=t.length)break;let i=this.tryMultiWordKeyword(t,a);if(i){r.push(i),a=i.position.end;continue}let o=!1;for(let s of this.extractors)if(s.canExtract(t,a)){let l=s.extract(t,a);if(l){let c=l.metadata?.normalized,p=l.metadata?.stem,m=l.metadata?.stemConfidence,d={};if(l.metadata)for(let[y,g]of Object.entries(l.metadata))y!=="normalized"&&y!=="stem"&&y!=="stemConfidence"&&(d[y]=g);let u;d.procliticType==="conjunction"?u="conjunction":d.procliticType==="preposition"?u="particle":u=this.classifyToken(l.value);let f={};c&&(f.normalized=c),p&&(f.stem=p),m!==void 0&&(f.stemConfidence=m),Object.keys(d).length>0&&(f.metadata=d),r.push(Y(l.value,u,Z(a,a+l.length),Object.keys(f).length>0?f:void 0)),a+=l.length,o=!0;break}}if(!o){let s=t[a],l=this.classifyUnknownChar(s);r.push(Y(s,l,Z(a,a+1))),a++}}return new ce(r,this.language)}classifyToken(t){return ly.has(t)?"conjunction":cy.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":"identifier"}},my=new Er});function dy(n){let e=n.charCodeAt(0);return e>=44032&&e<=55203}function uy(n){for(let e of n)if(dy(e))return!0;return!1}var fy,yy,Tt,$b,As=z(()=>{"use strict";ae();fy=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.85,conjugationType:"honorific-causal",minStemLength:1},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional",minStemLength:1},{pattern:"\uC73C\uC2DC\uBA74",confidence:.85,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uC2DC\uBA74",confidence:.82,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uACE0\uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0 \uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uAE30\uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uAE30 \uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate",minStemLength:1},{pattern:"\uC790\uB9C8\uC790",confidence:.85,conjugationType:"immediate",minStemLength:2},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD574",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uC5B4\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC5B4\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uB2C8\uAE4C",confidence:.85,conjugationType:"causal-nikka",minStemLength:1},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uC744\uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uC744 \uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon",minStemLength:1},{pattern:"\uC73C\uBA74",confidence:.85,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uB2C8\uAE4C",confidence:.82,conjugationType:"causal-nikka",minStemLength:2},{pattern:"\uBA74",confidence:.8,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC2B5\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uB429\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:1},{pattern:"\u3142\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uC138\uC694",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uC2ED\uC2DC\uC624",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC5B4\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uC544\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574",confidence:.8,conjugationType:"present",minStemLength:1},{pattern:"\uC5C8\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uC558\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uACE0\uC788\uB2E4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uACE0\uC788\uC5B4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary",minStemLength:1},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC548\uD558\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC9C0\uC54A\uB2E4",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uB2E4",confidence:.75,conjugationType:"dictionary",minStemLength:2}],yy=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.88,conjugationType:"honorific-causal"},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional"},{pattern:"\uD558\uC168\uC5B4\uC694",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC168\uC5B4",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC2ED\uB2C8\uB2E4",confidence:.85,conjugationType:"honorific-polite"},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate"},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD574",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.88,conjugationType:"obligation"},{pattern:"\uD558\uB2C8\uAE4C",confidence:.88,conjugationType:"causal-nikka"},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon"},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite"},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific"},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific"},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past"},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite"},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past"},{pattern:"\uD574",confidence:.8,conjugationType:"present"},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD574\uC11C",confidence:.82,conjugationType:"connective"},{pattern:"\uD558\uACE0",confidence:.8,conjugationType:"connective"},{pattern:"\uD558\uC9C0\uC54A\uC544\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574",confidence:.82,conjugationType:"negative"},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary"}],Tt=class{constructor(){this.language="ko"}isNormalizable(e){return!(!uy(e)||e.length<2)}normalize(e){let t=this.normalizeCompound(e);if(t)return t;let r=this.tryHadaNormalization(e);if(r)return r;for(let a of fy)if(e.endsWith(a.pattern)){let i=e.slice(0,-a.pattern.length),o=a.minStemLength??2;if(i.length<o)continue;let s={removedSuffixes:[a.pattern]};return a.conjugationType&&(s.conjugationType=a.conjugationType),x(i,a.confidence,s)}return V(e)}tryHadaNormalization(e){for(let t of yy)if(e.endsWith(t.pattern)){let r=e.slice(0,-t.pattern.length);if(r.length<1)continue;return x(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"hada-verb"})}return null}normalizeCompound(e){let t=[{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uC5B4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uC5B4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uB2E4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uB2E4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",suffixes:["\uD558\uACE0","\uB098\uC11C"],confidence:.85,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC5B4",suffixes:["\uD574\uC57C","\uD588\uC5B4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uB2E4",suffixes:["\uD574\uC57C","\uD588\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC2B5\uB2C8\uB2E4",suffixes:["\uD574\uC57C","\uD588\uC2B5\uB2C8\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uC2DC\uBA74\uC11C",suffixes:["\uD558\uC2DC","\uBA74\uC11C"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uC2DC\uBA70",suffixes:["\uD558\uC2DC","\uBA70"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uC5B4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uC5B4"],confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uB2E4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uB2E4"],confidence:.8,conjugationType:"progressive",minStemLength:2}];for(let{pattern:r,suffixes:a,confidence:i,conjugationType:o,minStemLength:s}of t)if(e.endsWith(r)){let l=e.slice(0,-r.length);if(l.length<s)continue;return x(l,i,{removedSuffixes:a,conjugationType:o})}return null}},$b=new Tt});var js={};N(js,{koreanProfile:()=>Jn});var Jn,Qn=z(()=>{"use strict";Jn={code:"ko",name:"Korean",nativeName:"\uD55C\uAD6D\uC5B4",regions:["east-asian","priority"],direction:"ltr",script:"hangul",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!0,verb:{position:"end",suffixes:["\uB2E4","\uC694","\uB2C8\uB2E4","\uC138\uC694"],subjectDrop:!0},references:{me:"\uB098",it:"\uADF8\uAC83",you:"\uB108",result:"\uACB0\uACFC",event:"\uC774\uBCA4\uD2B8",target:"\uB300\uC0C1",body:"\uBC14\uB514"},possessive:{marker:"\uC758",markerPosition:"between",specialForms:{me:"\uB0B4",it:"\uADF8\uAC83\uC758",you:"\uB124"},keywords:{\uB0B4:"me",\uB124:"you",\uADF8\uC758:"it"}},roleMarkers:{patient:{primary:"\uC744",alternatives:["\uB97C"],position:"after"},destination:{primary:"\uC5D0",alternatives:["\uC73C\uB85C","\uB85C","\uC758"],position:"after"},source:{primary:"\uC5D0\uC11C",alternatives:["\uBD80\uD130"],position:"after"},style:{primary:"\uB85C",alternatives:["\uC73C\uB85C"],position:"after"},event:{primary:"\uC744",alternatives:["\uB97C"],position:"after"}},keywords:{toggle:{primary:"\uD1A0\uAE00",normalized:"toggle"},add:{primary:"\uCD94\uAC00",normalized:"add"},remove:{primary:"\uC81C\uAC70",alternatives:["\uC0AD\uC81C"],normalized:"remove"},put:{primary:"\uB123\uB2E4",alternatives:["\uB123\uAE30","\uB193\uAE30"],normalized:"put"},append:{primary:"\uB367\uBD99\uC774\uB2E4",alternatives:["\uB05D\uC5D0\uCD94\uAC00"],normalized:"append"},prepend:{primary:"\uC55E\uC5D0\uCD94\uAC00",alternatives:["\uC120\uB450\uCD94\uAC00"],normalized:"prepend"},take:{primary:"\uAC00\uC838\uC624\uB2E4",normalized:"take"},make:{primary:"\uB9CC\uB4E4\uB2E4",normalized:"make"},clone:{primary:"\uBCF5\uC81C",normalized:"clone"},swap:{primary:"\uAD50\uD658",alternatives:["\uBC14\uAFB8\uB2E4"],normalized:"swap"},morph:{primary:"\uBCC0\uD615",alternatives:["\uBCC0\uD658"],normalized:"morph"},set:{primary:"\uC124\uC815",normalized:"set"},get:{primary:"\uC5BB\uB2E4",normalized:"get"},increment:{primary:"\uC99D\uAC00",normalized:"increment"},decrement:{primary:"\uAC10\uC18C",normalized:"decrement"},log:{primary:"\uB85C\uADF8",normalized:"log"},show:{primary:"\uBCF4\uC774\uB2E4",alternatives:["\uD45C\uC2DC","\uBCF4\uC774\uAE30"],normalized:"show"},hide:{primary:"\uC228\uAE30\uB2E4",alternatives:["\uC228\uAE30\uAE30"],normalized:"hide"},transition:{primary:"\uD2B8\uB79C\uC9C0\uC158",alternatives:["\uC804\uD658"],normalized:"transition"},on:{primary:"\uC5D0",alternatives:["\uC2DC","\uD560 \uB54C"],normalized:"on"},trigger:{primary:"\uD2B8\uB9AC\uAC70",normalized:"trigger"},send:{primary:"\uBCF4\uB0B4\uB2E4",normalized:"send"},focus:{primary:"\uD3EC\uCEE4\uC2A4",normalized:"focus"},blur:{primary:"\uBE14\uB7EC",normalized:"blur"},empty:{primary:"\uBE44\uC6B0\uAE30",normalized:"empty"},open:{primary:"\uC5F4\uAE30",normalized:"open"},close:{primary:"\uB2EB\uAE30",normalized:"close"},select:{primary:"\uACE0\uB974\uAE30",normalized:"select"},clear:{primary:"\uC9C0\uC6B0\uAE30",normalized:"clear"},reset:{primary:"\uC7AC\uC124\uC815",normalized:"reset"},breakpoint:{primary:"\uC911\uB2E8\uC810",normalized:"breakpoint"},click:{primary:"\uD074\uB9AD",normalized:"click"},hover:{primary:"\uD638\uBC84",normalized:"hover"},submit:{primary:"\uC81C\uCD9C",normalized:"submit"},input:{primary:"\uC785\uB825",normalized:"input"},change:{primary:"\uBCC0\uACBD",normalized:"change"},go:{primary:"\uC774\uB3D9",normalized:"go"},scroll:{primary:"\uC2A4\uD06C\uB864",normalized:"scroll"},push:{primary:"\uD478\uC2DC",normalized:"push"},replace:{primary:"\uAD50\uCCB4",alternatives:["\uBC14\uAFB8\uAE30"],normalized:"replace"},process:{primary:"\uCC98\uB9AC",normalized:"process"},wait:{primary:"\uB300\uAE30",normalized:"wait"},fetch:{primary:"\uD328\uCE58",alternatives:["\uAC00\uC838\uC624\uAE30"],normalized:"fetch"},settle:{primary:"\uC548\uC815",normalized:"settle"},if:{primary:"\uB9CC\uC57D",normalized:"if"},when:{primary:"\uB54C",normalized:"when"},where:{primary:"\uC5B4\uB514",normalized:"where"},else:{primary:"\uC544\uB2C8\uBA74",normalized:"else"},unless:{primary:"\uC544\uB2C8\uB77C\uBA74",normalized:"unless"},repeat:{primary:"\uBC18\uBCF5",normalized:"repeat"},for:{primary:"\uAC01\uAC01",normalized:"for"},while:{primary:"\uB3D9\uC548",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\uACC4\uC18D",normalized:"continue"},halt:{primary:"\uC815\uC9C0",normalized:"halt"},throw:{primary:"\uB358\uC9C0\uB2E4",normalized:"throw"},call:{primary:"\uD638\uCD9C",normalized:"call"},return:{primary:"\uBC18\uD658",normalized:"return"},then:{primary:"\uADF8\uB2E4\uC74C",alternatives:["\uADF8\uB7F0\uD6C4"],normalized:"then"},and:{primary:"\uADF8\uB9AC\uACE0",alternatives:["\uB610\uD55C","\uBC0F"],normalized:"and"},matches:{primary:"\uC77C\uCE58",normalized:"matches"},end:{primary:"\uB05D",alternatives:["\uB9C8\uCE68"],normalized:"end"},js:{primary:"JS\uC2E4\uD589",alternatives:["js"],normalized:"js"},async:{primary:"\uBE44\uB3D9\uAE30",normalized:"async"},tell:{primary:"\uB9D0\uD558\uB2E4",normalized:"tell"},default:{primary:"\uAE30\uBCF8\uAC12",normalized:"default"},init:{primary:"\uCD08\uAE30\uD654",normalized:"init"},behavior:{primary:"\uB3D9\uC791",normalized:"behavior"},install:{primary:"\uC124\uCE58",normalized:"install"},measure:{primary:"\uCE21\uC815",normalized:"measure"},beep:{primary:"\uBE44\uD504",normalized:"beep"},break:{primary:"\uC911\uB2E8",normalized:"break"},copy:{primary:"\uBCF5\uC0AC",normalized:"copy"},exit:{primary:"\uB098\uAC00\uAE30",normalized:"exit"},pick:{primary:"\uC120\uD0DD",normalized:"pick"},render:{primary:"\uB80C\uB354\uB9C1",normalized:"render"},into:{primary:"\uC73C\uB85C",normalized:"into"},before:{primary:"\uC804\uC5D0",normalized:"before"},after:{primary:"\uD6C4\uC5D0",normalized:"after"},until:{primary:"\uAE4C\uC9C0",normalized:"until"},event:{primary:"\uC774\uBCA4\uD2B8",normalized:"event"},from:{primary:"\uC5D0\uC11C",normalized:"from"},connect:{primary:"\uC5F0\uACB0",alternatives:["\uC811\uC18D"],normalized:"connect"},stream:{primary:"\uC2A4\uD2B8\uB9BC",alternatives:["\uC2A4\uD2B8\uB9AC\uBC0D"],normalized:"stream"},live:{primary:"\uC2E4\uC2DC\uAC04",alternatives:["\uB77C\uC774\uBE0C"],normalized:"live"},socket:{primary:"\uC18C\uCF13",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\uBC14\uC778\uB4DC",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\uAC00\uB85C\uCC44\uAE30",alternatives:["\uC778\uD130\uC149\uD2B8","intercept"],normalized:"intercept"},worker:{primary:"\uC6CC\uCEE4",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\uC774\uBCA4\uD2B8\uC18C\uC2A4"],normalized:"eventsource"}},tokenization:{particles:["\uC744","\uB97C","\uC774","\uAC00","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uC73C\uB85C","\uB85C","\uC640","\uACFC","\uB3C4"],boundaryStrategy:"space"},eventHandler:{eventMarker:{primary:"\uD560 \uB54C",alternatives:["\uD560\uB54C","\uB54C","\uC5D0"],position:"after"},temporalMarkers:["\uD560 \uB54C","\uD560\uB54C","\uB54C"]}}});var Ms={};N(Ms,{KoreanTokenizer:()=>Pr,koreanTokenizer:()=>hy});var gy,vy,Pr,hy,Os=z(()=>{"use strict";D();As();Qn();G();X();Bi();Ui();Pe();gy=new Set(["\uC774","\uAC00","\uC744","\uB97C","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uB85C","\uC73C\uB85C","\uC640","\uACFC","\uC758","\uB3C4","\uB9CC","\uBD80\uD130","\uAE4C\uC9C0","\uCC98\uB7FC","\uBCF4\uB2E4"]),vy=[{native:"\uCC38",normalized:"true"},{native:"\uAC70\uC9D3",normalized:"false"},{native:"\uB110",normalized:"null"},{native:"\uBBF8\uC815\uC758",normalized:"undefined"},{native:"\uCCAB\uBC88\uC9F8",normalized:"first"},{native:"\uB9C8\uC9C0\uB9C9",normalized:"last"},{native:"\uB2E4\uC74C",normalized:"next"},{native:"\uC774\uC804",normalized:"previous"},{native:"\uAC00\uC7A5\uAC00\uAE4C\uC6B4",normalized:"closest"},{native:"\uBD80\uBAA8",normalized:"parent"},{native:"\uD074\uB9AD",normalized:"click"},{native:"\uB354\uBE14\uD074\uB9AD",normalized:"dblclick"},{native:"\uBCC0\uACBD",normalized:"change"},{native:"\uC81C\uCD9C",normalized:"submit"},{native:"\uC785\uB825",normalized:"input"},{native:"\uB85C\uB4DC",normalized:"load"},{native:"\uC2A4\uD06C\uB864",normalized:"scroll"},{native:"\uD0A4\uB2E4\uC6B4",normalized:"keydown"},{native:"\uD0A4\uC5C5",normalized:"keyup"},{native:"\uB9C8\uC6B0\uC2A4\uC624\uBC84",normalized:"mouseover"},{native:"\uB9C8\uC6B0\uC2A4\uC544\uC6C3",normalized:"mouseout"},{native:"\uB9C8\uC6B0\uC2A4\uB2E4\uC6B4",normalized:"mousedown"},{native:"\uB9C8\uC6B0\uC2A4\uC5C5",normalized:"mouseup"},{native:"\uB0B4",normalized:"my"},{native:"\uADF8\uAC83\uC758",normalized:"its"},{native:"\uADF8\uB2E4\uC74C",normalized:"then"},{native:"\uADF8\uB7F0\uD6C4",normalized:"then"},{native:"\uADF8\uB7EC\uBA74",normalized:"then"},{native:"\uADF8\uB9AC\uACE0",normalized:"and"},{native:"\uB610\uB294",normalized:"or"},{native:"\uC544\uB2C8",normalized:"not"},{native:"\uC774\uB2E4",normalized:"is"},{native:"\uCD08",normalized:"s"},{native:"\uBC00\uB9AC\uCD08",normalized:"ms"},{native:"\uBD84",normalized:"m"},{native:"\uC2DC\uAC04",normalized:"h"}],Pr=class extends R{constructor(){super();this.language="ko";this.direction="ltr";this.initializeKeywordsFromProfile(Jn,vy),this.normalizer=new Tt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new tr),this.registerExtractor(new er),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return gy.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":"identifier"}},hy=new Pr});var Ws={};N(Ws,{chineseProfile:()=>ea});var ea,ta=z(()=>{"use strict";ea={code:"zh",name:"Chinese",nativeName:"\u4E2D\u6587",regions:["east-asian","priority"],direction:"ltr",script:"cjk",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,verb:{position:"second",subjectDrop:!0},references:{me:"\u6211",it:"\u5B83",you:"\u4F60",result:"\u7ED3\u679C",event:"\u4E8B\u4EF6",target:"\u76EE\u6807",body:"\u4E3B\u4F53"},possessive:{marker:"\u7684",markerPosition:"between",keywords:{\u6211\u7684:"me",\u4F60\u7684:"you",\u5B83\u7684:"it",\u4ED6\u7684:"it",\u5979\u7684:"it"}},roleMarkers:{destination:{primary:"\u5728",alternatives:["\u5230","\u4E8E"],position:"before"},source:{primary:"\u4ECE",alternatives:["\u7531"],position:"before"},patient:{primary:"\u628A",position:"before"},style:{primary:"\u7528",alternatives:["\u4EE5"],position:"before"}},keywords:{toggle:{primary:"\u5207\u6362",normalized:"toggle"},add:{primary:"\u6DFB\u52A0",alternatives:["\u52A0"],normalized:"add"},remove:{primary:"\u79FB\u9664",alternatives:["\u5220\u9664","\u53BB\u6389"],normalized:"remove"},put:{primary:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165"],normalized:"put"},append:{primary:"\u8FFD\u52A0",alternatives:["\u9644\u52A0"],normalized:"append"},prepend:{primary:"\u524D\u7F6E",alternatives:["\u9884\u7F6E"],normalized:"prepend"},take:{primary:"\u62FF\u53D6",normalized:"take"},make:{primary:"\u5236\u4F5C",normalized:"make"},clone:{primary:"\u514B\u9686",normalized:"clone"},swap:{primary:"\u4EA4\u6362",normalized:"swap"},morph:{primary:"\u53D8\u5F62",alternatives:["\u8F6C\u6362"],normalized:"morph"},set:{primary:"\u8BBE\u7F6E",alternatives:["\u8BBE\u5B9A"],normalized:"set"},get:{primary:"\u83B7\u53D6",alternatives:["\u83B7\u5F97","\u53D6\u5F97"],normalized:"get"},increment:{primary:"\u589E\u52A0",normalized:"increment"},decrement:{primary:"\u51CF\u5C11",normalized:"decrement"},log:{primary:"\u65E5\u5FD7",normalized:"log"},show:{primary:"\u663E\u793A",alternatives:["\u5C55\u793A"],normalized:"show"},hide:{primary:"\u9690\u85CF",normalized:"hide"},transition:{primary:"\u8FC7\u6E21",normalized:"transition"},on:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},trigger:{primary:"\u89E6\u53D1",normalized:"trigger"},send:{primary:"\u53D1\u9001",normalized:"send"},focus:{primary:"\u805A\u7126",normalized:"focus"},blur:{primary:"\u5931\u7126",normalized:"blur"},empty:{primary:"\u6E05\u7A7A",alternatives:["\u7A7A\u7684"],normalized:"empty"},open:{primary:"\u6253\u5F00",normalized:"open"},close:{primary:"\u5173\u95ED",normalized:"close"},select:{primary:"\u9009\u62E9",normalized:"select"},clear:{primary:"\u6E05\u9664",normalized:"clear"},reset:{primary:"\u91CD\u7F6E",normalized:"reset"},breakpoint:{primary:"\u65AD\u70B9",normalized:"breakpoint"},click:{primary:"\u70B9\u51FB",normalized:"click"},hover:{primary:"\u60AC\u505C",alternatives:["\u60AC\u6D6E"],normalized:"hover"},submit:{primary:"\u63D0\u4EA4",normalized:"submit"},input:{primary:"\u8F93\u5165",normalized:"input"},change:{primary:"\u6539\u53D8",alternatives:["\u53D8\u5316"],normalized:"change"},go:{primary:"\u524D\u5F80",normalized:"go"},scroll:{primary:"\u6EDA\u52A8",normalized:"scroll"},push:{primary:"\u63A8\u9001",normalized:"push"},replace:{primary:"\u66FF\u6362",normalized:"replace"},process:{primary:"\u5904\u7406",normalized:"process"},wait:{primary:"\u7B49\u5F85",normalized:"wait"},fetch:{primary:"\u6293\u53D6",normalized:"fetch"},settle:{primary:"\u7A33\u5B9A",normalized:"settle"},if:{primary:"\u5982\u679C",normalized:"if"},unless:{primary:"\u9664\u975E",normalized:"unless"},when:{primary:"\u4F55\u65F6",normalized:"when"},where:{primary:"\u54EA\u91CC",normalized:"where"},else:{primary:"\u5426\u5219",normalized:"else"},matches:{primary:"\u5339\u914D",normalized:"matches"},repeat:{primary:"\u91CD\u590D",normalized:"repeat"},for:{primary:"\u4E3A",normalized:"for"},while:{primary:"\u6301\u7EED",normalized:"while"},continue:{primary:"\u7EE7\u7EED",normalized:"continue"},halt:{primary:"\u505C\u6B62",normalized:"halt"},throw:{primary:"\u629B\u51FA",normalized:"throw"},call:{primary:"\u8C03\u7528",normalized:"call"},return:{primary:"\u8FD4\u56DE",normalized:"return"},then:{primary:"\u7136\u540E",alternatives:["\u63A5\u7740","\u90A3\u4E48"],normalized:"then"},and:{primary:"\u5E76\u4E14",alternatives:["\u548C","\u800C\u4E14"],normalized:"and"},end:{primary:"\u7ED3\u675F",alternatives:["\u7EC8\u6B62","\u5B8C"],normalized:"end"},js:{primary:"JS\u6267\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u5F02\u6B65",normalized:"async"},tell:{primary:"\u544A\u8BC9",normalized:"tell"},default:{primary:"\u9ED8\u8BA4",normalized:"default"},init:{primary:"\u521D\u59CB\u5316",normalized:"init"},behavior:{primary:"\u884C\u4E3A",normalized:"behavior"},install:{primary:"\u5B89\u88C5",normalized:"install"},measure:{primary:"\u6D4B\u91CF",normalized:"measure"},beep:{primary:"\u8702\u9E23",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u590D\u5236",normalized:"copy"},exit:{primary:"\u9000\u51FA",normalized:"exit"},pick:{primary:"\u9009\u53D6",normalized:"pick"},render:{primary:"\u6E32\u67D3",normalized:"render"},into:{primary:"\u8FDB\u5165",normalized:"into"},before:{primary:"\u4E4B\u524D",normalized:"before"},after:{primary:"\u4E4B\u540E",normalized:"after"},until:{primary:"\u76F4\u5230",normalized:"until"},event:{primary:"\u4E8B\u4EF6",normalized:"event"},from:{primary:"\u4ECE",normalized:"from"},connect:{primary:"\u8FDE\u63A5",alternatives:["\u8FDE\u63A5\u5668"],normalized:"connect"},stream:{primary:"\u6D41",alternatives:["\u6D41\u5F0F\u4F20\u8F93"],normalized:"stream"},live:{primary:"\u5B9E\u65F6",alternatives:["\u76F4\u64AD"],normalized:"live"},socket:{primary:"\u5957\u63A5\u5B57",alternatives:["websocket","socket"],normalized:"socket"},bind:{primary:"\u7ED1\u5B9A",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\u62E6\u622A",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"\u5DE5\u4F5C\u7EBF\u7A0B",alternatives:["\u5DE5\u4F5C\u8005","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u4E8B\u4EF6\u6E90"],normalized:"eventsource"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},sourceMarker:{primary:"\u4ECE",position:"before"},eventMarker:{primary:"\u5F53",alternatives:["\u5728"],position:"before"},temporalMarkers:["\u5F53","\u5728...\u65F6"]}}});var Is={};N(Is,{ChineseTokenizer:()=>Lr,chineseTokenizer:()=>xy});var zy,ky,Lr,xy,Vs=z(()=>{"use strict";D();ta();G();X();Gi();Yi();Pe();zy=new Set(["\u628A","\u5728","\u4ECE","\u5230","\u5411","\u7ED9","\u5BF9","\u7528","\u88AB","\u8BA9","\u7684","\u5730","\u5F97","\u4E86","\u7740","\u8FC7","\u5417","\u5462","\u5427"]),ky=[{native:"\u771F",normalized:"true"},{native:"\u5047",normalized:"false"},{native:"\u7A7A",normalized:"null"},{native:"\u672A\u5B9A\u4E49",normalized:"undefined"},{native:"\u7B2C\u4E00\u4E2A",normalized:"first"},{native:"\u9996\u4E2A",normalized:"first"},{native:"\u6700\u540E\u4E00\u4E2A",normalized:"last"},{native:"\u672B\u4E2A",normalized:"last"},{native:"\u4E0B\u4E00\u4E2A",normalized:"next"},{native:"\u4E0A\u4E00\u4E2A",normalized:"previous"},{native:"\u6700\u8FD1\u7684",normalized:"closest"},{native:"\u7236\u7EA7",normalized:"parent"},{native:"\u70B9\u51FB",normalized:"click"},{native:"\u53CC\u51FB",normalized:"dblclick"},{native:"\u8F93\u5165",normalized:"input"},{native:"\u53D8\u66F4",normalized:"change"},{native:"\u6539\u53D8",normalized:"change"},{native:"\u63D0\u4EA4",normalized:"submit"},{native:"\u6309\u952E",normalized:"keydown"},{native:"\u91CA\u653E\u952E",normalized:"keyup"},{native:"\u9F20\u6807\u79FB\u5165",normalized:"mouseover"},{native:"\u9F20\u6807\u79FB\u51FA",normalized:"mouseout"},{native:"\u83B7\u5F97\u7126\u70B9",normalized:"focus"},{native:"\u5931\u53BB\u7126\u70B9",normalized:"blur"},{native:"\u52A0\u8F7D",normalized:"load"},{native:"\u6EDA\u52A8",normalized:"scroll"},{native:"\u6211\u7684",normalized:"my"},{native:"\u5B83\u7684",normalized:"its"},{native:"\u79D2",normalized:"s"},{native:"\u6BEB\u79D2",normalized:"ms"},{native:"\u5206\u949F",normalized:"m"},{native:"\u5C0F\u65F6",normalized:"h"},{native:"\u548C",normalized:"and"},{native:"\u6216\u8005",normalized:"or"},{native:"\u6216",normalized:"or"},{native:"\u4E0D",normalized:"not"},{native:"\u975E",normalized:"not"},{native:"\u662F",normalized:"is"},{native:"\u82E5",normalized:"if"},{native:"\u4E0D\u7136",normalized:"else"},{native:"\u5FAA\u73AF",normalized:"repeat"},{native:"\u904D\u5386",normalized:"for"},{native:"\u6BCF\u4E2A",normalized:"for"},{native:"\u4E3A\u6BCF",normalized:"for"},{native:"\u4E2D\u6B62",normalized:"halt"},{native:"\u629B",normalized:"throw"},{native:"\u547C\u53EB",normalized:"call"},{native:"\u56DE",normalized:"return"},{native:"\u811A\u672C",normalized:"js"},{native:"\u901A\u77E5",normalized:"tell"},{native:"\u7F3A\u7701",normalized:"default"},{native:"\u521D\u59CB",normalized:"init"},{native:"\u52A8\u4F5C",normalized:"behavior"},{native:"\u6FC0\u53D1",normalized:"trigger"},{native:"\u5BF9\u7126",normalized:"focus"},{native:"\u6A21\u7CCA",normalized:"blur"},{native:"\u8DF3\u8F6C",normalized:"go"},{native:"\u5BFC\u822A",normalized:"go"},{native:"\u6293\u53D6",normalized:"fetch"},{native:"\u83B7\u53D6\u6570\u636E",normalized:"fetch"},{native:"\u5B89\u5B9A",normalized:"settle"},{native:"\u62FF\u53D6",normalized:"take"},{native:"\u53D6",normalized:"take"},{native:"\u521B\u5EFA",normalized:"make"},{native:"\u514B\u9686",normalized:"clone"},{native:"\u8BB0\u5F55",normalized:"log"},{native:"\u6253\u5370",normalized:"log"},{native:"\u52A8\u753B",normalized:"transition"},{native:"\u5230\u91CC\u9762",normalized:"into"},{native:"\u91CC",normalized:"into"},{native:"\u524D",normalized:"before"},{native:"\u540E",normalized:"after"},{native:"\u90A3\u4E48",normalized:"then"},{native:"\u5B8C",normalized:"end"}],Lr=class extends R{constructor(){super();this.language="zh";this.direction="ltr";this.initializeKeywordsFromProfile(ea,ky),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new nr),this.registerExtractor(new rr),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return zy.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||t.startsWith("\u201C")||t.startsWith("\u2018")||/^\d/.test(t)?"literal":"identifier"}},xy=new Lr});function wy(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:"\xE7\xC7\u011F\u011E\u0131\u0130\xF6\xD6\u015F\u015E\xFC\xDC".includes(n)}function by(n){for(let e of n)if(wy(e))return!0;return!1}function ra(n){return"a\u0131ouAIOU".includes(n)}function _s(n){return"ei\xF6\xFCE\u0130\xD6\xDC".includes(n)}function qs(n){return ra(n)||_s(n)}function Sy(n){for(let e=n.length-1;e>=0;e--)if(qs(n[e]))return n[e];return null}function Ty(n,e){let t=Sy(n);if(!t)return!0;let r=e.split("").find(a=>qs(a));return r?ra(t)?ra(r):_s(r):!0}var Ey,Et,o0,Ks=z(()=>{"use strict";ae();Ey=[{pattern:"iyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"iyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"eceksiniz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"eceksin",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fiz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fim",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131m",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"ecekler",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaklar",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"mi\u015Fsiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fsin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fiz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"din",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"duk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tuk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"dum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"iyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"ecek",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"acak",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"mi\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"di",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"du",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"ti",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tu",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mek",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"mak",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"eyelim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ayal\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"eyim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ay\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"elim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"al\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"melisiniz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"melisin",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyiz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyim",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131m",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"meliler",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131lar",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meli",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"ebiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"ebildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"iniz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n\u0131z",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn\xFCz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"unuz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"in",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"un",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"ildi",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131ld\u0131",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCld\xFC",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"uldu",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ilir",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131l\u0131r",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCl\xFCr",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ulur",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"tirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"turmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"dirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"durmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"miyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"miyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"medi",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"mad\u0131",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"me",confidence:.75,conjugationType:"negative",minStemLength:3},{pattern:"ma",confidence:.75,conjugationType:"negative",minStemLength:3}],Et=class{constructor(){this.language="tr"}isNormalizable(e){return!(!by(e)||e.length<3)}normalize(e){let t=e.toLowerCase();for(let r of Ey)if(t.endsWith(r.pattern)){let a=t.slice(0,-r.pattern.length),i=r.minStemLength??2;if(a.length<i)continue;if(!Ty(a,r.pattern)){let s=r.confidence*.9,l={removedSuffixes:[r.pattern]};return r.conjugationType&&(l.conjugationType=r.conjugationType),x(a,s,l)}let o={removedSuffixes:[r.pattern]};return r.conjugationType&&(o.conjugationType=r.conjugationType),x(a,r.confidence,o)}return V(e)}},o0=new Et});var $s={};N($s,{turkishProfile:()=>na});var na,aa=z(()=>{"use strict";na={code:"tr",name:"Turkish",nativeName:"T\xFCrk\xE7e",regions:["priority"],direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"case-suffix",usesSpaces:!0,markersOptional:!0,verb:{position:"end",suffixes:["mek","mak","yor","di","mi\u015F"],subjectDrop:!0},references:{me:"ben",it:"o",you:"sen",result:"sonu\xE7",event:"olay",target:"hedef",body:"g\xF6vde"},possessive:{marker:"\u0131n",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"benim",it:"onun",you:"senin"},keywords:{benim:"me",senin:"you",onun:"it"}},roleMarkers:{patient:{primary:"i",alternatives:["\u0131","u","\xFC","yi","y\u0131","yu","y\xFC","ni","n\u0131","nu","n\xFC"],position:"after"},destination:{primary:"e",alternatives:["a","ye","ya","ne","na","de","da","te","ta","\u0131n","in","un","\xFCn","n\u0131n","nin","nun","n\xFCn"],position:"after"},source:{primary:"den",alternatives:["dan","ten","tan"],position:"after"},style:{primary:"le",alternatives:["la","yle","yla"],position:"after"},event:{primary:"i",alternatives:["\u0131","u","\xFC"],position:"after"}},keywords:{toggle:{primary:"de\u011Fi\u015Ftir",alternatives:["a\xE7/kapat"],normalized:"toggle"},add:{primary:"ekle",normalized:"add"},remove:{primary:"kald\u0131r",alternatives:["sil"],normalized:"remove"},put:{primary:"koy",normalized:"put"},append:{primary:"ili\u015Ftir",normalized:"append"},prepend:{primary:"ba\u015F\u0131naekle",normalized:"prepend"},take:{primary:"tut",normalized:"take"},make:{primary:"yap",normalized:"make"},clone:{primary:"klonla",normalized:"clone"},swap:{primary:"takas",normalized:"swap"},morph:{primary:"d\xF6n\xFC\u015Ft\xFCr",alternatives:["\u015Fekil de\u011Fi\u015Ftir"],normalized:"morph"},set:{primary:"ayarla",alternatives:["belirle"],normalized:"set"},get:{primary:"al",normalized:"get"},increment:{primary:"art\u0131r",normalized:"increment"},decrement:{primary:"azalt",normalized:"decrement"},log:{primary:"kaydet",normalized:"log"},show:{primary:"g\xF6ster",normalized:"show"},hide:{primary:"gizle",normalized:"hide"},transition:{primary:"ge\xE7i\u015F",normalized:"transition"},on:{primary:"\xFCzerinde",alternatives:["zaman"],normalized:"on"},trigger:{primary:"tetikle",normalized:"trigger"},send:{primary:"g\xF6nder",normalized:"send"},focus:{primary:"odak",alternatives:["odaklanma"],normalized:"focus"},blur:{primary:"bulan\u0131k",alternatives:["bulan\u0131kl\u0131k","bulanik"],normalized:"blur"},empty:{primary:"bo\u015Falt",alternatives:["bosalt","bo\u015F"],normalized:"empty"},open:{primary:"a\xE7",alternatives:["ac"],normalized:"open"},close:{primary:"kapat",normalized:"close"},select:{primary:"vurgula",normalized:"select"},clear:{primary:"temizle",normalized:"clear"},reset:{primary:"s\u0131f\u0131rla",alternatives:["sifirla"],normalized:"reset"},breakpoint:{primary:"kesme-noktas\u0131",alternatives:["kesme-noktasi"],normalized:"breakpoint"},click:{primary:"t\u0131klama",alternatives:["t\u0131kla","tiklama","t\u0131k","tik"],normalized:"click"},hover:{primary:"\xFCzerine gelme",alternatives:["\xFCzerinde gezinme"],normalized:"hover"},submit:{primary:"g\xF6nderme",normalized:"submit"},input:{primary:"giri\u015F",alternatives:["girdi","giris"],normalized:"input"},change:{primary:"de\u011Fi\u015Fiklik",alternatives:["de\u011Fi\u015Fim","degisim"],normalized:"change"},load:{primary:"y\xFCkle",normalized:"load"},go:{primary:"git",normalized:"go"},scroll:{primary:"kayd\u0131r",alternatives:["kaydir"],normalized:"scroll"},push:{primary:"itele",alternatives:["push"],normalized:"push"},replace:{primary:"de\u011Fi\u015Ftir_url",alternatives:["degistir_url"],normalized:"replace"},process:{primary:"i\u015Fle",alternatives:["isle"],normalized:"process"},wait:{primary:"bekle",normalized:"wait"},fetch:{primary:"getir",normalized:"fetch"},settle:{primary:"sabitlen",normalized:"settle"},if:{primary:"e\u011Fer",normalized:"if"},unless:{primary:"de\u011Filse",normalized:"unless"},when:{primary:"iken",alternatives:["durumunda","oldu\u011Funda"],normalized:"when"},where:{primary:"nerede",normalized:"where"},else:{primary:"yoksa",normalized:"else"},repeat:{primary:"tekrarla",normalized:"repeat"},for:{primary:"i\xE7in",normalized:"for"},while:{primary:"s\xFCresince",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"devam",normalized:"continue"},halt:{primary:"durdur",normalized:"halt"},throw:{primary:"f\u0131rlat",normalized:"throw"},call:{primary:"\xE7a\u011F\u0131r",normalized:"call"},return:{primary:"d\xF6n",normalized:"return"},then:{primary:"ard\u0131ndan",alternatives:["daha sonra","ardindan"],normalized:"then"},and:{primary:"ve",alternatives:["ayr\u0131ca","hem de"],normalized:"and"},or:{primary:"veya",normalized:"or"},not:{primary:"de\u011Fil",alternatives:["degil"],normalized:"not"},end:{primary:"son",alternatives:["biti\u015F","bitti"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asenkron",normalized:"async"},tell:{primary:"s\xF6yle",normalized:"tell"},default:{primary:"varsay\u0131lan",normalized:"default"},init:{primary:"ba\u015Flat",normalized:"init"},behavior:{primary:"davran\u0131\u015F",normalized:"behavior"},install:{primary:"kur",alternatives:["y\xFCklemek"],normalized:"install"},measure:{primary:"\xF6l\xE7",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"dur",normalized:"break"},copy:{primary:"kopyala",normalized:"copy"},exit:{primary:"\xE7\u0131k",normalized:"exit"},pick:{primary:"se\xE7",normalized:"pick"},render:{primary:"render",normalized:"render"},into:{primary:"i\xE7ine",normalized:"into"},before:{primary:"\xF6nce",normalized:"before"},after:{primary:"sonra",normalized:"after"},until:{primary:"kadar",normalized:"until"},event:{primary:"olay",normalized:"event"},from:{primary:"den",alternatives:["dan"],normalized:"from"},connect:{primary:"ba\u011Flan",alternatives:["ba\u011Fla","ba\u011Flant\u0131"],normalized:"connect"},stream:{primary:"yay\u0131nla",alternatives:["ak\u0131t","ak\u0131\u015F"],normalized:"stream"},live:{primary:"canl\u0131",alternatives:["ger\xE7ek-zamanl\u0131"],normalized:"live"},socket:{primary:"soket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"bind",normalized:"bind"},intercept:{primary:"yakala",alternatives:["araya-gir","intercept"],normalized:"intercept"},worker:{primary:"i\u015F\xE7i",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["olay-kayna\u011F\u0131"],normalized:"eventsource"}},eventHandler:{eventMarker:{primary:"da",alternatives:["de","ta","te"],position:"after"},temporalMarkers:["d\u0131\u011F\u0131nda","di\u011Finde"]}}});var Bs={};N(Bs,{TurkishTokenizer:()=>Cr,turkishTokenizer:()=>Ry});var Py,Ly,Cy,Cr,Ry,Ds=z(()=>{"use strict";D();Ks();aa();G();X();Ro();Py=new Set(["ile","i\xE7in","kadar","gibi","\xF6nce","\xFCzerinde","alt\u0131nda","i\xE7inde","d\u0131\u015F\u0131nda","aras\u0131nda","kar\u015F\u0131","g\xF6re","ra\u011Fmen","boyunca"]),Ly=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\xFC","in","\u0131n","un","\xFCn","le","la","yle","yla"]),Cy=[{native:"do\u011Fru",normalized:"true"},{native:"dogru",normalized:"true"},{native:"yanl\u0131\u015F",normalized:"false"},{native:"yanlis",normalized:"false"},{native:"null",normalized:"null"},{native:"bo\u015F",normalized:"null"},{native:"bos",normalized:"null"},{native:"tan\u0131ms\u0131z",normalized:"undefined"},{native:"tanimsiz",normalized:"undefined"},{native:"ilk",normalized:"first"},{native:"son",normalized:"last"},{native:"sonuncu",normalized:"last"},{native:"sonraki",normalized:"next"},{native:"\xF6nceki",normalized:"previous"},{native:"onceki",normalized:"previous"},{native:"enyak\u0131n",normalized:"closest"},{native:"enyakin",normalized:"closest"},{native:"ebeveyn",normalized:"parent"},{native:"fare \xFCzerinde",normalized:"mouseover"},{native:"fare uzerinde",normalized:"mouseover"},{native:"fare d\u0131\u015F\u0131nda",normalized:"mouseout"},{native:"fare disinda",normalized:"mouseout"},{native:"farebas",normalized:"mousedown"},{native:"fareb\u0131rak",normalized:"mouseup"},{native:"farebirak",normalized:"mouseup"},{native:"kayd\u0131r",normalized:"scroll"},{native:"kaydir",normalized:"scroll"},{native:"tu\u015F_bas",normalized:"keydown"},{native:"tus_bas",normalized:"keydown"},{native:"tu\u015F_b\u0131rak",normalized:"keyup"},{native:"tus_birak",normalized:"keyup"},{native:"saniye",normalized:"s"},{native:"milisaniye",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saat",normalized:"h"}],Cr=class extends R{constructor(){super();this.language="tr";this.direction="ltr";this.initializeKeywordsFromProfile(na,Cy),this.setNormalizer(new Et),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(Co()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Py.has(r)||Ly.has(r)?"particle":this.isKeyword(r)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":"identifier"}},Ry=new Cr});var Fs={};N(Fs,{portugueseProfile:()=>ia});var ia,oa=z(()=>{"use strict";ia={code:"pt",name:"Portuguese",nativeName:"Portugu\xEAs",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"eu",it:"ele",you:"voc\xEA",result:"resultado",event:"evento",target:"alvo",body:"corpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"meu",it:"seu",you:"teu"},keywords:{meu:"me",minha:"me",teu:"you",tua:"you",seu:"it",sua:"it"}},roleMarkers:{destination:{primary:"em",alternatives:["para","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"com",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:[],normalized:"toggle"},add:{primary:"adicionar",alternatives:["acrescentar"],normalized:"add"},remove:{primary:"remover",alternatives:["eliminar","apagar"],normalized:"remove"},put:{primary:"colocar",alternatives:["p\xF4r","por"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"preceder",normalized:"prepend"},take:{primary:"pegar",normalized:"take"},make:{primary:"fazer",alternatives:["criar"],normalized:"make"},clone:{primary:"clonar",alternatives:[],normalized:"clone"},swap:{primary:"trocar",alternatives:["substituir"],normalized:"swap"},morph:{primary:"transformar",alternatives:["converter"],normalized:"morph"},set:{primary:"definir",alternatives:["configurar"],normalized:"set"},get:{primary:"obter",normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["diminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["exibir"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transi\xE7\xE3o",alternatives:["animar"],normalized:"transition"},on:{primary:"em",alternatives:["ao"],normalized:"on"},trigger:{primary:"disparar",alternatives:["ativar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"focar",normalized:"focus"},blur:{primary:"desfocar",normalized:"blur"},empty:{primary:"esvaziar",alternatives:["vazio"],normalized:"empty"},open:{primary:"abrir",normalized:"open"},close:{primary:"fechar",normalized:"close"},select:{primary:"selecionar",normalized:"select"},clear:{primary:"limpar",normalized:"clear"},reset:{primary:"redefinir",alternatives:["resetar"],normalized:"reset"},breakpoint:{primary:"ponto-interrup\xE7\xE3o",alternatives:["ponto-interrupcao"],normalized:"breakpoint"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},scroll:{primary:"rolar",alternatives:["scroll"],normalized:"scroll"},push:{primary:"empurrar",alternatives:["push"],normalized:"push"},replace:{primary:"repor",alternatives:["recolocar"],normalized:"replace"},process:{primary:"processar",normalized:"process"},wait:{primary:"esperar",alternatives:["aguardar"],normalized:"wait"},fetch:{primary:"buscar",normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"se",normalized:"if"},unless:{primary:"salvo",alternatives:["a_menos"],normalized:"unless"},when:{primary:"quando",normalized:"when"},where:{primary:"onde",normalized:"where"},else:{primary:"sen\xE3o",normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"enquanto",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"parar",normalized:"halt"},throw:{primary:"lan\xE7ar",normalized:"throw"},call:{primary:"chamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"ent\xE3o",alternatives:["logo"],normalized:"then"},and:{primary:"e",alternatives:["tamb\xE9m","al\xE9m disso"],normalized:"and"},end:{primary:"fim",alternatives:["final","t\xE9rmino"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"ass\xEDncrono",normalized:"async"},tell:{primary:"dizer",normalized:"tell"},default:{primary:"padr\xE3o",normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"apitar",normalized:"beep"},break:{primary:"interromper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"sair",normalized:"exit"},pick:{primary:"escolher",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"dentro",alternatives:["dentro de"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"depois",normalized:"after"},click:{primary:"clique",alternatives:["clicar"],normalized:"click"},resize:{primary:"redimensionar",normalized:"resize"},hover:{primary:"sobrevoar",alternatives:["passar"],normalized:"hover"},submit:{primary:"envio",alternatives:["submeter"],normalized:"submit"},input:{primary:"entrada",alternatives:["inser\xE7\xE3o"],normalized:"input"},change:{primary:"altera\xE7\xE3o",alternatives:["mudan\xE7a"],normalized:"change"},mousedown:{primary:"mouseBaixo",normalized:"mousedown"},mouseup:{primary:"mouseCima",normalized:"mouseup"},until:{primary:"at\xE9",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"},connect:{primary:"conectar",alternatives:["conex\xE3o"],normalized:"connect"},stream:{primary:"transmitir",alternatives:["fluxo"],normalized:"stream"},live:{primary:"ao-vivo",alternatives:["vivo","direto"],normalized:"live"},socket:{primary:"soquete",alternatives:["websocket"],normalized:"socket"},bind:{primary:"vincular",alternatives:["ligar","bind"],normalized:"bind"},intercept:{primary:"interceptar",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"trabalhador",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["fonte-de-eventos"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"em",alternatives:["ao"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"ao",alternatives:["no","em"],position:"before"},temporalMarkers:["quando","ao"]}}});function Ny(n){return/[áàâãéêíóôõúüçÁÀÂÃÉÊÍÓÔÕÚÜÇ]/.test(n)}function Ay(n){let e=n.toLowerCase();if(e.endsWith("ar")||e.endsWith("er")||e.endsWith("ir")||e.endsWith("ando")||e.endsWith("endo")||e.endsWith("indo")||e.endsWith("ado")||e.endsWith("ido")||e.endsWith("ar-se")||e.endsWith("er-se")||e.endsWith("ir-se"))return!0;for(let t of n)if(Ny(t))return!0;return!1}var Hs,jy,My,Oy,Wy,Pt,y0,Us=z(()=>{"use strict";ae();Hs=["-se","-me","-te","-nos","-vos"],jy=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.85,type:"present"},{ending:"am",stem:"ar",confidence:.8,type:"present"},{ending:"ei",stem:"ar",confidence:.88,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"ou",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1mos",stem:"ar",confidence:.88,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"astes",stem:"ar",confidence:.88,type:"past"},{ending:"aram",stem:"ar",confidence:.88,type:"past"},{ending:"ava",stem:"ar",confidence:.88,type:"past"},{ending:"avas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1vamos",stem:"ar",confidence:.88,type:"past"},{ending:"avamos",stem:"ar",confidence:.85,type:"past"},{ending:"\xE1veis",stem:"ar",confidence:.88,type:"past"},{ending:"aveis",stem:"ar",confidence:.85,type:"past"},{ending:"avam",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"em",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ai",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],My=[{ending:"endo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"em",stem:"er",confidence:.78,type:"present"},{ending:"i",stem:"er",confidence:.85,type:"past"},{ending:"este",stem:"er",confidence:.88,type:"past"},{ending:"eu",stem:"er",confidence:.88,type:"past"},{ending:"emos",stem:"er",confidence:.85,type:"past"},{ending:"estes",stem:"er",confidence:.88,type:"past"},{ending:"eram",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"er",confidence:.88,type:"past"},{ending:"ieis",stem:"er",confidence:.85,type:"past"},{ending:"iam",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],Oy=[{ending:"indo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"em",stem:"ir",confidence:.78,type:"present"},{ending:"i",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"iu",stem:"ir",confidence:.88,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"istes",stem:"ir",confidence:.88,type:"past"},{ending:"iram",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"ir",confidence:.88,type:"past"},{ending:"ieis",stem:"ir",confidence:.85,type:"past"},{ending:"iam",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],Wy=[...jy,...My,...Oy].sort((n,e)=>e.ending.length-n.ending.length),Pt=class{constructor(){this.language="pt"}isNormalizable(e){return e.length<3?!1:Ay(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))&&!Hs.some(i=>t.endsWith(i)))return V(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryReflexiveNormalization(e){for(let t of Hs)if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir"))return x(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let a=this.tryConjugationNormalization(r);if(a&&a.stem!==r)return x(a.stem,a.confidence*.95,{removedSuffixes:[t,...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let t of Wy)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},y0=new Pt});function Iy(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Gs(){return[new sa]}var Vy,_y,qy,sa,Xs=z(()=>{"use strict";({isLetter:Vy,isIdentifierChar:_y}=Iy(/[a-zA-ZáâãéêíóôõúçÁÂÃÉÊÍÓÔÕÚÇ]/)),qy=new Set(["em","a","de","para","com","sem","por","sobre","entre","antes","depois","dentro","fora","ao","do","da","no","na"]),sa=class{constructor(){this.name="portuguese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Vy(e[t])}extract(e,t){if(!this.context)throw new Error("PortugueseKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&_y(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=qy.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var Zs={};N(Zs,{PortugueseTokenizer:()=>Rr,portugueseTokenizer:()=>By});var Ky,$y,Rr,By,Ys=z(()=>{"use strict";D();oa();Us();G();X();Xs();Ky=new Set(["em","a","de","desde","at\xE9","ate","com","sem","por","para","sobre","entre","antes","depois","dentro","fora","ao","do","no","na"]),$y=[{native:"verdadeiro",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"primeiro",normalized:"first"},{native:"primeira",normalized:"first"},{native:"\xFAltimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"pr\xF3ximo",normalized:"next"},{native:"proximo",normalized:"next"},{native:"anterior",normalized:"previous"},{native:"maispr\xF3ximo",normalized:"closest"},{native:"maisproximo",normalized:"closest"},{native:"pai",normalized:"parent"},{native:"clique",normalized:"click"},{native:"click",normalized:"click"},{native:"entrada",normalized:"input"},{native:"mudan\xE7a",normalized:"change"},{native:"mudanca",normalized:"change"},{native:"envio",normalized:"submit"},{native:"tecla baixo",normalized:"keydown"},{native:"tecla cima",normalized:"keyup"},{native:"mouse sobre",normalized:"mouseover"},{native:"mouse fora",normalized:"mouseout"},{native:"foco",normalized:"focus"},{native:"desfoque",normalized:"blur"},{native:"carregar",normalized:"load"},{native:"rolagem",normalized:"scroll"},{native:"meu",normalized:"my"},{native:"minha",normalized:"my"},{native:"isso",normalized:"it"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milissegundo",normalized:"ms"},{native:"milissegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"senao",normalized:"else"},{native:"transicao",normalized:"transition"},{native:"ate",normalized:"until"},{native:"entao",normalized:"then"},{native:"lancar",normalized:"throw"},{native:"assincrono",normalized:"async"},{native:"padrao",normalized:"default"},{native:"at\xE9 que",normalized:"until"},{native:"dentro de",normalized:"into"}],Rr=class extends R{constructor(){super();this.language="pt";this.direction="ltr";this.initializeKeywordsFromProfile(ia,$y),this.setNormalizer(new Pt),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Gs()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Ky.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},By=new Rr});var Js={};N(Js,{frenchProfile:()=>la});var la,ca=z(()=>{"use strict";la={code:"fr",name:"French",nativeName:"Fran\xE7ais",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"moi",it:"il",you:"toi",result:"r\xE9sultat",event:"\xE9v\xE9nement",target:"cible",body:"corps"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"ma",it:"sa",you:"ta"},keywords:{mon:"me",ma:"me",mes:"me",ton:"you",ta:"you",tes:"you",son:"it",sa:"it",ses:"it"}},roleMarkers:{destination:{primary:"sur",alternatives:["\xE0","dans"],position:"before"},source:{primary:"de",alternatives:["depuis"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"avec",position:"before"}},keywords:{toggle:{primary:"basculer",alternatives:["alterner"],normalized:"toggle"},add:{primary:"ajouter",normalized:"add"},remove:{primary:"supprimer",alternatives:["enlever","retirer"],normalized:"remove"},put:{primary:"mettre",alternatives:["placer"],normalized:"put"},append:{primary:"annexer",normalized:"append"},prepend:{primary:"pr\xE9fixer",normalized:"prepend"},take:{primary:"prendre",normalized:"take"},make:{primary:"faire",alternatives:["cr\xE9er"],normalized:"make"},clone:{primary:"cloner",alternatives:["dupliquer"],normalized:"clone"},swap:{primary:"\xE9changer",alternatives:["permuter"],normalized:"swap"},morph:{primary:"transformer",alternatives:["m\xE9tamorphoser"],normalized:"morph"},set:{primary:"d\xE9finir",alternatives:["\xE9tablir"],normalized:"set"},get:{primary:"obtenir",normalized:"get"},increment:{primary:"incr\xE9menter",alternatives:["augmenter"],normalized:"increment"},decrement:{primary:"d\xE9cr\xE9menter",alternatives:["diminuer"],normalized:"decrement"},log:{primary:"enregistrer",alternatives:["journaliser"],normalized:"log"},show:{primary:"montrer",alternatives:["afficher"],normalized:"show"},hide:{primary:"cacher",alternatives:["masquer"],normalized:"hide"},transition:{primary:"transition",alternatives:["animer"],normalized:"transition"},on:{primary:"sur",alternatives:["lors"],normalized:"on"},trigger:{primary:"d\xE9clencher",normalized:"trigger"},send:{primary:"envoyer",normalized:"send"},focus:{primary:"focaliser",alternatives:["concentrer"],normalized:"focus"},blur:{primary:"d\xE9focaliser",normalized:"blur"},empty:{primary:"vider",alternatives:["vide"],normalized:"empty"},open:{primary:"ouvrir",normalized:"open"},close:{primary:"fermer",normalized:"close"},select:{primary:"s\xE9lectionner",alternatives:["selectionner"],normalized:"select"},clear:{primary:"effacer",normalized:"clear"},reset:{primary:"r\xE9initialiser",alternatives:["reinitialiser"],normalized:"reset"},breakpoint:{primary:"point-arr\xEAt",alternatives:["point-arret"],normalized:"breakpoint"},go:{primary:"aller",alternatives:["naviguer"],normalized:"go"},scroll:{primary:"d\xE9filer",alternatives:["faire-d\xE9filer"],normalized:"scroll"},push:{primary:"pousser",normalized:"push"},replace:{primary:"remplacer",normalized:"replace"},process:{primary:"traiter",normalized:"process"},wait:{primary:"attendre",normalized:"wait"},fetch:{primary:"chercher",alternatives:["r\xE9cup\xE9rer"],normalized:"fetch"},settle:{primary:"stabiliser",normalized:"settle"},if:{primary:"si",normalized:"if"},unless:{primary:"saufsi",normalized:"unless"},when:{primary:"quand",normalized:"when"},where:{primary:"o\xF9",normalized:"where"},else:{primary:"sinon",normalized:"else"},repeat:{primary:"r\xE9p\xE9ter",normalized:"repeat"},for:{primary:"pour",normalized:"for"},while:{primary:"pendant",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuer",normalized:"continue"},halt:{primary:"arr\xEAter",alternatives:["stopper"],normalized:"halt"},throw:{primary:"lancer",normalized:"throw"},call:{primary:"appeler",normalized:"call"},return:{primary:"retourner",alternatives:["renvoyer"],normalized:"return"},then:{primary:"puis",alternatives:["ensuite","alors"],normalized:"then"},and:{primary:"et",alternatives:["aussi","\xE9galement"],normalized:"and"},end:{primary:"fin",alternatives:["terminer","finir"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asynchrone",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"d\xE9faut",normalized:"default"},init:{primary:"initialiser",normalized:"init"},behavior:{primary:"comportement",normalized:"behavior"},install:{primary:"installer",normalized:"install"},measure:{primary:"mesurer",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"interrompre",normalized:"break"},copy:{primary:"copier",normalized:"copy"},exit:{primary:"sortir",normalized:"exit"},pick:{primary:"choisir",normalized:"pick"},render:{primary:"rendu",normalized:"render"},into:{primary:"dans",normalized:"into"},before:{primary:"avant",normalized:"before"},after:{primary:"apr\xE8s",normalized:"after"},click:{primary:"clic",alternatives:["clique"],normalized:"click"},resize:{primary:"redimensionner",normalized:"resize"},hover:{primary:"survol",alternatives:["survoler"],normalized:"hover"},submit:{primary:"soumission",alternatives:["soumettre"],normalized:"submit"},input:{primary:"saisie",alternatives:["entr\xE9e"],normalized:"input"},change:{primary:"changement",alternatives:["modifier","changer"],normalized:"change"},load:{primary:"charger",alternatives:["chargement"],normalized:"load"},until:{primary:"jusqu'\xE0",alternatives:["jusque"],normalized:"until"},event:{primary:"\xE9v\xE9nement",normalized:"event"},from:{primary:"de",alternatives:["depuis"],normalized:"from"},connect:{primary:"connecter",alternatives:["connexion"],normalized:"connect"},stream:{primary:"flux",alternatives:["streaming"],normalized:"stream"},live:{primary:"en-direct",alternatives:["direct","vif"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"lier",alternatives:["relier","bind"],normalized:"bind"},intercept:{primary:"intercepter",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"travailleur",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["source-d-evenements"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"sur",alternatives:["lors"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["depuis"],position:"before"},conditionalKeyword:{primary:"quand",alternatives:["lorsque"]},eventMarker:{primary:"au",alternatives:["lors du","lors de","sur"],position:"before"},temporalMarkers:["quand","lorsque"]}}});function Dy(n){let e=n.toLowerCase();return!!(e.endsWith("er")||e.endsWith("ir")||e.endsWith("re")||e.endsWith("ant")||e.endsWith("\xE9")||e.endsWith("i")||e.endsWith("u")||/[àâäéèêëïîôùûüÿçœæ]/i.test(n))}var Fy,Hy,Uy,Gy,Xy,Lt,T0,Qs=z(()=>{"use strict";ae();Fy=["toi","vous","nous"],Hy=[{ending:"ant",stem:"er",confidence:.88,type:"gerund"},{ending:"\xE9",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9e",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9s",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9es",stem:"er",confidence:.88,type:"participle"},{ending:"e",stem:"er",confidence:.75,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"ons",stem:"er",confidence:.85,type:"present"},{ending:"ez",stem:"er",confidence:.85,type:"present"},{ending:"ent",stem:"er",confidence:.82,type:"present"},{ending:"ais",stem:"er",confidence:.82,type:"past"},{ending:"ait",stem:"er",confidence:.82,type:"past"},{ending:"ions",stem:"er",confidence:.85,type:"past"},{ending:"iez",stem:"er",confidence:.85,type:"past"},{ending:"aient",stem:"er",confidence:.85,type:"past"},{ending:"ai",stem:"er",confidence:.8,type:"past"},{ending:"as",stem:"er",confidence:.78,type:"past"},{ending:"a",stem:"er",confidence:.75,type:"past"},{ending:"\xE2mes",stem:"er",confidence:.88,type:"past"},{ending:"\xE2tes",stem:"er",confidence:.88,type:"past"},{ending:"\xE8rent",stem:"er",confidence:.88,type:"past"},{ending:"erai",stem:"er",confidence:.85,type:"future"},{ending:"eras",stem:"er",confidence:.85,type:"future"},{ending:"era",stem:"er",confidence:.82,type:"future"},{ending:"erons",stem:"er",confidence:.88,type:"future"},{ending:"erez",stem:"er",confidence:.88,type:"future"},{ending:"eront",stem:"er",confidence:.88,type:"future"},{ending:"erais",stem:"er",confidence:.85,type:"conditional"},{ending:"erait",stem:"er",confidence:.85,type:"conditional"},{ending:"erions",stem:"er",confidence:.88,type:"conditional"},{ending:"eriez",stem:"er",confidence:.88,type:"conditional"},{ending:"eraient",stem:"er",confidence:.88,type:"conditional"},{ending:"ions",stem:"er",confidence:.8,type:"subjunctive"},{ending:"iez",stem:"er",confidence:.8,type:"subjunctive"},{ending:"ons",stem:"er",confidence:.82,type:"imperative"},{ending:"ez",stem:"er",confidence:.82,type:"imperative"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],Uy=[{ending:"issant",stem:"ir",confidence:.88,type:"gerund"},{ending:"i",stem:"ir",confidence:.8,type:"participle"},{ending:"ie",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"participle"},{ending:"ies",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"present"},{ending:"it",stem:"ir",confidence:.78,type:"present"},{ending:"issons",stem:"ir",confidence:.88,type:"present"},{ending:"issez",stem:"ir",confidence:.88,type:"present"},{ending:"issent",stem:"ir",confidence:.88,type:"present"},{ending:"issais",stem:"ir",confidence:.85,type:"past"},{ending:"issait",stem:"ir",confidence:.85,type:"past"},{ending:"issions",stem:"ir",confidence:.88,type:"past"},{ending:"issiez",stem:"ir",confidence:.88,type:"past"},{ending:"issaient",stem:"ir",confidence:.88,type:"past"},{ending:"irai",stem:"ir",confidence:.85,type:"future"},{ending:"iras",stem:"ir",confidence:.85,type:"future"},{ending:"ira",stem:"ir",confidence:.82,type:"future"},{ending:"irons",stem:"ir",confidence:.88,type:"future"},{ending:"irez",stem:"ir",confidence:.88,type:"future"},{ending:"iront",stem:"ir",confidence:.88,type:"future"},{ending:"ir",stem:"ir",confidence:.9,type:"dictionary"}],Gy=[{ending:"ant",stem:"re",confidence:.82,type:"gerund"},{ending:"u",stem:"re",confidence:.8,type:"participle"},{ending:"ue",stem:"re",confidence:.82,type:"participle"},{ending:"us",stem:"re",confidence:.82,type:"participle"},{ending:"ues",stem:"re",confidence:.82,type:"participle"},{ending:"s",stem:"re",confidence:.72,type:"present"},{ending:"d",stem:"re",confidence:.75,type:"present"},{ending:"ons",stem:"re",confidence:.82,type:"present"},{ending:"ez",stem:"re",confidence:.82,type:"present"},{ending:"ent",stem:"re",confidence:.8,type:"present"},{ending:"re",stem:"re",confidence:.9,type:"dictionary"}],Xy=[...Hy,...Uy,...Gy].sort((n,e)=>e.ending.length-n.ending.length),Lt=class{constructor(){this.language="fr"}isNormalizable(e){return e.length<3?!1:Dy(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("er")||t.endsWith("ir")||t.endsWith("re"))&&t.length>=4)return V(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryReflexiveNormalization(e){for(let t of Fy){let r="-"+t;if(e.endsWith(r)){let a=e.slice(0,-r.length),i=this.tryConjugationNormalization(a);if(i&&i.stem!==a)return x(i.stem,i.confidence*.95,{removedSuffixes:[r,...i.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}}return null}tryConjugationNormalization(e){for(let t of Xy)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},T0=new Lt});function Zy(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function el(){return[new pa]}var Yy,Jy,Qy,pa,tl=z(()=>{"use strict";({isLetter:Yy,isIdentifierChar:Jy}=Zy(/[a-zA-ZàâæçéèêëïîôùûüÿœÀÂÆÇÉÈÊËÏÎÔÙÛÜŸŒ]/)),Qy=new Set(["\xE0","a","de","du","des","dans","sur","sous","avec","sans","par","pour","entre","avant","apr\xE8s","apres","depuis","vers","chez","contre","au","aux"]),pa=class{constructor(){this.name="french-keyword"}setContext(e){this.context=e}canExtract(e,t){return Yy(e[t])}extract(e,t){if(!this.context)throw new Error("FrenchKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&Jy(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=Qy.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var rl={};N(rl,{FrenchTokenizer:()=>Nr,frenchTokenizer:()=>tg});var eg,Nr,tg,nl=z(()=>{"use strict";D();ca();Qs();G();X();tl();eg=[{native:"vrai",normalized:"true"},{native:"faux",normalized:"false"},{native:"nul",normalized:"null"},{native:"ind\xE9fini",normalized:"undefined"},{native:"indefini",normalized:"undefined"},{native:"premier",normalized:"first"},{native:"premi\xE8re",normalized:"first"},{native:"premiere",normalized:"first"},{native:"dernier",normalized:"last"},{native:"derni\xE8re",normalized:"last"},{native:"derniere",normalized:"last"},{native:"suivant",normalized:"next"},{native:"pr\xE9c\xE9dent",normalized:"previous"},{native:"precedent",normalized:"previous"},{native:"proche",normalized:"closest"},{native:"parent",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"entr\xE9e",normalized:"input"},{native:"entree",normalized:"input"},{native:"changement",normalized:"change"},{native:"soumission",normalized:"submit"},{native:"touche bas",normalized:"keydown"},{native:"touche haut",normalized:"keyup"},{native:"souris dessus",normalized:"mouseover"},{native:"souris dehors",normalized:"mouseout"},{native:"focus",normalized:"focus"},{native:"flou",normalized:"blur"},{native:"chargement",normalized:"load"},{native:"d\xE9filement",normalized:"scroll"},{native:"defilement",normalized:"scroll"},{native:"je",normalized:"me"},{native:"mon",normalized:"my"},{native:"ma",normalized:"my"},{native:"mes",normalized:"my"},{native:"\xE7a",normalized:"it"},{native:"ca",normalized:"it"},{native:"resultat",normalized:"result"},{native:"evenement",normalized:"event"},{native:"seconde",normalized:"s"},{native:"secondes",normalized:"s"},{native:"milliseconde",normalized:"ms"},{native:"millisecondes",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minutes",normalized:"m"},{native:"heure",normalized:"h"},{native:"heures",normalized:"h"},{native:"prefixer",normalized:"prepend"},{native:"creer",normalized:"make"},{native:"definir",normalized:"set"},{native:"etablir",normalized:"set"},{native:"incrementer",normalized:"increment"},{native:"decrementer",normalized:"decrement"},{native:"declencher",normalized:"trigger"},{native:"defocaliser",normalized:"blur"},{native:"recuperer",normalized:"fetch"},{native:"repeter",normalized:"repeat"},{native:"arreter",normalized:"halt"},{native:"defaut",normalized:"default"},{native:"jusqua",normalized:"until"},{native:"apres",normalized:"after"},{native:"journaliser",normalized:"log"},{native:"transmuter",normalized:"morph"},{native:"tant que",normalized:"while"}],Nr=class extends R{constructor(){super();this.language="fr";this.direction="ltr";this.initializeKeywordsFromProfile(la,eg),this.normalizer=new Lt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(el()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},tg=new Nr});var al={};N(al,{germanProfile:()=>ma});var ma,da=z(()=>{"use strict";ma={code:"de",name:"German",nativeName:"Deutsch",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"ich",it:"es",you:"du",result:"Ergebnis",event:"Ereignis",target:"Ziel",body:"K\xF6rper"},possessive:{marker:"",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mein",it:"sein",you:"dein"},keywords:{mein:"me",meine:"me",meinen:"me",dein:"you",deine:"you",deinen:"you",sein:"it",seine:"it",seinen:"it"}},roleMarkers:{destination:{primary:"auf",alternatives:["zu","in"],position:"before"},source:{primary:"von",alternatives:["aus"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"mit",position:"before"}},keywords:{toggle:{primary:"umschalten",alternatives:["wechseln"],normalized:"toggle"},add:{primary:"hinzuf\xFCgen",normalized:"add"},remove:{primary:"entfernen",alternatives:["l\xF6schen"],normalized:"remove"},put:{primary:"setzen",alternatives:["stellen","platzieren"],normalized:"put"},append:{primary:"anh\xE4ngen",normalized:"append"},prepend:{primary:"voranstellen",normalized:"prepend"},take:{primary:"nehmen",normalized:"take"},make:{primary:"machen",alternatives:["erstellen","erzeugen"],normalized:"make"},clone:{primary:"klonen",alternatives:["duplizieren"],normalized:"clone"},swap:{primary:"austauschen",alternatives:["tauschen","vertauschen"],normalized:"swap"},morph:{primary:"verwandeln",alternatives:["transformieren"],normalized:"morph"},set:{primary:"festlegen",alternatives:["definieren"],normalized:"set"},get:{primary:"holen",alternatives:["bekommen","erhalten"],normalized:"get"},increment:{primary:"erh\xF6hen",normalized:"increment"},decrement:{primary:"verringern",alternatives:["vermindern"],normalized:"decrement"},log:{primary:"protokollieren",alternatives:["ausgeben"],normalized:"log"},show:{primary:"zeigen",alternatives:["anzeigen"],normalized:"show"},hide:{primary:"verbergen",alternatives:["verstecken"],normalized:"hide"},transition:{primary:"\xFCbergang",alternatives:["animieren"],normalized:"transition"},on:{primary:"bei",alternatives:["auf"],normalized:"on"},trigger:{primary:"ausl\xF6sen",normalized:"trigger"},send:{primary:"senden",alternatives:["schicken"],normalized:"send"},focus:{primary:"fokussieren",normalized:"focus"},blur:{primary:"defokussieren",alternatives:["entfokussieren"],normalized:"blur"},empty:{primary:"leeren",alternatives:["leer"],normalized:"empty"},open:{primary:"\xF6ffnen",alternatives:["oeffnen"],normalized:"open"},close:{primary:"schlie\xDFen",alternatives:["schliessen"],normalized:"close"},select:{primary:"markieren",normalized:"select"},clear:{primary:"bereinigen",normalized:"clear"},reset:{primary:"zur\xFCcksetzen",alternatives:["zuruecksetzen"],normalized:"reset"},breakpoint:{primary:"haltepunkt",normalized:"breakpoint"},go:{primary:"gehen",alternatives:["navigieren"],normalized:"go"},scroll:{primary:"scrollen",normalized:"scroll"},push:{primary:"dr\xFCcken",alternatives:["push"],normalized:"push"},replace:{primary:"ersetzen",normalized:"replace"},process:{primary:"verarbeiten",normalized:"process"},wait:{primary:"warten",normalized:"wait"},fetch:{primary:"abrufen",alternatives:["laden"],normalized:"fetch"},settle:{primary:"stabilisieren",normalized:"settle"},if:{primary:"falls",alternatives:["sofern"],normalized:"if"},unless:{primary:"wennnicht",normalized:"unless"},when:{primary:"wenn",normalized:"when"},where:{primary:"wo",normalized:"where"},else:{primary:"sonst",alternatives:["ansonsten"],normalized:"else"},repeat:{primary:"wiederholen",normalized:"repeat"},for:{primary:"f\xFCr",normalized:"for"},while:{primary:"solange",alternatives:["w\xE4hrend"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"fortfahren",alternatives:["weiter"],normalized:"continue"},halt:{primary:"anhalten",alternatives:["stoppen"],normalized:"halt"},throw:{primary:"werfen",normalized:"throw"},call:{primary:"aufrufen",normalized:"call"},return:{primary:"zur\xFCckgeben",normalized:"return"},then:{primary:"dann",alternatives:["danach","anschlie\xDFend"],normalized:"then"},and:{primary:"und",alternatives:["sowie","auch"],normalized:"and"},is:{primary:"ist",normalized:"is"},end:{primary:"ende",alternatives:["fertig"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asynchron",normalized:"async"},tell:{primary:"sagen",normalized:"tell"},default:{primary:"standard",normalized:"default"},init:{primary:"initialisieren",normalized:"init"},behavior:{primary:"verhalten",normalized:"behavior"},install:{primary:"installieren",normalized:"install"},measure:{primary:"messen",normalized:"measure"},beep:{primary:"piepton",normalized:"beep"},break:{primary:"unterbrechen",normalized:"break"},copy:{primary:"kopieren",normalized:"copy"},exit:{primary:"beenden",normalized:"exit"},pick:{primary:"ausw\xE4hlen",normalized:"pick"},render:{primary:"rendern",normalized:"render"},into:{primary:"hinein",normalized:"into"},before:{primary:"vor",normalized:"before"},after:{primary:"nach",normalized:"after"},click:{primary:"Klick",alternatives:["Klicken"],normalized:"click"},hover:{primary:"Hover",alternatives:["Schweben"],normalized:"hover"},submit:{primary:"Absenden",alternatives:["Senden"],normalized:"submit"},input:{primary:"Eingabe",normalized:"input"},change:{primary:"\xC4nderung",alternatives:["\xC4ndern"],normalized:"change"},resize:{primary:"gr\xF6\xDFe\xE4ndern",normalized:"resize"},until:{primary:"bis",normalized:"until"},event:{primary:"Ereignis",alternatives:["Event"],normalized:"event"},from:{primary:"von",alternatives:["aus"],normalized:"from"},connect:{primary:"verbinden",alternatives:["Verbindung"],normalized:"connect"},stream:{primary:"stream",alternatives:["Strom"],normalized:"stream"},live:{primary:"direkt",alternatives:["live","echtzeit"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"binden",alternatives:["verknuepfen","bind"],normalized:"bind"},intercept:{primary:"abfangen",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"arbeiter",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["ereignisquelle"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"bei",alternatives:["auf"],normalized:"on"},sourceMarker:{primary:"von",alternatives:["aus"],position:"before"},conditionalKeyword:{primary:"wenn",alternatives:["falls"]},eventMarker:{primary:"bei",alternatives:["beim"],position:"before"},temporalMarkers:["wenn","bei"]}}});function ng(n){let e=n.toLowerCase();return!!(e.endsWith("en")||e.endsWith("eln")||e.endsWith("ern")||e.startsWith("ge")&&e.endsWith("t")||e.startsWith("ge")&&e.endsWith("en")||/[äöüß]/i.test(n))}var rg,ag,ig,og,Ct,O0,il=z(()=>{"use strict";ae();rg=["an","auf","aus","ein","mit","vor","zu","ab","bei","nach","weg","um","her","hin"];ag=[{ending:"end",stem:"en",confidence:.88,type:"gerund"},{ending:"e",stem:"en",confidence:.75,type:"present"},{ending:"st",stem:"en",confidence:.8,type:"present"},{ending:"t",stem:"en",confidence:.78,type:"present"},{ending:"en",stem:"en",confidence:.85,type:"dictionary"},{ending:"test",stem:"en",confidence:.85,type:"past"},{ending:"ten",stem:"en",confidence:.82,type:"past"},{ending:"tet",stem:"en",confidence:.85,type:"past"},{ending:"te",stem:"en",confidence:.82,type:"past"},{ending:"test",stem:"en",confidence:.8,type:"subjunctive"},{ending:"ten",stem:"en",confidence:.78,type:"subjunctive"},{ending:"tet",stem:"en",confidence:.8,type:"subjunctive"},{ending:"te",stem:"en",confidence:.78,type:"subjunctive"},{ending:"e",stem:"en",confidence:.72,type:"imperative"},{ending:"t",stem:"en",confidence:.72,type:"imperative"},{ending:"en",stem:"en",confidence:.75,type:"imperative"}],ig=[{ending:"le",stem:"eln",confidence:.82,type:"present"},{ending:"elst",stem:"eln",confidence:.85,type:"present"},{ending:"elt",stem:"eln",confidence:.85,type:"present"},{ending:"eln",stem:"eln",confidence:.88,type:"dictionary"},{ending:"re",stem:"ern",confidence:.82,type:"present"},{ending:"erst",stem:"ern",confidence:.85,type:"present"},{ending:"ert",stem:"ern",confidence:.85,type:"present"},{ending:"ern",stem:"ern",confidence:.88,type:"dictionary"}],og=[...ag,...ig].sort((n,e)=>e.ending.length-n.ending.length),Ct=class{constructor(){this.language="de"}isNormalizable(e){return e.length<3?!1:ng(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("en")&&t.length>=4)return V(e);if((t.endsWith("eln")||t.endsWith("ern"))&&t.length>=5)return V(e);let r=this.tryParticipleNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryParticipleNormalization(e){for(let t of rg)if(e.startsWith(t+"ge")){let r=e.slice(t.length),a=this.trySimpleParticipleNormalization(r);if(a){let i={removedPrefixes:["ge"],conjugationType:"participle"};return a.metadata?.removedSuffixes&&(i.removedSuffixes=a.metadata.removedSuffixes),x(t+a.stem,a.confidence*.95,i)}}return this.trySimpleParticipleNormalization(e)}trySimpleParticipleNormalization(e){if(!e.startsWith("ge"))return null;let t=e.slice(2);if(t.endsWith("t")&&t.length>=3){let r=t.slice(0,-1);return x(r+"en",.85,{removedPrefixes:["ge"],removedSuffixes:["t"],conjugationType:"participle"})}return t.endsWith("en")&&t.length>=4?x(t,.82,{removedPrefixes:["ge"],conjugationType:"participle"}):null}tryConjugationNormalization(e){for(let t of og)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},O0=new Ct});function sg(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function ol(){return[new ua]}var lg,cg,pg,ua,sl=z(()=>{"use strict";({isLetter:lg,isIdentifierChar:cg}=sg(/[a-zA-ZäöüÄÖÜß]/)),pg=new Set(["an","auf","aus","bei","durch","f\xFCr","fur","gegen","in","mit","nach","ohne","seit","\xFCber","uber","um","unter","von","vor","zu","zwischen","bis","gegen\xFCber","gegenuber","w\xE4hrend","wahrend","wegen","trotz","statt","innerhalb","au\xDFerhalb","ausserhalb"]),ua=class{constructor(){this.name="german-keyword"}setContext(e){this.context=e}canExtract(e,t){return lg(e[t])}extract(e,t){if(!this.context)throw new Error("GermanKeywordExtractor: context not set");return this.extractGermanWord(e,t)}extractGermanWord(e,t){if(!this.context)return null;let r=t,a="";for(;r<e.length&&cg(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=pg.has(i),s=this.context.lookupKeyword(a),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var ll={};N(ll,{GermanTokenizer:()=>Ar,germanTokenizer:()=>dg});var mg,Ar,dg,cl=z(()=>{"use strict";D();da();il();G();X();sl();mg=[{native:"wahr",normalized:"true"},{native:"falsch",normalized:"false"},{native:"null",normalized:"null"},{native:"undefiniert",normalized:"undefined"},{native:"erste",normalized:"first"},{native:"erster",normalized:"first"},{native:"erstes",normalized:"first"},{native:"letzte",normalized:"last"},{native:"letzter",normalized:"last"},{native:"letztes",normalized:"last"},{native:"n\xE4chste",normalized:"next"},{native:"nachste",normalized:"next"},{native:"n\xE4chstgelegene",normalized:"closest"},{native:"nachstgelegene",normalized:"closest"},{native:"vorherige",normalized:"previous"},{native:"eltern",normalized:"parent"},{native:"klick",normalized:"click"},{native:"click",normalized:"click"},{native:"eingabe",normalized:"input"},{native:"\xE4nderung",normalized:"change"},{native:"anderung",normalized:"change"},{native:"absenden",normalized:"submit"},{native:"taste unten",normalized:"keydown"},{native:"taste oben",normalized:"keyup"},{native:"maus dr\xFCber",normalized:"mouseover"},{native:"maus druber",normalized:"mouseover"},{native:"maus weg",normalized:"mouseout"},{native:"fokus",normalized:"focus"},{native:"unsch\xE4rfe",normalized:"blur"},{native:"unscharfe",normalized:"blur"},{native:"scrollen",normalized:"scroll"},{native:"meine",normalized:"my"},{native:"meinen",normalized:"my"},{native:"ergebnis",normalized:"result"},{native:"ziel",normalized:"target"},{native:"sekunde",normalized:"s"},{native:"sekunden",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"millisekunden",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minuten",normalized:"m"},{native:"stunde",normalized:"h"},{native:"stunden",normalized:"h"},{native:"hinzufugen",normalized:"add"},{native:"hinzufgen",normalized:"add"},{native:"loschen",normalized:"remove"},{native:"anhangen",normalized:"append"},{native:"erhohen",normalized:"increment"},{native:"ubergang",normalized:"transition"},{native:"auslosen",normalized:"trigger"},{native:"zuruckgeben",normalized:"return"},{native:"anschliessend",normalized:"then"},{native:"erh\xF6he",normalized:"increment"},{native:"erhohe",normalized:"increment"},{native:"verringere",normalized:"decrement"}],Ar=class extends R{constructor(){super();this.language="de";this.direction="ltr";this.initializeKeywordsFromProfile(ma,mg),this.normalizer=new Ct,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(ol()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},dg=new Ar});var pl={};N(pl,{indonesianProfile:()=>fa});var fa,ya=z(()=>{"use strict";fa={code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",regions:["priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"itu",you:"anda",result:"hasil",event:"peristiwa",target:"target",body:"badan"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"saya",it:"nya",you:"anda"},keywords:{saya:"me",aku:"me",ku:"me",my:"me",anda:"you",kamu:"you",mu:"you",nya:"it",dia:"it",miliknya:"it"},connectors:["punya"]},roleMarkers:{destination:{primary:"pada",alternatives:["ke","di"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"alihkan",normalized:"toggle"},add:{primary:"tambah",alternatives:["tambahkan"],normalized:"add"},remove:{primary:"hapus",alternatives:["buang","hilangkan"],normalized:"remove"},put:{primary:"taruh",alternatives:["letakkan","masukkan"],normalized:"put"},append:{primary:"sisipkan",normalized:"append"},prepend:{primary:"awali",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["bikin","ciptakan"],normalized:"make"},clone:{primary:"klon",alternatives:["tiru"],normalized:"clone"},swap:{primary:"tukar",alternatives:["ganti"],normalized:"swap"},morph:{primary:"ubah",alternatives:["transformasi"],normalized:"morph"},set:{primary:"atur",alternatives:["tetapkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:["peroleh"],normalized:"get"},increment:{primary:"tingkatkan",alternatives:["naikkan"],normalized:"increment"},decrement:{primary:"turunkan",alternatives:["kurangi"],normalized:"decrement"},log:{primary:"catat",alternatives:["rekam","cetak"],normalized:"log"},show:{primary:"tampilkan",alternatives:["perlihatkan"],normalized:"show"},hide:{primary:"sembunyikan",alternatives:["tutup"],normalized:"hide"},transition:{primary:"transisi",alternatives:["animasikan"],normalized:"transition"},on:{primary:"pada",alternatives:["saat"],normalized:"on"},trigger:{primary:"picu",alternatives:["jalankan"],normalized:"trigger"},send:{primary:"kirim",alternatives:["kirimkan"],normalized:"send"},focus:{primary:"fokus",alternatives:["fokuskan"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},empty:{primary:"kosongkan",alternatives:["kosong"],normalized:"empty"},open:{primary:"buka",normalized:"open"},close:{primary:"tutupkan",normalized:"close"},select:{primary:"tandai",normalized:"select"},clear:{primary:"bersihkan",normalized:"clear"},reset:{primary:"setel-ulang",alternatives:["reset"],normalized:"reset"},breakpoint:{primary:"titik-henti",normalized:"breakpoint"},go:{primary:"pergi",alternatives:["pindah","navigasi"],normalized:"go"},scroll:{primary:"gulir",alternatives:["gulung"],normalized:"scroll"},push:{primary:"dorong",alternatives:["push"],normalized:"push"},replace:{primary:"ganti_url",alternatives:["gantikan_url"],normalized:"replace"},process:{primary:"proses",normalized:"process"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"muat",normalized:"fetch"},settle:{primary:"stabilkan",normalized:"settle"},if:{primary:"jika",alternatives:["kalau","bila"],normalized:"if"},unless:{primary:"kecuali",normalized:"unless"},when:{primary:"ketika",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"selainnya",alternatives:["lainnya"],normalized:"else"},repeat:{primary:"ulangi",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selama",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"lanjutkan",alternatives:["terus"],normalized:"continue"},halt:{primary:"hentikan",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"kembalikan",alternatives:["kembali"],normalized:"return"},then:{primary:"lalu",alternatives:["kemudian","setelah itu"],normalized:"then"},and:{primary:"dan",alternatives:["juga","serta"],normalized:"and"},end:{primary:"selesai",alternatives:["akhir","tamat"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asinkron",normalized:"async"},tell:{primary:"katakan",alternatives:["beritahu"],normalized:"tell"},default:{primary:"bawaan",normalized:"default"},init:{primary:"inisialisasi",alternatives:["mulai"],normalized:"init"},behavior:{primary:"perilaku",normalized:"behavior"},install:{primary:"pasang",alternatives:["instal"],normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"putuskan",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"olah",normalized:"render"},into:{primary:"ke dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"sesudah",alternatives:["setelah"],normalized:"after"},click:{primary:"klik",alternatives:["tekan"],normalized:"click"},hover:{primary:"hover",alternatives:["arahkan"],normalized:"hover"},submit:{primary:"ajukan",normalized:"submit"},input:{primary:"masuk",alternatives:["input","masukan"],normalized:"input"},change:{primary:"berubah",normalized:"change"},until:{primary:"sampai",normalized:"until"},event:{primary:"peristiwa",alternatives:["event"],normalized:"event"},from:{primary:"dari",normalized:"from"},connect:{primary:"sambungkan",alternatives:["hubungkan","koneksi"],normalized:"connect"},stream:{primary:"alirkan",alternatives:["streaming"],normalized:"stream"},live:{primary:"langsung",alternatives:["live"],normalized:"live"},socket:{primary:"soket",alternatives:["socket","websocket"],normalized:"socket"},bind:{primary:"ikat",alternatives:["kaitkan","bind"],normalized:"bind"},intercept:{primary:"cegat",alternatives:["tangkap","intercept"],normalized:"intercept"},worker:{primary:"pekerja",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sumber peristiwa"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"pada",alternatives:["ketika","saat"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},conditionalKeyword:{primary:"ketika",alternatives:["saat","waktu"]},eventMarker:{primary:"saat",alternatives:["ketika","pada"],position:"before"},temporalMarkers:["ketika","saat"]}}});var ml={};N(ml,{IndonesianTokenizer:()=>jr,indonesianTokenizer:()=>yg});var ug,fg,jr,yg,dl=z(()=>{"use strict";D();ya();G();X();To();ug=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]),fg=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"null",normalized:"null"},{native:"kosong",normalized:"null"},{native:"tidakdidefinisikan",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"berikutnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"ubah",normalized:"change"},{native:"kirim",normalized:"submit"},{native:"tekan",normalized:"keydown"},{native:"arahkan",normalized:"mouseover"},{native:"tinggalkan",normalized:"mouseout"},{native:"kabur",normalized:"blur"},{native:"muat",normalized:"load"},{native:"gulir",normalized:"scroll"},{native:"input",normalized:"input"},{native:"milik",normalized:"my"},{native:"detik",normalized:"s"},{native:"milidetik",normalized:"ms"},{native:"menit",normalized:"m"},{native:"jam",normalized:"h"},{native:"atau",normalized:"or"},{native:"tidak",normalized:"not"},{native:"adalah",normalized:"is"},{native:"ada",normalized:"exists"}],jr=class extends R{constructor(){super();this.language="id";this.direction="ltr";this.initializeKeywordsFromProfile(fa,fg),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(So()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return ug.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},yg=new jr});var ul={};N(ul,{quechuaProfile:()=>ga});var ga,va=z(()=>{"use strict";ga={code:"qu",name:"Quechua",nativeName:"Runasimi",direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,verb:{position:"end",subjectDrop:!0},references:{me:"noqa",it:"chay",you:"qam",result:"rurasqa",event:"ruwakuq",target:"punta",body:"kurku"},possessive:{marker:"-pa",markerPosition:"after-object",keywords:{\u00F1uqapa:"me",\u00F1uqaypa:"me",noqaq:"me",qampa:"you",paypa:"it",chay:"it"},connectors:["paq","pa"]},roleMarkers:{patient:{primary:"ta",position:"after"},destination:{primary:"man",alternatives:["pa"],position:"after"},source:{primary:"manta",position:"after"},style:{primary:"wan",position:"after"},event:{primary:"pi",position:"after"}},keywords:{toggle:{primary:"t'ikray",alternatives:["tikray"],normalized:"toggle"},add:{primary:"yapay",alternatives:["yapaykuy"],normalized:"add"},remove:{primary:"qichuy",alternatives:["hurquy","anchuchiy"],normalized:"remove"},put:{primary:"churay",alternatives:["tiyachiy"],normalized:"put"},append:{primary:"qatichiy",alternatives:["qhipaman_yapay"],normalized:"append"},prepend:{primary:"\xF1awpachiy",normalized:"prepend"},take:{primary:"hapiy",normalized:"take"},make:{primary:"ruray",alternatives:["kamay"],normalized:"make"},clone:{primary:"kikinchay",alternatives:[],normalized:"clone"},swap:{primary:"t'inkuy",alternatives:["rantikunakuy","rantin_tikray"],normalized:"swap"},morph:{primary:"tukunay",alternatives:[],normalized:"morph"},set:{primary:"churanay",alternatives:["kamaykuy"],normalized:"set"},get:{primary:"taripay",normalized:"get"},increment:{primary:"yapachiy",normalized:"increment"},decrement:{primary:"pisiyachiy",normalized:"decrement"},log:{primary:"qillqakuy",alternatives:["willakuy"],normalized:"log"},show:{primary:"rikuchiy",alternatives:["qawachiy"],normalized:"show"},hide:{primary:"pakay",alternatives:["pakakuy"],normalized:"hide"},transition:{primary:"pasay",alternatives:[],normalized:"transition"},on:{primary:"chaypim",alternatives:["kaypi"],normalized:"on"},trigger:{primary:"kuyuchiy",alternatives:["kichay"],normalized:"trigger"},send:{primary:"kachay",alternatives:["apachiy"],normalized:"send"},focus:{primary:"qhawachiy",alternatives:["qhaway"],normalized:"focus"},blur:{primary:"paqariy",alternatives:["mana qhawachiy"],normalized:"blur"},empty:{primary:"ch'usaq",normalized:"empty"},open:{primary:"paskay",normalized:"open"},close:{primary:"wichqay",normalized:"close"},select:{primary:"marcay",normalized:"select"},clear:{primary:"pichay",normalized:"clear"},reset:{primary:"musuqchay",normalized:"reset"},breakpoint:{primary:"sayachinay",normalized:"breakpoint"},go:{primary:"riy",alternatives:["puriy"],normalized:"go"},scroll:{primary:"kunray",alternatives:[],normalized:"scroll"},push:{primary:"tanqay",normalized:"push"},replace:{primary:"tikray_url",alternatives:[],normalized:"replace"},process:{primary:"rurariy",normalized:"process"},wait:{primary:"suyay",normalized:"wait"},fetch:{primary:"apamuy",alternatives:["taripakaramuy"],normalized:"fetch"},settle:{primary:"tiyakuy",normalized:"settle"},if:{primary:"sichus",normalized:"if"},unless:{primary:"mana sichus",normalized:"unless"},when:{primary:"maykama",normalized:"when"},where:{primary:"maypi",normalized:"where"},else:{primary:"manachus",alternatives:["hukniraq"],normalized:"else"},repeat:{primary:"kutipay",alternatives:["muyu"],normalized:"repeat"},for:{primary:"sapankaq",normalized:"for"},while:{primary:"kaykamaqa",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"qatipay",normalized:"continue"},halt:{primary:"sayay",alternatives:[],normalized:"halt"},throw:{primary:"chanqay",normalized:"throw"},call:{primary:"waqyay",alternatives:["qayay"],normalized:"call"},return:{primary:"kutichiy",alternatives:["kutimuy"],normalized:"return"},then:{primary:"chaymantataq",alternatives:["hinaspa","chaymanta"],normalized:"then"},and:{primary:"hinallataq",alternatives:["ima","chaymantawan"],normalized:"and"},end:{primary:"tukukuy",alternatives:["tukuy","puchukay"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"mana waqtalla",normalized:"async"},tell:{primary:"niy",alternatives:[],normalized:"tell"},default:{primary:"\xF1awpaq_kaq",alternatives:["qallariy"],normalized:"default"},init:{primary:"qallarichiy",normalized:"init"},behavior:{primary:"ruwana",normalized:"behavior"},install:{primary:"tarpuy",normalized:"install"},measure:{primary:"tupuy",normalized:"measure"},beep:{primary:"waqay",normalized:"beep"},break:{primary:"p'akiy",normalized:"break"},copy:{primary:"qillqay",normalized:"copy"},exit:{primary:"lluqsiy",normalized:"exit"},pick:{primary:"akllay",normalized:"pick"},render:{primary:"rikurichiy",normalized:"render"},into:{primary:"ukuman",normalized:"into"},before:{primary:"\xF1awpaq",normalized:"before"},after:{primary:"qhipa",normalized:"after"},until:{primary:"kama",alternatives:["-kama"],normalized:"until"},event:{primary:"ruwakuq",alternatives:["imayna"],normalized:"event"},from:{primary:"manta",alternatives:["-manta"],normalized:"from"},click:{primary:"\xF1itiy",normalized:"click"},load:{primary:"apakuy",normalized:"load"},submit:{primary:"apaykachay",normalized:"submit"},hover:{primary:"hawachiy",normalized:"hover"},input:{primary:"yaykuchiy",normalized:"input"},change:{primary:"kambiay",normalized:"change"},connect:{primary:"tinkiy",alternatives:["watay","hukllachay"],normalized:"connect"},stream:{primary:"phawachiy",alternatives:["sururichiy","ch'uquchiy"],normalized:"stream"},live:{primary:"kawsachkaq",alternatives:["kunan-pacha","kawsay"],normalized:"live"},socket:{primary:"tinkina",alternatives:["t'oqo","tinkiy-tinkina"],normalized:"socket"},bind:{primary:"bind",alternatives:["watachiy"],normalized:"bind"},intercept:{primary:"hark'ay",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"llamk'aq",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["kawsay-pukyu"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"pi",alternatives:["kaqtin"]},sourceMarker:{primary:"manta",position:"after"},eventMarker:{primary:"pi",alternatives:["kaqtin","kaqpi"],position:"after"}}}});function gg(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:n==="\xF1"||n==="\xD1"||n==="'"||n==="'"}function vg(n){for(let e of n)if(gg(e))return!0;return!1}var hg,ha,fl,yl=z(()=>{"use strict";ae();hg=[{pattern:"shankichik",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shaniku",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shanki",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shani",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanchik",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanku",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shan",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"rqankichik",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqaniku",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqanki",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqani",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanchik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanku",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"nqankichik",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqaniku",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqanki",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqani",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanchik",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanku",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqa",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"chikuy",confidence:.8,conjugationType:"compound",minStemLength:2},{pattern:"chiku",confidence:.82,conjugationType:"compound",minStemLength:2},{pattern:"chiy",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chiq",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chi",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"kuy",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"rqa",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"sha",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"na",confidence:.85,conjugationType:"obligation",minStemLength:2},{pattern:"manmi",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"man",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"nkichik",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"niku",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"nki",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nchik",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nku",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"ni",confidence:.85,conjugationType:"present",minStemLength:2},{pattern:"ku",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"ychik",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"y",confidence:.9,conjugationType:"dictionary",minStemLength:2},{pattern:"sqa",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ska",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"kama",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"manta",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"man",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"wan",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"pi",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"ta",confidence:.7,conjugationType:"dictionary",minStemLength:2}],ha=class{constructor(){this.language="qu"}isNormalizable(e){return!(!vg(e)||e.length<3||!/[aiu]/.test(e.toLowerCase()))}normalize(e){let t=e.toLowerCase();for(let r of hg)if(t.endsWith(r.pattern)){let a=t.slice(0,-r.pattern.length);r.replacement&&!a.endsWith(r.replacement)&&(a=a+r.replacement);let i=r.minStemLength??2;if(a.length<i||!this.isValidStem(a))continue;let o={removedSuffixes:[r.pattern]};return r.conjugationType&&(o.conjugationType=r.conjugationType),x(a,r.confidence,o)}return V(e)}isValidStem(e){return!(e.length<2||!/[aeiou]/.test(e)||new Set(["ta","man","pi","wan","pa","kama","hina"]).has(e))}},fl=new ha});var gl={};N(gl,{QuechuaTokenizer:()=>Mr,quechuaTokenizer:()=>xg});var za,zg,kg,Mr,xg,vl=z(()=>{"use strict";D();va();yl();G();X();jo();za=class{constructor(){this.name="quechua-string-literal"}canExtract(e,t){return e[t]==='"'||e[t]==="'"}extract(e,t){let r=e[t],a=r,i=t+1;for(;i<e.length;){let o=e[i];if(o===r)return a+=o,{value:a,length:a.length};o==="\\"&&i+1<e.length?(a+=o+e[i+1],i+=2):(a+=o,i++)}return null}},zg=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),kg=[{native:"cheqaq",normalized:"true"},{native:"ar\xED",normalized:"true"},{native:"ari",normalized:"true"},{native:"manan",normalized:"false"},{native:"mana",normalized:"false"},{native:"ch'usaq",normalized:"null"},{native:"chusaq",normalized:"null"},{native:"mana riqsisqa",normalized:"undefined"},{native:"\xF1awpaqpi",normalized:"before"},{native:"nawpaqpi",normalized:"before"},{native:"qhepapi",normalized:"after"},{native:"qhipapi",normalized:"after"},{native:"\xF1awpaq",normalized:"first"},{native:"nawpaq",normalized:"first"},{native:"qhipa",normalized:"last"},{native:"hamuq",normalized:"next"},{native:"qhipantin",normalized:"next"},{native:"\xF1awpaqnin",normalized:"previous"},{native:"\xF1awpaq kaq",normalized:"previous"},{native:"\xF1awpaq_kaq",normalized:"previous"},{native:"kaylla",normalized:"closest"},{native:"qaylla",normalized:"closest"},{native:"tayta",normalized:"parent"},{native:"llikllay",normalized:"click"},{native:"\xF1itiy",normalized:"click"},{native:"\xF1it'iy",normalized:"click"},{native:"click",normalized:"click"},{native:"yaykuy",normalized:"input"},{native:"llave uray",normalized:"keydown"},{native:"llave hawa",normalized:"keyup"},{native:"mausiri yayku",normalized:"mouseover"},{native:"mausiri lluqsi",normalized:"mouseout"},{native:"rat\xF1itiy",normalized:"mousedown"},{native:"rathuqariy",normalized:"mouseup"},{native:"qhaway",normalized:"focus"},{native:"mana qhaway",normalized:"blur"},{native:"kargay",normalized:"load"},{native:"muyuy",normalized:"scroll"},{native:"\xF1uqa",normalized:"me"},{native:"nuqa",normalized:"me"},{native:"\xF1uqap",normalized:"my"},{native:"nuqap",normalized:"my"},{native:"chay",normalized:"it"},{native:"chaymi",normalized:"it"},{native:"lluqsiy",normalized:"result"},{native:"ruway",normalized:"event"},{native:"maypi",normalized:"target"},{native:"sikundu",normalized:"s"},{native:"segundu",normalized:"s"},{native:"waranqa sikundu",normalized:"ms"},{native:"minutu",normalized:"m"},{native:"ura",normalized:"h"},{native:"hora",normalized:"h"},{native:"chaypim",normalized:"on"},{native:"kaypi",normalized:"on"},{native:"chayqa",normalized:"then"},{native:"chaymanta",normalized:"then"},{native:"chaymantataq",normalized:"then"},{native:"hinaspa",normalized:"then"},{native:"tukukuy",normalized:"end"},{native:"puchukay",normalized:"end"},{native:"kaykama",normalized:"until"},{native:"yapay",normalized:"add"},{native:"t'ikray",normalized:"toggle"},{native:"tikray",normalized:"toggle"},{native:"qhawachiy",normalized:"focus"},{native:"mana qhawachiy",normalized:"blur"},{native:"-manta",normalized:"from"}],Mr=class extends R{constructor(){super();this.language="qu";this.direction="ltr";this.initializeKeywordsFromProfile(ga,kg),this.setNormalizer(fl),this.registerExtractors(W()),this.registerExtractor(new za),this.registerExtractor(new M),this.registerExtractor(Ao()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return zg.has(r)?"particle":this.isKeyword(r)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":"identifier"}},xg=new Mr});var hl={};N(hl,{swahiliProfile:()=>ka});var ka,xa=z(()=>{"use strict";ka={code:"sw",name:"Swahili",nativeName:"Kiswahili",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"mimi",it:"hiyo",you:"wewe",result:"matokeo",event:"tukio",target:"lengo",body:"mwili"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"yangu",it:"yake",you:"yako"},keywords:{wangu:"me",yangu:"me",langu:"me",changu:"me",wako:"you",yako:"you",lako:"you",chako:"you",wake:"it",yake:"it",lake:"it",chake:"it"}},roleMarkers:{destination:{primary:"kwenye",alternatives:["kwa"],position:"before"},source:{primary:"kutoka",position:"before"},patient:{primary:"",position:"before"},style:{primary:"na",position:"before"}},keywords:{toggle:{primary:"badilisha",normalized:"toggle"},add:{primary:"ongeza",normalized:"add"},remove:{primary:"ondoa",alternatives:["futa","toa"],normalized:"remove"},put:{primary:"weka",alternatives:["tia"],normalized:"put"},append:{primary:"ambatanisha",normalized:"append"},prepend:{primary:"tanguliza",normalized:"prepend"},take:{primary:"chukua",normalized:"take"},make:{primary:"tengeneza",alternatives:["unda"],normalized:"make"},clone:{primary:"nakili",alternatives:["rudufu"],normalized:"clone"},swap:{primary:"badilishana",alternatives:["badalisha"],normalized:"swap"},morph:{primary:"geuza",alternatives:["badilisha umbo"],normalized:"morph"},set:{primary:"seti",normalized:"set"},get:{primary:"pata",alternatives:["pokea"],normalized:"get"},increment:{primary:"ongezeko",normalized:"increment"},decrement:{primary:"punguza",normalized:"decrement"},log:{primary:"andika",alternatives:["rekodi"],normalized:"log"},show:{primary:"onyesha",normalized:"show"},hide:{primary:"ficha",alternatives:["mficho"],normalized:"hide"},transition:{primary:"hamisha",alternatives:["animisha","mpito"],normalized:"transition"},on:{primary:"unapo",alternatives:["kwenye"],normalized:"on"},trigger:{primary:"chochea",normalized:"trigger"},send:{primary:"tuma",alternatives:["peleka"],normalized:"send"},focus:{primary:"lenga",alternatives:["angazia"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},empty:{primary:"toa-kila-kitu",alternatives:["mwaga","tupu"],normalized:"empty"},open:{primary:"fungua",normalized:"open"},close:{primary:"funga",normalized:"close"},select:{primary:"alama",normalized:"select"},clear:{primary:"safisha",normalized:"clear"},reset:{primary:"anzisha-upya",normalized:"reset"},breakpoint:{primary:"nukta-simama",normalized:"breakpoint"},go:{primary:"nenda",alternatives:["enda","elekea"],normalized:"go"},scroll:{primary:"sogeza",alternatives:["skroli"],normalized:"scroll"},push:{primary:"sukuma",alternatives:["push"],normalized:"push"},replace:{primary:"badilisha_url",alternatives:["badili_url"],normalized:"replace"},process:{primary:"shughulikia",alternatives:["changanua"],normalized:"process"},wait:{primary:"subiri",alternatives:["ngoja"],normalized:"wait"},fetch:{primary:"leta",alternatives:["pakia"],normalized:"fetch"},settle:{primary:"tulia",alternatives:["imarika"],normalized:"settle"},if:{primary:"kama",alternatives:["ikiwa"],normalized:"if"},unless:{primary:"isipokuwa",normalized:"unless"},when:{primary:"wakati",normalized:"when"},where:{primary:"wapi",normalized:"where"},else:{primary:"vinginevyo",alternatives:["sivyo"],normalized:"else"},repeat:{primary:"rudia",normalized:"repeat"},for:{primary:"kwa",normalized:"for"},while:{primary:"kadri",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"endelea",normalized:"continue"},halt:{primary:"simama",alternatives:["acha"],normalized:"halt"},throw:{primary:"tupa",normalized:"throw"},call:{primary:"ita",normalized:"call"},return:{primary:"rudisha",alternatives:["rejea"],normalized:"return"},then:{primary:"kisha",alternatives:["halafu","baadaye"],normalized:"then"},and:{primary:"na",alternatives:["pia","vilevile"],normalized:"and"},is:{primary:"ni",normalized:"is"},end:{primary:"mwisho",alternatives:["maliza","tamati"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"isiyo sawia",normalized:"async"},tell:{primary:"sema",alternatives:["ambia"],normalized:"tell"},default:{primary:"chaguo-msingi",alternatives:["msingi"],normalized:"default"},init:{primary:"anzisha",alternatives:["anza"],normalized:"init"},behavior:{primary:"tabia",normalized:"behavior"},install:{primary:"sakinisha",normalized:"install"},measure:{primary:"pima",normalized:"measure"},beep:{primary:"lia",normalized:"beep"},break:{primary:"vunja",normalized:"break"},copy:{primary:"nakala",normalized:"copy"},exit:{primary:"toka",normalized:"exit"},pick:{primary:"chagua",normalized:"pick"},render:{primary:"chora",normalized:"render"},into:{primary:"ndani",normalized:"into"},before:{primary:"kabla",normalized:"before"},after:{primary:"baada",normalized:"after"},until:{primary:"hadi",normalized:"until"},event:{primary:"tukio",normalized:"event"},from:{primary:"kutoka",normalized:"from"},connect:{primary:"unganisha",alternatives:["unga","ungana"],normalized:"connect"},stream:{primary:"tiririsha",alternatives:["mtiririko","strimu"],normalized:"stream"},live:{primary:"moja-kwa-moja",alternatives:["mubashara","hai"],normalized:"live"},socket:{primary:"soketi",alternatives:["tundu","soketi-wavuti"],normalized:"socket"},bind:{primary:"ambatisha",alternatives:["funganisha","bind"],normalized:"bind"},intercept:{primary:"zuia",alternatives:["nasa","intercept"],normalized:"intercept"},worker:{primary:"mfanyakazi",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["chanzo-matukio"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"unapo",alternatives:["kwenye","kwa","wakati"]},sourceMarker:{primary:"kutoka",position:"before"},conditionalKeyword:{primary:"unapo",alternatives:["anapo","tunapo","mnapo","wanapo"]},eventMarker:{primary:"unapo",alternatives:["kwenye","kwa","wakati"],position:"before"}}}});var zl={};N(zl,{SwahiliTokenizer:()=>Or,swahiliTokenizer:()=>Sg});var wg,bg,Or,Sg,kl=z(()=>{"use strict";D();xa();G();X();Lo();wg=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]),bg=[{native:"kweli",normalized:"true"},{native:"uongo",normalized:"false"},{native:"null",normalized:"null"},{native:"haijafafanuliwa",normalized:"undefined"},{native:"kwanza",normalized:"first"},{native:"wamwisho",normalized:"last"},{native:"ifuatayo",normalized:"next"},{native:"ijayo",normalized:"next"},{native:"iliyotangulia",normalized:"previous"},{native:"iliyopita",normalized:"previous"},{native:"karibu",normalized:"closest"},{native:"mzazi",normalized:"parent"},{native:"bonyeza",normalized:"click"},{native:"click",normalized:"click"},{native:"ganti",normalized:"change"},{native:"wasilisha",normalized:"submit"},{native:"bonyeza kitufe",normalized:"keydown"},{native:"sogeza juu",normalized:"mouseover"},{native:"sogeza nje",normalized:"mouseout"},{native:"panya_shuka",normalized:"mousedown"},{native:"panya_juu",normalized:"mouseup"},{native:"panya_ingia",normalized:"mouseenter"},{native:"panya_toka",normalized:"mouseleave"},{native:"panya_nje",normalized:"mouseout"},{native:"panya_sogea",normalized:"mousemove"},{native:"kitufe_shuka",normalized:"keydown"},{native:"kitufe_juu",normalized:"keyup"},{native:"fifia",normalized:"blur"},{native:"pakia",normalized:"load"},{native:"sukuma",normalized:"scroll"},{native:"input",normalized:"input"},{native:"ingizo",normalized:"input"},{native:"yangu",normalized:"my"},{native:"wangu",normalized:"my"},{native:"changu",normalized:"my"},{native:"langu",normalized:"my"},{native:"sekunde",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saa",normalized:"h"},{native:"au",normalized:"or"},{native:"si",normalized:"not"},{native:"ni",normalized:"is"},{native:"ipo",normalized:"exists"},{native:"tupu",normalized:"empty"}],Or=class extends R{constructor(){super();this.language="sw";this.direction="ltr";this.initializeKeywordsFromProfile(ka,bg),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Po()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return wg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Sg=new Or});function xl(n){return/[\u0980-\u09FF]/u.test(n)}var Tg,wa,wl,bl=z(()=>{"use strict";ae();Tg=[{suffix:"\u099A\u09CD\u099B\u09C7 \u0986\u099B\u09C7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B \u0986\u099B\u09BF",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09C7\u09A8 \u0986\u099B\u09C7\u09A8",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09C7\u099B\u09C7\u09A8",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09C7\u099B\u09C7",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09C7\u099B",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09AC\u09C7\u09A8",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09AC\u09C7",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09AC\u09CB",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09B2\u09C7\u09A8",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09B2\u09CB",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09B2",replacement:"",confidence:.85,type:"past",minStemLength:2},{suffix:"\u09C1\u09A8",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u09CB",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09C7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09BF",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09BE",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u09C7",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09BF",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09CB",replacement:"",confidence:.85,type:"present",minStemLength:2}],wa=class{constructor(){this.language="bn"}isNormalizable(e){return e.length<2?!1:xl(e)}normalize(e){let t=this.tryConjugationNormalization(e);return t||V(e)}tryConjugationNormalization(e){for(let t of Tg)if(e.endsWith(t.suffix)){let r=Array.from(e),a=Array.from(t.suffix),i=r.slice(0,r.length-a.length),o=i.join("")+t.replacement,s=t.minStemLength??1;if(i.length<s||o.length>0&&!xl(o))continue;return x(o,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}},wl=new wa});var Sl={};N(Sl,{bengaliProfile:()=>ba});var ba,Sa=z(()=>{"use strict";ba={code:"bn",name:"Bengali",nativeName:"\u09AC\u09BE\u0982\u09B2\u09BE",direction:"ltr",script:"bengali",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u09C1\u09A8","\u09CB","\u09BE","\u09C7","\u09BF"],subjectDrop:!0},references:{me:"\u0986\u09AE\u09BF",it:"\u098F\u099F\u09BF",you:"\u0986\u09AA\u09A8\u09BF",result:"\u09AB\u09B2\u09BE\u09AB\u09B2",event:"\u0998\u099F\u09A8\u09BE",target:"\u09B2\u0995\u09CD\u09B7\u09CD\u09AF",body:"\u09AC\u09A1\u09BF"},possessive:{marker:"\u09B0",markerPosition:"between",keywords:{\u0986\u09AE\u09BE\u09B0:"me",\u09A4\u09CB\u09AE\u09BE\u09B0:"you",\u0986\u09AA\u09A8\u09BE\u09B0:"you",\u09A4\u09BE\u09B0:"it",\u098F\u09B0:"it"}},roleMarkers:{patient:{primary:"\u0995\u09C7",position:"after"},destination:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},source:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},style:{primary:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:"after"},event:{primary:"\u09A4\u09C7",position:"after"}},keywords:{toggle:{primary:"\u099F\u0997\u09B2",normalized:"toggle"},add:{primary:"\u09AF\u09CB\u0997",alternatives:["\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"],normalized:"add"},remove:{primary:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09B8\u09B0\u09BF\u09AF\u09BC\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8","\u09AE\u09C1\u099B\u09C1\u09A8"],normalized:"remove"},put:{primary:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"],normalized:"put"},append:{primary:"\u099C\u09C1\u09A1\u09BC\u09C1\u09A8",alternatives:[],normalized:"append"},prepend:{primary:"\u09B6\u09C1\u09B0\u09C1\u09A4\u09C7 \u09AF\u09CB\u0997",alternatives:[],normalized:"prepend"},take:{primary:"\u09A8\u09BF\u09A8",alternatives:["\u09A8\u09C7"],normalized:"take"},make:{primary:"\u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09C1\u09A8",alternatives:["\u09AC\u09BE\u09A8\u09BE\u09A8"],normalized:"make"},clone:{primary:"\u0995\u09CD\u09B2\u09CB\u09A8",alternatives:["\u09AA\u09CD\u09B0\u09A4\u09BF\u09B2\u09BF\u09AA\u09BF"],normalized:"clone"},swap:{primary:"\u09AC\u09A6\u09B2",alternatives:[],normalized:"swap"},morph:{primary:"\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0",alternatives:[],normalized:"morph"},set:{primary:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"],normalized:"set"},get:{primary:"\u09AA\u09BE\u09A8",normalized:"get"},increment:{primary:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"],normalized:"increment"},decrement:{primary:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"],normalized:"decrement"},log:{primary:"\u09B2\u0997",alternatives:["\u09B0\u09C7\u0995\u09B0\u09CD\u09A1"],normalized:"log"},show:{primary:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"],normalized:"show"},hide:{primary:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"],normalized:"hide"},transition:{primary:"\u09B8\u0982\u0995\u09CD\u09B0\u09AE\u09A3",alternatives:[],normalized:"transition"},on:{primary:"\u09A4\u09C7",alternatives:["\u098F"],normalized:"on"},trigger:{primary:"\u099F\u09CD\u09B0\u09BF\u0997\u09BE\u09B0",alternatives:[],normalized:"trigger"},send:{primary:"\u09AA\u09BE\u09A0\u09BE\u09A8",alternatives:["\u09AA\u09BE\u09A0\u09BE\u0993"],normalized:"send"},focus:{primary:"\u09AB\u09CB\u0995\u09BE\u09B8",alternatives:["\u09AE\u09A8\u09CB\u09AF\u09CB\u0997"],normalized:"focus"},blur:{primary:"\u099D\u09BE\u09AA\u09B8\u09BE",alternatives:["\u09AB\u09CB\u0995\u09BE\u09B8_\u09B8\u09B0\u09BE\u09A8"],normalized:"blur"},empty:{primary:"\u0996\u09BE\u09B2\u09BF-\u0995\u09B0\u09C1\u09A8",alternatives:["\u0996\u09BE\u09B2\u09BF"],normalized:"empty"},open:{primary:"\u0996\u09C1\u09B2\u09C1\u09A8",normalized:"open"},close:{primary:"\u09AC\u09A8\u09CD\u09A7",normalized:"close"},select:{primary:"\u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8",normalized:"select"},clear:{primary:"\u09AA\u09B0\u09BF\u09B7\u09CD\u0995\u09BE\u09B0",normalized:"clear"},reset:{primary:"\u09B0\u09BF\u09B8\u09C7\u099F",normalized:"reset"},breakpoint:{primary:"\u09AC\u09CD\u09B0\u09C7\u0995\u09AA\u09AF\u09BC\u09C7\u09A8\u09CD\u099F",normalized:"breakpoint"},click:{primary:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},hover:{primary:"\u09B9\u09CB\u09AD\u09BE\u09B0",alternatives:["\u0989\u09AA\u09B0\u09C7_\u09B0\u09BE\u0996\u09C1\u09A8"],normalized:"hover"},submit:{primary:"\u09B8\u09BE\u09AC\u09AE\u09BF\u099F",alternatives:["\u099C\u09AE\u09BE"],normalized:"submit"},input:{primary:"\u0987\u09A8\u09AA\u09C1\u099F",alternatives:["\u09AA\u09CD\u09B0\u09AC\u09C7\u09B6"],normalized:"input"},change:{primary:"\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8",normalized:"change"},go:{primary:"\u09AF\u09BE\u09A8",alternatives:["\u09AF\u09BE\u0993"],normalized:"go"},scroll:{primary:"\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2",normalized:"scroll"},push:{primary:"\u09AA\u09C1\u09B6",alternatives:["\u09A0\u09C7\u09B2\u09C1\u09A8"],normalized:"push"},replace:{primary:"\u09AA\u09CD\u09B0\u09A4\u09BF\u09B8\u09CD\u09A5\u09BE\u09AA\u09A8",normalized:"replace"},process:{primary:"\u09AA\u09CD\u09B0\u09B8\u09C7\u09B8",alternatives:["\u09AA\u09CD\u09B0\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09BE"],normalized:"process"},wait:{primary:"\u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE",normalized:"wait"},fetch:{primary:"\u0986\u09A8\u09C1\u09A8",alternatives:[],normalized:"fetch"},settle:{primary:"\u09B8\u09CD\u09A5\u09BF\u09B0",alternatives:[],normalized:"settle"},if:{primary:"\u09AF\u09A6\u09BF",alternatives:[],normalized:"if"},when:{primary:"\u09AF\u0996\u09A8",normalized:"when"},where:{primary:"\u0995\u09CB\u09A5\u09BE\u09AF\u09BC",normalized:"where"},else:{primary:"\u09A8\u09A4\u09C1\u09AC\u09BE",alternatives:["\u09A8\u09BE \u09B9\u09B2\u09C7"],normalized:"else"},repeat:{primary:"\u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF",alternatives:["\u09AC\u09BE\u09B0 \u09AC\u09BE\u09B0"],normalized:"repeat"},for:{primary:"\u099C\u09A8\u09CD\u09AF",alternatives:[],normalized:"for"},while:{primary:"\u09AF\u09A4\u0995\u09CD\u09B7\u09A3",alternatives:[],normalized:"while"},forever:{primary:"\u099A\u09BF\u09B0\u0995\u09BE\u09B2",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u099A\u09BE\u09B2\u09BF\u09AF\u09BC\u09C7 \u09AF\u09BE\u09A8",alternatives:[],normalized:"continue"},halt:{primary:"\u09A5\u09BE\u09AE\u09C1\u09A8",alternatives:["\u09A5\u09BE\u09AE\u09BE\u0993"],normalized:"halt"},throw:{primary:"\u09A8\u09BF\u0995\u09CD\u09B7\u09C7\u09AA",alternatives:["\u099B\u09C1\u0981\u09A1\u09BC\u09C7 \u09A6\u09BF\u09A8"],normalized:"throw"},call:{primary:"\u0995\u09B2",alternatives:["\u09A1\u09BE\u0995\u09C1\u09A8"],normalized:"call"},return:{primary:"\u09AB\u09BF\u09B0\u09C1\u09A8",alternatives:["\u09AB\u09C7\u09B0\u09A4 \u09A6\u09BF\u09A8"],normalized:"return"},then:{primary:"\u09A4\u09BE\u09B0\u09AA\u09B0",alternatives:["\u09A4\u0996\u09A8"],normalized:"then"},and:{primary:"\u098F\u09AC\u0982",alternatives:[],normalized:"and"},end:{primary:"\u09B6\u09C7\u09B7",alternatives:["\u09B8\u09AE\u09BE\u09AA\u09CD\u09A4"],normalized:"end"},js:{primary:"\u099C\u09C7\u098F\u09B8",alternatives:["js"],normalized:"js"},async:{primary:"\u0985\u09CD\u09AF\u09BE\u09B8\u09BF\u0999\u09CD\u0995",alternatives:[],normalized:"async"},tell:{primary:"\u09AC\u09B2\u09C1\u09A8",alternatives:["\u09AC\u09B2"],normalized:"tell"},default:{primary:"\u09A1\u09BF\u09AB\u09B2\u09CD\u099F",alternatives:[],normalized:"default"},init:{primary:"\u09B6\u09C1\u09B0\u09C1",alternatives:[],normalized:"init"},behavior:{primary:"\u0986\u099A\u09B0\u09A3",alternatives:[],normalized:"behavior"},install:{primary:"\u0987\u09A8\u09B8\u09CD\u099F\u09B2",alternatives:[],normalized:"install"},measure:{primary:"\u09AE\u09BE\u09AA\u09C1\u09A8",alternatives:[],normalized:"measure"},beep:{primary:"\u09AC\u09C0\u09AA",alternatives:[],normalized:"beep"},break:{primary:"\u09AD\u09BE\u0999\u09C1\u09A8",alternatives:[],normalized:"break"},copy:{primary:"\u0995\u09AA\u09BF",alternatives:[],normalized:"copy"},exit:{primary:"\u09AC\u09C7\u09B0",alternatives:[],normalized:"exit"},pick:{primary:"\u09AC\u09BE\u099B\u09C1\u09A8",alternatives:[],normalized:"pick"},render:{primary:"\u09B0\u09C7\u09A8\u09CD\u09A1\u09BE\u09B0",alternatives:[],normalized:"render"},into:{primary:"\u09AD\u09BF\u09A4\u09B0\u09C7",normalized:"into"},before:{primary:"\u0986\u0997\u09C7",alternatives:[],normalized:"before"},after:{primary:"\u09AA\u09B0\u09C7",alternatives:[],normalized:"after"},until:{primary:"\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",alternatives:[],normalized:"until"},event:{primary:"\u0998\u099F\u09A8\u09BE",alternatives:[],normalized:"event"},from:{primary:"\u09A5\u09C7\u0995\u09C7",normalized:"from"},connect:{primary:"\u0995\u09BE\u09A8\u09C7\u0995\u09CD\u099F",alternatives:["\u09B8\u0982\u09AF\u09CB\u0997","\u09AF\u09C1\u0995\u09CD\u09A4"],normalized:"connect"},stream:{primary:"\u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u09AE",alternatives:["\u09B8\u09CD\u09B0\u09CB\u09A4","\u09AA\u09CD\u09B0\u09AC\u09BE\u09B9"],normalized:"stream"},live:{primary:"\u09B2\u09BE\u0987\u09AD",alternatives:["\u09B8\u09B0\u09BE\u09B8\u09B0\u09BF","\u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u0995\u09CD\u09B7"],normalized:"live"},socket:{primary:"\u09B8\u0995\u09C7\u099F",alternatives:["\u0993\u09AF\u09BC\u09C7\u09AC\u09B8\u0995\u09C7\u099F"],normalized:"socket"},bind:{primary:"\u09AC\u09BE\u0987\u09A8\u09CD\u09A1",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\u0986\u099F\u0995\u09BE\u0993",alternatives:["\u0987\u09A8\u09CD\u099F\u09BE\u09B0\u09B8\u09C7\u09AA\u09CD\u099F","intercept"],normalized:"intercept"},worker:{primary:"\u0995\u09B0\u09CD\u09AE\u09C0",alternatives:["\u0993\u09AF\u09BC\u09BE\u09B0\u09CD\u0995\u09BE\u09B0","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0987\u09AD\u09C7\u09A8\u09CD\u099F\u09B8\u09CB\u09B0\u09CD\u09B8"],normalized:"eventsource"}},tokenization:{particles:["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u09A4\u09C7",alternatives:["\u098F","\u09AF\u0996\u09A8"],normalized:"on"},sourceMarker:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},eventMarker:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},temporalMarkers:["\u09AF\u0996\u09A8","\u09AF\u0996\u09A8\u0987"]}}});var Tl={};N(Tl,{BengaliTokenizer:()=>Wr,bengaliTokenizer:()=>Lg});var Eg,Pg,Wr,Lg,El=z(()=>{"use strict";D();bl();Sa();G();X();uo();yo();Pe();Eg=new Set(["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4","\u098F","\u09AE\u09A7\u09CD\u09AF\u09C7"]),Pg=[{native:"\u09B8\u09A4\u09CD\u09AF",normalized:"true"},{native:"\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE",normalized:"false"},{native:"\u09B6\u09C2\u09A8\u09CD\u09AF",normalized:"null"},{native:"\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4",normalized:"undefined"},{native:"\u09AA\u09CD\u09B0\u09A5\u09AE",normalized:"first"},{native:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",normalized:"next"},{native:"\u0986\u0997\u09C7\u09B0",normalized:"previous"},{native:"\u09A8\u09BF\u0995\u099F\u09A4\u09AE",normalized:"closest"},{native:"\u09AE\u09C2\u09B2",normalized:"parent"},{native:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},{native:"\u099C\u09AE\u09BE",normalized:"submit"},{native:"\u0987\u09A8\u09AA\u09C1\u099F",normalized:"input"},{native:"\u09B2\u09CB\u09A1",normalized:"load"},{native:"\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2",normalized:"scroll"},{native:"\u0995\u09C7",normalized:"to"},{native:"\u09B8\u09BE\u09A5\u09C7",normalized:"with"}],Wr=class extends R{constructor(){super();this.language="bn";this.direction="ltr";this.initializeKeywordsFromProfile(ba,Pg),this.setNormalizer(wl),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new dr),this.registerExtractor(new mr),this.registerExtractor(new ee),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return Eg.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":(t.startsWith(":"),"identifier")}},Lg=new Wr});function Pl(n){return/[\u0900-\u097F\u0A8E-\u0A8F]/u.test(n)}var Cg,Rt,zS,Ll=z(()=>{"use strict";ae();Cg=[{suffix:" \u0930\u0939\u093E \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0940 \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0947 \u0939\u0948\u0902",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u093E",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0940",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0947",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0942\u0902\u0917\u093E",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0942\u0902\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u093E",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0902\u0917\u0947",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0924\u093E \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940 \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947 \u0939\u0948\u0902",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u093E",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0928\u093E",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u093E\u092F\u093E",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093E\u092F\u0940",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093E\u092F\u0947",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u092F\u093E",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093F\u092F\u0947",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093F\u090F",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u0908",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u090F",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u0947\u0902",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u094B",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093E",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0940",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0947",replacement:"",confidence:.82,type:"past",minStemLength:2}],Rt=class{constructor(){this.language="hi"}isNormalizable(e){return e.length<2?!1:Pl(e)}normalize(e){let t=this.tryConjugationNormalization(e);return t||V(e)}tryConjugationNormalization(e){for(let t of Cg)if(e.endsWith(t.suffix)){let r=Array.from(e),a=Array.from(t.suffix),i=r.slice(0,r.length-a.length),o=i.join("")+t.replacement,s=t.minStemLength??1;if(i.length<s||o.length>0&&!Pl(o))continue;return x(o,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}},zS=new Rt});var Cl={};N(Cl,{hindiProfile:()=>Ta});var Ta,Ea=z(()=>{"use strict";Ta={code:"hi",name:"Hindi",nativeName:"\u0939\u093F\u0928\u094D\u0926\u0940",direction:"ltr",script:"devanagari",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u0947\u0902","\u093E","\u0940","\u0947","\u094B"],subjectDrop:!0},references:{me:"\u092E\u0948\u0902",it:"\u092F\u0939",you:"\u0906\u092A",result:"\u092A\u0930\u093F\u0923\u093E\u092E",event:"\u0918\u091F\u0928\u093E",target:"\u0932\u0915\u094D\u0937\u094D\u092F",body:"\u092C\u0949\u0921\u0940"},possessive:{marker:"\u0915\u093E",markerPosition:"between",keywords:{\u092E\u0947\u0930\u093E:"me",\u092E\u0947\u0930\u0940:"me",\u092E\u0947\u0930\u0947:"me",\u0924\u0947\u0930\u093E:"you",\u0924\u0947\u0930\u0940:"you",\u0924\u0947\u0930\u0947:"you",\u0906\u092A\u0915\u093E:"you",\u0906\u092A\u0915\u0940:"you",\u0906\u092A\u0915\u0947:"you",\u0909\u0938\u0915\u093E:"it",\u0909\u0938\u0915\u0940:"it",\u0909\u0938\u0915\u0947:"it",\u0907\u0938\u0915\u093E:"it",\u0907\u0938\u0915\u0940:"it",\u0907\u0938\u0915\u0947:"it"}},roleMarkers:{patient:{primary:"\u0915\u094B",position:"after"},destination:{primary:"\u092E\u0947\u0902",alternatives:["\u092A\u0930"],position:"after"},source:{primary:"\u0938\u0947",position:"after"},style:{primary:"\u0938\u0947",position:"after"},event:{primary:"\u092A\u0930",position:"after"}},keywords:{toggle:{primary:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"],normalized:"toggle"},add:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"],normalized:"add"},remove:{primary:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"],normalized:"remove"},put:{primary:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"],normalized:"put"},append:{primary:"\u0938\u0902\u0932\u0917\u094D\u0928",alternatives:[],normalized:"append"},prepend:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902_\u0936\u0941\u0930\u0942",alternatives:[],normalized:"prepend"},take:{primary:"\u0932\u0947\u0902",alternatives:["\u0932\u0947"],normalized:"take"},make:{primary:"\u092C\u0928\u093E\u090F\u0902",alternatives:["\u092C\u0928\u093E"],normalized:"make"},clone:{primary:"\u0915\u094D\u0932\u094B\u0928",alternatives:["\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F"],normalized:"clone"},swap:{primary:"\u0935\u093F\u0928\u093F\u092E\u092F",alternatives:[],normalized:"swap"},morph:{primary:"\u0930\u0942\u092A\u093E\u0902\u0924\u0930",alternatives:[],normalized:"morph"},set:{primary:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"],normalized:"set"},get:{primary:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"],normalized:"get"},increment:{primary:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"],normalized:"increment"},decrement:{primary:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"],normalized:"decrement"},log:{primary:"\u0932\u0949\u0917",alternatives:["\u0926\u0930\u094D\u091C"],normalized:"log"},show:{primary:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"],normalized:"show"},hide:{primary:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"],normalized:"hide"},transition:{primary:"\u0938\u0902\u0915\u094D\u0930\u092E\u0923",alternatives:[],normalized:"transition"},on:{primary:"\u092A\u0930",alternatives:[],normalized:"on"},trigger:{primary:"\u091F\u094D\u0930\u093F\u0917\u0930",alternatives:[],normalized:"trigger"},send:{primary:"\u092D\u0947\u091C\u0947\u0902",alternatives:["\u092D\u0947\u091C"],normalized:"send"},focus:{primary:"\u092B\u094B\u0915\u0938",alternatives:["\u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924"],normalized:"focus"},blur:{primary:"\u0927\u0941\u0902\u0927\u0932\u093E",alternatives:["\u092B\u094B\u0915\u0938_\u0939\u091F\u093E\u090F\u0902"],normalized:"blur"},empty:{primary:"\u0916\u093E\u0932\u0940-\u0915\u0930\u0947\u0902",alternatives:["\u0916\u093E\u0932\u0940"],normalized:"empty"},open:{primary:"\u0916\u094B\u0932\u0947\u0902",normalized:"open"},close:{primary:"\u092C\u0902\u0926-\u0915\u0930\u0947\u0902",normalized:"close"},select:{primary:"\u091A\u093F\u0939\u094D\u0928\u093F\u0924-\u0915\u0930\u0947\u0902",normalized:"select"},clear:{primary:"\u0938\u093E\u092B\u093C-\u0915\u0930\u0947\u0902",alternatives:["\u0938\u093E\u092B-\u0915\u0930\u0947\u0902"],normalized:"clear"},reset:{primary:"\u0930\u0940\u0938\u0947\u091F",normalized:"reset"},breakpoint:{primary:"\u092C\u094D\u0930\u0947\u0915\u092A\u094D\u0935\u093E\u0907\u0902\u091F",normalized:"breakpoint"},click:{primary:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},hover:{primary:"\u0939\u094B\u0935\u0930",alternatives:["\u090A\u092A\u0930_\u0930\u0916\u0947\u0902"],normalized:"hover"},submit:{primary:"\u0938\u092C\u092E\u093F\u091F",alternatives:["\u091C\u092E\u093E"],normalized:"submit"},input:{primary:"\u0907\u0928\u092A\u0941\u091F",alternatives:[],normalized:"input"},change:{primary:"\u092C\u0926\u0932\u093E\u0935",alternatives:["\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928"],normalized:"change"},go:{primary:"\u091C\u093E\u090F\u0902",alternatives:["\u091C\u093E"],normalized:"go"},scroll:{primary:"\u0938\u094D\u0915\u094D\u0930\u0949\u0932",normalized:"scroll"},push:{primary:"\u0927\u0915\u0947\u0932\u0947\u0902",alternatives:["\u092A\u0941\u0936"],normalized:"push"},replace:{primary:"\u092C\u0926\u0932\u0947\u0902_\u092F\u0942\u0906\u0930\u090F\u0932",alternatives:["\u092A\u094D\u0930\u0924\u093F\u0938\u094D\u0925\u093E\u092A\u093F\u0924"],normalized:"replace"},process:{primary:"\u0938\u0902\u0938\u093E\u0927\u093F\u0924",alternatives:["\u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0943\u0924"],normalized:"process"},wait:{primary:"\u092A\u094D\u0930\u0924\u0940\u0915\u094D\u0937\u093E",alternatives:["\u0930\u0941\u0915\u0947\u0902"],normalized:"wait"},fetch:{primary:"\u0932\u093E\u090F\u0902",alternatives:[],normalized:"fetch"},settle:{primary:"\u0938\u094D\u0925\u093F\u0930",alternatives:[],normalized:"settle"},if:{primary:"\u0905\u0917\u0930",alternatives:["\u092F\u0926\u093F"],normalized:"if"},when:{primary:"\u091C\u092C",normalized:"when"},where:{primary:"\u0915\u0939\u093E\u0901",normalized:"where"},else:{primary:"\u0935\u0930\u0928\u093E",alternatives:["\u0928\u0939\u0940\u0902 \u0924\u094B"],normalized:"else"},repeat:{primary:"\u0926\u094B\u0939\u0930\u093E\u090F\u0902",alternatives:["\u0926\u094B\u0939\u0930\u093E"],normalized:"repeat"},for:{primary:"\u0915\u0947 \u0932\u093F\u090F",alternatives:["\u0939\u0947\u0924\u0941"],normalized:"for"},while:{primary:"\u091C\u092C \u0924\u0915",alternatives:[],normalized:"while"},forever:{primary:"\u0939\u092E\u0947\u0936\u093E",normalized:"forever",alternatives:["forever"]},unless:{primary:"\u091C\u092C \u0924\u0915 \u0928\u0939\u0940\u0902",normalized:"unless"},continue:{primary:"\u091C\u093E\u0930\u0940",alternatives:[],normalized:"continue"},halt:{primary:"\u0930\u094B\u0915\u0947\u0902",alternatives:["\u0930\u094B\u0915"],normalized:"halt"},throw:{primary:"\u092B\u0947\u0902\u0915\u0947\u0902",alternatives:["\u092B\u0947\u0902\u0915"],normalized:"throw"},call:{primary:"\u0915\u0949\u0932",alternatives:["\u092C\u0941\u0932\u093E\u090F\u0902"],normalized:"call"},return:{primary:"\u0932\u094C\u091F\u093E\u090F\u0902",alternatives:["\u0932\u094C\u091F\u093E"],normalized:"return"},then:{primary:"\u092B\u093F\u0930",alternatives:["\u0924\u092C"],normalized:"then"},and:{primary:"\u0914\u0930",alternatives:[],normalized:"and"},matches:{primary:"\u092E\u0947\u0932 \u0916\u093E\u0924\u093E",normalized:"matches"},end:{primary:"\u0938\u092E\u093E\u092A\u094D\u0924",alternatives:["\u0905\u0902\u0924"],normalized:"end"},js:{primary:"\u091C\u0947\u090F\u0938",alternatives:["js"],normalized:"js"},async:{primary:"\u0905\u0938\u093F\u0902\u0915",alternatives:[],normalized:"async"},tell:{primary:"\u092C\u0924\u093E\u090F\u0902",alternatives:["\u092C\u0924\u093E"],normalized:"tell"},default:{primary:"\u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F",alternatives:[],normalized:"default"},init:{primary:"\u092A\u094D\u0930\u093E\u0930\u0902\u092D",alternatives:[],normalized:"init"},behavior:{primary:"\u0935\u094D\u092F\u0935\u0939\u093E\u0930",alternatives:[],normalized:"behavior"},install:{primary:"\u0907\u0902\u0938\u094D\u091F\u0949\u0932",alternatives:[],normalized:"install"},measure:{primary:"\u092E\u093E\u092A\u0947\u0902",alternatives:[],normalized:"measure"},beep:{primary:"\u092C\u0940\u092A",alternatives:[],normalized:"beep"},break:{primary:"\u0924\u094B\u0921\u093C\u0947\u0902",alternatives:[],normalized:"break"},copy:{primary:"\u0915\u0949\u092A\u0940",alternatives:[],normalized:"copy"},exit:{primary:"\u092C\u093E\u0939\u0930",alternatives:[],normalized:"exit"},pick:{primary:"\u091A\u0941\u0928\u0947\u0902",alternatives:[],normalized:"pick"},render:{primary:"\u0930\u0947\u0902\u0921\u0930",alternatives:[],normalized:"render"},into:{primary:"\u092E\u0947\u0902",alternatives:[],normalized:"into"},before:{primary:"\u0938\u0947 \u092A\u0939\u0932\u0947",alternatives:["\u092A\u0939\u0932\u0947"],normalized:"before"},after:{primary:"\u0915\u0947 \u092C\u093E\u0926",alternatives:["\u092C\u093E\u0926"],normalized:"after"},until:{primary:"\u0924\u0915",alternatives:[],normalized:"until"},event:{primary:"\u0918\u091F\u0928\u093E",alternatives:[],normalized:"event"},from:{primary:"\u0938\u0947",normalized:"from"},connect:{primary:"\u0915\u0928\u0947\u0915\u094D\u091F",alternatives:["\u0938\u0902\u092F\u094B\u091C\u093F\u0924"],normalized:"connect"},stream:{primary:"\u0938\u094D\u091F\u094D\u0930\u0940\u092E",alternatives:["\u0927\u093E\u0930\u093E","\u092A\u094D\u0930\u0935\u093E\u0939"],normalized:"stream"},live:{primary:"\u0932\u093E\u0907\u0935",alternatives:["\u0938\u091C\u0940\u0935","\u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937"],normalized:"live"},socket:{primary:"\u0938\u0949\u0915\u0947\u091F",alternatives:["\u0935\u0947\u092C\u0938\u0949\u0915\u0947\u091F"],normalized:"socket"},worker:{primary:"worker",alternatives:["\u0935\u0930\u094D\u0915\u0930"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0907\u0935\u0947\u0902\u091F\u0938\u094B\u0930\u094D\u0938"],normalized:"eventsource"},bind:{primary:"bind",alternatives:["\u092C\u093E\u0907\u0902\u0921","\u092C\u093E\u0902\u0927\u0947\u0902"],normalized:"bind"},intercept:{primary:"intercept",alternatives:["\u0907\u0902\u091F\u0930\u0938\u0947\u092A\u094D\u091F"],normalized:"intercept"}},tokenization:{particles:["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u092A\u0930",alternatives:[],normalized:"on"},sourceMarker:{primary:"\u0938\u0947",position:"after"},eventMarker:{primary:"\u092A\u0930",alternatives:[],position:"after"},temporalMarkers:["\u091C\u092C","\u091C\u092C \u092D\u0940"]}}});var Rl={};N(Rl,{HindiTokenizer:()=>Ir,hindiTokenizer:()=>Ag});var Rg,Ng,Ir,Ag,Nl=z(()=>{"use strict";D();Ll();Ea();G();X();so();po();Pe();Rg=new Set(["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"]),Ng=[{native:"\u092E\u093E\u0909\u0938\u0928\u0940\u091A\u0947",normalized:"mousedown"},{native:"\u092E\u093E\u0909\u0938\u090A\u092A\u0930",normalized:"mouseup"},{native:"\u0938\u091A",normalized:"true"},{native:"\u0938\u0924\u094D\u092F",normalized:"true"},{native:"\u091D\u0942\u0920",normalized:"false"},{native:"\u0905\u0938\u0924\u094D\u092F",normalized:"false"},{native:"\u0916\u093E\u0932\u0940",normalized:"null"},{native:"\u0905\u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924",normalized:"undefined"},{native:"\u092A\u0939\u0932\u093E",normalized:"first"},{native:"\u0905\u0902\u0924\u093F\u092E",normalized:"last"},{native:"\u0905\u0917\u0932\u093E",normalized:"next"},{native:"\u092A\u093F\u091B\u0932\u093E",normalized:"previous"},{native:"\u0928\u093F\u0915\u091F\u0924\u092E",normalized:"closest"},{native:"\u092E\u0942\u0932",normalized:"parent"},{native:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},{native:"\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928",normalized:"change"},{native:"\u091C\u092E\u093E",normalized:"submit"},{native:"\u0907\u0928\u092A\u0941\u091F",normalized:"input"},{native:"\u0932\u094B\u0921",normalized:"load"},{native:"\u0938\u094D\u0915\u094D\u0930\u0949\u0932",normalized:"scroll"},{native:"\u0915\u094B",normalized:"to"},{native:"\u0915\u0947 \u0938\u093E\u0925",normalized:"with"}],Ir=class extends R{constructor(){super();this.language="hi";this.direction="ltr";this.initializeKeywordsFromProfile(Ta,Ng),this.normalizer=new Rt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new pr),this.registerExtractor(new cr),this.registerExtractor(new ee),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return Rg.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":(t.startsWith(":"),"identifier")}},Ag=new Ir});function jg(n){return/[àèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/.test(n)}function Mg(n){let e=n.toLowerCase();if(e.endsWith("are")||e.endsWith("ere")||e.endsWith("ire")||e.endsWith("ando")||e.endsWith("endo")||e.endsWith("ato")||e.endsWith("uto")||e.endsWith("ito")||e.endsWith("arsi")||e.endsWith("ersi")||e.endsWith("irsi"))return!0;for(let t of n)if(jg(t))return!0;return!1}var Al,Og,Wg,Ig,Vg,Nt,RS,jl=z(()=>{"use strict";ae();Al=["si","mi","ti","ci","vi"],Og=[{ending:"ando",stem:"are",confidence:.88,type:"gerund"},{ending:"ato",stem:"are",confidence:.88,type:"participle"},{ending:"ata",stem:"are",confidence:.88,type:"participle"},{ending:"ati",stem:"are",confidence:.88,type:"participle"},{ending:"ate",stem:"are",confidence:.88,type:"participle"},{ending:"o",stem:"are",confidence:.75,type:"present"},{ending:"i",stem:"are",confidence:.72,type:"present"},{ending:"a",stem:"are",confidence:.75,type:"present"},{ending:"iamo",stem:"are",confidence:.85,type:"present"},{ending:"ate",stem:"are",confidence:.85,type:"present"},{ending:"ano",stem:"are",confidence:.85,type:"present"},{ending:"avo",stem:"are",confidence:.88,type:"past"},{ending:"avi",stem:"are",confidence:.88,type:"past"},{ending:"ava",stem:"are",confidence:.88,type:"past"},{ending:"avamo",stem:"are",confidence:.88,type:"past"},{ending:"avate",stem:"are",confidence:.88,type:"past"},{ending:"avano",stem:"are",confidence:.88,type:"past"},{ending:"ai",stem:"are",confidence:.85,type:"past"},{ending:"asti",stem:"are",confidence:.88,type:"past"},{ending:"\xF2",stem:"are",confidence:.85,type:"past"},{ending:"ammo",stem:"are",confidence:.88,type:"past"},{ending:"aste",stem:"are",confidence:.88,type:"past"},{ending:"arono",stem:"are",confidence:.88,type:"past"},{ending:"i",stem:"are",confidence:.72,type:"subjunctive"},{ending:"ino",stem:"are",confidence:.82,type:"subjunctive"},{ending:"a",stem:"are",confidence:.75,type:"imperative"},{ending:"are",stem:"are",confidence:.92,type:"dictionary"}],Wg=[{ending:"endo",stem:"ere",confidence:.88,type:"gerund"},{ending:"uto",stem:"ere",confidence:.85,type:"participle"},{ending:"uta",stem:"ere",confidence:.85,type:"participle"},{ending:"uti",stem:"ere",confidence:.85,type:"participle"},{ending:"ute",stem:"ere",confidence:.85,type:"participle"},{ending:"o",stem:"ere",confidence:.72,type:"present"},{ending:"i",stem:"ere",confidence:.72,type:"present"},{ending:"e",stem:"ere",confidence:.72,type:"present"},{ending:"iamo",stem:"ere",confidence:.85,type:"present"},{ending:"ete",stem:"ere",confidence:.85,type:"present"},{ending:"ono",stem:"ere",confidence:.82,type:"present"},{ending:"evo",stem:"ere",confidence:.88,type:"past"},{ending:"evi",stem:"ere",confidence:.88,type:"past"},{ending:"eva",stem:"ere",confidence:.88,type:"past"},{ending:"evamo",stem:"ere",confidence:.88,type:"past"},{ending:"evate",stem:"ere",confidence:.88,type:"past"},{ending:"evano",stem:"ere",confidence:.88,type:"past"},{ending:"ei",stem:"ere",confidence:.85,type:"past"},{ending:"etti",stem:"ere",confidence:.85,type:"past"},{ending:"esti",stem:"ere",confidence:.88,type:"past"},{ending:"\xE9",stem:"ere",confidence:.85,type:"past"},{ending:"ette",stem:"ere",confidence:.85,type:"past"},{ending:"emmo",stem:"ere",confidence:.88,type:"past"},{ending:"este",stem:"ere",confidence:.88,type:"past"},{ending:"erono",stem:"ere",confidence:.88,type:"past"},{ending:"ettero",stem:"ere",confidence:.88,type:"past"},{ending:"ere",stem:"ere",confidence:.92,type:"dictionary"}],Ig=[{ending:"endo",stem:"ire",confidence:.85,type:"gerund"},{ending:"ito",stem:"ire",confidence:.85,type:"participle"},{ending:"ita",stem:"ire",confidence:.85,type:"participle"},{ending:"iti",stem:"ire",confidence:.85,type:"participle"},{ending:"ite",stem:"ire",confidence:.85,type:"participle"},{ending:"o",stem:"ire",confidence:.7,type:"present"},{ending:"i",stem:"ire",confidence:.7,type:"present"},{ending:"e",stem:"ire",confidence:.7,type:"present"},{ending:"iamo",stem:"ire",confidence:.85,type:"present"},{ending:"ite",stem:"ire",confidence:.85,type:"present"},{ending:"ono",stem:"ire",confidence:.78,type:"present"},{ending:"isco",stem:"ire",confidence:.85,type:"present"},{ending:"isci",stem:"ire",confidence:.85,type:"present"},{ending:"isce",stem:"ire",confidence:.85,type:"present"},{ending:"iscono",stem:"ire",confidence:.88,type:"present"},{ending:"ivo",stem:"ire",confidence:.88,type:"past"},{ending:"ivi",stem:"ire",confidence:.88,type:"past"},{ending:"iva",stem:"ire",confidence:.88,type:"past"},{ending:"ivamo",stem:"ire",confidence:.88,type:"past"},{ending:"ivate",stem:"ire",confidence:.88,type:"past"},{ending:"ivano",stem:"ire",confidence:.88,type:"past"},{ending:"ii",stem:"ire",confidence:.85,type:"past"},{ending:"isti",stem:"ire",confidence:.88,type:"past"},{ending:"\xEC",stem:"ire",confidence:.85,type:"past"},{ending:"immo",stem:"ire",confidence:.88,type:"past"},{ending:"iste",stem:"ire",confidence:.88,type:"past"},{ending:"irono",stem:"ire",confidence:.88,type:"past"},{ending:"ire",stem:"ire",confidence:.92,type:"dictionary"}],Vg=[...Og,...Wg,...Ig].sort((n,e)=>e.ending.length-n.ending.length),Nt=class{constructor(){this.language="it"}isNormalizable(e){return e.length<3?!1:Mg(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("are")||t.endsWith("ere")||t.endsWith("ire"))&&!Al.some(i=>t.endsWith(i+"are")||t.endsWith(i+"ere")||t.endsWith(i+"ire")))return V(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryReflexiveNormalization(e){for(let t of Al)if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir")){let i=r+"e";return x(i,.88,{removedSuffixes:[t],conjugationType:"reflexive"})}if(r.endsWith("are")||r.endsWith("ere")||r.endsWith("ire"))return x(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let a=this.tryConjugationNormalization(r);if(a&&a.stem!==r)return x(a.stem,a.confidence*.95,{removedSuffixes:[t,...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let t of Vg)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},RS=new Nt});var Ml={};N(Ml,{italianProfile:()=>Pa});var Pa,La=z(()=>{"use strict";Pa={code:"it",name:"Italian",nativeName:"Italiano",regions:["western"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"io",it:"esso",you:"tu",result:"risultato",event:"evento",target:"obiettivo",body:"corpo"},possessive:{marker:"di",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mio",it:"suo",you:"tuo"},keywords:{mio:"me",mia:"me",miei:"me",mie:"me",tuo:"you",tua:"you",tuoi:"you",tue:"you",suo:"it",sua:"it",suoi:"it",sue:"it"}},roleMarkers:{destination:{primary:"in",alternatives:["su","a"],position:"before"},source:{primary:"da",alternatives:["di"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"commutare",alternatives:["alternare"],normalized:"toggle"},add:{primary:"aggiungere",alternatives:["aggiungi"],normalized:"add"},remove:{primary:"rimuovere",alternatives:["eliminare","togliere"],normalized:"remove"},put:{primary:"mettere",alternatives:["inserire"],normalized:"put"},append:{primary:"accodare",normalized:"append"},prepend:{primary:"anteporre",normalized:"prepend"},take:{primary:"prendere",normalized:"take"},make:{primary:"fare",alternatives:["creare"],normalized:"make"},clone:{primary:"clonare",normalized:"clone"},swap:{primary:"scambiare",normalized:"swap"},morph:{primary:"trasformare",alternatives:["convertire"],normalized:"morph"},set:{primary:"impostare",alternatives:["definire"],normalized:"set"},get:{primary:"ottenere",normalized:"get"},increment:{primary:"incrementare",alternatives:["aumentare"],normalized:"increment"},decrement:{primary:"decrementare",alternatives:["diminuire"],normalized:"decrement"},log:{primary:"registrare",normalized:"log"},show:{primary:"mostrare",alternatives:["visualizzare"],normalized:"show"},hide:{primary:"nascondere",normalized:"hide"},transition:{primary:"transizione",alternatives:["animare"],normalized:"transition"},on:{primary:"su",alternatives:["al"],normalized:"on"},trigger:{primary:"scatenare",alternatives:["attivare"],normalized:"trigger"},send:{primary:"inviare",normalized:"send"},focus:{primary:"focalizzare",normalized:"focus"},blur:{primary:"sfuocare",normalized:"blur"},empty:{primary:"svuotare",alternatives:["vuoto"],normalized:"empty"},open:{primary:"aprire",normalized:"open"},close:{primary:"chiudere",normalized:"close"},select:{primary:"selezionare",normalized:"select"},clear:{primary:"cancellare",normalized:"clear"},reset:{primary:"reimpostare",normalized:"reset"},breakpoint:{primary:"punto-interruzione",normalized:"breakpoint"},go:{primary:"andare",alternatives:["navigare","vai"],normalized:"go"},scroll:{primary:"scorrere",alternatives:["scroll"],normalized:"scroll"},push:{primary:"spingere",alternatives:["push"],normalized:"push"},replace:{primary:"sostituire",normalized:"replace"},process:{primary:"elaborare",alternatives:["processare"],normalized:"process"},wait:{primary:"aspettare",alternatives:["attendere"],normalized:"wait"},fetch:{primary:"recuperare",normalized:"fetch"},settle:{primary:"stabilizzare",normalized:"settle"},if:{primary:"se",normalized:"if"},unless:{primary:"salvo",normalized:"unless"},when:{primary:"quando",normalized:"when"},where:{primary:"dove",normalized:"where"},else:{primary:"altrimenti",normalized:"else"},repeat:{primary:"ripetere",normalized:"repeat"},for:{primary:"per",normalized:"for"},while:{primary:"mentre",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuare",normalized:"continue"},halt:{primary:"fermare",normalized:"halt"},throw:{primary:"lanciare",normalized:"throw"},call:{primary:"chiamare",normalized:"call"},return:{primary:"ritornare",normalized:"return"},then:{primary:"allora",alternatives:["poi","quindi"],normalized:"then"},and:{primary:"e",alternatives:["anche"],normalized:"and"},end:{primary:"fine",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asincrono",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"predefinito",normalized:"default"},init:{primary:"inizializzare",alternatives:["inizia"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"installare",normalized:"install"},measure:{primary:"misurare",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"interrompere",normalized:"break"},copy:{primary:"copiare",normalized:"copy"},exit:{primary:"uscire",normalized:"exit"},pick:{primary:"scegliere",normalized:"pick"},render:{primary:"renderizzare",normalized:"render"},into:{primary:"in",alternatives:["dentro"],normalized:"into"},before:{primary:"prima",normalized:"before"},after:{primary:"dopo",normalized:"after"},click:{primary:"clic",alternatives:["clicca"],normalized:"click"},resize:{primary:"ridimensiona",normalized:"resize"},hover:{primary:"passaggio",alternatives:["sorvolo"],normalized:"hover"},submit:{primary:"invio",alternatives:["sottomettere"],normalized:"submit"},input:{primary:"inserimento",alternatives:["input"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiamento"],normalized:"change"},load:{primary:"carica",alternatives:["caricamento"],normalized:"load"},until:{primary:"fino",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"da",alternatives:["di"],normalized:"from"},connect:{primary:"connettere",alternatives:["connettersi","collegare"],normalized:"connect"},stream:{primary:"trasmettere",alternatives:["flusso","streaming"],normalized:"stream"},live:{primary:"in-diretta",alternatives:["diretta","dal-vivo","vivo"],normalized:"live"},socket:{primary:"socket",alternatives:["presa","websocket"],normalized:"socket"},bind:{primary:"vincolare",alternatives:["legare","bind"],normalized:"bind"},intercept:{primary:"intercettare",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"lavoratore",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sorgente-eventi"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"su",alternatives:["al"],normalized:"on"},sourceMarker:{primary:"da",alternatives:["di"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"al",alternatives:["allo","alla","su"],position:"before"},temporalMarkers:["quando","al"]}}});function _g(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Ol(){return[new Ca("italian-keyword",/[a-zA-ZàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/,qg)]}var Ca,qg,Wl=z(()=>{"use strict";Ca=class{constructor(e,t,r){this.name=e;let a=_g(t);this.isLetter=a.isLetter,this.isIdentifierChar=a.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){return this.isLetter(e[t])}extract(e,t){if(!this.context)throw new Error(`${this.name}: context not set`);let r=t,a="";for(;r<e.length&&this.isIdentifierChar(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.prepositions.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}},qg=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"])});var Il={};N(Il,{ItalianTokenizer:()=>Vr,italianTokenizer:()=>Bg});var Kg,$g,Vr,Bg,Vl=z(()=>{"use strict";D();jl();La();G();X();Wl();Kg=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"]),$g=[{native:"vero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nullo",normalized:"null"},{native:"indefinito",normalized:"undefined"},{native:"primo",normalized:"first"},{native:"prima",normalized:"first"},{native:"ultimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"prossimo",normalized:"next"},{native:"successivo",normalized:"next"},{native:"precedente",normalized:"previous"},{native:"vicino",normalized:"closest"},{native:"padre",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"fare clic",normalized:"click"},{native:"input",normalized:"input"},{native:"cambio",normalized:"change"},{native:"invio",normalized:"submit"},{native:"tasto gi\xF9",normalized:"keydown"},{native:"tasto su",normalized:"keyup"},{native:"mouse sopra",normalized:"mouseover"},{native:"mouse fuori",normalized:"mouseout"},{native:"fuoco",normalized:"focus"},{native:"sfuocatura",normalized:"blur"},{native:"caricamento",normalized:"load"},{native:"scorrimento",normalized:"scroll"},{native:"io",normalized:"me"},{native:"me",normalized:"me"},{native:"destinazione",normalized:"target"},{native:"secondo",normalized:"s"},{native:"secondi",normalized:"s"},{native:"millisecondo",normalized:"ms"},{native:"millisecondi",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minuti",normalized:"m"},{native:"ora",normalized:"h"},{native:"ore",normalized:"h"},{native:"fino a",normalized:"until"},{native:"prima di",normalized:"before"},{native:"dopo di",normalized:"after"},{native:"dentro di",normalized:"into"},{native:"fuori di",normalized:"out"},{native:"aggiungere",normalized:"add"},{native:"aggiungi",normalized:"add"},{native:"rimuovi",normalized:"remove"},{native:"elimina",normalized:"remove"},{native:"togli",normalized:"remove"},{native:"metti",normalized:"put"},{native:"inserisci",normalized:"put"},{native:"prendi",normalized:"take"},{native:"fai",normalized:"make"},{native:"crea",normalized:"make"},{native:"clona",normalized:"clone"},{native:"copia",normalized:"clone"},{native:"imposta",normalized:"set"},{native:"ottieni",normalized:"get"},{native:"incrementa",normalized:"increment"},{native:"aumenta",normalized:"increment"},{native:"decrementa",normalized:"decrement"},{native:"diminuisci",normalized:"decrement"},{native:"registra",normalized:"log"},{native:"mostra",normalized:"show"},{native:"visualizza",normalized:"show"},{native:"nascondi",normalized:"hide"},{native:"anima",normalized:"transition"},{native:"scatena",normalized:"trigger"},{native:"attiva",normalized:"trigger"},{native:"invia",normalized:"send"},{native:"focalizza",normalized:"focus"},{native:"sfuoca",normalized:"blur"},{native:"vai",normalized:"go"},{native:"naviga",normalized:"go"},{native:"aspetta",normalized:"wait"},{native:"attendi",normalized:"wait"},{native:"recupera",normalized:"fetch"},{native:"stabilizza",normalized:"settle"},{native:"ripeti",normalized:"repeat"},{native:"continua",normalized:"continue"},{native:"ferma",normalized:"halt"},{native:"lancia",normalized:"throw"},{native:"chiama",normalized:"call"},{native:"ritorna",normalized:"return"},{native:"inizializza",normalized:"init"},{native:"installa",normalized:"install"},{native:"misura",normalized:"measure"},{native:"e",normalized:"and"},{native:"o",normalized:"or"},{native:"non",normalized:"not"},{native:"\xE8",normalized:"is"},{native:"esiste",normalized:"exists"},{native:"vuoto",normalized:"empty"},{native:"toggle",normalized:"toggle"},{native:"di",normalized:"tell"}],Vr=class extends R{constructor(){super();this.language="it";this.direction="ltr";this.initializeKeywordsFromProfile(Pa,$g),this.setNormalizer(new Nt),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Ol()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Kg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Bg=new Vr});var _l={};N(_l,{malayProfile:()=>Ra});var Ra,Na=z(()=>{"use strict";Ra={code:"ms",name:"Malay",nativeName:"Melayu",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"ia",you:"kamu",result:"hasil",event:"peristiwa",target:"sasaran",body:"badan"},possessive:{marker:"",markerPosition:"after-object",keywords:{saya:"me",saya_punya:"me",aku:"me",awak:"you",kamu:"you",anda:"you",dia:"it",ia:"it",nya:"it","-ku":"me","-mu":"you","-nya":"it"}},roleMarkers:{destination:{primary:"ke",alternatives:["pada"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"togol",alternatives:["tukar"],normalized:"toggle"},add:{primary:"tambah",normalized:"add"},remove:{primary:"buang",alternatives:["padam"],normalized:"remove"},put:{primary:"letak",alternatives:["letakkan"],normalized:"put"},append:{primary:"tambah_hujung",normalized:"append"},prepend:{primary:"tambah_mula",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["cipta"],normalized:"make"},clone:{primary:"klon",alternatives:[],normalized:"clone"},swap:{primary:"tukar_tempat",normalized:"swap"},morph:{primary:"ubah_bentuk",normalized:"morph"},set:{primary:"tetapkan",alternatives:["setkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:[],normalized:"get"},increment:{primary:"tambah_satu",normalized:"increment"},decrement:{primary:"kurang_satu",normalized:"decrement"},log:{primary:"catat",alternatives:["log"],normalized:"log"},show:{primary:"tunjuk",alternatives:[],normalized:"show"},hide:{primary:"sembunyi",alternatives:["sorok"],normalized:"hide"},transition:{primary:"peralihan",normalized:"transition"},on:{primary:"apabila",alternatives:["ketika"],normalized:"on"},trigger:{primary:"cetuskan",normalized:"trigger"},send:{primary:"hantar",normalized:"send"},focus:{primary:"fokus",normalized:"focus"},blur:{primary:"kabur",normalized:"blur"},empty:{primary:"kosongkan",alternatives:["kosong"],normalized:"empty"},open:{primary:"buka",normalized:"open"},close:{primary:"tutup",normalized:"close"},select:{primary:"tandai",normalized:"select"},clear:{primary:"bersihkan",normalized:"clear"},reset:{primary:"set-semula",alternatives:["reset"],normalized:"reset"},breakpoint:{primary:"titik-henti",normalized:"breakpoint"},go:{primary:"pergi",alternatives:["pindah"],normalized:"go"},scroll:{primary:"tatal",alternatives:["skrol","scroll"],normalized:"scroll"},push:{primary:"tolak",alternatives:["push"],normalized:"push"},replace:{primary:"ganti_url",alternatives:["gantikan_url"],normalized:"replace"},process:{primary:"proses",normalized:"process"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"ambil_dari",alternatives:["muat"],normalized:"fetch"},settle:{primary:"selesai",normalized:"settle"},if:{primary:"jika",alternatives:["kalau"],normalized:"if"},unless:{primary:"kecuali",normalized:"unless"},when:{primary:"bila",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"kalau_tidak",alternatives:["jika_tidak"],normalized:"else"},repeat:{primary:"ulang",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selagi",alternatives:["semasa"],normalized:"while"},forever:{primary:"selamanya",normalized:"forever",alternatives:["forever"]},continue:{primary:"teruskan",normalized:"continue"},halt:{primary:"henti",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"pulang",alternatives:["kembali"],normalized:"return"},then:{primary:"kemudian",alternatives:["lepas_itu"],normalized:"then"},and:{primary:"dan",normalized:"and"},end:{primary:"tamat",alternatives:["habis"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"tak_segerak",normalized:"async"},tell:{primary:"beritahu",normalized:"tell"},default:{primary:"lalai",normalized:"default"},init:{primary:"mula",alternatives:["mulakan"],normalized:"init"},behavior:{primary:"kelakuan",normalized:"behavior"},install:{primary:"pasang",normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"pecah",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"papar",normalized:"render"},into:{primary:"ke_dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"selepas",alternatives:["lepas"],normalized:"after"},until:{primary:"sehingga",alternatives:["sampai"],normalized:"until"},event:{primary:"peristiwa",normalized:"event"},from:{primary:"dari",normalized:"from"},connect:{primary:"sambung",alternatives:["hubungkan"],normalized:"connect"},stream:{primary:"strim",alternatives:["penstriman","aliran"],normalized:"stream"},live:{primary:"langsung",alternatives:["siaran-langsung"],normalized:"live"},socket:{primary:"soket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"ikat",alternatives:["kaitkan","bind"],normalized:"bind"},intercept:{primary:"pintas",alternatives:["cegat","intercept"],normalized:"intercept"},worker:{primary:"pekerja",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sumber_peristiwa"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"apabila",alternatives:["ketika"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},eventMarker:{primary:"apabila",alternatives:["ketika"],position:"before"}}}});var ql={};N(ql,{MalayTokenizer:()=>_r,malayTokenizer:()=>Fg});var Dg,_r,Fg,Kl=z(()=>{"use strict";D();Na();G();X();zo();Dg=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"kosong",normalized:"null"},{native:"tak_tentu",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"seterusnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"berubah",normalized:"change"},{native:"ubah",normalized:"change"},{native:"hantar",normalized:"submit"},{native:"input",normalized:"input"},{native:"masuk",normalized:"input"},{native:"muat",normalized:"load"},{native:"tatal",normalized:"scroll"},{native:"hover",normalized:"hover"}],_r=class extends R{constructor(){super();this.language="ms";this.direction="ltr";this.initializeKeywordsFromProfile(Ra,Dg),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(ho()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith(".")||t.startsWith("#")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith(":")?"identifier":t.startsWith('"')||t.startsWith("'")||/^-?\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Fg=new _r});var $l={};N($l,{polishProfile:()=>Aa});var Aa,ja=z(()=>{"use strict";Aa={code:"pl",name:"Polish",nativeName:"Polski",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"start",subjectDrop:!0,suffixes:["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107"]},references:{me:"ja",it:"to",you:"ty",result:"wynik",event:"zdarzenie",target:"cel",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"m\xF3j",it:"jego",you:"tw\xF3j"},keywords:{m\u00F3j:"me",moja:"me",moje:"me",tw\u00F3j:"you",twoja:"you",twoje:"you",jego:"it",jej:"it"}},roleMarkers:{destination:{primary:"do",alternatives:["w","na"],position:"before"},source:{primary:"z",alternatives:["od","ze"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"z",alternatives:["ze"],position:"before"}},keywords:{toggle:{primary:"prze\u0142\u0105cz",alternatives:["przelacz"],normalized:"toggle",form:"imperative"},add:{primary:"dodaj",normalized:"add",form:"imperative"},remove:{primary:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"],normalized:"remove",form:"imperative"},put:{primary:"umie\u015B\u0107",alternatives:["umiesc","wstaw"],normalized:"put",form:"imperative"},append:{primary:"do\u0142\u0105cz",alternatives:["dolacz"],normalized:"append",form:"imperative"},prepend:{primary:"poprzed\u017A",alternatives:["poprzedz"],normalized:"prepend",form:"imperative"},take:{primary:"we\u017A",alternatives:["wez"],normalized:"take",form:"imperative"},make:{primary:"utw\xF3rz",alternatives:["utworz","stw\xF3rz","stworz"],normalized:"make",form:"imperative"},clone:{primary:"sklonuj",normalized:"clone",form:"imperative"},swap:{primary:"zamie\u0144",alternatives:["zamien"],normalized:"swap",form:"imperative"},morph:{primary:"przekszta\u0142\u0107",alternatives:["przeksztalc"],normalized:"morph",form:"imperative"},set:{primary:"ustaw",alternatives:["okre\u015Bl","okresl"],normalized:"set",form:"imperative"},get:{primary:"uzyskaj",normalized:"get",form:"imperative"},increment:{primary:"zwi\u0119ksz",alternatives:["zwieksz"],normalized:"increment",form:"imperative"},decrement:{primary:"zmniejsz",normalized:"decrement",form:"imperative"},log:{primary:"loguj",alternatives:["wypisz"],normalized:"log",form:"imperative"},show:{primary:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"],normalized:"show",form:"imperative"},hide:{primary:"ukryj",alternatives:["schowaj"],normalized:"hide",form:"imperative"},transition:{primary:"animuj",alternatives:["przej\u015Bcie","przejscie"],normalized:"transition",form:"imperative"},on:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},trigger:{primary:"wyzw\xF3l",alternatives:["wyzwol"],normalized:"trigger",form:"imperative"},send:{primary:"wy\u015Blij",alternatives:["wyslij"],normalized:"send",form:"imperative"},focus:{primary:"skup",alternatives:["skupienie"],normalized:"focus",form:"imperative"},blur:{primary:"rozmyj",alternatives:["odskup"],normalized:"blur",form:"imperative"},empty:{primary:"opr\xF3\u017Cnij",alternatives:["oproznij","pusty"],normalized:"empty"},open:{primary:"otw\xF3rz",alternatives:["otworz"],normalized:"open"},close:{primary:"zamknij",normalized:"close"},select:{primary:"zaznacz",normalized:"select"},clear:{primary:"zeruj",normalized:"clear"},reset:{primary:"zresetuj",normalized:"reset"},breakpoint:{primary:"punkt-przerwania",normalized:"breakpoint"},go:{primary:"id\u017A",alternatives:["idz","przejd\u017A","przejdz","nawiguj"],normalized:"go",form:"imperative"},scroll:{primary:"przewi\u0144",alternatives:["przewin"],normalized:"scroll",form:"imperative"},push:{primary:"wepchnij",alternatives:["push"],normalized:"push",form:"imperative"},replace:{primary:"nadpisz",alternatives:["zamie\u0144_url","zamien_url"],normalized:"replace",form:"imperative"},process:{primary:"przetw\xF3rz",alternatives:["przetworz"],normalized:"process",form:"imperative"},wait:{primary:"czekaj",alternatives:["poczekaj"],normalized:"wait",form:"imperative"},fetch:{primary:"pobierz",alternatives:["za\u0142aduj","zaladuj"],normalized:"fetch",form:"imperative"},settle:{primary:"ustabilizuj",normalized:"settle",form:"imperative"},if:{primary:"je\u015Bli",alternatives:["jesli","je\u017Celi","jezeli"],normalized:"if"},unless:{primary:"chyba",normalized:"unless"},when:{primary:"kiedy",normalized:"when"},where:{primary:"gdzie",normalized:"where"},else:{primary:"inaczej",alternatives:["wpp"],normalized:"else"},repeat:{primary:"powt\xF3rz",alternatives:["powtorz"],normalized:"repeat",form:"imperative"},for:{primary:"dla",alternatives:["ka\u017Cdy","kazdy"],normalized:"for"},while:{primary:"dop\xF3ki",alternatives:["dopoki","podczas"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"kontynuuj",alternatives:["dalej"],normalized:"continue",form:"imperative"},halt:{primary:"zatrzymaj",alternatives:["stop"],normalized:"halt",form:"imperative"},throw:{primary:"rzu\u0107",alternatives:["rzuc"],normalized:"throw",form:"imperative"},call:{primary:"wywo\u0142aj",alternatives:["wywolaj"],normalized:"call",form:"imperative"},return:{primary:"zwr\xF3\u0107",alternatives:["zwroc"],normalized:"return",form:"imperative"},then:{primary:"wtedy",alternatives:["potem","nast\u0119pnie","nastepnie"],normalized:"then"},and:{primary:"i",alternatives:["oraz"],normalized:"and"},end:{primary:"koniec",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["asynchronicznie"],normalized:"async"},tell:{primary:"powiedz",normalized:"tell",form:"imperative"},default:{primary:"domy\u015Blnie",alternatives:["domyslnie"],normalized:"default"},init:{primary:"inicjuj",normalized:"init",form:"imperative"},behavior:{primary:"zachowanie",normalized:"behavior"},install:{primary:"zainstaluj",normalized:"install",form:"imperative"},measure:{primary:"zmierz",normalized:"measure",form:"imperative"},beep:{primary:"sygna\u0142",normalized:"beep"},break:{primary:"przerwij",normalized:"break"},copy:{primary:"kopiuj",normalized:"copy"},exit:{primary:"wyjd\u017A",normalized:"exit"},pick:{primary:"wybierz",normalized:"pick"},render:{primary:"renderuj",normalized:"render"},into:{primary:"do",alternatives:["w"],normalized:"into"},before:{primary:"przed",normalized:"before"},after:{primary:"po",normalized:"after"},click:{primary:"klikni\u0119ciu",alternatives:["klikniecie","klik"],normalized:"click"},resize:{primary:"zmie\u0144rozmiar",normalized:"resize"},hover:{primary:"najechaniu",alternatives:["hover"],normalized:"hover"},submit:{primary:"wys\u0142aniu",alternatives:["wyslaniu","submit"],normalized:"submit"},input:{primary:"wprowadzeniu",alternatives:["input","wej\u015Bcie"],normalized:"input"},change:{primary:"zmianie",alternatives:["zmiana"],normalized:"change"},until:{primary:"a\u017C",alternatives:["az"],normalized:"until"},event:{primary:"zdarzenie",normalized:"event"},from:{primary:"z",alternatives:["od","ze"],normalized:"from"},connect:{primary:"po\u0142\u0105cz",alternatives:["pod\u0142\u0105cz"],normalized:"connect"},stream:{primary:"transmituj",alternatives:["strumie\u0144","streamuj"],normalized:"stream"},live:{primary:"na-\u017Cywo",alternatives:["na-bie\u017C\u0105co","live","\u017Cywy"],normalized:"live"},socket:{primary:"gniazdo",alternatives:["socket","websocket"],normalized:"socket"},bind:{primary:"powi\u0105\u017C",alternatives:["zwi\u0105za\u0107","bind"],normalized:"bind"},intercept:{primary:"przechwy\u0107",alternatives:["przechwytuj","intercept"],normalized:"intercept"},worker:{primary:"pracownik",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u017Ar\xF3d\u0142o-zdarze\u0144"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},sourceMarker:{primary:"na",alternatives:["w","przy"],position:"before"},conditionalKeyword:{primary:"kiedy",alternatives:["gdy","je\u015Bli"]},eventMarker:{primary:"przy",alternatives:["na","gdy"],position:"before"},temporalMarkers:["kiedy","gdy","przy"]}}});var Bl,At,FS,Dl=z(()=>{"use strict";ae();Bl=new Map([["prze\u0142\u0105cz","prze\u0142\u0105cza\u0107"],["przelacz","przelaczac"],["dodaj","dodawa\u0107"],["usu\u0144","usuwa\u0107"],["usun","usuwac"],["umie\u015B\u0107","umieszcza\u0107"],["umiesc","umieszczac"],["wstaw","wstawia\u0107"],["ustaw","ustawia\u0107"],["pobierz","pobiera\u0107"],["we\u017A","bra\u0107"],["wez","brac"],["zwi\u0119ksz","zwi\u0119ksza\u0107"],["zwieksz","zwiekszac"],["zmniejsz","zmniejsza\u0107"],["poka\u017C","pokazywa\u0107"],["pokaz","pokazywac"],["ukryj","ukrywa\u0107"],["schowaj","schowywa\u0107"],["czekaj","czeka\u0107"],["poczekaj","poczeka\u0107"],["id\u017A","i\u015B\u0107"],["idz","isc"],["przejd\u017A","przej\u015B\u0107"],["przejdz","przejsc"],["wywo\u0142aj","wywo\u0142ywa\u0107"],["wywolaj","wywolywac"],["wy\u015Blij","wysy\u0142a\u0107"],["wyslij","wysylac"],["loguj","logowa\u0107"],["wypisz","wypisywa\u0107"],["sklonuj","sklonowa\u0107"],["kopiuj","kopiowa\u0107"],["zamie\u0144","zamienia\u0107"],["zamien","zamieniac"],["utw\xF3rz","tworzy\u0107"],["utworz","tworzyc"],["stw\xF3rz","stwarza\u0107"],["stworz","stwarzac"],["skup","skupia\u0107"],["rozmyj","rozmywa\u0107"],["nawiguj","nawigowa\u0107"],["za\u0142aduj","\u0142adowa\u0107"],["zaladuj","ladowac"],["powt\xF3rz","powtarza\u0107"],["powtorz","powtarzac"],["kontynuuj","kontynuowa\u0107"],["zatrzymaj","zatrzymywa\u0107"],["przerwij","przerywa\u0107"],["rzu\u0107","rzuca\u0107"],["rzuc","rzucac"],["zwr\xF3\u0107","zwraca\u0107"],["zwroc","zwracac"],["inicjuj","inicjowa\u0107"],["zainstaluj","instalowa\u0107"],["zmierz","mierzy\u0107"]]),At=class{constructor(){this.language="pl"}isNormalizable(e){return e.length<3?!1:/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/.test(e)}normalize(e){let t=e.toLowerCase();if(this.isInfinitive(t))return V(t);let r=this.tryImperativeNormalization(t);if(r)return r;let a=this.tryPastTenseNormalization(t);if(a)return a;let i=this.tryPresentTenseNormalization(t);return i||V(t)}isInfinitive(e){return["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107","iwa\u0107","ywa\u0107"].some(r=>e.endsWith(r))}tryImperativeNormalization(e){return Bl.has(e)?x(Bl.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):e.endsWith("aj")?x(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["aj"],conjugationType:"imperative"}):e.endsWith("uj")?x(e.slice(0,-2)+"owa\u0107",.8,{removedSuffixes:["uj"],conjugationType:"imperative"}):e.endsWith("ij")?x(e.slice(0,-2)+"i\u0107",.75,{removedSuffixes:["ij"],conjugationType:"imperative"}):null}tryPresentTenseNormalization(e){return e.endsWith("uj\u0119")||e.endsWith("uje")?x(e.slice(0,-3)+"owa\u0107",.85,{removedSuffixes:["uj\u0119"],conjugationType:"present"}):e.endsWith("am")&&e.length>3?x(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["am"],conjugationType:"present"}):e.endsWith("em")&&e.length>3?x(e.slice(0,-2)+"e\u0107",.75,{removedSuffixes:["em"],conjugationType:"present"}):e.endsWith("\u0119")&&e.length>2?x(e.slice(0,-1)+"a\u0107",.7,{removedSuffixes:["\u0119"],conjugationType:"present"}):null}tryPastTenseNormalization(e){if(e.endsWith("a\u0142em")||e.endsWith("a\u0142am"))return x(e.slice(0,-4)+"a\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("a\u0142")||e.endsWith("a\u0142a")){let t=e.endsWith("a\u0142a")?3:2;return x(e.slice(0,-t)+"a\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}if(e.endsWith("i\u0142em")||e.endsWith("i\u0142am")||e.endsWith("ilem")||e.endsWith("ilam"))return x(e.slice(0,-4)+"i\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("i\u0142")||e.endsWith("i\u0142a")||e.endsWith("il")||e.endsWith("ila")){let t=e.endsWith("i\u0142a")||e.endsWith("ila")?3:2;return x(e.slice(0,-t)+"i\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}return null}},FS=new At});var Fl={};N(Fl,{PolishTokenizer:()=>qr,polishTokenizer:()=>Gg});var Hg,Ug,qr,Gg,Hl=z(()=>{"use strict";D();ja();Dl();G();X();bo();Hg=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015Br\xF3d","wsrod","obok","poza","wok\xF3\u0142","wokol","przeciw","ku"]),Ug=[{native:"prawda",normalized:"true"},{native:"fa\u0142sz",normalized:"false"},{native:"falsz",normalized:"false"},{native:"null",normalized:"null"},{native:"nieokre\u015Blony",normalized:"undefined"},{native:"nieokreslony",normalized:"undefined"},{native:"pierwszy",normalized:"first"},{native:"pierwsza",normalized:"first"},{native:"pierwsze",normalized:"first"},{native:"ostatni",normalized:"last"},{native:"ostatnia",normalized:"last"},{native:"ostatnie",normalized:"last"},{native:"nast\u0119pny",normalized:"next"},{native:"nastepny",normalized:"next"},{native:"poprzedni",normalized:"previous"},{native:"najbli\u017Cszy",normalized:"closest"},{native:"najblizszy",normalized:"closest"},{native:"rodzic",normalized:"parent"},{native:"klikni\u0119cie",normalized:"click"},{native:"klikniecie",normalized:"click"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"zmiana",normalized:"change"},{native:"wys\u0142anie",normalized:"submit"},{native:"wyslanie",normalized:"submit"},{native:"naci\u015Bni\u0119cie",normalized:"keydown"},{native:"nacisniecie",normalized:"keydown"},{native:"klawisz",normalized:"keydown"},{native:"najechanie",normalized:"mouseover"},{native:"zjechanie",normalized:"mouseout"},{native:"rozmycie",normalized:"blur"},{native:"za\u0142adowanie",normalized:"load"},{native:"zaladowanie",normalized:"load"},{native:"przewini\u0119cie",normalized:"scroll"},{native:"przewiniecie",normalized:"scroll"},{native:"input",normalized:"input"},{native:"m\xF3j",normalized:"my"},{native:"moj",normalized:"my"},{native:"sekunda",normalized:"s"},{native:"sekundy",normalized:"s"},{native:"sekund",normalized:"s"},{native:"milisekunda",normalized:"ms"},{native:"milisekundy",normalized:"ms"},{native:"milisekund",normalized:"ms"},{native:"minuta",normalized:"m"},{native:"minuty",normalized:"m"},{native:"minut",normalized:"m"},{native:"godzina",normalized:"h"},{native:"godziny",normalized:"h"},{native:"godzin",normalized:"h"},{native:"po\u0142\xF3\u017C",normalized:"put"},{native:"poloz",normalized:"put"},{native:"lub",normalized:"or"},{native:"nie",normalized:"not"},{native:"jest",normalized:"is"},{native:"istnieje",normalized:"exists"},{native:"pusty",normalized:"empty"},{native:"puste",normalized:"empty"}],qr=class extends R{constructor(){super();this.language="pl";this.direction="ltr";this.initializeKeywordsFromProfile(Aa,Ug),this.setNormalizer(new At),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(wo()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Hg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Gg=new qr});function Xg(n){return/[а-яА-ЯёЁ]/.test(n)}function Zg(n){for(let e of n)if(Xg(e))return!0;return!1}var Ul,jt,eT,Gl=z(()=>{"use strict";ae();Ul=new Map([["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438","\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C"],["\u0434\u043E\u0431\u0430\u0432\u044C","\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C"],["\u0443\u0434\u0430\u043B\u0438","\u0443\u0434\u0430\u043B\u0438\u0442\u044C"],["\u0443\u0431\u0435\u0440\u0438","\u0443\u0431\u0440\u0430\u0442\u044C"],["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C"],["\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C"],["\u0432\u0441\u0442\u0430\u0432\u044C","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C"],["\u0432\u043E\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u044C"],["\u0441\u043E\u0437\u0434\u0430\u0439","\u0441\u043E\u0437\u0434\u0430\u0442\u044C"],["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439","\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u043F\u043E\u043C\u0435\u043D\u044F\u0439","\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u044C"],["\u043F\u043E\u043B\u0443\u0447\u0438","\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C"],["\u0443\u0432\u0435\u043B\u0438\u0447\u044C","\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C"],["\u0443\u043C\u0435\u043D\u044C\u0448\u0438","\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0441\u043A\u0440\u043E\u0439","\u0441\u043A\u0440\u044B\u0442\u044C"],["\u0441\u043F\u0440\u044F\u0447\u044C","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C"],["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439","\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0432\u044B\u0437\u043E\u0432\u0438","\u0432\u044B\u0437\u0432\u0430\u0442\u044C"],["\u043E\u0442\u043F\u0440\u0430\u0432\u044C","\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0440\u0430\u0437\u043C\u043E\u0439","\u0440\u0430\u0437\u043C\u044B\u0442\u044C"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0438\u0434\u0438","\u0438\u0434\u0442\u0438"],["\u0436\u0434\u0438","\u0436\u0434\u0430\u0442\u044C"],["\u043F\u043E\u0434\u043E\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0430\u0442\u044C"],["\u0437\u0430\u0433\u0440\u0443\u0437\u0438","\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"],["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"],["\u0431\u0440\u043E\u0441\u044C","\u0431\u0440\u043E\u0441\u0438\u0442\u044C"],["\u0432\u0435\u0440\u043D\u0438","\u0432\u0435\u0440\u043D\u0443\u0442\u044C"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439","\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0438\u0437\u043C\u0435\u0440\u044C","\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C"]]),jt=class{constructor(){this.language="ru"}isNormalizable(e){return e.length<3?!1:Zg(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("\u0441\u044F")||t.endsWith("\u0441\u044C")){let s=this.tryReflexiveNormalization(t);if(s)return s}if(t.endsWith("\u0442\u044C")||t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u044C"))return V(e);let r=this.tryImperativeLookup(t);if(r)return r;let a=this.tryPastTenseNormalization(t);if(a)return a;let i=this.tryPresentTenseNormalization(t);if(i)return i;let o=this.tryGenericImperativeNormalization(t);return o||V(e)}tryReflexiveNormalization(e){let t=(e.endsWith("\u0441\u044F"),2),r=e.slice(0,-t);if(e.endsWith("\u0442\u044C\u0441\u044F")||e.endsWith("\u0442\u0438\u0441\u044C")||e.endsWith("\u0447\u044C\u0441\u044F"))return V(e);let a=this.normalizeNonReflexive(r);if(a.confidence<1){let i=a.stem.endsWith("\u0442\u044C")?a.stem.slice(0,-2)+"\u0442\u044C\u0441\u044F":a.stem+"\u0441\u044F";return x(i,a.confidence*.95,{removedSuffixes:["\u0441\u044F",...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u044C")||e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u044C"))return V(e);let t=this.tryImperativeLookup(e);if(t)return t;let r=this.tryPastTenseNormalization(e);if(r)return r;let a=this.tryPresentTenseNormalization(e);if(a)return a;let i=this.tryGenericImperativeNormalization(e);return i||V(e)}tryImperativeLookup(e){return Ul.has(e)?x(Ul.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?x(e.slice(0,-3)+"\u0442\u044C",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0438\u0442\u0435")&&e.length>5?x(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?x(e.slice(0,-1)+"\u0442\u044C",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?x(e+"\u0442\u044C",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u044C"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0435\u043B\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0435\u0442\u044C",.82,{removedSuffixes:["\u0435\u043B\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u0431\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u0431\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u043B")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u043B"],conjugationType:"past"}):e.endsWith("\u0438\u043B")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.82,{removedSuffixes:["\u0438\u043B"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u0442"],conjugationType:"present"}):e.endsWith("\u0438\u043C")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u043C"],conjugationType:"present"}):e.endsWith("\u044F\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u044F\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u0448\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u0435\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0435\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u043C")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u043C"],conjugationType:"present"}):e.endsWith("\u044E\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u044E\u0442"],conjugationType:"present"}):e.endsWith("\u0443\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0443\u0442"],conjugationType:"present"}):null}},eT=new jt});var Xl={};N(Xl,{russianProfile:()=>Ma});var Ma,Oa=z(()=>{"use strict";Ma={code:"ru",name:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u044C","\u0442\u044C\u0441\u044F","\u0438\u0442\u044C","\u0438\u0442\u044C\u0441\u044F","\u0430\u0442\u044C","\u0430\u0442\u044C\u0441\u044F","\u0435\u0442\u044C","\u0435\u0442\u044C\u0441\u044F"]},references:{me:"\u044F",it:"\u044D\u0442\u043E",you:"\u0442\u044B",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",target:"\u0446\u0435\u043B\u044C",body:"\u0442\u0435\u043B\u043E"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u043E\u0439",it:"\u0435\u0433\u043E",you:"\u0442\u0432\u043E\u0439"},keywords:{\u043C\u043E\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0451:"me",\u043C\u043E\u0438:"me",\u0442\u0432\u043E\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0451:"you",\u0442\u0432\u043E\u0438:"you",\u0435\u0433\u043E:"it",\u0435\u0451:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u043A"],position:"before"},source:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0441",alternatives:["\u0441\u043E"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"],normalized:"add",form:"infinitive"},remove:{primary:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043A\u043E\u043D\u0435\u0446",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u044C"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043D\u0430\u0447\u0430\u043B\u043E",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u044C",alternatives:["\u0432\u043E\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u043E\u0437\u0434\u0430\u0442\u044C",alternatives:["\u0441\u043E\u0437\u0434\u0430\u0439"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C",alternatives:["\u043F\u043E\u043C\u0435\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438"],normalized:"get",form:"infinitive"},increment:{primary:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",normalized:"on"},trigger:{primary:"\u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C","\u0437\u0430\u043F\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u044C"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u0430\u0437\u043C\u044B\u0442\u044C",alternatives:["\u0440\u0430\u0437\u043C\u043E\u0439"],normalized:"blur",form:"infinitive"},empty:{primary:"\u043E\u043F\u0443\u0441\u0442\u043E\u0448\u0438\u0442\u044C",alternatives:["\u043F\u0443\u0441\u0442\u043E\u0439"],normalized:"empty"},open:{primary:"\u043E\u0442\u043A\u0440\u044B\u0442\u044C",normalized:"open"},close:{primary:"\u0437\u0430\u043A\u0440\u044B\u0442\u044C",normalized:"close"},select:{primary:"\u0432\u044B\u0434\u0435\u043B\u0438\u0442\u044C",normalized:"select"},clear:{primary:"\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",normalized:"clear"},reset:{primary:"\u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C",normalized:"reset"},breakpoint:{primary:"\u0442\u043E\u0447\u043A\u0430-\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0430",normalized:"breakpoint"},click:{primary:"\u043A\u043B\u0438\u043A",alternatives:["\u043A\u043B\u0438\u043A\u0435","\u043D\u0430\u0436\u0430\u0442\u0438\u0438"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0438",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435"],normalized:"hover"},submit:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430"],normalized:"submit"},input:{primary:"\u0432\u0432\u043E\u0434\u0435",alternatives:["\u0432\u0432\u043E\u0434"],normalized:"input"},change:{primary:"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438",alternatives:["\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435"],normalized:"change"},load:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0435"],normalized:"load"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0438\u0434\u0442\u0438","\u0438\u0434\u0438"],normalized:"go",form:"infinitive"},scroll:{primary:"\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u044C",alternatives:["\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438"],normalized:"scroll",form:"infinitive"},push:{primary:"\u0432\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C",alternatives:["\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C"],normalized:"push",form:"infinitive"},replace:{primary:"\u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C",alternatives:["\u0437\u0430\u043C\u0435\u043D\u0438"],normalized:"replace",form:"infinitive"},process:{primary:"\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C",alternatives:["\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u0439"],normalized:"process",form:"infinitive"},wait:{primary:"\u0436\u0434\u0430\u0442\u044C",alternatives:["\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0438"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u0438"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"settle",form:"infinitive"},if:{primary:"\u0435\u0441\u043B\u0438",normalized:"if"},unless:{primary:"\u043A\u0440\u043E\u043C\u0435",normalized:"unless"},when:{primary:"\u043A\u043E\u0433\u0434\u0430",normalized:"when"},where:{primary:"\u0433\u0434\u0435",normalized:"where"},else:{primary:"\u0438\u043D\u0430\u0447\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u0430\u0436\u0434\u044B\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0430",normalized:"while"},forever:{primary:"\u0432\u0441\u0435\u0433\u0434\u0430",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",alternatives:["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438"],normalized:"continue",form:"infinitive"},halt:{primary:"\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u0431\u0440\u043E\u0441\u0438\u0442\u044C",alternatives:["\u0431\u0440\u043E\u0441\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u044B\u0437\u0432\u0430\u0442\u044C",alternatives:["\u0432\u044B\u0437\u043E\u0432\u0438"],normalized:"call",form:"infinitive"},return:{primary:"\u0432\u0435\u0440\u043D\u0443\u0442\u044C",alternatives:["\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u0437\u0430\u0442\u0435\u043C",alternatives:["\u043F\u043E\u0442\u043E\u043C","\u0442\u043E\u0433\u0434\u0430"],normalized:"then"},and:{primary:"\u0438",normalized:"and"},matches:{primary:"\u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442",normalized:"matches"},end:{primary:"\u043A\u043E\u043D\u0435\u0446",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u043F\u043E_\u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",normalized:"default"},init:{primary:"\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435",normalized:"behavior"},install:{primary:"\u0438\u043D\u0441\u0442\u0430\u043B\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"install",form:"infinitive"},measure:{primary:"\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C",alternatives:["\u0438\u0437\u043C\u0435\u0440\u044C"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0440\u0435\u0440\u0432\u0430\u0442\u044C",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"copy"},exit:{primary:"\u0432\u044B\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u044B\u0431\u0440\u0430\u0442\u044C",normalized:"pick"},render:{primary:"\u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0432\u043E"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u043E\u0441\u043B\u0435",normalized:"after"},until:{primary:"\u043F\u043E\u043A\u0430_\u043D\u0435",normalized:"until"},event:{primary:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",normalized:"event"},from:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],normalized:"from"},connect:{primary:"\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C","\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F"],normalized:"connect"},stream:{primary:"\u0442\u0440\u0430\u043D\u0441\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u043F\u043E\u0442\u043E\u043A","\u0441\u0442\u0440\u0438\u043C"],normalized:"stream"},live:{primary:"\u0432-\u043F\u0440\u044F\u043C\u043E\u043C-\u044D\u0444\u0438\u0440\u0435",alternatives:["\u043F\u0440\u044F\u043C\u043E\u0439-\u044D\u0444\u0438\u0440","\u0432\u0436\u0438\u0432\u0443\u044E","\u0436\u0438\u0432\u043E\u0439"],normalized:"live"},socket:{primary:"\u0441\u043E\u043A\u0435\u0442",alternatives:["\u0433\u043D\u0435\u0437\u0434\u043E","websocket","socket"],normalized:"socket"},bind:{primary:"\u043F\u0440\u0438\u0432\u044F\u0437\u0430\u0442\u044C",alternatives:["\u0441\u0432\u044F\u0437\u0430\u0442\u044C","bind"],normalized:"bind"},intercept:{primary:"\u043F\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438","intercept"],normalized:"intercept"},worker:{primary:"\u0440\u0430\u0431\u043E\u0447\u0438\u0439",alternatives:["\u0432\u043E\u0440\u043A\u0435\u0440","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A-\u0441\u043E\u0431\u044B\u0442\u0438\u0439"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",position:"before"},temporalMarkers:["\u043A\u043E\u0433\u0434\u0430","\u0435\u0441\u043B\u0438"]}}});var Zl={};N(Zl,{RussianTokenizer:()=>Kr,russianTokenizer:()=>Qg});var Yg,Jg,Kr,Qg,Yl=z(()=>{"use strict";D();Gl();Oa();G();X();gn();Pe();Yg=new Set(["\u0432","\u0432\u043E","\u043D\u0430","\u0441","\u0441\u043E","\u043A","\u043A\u043E","\u043E","\u043E\u0431","\u043E\u0431\u043E","\u0443","\u043E\u0442","\u0434\u043E","\u0438\u0437","\u0437\u0430","\u043F\u043E","\u043F\u043E\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043F\u0435\u0440\u0435\u0434\u043E","\u043C\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043B\u044F","\u043F\u0440\u0438","\u043F\u0440\u043E","\u043F\u043E\u0441\u043B\u0435","\u0432\u043E\u043A\u0440\u0443\u0433","\u043F\u0440\u043E\u0442\u0438\u0432","\u0432\u043C\u0435\u0441\u0442\u043E","\u043A\u0440\u043E\u043C\u0435","\u0441\u0440\u0435\u0434\u0438"]),Jg=[{native:"\u043C\u044B\u0448\u044C\u0432\u043D\u0438\u0437",normalized:"mousedown"},{native:"\u043C\u044B\u0448\u044C\u0432\u0432\u0435\u0440\u0445",normalized:"mouseup"},{native:"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u0440\u0430\u0437\u043C\u0435\u0440\u0430",normalized:"resize"},{native:"\u0438\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u043B\u043E\u0436\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E",normalized:"undefined"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u043C\u0438\u043D\u0443\u0442\u0430",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442\u044B",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442",normalized:"m"},{native:"\u0447\u0430\u0441",normalized:"h"},{native:"\u0447\u0430\u0441\u0430",normalized:"h"},{native:"\u0447\u0430\u0441\u043E\u0432",normalized:"h"},{native:"\u043F\u0435\u0440\u0432\u044B\u0439",normalized:"first"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439",normalized:"last"},{native:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",normalized:"next"},{native:"\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",normalized:"previous"},{native:"\u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0438\u0439",normalized:"closest"},{native:"\u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C",normalized:"parent"},{native:"\u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439",normalized:"random"},{native:"\u043F\u0435\u0440\u0432\u0430\u044F",normalized:"first"},{native:"\u043F\u0435\u0440\u0432\u043E\u0435",normalized:"first"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F",normalized:"last"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435",normalized:"last"},{native:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F",normalized:"next"},{native:"\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F",normalized:"previous"},{native:"\u043F\u0443\u0441\u0442\u0430\u044F",normalized:"empty"},{native:"\u043F\u0443\u0441\u0442\u043E\u0435",normalized:"empty"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0451",normalized:"my"},{native:"\u043C\u043E\u0438",normalized:"my"}],Kr=class extends R{constructor(){super();this.language="ru";this.direction="ltr";this.initializeKeywordsFromProfile(Ma,Jg),this.setNormalizer(new jt),this.registerExtractors([...W(),...io(),new _,new M,new ee,new A,new j])}classifyToken(t){let r=t.toLowerCase();return Yg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Qg=new Kr});var Jl={};N(Jl,{thaiProfile:()=>Wa});var Wa,Ia=z(()=>{"use strict";Wa={code:"th",name:"Thai",nativeName:"\u0E44\u0E17\u0E22",direction:"ltr",script:"thai",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"second",subjectDrop:!0},references:{me:"\u0E09\u0E31\u0E19",it:"\u0E21\u0E31\u0E19",you:"\u0E04\u0E38\u0E13",result:"\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",event:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",target:"\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22",body:"\u0E1A\u0E2D\u0E14\u0E35\u0E49"},possessive:{marker:"\u0E02\u0E2D\u0E07",markerPosition:"between",keywords:{\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19:"me",\u0E02\u0E2D\u0E07\u0E1C\u0E21:"me",\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13:"you",\u0E02\u0E2D\u0E07\u0E21\u0E31\u0E19:"it",\u0E02\u0E2D\u0E07\u0E40\u0E02\u0E32:"it",\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D:"it"}},roleMarkers:{patient:{primary:"",position:"before"},destination:{primary:"\u0E43\u0E19",alternatives:["\u0E44\u0E1B\u0E22\u0E31\u0E07"],position:"before"},source:{primary:"\u0E08\u0E32\u0E01",position:"before"},style:{primary:"\u0E14\u0E49\u0E27\u0E22",position:"before"}},keywords:{toggle:{primary:"\u0E2A\u0E25\u0E31\u0E1A",alternatives:[],normalized:"toggle"},add:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21",alternatives:[],normalized:"add"},remove:{primary:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"],normalized:"remove"},put:{primary:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"],normalized:"put"},append:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E17\u0E49\u0E32\u0E22",alternatives:[],normalized:"append"},prepend:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E19\u0E49\u0E32",alternatives:[],normalized:"prepend"},take:{primary:"\u0E23\u0E31\u0E1A",alternatives:[],normalized:"take"},make:{primary:"\u0E2A\u0E23\u0E49\u0E32\u0E07",alternatives:[],normalized:"make"},clone:{primary:"\u0E42\u0E04\u0E25\u0E19",alternatives:["\u0E2A\u0E33\u0E40\u0E19\u0E32"],normalized:"clone"},swap:{primary:"\u0E2A\u0E25\u0E31\u0E1A\u0E17\u0E35\u0E48",alternatives:[],normalized:"swap"},morph:{primary:"\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07",alternatives:[],normalized:"morph"},set:{primary:"\u0E15\u0E31\u0E49\u0E07",alternatives:["\u0E01\u0E33\u0E2B\u0E19\u0E14"],normalized:"set"},get:{primary:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32",alternatives:[],normalized:"get"},increment:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32",alternatives:[],normalized:"increment"},decrement:{primary:"\u0E25\u0E14\u0E04\u0E48\u0E32",alternatives:[],normalized:"decrement"},log:{primary:"\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01",alternatives:[],normalized:"log"},show:{primary:"\u0E41\u0E2A\u0E14\u0E07",alternatives:[],normalized:"show"},hide:{primary:"\u0E0B\u0E48\u0E2D\u0E19",alternatives:[],normalized:"hide"},transition:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E1C\u0E48\u0E32\u0E19",alternatives:[],normalized:"transition"},on:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},trigger:{primary:"\u0E17\u0E23\u0E34\u0E01\u0E40\u0E01\u0E2D\u0E23\u0E4C",alternatives:[],normalized:"trigger"},send:{primary:"\u0E2A\u0E48\u0E07",alternatives:[],normalized:"send"},focus:{primary:"\u0E42\u0E1F\u0E01\u0E31\u0E2A",alternatives:[],normalized:"focus"},blur:{primary:"\u0E40\u0E1A\u0E25\u0E2D",alternatives:[],normalized:"blur"},empty:{primary:"\u0E25\u0E49\u0E32\u0E07",alternatives:["\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E48\u0E32\u0E07","\u0E27\u0E48\u0E32\u0E07"],normalized:"empty"},open:{primary:"\u0E40\u0E1B\u0E34\u0E14",normalized:"open"},close:{primary:"\u0E1B\u0E34\u0E14",normalized:"close"},select:{primary:"\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2B\u0E21\u0E32\u0E22",normalized:"select"},clear:{primary:"\u0E40\u0E04\u0E25\u0E35\u0E22\u0E23\u0E4C",normalized:"clear"},reset:{primary:"\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15",normalized:"reset"},breakpoint:{primary:"\u0E08\u0E38\u0E14\u0E1E\u0E31\u0E01",normalized:"breakpoint"},click:{primary:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},hover:{primary:"\u0E42\u0E2E\u0E40\u0E27\u0E2D\u0E23\u0E4C",alternatives:["\u0E27\u0E32\u0E07\u0E40\u0E21\u0E32\u0E2A\u0E4C"],normalized:"hover"},submit:{primary:"\u0E22\u0E37\u0E48\u0E19",alternatives:["\u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25"],normalized:"submit"},input:{primary:"\u0E1B\u0E49\u0E2D\u0E19",alternatives:["\u0E01\u0E23\u0E2D\u0E01"],normalized:"input"},change:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",alternatives:["\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"],normalized:"change"},go:{primary:"\u0E44\u0E1B",alternatives:["\u0E44\u0E1B\u0E17\u0E35\u0E48"],normalized:"go"},scroll:{primary:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19",normalized:"scroll"},push:{primary:"\u0E14\u0E31\u0E19",alternatives:["\u0E1C\u0E25\u0E31\u0E01"],normalized:"push"},replace:{primary:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48",alternatives:["\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19-url"],normalized:"replace"},process:{primary:"\u0E1B\u0E23\u0E30\u0E21\u0E27\u0E25\u0E1C\u0E25",alternatives:["\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23"],normalized:"process"},wait:{primary:"\u0E23\u0E2D",alternatives:[],normalized:"wait"},fetch:{primary:"\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",alternatives:[],normalized:"fetch"},settle:{primary:"\u0E04\u0E07\u0E17\u0E35\u0E48",alternatives:[],normalized:"settle"},if:{primary:"\u0E16\u0E49\u0E32",alternatives:["\u0E2B\u0E32\u0E01"],normalized:"if"},unless:{primary:"unless",normalized:"unless"},when:{primary:"\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48",normalized:"when"},where:{primary:"\u0E17\u0E35\u0E48\u0E44\u0E2B\u0E19",normalized:"where"},else:{primary:"\u0E44\u0E21\u0E48\u0E07\u0E31\u0E49\u0E19",alternatives:["\u0E44\u0E21\u0E48\u0E40\u0E0A\u0E48\u0E19\u0E19\u0E31\u0E49\u0E19"],normalized:"else"},repeat:{primary:"\u0E17\u0E33\u0E0B\u0E49\u0E33",alternatives:[],normalized:"repeat"},for:{primary:"\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A",alternatives:[],normalized:"for"},while:{primary:"\u0E43\u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48",alternatives:[],normalized:"while"},forever:{primary:"\u0E15\u0E25\u0E2D\u0E14\u0E44\u0E1B",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u0E15\u0E48\u0E2D\u0E44\u0E1B",alternatives:[],normalized:"continue"},halt:{primary:"\u0E2B\u0E22\u0E38\u0E14",alternatives:[],normalized:"halt"},throw:{primary:"\u0E42\u0E22\u0E19",alternatives:[],normalized:"throw"},call:{primary:"\u0E40\u0E23\u0E35\u0E22\u0E01",alternatives:[],normalized:"call"},return:{primary:"\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32",alternatives:["\u0E01\u0E25\u0E31\u0E1A"],normalized:"return"},then:{primary:"\u0E41\u0E25\u0E49\u0E27",alternatives:[],normalized:"then"},and:{primary:"\u0E41\u0E25\u0E30",alternatives:[],normalized:"and"},end:{primary:"\u0E08\u0E1A",alternatives:[],normalized:"end"},js:{primary:"\u0E40\u0E08\u0E40\u0E2D\u0E2A",alternatives:["js"],normalized:"js"},async:{primary:"\u0E2D\u0E30\u0E0B\u0E34\u0E07\u0E04\u0E4C",alternatives:[],normalized:"async"},tell:{primary:"\u0E1A\u0E2D\u0E01",alternatives:[],normalized:"tell"},default:{primary:"\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"default"},init:{primary:"\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"init"},behavior:{primary:"\u0E1E\u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21",alternatives:[],normalized:"behavior"},install:{primary:"\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07",alternatives:[],normalized:"install"},measure:{primary:"\u0E27\u0E31\u0E14",alternatives:[],normalized:"measure"},beep:{primary:"\u0E1A\u0E35\u0E4A\u0E1A",alternatives:[],normalized:"beep"},break:{primary:"\u0E02\u0E31\u0E14\u0E08\u0E31\u0E07\u0E2B\u0E27\u0E30",alternatives:[],normalized:"break"},copy:{primary:"\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",alternatives:[],normalized:"copy"},exit:{primary:"\u0E2D\u0E2D\u0E01",alternatives:[],normalized:"exit"},pick:{primary:"\u0E40\u0E25\u0E37\u0E2D\u0E01",alternatives:[],normalized:"pick"},render:{primary:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",alternatives:[],normalized:"render"},into:{primary:"\u0E43\u0E19",alternatives:[],normalized:"into"},before:{primary:"\u0E01\u0E48\u0E2D\u0E19",alternatives:[],normalized:"before"},after:{primary:"\u0E2B\u0E25\u0E31\u0E07",alternatives:[],normalized:"after"},until:{primary:"\u0E08\u0E19\u0E16\u0E36\u0E07",alternatives:[],normalized:"until"},event:{primary:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",alternatives:[],normalized:"event"},from:{primary:"\u0E08\u0E32\u0E01",normalized:"from"},connect:{primary:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D",alternatives:["\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21"],normalized:"connect"},stream:{primary:"\u0E2A\u0E15\u0E23\u0E35\u0E21",alternatives:["\u0E2A\u0E15\u0E23\u0E35\u0E21\u0E21\u0E34\u0E48\u0E07","\u0E01\u0E23\u0E30\u0E41\u0E2A"],normalized:"stream"},live:{primary:"\u0E44\u0E25\u0E1F\u0E4C",alternatives:["\u0E2A\u0E14","\u0E16\u0E48\u0E32\u0E22\u0E17\u0E2D\u0E14\u0E2A\u0E14"],normalized:"live"},socket:{primary:"\u0E0B\u0E47\u0E2D\u0E01\u0E40\u0E01\u0E47\u0E15",alternatives:["websocket","\u0E40\u0E27\u0E47\u0E1A\u0E0B\u0E47\u0E2D\u0E01\u0E40\u0E01\u0E47\u0E15","socket"],normalized:"socket"},intercept:{primary:"\u0E14\u0E31\u0E01\u0E08\u0E31\u0E1A",alternatives:["intercept","\u0E2A\u0E01\u0E31\u0E14\u0E01\u0E31\u0E49\u0E19"],normalized:"intercept"},worker:{primary:"\u0E40\u0E27\u0E34\u0E23\u0E4C\u0E01\u0E40\u0E01\u0E2D\u0E23\u0E4C",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0E2D\u0E35\u0E40\u0E27\u0E19\u0E15\u0E4C\u0E0B\u0E2D\u0E23\u0E4C\u0E2A"],normalized:"eventsource"},bind:{primary:"\u0E1C\u0E39\u0E01",alternatives:["bind"],normalized:"bind"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},sourceMarker:{primary:"\u0E08\u0E32\u0E01",position:"before"},eventMarker:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],position:"before"},temporalMarkers:["\u0E40\u0E21\u0E37\u0E48\u0E2D","\u0E15\u0E2D\u0E19"]}}});var Ql={};N(Ql,{ThaiTokenizer:()=>$r,thaiTokenizer:()=>tv});var ev,$r,tv,ec=z(()=>{"use strict";D();Ia();G();X();vo();ev=[{native:"\u0E08\u0E23\u0E34\u0E07",normalized:"true"},{native:"\u0E40\u0E17\u0E47\u0E08",normalized:"false"},{native:"\u0E27\u0E48\u0E32\u0E07",normalized:"null"},{native:"\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14",normalized:"undefined"},{native:"\u0E41\u0E23\u0E01",normalized:"first"},{native:"\u0E2A\u0E38\u0E14\u0E17\u0E49\u0E32\u0E22",normalized:"last"},{native:"\u0E16\u0E31\u0E14\u0E44\u0E1B",normalized:"next"},{native:"\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",normalized:"previous"},{native:"\u0E43\u0E01\u0E25\u0E49\u0E2A\u0E38\u0E14",normalized:"closest"},{native:"\u0E15\u0E49\u0E19\u0E17\u0E32\u0E07",normalized:"parent"},{native:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},{native:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07",normalized:"change"},{native:"\u0E2A\u0E48\u0E07",normalized:"submit"},{native:"\u0E2D\u0E34\u0E19\u0E1E\u0E38\u0E15",normalized:"input"},{native:"\u0E42\u0E2B\u0E25\u0E14",normalized:"load"},{native:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19",normalized:"scroll"},{native:"\u0E40\u0E27\u0E25\u0E32",normalized:"when"},{native:"\u0E44\u0E1B\u0E22\u0E31\u0E07",normalized:"to"},{native:"\u0E14\u0E49\u0E27\u0E22",normalized:"with"},{native:"\u0E41\u0E25\u0E30",normalized:"and"}],$r=class extends R{constructor(){super();this.language="th";this.direction="ltr";this.initializeKeywordsFromProfile(Wa,ev),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(go()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith(".")||t.startsWith("#")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith(":")?"identifier":t.startsWith('"')||t.startsWith("'")||/^-?\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},tv=new $r});var tc={};N(tc,{tagalogProfile:()=>Va});var Va,_a=z(()=>{"use strict";Va={code:"tl",name:"Tagalog",nativeName:"Tagalog",direction:"ltr",script:"latin",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"ako",it:"ito",you:"ikaw",result:"resulta",event:"pangyayari",target:"target",body:"katawan"},possessive:{marker:"ng",markerPosition:"between",keywords:{ko:"me",akin:"me",aking:"me",mo:"you",iyo:"you",niya:"it",nito:"it",kaniya:"it"}},roleMarkers:{destination:{primary:"sa",alternatives:["bago","matapos"],position:"before"},source:{primary:"mula_sa",position:"before"},patient:{primary:"",position:"before"},style:{primary:"nang",position:"before"}},keywords:{toggle:{primary:"palitan",alternatives:["itoggle"],normalized:"toggle"},add:{primary:"idagdag",alternatives:["magdagdag"],normalized:"add"},remove:{primary:"alisin",alternatives:["tanggalin"],normalized:"remove"},put:{primary:"ilagay",alternatives:["maglagay"],normalized:"put"},append:{primary:"idagdag_sa_dulo",normalized:"append"},prepend:{primary:"idagdag_sa_simula",normalized:"prepend"},take:{primary:"kumuha",normalized:"take"},make:{primary:"gumawa",alternatives:["lumikha"],normalized:"make"},clone:{primary:"i-clone",normalized:"clone"},swap:{primary:"palitan_pwesto",alternatives:["magpalit"],normalized:"swap"},morph:{primary:"baguhin",normalized:"morph"},set:{primary:"itakda",alternatives:["magtakda"],normalized:"set"},get:{primary:"kunin",normalized:"get"},increment:{primary:"dagdagan",alternatives:["taasan"],normalized:"increment"},decrement:{primary:"bawasan",alternatives:["ibaba"],normalized:"decrement"},log:{primary:"itala",normalized:"log"},show:{primary:"ipakita",alternatives:["magpakita"],normalized:"show"},hide:{primary:"itago",alternatives:["magtago"],normalized:"hide"},transition:{primary:"lumipat",normalized:"transition"},on:{primary:"kapag",normalized:"on"},trigger:{primary:"palitawin",alternatives:["magpatugtog"],normalized:"trigger"},send:{primary:"ipadala",alternatives:["magpadala"],normalized:"send"},focus:{primary:"ituon",normalized:"focus"},blur:{primary:"alisin_tuon",normalized:"blur"},empty:{primary:"walang-laman",alternatives:["alisin-laman","walang_laman"],normalized:"empty"},open:{primary:"buksan",normalized:"open"},close:{primary:"isara",normalized:"close"},select:{primary:"piliin",normalized:"select"},clear:{primary:"burahin",normalized:"clear"},reset:{primary:"i-reset",normalized:"reset"},breakpoint:{primary:"breakpoint",normalized:"breakpoint"},go:{primary:"pumunta",alternatives:["punta"],normalized:"go"},scroll:{primary:"iscroll",alternatives:["mag_scroll","scroll"],normalized:"scroll"},push:{primary:"itulak",alternatives:["ipush"],normalized:"push"},replace:{primary:"palitan_url",alternatives:["ireplace"],normalized:"replace"},process:{primary:"iproseso",alternatives:["proseso"],normalized:"process"},wait:{primary:"maghintay",alternatives:["hintay"],normalized:"wait"},fetch:{primary:"kuhanin_mula",alternatives:["kunin_mula"],normalized:"fetch"},settle:{primary:"magpatahimik",normalized:"settle"},if:{primary:"kung",normalized:"if"},unless:{primary:"maliban_kung",normalized:"unless"},when:{primary:"tuwing",normalized:"when"},where:{primary:"kung_saan",normalized:"where"},else:{primary:"kung_hindi",alternatives:["kundi"],normalized:"else"},repeat:{primary:"ulitin",alternatives:["paulit-ulit"],normalized:"repeat"},for:{primary:"para_sa",normalized:"for"},while:{primary:"habang",normalized:"while"},forever:{primary:"magpakailanman",normalized:"forever",alternatives:["forever"]},continue:{primary:"magpatuloy",normalized:"continue"},halt:{primary:"itigil",alternatives:["huminto"],normalized:"halt"},throw:{primary:"ihagis",alternatives:["itapon"],normalized:"throw"},call:{primary:"tawagin",alternatives:["tawagan","tumawag"],normalized:"call"},return:{primary:"ibalik",alternatives:["bumalik"],normalized:"return"},then:{primary:"pagkatapos",alternatives:["saka"],normalized:"then"},and:{primary:"at",normalized:"and"},end:{primary:"wakas",alternatives:["tapos"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["sabay"],normalized:"async"},tell:{primary:"sabihin",alternatives:["magsabi"],normalized:"tell"},default:{primary:"pamantayan",alternatives:["default","unang_halaga"],normalized:"default"},init:{primary:"simulan",alternatives:["magsimula"],normalized:"init"},behavior:{primary:"ugali",alternatives:["kilos"],normalized:"behavior"},install:{primary:"ikabit",alternatives:["mag-install"],normalized:"install"},measure:{primary:"sukatin",normalized:"measure"},beep:{primary:"tunog",normalized:"beep"},break:{primary:"putulin",normalized:"break"},copy:{primary:"kopyahin",normalized:"copy"},exit:{primary:"lumabas",normalized:"exit"},pick:{primary:"pumili",normalized:"pick"},render:{primary:"irender",normalized:"render"},into:{primary:"sa",normalized:"into"},before:{primary:"bago",normalized:"before"},after:{primary:"matapos",normalized:"after"},until:{primary:"hanggang",normalized:"until"},event:{primary:"pangyayari",normalized:"event"},from:{primary:"mula",alternatives:["galing"],normalized:"from"},connect:{primary:"ikonekta",alternatives:["kumonekta","connect"],normalized:"connect"},stream:{primary:"i-stream",alternatives:["stream","agos"],normalized:"stream"},live:{primary:"live",alternatives:["tuwiran","direkta"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},worker:{primary:"worker",alternatives:["manggagawa"],normalized:"worker"},eventsource:{primary:"eventsource",normalized:"eventsource"},intercept:{primary:"intercept",alternatives:["harangin","humarang"],normalized:"intercept"},bind:{primary:"itali",alternatives:["iugnay","bind"],normalized:"bind"}},eventHandler:{keyword:{primary:"kapag",normalized:"on"},sourceMarker:{primary:"mula_sa",alternatives:["galing_sa"],position:"before"},eventMarker:{primary:"kapag",position:"before"}}}});function rv(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:n==="\xF1"||n==="\xD1"}function nv(n){for(let e of n)if(rv(e))return!0;return!1}function lv(n){let e=n.toLowerCase();if(e.length<5)return null;let t=0;for(let r=0;r<e.length;r++){let a=e[r];if(!"aeiou".includes(a))t=r+1;else break}if(t===0)return null;for(let r of ov){let a=t;if(e.slice(a,a+r.length)===r){let i=e.slice(0,t)+e.slice(a+r.length);if(i.length>=3)return{stem:i,infix:r}}}return null}function cv(n){let e=n.toLowerCase();if(e.length<4)return{stem:e,reduplicated:!1};let t=e[0],r=e[1];if(!"aeiou".includes(t)&&"aeiou".includes(r)){let a=e.slice(2);if(a.length>=2&&a[0]===t)return{stem:a,reduplicated:!0}}return{stem:e,reduplicated:!1}}var av,iv,ov,sv,qa,rc,nc=z(()=>{"use strict";ae();av=[{pattern:"magpapa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"magpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nagpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3}],iv=[{pattern:"mag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"mang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ma",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"na",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"i",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"pa",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],ov=["um","in"],sv=[{pattern:"hin",confidencePenalty:.18,type:"patient-focus"},{pattern:"in",confidencePenalty:.18,type:"patient-focus"},{pattern:"han",confidencePenalty:.18,type:"locative-focus"},{pattern:"an",confidencePenalty:.18,type:"locative-focus"}];qa=class{constructor(){this.language="tl"}isNormalizable(e){return!(!nv(e)||e.length<2)}normalize(e){let t=e.toLowerCase(),r=1,a=[],i=[],o=[];for(let p of av)if(t.startsWith(p.pattern)){let m=t.slice(p.pattern.length),d=p.minRemaining??2;if(m.length>=d){t=m,r-=p.confidencePenalty,a.push(p.pattern),o.push(`prefix:${p.pattern}`);break}}if(a.length===0){for(let p of iv)if(t.startsWith(p.pattern)){let m=t.slice(p.pattern.length),d=p.minRemaining??2;if(m.length>=d){t=m,r-=p.confidencePenalty,a.push(p.pattern),o.push(`prefix:${p.pattern}`);break}}}let s=cv(t);s.reduplicated&&s.stem.length>=2&&(t=s.stem,r-=.1,o.push("reduplication:CV"));let l=lv(t),c=!1;if(l&&l.stem.length>=2&&(t=l.stem,r-=.18,o.push(`infix:${l.infix}`),c=!0),!c){for(let p of sv)if(t.endsWith(p.pattern)){let m=t.slice(0,-p.pattern.length);if(m.length>=2){t=m,r-=p.confidencePenalty,i.push(p.pattern),o.push(`suffix:${p.pattern}`);break}}}return r=Math.max(.5,r),a.length===0&&i.length===0&&o.length===0?V(e):x(t,r,{removedPrefixes:a,removedSuffixes:i,appliedRules:o})}},rc=new qa});var ac={};N(ac,{TagalogTokenizer:()=>Br,tagalogTokenizer:()=>mv});var pv,Br,mv,ic=z(()=>{"use strict";D();_a();nc();G();X();xo();pv=[{native:"totoo",normalized:"true"},{native:"mali",normalized:"false"},{native:"wala",normalized:"null"},{native:"hindi_tinukoy",normalized:"undefined"},{native:"una",normalized:"first"},{native:"huli",normalized:"last"},{native:"susunod",normalized:"next"},{native:"nakaraan",normalized:"previous"},{native:"pinakamalapit",normalized:"closest"},{native:"magulang",normalized:"parent"},{native:"pindot",normalized:"click"},{native:"pagbabago",normalized:"change"},{native:"isumite",normalized:"submit"},{native:"input",normalized:"input"},{native:"karga",normalized:"load"},{native:"mag_scroll",normalized:"scroll"}],Br=class extends R{constructor(){super();this.language="tl";this.direction="ltr";this.initializeKeywordsFromProfile(Va,pv),this.setNormalizer(rc),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(ko()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith(".")||t.startsWith("#")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith(":")?"identifier":t.startsWith('"')||t.startsWith("'")||/^-?\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},mv=new Br});function dv(n){return/[а-яА-ЯіІїЇєЄґҐьЬ']/.test(n)}var oc,Mt,bT,sc=z(()=>{"use strict";ae();oc=new Map([["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438","\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438"],["\u0434\u043E\u0434\u0430\u0439","\u0434\u043E\u0434\u0430\u0442\u0438"],["\u0432\u0438\u0434\u0430\u043B\u0438","\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438"],["\u043F\u0440\u0438\u0431\u0435\u0440\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438"],["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438"],["\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438"],["\u0432\u0441\u0442\u0430\u0432","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438"],["\u0432\u0456\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u0438"],["\u0441\u0442\u0432\u043E\u0440\u0438","\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438"],["\u043A\u043B\u043E\u043D\u0443\u0439","\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438"],["\u043F\u043E\u043C\u0456\u043D\u044F\u0439","\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u0438"],["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438"],["\u0437\u0431\u0456\u043B\u044C\u0448","\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438"],["\u0437\u043C\u0435\u043D\u0448","\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0441\u0445\u043E\u0432\u0430\u0439","\u0441\u0445\u043E\u0432\u0430\u0442\u0438"],["\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438"],["\u0430\u043D\u0456\u043C\u0443\u0439","\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043A\u043B\u0438\u0447","\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438"],["\u043D\u0430\u0434\u0456\u0448\u043B\u0438","\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0439\u0434\u0438","\u0439\u0442\u0438"],["\u0447\u0435\u043A\u0430\u0439","\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436","\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438"],["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439","\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438"],["\u043A\u0438\u043D\u044C","\u043A\u0438\u043D\u0443\u0442\u0438"],["\u043F\u043E\u0432\u0435\u0440\u043D\u0438","\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439","\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043C\u0456\u0440\u044F\u0439","\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438"]]),Mt=class{constructor(){this.language="uk"}isNormalizable(e){return e.length<3?!1:dv(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("\u0441\u044F")||t.endsWith("\u0441\u044C")){let s=this.tryReflexiveNormalization(t);if(s)return s}if(t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u0438"))return V(e);let r=this.tryImperativeLookup(t);if(r)return r;let a=this.tryPastTenseNormalization(t);if(a)return a;let i=this.tryPresentTenseNormalization(t);if(i)return i;let o=this.tryGenericImperativeNormalization(t);return o||V(e)}tryReflexiveNormalization(e){let t=e.slice(0,-2);if(e.endsWith("\u0442\u0438\u0441\u044F")||e.endsWith("\u0447\u0438\u0441\u044F"))return V(e);let r=this.normalizeNonReflexive(t);if(r.confidence<1){let a=r.stem.endsWith("\u0442\u0438")?r.stem.slice(0,-2)+"\u0442\u0438\u0441\u044F":r.stem+"\u0441\u044F";return x(a,r.confidence*.95,{removedSuffixes:["\u0441\u044F",...r.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u0438"))return V(e);let t=this.tryImperativeLookup(e);if(t)return t;let r=this.tryPastTenseNormalization(e);if(r)return r;let a=this.tryPresentTenseNormalization(e);if(a)return a;let i=this.tryGenericImperativeNormalization(e);return i||V(e)}tryImperativeLookup(e){return oc.has(e)?x(oc.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?x(e.slice(0,-3)+"\u0442\u0438",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0456\u0442\u044C")&&e.length>5?x(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0456\u0442\u044C"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?x(e.slice(0,-1)+"\u0442\u0438",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?x(e+"\u0442\u0438",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u0438"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u0432")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u0438",.82,{removedSuffixes:["\u0430\u0432"],conjugationType:"past"}):e.endsWith("\u0438\u0432")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u0438",.82,{removedSuffixes:["\u0438\u0432"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u0448"],conjugationType:"present"}):e.endsWith("\u0438\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u0438\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u043C\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044F\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u044F\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0454\u0448")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u0454\u0448"],conjugationType:"present"}):e.endsWith("\u0435\u0448")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0435\u0448"],conjugationType:"present"}):e.endsWith("\u0454")&&e.length>2?x(e.slice(0,-1)+"\u0430\u0442\u0438",.72,{removedSuffixes:["\u0454"],conjugationType:"present"}):e.endsWith("\u0454\u043C\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.8,{removedSuffixes:["\u0454\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044E\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u044E\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0443\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0443\u0442\u044C"],conjugationType:"present"}):null}},bT=new Mt});var lc={};N(lc,{ukrainianProfile:()=>Ka});var Ka,$a=z(()=>{"use strict";Ka={code:"uk",name:"Ukrainian",nativeName:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u0438","\u0442\u0438\u0441\u044F","\u0438\u0442\u0438","\u0438\u0442\u0438\u0441\u044F","\u0430\u0442\u0438","\u0430\u0442\u0438\u0441\u044F","\u0456\u0442\u0438","\u0456\u0442\u0438\u0441\u044F"]},references:{me:"\u044F",it:"\u0446\u0435",you:"\u0442\u0438",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u043F\u043E\u0434\u0456\u044F",target:"\u0446\u0456\u043B\u044C",body:"\u0442\u0456\u043B\u043E"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u0456\u0439",it:"\u0439\u043E\u0433\u043E",you:"\u0442\u0432\u0456\u0439"},keywords:{\u043C\u0456\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0454:"me",\u043C\u043E\u0457:"me",\u0442\u0432\u0456\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0454:"you",\u0442\u0432\u043E\u0457:"you",\u0439\u043E\u0433\u043E:"it",\u0457\u0457:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u0434\u043E"],position:"before"},source:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0437",alternatives:["\u0456\u0437"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"],normalized:"add",form:"infinitive"},remove:{primary:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u0432_\u043A\u0456\u043D\u0435\u0446\u044C",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u0438"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u043D\u0430_\u043F\u043E\u0447\u0430\u0442\u043E\u043A",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u0438",alternatives:["\u0432\u0456\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438",alternatives:["\u0441\u0442\u0432\u043E\u0440\u0438"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438",alternatives:["\u043A\u043B\u043E\u043D\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438",alternatives:["\u043F\u043E\u043C\u0456\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439"],normalized:"get",form:"infinitive"},increment:{primary:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0430\u043D\u0456\u043C\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",normalized:"on"},trigger:{primary:"\u0456\u043D\u0456\u0446\u0456\u044E\u0432\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0438","\u0437\u0430\u043F\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438",alternatives:["\u043D\u0430\u0434\u0456\u0448\u043B\u0438"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439"],normalized:"blur",form:"infinitive"},empty:{primary:"\u0441\u043F\u043E\u0440\u043E\u0436\u043D\u0438\u0442\u0438",alternatives:["\u043F\u043E\u0440\u043E\u0436\u043D\u0456\u0439"],normalized:"empty"},open:{primary:"\u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438",normalized:"open"},close:{primary:"\u0437\u0430\u043A\u0440\u0438\u0442\u0438",normalized:"close"},select:{primary:"\u0432\u0438\u0434\u0456\u043B\u0438\u0442\u0438",normalized:"select"},clear:{primary:"\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u0438",normalized:"clear"},reset:{primary:"\u0441\u043A\u0438\u043D\u0443\u0442\u0438",normalized:"reset"},breakpoint:{primary:"\u0442\u043E\u0447\u043A\u0430-\u0437\u0443\u043F\u0438\u043D\u043A\u0438",normalized:"breakpoint"},click:{primary:"\u043A\u043B\u0456\u043A\u0443",alternatives:["\u043A\u043B\u0456\u043A","\u043D\u0430\u0442\u0438\u0441\u043A\u0430\u043D\u043D\u0456"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"hover"},submit:{primary:"\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0446\u0456",alternatives:["\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u043A\u0430","\u043D\u0430\u0434\u0441\u0438\u043B\u0430\u043D\u043D\u044F"],normalized:"submit"},input:{primary:"\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"input"},change:{primary:"\u0437\u043C\u0456\u043D\u0456",alternatives:["\u0437\u043C\u0456\u043D\u0430"],normalized:"change"},load:{primary:"\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F",normalized:"load"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0439\u0442\u0438","\u0439\u0434\u0438"],normalized:"go",form:"infinitive"},scroll:{primary:"\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u0438",alternatives:["\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438"],normalized:"scroll",form:"infinitive"},push:{primary:"\u0448\u0442\u043E\u0432\u0445\u043D\u0443\u0442\u0438",alternatives:["\u0437\u0430\u0448\u0442\u043E\u0432\u0445\u043D\u0443\u0442\u0438"],normalized:"push",form:"infinitive"},replace:{primary:"\u0437\u0430\u043C\u0456\u043D\u0438\u0442\u0438",alternatives:["\u0437\u0430\u043C\u0456\u043D\u0438"],normalized:"replace",form:"infinitive"},process:{primary:"\u043E\u0431\u0440\u043E\u0431\u0438\u0442\u0438",alternatives:["\u043E\u0431\u0440\u043E\u0431\u043B\u044F\u0442\u0438"],normalized:"process",form:"infinitive"},wait:{primary:"\u0447\u0435\u043A\u0430\u0442\u0438",alternatives:["\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0439"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438",alternatives:["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0456\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",normalized:"settle",form:"infinitive"},if:{primary:"\u044F\u043A\u0449\u043E",normalized:"if"},unless:{primary:"\u043A\u0440\u0456\u043C",normalized:"unless"},when:{primary:"\u043A\u043E\u043B\u0438",normalized:"when"},where:{primary:"\u0434\u0435",normalized:"where"},else:{primary:"\u0456\u043D\u0430\u043A\u0448\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u043E\u0436\u043D\u0438\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0438",normalized:"while"},forever:{primary:"\u0437\u0430\u0432\u0436\u0434\u0438",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438",alternatives:["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439"],normalized:"continue",form:"infinitive"},halt:{primary:"\u0437\u0443\u043F\u0438\u043D\u0438\u0442\u0438",alternatives:["\u0437\u0443\u043F\u0438\u043D\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u043A\u0438\u043D\u0443\u0442\u0438",alternatives:["\u043A\u0438\u043D\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438",alternatives:["\u0432\u0438\u043A\u043B\u0438\u0447"],normalized:"call",form:"infinitive"},return:{primary:"\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u043F\u043E\u0442\u0456\u043C",alternatives:["\u0434\u0430\u043B\u0456","\u0442\u043E\u0434\u0456"],normalized:"then"},and:{primary:"\u0456",alternatives:["\u0442\u0430"],normalized:"and"},matches:{primary:"\u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0454",normalized:"matches"},end:{primary:"\u043A\u0456\u043D\u0435\u0446\u044C",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u0437\u0430_\u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C",normalized:"default"},init:{primary:"\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0456\u043D\u043A\u0430",normalized:"behavior"},install:{primary:"\u0456\u043D\u0441\u0442\u0430\u043B\u044E\u0432\u0430\u0442\u0438",normalized:"install",form:"infinitive"},measure:{primary:"\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438",alternatives:["\u0432\u0438\u043C\u0456\u0440\u044F\u0439"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0435\u0440\u0435\u0440\u0432\u0430\u0442\u0438",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438",normalized:"copy"},exit:{primary:"\u0432\u0438\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u0438\u0431\u0440\u0430\u0442\u0438",normalized:"pick"},render:{primary:"\u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u0438",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0443"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u0456\u0441\u043B\u044F",normalized:"after"},until:{primary:"\u043F\u043E\u043A\u0438_\u043D\u0435",normalized:"until"},event:{primary:"\u043F\u043E\u0434\u0456\u044F",normalized:"event"},from:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],normalized:"from"},connect:{primary:"\u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0438",alternatives:["\u0437\u02BC\u0454\u0434\u043D\u0430\u0442\u0438","\u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0438\u0441\u044F"],normalized:"connect"},stream:{primary:"\u0442\u0440\u0430\u043D\u0441\u043B\u044E\u0432\u0430\u0442\u0438",alternatives:["\u043F\u043E\u0442\u0456\u043A","\u0441\u0442\u0440\u0456\u043C"],normalized:"stream"},live:{primary:"\u043D\u0430\u0436\u0438\u0432\u043E",alternatives:["\u0443-\u043F\u0440\u044F\u043C\u043E\u043C\u0443-\u0435\u0444\u0456\u0440\u0456","\u0432-\u0440\u0435\u0436\u0438\u043C\u0456-\u0440\u0435\u0430\u043B\u044C\u043D\u043E\u0433\u043E-\u0447\u0430\u0441\u0443","\u0436\u0438\u0432\u0438\u0439"],normalized:"live"},socket:{primary:"\u0441\u043E\u043A\u0435\u0442",alternatives:["\u0433\u043D\u0456\u0437\u0434\u043E","websocket","socket"],normalized:"socket"},bind:{primary:"\u043F\u0440\u0438\u0432'\u044F\u0437\u0430\u0442\u0438",alternatives:["\u0437\u0432'\u044F\u0437\u0430\u0442\u0438","\u043F\u0440\u0438\u0454\u0434\u043D\u0430\u0442\u0438","bind"],normalized:"bind"},intercept:{primary:"\u043F\u0435\u0440\u0435\u0445\u043E\u043F\u0438\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0445\u043E\u043F\u043B\u0435\u043D\u043D\u044F","intercept"],normalized:"intercept"},worker:{primary:"\u0440\u043E\u0431\u0456\u0442\u043D\u0438\u043A",alternatives:["\u0432\u043E\u0440\u043A\u0435\u0440","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0434\u0436\u0435\u0440\u0435\u043B\u043E-\u043F\u043E\u0434\u0456\u0439"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",position:"before"},temporalMarkers:["\u043A\u043E\u043B\u0438","\u044F\u043A\u0449\u043E"]}}});var cc={};N(cc,{UkrainianTokenizer:()=>Dr,ukrainianTokenizer:()=>yv});var uv,fv,Dr,yv,pc=z(()=>{"use strict";D();sc();$a();G();X();gn();Pe();uv=new Set(["\u0432","\u0443","\u043D\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043E","\u0432\u0456\u0434","\u043E","\u043E\u0431","\u043F\u0440\u0438","\u0434\u043B\u044F","\u043F\u0456\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043C\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043F\u043E","\u0437\u0430","\u043F\u0440\u043E","\u043F\u0456\u0441\u043B\u044F","\u043D\u0430\u0432\u043A\u043E\u043B\u043E","\u043F\u0440\u043E\u0442\u0438","\u0437\u0430\u043C\u0456\u0441\u0442\u044C","\u043A\u0440\u0456\u043C","\u0441\u0435\u0440\u0435\u0434","\u043A"]),fv=[{native:"\u043C\u0438\u0448\u0430\u0432\u043D\u0438\u0437",normalized:"mousedown"},{native:"\u043C\u0438\u0448\u0430\u0432\u0433\u043E\u0440\u0443",normalized:"mouseup"},{native:"\u0437\u043C\u0456\u043D\u0430\u0440\u043E\u0437\u043C\u0456\u0440\u0443",normalized:"resize"},{native:"\u0456\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u0445\u0438\u0431\u043D\u0456\u0441\u0442\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u0432\u0438\u0437\u043D\u0430\u0447\u0435\u043D\u043E",normalized:"undefined"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0438",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D",normalized:"m"},{native:"\u0433\u043E\u0434\u0438\u043D\u0430",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D\u0438",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D",normalized:"h"},{native:"\u043F\u0435\u0440\u0448\u0438\u0439",normalized:"first"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u0456\u0439",normalized:"last"},{native:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",normalized:"next"},{native:"\u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",normalized:"previous"},{native:"\u043D\u0430\u0439\u0431\u043B\u0438\u0436\u0447\u0438\u0439",normalized:"closest"},{native:"\u0431\u0430\u0442\u044C\u043A\u0456\u0432\u0441\u044C\u043A\u0438\u0439",normalized:"parent"},{native:"\u0432\u0438\u043F\u0430\u0434\u043A\u043E\u0432\u0438\u0439",normalized:"random"},{native:"\u043F\u0435\u0440\u0448\u0430",normalized:"first"},{native:"\u043F\u0435\u0440\u0448\u0435",normalized:"first"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u044F",normalized:"last"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u0454",normalized:"last"},{native:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430",normalized:"next"},{native:"\u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F",normalized:"previous"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u044F",normalized:"empty"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u0454",normalized:"empty"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0454",normalized:"my"},{native:"\u043C\u043E\u0457",normalized:"my"}],Dr=class extends R{constructor(){super();this.language="uk";this.direction="ltr";this.initializeKeywordsFromProfile(Ka,fv),this.setNormalizer(new Mt),this.registerExtractors([...W(),...oo(),new _,new M,new ee,new A,new j])}classifyToken(t){let r=t.toLowerCase();return uv.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},yv=new Dr});var mc={};N(mc,{vietnameseProfile:()=>Ba});var Ba,Da=z(()=>{"use strict";Ba={code:"vi",name:"Vietnamese",nativeName:"Ti\u1EBFng Vi\u1EC7t",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"t\xF4i",it:"n\xF3",you:"b\u1EA1n",result:"k\u1EBFt qu\u1EA3",event:"s\u1EF1 ki\u1EC7n",target:"m\u1EE5c ti\xEAu",body:"body"},possessive:{marker:"c\u1EE7a",markerPosition:"between",specialForms:{me:"c\u1EE7a t\xF4i",it:"c\u1EE7a n\xF3",you:"c\u1EE7a b\u1EA1n"},keywords:{"c\u1EE7a t\xF4i":"me",my:"me","c\u1EE7a b\u1EA1n":"you","c\u1EE7a anh":"you","c\u1EE7a ch\u1ECB":"you","c\u1EE7a n\xF3":"it"}},roleMarkers:{destination:{primary:"v\xE0o",alternatives:["cho","\u0111\u1EBFn"],position:"before"},source:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"v\u1EDBi",position:"before"}},keywords:{toggle:{primary:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["b\u1EADt t\u1EAFt","chuy\u1EC3n"],normalized:"toggle"},add:{primary:"th\xEAm",alternatives:["b\u1ED5 sung"],normalized:"add"},remove:{primary:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"],normalized:"remove"},put:{primary:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"],normalized:"put"},append:{primary:"n\u1ED1i",normalized:"append"},prepend:{primary:"th\xEAm v\xE0o \u0111\u1EA7u",normalized:"prepend"},take:{primary:"l\u1EA5y",normalized:"take"},make:{primary:"t\u1EA1o",normalized:"make"},clone:{primary:"nh\xE2n b\u1EA3n",normalized:"clone"},swap:{primary:"ho\xE1n \u0111\u1ED5i",normalized:"swap"},morph:{primary:"bi\u1EBFn \u0111\u1ED5i",normalized:"morph"},set:{primary:"g\xE1n",alternatives:["thi\u1EBFt l\u1EADp"],normalized:"set"},get:{primary:"l\u1EA5y gi\xE1 tr\u1ECB",alternatives:["nh\u1EADn"],normalized:"get"},increment:{primary:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"],normalized:"increment"},decrement:{primary:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"],normalized:"decrement"},log:{primary:"in ra",normalized:"log"},show:{primary:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"],normalized:"show"},hide:{primary:"\u1EA9n",alternatives:["che","gi\u1EA5u"],normalized:"hide"},transition:{primary:"chuy\u1EC3n ti\u1EBFp",normalized:"transition"},on:{primary:"khi",alternatives:["tr\xEAn"],normalized:"on"},trigger:{primary:"k\xEDch ho\u1EA1t",normalized:"trigger"},send:{primary:"g\u1EEDi",normalized:"send"},focus:{primary:"t\u1EADp trung",normalized:"focus"},blur:{primary:"m\u1EA5t t\u1EADp trung",normalized:"blur"},empty:{primary:"l\xE0m-r\u1ED7ng",alternatives:["tr\u1ED1ng"],normalized:"empty"},open:{primary:"m\u1EDF",normalized:"open"},close:{primary:"\u0111\xF3ng",normalized:"close"},select:{primary:"\u0111\xE1nh-d\u1EA5u",normalized:"select"},clear:{primary:"t\u1EA9y",normalized:"clear"},reset:{primary:"\u0111\u1EB7t-l\u1EA1i",normalized:"reset"},breakpoint:{primary:"\u0111i\u1EC3m-d\u1EEBng",normalized:"breakpoint"},click:{primary:"nh\u1EA5p",alternatives:["b\u1EA5m"],normalized:"click"},hover:{primary:"di chu\u1ED9t",alternatives:["r\xEA chu\u1ED9t"],normalized:"hover"},submit:{primary:"n\u1ED9p",alternatives:[],normalized:"submit"},input:{primary:"nh\u1EADp",alternatives:["nh\u1EADp li\u1EC7u"],normalized:"input"},change:{primary:"thay \u0111\u1ED5i",alternatives:["\u0111\u1ED5i"],normalized:"change"},go:{primary:"\u0111i \u0111\u1EBFn",alternatives:["\u0111i"],normalized:"go"},scroll:{primary:"cu\u1ED9n",normalized:"scroll"},push:{primary:"\u0111\u1EA9y",alternatives:["push"],normalized:"push"},replace:{primary:"thay_th\u1EBF",alternatives:["thay_the"],normalized:"replace"},process:{primary:"x\u1EED_l\xFD",alternatives:["xu_ly"],normalized:"process"},wait:{primary:"ch\u1EDD",alternatives:["\u0111\u1EE3i","ch\u1EDD \u0111\u1EE3i"],normalized:"wait"},fetch:{primary:"t\u1EA3i",normalized:"fetch"},settle:{primary:"\u1ED5n \u0111\u1ECBnh",normalized:"settle"},if:{primary:"n\u1EBFu",normalized:"if"},unless:{primary:"tr\u1EEB khi",alternatives:["tr\u1EEB_khi"],normalized:"unless"},when:{primary:"l\xFAc",normalized:"when"},where:{primary:"\u1EDF_\u0111\xE2u",normalized:"where"},else:{primary:"kh\xF4ng th\xEC",alternatives:["n\u1EBFu kh\xF4ng"],normalized:"else"},repeat:{primary:"l\u1EB7p l\u1EA1i",normalized:"repeat"},for:{primary:"v\u1EDBi m\u1ED7i",normalized:"for"},while:{primary:"trong khi",normalized:"while"},forever:{primary:"m\xE3i m\xE3i",normalized:"forever",alternatives:["forever"]},continue:{primary:"ti\u1EBFp t\u1EE5c",normalized:"continue"},halt:{primary:"d\u1EEBng",alternatives:["d\u1EEBng l\u1EA1i"],normalized:"halt"},throw:{primary:"n\xE9m",normalized:"throw"},call:{primary:"g\u1ECDi",normalized:"call"},return:{primary:"tr\u1EA3 v\u1EC1",normalized:"return"},then:{primary:"r\u1ED3i",alternatives:["sau \u0111\xF3","th\xEC"],normalized:"then"},and:{primary:"v\xE0",normalized:"and"},end:{primary:"k\u1EBFt th\xFAc",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"b\u1EA5t \u0111\u1ED3ng b\u1ED9",normalized:"async"},tell:{primary:"n\xF3i v\u1EDBi",normalized:"tell"},default:{primary:"m\u1EB7c \u0111\u1ECBnh",normalized:"default"},init:{primary:"kh\u1EDFi t\u1EA1o",normalized:"init"},behavior:{primary:"h\xE0nh vi",normalized:"behavior"},install:{primary:"c\xE0i \u0111\u1EB7t",normalized:"install"},measure:{primary:"\u0111o l\u01B0\u1EDDng",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"ng\u1EAFt",normalized:"break"},copy:{primary:"sao ch\xE9p",normalized:"copy"},exit:{primary:"tho\xE1t",alternatives:["tho\xE1t ra"],normalized:"exit"},pick:{primary:"ch\u1ECDn",normalized:"pick"},render:{primary:"k\u1EBFt xu\u1EA5t",normalized:"render"},into:{primary:"v\xE0o",alternatives:["v\xE0o trong"],normalized:"into"},before:{primary:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"],normalized:"before"},after:{primary:"sau",alternatives:["sau khi"],normalized:"after"},until:{primary:"cho \u0111\u1EBFn khi",normalized:"until"},event:{primary:"s\u1EF1 ki\u1EC7n",normalized:"event"},from:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],normalized:"from"},connect:{primary:"k\u1EBFt-n\u1ED1i",alternatives:["k\u1EBFt-n\u1ED1i-t\u1EDBi"],normalized:"connect"},stream:{primary:"truy\u1EC1n-ph\xE1t",alternatives:["ph\xE1t","lu\u1ED3ng"],normalized:"stream"},live:{primary:"tr\u1EF1c-ti\u1EBFp",alternatives:["ph\xE1t-tr\u1EF1c-ti\u1EBFp","live"],normalized:"live"},socket:{primary:"socket",alternatives:["\u1ED5-c\u1EAFm","websocket"],normalized:"socket"},bind:{primary:"r\xE0ng bu\u1ED9c",alternatives:["li\xEAn k\u1EBFt","bind"],normalized:"bind"},intercept:{primary:"ch\u1EB7n",alternatives:["ch\u1EB7n b\u1EAFt","intercept"],normalized:"intercept"},worker:{primary:"worker",alternatives:["c\xF4ng nh\xE2n"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["ngu\u1ED3n s\u1EF1 ki\u1EC7n"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"khi",alternatives:["tr\xEAn"],normalized:"on"},sourceMarker:{primary:"tr\xEAn",alternatives:["t\u1EA1i"],position:"before"},eventMarker:{primary:"khi",alternatives:["l\xFAc"],position:"before"},temporalMarkers:["khi","l\xFAc"]}}});var dc={};N(dc,{VietnameseTokenizer:()=>Fr,vietnameseTokenizer:()=>vv});var gv,Fr,vv,uc=z(()=>{"use strict";D();Da();Qi();G();X();gv=[{native:"\u0111\xFAng",normalized:"true"},{native:"sai",normalized:"false"},{native:"null",normalized:"null"},{native:"kh\xF4ng x\xE1c \u0111\u1ECBnh",normalized:"undefined"},{native:"\u0111\u1EA7u ti\xEAn",normalized:"first"},{native:"cu\u1ED1i c\xF9ng",normalized:"last"},{native:"ti\u1EBFp theo",normalized:"next"},{native:"tr\u01B0\u1EDBc \u0111\xF3",normalized:"previous"},{native:"g\u1EA7n nh\u1EA5t",normalized:"closest"},{native:"cha",normalized:"parent"},{native:"nh\u1EA5p",normalized:"click"},{native:"nh\u1EA5p chu\u1ED9t",normalized:"click"},{native:"click",normalized:"click"},{native:"nh\u1EA5p \u0111\xFAp",normalized:"dblclick"},{native:"nh\u1EADp",normalized:"input"},{native:"thay \u0111\u1ED5i",normalized:"change"},{native:"g\u1EEDi bi\u1EC3u m\u1EABu",normalized:"submit"},{native:"ph\xEDm xu\u1ED1ng",normalized:"keydown"},{native:"ph\xEDm l\xEAn",normalized:"keyup"},{native:"chu\u1ED9t v\xE0o",normalized:"mouseover"},{native:"chu\u1ED9t ra",normalized:"mouseout"},{native:"t\u1EA3i trang",normalized:"load"},{native:"cu\u1ED9n",normalized:"scroll"},{native:"c\u1EE7a t\xF4i",normalized:"my"},{native:"c\u1EE7a n\xF3",normalized:"its"},{native:"gi\xE2y",normalized:"s"},{native:"mili gi\xE2y",normalized:"ms"},{native:"ph\xFAt",normalized:"m"},{native:"gi\u1EDD",normalized:"h"},{native:"th\xEAm v\xE0o cu\u1ED1i",normalized:"append"},{native:"nh\xE2n b\u1EA3n",normalized:"clone"},{native:"t\u1EA1o ra",normalized:"make"},{native:"\u0111\u1EB7t gi\xE1 tr\u1ECB",normalized:"set"},{native:"gi\xE1 tr\u1ECB",normalized:"value"},{native:"ghi nh\u1EADt k\xFD",normalized:"log"},{native:"chuy\u1EC3n t\u1EDBi",normalized:"go"},{native:"ng\u01B0\u1EE3c l\u1EA1i",normalized:"else"},{native:"l\u1EB7p",normalized:"repeat"},{native:"ho\u1EB7c",normalized:"or"},{native:"kh\xF4ng",normalized:"not"},{native:"l\xE0",normalized:"is"},{native:"t\u1ED3n t\u1EA1i",normalized:"exists"},{native:"r\u1ED7ng",normalized:"empty"},{native:"javascript",normalized:"js"}],Fr=class extends R{constructor(){super();this.language="vi";this.direction="ltr";this.initializeKeywordsFromProfile(Ba,gv),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Ji()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},vv=new Fr});var fc={};N(fc,{hebrewProfile:()=>Fa});var Fa,Ha=z(()=>{"use strict";Fa={code:"he",name:"Hebrew",nativeName:"\u05E2\u05D1\u05E8\u05D9\u05EA",direction:"rtl",script:"hebrew",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"second",subjectDrop:!0},references:{me:"\u05D0\u05E0\u05D9",it:"\u05D6\u05D4",you:"\u05D0\u05EA\u05D4",result:"\u05EA\u05D5\u05E6\u05D0\u05D4",event:"\u05D0\u05D9\u05E8\u05D5\u05E2",target:"\u05D9\u05E2\u05D3",body:"\u05D2\u05D5\u05E3"},possessive:{marker:"\u05E9\u05DC",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"\u05E9\u05DC\u05D9",it:"\u05E9\u05DC\u05D5",you:"\u05E9\u05DC\u05DA"},keywords:{\u05E9\u05DC\u05D9:"me",\u05E9\u05DC\u05DA:"you",\u05E9\u05DC\u05D5:"it",\u05E9\u05DC\u05D4:"it"}},roleMarkers:{destination:{primary:"\u05E2\u05DC",alternatives:["\u05D1","\u05D0\u05DC","\u05DC"],position:"before"},source:{primary:"\u05DE",alternatives:["\u05DE\u05DF","\u05DE\u05D0\u05EA"],position:"before"},patient:{primary:"\u05D0\u05EA",position:"before"},style:{primary:"\u05E2\u05DD",alternatives:["\u05D1"],position:"before"}},keywords:{toggle:{primary:"\u05DE\u05EA\u05D2",alternatives:["\u05D4\u05D3\u05DC\u05E7 \u05DB\u05D1\u05D4"],normalized:"toggle"},add:{primary:"\u05D4\u05D5\u05E1\u05E3",normalized:"add"},remove:{primary:"\u05D4\u05E1\u05E8",alternatives:["\u05DE\u05D7\u05E7","\u05D4\u05D5\u05E8\u05D3"],normalized:"remove"},put:{primary:"\u05E9\u05D9\u05DD",alternatives:["\u05D4\u05E0\u05D7","\u05D4\u05DB\u05E0\u05E1"],normalized:"put"},append:{primary:"\u05E6\u05E8\u05E3",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05E1\u05D5\u05E3"],normalized:"append"},prepend:{primary:"\u05D4\u05E7\u05D3\u05DD",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05D4\u05EA\u05D7\u05DC\u05D4"],normalized:"prepend"},take:{primary:"\u05E7\u05D7",normalized:"take"},make:{primary:"\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05DB\u05DF"],normalized:"make"},clone:{primary:"\u05E9\u05DB\u05E4\u05DC",normalized:"clone"},swap:{primary:"\u05D4\u05D7\u05DC\u05E3",alternatives:["\u05D4\u05DE\u05E8"],normalized:"swap"},morph:{primary:"\u05D4\u05E4\u05D5\u05DA",alternatives:["\u05E2\u05E6\u05D1 \u05DE\u05D7\u05D3\u05E9"],normalized:"morph"},set:{primary:"\u05E7\u05D1\u05E2",alternatives:["\u05D4\u05D2\u05D3\u05E8"],normalized:"set"},get:{primary:"\u05E7\u05D1\u05DC",alternatives:["\u05D4\u05E9\u05D2"],normalized:"get"},increment:{primary:"\u05D4\u05D2\u05D3\u05DC",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D7\u05D3"],normalized:"increment"},decrement:{primary:"\u05D4\u05E7\u05D8\u05DF",alternatives:["\u05D4\u05E4\u05D7\u05EA"],normalized:"decrement"},log:{primary:"\u05E8\u05E9\u05D5\u05DD",normalized:"log"},show:{primary:"\u05D4\u05E8\u05D0\u05D4",alternatives:["\u05D4\u05E6\u05D2"],normalized:"show"},hide:{primary:"\u05D4\u05E1\u05EA\u05E8",alternatives:["\u05D4\u05D7\u05D1\u05D0"],normalized:"hide"},transition:{primary:"\u05DE\u05E2\u05D1\u05E8",alternatives:["\u05D4\u05E0\u05E4\u05E9"],normalized:"transition"},on:{primary:"\u05D1",normalized:"on"},trigger:{primary:"\u05D4\u05E4\u05E2\u05DC",alternatives:["\u05E9\u05D2\u05E8"],normalized:"trigger"},send:{primary:"\u05E9\u05DC\u05D7",normalized:"send"},focus:{primary:"\u05DE\u05E7\u05D3",alternatives:["\u05D4\u05EA\u05DE\u05E7\u05D3"],normalized:"focus"},blur:{primary:"\u05D8\u05E9\u05D8\u05E9",alternatives:["\u05D4\u05E1\u05E8 \u05DE\u05D9\u05E7\u05D5\u05D3"],normalized:"blur"},empty:{primary:"\u05E8\u05D5\u05E7\u05DF",normalized:"empty"},open:{primary:"\u05E4\u05EA\u05D7",normalized:"open"},close:{primary:"\u05E1\u05D2\u05D5\u05E8",normalized:"close"},select:{primary:"\u05E1\u05DE\u05DF",normalized:"select"},clear:{primary:"\u05E0\u05E7\u05D4",normalized:"clear"},reset:{primary:"\u05D0\u05E4\u05E1",normalized:"reset"},breakpoint:{primary:"\u05E0\u05E7\u05D5\u05D3\u05EA-\u05E2\u05E6\u05D9\u05E8\u05D4",alternatives:["breakpoint"],normalized:"breakpoint"},go:{primary:"\u05DC\u05DA",alternatives:["\u05E0\u05D5\u05D5\u05D8"],normalized:"go"},scroll:{primary:"\u05D2\u05DC\u05D5\u05DC",normalized:"scroll"},push:{primary:"\u05D3\u05D7\u05D5\u05E3",alternatives:["\u05D4\u05D5\u05E1\u05E3-\u05DC\u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D4"],normalized:"push"},replace:{primary:"\u05D4\u05D7\u05DC\u05E3_\u05DB\u05EA\u05D5\u05D1\u05EA",alternatives:["\u05E9\u05E0\u05D4_\u05DB\u05EA\u05D5\u05D1\u05EA"],normalized:"replace"},process:{primary:"\u05E2\u05D1\u05D3",alternatives:["\u05E2\u05D9\u05D1\u05D5\u05D3"],normalized:"process"},wait:{primary:"\u05D7\u05DB\u05D4",alternatives:["\u05D4\u05DE\u05EA\u05DF"],normalized:"wait"},fetch:{primary:"\u05D4\u05D1\u05D0",alternatives:["\u05D8\u05E2\u05DF"],normalized:"fetch"},settle:{primary:"\u05D4\u05EA\u05D9\u05D9\u05E6\u05D1",normalized:"settle"},if:{primary:"\u05D0\u05DD",normalized:"if"},unless:{primary:"\u05D0\u05DC\u05D0",normalized:"unless"},when:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9"],normalized:"when"},where:{primary:"\u05D0\u05D9\u05E4\u05D4",alternatives:["\u05D4\u05D9\u05DB\u05DF"],normalized:"where"},else:{primary:"\u05D0\u05D7\u05E8\u05EA",alternatives:["\u05D0\u05DD \u05DC\u05D0"],normalized:"else"},repeat:{primary:"\u05D7\u05D6\u05D5\u05E8",normalized:"repeat"},for:{primary:"\u05E2\u05D1\u05D5\u05E8",alternatives:["\u05DC\u05DB\u05DC"],normalized:"for"},while:{primary:"\u05DB\u05DC \u05E2\u05D5\u05D3",alternatives:["\u05D1\u05D6\u05DE\u05DF"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u05D4\u05DE\u05E9\u05DA",normalized:"continue"},halt:{primary:"\u05E2\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05E4\u05E1\u05E7"],normalized:"halt"},throw:{primary:"\u05D6\u05E8\u05D5\u05E7",normalized:"throw"},call:{primary:"\u05E7\u05E8\u05D0",alternatives:["\u05D6\u05DE\u05DF"],normalized:"call"},return:{primary:"\u05D4\u05D7\u05D6\u05E8",normalized:"return"},then:{primary:"\u05D0\u05D6",alternatives:["\u05D5\u05D0\u05D6"],normalized:"then"},and:{primary:"\u05D5\u05D2\u05DD",alternatives:["\u05D2\u05DD"],normalized:"and"},end:{primary:"\u05E1\u05D5\u05E3",alternatives:["\u05E1\u05D9\u05D5\u05DD"],normalized:"end"},js:{primary:"js",alternatives:["\u05D2\u05F3\u05D0\u05D5\u05D5\u05D4\u05E1\u05E7\u05E8\u05D9\u05E4\u05D8"],normalized:"js"},async:{primary:"\u05D0\u05E1\u05D9\u05E0\u05DB\u05E8\u05D5\u05E0\u05D9",normalized:"async"},tell:{primary:"\u05D0\u05DE\u05D5\u05E8",normalized:"tell"},default:{primary:"\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC",normalized:"default"},init:{primary:"\u05D0\u05EA\u05D7\u05DC",alternatives:["\u05D4\u05EA\u05D7\u05DC"],normalized:"init"},behavior:{primary:"\u05D4\u05EA\u05E0\u05D4\u05D2\u05D5\u05EA",normalized:"behavior"},install:{primary:"\u05D4\u05EA\u05E7\u05DF",normalized:"install"},measure:{primary:"\u05DE\u05D3\u05D5\u05D3",normalized:"measure"},beep:{primary:"\u05D1\u05D9\u05E4",normalized:"beep"},break:{primary:"\u05E9\u05D1\u05D5\u05E8",normalized:"break"},copy:{primary:"\u05D4\u05E2\u05EA\u05E7",normalized:"copy"},exit:{primary:"\u05E6\u05D0",normalized:"exit"},pick:{primary:"\u05D1\u05D7\u05E8",normalized:"pick"},render:{primary:"\u05E8\u05E0\u05D3\u05E8",normalized:"render"},into:{primary:"\u05DC\u05EA\u05D5\u05DA",alternatives:["\u05D0\u05DC"],normalized:"into"},before:{primary:"\u05DC\u05E4\u05E0\u05D9",normalized:"before"},after:{primary:"\u05D0\u05D7\u05E8\u05D9",normalized:"after"},click:{primary:"\u05DC\u05D7\u05D9\u05E6\u05D4",alternatives:["\u05E7\u05DC\u05D9\u05E7"],normalized:"click"},hover:{primary:"\u05E8\u05D9\u05D7\u05D5\u05E3",normalized:"hover"},submit:{primary:"\u05E9\u05DC\u05D9\u05D7\u05D4",alternatives:["\u05D4\u05D2\u05E9\u05D4"],normalized:"submit"},input:{primary:"\u05E7\u05DC\u05D8",alternatives:["\u05D4\u05D6\u05E0\u05D4"],normalized:"input"},change:{primary:"\u05E9\u05D9\u05E0\u05D5\u05D9",alternatives:["\u05E2\u05D3\u05DB\u05D5\u05DF"],normalized:"change"},until:{primary:"\u05E2\u05D3",normalized:"until"},event:{primary:"\u05D0\u05D9\u05E8\u05D5\u05E2",normalized:"event"},from:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],normalized:"from"},connect:{primary:"\u05D4\u05EA\u05D7\u05D1\u05E8",alternatives:["\u05D7\u05D1\u05E8","\u05D4\u05EA\u05D7\u05D1\u05E8\u05D5\u05EA"],normalized:"connect"},stream:{primary:"\u05D4\u05D6\u05E8\u05DD",alternatives:["\u05E1\u05D8\u05E8\u05D9\u05DD","\u05E9\u05D9\u05D3\u05D5\u05E8"],normalized:"stream"},live:{primary:"\u05D7\u05D9",alternatives:["\u05D1\u05D6\u05DE\u05DF-\u05D0\u05DE\u05EA","\u05DC\u05D9\u05D9\u05D1"],normalized:"live"},socket:{primary:"\u05E9\u05E7\u05E2",alternatives:["\u05E1\u05D5\u05E7\u05D8","\u05D5\u05D5\u05D1-\u05E1\u05D5\u05E7\u05D8","socket"],normalized:"socket"},bind:{primary:"\u05E7\u05E9\u05D5\u05E8",alternatives:["\u05D0\u05D2\u05D3","bind"],normalized:"bind"},intercept:{primary:"\u05D9\u05D9\u05E8\u05D8",alternatives:["\u05D9\u05D9\u05E8\u05D5\u05D8","intercept"],normalized:"intercept"},worker:{primary:"\u05E2\u05D5\u05D1\u05D3",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u05DE\u05E7\u05D5\u05E8-\u05D0\u05D9\u05E8\u05D5\u05E2\u05D9\u05DD"],normalized:"eventsource"}},tokenization:{prefixes:["\u05D4","\u05D5","\u05D1","\u05DB","\u05DC","\u05DE","\u05E9"]},eventHandler:{keyword:{primary:"\u05D1",normalized:"on"},sourceMarker:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],position:"before"},conditionalKeyword:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9","\u05D0\u05DD"]},eventMarker:{primary:"\u05D1",alternatives:["\u05DB\u05E9"],position:"before"},temporalMarkers:["\u05DB\u05D0\u05E9\u05E8","\u05DB\u05E9"]}}});var yc={};N(yc,{HebrewTokenizer:()=>Hr,hebrewTokenizer:()=>kv});var hv,zv,Hr,kv,gc=z(()=>{"use strict";D();Ha();G();X();Wo();qo();Pe();hv=new Set(["\u05E2\u05DC","\u05D0\u05EA","\u05D0\u05DC","\u05DE\u05DF","\u05E2\u05DD","\u05D1\u05EA\u05D5\u05DA","\u05DE\u05EA\u05D5\u05DA","\u05DC\u05D9\u05D3","\u05D0\u05D7\u05E8\u05D9","\u05DC\u05E4\u05E0\u05D9","\u05D1\u05D9\u05DF","\u05E2\u05D3","\u05E9\u05DC"]),zv=[{native:"\u05D0\u05DE\u05EA",normalized:"true"},{native:"\u05E9\u05E7\u05E8",normalized:"false"},{native:"null",normalized:"null"},{native:"\u05E8\u05D9\u05E7",normalized:"null"},{native:"\u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8",normalized:"undefined"},{native:"\u05E8\u05D0\u05E9\u05D5\u05DF",normalized:"first"},{native:"\u05D0\u05D7\u05E8\u05D5\u05DF",normalized:"last"},{native:"\u05D4\u05D1\u05D0",normalized:"next"},{native:"\u05D4\u05E7\u05D5\u05D3\u05DD",normalized:"previous"},{native:"\u05D4\u05E7\u05E8\u05D5\u05D1",normalized:"closest"},{native:"\u05D4\u05D5\u05E8\u05D4",normalized:"parent"},{native:"\u05DC\u05D7\u05D9\u05E6\u05D4",normalized:"click"},{native:"\u05E7\u05DC\u05D9\u05E7",normalized:"click"},{native:"\u05E7\u05DC\u05D8",normalized:"input"},{native:"\u05E9\u05D9\u05E0\u05D5\u05D9",normalized:"change"},{native:"\u05E9\u05DC\u05D9\u05D7\u05D4",normalized:"submit"},{native:"\u05DE\u05D9\u05E7\u05D5\u05D3",normalized:"focus"},{native:"\u05D8\u05E9\u05D8\u05D5\u05E9",normalized:"blur"},{native:"\u05DC\u05D7\u05D9\u05E6\u05EA \u05DE\u05E7\u05E9",normalized:"keydown"},{native:"\u05E9\u05D7\u05E8\u05D5\u05E8 \u05DE\u05E7\u05E9",normalized:"keyup"},{native:"\u05DE\u05E2\u05D1\u05E8 \u05E2\u05DB\u05D1\u05E8",normalized:"mouseover"},{native:"\u05D9\u05E6\u05D9\u05D0\u05EA \u05E2\u05DB\u05D1\u05E8",normalized:"mouseout"},{native:"load",normalized:"load"},{native:"resize",normalized:"resize"},{native:"scroll",normalized:"scroll"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"\u05D8\u05E2\u05D9\u05E0\u05D4",normalized:"load"},{native:"\u05D2\u05DC\u05D9\u05DC\u05D4",normalized:"scroll"},{native:"\u05D4\u05D9\u05D0",normalized:"it"},{native:"\u05D4\u05D5\u05D0",normalized:"it"},{native:"\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"s"},{native:"\u05E9\u05E0\u05D9\u05D5\u05EA",normalized:"s"},{native:"\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"ms"},{native:"\u05D3\u05E7\u05D4",normalized:"m"},{native:"\u05D3\u05E7\u05D5\u05EA",normalized:"m"},{native:"\u05E9\u05E2\u05D4",normalized:"h"},{native:"\u05E9\u05E2\u05D5\u05EA",normalized:"h"}],Hr=class extends R{constructor(){super();this.language="he";this.direction="rtl";this.initializeKeywordsFromProfile(Fa,zv),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(_o()),this.registerExtractors(Oo()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return hv.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},kv=new Hr});var Zk={};N(Zk,{ASTBuilder:()=>$t,DEFAULT_CONFIDENCE_THRESHOLD:()=>_c,HIGH_CONFIDENCE_THRESHOLD:()=>qc,SUPPORTED_LANGUAGES:()=>Ot,VERSION:()=>Hk,buildAST:()=>Vc,canLoadLanguage:()=>hc,canParse:()=>ti,createCommandNode:()=>me,createEventHandler:()=>Ke,createLiteral:()=>Q,createPropertyPath:()=>Le,createReference:()=>de,createSelector:()=>be,fromExplicit:()=>ni,getCommandMapper:()=>Kt,getLoadedLanguages:()=>zc,getPatternsForLanguage:()=>mp,getPatternsForLanguageAndCommand:()=>Gk,getProfile:()=>sn,getRegisteredLanguages:()=>Bt,getTokenizer:()=>on,getUnloadedLanguages:()=>kc,isExplicitSyntax:()=>_e,isLanguageRegistered:()=>Te,isLanguageSupported:()=>mi,loadLanguage:()=>Ga,loadLanguages:()=>vc,parse:()=>ot,parseAny:()=>ai,parseExplicit:()=>nt,registerCommandMapper:()=>si,render:()=>Vt,renderExplicit:()=>_t,toExplicit:()=>ri,tokenize:()=>Uk,tryGetProfile:()=>H});ve();var Ua={en:async()=>{let{englishTokenizer:n}=await Promise.resolve().then(()=>(Fo(),Do)),{englishProfile:e}=await Promise.resolve().then(()=>(Yt(),Ai)),{buildEnglishPatterns:t}=await Promise.resolve().then(()=>(ys(),fs));return{tokenizer:n,profile:e,buildPatterns:t}},es:async()=>{let{spanishTokenizer:n}=await Promise.resolve().then(()=>(ws(),xs)),{spanishProfile:e}=await Promise.resolve().then(()=>(Hn(),vs));return{tokenizer:n,profile:e}},ja:async()=>{let{japaneseTokenizer:n}=await Promise.resolve().then(()=>(Ps(),Es)),{japaneseProfile:e}=await Promise.resolve().then(()=>(Xn(),Ts));return{tokenizer:n,profile:e}},ar:async()=>{let{arabicTokenizer:n}=await Promise.resolve().then(()=>(Ns(),Rs)),{arabicProfile:e}=await Promise.resolve().then(()=>(Yn(),Cs));return{tokenizer:n,profile:e}},ko:async()=>{let{koreanTokenizer:n}=await Promise.resolve().then(()=>(Os(),Ms)),{koreanProfile:e}=await Promise.resolve().then(()=>(Qn(),js));return{tokenizer:n,profile:e}},zh:async()=>{let{chineseTokenizer:n}=await Promise.resolve().then(()=>(Vs(),Is)),{chineseProfile:e}=await Promise.resolve().then(()=>(ta(),Ws));return{tokenizer:n,profile:e}},tr:async()=>{let{turkishTokenizer:n}=await Promise.resolve().then(()=>(Ds(),Bs)),{turkishProfile:e}=await Promise.resolve().then(()=>(aa(),$s));return{tokenizer:n,profile:e}},pt:async()=>{let{portugueseTokenizer:n}=await Promise.resolve().then(()=>(Ys(),Zs)),{portugueseProfile:e}=await Promise.resolve().then(()=>(oa(),Fs));return{tokenizer:n,profile:e}},fr:async()=>{let{frenchTokenizer:n}=await Promise.resolve().then(()=>(nl(),rl)),{frenchProfile:e}=await Promise.resolve().then(()=>(ca(),Js));return{tokenizer:n,profile:e}},de:async()=>{let{germanTokenizer:n}=await Promise.resolve().then(()=>(cl(),ll)),{germanProfile:e}=await Promise.resolve().then(()=>(da(),al));return{tokenizer:n,profile:e}},id:async()=>{let{indonesianTokenizer:n}=await Promise.resolve().then(()=>(dl(),ml)),{indonesianProfile:e}=await Promise.resolve().then(()=>(ya(),pl));return{tokenizer:n,profile:e}},qu:async()=>{let{quechuaTokenizer:n}=await Promise.resolve().then(()=>(vl(),gl)),{quechuaProfile:e}=await Promise.resolve().then(()=>(va(),ul));return{tokenizer:n,profile:e}},sw:async()=>{let{swahiliTokenizer:n}=await Promise.resolve().then(()=>(kl(),zl)),{swahiliProfile:e}=await Promise.resolve().then(()=>(xa(),hl));return{tokenizer:n,profile:e}},bn:async()=>{let{bengaliTokenizer:n}=await Promise.resolve().then(()=>(El(),Tl)),{bengaliProfile:e}=await Promise.resolve().then(()=>(Sa(),Sl));return{tokenizer:n,profile:e}},hi:async()=>{let{hindiTokenizer:n}=await Promise.resolve().then(()=>(Nl(),Rl)),{hindiProfile:e}=await Promise.resolve().then(()=>(Ea(),Cl));return{tokenizer:n,profile:e}},it:async()=>{let{italianTokenizer:n}=await Promise.resolve().then(()=>(Vl(),Il)),{italianProfile:e}=await Promise.resolve().then(()=>(La(),Ml));return{tokenizer:n,profile:e}},ms:async()=>{let{malayTokenizer:n}=await Promise.resolve().then(()=>(Kl(),ql)),{malayProfile:e}=await Promise.resolve().then(()=>(Na(),_l));return{tokenizer:n,profile:e}},pl:async()=>{let{polishTokenizer:n}=await Promise.resolve().then(()=>(Hl(),Fl)),{polishProfile:e}=await Promise.resolve().then(()=>(ja(),$l));return{tokenizer:n,profile:e}},ru:async()=>{let{russianTokenizer:n}=await Promise.resolve().then(()=>(Yl(),Zl)),{russianProfile:e}=await Promise.resolve().then(()=>(Oa(),Xl));return{tokenizer:n,profile:e}},th:async()=>{let{thaiTokenizer:n}=await Promise.resolve().then(()=>(ec(),Ql)),{thaiProfile:e}=await Promise.resolve().then(()=>(Ia(),Jl));return{tokenizer:n,profile:e}},tl:async()=>{let{tagalogTokenizer:n}=await Promise.resolve().then(()=>(ic(),ac)),{tagalogProfile:e}=await Promise.resolve().then(()=>(_a(),tc));return{tokenizer:n,profile:e}},uk:async()=>{let{ukrainianTokenizer:n}=await Promise.resolve().then(()=>(pc(),cc)),{ukrainianProfile:e}=await Promise.resolve().then(()=>($a(),lc));return{tokenizer:n,profile:e}},vi:async()=>{let{vietnameseTokenizer:n}=await Promise.resolve().then(()=>(uc(),dc)),{vietnameseProfile:e}=await Promise.resolve().then(()=>(Da(),mc));return{tokenizer:n,profile:e}},he:async()=>{let{hebrewTokenizer:n}=await Promise.resolve().then(()=>(gc(),yc)),{hebrewProfile:e}=await Promise.resolve().then(()=>(Ha(),fc));return{tokenizer:n,profile:e}}},Ot=Object.keys(Ua);function xv(n,e){ci(n,e.tokenizer,e.profile),e.patterns?an(n,e.patterns):e.buildPatterns&&an(n,e.buildPatterns())}async function wv(n,e){try{let t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch ${e}: ${t.status} ${t.statusText}`);let r=await t.text(),a=new Blob([r],{type:"application/javascript"}),i=URL.createObjectURL(a);try{let o=await import(i);if(!o.tokenizer||!o.profile)throw new Error("Invalid language module: missing tokenizer or profile");return o}finally{URL.revokeObjectURL(i)}}catch(t){throw new Error(`Failed to load language '${n}' from ${e}: ${t instanceof Error?t.message:String(t)}`)}}async function Ga(n,e={}){let{url:t,module:r,skipIfRegistered:a=!0}=e;if(a&&Te(n))return{code:n,loaded:!1};try{let i;if(r)i=r;else if(t)i=await wv(n,t);else{let o=Ua[n];if(!o)throw new Error(`Unknown language: ${n}. Supported: ${Ot.join(", ")}`);i=await o()}return xv(n,i),{code:n,loaded:!0}}catch(i){return{code:n,loaded:!1,error:i instanceof Error?i.message:String(i)}}}async function vc(n,e={}){return Promise.all(n.map(t=>Ga(t,e)))}function hc(n){return n in Ua}function zc(){return Ot.filter(Te)}function kc(){return Ot.filter(n=>!Te(n))}ve();ve();D();function pe(n,e){return di(n,e)}function Ur(){return Bt()}ve();ve();je();function be(n){let e="complex";return n.startsWith("#")&&!n.includes(" ")?e="id":n.startsWith(".")&&!n.includes(" ")?e="class":n.startsWith("[")&&n.endsWith("]")?e="attribute":/^[a-z][a-z0-9]*$/i.test(n)&&(e="element"),{type:"selector",value:n,selectorKind:e}}function Q(n,e){let t={type:"literal",value:n};return e!==void 0?{type:"literal",value:n,dataType:e}:t}function Xe(n){return Ht(n)}function de(n){return{type:"reference",value:n}}function Le(n,e){return{type:"property-path",object:n,property:e}}function me(n,e,t){let r={kind:"command",action:n,roles:new Map(Object.entries(e))};return t!==void 0?{...r,metadata:t}:r}function Ke(n,e,t,r,a,i){let o=new Map;o.set("event",n);let s={kind:"event-handler",action:"on",roles:o,body:e};return t!==void 0&&(s.eventModifiers=t),r!==void 0&&(s.metadata=r),a!==void 0&&a.length>0&&(s.parameterNames=a),i!==void 0&&i.length>0&&(s.additionalEvents=i),s}function xc(n,e,t,r,a){let i={kind:"behavior",action:"behavior",roles:new Map,name:n,parameters:e,eventHandlers:t};return r!==void 0&&r.length>0&&(i.initBlock=r),a!==void 0&&(i.metadata=a),i}function wc(n,e,t,r){let a={kind:"def",action:"def",roles:new Map,name:n,parameters:e,body:t};return r!==void 0&&(a.metadata=r),a}function Wt(n,e="then",t){let r={kind:"compound",action:"compound",roles:new Map,statements:n,chainType:e};return t!==void 0&&(r.metadata=t),r}function bc(n,e,t,r){let a=new Map;a.set("condition",n);let i={kind:"conditional",action:"if",roles:a,thenBranch:e};return t!==void 0&&(i.elseBranch=t),r!==void 0&&(i.metadata=r),i}function It(n,e){return!e||e.length===0||e.includes(n)||e.includes("expression")?!0:n==="property-path"?e.some(t=>["selector","reference","expression"].includes(t)):n==="expression"?e.some(t=>["selector","reference","expression"].includes(t)):!1}Ue();function Ie(n,e){let t=n.possessive?.keywords?.[e];if(t)return t;let r=n.possessive?.specialForms;if(r){for(let[a,i]of Object.entries(r))if(i===e)return a}}ve();kt();var Sc=new Set(["\u0628\u062F\u0644","\u063A\u064A\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062C\u0639\u0644","\u0639\u064A\u0646","\u0632\u062F","\u0627\u0646\u0642\u0635","\u0633\u062C\u0644","\u0623\u0638\u0647\u0631","\u0623\u062E\u0641","\u0634\u063A\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062A\u0648\u0642\u0641","\u0627\u0646\u0633\u062E","\u0627\u062D\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062A\u0638\u0631","\u0627\u0646\u062A\u0642\u0627\u0644","\u0623\u0648"]),bv={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]},Xa=class{calculate(e){return this.calculateWithBreakdown(e).final}calculateWithBreakdown(e){let t=this.scoreRoleCoverage(e),r=this.scoreStemPenalty(e),a=this.scoreLanguageBoost(e),i=this.scoreLanguageAdjustment(e),o=t;return o=Math.max(.5,o+r),o=Math.min(1,o+a),o=Math.max(0,Math.min(1,o+i)),{roleCoverage:t,stemPenalty:r,languageBoost:a,languageAdjustment:i,final:o}}scoreRoleCoverage(e){let{pattern:t,captured:r}=e,a=0,i=0,o=s=>t.extraction?.[s]?.default!==void 0;for(let s of t.template.tokens)if(s.type==="role")i+=1,r.has(s.role)&&(a+=1);else if(s.type==="group")for(let l of s.tokens)l.type==="role"&&(i+=.8,r.has(l.role)?a+=.8:o(l.role)&&(a+=.8*.6));return i>0?a/i:1}scoreStemPenalty(e){let{stemMatchCount:t,totalKeywordMatches:r}=e;return t<=0||r<=0?0:-(t/r)*.15}scoreLanguageBoost(e){let{pattern:t}=e;if(t.language!=="ar")return 0;let r=t.template.tokens[0];return!r||r.type!=="literal"?0:Sc.has(r.value)||r.alternatives?.some(a=>Sc.has(a))?.15:0}scoreLanguageAdjustment(e){let{pattern:t,captured:r}=e;if(t.language!=="ar")return 0;let a=0;for(let[i,o]of r.entries()){let s=bv[i];if(!s||s.length===0)continue;let l="metadata"in o?o.metadata:void 0;l&&typeof l.prepositionValue=="string"&&(s.includes(l.prepositionValue)?a+=.1:a-=.1)}return Math.max(-.1,Math.min(.1,a))}},Tc=new Xa;var Sv=new Set(Object.values(He).filter(n=>n.bareKeyword===!0).map(n=>n.action)),K=class K{constructor(e){this.matchCache=new Map;this.stemMatchCount=0;this.totalKeywordMatches=0;this.confidenceModel=e??Tc}matchPattern(e,t){let r=e.mark(),a=new Map;if(this.currentProfile=H(t.language),this.currentPatternCommand=t.command,this.stemMatchCount=0,this.totalKeywordMatches=0,!this.matchTokenSequence(e,t.template.tokens,a))return e.reset(r),null;let o=this.confidenceModel.calculate({pattern:t,captured:a,stemMatchCount:this.stemMatchCount,totalKeywordMatches:this.totalKeywordMatches});return this.applyExtractionRules(t,a),{pattern:t,captured:a,consumedTokens:e.position()-r.position,confidence:o}}matchBest(e,t){this.matchCache.clear();let r=[],a=e.position();for(let o of t){let s=e.mark(),l=`${a}:${o.id}`,c;this.matchCache.has(l)?c=this.matchCache.get(l):(c=this.matchPattern(e,o),this.matchCache.set(l,c)),c&&r.push(c),e.reset(s)}if(r.length===0)return null;r.sort((o,s)=>{let l=s.pattern.priority-o.pattern.priority;return l!==0?l:s.confidence-o.confidence});let i=r[0];return this.matchPattern(e,i.pattern),i}matchTokenSequence(e,t,r,a){let i=t[0],o=i?.type==="literal"&&(i.value==="and"||i.value==="then"||i.alternatives?.includes("and")||i.alternatives?.includes("then"));if(this.currentProfile?.code==="ar"&&!o)for(;e.peek()?.kind==="conjunction";)e.advance();let s=0;for(let l=0;l<t.length;l++){let c=t[l];s>0&&c.type==="literal"&&this.tryConsumeEventSourceClause(e,r,c);let p=this.matchPatternToken(e,c,r,t[l+1]??a);if(s=c.type==="role"&&c.role==="event"?2:Math.max(0,s-1),!p){if(this.isOptional(c))continue;return!1}}return!0}tryConsumeEventSourceClause(e,t,r){if(t.has("source"))return;let a=e.peek(),i=e.peek(1);if(!a||!i||this.patternTokenWouldMatch(r,a))return;let o=this.currentProfile?.roleMarkers?.source,s=c=>{if(c.kind!=="particle"&&c.kind!=="keyword")return!1;if((c.normalized??"").toLowerCase()==="source")return!0;if(!o)return!1;let p=c.value.toLowerCase();return o.primary?.toLowerCase()===p?!0:!!o.alternatives?.some(m=>m.toLowerCase()===p)},l=o?.position;if(l!=="after"&&s(a)&&i.kind==="selector"){e.advance();let c=this.tokenToSemanticValue(e.advance());c&&t.set("source",c);return}if(l==="after"&&a.kind==="selector"&&s(i)){let c=this.tokenToSemanticValue(a);e.advance(),e.advance(),c&&t.set("source",c)}}matchPatternToken(e,t,r,a){switch(t.type){case"literal":return this.matchLiteralToken(e,t);case"role":return this.matchRoleToken(e,t,r,a);case"group":return this.matchGroupToken(e,t,r,a);default:return!1}}matchLiteralToken(e,t){let r=e.peek();if(!r)return!1;let a=this.getMatchType(r,t.value);if(a!=="none")return this.totalKeywordMatches++,a==="stem"&&this.stemMatchCount++,e.advance(),!0;if(t.alternatives)for(let i of t.alternatives){let o=this.getMatchType(r,i);if(o!=="none")return this.totalKeywordMatches++,o==="stem"&&this.stemMatchCount++,e.advance(),!0}for(let i of[t.value,...t.alternatives??[]])for(let o of["-","_"])if(i.includes(o)&&this.tryMatchShatteredCompound(e,i,o))return this.totalKeywordMatches++,!0;return!1}tryFoldHyphenActionKeyword(e){let t=this.currentProfile;if(!t)return null;let r=e.mark(),a=[];for(;;){let o=e.peek();if(!o||o.kind!=="identifier"&&o.kind!=="keyword")break;a.push(o.value),e.advance();let s=e.peek();if(!s||s.value!=="-")break;e.advance(),a.push("-")}if(a.length<3||a[a.length-1]==="-")return e.reset(r),null;let i=a.join("").toLowerCase();for(let[o,s]of Object.entries(t.keywords))if(s.primary.toLowerCase()===i||s.alternatives?.some(l=>l.toLowerCase()===i))return Q(o);return e.reset(r),null}tryMatchShatteredCompound(e,t,r){let a=t.split(r);if(a.length<2||a.some(o=>o.length===0))return!1;let i=e.mark();for(let o=0;o<a.length;o++){if(o>0){let l=e.peek();if(!l||l.value!==r)return e.reset(i),!1;e.advance()}let s=e.peek();if(!s||s.kind!=="identifier"&&s.kind!=="keyword"&&s.kind!=="particle"||s.value.toLowerCase()!==a[o].toLowerCase())return e.reset(i),!1;e.advance()}return!0}matchRoleToken(e,t,r,a){this.skipNoiseWords(e);let i=e.peek();if(!i)return t.optional||!1;if(t.role==="action"&&this.currentProfile&&e.peek(1)?.value==="-"){let v=this.tryFoldHyphenActionKeyword(e);if(v)return r.set(t.role,v),!0}if(t.role==="event"&&this.currentPatternCommand==="on"){if(!K.tokenLooksLikeEvent(i))return t.optional||!1;let v=(i.normalized??i.value).toLowerCase();if(K.POSITIONAL_OR_SCOPE_KEYWORDS.has(v)||this.currentProfile&&(Ie(this.currentProfile,i.value)??Ie(this.currentProfile,v))!==void 0||i.value.includes("?."))return t.optional||!1}if(t.role==="event"){let v=(i.normalized??i.value).toLowerCase();if(K.STRUCTURAL_NEVER_EVENT.has(v))return t.optional||!1}if(t.role==="duration"){let v=(i.normalized??i.value).toLowerCase();if(K.POSITIONAL_OR_SCOPE_KEYWORDS.has(v))return t.optional||!1}if(t.optional&&a===void 0&&t.role!=="event"&&t.role!=="action"&&i.kind==="keyword"&&(i.normalized??i.value).toLowerCase()in He)return!0;let o=this.tryMatchPositionalExpression(e);if(o)return t.expectedTypes&&t.expectedTypes.length>0&&!It(o.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,o),!0);let s=this.tryMatchCaretScopeExpression(e);if(s)return t.expectedTypes&&t.expectedTypes.length>0&&!It(s.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,s),!0);if(t.role!=="event"&&(!t.expectedTypes||t.expectedTypes.includes("expression"))){let v=this.tryMatchOperatorRunExpression(e);if(v)return r.set(t.role,v),!0}if(t.expectedTypes?.includes("property-path")){let v=this.tryMatchOfPossessiveExpression(e);if(v)return r.set(t.role,v),!0;let b=this.tryMatchPostNominalPossessiveExpression(e);if(b)return r.set(t.role,b),!0}let l=this.tryMatchPossessiveExpression(e);if(l)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(l.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,l),!0);let c=this.tryMatchMethodCallExpression(e);if(c)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(c.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,c),!0);let m=t.role==="event"&&this.currentPatternCommand==="on"||K.DECLARATION_COMMANDS.has(this.currentPatternCommand??"")?null:this.tryMatchBareCallExpression(e);if(m)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(m.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,m),!0);let d=this.tryMatchPossessiveSelectorExpression(e);if(d)return t.expectedTypes&&t.expectedTypes.length>0&&!It(d.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,d),!0);let u=t.role!=="condition",f=this.tryMatchPropertyAccessExpression(e,u);if(f)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(f.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,f),!0);let y=this.tryMatchSelectorPropertyExpression(e);if(y)return t.expectedTypes&&t.expectedTypes.length>0&&!It(y.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,y),!0);if(i.kind==="identifier"&&i.value==="{"&&(!t.expectedTypes?.length||t.expectedTypes.includes("literal"))){let v=this.tryMatchBraceRunLiteral(e);if(v)return r.set(t.role,v),!0}let g=this.tokenToSemanticValue(i);if(!g)return t.optional||!1;if(t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(g.type)){let v=g.type==="selector"&&String(g.value).startsWith("@"),b=t.expectedTypes.some(E=>E==="expression"||E==="reference");if(!(v&&b))return t.optional||!1}if(r.set(t.role,g),e.advance(),t.role==="event"){let v=e.peek();v&&v.kind==="selector"&&v.value.startsWith("[")&&"value"in g&&(r.set(t.role,Q(`${String(g.value)}${v.value}`)),e.advance());let b=e.peek();if(b&&(b.kind==="particle"||b.kind==="keyword")&&(b.normalized??"").toLowerCase()==="source"&&!this.patternTokenWouldMatch(a,b)){let E=e.peek(1);if(E&&(E.kind==="selector"||E.kind==="identifier")){e.advance();let L=this.tokenToSemanticValue(e.advance());L&&!r.has("source")&&r.set("source",L)}}}return!0}patternTokenWouldMatch(e,t){return e?e.type==="literal"?this.getMatchType(t,e.value)!=="none"?!0:!!e.alternatives?.some(r=>this.getMatchType(t,r)!=="none"):e.type==="group"?this.patternTokenWouldMatch(e.tokens?.[0],t):!1:!1}tryMatchPositionalExpression(e){let t=e.peek();if(!t)return null;let r=(t.normalized??t.value).toLowerCase();if(!K.POSITIONAL_KEYWORDS.has(r)&&!K.POSITIONAL_KEYWORDS.has(t.value.toLowerCase()))return null;let a=e.mark(),i=[t.normalized??t.value];e.advance();let o=e.peek();if(!o||o.kind!=="selector")return e.reset(a),null;i.push(o.value),e.advance();let s=0;for(;s++<8;){let p=e.peek();if(p&&p.kind==="selector"&&p.value.startsWith("."))i.push(p.value),e.advance();else break}let l=e.peek(),c=e.peek(1);return l&&c&&c.kind==="selector"&&(l.kind==="keyword"||l.kind==="particle"||l.kind==="identifier")&&!K.POSITIONAL_KEYWORDS.has((l.normalized??l.value).toLowerCase())&&!K.COMMAND_ACTION_KEYWORDS.has((l.normalized??l.value).toLowerCase())&&(i.push(l.normalized??l.value,c.value),e.advance(),e.advance()),{type:"expression",raw:i.join(" ")}}tryMatchCaretScopeExpression(e){let t=e.peek();if(!t||t.kind!=="identifier"||!t.value.startsWith("^"))return null;let r=e.peek(1),a=e.peek(2),i=(r?.normalized??"").toLowerCase(),o=!!r&&(r.value.toLowerCase()==="on"||i==="destination"||i==="on");return!r||!a||a.kind!=="selector"||!o?null:(e.advance(),e.advance(),e.advance(),{type:"expression",raw:`${t.value} on ${a.value}`})}isOfPossessiveMarker(e){let t=e.value.toLowerCase(),r=(e.normalized??"").toLowerCase();if(t==="of"||t==="ng"||r==="of"||r==="source")return!0;let a=this.currentProfile?.code?K.OF_POSSESSIVE_MARKERS[this.currentProfile.code]:void 0;return!!a&&a.has(t)}tryMatchOperatorRunExpression(e){let t=e.mark(),r=e.position();if(!this.tryConsumeRunOperand(e))return e.reset(t),null;let a=1;for(;;){let o=e.peek();if(!o||!K.RUN_OPERATORS.has(o.value))break;let s=e.mark();if(e.advance(),!this.tryConsumeRunOperand(e)){e.reset(s);break}a++}if(a<2)return e.reset(t),null;let i=e.tokens.slice(r,e.position()).map(o=>o.value).join(" ");return{type:"expression",raw:i,value:i}}tryConsumeRunOperand(e){let t=e.peek();if(!t)return!1;if(t.value==="("){let r=e.mark(),a=0;for(;!e.isAtEnd();){let i=e.advance();if(i.value==="(")a++;else if(i.value===")"&&(a--,a===0))return!0}return e.reset(r),!1}return this.tryMatchPossessiveExpression(e)?!0:(t.kind==="literal"||t.kind==="identifier"||t.kind==="selector"||t.kind==="keyword")&&!K.RUN_OPERATORS.has(t.value)&&t.value!==")"?(e.advance(),!0):!1}tryMatchOfPossessiveExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||!this.isOfPossessiveMarker(a))return e.reset(r),null;e.advance();let i=e.peek();return!i||i.kind!=="selector"?(e.reset(r),null):(e.advance(),Le(be(i.value),t.value))}tryMatchPossessiveExpression(e){let t=e.peek();if(!t||!this.currentProfile)return null;let r=[t.value,t.normalized].filter(Boolean),a;for(let l of r)if(a=Ie(this.currentProfile,l)??Ie(this.currentProfile,l.toLowerCase()),a)break;if(!a)return null;let i=e.mark();e.advance();let o=this.currentProfile.possessive?.connectors;if(o&&o.length>0){let l=e.peek();if(l){let c=l.value.toLowerCase(),p=(l.normalized??"").toLowerCase();o.some(m=>m.toLowerCase()===c||m.toLowerCase()===p)&&e.advance()}}let s=e.peek();if(!s||ds(this.currentProfile.code,s.value))return e.reset(i),null;if(s.kind==="identifier"||s.kind==="keyword"&&!this.isStructuralKeyword(s.value)&&!(s.normalized&&this.isStructuralKeyword(s.normalized))&&!(s.normalized&&this.isRoleMarkerConcept(s.normalized))||s.kind==="selector"&&s.value.startsWith("*")||s.kind==="selector"&&s.value.startsWith("@")||s.kind==="selector"&&s.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(s.value)){e.advance();let l=s.value;s.kind==="selector"&&l.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(l)&&(l=l.substring(1));let c=l;for(;e.peek()?.kind==="selector"&&e.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(e.peek().value);)c+=e.peek().value,e.advance();let p=e.peek();if(p&&p.value.startsWith("(")){let m="",d=0,u=0;for(;!e.isAtEnd()&&u++<K.MAX_METHOD_ARGS+2;){let f=e.peek();if(!f)break;m+=f.value,e.advance();for(let y of f.value)y==="("?d++:y===")"&&d--;if(d<=0)break}c+=m}return Le(de(a),c)}return e.reset(i),null}tryMatchPostNominalPossessiveExpression(e){if(!this.currentProfile||this.currentProfile.possessive?.markerPosition!=="after-object")return null;let t=m=>{for(let d of[m.value,m.normalized].filter(Boolean))if(Ie(this.currentProfile,d)??Ie(this.currentProfile,d.toLowerCase()))return!0;return!1},r=e.peek();if(!r)return null;let a=r.kind==="selector"&&r.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(r.value);if(!(r.kind==="identifier"&&!this.isStructuralKeyword(r.value)&&!(r.normalized&&this.isStructuralKeyword(r.normalized))&&!(r.normalized&&this.isRoleMarkerConcept(r.normalized))||r.kind==="selector"&&(r.value.startsWith("*")||r.value.startsWith("@"))||a)||t(r))return null;let o=e.mark(),s=r.value;a&&(s=s.substring(1)),e.advance();let l=s;for(;e.peek()?.kind==="selector"&&e.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(e.peek().value);)l+=e.peek().value,e.advance();let c=e.peek();if(!c)return e.reset(o),null;let p;for(let m of[c.value,c.normalized].filter(Boolean))if(p=Ie(this.currentProfile,m)??Ie(this.currentProfile,m.toLowerCase()),p)break;return p?(e.advance(),Le(de(p),l)):(e.reset(o),null)}isStructuralKeyword(e){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(e.toLowerCase())}isRoleMarkerConcept(e){return new Set(["destination","source","patient","object","event","eventmarker","manner","instrument"]).has(e.toLowerCase())}static tokenLooksLikeEvent(e){if(e.kind==="selector"||e.kind==="url"||e.kind==="literal")return!1;let t=e.value;if(/[/#@*]/.test(t)||t.startsWith('"')||t.startsWith("'")||t.startsWith("`"))return!1;let r=e.normalized?.toLowerCase();return!(r&&Sv.has(r))}tryMatchBraceRunLiteral(e){let t=e.peek();if(!t||t.kind!=="identifier"||t.value!=="{")return null;let r=e.mark();e.advance();let a=["{"],i=1,o=0;for(;!e.isAtEnd()&&o++<K.MAX_BRACE_RUN_TOKENS;){let s=e.advance();if(!s)break;if(s.value==="{")i++;else if(s.value==="}"&&(i--,i===0))return a.push("}"),Q(a.join(" "));a.push(s.value)}return e.reset(r),null}tryMatchBareCallExpression(e){let t=e.peek();if(!t||t.kind!=="identifier"||!/^[A-Za-z_][\w$]*$/.test(t.value))return null;let r=e.peek(1);if(!r||r.value!=="(")return null;let a=e.mark();e.advance(),e.advance();let i=[],o=!1,s=0;for(;!e.isAtEnd()&&s++<K.MAX_METHOD_ARGS+2;){let l=e.peek();if(!l)break;if(l.value===")"){e.advance(),o=!0;break}if(l.value===","){e.advance();continue}i.push(l.value),e.advance()}return o?{type:"expression",raw:`${t.value}(${i.join(", ")})`}:(e.reset(a),null)}tryMatchMethodCallExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="operator"||a.value!==".")return e.reset(r),null;e.advance();let i=e.peek();if(!i||i.kind!=="identifier")return e.reset(r),null;e.advance();let o=e.peek();if(!o||o.kind!=="punctuation"||o.value!=="(")return e.reset(r),null;e.advance();let s=[];for(;!e.isAtEnd()&&s.length<K.MAX_METHOD_ARGS;){let c=e.peek();if(!c)break;if(c.kind==="punctuation"&&c.value===")"){e.advance();break}if(c.kind==="punctuation"&&c.value===","){e.advance();continue}s.push(c.value),e.advance()}return{type:"expression",raw:`${t.value}.${i.value}(${s.join(", ")})`}}tryMatchPropertyAccessExpression(e,t=!0){let r=e.peek();if(!r||r.kind!=="identifier"&&r.kind!=="keyword")return null;let a=e.mark();e.advance();let i=r.value.toLowerCase(),o=e.peek();if((r.kind==="identifier"||K.PROPERTY_ACCESS_BASES.has(i))&&o&&o.kind==="selector"&&/^\.[a-zA-Z_]/.test(o.value)){let u=r.value,f=[],y=0;for(;y<K.MAX_PROPERTY_DEPTH;){let b=e.peek();if(b&&b.kind==="selector"&&/^\.[a-zA-Z_]/.test(b.value))u+=`.${b.value.slice(1)}`,f.push(b.value.slice(1)),e.advance(),y++;else break}let g=e.peek(),v=!!g&&g.value.startsWith("(");if(t&&!v&&f.length>0&&Xe(i))return Le(de(i),f.join("."));if(v){let b=e.mark(),E=[],L=0,w=!1;for(;!e.isAtEnd();){let k=e.peek();if(!k)break;if(k.value==="(")L++;else if(k.value===")"){if(E.push(k.value),e.advance(),L--,L===0&&(w=!0),w)break;continue}E.push(k.value),e.advance()}w?u+=E.join(""):e.reset(b)}return{type:"expression",raw:u}}let s=e.peek();if(!s||s.kind!=="operator"||s.value!==".")return e.reset(a),null;e.advance();let l=e.peek();if(!l||l.kind!=="identifier")return e.reset(a),null;e.advance();let c=`${r.value}.${l.value}`,p=1;for(;!e.isAtEnd()&&p<K.MAX_PROPERTY_DEPTH;){let u=e.peek();if(!u||u.kind!=="operator"||u.value!==".")break;e.advance();let f=e.peek();if(!f||f.kind!=="identifier")break;e.advance(),c+=`.${f.value}`,p++}let m=e.peek();if(m&&m.kind==="punctuation"&&m.value==="("){e.advance();let u=[],f=0;for(;!e.isAtEnd()&&u.length<K.MAX_METHOD_ARGS;){let g=e.peek();if(!g)break;if(g.kind==="punctuation"&&g.value===")"){if(f===0){e.advance();break}f--}if(g.kind==="punctuation"&&g.value==="("&&f++,g.kind==="punctuation"&&g.value===","){e.advance();continue}u.push(g.value),e.advance()}return{type:"expression",raw:`${c}(${u.join(", ")})`}}let d=r.value.toLowerCase();if(t&&Xe(d)){let u=c.split(".").slice(1).join(".");return Le(de(d),u)}return{type:"expression",raw:c}}tryMatchPossessiveSelectorExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek(),i=this.currentProfile?.possessive?.marker?.replace(/^-/,""),o=!!a&&a.kind==="punctuation"&&a.value==="'s",s=!!a&&a.value==="'"&&(e.peek(1)?.value??"").toLowerCase()==="s",l=(()=>{if(!this.currentPatternCommand||(a?.normalized??"").toLowerCase()!=="source")return!1;let d=He[this.currentPatternCommand];return!!d&&d.roles.some(u=>u.role==="source")})(),c=!!a&&!!i&&i!=="'s"&&a.value===i&&(a.kind==="particle"||a.kind==="punctuation")&&!l;if(!o&&!c&&!s)return e.reset(r),null;e.advance(),s&&e.advance();let p=e.peek();return!p||!(p.kind==="identifier"||(o||s)&&(p.kind==="selector"||p.kind==="keyword"))?(e.reset(r),null):(e.advance(),Le(be(t.value),p.value))}tryMatchSelectorPropertyExpression(e){let t=e.peek();if(!t||t.kind!=="selector"||!t.value.startsWith("#"))return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="selector"||!a.value.startsWith("."))return e.reset(r),null;let i=e.peek(1);i&&i.kind,e.advance();let o=a.value.slice(1);return Le(be(t.value),o)}matchGroupToken(e,t,r,a){let i=e.mark(),o=new Set(r.keys());if(!this.matchTokenSequence(e,t.tokens,r,a)){e.reset(i);for(let l of r.keys())o.has(l)||r.delete(l);return t.optional||!1}return!0}getMatchType(e,t){return e.value===t?"exact":e.normalized===t?"normalized":e.stem===t&&e.stemConfidence!==void 0&&e.stemConfidence>=.7?"stem":e.kind==="keyword"&&e.value.toLowerCase()===t.toLowerCase()?"case-insensitive":"none"}tokenToSemanticValue(e){switch(e.kind){case"selector":return be(e.value);case"literal":return this.parseLiteralValue(e.value);case"keyword":let t=(e.normalized||e.value).toLowerCase();return Xe(t)?de(t):Q(e.normalized||e.value);case"identifier":if(e.value.startsWith("@"))return be(e.value);if(e.value.startsWith(":")||e.value.startsWith("$"))return de(e.value);let r=e.value.toLowerCase();return Xe(r)?de(r):{type:"expression",raw:e.value};case"url":return Q(e.value,"string");default:return null}}parseLiteralValue(e){if(e.startsWith('"')||e.startsWith("'")||e.startsWith("`")||e.startsWith("\u300C")){let a=e.slice(1,-1);return Q(a,"string")}if(e==="true")return Q(!0,"boolean");if(e==="false")return Q(!1,"boolean");let t=e.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(t){let a=parseFloat(t[1]);return t[2]?Q(e,"duration"):Q(a,"number")}let r=parseFloat(e);return isNaN(r)?Q(e,"string"):Q(r,"number")}applyExtractionRules(e,t){for(let[r,a]of Object.entries(e.extraction))t.has(r)||(a.value!==void 0?t.set(r,{type:"literal",value:a.value}):a.default&&t.set(r,a.default))}isOptional(e){return e.type!=="literal"&&e.optional===!0}skipNoiseWords(e){let t=e.peek();if(!t)return;let r=t.value.toLowerCase();if(K.ENGLISH_NOISE_WORDS.has(r)){let a=e.mark();e.advance();let i=e.peek();if(i&&(i.kind==="selector"||i.kind==="identifier"))return;let o=e.peek(1);if(i&&i.kind==="keyword"&&o&&o.kind==="selector"&&/^\.[a-zA-Z_]/.test(o.value))return;let s=i?(i.normalized??i.value).toLowerCase():"";if(i&&K.POSITIONAL_OR_SCOPE_KEYWORDS.has(s))return;let l=e.peek(1),c=l?(l.normalized??l.value).toLowerCase():"",p=this.currentProfile?.wordOrder!=="SOV"&&K.COMMAND_ACTION_KEYWORDS.has(c),m=!l||l.kind==="particle"||K.CLAUSE_BOUNDARY_KEYWORDS.has(c)||p;if(i&&i.kind==="keyword"&&this.currentProfile?.code!=="en"&&Xe(s)&&m||i&&i.kind==="keyword"&&this.currentProfile?.code==="en"&&Xe(s))return;e.reset(a)}r==="class"&&e.advance()}extractEventModifiers(e){let t={},r=!1;for(;!e.isAtEnd();){let a=e.peek();if(!a||a.kind!=="event-modifier")break;let i=a.metadata;if(!i)break;switch(r=!0,i.modifierName){case"once":t.once=!0;break;case"debounce":typeof i.value=="number"&&(t.debounce=i.value);break;case"throttle":typeof i.value=="number"&&(t.throttle=i.value);break;case"queue":(i.value==="first"||i.value==="last"||i.value==="all"||i.value==="none")&&(t.queue=i.value);break}e.advance()}return r?t:void 0}};K.POSITIONAL_KEYWORDS=new Set(["first","last","next","previous","random","closest"]),K.POSITIONAL_OR_SCOPE_KEYWORDS=new Set(["first","last","next","previous","random","closest","parent"]),K.STRUCTURAL_NEVER_EVENT=new Set(["if","unless","else","end","then"]),K.PROPERTY_ACCESS_BASES=new Set(["it","me","you","my","its","your","event","result","target","detail","body","window","document","self","this"]),K.COMMAND_ACTION_KEYWORDS=new Set(Object.keys(He).map(e=>e.toLowerCase())),K.CLAUSE_BOUNDARY_KEYWORDS=new Set(["then","and","or","end","else"]),K.OF_POSSESSIVE_MARKERS={ms:new Set(["daripada"]),sw:new Set(["ya"]),vi:new Set(["c\u1EE7a"]),zh:new Set(["\u7684"]),it:new Set(["di"]),pl:new Set(["z"]),uk:new Set(["\u0437"]),th:new Set(["\u0E02\u0E2D\u0E07"]),ja:new Set(["\u306E"]),ko:new Set(["\uC758"]),bn:new Set(["\u09B0"]),hi:new Set(["\u0915\u093E"]),qu:new Set(["pa"]),tr:new Set(["nin"])},K.RUN_OPERATORS=new Set(["+","-","*","/"]),K.MAX_BRACE_RUN_TOKENS=64,K.MAX_PROPERTY_DEPTH=10,K.MAX_METHOD_ARGS=20,K.DECLARATION_COMMANDS=new Set(["behavior","def","install"]),K.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]);var Za=K,Ce=new Za;ve();Ue();ve();var Xr=["if","unless","repeat","for","while"];function Re(n,e){let t=new Set([e]),a=H(n)?.keywords?.[e];if(a){a.primary&&t.add(a.primary.toLowerCase());for(let i of a.alternatives??[])t.add(i.toLowerCase())}return t}function ke(n,e){return e.has(n.value.toLowerCase())?!0:n.normalized?e.has(n.normalized.toLowerCase()):!1}var Tv=new Set(Xr);function Ja(n,e){let t=n.normalized?.toLowerCase();return t?Tv.has(t):e.some(r=>ke(n,r))}var Ec=new Set(["me","it","you","the","body","window","document","its","event","result","target","self","this","them","parent","next","previous","closest","first","last"]),Ev=new Set(["destination","source","style","patient","on","from","to"]);function Pv(n){if(!n||n.kind==="selector")return!1;let e=(n.normalized??n.value).toLowerCase(),t=n.value.toLowerCase();return!(Ec.has(e)||Ec.has(t)||Ev.has(e))}var Pc=new Set(["ja","ko"]);function Ya(n){let e=new Set;n?.primary&&e.add(n.primary.toLowerCase());for(let t of n?.alternatives??[])e.add(t.toLowerCase());return e}function Cc(n,e){let t=[],r=e.position.end,a=n.slice(e.position.end).match(/^\s*\(([^)]*)\)/);if(a){r=e.position.end+a[0].length;for(let i of a[1].split(/[,،、]/)){let o=i.trim();o&&t.push(o)}}return{parameters:t,headerEnd:r}}function Rc(n,e,t){let r=e+1;if(r>=n.length)return-1;let a=Ya(H(t)?.roleMarkers?.patient);return a.size>0&&ke(n[r],a)&&r++,r<n.length?r:-1}function Nc(n,e,t){if(!H(e))return null;let r=Re(e,"behavior"),a=Re(e,"def"),i=n.toLowerCase(),o=[...r].some(p=>i.includes(p)),s=/\bdef\b/.test(i)||[...a].some(p=>p!=="def"&&i.includes(p));if(!o&&!s)return null;let l=pe(n,e).tokens;if(l.length<2)return null;if(ke(l[0],r))return Lc(n,e,l,t,0);let c=l.findIndex((p,m)=>m>0&&ke(p,r));return c>0&&/^[A-Z][A-Za-z0-9_]*$/.test(l[0].value)?Lc(n,e,l,t,c):ke(l[0],a)?Lv(n,e,l,t):null}function Ac(n,e,t){let r=H(e);if(!r)return null;let a=r.wordOrder!=="SOV",i=Pc.has(e)?Ya(r.roleMarkers?.event):new Set,o=Pc.has(e)?Ya(r.keywords?.on):new Set,s=i.size>0&&o.size>0,l=Re(e,"end"),c=Re(e,"on"),p=n.toLowerCase(),m=[...l].some(k=>p.includes(k)),d=(a||s)&&(()=>{let k=0;for(let P of c)if(P){for(let h=p.indexOf(P);h>=0;h=p.indexOf(P,h+P.length))if(++k>=2)return!0}return!1})();if(!m&&!d)return null;let u=pe(n,e).tokens;if(u.length<2)return null;let f=Xr.map(k=>Re(e,k)),y=k=>Ja(k,f),g=k=>ke(k,l),v=[],b=0,E=0;for(let k=0;k<u.length;k++){let P=u[k];if(g(P)){if(b>0){b--;continue}let h=n.slice(u[E].position.start,P.position.start).trim();h&&v.push(h),E=k+1}else if(y(P))b++;else if(a&&b===0&&k>E&&ke(P,c)&&Pv(u[k+1])){let h=n.slice(u[E].position.start,P.position.start).trim();h&&v.push(h),E=k}else if(s&&b===0&&k-1>E&&ke(P,i)&&u[k+1]!==void 0&&ke(u[k+1],o)){let h=u[k-1],S=n.slice(u[E].position.start,h.position.start).trim();S&&v.push(S),E=k-1}}if(E<u.length){let k=n.slice(u[E].position.start).trim();k&&v.push(k)}if(v.length<2)return null;let L=[],w=[];for(let k of v){let P;try{P=t.statement(k,e)}catch{return null}if(!P||P.kind!=="event-handler")return null;let h=P;L.push(h);let S=!h.body||h.body.length===0;w.push(S?.2:h.metadata?.confidence??.75)}return Wt(L,"then",{sourceLanguage:e,confidence:Gr(w),sourceText:n})}function Gr(n){return n.length>0?n.reduce((e,t)=>e+t,0)/n.length:0}function jc(n){let e=[];for(let t of n){let r=t.statements;t.kind==="compound"&&Array.isArray(r)?e.push(...r):e.push(t)}return e}function Lc(n,e,t,r,a){let i=a>0,o=i?0:Rc(t,a,e);if(o<0)return null;let s=t[o],l=s.value;if(!/^[A-Z][A-Za-z0-9_]*$/.test(l))return null;let{parameters:c,headerEnd:p}=Cc(n,s),m=i?a+1:t.findIndex(h=>h.position.start>=p);m<=o&&(m=o+1);let d=Re(e,"init"),u=Re(e,"end"),f=Xr.map(h=>Re(e,h)),y=h=>Ja(h,f),g=h=>ke(h,u),v=[],b=[],E=[],L=!1,w=0,k=m;for(let h=m;h<t.length;h++){let S=t[h];if(g(S)){if(w>0){w--;continue}if(h===k){L=!0;break}if(ke(t[k],d)){let O=n.slice(t[k].position.end,S.position.start).trim();if(O)try{let C=jc(r.body(O,e));b.push(...C),E.push(Gr(C.map(F=>F.metadata?.confidence??.75)))}catch{E.push(0)}}else{let O=n.slice(t[k].position.start,S.position.start).trim();try{let C=r.statement(O,e);if(C&&C.kind==="event-handler"){let F=C;v.push(F);let $=!F.body||F.body.length===0;E.push($?.2:F.metadata?.confidence??.75)}else E.push(0)}catch{E.push(0)}}k=h+1}else y(S)&&w++}if(v.length===0&&b.length===0)return null;let P=(L?1:.8)*Gr(E);return xc(l,c,v,b.length>0?b:void 0,{sourceLanguage:e,confidence:P,sourceText:n})}function Lv(n,e,t,r){let a=Rc(t,0,e);if(a<0)return null;let i=t[a],o=i.value;if(!/^[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*$/.test(o))return null;let{parameters:s,headerEnd:l}=Cc(n,i),c=t.findIndex(w=>w.position.start>=l);c<=a&&(c=a+1);let p=Re(e,"end"),m=Xr.map(w=>Re(e,w)),d=w=>Ja(w,m),u=w=>ke(w,p),f=0,y=-1;for(let w=c;w<t.length;w++)if(u(t[w])){if(f===0){y=w;break}f--}else d(t[w])&&f++;let g=t[c]?.position.start??l,v=y>=0?t[y].position.start:n.length,b=n.slice(g,v).trim();if(!b)return null;let E;try{E=jc(r.body(b,e))}catch{return null}if(E.length===0)return null;let L=Gr(E.map(w=>w.metadata?.confidence??.75));return y<0&&(L*=.8),wc(o,s,E,{sourceLanguage:e,confidence:L,sourceText:n})}xt();kt();ve();xt();je();var Zr=class{render(e,t){if(e.kind==="compound")return this.renderCompound(e,t);if(e.kind==="behavior")return this.renderBehavior(e,t);if(e.kind==="def")return this.renderDef(e,t);let r=ui(t,e.action);if(r.length===0)return this.renderExplicit(e);let a=this.findBestPattern(e,r);return a?this.renderWithPattern(e,a):this.renderExplicit(e)}renderCompound(e,t){if(e.statements.length>1&&e.statements.every(i=>i.kind==="event-handler")){let i=this.keyword(t,"end"),o=[];for(let s of e.statements)o.push(this.render(s,t),i);return o.join(`
|
|
1
|
+
"use strict";var LokaScriptSemanticLazy=(()=>{var en=Object.defineProperty;var up=Object.getOwnPropertyDescriptor;var fp=Object.getOwnPropertyNames;var yp=Object.prototype.hasOwnProperty;var z=(n,e)=>()=>(n&&(e=n(n=0)),e);var N=(n,e)=>{for(var t in e)en(n,t,{get:e[t],enumerable:!0})},gp=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of fp(e))!yp.call(n,a)&&a!==t&&en(n,a,{get:()=>e[a],enumerable:!(r=up(e,a))||r.enumerable});return n};var vp=n=>gp(en({},"__esModule",{value:!0}),n);function li(n,e){let t={...n};for(let r of Object.keys(e)){let a=e[r],i=n[r];a!==void 0&&(typeof a=="object"&&a!==null&&!Array.isArray(a)&&typeof i=="object"&&i!==null&&!Array.isArray(i)?t[r]=li(i,a):t[r]=a)}return t}function hp(n,e){return li(n,e)}function nn(n){if(!n.extends)return n;let e=Ae.get(n.extends);if(!e)return console.warn(`[Registry] Profile '${n.code}' extends '${n.extends}' but base is not registered. Make sure to import the base language before the variant.`),n;let t=nn(e);return hp(t,n)}function ci(n,e,t){Ne.set(n,e),Ae.set(n,t),Ye.delete(n)}function pi(n){tn=n}function an(n,e){rn.set(n,e),Ye.delete(n)}function De(n){return n.split("-")[0]}function Fe(n){return n.includes("-")}function on(n){let e=Ne.get(n);if(!e&&Fe(n)){let t=De(n);e=Ne.get(t)}if(!e){let t=Array.from(Ne.keys()).join(", ");throw new Error(`Language '${n}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${n}';`)}return e}function sn(n){let e=Ae.get(n);if(!e&&Fe(n)){let t=De(n);e=Ae.get(t)}if(!e){let t=Array.from(Ae.keys()).join(", ");throw new Error(`Language profile '${n}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${n}';`)}return nn(e)}function H(n){let e=Ae.get(n);return!e&&Fe(n)&&(e=Ae.get(De(n))),e?nn(e):void 0}function Bt(){return Array.from(Ne.keys())}function Te(n){if(Ne.has(n)&&Ae.has(n))return!0;if(Fe(n)){let e=De(n);return Ne.has(e)&&Ae.has(e)}return!1}function mi(n){return Ne.has(n)?!0:Fe(n)?Ne.has(De(n)):!1}function di(n,e){return on(e).tokenize(n)}function xe(n){let e=Ye.get(n);if(!e&&Fe(n)&&(e=Ye.get(De(n))),e)return e;let t=rn.get(n);if(!t&&Fe(n)&&(t=rn.get(De(n))),t)return Ye.set(n,t),t;if(!tn)throw new Error(`No patterns registered for language '${n}'. Either import the language module or set a pattern generator.`);let r=sn(n),a=tn(r);return Ye.set(n,a),a}function ui(n,e){return xe(n).filter(t=>t.command===e).sort((t,r)=>r.priority-t.priority)}var Ne,Ae,Ye,tn,rn,ve=z(()=>{"use strict";Ne=new Map,Ae=new Map,Ye=new Map,tn=null;rn=new Map});function se(n,e){return e?{type:"literal",value:n,dataType:e}:{type:"literal",value:n}}function lt(n,e){return e?{type:"selector",value:n,selectorKind:e}:{type:"selector",value:n}}function Je(n){return{type:"reference",value:n}}function Ft(n,e){return{type:"property-path",object:n,property:e}}function ln(n,e=!0){return{type:"flag",name:n,enabled:e}}function yi(n,e,t){let r=e instanceof Map?e:new Map(Object.entries(e)),a={kind:"command",action:n,roles:r};return t?{...a,metadata:t}:a}function cn(n,e,t,r,a){let i=e instanceof Map?e:new Map(Object.entries(e));return{kind:"event-handler",action:n,roles:i,body:t,...a&&{eventModifiers:a},...r&&{metadata:r}}}function gi(n,e,t,r,a){let i=e instanceof Map?e:new Map(Object.entries(e));return{kind:"conditional",action:n,roles:i,thenBranch:t,...r&&{elseBranch:r},...a&&{metadata:a}}}function vi(n,e,t,r,a,i,o){let s=e instanceof Map?e:new Map(Object.entries(e));return{kind:"loop",action:n,roles:s,loopVariant:t,body:r,...a&&{loopVariable:a},...i&&{indexVariable:i},...o&&{metadata:o}}}function Ht(n,e=pn){return e.has(n)}function zp(n){let e=n.slice(1,-1),t=0;for(let r of e)if(r==="[")t++;else if(r==="]")t--;else if(t===0&&(r===" "||r===":"))return!0;return!1}function Ut(n,e={}){let t=n.trim(),r=e.collectDiagnostics===!0,a=[];if(!t.startsWith("[")||!t.endsWith("]"))throw new Error("Explicit syntax must be wrapped in brackets: [command role:value ...]");let i=t.slice(1,-1).trim();if(!i)throw new Error("Empty explicit statement");let o=xp(i);if(o.length===0)throw new Error("No command specified in explicit statement");let s=o[0].toLowerCase(),l=new Map,c=e.referenceSet??pn,p=e.schemaLookup?.getSchema(s),m=p?new Set(p.roles.map(u=>u.role)):null;for(let u=1;u<o.length;u++){let f=o[u];if(f.startsWith("+")||f.startsWith("~")){let L=f.startsWith("+"),w=f.slice(1);if(!w){if(r){a.push({severity:"error",code:"EMPTY_FLAG",message:`Empty flag name: "${f}"`,source:"schema"});continue}throw new Error(`Empty flag name: "${f}"`)}if(m&&!m.has(w)){if(r){a.push({severity:"error",code:"UNKNOWN_FLAG",message:`Unknown flag "${w}" for command "${s}"`,source:"schema",suggestions:[...m].map(k=>`+${k}`)}),l.set(w,ln(w,L));continue}throw new Error(`Unknown flag "${w}" for command "${s}". Valid roles: ${[...m].join(", ")}`)}l.set(w,ln(w,L));continue}let y=f.indexOf(":");if(y===-1){if(r){a.push({severity:"error",code:"INVALID_ROLE_FORMAT",message:`Invalid role format: "${f}". Expected role:value or +flag`,source:"schema"});continue}throw new Error(`Invalid role format: "${f}". Expected role:value or +flag`)}let g=f.slice(0,y);if(m&&!fi.has(g)&&!m.has(g))if(r)a.push({severity:"error",code:"UNKNOWN_ROLE",message:`Unknown role "${g}" for command "${s}"`,source:"schema",suggestions:[...m]});else throw new Error(`Unknown role "${g}" for command "${s}". Valid roles: ${[...m].join(", ")}`);let v=g,b=f.slice(y+1);if(fi.has(g)&&b.startsWith("[")&&zp(b)){let L=bp(f,y+1),w=f.slice(y+1,L+1);l.set(v,{type:"expression",raw:w});continue}let E=wp(b,c);l.set(v,E)}if(p&&s!=="on"){for(let u of p.roles)if(u.required&&!l.has(u.role)&&!u.default)if(r)a.push({severity:"error",code:"MISSING_REQUIRED_ROLE",message:`Missing required role "${u.role}" for command "${s}": ${u.description}`,source:"schema"});else throw new Error(`Missing required role "${u.role}" for command "${s}": ${u.description}`)}let d=u=>a.length===0?u:{...u,diagnostics:a};switch(s){case"on":{if(!l.get("event")){if(r)return a.push({severity:"error",code:"MISSING_EVENT_ROLE",message:"Event handler requires event role: [on event:click ...]",source:"schema"}),d(cn("on",l,[],{sourceLanguage:"explicit"}));throw new Error("Event handler requires event role: [on event:click ...]")}let f=Dt(l,"body",e);return l.delete("body"),d(cn("on",l,f,{sourceLanguage:"explicit"}))}case"if":{let u=Dt(l,"then",e),f=Dt(l,"else",e);return l.delete("then"),l.delete("else"),d(gi(s,l,u,f.length>0?f:void 0,{sourceLanguage:"explicit"}))}case"repeat":{let u=Dt(l,"loop-body",e),f=l.get("loop-variant"),y=l.get("variable"),g=l.get("index-variable");l.delete("loop-body"),l.delete("loop-variant"),l.delete("variable"),l.delete("index-variable");let v;f&&f.type==="literal"&&typeof f.value=="string"?v=f.value:l.has("quantity")?v="times":l.has("source")?v="for":l.has("condition")?v="while":v="forever";let b=y?.type==="literal"&&typeof y.value=="string"?y.value:y?.type==="expression"?y.raw:void 0,E=g?.type==="literal"&&typeof g.value=="string"?g.value:void 0;return d(vi(s,l,v,u,b,E,{sourceLanguage:"explicit"}))}default:return d(yi(s,l,{sourceLanguage:"explicit"}))}}function _e(n){let e=n.trim();return e.startsWith("[")&&e.endsWith("]")}function Dt(n,e,t){let r=n.get(e);return r?r.type==="expression"?[Ut(r.raw,t)]:[]:[]}function kp(n){if(n){if(n.startsWith("#"))return"id";if(n.startsWith("."))return"class";if(n.startsWith("["))return"attribute";if(n.startsWith("<")||n.startsWith("*"))return"element";if(/[>+~ ]/.test(n)&&n.length>1)return"complex"}}function xp(n){let e=[],t="",r=!1,a="",i=0;for(let o=0;o<n.length;o++){let s=n[o];if(r){t+=s,s===a&&n[o-1]!=="\\"&&(r=!1);continue}if(s==='"'||s==="'"){r=!0,a=s,t+=s;continue}if(s==="["){i++,t+=s;continue}if(s==="]"){i--,t+=s;continue}if(s===" "&&i===0){t&&(e.push(t),t="");continue}t+=s}return t&&e.push(t),e}function wp(n,e){if(n.startsWith("#")||n.startsWith(".")||n.startsWith("[")||n.startsWith("@")||n.startsWith("*"))return lt(n,kp(n));if(n.startsWith('"')||n.startsWith("'"))return se(n.slice(1,-1),"string");if(n==="true")return se(!0,"boolean");if(n==="false")return se(!1,"boolean");let t=n.toLowerCase();if(Ht(t,e))return Je(t);let r=n.match(/^(-?\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(r){let a=parseFloat(r[1]);return r[2]?se(n,"duration"):se(a,"number")}return se(n)}function bp(n,e){let t=0;for(let r=e;r<n.length;r++)if(n[r]==="[")t++;else if(n[r]==="]"&&(t--,t===0))return r;return n.length-1}function he(n){let e;if(n.kind==="compound"){let t=n;e=t.statements.map(r=>he(r)).join(` ${t.chainType} `)}else e=Sp(n);return n.annotations&&n.annotations.length>0?n.annotations.map(r=>r.value!==void 0?`@${r.name}(${r.value})`:`@${r.name}`).join(" ")+" "+e:e}function Sp(n){let e=[n.action];for(let[t,r]of n.roles)r.type==="flag"?e.push(r.enabled?`+${r.name}`:`~${r.name}`):e.push(`${t}:${hi(r)}`);if(n.kind==="event-handler"){let t=n;t.body&&t.body.length>0&&e.push(`body:${t.body.map(r=>he(r)).join(" ")}`)}if(n.kind==="conditional"){let t=n;t.thenBranch&&t.thenBranch.length>0&&e.push(`then:${t.thenBranch.map(r=>he(r)).join(" ")}`),t.elseBranch&&t.elseBranch.length>0&&e.push(`else:${t.elseBranch.map(r=>he(r)).join(" ")}`)}if(n.kind==="loop"){let t=n;t.loopVariant&&e.push(`loop-variant:${t.loopVariant}`),t.loopVariable&&e.push(`variable:${t.loopVariable}`),t.indexVariable&&e.push(`index-variable:${t.indexVariable}`),t.body&&t.body.length>0&&e.push(`loop-body:${t.body.map(r=>he(r)).join(" ")}`)}if(n.kind==="command"){let t=n;t.body&&t.body.length>0&&e.push(`body:${t.body.map(r=>he(r)).join(" ")}`),t.catchBranch&&t.catchBranch.length>0&&e.push(`catch:${t.catchBranch.map(r=>he(r)).join(" ")}`),t.finallyBranch&&t.finallyBranch.length>0&&e.push(`finally:${t.finallyBranch.map(r=>he(r)).join(" ")}`),t.asyncVariant&&e.push(`async-variant:${t.asyncVariant}`),t.asyncBody&&t.asyncBody.length>0&&e.push(`async-body:${t.asyncBody.map(r=>he(r)).join(" ")}`)}return`[${e.join(" ")}]`}function hi(n){switch(n.type){case"literal":return typeof n.value=="string"?n.dataType==="string"||/\s/.test(n.value)?`"${n.value}"`:n.value:String(n.value);case"selector":return n.value;case"reference":return n.value;case"property-path":return`${hi(n.object)}'s ${n.property}`;case"expression":return n.raw;case"flag":return n.name}}var pn,fi,ct=z(()=>{"use strict";pn=new Set(["me","you","it","result","event","target","body"]);fi=new Set(["body","then","else","condition","loop-body","variable","catch","finally"])});function Ep(n){return new Tp(n)}function Qe(n,e){return!e||e.length===0||e.includes(n)||e.includes("expression")?!0:n==="property-path"?e.some(t=>["selector","reference","expression"].includes(t)):!1}function Pp(n,e){return n?.possessive?.keywords?.[e]}function zi(n){return!1}function Cp(n){return"setContext"in n&&typeof n.setContext=="function"}function Rp(n){let e={language:n.language,direction:n.direction,lookupKeyword:n.lookupKeyword.bind(n),isKeyword:n.isKeyword.bind(n),isKeywordStart:n.isKeywordStart.bind(n),...n.isKeywordStartAtBoundary?{isKeywordStartAtBoundary:n.isKeywordStartAtBoundary.bind(n)}:{}};return n.normalizer?{...e,normalizer:n.normalizer}:e}function Z(n,e){return{start:n,end:e}}function Y(n,e,t,r){if(typeof n=="object"){let{value:i,kind:o,position:s,normalized:l,stem:c,stemConfidence:p,metadata:m}=n;return{value:i,kind:o,position:s,...l!==void 0&&{normalized:l},...c!==void 0&&{stem:c},...p!==void 0&&{stemConfidence:p},...m!==void 0&&{metadata:m}}}let a=n;if(!e||!t)throw new Error("createToken requires kind and position parameters");if(typeof r=="string")return{value:a,kind:e,position:t,normalized:r};if(r){let{normalized:i,stem:o,stemConfidence:s,metadata:l}=r;return{value:a,kind:e,position:t,...i!==void 0&&{normalized:i},...o!==void 0&&{stem:o},...s!==void 0&&{stemConfidence:s},...l!==void 0&&{metadata:l}}}return{value:a,kind:e,position:t}}function ze(n){return/\s/.test(n)}function Gt(n){return n==="#"||n==="."||n==="["||n==="@"||n==="*"||n==="<"}function Xt(n){return n==='"'||n==="'"||n==="`"||n==="\u300C"||n==="\u300D"}function Ee(n){return/\d/.test(n)}function Zt(n){return/[a-zA-Z]/.test(n)}function ne(n){return/[a-zA-Z0-9_-]/.test(n)}function ki(n,e){if(e>=n.length)return null;let t=n[e];if(!Gt(t))return null;let r=e,a="";if(t==="#"||t==="."){for(a+=n[r++];r<n.length&&ne(n[r]);)a+=n[r++];if(a.length<=1)return null;if(r<n.length&&n[r]==="."&&t==="#"){let o=r+1;for(;o<n.length&&ne(n[o]);)o++;if(o<n.length&&n[o]==="(")return a}}else if(t==="["){let i=1,o=!1,s=null,l=!1;for(a+=n[r++];r<n.length&&i>0;){let c=n[r];a+=c,l?l=!1:c==="\\"?l=!0:o?c===s&&(o=!1,s=null):c==='"'||c==="'"||c==="`"?(o=!0,s=c):c==="["?i++:c==="]"&&i--,r++}if(i!==0)return null}else if(t==="@"){for(a+=n[r++];r<n.length&&ne(n[r]);)a+=n[r++];if(a.length<=1)return null}else if(t==="*"){for(a+=n[r++];r<n.length&&ne(n[r]);)a+=n[r++];if(a.length<=1)return null}else if(t==="<"){if(a+=n[r++],r>=n.length||!Zt(n[r]))return null;for(;r<n.length&&ne(n[r]);)a+=n[r++];for(;r<n.length;){let i=n[r];if(i==="."){if(a+=n[r++],r>=n.length||!ne(n[r]))return null;for(;r<n.length&&ne(n[r]);)a+=n[r++]}else if(i==="#"){if(a+=n[r++],r>=n.length||!ne(n[r]))return null;for(;r<n.length&&ne(n[r]);)a+=n[r++]}else if(i==="["){let o=1,s=!1,l=null,c=!1;for(a+=n[r++];r<n.length&&o>0;){let p=n[r];a+=p,c?c=!1:p==="\\"?c=!0:s?p===l&&(s=!1,l=null):p==='"'||p==="'"||p==="`"?(s=!0,l=p):p==="["?o++:p==="]"&&o--,r++}if(o!==0)return null}else break}for(;r<n.length&&ze(n[r]);)a+=n[r++];if(r<n.length&&n[r]==="/")for(a+=n[r++];r<n.length&&ze(n[r]);)a+=n[r++];if(r>=n.length||n[r]!==">")return null;a+=n[r++]}return a||null}function Np(n,e){if(e>=n.length||n[e]!=="'"||e+1>=n.length||n[e+1].toLowerCase()!=="s")return!1;if(e+2>=n.length)return!0;let r=n[e+2];return ze(r)||r==="*"||!ne(r)}function xi(n,e){if(e>=n.length)return null;let t=n[e];if(!Xt(t)||t==="'"&&Np(n,e))return null;let a={'"':'"',"'":"'","`":"`","\u300C":"\u300D"}[t];if(!a)return null;let i=e+1,o=t,s=!1;for(;i<n.length;){let l=n[i];if(o+=l,s)s=!1;else if(l==="\\")s=!0;else if(l===a)return o;i++}return o}function wi(n,e){if(e>=n.length)return!1;let t=n[e],r=n[e+1]||"",a=n[e+2]||"";if(t==="/"&&r!=="/"&&/[a-zA-Z0-9._-]/.test(r)||t==="/"&&r==="/"&&/[a-zA-Z]/.test(a)||t==="."&&(r==="/"||r==="."&&a==="/"))return!0;let i=n.slice(e,e+8).toLowerCase();return!!(i.startsWith("http://")||i.startsWith("https://"))}function bi(n,e){if(!wi(n,e))return null;let t=e,r="",a=/[a-zA-Z0-9/:._\-?&=%@+~!$'()*,;[\]]/;for(;t<n.length;){let i=n[t];if(i==="#"){if(r.length>0&&/[a-zA-Z0-9/.]$/.test(r))for(r+=i,t++;t<n.length&&/[a-zA-Z0-9_-]/.test(n[t]);)r+=n[t++];break}if(a.test(i))r+=i,t++;else break}return r.length<2?null:r}function Si(n,e){if(e>=n.length)return null;let t=n[e];if(!Ee(t)&&t!=="-"&&t!=="+")return null;let r=e,a="";if((n[r]==="-"||n[r]==="+")&&(a+=n[r++]),r>=n.length||!Ee(n[r]))return null;for(;r<n.length&&Ee(n[r]);)a+=n[r++];if(r<n.length&&n[r]===".")for(a+=n[r++];r<n.length&&Ee(n[r]);)a+=n[r++];return r<n.length&&(n.slice(r,r+2)==="ms"?a+="ms":(n[r]==="s"||n[r]==="m"||n[r]==="h")&&(a+=n[r])),a}function ye(n){return e=>{let t=e.charCodeAt(0);return n.some(([r,a])=>t>=r&&t<=a)}}function V(n){return{stem:n,confidence:1}}function x(n,e,t){return t?{stem:n,confidence:e,metadata:t}:{stem:n,confidence:e}}var Tp,pt,Lp,fx,_,M,ce,Ap,zx,jp,Mp,Ti,R,mn,je=z(()=>{"use strict";ct();ct();ct();ct();Tp=class{constructor(n){this.namespace=n,this.enabled=this.checkEnabled()}checkEnabled(){if(typeof process<"u"&&process.env){let n=process.env.DEBUG||"";return n==="*"||n.includes("framework:*")||n.includes(`framework:${this.namespace}`)}return!1}log(n,e,...t){if(!this.enabled)return;let r=`[framework:${this.namespace}]`,a=new Date().toISOString();switch(n){case"debug":console.debug(`${a} ${r} DEBUG:`,e,...t);break;case"info":console.info(`${a} ${r} INFO:`,e,...t);break;case"warn":console.warn(`${a} ${r} WARN:`,e,...t);break;case"error":console.error(`${a} ${r} ERROR:`,e,...t);break}}debug(n,...e){this.log("debug",n,...e)}info(n,...e){this.log("info",n,...e)}warn(n,...e){this.log("warn",n,...e)}error(n,...e){this.log("error",n,...e)}isEnabled(){return this.enabled}enable(){this.enabled=!0}disable(){this.enabled=!1}};pt=class et{constructor(){this.logger=Ep("pattern-matcher"),this.stemMatchCount=0,this.totalKeywordMatches=0}safeToLowerCase(e){return typeof e=="string"?e.toLowerCase():e==null?"":String(e).toLowerCase()}matchPattern(e,t,r){let a=e.mark(),i=new Map;if(this.logger.debug("========================================"),this.logger.debug("matchPattern ENTRY"),this.logger.debug("Pattern ID:",t.id),this.logger.debug("Pattern command:",t.command),this.logger.debug("Pattern language:",t.language),this.logger.debug("Pattern template:",JSON.stringify(t.template,null,2)),this.logger.isEnabled()){let l=[];for(let c=0;c<10;c++){let p=e.peek(c);if(p)l.push({type:p.type,value:p.value,kind:p.kind});else break}this.logger.debug("Input tokens (first 10):",l),this.logger.debug("Profile code:",r?.code)}this.currentProfile=r,this.stemMatchCount=0,this.totalKeywordMatches=0,this.logger.debug("--- Calling matchTokenSequence ---"),this.logger.debug("Pattern tokens to match:",JSON.stringify(t.template.tokens,null,2));let o=this.matchTokenSequence(e,t.template.tokens,i);if(this.logger.debug("matchTokenSequence returned:",o),this.logger.debug("Captured roles:",Array.from(i.entries()).map(([l,c])=>[l,JSON.stringify(c)])),!o)return this.logger.debug(">>> MATCH FAILED - resetting token position"),e.reset(a),null;let s=this.calculateConfidence(t,i);return this.applyExtractionRules(t,i),{pattern:t,captured:i,consumedTokens:e.position()-a.position,confidence:s}}matchBest(e,t,r){let a=[];for(let o of t){let s=e.mark(),l=this.matchPattern(e,o,r);l&&a.push(l),e.reset(s)}if(a.length===0)return null;a.sort((o,s)=>{let l=s.pattern.priority-o.pattern.priority;if(l!==0)return l;let c=s.confidence-o.confidence;return Math.abs(c)>.001?c:s.consumedTokens-o.consumedTokens});let i=a[0];return this.matchPattern(e,i.pattern),i}matchTokenSequence(e,t,r,a){let i=t[0],o=i?.type==="literal"&&(i.value==="and"||i.value==="then"||i.alternatives?.includes("and")||i.alternatives?.includes("then"));if(this.currentProfile?.code==="ar"&&!o)for(;e.peek()?.kind==="conjunction";)e.advance();let s=null,l=null;for(let c=0;c<t.length;c++){let p=t[c];this.logger.debug(" >> Matching pattern token:",JSON.stringify(p,null,2));let m=e.peek();if(this.logger.debug(" >> Current input token:",m?JSON.stringify({type:m.type,value:m.value,kind:m.kind}):"EOF"),p.type==="role"&&p.greedy){let g=this.collectStopMarkers(t,c+1);if(a)for(let b of a)g.add(b);let v=[];for(;!e.isAtEnd();){let b=e.peek();if(!b||this.isStopMarker(b,g))break;v.push(b.value),e.advance()}if(v.length>0){r.set(p.role,{type:"expression",raw:v.join(" ")}),s=null,l=null;continue}else{if(p.optional)continue;return!1}}if(p.type==="group"){let g=this.collectStopMarkers(t,c+1);if(a)for(let b of a)g.add(b);if(this.matchGroupToken(e,p,r,g)){s=null,l=null;continue}if(this.isOptional(p))continue;return!1}let d=p.type==="role"&&p.optional===!0,u=d?e.mark():null;if(p.type==="role"&&!d){let g=c+1<t.length?t[c+1]:null;if(g?.type==="literal"){let v=e.peek();if(v&&this.getMatchType(v,g.value)!=="none"){if(this.logger.debug(" >> MARKER-STEAL GUARD: current token matches next literal, skipping role"),this.logger.debug(" >> Token match FAILED"),this.isOptional(p))continue;if(s&&l){this.logger.debug(" >> BACKTRACKING: undoing optional role",l),e.reset(s),r.delete(l),s=null,l=null;let b=this.matchPatternToken(e,p,r);if(this.logger.debug(" >> Backtrack retry result:",b),b)continue}return!1}}}let y=this.matchPatternToken(e,p,r);if(this.logger.debug(" >> Match result:",y),y){d?(s=u,l=p.role):(s=null,l=null);continue}if(this.logger.debug(" >> Token match FAILED"),!this.isOptional(p)){if(s&&l){this.logger.debug(" >> BACKTRACKING: undoing optional role",l),e.reset(s),r.delete(l),s=null,l=null;let g=this.matchPatternToken(e,p,r);if(this.logger.debug(" >> Backtrack retry result:",g),g)continue}return!1}}return!0}matchPatternToken(e,t,r){switch(t.type){case"literal":return this.matchLiteralToken(e,t);case"role":return this.matchRoleToken(e,t,r);case"group":return this.matchGroupToken(e,t,r);default:return!1}}matchLiteralToken(e,t){let r=e.peek();if(this.logger.debug(" >>> matchLiteralToken: expecting",t.value),this.logger.debug(" >>> matchLiteralToken: got token",r?JSON.stringify({type:r.type,value:r.value,kind:r.kind}):"null"),!r)return this.logger.debug(" >>> matchLiteralToken: FAIL - no token"),!1;let a=this.getMatchType(r,t.value);if(this.logger.debug(" >>> matchType for",r.value,"vs",t.value,":",a),a!=="none")return this.totalKeywordMatches++,a==="stem"&&this.stemMatchCount++,e.advance(),!0;if(t.alternatives)for(let i of t.alternatives){let o=this.getMatchType(r,i);if(o!=="none")return this.totalKeywordMatches++,o==="stem"&&this.stemMatchCount++,e.advance(),!0}return!1}matchRoleToken(e,t,r){this.logger.debug(" >>> matchRoleToken ENTRY: capturing role",t.role),this.logger.debug(" >>> matchRoleToken: expected types",t.expectedTypes),this.logger.debug(" >>> matchRoleToken: optional?",t.optional),this.skipNoiseWords(e);let a=e.peek();if(this.logger.debug(" >>> After skipNoiseWords, current token:",a?JSON.stringify({value:a.value,kind:a.kind}):"null"),!a)return t.optional||!1;let i=this.tryMatchPossessiveExpression(e);if(i)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(i.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,i),!0);let o=this.tryMatchMethodCallExpression(e);if(o)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(o.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,o),!0);let s=this.tryMatchPossessiveSelectorExpression(e);if(s)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(s.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,s),!0);let l=this.tryMatchPropertyAccessExpression(e);if(l)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(l.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,l),!0);let c=this.tryMatchSelectorPropertyExpression(e);if(c)return t.expectedTypes&&t.expectedTypes.length>0&&!Qe(c.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,c),!0);this.logger.debug(" >>> Trying tokenToSemanticValue for token:",a?JSON.stringify({value:a.value,kind:a.kind}):"null");let p=this.tokenToSemanticValue(a);return this.logger.debug(" >>> tokenToSemanticValue returned:",p?JSON.stringify(p):"null"),p?(this.logger.debug(" >>> Validating type:",p.type,"against expected:",t.expectedTypes),t.expectedTypes&&t.expectedTypes.length>0&&!Qe(p.type,t.expectedTypes)?(this.logger.debug(" >>> TYPE MISMATCH - returning",t.optional||!1),t.optional||!1):(this.logger.debug(" >>> Type validation PASSED"),r.set(t.role,p),e.advance(),!0)):t.optional||!1}tryMatchPossessiveExpression(e){let t=e.peek();if(!t||!this.currentProfile)return null;let r=t.normalized||t.value,a=this.safeToLowerCase(r),i=Pp(this.currentProfile,a);if(!i)return null;let o=e.mark();e.advance();let s=e.peek();if(!s)return e.reset(o),null;if(s.kind==="identifier"||s.kind==="keyword"&&!this.isStructuralKeyword(s.value)||s.kind==="selector"&&s.value.startsWith("*")||s.kind==="selector"&&s.value.startsWith("@")||s.kind==="selector"&&s.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(s.value)){e.advance();let l=s.value;s.kind==="selector"&&l.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(l)&&(l=l.substring(1));let c=l;for(;e.peek()?.kind==="selector"&&e.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(e.peek().value);)c+=e.peek().value,e.advance();let p=e.peek();return p?.kind==="literal"&&p.value.startsWith("(")&&(c+=p.value,e.advance()),Ft(Je(i),c)}return e.reset(o),null}isStructuralKeyword(e){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(e.toLowerCase())}tryMatchMethodCallExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="operator"||a.value!==".")return e.reset(r),null;e.advance();let i=e.peek();if(!i||i.kind!=="identifier")return e.reset(r),null;e.advance();let o=e.peek();if(!o||o.kind!=="punctuation"||o.value!=="(")return e.reset(r),null;e.advance();let s=[];for(;!e.isAtEnd()&&s.length<et.MAX_METHOD_ARGS;){let c=e.peek();if(!c)break;if(c.kind==="punctuation"&&c.value===")"){e.advance();break}if(c.kind==="punctuation"&&c.value===","){e.advance();continue}s.push(c.value),e.advance()}return{type:"expression",raw:`${t.value}.${i.value}(${s.join(", ")})`}}tryMatchPropertyAccessExpression(e){let t=e.peek();if(!t||t.kind!=="identifier"&&t.kind!=="keyword")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="operator"||a.value!==".")return e.reset(r),null;e.advance();let i=e.peek();if(!i||i.kind!=="identifier")return e.reset(r),null;e.advance();let o=`${t.value}.${i.value}`,s=1;for(;!e.isAtEnd()&&s<et.MAX_PROPERTY_DEPTH;){let c=e.peek();if(!c||c.kind!=="operator"||c.value!==".")break;e.advance();let p=e.peek();if(!p||p.kind!=="identifier")break;e.advance(),o+=`.${p.value}`,s++}let l=e.peek();if(l&&l.kind==="punctuation"&&l.value==="("){e.advance();let c=[],p=0;for(;!e.isAtEnd()&&c.length<et.MAX_METHOD_ARGS;){let d=e.peek();if(!d)break;if(d.kind==="punctuation"&&d.value===")"){if(p===0){e.advance();break}p--}if(d.kind==="punctuation"&&d.value==="("&&p++,d.kind==="punctuation"&&d.value===","){e.advance();continue}c.push(d.value),e.advance()}return{type:"expression",raw:`${o}(${c.join(", ")})`}}return{type:"expression",raw:o}}tryMatchPossessiveSelectorExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="punctuation"||a.value!=="'s")return e.reset(r),null;e.advance();let i=e.peek();return!i||i.kind!=="selector"&&i.kind!=="identifier"?(e.reset(r),null):(e.advance(),Ft(lt(t.value),i.value))}tryMatchSelectorPropertyExpression(e){let t=e.peek();if(!t||t.kind!=="selector"||typeof t.value!="string"||!t.value.startsWith("#"))return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="selector"||!a.value.startsWith("."))return e.reset(r),null;let i=e.peek(1);i&&i.kind,e.advance();let o=a.value.slice(1);return Ft(lt(t.value),o)}matchGroupToken(e,t,r,a){let i=e.mark(),o=new Set(r.keys());if(this.matchTokenSequence(e,t.tokens,r,a))return!0;e.reset(i);for(let c of r.keys())o.has(c)||r.delete(c);if(!t.optional)return!1;let l=this.getGroupLeadingMarker(t);if(l)for(let c=1;c<=et.MAX_MARKER_SCAN;c++){let p=e.peek(c);if(!p)break;if((p.normalized||p.value).toLowerCase()===l){this.logger.debug(" >> MARKER SCAN: found",l,"at offset",c,"- skipping intervening tokens");for(let u=0;u<c;u++)e.advance();if(this.matchTokenSequence(e,t.tokens,r,a))return!0;e.reset(i);for(let u of r.keys())o.has(u)||r.delete(u);break}}return!0}getGroupLeadingMarker(e){let t=e.tokens[0];return t?.type==="literal"?t.value.toLowerCase():null}getMatchType(e,t){return e.value===t?"exact":e.normalized===t?"normalized":e.stem===t&&e.stemConfidence!==void 0&&e.stemConfidence>=.7?"stem":e.kind==="keyword"&&this.safeToLowerCase(e.value)===t.toLowerCase()?"case-insensitive":"none"}collectStopMarkers(e,t){let r=new Set;for(let a=t;a<e.length;a++){let i=e[a];if(i.type==="literal"){if(r.add(i.value.toLowerCase()),i.alternatives)for(let o of i.alternatives)r.add(o.toLowerCase());break}if(i.type==="group"){for(let o of i.tokens)if(o.type==="literal"){if(r.add(o.value.toLowerCase()),o.alternatives)for(let s of o.alternatives)r.add(s.toLowerCase());break}if(!i.optional)break}}return r}isStopMarker(e,t){return t.size===0?!1:!!(t.has(e.value.toLowerCase())||e.normalized&&t.has(e.normalized.toLowerCase()))}tokenToSemanticValue(e){switch(e.kind){case"selector":return lt(e.value);case"literal":return this.parseLiteralValue(e.value);case"keyword":let t=e.normalized||e.value,r=this.safeToLowerCase(t);return zi(r)?Je(r):se(e.normalized||e.value);case"identifier":if(typeof e.value=="string"&&e.value.startsWith(":"))return Je(e.value);let a=this.safeToLowerCase(e.value);return zi(a)?Je(a):{type:"expression",raw:e.value};case"url":return se(e.value,"string");default:return null}}parseLiteralValue(e){if(e.startsWith('"')||e.startsWith("'")||e.startsWith("`")||e.startsWith("\u300C")){let a=e.slice(1,-1);return se(a,"string")}if(e==="true")return se(!0,"boolean");if(e==="false")return se(!1,"boolean");let t=e.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(t){let a=parseFloat(t[1]);return t[2]?se(e,"duration"):se(a,"number")}let r=parseFloat(e);return isNaN(r)?se(e,"string"):se(r,"number")}applyExtractionRules(e,t){for(let[r,a]of Object.entries(e.extraction))t.has(r)||(a.value!==void 0?t.set(r,{type:"literal",value:a.value}):a.default&&t.set(r,a.default))}isOptional(e){return e.type!=="literal"&&e.optional===!0}calculateConfidence(e,t){let r=0,a=0,i=c=>e.extraction?.[c]?.default!==void 0;for(let c of e.template.tokens)if(c.type==="role")a+=1,t.has(c.role)&&(r+=1);else if(c.type==="group"){for(let p of c.tokens)if(p.type==="role"){let m=i(p.role),d=.8;a+=d,t.has(p.role)?r+=d:m&&(r+=d*.6)}}let o=a>0?r/a:1;if(this.stemMatchCount>0&&this.totalKeywordMatches>0){let c=this.stemMatchCount/this.totalKeywordMatches*.15;o=Math.max(.5,o-c)}let s=this.calculateVSOConfidenceBoost(e);o=Math.min(1,o+s);let l=this.arabicPrepositionDisambiguation(e,t);return o=Math.max(0,Math.min(1,o+l)),o}calculateVSOConfidenceBoost(e){if(e.language!=="ar")return 0;let t=e.template.tokens[0];if(!t||t.type!=="literal")return 0;let r=new Set(["\u0628\u062F\u0644","\u063A\u064A\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062C\u0639\u0644","\u0639\u064A\u0646","\u0632\u062F","\u0627\u0646\u0642\u0635","\u0633\u062C\u0644","\u0623\u0638\u0647\u0631","\u0623\u062E\u0641","\u0634\u063A\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062A\u0648\u0642\u0641","\u0627\u0646\u0633\u062E","\u0627\u062D\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062A\u0638\u0631","\u0627\u0646\u062A\u0642\u0627\u0644","\u0623\u0648"]);if(r.has(t.value))return .15;if(t.alternatives){for(let a of t.alternatives)if(r.has(a))return .15}return 0}arabicPrepositionDisambiguation(e,t){if(e.language!=="ar")return 0;let r=0,a={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]};for(let[i,o]of t.entries()){let s=a[i];if(!s||s.length===0)continue;let l="metadata"in o?o.metadata:void 0;if(l&&typeof l.prepositionValue=="string"){let c=l.prepositionValue;s.includes(c)?r+=.1:r-=.1}}return Math.max(-.1,Math.min(.1,r))}skipNoiseWords(e){let t=e.peek();if(!t)return;let r=this.safeToLowerCase(t.value);if(et.ENGLISH_NOISE_WORDS.has(r)){let a=e.mark();e.advance();let i=e.peek();if(i&&i.kind==="selector")return;e.reset(a)}r==="class"&&e.advance()}extractEventModifiers(e){let t={},r=!1;for(;!e.isAtEnd();){let a=e.peek();if(!a||a.kind!=="event-modifier")break;let i=a.metadata;if(!i)break;switch(r=!0,i.modifierName){case"once":t.once=!0;break;case"debounce":typeof i.value=="number"&&(t.debounce=i.value);break;case"throttle":typeof i.value=="number"&&(t.throttle=i.value);break;case"queue":(i.value==="first"||i.value==="last"||i.value==="all"||i.value==="none")&&(t.queue=i.value);break}e.advance()}return r?t:void 0}};pt.MAX_MARKER_SCAN=3;pt.MAX_PROPERTY_DEPTH=10;pt.MAX_METHOD_ARGS=20;pt.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]);Lp=pt,fx=new Lp,_=class{constructor(){this.name="string-literal"}canExtract(n,e){let t=n[e];return t==='"'||t==="'"||t==="`"||t==="\u201C"||t==="\u2018"}extract(n,e){let t=n[e];if(t==="\u201C"){let i=1;for(;e+i<n.length;){if(n[e+i]==="\u201D")return i++,{value:n.substring(e,e+i),length:i};i++}return null}if(t==="\u2018"){let i=1;for(;e+i<n.length;){if(n[e+i]==="\u2019")return i++,{value:n.substring(e,e+i),length:i};i++}return null}let r=1,a=!1;for(;e+r<n.length;){let i=n[e+r];if(a){a=!1,r++;continue}if(i==="\\"){a=!0,r++;continue}if(i===t)return r++,{value:n.substring(e,e+r),length:r};r++}return null}},M=class{constructor(){this.name="number"}canExtract(n,e){return/\d/.test(n[e])}extract(n,e){let t=0,r=!1;for(;e+t<n.length;){let o=n[e+t];if(/\d/.test(o))t++;else if(o==="."&&!r)r=!0,t++;else break}if(t===0)return null;let a=n.substring(e,e+t),i=e+t;if(i<n.length){let o=n.slice(i),s=[{pattern:"\u6BEB\u79D2",suffix:"ms"},{pattern:"\u5206\u949F",suffix:"m"},{pattern:"\u5C0F\u65F6",suffix:"h"},{pattern:"\u30DF\u30EA\u79D2",suffix:"ms"},{pattern:"\u6642\u9593",suffix:"h"}];for(let c of s)if(o.startsWith(c.pattern))return{value:a+c.suffix,length:t+c.pattern.length,metadata:{hasTimeUnit:!0}};if(o.startsWith("ms"))return{value:a+"ms",length:t+2,metadata:{hasTimeUnit:!0}};let l=[{pattern:"\u79D2",suffix:"s"},{pattern:"\u5206",suffix:"m"}];for(let c of l)if(o.startsWith(c.pattern))return{value:a+c.suffix,length:t+1,metadata:{hasTimeUnit:!0}};if(/^[smh](?![a-zA-Z])/.test(o))return{value:a+o[0],length:t+1,metadata:{hasTimeUnit:!0}}}return{value:a,length:t}}};ce=class{constructor(n,e){this.pos=0,this.tokens=n,this.language=e}peek(n=0){let e=this.pos+n;return e<0||e>=this.tokens.length?null:this.tokens[e]}advance(){if(this.isAtEnd())throw new Error("Unexpected end of token stream");return this.tokens[this.pos++]}isAtEnd(){return this.pos>=this.tokens.length}mark(){return{position:this.pos}}reset(n){this.pos=n.position}position(){return this.pos}remaining(){return this.tokens.slice(this.pos)}takeWhile(n){let e=[];for(;!this.isAtEnd()&&n(this.peek());)e.push(this.advance());return e}skipWhile(n){for(;!this.isAtEnd()&&n(this.peek());)this.advance()}};Ap=["===","!==","->","==","!=","<=",">=","&&","||","**","+=","-=","*=","/=","+","-","*","/","=",">","<","!","&","|","%","^","~"],zx=new Set(Ap),jp=new Set(["patient","destination","source","style","event","eventMarker","agent","goal","manner","into","from","to","with","at","of","as","by","in","on","over","under","between","through","without"]),Mp=["click","dblclick","input","change","submit","keydown","keyup","keypress","mousedown","mouseup","mouseover","mouseout","mouseenter","mouseleave","mousemove","pointerdown","pointerup","pointermove","focus","blur","load","resize","scroll"],Ti=class Ei{constructor(){this.profileKeywords=[],this.multiWordKeywords=[],this.profileKeywordMap=new Map,this.rawExtraEntries=[],this.extractors=[]}getExtraKeywordEntries(){return this.rawExtraEntries}tokenize(e){if(this.isUsingExtractors())return this.tokenizeWithExtractors(e);throw new Error(`${this.constructor.name}: tokenize() not implemented and no extractors registered. Either register extractors or override tokenize() method.`)}registerExtractor(e){Cp(e)&&e.setContext(Rp(this)),this.extractors.push(e)}registerExtractors(e){for(let t of e)this.registerExtractor(t)}clearExtractors(){this.extractors=[]}isUsingExtractors(){return this.extractors.length>0}tokenizeWithExtractors(e){let t=[],r=0;for(;r<e.length;){for(;r<e.length&&ze(e[r]);)r++;if(r>=e.length)break;let a=this.tryMultiWordKeyword(e,r);if(a){t.push(a),r=a.position.end;continue}let i=!1;for(let o of this.extractors)if(o.canExtract(e,r)){let s=o.extract(e,r);if(s){let l=s.metadata?.normalized,c=s.metadata?.stem,p=s.metadata?.stemConfidence,m={};if(s.metadata)for(let[u,f]of Object.entries(s.metadata))u!=="normalized"&&u!=="stem"&&u!=="stemConfidence"&&(m[u]=f);let d={};l&&(d.normalized=l),c&&(d.stem=c),p!==void 0&&(d.stemConfidence=p),Object.keys(m).length>0&&(d.metadata=m),t.push(Y(s.value,this.classifyToken(s.value),Z(r,r+s.length),Object.keys(d).length>0?d:void 0)),r+=s.length,i=!0;break}}if(!i){let o=e[r],s=this.classifyUnknownChar(o);t.push(Y(o,s,Z(r,r+1))),r++}}return new ce(t,this.language)}classifyUnknownChar(e){return"()[]{},:;".includes(e)?"punctuation":"+-*/<>=!&|".includes(e)?"operator":"identifier"}tryPropertyAccess(e,t,r){if(e[t]!==".")return!1;let a=r[r.length-1],i=a&&a.position.end<t;if(a&&!i&&(a.kind==="identifier"||a.kind==="keyword"||a.kind==="selector"))return r.push(Y(".","operator",Z(t,t+1))),!0;let l=t+1;for(;l<e.length&&ne(e[l]);)l++;return l<e.length&&e[l]==="("?(r.push(Y(".","operator",Z(t,t+1))),!0):!1}initializeKeywordsFromProfile(e,t=[]){let r=new Map;if(this.rawExtraEntries=t,e.keywords){for(let[a,i]of Object.entries(e.keywords))if(r.set(i.primary,{native:i.primary,normalized:i.normalized||a}),i.alternatives)for(let o of i.alternatives)r.set(o,{native:o,normalized:i.normalized||a})}if(e.references){for(let[a,i]of Object.entries(e.references))r.set(i,{native:i,normalized:a});for(let a of Object.keys(e.references))r.has(a)||r.set(a,{native:a,normalized:a})}if(e.roleMarkers){for(let[a,i]of Object.entries(e.roleMarkers))if(i.primary&&r.set(i.primary,{native:i.primary,normalized:a}),i.alternatives)for(let o of i.alternatives)r.set(o,{native:o,normalized:a})}if(e.possessive?.keywords)for(let[a,i]of Object.entries(e.possessive.keywords))r.set(a,{native:a,normalized:i});for(let a of Mp)r.has(a)||r.set(a,{native:a,normalized:a});for(let a of t)r.set(a.native,a);this.profileKeywords=Array.from(r.values()).sort((a,i)=>i.native.length-a.native.length),this.multiWordKeywords=this.profileKeywords.filter(a=>a.native.includes(" ")&&!jp.has(a.normalized)),this.profileKeywordMap=new Map;for(let a of this.profileKeywords){this.profileKeywordMap.set(a.native.toLowerCase(),a);let i=this.removeDiacritics(a.native);i!==a.native&&!this.profileKeywordMap.has(i.toLowerCase())&&this.profileKeywordMap.set(i.toLowerCase(),a)}}removeDiacritics(e){return e.replace(/[\u064B-\u0652\u0670]/g,"")}tryProfileKeyword(e,t){for(let r of this.profileKeywords)if(e.slice(t).startsWith(r.native))return Y(r.native,"keyword",Z(t,t+r.native.length),r.normalized);return null}tryMultiWordKeyword(e,t,r=a=>/[\p{L}\p{N}_]/u.test(a)){if(this.multiWordKeywords.length===0)return null;let a=e.slice(t);for(let i of this.multiWordKeywords){if(!a.startsWith(i.native))continue;let o=e[t+i.native.length];if(!(o!==void 0&&r(o)))return Y(i.native,"keyword",Z(t,t+i.native.length),i.normalized)}return null}isKeywordStart(e,t){let r=e.slice(t);return this.profileKeywords.some(a=>r.startsWith(a.native))}isKeywordStartAtBoundary(e,t,r=a=>/[\p{L}\p{N}_]/u.test(a)){let a=e.slice(t);return this.profileKeywords.some(i=>{if(!a.startsWith(i.native))return!1;let o=e[t+i.native.length];return o===void 0||!r(o)})}lookupKeyword(e){return this.profileKeywordMap.get(e.toLowerCase())}isKeyword(e){return this.profileKeywordMap.has(e.toLowerCase())}setNormalizer(e){this.normalizer=e}tryNormalize(e){if(!this.normalizer)return null;let t=this.normalizer.normalize(e);return t.stem!==e&&t.confidence>=.7?t:null}tryMorphKeywordMatch(e,t,r){let a=this.tryNormalize(e);if(!a)return null;let i=this.lookupKeyword(a.stem);if(!i)return null;let o={normalized:i.normalized,stem:a.stem,stemConfidence:a.confidence};return Y(e,"keyword",Z(t,r),o)}trySelector(e,t){let r=ki(e,t);return r?Y(r,"selector",Z(t,t+r.length)):null}tryEventModifier(e,t){if(e[t]!==".")return null;let r=e.slice(t).match(/^\.(?:once|debounce|throttle|queue)(?:\(([^)]+)\))?(?:\s|$|\.)/);if(!r)return null;let a=r[0].replace(/(\s|\.)$/,""),i=a.slice(1).split("(")[0],o=r[1];return{...Y(a,"event-modifier",Z(t,t+a.length)),metadata:{modifierName:i,value:o?i==="queue"?o:parseInt(o,10):void 0}}}tryString(e,t){let r=xi(e,t);return r?Y(r,"literal",Z(t,t+r.length)):null}tryNumber(e,t){let r=Si(e,t);return r?Y(r,"literal",Z(t,t+r.length)):null}tryMatchTimeUnit(e,t,r,a=!1){let i=t;if(a)for(;i<e.length&&ze(e[i]);)i++;let o=e.slice(i);for(let s of r){let l=o.slice(0,s.length);if(s.caseInsensitive?l.toLowerCase()===s.pattern.toLowerCase():l===s.pattern){if(s.notFollowedBy&&(o[s.length]||"")===s.notFollowedBy)continue;if(s.checkBoundary){let p=o[s.length]||"";if(ne(p))continue}return{suffix:s.suffix,endPos:i+s.length}}}return null}parseBaseNumber(e,t,r=!0){let a=t,i="";if(r&&(e[a]==="-"||e[a]==="+")&&(i+=e[a++]),a>=e.length||!Ee(e[a]))return null;for(;a<e.length&&Ee(e[a]);)i+=e[a++];if(a<e.length&&e[a]===".")for(i+=e[a++];a<e.length&&Ee(e[a]);)i+=e[a++];return!i||i==="-"||i==="+"?null:{number:i,endPos:a}}tryNumberWithTimeUnits(e,t,r,a={}){let{allowSign:i=!0,skipWhitespace:o=!1}=a,s=this.parseBaseNumber(e,t,i);if(!s)return null;let{number:l,endPos:c}=s,p=[...r,...Ei.STANDARD_TIME_UNITS],m=this.tryMatchTimeUnit(e,c,p,o);return m&&(l+=m.suffix,c=m.endPos),Y(l,"literal",Z(t,c))}tryUrl(e,t){let r=bi(e,t);return r?Y(r,"url",Z(t,t+r.length)):null}tryVariableRef(e,t){if(e[t]!==":"||t+1>=e.length||!ne(e[t+1]))return null;let r=t+1;for(;r<e.length&&ne(e[r]);)r++;let a=e.slice(t,r);return Y(a,"identifier",Z(t,r))}tryOperator(e,t){let r=e.slice(t,t+2);if(["==","!=","<=",">=","&&","||","->"].includes(r))return Y(r,"operator",Z(t,t+2));let a=e[t];return["<",">","!","+","-","*","/","="].includes(a)?Y(a,"operator",Z(t,t+1)):["(",")","{","}",",",";",":"].includes(a)?Y(a,"punctuation",Z(t,t+1)):null}tryMultiCharParticle(e,t,r){for(let a of r)if(e.slice(t,t+a.length)===a)return Y(a,"particle",Z(t,t+a.length));return null}};Ti.STANDARD_TIME_UNITS=[{pattern:"ms",suffix:"ms",length:2},{pattern:"s",suffix:"s",length:1,checkBoundary:!0},{pattern:"m",suffix:"m",length:1,checkBoundary:!0,notFollowedBy:"s"},{pattern:"h",suffix:"h",length:1,checkBoundary:!0}];R=Ti;mn=class{constructor(n){this.language=n.language,this.config={minWordLength:3,minStemLength:2,...n}}normalize(n){let e=n.toLowerCase();if(this.isAlreadyNormalized(e))return V(n);if(this.config.reflexiveSuffixes){let t=this.tryReflexiveNormalization(e);if(t)return t}if(this.config.endings){let t=this.tryConjugationEndings(e);if(t)return t}if(this.config.suffixRules){let t=this.trySuffixRules(e);if(t)return t}if(this.config.prefixRules){let t=this.tryPrefixRules(e);if(t)return t}return V(n)}isAlreadyNormalized(n){return this.config.infinitiveEndings?this.config.infinitiveEndings.some(e=>n.endsWith(e)):!1}tryReflexiveNormalization(n){let e=this.config.reflexiveSuffixes;if(!e)return null;for(let t of e){if(!n.endsWith(t))continue;let r=n.slice(0,-t.length);if(this.isAlreadyNormalized(r))return x(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let a=this.tryConjugationEndings(r)||this.trySuffixRules(r);if(a&&a.stem!==r)return x(a.stem,a.confidence*.95,{removedSuffixes:[t,...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationEndings(n){let e=this.config.endings;if(!e)return null;let t=this.config.minStemLength??2;for(let r of e){if(!n.endsWith(r.ending))continue;let a=n.slice(0,-r.ending.length);if(a.length<t)continue;let i=a+r.stem;return x(i,r.confidence,{removedSuffixes:[r.ending],conjugationType:r.type})}return null}trySuffixRules(n){let e=this.config.suffixRules;if(!e)return null;let t=this.config.minStemLength??2;for(let r of e){if(!n.endsWith(r.pattern))continue;let a=n.slice(0,-r.pattern.length),i=r.minStemLength??t;if(a.length<i)continue;let o=a+(r.replacement||"");return x(o,r.confidence,{removedSuffixes:[r.pattern],...r.conjugationType&&{conjugationType:r.conjugationType}})}return null}tryPrefixRules(n){let e=this.config.prefixRules;if(!e)return null;for(let t of e){if(!n.startsWith(t.pattern))continue;let r=n.slice(t.pattern.length),a=t.minRemaining??this.config.minStemLength??2;if(!(r.length<a))return x(r,1-t.confidencePenalty,{removedPrefixes:[t.pattern]})}return null}}});var Pi=z(()=>{"use strict";je()});var Ri=z(()=>{"use strict";je()});var Ni=z(()=>{"use strict";je()});var D=z(()=>{"use strict";Pi();Ri();Ni()});var Ai={};N(Ai,{englishProfile:()=>mt});var mt,Yt=z(()=>{"use strict";mt={code:"en",name:"English",nativeName:"English",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!1},references:{me:"me",it:"it",you:"you",result:"result",event:"event",target:"target",body:"body"},possessive:{marker:"'s",markerPosition:"after-object",specialForms:{me:"my",it:"its",you:"your"},keywords:{my:"me",your:"you",its:"it"}},roleMarkers:{destination:{primary:"on",alternatives:["to","from"],position:"before"},source:{primary:"from",position:"before"},patient:{primary:"",position:"before"},style:{primary:"with",alternatives:["by","using"],position:"before"},responseType:{primary:"as",position:"before"},method:{primary:"via",alternatives:["using"],position:"before"}},keywords:{toggle:{primary:"toggle"},add:{primary:"add"},remove:{primary:"remove"},put:{primary:"put"},append:{primary:"append"},prepend:{primary:"prepend"},take:{primary:"take"},make:{primary:"make"},clone:{primary:"clone"},swap:{primary:"swap"},morph:{primary:"morph"},set:{primary:"set"},get:{primary:"get"},increment:{primary:"increment"},decrement:{primary:"decrement"},log:{primary:"log"},show:{primary:"show"},hide:{primary:"hide"},transition:{primary:"transition"},on:{primary:"on"},trigger:{primary:"trigger"},send:{primary:"send"},focus:{primary:"focus"},blur:{primary:"blur"},empty:{primary:"empty",normalized:"empty"},open:{primary:"open",normalized:"open"},close:{primary:"close",normalized:"close"},select:{primary:"select",normalized:"select"},clear:{primary:"clear",normalized:"clear"},reset:{primary:"reset",normalized:"reset"},breakpoint:{primary:"breakpoint",normalized:"breakpoint"},go:{primary:"go"},scroll:{primary:"scroll",normalized:"scroll"},push:{primary:"push",normalized:"push"},replace:{primary:"replace",normalized:"replace"},process:{primary:"process",normalized:"process"},wait:{primary:"wait"},fetch:{primary:"fetch"},settle:{primary:"settle"},if:{primary:"if"},when:{primary:"when",normalized:"when"},where:{primary:"where",normalized:"where"},else:{primary:"else"},repeat:{primary:"repeat"},for:{primary:"for"},while:{primary:"while"},continue:{primary:"continue"},halt:{primary:"halt"},throw:{primary:"throw"},call:{primary:"call"},return:{primary:"return"},then:{primary:"then"},and:{primary:"and"},end:{primary:"end"},js:{primary:"js"},async:{primary:"async"},tell:{primary:"tell"},default:{primary:"default"},init:{primary:"init"},behavior:{primary:"behavior"},install:{primary:"install"},measure:{primary:"measure"},beep:{primary:"beep"},break:{primary:"break"},copy:{primary:"copy"},exit:{primary:"exit"},pick:{primary:"pick"},render:{primary:"render"},into:{primary:"into"},before:{primary:"before"},after:{primary:"after"},until:{primary:"until"},event:{primary:"event"},from:{primary:"from"},connect:{primary:"connect",normalized:"connect"},stream:{primary:"stream",normalized:"stream"},live:{primary:"live",normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"bind",normalized:"bind"},eventsource:{primary:"eventsource",normalized:"eventsource"},worker:{primary:"worker",normalized:"worker"},intercept:{primary:"intercept",normalized:"intercept"}}}});var Op,A,Wp,j,G=z(()=>{"use strict";je();Op=["===","!==","->","==","!=","<=",">=","&&","||","**","+=","-=","*=","/=","+","-","*","/","=",">","<","!","&","|","%","^","~"],A=class{constructor(e=Op){this.name="operator";this.operators=[...e].sort((t,r)=>r.length-t.length)}canExtract(e,t){return this.operators.some(r=>e.startsWith(r,t))}extract(e,t){for(let r of this.operators)if(e.startsWith(r,t))return{value:r,length:r.length};return null}},Wp="()[]{},:;",j=class{constructor(e=Wp){this.punctuation=e;this.name="punctuation"}canExtract(e,t){return this.punctuation.includes(e[t])}extract(e,t){let r=e[t];return this.punctuation.includes(r)?{value:r,length:1}:null}}});function dn(n,e){let t=n[e];if(t==="#"){let r=n.slice(e).match(/^#[a-zA-Z_][\w-]*/);return r?r[0]:null}if(t==="."){let r=n.slice(e).match(/^\.\{[a-zA-Z_$][\w$]*\}/);if(r)return r[0];let a=n.slice(e).match(/^\.[a-zA-Z_][\w-]*/);return a?a[0]:null}if(t==="@"){let r=n.slice(e).match(/^@[a-zA-Z_][\w-]*/);return r?r[0]:null}if(t==="*"){let r=n.slice(e).match(/^\*(?:--)?[a-zA-Z_][\w-]*/);return r?r[0]:null}if(t==="["){let r=0,a=e;for(;a<n.length;){if(n[a]==="["&&r++,n[a]==="]"&&(r--,r===0))return n.slice(e,a+1);a++}return null}if(t==="<"){let r=n.slice(e).match(/^<(?=[\w.#[])[\w-]*(?:[#.][\w-]+|\[[^\]]+\])*\s*\/>/);return r?r[0]:null}return null}var dt,ji=z(()=>{"use strict";dt=class{constructor(){this.name="css-selector"}canExtract(e,t){let r=e[t];return r==="#"||r==="."||r==="["||r==="<"?!0:r==="@"||r==="*"?dn(e,t)!==null:!1}extract(e,t){let r=dn(e,t);return r?{value:r,length:r.length,metadata:{type:"css-selector"}}:null}}});var ut,Mi=z(()=>{"use strict";ut=class{constructor(){this.name="event-modifier"}canExtract(e,t){if(e[t]!==".")return!1;let r=e.slice(t);return/^\.(once|prevent|stop|debounce|throttle|queue)/.test(r)}extract(e,t){let r=e.slice(t).match(/^\.(?:once|prevent|stop|debounce|throttle|queue)(?:\(([^)]+)\))?/);if(!r)return null;let a=r[0],i=a.slice(1).split("(")[0],o=r[1];return{value:a,length:a.length,metadata:{modifierName:i,value:o?i==="queue"?o:parseInt(o,10):void 0}}}}});function Oi(n,e){let t=n.slice(e);if(t.startsWith("http://")||t.startsWith("https://")){let r=t.match(/^https?:\/\/[^\s]*/);return r?r[0]:null}if(t.startsWith("//")){let r=t.match(/^\/\/[^\s]*/);return r?r[0]:null}if(t.startsWith("./")||t.startsWith("../")){let r=t.match(/^\.\.?\/[^\s]*/);return r?r[0]:null}if(t.startsWith("/")){let r=t.match(/^\/[^\s]*/);return r?r[0]:null}return null}var ft,Wi=z(()=>{"use strict";ft=class{constructor(){this.name="url"}canExtract(e,t){let r=e.slice(t);return r.startsWith("http://")||r.startsWith("https://")||r.startsWith("//")||r.startsWith("./")||r.startsWith("../")||r.startsWith("/")}extract(e,t){let r=Oi(e,t);return r?{value:r,length:r.length,metadata:{type:"url"}}:null}}});var yt,Ii=z(()=>{"use strict";yt=class{constructor(){this.name="variable-ref"}canExtract(e,t){let r=e[t];return(r===":"||r==="$"||r==="^")&&t+1<e.length&&/[a-zA-Z_]/.test(e[t+1])}extract(e,t){if(!this.canExtract(e,t))return null;let r=1;for(;t+r<e.length&&/[a-zA-Z0-9_]/.test(e[t+r]);)r++;return{value:e.substring(t,t+r),length:r,metadata:{type:"variable-reference"}}}}});function Ip(n){let e=n.charCodeAt(0);return e>=12352&&e<=12447}function Vp(n){let e=n.charCodeAt(0);return e>=12448&&e<=12543}function _p(n){let e=n.charCodeAt(0);return e>=19968&&e<=40879||e>=13312&&e<=19903}function Vi(n){return Ip(n)||Vp(n)||_p(n)}var Jt,_i=z(()=>{"use strict";Jt=class{constructor(){this.name="japanese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Vi(e[t])}extract(e,t){if(!this.context)throw new Error("JapaneseKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let a="",i=t;for(;i<e.length&&Vi(e[i]);)a+=e[i],i++;let o=a,s=a.length;for(let m=a.length;m>0;m--){let d=a.substring(0,m);if(this.context.lookupKeyword(d)){o=d,s=m;break}}if(a=o,i=t+s,!a)return null;let l=this.context.lookupKeyword(a),c=l&&l.normalized!==l.native?l.normalized:void 0,p;if(!l&&this.context.normalizer){let m=this.context.normalizer.normalize(a);if(m.stem!==a&&m.confidence>=.7){let d=this.context.lookupKeyword(m.stem);d&&(p=d.normalized)}}return{value:a,length:i-r,metadata:{normalized:c||p}}}}});var qi,Ki,Qt,$i=z(()=>{"use strict";qi=new Map([["\u3092",{role:"patient",confidence:.95}],["\u306B",{role:"destination",confidence:.85}],["\u304C",{role:"subject",confidence:.9}],["\u306E",{role:"possessive",confidence:.9}],["\u3068",{role:"conjunction",confidence:.8}],["\u3067",{role:"instrument",confidence:.85}],["\u3078",{role:"direction",confidence:.85}],["\u3084",{role:"listing",confidence:.8}],["\u304B",{role:"question",confidence:.85}],["\u3082",{role:"also",confidence:.85}],["\u306F",{role:"topic",confidence:.9}]]),Ki=new Map([["\u304B\u3089",{role:"source",confidence:.95}],["\u307E\u3067",{role:"until",confidence:.95}],["\u3088\u308A",{role:"comparison",confidence:.9}],["\u3068\u3057\u3066",{role:"as",confidence:.9}],["\u306B\u3064\u3044\u3066",{role:"about",confidence:.9}],["\u306B\u3088\u3063\u3066",{role:"by-means",confidence:.9}],["\u306B\u3066",{role:"at-location",confidence:.85}]]),Qt=class{constructor(){this.name="japanese-particle"}setContext(e){this._context=e}longerKeywordStartsHere(e,t){if(!this._context)return!1;for(let r=4;r>=2;r--){let a=e.slice(t,t+r);if(a.length===r&&this._context.isKeyword(a))return!0}return!1}canExtract(e,t){let r=e[t];if(qi.has(r)&&!this.longerKeywordStartsHere(e,t))return!0;for(let[a]of Ki)if(e.startsWith(a,t))return!0;return!1}extract(e,t){for(let[i,o]of Ki)if(e.startsWith(i,t))return{value:i,length:i.length,metadata:{role:o.role,confidence:o.confidence,variant:i}};let r=e[t];if(this.longerKeywordStartsHere(e,t))return null;let a=qi.get(r);return a?{value:r,length:1,metadata:{role:a.role,confidence:a.confidence,variant:r}}:null}}});function qp(n){let e=n.charCodeAt(0);return e>=44032&&e<=55203}function Kp(n){let e=n.charCodeAt(0);return e>=4352&&e<=4607||e>=12592&&e<=12687}function un(n){return qp(n)||Kp(n)}var $p,er,Bi=z(()=>{"use strict";$p=["\uD560\uB54C","\uD558\uBA74","\uD558\uB2C8\uAE4C","\uD560 \uB54C"],er=class{constructor(){this.name="korean-keyword"}setContext(e){this.context=e}canExtract(e,t){return un(e[t])}extract(e,t){if(!this.context)throw new Error("KoreanKeywordExtractor: context not set");let r=t,a=6;for(let d=Math.min(a,e.length-r);d>=2;d--){let u=e.slice(r,r+d),f=!0;for(let g=0;g<u.length;g++)if(!un(u[g])){f=!1;break}if(!f)continue;let y=this.context.lookupKeyword(u);if(y)return{value:u,length:d,metadata:{normalized:y.normalized!==y.native?y.normalized:void 0}};if(this.context.normalizer){let g=this.context.normalizer.normalize(u);if(g.stem!==u&&g.confidence>=.7){let v=this.context.lookupKeyword(g.stem);if(v)return{value:u,length:d,metadata:{normalized:v.normalized,stem:g.stem,stemConfidence:g.confidence}}}}}let i="",o=t;for(;o<e.length&&un(e[o])&&!(i.length>0&&this.context.isKeywordStart(e,o));)i+=e[o],o++;if(!i)return null;for(let d of $p)if(i.endsWith(d)&&i.length>d.length){let u=i.slice(0,-d.length),f=this.context.lookupKeyword(u);if(f)return{value:u,length:u.length,metadata:{normalized:f.normalized,hasSuffix:!0,suffix:d,stem:u}}}let s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0;i.includes("\uD1A0\uAE00")&&(console.log(`[KO DEBUG] word="${i}"`),console.log(`[KO DEBUG] keywordEntry=${s?"FOUND":"NOT FOUND"}`),console.log(`[KO DEBUG] normalizer=${this.context.normalizer?"EXISTS":"MISSING"}`));let c,p,m;if(!s&&this.context.normalizer){let d=this.context.normalizer.normalize(i);if(d.stem!==i&&d.confidence>=.7){let u=this.context.lookupKeyword(d.stem);u&&(c=u.normalized,p=d.stem,m=d.confidence,i.includes("\uD1A0\uAE00")&&console.log(`[KO DEBUG] word="${i}", stem="${d.stem}", normalized="${c}"`))}}return{value:i,length:o-r,metadata:{normalized:l||c,stem:p,stemConfidence:m}}}}});function Hi(n){if(!n)return!1;let e=n.codePointAt(0);return e>=44032&&e<=55203}var Di,Fi,tr,Ui=z(()=>{"use strict";Di=new Map([["\uC774",{role:"agent",confidence:.85,variant:"consonant",description:"subject marker (after consonant)"}],["\uAC00",{role:"agent",confidence:.85,variant:"vowel",description:"subject marker (after vowel)"}],["\uC744",{role:"patient",confidence:.95,variant:"consonant",description:"object marker (after consonant)"}],["\uB97C",{role:"patient",confidence:.95,variant:"vowel",description:"object marker (after vowel)"}],["\uC740",{role:"agent",confidence:.75,variant:"consonant",description:"topic marker (after consonant)"}],["\uB294",{role:"agent",confidence:.75,variant:"vowel",description:"topic marker (after vowel)"}],["\uC5D0",{role:"destination",confidence:.85,description:"at/to marker"}],["\uB85C",{role:"destination",confidence:.85,variant:"vowel",description:"to/by means (after vowel or \u3139)"}],["\uC640",{role:"style",confidence:.7,variant:"vowel",description:"and/with (after vowel)"}],["\uACFC",{role:"style",confidence:.7,variant:"consonant",description:"and/with (after consonant)"}],["\uC758",{role:"patient",confidence:.6,description:"possessive marker"}],["\uB3C4",{role:"patient",confidence:.65,description:"also/too marker"}],["\uB9CC",{role:"patient",confidence:.65,description:"only marker"}]]),Fi=new Map([["\uC5D0\uC11C",{role:"source",confidence:.8,description:"at/from marker (action location)"}],["\uC73C\uB85C",{role:"destination",confidence:.85,variant:"consonant",description:"to/by means (after consonant)"}],["\uBD80\uD130",{role:"source",confidence:.9,description:"from/since marker"}],["\uAE4C\uC9C0",{role:"destination",confidence:.75,description:"until/to marker"}],["\uCC98\uB7FC",{role:"manner",confidence:.8,description:"like/as marker"}],["\uBCF4\uB2E4",{role:"source",confidence:.75,description:"than marker"}]]);tr=class{constructor(){this.name="korean-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r=e[t];if(Di.has(r)&&!Hi(e[t+1]))return!0;for(let[a]of Fi)if(e.startsWith(a,t))return!0;return!1}extract(e,t){for(let[i,o]of Fi)if(e.startsWith(i,t))return{value:i,length:i.length,metadata:{particleRole:o.role,particleConfidence:o.confidence,particleVariant:o.variant}};let r=e[t],a=Di.get(r);return a&&!Hi(e[t+1])?{value:r,length:1,metadata:{particleRole:a.role,particleConfidence:a.confidence,particleVariant:a.variant}}:null}}});function fn(n){let e=n.charCodeAt(0);return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=63744&&e<=64255||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=194560&&e<=195103}var rr,Gi=z(()=>{"use strict";rr=class{constructor(){this.name="chinese-keyword"}setContext(e){this.context=e}canExtract(e,t){return fn(e[t])}extract(e,t){if(!this.context)throw new Error("ChineseKeywordExtractor: context not set");let r=t,a=null;if(this.context.isKeywordStart(e,t))for(let s=10;s>=1;s--){let l=e.slice(t,t+s);if([...l].every(c=>fn(c))){let c=this.context.lookupKeyword(l);if(c){a={word:l,entry:c};break}}}if(a)return{value:a.word,length:a.word.length,metadata:{normalized:a.entry.normalized}};let i="",o=t;for(;o<e.length&&fn(e[o])&&(i+=e[o],o++,!(o<e.length&&this.context.isKeywordStart(e,o))););return i?{value:i,length:o-r,metadata:{}}:null}}});var Xi,Zi,nr,Yi=z(()=>{"use strict";Xi=new Map([["\u628A",{role:"patient",confidence:.95,description:"ba-construction object marker"}],["\u5728",{role:"location",confidence:.85,description:"at/in/on location marker"}],["\u4ECE",{role:"source",confidence:.9,description:"from marker"}],["\u5230",{role:"destination",confidence:.9,description:"to/until marker"}],["\u5411",{role:"destination",confidence:.85,description:"towards marker"}],["\u7ED9",{role:"destination",confidence:.85,description:"to/for recipient marker"}],["\u5BF9",{role:"destination",confidence:.8,description:"to/towards marker"}],["\u7528",{role:"instrument",confidence:.85,description:"with/using marker"}],["\u88AB",{role:"agent",confidence:.8,description:"by (passive) marker"}],["\u8BA9",{role:"agent",confidence:.75,description:"let/make causative marker"}],["\u7684",{role:"possessive",confidence:.9,description:"possessive/attributive marker"}],["\u5730",{role:"manner",confidence:.85,description:"adverbial marker"}],["\u5F97",{role:"manner",confidence:.8,description:"complement marker"}],["\u4E86",{role:"aspect",confidence:.7,description:"completion aspect marker"}],["\u7740",{role:"aspect",confidence:.7,description:"progressive aspect marker"}],["\u8FC7",{role:"aspect",confidence:.7,description:"experiential aspect marker"}],["\u5417",{role:"mood",confidence:.75,description:"question particle"}],["\u5462",{role:"mood",confidence:.7,description:"question/emphasis particle"}],["\u5427",{role:"mood",confidence:.7,description:"suggestion particle"}]]),Zi=new Map([["\u7136\u540E",{role:"sequence",confidence:.9,description:"then/afterwards"}],["\u63A5\u7740",{role:"sequence",confidence:.85,description:"next/following"}],["\u5E76\u4E14",{role:"conjunction",confidence:.85,description:"and/moreover"}],["\u6216\u8005",{role:"conjunction",confidence:.85,description:"or"}],["\u5982\u679C",{role:"condition",confidence:.9,description:"if"}],["\u90A3\u4E48",{role:"consequence",confidence:.85,description:"then"}],["\u5426\u5219",{role:"alternative",confidence:.85,description:"otherwise"}]]),nr=class{constructor(){this.name="chinese-particle"}setContext(e){this._context=e}longerKeywordAt(e,t,r){let a=this._context;if(!a)return!1;let i=Math.min(10,e.length-t);for(let o=i;o>r;o--)if(a.lookupKeyword(e.slice(t,t+o)))return!0;return!1}canExtract(e,t){let r=e[t];if(Xi.has(r)&&!this.longerKeywordAt(e,t,1))return!0;for(let[a]of Zi)if(e.startsWith(a,t)&&!this.longerKeywordAt(e,t,a.length))return!0;return!1}extract(e,t){for(let[i,o]of Zi)if(e.startsWith(i,t)&&!this.longerKeywordAt(e,t,i.length))return{value:i,length:i.length,metadata:{particleRole:o.role,particleConfidence:o.confidence,particleDescription:o.description}};let r=e[t],a=Xi.get(r);return a&&!this.longerKeywordAt(e,t,1)?{value:r,length:1,metadata:{particleRole:a.role,particleConfidence:a.confidence,particleDescription:a.description}}:null}}});function Bp(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Ji(){return[new yn]}var Dp,Fp,Hp,yn,Qi=z(()=>{"use strict";({isLetter:Dp,isIdentifierChar:Fp}=Bp(/[a-zA-ZàáảãạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵđÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÈÉẺẼẸÊỀẾỂỄỆÌÍỈĨỊÒÓỎÕỌÔỒỐỔỖỘƠỜỚỞỠỢÙÚỦŨỤƯỪỨỬỮỰỲÝỶỸỴĐ]/)),Hp=new Set(["trong","ngo\xE0i","tr\xEAn","d\u01B0\u1EDBi","v\xE0o","ra","\u0111\u1EBFn","t\u1EEB","v\u1EDBi","cho","b\u1EDFi","qua","tr\u01B0\u1EDBc","sau","gi\u1EEFa","b\xEAn","theo","v\u1EC1","t\u1EDBi","l\xEAn","xu\u1ED1ng"]),yn=class{constructor(){this.name="vietnamese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Dp(e[t])}extract(e,t){if(!this.context)throw new Error("VietnameseKeywordExtractor: context not set");let r=this.tryMultiWordPhrase(e,t);if(r)return r;let a=t,i="";for(;a<e.length&&Fp(e[a]);)i+=e[a++];if(!i)return null;let o=i.toLowerCase(),s=Hp.has(o),l=this.context.lookupKeyword(o),c=l&&l.normalized!==l.native?l.normalized:void 0;return{value:i,length:a-t,metadata:{normalized:c,isPreposition:s}}}tryMultiWordPhrase(e,t){if(!this.context)return null;let r=["v\xE0o trong","s\u1EF1 ki\u1EC7n"];for(let a of r)if(e.slice(t,t+a.length).toLowerCase()===a.toLowerCase()){let o=t+a.length;if(o>=e.length||!/[a-zA-Zàáảãạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵđ]/.test(e[o])){let s=this.context.lookupKeyword(a);return{value:e.slice(t,o),length:a.length,metadata:{normalized:s?.normalized,isPreposition:!1}}}}return null}}});var eo,Up,ar,to=z(()=>{"use strict";D();eo=ye([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),Up=new Set(["\u0641\u064A","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062F","\u0628\u064A\u0646"]),ar=class{constructor(){this.name="arabic-keyword"}setContext(e){this.context=e}canExtract(e,t){return eo(e[t])}extract(e,t){if(!this.context)throw new Error("ArabicKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let a="",i=t;for(;i<e.length&&(eo(e[i])||e[i]==="\u0640");)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;if(Up.has(a))return{value:a,length:i-r,metadata:{prepositionValue:a,normalized:s}};let l,c,p;if(!o&&this.context.normalizer){let m=this.context.normalizer.normalize(a);if(m.stem!==a&&m.confidence>=.7){let d=this.context.lookupKeyword(m.stem);d&&(l=d.normalized,c=m.stem,p=m.confidence)}}return{value:a,length:i-r,metadata:{normalized:s||l,stem:c,stemConfidence:p}}}}});var gt,vt,Gp,ir,ro=z(()=>{"use strict";D();gt=ye([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),vt=new Map([["\u0648",{normalized:"and",type:"conjunction"}],["\u0641",{normalized:"then",type:"conjunction"}],["\u0628",{normalized:"with",type:"preposition"}],["\u0644",{normalized:"to",type:"preposition"}],["\u0643",{normalized:"like",type:"preposition"}],["\u0648\u0644",{normalized:"and-to",type:"conjunction"}],["\u0648\u0628",{normalized:"and-with",type:"conjunction"}],["\u0648\u0643",{normalized:"and-like",type:"conjunction"}],["\u0641\u0644",{normalized:"then-to",type:"conjunction"}],["\u0641\u0628",{normalized:"then-with",type:"conjunction"}],["\u0641\u0643",{normalized:"then-like",type:"conjunction"}]]),Gp=new Set(["\u0648\u062B\u064A\u0642\u0629"]),ir=class{constructor(){this.name="arabic-proclitic"}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return vt.has(r)||t+1<e.length&&vt.has(e.slice(t,t+2))}extract(e,t){if(!this.context)throw new Error("ArabicProcliticExtractor: context not set");let r=t;for(;r<e.length&&(gt(e[r])||e[r]==="\u0640");)r++;let a=e.slice(t,r);if(this.context.isKeyword(a)||Gp.has(a))return null;if(t+2<=e.length){let p=e.slice(t,t+2),m=vt.get(p);if(m){let d=t+2;if(d<e.length&>(e[d])){let u=0,f=d;for(;f<e.length&>(e[f]);)u++,f++;if(u>=2)if(vt.get(e[t])){let g=e.slice(t+1,r);if(!this.context.isKeyword(g))return{value:p,length:2,metadata:{procliticType:m.type,normalized:m.normalized}}}else return{value:p,length:2,metadata:{procliticType:m.type,normalized:m.normalized}}}}}let i=e[t],o=vt.get(i);if(!o)return null;let s=t+1;if(s>=e.length||!gt(e[s]))return null;let l=0,c=s;for(;c<e.length&>(e[c]);)l++,c++;return l<2?null:{value:i,length:1,metadata:{procliticType:o.type,normalized:o.normalized}}}}});var Xp,no,or,ao=z(()=>{"use strict";D();Xp=ye([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),no=new Map([["\u0639\u0646\u062F\u0645\u0627",{normalized:"on",formality:"formal",confidence:.95,description:"when (formal MSA)"}],["\u062D\u064A\u0646\u0645\u0627",{normalized:"on",formality:"formal",confidence:.93,description:"when/whenever (formal)"}],["\u0639\u0646\u062F",{normalized:"on",formality:"neutral",confidence:.88,description:"at/when (neutral)"}],["\u062D\u064A\u0646",{normalized:"on",formality:"neutral",confidence:.85,description:"when/time (neutral)"}],["\u0644\u0645\u0651\u0627",{normalized:"on",formality:"dialectal",confidence:.7,description:"when (dialectal, with shadda)"}],["\u0644\u0645\u0627",{normalized:"on",formality:"dialectal",confidence:.68,description:"when (dialectal, no diacritic)"}],["\u0644\u062F\u0649",{normalized:"on",formality:"neutral",confidence:.82,description:"at/with (temporal)"}]]),or=class{constructor(){this.name="arabic-temporal"}setContext(e){this._context=e,this._context}canExtract(e,t){for(let[r]of no)if(e.startsWith(r,t))return!0;return!1}extract(e,t){let r=Array.from(no.entries()).sort(([a],[i])=>i.length-a.length);for(let[a,i]of r)if(e.startsWith(a,t)){let o=t+a.length;if(o>=e.length||/\s/.test(e[o])||!Xp(e[o]))return{value:a,length:a.length,metadata:{temporalFormality:i.formality,temporalConfidence:i.confidence,normalized:i.normalized,description:i.description}}}return null}}});function Zp(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function io(){return[new sr("russian-keyword",/[a-zA-Zа-яА-ЯёЁ]/,Yp)]}function oo(){return[new sr("ukrainian-keyword",/[a-zA-Zа-яА-ЯіІїЇєЄґҐьЬ']/,Jp)]}var sr,Yp,Jp,gn=z(()=>{"use strict";sr=class{constructor(e,t,r){this.name=e;let a=Zp(t);this.isLetter=a.isLetter,this.isIdentifierChar=a.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return r==="'"?!1:this.isLetter(r)}extract(e,t){if(!this.context)throw new Error(`${this.name}: context not set`);let r=t,a="";for(;r<e.length&&this.isIdentifierChar(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.prepositions.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}},Yp=new Set(["\u0432","\u0432\u043E","\u043D\u0430","\u0441","\u0441\u043E","\u043A","\u043A\u043E","\u043E","\u043E\u0431","\u043E\u0431\u043E","\u0443","\u043E\u0442","\u0434\u043E","\u0438\u0437","\u0437\u0430","\u043F\u043E","\u043F\u043E\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043F\u0435\u0440\u0435\u0434\u043E","\u043C\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043B\u044F","\u043F\u0440\u0438","\u043F\u0440\u043E","\u043F\u043E\u0441\u043B\u0435","\u0432\u043E\u043A\u0440\u0443\u0433","\u043F\u0440\u043E\u0442\u0438\u0432","\u0432\u043C\u0435\u0441\u0442\u043E","\u043A\u0440\u043E\u043C\u0435","\u0441\u0440\u0435\u0434\u0438"]);Jp=new Set(["\u0432","\u0443","\u043D\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043E","\u0432\u0456\u0434","\u043E","\u043E\u0431","\u043F\u0440\u0438","\u0434\u043B\u044F","\u043F\u0456\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043C\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043F\u043E","\u0437\u0430","\u043F\u0440\u043E","\u043F\u0456\u0441\u043B\u044F","\u043D\u0430\u0432\u043A\u043E\u043B\u043E","\u043F\u0440\u043E\u0442\u0438","\u0437\u0430\u043C\u0456\u0441\u0442\u044C","\u043A\u0440\u0456\u043C","\u0441\u0435\u0440\u0435\u0434","\u043A"])});function lr(n){let e=n.charCodeAt(0);return e>=2304&&e<=2431||e>=43232&&e<=43263}var cr,so=z(()=>{"use strict";cr=class{constructor(){this.name="hindi-keyword"}setContext(e){this.context=e}canExtract(e,t){return lr(e[t])}extract(e,t){if(!this.context)throw new Error("HindiKeywordExtractor: context not set");let r=t,a="",i=t;for(;i<e.length&&lr(e[i]);)a+=e[i],i++;if(this.context&&e[i]==="-"&&i+1<e.length&&lr(e[i+1])){let c=i,p=a;for(;c<e.length&&(e[c]==="-"||lr(e[c]));)p+=e[c++];this.context.lookupKeyword(p)&&(a=p,i=c)}if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0,l;if(!o&&this.context.normalizer){let c=this.context.normalizer.normalize(a);if(c.stem!==a&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(l=p.normalized)}}return{value:a,length:i-r,metadata:{normalized:s||l}}}}});var lo,co,pr,po=z(()=>{"use strict";lo=new Map([["\u0915\u094B",{role:"patient",confidence:.95}],["\u092E\u0947\u0902",{role:"destination",confidence:.9}],["\u092A\u0930",{role:"event",confidence:.85}],["\u0938\u0947",{role:"source",confidence:.9}],["\u0915\u093E",{role:"possessive",confidence:.95}],["\u0915\u0940",{role:"possessive",confidence:.95}],["\u0915\u0947",{role:"possessive",confidence:.95}],["\u0924\u0915",{role:"until",confidence:.9}],["\u0928\u0947",{role:"agent",confidence:.85}]]),co=new Map([["\u0915\u0947 \u0938\u093E\u0925",{role:"instrument",confidence:.95}],["\u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902",{role:"about",confidence:.9}]]),pr=class{constructor(){this.name="hindi-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){for(let[i]of co)if(e.startsWith(i,t))return!0;let r="",a=t;for(;a<e.length&&this.isDevanagari(e[a]);)r+=e[a],a++;return lo.has(r)}extract(e,t){for(let[o,s]of co)if(e.startsWith(o,t))return{value:o,length:o.length,metadata:{role:s.role,confidence:s.confidence,variant:o}};let r="",a=t;for(;a<e.length&&this.isDevanagari(e[a]);)r+=e[a],a++;let i=lo.get(r);return i?{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}}:null}isDevanagari(e){let t=e.charCodeAt(0);return t>=2304&&t<=2431||t>=43232&&t<=43263}}});function mo(n){let e=n.charCodeAt(0);return e>=2432&&e<=2559}var mr,uo=z(()=>{"use strict";mr=class{constructor(){this.name="bengali-keyword"}setContext(e){this.context=e}canExtract(e,t){return mo(e[t])}extract(e,t){if(!this.context)throw new Error("BengaliKeywordExtractor: context not set");let r=t,a="",i=t;for(;i<e.length&&mo(e[i]);)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0,l;if(!o&&this.context.normalizer){let c=this.context.normalizer.normalize(a);if(c.stem!==a&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(l=p.normalized)}}return{value:a,length:i-r,metadata:{normalized:s||l}}}}});var fo,dr,yo=z(()=>{"use strict";fo=new Map([["\u0995\u09C7",{role:"patient",confidence:.95}],["\u09A4\u09C7",{role:"destination",confidence:.9}],["\u098F",{role:"event",confidence:.85}],["\u09A5\u09C7\u0995\u09C7",{role:"source",confidence:.95}],["\u09B0",{role:"possessive",confidence:.95}],["\u098F\u09B0",{role:"possessive",confidence:.95}],["\u09A6\u09BF\u09AF\u09BC\u09C7",{role:"instrument",confidence:.9}],["\u099C\u09A8\u09CD\u09AF",{role:"purpose",confidence:.9}],["\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",{role:"until",confidence:.9}],["\u09AE\u09A7\u09CD\u09AF\u09C7",{role:"location",confidence:.85}]]),dr=class{constructor(){this.name="bengali-particle"}setContext(e){this._context=e,this._context}canExtract(e,t){let r="",a=t;for(;a<e.length&&this.isBengali(e[a]);)r+=e[a],a++;return fo.has(r)}extract(e,t){let r="",a=t;for(;a<e.length&&this.isBengali(e[a]);)r+=e[a],a++;let i=fo.get(r);return i?{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}}:null}isBengali(e){let t=e.charCodeAt(0);return t>=2432&&t<=2559}}});function ht(n){let e=n.charCodeAt(0);return e>=3584&&e<=3711}function vn(n){return/[a-zA-Z0-9_]/.test(n)}function go(){return[new hn]}var hn,vo=z(()=>{"use strict";hn=class{constructor(){this.name="thai-keyword"}setContext(e){this.context=e}canExtract(e,t){return ht(e[t])||vn(e[t])}extract(e,t){if(!this.context)throw new Error("ThaiKeywordExtractor: context not set");let r=e[t];return ht(r)?this.extractThaiWord(e,t):vn(r)?this.extractAsciiWord(e,t):null}extractThaiWord(e,t){if(!this.context)return null;let r=null,a=t,i="";for(;a<e.length&&ht(e[a]);){i+=e[a],a++;let l=this.context.lookupKeyword(i);l&&(r={word:i,entry:l})}if(r){let l=r.entry.normalized!==r.entry.native?r.entry.normalized:void 0;return{value:r.word,length:r.word.length,metadata:{normalized:l}}}let o=t,s="";for(;o<e.length&&ht(e[o])&&!(s.length>0&&this.isKeywordStart(e,o));)s+=e[o],o++;return s?{value:s,length:s.length,metadata:{}}:null}extractAsciiWord(e,t){if(!this.context)return null;let r=t,a="";for(;r<e.length&&vn(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.context.lookupKeyword(i),s=o&&o.normalized!==o.native?o.normalized:void 0;return{value:a,length:a.length,metadata:{normalized:s}}}isKeywordStart(e,t){if(!this.context)return!1;let r=t,a="";for(;r<e.length&&ht(e[r]);){if(a+=e[r],r++,this.context.lookupKeyword(a))return!0;if(a.length>10)break}return!1}}});function Qp(n){return/[a-zA-Z_]/.test(n)}function em(n){return/[a-zA-Z0-9_]/.test(n)}function ho(){return[new zn]}var zn,zo=z(()=>{"use strict";zn=class{constructor(){this.name="malay-keyword"}setContext(e){this.context=e}canExtract(e,t){return Qp(e[t])}extract(e,t){if(!this.context)throw new Error("MalayKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&em(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.context.lookupKeyword(i),s=o&&o.normalized!==o.native?o.normalized:void 0;return{value:a,length:a.length,metadata:{normalized:s}}}}});function tm(n){return/[a-zA-Z_]/.test(n)}function rm(n){return/[a-zA-Z0-9_]/.test(n)}function ko(){return[new kn]}var nm,kn,xo=z(()=>{"use strict";nm=new Set(["sa","ng","para","mula","hanggang","gaya","tulad","kasama","para sa"]),kn=class{constructor(){this.name="tagalog-keyword"}setContext(e){this.context=e}canExtract(e,t){return tm(e[t])}extract(e,t){if(!this.context)throw new Error("TagalogKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&rm(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=nm.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:a.length,metadata:{normalized:l||c,isPreposition:o}}}}});function im(){let n=/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/;return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function wo(){return[new xn]}var am,om,sm,xn,bo=z(()=>{"use strict";am=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015Br\xF3d","wsrod","obok","poza","wok\xF3\u0142","wokol","przeciw","ku"]);({isLetter:om,isIdentifierChar:sm}=im()),xn=class{constructor(){this.name="polish-keyword"}setContext(e){this.context=e}canExtract(e,t){return om(e[t])}extract(e,t){if(!this.context)throw new Error("PolishKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&sm(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=am.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});function cm(){let n=/[a-zA-Z]/;return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function So(){return[new wn]}var lm,pm,mm,wn,To=z(()=>{"use strict";lm=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]);({isLetter:pm,isIdentifierChar:mm}=cm()),wn=class{constructor(){this.name="indonesian-keyword"}setContext(e){this.context=e}canExtract(e,t){return pm(e[t])}extract(e,t){if(!this.context)throw new Error("IndonesianKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&mm(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=lm.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});function um(){let n=/[a-zA-Z]/;return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Po(){return[new bn]}var dm,fm,Eo,bn,Lo=z(()=>{"use strict";dm=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]);({isLetter:fm,isIdentifierChar:Eo}=um()),bn=class{constructor(){this.name="swahili-keyword"}setContext(e){this.context=e}canExtract(e,t){return fm(e[t])}extract(e,t){if(!this.context)throw new Error("SwahiliKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&Eo(e[r]);)a+=e[r++];if(this.context&&r<e.length&&e[r]==="_"){let p=r,m=a;for(;p<e.length&&(e[p]==="_"||Eo(e[p]));)m+=e[p++];this.context.lookupKeyword(m.toLowerCase())&&(a=m,r=p)}if(!a)return null;let i=a.toLowerCase(),o=dm.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});function ur(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:"\xE7\xC7\u011F\u011E\u0131\u0130\xF6\xD6\u015F\u015E\xFC\xDC".includes(n)}function Co(){return new Sn}var ym,gm,Sn,Ro=z(()=>{"use strict";ym=new Set(["ile","i\xE7in","kadar","gibi","\xF6nce","\xFCzerinde","alt\u0131nda","i\xE7inde","d\u0131\u015F\u0131nda","aras\u0131nda","kar\u015F\u0131","g\xF6re","ra\u011Fmen","do\u011Fru","boyunca"]),gm=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\xFC","in","\u0131n","un","\xFCn","le","la","yle","yla"]),Sn=class{constructor(){this.name="turkish-keyword"}setContext(e){this.context=e}canExtract(e,t){return ur(e[t])}extract(e,t){if(!this.context)throw new Error("TurkishKeywordExtractor: context not set");let r=t,a=12;for(let d=Math.min(a,e.length-r);d>=2;d--){let u=e.slice(r,r+d);if(r+d<e.length&&ur(e[r+d]))continue;let f=!0;for(let g=0;g<u.length;g++)if(!ur(u[g])){f=!1;break}if(!f)continue;let y=this.context.lookupKeyword(u);if(y)return{value:u,length:d,metadata:{normalized:y.normalized!==y.native?y.normalized:void 0}};if(this.context.normalizer){let g=this.context.normalizer.normalize(u);if(g.stem!==u&&g.confidence>=.7){let v=this.context.lookupKeyword(g.stem);if(v)return{value:u,length:d,metadata:{normalized:v.normalized,stem:g.stem,stemConfidence:g.confidence}}}}}let i="",o=t;for(;o<e.length&&ur(e[o]);)i+=e[o],o++;for(let d=i.length;d>=2&&!(d<i.length);d--){let u=i.substring(0,d),f=this.context.lookupKeyword(u);if(f)return{value:u,length:d,metadata:{normalized:f.normalized!==f.native?f.normalized:void 0}}}if(!i||!i)return null;if(ym.has(i.toLowerCase()))return{value:i,length:o-r,metadata:{postpositionValue:i.toLowerCase()}};if(gm.has(i.toLowerCase()))return{value:i,length:o-r,metadata:{caseSuffixValue:i.toLowerCase()}};let s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c,p,m;if(!s&&this.context.normalizer){let d=this.context.normalizer.normalize(i);if(d.stem!==i&&d.confidence>=.7){let u=this.context.lookupKeyword(d.stem);u&&(c=u.normalized,p=d.stem,m=d.confidence)}}return{value:i,length:o-r,metadata:{normalized:l||c,stem:p,stemConfidence:m}}}}});function zt(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:n==="\xF1"||n==="\xD1"||n==="'"||n==="\u2019"}function hm(n,e){let t=n.slice(e);for(let r of vm){if(!t.startsWith(r))continue;let a=n[e+r.length];if(a===void 0||!zt(a))return!0}return!1}function Ao(){return new En}var Tn,No,vm,En,jo=z(()=>{"use strict";Tn=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),No=new Set(["kama","hina","rayku","paq"]),vm=new Set([...Tn,...No].map(n=>n.startsWith("-")?n.slice(1):n));En=class{constructor(){this.name="quechua-keyword"}setContext(e){this.context=e}canExtract(e,t){return zt(e[t])?!0:this.isHyphenatedSuffix(e,t)!==null}isHyphenatedSuffix(e,t){if(e[t]!=="-")return null;let r=e.slice(t).match(/^-([a-zñ'’]+)/i);return r&&Tn.has(`-${r[1].toLowerCase()}`)?r[1]:null}extract(e,t){if(!this.context)throw new Error("QuechuaKeywordExtractor: context not set");let r=t,a=this.isHyphenatedSuffix(e,t);if(a!==null)return{value:a,length:a.length+1,metadata:{suffixValue:a.toLowerCase()}};let i=12;for(let m=Math.min(i,e.length-r);m>=2;m--){let d=e.slice(r,r+m),u=e[r+m];if(u!==void 0&&zt(u))continue;let f=!0;for(let g=0;g<d.length;g++)if(!zt(d[g])){f=!1;break}if(!f)continue;let y=this.context.lookupKeyword(d);if(y)return{value:d,length:m,metadata:{normalized:y.normalized!==y.native?y.normalized:void 0}};if(this.context.normalizer){let g=this.context.normalizer.normalize(d);if(g.stem!==d&&g.confidence>=.7){let v=this.context.lookupKeyword(g.stem);if(v)return{value:d,length:m,metadata:{normalized:v.normalized}}}}}let o="",s=t;for(;s<e.length&&zt(e[s])&&!(o.length>0&&hm(e,s));)o+=e[s],s++;if(!o)return null;if(Tn.has(o.toLowerCase()))return{value:o,length:s-r,metadata:{suffixValue:o.toLowerCase()}};if(No.has(o.toLowerCase()))return{value:o,length:s-r,metadata:{postpositionValue:o.toLowerCase()}};let l=this.context.lookupKeyword(o),c=l&&l.normalized!==l.native?l.normalized:void 0,p;if(!l&&this.context.normalizer){let m=this.context.normalizer.normalize(o);if(m.stem!==o&&m.confidence>=.7){let d=this.context.lookupKeyword(m.stem);d&&(p=d.normalized)}}return{value:o,length:s-r,metadata:{normalized:c||p}}}}});function Oo(){return[new Pn]}var Mo,zm,km,Pn,Wo=z(()=>{"use strict";D();Mo=ye([[1424,1535],[64285,64335]]),zm=new Set(["\u05E2\u05DC","\u05D0\u05EA","\u05D0\u05DC","\u05DE\u05DF","\u05E2\u05DD","\u05D1\u05EA\u05D5\u05DA","\u05DE\u05EA\u05D5\u05DA","\u05DC\u05D9\u05D3","\u05D0\u05D7\u05E8\u05D9","\u05DC\u05E4\u05E0\u05D9","\u05D1\u05D9\u05DF","\u05E2\u05D3","\u05E9\u05DC"]),km=new Set(["\u05D5"]),Pn=class{constructor(){this.name="hebrew-keyword"}setContext(e){this.context=e}canExtract(e,t){return Mo(e[t])}extract(e,t){if(!this.context)throw new Error("HebrewKeywordExtractor: context not set");let r=t;this.context.isKeywordStart(e,t);let a="",i=t;for(;i<e.length&&Mo(e[i]);)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;if(zm.has(a))return{value:a,length:i-r,metadata:{prepositionValue:a,normalized:s}};if(km.has(a))return{value:a,length:i-r,metadata:{conjunctionValue:a,normalized:s}};let l;if(!o&&this.context.normalizer){let c=this.context.normalizer.normalize(a);if(c.stem!==a&&c.confidence>=.7){let p=this.context.lookupKeyword(c.stem);p&&(l=p.normalized)}}return{value:a,length:i-r,metadata:{normalized:s||l}}}}});function _o(){return new Ln}var Io,fr,xm,Vo,Ln,qo=z(()=>{"use strict";D();Io=ye([[1424,1535],[64285,64335]]),fr=new Map([["\u05D1","on"],["\u05DC","to"],["\u05DE","from"],["\u05DB","as"],["\u05D4","the"],["\u05D5","and"],["\u05E9","that"]]),xm=new Set(["\u05D1","\u05DB"]),Vo=new Set(["\u05DC\u05D7\u05D9\u05E6\u05D4","\u05E7\u05DC\u05D9\u05E7","\u05E9\u05DC\u05D9\u05D7\u05D4","\u05D4\u05D2\u05E9\u05D4","\u05E8\u05D9\u05D7\u05D5\u05E3","\u05DE\u05E2\u05D1\u05E8","\u05E9\u05D9\u05E0\u05D5\u05D9","\u05E2\u05D3\u05DB\u05D5\u05DF","\u05E7\u05DC\u05D8","\u05D4\u05D6\u05E0\u05D4","\u05DE\u05D9\u05E7\u05D5\u05D3","\u05D8\u05E9\u05D8\u05D5\u05E9","\u05D8\u05E2\u05D9\u05E0\u05D4","\u05D2\u05DC\u05D9\u05DC\u05D4"]),Ln=class{constructor(){this.name="hebrew-proclitic"}setContext(e){this.context=e}canExtract(e,t){let r=e[t];return fr.has(r)&&t+1<e.length&&Io(e[t+1])}extract(e,t){if(!this.context)throw new Error("HebrewProcliticExtractor: context not set");let r=e[t],a=fr.get(r);if(!a)return null;let i=t;for(;i<e.length&&Io(e[i]);)i++;let o=e.slice(t,i);if(this.context?.lookupKeyword(o))return null;if(t+1<e.length&&fr.has(e[t+1])){let u=e.slice(t+1,i),f=this.context?.lookupKeyword(u),y=Vo.has(u);if(!(f||y||u.length>=3))return null}let l=e.slice(t+1,i),c=this.context?.lookupKeyword(l),p=xm.has(r),m=Vo.has(l);return p&&m?{value:r,length:1,metadata:{normalized:a,procliticType:a,isEventMarker:!0}}:l.length===1&&fr.has(l)||!c&&!m&&l.length<2?null:{value:r,length:1,metadata:{normalized:a,procliticType:a,isEventMarker:p&&c}}}}});function wm(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122||e===95||e===36}function bm(n){let e=n.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===95||e===36}var ee,Pe=z(()=>{"use strict";ee=class{constructor(){this.name="ascii-identifier"}setContext(e){this.context=e}canExtract(e,t){return wm(e[t])}extract(e,t){if(!this.context)throw new Error("AsciiIdentifierExtractor: context not set");let r=t,a="",i=t;for(;i<e.length&&bm(e[i]);)a+=e[i],i++;if(!a)return null;let o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;return{value:a,length:i-r,metadata:{normalized:s}}}}});var Ko=z(()=>{"use strict";ji();Mi();Wi();Ii()});function W(){return[new ft,new ut,new yt,new dt]}var X=z(()=>{"use strict";Ko()});function Cn(n){return/[a-zA-Z0-9_]/.test(n)}function $o(){return[new Rn]}var Rn,Bo=z(()=>{"use strict";Rn=class{constructor(){this.name="english-keyword"}setContext(e){this.context=e}canExtract(e,t){return/[a-zA-Z_]/.test(e[t])}extract(e,t){if(!this.context)throw new Error("EnglishKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&Cn(e[r]);)a+=e[r++];if(!a)return null;if(r<e.length&&e[r]===":"){let l=r;r++;let c="";for(;r<e.length&&Cn(e[r]);)c+=e[r++];c?a=a+":"+c:r=l}let i=this.context.lookupKeyword(a),o=i&&i.normalized!==i.native?i.normalized:void 0,s=null;return this.context.isKeyword(a)||(s=this.tryClassSyntaxConversion(e,r,a)),{value:s||a,length:r-t,metadata:{normalized:o,classConversion:s?!0:void 0}}}tryClassSyntaxConversion(e,t,r){let a=t;for(;a<e.length&&/\s/.test(e[a]);)a++;if(e.slice(a,a+5).toLowerCase()==="class"){let i=a+5;if(i>=e.length||!Cn(e[i]))return"."+r}return null}}});var Do={};N(Do,{EnglishTokenizer:()=>yr,englishTokenizer:()=>Tm});var Sm,yr,Tm,Fo=z(()=>{"use strict";D();Yt();G();X();Bo();Sm=[{native:"true",normalized:"true"},{native:"false",normalized:"false"},{native:"null",normalized:"null"},{native:"undefined",normalized:"undefined"},{native:"first",normalized:"first"},{native:"last",normalized:"last"},{native:"next",normalized:"next"},{native:"previous",normalized:"previous"},{native:"closest",normalized:"closest"},{native:"click",normalized:"click"},{native:"dblclick",normalized:"dblclick"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"mouseover",normalized:"mouseover"},{native:"mouseout",normalized:"mouseout"},{native:"mouseenter",normalized:"mouseenter"},{native:"mouseleave",normalized:"mouseleave"},{native:"mousemove",normalized:"mousemove"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"keypress",normalized:"keypress"},{native:"input",normalized:"input"},{native:"change",normalized:"change"},{native:"submit",normalized:"submit"},{native:"reset",normalized:"reset"},{native:"load",normalized:"load"},{native:"unload",normalized:"unload"},{native:"scroll",normalized:"scroll"},{native:"resize",normalized:"resize"},{native:"dragstart",normalized:"dragstart"},{native:"drag",normalized:"drag"},{native:"dragend",normalized:"dragend"},{native:"dragenter",normalized:"dragenter"},{native:"dragleave",normalized:"dragleave"},{native:"dragover",normalized:"dragover"},{native:"drop",normalized:"drop"},{native:"touchstart",normalized:"touchstart"},{native:"touchmove",normalized:"touchmove"},{native:"touchend",normalized:"touchend"},{native:"touchcancel",normalized:"touchcancel"},{native:"in",normalized:"in"},{native:"to",normalized:"to"},{native:"at",normalized:"at"},{native:"by",normalized:"by"},{native:"with",normalized:"with"},{native:"without",normalized:"without"},{native:"of",normalized:"of"},{native:"as",normalized:"as"},{native:"every",normalized:"every"},{native:"upon",normalized:"upon"},{native:"unless",normalized:"unless"},{native:"forever",normalized:"forever"},{native:"times",normalized:"times"},{native:"and",normalized:"and"},{native:"or",normalized:"or"},{native:"not",normalized:"not"},{native:"is",normalized:"is"},{native:"exists",normalized:"exists"},{native:"empty",normalized:"empty"},{native:"my",normalized:"my"},{native:"your",normalized:"your"},{native:"its",normalized:"its"},{native:"the",normalized:"the"},{native:"a",normalized:"a"},{native:"an",normalized:"an"},{native:"delete",normalized:"delete"},{native:"innerHTML",normalized:"innerHTML"},{native:"outerHTML",normalized:"outerHTML"},{native:"beforebegin",normalized:"beforebegin"},{native:"afterend",normalized:"afterend"},{native:"beforeend",normalized:"beforeend"},{native:"afterbegin",normalized:"afterbegin"},{native:"flip",normalized:"toggle"},{native:"switch",normalized:"toggle"},{native:"increase",normalized:"increment"},{native:"decrease",normalized:"decrement"},{native:"display",normalized:"show"},{native:"reveal",normalized:"show"},{native:"conceal",normalized:"hide"},{native:"colour",normalized:"color"},{native:"grey",normalized:"gray"},{native:"centre",normalized:"center"},{native:"behaviour",normalized:"behavior"},{native:"initialise",normalized:"initialize"},{native:"favourite",normalized:"favorite"}],yr=class extends R{constructor(){super();this.language="en";this.direction="ltr";this.initializeKeywordsFromProfile(mt,Sm),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors($o()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":"identifier"}},Tm=new yr});function Me(n){let e=n.roles.find(t=>t.role==="destination");return e?{destination:e.default?{fromRole:"destination",default:e.default}:{fromRole:"destination"}}:{}}function Oe(n){let e=n.roles.find(t=>t.role==="source");return e?{source:e.default?{fromRole:"source",default:e.default}:{fromRole:"source"}}:{}}function We(n,e){return Ho(n,e,"source")}function gr(n,e){return Ho(n,e,"destination")}function Ho(n,e,t){if(!e||!n.roles.some(i=>i.role===t))return[];let r=e.alternatives?{type:"literal",value:e.primary,alternatives:[...e.alternatives]}:{type:"literal",value:e.primary},a={type:"role",role:t,optional:!0};return[{type:"group",optional:!0,tokens:e.position==="after"?[a,r]:[r,a]}]}function we(n){return He[n]}function Go(){return Object.values(He).filter(n=>n.roles.length>0||n.bareKeyword===!0)}var Em,Pm,Lm,Cm,Rm,Nm,Am,jm,Mm,Om,Wm,Im,Vm,_m,qm,Km,$m,Bm,Dm,Fm,Hm,Um,Gm,Xm,Zm,Ym,Jm,Qm,ed,td,rd,nd,ad,id,od,sd,ld,cd,pd,md,dd,ud,fd,yd,gd,vd,hd,zd,kd,xd,wd,bd,Sd,Td,Ed,Pd,Ld,Cd,Rd,Nd,Ad,jd,Md,Od,Wd,Id,Uo,Vd,_d,qd,Kd,$d,He,Ue=z(()=>{"use strict";Em={action:"toggle",description:"Toggle a class or attribute on/off",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to toggle",required:!0,expectedTypes:["selector"],selectorKinds:["class","attribute"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerVariants:{ko:["\uC5D0\uC11C"]}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","INVALID_CSS_PROPERTY"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"toggle command requires an argument"},{condition:"Class names are valid CSS identifiers",errorCode:"NO_VALID_CLASS_NAMES",message:"toggle command: no valid class names found"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to toggle",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",INVALID_CSS_PROPERTY:"Check CSS property name syntax (use kebab-case)"}},Pm={action:"add",description:"Add a class or attribute to an element",category:"dom-class",primaryRole:"patient",roles:[{role:"patient",description:"The class or attribute to add",required:!0,expectedTypes:["selector","literal"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","PROPERTY_REQUIRES_VALUE"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"add command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to add",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",PROPERTY_REQUIRES_VALUE:"When adding a property (*prop), provide a value argument"}},Lm={action:"remove",description:"Remove a class or attribute from an element",category:"dom-class",primaryRole:"patient",targetRole:"source",roles:[{role:"patient",description:"The class/attribute to remove, or the element to remove",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to remove from (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"remove command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to remove",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers"}},Cm={action:"put",description:"Put content into a target element or variable",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to put",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"destination",description:"Where to put the content",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"into"},markerVariants:{en:["before","after"]},methodCarrier:"method"}],errorCodes:["MISSING_ARGUMENTS","MISSING_CONTENT","MISSING_POSITION","INVALID_POSITION","NO_TARGET","NO_ELEMENTS"],preconditions:[{condition:"Command has content and position arguments",errorCode:"MISSING_ARGUMENTS",message:"put requires arguments"},{condition:"Content to put is specified",errorCode:"MISSING_CONTENT",message:"put requires content"},{condition:"Position keyword is specified (into, before, after, etc.)",errorCode:"MISSING_POSITION",message:"put requires position keyword"}],recoveryHints:{MISSING_ARGUMENTS:"Use syntax: put <content> into/before/after <target>",MISSING_CONTENT:"Add content to put (string, element, or expression)",MISSING_POSITION:"Add position keyword: into, before, after, at start of, at end of",INVALID_POSITION:"Valid positions: into, before, after, at start of, at end of",NO_TARGET:'Ensure target element exists or use "me" reference',NO_ELEMENTS:"Check that the selector matches existing elements"}},Rm={action:"set",description:"Set a property or variable to a value",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The property or variable to set",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ja:"\u3092",ko:"\uB97C",tr:"i",ar:"",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta",hi:"\u0915\u094B"}},{role:"patient",description:"The value to set",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\xE0",de:"auf",id:"ke",ja:"\u306B",ko:"\uC5D0",tr:"e",ar:"\u0625\u0644\u0649",sw:"kwenye",tl:"sa",bn:"\u09A4\u09C7",qu:"man",hi:"\u092E\u0947\u0902"},markerVariants:{tr:["e","a","ye","ya"]}},{role:"scope",description:"The element(s) the attribute/property is set on (defaults to me)",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3,markerOverride:{en:"on",es:"on",pt:"on",fr:"on",de:"on",it:"on",id:"on",ms:"on",sw:"on",tl:"on",zh:"on",vi:"on",ru:"on",uk:"on",pl:"on",th:"on",he:"on",ar:"on",ja:"on",ko:"on",tr:"on",hi:"on",bn:"on",qu:"on"}}],errorCodes:["MISSING_TARGET","INVALID_TARGET","MISSING_VALUE","INVALID_SYNTAX"],preconditions:[{condition:"Command has a target variable or property",errorCode:"MISSING_TARGET",message:"set command requires a target"},{condition:"Target is a valid variable or property reference",errorCode:"INVALID_TARGET",message:"set command target must be a string or object literal"},{condition:'Value is specified with "to" keyword',errorCode:"MISSING_VALUE",message:'set command requires a value (use "to" keyword)'}],recoveryHints:{MISSING_TARGET:"Add a target: set :variable to value OR set element.property to value",INVALID_TARGET:'Use local variable (:name), element property (el.prop), or "the X of Y" syntax',MISSING_VALUE:'Add "to <value>" to specify what to set',INVALID_SYNTAX:"Use syntax: set <target> to <value>"}},Nm={action:"bind",description:"Reactively bind a variable to an element or property value",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The variable to bind",required:!0,expectedTypes:["reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",it:"",id:"",ms:"",vi:"",ru:"",uk:"",pl:"",th:"",zh:"",he:"",ar:"",sw:"",tl:"",ja:"\u3092",ko:"\uB97C",tr:"i",bn:"\u0995\u09C7",qu:"ta",hi:"\u0915\u094B"}},{role:"source",description:"The element or property to bind to",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\xE0",de:"zu",it:"in",id:"ke",ms:"ke",vi:"v\xE0o",ru:"\u0432",uk:"\u0432",pl:"do",ja:"\u306B",ko:"\uC5D0",tr:"e",ar:"\u0625\u0644\u0649",zh:"\u5230",he:"\u05DC",sw:"kwa",th:"\u0E43\u0E19",tl:"sa",bn:"\u09A4\u09C7",qu:"man",hi:"\u092E\u0947\u0902"}}],errorCodes:["MISSING_TARGET","MISSING_VALUE","INVALID_SYNTAX"],recoveryHints:{MISSING_TARGET:"Add a variable to bind: bind $name to #input",MISSING_VALUE:'Add "to <element>" to specify the binding source',INVALID_SYNTAX:"Use syntax: bind <variable> to <element>"}},Am={action:"live",description:"Reactive block: re-run the body when its dependencies change",category:"control-flow",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},jm={action:"eventsource",description:"Open a Server-Sent Events stream and handle its events",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Mm={action:"socket",description:"Open a WebSocket and handle its messages",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Om={action:"worker",description:"Define a Web Worker with inline methods",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Wm={action:"intercept",description:"Service-worker fetch interception / caching strategies",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Im={action:"show",description:"Make an element visible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to show",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},Vm={action:"hide",description:"Make an element invisible",category:"dom-visibility",primaryRole:"patient",roles:[{role:"patient",description:"The element to hide",required:!0,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"Animation style (fade, slide, etc.)",required:!1,expectedTypes:["literal"],svoPosition:2,sovPosition:2}]},_m={action:"on",description:"Handle an event",category:"event",primaryRole:"event",hasBody:!0,roles:[{role:"event",description:"The event to handle",required:!0,expectedTypes:["literal"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to listen on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},qm={action:"trigger",description:"Trigger/dispatch an event",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to trigger (supports namespaced events like draggable:start)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Km={action:"wait",description:"Wait for a duration or event",category:"async",primaryRole:"duration",roles:[{role:"duration",description:"Duration or event to wait for",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},$m={action:"fetch",description:"Fetch data from a URL",category:"async",primaryRole:"source",roles:[{role:"source",description:"The URL to fetch from",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,renderOverride:{en:""}},{role:"responseType",description:"Response format (json, text, html, blob, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"as"}},{role:"method",description:"HTTP method (GET, POST, etc.)",required:!1,expectedTypes:["literal"],svoPosition:3,sovPosition:3},{role:"destination",description:"Where to store the result",required:!1,expectedTypes:["selector","reference"],svoPosition:4,sovPosition:4}]},Bm={action:"increment",description:"Increment a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to increment",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to increment by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by",es:"por",pt:"por",fr:"par",de:"um"}}]},Dm={action:"decrement",description:"Decrement a numeric value",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to decrement",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to decrement by (defaults to 1)",required:!1,expectedTypes:["literal"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by",es:"por",pt:"por",fr:"par",de:"um"}}]},Fm={action:"append",description:"Append content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to append",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to append to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},Hm={action:"prepend",description:"Prepend content to an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to prepend",required:!0,expectedTypes:["literal","selector","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to prepend to",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},Um={action:"log",description:"Log a value to the console",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The value to log",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Gm={action:"get",description:"Get a value from a source",category:"variable",primaryRole:"source",roles:[{role:"source",description:"The source to get from",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",ja:"\u3092",zh:"",ko:"\uB97C",ar:"\u0639\u0644\u0649",tr:"i",id:"",he:"\u05D0\u05EA",sw:"",tl:"",bn:"\u0995\u09C7",qu:"ta"}},{role:"destination",description:"Where to store the result (optional)",required:!1,expectedTypes:["reference"],svoPosition:2,sovPosition:1}]},Xm={action:"take",description:"Take content from a source element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The class or element to take",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to take from (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Zm={action:"make",description:"Create a new element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element type or selector to create",required:!0,expectedTypes:["literal","selector"],svoPosition:1,sovPosition:1}]},Ym={action:"halt",description:"Halt/stop execution or event propagation",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"What to halt (event, default, bubbling, etc.)",required:!1,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},Jm={action:"settle",description:"Wait for animations/transitions to settle",category:"async",primaryRole:"patient",roles:[{role:"patient",description:"The element to settle (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Qm={action:"throw",description:"Throw an error",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The error message or object to throw",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},ed={action:"send",description:"Send an event to an element",category:"event",primaryRole:"event",roles:[{role:"event",description:"The event to send",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to",ja:"\u306B",ar:"\u0625\u0644\u0649",es:"a",ko:"\uC5D0\uAC8C",zh:"\u5230",tr:"-e",pt:"para",fr:"\xE0",de:"an",id:"ke",qu:"-man",sw:"kwa"}}]},td={action:"if",description:"Conditional execution",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate",required:!0,expectedTypes:["expression","reference","selector"],svoPosition:1,sovPosition:1}]},rd={action:"unless",description:"Negated conditional execution (executes when condition is false)",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate (body executes when false)",required:!0,expectedTypes:["expression","reference","selector"],svoPosition:1,sovPosition:1}]},nd={action:"else",description:"Else branch of conditional",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},ad={action:"repeat",description:"Repeat a block of commands",category:"control-flow",primaryRole:"loopType",hasBody:!0,roles:[{role:"loopType",description:"Loop variant: forever, times, for, while, until, until-event",required:!0,expectedTypes:["literal"],svoPosition:0,sovPosition:0},{role:"quantity",description:"Number of times to repeat",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"event",description:"Event to wait for (terminates loop)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2},{role:"source",description:"Element to listen for event on",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3}],notes:'Can also use "repeat forever", "repeat until condition", or "repeat until event X from Y"'},id={action:"for",description:"Iterate over a collection",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The iteration variable",required:!0,expectedTypes:["reference","expression"],svoPosition:1,sovPosition:2},{role:"source",description:"The collection to iterate over",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"in",es:"en",fr:"en",de:"in",it:"in",pt:"dentro",id:"dalam",ms:"dalam",pl:"w",ru:"\u0432",uk:"\u0443",sw:"ndani",th:"\u0E43\u0E19",vi:"trong",ar:"\u0641\u064A",tl:"sa_loob",he:"in",zh:"\u5728"}}]},od={action:"while",description:"Loop while condition is true",category:"control-flow",primaryRole:"condition",hasBody:!0,roles:[{role:"condition",description:"The condition to check",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},sd={action:"continue",description:"Continue to next loop iteration",category:"control-flow",primaryRole:"patient",roles:[]},ld={action:"go",description:"Navigate to a URL",category:"navigation",primaryRole:"destination",roles:[{role:"destination",description:"The URL to navigate to",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"to"},renderOverride:{en:""},markerOptional:{en:!0},markerVariants:{he:["\u05D0\u05EA"],zh:["\u628A"]}}]},cd={action:"transition",description:"Transition an element with animation",category:"dom-visibility",primaryRole:"patient",omitRoleVariants:["goal"],roles:[{role:"patient",description:"The property to transition (opacity, *background-color, etc.)",required:!0,expectedTypes:["literal","expression","selector"],svoPosition:1,sovPosition:2,markerOverride:{en:"",ar:"",tl:"",sw:""}},{role:"goal",description:"The target value to transition to",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:3,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwa",bn:"\u09A4\u09C7",qu:"man",es:"a",pt:"para",fr:"\xE0",de:"zu",he:"\u05E2\u05DC",it:"in",ja:"\u306B",ko:"\uC5D0",ms:"ke",pl:"do",ru:"\u0432",th:"\u0E43\u0E19",tr:"e",uk:"\u0432",vi:"v\xE0o",zh:"\u5230",id:"ke"}},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:3,sovPosition:1},{role:"duration",description:"Transition duration (over 500ms, for 2 seconds)",required:!1,expectedTypes:["literal"],svoPosition:4,sovPosition:4,markerOverride:{en:"over"}},{role:"style",description:"Easing function (ease-in, linear, etc.)",required:!1,expectedTypes:["literal"],svoPosition:5,sovPosition:5}]},pd={action:"clone",description:"Clone an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to clone",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:2},{role:"destination",description:"Where to put the clone",required:!1,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"into"}}]},md={action:"focus",description:"Focus an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to focus (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},dd={action:"blur",description:"Remove focus from an element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to blur (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},ud={action:"empty",description:"Remove all children from an element (sets innerHTML to empty)",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to empty (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},fd={action:"open",description:"Open a dialog, details element, or popover",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to open (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:2},{role:"style",description:"Open-mode variant (modal / non-modal) for <dialog>",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"as"}}]},yd={action:"close",description:"Close a dialog, details element, or popover",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to close (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},gd={action:"select",description:"Select the contents of a text field or DOM element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element whose contents to select (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},vd={action:"clear",description:"Clear a variable, local, or input element",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The variable or element to clear (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},hd={action:"reset",description:"Reset a <form> element to its default values",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The form element to reset (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},zd={action:"breakpoint",description:"Drop into the debugger",category:"control-flow",primaryRole:"patient",roles:[],bareKeyword:!0},kd={action:"call",description:"Call a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The function to call",required:!0,expectedTypes:["expression","reference"],markerOptional:{he:!0,zh:!0},svoPosition:1,sovPosition:1}]},xd={action:"return",description:"Return a value from a function",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The value to return",required:!1,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1}]},wd={action:"js",description:"Execute raw JavaScript code",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The JavaScript code to execute",required:!1,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},bd={action:"async",description:"Execute commands asynchronously",category:"async",primaryRole:"patient",hasBody:!0,roles:[]},Sd={action:"tell",description:"Execute commands in context of another element",category:"control-flow",primaryRole:"destination",hasBody:!0,roles:[{role:"destination",description:"The element to tell",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:"",he:"\u05D0\u05EA",zh:"\u628A"}}]},Td={action:"default",description:"Set a default value for a variable",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The variable to set default for",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ar:"",tl:"",sw:"",bn:"\u0995\u09C7",qu:"ta",ja:"\u3092",ko:"\uB97C",tr:"i",hi:"\u0915\u094B",de:"",es:"",fr:"",it:"",pt:"",pl:"",ru:"",uk:"",vi:"",id:"",ms:"",th:"",zh:"\u628A",he:"\u05D0\u05EA"}},{role:"patient",description:"The default value",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwa",bn:"\u09A4\u09C7",qu:"man",ja:"\u306B",ko:"\uC5D0",tr:"e",hi:"\u092E\u0947\u0902",de:"zu",es:"a",fr:"\xE0",it:"in",pt:"para",pl:"do",ru:"\u0432",uk:"\u0432",vi:"v\xE0o",id:"ke",ms:"ke",th:"\u0E43\u0E19",zh:"\u5230",he:"\u05E2\u05DC"}}]},Ed={action:"init",description:"Initialization block that runs once",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},Pd={action:"behavior",description:"Define a reusable behavior",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[{role:"patient",description:"The behavior name (PascalCase identifier)",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},Ld={action:"install",description:"Install a behavior on an element",category:"control-flow",primaryRole:"patient",roles:[{role:"patient",description:"The behavior name to install",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"Element to install on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Cd={action:"measure",description:"Measure element dimensions (x, y, width, height, etc.)",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"Property to measure (x, y, width, height, top, left, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"source",description:"Element to measure (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:2,markerOverride:{en:"of"}}]},Rd={action:"swap",description:"Swap DOM content using various strategies (innerHTML, outerHTML, delete, etc.)",category:"dom-content",primaryRole:"destination",roles:[{role:"method",description:"The swap strategy (innerHTML, outerHTML, beforebegin, afterend, delete)",required:!1,expectedTypes:["literal"],svoPosition:1,sovPosition:3,markerOverride:{en:""}},{role:"destination",description:"The element to swap content in/for",required:!0,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"of",es:"",fr:"",pt:"",it:"",de:"",pl:"",ru:"",uk:"",id:"",ms:"",sw:"",th:"",vi:"",he:"\u05D0\u05EA",zh:"\u628A"}},{role:"patient",description:"The content to swap in (optional for delete)",required:!1,expectedTypes:["literal","expression","selector"],svoPosition:3,sovPosition:2,markerOverride:{en:"with",es:"con",fr:"avec",pt:"com",it:"con",de:"mit",pl:"z",ru:"\u0441",uk:"\u0437",id:"dengan",ms:"dengan",sw:"na",th:"\u0E14\u0E49\u0E27\u0E22",vi:"v\u1EDBi",he:"\u05E2\u05DD",zh:"\u7528"}}]},Nd={action:"morph",description:"Morph an element into another using DOM diffing",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to morph",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:1,markerOverride:{en:""}},{role:"destination",description:"The target content/element to morph into",required:!0,expectedTypes:["literal","expression","selector","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"to"}}]},Ad={action:"beep",description:"Debug output for expressions with type information",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The expression(s) to debug",required:!1,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},jd={action:"break",description:"Exit from the current loop",category:"control-flow",primaryRole:"patient",roles:[]},Md={action:"copy",description:"Copy text or element content to the clipboard",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The text or element to copy",required:!0,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Od={action:"exit",description:"Exit from the current event handler",category:"control-flow",primaryRole:"patient",roles:[],bareKeyword:!0},Wd={action:"pick",description:"Select a random element from a collection",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The items to pick from",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1},{role:"source",description:'The array to pick from (with "from" keyword)',required:!1,expectedTypes:["reference","expression"],svoPosition:2,sovPosition:2}]},Id={action:"scroll",description:"Scroll the viewport to a target element",category:"navigation",primaryRole:"destination",argSkipTokens:["of","the","top","bottom","middle","center","nearest","left","right","smoothly","instantly"],roles:[{role:"destination",description:"The element to scroll to",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"to"}}]},Uo={en:"url",es:"url",pt:"url",fr:"url",de:"url",it:"url",ja:"url",ko:"url",zh:"url",ar:"url",he:"url",hi:"url",bn:"url",tr:"url",ru:"url",uk:"url",pl:"url",id:"url",vi:"url",th:"url",ms:"url",tl:"url",sw:"url",qu:"url"},Vd={en:"partials in",es:"partials in",pt:"partials in",fr:"partials in",de:"partials in",it:"partials in",ja:"partials in",ko:"partials in",zh:"partials in",ar:"partials in",he:"partials in",hi:"partials in",bn:"partials in",tr:"partials in",ru:"partials in",uk:"partials in",pl:"partials in",id:"partials in",vi:"partials in",th:"partials in",ms:"partials in",tl:"partials in",sw:"partials in",qu:"partials in"},_d={action:"push",description:"Push a URL onto the browser history",category:"navigation",primaryRole:"patient",roles:[{role:"patient",description:"The URL to push (after the `url` keyword)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:Uo}]},qd={action:"replace",description:"Replace the current browser history entry with a URL",category:"navigation",primaryRole:"patient",roles:[{role:"patient",description:"The URL to replace with (after the `url` keyword)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:Uo}]},Kd={action:"process",description:"Process hx-partial markup in HTML content",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The HTML content (string, element, or response) to process",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:Vd}]},$d={action:"render",description:"Render a template with optional variables",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The template to render",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2},{role:"style",description:"Variables to pass to the template (with keyword)",required:!1,expectedTypes:["expression","reference"],svoPosition:2,sovPosition:1}]},He={toggle:Em,add:Pm,remove:Lm,put:Cm,set:Rm,show:Im,hide:Vm,on:_m,trigger:qm,wait:Km,fetch:$m,increment:Bm,decrement:Dm,append:Fm,prepend:Hm,log:Um,get:Gm,take:Xm,make:Zm,halt:Ym,settle:Jm,throw:Qm,send:ed,if:td,unless:rd,else:nd,repeat:ad,for:id,while:od,continue:sd,go:ld,scroll:Id,push:_d,replace:qd,process:Kd,transition:cd,clone:pd,focus:md,blur:dd,empty:ud,open:fd,close:yd,select:gd,clear:vd,reset:hd,breakpoint:zd,call:kd,return:xd,js:wd,async:bd,tell:Sd,default:Td,init:Ed,behavior:Pd,install:Ld,measure:Cd,swap:Rd,morph:Nd,beep:Ad,break:jd,copy:Md,exit:Od,pick:Wd,render:$d,bind:Nm,live:Am,eventsource:jm,socket:Mm,worker:Om,intercept:Wm,compound:{action:"compound",description:"A compound node representing chained statements",primaryRole:"patient",category:"control-flow",hasBody:!0,roles:[]}}});function Nn(n,e){let t=e==="SOV"?"sovPosition":"svoPosition";return[...n].sort((r,a)=>{let i=r[t]??99,o=a[t]??99;return i-o})}var Xo=z(()=>{"use strict"});function Zo(n,e){let t=n.markerOverride?.[e.code],r=e.roleMarkers[n.role];if(t!==void 0)return{primary:t,position:r?.position??"before",isOverride:!0};if(r&&r.primary){let a={primary:r.primary,position:r.position,isOverride:!1};return r.alternatives&&(a.alternatives=r.alternatives),a}return null}var Yo=z(()=>{"use strict"});function vr(n,e){let t,r;if(n.markerOverride&&n.markerOverride[e.code]!==void 0)t=n.markerOverride[e.code];else{let i=e.roleMarkers[n.role];i&&(t=i.primary,r=i.alternatives?[...i.alternatives]:void 0)}let a=n.markerVariants?.[e.code];if(a&&a.length>0){let i=r?[...r]:[];for(let o of a)o!==t&&!i.includes(o)&&i.push(o);r=i}return{marker:t,alternatives:r}}function tt(n,e,t){t.roles.find(a=>a.role==="scope"&&!a.required)&&(n.push({type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"scope",optional:!0,expectedTypes:["selector","reference"]}]}),e.scope={fromRole:"scope"})}function Jo(n,e,t,r,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let c=r.primary.split(/\s+/);if(c.length>1)for(let p of c)i.push({type:"literal",value:p});else{let p=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(p)}}let o=e.roleMarkers.destination;o&&i.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary}]}),i.push({type:"role",role:"patient",optional:!1});let s=e.roleMarkers.patient;if(s){let c=s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary};i.push(c)}let l=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(l),i.push(...We(n,e.roleMarkers.source)),i.push(...gr(n,e.roleMarkers.destination)),{id:`${n.action}-event-${e.code}-sov`,language:e.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`{event} ${r.primary} {destination?} {patient} ${s?.primary||""} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function Qo(n,e,t,r,a){let i=[];i.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.patient;if(o){let l=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(l)}if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let l=r.primary.split(/\s+/);if(l.length>1)for(let c of l)i.push({type:"literal",value:c});else{let c=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(c)}}let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(s),i.push(...We(n,e.roleMarkers.source)),i.push(...gr(n,e.roleMarkers.destination)),{id:`${n.action}-event-${e.code}-sov-patient-first`,language:e.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`{patient} ${o?.primary||""} {event} ${r.primary} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function es(n,e,t,r,a){let i=[];i.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.patient;if(o){let c=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(c)}let s=e.roleMarkers.destination;if(s&&(i.push({type:"role",role:"destination",optional:!1}),i.push(s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary})),i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let c=r.primary.split(/\s+/);if(c.length>1)for(let p of c)i.push({type:"literal",value:p});else{let p=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(p)}}let l=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(l),{id:`${n.action}-event-${e.code}-sov-patient-first-dest`,language:e.code,command:"on",priority:(a.basePriority??100)+40,template:{format:`{patient} ${o?.primary||""} {destination} ${s?.primary||""} {event} ${r.primary} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination"}}}}function ts(n,e,t,r,a){let i=[];i.push({type:"role",role:"event",optional:!1});let o=r.alternatives?.filter(p=>!p.includes(" ")&&p.length>1)||[];o.length>0&&i.push({type:"literal",value:o[0],alternatives:o.slice(1)});let s=e.roleMarkers.destination;s&&i.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary}]}),i.push({type:"role",role:"patient",optional:!1});let l=e.roleMarkers.patient;if(l){let p=l.alternatives?{type:"literal",value:l.primary,alternatives:l.alternatives}:{type:"literal",value:l.primary};i.push(p)}let c=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(c),i.push(...We(n,e.roleMarkers.source)),i.push(...gr(n,e.roleMarkers.destination)),{id:`${n.action}-event-${e.code}-sov-compact`,language:e.code,command:"on",priority:(a.basePriority??100)+52,template:{format:`{event}${o[0]||""} {patient} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function rs(n,e,t,r,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let s=r.primary.split(/\s+/);if(s.length>1)for(let l of s)i.push({type:"literal",value:l});else{let l=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(l)}}let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(o),{id:`${n.action}-event-${e.code}-sov-simple`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{event} ${r.primary} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{default:{type:"reference",value:"me"}}}}}function ns(n,e,t,r){let a=e.eventHandler?.temporalMarkers;if(!a||a.length===0)return null;let i=[];i.push({type:"role",role:"event",optional:!1}),e.possessive?.marker&&i.push({type:"group",optional:!0,tokens:[{type:"literal",value:e.possessive.marker}]}),i.push({type:"literal",value:a[0],alternatives:a.slice(1)}),i.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.patient;if(o?.primary){let l=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(l)}let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};return i.push(s),{id:`${n.action}-event-${e.code}-sov-temporal`,language:e.code,command:"on",priority:(r.basePriority??100)+49,template:{format:`{event} ${a[0]} {patient} ${t.primary}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"}}}}function as(n,e,t,r,a){let i=[];if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let m=r.primary.split(/\s+/);if(m.length>1)for(let d of m)i.push({type:"literal",value:d});else{let d=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(d)}}let s=[...n.roles.filter(m=>m.required)].sort((m,d)=>{let u=m.sovPosition??999,f=d.sovPosition??999;return u-f});for(let m of s){i.push({type:"role",role:m.role,optional:!1});let{marker:d,alternatives:u}=vr(m,e);if(d){let f=u?{type:"literal",value:d,alternatives:u}:{type:"literal",value:d};i.push(f)}}let l=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(l);let c=s.map(m=>`{${m.role}}`).join(" "),p={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(s.map(m=>[m.role,{fromRole:m.role}]))};return tt(i,p,n),{id:`${n.action}-event-${e.code}-sov-2role`,language:e.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`{event} ${r.primary} ${c} ${t.primary}`,tokens:i},extraction:p}}function is(n,e,t,r,a){let i=[],s=[...n.roles.filter(p=>p.required)].sort((p,m)=>{let d=p.sovPosition??999,u=m.sovPosition??999;return d-u});for(let p of s){i.push({type:"role",role:p.role,optional:!1});let{marker:m,alternatives:d}=vr(p,e);m&&i.push(d?{type:"literal",value:m,alternatives:d}:{type:"literal",value:m})}if(i.push(t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary}),i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let p=r.primary.split(/\s+/);if(p.length>1)for(let m of p)i.push({type:"literal",value:m});else i.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary})}let l=s.map(p=>`{${p.role}}`).join(" "),c={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(s.map(p=>[p.role,{fromRole:p.role}]))};return tt(i,c,n),{id:`${n.action}-event-${e.code}-sov-2role-event-last`,language:e.code,command:"on",priority:(a.basePriority??100)+40,template:{format:`${l} ${t.primary} {event} ${r.primary}`,tokens:i},extraction:c}}function os(n,e,t,r,a){let i=[],s=[...n.roles.filter(g=>g.required)].sort((g,v)=>{let b=g.sovPosition??999,E=v.sovPosition??999;return b-E}),l=s[0];i.push({type:"role",role:l.role,optional:!1});let{marker:c,alternatives:p}=vr(l,e);if(c){let g=p?{type:"literal",value:c,alternatives:p}:{type:"literal",value:c};i.push(g)}if(i.push({type:"role",role:"event",optional:!1}),r.position==="after"){let g=r.primary.split(/\s+/);if(g.length>1)for(let v of g)i.push({type:"literal",value:v});else{let v=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(v)}}let m=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(m);let d=s[1];i.push({type:"role",role:d.role,optional:!1});let{marker:u,alternatives:f}=vr(d,e);if(u){let g=f?{type:"literal",value:u,alternatives:f}:{type:"literal",value:u};i.push(g)}let y={action:{value:n.action},event:{fromRole:"event"},[l.role]:{fromRole:l.role},[d.role]:{fromRole:d.role}};return tt(i,y,n),{id:`${n.action}-event-${e.code}-sov-2role-dest-first`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{${l.role}} {event} ${r.primary} ${t.primary} {${d.role}}`,tokens:i},extraction:y}}var An=z(()=>{"use strict";Ue()});function jn(n,e,t,r,a){let i=[];if(r.position==="before"){let l=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(l)}i.push({type:"role",role:"event",optional:!1});let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o),i.push({type:"role",role:"patient",optional:!1});let s=e.roleMarkers.destination;return s&&i.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),i.push(...We(n,e.roleMarkers.source)),{id:`${n.action}-event-${e.code}-vso`,language:e.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`${r.primary} {event} ${t.primary} {patient} ${s?.primary||""} {destination?}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function ss(n,e,t,r,a){let i=[],o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o),i.push({type:"role",role:"patient",optional:!1});let s=e.roleMarkers.destination;if(s&&i.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),i.push(...We(n,e.roleMarkers.source)),r.position==="before"){let l=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(l)}return i.push({type:"role",role:"event",optional:!1}),{id:`${n.action}-event-${e.code}-vso-verb-first`,language:e.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`${t.primary} {patient} ${s?.primary||""} {destination?} ${r.primary} {event}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function ls(n,e,t,r,a){let i=[],o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o);let l=[...n.roles.filter(m=>m.required)].sort((m,d)=>{let u=m.svoPosition??999,f=d.svoPosition??999;return u-f});for(let m of l){let d,u;if(m.markerOverride&&m.markerOverride[e.code]!==void 0)d=m.markerOverride[e.code];else{let f=e.roleMarkers[m.role];f&&(d=f.primary,u=f.alternatives)}if(d){let f=u?{type:"literal",value:d,alternatives:u}:{type:"literal",value:d};i.push(f)}i.push({type:"role",role:m.role,optional:!1})}if(r.position==="before"){let m=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(m)}i.push({type:"role",role:"event",optional:!1});let c=l.map(m=>`{${m.role}}`).join(" "),p={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(l.map(m=>[m.role,{fromRole:m.role}]))};return tt(i,p,n),{id:`${n.action}-event-${e.code}-vso-verb-first-2role`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${t.primary} ${c} ${r.primary} {event}`,tokens:i},extraction:p}}function Mn(n,e,t,r,a){let i=[];if(r.position==="before"){let m=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(m)}i.push({type:"role",role:"event",optional:!1});let o=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(o);let l=[...n.roles.filter(m=>m.required)].sort((m,d)=>{let u=m.svoPosition??999,f=d.svoPosition??999;return u-f});for(let m of l){let d,u;if(m.markerOverride&&m.markerOverride[e.code]!==void 0)d=m.markerOverride[e.code];else{let f=e.roleMarkers[m.role];f&&(d=f.primary,u=f.alternatives)}if(d){let f=u?{type:"literal",value:d,alternatives:u}:{type:"literal",value:d};i.push(f)}i.push({type:"role",role:m.role,optional:!1})}let c=l.map(m=>`{${m.role}}`).join(" "),p={action:{value:n.action},event:{fromRole:"event"},...Object.fromEntries(l.map(m=>[m.role,{fromRole:m.role}]))};return tt(i,p,n),{id:`${n.action}-event-${e.code}-vso-2role`,language:e.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`${r.primary} {event} ${t.primary} ${c}`,tokens:i},extraction:p}}function cs(n,e,t,r,a){let i=[],o=e.eventHandler?.negationMarker;if(r.position==="before"){let c=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary};i.push(c)}if(o){let c=o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary};i.push(c)}i.push({type:"role",role:"event",optional:!1});let s=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};i.push(s),i.push({type:"role",role:"patient",optional:!1});let l=e.roleMarkers.destination;return l&&i.push({type:"group",optional:!0,tokens:[l.alternatives?{type:"literal",value:l.primary,alternatives:l.alternatives}:{type:"literal",value:l.primary},{type:"role",role:"destination",optional:!0}]}),i.push(...We(n,e.roleMarkers.source)),{id:`${n.action}-event-${e.code}-vso-negated`,language:e.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${r.primary} ${o?.primary||""} {event} ${t.primary} {patient} ${l?.primary||""} {destination?}`,tokens:i},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}function ps(n,e,t,r){let a=[];a.push({type:"literal",value:"and",alternatives:["then"]}),a.push({type:"role",role:"event",optional:!1});let i=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary};a.push(i),a.push({type:"role",role:"patient",optional:!1});let o=e.roleMarkers.destination;return o&&a.push({type:"group",optional:!0,tokens:[o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary},{type:"role",role:"destination",optional:!0}]}),a.push(...We(n,e.roleMarkers.source)),{id:`${n.action}-event-${e.code}-vso-proclitic`,language:e.code,command:"on",priority:(r.basePriority??100)+45,template:{format:`[proclitic?] {event} ${t.primary} {patient} ${o?.primary||""} {destination?}`,tokens:a},extraction:{action:{value:n.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...Me(n),...Oe(n)}}}var ms=z(()=>{"use strict";Ue();An()});function On(n,e,t=rt){let r=`${n.action}-${e.code}-generated`,a=t.basePriority??100,i=e.keywords[n.action];if(!i)throw new Error(`No keyword translation for '${n.action}' in ${e.code}`);let o=Ud(n,e,i),s=Wn(n,e),l=Jd(n,e,i);return{id:r,language:e.code,command:n.action,priority:a,template:{format:l,tokens:o},extraction:s}}function Bd(n,e,t=rt){if(n.roles.filter(s=>!s.required).length===0)return null;let a=n.roles.filter(s=>s.required),i={...n,roles:a};return{...On(i,e,t),id:`${n.action}-${e.code}-generated-simple`,priority:(t.basePriority??100)-5,extraction:Wn(n,e)}}function Dd(n,e,t=rt){if(e.wordOrder!=="SOV")return null;let r=n.roles.filter(s=>s.required);if(r.length!==1)return null;let a=e.keywords[n.action];if(!a)return null;let i=a.alternatives?{type:"literal",value:a.primary,alternatives:a.alternatives}:{type:"literal",value:a.primary},o=r.map(s=>({type:"role",role:s.role,optional:!1,expectedTypes:s.expectedTypes}));return{id:`${n.action}-${e.code}-generated-verb-first`,language:e.code,command:n.action,priority:(t.basePriority??100)-20,template:{format:`${a.primary} <${r[0].role}>`,tokens:[i,...o]},extraction:Wn(n,e)}}function Fd(n,e,t=rt){let r=[];if(r.push(On(n,e,t)),t.generateSimpleVariants){let a=Bd(n,e,t);a&&r.push(a)}for(let a of n.omitRoleVariants??[]){let i={...n,roles:n.roles.filter(s=>s.role!==a)},o=On(i,e,t);r.push({...o,id:`${n.action}-${e.code}-generated-no-${a}`,priority:(t.basePriority??100)-8})}if(t.generateVerbFirstVariants!==!1){let a=Dd(n,e,t);a&&r.push(a)}return r}function hr(n,e=rt){let t=[],r=Go();for(let a of r){if(!n.keywords[a.action])continue;let i=Fd(a,n,e);if(t.push(...i),n.eventHandler?.eventMarker){let o=Hd(a,n,e);t.push(...o)}}return t}function Hd(n,e,t=rt){if(!e.eventHandler||!e.eventHandler.eventMarker)return[];let r=[],a=e.eventHandler.eventMarker,i=e.keywords[n.action];if(!i)return[];if(n.roles.length===0)return[];let s=n.roles.filter(l=>l.required).length===2;if(e.wordOrder==="SOV")if(s)r.push(as(n,e,i,a,t)),r.push(os(n,e,i,a,t)),r.push(is(n,e,i,a,t));else{r.push(Jo(n,e,i,a,t)),r.push(Qo(n,e,i,a,t));let l=e.roleMarkers.destination;l&&l.primary!==a.primary&&r.push(es(n,e,i,a,t));let c=a.primary.split(/\s+/),p=a.alternatives?.some(d=>!d.includes(" ")&&d.length>1);c.length>1&&p&&r.push(ts(n,e,i,a,t)),r.push(rs(n,e,i,a,t));let m=ns(n,e,i,t);m&&r.push(m)}else e.wordOrder==="VSO"?s?(r.push(Mn(n,e,i,a,t)),r.push(ls(n,e,i,a,t))):(r.push(jn(n,e,i,a,t)),r.push(ss(n,e,i,a,t)),e.eventHandler?.negationMarker&&r.push(cs(n,e,i,a,t)),e.tokenization?.prefixes&&r.push(ps(n,e,i,t))):s?r.push(Mn(n,e,i,a,t)):r.push(jn(n,e,i,a,t));return r}function Ud(n,e,t){let r=[],a=t.alternatives?{type:"literal",value:t.primary,alternatives:t.alternatives}:{type:"literal",value:t.primary},i=Xd(n,e);switch(e.wordOrder){case"SVO":r.push(a),r.push(...i);break;case"SOV":r.push(...i),r.push(a);break;case"VSO":r.push(a),r.push(...i);break;default:r.push(a),r.push(...i)}return Gd(r)}function Gd(n){let e=[];for(let t of n){let r=e[e.length-1];if(r&&r.type==="literal"&&t.type==="literal"&&r.value===t.value){let a=[...r.alternatives??[],...t.alternatives??[]];a.length&&(e[e.length-1]={...r,alternatives:[...new Set(a)]});continue}e.push(t)}return e}function Xd(n,e){let t=[],r=Nn(n.roles,e.wordOrder);for(let a of r){let i=Zd(a,e);a.required?t.push(...i):t.push({type:"group",optional:!0,tokens:i})}return t}function Zd(n,e){let t=[],r=n.markerOverride?.[e.code],a=e.roleMarkers[n.role],i={type:"role",role:n.role,optional:!n.required,expectedTypes:n.expectedTypes};if(r!==void 0){let o=r?r.split(/\s+/).filter(Boolean):[],s=a?.position??"before",l=n.markerOptional?.[e.code]===!0,c=p=>{let m={type:"literal",value:p};t.push(l?{type:"group",optional:!0,tokens:[m]}:m)};if(s==="before"){for(let p of o)c(p);t.push(i)}else{t.push(i);for(let p of o)c(p)}}else if(a){let o=n.markerVariants?.[e.code]??[],s=()=>{let c=[...new Set([...a.alternatives??[],...o])].filter(p=>p!==a.primary);return c.length?{type:"literal",value:a.primary,alternatives:c}:{type:"literal",value:a.primary}},l=c=>{t.push(e.markersOptional||n.markerOptional?.[e.code]?{type:"group",optional:!0,tokens:[c]}:c)};a.position==="before"?(a.primary&&l(s()),t.push(i)):(t.push(i),l(s()))}else t.push(i);return t}function Yd(n,e){let t={};for(let r of n.roles){let a=r.markerOverride?.[e.code],i=e.roleMarkers[r.role];if(a!==void 0)t[r.role]=a?{marker:a}:{};else if(i&&i.primary){let o=r.markerVariants?.[e.code]??[],s=[...new Set([...i.alternatives??[],...o])].filter(l=>l!==i.primary);t[r.role]=s.length?{marker:i.primary,markerAlternatives:s}:{marker:i.primary}}else t[r.role]={}}return t}function Wn(n,e){let t=Yd(n,e),r={};for(let a of n.roles){let i=t[a.role]||{};!a.required&&a.default?r[a.role]={...i,default:a.default}:r[a.role]=i}return r}function Jd(n,e,t){let r=[],i=Nn(n.roles,e.wordOrder).map(o=>{let s=Zo(o,e),l="";return s&&s.primary?s.position==="before"?l=`${s.primary} {${o.role}}`:l=`{${o.role}} ${s.primary}`:l=`{${o.role}}`,o.required?l:`[${l}]`});switch(e.wordOrder){case"SVO":case"VSO":r.push(t.primary,...i);break;case"SOV":r.push(...i,t.primary);break;default:r.push(t.primary,...i)}return r.join(" ")}var rt,In=z(()=>{"use strict";Ue();Xo();Yo();An();ms();rt={basePriority:100,generateSimpleVariants:!0,generateAlternatives:!0}});function Qd(){return[{id:"toggle-bn-full",language:"bn",command:"toggle",priority:100,template:{format:"{patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{patient:{position:0}}},{id:"toggle-bn-simple",language:"bn",command:"toggle",priority:90,template:{format:"\u099F\u0997\u09B2 {patient}",tokens:[{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-bn-with-dest",language:"bn",command:"toggle",priority:95,template:{format:"{destination} \u098F {patient} \u0995\u09C7 \u099F\u0997\u09B2 \u0995\u09B0\u09C1\u09A8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u099F\u0997\u09B2",alternatives:["\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8"]},{type:"literal",value:"\u0995\u09B0\u09C1\u09A8"}]},extraction:{destination:{position:0},patient:{position:2}}}]}function eu(){return[{id:"toggle-en-full",language:"en",command:"toggle",priority:100,template:{format:"toggle {patient} on {target}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"on",alternatives:["from"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"on",markerAlternatives:["from"],default:{type:"reference",value:"me"}}}},{id:"toggle-en-simple",language:"en",command:"toggle",priority:90,template:{format:"toggle {patient}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function tu(){return[{id:"toggle-es-full",language:"es",command:"toggle",priority:100,template:{format:"alternar {patient} en {target}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"en",alternatives:["sobre","de"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["sobre","de"],default:{type:"reference",value:"me"}}}},{id:"toggle-es-simple",language:"es",command:"toggle",priority:90,template:{format:"alternar {patient}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function ru(){return[{id:"toggle-hi-full",language:"hi",command:"toggle",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092A\u0930 \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092A\u0930"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{marker:"\u0915\u094B",position:2}}},{id:"toggle-hi-simple",language:"hi",command:"toggle",priority:90,template:{format:"{patient} \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094B"]}]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-hi-bare",language:"hi",command:"toggle",priority:80,template:{format:"\u091F\u0949\u0917\u0932 {patient}",tokens:[{type:"literal",value:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function nu(){return[{id:"toggle-it-full",language:"it",command:"toggle",priority:100,template:{format:"commutare {patient} su {target}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"su",alternatives:["in","di"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"su",markerAlternatives:["in","di"],default:{type:"reference",value:"me"}}}},{id:"toggle-it-simple",language:"it",command:"toggle",priority:90,template:{format:"commutare {patient}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function au(){return[{id:"toggle-pl-full",language:"pl",command:"toggle",priority:100,template:{format:"prze\u0142\u0105cz {patient} na {destination}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","dla"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"na",markerAlternatives:["w","dla"],default:{type:"reference",value:"me"}}}},{id:"toggle-pl-simple",language:"pl",command:"toggle",priority:90,template:{format:"prze\u0142\u0105cz {patient}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function iu(){return[{id:"toggle-qu-sov",language:"qu",command:"toggle",priority:100,template:{format:"{patient} ta t'ikray",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{patient:{position:0}}},{id:"toggle-qu-simple",language:"qu",command:"toggle",priority:90,template:{format:"t'ikray {patient}",tokens:[{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-qu-with-dest",language:"qu",command:"toggle",priority:95,template:{format:"{destination} pi {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"pi"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}},{id:"toggle-qu-dest-man",language:"qu",command:"toggle",priority:93,template:{format:"{destination} man {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}}]}function ou(){return[{id:"toggle-ru-full",language:"ru",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-ru-simple",language:"ru",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function su(){return[{id:"toggle-th-simple",language:"th",command:"toggle",priority:100,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-th-with-dest",language:"th",command:"toggle",priority:95,template:{format:"\u0E2A\u0E25\u0E31\u0E1A {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E2A\u0E25\u0E31\u0E1A"},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}}]}function lu(){return[{id:"toggle-uk-full",language:"uk",command:"toggle",priority:100,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient} \u043D\u0430 {destination}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0434\u043B\u044F"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0434\u043B\u044F"],default:{type:"reference",value:"me"}}}},{id:"toggle-uk-simple",language:"uk",command:"toggle",priority:90,template:{format:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function cu(){return[{id:"toggle-vi-full",language:"vi",command:"toggle",priority:100,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient} tr\xEAn {target}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i","\u1EDF"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i","\u1EDF"],default:{type:"reference",value:"me"}}}},{id:"toggle-vi-simple",language:"vi",command:"toggle",priority:90,template:{format:"chuy\u1EC3n \u0111\u1ED5i {patient}",tokens:[{type:"literal",value:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["chuy\u1EC3n","b\u1EADt t\u1EAFt"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function pu(){return[{id:"toggle-zh-full",language:"zh",command:"toggle",priority:100,template:{format:"\u5207\u6362 {patient} \u5728 {target}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"],default:{type:"reference",value:"me"}}}},{id:"toggle-zh-simple",language:"zh",command:"toggle",priority:90,template:{format:"\u5207\u6362 {patient}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-ba",language:"zh",command:"toggle",priority:95,template:{format:"\u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{patient:{marker:"\u628A"},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-full-ba",language:"zh",command:"toggle",priority:98,template:{format:"\u5728 {target} \u628A {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4E8E"]},{type:"role",role:"destination"},{type:"literal",value:"\u628A"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4E8E"]},patient:{marker:"\u628A"}}}]}function zr(n){switch(n){case"bn":return Qd();case"en":return eu();case"es":return tu();case"hi":return ru();case"it":return nu();case"pl":return au();case"qu":return iu();case"ru":return ou();case"th":return su();case"uk":return lu();case"vi":return cu();case"zh":return pu();default:return[]}}var Vn=z(()=>{"use strict"});function mu(){return[{id:"put-bn-before",language:"bn",command:"put",priority:105,template:{format:"{patient} before {destination} \u0995\u09C7 \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-bn-after",language:"bn",command:"put",priority:105,template:{format:"{patient} after {destination} \u0995\u09C7 \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"},{type:"literal",value:"\u0995\u09C7"},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-bn-full",language:"bn",command:"put",priority:100,template:{format:"{patient} \u0995\u09C7 {destination} \u098F \u09B0\u09BE\u0996\u09C1\u09A8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09C7"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]},{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"\u098F",position:2}}},{id:"put-bn-simple",language:"bn",command:"put",priority:90,template:{format:"\u09B0\u09BE\u0996\u09C1\u09A8 {patient} {destination} \u098F",tokens:[{type:"literal",value:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"]},{type:"role",role:"patient"},{type:"role",role:"destination"},{type:"literal",value:"\u098F",alternatives:["\u09A4\u09C7"]}]},extraction:{patient:{position:1},destination:{position:2}}}]}function du(){return[{id:"put-en-into",language:"en",command:"put",priority:100,template:{format:"put {patient} into {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"into",alternatives:["in","to"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"into",markerAlternatives:["in","to"]}}},{id:"put-en-before",language:"en",command:"put",priority:95,template:{format:"put {patient} before {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-en-after",language:"en",command:"put",priority:95,template:{format:"put {patient} after {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-en-at-end",language:"en",command:"put",priority:96,template:{format:"put {patient} at end of {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"at"},{type:"literal",value:"end"},{type:"literal",value:"of"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{position:5},manner:{default:{type:"literal",value:"at end of"}}}},{id:"put-en-at-start",language:"en",command:"put",priority:96,template:{format:"put {patient} at start of {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"at"},{type:"literal",value:"start"},{type:"literal",value:"of"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{position:5},manner:{default:{type:"literal",value:"at start of"}}}}]}function uu(){return[{id:"put-es-full",language:"es",command:"put",priority:100,template:{format:"poner {patient} en {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar","put"]},{type:"role",role:"patient"},{type:"literal",value:"en",alternatives:["dentro de","a"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["dentro de","a"]}}},{id:"put-es-before",language:"es",command:"put",priority:95,template:{format:"poner {patient} antes de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"antes de",alternatives:["antes"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"antes de",markerAlternatives:["antes"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-es-after",language:"es",command:"put",priority:95,template:{format:"poner {patient} despu\xE9s de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"despu\xE9s de",alternatives:["despues de","despu\xE9s"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"despu\xE9s de",markerAlternatives:["despues de","despu\xE9s"]},manner:{default:{type:"literal",value:"after"}}}}]}function fu(){return[{id:"put-hi-before",language:"hi",command:"put",priority:106,template:{format:"{patient} before {destination} \u0915\u094B \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-hi-after",language:"hi",command:"put",priority:106,template:{format:"{patient} after {destination} \u0915\u094B \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-hi-verb-medial",language:"hi",command:"put",priority:105,template:{format:"{patient} \u0915\u094B \u0930\u0916\u0947\u0902 {destination} \u092E\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"put-hi-full",language:"hi",command:"put",priority:100,template:{format:"{patient} \u0915\u094B {destination} \u092E\u0947\u0902 \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094B"},{type:"role",role:"destination"},{type:"literal",value:"\u092E\u0947\u0902"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"\u092E\u0947\u0902",position:3}}},{id:"put-hi-simple",language:"hi",command:"put",priority:90,template:{format:"{patient} \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"put-hi-bare",language:"hi",command:"put",priority:80,template:{format:"\u0930\u0916\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}]}function yu(){return[{id:"put-id-full",language:"id",command:"put",priority:100,template:{format:"taruh {patient} ke dalam {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke"},{type:"literal",value:"dalam",alternatives:["di"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:4}}},{id:"put-id-simple-ke",language:"id",command:"put",priority:95,template:{format:"taruh {patient} ke {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["di","pada"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-id-di",language:"id",command:"put",priority:90,template:{format:"taruh {patient} di {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"di"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}}]}function gu(){return[{id:"put-it-full",language:"it",command:"put",priority:100,template:{format:"mettere {patient} in {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"in",alternatives:["dentro","nel"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"in",markerAlternatives:["dentro","nel"]}}},{id:"put-it-before",language:"it",command:"put",priority:105,template:{format:"mettere {patient} prima {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"literal",value:"prima"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"prima"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-it-after",language:"it",command:"put",priority:105,template:{format:"mettere {patient} dopo {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"literal",value:"dopo"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"dopo"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-it-simple",language:"it",command:"put",priority:90,template:{format:"mettere {patient}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}]}function vu(){return[{id:"put-pl-full",language:"pl",command:"put",priority:100,template:{format:"umie\u015B\u0107 {patient} w {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw","w\u0142\xF3\u017C","wloz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"w",alternatives:["do","na"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"w",markerAlternatives:["do","na"]}}},{id:"put-pl-before",language:"pl",command:"put",priority:105,template:{format:"umie\u015B\u0107 {patient} przed {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"przed"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"przed"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-pl-after",language:"pl",command:"put",priority:105,template:{format:"umie\u015B\u0107 {patient} po {destination}",tokens:[{type:"literal",value:"umie\u015B\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"po"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"po"},manner:{default:{type:"literal",value:"after"}}}}]}function hu(){return[{id:"put-ru-full",language:"ru",command:"put",priority:100,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0432\u043E","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0432\u043E","\u043D\u0430"]}}},{id:"put-ru-before",language:"ru",command:"put",priority:105,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-ru-after",language:"ru",command:"put",priority:105,template:{format:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C {patient} \u043F\u043E\u0441\u043B\u0435 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u043E\u0441\u043B\u0435"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u043E\u0441\u043B\u0435"},manner:{default:{type:"literal",value:"after"}}}}]}function zu(){return[{id:"put-th-full",language:"th",command:"put",priority:100,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E43\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E43\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E43\u0E19",position:3}}},{id:"put-th-before",language:"th",command:"put",priority:105,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E01\u0E48\u0E2D\u0E19 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E01\u0E48\u0E2D\u0E19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E01\u0E48\u0E2D\u0E19"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-th-after",language:"th",command:"put",priority:105,template:{format:"\u0E43\u0E2A\u0E48 {patient} \u0E2B\u0E25\u0E31\u0E07 {destination}",tokens:[{type:"literal",value:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0E2B\u0E25\u0E31\u0E07"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0E2B\u0E25\u0E31\u0E07"},manner:{default:{type:"literal",value:"after"}}}}]}function ku(){return[{id:"put-uk-full",language:"uk",command:"put",priority:100,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0443","\u043D\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0443","\u043D\u0430"]}}},{id:"put-uk-before",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043E"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043E"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-uk-after",language:"uk",command:"put",priority:95,template:{format:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438 {patient} \u043F\u0456\u0441\u043B\u044F {destination}",tokens:[{type:"literal",value:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043F\u0456\u0441\u043B\u044F"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043F\u0456\u0441\u043B\u044F"},manner:{default:{type:"literal",value:"after"}}}}]}function xu(){return[{id:"put-vi-into",language:"vi",command:"put",priority:100,template:{format:"\u0111\u1EB7t {patient} v\xE0o {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"v\xE0o",alternatives:["v\xE0o trong"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"v\xE0o",markerAlternatives:["v\xE0o trong"]}}},{id:"put-vi-before",language:"vi",command:"put",priority:105,template:{format:"\u0111\u1EB7t {patient} tr\u01B0\u1EDBc {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"tr\u01B0\u1EDBc",markerAlternatives:["tr\u01B0\u1EDBc khi"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-vi-after",language:"vi",command:"put",priority:105,template:{format:"\u0111\u1EB7t {patient} sau {target}",tokens:[{type:"literal",value:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"]},{type:"role",role:"patient"},{type:"literal",value:"sau",alternatives:["sau khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"sau",markerAlternatives:["sau khi"]},manner:{default:{type:"literal",value:"after"}}}}]}function wu(){return[...["before","after"].map(n=>{let e=n==="before"?"\xF1awpaqpi":"qhepapi";return{id:`put-qu-${n}`,language:"qu",command:"put",priority:105,template:{format:`{patient} ${e} {destination} ta churay`,tokens:[{type:"role",role:"patient"},{type:"literal",value:e,alternatives:[n]},{type:"role",role:"destination"},{type:"group",optional:!0,tokens:[{type:"literal",value:"ta"}]},{type:"literal",value:"churay",alternatives:["tiyachiy"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:n}}}}}),{id:"put-qu-patient-first",language:"qu",command:"put",priority:96,template:{format:"{patient} ta {destination} man churay",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"literal",value:"churay",alternatives:["tiyachiy"]}]},extraction:{patient:{position:0},destination:{position:2}}}]}function bu(){return[{id:"put-zh-full",language:"zh",command:"put",priority:100,template:{format:"\u653E\u7F6E {patient} \u5230 {destination}",tokens:[{type:"literal",value:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165","\u7F6E\u5165","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u5230",alternatives:["\u5728","\u4E8E","\u5165"]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-zh-ba",language:"zh",command:"put",priority:95,template:{format:"\u628A {patient} \u653E\u7F6E \u5230 {destination}",tokens:[{type:"literal",value:"\u628A"},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u653E\u7F6E",alternatives:["\u653E\u5230","\u653E\u5728","\u653E\u5165","\u653E","\u7F6E\u5165"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5230",alternatives:["\u5728","\u4E8E","\u5165"]}]},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{marker:"\u5230",markerAlternatives:["\u5728","\u4E8E","\u5165"]}}}]}function qn(n,e,t,r){let a=_n.find(o=>o.lang===n);if(!a)return!1;let i=(o,s)=>(o??"").toLowerCase()===s.toLowerCase();return i(e,a.end)&&i(t,a.at)&&i(r,a.of)}function ds(n,e){let t=_n.find(a=>a.lang===n);if(!t)return!1;let r=e.toLowerCase();return r===t.at.toLowerCase()||r===t.of.toLowerCase()||r===t.end.toLowerCase()}function Tu(n){let e=_n.find(i=>i.lang===n);if(!e)return[];let t=[],r=e.verbAlts?{type:"literal",value:e.verb,alternatives:e.verbAlts}:{type:"literal",value:e.verb},a=i=>{t.push({type:"literal",value:i})};return e.sov?(t.push({type:"role",role:"patient"}),a(e.at),a(e.end),a(e.of),t.push({type:"role",role:"destination"}),e.objMarker&&t.push({type:"literal",value:e.objMarker}),t.push(r)):(t.push(r),e.patientPrefix&&t.push({type:"literal",value:e.patientPrefix}),t.push({type:"role",role:"patient"}),a(e.at),a(e.end),a(e.of),t.push({type:"role",role:"destination"})),[{id:`put-${e.lang}-at-end`,language:e.lang,command:"put",priority:110,template:{format:`put {patient} ${e.at} ${e.end} ${e.of} {destination}`,tokens:t},extraction:{manner:{default:{type:"literal",value:"at end of"}}}}]}function Eu(){return["before","after"].map(n=>{let e=n==="before"?"\u524D\u306B":"\u5F8C\u306B",t=n==="before"?"\u524D":"\u5F8C";return{id:`put-ja-${n}`,language:"ja",command:"put",priority:105,template:{format:`{patient} ${e} {destination} \u3092 \u7F6E\u304F`,tokens:[{type:"role",role:"patient"},{type:"literal",value:e,alternatives:[t]},{type:"role",role:"destination"},{type:"literal",value:"\u3092"},{type:"literal",value:"\u7F6E\u304F",alternatives:["\u5165\u308C\u308B"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:n}}}}})}function Pu(){return["before","after"].map(n=>{let e=n==="before"?"\uC804\uC5D0":"\uD6C4\uC5D0";return{id:`put-ko-${n}`,language:"ko",command:"put",priority:105,template:{format:`{patient} ${e} {destination} \uB97C \uB123\uB2E4`,tokens:[{type:"role",role:"patient"},{type:"literal",value:e},{type:"role",role:"destination"},{type:"literal",value:"\uB97C",alternatives:["\uC744"]},{type:"literal",value:"\uB123\uB2E4",alternatives:["\uB123\uAE30","\uB193\uAE30"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:n}}}}})}function Lu(){let n=(e,t)=>({id:`put-tr-${e}`,language:"tr",command:"put",priority:105,template:{format:`{patient} ${t} {destination} i koy`,tokens:[{type:"role",role:"patient"},{type:"literal",value:t},{type:"role",role:"destination"},{type:"group",optional:!0,tokens:[{type:"literal",value:"i",alternatives:["\u0131","u","\xFC","yi","y\u0131","yu","y\xFC"]}]},{type:"literal",value:"koy",alternatives:["koymak"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:e}}}});return[n("before","\xF6nce"),n("after","sonra")]}function Cu(n){let e=Su.find(t=>t.lang===n);return e?["before","after"].map(t=>{let r=e[t],a=[e.verbAlts?{type:"literal",value:e.verb,alternatives:e.verbAlts}:{type:"literal",value:e.verb}];return e.patientPrefix&&a.push(e.patientPrefixOptional?{type:"group",optional:!0,tokens:[{type:"literal",value:e.patientPrefix}]}:{type:"literal",value:e.patientPrefix}),a.push({type:"role",role:"patient"},{type:"literal",value:r},{type:"role",role:"destination"}),{id:`put-${e.lang}-${t}`,language:e.lang,command:"put",priority:95,template:{format:`${e.verb} {patient} ${r} {destination}`,tokens:a},extraction:{patient:{position:e.patientPrefix&&!e.patientPrefixOptional?2:1},destination:{marker:r},manner:{default:{type:"literal",value:t}}}}}):[]}function kr(n){let e=Cu(n),t=Tu(n);switch(n){case"bn":return[...mu(),...t];case"en":return du();case"es":return[...uu(),...t];case"hi":return[...fu(),...t];case"id":return[...yu(),...e,...t];case"it":return[...gu(),...t];case"ja":return[...Eu(),...t];case"ko":return[...Pu(),...t];case"tr":return[...Lu(),...t];case"pl":return[...vu(),...t];case"ru":return[...hu(),...t];case"qu":return[...wu(),...t];case"th":return[...zu(),...t];case"uk":return[...ku(),...t];case"vi":return[...xu(),...t];case"zh":return[...bu(),...e,...t];default:return[...e,...t]}}var Su,_n,kt=z(()=>{"use strict";Su=[{lang:"de",verb:"setzen",before:"vor",after:"nach"},{lang:"fr",verb:"mettre",before:"avant",after:"apr\xE8s"},{lang:"he",verb:"\u05E9\u05D9\u05DD",patientPrefix:"\u05D0\u05EA",before:"\u05DC\u05E4\u05E0\u05D9",after:"\u05D0\u05D7\u05E8\u05D9"},{lang:"id",verb:"taruh",verbAlts:["letakkan","masukkan","tempatkan"],before:"sebelum",after:"setelah"},{lang:"ms",verb:"letak",before:"sebelum",after:"selepas"},{lang:"pt",verb:"colocar",before:"antes",after:"depois"},{lang:"sw",verb:"weka",before:"kabla",after:"baada"},{lang:"zh",verb:"\u653E\u7F6E",verbAlts:["\u653E","\u653E\u5165"],patientPrefix:"\u628A",patientPrefixOptional:!0,before:"\u4E4B\u524D",after:"\u4E4B\u540E"}],_n=[{lang:"es",verb:"poner",verbAlts:["pon","colocar","put"],at:"en",end:"fin",of:"de"},{lang:"fr",verb:"mettre",at:"\xE0",end:"fin",of:"de"},{lang:"pt",verb:"colocar",at:"em",end:"fim",of:"de"},{lang:"it",verb:"mettere",at:"a",end:"fine",of:"di"},{lang:"de",verb:"setzen",at:"bei",end:"ende",of:"von"},{lang:"sw",verb:"weka",at:"katika",end:"mwisho",of:"ya"},{lang:"id",verb:"taruh",verbAlts:["letakkan","masukkan","tempatkan"],at:"di",end:"akhir",of:"dari"},{lang:"ms",verb:"letak",at:"di",end:"tamat",of:"daripada"},{lang:"vi",verb:"\u0111\u1EB7t",at:"t\u1EA1i",end:"k\u1EBFt th\xFAc",of:"c\u1EE7a"},{lang:"pl",verb:"umie\u015B\u0107",at:"przy",end:"koniec",of:"z"},{lang:"ru",verb:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",at:"\u0443",end:"\u043A\u043E\u043D\u0435\u0446",of:"\u0438\u0437"},{lang:"uk",verb:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",at:"\u0432",end:"\u043A\u0456\u043D\u0435\u0446\u044C",of:"\u0437"},{lang:"th",verb:"\u0E43\u0E2A\u0E48",at:"\u0E17\u0E35\u0E48",end:"\u0E08\u0E1A",of:"\u0E02\u0E2D\u0E07"},{lang:"tl",verb:"ilagay",at:"sa",end:"wakas",of:"ng"},{lang:"ar",verb:"\u0636\u0639",at:"\u0639\u0646\u062F",end:"\u0627\u0644\u0646\u0647\u0627\u064A\u0629",of:"\u0645\u0646"},{lang:"zh",verb:"\u653E\u7F6E",verbAlts:["\u653E","\u653E\u5165"],patientPrefix:"\u628A",at:"\u5728",end:"\u7ED3\u675F",of:"\u7684"},{lang:"he",verb:"\u05E9\u05D9\u05DD",patientPrefix:"\u05D0\u05EA",at:"at",end:"\u05E1\u05D5\u05E3",of:"of"},{lang:"tr",verb:"koy",sov:!0,objMarker:"i",at:"de",end:"son",of:"nin"},{lang:"ja",verb:"\u7F6E\u304F",sov:!0,objMarker:"\u3092",at:"\u3067",end:"\u7D42\u308F\u308A",of:"\u306E"},{lang:"ko",verb:"\uB123\uB2E4",sov:!0,objMarker:"\uB97C",at:"\uC5D0",end:"\uB05D",of:"\uC758"},{lang:"hi",verb:"\u0930\u0916\u0947\u0902",verbAlts:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"],sov:!0,objMarker:"\u0915\u094B",at:"\u092A\u0930",end:"\u0938\u092E\u093E\u092A\u094D\u0924",of:"\u0915\u093E"},{lang:"bn",verb:"\u09B0\u09BE\u0996\u09C1\u09A8",verbAlts:["\u09B0\u09BE\u0996"],sov:!0,objMarker:"\u0995\u09C7",at:"\u098F",end:"\u09B6\u09C7\u09B7",of:"\u09B0"},{lang:"qu",verb:"churay",sov:!0,objMarker:"ta",at:"pi",end:"tukuy",of:"pa"}]});function us(n,e){return Nu[e]?.has(n)?n:Ru[e]?.[n]??n}function Au(){return[{id:"event-handler-bn-sov",language:"bn",command:"on",priority:100,template:{format:"{event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{event:{position:0},action:{position:2}}},{id:"event-handler-bn-with-source",language:"bn",command:"on",priority:95,template:{format:"{source} \u09A5\u09C7\u0995\u09C7 {event} \u09A4\u09C7 {action}",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09A5\u09C7\u0995\u09C7"},{type:"role",role:"event"},{type:"literal",value:"\u09A4\u09C7",alternatives:["\u098F"]},{type:"role",role:"action"}]},extraction:{source:{position:0},event:{marker:"\u09A4\u09C7",position:2},action:{position:4}}},{id:"event-handler-bn-when",language:"bn",command:"on",priority:90,template:{format:"\u09AF\u0996\u09A8 {event} {action}",tokens:[{type:"literal",value:"\u09AF\u0996\u09A8"},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}}]}function ju(){return[{id:"event-de-wenn-source",language:"de",command:"on",priority:115,template:{format:"wenn {event} von {source} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-wenn",language:"de",command:"on",priority:105,template:{format:"wenn {event} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-bei-source",language:"de",command:"on",priority:110,template:{format:"bei {event} von {source} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-bei",language:"de",command:"on",priority:100,template:{format:"bei {event} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-auf",language:"de",command:"on",priority:95,template:{format:"auf {event} {body}",tokens:[{type:"literal",value:"auf"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-im-falle",language:"de",command:"on",priority:90,template:{format:"im Falle von {event} {body}",tokens:[{type:"literal",value:"im Falle von",alternatives:["im Fall von"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Mu(){return[{id:"event-en-when-source",language:"en",command:"on",priority:115,template:{format:"when {event} from {source} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-when",language:"en",command:"on",priority:105,template:{format:"when {event} {body}",tokens:[{type:"literal",value:"when"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-source",language:"en",command:"on",priority:110,template:{format:"on {event} from {source} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-standard",language:"en",command:"on",priority:100,template:{format:"on {event} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-upon",language:"en",command:"on",priority:98,template:{format:"upon {event} {body}",tokens:[{type:"literal",value:"upon"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-if",language:"en",command:"on",priority:95,template:{format:"if {event} {body}",tokens:[{type:"literal",value:"if"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Ou(){return[{id:"event-es-native-al-source",language:"es",command:"on",priority:115,template:{format:"al {event} en {source} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-cuando-source",language:"es",command:"on",priority:112,template:{format:"cuando {event} en {source} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-native-al",language:"es",command:"on",priority:108,template:{format:"al {event} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-standard",language:"es",command:"on",priority:100,template:{format:"en {event} {body}",tokens:[{type:"literal",value:"en",alternatives:["al","cuando"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-source",language:"es",command:"on",priority:110,template:{format:"en {event} desde {source} {body}",tokens:[{type:"literal",value:"en",alternatives:["al"]},{type:"role",role:"event"},{type:"literal",value:"desde",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"desde",markerAlternatives:["de"]}}},{id:"event-es-when",language:"es",command:"on",priority:95,template:{format:"cuando {event} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-conditional-si",language:"es",command:"on",priority:85,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Wu(){return[{id:"event-fr-quand-source",language:"fr",command:"on",priority:115,template:{format:"quand {event} de {source} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-quand",language:"fr",command:"on",priority:105,template:{format:"quand {event} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-sur-source",language:"fr",command:"on",priority:110,template:{format:"sur {event} de {source} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-sur",language:"fr",command:"on",priority:100,template:{format:"sur {event} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-si",language:"fr",command:"on",priority:95,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-a",language:"fr",command:"on",priority:90,template:{format:"\xE0 {event} {body}",tokens:[{type:"literal",value:"\xE0",alternatives:["au"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Iu(){return[{id:"event-hi-standard",language:"hi",command:"on",priority:100,template:{format:"{event} \u092A\u0930",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{event:{position:0}}},{id:"event-hi-with-source",language:"hi",command:"on",priority:95,template:{format:"{source} \u0938\u0947 {event} \u092A\u0930",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"role",role:"event"},{type:"literal",value:"\u092A\u0930",alternatives:["\u092E\u0947\u0902","\u091C\u092C"]}]},extraction:{source:{position:0},event:{marker:"\u0938\u0947",position:2}}},{id:"event-hi-bare",language:"hi",command:"on",priority:80,template:{format:"{event}",tokens:[{type:"role",role:"event"}]},extraction:{event:{position:0}}}]}function Vu(){return[{id:"event-id-ketika-source",language:"id",command:"on",priority:115,template:{format:"ketika {event} dari {source} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-ketika",language:"id",command:"on",priority:105,template:{format:"ketika {event} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-pada-source",language:"id",command:"on",priority:110,template:{format:"pada {event} dari {source} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-pada",language:"id",command:"on",priority:100,template:{format:"pada {event} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-jika",language:"id",command:"on",priority:95,template:{format:"jika {event} {body}",tokens:[{type:"literal",value:"jika",alternatives:["kalau","apabila"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-bila",language:"id",command:"on",priority:90,template:{format:"bila {event} {body}",tokens:[{type:"literal",value:"bila"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function _u(){return[{id:"event-handler-it-full",language:"it",command:"on",priority:100,template:{format:"su {event} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-it-from",language:"it",command:"on",priority:95,template:{format:"su {event} da {source} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"da",markerAlternatives:["di"]},action:{position:-1}}}]}function qu(){return[{id:"event-ms-apabila",language:"ms",command:"on",priority:100,template:{format:"apabila {event} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-ms-apabila-source",language:"ms",command:"on",priority:110,template:{format:"apabila {event} dari {source} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}}]}function Ku(){return[{id:"event-handler-pl-full",language:"pl",command:"on",priority:100,template:{format:"gdy {event} na {source}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","przy","z"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"na",markerAlternatives:["w","przy","z"],default:{type:"reference",value:"me"}}}},{id:"event-handler-pl-simple",language:"pl",command:"on",priority:90,template:{format:"gdy {event}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function $u(){return[{id:"event-pt-ao-source",language:"pt",command:"on",priority:115,template:{format:"ao {event} em {source} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"},{type:"literal",value:"em",alternatives:["de","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"em",markerAlternatives:["de","no","na"]}}},{id:"event-pt-quando-source",language:"pt",command:"on",priority:110,template:{format:"quando {event} de {source} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["em","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["em","no","na"]}}},{id:"event-pt-ao",language:"pt",command:"on",priority:105,template:{format:"ao {event} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\xE0"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-quando",language:"pt",command:"on",priority:100,template:{format:"quando {event} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-em",language:"pt",command:"on",priority:95,template:{format:"em {event} {body}",tokens:[{type:"literal",value:"em",alternatives:["no","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-se",language:"pt",command:"on",priority:90,template:{format:"se {event} {body}",tokens:[{type:"literal",value:"se"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Bu(){return[{id:"event-qu-maykama",language:"qu",command:"on",priority:115,template:{format:"maykama {event} {body}",tokens:[{type:"literal",value:"maykama"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-qu-kaqtin",language:"qu",command:"on",priority:105,template:{format:"{event} kaqtin {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"kaqtin",alternatives:["qtin","ptin"]}]},extraction:{event:{position:0}}},{id:"event-qu-standard",language:"qu",command:"on",priority:100,template:{format:"{event} pi {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"pi",alternatives:["kaqpi","kaqpim"]}]},extraction:{event:{position:0}}}]}function Du(){return[{id:"event-handler-ru-full",language:"ru",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u043E\u0442"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u043E\u0442"],default:{type:"reference",value:"me"}}}},{id:"event-handler-ru-simple",language:"ru",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u0433\u0434\u0430"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Fu(){return[{id:"event-sw-unapo-source",language:"sw",command:"on",priority:115,template:{format:"unapo {event} kutoka {source} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-unapo",language:"sw",command:"on",priority:105,template:{format:"unapo {event} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-kwa-source",language:"sw",command:"on",priority:110,template:{format:"kwa {event} kutoka {source} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-kwa",language:"sw",command:"on",priority:100,template:{format:"kwa {event} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-ikiwa",language:"sw",command:"on",priority:95,template:{format:"ikiwa {event} {body}",tokens:[{type:"literal",value:"ikiwa",alternatives:["kama"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-baada-ya",language:"sw",command:"on",priority:90,template:{format:"baada ya {event} {body}",tokens:[{type:"literal",value:"baada ya"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Hu(){return[{id:"event-handler-th-svo",language:"th",command:"on",priority:100,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-th-with-source",language:"th",command:"on",priority:95,template:{format:"\u0E40\u0E21\u0E37\u0E48\u0E2D {event} \u0E08\u0E32\u0E01 {source} {action}",tokens:[{type:"literal",value:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"]},{type:"role",role:"event"},{type:"literal",value:"\u0E08\u0E32\u0E01"},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"\u0E08\u0E32\u0E01",position:3},action:{position:4}}}]}function Kn(n){let e=n.verbAlts?{type:"literal",value:n.verb,alternatives:n.verbAlts}:{type:"literal",value:n.verb},t=n.eventMarkerAlts?{type:"literal",value:n.eventMarker,alternatives:n.eventMarkerAlts}:{type:"literal",value:n.eventMarker};return["before","after"].map(r=>{let a={type:"literal",value:r==="before"?n.before:n.after},i={type:"role",role:"patient"},o={type:"role",role:"destination"},s={type:"role",role:"event"},l=n.order==="verb-first"?[e,i,a,o,t,s]:[t,s,e,i,a,o],c=n.order==="verb-first"?{action:{value:"put"},patient:{position:1},destination:{position:3},event:{position:5},manner:{default:{type:"literal",value:r}}}:{action:{value:"put"},event:{position:1},patient:{position:3},destination:{position:5},manner:{default:{type:"literal",value:r}}};return{id:`put-event-${n.lang}-vso-${r}`,language:n.lang,command:"on",priority:160,template:{format:`${n.lang} put ${r}`,tokens:l},extraction:c}})}function Uu(){return[...Kn({lang:"tl",verb:"ilagay",verbAlts:["maglagay"],eventMarker:"kapag",eventMarkerAlts:["sa"],before:"bago",after:"matapos",order:"verb-first"}),{id:"event-tl-kapag-source",language:"tl",command:"on",priority:115,template:{format:"kapag {event} mula_sa {source} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["sa"]},{type:"role",role:"event"},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"mula_sa"}}},{id:"event-tl-kapag",language:"tl",command:"on",priority:105,template:{format:"kapag {event} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["sa"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Gu(){return[...Kn({lang:"uk",verb:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",verbAlts:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],eventMarker:"\u043F\u0440\u0438",eventMarkerAlts:["\u043A\u043E\u043B\u0438"],before:"\u0434\u043E",after:"\u043F\u0456\u0441\u043B\u044F",order:"event-first"}),{id:"event-handler-uk-full",language:"uk",command:"on",priority:100,template:{format:"\u043F\u0440\u0438 {event} \u043D\u0430 {source}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043D\u0430",alternatives:["\u0432","\u0432\u0456\u0434"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043D\u0430",markerAlternatives:["\u0432","\u0432\u0456\u0434"],default:{type:"reference",value:"me"}}}},{id:"event-handler-uk-simple",language:"uk",command:"on",priority:90,template:{format:"\u043F\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043F\u0440\u0438",alternatives:["\u043A\u043E\u043B\u0438"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Xu(){return[{id:"event-handler-vi-full",language:"vi",command:"on",priority:100,template:{format:"khi {event} tr\xEAn {source}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\xEAn",alternatives:["t\u1EA1i"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"tr\xEAn",markerAlternatives:["t\u1EA1i"],default:{type:"reference",value:"me"}}}},{id:"event-handler-vi-simple",language:"vi",command:"on",priority:90,template:{format:"khi {event}",tokens:[{type:"literal",value:"khi",alternatives:["l\xFAc","tr\xEAn"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}]}function Zu(){return[{id:"event-zh-temporal-source",language:"zh",command:"on",priority:115,template:{format:"{event} \u7684\u65F6\u5019 \u4ECE {source} {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:0},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-source",language:"zh",command:"on",priority:110,template:{format:"\u5F53 {event} \u4ECE {source} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"},{type:"literal",value:"\u4ECE",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"\u4ECE",markerAlternatives:["\u5728"]}}},{id:"event-zh-immediate",language:"zh",command:"on",priority:108,template:{format:"\u4E00 {event} \u5C31 {body}",tokens:[{type:"literal",value:"\u4E00"},{type:"role",role:"event"},{type:"literal",value:"\u5C31"}]},extraction:{event:{position:1}}},{id:"event-zh-temporal",language:"zh",command:"on",priority:105,template:{format:"{event} \u7684\u65F6\u5019 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65F6\u5019",alternatives:["\u65F6\u5019","\u65F6"]}]},extraction:{event:{position:0}}},{id:"event-zh-whenever",language:"zh",command:"on",priority:103,template:{format:"\u6BCF\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u6BCF\u5F53",alternatives:["\u6BCF\u6B21"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-circumfix",language:"zh",command:"on",priority:106,template:{format:"\u5F53 {event} \u65F6 {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"},{type:"literal",value:"\u65F6",alternatives:["\u7684\u65F6\u5019","\u65F6\u5019"]}]},extraction:{event:{position:1}}},{id:"event-zh-standard",language:"zh",command:"on",priority:100,template:{format:"\u5F53 {event} {body}",tokens:[{type:"literal",value:"\u5F53"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-completion",language:"zh",command:"on",priority:95,template:{format:"{event} \u4E86 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u4E86"}]},extraction:{event:{position:0}}},{id:"event-zh-conditional",language:"zh",command:"on",priority:90,template:{format:"\u5982\u679C {event} {body}",tokens:[{type:"literal",value:"\u5982\u679C",alternatives:["\u82E5","\u5047\u5982"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Yu(){return[{id:"event-ja-when",language:"ja",command:"on",priority:95,template:{format:"\u3068\u304D {event} {body}",tokens:[{type:"literal",value:"\u3068\u304D",alternatives:["\u6642","\u3068\u304D\u306B"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Ju(){return[{id:"event-tr-when",language:"tr",command:"on",priority:95,template:{format:"iken {event} {body}",tokens:[{type:"literal",value:"iken",alternatives:["durumunda","oldu\u011Funda"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function Qu(){return[...Kn({lang:"ar",verb:"\u0636\u0639",verbAlts:["\u0627\u062C\u0639\u0644"],eventMarker:"\u0639\u0646\u062F",eventMarkerAlts:["\u0641\u064A","\u0644\u062F\u0649","\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u062D\u064A\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],before:"\u0642\u0628\u0644",after:"\u0628\u0639\u062F",order:"verb-first"}),{id:"event-ar-when",language:"ar",command:"on",priority:95,template:{format:"\u0639\u0646\u062F\u0645\u0627 {event} {body}",tokens:[{type:"literal",value:"\u0639\u0646\u062F\u0645\u0627",alternatives:["\u062D\u064A\u0646","\u0644\u0645\u0651\u0627"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function ef(){return[{id:"event-he-when",language:"he",command:"on",priority:95,template:{format:"\u05DB\u05D0\u05E9\u05E8 {event} {body}",tokens:[{type:"literal",value:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}]}function xr(n){switch(n){case"bn":return Au();case"de":return ju();case"en":return Mu();case"es":return Ou();case"fr":return Wu();case"hi":return Iu();case"id":return Vu();case"it":return _u();case"ms":return qu();case"pl":return Ku();case"pt":return $u();case"qu":return Bu();case"ru":return Du();case"sw":return Fu();case"th":return Hu();case"tl":return Uu();case"uk":return Gu();case"vi":return Xu();case"zh":return Zu();case"ja":return Yu();case"tr":return Ju();case"ar":return Qu();case"he":return ef();default:return[]}}var Ge,Ru,Nu,xt=z(()=>{"use strict";Ge={ko:{\uD074\uB9AD:"click",\uC785\uB825:"input",\uBCC0\uACBD:"change",\uC81C\uCD9C:"submit",\uD0A4\uB2E4\uC6B4:"keydown",\uD0A4\uC5C5:"keyup",\uB9C8\uC6B0\uC2A4\uC624\uBC84:"mouseover",\uB9C8\uC6B0\uC2A4\uC544\uC6C3:"mouseout",\uB9C8\uC6B0\uC2A4\uB2E4\uC6B4:"mousedown",\uB9C8\uC6B0\uC2A4\uC5C5:"mouseup",\uD3EC\uCEE4\uC2A4:"focus",\uBE14\uB7EC:"blur",\uB85C\uB4DC:"load",\uB9AC\uC0AC\uC774\uC988:"resize",\uC2A4\uD06C\uB864:"scroll"},ja:{\u30AF\u30EA\u30C3\u30AF:"click",\u5165\u529B:"input",\u5909\u66F4:"change",\u9001\u4FE1:"submit",\u30AD\u30FC\u30C0\u30A6\u30F3:"keydown",\u30AD\u30FC\u30A2\u30C3\u30D7:"keyup",\u30AD\u30FC\u30D7\u30EC\u30B9:"keypress",\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC:"mouseover",\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8:"mouseout",\u30DE\u30A6\u30B9\u62BC\u4E0B:"mousedown",\u30DE\u30A6\u30B9\u89E3\u653E:"mouseup",\u30D5\u30A9\u30FC\u30AB\u30B9:"focus",\u30D6\u30E9\u30FC:"blur",\u30ED\u30FC\u30C9:"load",\u8AAD\u307F\u8FBC\u307F:"load",\u30B5\u30A4\u30BA\u5909\u66F4:"resize",\u30B9\u30AF\u30ED\u30FC\u30EB:"scroll"},ar:{\u0627\u0644\u0646\u0642\u0631:"click",\u0646\u0642\u0631:"click",\u0627\u0644\u0625\u062F\u062E\u0627\u0644:"input",\u0625\u062F\u062E\u0627\u0644:"input",\u0627\u0644\u062A\u063A\u064A\u064A\u0631:"change",\u062A\u063A\u064A\u064A\u0631:"change",\u0627\u0644\u0625\u0631\u0633\u0627\u0644:"submit",\u0625\u0631\u0633\u0627\u0644:"submit","\u0636\u063A\u0637 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keydown","\u0631\u0641\u0639 \u0627\u0644\u0645\u0641\u062A\u0627\u062D":"keyup","\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0645\u0627\u0648\u0633":"mouseover",\u0627\u0644\u062A\u0631\u0643\u064A\u0632:"focus",\u062A\u062D\u0645\u064A\u0644:"load",\u062A\u0645\u0631\u064A\u0631:"scroll"},es:{clic:"click",click:"click",entrada:"input",cambio:"change",env\u00EDo:"submit",enviar:"submit","tecla abajo":"keydown","tecla arriba":"keyup","rat\xF3n encima":"mouseover","rat\xF3n fuera":"mouseout",enfoque:"focus",desenfoque:"blur",carga:"load",desplazamiento:"scroll"},tr:{t\u0131klama:"click",t\u0131kla:"click",t\u0131k:"click",giri\u015F:"input",girdi:"input",de\u011Fi\u015Fiklik:"change",de\u011Fi\u015Fim:"change",g\u00F6nderme:"submit",g\u00F6nder:"submit",tu\u015Fbasma:"keydown",tu\u015Fb\u0131rakma:"keyup",fare_bas:"mousedown",fare_b\u0131rak:"mouseup",farei\u00E7inde:"mouseover",fared\u0131\u015F\u0131nda:"mouseout",odaklanma:"focus",odak:"focus",bulan\u0131kl\u0131k:"blur",y\u00FCkleme:"load",y\u00FCkle:"load",boyutland\u0131rma:"resize",boyutland\u0131r:"resize",kayd\u0131rma:"scroll"},pt:{clique:"click",clicar:"click",click:"click",entrada:"input",inserir:"input",mudan\u00E7a:"change",mudanca:"change",alterar:"change",envio:"submit",enviar:"submit","tecla baixo":"keydown","tecla cima":"keyup","pressionar tecla":"keydown","soltar tecla":"keyup","mouse sobre":"mouseover","mouse fora":"mouseout",foco:"focus",focar:"focus",desfoque:"blur",desfocar:"blur",carregar:"load",carregamento:"load",rolagem:"scroll",rolar:"scroll"},zh:{\u70B9\u51FB:"click",\u5355\u51FB:"click",\u53CC\u51FB:"dblclick",\u8F93\u5165:"input",\u6539\u53D8:"change",\u53D8\u5316:"change",\u53D8\u66F4:"change",\u63D0\u4EA4:"submit",\u53D1\u9001:"submit",\u6309\u952E:"keydown",\u952E\u5165:"keydown",\u677E\u952E:"keyup",\u9F20\u6807\u8FDB\u5165:"mouseover",\u9F20\u6807\u79FB\u5165:"mouseover",\u9F20\u6807\u79BB\u5F00:"mouseout",\u9F20\u6807\u79FB\u51FA:"mouseout",\u7126\u70B9:"focus",\u805A\u7126:"focus",\u5931\u7126:"blur",\u6A21\u7CCA:"blur",\u52A0\u8F7D:"load",\u8F7D\u5165:"load",\u6EDA\u52A8:"scroll"},fr:{clic:"click",cliquer:"click",click:"click",saisie:"input",entr\u00E9e:"input",changement:"change",changer:"change",soumettre:"submit",soumission:"submit",envoi:"submit","touche bas":"keydown","touche haut":"keyup","souris dessus":"mouseover","souris dehors":"mouseout",focus:"focus",focaliser:"focus",d\u00E9focus:"blur",d\u00E9focaliser:"blur",chargement:"load",charger:"load",d\u00E9filement:"scroll",d\u00E9filer:"scroll"},de:{klick:"click",klicken:"click",click:"click",eingabe:"input",eingeben:"input",\u00E4nderung:"change",\u00E4ndern:"change",absenden:"submit",einreichen:"submit","taste runter":"keydown","taste hoch":"keyup","maus \xFCber":"mouseover","maus raus":"mouseout",fokus:"focus",fokussieren:"focus",defokussieren:"blur",unsch\u00E4rfe:"blur",laden:"load",ladung:"load",scrollen:"scroll",bl\u00E4ttern:"scroll"},id:{klik:"click",click:"click",masukan:"input",input:"input",ubah:"change",perubahan:"change",kirim:"submit","tekan tombol":"keydown","lepas tombol":"keyup","mouse masuk":"mouseover","mouse keluar":"mouseout",fokus:"focus",blur:"blur",muat:"load",memuat:"load",gulir:"scroll",menggulir:"scroll"},bn:{\u0995\u09CD\u09B2\u09BF\u0995:"click",\u0987\u09A8\u09AA\u09C1\u099F:"input",\u099C\u09AE\u09BE:"submit",\u09B2\u09CB\u09A1:"load",\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2:"scroll",\u09B0\u09BF\u09B8\u09BE\u0987\u099C:"resize",\u099D\u09BE\u09AA\u09B8\u09BE:"blur",\u09AB\u09CB\u0995\u09BE\u09B8:"focus",\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8:"change"},qu:{click:"click","\xF1it'iy":"click",\u00F1itiy:"click",yaykuchiy:"input",yaykuy:"input",tikray:"change","t'ikray":"change",apachiy:"submit",kachay:"submit","llave uray":"keydown","llave hawa":"keyup","q'away":"focus",qhaway:"focus",paqariy:"blur","mana q'away":"blur",cargay:"load",apakuy:"load",apamuy:"load",kunray:"scroll",muyuy:"scroll",hatun_kay:"resize"},sw:{bofya:"click",click:"click",kubofya:"click",ingiza:"input",kubadilisha:"change",mabadiliko:"change",tuma:"submit",kutuma:"submit","bonyeza chini":"keydown","bonyeza juu":"keyup","panya juu":"mouseover","panya nje":"mouseout",lenga:"focus",kulenga:"focus",blur:"blur",pakia:"load",kupakia:"load",sogeza:"scroll",kusogeza:"scroll"}},Ru=Object.fromEntries(Object.entries(Ge).map(([n,e])=>{let t={};for(let[r,a]of Object.entries(e))a in t||(t[a]=r);return[n,t]})),Nu={ar:new Set(["mouseover"]),bn:new Set(["resize"]),de:new Set(["keydown","keyup","load","mouseout","mouseover"]),fr:new Set(["blur"]),id:new Set(["input","keyup","mouseout","mouseover"]),ja:new Set(["keypress","mousedown","mouseup","resize"]),qu:new Set(["change","focus","load","resize","submit"]),sw:new Set(["change","click","input","keydown","keyup","mouseout","mouseover","submit"]),tr:new Set(["keydown","keyup","load","mousedown","mouseout","mouseover","mouseup","resize","scroll"]),zh:new Set(["focus","keyup","mouseout","mouseover"])}});function tf(n,e,t,r){let a=[];return a.push({type:"literal",value:e}),r&&a.push({type:"literal",value:r}),a.push({type:"role",role:"quantity",expectedTypes:["literal","expression"]}),a.push({type:"literal",value:t}),{id:`repeat-${n}-times`,language:n,command:"repeat",priority:110,template:{format:`${e}${r?" "+r:""} {quantity} ${t}`,tokens:a},extraction:{loopType:{default:{type:"literal",value:"times"}}}}}function nf(n,e,t){return{id:`repeat-${n}-times`,language:n,command:"repeat",priority:110,template:{format:`{quantity} ${e} ${t} repeat`,tokens:[{type:"role",role:"quantity",expectedTypes:["literal","expression"]},{type:"literal",value:e},{type:"literal",value:t},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"times"}}}}}function of(n,e){let t=[{type:"literal",value:"repeat"}];e.forWords&&e.forWords.length>0&&t.push({type:"group",optional:!0,tokens:e.forWords.map(r=>({type:"literal",value:r}))}),t.push({type:"role",role:"patient",expectedTypes:["expression","reference"]});for(let r of e.inWords)t.push({type:"literal",value:r});return t.push({type:"role",role:"source",expectedTypes:["selector","expression","reference"]}),{id:`repeat-${n}-for-in`,language:n,command:"repeat",priority:110,template:{format:`repeat [${(e.forWords??[]).join(" ")}] {patient} ${e.inWords.join(" ")} {source}`,tokens:t},extraction:{loopType:{default:{type:"literal",value:"for"}}}}}function lf(n,e){let t=[{type:"literal",value:"repeat"}];for(let r of e.pre??[])t.push({type:"literal",value:r});return t.push({type:"literal",value:e.whileWord}),t.push({type:"role",role:"condition",expectedTypes:["property-path","expression"]}),{id:`repeat-${n}-while-head`,language:n,command:"repeat",priority:110,template:{format:`repeat ${(e.pre??[]).join(" ")} ${e.whileWord} {condition}`,tokens:t},extraction:{loopType:{default:{type:"literal",value:"while"}}}}}function pf(n,e){let t=[{type:"literal",value:"repeat"}];for(let r of e.pre??[])t.push({type:"literal",value:r});return t.push({type:"literal",value:e.untilWord}),e.preEvent&&t.push({type:"literal",value:e.preEvent}),t.push({type:"literal",value:e.eventWord}),t.push({type:"role",role:"event",expectedTypes:["literal","expression"]}),t.push({type:"group",optional:!0,tokens:[{type:"literal",value:e.fromWord},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]}),{id:`repeat-${n}-until-head`,language:n,command:"repeat",priority:110,template:{format:`repeat ${e.untilWord} ${e.eventWord} {event} [${e.fromWord} {source}]`,tokens:t},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}}function df(n,e){return{id:`repeat-${n}-until-head`,language:n,command:"repeat",priority:110,template:{format:`${e.untilWord} ${e.eventWord} {event} ${e.objMarker} repeat [{source} ${e.fromWord}]`,tokens:[{type:"literal",value:e.untilWord},{type:"literal",value:e.eventWord},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:e.objMarker},{type:"literal",value:"repeat"},{type:"group",optional:!0,tokens:[{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:e.fromWord}]}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}}function wr(n){return $n.get(n)??[]}var rf,af,sf,cf,mf,uf,ff,yf,$n,qe,Bn=z(()=>{"use strict";rf=[["es","repetir","times"],["de","wiederholen","times"],["fr","r\xE9p\xE9ter","times"],["it","ripetere","times"],["pt","repetir","times"],["ru","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","times"],["uk","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438","times"],["pl","powt\xF3rz","times"],["ar","\u0643\u0631\u0631","times"],["he","\u05D7\u05D6\u05D5\u05E8","times","\u05D0\u05EA"],["id","ulangi","times"],["ms","ulang","times"],["sw","rudia","times"],["th","\u0E17\u0E33\u0E0B\u0E49\u0E33","\u0E04\u0E23\u0E31\u0E49\u0E07"],["vi","l\u1EB7p l\u1EA1i","l\u1EA7n"],["tl","ulitin","beses"],["zh","\u91CD\u590D","times","\u628A"]];af=[["ja","times","\u3092"],["ko","times","\uB97C"],["tr","times","i"],["hi","times","\u0915\u094B"],["bn","\u09AC\u09BE\u09B0","\u0995\u09C7"],["qu","times","ta"]];sf=[["en",{forWords:["for"],inWords:["in"]}],["es",{forWords:["para"],inWords:["en"]}],["pt",{forWords:["para"],inWords:["dentro"]}],["fr",{forWords:["pour"],inWords:["en"]}],["it",{forWords:["per"],inWords:["in"]}],["de",{forWords:["f\xFCr"],inWords:["in"]}],["ru",{forWords:["\u0434\u043B\u044F"],inWords:["\u0432"]}],["uk",{forWords:["\u0434\u043B\u044F"],inWords:["\u0443"]}],["pl",{forWords:["dla"],inWords:["w"]}],["ar",{forWords:["\u0644\u0643\u0644"],inWords:["\u0641\u064A"]}],["he",{forWords:["\u05E2\u05D1\u05D5\u05E8","\u05D0\u05EA"],inWords:["in"]}],["hi",{inWords:["\u092E\u0947\u0902"]}],["bn",{inWords:["\u098F"]}],["ja",{inWords:["\u306E","\u4E2D"]}],["ko",{inWords:["\uC548","\uC5D0"]}],["zh",{forWords:["\u4E3A","\u628A"],inWords:["\u5728"]}],["tr",{inWords:["i\xE7inde"]}],["id",{forWords:["untuk"],inWords:["dalam"]}],["ms",{forWords:["untuk"],inWords:["dalam"]}],["sw",{forWords:["kwa"],inWords:["ndani"]}],["th",{forWords:["\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A"],inWords:["\u0E43\u0E19"]}],["vi",{forWords:["v\u1EDBi m\u1ED7i"],inWords:["trong"]}],["tl",{forWords:["para_sa"],inWords:["sa_loob"]}],["qu",{inWords:["uku","pi"]}]];cf=[["en",{whileWord:"while"}],["es",{whileWord:"mientras"}],["pt",{whileWord:"enquanto"}],["fr",{whileWord:"tantque"}],["it",{whileWord:"mentre"}],["de",{whileWord:"w\xE4hrend"}],["ru",{whileWord:"\u043F\u043E\u043A\u0430"}],["uk",{whileWord:"\u043F\u043E\u043A\u0438"}],["pl",{whileWord:"dop\xF3ki"}],["ar",{whileWord:"\u0628\u064A\u0646\u0645\u0627"}],["he",{pre:["\u05D0\u05EA"],whileWord:"\u05DB\u05DC \u05E2\u05D5\u05D3"}],["zh",{pre:["\u628A"],whileWord:"\u5F53"}],["id",{whileWord:"selama"}],["ms",{whileWord:"selagi"}],["sw",{whileWord:"wakati"}],["th",{whileWord:"\u0E43\u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48"}],["vi",{whileWord:"trong khi"}],["tl",{whileWord:"habang"}]];mf=[["es",{untilWord:"hasta",eventWord:"evento",fromWord:"de"}],["pt",{untilWord:"at\xE9",eventWord:"evento",fromWord:"de"}],["fr",{untilWord:"jusqu\xE0",eventWord:"\xE9v\xE9nement",fromWord:"de"}],["it",{untilWord:"fino",eventWord:"evento",fromWord:"da"}],["de",{untilWord:"bis",eventWord:"ereignis",fromWord:"von"}],["ru",{untilWord:"\u0434\u043E",eventWord:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",fromWord:"\u0438\u0437"}],["uk",{untilWord:"\u0434\u043E",eventWord:"\u043F\u043E\u0434\u0456\u044F",fromWord:"\u0437"}],["pl",{untilWord:"a\u017C",eventWord:"zdarzenie",fromWord:"z"}],["ar",{untilWord:"\u062D\u062A\u0649",eventWord:"\u062D\u062F\u062B",fromWord:"\u0645\u0646"}],["he",{untilWord:"\u05E2\u05D3",preEvent:"\u05D0\u05EA",eventWord:"\u05D0\u05D9\u05E8\u05D5\u05E2",fromWord:"\u05DE"}],["id",{untilWord:"sampai",eventWord:"peristiwa",fromWord:"dari"}],["ms",{untilWord:"sehingga",eventWord:"peristiwa",fromWord:"dari"}],["sw",{untilWord:"hadi",eventWord:"tukio",fromWord:"kutoka"}],["th",{untilWord:"\u0E08\u0E19\u0E16\u0E36\u0E07",eventWord:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",fromWord:"\u0E08\u0E32\u0E01"}],["vi",{untilWord:"cho \u0111\u1EBFn khi",eventWord:"s\u1EF1 ki\u1EC7n",fromWord:"t\u1EEB"}],["tl",{untilWord:"hanggang",eventWord:"pangyayari",fromWord:"mula_sa"}],["zh",{pre:["\u628A"],untilWord:"\u76F4\u5230",eventWord:"\u4E8B\u4EF6",fromWord:"\u4ECE"}]];uf={id:"repeat-qu-midclause-until-head",language:"qu",command:"repeat",priority:109,template:{format:"until event {event} ta {source} manta repeat",tokens:[{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}},ff=[["hi",{untilWord:"\u0924\u0915",eventWord:"\u0918\u091F\u0928\u093E",objMarker:"\u0915\u094B",fromWord:"\u0938\u0947"}],["bn",{untilWord:"\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",eventWord:"\u0998\u099F\u09A8\u09BE",objMarker:"\u0995\u09C7",fromWord:"\u09A5\u09C7\u0995\u09C7"}],["ja",{untilWord:"\u307E\u3067",eventWord:"\u30A4\u30D9\u30F3\u30C8",objMarker:"\u3092",fromWord:"\u304B\u3089"}],["ko",{untilWord:"\uAE4C\uC9C0",eventWord:"\uC774\uBCA4\uD2B8",objMarker:"\uB97C",fromWord:"\uC5D0\uC11C"}],["tr",{untilWord:"kadar",eventWord:"olay",objMarker:"i",fromWord:"den"}]],yf={id:"repeat-qu-until-head",language:"qu",command:"repeat",priority:110,template:{format:"hayk _ a until event {event} ta {source} manta repeat",tokens:[{type:"literal",value:"hayk"},{type:"literal",value:"_"},{type:"literal",value:"a"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}},$n=new Map,qe=(n,e)=>{let t=$n.get(n);t?t.push(e):$n.set(n,[e])};for(let[n,e,t,r]of rf)qe(n,tf(n,e,t,r));for(let[n,e,t]of af)qe(n,nf(n,e,t));for(let[n,e]of sf)qe(n,of(n,e));for(let[n,e]of cf)qe(n,lf(n,e));for(let[n,e]of mf)qe(n,pf(n,e));for(let[n,e]of ff)qe(n,df(n,e));qe("qu",yf);qe("qu",uf)});function gf(){return[{id:"wait-zh-ba",language:"zh",command:"wait",priority:105,template:{format:"\u7B49\u5F85 \u628A {duration}",tokens:[{type:"literal",value:"\u7B49\u5F85",alternatives:["\u7B49","\u7A0D\u5019"]},{type:"literal",value:"\u628A"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:2}}}]}function vf(){return[{id:"wait-he-et",language:"he",command:"wait",priority:105,template:{format:"\u05D7\u05DB\u05D4 \u05D0\u05EA {duration}",tokens:[{type:"literal",value:"\u05D7\u05DB\u05D4",alternatives:["\u05D4\u05DE\u05EA\u05DF"]},{type:"literal",value:"\u05D0\u05EA"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:2}}}]}function hf(){return[{id:"wait-ar-from-first",language:"ar",command:"wait",priority:105,template:{format:"\u0627\u0646\u062A\u0638\u0631 \u0645\u0646 {source} {duration}",tokens:[{type:"literal",value:"\u0627\u0646\u062A\u0638\u0631",alternatives:["\u0627\u0646\u062A\u0638\u0631\u064A"]},{type:"literal",value:"\u0645\u0646"},{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"role",role:"duration",expectedTypes:["expression","literal"]}]},extraction:{source:{position:2},duration:{position:3}}}]}function zf(){return[{id:"wait-en-for-event",language:"en",command:"wait",priority:110,template:{format:"wait for {event}",tokens:[{type:"literal",value:"wait"},{type:"literal",value:"for"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{position:2}}}]}function kf(){return[{id:"wait-tl-from-first",language:"tl",command:"wait",priority:105,template:{format:"maghintay mula_sa {source} {duration}",tokens:[{type:"literal",value:"maghintay",alternatives:["hintay"]},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"role",role:"duration",expectedTypes:["expression","literal"]}]},extraction:{source:{position:2},duration:{position:3}}}]}function br(n){switch(n){case"en":return zf();case"zh":return gf();case"he":return vf();case"ar":return hf();case"tl":return kf();default:return[]}}var Dn=z(()=>{"use strict"});var fs={};N(fs,{buildEnglishPatterns:()=>Of});function Of(){let n=[];n.push(...zr("en")),n.push(...kr("en")),n.push(...xr("en")),n.push(...wr("en")),n.push(...br("en")),n.push(xf,wf,Sf,bf,Tf,Ef,Pf,Lf,Cf,Rf,Nf,Af,jf,Mf);let e=hr(mt);return n.push(...e),n}var xf,wf,bf,Sf,Tf,Ef,Pf,Lf,Cf,Rf,Nf,Af,jf,Mf,ys=z(()=>{"use strict";Yt();In();Vn();kt();xt();Bn();Dn();xf={id:"fetch-en-with-response-type",language:"en",command:"fetch",priority:90,template:{format:"fetch {source} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},responseType:{marker:"as"}}},wf={id:"fetch-en-simple",language:"en",command:"fetch",priority:80,template:{format:"fetch {source}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source"}]},extraction:{source:{position:1}}},bf={id:"swap-en-handcrafted",language:"en",command:"swap",priority:110,template:{format:"swap {method} {destination}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"}]},extraction:{method:{position:1},destination:{position:2}}},Sf={id:"swap-en-element",language:"en",command:"swap",priority:120,template:{format:"swap {destination} with {patient}",tokens:[{type:"literal",value:"swap"},{type:"role",role:"destination"},{type:"literal",value:"with"},{type:"role",role:"patient"}]},extraction:{}},Tf={id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},Ef={id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}},Pf={id:"repeat-en-times",language:"en",command:"repeat",priority:110,template:{format:"repeat {quantity} times",tokens:[{type:"literal",value:"repeat"},{type:"role",role:"quantity",expectedTypes:["literal","expression"]},{type:"literal",value:"times"}]},extraction:{loopType:{default:{type:"literal",value:"times"}}}},Lf={id:"repeat-en-forever",language:"en",command:"repeat",priority:110,template:{format:"repeat forever",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"forever"}]},extraction:{loopType:{default:{type:"literal",value:"forever"}}}},Cf={id:"set-en-possessive",language:"en",command:"set",priority:100,template:{format:"set {destination} to {patient} [on {scope}]",tokens:[{type:"literal",value:"set"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"to"},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"scope",optional:!0,expectedTypes:["selector","reference"]}]}]},extraction:{destination:{position:1},patient:{marker:"to"},scope:{marker:"on"}}},Rf={id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"}}},Nf={id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},Af={id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},jf={id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},Mf={id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}}});var ae=z(()=>{"use strict";je()});function Wf(n){return/[áéíóúüñÁÉÍÓÚÜÑ]/.test(n)}var If,Vf,_f,qf,wt,lb,gs=z(()=>{"use strict";ae();If=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"\xE1is",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.82,type:"present"},{ending:"an",stem:"ar",confidence:.8,type:"present"},{ending:"\xE9",stem:"ar",confidence:.85,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"\xF3",stem:"ar",confidence:.82,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"asteis",stem:"ar",confidence:.88,type:"past"},{ending:"aron",stem:"ar",confidence:.88,type:"past"},{ending:"aba",stem:"ar",confidence:.88,type:"past"},{ending:"abas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1bamos",stem:"ar",confidence:.88,type:"past"},{ending:"abamos",stem:"ar",confidence:.85,type:"past"},{ending:"abais",stem:"ar",confidence:.88,type:"past"},{ending:"aban",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"\xE9is",stem:"ar",confidence:.85,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"en",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ad",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],Vf=[{ending:"iendo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"\xE9is",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"en",stem:"er",confidence:.78,type:"present"},{ending:"\xED",stem:"er",confidence:.85,type:"past"},{ending:"iste",stem:"er",confidence:.88,type:"past"},{ending:"i\xF3",stem:"er",confidence:.85,type:"past"},{ending:"io",stem:"er",confidence:.82,type:"past"},{ending:"imos",stem:"er",confidence:.85,type:"past"},{ending:"isteis",stem:"er",confidence:.88,type:"past"},{ending:"ieron",stem:"er",confidence:.88,type:"past"},{ending:"\xEDa",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"\xEDas",stem:"er",confidence:.88,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDais",stem:"er",confidence:.88,type:"past"},{ending:"iais",stem:"er",confidence:.85,type:"past"},{ending:"\xEDan",stem:"er",confidence:.88,type:"past"},{ending:"ian",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],_f=[{ending:"iendo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"\xEDs",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"en",stem:"ir",confidence:.78,type:"present"},{ending:"\xED",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"i\xF3",stem:"ir",confidence:.85,type:"past"},{ending:"io",stem:"ir",confidence:.82,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"isteis",stem:"ir",confidence:.88,type:"past"},{ending:"ieron",stem:"ir",confidence:.88,type:"past"},{ending:"\xEDa",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDas",stem:"ir",confidence:.88,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDais",stem:"ir",confidence:.88,type:"past"},{ending:"iais",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDan",stem:"ir",confidence:.88,type:"past"},{ending:"ian",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],qf=[...If,...Vf,..._f].sort((n,e)=>e.ending.length-n.ending.length),wt=class extends mn{constructor(){super({language:"es",minWordLength:3,minStemLength:2,endings:qf,reflexiveSuffixes:["se","me","te","nos","os"],infinitiveEndings:["ar","er","ir"]})}isNormalizable(e){if(e.length<3)return!1;let t=e.toLowerCase();if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir")||t.endsWith("ando")||t.endsWith("iendo")||t.endsWith("ado")||t.endsWith("ido")||t.endsWith("arse")||t.endsWith("erse")||t.endsWith("irse"))return!0;for(let r of e)if(Wf(r))return!0;return!1}},lb=new wt});var vs={};N(vs,{spanishProfile:()=>Fn});var Fn,Hn=z(()=>{"use strict";Fn={code:"es",name:"Spanish",nativeName:"Espa\xF1ol",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"yo",it:"ello",you:"t\xFA",result:"resultado",event:"evento",target:"objetivo",body:"cuerpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mi",it:"su",you:"tu"},keywords:{mi:"me",tu:"you",su:"it"}},roleMarkers:{destination:{primary:"en",alternatives:["sobre","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["conmutar","toggle"],normalized:"toggle"},add:{primary:"agregar",alternatives:["a\xF1adir"],normalized:"add"},remove:{primary:"quitar",alternatives:["eliminar","remover","sacar","borrar"],normalized:"remove"},put:{primary:"poner",alternatives:["colocar","pon"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"anteponer",normalized:"prepend"},take:{primary:"tomar",normalized:"take"},make:{primary:"hacer",alternatives:["crear"],normalized:"make"},clone:{primary:"clonar",alternatives:["duplicar"],normalized:"clone"},swap:{primary:"intercambiar",alternatives:["permutar"],normalized:"swap"},morph:{primary:"transformar",alternatives:["convertir"],normalized:"morph"},set:{primary:"establecer",alternatives:["fijar","definir"],normalized:"set"},get:{primary:"obtener",alternatives:["conseguir"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["disminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["ense\xF1ar"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transici\xF3n",alternatives:["animar"],normalized:"transition"},on:{primary:"en",alternatives:["al"],normalized:"on"},trigger:{primary:"disparar",alternatives:["activar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"enfocar",alternatives:["enfoque"],normalized:"focus"},blur:{primary:"desenfocar",alternatives:["desenfoque"],normalized:"blur"},open:{primary:"abrir",normalized:"open"},close:{primary:"cerrar",normalized:"close"},select:{primary:"seleccionar",normalized:"select"},clear:{primary:"limpiar",normalized:"clear"},reset:{primary:"reiniciar",alternatives:["restablecer"],normalized:"reset"},breakpoint:{primary:"punto-interrupci\xF3n",alternatives:["punto-interrupcion"],normalized:"breakpoint"},click:{primary:"clic",alternatives:["hacer clic","click"],normalized:"click"},resize:{primary:"redimensionar",normalized:"resize"},hover:{primary:"sobrevolar",alternatives:["pasar por encima"],normalized:"hover"},submit:{primary:"env\xEDo",alternatives:["envio","someter"],normalized:"submit"},input:{primary:"entrada",alternatives:["introducir"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiar"],normalized:"change"},load:{primary:"carga",alternatives:["cargar"],normalized:"load"},scroll:{primary:"desplazar",alternatives:["desplazamiento"],normalized:"scroll"},keydown:{primary:"tecla abajo",normalized:"keydown"},keyup:{primary:"tecla arriba",normalized:"keyup"},mouseover:{primary:"rat\xF3n encima",alternatives:["raton encima"],normalized:"mouseover"},mouseout:{primary:"rat\xF3n fuera",alternatives:["raton fuera"],normalized:"mouseout"},mousedown:{primary:"rat\xF3nabajo",normalized:"mousedown"},mouseup:{primary:"rat\xF3narriba",normalized:"mouseup"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},push:{primary:"empujar",alternatives:["push"],normalized:"push"},replace:{primary:"reemplazar",alternatives:["sustituir"],normalized:"replace"},process:{primary:"procesar",normalized:"process"},wait:{primary:"esperar",normalized:"wait"},fetch:{primary:"buscar",alternatives:["recuperar"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"si",normalized:"if"},unless:{primary:"menos",alternatives:["a menos que","salvo"],normalized:"unless"},when:{primary:"cuando",normalized:"when"},where:{primary:"donde",normalized:"where"},else:{primary:"sino",alternatives:["de lo contrario"],normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"mientras",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"detener",alternatives:["parar"],normalized:"halt"},throw:{primary:"lanzar",alternatives:["arrojar"],normalized:"throw"},call:{primary:"llamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"entonces",alternatives:["luego"],normalized:"then"},and:{primary:"y",alternatives:["adem\xE1s","tambi\xE9n"],normalized:"and"},or:{primary:"o",normalized:"or"},not:{primary:"no",normalized:"not"},is:{primary:"es",normalized:"is"},exists:{primary:"existe",normalized:"exists"},empty:{primary:"vac\xEDo",alternatives:["vacio"],normalized:"empty"},end:{primary:"fin",alternatives:["final","terminar"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"as\xEDncrono",alternatives:["asincrono"],normalized:"async"},tell:{primary:"decir",normalized:"tell"},default:{primary:"predeterminar",alternatives:["por defecto"],normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamiento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"pitido",normalized:"beep"},break:{primary:"romper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"salir",normalized:"exit"},pick:{primary:"escoger",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},first:{primary:"primero",alternatives:["primera"],normalized:"first"},last:{primary:"\xFAltimo",alternatives:["ultima"],normalized:"last"},next:{primary:"siguiente",normalized:"next"},previous:{primary:"anterior",normalized:"previous"},closest:{primary:"cercano",normalized:"closest"},parent:{primary:"padre",normalized:"parent"},into:{primary:"dentro",alternatives:["adentro","dentro de"],normalized:"into"},before:{primary:"antes",alternatives:["antes de"],normalized:"before"},after:{primary:"despu\xE9s",alternatives:["despues","despu\xE9s de","despues de"],normalized:"after"},out:{primary:"fuera",alternatives:["fuera de"],normalized:"out"},until:{primary:"hasta",alternatives:["hasta que"],normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"},connect:{primary:"conectar",alternatives:["conectarse"],normalized:"connect"},stream:{primary:"transmitir",alternatives:["flujo"],normalized:"stream"},live:{primary:"en-vivo",alternatives:["vivo","directo"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"vincular",alternatives:["enlazar","bind"],normalized:"bind"},intercept:{primary:"interceptar",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"trabajador",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["fuente-de-eventos"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"al",alternatives:["cuando","en"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},eventMarker:{primary:"al",alternatives:["cuando","en"],position:"before"},temporalMarkers:["cuando","al"]}}});function Kf(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function zs(){return[new Un]}var hs,$f,Bf,Un,ks=z(()=>{"use strict";D();({isLetter:hs,isIdentifierChar:$f}=Kf(/[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]/)),Bf=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\xE9s","despues","dentro","fuera","al","del"]),Un=class{constructor(){this.name="spanish-keyword"}setContext(e){this.context=e}canExtract(e,t){return hs(e[t])}extract(e,t){if(!this.context)throw new Error("SpanishKeywordExtractor: context not set");let r=this.tryMultiWordPhrase(e,t);return r||this.extractSpanishWord(e,t)}tryMultiWordPhrase(e,t){if(!this.context)return null;let r=["de lo contrario","de lo normal","por defecto","de nuevo","de otra manera"];for(let a of r)if(e.slice(t,t+a.length).toLowerCase()===a.toLowerCase()){let o=t+a.length;if(o>=e.length||ze(e[o])||!hs(e[o])){let s=this.context.lookupKeyword(a);return{value:e.slice(t,o),length:a.length,metadata:{normalized:s?.normalized,multiWord:!0}}}}return null}extractSpanishWord(e,t){if(!this.context)return null;let r=t,a="";for(;r<e.length&&$f(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=Bf.has(i),s=this.context.lookupKeyword(a),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var xs={};N(xs,{SpanishTokenizer:()=>Sr,spanishTokenizer:()=>Hf});var Df,Ff,Sr,Hf,ws=z(()=>{"use strict";D();gs();Hn();G();X();ks();Df=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\xE9s","despues","dentro","fuera","al","del"]),Ff=[{native:"verdadero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milisegundo",normalized:"ms"},{native:"milisegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"m\xED",normalized:"me"},{native:"destino",normalized:"target"}],Sr=class extends R{constructor(){super();this.language="es";this.direction="ltr";this.initializeKeywordsFromProfile(Fn,Ff),this.setNormalizer(new wt),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(zs()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Df.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Hf=new Sr});function bs(n){let e=n.charCodeAt(0);return e>=12352&&e<=12447}function Xf(n){let e=n.charCodeAt(0);return e>=12448&&e<=12543}function Zf(n){let e=n.charCodeAt(0);return e>=19968&&e<=40959||e>=13312&&e<=19903}function Yf(n){for(let e of n)if(bs(e)||Xf(e)||Zf(e))return!0;return!1}var Uf,Gf,bt,zb,Ss=z(()=>{"use strict";ae();Uf=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to",minStemLength:2},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u305F\u3089",confidence:.85,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u308C\u3070",confidence:.82,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3057\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3067\u304F\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304A\u304F",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u307F\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u3042\u308B",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3067\u304F\u308C",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3061\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3058\u3083\u3063\u305F",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3061\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u3058\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u307E\u3057\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u307E\u305B\u3093",confidence:.85,conjugationType:"negative",minStemLength:2},{pattern:"\u307E\u3059",confidence:.85,conjugationType:"polite",minStemLength:2},{pattern:"\u3066",confidence:.85,conjugationType:"te-form",minStemLength:2},{pattern:"\u305F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u306A\u3044",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"\u306A\u304B\u3063\u305F",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3089\u308C\u308B",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"\u308C\u308B",confidence:.78,conjugationType:"potential",minStemLength:2},{pattern:"\u3089\u308C\u305F",confidence:.8,conjugationType:"passive",minStemLength:2},{pattern:"\u3055\u305B\u308B",confidence:.8,conjugationType:"causative",minStemLength:2},{pattern:"\u305B\u308B",confidence:.78,conjugationType:"causative",minStemLength:2},{pattern:"\u3088\u3046",confidence:.8,conjugationType:"volitional",minStemLength:2},{pattern:"\u308B",confidence:.75,conjugationType:"dictionary",minStemLength:3}],Gf=[{pattern:"\u3057\u305F\u3089",confidence:.88,conjugationType:"conditional-tara"},{pattern:"\u3059\u308B\u3068",confidence:.88,conjugationType:"conditional-to"},{pattern:"\u3059\u308C\u3070",confidence:.85,conjugationType:"conditional-ba"},{pattern:"\u3057\u3066\u3044\u307E\u3059",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u3066\u3044\u308B",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u307E\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3057\u307E\u3059",confidence:.85,conjugationType:"polite"},{pattern:"\u3057\u306A\u3044",confidence:.82,conjugationType:"negative"},{pattern:"\u3057\u3066",confidence:.85,conjugationType:"te-form"},{pattern:"\u3057\u305F",confidence:.85,conjugationType:"past"},{pattern:"\u3059\u308B",confidence:.88,conjugationType:"dictionary"}];bt=class{constructor(){this.language="ja"}isNormalizable(e){if(!Yf(e)||e.length<2)return!1;let t=e[e.length-1];return bs(t)}normalize(e){let t=this.normalizeCompound(e);if(t)return t;let r=this.trySuruNormalization(e);if(r)return r;for(let a of Uf)if(e.endsWith(a.pattern)){let i=e.slice(0,-a.pattern.length),o=a.minStemLength??2;if(i.length<o)continue;let s={removedSuffixes:[a.pattern]};return a.conjugationType&&(s.conjugationType=a.conjugationType),x(i,a.confidence,s)}return V(e)}trySuruNormalization(e){for(let t of Gf)if(e.endsWith(t.pattern)){let r=e.slice(0,-t.pattern.length);if(r.length<1)continue;return x(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"suru-verb"})}return null}normalizeCompound(e){let t=[{pattern:"\u3066\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3066","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3067\u3044\u306A\u304B\u3063\u305F",suffixes:["\u3067","\u3044","\u306A\u304B\u3063\u305F"],confidence:.8,minStemLength:2},{pattern:"\u3066\u3044\u306A\u3044",suffixes:["\u3066","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3067\u3044\u306A\u3044",suffixes:["\u3067","\u3044","\u306A\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3066\u3044\u305F",suffixes:["\u3066","\u3044","\u305F"],confidence:.85,minStemLength:2},{pattern:"\u3067\u3044\u305F",suffixes:["\u3067","\u3044","\u305F"],confidence:.85,minStemLength:2}];for(let{pattern:r,suffixes:a,confidence:i,minStemLength:o}of t)if(e.endsWith(r)){let s=e.slice(0,-r.length);if(s.length<o)continue;return x(s,i,{removedSuffixes:a,conjugationType:"compound"})}return null}},zb=new bt});var Ts={};N(Ts,{japaneseProfile:()=>Gn});var Gn,Xn=z(()=>{"use strict";Gn={code:"ja",name:"Japanese",nativeName:"\u65E5\u672C\u8A9E",regions:["east-asian","priority"],direction:"ltr",script:"cjk",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"end",suffixes:["\u308B","\u3066","\u305F","\u307E\u3059","\u306A\u3044"],subjectDrop:!0},references:{me:"\u81EA\u5206",it:"\u305D\u308C",you:"\u3042\u306A\u305F",result:"\u7D50\u679C",event:"\u30A4\u30D9\u30F3\u30C8",target:"\u30BF\u30FC\u30B2\u30C3\u30C8",body:"\u30DC\u30C7\u30A3"},possessive:{marker:"\u306E",markerPosition:"between",keywords:{\u79C1\u306E:"me",\u3042\u306A\u305F\u306E:"you",\u305D\u306E:"it"}},roleMarkers:{patient:{primary:"\u3092",position:"after"},destination:{primary:"\u306B",alternatives:["\u3078","\u3067","\u306E"],position:"after"},source:{primary:"\u304B\u3089",position:"after"},style:{primary:"\u3067",position:"after"},event:{primary:"\u3092",position:"after"}},keywords:{toggle:{primary:"\u5207\u308A\u66FF\u3048",alternatives:["\u5207\u308A\u66FF\u3048\u308B","\u30C8\u30B0\u30EB","\u30C8\u30B0\u30EB\u3059\u308B"],normalized:"toggle"},add:{primary:"\u8FFD\u52A0",alternatives:["\u8FFD\u52A0\u3059\u308B","\u52A0\u3048\u308B"],normalized:"add"},remove:{primary:"\u524A\u9664",alternatives:["\u524A\u9664\u3059\u308B","\u53D6\u308A\u9664\u304F"],normalized:"remove"},put:{primary:"\u7F6E\u304F",alternatives:["\u5165\u308C\u308B"],normalized:"put"},append:{primary:"\u672B\u5C3E\u8FFD\u52A0",alternatives:["\u672B\u5C3E\u306B\u8FFD\u52A0","\u30A2\u30DA\u30F3\u30C9"],normalized:"append"},prepend:{primary:"\u5148\u982D\u8FFD\u52A0",alternatives:["\u5148\u982D\u306B\u8FFD\u52A0","\u30D7\u30EA\u30DA\u30F3\u30C9"],normalized:"prepend"},take:{primary:"\u53D6\u308B",normalized:"take"},make:{primary:"\u4F5C\u308B",alternatives:["\u4F5C\u6210"],normalized:"make"},clone:{primary:"\u8907\u88FD",alternatives:["\u30AF\u30ED\u30FC\u30F3"],normalized:"clone"},swap:{primary:"\u4EA4\u63DB",alternatives:["\u30B9\u30EF\u30C3\u30D7","\u5165\u308C\u66FF\u3048"],normalized:"swap"},morph:{primary:"\u5909\u5F62",alternatives:["\u30E2\u30FC\u30D5","\u5909\u63DB"],normalized:"morph"},set:{primary:"\u8A2D\u5B9A",alternatives:["\u8A2D\u5B9A\u3059\u308B"],normalized:"set"},get:{primary:"\u53D6\u5F97",alternatives:["\u53D6\u5F97\u3059\u308B","\u30B2\u30C3\u30C8"],normalized:"get"},increment:{primary:"\u5897\u52A0",alternatives:["\u5897\u3084\u3059","\u30A4\u30F3\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"increment"},decrement:{primary:"\u6E1B\u5C11",alternatives:["\u6E1B\u3089\u3059","\u30C7\u30AF\u30EA\u30E1\u30F3\u30C8"],normalized:"decrement"},log:{primary:"\u8A18\u9332",alternatives:["\u30ED\u30B0","\u51FA\u529B"],normalized:"log"},show:{primary:"\u8868\u793A",alternatives:["\u8868\u793A\u3059\u308B","\u898B\u305B\u308B"],normalized:"show"},hide:{primary:"\u96A0\u3059",alternatives:["\u975E\u8868\u793A","\u975E\u8868\u793A\u306B\u3059\u308B"],normalized:"hide"},transition:{primary:"\u9077\u79FB",alternatives:["\u30C8\u30E9\u30F3\u30B8\u30B7\u30E7\u30F3","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3"],normalized:"transition"},on:{primary:"\u3067",alternatives:["\u6642"],normalized:"on"},trigger:{primary:"\u5F15\u304D\u91D1",alternatives:["\u767A\u706B","\u30C8\u30EA\u30AC\u30FC"],normalized:"trigger"},send:{primary:"\u9001\u308B",alternatives:["\u9001\u4FE1"],normalized:"send"},focus:{primary:"\u30D5\u30A9\u30FC\u30AB\u30B9",alternatives:["\u96C6\u4E2D"],normalized:"focus"},blur:{primary:"\u307C\u304B\u3057",alternatives:["\u30D5\u30A9\u30FC\u30AB\u30B9\u89E3\u9664","\u30D6\u30E9\u30FC"],normalized:"blur"},empty:{primary:"\u7A7A\u306B",alternatives:["\u7A7A\u306B\u3059\u308B"],normalized:"empty"},open:{primary:"\u958B\u304F",alternatives:["\u30AA\u30FC\u30D7\u30F3"],normalized:"open"},close:{primary:"\u9589\u3058\u308B",alternatives:["\u30AF\u30ED\u30FC\u30BA"],normalized:"close"},select:{primary:"\u9078\u3076",alternatives:["\u30BB\u30EC\u30AF\u30C8"],normalized:"select"},clear:{primary:"\u30AF\u30EA\u30A2",alternatives:["\u6D88\u53BB"],normalized:"clear"},reset:{primary:"\u30EA\u30BB\u30C3\u30C8",alternatives:["\u518D\u8A2D\u5B9A"],normalized:"reset"},breakpoint:{primary:"\u30D6\u30EC\u30FC\u30AF\u30DD\u30A4\u30F3\u30C8",normalized:"breakpoint"},go:{primary:"\u79FB\u52D5",alternatives:["\u884C\u304F","\u30CA\u30D3\u30B2\u30FC\u30C8"],normalized:"go"},scroll:{primary:"\u30B9\u30AF\u30ED\u30FC\u30EB",normalized:"scroll"},push:{primary:"\u30D7\u30C3\u30B7\u30E5",normalized:"push"},replace:{primary:"\u7F6E\u63DB",alternatives:["\u7F6E\u304D\u63DB\u3048"],normalized:"replace"},process:{primary:"\u51E6\u7406",normalized:"process"},wait:{primary:"\u5F85\u3064",alternatives:["\u5F85\u6A5F"],normalized:"wait"},fetch:{primary:"\u30D5\u30A7\u30C3\u30C1",normalized:"fetch"},settle:{primary:"\u5B89\u5B9A",alternatives:["\u843D\u3061\u7740\u304F"],normalized:"settle"},if:{primary:"\u3082\u3057",normalized:"if"},when:{primary:"\u3068\u304D",alternatives:["\u3068\u304D\u306B"],normalized:"when"},where:{primary:"\u3069\u3053",normalized:"where"},else:{primary:"\u305D\u3046\u3067\u306A\u3051\u308C\u3070",alternatives:["\u305D\u308C\u4EE5\u5916"],normalized:"else"},unless:{primary:"\u306A\u3044\u9650\u308A",normalized:"unless"},repeat:{primary:"\u7E70\u308A\u8FD4\u3057",alternatives:["\u7E70\u308A\u8FD4\u3059","\u30EA\u30D4\u30FC\u30C8"],normalized:"repeat"},for:{primary:"\u305F\u3081\u306B",alternatives:["\u5404"],normalized:"for"},while:{primary:"\u306E\u9593",alternatives:["\u9593"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u7D9A\u3051\u308B",alternatives:["\u7D99\u7D9A"],normalized:"continue"},halt:{primary:"\u505C\u6B62",alternatives:["\u6B62\u3081\u308B","\u30CF\u30EB\u30C8"],normalized:"halt"},throw:{primary:"\u6295\u3052\u308B",alternatives:["\u30B9\u30ED\u30FC"],normalized:"throw"},call:{primary:"\u547C\u3073\u51FA\u3057",alternatives:["\u30B3\u30FC\u30EB","\u547C\u3076"],normalized:"call"},return:{primary:"\u623B\u308B",alternatives:["\u8FD4\u3059","\u30EA\u30BF\u30FC\u30F3"],normalized:"return"},then:{primary:"\u305D\u308C\u304B\u3089",alternatives:["\u6B21\u306B","\u306A\u3089\u3070","\u306A\u3089"],normalized:"then"},and:{primary:"\u307E\u305F",alternatives:["\u3068","\u305D\u3057\u3066"],normalized:"and"},end:{primary:"\u7D42\u308F\u308A",alternatives:["\u304A\u308F\u308A"],normalized:"end"},js:{primary:"JS\u5B9F\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u975E\u540C\u671F",alternatives:["\u30A2\u30B7\u30F3\u30AF"],normalized:"async"},tell:{primary:"\u4F1D\u3048\u308B",alternatives:["\u30C6\u30EB"],normalized:"tell"},default:{primary:"\u65E2\u5B9A",alternatives:["\u30C7\u30D5\u30A9\u30EB\u30C8"],normalized:"default"},init:{primary:"\u521D\u671F\u5316",alternatives:["\u30A4\u30CB\u30C3\u30C8"],normalized:"init"},behavior:{primary:"\u632F\u308B\u821E\u3044",alternatives:["\u30D3\u30D8\u30A4\u30D3\u30A2"],normalized:"behavior"},install:{primary:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",alternatives:["\u5C0E\u5165"],normalized:"install"},measure:{primary:"\u6E2C\u5B9A",alternatives:["\u8A08\u6E2C","\u30E1\u30B8\u30E3\u30FC"],normalized:"measure"},beep:{primary:"\u30D3\u30FC\u30D7",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u30B3\u30D4\u30FC",normalized:"copy"},exit:{primary:"\u9000\u51FA",normalized:"exit"},pick:{primary:"\u9078\u629E",normalized:"pick"},render:{primary:"\u63CF\u753B",normalized:"render"},into:{primary:"\u3078",alternatives:["\u306B"],normalized:"into"},before:{primary:"\u524D\u306B",alternatives:["\u524D"],normalized:"before"},after:{primary:"\u5F8C\u306B",alternatives:["\u5F8C"],normalized:"after"},until:{primary:"\u307E\u3067",alternatives:["\u8FC4"],normalized:"until"},event:{primary:"\u30A4\u30D9\u30F3\u30C8",alternatives:["\u4E8B\u8C61"],normalized:"event"},from:{primary:"\u304B\u3089",normalized:"from"},connect:{primary:"\u63A5\u7D9A",alternatives:["\u63A5\u7D9A\u3059\u308B"],normalized:"connect"},stream:{primary:"\u30B9\u30C8\u30EA\u30FC\u30E0",alternatives:["\u914D\u4FE1"],normalized:"stream"},live:{primary:"\u30E9\u30A4\u30D6",alternatives:["\u5B9F\u6642\u9593"],normalized:"live"},socket:{primary:"\u30BD\u30B1\u30C3\u30C8",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\u30D0\u30A4\u30F3\u30C9",alternatives:["\u7D50\u3073\u3064\u3051\u308B","bind"],normalized:"bind"},intercept:{primary:"\u30A4\u30F3\u30BF\u30FC\u30BB\u30D7\u30C8",alternatives:["\u508D\u53D7","intercept"],normalized:"intercept"},worker:{primary:"\u30EF\u30FC\u30AB\u30FC",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u30A4\u30D9\u30F3\u30C8\u30BD\u30FC\u30B9"],normalized:"eventsource"}},tokenization:{particles:["\u3092","\u306B","\u3067","\u304B\u3089","\u306E","\u304C","\u306F","\u3082","\u3078","\u3068"],boundaryStrategy:"particle"},eventHandler:{eventMarker:{primary:"\u3067",position:"after"},temporalMarkers:["\u6642","\u3068\u304D"]}}});var Es={};N(Es,{JapaneseTokenizer:()=>Tr,japaneseTokenizer:()=>ey});var Jf,Qf,Tr,ey,Ps=z(()=>{"use strict";D();Ss();Xn();G();X();_i();$i();Pe();Jf=new Set(["\u3092","\u306B","\u3067","\u304B\u3089","\u307E\u3067","\u3078","\u3068","\u306E","\u304C","\u306F","\u3082","\u3088\u308A"]),Qf=[{native:"\u771F",normalized:"true"},{native:"\u507D",normalized:"false"},{native:"\u30CC\u30EB",normalized:"null"},{native:"\u672A\u5B9A\u7FA9",normalized:"undefined"},{native:"\u6700\u521D",normalized:"first"},{native:"\u6700\u5F8C",normalized:"last"},{native:"\u6B21",normalized:"next"},{native:"\u524D",normalized:"previous"},{native:"\u6700\u3082\u8FD1\u3044",normalized:"closest"},{native:"\u89AA",normalized:"parent"},{native:"\u30AF\u30EA\u30C3\u30AF",normalized:"click"},{native:"\u5909\u66F4",normalized:"change"},{native:"\u9001\u4FE1",normalized:"submit"},{native:"\u5165\u529B",normalized:"input"},{native:"\u30ED\u30FC\u30C9",normalized:"load"},{native:"\u8AAD\u307F\u8FBC\u307F",normalized:"load"},{native:"\u30B9\u30AF\u30ED\u30FC\u30EB",normalized:"scroll"},{native:"\u30AD\u30FC\u30C0\u30A6\u30F3",normalized:"keydown"},{native:"\u30AD\u30FC\u30A2\u30C3\u30D7",normalized:"keyup"},{native:"\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC",normalized:"mouseover"},{native:"\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8",normalized:"mouseout"},{native:"\u30DE\u30A6\u30B9\u62BC\u4E0B",normalized:"mousedown"},{native:"\u30DE\u30A6\u30B9\u89E3\u653E",normalized:"mouseup"},{native:"\u307E\u305F\u306F",normalized:"or"},{native:"\u79C1",normalized:"me"},{native:"\u3057\u305F\u3089",normalized:"on"},{native:"\u3059\u308B\u3068",normalized:"on"},{native:"\u6642\u306B",normalized:"on"},{native:"\u79D2",normalized:"s"},{native:"\u30DF\u30EA\u79D2",normalized:"ms"},{native:"\u5206",normalized:"m"},{native:"\u6642\u9593",normalized:"h"}],Tr=class extends R{constructor(){super();this.language="ja";this.direction="ltr";this.initializeKeywordsFromProfile(Gn,Qf),this.normalizer=new bt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new Qt),this.registerExtractor(new Jt),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return Jf.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||t.startsWith("\u300C")||/^\d/.test(t)?"literal":"identifier"}},ey=new Tr});function ty(n){let e=n.charCodeAt(0);return e>=1536&&e<=1791||e>=1872&&e<=1919||e>=2208&&e<=2303||e>=64336&&e<=65023||e>=65136&&e<=65279}function ry(n){for(let e of n)if(ty(e))return!0;return!1}function ny(n){return n.replace(/[\u064B-\u0652\u0670]/g,"")}var ay,iy,oy,sy,St,Rb,Ls=z(()=>{"use strict";ae();ay=[{pattern:"\u0648\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0641\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0628\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0643\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0644\u0644",confidencePenalty:.12,prefixType:"preposition"}],iy=[{pattern:"\u0627\u0644",confidencePenalty:.08,prefixType:"article",minRemaining:2},{pattern:"\u0648",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0641",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0628",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0644",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0643",confidencePenalty:.1,prefixType:"preposition",minRemaining:3}],oy=[{pattern:"\u064A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u062A",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0646",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0623",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0627",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],sy=[{pattern:"\u0648\u0646",confidencePenalty:.1,type:"masculine-plural"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"masculine-plural-accusative"},{pattern:"\u0627\u062A",confidencePenalty:.1,type:"feminine-plural"},{pattern:"\u0627\u0646",confidencePenalty:.1,type:"dual-nominative"},{pattern:"\u064A\u0646",confidencePenalty:.1,type:"dual-accusative"},{pattern:"\u0647\u0627",confidencePenalty:.1,type:"pronoun-her"},{pattern:"\u0647\u0645",confidencePenalty:.1,type:"pronoun-them"},{pattern:"\u0647\u0646",confidencePenalty:.1,type:"pronoun-them-f"},{pattern:"\u0646\u0627",confidencePenalty:.1,type:"pronoun-us"},{pattern:"\u0643\u0645",confidencePenalty:.1,type:"pronoun-you-pl"},{pattern:"\u0643",confidencePenalty:.08,type:"pronoun-you"},{pattern:"\u0647",confidencePenalty:.08,type:"pronoun-him"},{pattern:"\u064A",confidencePenalty:.08,type:"pronoun-me"},{pattern:"\u0629",confidencePenalty:.08,type:"feminine"}],St=class{constructor(){this.language="ar"}isNormalizable(e){return!(!ry(e)||e.length<2)}normalize(e){let t=ny(e),r=1,a=[],i=[];for(let s of ay)if(t.startsWith(s.pattern)){let l=t.slice(s.pattern.length);if(l.length>=2){t=l,r-=s.confidencePenalty,a.push(s.pattern);break}}if(a.length===0){for(let s of iy)if(t.startsWith(s.pattern)){let l=t.slice(s.pattern.length),c=s.minRemaining??2;if(l.length>=c){t=l,r-=s.confidencePenalty,a.push(s.pattern);break}}}if(!(t.endsWith("\u0627\u062A")||t.endsWith("\u0629")||t.endsWith("\u0648\u0646")||t.endsWith("\u064A\u0646")||t.endsWith("\u0647\u0627")||t.endsWith("\u0647\u0645")||t.endsWith("\u0647\u0646")||t.endsWith("\u0646\u0627")||t.endsWith("\u0643\u0645"))&&(a.length===0||a[0]==="\u0648"||a[0]==="\u0641")){for(let s of oy)if(t.startsWith(s.pattern)){let l=t.slice(s.pattern.length),c=s.minRemaining??3;if(l.length>=c){t=l,r-=s.confidencePenalty,a.push(s.pattern);break}}}for(let s of sy)if(t.endsWith(s.pattern)){let l=t.slice(0,-s.pattern.length);l.length>=2&&(t=l,r-=s.confidencePenalty,i.push(s.pattern))}return r=Math.max(.5,r),a.length===0&&i.length===0?V(e):x(t,r,{removedPrefixes:a,removedSuffixes:i})}},Rb=new St});var Cs={};N(Cs,{arabicProfile:()=>Zn});var Zn,Yn=z(()=>{"use strict";Zn={code:"ar",name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",regions:["priority"],direction:"rtl",script:"arabic",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"\u0623\u0646\u0627",it:"\u0647\u0648",you:"\u0623\u0646\u062A",result:"\u0627\u0644\u0646\u062A\u064A\u062C\u0629",event:"\u0627\u0644\u062D\u062F\u062B",target:"\u0627\u0644\u0647\u062F\u0641",body:"\u062C\u0633\u0645"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u0644\u064A",it:"\u0644\u0647",you:"\u0644\u0643"},keywords:{\u0644\u064A:"me",\u0644\u0643:"you",\u0644\u0647:"it",\u0644\u0647\u0627:"it"}},roleMarkers:{destination:{primary:"\u0639\u0644\u0649",alternatives:["\u0641\u064A","\u0625\u0644\u0649","\u0628","\u0642\u0628\u0644","\u0628\u0639\u062F"],position:"before"},source:{primary:"\u0645\u0646",position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0628\u0640",alternatives:["\u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645"],position:"before"}},keywords:{toggle:{primary:"\u0628\u062F\u0651\u0644",alternatives:["\u0628\u062F\u0644","\u063A\u064A\u0651\u0631","\u063A\u064A\u0631"],normalized:"toggle"},add:{primary:"\u0623\u0636\u0641",alternatives:["\u0627\u0636\u0641"],normalized:"add"},remove:{primary:"\u0627\u062D\u0630\u0641",alternatives:["\u0623\u0632\u0644","\u0627\u0645\u0633\u062D"],normalized:"remove"},put:{primary:"\u0636\u0639",alternatives:["\u0627\u062C\u0639\u0644"],normalized:"put"},append:{primary:"\u0623\u0644\u062D\u0642",normalized:"append"},prepend:{primary:"\u0633\u0628\u0642",normalized:"prepend"},take:{primary:"\u062E\u0630",normalized:"take"},make:{primary:"\u0627\u0635\u0646\u0639",alternatives:["\u0623\u0646\u0634\u0626"],normalized:"make"},clone:{primary:"\u0627\u0633\u062A\u0646\u0633\u062E",normalized:"clone"},swap:{primary:"\u0627\u0633\u062A\u0628\u062F\u0644",alternatives:["\u062A\u0628\u0627\u062F\u0644"],normalized:"swap"},morph:{primary:"\u062D\u0648\u0651\u0644",normalized:"morph"},set:{primary:"\u0627\u0636\u0628\u0637",alternatives:["\u0639\u064A\u0651\u0646","\u062D\u062F\u062F"],normalized:"set"},get:{primary:"\u0627\u062D\u0635\u0644",normalized:"get"},increment:{primary:"\u0632\u0650\u062F",alternatives:["\u0632\u062F","\u0627\u0631\u0641\u0639"],normalized:"increment"},decrement:{primary:"\u0623\u0646\u0642\u0635",alternatives:["\u0627\u0646\u0642\u0635","\u0642\u0644\u0644"],normalized:"decrement"},log:{primary:"\u0633\u062C\u0644",normalized:"log"},show:{primary:"\u0627\u0638\u0647\u0631",alternatives:["\u0623\u0638\u0647\u0631","\u0627\u0639\u0631\u0636"],normalized:"show"},hide:{primary:"\u0627\u062E\u0641",alternatives:["\u0623\u062E\u0641\u0650","\u0627\u062E\u0641\u064A","\u0623\u062E\u0641"],normalized:"hide"},transition:{primary:"\u0627\u0646\u062A\u0642\u0627\u0644",alternatives:["\u0627\u0646\u062A\u0642\u0644"],normalized:"transition"},on:{primary:"\u0639\u0644\u0649",alternatives:["\u0639\u0646\u062F","\u0644\u062F\u0649","\u062D\u064A\u0646"],normalized:"on"},trigger:{primary:"\u062A\u0634\u063A\u064A\u0644",alternatives:["\u0623\u0637\u0644\u0642","\u0641\u0639\u0651\u0644"],normalized:"trigger"},send:{primary:"\u0623\u0631\u0633\u0644",normalized:"send"},focus:{primary:"\u062A\u0631\u0643\u064A\u0632",alternatives:["\u0631\u0643\u0632"],normalized:"focus"},blur:{primary:"\u0636\u0628\u0627\u0628\u064A\u0629",alternatives:["\u0634\u0648\u0634"],normalized:"blur"},empty:{primary:"\u0625\u0641\u0631\u0627\u063A",alternatives:["\u0641\u0627\u0631\u063A"],normalized:"empty"},open:{primary:"\u0627\u0641\u062A\u062D",normalized:"open"},close:{primary:"\u0623\u063A\u0644\u0642",normalized:"close"},select:{primary:"\u0638\u0644\u0644",normalized:"select"},clear:{primary:"\u0646\u0638\u0651\u0641",normalized:"clear"},reset:{primary:"\u0625\u0639\u0627\u062F\u0629-\u0636\u0628\u0637",alternatives:["\u0623\u0639\u062F-\u062A\u0639\u064A\u064A\u0646"],normalized:"reset"},breakpoint:{primary:"\u0646\u0642\u0637\u0629-\u062A\u0648\u0642\u0641",normalized:"breakpoint"},go:{primary:"\u0627\u0630\u0647\u0628",normalized:"go"},scroll:{primary:"\u0645\u0631\u0631",alternatives:["\u062A\u0645\u0631\u064A\u0631"],normalized:"scroll"},push:{primary:"\u0627\u062F\u0641\u0639",alternatives:["\u062F\u0641\u0639"],normalized:"push"},replace:{primary:"\u0627\u0633\u062A\u0628\u062F\u0644_\u0639\u0646\u0648\u0627\u0646",alternatives:["\u0623\u0639\u062F_\u062A\u0639\u064A\u064A\u0646_\u0639\u0646\u0648\u0627\u0646"],normalized:"replace"},process:{primary:"\u0639\u0627\u0644\u062C",alternatives:["\u0645\u0639\u0627\u0644\u062C\u0629"],normalized:"process"},wait:{primary:"\u0627\u0646\u062A\u0638\u0631",normalized:"wait"},fetch:{primary:"\u0627\u062D\u0636\u0631",alternatives:["\u062C\u0644\u0628"],normalized:"fetch"},settle:{primary:"\u0627\u0633\u062A\u0642\u0631",normalized:"settle"},if:{primary:"\u0625\u0630\u0627",normalized:"if"},unless:{primary:"\u0625\u0644\u0627",normalized:"unless"},when:{primary:"\u0639\u0646\u062F\u0645\u0627",normalized:"when"},where:{primary:"\u0623\u064A\u0646",normalized:"where"},else:{primary:"\u0648\u0625\u0644\u0627",alternatives:["\u062E\u0644\u0627\u0641 \u0630\u0644\u0643"],normalized:"else"},repeat:{primary:"\u0643\u0631\u0631",normalized:"repeat"},for:{primary:"\u0644\u0643\u0644",normalized:"for"},while:{primary:"\u0628\u064A\u0646\u0645\u0627",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u0648\u0627\u0635\u0644",normalized:"continue"},halt:{primary:"\u0623\u0648\u0642\u0641",normalized:"halt"},throw:{primary:"\u0627\u0631\u0645",alternatives:["\u0627\u0631\u0645\u0650"],normalized:"throw"},call:{primary:"\u0627\u0633\u062A\u062F\u0639",alternatives:["\u0646\u0627\u062F\u0650"],normalized:"call"},return:{primary:"\u0627\u0631\u062C\u0639",alternatives:["\u0639\u064F\u062F"],normalized:"return"},then:{primary:"\u062B\u0645",alternatives:["\u0628\u0639\u062F\u0647\u0627","\u062B\u0645\u0651"],normalized:"then"},and:{primary:"\u0648\u0623\u064A\u0636\u0627\u064B",alternatives:["\u0623\u064A\u0636\u0627\u064B"],normalized:"and"},end:{primary:"\u0646\u0647\u0627\u064A\u0629",alternatives:["\u0627\u0646\u062A\u0647\u0649","\u0627\u0644\u0646\u0647\u0627\u064A\u0629"],normalized:"end"},js:{primary:"\u062C\u0627\u0641\u0627\u0633\u0643\u0631\u0628\u062A",alternatives:["js"],normalized:"js"},async:{primary:"\u0645\u062A\u0632\u0627\u0645\u0646",normalized:"async"},tell:{primary:"\u0623\u062E\u0628\u0631",normalized:"tell"},default:{primary:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",normalized:"default"},init:{primary:"\u062A\u0647\u064A\u0626\u0629",alternatives:["\u0628\u062F\u0621"],normalized:"init"},behavior:{primary:"\u0633\u0644\u0648\u0643",normalized:"behavior"},install:{primary:"\u062A\u062B\u0628\u064A\u062A",alternatives:["\u062B\u0628\u0651\u062A"],normalized:"install"},measure:{primary:"\u0642\u064A\u0627\u0633",alternatives:["\u0642\u0650\u0633","\u0642\u0633"],normalized:"measure"},beep:{primary:"\u0635\u0641\u0651\u0631",normalized:"beep"},break:{primary:"\u062A\u0648\u0642\u0641",normalized:"break"},copy:{primary:"\u0627\u0646\u0633\u062E",normalized:"copy"},exit:{primary:"\u0627\u062E\u0631\u062C",normalized:"exit"},pick:{primary:"\u0627\u062E\u062A\u0631",normalized:"pick"},render:{primary:"\u0627\u0631\u0633\u0645",normalized:"render"},into:{primary:"\u0641\u064A",alternatives:["\u0625\u0644\u0649"],normalized:"into"},before:{primary:"\u0642\u0628\u0644",normalized:"before"},after:{primary:"\u0628\u0639\u062F",normalized:"after"},until:{primary:"\u062D\u062A\u0649",normalized:"until"},event:{primary:"\u062D\u062F\u062B",normalized:"event"},from:{primary:"\u0645\u0646",normalized:"from"},connect:{primary:"\u0627\u062A\u0635\u0644",alternatives:["\u0627\u062A\u0635\u0627\u0644"],normalized:"connect"},stream:{primary:"\u062A\u062F\u0641\u0642",alternatives:["\u0628\u062B"],normalized:"stream"},live:{primary:"\u0645\u0628\u0627\u0634\u0631",alternatives:["\u062D\u064A"],normalized:"live"},socket:{primary:"\u0645\u0642\u0628\u0633",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\u0627\u0631\u0628\u0637",alternatives:["\u0631\u0628\u0637","bind"],normalized:"bind"},intercept:{primary:"\u0627\u0639\u062A\u0631\u0636",alternatives:["\u0627\u0639\u062A\u0631\u0627\u0636","intercept"],normalized:"intercept"},worker:{primary:"\u0639\u0627\u0645\u0644",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0645\u0635\u062F\u0631-\u0627\u0644\u0623\u062D\u062F\u0627\u062B"],normalized:"eventsource"}},tokenization:{prefixes:["\u0627\u0644","\u0648","\u0641","\u0628","\u0643","\u0644"]},eventHandler:{eventMarker:{primary:"\u0639\u0646\u062F",alternatives:["\u0641\u064A","\u0644\u062F\u0649","\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u062D\u064A\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],position:"before"},temporalMarkers:["\u0639\u0646\u062F\u0645\u0627","\u062D\u064A\u0646","\u0644\u0645\u0651\u0627"],negationMarker:{primary:"\u0639\u062F\u0645",alternatives:["\u0639\u062F\u0645"],position:"before"}}}});var Rs={};N(Rs,{ArabicTokenizer:()=>Er,arabicTokenizer:()=>my});var ly,cy,py,Er,my,Ns=z(()=>{"use strict";D();Ls();Yn();G();X();to();Pe();ro();ao();ly=new Set(["\u0648\u0644","\u0648\u0628","\u0648\u0643","\u0641\u0644","\u0641\u0628","\u0641\u0643"]),cy=new Set(["\u0641\u064A","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062F","\u0628\u064A\u0646","\u0628","\u0644","\u0643"]),py=[{native:"\u0635\u062D\u064A\u062D",normalized:"true"},{native:"\u062E\u0637\u0623",normalized:"false"},{native:"null",normalized:"null"},{native:"\u0641\u0627\u0631\u063A",normalized:"null"},{native:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0641",normalized:"undefined"},{native:"\u0627\u0644\u0623\u0648\u0644",normalized:"first"},{native:"\u0623\u0648\u0644",normalized:"first"},{native:"\u0627\u0644\u0623\u062E\u064A\u0631",normalized:"last"},{native:"\u0622\u062E\u0631",normalized:"last"},{native:"\u0627\u0644\u062A\u0627\u0644\u064A",normalized:"next"},{native:"\u0627\u0644\u0633\u0627\u0628\u0642",normalized:"previous"},{native:"\u0627\u0644\u0623\u0642\u0631\u0628",normalized:"closest"},{native:"\u0627\u0644\u0623\u0628",normalized:"parent"},{native:"\u0627\u0644\u0646\u0642\u0631",normalized:"click"},{native:"\u0646\u0642\u0631",normalized:"click"},{native:"\u0627\u0644\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0625\u062F\u062E\u0627\u0644",normalized:"input"},{native:"\u0627\u0644\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u062A\u063A\u064A\u064A\u0631",normalized:"change"},{native:"\u0627\u0644\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"focus"},{native:"\u0641\u0642\u062F\u0627\u0646 \u0627\u0644\u062A\u0631\u0643\u064A\u0632",normalized:"blur"},{native:"\u0636\u063A\u0637",normalized:"keydown"},{native:"\u0631\u0641\u0639",normalized:"keyup"},{native:"\u062A\u0645\u0631\u064A\u0631 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseover"},{native:"\u0645\u063A\u0627\u062F\u0631\u0629 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseout"},{native:"\u062A\u062D\u0645\u064A\u0644",normalized:"load"},{native:"\u062A\u0645\u0631\u064A\u0631",normalized:"scroll"},{native:"\u0641\u0623\u0631\u0629 \u0623\u0633\u0641\u0644",normalized:"mousedown"},{native:"\u0641\u0623\u0631\u0629 \u0623\u0639\u0644\u0649",normalized:"mouseup"},{native:"\u0641\u0623\u0631\u0629 \u062F\u062E\u0648\u0644",normalized:"mouseenter"},{native:"\u0641\u0623\u0631\u0629 \u062E\u0631\u0648\u062C",normalized:"mouseleave"},{native:"\u0641\u0623\u0631\u0629 \u0641\u0648\u0642",normalized:"mouseover"},{native:"\u0641\u0623\u0631\u0629 \u062E\u0627\u0631\u062C",normalized:"mouseout"},{native:"\u0641\u0623\u0631\u0629 \u062A\u062D\u0631\u0643",normalized:"mousemove"},{native:"\u0645\u0641\u062A\u0627\u062D \u0623\u0633\u0641\u0644",normalized:"keydown"},{native:"\u0645\u0641\u062A\u0627\u062D \u0623\u0639\u0644\u0649",normalized:"keyup"},{native:"\u0647\u064A",normalized:"it"},{native:"\u062B\u0627\u0646\u064A\u0629",normalized:"s"},{native:"\u062B\u0648\u0627\u0646\u064A",normalized:"s"},{native:"\u0645\u0644\u064A \u062B\u0627\u0646\u064A\u0629",normalized:"ms"},{native:"\u062F\u0642\u064A\u0642\u0629",normalized:"m"},{native:"\u062F\u0642\u0627\u0626\u0642",normalized:"m"},{native:"\u0633\u0627\u0639\u0629",normalized:"h"},{native:"\u0633\u0627\u0639\u0627\u062A",normalized:"h"},{native:"\u0639\u0646\u062F\u0645\u0627",normalized:"on"},{native:"\u062D\u064A\u0646\u0645\u0627",normalized:"on"},{native:"\u0639\u0646\u062F",normalized:"on"},{native:"\u062D\u064A\u0646",normalized:"on"},{native:"\u0644\u0645\u0651\u0627",normalized:"on"},{native:"\u0644\u0645\u0627",normalized:"on"},{native:"\u0644\u062F\u0649",normalized:"on"}],Er=class extends R{constructor(){super();this.language="ar";this.direction="rtl";this.initializeKeywordsFromProfile(Zn,py),this.normalizer=new St,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new or),this.registerExtractor(new ir),this.registerExtractor(new ar),this.registerExtractor(new A),this.registerExtractor(new j)}tokenizeWithExtractors(t){let r=[],a=0;for(;a<t.length;){for(;a<t.length&&ze(t[a]);)a++;if(a>=t.length)break;let i=this.tryMultiWordKeyword(t,a);if(i){r.push(i),a=i.position.end;continue}let o=!1;for(let s of this.extractors)if(s.canExtract(t,a)){let l=s.extract(t,a);if(l){let c=l.metadata?.normalized,p=l.metadata?.stem,m=l.metadata?.stemConfidence,d={};if(l.metadata)for(let[y,g]of Object.entries(l.metadata))y!=="normalized"&&y!=="stem"&&y!=="stemConfidence"&&(d[y]=g);let u;d.procliticType==="conjunction"?u="conjunction":d.procliticType==="preposition"?u="particle":u=this.classifyToken(l.value);let f={};c&&(f.normalized=c),p&&(f.stem=p),m!==void 0&&(f.stemConfidence=m),Object.keys(d).length>0&&(f.metadata=d),r.push(Y(l.value,u,Z(a,a+l.length),Object.keys(f).length>0?f:void 0)),a+=l.length,o=!0;break}}if(!o){let s=t[a],l=this.classifyUnknownChar(s);r.push(Y(s,l,Z(a,a+1))),a++}}return new ce(r,this.language)}classifyToken(t){return ly.has(t)?"conjunction":cy.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":"identifier"}},my=new Er});function dy(n){let e=n.charCodeAt(0);return e>=44032&&e<=55203}function uy(n){for(let e of n)if(dy(e))return!0;return!1}var fy,yy,Tt,$b,As=z(()=>{"use strict";ae();fy=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.85,conjugationType:"honorific-causal",minStemLength:1},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional",minStemLength:1},{pattern:"\uC73C\uC2DC\uBA74",confidence:.85,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uC2DC\uBA74",confidence:.82,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uD558\uACE0\uC11C",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uACE0\uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0 \uB098\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uACE0\uC11C",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uAE30\uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uAE30 \uC804\uC5D0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate",minStemLength:1},{pattern:"\uC790\uB9C8\uC790",confidence:.85,conjugationType:"immediate",minStemLength:2},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD574",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uC5B4\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC5B4\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574\uC694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uC544\uC57C\uD574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uB2C8\uAE4C",confidence:.85,conjugationType:"causal-nikka",minStemLength:1},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uC744\uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uC744 \uB54C",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon",minStemLength:1},{pattern:"\uC73C\uBA74",confidence:.85,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uB2C8\uAE4C",confidence:.82,conjugationType:"causal-nikka",minStemLength:2},{pattern:"\uBA74",confidence:.8,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC2B5\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uB429\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:1},{pattern:"\u3142\uB2C8\uB2E4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uC138\uC694",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uC2ED\uC2DC\uC624",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uC5B4\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uC544\uC694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\uD574",confidence:.8,conjugationType:"present",minStemLength:1},{pattern:"\uC5C8\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uC558\uC5B4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uACE0\uC788\uB2E4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uACE0\uC788\uC5B4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary",minStemLength:1},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC548\uD558\uB2E4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uC9C0\uC54A\uB2E4",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\uB2E4",confidence:.75,conjugationType:"dictionary",minStemLength:2}],yy=[{pattern:"\uD558\uC2DC\uB2C8\uAE4C",confidence:.88,conjugationType:"honorific-causal"},{pattern:"\uD558\uC2E4\uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2E4 \uB54C",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\uD558\uC2DC\uBA74",confidence:.88,conjugationType:"honorific-conditional"},{pattern:"\uD558\uC168\uC5B4\uC694",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC168\uC5B4",confidence:.85,conjugationType:"honorific-past"},{pattern:"\uD558\uC2ED\uB2C8\uB2E4",confidence:.85,conjugationType:"honorific-polite"},{pattern:"\uD558\uACE0\uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0 \uB098\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uACE0\uC11C",confidence:.88,conjugationType:"sequential-after"},{pattern:"\uD558\uAE30\uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uAE30 \uC804\uC5D0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\uD558\uC790\uB9C8\uC790",confidence:.88,conjugationType:"immediate"},{pattern:"\uD574\uC57C\uD574\uC694",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD574",confidence:.88,conjugationType:"obligation"},{pattern:"\uD574\uC57C\uD558\uB2E4",confidence:.88,conjugationType:"obligation"},{pattern:"\uD558\uB2C8\uAE4C",confidence:.88,conjugationType:"causal-nikka"},{pattern:"\uD560\uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD560 \uB54C",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\uD558\uBA74",confidence:.88,conjugationType:"conditional-myeon"},{pattern:"\uD558\uC600\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD588\uC2B5\uB2C8\uB2E4",confidence:.85,conjugationType:"past"},{pattern:"\uD569\uB2C8\uB2E4",confidence:.85,conjugationType:"polite"},{pattern:"\uD558\uC2ED\uC2DC\uC624",confidence:.85,conjugationType:"honorific"},{pattern:"\uD558\uC138\uC694",confidence:.85,conjugationType:"honorific"},{pattern:"\uD588\uC5B4\uC694",confidence:.85,conjugationType:"past"},{pattern:"\uD574\uC694",confidence:.85,conjugationType:"polite"},{pattern:"\uD588\uC5B4",confidence:.85,conjugationType:"past"},{pattern:"\uD574",confidence:.8,conjugationType:"present"},{pattern:"\uD558\uACE0\uC788\uC5B4\uC694",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uC5B4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD558\uACE0\uC788\uB2E4",confidence:.82,conjugationType:"progressive"},{pattern:"\uD574\uC11C",confidence:.82,conjugationType:"connective"},{pattern:"\uD558\uACE0",confidence:.8,conjugationType:"connective"},{pattern:"\uD558\uC9C0\uC54A\uC544\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uD558\uC9C0\uC54A\uB2E4",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574\uC694",confidence:.82,conjugationType:"negative"},{pattern:"\uC548\uD574",confidence:.82,conjugationType:"negative"},{pattern:"\uD574\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB77C",confidence:.82,conjugationType:"imperative"},{pattern:"\uD558\uB2E4",confidence:.88,conjugationType:"dictionary"}],Tt=class{constructor(){this.language="ko"}isNormalizable(e){return!(!uy(e)||e.length<2)}normalize(e){let t=this.normalizeCompound(e);if(t)return t;let r=this.tryHadaNormalization(e);if(r)return r;for(let a of fy)if(e.endsWith(a.pattern)){let i=e.slice(0,-a.pattern.length),o=a.minStemLength??2;if(i.length<o)continue;let s={removedSuffixes:[a.pattern]};return a.conjugationType&&(s.conjugationType=a.conjugationType),x(i,a.confidence,s)}return V(e)}tryHadaNormalization(e){for(let t of yy)if(e.endsWith(t.pattern)){let r=e.slice(0,-t.pattern.length);if(r.length<1)continue;return x(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"hada-verb"})}return null}normalizeCompound(e){let t=[{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uC5B4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uC5B4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C\uC600\uB2E4",suffixes:["\uD558\uACE0\uB098\uC11C","\uC600\uB2E4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD558\uACE0\uB098\uC11C",suffixes:["\uD558\uACE0","\uB098\uC11C"],confidence:.85,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC5B4",suffixes:["\uD574\uC57C","\uD588\uC5B4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uB2E4",suffixes:["\uD574\uC57C","\uD588\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD574\uC57C\uD588\uC2B5\uB2C8\uB2E4",suffixes:["\uD574\uC57C","\uD588\uC2B5\uB2C8\uB2E4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\uD558\uC2DC\uBA74\uC11C",suffixes:["\uD558\uC2DC","\uBA74\uC11C"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uC2DC\uBA70",suffixes:["\uD558\uC2DC","\uBA70"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uC5B4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uC5B4"],confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uD558\uACE0\uC788\uC5C8\uB2E4",suffixes:["\uD558\uACE0","\uC788\uC5C8\uB2E4"],confidence:.8,conjugationType:"progressive",minStemLength:2}];for(let{pattern:r,suffixes:a,confidence:i,conjugationType:o,minStemLength:s}of t)if(e.endsWith(r)){let l=e.slice(0,-r.length);if(l.length<s)continue;return x(l,i,{removedSuffixes:a,conjugationType:o})}return null}},$b=new Tt});var js={};N(js,{koreanProfile:()=>Jn});var Jn,Qn=z(()=>{"use strict";Jn={code:"ko",name:"Korean",nativeName:"\uD55C\uAD6D\uC5B4",regions:["east-asian","priority"],direction:"ltr",script:"hangul",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!0,verb:{position:"end",suffixes:["\uB2E4","\uC694","\uB2C8\uB2E4","\uC138\uC694"],subjectDrop:!0},references:{me:"\uB098",it:"\uADF8\uAC83",you:"\uB108",result:"\uACB0\uACFC",event:"\uC774\uBCA4\uD2B8",target:"\uB300\uC0C1",body:"\uBC14\uB514"},possessive:{marker:"\uC758",markerPosition:"between",specialForms:{me:"\uB0B4",it:"\uADF8\uAC83\uC758",you:"\uB124"},keywords:{\uB0B4:"me",\uB124:"you",\uADF8\uC758:"it"}},roleMarkers:{patient:{primary:"\uC744",alternatives:["\uB97C"],position:"after"},destination:{primary:"\uC5D0",alternatives:["\uC73C\uB85C","\uB85C","\uC758"],position:"after"},source:{primary:"\uC5D0\uC11C",alternatives:["\uBD80\uD130"],position:"after"},style:{primary:"\uB85C",alternatives:["\uC73C\uB85C"],position:"after"},event:{primary:"\uC744",alternatives:["\uB97C"],position:"after"}},keywords:{toggle:{primary:"\uD1A0\uAE00",normalized:"toggle"},add:{primary:"\uCD94\uAC00",normalized:"add"},remove:{primary:"\uC81C\uAC70",alternatives:["\uC0AD\uC81C"],normalized:"remove"},put:{primary:"\uB123\uB2E4",alternatives:["\uB123\uAE30","\uB193\uAE30"],normalized:"put"},append:{primary:"\uB367\uBD99\uC774\uB2E4",alternatives:["\uB05D\uC5D0\uCD94\uAC00"],normalized:"append"},prepend:{primary:"\uC55E\uC5D0\uCD94\uAC00",alternatives:["\uC120\uB450\uCD94\uAC00"],normalized:"prepend"},take:{primary:"\uAC00\uC838\uC624\uB2E4",normalized:"take"},make:{primary:"\uB9CC\uB4E4\uB2E4",normalized:"make"},clone:{primary:"\uBCF5\uC81C",normalized:"clone"},swap:{primary:"\uAD50\uD658",alternatives:["\uBC14\uAFB8\uB2E4"],normalized:"swap"},morph:{primary:"\uBCC0\uD615",alternatives:["\uBCC0\uD658"],normalized:"morph"},set:{primary:"\uC124\uC815",normalized:"set"},get:{primary:"\uC5BB\uB2E4",normalized:"get"},increment:{primary:"\uC99D\uAC00",normalized:"increment"},decrement:{primary:"\uAC10\uC18C",normalized:"decrement"},log:{primary:"\uB85C\uADF8",normalized:"log"},show:{primary:"\uBCF4\uC774\uB2E4",alternatives:["\uD45C\uC2DC","\uBCF4\uC774\uAE30"],normalized:"show"},hide:{primary:"\uC228\uAE30\uB2E4",alternatives:["\uC228\uAE30\uAE30"],normalized:"hide"},transition:{primary:"\uD2B8\uB79C\uC9C0\uC158",alternatives:["\uC804\uD658"],normalized:"transition"},on:{primary:"\uC5D0",alternatives:["\uC2DC","\uD560 \uB54C"],normalized:"on"},trigger:{primary:"\uD2B8\uB9AC\uAC70",normalized:"trigger"},send:{primary:"\uBCF4\uB0B4\uB2E4",normalized:"send"},focus:{primary:"\uD3EC\uCEE4\uC2A4",normalized:"focus"},blur:{primary:"\uBE14\uB7EC",normalized:"blur"},empty:{primary:"\uBE44\uC6B0\uAE30",normalized:"empty"},open:{primary:"\uC5F4\uAE30",normalized:"open"},close:{primary:"\uB2EB\uAE30",normalized:"close"},select:{primary:"\uACE0\uB974\uAE30",normalized:"select"},clear:{primary:"\uC9C0\uC6B0\uAE30",normalized:"clear"},reset:{primary:"\uC7AC\uC124\uC815",normalized:"reset"},breakpoint:{primary:"\uC911\uB2E8\uC810",normalized:"breakpoint"},click:{primary:"\uD074\uB9AD",normalized:"click"},hover:{primary:"\uD638\uBC84",normalized:"hover"},submit:{primary:"\uC81C\uCD9C",normalized:"submit"},input:{primary:"\uC785\uB825",normalized:"input"},change:{primary:"\uBCC0\uACBD",normalized:"change"},go:{primary:"\uC774\uB3D9",normalized:"go"},scroll:{primary:"\uC2A4\uD06C\uB864",normalized:"scroll"},push:{primary:"\uD478\uC2DC",normalized:"push"},replace:{primary:"\uAD50\uCCB4",alternatives:["\uBC14\uAFB8\uAE30"],normalized:"replace"},process:{primary:"\uCC98\uB9AC",normalized:"process"},wait:{primary:"\uB300\uAE30",normalized:"wait"},fetch:{primary:"\uD328\uCE58",alternatives:["\uAC00\uC838\uC624\uAE30"],normalized:"fetch"},settle:{primary:"\uC548\uC815",normalized:"settle"},if:{primary:"\uB9CC\uC57D",normalized:"if"},when:{primary:"\uB54C",normalized:"when"},where:{primary:"\uC5B4\uB514",normalized:"where"},else:{primary:"\uC544\uB2C8\uBA74",normalized:"else"},unless:{primary:"\uC544\uB2C8\uB77C\uBA74",normalized:"unless"},repeat:{primary:"\uBC18\uBCF5",normalized:"repeat"},for:{primary:"\uAC01\uAC01",normalized:"for"},while:{primary:"\uB3D9\uC548",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\uACC4\uC18D",normalized:"continue"},halt:{primary:"\uC815\uC9C0",normalized:"halt"},throw:{primary:"\uB358\uC9C0\uB2E4",normalized:"throw"},call:{primary:"\uD638\uCD9C",normalized:"call"},return:{primary:"\uBC18\uD658",normalized:"return"},then:{primary:"\uADF8\uB2E4\uC74C",alternatives:["\uADF8\uB7F0\uD6C4"],normalized:"then"},and:{primary:"\uADF8\uB9AC\uACE0",alternatives:["\uB610\uD55C","\uBC0F"],normalized:"and"},matches:{primary:"\uC77C\uCE58",normalized:"matches"},end:{primary:"\uB05D",alternatives:["\uB9C8\uCE68"],normalized:"end"},js:{primary:"JS\uC2E4\uD589",alternatives:["js"],normalized:"js"},async:{primary:"\uBE44\uB3D9\uAE30",normalized:"async"},tell:{primary:"\uB9D0\uD558\uB2E4",normalized:"tell"},default:{primary:"\uAE30\uBCF8\uAC12",normalized:"default"},init:{primary:"\uCD08\uAE30\uD654",normalized:"init"},behavior:{primary:"\uB3D9\uC791",normalized:"behavior"},install:{primary:"\uC124\uCE58",normalized:"install"},measure:{primary:"\uCE21\uC815",normalized:"measure"},beep:{primary:"\uBE44\uD504",normalized:"beep"},break:{primary:"\uC911\uB2E8",normalized:"break"},copy:{primary:"\uBCF5\uC0AC",normalized:"copy"},exit:{primary:"\uB098\uAC00\uAE30",normalized:"exit"},pick:{primary:"\uC120\uD0DD",normalized:"pick"},render:{primary:"\uB80C\uB354\uB9C1",normalized:"render"},into:{primary:"\uC73C\uB85C",normalized:"into"},before:{primary:"\uC804\uC5D0",normalized:"before"},after:{primary:"\uD6C4\uC5D0",normalized:"after"},until:{primary:"\uAE4C\uC9C0",normalized:"until"},event:{primary:"\uC774\uBCA4\uD2B8",normalized:"event"},from:{primary:"\uC5D0\uC11C",normalized:"from"},connect:{primary:"\uC5F0\uACB0",alternatives:["\uC811\uC18D"],normalized:"connect"},stream:{primary:"\uC2A4\uD2B8\uB9BC",alternatives:["\uC2A4\uD2B8\uB9AC\uBC0D"],normalized:"stream"},live:{primary:"\uC2E4\uC2DC\uAC04",alternatives:["\uB77C\uC774\uBE0C"],normalized:"live"},socket:{primary:"\uC18C\uCF13",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\uBC14\uC778\uB4DC",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\uAC00\uB85C\uCC44\uAE30",alternatives:["\uC778\uD130\uC149\uD2B8","intercept"],normalized:"intercept"},worker:{primary:"\uC6CC\uCEE4",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\uC774\uBCA4\uD2B8\uC18C\uC2A4"],normalized:"eventsource"}},tokenization:{particles:["\uC744","\uB97C","\uC774","\uAC00","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uC73C\uB85C","\uB85C","\uC640","\uACFC","\uB3C4"],boundaryStrategy:"space"},eventHandler:{eventMarker:{primary:"\uD560 \uB54C",alternatives:["\uD560\uB54C","\uB54C","\uC5D0"],position:"after"},temporalMarkers:["\uD560 \uB54C","\uD560\uB54C","\uB54C"]}}});var Ms={};N(Ms,{KoreanTokenizer:()=>Pr,koreanTokenizer:()=>hy});var gy,vy,Pr,hy,Os=z(()=>{"use strict";D();As();Qn();G();X();Bi();Ui();Pe();gy=new Set(["\uC774","\uAC00","\uC744","\uB97C","\uC740","\uB294","\uC5D0","\uC5D0\uC11C","\uB85C","\uC73C\uB85C","\uC640","\uACFC","\uC758","\uB3C4","\uB9CC","\uBD80\uD130","\uAE4C\uC9C0","\uCC98\uB7FC","\uBCF4\uB2E4"]),vy=[{native:"\uCC38",normalized:"true"},{native:"\uAC70\uC9D3",normalized:"false"},{native:"\uB110",normalized:"null"},{native:"\uBBF8\uC815\uC758",normalized:"undefined"},{native:"\uCCAB\uBC88\uC9F8",normalized:"first"},{native:"\uB9C8\uC9C0\uB9C9",normalized:"last"},{native:"\uB2E4\uC74C",normalized:"next"},{native:"\uC774\uC804",normalized:"previous"},{native:"\uAC00\uC7A5\uAC00\uAE4C\uC6B4",normalized:"closest"},{native:"\uBD80\uBAA8",normalized:"parent"},{native:"\uD074\uB9AD",normalized:"click"},{native:"\uB354\uBE14\uD074\uB9AD",normalized:"dblclick"},{native:"\uBCC0\uACBD",normalized:"change"},{native:"\uC81C\uCD9C",normalized:"submit"},{native:"\uC785\uB825",normalized:"input"},{native:"\uB85C\uB4DC",normalized:"load"},{native:"\uC2A4\uD06C\uB864",normalized:"scroll"},{native:"\uD0A4\uB2E4\uC6B4",normalized:"keydown"},{native:"\uD0A4\uC5C5",normalized:"keyup"},{native:"\uB9C8\uC6B0\uC2A4\uC624\uBC84",normalized:"mouseover"},{native:"\uB9C8\uC6B0\uC2A4\uC544\uC6C3",normalized:"mouseout"},{native:"\uB9C8\uC6B0\uC2A4\uB2E4\uC6B4",normalized:"mousedown"},{native:"\uB9C8\uC6B0\uC2A4\uC5C5",normalized:"mouseup"},{native:"\uB0B4",normalized:"my"},{native:"\uADF8\uAC83\uC758",normalized:"its"},{native:"\uADF8\uB2E4\uC74C",normalized:"then"},{native:"\uADF8\uB7F0\uD6C4",normalized:"then"},{native:"\uADF8\uB7EC\uBA74",normalized:"then"},{native:"\uADF8\uB9AC\uACE0",normalized:"and"},{native:"\uB610\uB294",normalized:"or"},{native:"\uC544\uB2C8",normalized:"not"},{native:"\uC774\uB2E4",normalized:"is"},{native:"\uCD08",normalized:"s"},{native:"\uBC00\uB9AC\uCD08",normalized:"ms"},{native:"\uBD84",normalized:"m"},{native:"\uC2DC\uAC04",normalized:"h"}],Pr=class extends R{constructor(){super();this.language="ko";this.direction="ltr";this.initializeKeywordsFromProfile(Jn,vy),this.normalizer=new Tt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new tr),this.registerExtractor(new er),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return gy.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":"identifier"}},hy=new Pr});var Ws={};N(Ws,{chineseProfile:()=>ea});var ea,ta=z(()=>{"use strict";ea={code:"zh",name:"Chinese",nativeName:"\u4E2D\u6587",regions:["east-asian","priority"],direction:"ltr",script:"cjk",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,verb:{position:"second",subjectDrop:!0},references:{me:"\u6211",it:"\u5B83",you:"\u4F60",result:"\u7ED3\u679C",event:"\u4E8B\u4EF6",target:"\u76EE\u6807",body:"\u4E3B\u4F53"},possessive:{marker:"\u7684",markerPosition:"between",keywords:{\u6211\u7684:"me",\u4F60\u7684:"you",\u5B83\u7684:"it",\u4ED6\u7684:"it",\u5979\u7684:"it"}},roleMarkers:{destination:{primary:"\u5728",alternatives:["\u5230","\u4E8E"],position:"before"},source:{primary:"\u4ECE",alternatives:["\u7531"],position:"before"},patient:{primary:"\u628A",position:"before"},style:{primary:"\u7528",alternatives:["\u4EE5"],position:"before"}},keywords:{toggle:{primary:"\u5207\u6362",normalized:"toggle"},add:{primary:"\u6DFB\u52A0",alternatives:["\u52A0"],normalized:"add"},remove:{primary:"\u79FB\u9664",alternatives:["\u5220\u9664","\u53BB\u6389"],normalized:"remove"},put:{primary:"\u653E\u7F6E",alternatives:["\u653E","\u653E\u5165"],normalized:"put"},append:{primary:"\u8FFD\u52A0",alternatives:["\u9644\u52A0"],normalized:"append"},prepend:{primary:"\u524D\u7F6E",alternatives:["\u9884\u7F6E"],normalized:"prepend"},take:{primary:"\u62FF\u53D6",normalized:"take"},make:{primary:"\u5236\u4F5C",normalized:"make"},clone:{primary:"\u514B\u9686",normalized:"clone"},swap:{primary:"\u4EA4\u6362",normalized:"swap"},morph:{primary:"\u53D8\u5F62",alternatives:["\u8F6C\u6362"],normalized:"morph"},set:{primary:"\u8BBE\u7F6E",alternatives:["\u8BBE\u5B9A"],normalized:"set"},get:{primary:"\u83B7\u53D6",alternatives:["\u83B7\u5F97","\u53D6\u5F97"],normalized:"get"},increment:{primary:"\u589E\u52A0",normalized:"increment"},decrement:{primary:"\u51CF\u5C11",normalized:"decrement"},log:{primary:"\u65E5\u5FD7",normalized:"log"},show:{primary:"\u663E\u793A",alternatives:["\u5C55\u793A"],normalized:"show"},hide:{primary:"\u9690\u85CF",normalized:"hide"},transition:{primary:"\u8FC7\u6E21",normalized:"transition"},on:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},trigger:{primary:"\u89E6\u53D1",normalized:"trigger"},send:{primary:"\u53D1\u9001",normalized:"send"},focus:{primary:"\u805A\u7126",normalized:"focus"},blur:{primary:"\u5931\u7126",normalized:"blur"},empty:{primary:"\u6E05\u7A7A",alternatives:["\u7A7A\u7684"],normalized:"empty"},open:{primary:"\u6253\u5F00",normalized:"open"},close:{primary:"\u5173\u95ED",normalized:"close"},select:{primary:"\u9009\u62E9",normalized:"select"},clear:{primary:"\u6E05\u9664",normalized:"clear"},reset:{primary:"\u91CD\u7F6E",normalized:"reset"},breakpoint:{primary:"\u65AD\u70B9",normalized:"breakpoint"},click:{primary:"\u70B9\u51FB",normalized:"click"},hover:{primary:"\u60AC\u505C",alternatives:["\u60AC\u6D6E"],normalized:"hover"},submit:{primary:"\u63D0\u4EA4",normalized:"submit"},input:{primary:"\u8F93\u5165",normalized:"input"},change:{primary:"\u6539\u53D8",alternatives:["\u53D8\u5316"],normalized:"change"},go:{primary:"\u524D\u5F80",normalized:"go"},scroll:{primary:"\u6EDA\u52A8",normalized:"scroll"},push:{primary:"\u63A8\u9001",normalized:"push"},replace:{primary:"\u66FF\u6362",normalized:"replace"},process:{primary:"\u5904\u7406",normalized:"process"},wait:{primary:"\u7B49\u5F85",normalized:"wait"},fetch:{primary:"\u6293\u53D6",normalized:"fetch"},settle:{primary:"\u7A33\u5B9A",normalized:"settle"},if:{primary:"\u5982\u679C",normalized:"if"},unless:{primary:"\u9664\u975E",normalized:"unless"},when:{primary:"\u4F55\u65F6",normalized:"when"},where:{primary:"\u54EA\u91CC",normalized:"where"},else:{primary:"\u5426\u5219",normalized:"else"},matches:{primary:"\u5339\u914D",normalized:"matches"},repeat:{primary:"\u91CD\u590D",normalized:"repeat"},for:{primary:"\u4E3A",normalized:"for"},while:{primary:"\u6301\u7EED",normalized:"while"},continue:{primary:"\u7EE7\u7EED",normalized:"continue"},halt:{primary:"\u505C\u6B62",normalized:"halt"},throw:{primary:"\u629B\u51FA",normalized:"throw"},call:{primary:"\u8C03\u7528",normalized:"call"},return:{primary:"\u8FD4\u56DE",normalized:"return"},then:{primary:"\u7136\u540E",alternatives:["\u63A5\u7740","\u90A3\u4E48"],normalized:"then"},and:{primary:"\u5E76\u4E14",alternatives:["\u548C","\u800C\u4E14"],normalized:"and"},end:{primary:"\u7ED3\u675F",alternatives:["\u7EC8\u6B62","\u5B8C"],normalized:"end"},js:{primary:"JS\u6267\u884C",alternatives:["js"],normalized:"js"},async:{primary:"\u5F02\u6B65",normalized:"async"},tell:{primary:"\u544A\u8BC9",normalized:"tell"},default:{primary:"\u9ED8\u8BA4",normalized:"default"},init:{primary:"\u521D\u59CB\u5316",normalized:"init"},behavior:{primary:"\u884C\u4E3A",normalized:"behavior"},install:{primary:"\u5B89\u88C5",normalized:"install"},measure:{primary:"\u6D4B\u91CF",normalized:"measure"},beep:{primary:"\u8702\u9E23",normalized:"beep"},break:{primary:"\u4E2D\u65AD",normalized:"break"},copy:{primary:"\u590D\u5236",normalized:"copy"},exit:{primary:"\u9000\u51FA",normalized:"exit"},pick:{primary:"\u9009\u53D6",normalized:"pick"},render:{primary:"\u6E32\u67D3",normalized:"render"},into:{primary:"\u8FDB\u5165",normalized:"into"},before:{primary:"\u4E4B\u524D",normalized:"before"},after:{primary:"\u4E4B\u540E",normalized:"after"},until:{primary:"\u76F4\u5230",normalized:"until"},event:{primary:"\u4E8B\u4EF6",normalized:"event"},from:{primary:"\u4ECE",normalized:"from"},connect:{primary:"\u8FDE\u63A5",alternatives:["\u8FDE\u63A5\u5668"],normalized:"connect"},stream:{primary:"\u6D41",alternatives:["\u6D41\u5F0F\u4F20\u8F93"],normalized:"stream"},live:{primary:"\u5B9E\u65F6",alternatives:["\u76F4\u64AD"],normalized:"live"},socket:{primary:"\u5957\u63A5\u5B57",alternatives:["websocket","socket"],normalized:"socket"},bind:{primary:"\u7ED1\u5B9A",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\u62E6\u622A",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"\u5DE5\u4F5C\u7EBF\u7A0B",alternatives:["\u5DE5\u4F5C\u8005","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u4E8B\u4EF6\u6E90"],normalized:"eventsource"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u5F53",alternatives:["\u5728...\u65F6"],normalized:"on"},sourceMarker:{primary:"\u4ECE",position:"before"},eventMarker:{primary:"\u5F53",alternatives:["\u5728"],position:"before"},temporalMarkers:["\u5F53","\u5728...\u65F6"]}}});var Is={};N(Is,{ChineseTokenizer:()=>Lr,chineseTokenizer:()=>xy});var zy,ky,Lr,xy,Vs=z(()=>{"use strict";D();ta();G();X();Gi();Yi();Pe();zy=new Set(["\u628A","\u5728","\u4ECE","\u5230","\u5411","\u7ED9","\u5BF9","\u7528","\u88AB","\u8BA9","\u7684","\u5730","\u5F97","\u4E86","\u7740","\u8FC7","\u5417","\u5462","\u5427"]),ky=[{native:"\u771F",normalized:"true"},{native:"\u5047",normalized:"false"},{native:"\u7A7A",normalized:"null"},{native:"\u672A\u5B9A\u4E49",normalized:"undefined"},{native:"\u7B2C\u4E00\u4E2A",normalized:"first"},{native:"\u9996\u4E2A",normalized:"first"},{native:"\u6700\u540E\u4E00\u4E2A",normalized:"last"},{native:"\u672B\u4E2A",normalized:"last"},{native:"\u4E0B\u4E00\u4E2A",normalized:"next"},{native:"\u4E0A\u4E00\u4E2A",normalized:"previous"},{native:"\u6700\u8FD1\u7684",normalized:"closest"},{native:"\u7236\u7EA7",normalized:"parent"},{native:"\u70B9\u51FB",normalized:"click"},{native:"\u53CC\u51FB",normalized:"dblclick"},{native:"\u8F93\u5165",normalized:"input"},{native:"\u53D8\u66F4",normalized:"change"},{native:"\u6539\u53D8",normalized:"change"},{native:"\u63D0\u4EA4",normalized:"submit"},{native:"\u6309\u952E",normalized:"keydown"},{native:"\u91CA\u653E\u952E",normalized:"keyup"},{native:"\u9F20\u6807\u79FB\u5165",normalized:"mouseover"},{native:"\u9F20\u6807\u79FB\u51FA",normalized:"mouseout"},{native:"\u83B7\u5F97\u7126\u70B9",normalized:"focus"},{native:"\u5931\u53BB\u7126\u70B9",normalized:"blur"},{native:"\u52A0\u8F7D",normalized:"load"},{native:"\u6EDA\u52A8",normalized:"scroll"},{native:"\u6211\u7684",normalized:"my"},{native:"\u5B83\u7684",normalized:"its"},{native:"\u79D2",normalized:"s"},{native:"\u6BEB\u79D2",normalized:"ms"},{native:"\u5206\u949F",normalized:"m"},{native:"\u5C0F\u65F6",normalized:"h"},{native:"\u548C",normalized:"and"},{native:"\u6216\u8005",normalized:"or"},{native:"\u6216",normalized:"or"},{native:"\u4E0D",normalized:"not"},{native:"\u975E",normalized:"not"},{native:"\u662F",normalized:"is"},{native:"\u82E5",normalized:"if"},{native:"\u4E0D\u7136",normalized:"else"},{native:"\u5FAA\u73AF",normalized:"repeat"},{native:"\u904D\u5386",normalized:"for"},{native:"\u6BCF\u4E2A",normalized:"for"},{native:"\u4E3A\u6BCF",normalized:"for"},{native:"\u4E2D\u6B62",normalized:"halt"},{native:"\u629B",normalized:"throw"},{native:"\u547C\u53EB",normalized:"call"},{native:"\u56DE",normalized:"return"},{native:"\u811A\u672C",normalized:"js"},{native:"\u901A\u77E5",normalized:"tell"},{native:"\u7F3A\u7701",normalized:"default"},{native:"\u521D\u59CB",normalized:"init"},{native:"\u52A8\u4F5C",normalized:"behavior"},{native:"\u6FC0\u53D1",normalized:"trigger"},{native:"\u5BF9\u7126",normalized:"focus"},{native:"\u6A21\u7CCA",normalized:"blur"},{native:"\u8DF3\u8F6C",normalized:"go"},{native:"\u5BFC\u822A",normalized:"go"},{native:"\u6293\u53D6",normalized:"fetch"},{native:"\u83B7\u53D6\u6570\u636E",normalized:"fetch"},{native:"\u5B89\u5B9A",normalized:"settle"},{native:"\u62FF\u53D6",normalized:"take"},{native:"\u53D6",normalized:"take"},{native:"\u521B\u5EFA",normalized:"make"},{native:"\u514B\u9686",normalized:"clone"},{native:"\u8BB0\u5F55",normalized:"log"},{native:"\u6253\u5370",normalized:"log"},{native:"\u52A8\u753B",normalized:"transition"},{native:"\u5230\u91CC\u9762",normalized:"into"},{native:"\u91CC",normalized:"into"},{native:"\u524D",normalized:"before"},{native:"\u540E",normalized:"after"},{native:"\u90A3\u4E48",normalized:"then"},{native:"\u5B8C",normalized:"end"}],Lr=class extends R{constructor(){super();this.language="zh";this.direction="ltr";this.initializeKeywordsFromProfile(ea,ky),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(new nr),this.registerExtractor(new rr),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return zy.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||t.startsWith("\u201C")||t.startsWith("\u2018")||/^\d/.test(t)?"literal":"identifier"}},xy=new Lr});function wy(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:"\xE7\xC7\u011F\u011E\u0131\u0130\xF6\xD6\u015F\u015E\xFC\xDC".includes(n)}function by(n){for(let e of n)if(wy(e))return!0;return!1}function ra(n){return"a\u0131ouAIOU".includes(n)}function _s(n){return"ei\xF6\xFCE\u0130\xD6\xDC".includes(n)}function qs(n){return ra(n)||_s(n)}function Sy(n){for(let e=n.length-1;e>=0;e--)if(qs(n[e]))return n[e];return null}function Ty(n,e){let t=Sy(n);if(!t)return!0;let r=e.split("").find(a=>qs(a));return r?ra(t)?ra(r):_s(r):!0}var Ey,Et,o0,Ks=z(()=>{"use strict";ae();Ey=[{pattern:"iyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"iyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"eceksiniz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"eceksin",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fiz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011Fim",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"aca\u011F\u0131m",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"ecekler",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaklar",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"mi\u015Fsiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fsin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Fs\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fs\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fsun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fiz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Fum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mi\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015Fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015Flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn\xFCz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"din",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"duk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\xFCk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tuk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"dum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFCm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"iyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\xFCyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"ecek",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"acak",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"mi\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\xFC\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015F",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"di",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"du",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"ti",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\xFC",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tu",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mek",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"mak",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"eyelim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ayal\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"eyim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ay\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"elim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"al\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"melisiniz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"melisin",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyiz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyim",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131m",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"meliler",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131lar",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meli",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"ebiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"ebildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"iniz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n\u0131z",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn\xFCz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"unuz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"in",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\xFCn",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"un",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"ildi",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131ld\u0131",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCld\xFC",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"uldu",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ilir",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131l\u0131r",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\xFCl\xFCr",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ulur",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"tirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"turmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"dirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\xFCrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"durmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"miyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"miyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\xFCyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"medi",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"mad\u0131",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"me",confidence:.75,conjugationType:"negative",minStemLength:3},{pattern:"ma",confidence:.75,conjugationType:"negative",minStemLength:3}],Et=class{constructor(){this.language="tr"}isNormalizable(e){return!(!by(e)||e.length<3)}normalize(e){let t=e.toLowerCase();for(let r of Ey)if(t.endsWith(r.pattern)){let a=t.slice(0,-r.pattern.length),i=r.minStemLength??2;if(a.length<i)continue;if(!Ty(a,r.pattern)){let s=r.confidence*.9,l={removedSuffixes:[r.pattern]};return r.conjugationType&&(l.conjugationType=r.conjugationType),x(a,s,l)}let o={removedSuffixes:[r.pattern]};return r.conjugationType&&(o.conjugationType=r.conjugationType),x(a,r.confidence,o)}return V(e)}},o0=new Et});var $s={};N($s,{turkishProfile:()=>na});var na,aa=z(()=>{"use strict";na={code:"tr",name:"Turkish",nativeName:"T\xFCrk\xE7e",regions:["priority"],direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"case-suffix",usesSpaces:!0,markersOptional:!0,verb:{position:"end",suffixes:["mek","mak","yor","di","mi\u015F"],subjectDrop:!0},references:{me:"ben",it:"o",you:"sen",result:"sonu\xE7",event:"olay",target:"hedef",body:"g\xF6vde"},possessive:{marker:"\u0131n",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"benim",it:"onun",you:"senin"},keywords:{benim:"me",senin:"you",onun:"it"}},roleMarkers:{patient:{primary:"i",alternatives:["\u0131","u","\xFC","yi","y\u0131","yu","y\xFC","ni","n\u0131","nu","n\xFC"],position:"after"},destination:{primary:"e",alternatives:["a","ye","ya","ne","na","de","da","te","ta","\u0131n","in","un","\xFCn","n\u0131n","nin","nun","n\xFCn"],position:"after"},source:{primary:"den",alternatives:["dan","ten","tan"],position:"after"},style:{primary:"le",alternatives:["la","yle","yla"],position:"after"},event:{primary:"i",alternatives:["\u0131","u","\xFC"],position:"after"}},keywords:{toggle:{primary:"de\u011Fi\u015Ftir",alternatives:["a\xE7/kapat"],normalized:"toggle"},add:{primary:"ekle",normalized:"add"},remove:{primary:"kald\u0131r",alternatives:["sil"],normalized:"remove"},put:{primary:"koy",normalized:"put"},append:{primary:"ili\u015Ftir",normalized:"append"},prepend:{primary:"ba\u015F\u0131naekle",normalized:"prepend"},take:{primary:"tut",normalized:"take"},make:{primary:"yap",normalized:"make"},clone:{primary:"klonla",normalized:"clone"},swap:{primary:"takas",normalized:"swap"},morph:{primary:"d\xF6n\xFC\u015Ft\xFCr",alternatives:["\u015Fekil de\u011Fi\u015Ftir"],normalized:"morph"},set:{primary:"ayarla",alternatives:["belirle"],normalized:"set"},get:{primary:"al",normalized:"get"},increment:{primary:"art\u0131r",normalized:"increment"},decrement:{primary:"azalt",normalized:"decrement"},log:{primary:"kaydet",normalized:"log"},show:{primary:"g\xF6ster",normalized:"show"},hide:{primary:"gizle",normalized:"hide"},transition:{primary:"ge\xE7i\u015F",normalized:"transition"},on:{primary:"\xFCzerinde",alternatives:["zaman"],normalized:"on"},trigger:{primary:"tetikle",normalized:"trigger"},send:{primary:"g\xF6nder",normalized:"send"},focus:{primary:"odak",alternatives:["odaklanma"],normalized:"focus"},blur:{primary:"bulan\u0131k",alternatives:["bulan\u0131kl\u0131k","bulanik"],normalized:"blur"},empty:{primary:"bo\u015Falt",alternatives:["bosalt","bo\u015F"],normalized:"empty"},open:{primary:"a\xE7",alternatives:["ac"],normalized:"open"},close:{primary:"kapat",normalized:"close"},select:{primary:"vurgula",normalized:"select"},clear:{primary:"temizle",normalized:"clear"},reset:{primary:"s\u0131f\u0131rla",alternatives:["sifirla"],normalized:"reset"},breakpoint:{primary:"kesme-noktas\u0131",alternatives:["kesme-noktasi"],normalized:"breakpoint"},click:{primary:"t\u0131klama",alternatives:["t\u0131kla","tiklama","t\u0131k","tik"],normalized:"click"},hover:{primary:"\xFCzerine gelme",alternatives:["\xFCzerinde gezinme"],normalized:"hover"},submit:{primary:"g\xF6nderme",normalized:"submit"},input:{primary:"giri\u015F",alternatives:["girdi","giris"],normalized:"input"},change:{primary:"de\u011Fi\u015Fiklik",alternatives:["de\u011Fi\u015Fim","degisim"],normalized:"change"},load:{primary:"y\xFCkle",normalized:"load"},go:{primary:"git",normalized:"go"},scroll:{primary:"kayd\u0131r",alternatives:["kaydir"],normalized:"scroll"},push:{primary:"itele",alternatives:["push"],normalized:"push"},replace:{primary:"de\u011Fi\u015Ftir_url",alternatives:["degistir_url"],normalized:"replace"},process:{primary:"i\u015Fle",alternatives:["isle"],normalized:"process"},wait:{primary:"bekle",normalized:"wait"},fetch:{primary:"getir",normalized:"fetch"},settle:{primary:"sabitlen",normalized:"settle"},if:{primary:"e\u011Fer",normalized:"if"},unless:{primary:"de\u011Filse",normalized:"unless"},when:{primary:"iken",alternatives:["durumunda","oldu\u011Funda"],normalized:"when"},where:{primary:"nerede",normalized:"where"},else:{primary:"yoksa",normalized:"else"},repeat:{primary:"tekrarla",normalized:"repeat"},for:{primary:"i\xE7in",normalized:"for"},while:{primary:"s\xFCresince",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"devam",normalized:"continue"},halt:{primary:"durdur",normalized:"halt"},throw:{primary:"f\u0131rlat",normalized:"throw"},call:{primary:"\xE7a\u011F\u0131r",normalized:"call"},return:{primary:"d\xF6n",normalized:"return"},then:{primary:"ard\u0131ndan",alternatives:["daha sonra","ardindan"],normalized:"then"},and:{primary:"ve",alternatives:["ayr\u0131ca","hem de"],normalized:"and"},or:{primary:"veya",normalized:"or"},not:{primary:"de\u011Fil",alternatives:["degil"],normalized:"not"},end:{primary:"son",alternatives:["biti\u015F","bitti"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asenkron",normalized:"async"},tell:{primary:"s\xF6yle",normalized:"tell"},default:{primary:"varsay\u0131lan",normalized:"default"},init:{primary:"ba\u015Flat",normalized:"init"},behavior:{primary:"davran\u0131\u015F",normalized:"behavior"},install:{primary:"kur",alternatives:["y\xFCklemek"],normalized:"install"},measure:{primary:"\xF6l\xE7",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"dur",normalized:"break"},copy:{primary:"kopyala",normalized:"copy"},exit:{primary:"\xE7\u0131k",normalized:"exit"},pick:{primary:"se\xE7",normalized:"pick"},render:{primary:"render",normalized:"render"},into:{primary:"i\xE7ine",normalized:"into"},before:{primary:"\xF6nce",normalized:"before"},after:{primary:"sonra",normalized:"after"},until:{primary:"kadar",normalized:"until"},event:{primary:"olay",normalized:"event"},from:{primary:"den",alternatives:["dan"],normalized:"from"},connect:{primary:"ba\u011Flan",alternatives:["ba\u011Fla","ba\u011Flant\u0131"],normalized:"connect"},stream:{primary:"yay\u0131nla",alternatives:["ak\u0131t","ak\u0131\u015F"],normalized:"stream"},live:{primary:"canl\u0131",alternatives:["ger\xE7ek-zamanl\u0131"],normalized:"live"},socket:{primary:"soket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"bind",normalized:"bind"},intercept:{primary:"yakala",alternatives:["araya-gir","intercept"],normalized:"intercept"},worker:{primary:"i\u015F\xE7i",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["olay-kayna\u011F\u0131"],normalized:"eventsource"}},eventHandler:{eventMarker:{primary:"da",alternatives:["de","ta","te"],position:"after"},temporalMarkers:["d\u0131\u011F\u0131nda","di\u011Finde"]}}});var Bs={};N(Bs,{TurkishTokenizer:()=>Cr,turkishTokenizer:()=>Ry});var Py,Ly,Cy,Cr,Ry,Ds=z(()=>{"use strict";D();Ks();aa();G();X();Ro();Py=new Set(["ile","i\xE7in","kadar","gibi","\xF6nce","\xFCzerinde","alt\u0131nda","i\xE7inde","d\u0131\u015F\u0131nda","aras\u0131nda","kar\u015F\u0131","g\xF6re","ra\u011Fmen","boyunca"]),Ly=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\xFC","in","\u0131n","un","\xFCn","le","la","yle","yla"]),Cy=[{native:"do\u011Fru",normalized:"true"},{native:"dogru",normalized:"true"},{native:"yanl\u0131\u015F",normalized:"false"},{native:"yanlis",normalized:"false"},{native:"null",normalized:"null"},{native:"bo\u015F",normalized:"null"},{native:"bos",normalized:"null"},{native:"tan\u0131ms\u0131z",normalized:"undefined"},{native:"tanimsiz",normalized:"undefined"},{native:"ilk",normalized:"first"},{native:"son",normalized:"last"},{native:"sonuncu",normalized:"last"},{native:"sonraki",normalized:"next"},{native:"\xF6nceki",normalized:"previous"},{native:"onceki",normalized:"previous"},{native:"enyak\u0131n",normalized:"closest"},{native:"enyakin",normalized:"closest"},{native:"ebeveyn",normalized:"parent"},{native:"fare \xFCzerinde",normalized:"mouseover"},{native:"fare uzerinde",normalized:"mouseover"},{native:"fare d\u0131\u015F\u0131nda",normalized:"mouseout"},{native:"fare disinda",normalized:"mouseout"},{native:"farebas",normalized:"mousedown"},{native:"fareb\u0131rak",normalized:"mouseup"},{native:"farebirak",normalized:"mouseup"},{native:"kayd\u0131r",normalized:"scroll"},{native:"kaydir",normalized:"scroll"},{native:"tu\u015F_bas",normalized:"keydown"},{native:"tus_bas",normalized:"keydown"},{native:"tu\u015F_b\u0131rak",normalized:"keyup"},{native:"tus_birak",normalized:"keyup"},{native:"saniye",normalized:"s"},{native:"milisaniye",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saat",normalized:"h"}],Cr=class extends R{constructor(){super();this.language="tr";this.direction="ltr";this.initializeKeywordsFromProfile(na,Cy),this.setNormalizer(new Et),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(Co()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Py.has(r)||Ly.has(r)?"particle":this.isKeyword(r)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":"identifier"}},Ry=new Cr});var Fs={};N(Fs,{portugueseProfile:()=>ia});var ia,oa=z(()=>{"use strict";ia={code:"pt",name:"Portuguese",nativeName:"Portugu\xEAs",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"eu",it:"ele",you:"voc\xEA",result:"resultado",event:"evento",target:"alvo",body:"corpo"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"meu",it:"seu",you:"teu"},keywords:{meu:"me",minha:"me",teu:"you",tua:"you",seu:"it",sua:"it"}},roleMarkers:{destination:{primary:"em",alternatives:["para","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"com",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:[],normalized:"toggle"},add:{primary:"adicionar",alternatives:["acrescentar"],normalized:"add"},remove:{primary:"remover",alternatives:["eliminar","apagar"],normalized:"remove"},put:{primary:"colocar",alternatives:["p\xF4r","por"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"preceder",normalized:"prepend"},take:{primary:"pegar",normalized:"take"},make:{primary:"fazer",alternatives:["criar"],normalized:"make"},clone:{primary:"clonar",alternatives:[],normalized:"clone"},swap:{primary:"trocar",alternatives:["substituir"],normalized:"swap"},morph:{primary:"transformar",alternatives:["converter"],normalized:"morph"},set:{primary:"definir",alternatives:["configurar"],normalized:"set"},get:{primary:"obter",normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["diminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["exibir"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transi\xE7\xE3o",alternatives:["animar"],normalized:"transition"},on:{primary:"em",alternatives:["ao"],normalized:"on"},trigger:{primary:"disparar",alternatives:["ativar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"focar",normalized:"focus"},blur:{primary:"desfocar",normalized:"blur"},empty:{primary:"esvaziar",alternatives:["vazio"],normalized:"empty"},open:{primary:"abrir",normalized:"open"},close:{primary:"fechar",normalized:"close"},select:{primary:"selecionar",normalized:"select"},clear:{primary:"limpar",normalized:"clear"},reset:{primary:"redefinir",alternatives:["resetar"],normalized:"reset"},breakpoint:{primary:"ponto-interrup\xE7\xE3o",alternatives:["ponto-interrupcao"],normalized:"breakpoint"},go:{primary:"ir",alternatives:["navegar"],normalized:"go"},scroll:{primary:"rolar",alternatives:["scroll"],normalized:"scroll"},push:{primary:"empurrar",alternatives:["push"],normalized:"push"},replace:{primary:"repor",alternatives:["recolocar"],normalized:"replace"},process:{primary:"processar",normalized:"process"},wait:{primary:"esperar",alternatives:["aguardar"],normalized:"wait"},fetch:{primary:"buscar",normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"se",normalized:"if"},unless:{primary:"salvo",alternatives:["a_menos"],normalized:"unless"},when:{primary:"quando",normalized:"when"},where:{primary:"onde",normalized:"where"},else:{primary:"sen\xE3o",normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"enquanto",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"parar",normalized:"halt"},throw:{primary:"lan\xE7ar",normalized:"throw"},call:{primary:"chamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"ent\xE3o",alternatives:["logo"],normalized:"then"},and:{primary:"e",alternatives:["tamb\xE9m","al\xE9m disso"],normalized:"and"},end:{primary:"fim",alternatives:["final","t\xE9rmino"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"ass\xEDncrono",normalized:"async"},tell:{primary:"dizer",normalized:"tell"},default:{primary:"padr\xE3o",normalized:"default"},init:{primary:"iniciar",alternatives:["inicializar"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"apitar",normalized:"beep"},break:{primary:"interromper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"sair",normalized:"exit"},pick:{primary:"escolher",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"dentro",alternatives:["dentro de"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"depois",normalized:"after"},click:{primary:"clique",alternatives:["clicar"],normalized:"click"},resize:{primary:"redimensionar",normalized:"resize"},hover:{primary:"sobrevoar",alternatives:["passar"],normalized:"hover"},submit:{primary:"envio",alternatives:["submeter"],normalized:"submit"},input:{primary:"entrada",alternatives:["inser\xE7\xE3o"],normalized:"input"},change:{primary:"altera\xE7\xE3o",alternatives:["mudan\xE7a"],normalized:"change"},mousedown:{primary:"mouseBaixo",normalized:"mousedown"},mouseup:{primary:"mouseCima",normalized:"mouseup"},until:{primary:"at\xE9",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"},connect:{primary:"conectar",alternatives:["conex\xE3o"],normalized:"connect"},stream:{primary:"transmitir",alternatives:["fluxo"],normalized:"stream"},live:{primary:"ao-vivo",alternatives:["vivo","direto"],normalized:"live"},socket:{primary:"soquete",alternatives:["websocket"],normalized:"socket"},bind:{primary:"vincular",alternatives:["ligar","bind"],normalized:"bind"},intercept:{primary:"interceptar",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"trabalhador",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["fonte-de-eventos"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"em",alternatives:["ao"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"ao",alternatives:["no","em"],position:"before"},temporalMarkers:["quando","ao"]}}});function Ny(n){return/[áàâãéêíóôõúüçÁÀÂÃÉÊÍÓÔÕÚÜÇ]/.test(n)}function Ay(n){let e=n.toLowerCase();if(e.endsWith("ar")||e.endsWith("er")||e.endsWith("ir")||e.endsWith("ando")||e.endsWith("endo")||e.endsWith("indo")||e.endsWith("ado")||e.endsWith("ido")||e.endsWith("ar-se")||e.endsWith("er-se")||e.endsWith("ir-se"))return!0;for(let t of n)if(Ny(t))return!0;return!1}var Hs,jy,My,Oy,Wy,Pt,y0,Us=z(()=>{"use strict";ae();Hs=["-se","-me","-te","-nos","-vos"],jy=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.85,type:"present"},{ending:"am",stem:"ar",confidence:.8,type:"present"},{ending:"ei",stem:"ar",confidence:.88,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"ou",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1mos",stem:"ar",confidence:.88,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"astes",stem:"ar",confidence:.88,type:"past"},{ending:"aram",stem:"ar",confidence:.88,type:"past"},{ending:"ava",stem:"ar",confidence:.88,type:"past"},{ending:"avas",stem:"ar",confidence:.88,type:"past"},{ending:"\xE1vamos",stem:"ar",confidence:.88,type:"past"},{ending:"avamos",stem:"ar",confidence:.85,type:"past"},{ending:"\xE1veis",stem:"ar",confidence:.88,type:"past"},{ending:"aveis",stem:"ar",confidence:.85,type:"past"},{ending:"avam",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"em",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ai",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],My=[{ending:"endo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"em",stem:"er",confidence:.78,type:"present"},{ending:"i",stem:"er",confidence:.85,type:"past"},{ending:"este",stem:"er",confidence:.88,type:"past"},{ending:"eu",stem:"er",confidence:.88,type:"past"},{ending:"emos",stem:"er",confidence:.85,type:"past"},{ending:"estes",stem:"er",confidence:.88,type:"past"},{ending:"eram",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"er",confidence:.88,type:"past"},{ending:"ieis",stem:"er",confidence:.85,type:"past"},{ending:"iam",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],Oy=[{ending:"indo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"em",stem:"ir",confidence:.78,type:"present"},{ending:"i",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"iu",stem:"ir",confidence:.88,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"istes",stem:"ir",confidence:.88,type:"past"},{ending:"iram",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\xEDeis",stem:"ir",confidence:.88,type:"past"},{ending:"ieis",stem:"ir",confidence:.85,type:"past"},{ending:"iam",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],Wy=[...jy,...My,...Oy].sort((n,e)=>e.ending.length-n.ending.length),Pt=class{constructor(){this.language="pt"}isNormalizable(e){return e.length<3?!1:Ay(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))&&!Hs.some(i=>t.endsWith(i)))return V(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryReflexiveNormalization(e){for(let t of Hs)if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir"))return x(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let a=this.tryConjugationNormalization(r);if(a&&a.stem!==r)return x(a.stem,a.confidence*.95,{removedSuffixes:[t,...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let t of Wy)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},y0=new Pt});function Iy(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Gs(){return[new sa]}var Vy,_y,qy,sa,Xs=z(()=>{"use strict";({isLetter:Vy,isIdentifierChar:_y}=Iy(/[a-zA-ZáâãéêíóôõúçÁÂÃÉÊÍÓÔÕÚÇ]/)),qy=new Set(["em","a","de","para","com","sem","por","sobre","entre","antes","depois","dentro","fora","ao","do","da","no","na"]),sa=class{constructor(){this.name="portuguese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Vy(e[t])}extract(e,t){if(!this.context)throw new Error("PortugueseKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&_y(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=qy.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var Zs={};N(Zs,{PortugueseTokenizer:()=>Rr,portugueseTokenizer:()=>By});var Ky,$y,Rr,By,Ys=z(()=>{"use strict";D();oa();Us();G();X();Xs();Ky=new Set(["em","a","de","desde","at\xE9","ate","com","sem","por","para","sobre","entre","antes","depois","dentro","fora","ao","do","no","na"]),$y=[{native:"verdadeiro",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"primeiro",normalized:"first"},{native:"primeira",normalized:"first"},{native:"\xFAltimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"pr\xF3ximo",normalized:"next"},{native:"proximo",normalized:"next"},{native:"anterior",normalized:"previous"},{native:"maispr\xF3ximo",normalized:"closest"},{native:"maisproximo",normalized:"closest"},{native:"pai",normalized:"parent"},{native:"clique",normalized:"click"},{native:"click",normalized:"click"},{native:"entrada",normalized:"input"},{native:"mudan\xE7a",normalized:"change"},{native:"mudanca",normalized:"change"},{native:"envio",normalized:"submit"},{native:"tecla baixo",normalized:"keydown"},{native:"tecla cima",normalized:"keyup"},{native:"mouse sobre",normalized:"mouseover"},{native:"mouse fora",normalized:"mouseout"},{native:"foco",normalized:"focus"},{native:"desfoque",normalized:"blur"},{native:"carregar",normalized:"load"},{native:"rolagem",normalized:"scroll"},{native:"meu",normalized:"my"},{native:"minha",normalized:"my"},{native:"isso",normalized:"it"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milissegundo",normalized:"ms"},{native:"milissegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"senao",normalized:"else"},{native:"transicao",normalized:"transition"},{native:"ate",normalized:"until"},{native:"entao",normalized:"then"},{native:"lancar",normalized:"throw"},{native:"assincrono",normalized:"async"},{native:"padrao",normalized:"default"},{native:"at\xE9 que",normalized:"until"},{native:"dentro de",normalized:"into"}],Rr=class extends R{constructor(){super();this.language="pt";this.direction="ltr";this.initializeKeywordsFromProfile(ia,$y),this.setNormalizer(new Pt),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Gs()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Ky.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},By=new Rr});var Js={};N(Js,{frenchProfile:()=>la});var la,ca=z(()=>{"use strict";la={code:"fr",name:"French",nativeName:"Fran\xE7ais",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"moi",it:"il",you:"toi",result:"r\xE9sultat",event:"\xE9v\xE9nement",target:"cible",body:"corps"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"ma",it:"sa",you:"ta"},keywords:{mon:"me",ma:"me",mes:"me",ton:"you",ta:"you",tes:"you",son:"it",sa:"it",ses:"it"}},roleMarkers:{destination:{primary:"sur",alternatives:["\xE0","dans"],position:"before"},source:{primary:"de",alternatives:["depuis"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"avec",position:"before"}},keywords:{toggle:{primary:"basculer",alternatives:["alterner"],normalized:"toggle"},add:{primary:"ajouter",normalized:"add"},remove:{primary:"supprimer",alternatives:["enlever","retirer"],normalized:"remove"},put:{primary:"mettre",alternatives:["placer"],normalized:"put"},append:{primary:"annexer",normalized:"append"},prepend:{primary:"pr\xE9fixer",normalized:"prepend"},take:{primary:"prendre",normalized:"take"},make:{primary:"faire",alternatives:["cr\xE9er"],normalized:"make"},clone:{primary:"cloner",alternatives:["dupliquer"],normalized:"clone"},swap:{primary:"\xE9changer",alternatives:["permuter"],normalized:"swap"},morph:{primary:"transformer",alternatives:["m\xE9tamorphoser"],normalized:"morph"},set:{primary:"d\xE9finir",alternatives:["\xE9tablir"],normalized:"set"},get:{primary:"obtenir",normalized:"get"},increment:{primary:"incr\xE9menter",alternatives:["augmenter"],normalized:"increment"},decrement:{primary:"d\xE9cr\xE9menter",alternatives:["diminuer"],normalized:"decrement"},log:{primary:"enregistrer",alternatives:["journaliser"],normalized:"log"},show:{primary:"montrer",alternatives:["afficher"],normalized:"show"},hide:{primary:"cacher",alternatives:["masquer"],normalized:"hide"},transition:{primary:"transition",alternatives:["animer"],normalized:"transition"},on:{primary:"sur",alternatives:["lors"],normalized:"on"},trigger:{primary:"d\xE9clencher",normalized:"trigger"},send:{primary:"envoyer",normalized:"send"},focus:{primary:"focaliser",alternatives:["concentrer"],normalized:"focus"},blur:{primary:"d\xE9focaliser",normalized:"blur"},empty:{primary:"vider",alternatives:["vide"],normalized:"empty"},open:{primary:"ouvrir",normalized:"open"},close:{primary:"fermer",normalized:"close"},select:{primary:"s\xE9lectionner",alternatives:["selectionner"],normalized:"select"},clear:{primary:"effacer",normalized:"clear"},reset:{primary:"r\xE9initialiser",alternatives:["reinitialiser"],normalized:"reset"},breakpoint:{primary:"point-arr\xEAt",alternatives:["point-arret"],normalized:"breakpoint"},go:{primary:"aller",alternatives:["naviguer"],normalized:"go"},scroll:{primary:"d\xE9filer",alternatives:["faire-d\xE9filer"],normalized:"scroll"},push:{primary:"pousser",normalized:"push"},replace:{primary:"remplacer",normalized:"replace"},process:{primary:"traiter",normalized:"process"},wait:{primary:"attendre",normalized:"wait"},fetch:{primary:"chercher",alternatives:["r\xE9cup\xE9rer"],normalized:"fetch"},settle:{primary:"stabiliser",normalized:"settle"},if:{primary:"si",normalized:"if"},unless:{primary:"saufsi",normalized:"unless"},when:{primary:"quand",normalized:"when"},where:{primary:"o\xF9",normalized:"where"},else:{primary:"sinon",normalized:"else"},repeat:{primary:"r\xE9p\xE9ter",normalized:"repeat"},for:{primary:"pour",normalized:"for"},while:{primary:"pendant",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuer",normalized:"continue"},halt:{primary:"arr\xEAter",alternatives:["stopper"],normalized:"halt"},throw:{primary:"lancer",normalized:"throw"},call:{primary:"appeler",normalized:"call"},return:{primary:"retourner",alternatives:["renvoyer"],normalized:"return"},then:{primary:"puis",alternatives:["ensuite","alors"],normalized:"then"},and:{primary:"et",alternatives:["aussi","\xE9galement"],normalized:"and"},end:{primary:"fin",alternatives:["terminer","finir"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asynchrone",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"d\xE9faut",normalized:"default"},init:{primary:"initialiser",normalized:"init"},behavior:{primary:"comportement",normalized:"behavior"},install:{primary:"installer",normalized:"install"},measure:{primary:"mesurer",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"interrompre",normalized:"break"},copy:{primary:"copier",normalized:"copy"},exit:{primary:"sortir",normalized:"exit"},pick:{primary:"choisir",normalized:"pick"},render:{primary:"rendu",normalized:"render"},into:{primary:"dans",normalized:"into"},before:{primary:"avant",normalized:"before"},after:{primary:"apr\xE8s",normalized:"after"},click:{primary:"clic",alternatives:["clique"],normalized:"click"},resize:{primary:"redimensionner",normalized:"resize"},hover:{primary:"survol",alternatives:["survoler"],normalized:"hover"},submit:{primary:"soumission",alternatives:["soumettre"],normalized:"submit"},input:{primary:"saisie",alternatives:["entr\xE9e"],normalized:"input"},change:{primary:"changement",alternatives:["modifier","changer"],normalized:"change"},load:{primary:"charger",alternatives:["chargement"],normalized:"load"},until:{primary:"jusqu'\xE0",alternatives:["jusque"],normalized:"until"},event:{primary:"\xE9v\xE9nement",normalized:"event"},from:{primary:"de",alternatives:["depuis"],normalized:"from"},connect:{primary:"connecter",alternatives:["connexion"],normalized:"connect"},stream:{primary:"flux",alternatives:["streaming"],normalized:"stream"},live:{primary:"en-direct",alternatives:["direct","vif"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"lier",alternatives:["relier","bind"],normalized:"bind"},intercept:{primary:"intercepter",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"travailleur",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["source-d-evenements"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"sur",alternatives:["lors"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["depuis"],position:"before"},conditionalKeyword:{primary:"quand",alternatives:["lorsque"]},eventMarker:{primary:"au",alternatives:["lors du","lors de","sur"],position:"before"},temporalMarkers:["quand","lorsque"]}}});function Dy(n){let e=n.toLowerCase();return!!(e.endsWith("er")||e.endsWith("ir")||e.endsWith("re")||e.endsWith("ant")||e.endsWith("\xE9")||e.endsWith("i")||e.endsWith("u")||/[àâäéèêëïîôùûüÿçœæ]/i.test(n))}var Fy,Hy,Uy,Gy,Xy,Lt,T0,Qs=z(()=>{"use strict";ae();Fy=["toi","vous","nous"],Hy=[{ending:"ant",stem:"er",confidence:.88,type:"gerund"},{ending:"\xE9",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9e",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9s",stem:"er",confidence:.88,type:"participle"},{ending:"\xE9es",stem:"er",confidence:.88,type:"participle"},{ending:"e",stem:"er",confidence:.75,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"ons",stem:"er",confidence:.85,type:"present"},{ending:"ez",stem:"er",confidence:.85,type:"present"},{ending:"ent",stem:"er",confidence:.82,type:"present"},{ending:"ais",stem:"er",confidence:.82,type:"past"},{ending:"ait",stem:"er",confidence:.82,type:"past"},{ending:"ions",stem:"er",confidence:.85,type:"past"},{ending:"iez",stem:"er",confidence:.85,type:"past"},{ending:"aient",stem:"er",confidence:.85,type:"past"},{ending:"ai",stem:"er",confidence:.8,type:"past"},{ending:"as",stem:"er",confidence:.78,type:"past"},{ending:"a",stem:"er",confidence:.75,type:"past"},{ending:"\xE2mes",stem:"er",confidence:.88,type:"past"},{ending:"\xE2tes",stem:"er",confidence:.88,type:"past"},{ending:"\xE8rent",stem:"er",confidence:.88,type:"past"},{ending:"erai",stem:"er",confidence:.85,type:"future"},{ending:"eras",stem:"er",confidence:.85,type:"future"},{ending:"era",stem:"er",confidence:.82,type:"future"},{ending:"erons",stem:"er",confidence:.88,type:"future"},{ending:"erez",stem:"er",confidence:.88,type:"future"},{ending:"eront",stem:"er",confidence:.88,type:"future"},{ending:"erais",stem:"er",confidence:.85,type:"conditional"},{ending:"erait",stem:"er",confidence:.85,type:"conditional"},{ending:"erions",stem:"er",confidence:.88,type:"conditional"},{ending:"eriez",stem:"er",confidence:.88,type:"conditional"},{ending:"eraient",stem:"er",confidence:.88,type:"conditional"},{ending:"ions",stem:"er",confidence:.8,type:"subjunctive"},{ending:"iez",stem:"er",confidence:.8,type:"subjunctive"},{ending:"ons",stem:"er",confidence:.82,type:"imperative"},{ending:"ez",stem:"er",confidence:.82,type:"imperative"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],Uy=[{ending:"issant",stem:"ir",confidence:.88,type:"gerund"},{ending:"i",stem:"ir",confidence:.8,type:"participle"},{ending:"ie",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"participle"},{ending:"ies",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"present"},{ending:"it",stem:"ir",confidence:.78,type:"present"},{ending:"issons",stem:"ir",confidence:.88,type:"present"},{ending:"issez",stem:"ir",confidence:.88,type:"present"},{ending:"issent",stem:"ir",confidence:.88,type:"present"},{ending:"issais",stem:"ir",confidence:.85,type:"past"},{ending:"issait",stem:"ir",confidence:.85,type:"past"},{ending:"issions",stem:"ir",confidence:.88,type:"past"},{ending:"issiez",stem:"ir",confidence:.88,type:"past"},{ending:"issaient",stem:"ir",confidence:.88,type:"past"},{ending:"irai",stem:"ir",confidence:.85,type:"future"},{ending:"iras",stem:"ir",confidence:.85,type:"future"},{ending:"ira",stem:"ir",confidence:.82,type:"future"},{ending:"irons",stem:"ir",confidence:.88,type:"future"},{ending:"irez",stem:"ir",confidence:.88,type:"future"},{ending:"iront",stem:"ir",confidence:.88,type:"future"},{ending:"ir",stem:"ir",confidence:.9,type:"dictionary"}],Gy=[{ending:"ant",stem:"re",confidence:.82,type:"gerund"},{ending:"u",stem:"re",confidence:.8,type:"participle"},{ending:"ue",stem:"re",confidence:.82,type:"participle"},{ending:"us",stem:"re",confidence:.82,type:"participle"},{ending:"ues",stem:"re",confidence:.82,type:"participle"},{ending:"s",stem:"re",confidence:.72,type:"present"},{ending:"d",stem:"re",confidence:.75,type:"present"},{ending:"ons",stem:"re",confidence:.82,type:"present"},{ending:"ez",stem:"re",confidence:.82,type:"present"},{ending:"ent",stem:"re",confidence:.8,type:"present"},{ending:"re",stem:"re",confidence:.9,type:"dictionary"}],Xy=[...Hy,...Uy,...Gy].sort((n,e)=>e.ending.length-n.ending.length),Lt=class{constructor(){this.language="fr"}isNormalizable(e){return e.length<3?!1:Dy(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("er")||t.endsWith("ir")||t.endsWith("re"))&&t.length>=4)return V(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryReflexiveNormalization(e){for(let t of Fy){let r="-"+t;if(e.endsWith(r)){let a=e.slice(0,-r.length),i=this.tryConjugationNormalization(a);if(i&&i.stem!==a)return x(i.stem,i.confidence*.95,{removedSuffixes:[r,...i.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}}return null}tryConjugationNormalization(e){for(let t of Xy)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},T0=new Lt});function Zy(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function el(){return[new pa]}var Yy,Jy,Qy,pa,tl=z(()=>{"use strict";({isLetter:Yy,isIdentifierChar:Jy}=Zy(/[a-zA-ZàâæçéèêëïîôùûüÿœÀÂÆÇÉÈÊËÏÎÔÙÛÜŸŒ]/)),Qy=new Set(["\xE0","a","de","du","des","dans","sur","sous","avec","sans","par","pour","entre","avant","apr\xE8s","apres","depuis","vers","chez","contre","au","aux"]),pa=class{constructor(){this.name="french-keyword"}setContext(e){this.context=e}canExtract(e,t){return Yy(e[t])}extract(e,t){if(!this.context)throw new Error("FrenchKeywordExtractor: context not set");let r=t,a="";for(;r<e.length&&Jy(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=Qy.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var rl={};N(rl,{FrenchTokenizer:()=>Nr,frenchTokenizer:()=>tg});var eg,Nr,tg,nl=z(()=>{"use strict";D();ca();Qs();G();X();tl();eg=[{native:"vrai",normalized:"true"},{native:"faux",normalized:"false"},{native:"nul",normalized:"null"},{native:"ind\xE9fini",normalized:"undefined"},{native:"indefini",normalized:"undefined"},{native:"premier",normalized:"first"},{native:"premi\xE8re",normalized:"first"},{native:"premiere",normalized:"first"},{native:"dernier",normalized:"last"},{native:"derni\xE8re",normalized:"last"},{native:"derniere",normalized:"last"},{native:"suivant",normalized:"next"},{native:"pr\xE9c\xE9dent",normalized:"previous"},{native:"precedent",normalized:"previous"},{native:"proche",normalized:"closest"},{native:"parent",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"entr\xE9e",normalized:"input"},{native:"entree",normalized:"input"},{native:"changement",normalized:"change"},{native:"soumission",normalized:"submit"},{native:"touche bas",normalized:"keydown"},{native:"touche haut",normalized:"keyup"},{native:"souris dessus",normalized:"mouseover"},{native:"souris dehors",normalized:"mouseout"},{native:"focus",normalized:"focus"},{native:"flou",normalized:"blur"},{native:"chargement",normalized:"load"},{native:"d\xE9filement",normalized:"scroll"},{native:"defilement",normalized:"scroll"},{native:"je",normalized:"me"},{native:"mon",normalized:"my"},{native:"ma",normalized:"my"},{native:"mes",normalized:"my"},{native:"\xE7a",normalized:"it"},{native:"ca",normalized:"it"},{native:"resultat",normalized:"result"},{native:"evenement",normalized:"event"},{native:"seconde",normalized:"s"},{native:"secondes",normalized:"s"},{native:"milliseconde",normalized:"ms"},{native:"millisecondes",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minutes",normalized:"m"},{native:"heure",normalized:"h"},{native:"heures",normalized:"h"},{native:"prefixer",normalized:"prepend"},{native:"creer",normalized:"make"},{native:"definir",normalized:"set"},{native:"etablir",normalized:"set"},{native:"incrementer",normalized:"increment"},{native:"decrementer",normalized:"decrement"},{native:"declencher",normalized:"trigger"},{native:"defocaliser",normalized:"blur"},{native:"recuperer",normalized:"fetch"},{native:"repeter",normalized:"repeat"},{native:"arreter",normalized:"halt"},{native:"defaut",normalized:"default"},{native:"jusqua",normalized:"until"},{native:"apres",normalized:"after"},{native:"journaliser",normalized:"log"},{native:"transmuter",normalized:"morph"},{native:"tant que",normalized:"while"}],Nr=class extends R{constructor(){super();this.language="fr";this.direction="ltr";this.initializeKeywordsFromProfile(la,eg),this.normalizer=new Lt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(el()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},tg=new Nr});var al={};N(al,{germanProfile:()=>ma});var ma,da=z(()=>{"use strict";ma={code:"de",name:"German",nativeName:"Deutsch",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"ich",it:"es",you:"du",result:"Ergebnis",event:"Ereignis",target:"Ziel",body:"K\xF6rper"},possessive:{marker:"",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mein",it:"sein",you:"dein"},keywords:{mein:"me",meine:"me",meinen:"me",dein:"you",deine:"you",deinen:"you",sein:"it",seine:"it",seinen:"it"}},roleMarkers:{destination:{primary:"auf",alternatives:["zu","in"],position:"before"},source:{primary:"von",alternatives:["aus"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"mit",position:"before"}},keywords:{toggle:{primary:"umschalten",alternatives:["wechseln"],normalized:"toggle"},add:{primary:"hinzuf\xFCgen",normalized:"add"},remove:{primary:"entfernen",alternatives:["l\xF6schen"],normalized:"remove"},put:{primary:"setzen",alternatives:["stellen","platzieren"],normalized:"put"},append:{primary:"anh\xE4ngen",normalized:"append"},prepend:{primary:"voranstellen",normalized:"prepend"},take:{primary:"nehmen",normalized:"take"},make:{primary:"machen",alternatives:["erstellen","erzeugen"],normalized:"make"},clone:{primary:"klonen",alternatives:["duplizieren"],normalized:"clone"},swap:{primary:"austauschen",alternatives:["tauschen","vertauschen"],normalized:"swap"},morph:{primary:"verwandeln",alternatives:["transformieren"],normalized:"morph"},set:{primary:"festlegen",alternatives:["definieren"],normalized:"set"},get:{primary:"holen",alternatives:["bekommen","erhalten"],normalized:"get"},increment:{primary:"erh\xF6hen",normalized:"increment"},decrement:{primary:"verringern",alternatives:["vermindern"],normalized:"decrement"},log:{primary:"protokollieren",alternatives:["ausgeben"],normalized:"log"},show:{primary:"zeigen",alternatives:["anzeigen"],normalized:"show"},hide:{primary:"verbergen",alternatives:["verstecken"],normalized:"hide"},transition:{primary:"\xFCbergang",alternatives:["animieren"],normalized:"transition"},on:{primary:"bei",alternatives:["auf"],normalized:"on"},trigger:{primary:"ausl\xF6sen",normalized:"trigger"},send:{primary:"senden",alternatives:["schicken"],normalized:"send"},focus:{primary:"fokussieren",normalized:"focus"},blur:{primary:"defokussieren",alternatives:["entfokussieren"],normalized:"blur"},empty:{primary:"leeren",alternatives:["leer"],normalized:"empty"},open:{primary:"\xF6ffnen",alternatives:["oeffnen"],normalized:"open"},close:{primary:"schlie\xDFen",alternatives:["schliessen"],normalized:"close"},select:{primary:"markieren",normalized:"select"},clear:{primary:"bereinigen",normalized:"clear"},reset:{primary:"zur\xFCcksetzen",alternatives:["zuruecksetzen"],normalized:"reset"},breakpoint:{primary:"haltepunkt",normalized:"breakpoint"},go:{primary:"gehen",alternatives:["navigieren"],normalized:"go"},scroll:{primary:"scrollen",normalized:"scroll"},push:{primary:"dr\xFCcken",alternatives:["push"],normalized:"push"},replace:{primary:"ersetzen",normalized:"replace"},process:{primary:"verarbeiten",normalized:"process"},wait:{primary:"warten",normalized:"wait"},fetch:{primary:"abrufen",alternatives:["laden"],normalized:"fetch"},settle:{primary:"stabilisieren",normalized:"settle"},if:{primary:"falls",alternatives:["sofern"],normalized:"if"},unless:{primary:"wennnicht",normalized:"unless"},when:{primary:"wenn",normalized:"when"},where:{primary:"wo",normalized:"where"},else:{primary:"sonst",alternatives:["ansonsten"],normalized:"else"},repeat:{primary:"wiederholen",normalized:"repeat"},for:{primary:"f\xFCr",normalized:"for"},while:{primary:"solange",alternatives:["w\xE4hrend"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"fortfahren",alternatives:["weiter"],normalized:"continue"},halt:{primary:"anhalten",alternatives:["stoppen"],normalized:"halt"},throw:{primary:"werfen",normalized:"throw"},call:{primary:"aufrufen",normalized:"call"},return:{primary:"zur\xFCckgeben",normalized:"return"},then:{primary:"dann",alternatives:["danach","anschlie\xDFend"],normalized:"then"},and:{primary:"und",alternatives:["sowie","auch"],normalized:"and"},is:{primary:"ist",normalized:"is"},end:{primary:"ende",alternatives:["fertig"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asynchron",normalized:"async"},tell:{primary:"sagen",normalized:"tell"},default:{primary:"standard",normalized:"default"},init:{primary:"initialisieren",normalized:"init"},behavior:{primary:"verhalten",normalized:"behavior"},install:{primary:"installieren",normalized:"install"},measure:{primary:"messen",normalized:"measure"},beep:{primary:"piepton",normalized:"beep"},break:{primary:"unterbrechen",normalized:"break"},copy:{primary:"kopieren",normalized:"copy"},exit:{primary:"beenden",normalized:"exit"},pick:{primary:"ausw\xE4hlen",normalized:"pick"},render:{primary:"rendern",normalized:"render"},into:{primary:"hinein",normalized:"into"},before:{primary:"vor",normalized:"before"},after:{primary:"nach",normalized:"after"},click:{primary:"Klick",alternatives:["Klicken"],normalized:"click"},hover:{primary:"Hover",alternatives:["Schweben"],normalized:"hover"},submit:{primary:"Absenden",alternatives:["Senden"],normalized:"submit"},input:{primary:"Eingabe",normalized:"input"},change:{primary:"\xC4nderung",alternatives:["\xC4ndern"],normalized:"change"},resize:{primary:"gr\xF6\xDFe\xE4ndern",normalized:"resize"},until:{primary:"bis",normalized:"until"},event:{primary:"Ereignis",alternatives:["Event"],normalized:"event"},from:{primary:"von",alternatives:["aus"],normalized:"from"},connect:{primary:"verbinden",alternatives:["Verbindung"],normalized:"connect"},stream:{primary:"stream",alternatives:["Strom"],normalized:"stream"},live:{primary:"direkt",alternatives:["live","echtzeit"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"binden",alternatives:["verknuepfen","bind"],normalized:"bind"},intercept:{primary:"abfangen",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"arbeiter",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["ereignisquelle"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"bei",alternatives:["auf"],normalized:"on"},sourceMarker:{primary:"von",alternatives:["aus"],position:"before"},conditionalKeyword:{primary:"wenn",alternatives:["falls"]},eventMarker:{primary:"bei",alternatives:["beim"],position:"before"},temporalMarkers:["wenn","bei"]}}});function ng(n){let e=n.toLowerCase();return!!(e.endsWith("en")||e.endsWith("eln")||e.endsWith("ern")||e.startsWith("ge")&&e.endsWith("t")||e.startsWith("ge")&&e.endsWith("en")||/[äöüß]/i.test(n))}var rg,ag,ig,og,Ct,O0,il=z(()=>{"use strict";ae();rg=["an","auf","aus","ein","mit","vor","zu","ab","bei","nach","weg","um","her","hin"];ag=[{ending:"end",stem:"en",confidence:.88,type:"gerund"},{ending:"e",stem:"en",confidence:.75,type:"present"},{ending:"st",stem:"en",confidence:.8,type:"present"},{ending:"t",stem:"en",confidence:.78,type:"present"},{ending:"en",stem:"en",confidence:.85,type:"dictionary"},{ending:"test",stem:"en",confidence:.85,type:"past"},{ending:"ten",stem:"en",confidence:.82,type:"past"},{ending:"tet",stem:"en",confidence:.85,type:"past"},{ending:"te",stem:"en",confidence:.82,type:"past"},{ending:"test",stem:"en",confidence:.8,type:"subjunctive"},{ending:"ten",stem:"en",confidence:.78,type:"subjunctive"},{ending:"tet",stem:"en",confidence:.8,type:"subjunctive"},{ending:"te",stem:"en",confidence:.78,type:"subjunctive"},{ending:"e",stem:"en",confidence:.72,type:"imperative"},{ending:"t",stem:"en",confidence:.72,type:"imperative"},{ending:"en",stem:"en",confidence:.75,type:"imperative"}],ig=[{ending:"le",stem:"eln",confidence:.82,type:"present"},{ending:"elst",stem:"eln",confidence:.85,type:"present"},{ending:"elt",stem:"eln",confidence:.85,type:"present"},{ending:"eln",stem:"eln",confidence:.88,type:"dictionary"},{ending:"re",stem:"ern",confidence:.82,type:"present"},{ending:"erst",stem:"ern",confidence:.85,type:"present"},{ending:"ert",stem:"ern",confidence:.85,type:"present"},{ending:"ern",stem:"ern",confidence:.88,type:"dictionary"}],og=[...ag,...ig].sort((n,e)=>e.ending.length-n.ending.length),Ct=class{constructor(){this.language="de"}isNormalizable(e){return e.length<3?!1:ng(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("en")&&t.length>=4)return V(e);if((t.endsWith("eln")||t.endsWith("ern"))&&t.length>=5)return V(e);let r=this.tryParticipleNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryParticipleNormalization(e){for(let t of rg)if(e.startsWith(t+"ge")){let r=e.slice(t.length),a=this.trySimpleParticipleNormalization(r);if(a){let i={removedPrefixes:["ge"],conjugationType:"participle"};return a.metadata?.removedSuffixes&&(i.removedSuffixes=a.metadata.removedSuffixes),x(t+a.stem,a.confidence*.95,i)}}return this.trySimpleParticipleNormalization(e)}trySimpleParticipleNormalization(e){if(!e.startsWith("ge"))return null;let t=e.slice(2);if(t.endsWith("t")&&t.length>=3){let r=t.slice(0,-1);return x(r+"en",.85,{removedPrefixes:["ge"],removedSuffixes:["t"],conjugationType:"participle"})}return t.endsWith("en")&&t.length>=4?x(t,.82,{removedPrefixes:["ge"],conjugationType:"participle"}):null}tryConjugationNormalization(e){for(let t of og)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},O0=new Ct});function sg(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function ol(){return[new ua]}var lg,cg,pg,ua,sl=z(()=>{"use strict";({isLetter:lg,isIdentifierChar:cg}=sg(/[a-zA-ZäöüÄÖÜß]/)),pg=new Set(["an","auf","aus","bei","durch","f\xFCr","fur","gegen","in","mit","nach","ohne","seit","\xFCber","uber","um","unter","von","vor","zu","zwischen","bis","gegen\xFCber","gegenuber","w\xE4hrend","wahrend","wegen","trotz","statt","innerhalb","au\xDFerhalb","ausserhalb"]),ua=class{constructor(){this.name="german-keyword"}setContext(e){this.context=e}canExtract(e,t){return lg(e[t])}extract(e,t){if(!this.context)throw new Error("GermanKeywordExtractor: context not set");return this.extractGermanWord(e,t)}extractGermanWord(e,t){if(!this.context)return null;let r=t,a="";for(;r<e.length&&cg(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=pg.has(i),s=this.context.lookupKeyword(a),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}}});var ll={};N(ll,{GermanTokenizer:()=>Ar,germanTokenizer:()=>dg});var mg,Ar,dg,cl=z(()=>{"use strict";D();da();il();G();X();sl();mg=[{native:"wahr",normalized:"true"},{native:"falsch",normalized:"false"},{native:"null",normalized:"null"},{native:"undefiniert",normalized:"undefined"},{native:"erste",normalized:"first"},{native:"erster",normalized:"first"},{native:"erstes",normalized:"first"},{native:"letzte",normalized:"last"},{native:"letzter",normalized:"last"},{native:"letztes",normalized:"last"},{native:"n\xE4chste",normalized:"next"},{native:"nachste",normalized:"next"},{native:"n\xE4chstgelegene",normalized:"closest"},{native:"nachstgelegene",normalized:"closest"},{native:"vorherige",normalized:"previous"},{native:"eltern",normalized:"parent"},{native:"klick",normalized:"click"},{native:"click",normalized:"click"},{native:"eingabe",normalized:"input"},{native:"\xE4nderung",normalized:"change"},{native:"anderung",normalized:"change"},{native:"absenden",normalized:"submit"},{native:"taste unten",normalized:"keydown"},{native:"taste oben",normalized:"keyup"},{native:"maus dr\xFCber",normalized:"mouseover"},{native:"maus druber",normalized:"mouseover"},{native:"maus weg",normalized:"mouseout"},{native:"fokus",normalized:"focus"},{native:"unsch\xE4rfe",normalized:"blur"},{native:"unscharfe",normalized:"blur"},{native:"scrollen",normalized:"scroll"},{native:"meine",normalized:"my"},{native:"meinen",normalized:"my"},{native:"ergebnis",normalized:"result"},{native:"ziel",normalized:"target"},{native:"sekunde",normalized:"s"},{native:"sekunden",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"millisekunden",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minuten",normalized:"m"},{native:"stunde",normalized:"h"},{native:"stunden",normalized:"h"},{native:"hinzufugen",normalized:"add"},{native:"hinzufgen",normalized:"add"},{native:"loschen",normalized:"remove"},{native:"anhangen",normalized:"append"},{native:"erhohen",normalized:"increment"},{native:"ubergang",normalized:"transition"},{native:"auslosen",normalized:"trigger"},{native:"zuruckgeben",normalized:"return"},{native:"anschliessend",normalized:"then"},{native:"erh\xF6he",normalized:"increment"},{native:"erhohe",normalized:"increment"},{native:"verringere",normalized:"decrement"}],Ar=class extends R{constructor(){super();this.language="de";this.direction="ltr";this.initializeKeywordsFromProfile(ma,mg),this.normalizer=new Ct,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(ol()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},dg=new Ar});var pl={};N(pl,{indonesianProfile:()=>fa});var fa,ya=z(()=>{"use strict";fa={code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",regions:["priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"itu",you:"anda",result:"hasil",event:"peristiwa",target:"target",body:"badan"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"saya",it:"nya",you:"anda"},keywords:{saya:"me",aku:"me",ku:"me",my:"me",anda:"you",kamu:"you",mu:"you",nya:"it",dia:"it",miliknya:"it"},connectors:["punya"]},roleMarkers:{destination:{primary:"pada",alternatives:["ke","di"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"alihkan",normalized:"toggle"},add:{primary:"tambah",alternatives:["tambahkan"],normalized:"add"},remove:{primary:"hapus",alternatives:["buang","hilangkan"],normalized:"remove"},put:{primary:"taruh",alternatives:["letakkan","masukkan"],normalized:"put"},append:{primary:"sisipkan",normalized:"append"},prepend:{primary:"awali",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["bikin","ciptakan"],normalized:"make"},clone:{primary:"klon",alternatives:["tiru"],normalized:"clone"},swap:{primary:"tukar",alternatives:["ganti"],normalized:"swap"},morph:{primary:"ubah",alternatives:["transformasi"],normalized:"morph"},set:{primary:"atur",alternatives:["tetapkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:["peroleh"],normalized:"get"},increment:{primary:"tingkatkan",alternatives:["naikkan"],normalized:"increment"},decrement:{primary:"turunkan",alternatives:["kurangi"],normalized:"decrement"},log:{primary:"catat",alternatives:["rekam","cetak"],normalized:"log"},show:{primary:"tampilkan",alternatives:["perlihatkan"],normalized:"show"},hide:{primary:"sembunyikan",alternatives:["tutup"],normalized:"hide"},transition:{primary:"transisi",alternatives:["animasikan"],normalized:"transition"},on:{primary:"pada",alternatives:["saat"],normalized:"on"},trigger:{primary:"picu",alternatives:["jalankan"],normalized:"trigger"},send:{primary:"kirim",alternatives:["kirimkan"],normalized:"send"},focus:{primary:"fokus",alternatives:["fokuskan"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},empty:{primary:"kosongkan",alternatives:["kosong"],normalized:"empty"},open:{primary:"buka",normalized:"open"},close:{primary:"tutupkan",normalized:"close"},select:{primary:"tandai",normalized:"select"},clear:{primary:"bersihkan",normalized:"clear"},reset:{primary:"setel-ulang",alternatives:["reset"],normalized:"reset"},breakpoint:{primary:"titik-henti",normalized:"breakpoint"},go:{primary:"pergi",alternatives:["pindah","navigasi"],normalized:"go"},scroll:{primary:"gulir",alternatives:["gulung"],normalized:"scroll"},push:{primary:"dorong",alternatives:["push"],normalized:"push"},replace:{primary:"ganti_url",alternatives:["gantikan_url"],normalized:"replace"},process:{primary:"proses",normalized:"process"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"muat",normalized:"fetch"},settle:{primary:"stabilkan",normalized:"settle"},if:{primary:"jika",alternatives:["kalau","bila"],normalized:"if"},unless:{primary:"kecuali",normalized:"unless"},when:{primary:"ketika",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"selainnya",alternatives:["lainnya"],normalized:"else"},repeat:{primary:"ulangi",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selama",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"lanjutkan",alternatives:["terus"],normalized:"continue"},halt:{primary:"hentikan",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"kembalikan",alternatives:["kembali"],normalized:"return"},then:{primary:"lalu",alternatives:["kemudian","setelah itu"],normalized:"then"},and:{primary:"dan",alternatives:["juga","serta"],normalized:"and"},end:{primary:"selesai",alternatives:["akhir","tamat"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asinkron",normalized:"async"},tell:{primary:"katakan",alternatives:["beritahu"],normalized:"tell"},default:{primary:"bawaan",normalized:"default"},init:{primary:"inisialisasi",alternatives:["mulai"],normalized:"init"},behavior:{primary:"perilaku",normalized:"behavior"},install:{primary:"pasang",alternatives:["instal"],normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"putuskan",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"olah",normalized:"render"},into:{primary:"ke dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"sesudah",alternatives:["setelah"],normalized:"after"},click:{primary:"klik",alternatives:["tekan"],normalized:"click"},hover:{primary:"hover",alternatives:["arahkan"],normalized:"hover"},submit:{primary:"ajukan",normalized:"submit"},input:{primary:"masuk",alternatives:["input","masukan"],normalized:"input"},change:{primary:"berubah",normalized:"change"},until:{primary:"sampai",normalized:"until"},event:{primary:"peristiwa",alternatives:["event"],normalized:"event"},from:{primary:"dari",normalized:"from"},connect:{primary:"sambungkan",alternatives:["hubungkan","koneksi"],normalized:"connect"},stream:{primary:"alirkan",alternatives:["streaming"],normalized:"stream"},live:{primary:"langsung",alternatives:["live"],normalized:"live"},socket:{primary:"soket",alternatives:["socket","websocket"],normalized:"socket"},bind:{primary:"ikat",alternatives:["kaitkan","bind"],normalized:"bind"},intercept:{primary:"cegat",alternatives:["tangkap","intercept"],normalized:"intercept"},worker:{primary:"pekerja",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sumber peristiwa"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"pada",alternatives:["ketika","saat"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},conditionalKeyword:{primary:"ketika",alternatives:["saat","waktu"]},eventMarker:{primary:"saat",alternatives:["ketika","pada"],position:"before"},temporalMarkers:["ketika","saat"]}}});var ml={};N(ml,{IndonesianTokenizer:()=>jr,indonesianTokenizer:()=>yg});var ug,fg,jr,yg,dl=z(()=>{"use strict";D();ya();G();X();To();ug=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]),fg=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"null",normalized:"null"},{native:"kosong",normalized:"null"},{native:"tidakdidefinisikan",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"berikutnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"ubah",normalized:"change"},{native:"kirim",normalized:"submit"},{native:"tekan",normalized:"keydown"},{native:"arahkan",normalized:"mouseover"},{native:"tinggalkan",normalized:"mouseout"},{native:"kabur",normalized:"blur"},{native:"muat",normalized:"load"},{native:"gulir",normalized:"scroll"},{native:"input",normalized:"input"},{native:"milik",normalized:"my"},{native:"detik",normalized:"s"},{native:"milidetik",normalized:"ms"},{native:"menit",normalized:"m"},{native:"jam",normalized:"h"},{native:"atau",normalized:"or"},{native:"tidak",normalized:"not"},{native:"adalah",normalized:"is"},{native:"ada",normalized:"exists"}],jr=class extends R{constructor(){super();this.language="id";this.direction="ltr";this.initializeKeywordsFromProfile(fa,fg),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(So()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return ug.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},yg=new jr});var ul={};N(ul,{quechuaProfile:()=>ga});var ga,va=z(()=>{"use strict";ga={code:"qu",name:"Quechua",nativeName:"Runasimi",direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,verb:{position:"end",subjectDrop:!0},references:{me:"noqa",it:"chay",you:"qam",result:"rurasqa",event:"ruwakuq",target:"punta",body:"kurku"},possessive:{marker:"-pa",markerPosition:"after-object",keywords:{\u00F1uqapa:"me",\u00F1uqaypa:"me",noqaq:"me",qampa:"you",paypa:"it",chay:"it"},connectors:["paq","pa"]},roleMarkers:{patient:{primary:"ta",position:"after"},destination:{primary:"man",alternatives:["pa"],position:"after"},source:{primary:"manta",position:"after"},style:{primary:"wan",position:"after"},event:{primary:"pi",position:"after"}},keywords:{toggle:{primary:"t'ikray",alternatives:["tikray"],normalized:"toggle"},add:{primary:"yapay",alternatives:["yapaykuy"],normalized:"add"},remove:{primary:"qichuy",alternatives:["hurquy","anchuchiy"],normalized:"remove"},put:{primary:"churay",alternatives:["tiyachiy"],normalized:"put"},append:{primary:"qatichiy",alternatives:["qhipaman_yapay"],normalized:"append"},prepend:{primary:"\xF1awpachiy",normalized:"prepend"},take:{primary:"hapiy",normalized:"take"},make:{primary:"ruray",alternatives:["kamay"],normalized:"make"},clone:{primary:"kikinchay",alternatives:[],normalized:"clone"},swap:{primary:"t'inkuy",alternatives:["rantikunakuy","rantin_tikray"],normalized:"swap"},morph:{primary:"tukunay",alternatives:[],normalized:"morph"},set:{primary:"churanay",alternatives:["kamaykuy"],normalized:"set"},get:{primary:"taripay",normalized:"get"},increment:{primary:"yapachiy",normalized:"increment"},decrement:{primary:"pisiyachiy",normalized:"decrement"},log:{primary:"qillqakuy",alternatives:["willakuy"],normalized:"log"},show:{primary:"rikuchiy",alternatives:["qawachiy"],normalized:"show"},hide:{primary:"pakay",alternatives:["pakakuy"],normalized:"hide"},transition:{primary:"pasay",alternatives:[],normalized:"transition"},on:{primary:"chaypim",alternatives:["kaypi"],normalized:"on"},trigger:{primary:"kuyuchiy",alternatives:["kichay"],normalized:"trigger"},send:{primary:"kachay",alternatives:["apachiy"],normalized:"send"},focus:{primary:"qhawachiy",alternatives:["qhaway"],normalized:"focus"},blur:{primary:"paqariy",alternatives:["mana qhawachiy"],normalized:"blur"},empty:{primary:"ch'usaq",normalized:"empty"},open:{primary:"paskay",normalized:"open"},close:{primary:"wichqay",normalized:"close"},select:{primary:"marcay",normalized:"select"},clear:{primary:"pichay",normalized:"clear"},reset:{primary:"musuqchay",normalized:"reset"},breakpoint:{primary:"sayachinay",normalized:"breakpoint"},go:{primary:"riy",alternatives:["puriy"],normalized:"go"},scroll:{primary:"kunray",alternatives:[],normalized:"scroll"},push:{primary:"tanqay",normalized:"push"},replace:{primary:"tikray_url",alternatives:[],normalized:"replace"},process:{primary:"rurariy",normalized:"process"},wait:{primary:"suyay",normalized:"wait"},fetch:{primary:"apamuy",alternatives:["taripakaramuy"],normalized:"fetch"},settle:{primary:"tiyakuy",normalized:"settle"},if:{primary:"sichus",normalized:"if"},unless:{primary:"mana sichus",normalized:"unless"},when:{primary:"maykama",normalized:"when"},where:{primary:"maypi",normalized:"where"},else:{primary:"manachus",alternatives:["hukniraq"],normalized:"else"},repeat:{primary:"kutipay",alternatives:["muyu"],normalized:"repeat"},for:{primary:"sapankaq",normalized:"for"},while:{primary:"kaykamaqa",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"qatipay",normalized:"continue"},halt:{primary:"sayay",alternatives:[],normalized:"halt"},throw:{primary:"chanqay",normalized:"throw"},call:{primary:"waqyay",alternatives:["qayay"],normalized:"call"},return:{primary:"kutichiy",alternatives:["kutimuy"],normalized:"return"},then:{primary:"chaymantataq",alternatives:["hinaspa","chaymanta"],normalized:"then"},and:{primary:"hinallataq",alternatives:["ima","chaymantawan"],normalized:"and"},end:{primary:"tukukuy",alternatives:["tukuy","puchukay"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"mana waqtalla",normalized:"async"},tell:{primary:"niy",alternatives:[],normalized:"tell"},default:{primary:"\xF1awpaq_kaq",alternatives:["qallariy"],normalized:"default"},init:{primary:"qallarichiy",normalized:"init"},behavior:{primary:"ruwana",normalized:"behavior"},install:{primary:"tarpuy",normalized:"install"},measure:{primary:"tupuy",normalized:"measure"},beep:{primary:"waqay",normalized:"beep"},break:{primary:"p'akiy",normalized:"break"},copy:{primary:"qillqay",normalized:"copy"},exit:{primary:"lluqsiy",normalized:"exit"},pick:{primary:"akllay",normalized:"pick"},render:{primary:"rikurichiy",normalized:"render"},into:{primary:"ukuman",normalized:"into"},before:{primary:"\xF1awpaq",normalized:"before"},after:{primary:"qhipa",normalized:"after"},until:{primary:"kama",alternatives:["-kama"],normalized:"until"},event:{primary:"ruwakuq",alternatives:["imayna"],normalized:"event"},from:{primary:"manta",alternatives:["-manta"],normalized:"from"},click:{primary:"\xF1itiy",normalized:"click"},load:{primary:"apakuy",normalized:"load"},submit:{primary:"apaykachay",normalized:"submit"},hover:{primary:"hawachiy",normalized:"hover"},input:{primary:"yaykuchiy",normalized:"input"},change:{primary:"kambiay",normalized:"change"},connect:{primary:"tinkiy",alternatives:["watay","hukllachay"],normalized:"connect"},stream:{primary:"phawachiy",alternatives:["sururichiy","ch'uquchiy"],normalized:"stream"},live:{primary:"kawsachkaq",alternatives:["kunan-pacha","kawsay"],normalized:"live"},socket:{primary:"tinkina",alternatives:["t'oqo","tinkiy-tinkina"],normalized:"socket"},bind:{primary:"bind",alternatives:["watachiy"],normalized:"bind"},intercept:{primary:"hark'ay",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"llamk'aq",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["kawsay-pukyu"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"pi",alternatives:["kaqtin"]},sourceMarker:{primary:"manta",position:"after"},eventMarker:{primary:"pi",alternatives:["kaqtin","kaqpi"],position:"after"}}}});function gg(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:n==="\xF1"||n==="\xD1"||n==="'"||n==="'"}function vg(n){for(let e of n)if(gg(e))return!0;return!1}var hg,ha,fl,yl=z(()=>{"use strict";ae();hg=[{pattern:"shankichik",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shaniku",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shanki",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shani",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanchik",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanku",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shan",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"rqankichik",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqaniku",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqanki",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqani",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanchik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanku",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"nqankichik",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqaniku",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqanki",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqani",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanchik",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanku",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqa",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"chikuy",confidence:.8,conjugationType:"compound",minStemLength:2},{pattern:"chiku",confidence:.82,conjugationType:"compound",minStemLength:2},{pattern:"chiy",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chiq",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chi",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"kuy",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"rqa",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"sha",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"na",confidence:.85,conjugationType:"obligation",minStemLength:2},{pattern:"manmi",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"man",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"nkichik",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"niku",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"nki",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nchik",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nku",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"ni",confidence:.85,conjugationType:"present",minStemLength:2},{pattern:"ku",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"ychik",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"y",confidence:.9,conjugationType:"dictionary",minStemLength:2},{pattern:"sqa",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ska",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"kama",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"manta",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"man",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"wan",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"pi",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"ta",confidence:.7,conjugationType:"dictionary",minStemLength:2}],ha=class{constructor(){this.language="qu"}isNormalizable(e){return!(!vg(e)||e.length<3||!/[aiu]/.test(e.toLowerCase()))}normalize(e){let t=e.toLowerCase();for(let r of hg)if(t.endsWith(r.pattern)){let a=t.slice(0,-r.pattern.length);r.replacement&&!a.endsWith(r.replacement)&&(a=a+r.replacement);let i=r.minStemLength??2;if(a.length<i||!this.isValidStem(a))continue;let o={removedSuffixes:[r.pattern]};return r.conjugationType&&(o.conjugationType=r.conjugationType),x(a,r.confidence,o)}return V(e)}isValidStem(e){return!(e.length<2||!/[aeiou]/.test(e)||new Set(["ta","man","pi","wan","pa","kama","hina"]).has(e))}},fl=new ha});var gl={};N(gl,{QuechuaTokenizer:()=>Mr,quechuaTokenizer:()=>xg});var za,zg,kg,Mr,xg,vl=z(()=>{"use strict";D();va();yl();G();X();jo();za=class{constructor(){this.name="quechua-string-literal"}canExtract(e,t){return e[t]==='"'||e[t]==="'"}extract(e,t){let r=e[t],a=r,i=t+1;for(;i<e.length;){let o=e[i];if(o===r)return a+=o,{value:a,length:a.length};o==="\\"&&i+1<e.length?(a+=o+e[i+1],i+=2):(a+=o,i++)}return null}},zg=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),kg=[{native:"cheqaq",normalized:"true"},{native:"ar\xED",normalized:"true"},{native:"ari",normalized:"true"},{native:"manan",normalized:"false"},{native:"mana",normalized:"false"},{native:"ch'usaq",normalized:"null"},{native:"chusaq",normalized:"null"},{native:"mana riqsisqa",normalized:"undefined"},{native:"\xF1awpaqpi",normalized:"before"},{native:"nawpaqpi",normalized:"before"},{native:"qhepapi",normalized:"after"},{native:"qhipapi",normalized:"after"},{native:"\xF1awpaq",normalized:"first"},{native:"nawpaq",normalized:"first"},{native:"qhipa",normalized:"last"},{native:"hamuq",normalized:"next"},{native:"qhipantin",normalized:"next"},{native:"\xF1awpaqnin",normalized:"previous"},{native:"\xF1awpaq kaq",normalized:"previous"},{native:"\xF1awpaq_kaq",normalized:"previous"},{native:"kaylla",normalized:"closest"},{native:"qaylla",normalized:"closest"},{native:"tayta",normalized:"parent"},{native:"llikllay",normalized:"click"},{native:"\xF1itiy",normalized:"click"},{native:"\xF1it'iy",normalized:"click"},{native:"click",normalized:"click"},{native:"yaykuy",normalized:"input"},{native:"llave uray",normalized:"keydown"},{native:"llave hawa",normalized:"keyup"},{native:"mausiri yayku",normalized:"mouseover"},{native:"mausiri lluqsi",normalized:"mouseout"},{native:"rat\xF1itiy",normalized:"mousedown"},{native:"rathuqariy",normalized:"mouseup"},{native:"qhaway",normalized:"focus"},{native:"mana qhaway",normalized:"blur"},{native:"kargay",normalized:"load"},{native:"muyuy",normalized:"scroll"},{native:"\xF1uqa",normalized:"me"},{native:"nuqa",normalized:"me"},{native:"\xF1uqap",normalized:"my"},{native:"nuqap",normalized:"my"},{native:"chay",normalized:"it"},{native:"chaymi",normalized:"it"},{native:"lluqsiy",normalized:"result"},{native:"ruway",normalized:"event"},{native:"maypi",normalized:"target"},{native:"sikundu",normalized:"s"},{native:"segundu",normalized:"s"},{native:"waranqa sikundu",normalized:"ms"},{native:"minutu",normalized:"m"},{native:"ura",normalized:"h"},{native:"hora",normalized:"h"},{native:"chaypim",normalized:"on"},{native:"kaypi",normalized:"on"},{native:"chayqa",normalized:"then"},{native:"chaymanta",normalized:"then"},{native:"chaymantataq",normalized:"then"},{native:"hinaspa",normalized:"then"},{native:"tukukuy",normalized:"end"},{native:"puchukay",normalized:"end"},{native:"kaykama",normalized:"until"},{native:"yapay",normalized:"add"},{native:"t'ikray",normalized:"toggle"},{native:"tikray",normalized:"toggle"},{native:"qhawachiy",normalized:"focus"},{native:"mana qhawachiy",normalized:"blur"},{native:"-manta",normalized:"from"}],Mr=class extends R{constructor(){super();this.language="qu";this.direction="ltr";this.initializeKeywordsFromProfile(ga,kg),this.setNormalizer(fl),this.registerExtractors(W()),this.registerExtractor(new za),this.registerExtractor(new M),this.registerExtractor(Ao()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return zg.has(r)?"particle":this.isKeyword(r)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":"identifier"}},xg=new Mr});var hl={};N(hl,{swahiliProfile:()=>ka});var ka,xa=z(()=>{"use strict";ka={code:"sw",name:"Swahili",nativeName:"Kiswahili",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"mimi",it:"hiyo",you:"wewe",result:"matokeo",event:"tukio",target:"lengo",body:"mwili"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"yangu",it:"yake",you:"yako"},keywords:{wangu:"me",yangu:"me",langu:"me",changu:"me",wako:"you",yako:"you",lako:"you",chako:"you",wake:"it",yake:"it",lake:"it",chake:"it"}},roleMarkers:{destination:{primary:"kwenye",alternatives:["kwa"],position:"before"},source:{primary:"kutoka",position:"before"},patient:{primary:"",position:"before"},style:{primary:"na",position:"before"}},keywords:{toggle:{primary:"badilisha",normalized:"toggle"},add:{primary:"ongeza",normalized:"add"},remove:{primary:"ondoa",alternatives:["futa","toa"],normalized:"remove"},put:{primary:"weka",alternatives:["tia"],normalized:"put"},append:{primary:"ambatanisha",normalized:"append"},prepend:{primary:"tanguliza",normalized:"prepend"},take:{primary:"chukua",normalized:"take"},make:{primary:"tengeneza",alternatives:["unda"],normalized:"make"},clone:{primary:"nakili",alternatives:["rudufu"],normalized:"clone"},swap:{primary:"badilishana",alternatives:["badalisha"],normalized:"swap"},morph:{primary:"geuza",alternatives:["badilisha umbo"],normalized:"morph"},set:{primary:"seti",normalized:"set"},get:{primary:"pata",alternatives:["pokea"],normalized:"get"},increment:{primary:"ongezeko",normalized:"increment"},decrement:{primary:"punguza",normalized:"decrement"},log:{primary:"andika",alternatives:["rekodi"],normalized:"log"},show:{primary:"onyesha",normalized:"show"},hide:{primary:"ficha",alternatives:["mficho"],normalized:"hide"},transition:{primary:"hamisha",alternatives:["animisha","mpito"],normalized:"transition"},on:{primary:"unapo",alternatives:["kwenye"],normalized:"on"},trigger:{primary:"chochea",normalized:"trigger"},send:{primary:"tuma",alternatives:["peleka"],normalized:"send"},focus:{primary:"lenga",alternatives:["angazia"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},empty:{primary:"toa-kila-kitu",alternatives:["mwaga","tupu"],normalized:"empty"},open:{primary:"fungua",normalized:"open"},close:{primary:"funga",normalized:"close"},select:{primary:"alama",normalized:"select"},clear:{primary:"safisha",normalized:"clear"},reset:{primary:"anzisha-upya",normalized:"reset"},breakpoint:{primary:"nukta-simama",normalized:"breakpoint"},go:{primary:"nenda",alternatives:["enda","elekea"],normalized:"go"},scroll:{primary:"sogeza",alternatives:["skroli"],normalized:"scroll"},push:{primary:"sukuma",alternatives:["push"],normalized:"push"},replace:{primary:"badilisha_url",alternatives:["badili_url"],normalized:"replace"},process:{primary:"shughulikia",alternatives:["changanua"],normalized:"process"},wait:{primary:"subiri",alternatives:["ngoja"],normalized:"wait"},fetch:{primary:"leta",alternatives:["pakia"],normalized:"fetch"},settle:{primary:"tulia",alternatives:["imarika"],normalized:"settle"},if:{primary:"kama",alternatives:["ikiwa"],normalized:"if"},unless:{primary:"isipokuwa",normalized:"unless"},when:{primary:"wakati",normalized:"when"},where:{primary:"wapi",normalized:"where"},else:{primary:"vinginevyo",alternatives:["sivyo"],normalized:"else"},repeat:{primary:"rudia",normalized:"repeat"},for:{primary:"kwa",normalized:"for"},while:{primary:"kadri",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"endelea",normalized:"continue"},halt:{primary:"simama",alternatives:["acha"],normalized:"halt"},throw:{primary:"tupa",normalized:"throw"},call:{primary:"ita",normalized:"call"},return:{primary:"rudisha",alternatives:["rejea"],normalized:"return"},then:{primary:"kisha",alternatives:["halafu","baadaye"],normalized:"then"},and:{primary:"na",alternatives:["pia","vilevile"],normalized:"and"},is:{primary:"ni",normalized:"is"},end:{primary:"mwisho",alternatives:["maliza","tamati"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"isiyo sawia",normalized:"async"},tell:{primary:"sema",alternatives:["ambia"],normalized:"tell"},default:{primary:"chaguo-msingi",alternatives:["msingi"],normalized:"default"},init:{primary:"anzisha",alternatives:["anza"],normalized:"init"},behavior:{primary:"tabia",normalized:"behavior"},install:{primary:"sakinisha",normalized:"install"},measure:{primary:"pima",normalized:"measure"},beep:{primary:"lia",normalized:"beep"},break:{primary:"vunja",normalized:"break"},copy:{primary:"nakala",normalized:"copy"},exit:{primary:"toka",normalized:"exit"},pick:{primary:"chagua",normalized:"pick"},render:{primary:"chora",normalized:"render"},into:{primary:"ndani",normalized:"into"},before:{primary:"kabla",normalized:"before"},after:{primary:"baada",normalized:"after"},until:{primary:"hadi",normalized:"until"},event:{primary:"tukio",normalized:"event"},from:{primary:"kutoka",normalized:"from"},connect:{primary:"unganisha",alternatives:["unga","ungana"],normalized:"connect"},stream:{primary:"tiririsha",alternatives:["mtiririko","strimu"],normalized:"stream"},live:{primary:"moja-kwa-moja",alternatives:["mubashara","hai"],normalized:"live"},socket:{primary:"soketi",alternatives:["tundu","soketi-wavuti"],normalized:"socket"},bind:{primary:"ambatisha",alternatives:["funganisha","bind"],normalized:"bind"},intercept:{primary:"zuia",alternatives:["nasa","intercept"],normalized:"intercept"},worker:{primary:"mfanyakazi",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["chanzo-matukio"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"unapo",alternatives:["kwenye","kwa","wakati"]},sourceMarker:{primary:"kutoka",position:"before"},conditionalKeyword:{primary:"unapo",alternatives:["anapo","tunapo","mnapo","wanapo"]},eventMarker:{primary:"unapo",alternatives:["kwenye","kwa","wakati"],position:"before"}}}});var zl={};N(zl,{SwahiliTokenizer:()=>Or,swahiliTokenizer:()=>Sg});var wg,bg,Or,Sg,kl=z(()=>{"use strict";D();xa();G();X();Lo();wg=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]),bg=[{native:"kweli",normalized:"true"},{native:"uongo",normalized:"false"},{native:"null",normalized:"null"},{native:"haijafafanuliwa",normalized:"undefined"},{native:"kwanza",normalized:"first"},{native:"wamwisho",normalized:"last"},{native:"ifuatayo",normalized:"next"},{native:"ijayo",normalized:"next"},{native:"iliyotangulia",normalized:"previous"},{native:"iliyopita",normalized:"previous"},{native:"karibu",normalized:"closest"},{native:"mzazi",normalized:"parent"},{native:"bonyeza",normalized:"click"},{native:"click",normalized:"click"},{native:"ganti",normalized:"change"},{native:"wasilisha",normalized:"submit"},{native:"bonyeza kitufe",normalized:"keydown"},{native:"sogeza juu",normalized:"mouseover"},{native:"sogeza nje",normalized:"mouseout"},{native:"panya_shuka",normalized:"mousedown"},{native:"panya_juu",normalized:"mouseup"},{native:"panya_ingia",normalized:"mouseenter"},{native:"panya_toka",normalized:"mouseleave"},{native:"panya_nje",normalized:"mouseout"},{native:"panya_sogea",normalized:"mousemove"},{native:"kitufe_shuka",normalized:"keydown"},{native:"kitufe_juu",normalized:"keyup"},{native:"fifia",normalized:"blur"},{native:"pakia",normalized:"load"},{native:"sukuma",normalized:"scroll"},{native:"input",normalized:"input"},{native:"ingizo",normalized:"input"},{native:"yangu",normalized:"my"},{native:"wangu",normalized:"my"},{native:"changu",normalized:"my"},{native:"langu",normalized:"my"},{native:"sekunde",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saa",normalized:"h"},{native:"au",normalized:"or"},{native:"si",normalized:"not"},{native:"ni",normalized:"is"},{native:"ipo",normalized:"exists"},{native:"tupu",normalized:"empty"}],Or=class extends R{constructor(){super();this.language="sw";this.direction="ltr";this.initializeKeywordsFromProfile(ka,bg),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Po()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return wg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Sg=new Or});function xl(n){return/[\u0980-\u09FF]/u.test(n)}var Tg,wa,wl,bl=z(()=>{"use strict";ae();Tg=[{suffix:"\u099A\u09CD\u099B\u09C7 \u0986\u099B\u09C7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B \u0986\u099B\u09BF",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09C7\u09A8 \u0986\u099B\u09C7\u09A8",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09C7\u099B\u09C7\u09A8",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09C7\u099B\u09C7",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09C7\u099B",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09AC\u09C7\u09A8",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09AC\u09C7",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09AC\u09CB",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09B2\u09C7\u09A8",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09B2\u09CB",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09B2",replacement:"",confidence:.85,type:"past",minStemLength:2},{suffix:"\u09C1\u09A8",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u09CB",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09C7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099A\u09CD\u099B\u09BF",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09BE",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u09C7",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09BF",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09CB",replacement:"",confidence:.85,type:"present",minStemLength:2}],wa=class{constructor(){this.language="bn"}isNormalizable(e){return e.length<2?!1:xl(e)}normalize(e){let t=this.tryConjugationNormalization(e);return t||V(e)}tryConjugationNormalization(e){for(let t of Tg)if(e.endsWith(t.suffix)){let r=Array.from(e),a=Array.from(t.suffix),i=r.slice(0,r.length-a.length),o=i.join("")+t.replacement,s=t.minStemLength??1;if(i.length<s||o.length>0&&!xl(o))continue;return x(o,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}},wl=new wa});var Sl={};N(Sl,{bengaliProfile:()=>ba});var ba,Sa=z(()=>{"use strict";ba={code:"bn",name:"Bengali",nativeName:"\u09AC\u09BE\u0982\u09B2\u09BE",direction:"ltr",script:"bengali",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u09C1\u09A8","\u09CB","\u09BE","\u09C7","\u09BF"],subjectDrop:!0},references:{me:"\u0986\u09AE\u09BF",it:"\u098F\u099F\u09BF",you:"\u0986\u09AA\u09A8\u09BF",result:"\u09AB\u09B2\u09BE\u09AB\u09B2",event:"\u0998\u099F\u09A8\u09BE",target:"\u09B2\u0995\u09CD\u09B7\u09CD\u09AF",body:"\u09AC\u09A1\u09BF"},possessive:{marker:"\u09B0",markerPosition:"between",keywords:{\u0986\u09AE\u09BE\u09B0:"me",\u09A4\u09CB\u09AE\u09BE\u09B0:"you",\u0986\u09AA\u09A8\u09BE\u09B0:"you",\u09A4\u09BE\u09B0:"it",\u098F\u09B0:"it"}},roleMarkers:{patient:{primary:"\u0995\u09C7",position:"after"},destination:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},source:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},style:{primary:"\u09A6\u09BF\u09AF\u09BC\u09C7",position:"after"},event:{primary:"\u09A4\u09C7",position:"after"}},keywords:{toggle:{primary:"\u099F\u0997\u09B2",normalized:"toggle"},add:{primary:"\u09AF\u09CB\u0997",alternatives:["\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"],normalized:"add"},remove:{primary:"\u09B8\u09B0\u09BE\u09A8",alternatives:["\u09B8\u09B0\u09BF\u09AF\u09BC\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8","\u09AE\u09C1\u099B\u09C1\u09A8"],normalized:"remove"},put:{primary:"\u09B0\u09BE\u0996\u09C1\u09A8",alternatives:["\u09B0\u09BE\u0996"],normalized:"put"},append:{primary:"\u099C\u09C1\u09A1\u09BC\u09C1\u09A8",alternatives:[],normalized:"append"},prepend:{primary:"\u09B6\u09C1\u09B0\u09C1\u09A4\u09C7 \u09AF\u09CB\u0997",alternatives:[],normalized:"prepend"},take:{primary:"\u09A8\u09BF\u09A8",alternatives:["\u09A8\u09C7"],normalized:"take"},make:{primary:"\u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09C1\u09A8",alternatives:["\u09AC\u09BE\u09A8\u09BE\u09A8"],normalized:"make"},clone:{primary:"\u0995\u09CD\u09B2\u09CB\u09A8",alternatives:["\u09AA\u09CD\u09B0\u09A4\u09BF\u09B2\u09BF\u09AA\u09BF"],normalized:"clone"},swap:{primary:"\u09AC\u09A6\u09B2",alternatives:[],normalized:"swap"},morph:{primary:"\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0",alternatives:[],normalized:"morph"},set:{primary:"\u09B8\u09C7\u099F",alternatives:["\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09A3"],normalized:"set"},get:{primary:"\u09AA\u09BE\u09A8",normalized:"get"},increment:{primary:"\u09AC\u09C3\u09A6\u09CD\u09A7\u09BF",alternatives:["\u09AC\u09BE\u09A1\u09BC\u09BE\u09A8"],normalized:"increment"},decrement:{primary:"\u09B9\u09CD\u09B0\u09BE\u09B8",alternatives:["\u0995\u09AE\u09BE\u09A8"],normalized:"decrement"},log:{primary:"\u09B2\u0997",alternatives:["\u09B0\u09C7\u0995\u09B0\u09CD\u09A1"],normalized:"log"},show:{primary:"\u09A6\u09C7\u0996\u09BE\u09A8",alternatives:["\u09A6\u09C7\u0996\u09BE\u0993"],normalized:"show"},hide:{primary:"\u09B2\u09C1\u0995\u09BE\u09A8",alternatives:["\u09B2\u09C1\u0995\u09BE\u0993"],normalized:"hide"},transition:{primary:"\u09B8\u0982\u0995\u09CD\u09B0\u09AE\u09A3",alternatives:[],normalized:"transition"},on:{primary:"\u09A4\u09C7",alternatives:["\u098F"],normalized:"on"},trigger:{primary:"\u099F\u09CD\u09B0\u09BF\u0997\u09BE\u09B0",alternatives:[],normalized:"trigger"},send:{primary:"\u09AA\u09BE\u09A0\u09BE\u09A8",alternatives:["\u09AA\u09BE\u09A0\u09BE\u0993"],normalized:"send"},focus:{primary:"\u09AB\u09CB\u0995\u09BE\u09B8",alternatives:["\u09AE\u09A8\u09CB\u09AF\u09CB\u0997"],normalized:"focus"},blur:{primary:"\u099D\u09BE\u09AA\u09B8\u09BE",alternatives:["\u09AB\u09CB\u0995\u09BE\u09B8_\u09B8\u09B0\u09BE\u09A8"],normalized:"blur"},empty:{primary:"\u0996\u09BE\u09B2\u09BF-\u0995\u09B0\u09C1\u09A8",alternatives:["\u0996\u09BE\u09B2\u09BF"],normalized:"empty"},open:{primary:"\u0996\u09C1\u09B2\u09C1\u09A8",normalized:"open"},close:{primary:"\u09AC\u09A8\u09CD\u09A7",normalized:"close"},select:{primary:"\u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8",normalized:"select"},clear:{primary:"\u09AA\u09B0\u09BF\u09B7\u09CD\u0995\u09BE\u09B0",normalized:"clear"},reset:{primary:"\u09B0\u09BF\u09B8\u09C7\u099F",normalized:"reset"},breakpoint:{primary:"\u09AC\u09CD\u09B0\u09C7\u0995\u09AA\u09AF\u09BC\u09C7\u09A8\u09CD\u099F",normalized:"breakpoint"},click:{primary:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},hover:{primary:"\u09B9\u09CB\u09AD\u09BE\u09B0",alternatives:["\u0989\u09AA\u09B0\u09C7_\u09B0\u09BE\u0996\u09C1\u09A8"],normalized:"hover"},submit:{primary:"\u09B8\u09BE\u09AC\u09AE\u09BF\u099F",alternatives:["\u099C\u09AE\u09BE"],normalized:"submit"},input:{primary:"\u0987\u09A8\u09AA\u09C1\u099F",alternatives:["\u09AA\u09CD\u09B0\u09AC\u09C7\u09B6"],normalized:"input"},change:{primary:"\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8",normalized:"change"},go:{primary:"\u09AF\u09BE\u09A8",alternatives:["\u09AF\u09BE\u0993"],normalized:"go"},scroll:{primary:"\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2",normalized:"scroll"},push:{primary:"\u09AA\u09C1\u09B6",alternatives:["\u09A0\u09C7\u09B2\u09C1\u09A8"],normalized:"push"},replace:{primary:"\u09AA\u09CD\u09B0\u09A4\u09BF\u09B8\u09CD\u09A5\u09BE\u09AA\u09A8",normalized:"replace"},process:{primary:"\u09AA\u09CD\u09B0\u09B8\u09C7\u09B8",alternatives:["\u09AA\u09CD\u09B0\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09BE"],normalized:"process"},wait:{primary:"\u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE",normalized:"wait"},fetch:{primary:"\u0986\u09A8\u09C1\u09A8",alternatives:[],normalized:"fetch"},settle:{primary:"\u09B8\u09CD\u09A5\u09BF\u09B0",alternatives:[],normalized:"settle"},if:{primary:"\u09AF\u09A6\u09BF",alternatives:[],normalized:"if"},when:{primary:"\u09AF\u0996\u09A8",normalized:"when"},where:{primary:"\u0995\u09CB\u09A5\u09BE\u09AF\u09BC",normalized:"where"},else:{primary:"\u09A8\u09A4\u09C1\u09AC\u09BE",alternatives:["\u09A8\u09BE \u09B9\u09B2\u09C7"],normalized:"else"},repeat:{primary:"\u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF",alternatives:["\u09AC\u09BE\u09B0 \u09AC\u09BE\u09B0"],normalized:"repeat"},for:{primary:"\u099C\u09A8\u09CD\u09AF",alternatives:[],normalized:"for"},while:{primary:"\u09AF\u09A4\u0995\u09CD\u09B7\u09A3",alternatives:[],normalized:"while"},forever:{primary:"\u099A\u09BF\u09B0\u0995\u09BE\u09B2",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u099A\u09BE\u09B2\u09BF\u09AF\u09BC\u09C7 \u09AF\u09BE\u09A8",alternatives:[],normalized:"continue"},halt:{primary:"\u09A5\u09BE\u09AE\u09C1\u09A8",alternatives:["\u09A5\u09BE\u09AE\u09BE\u0993"],normalized:"halt"},throw:{primary:"\u09A8\u09BF\u0995\u09CD\u09B7\u09C7\u09AA",alternatives:["\u099B\u09C1\u0981\u09A1\u09BC\u09C7 \u09A6\u09BF\u09A8"],normalized:"throw"},call:{primary:"\u0995\u09B2",alternatives:["\u09A1\u09BE\u0995\u09C1\u09A8"],normalized:"call"},return:{primary:"\u09AB\u09BF\u09B0\u09C1\u09A8",alternatives:["\u09AB\u09C7\u09B0\u09A4 \u09A6\u09BF\u09A8"],normalized:"return"},then:{primary:"\u09A4\u09BE\u09B0\u09AA\u09B0",alternatives:["\u09A4\u0996\u09A8"],normalized:"then"},and:{primary:"\u098F\u09AC\u0982",alternatives:[],normalized:"and"},end:{primary:"\u09B6\u09C7\u09B7",alternatives:["\u09B8\u09AE\u09BE\u09AA\u09CD\u09A4"],normalized:"end"},js:{primary:"\u099C\u09C7\u098F\u09B8",alternatives:["js"],normalized:"js"},async:{primary:"\u0985\u09CD\u09AF\u09BE\u09B8\u09BF\u0999\u09CD\u0995",alternatives:[],normalized:"async"},tell:{primary:"\u09AC\u09B2\u09C1\u09A8",alternatives:["\u09AC\u09B2"],normalized:"tell"},default:{primary:"\u09A1\u09BF\u09AB\u09B2\u09CD\u099F",alternatives:[],normalized:"default"},init:{primary:"\u09B6\u09C1\u09B0\u09C1",alternatives:[],normalized:"init"},behavior:{primary:"\u0986\u099A\u09B0\u09A3",alternatives:[],normalized:"behavior"},install:{primary:"\u0987\u09A8\u09B8\u09CD\u099F\u09B2",alternatives:[],normalized:"install"},measure:{primary:"\u09AE\u09BE\u09AA\u09C1\u09A8",alternatives:[],normalized:"measure"},beep:{primary:"\u09AC\u09C0\u09AA",alternatives:[],normalized:"beep"},break:{primary:"\u09AD\u09BE\u0999\u09C1\u09A8",alternatives:[],normalized:"break"},copy:{primary:"\u0995\u09AA\u09BF",alternatives:[],normalized:"copy"},exit:{primary:"\u09AC\u09C7\u09B0",alternatives:[],normalized:"exit"},pick:{primary:"\u09AC\u09BE\u099B\u09C1\u09A8",alternatives:[],normalized:"pick"},render:{primary:"\u09B0\u09C7\u09A8\u09CD\u09A1\u09BE\u09B0",alternatives:[],normalized:"render"},into:{primary:"\u09AD\u09BF\u09A4\u09B0\u09C7",normalized:"into"},before:{primary:"\u0986\u0997\u09C7",alternatives:[],normalized:"before"},after:{primary:"\u09AA\u09B0\u09C7",alternatives:[],normalized:"after"},until:{primary:"\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4",alternatives:[],normalized:"until"},event:{primary:"\u0998\u099F\u09A8\u09BE",alternatives:[],normalized:"event"},from:{primary:"\u09A5\u09C7\u0995\u09C7",normalized:"from"},connect:{primary:"\u0995\u09BE\u09A8\u09C7\u0995\u09CD\u099F",alternatives:["\u09B8\u0982\u09AF\u09CB\u0997","\u09AF\u09C1\u0995\u09CD\u09A4"],normalized:"connect"},stream:{primary:"\u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u09AE",alternatives:["\u09B8\u09CD\u09B0\u09CB\u09A4","\u09AA\u09CD\u09B0\u09AC\u09BE\u09B9"],normalized:"stream"},live:{primary:"\u09B2\u09BE\u0987\u09AD",alternatives:["\u09B8\u09B0\u09BE\u09B8\u09B0\u09BF","\u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u0995\u09CD\u09B7"],normalized:"live"},socket:{primary:"\u09B8\u0995\u09C7\u099F",alternatives:["\u0993\u09AF\u09BC\u09C7\u09AC\u09B8\u0995\u09C7\u099F"],normalized:"socket"},bind:{primary:"\u09AC\u09BE\u0987\u09A8\u09CD\u09A1",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\u0986\u099F\u0995\u09BE\u0993",alternatives:["\u0987\u09A8\u09CD\u099F\u09BE\u09B0\u09B8\u09C7\u09AA\u09CD\u099F","intercept"],normalized:"intercept"},worker:{primary:"\u0995\u09B0\u09CD\u09AE\u09C0",alternatives:["\u0993\u09AF\u09BC\u09BE\u09B0\u09CD\u0995\u09BE\u09B0","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0987\u09AD\u09C7\u09A8\u09CD\u099F\u09B8\u09CB\u09B0\u09CD\u09B8"],normalized:"eventsource"}},tokenization:{particles:["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u09A4\u09C7",alternatives:["\u098F","\u09AF\u0996\u09A8"],normalized:"on"},sourceMarker:{primary:"\u09A5\u09C7\u0995\u09C7",position:"after"},eventMarker:{primary:"\u09A4\u09C7",alternatives:["\u098F"],position:"after"},temporalMarkers:["\u09AF\u0996\u09A8","\u09AF\u0996\u09A8\u0987"]}}});var Tl={};N(Tl,{BengaliTokenizer:()=>Wr,bengaliTokenizer:()=>Lg});var Eg,Pg,Wr,Lg,El=z(()=>{"use strict";D();bl();Sa();G();X();uo();yo();Pe();Eg=new Set(["\u0995\u09C7","\u09A4\u09C7","\u09A5\u09C7\u0995\u09C7","\u09B0","\u098F\u09B0","\u09A6\u09BF\u09AF\u09BC\u09C7","\u099C\u09A8\u09CD\u09AF","\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4","\u098F","\u09AE\u09A7\u09CD\u09AF\u09C7"]),Pg=[{native:"\u09B8\u09A4\u09CD\u09AF",normalized:"true"},{native:"\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE",normalized:"false"},{native:"\u09B6\u09C2\u09A8\u09CD\u09AF",normalized:"null"},{native:"\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4",normalized:"undefined"},{native:"\u09AA\u09CD\u09B0\u09A5\u09AE",normalized:"first"},{native:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",normalized:"next"},{native:"\u0986\u0997\u09C7\u09B0",normalized:"previous"},{native:"\u09A8\u09BF\u0995\u099F\u09A4\u09AE",normalized:"closest"},{native:"\u09AE\u09C2\u09B2",normalized:"parent"},{native:"\u0995\u09CD\u09B2\u09BF\u0995",normalized:"click"},{native:"\u099C\u09AE\u09BE",normalized:"submit"},{native:"\u0987\u09A8\u09AA\u09C1\u099F",normalized:"input"},{native:"\u09B2\u09CB\u09A1",normalized:"load"},{native:"\u09B8\u09CD\u0995\u09CD\u09B0\u09CB\u09B2",normalized:"scroll"},{native:"\u0995\u09C7",normalized:"to"},{native:"\u09B8\u09BE\u09A5\u09C7",normalized:"with"}],Wr=class extends R{constructor(){super();this.language="bn";this.direction="ltr";this.initializeKeywordsFromProfile(ba,Pg),this.setNormalizer(wl),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new dr),this.registerExtractor(new mr),this.registerExtractor(new ee),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return Eg.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":(t.startsWith(":"),"identifier")}},Lg=new Wr});function Pl(n){return/[\u0900-\u097F\u0A8E-\u0A8F]/u.test(n)}var Cg,Rt,zS,Ll=z(()=>{"use strict";ae();Cg=[{suffix:" \u0930\u0939\u093E \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0940 \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0947 \u0939\u0948\u0902",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u093E",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0940",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0947",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0942\u0902\u0917\u093E",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0942\u0902\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u093E",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0902\u0917\u0947",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0924\u093E \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940 \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947 \u0939\u0948\u0902",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u093E",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0928\u093E",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u093E\u092F\u093E",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093E\u092F\u0940",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093E\u092F\u0947",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u092F\u093E",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093F\u092F\u0947",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093F\u090F",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u0908",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u090F",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u0947\u0902",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u094B",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093E",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0940",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0947",replacement:"",confidence:.82,type:"past",minStemLength:2}],Rt=class{constructor(){this.language="hi"}isNormalizable(e){return e.length<2?!1:Pl(e)}normalize(e){let t=this.tryConjugationNormalization(e);return t||V(e)}tryConjugationNormalization(e){for(let t of Cg)if(e.endsWith(t.suffix)){let r=Array.from(e),a=Array.from(t.suffix),i=r.slice(0,r.length-a.length),o=i.join("")+t.replacement,s=t.minStemLength??1;if(i.length<s||o.length>0&&!Pl(o))continue;return x(o,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}},zS=new Rt});var Cl={};N(Cl,{hindiProfile:()=>Ta});var Ta,Ea=z(()=>{"use strict";Ta={code:"hi",name:"Hindi",nativeName:"\u0939\u093F\u0928\u094D\u0926\u0940",direction:"ltr",script:"devanagari",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u0947\u0902","\u093E","\u0940","\u0947","\u094B"],subjectDrop:!0},references:{me:"\u092E\u0948\u0902",it:"\u092F\u0939",you:"\u0906\u092A",result:"\u092A\u0930\u093F\u0923\u093E\u092E",event:"\u0918\u091F\u0928\u093E",target:"\u0932\u0915\u094D\u0937\u094D\u092F",body:"\u092C\u0949\u0921\u0940"},possessive:{marker:"\u0915\u093E",markerPosition:"between",keywords:{\u092E\u0947\u0930\u093E:"me",\u092E\u0947\u0930\u0940:"me",\u092E\u0947\u0930\u0947:"me",\u0924\u0947\u0930\u093E:"you",\u0924\u0947\u0930\u0940:"you",\u0924\u0947\u0930\u0947:"you",\u0906\u092A\u0915\u093E:"you",\u0906\u092A\u0915\u0940:"you",\u0906\u092A\u0915\u0947:"you",\u0909\u0938\u0915\u093E:"it",\u0909\u0938\u0915\u0940:"it",\u0909\u0938\u0915\u0947:"it",\u0907\u0938\u0915\u093E:"it",\u0907\u0938\u0915\u0940:"it",\u0907\u0938\u0915\u0947:"it"}},roleMarkers:{patient:{primary:"\u0915\u094B",position:"after"},destination:{primary:"\u092E\u0947\u0902",alternatives:["\u092A\u0930"],position:"after"},source:{primary:"\u0938\u0947",position:"after"},style:{primary:"\u0938\u0947",position:"after"},event:{primary:"\u092A\u0930",position:"after"}},keywords:{toggle:{primary:"\u091F\u0949\u0917\u0932",alternatives:["\u092C\u0926\u0932\u0947\u0902","\u092C\u0926\u0932"],normalized:"toggle"},add:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902",alternatives:["\u091C\u094B\u0921\u093C"],normalized:"add"},remove:{primary:"\u0939\u091F\u093E\u090F\u0902",alternatives:["\u0939\u091F\u093E","\u092E\u093F\u091F\u093E\u090F\u0902"],normalized:"remove"},put:{primary:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093E\u0932\u0947\u0902","\u0921\u093E\u0932"],normalized:"put"},append:{primary:"\u0938\u0902\u0932\u0917\u094D\u0928",alternatives:[],normalized:"append"},prepend:{primary:"\u091C\u094B\u0921\u093C\u0947\u0902_\u0936\u0941\u0930\u0942",alternatives:[],normalized:"prepend"},take:{primary:"\u0932\u0947\u0902",alternatives:["\u0932\u0947"],normalized:"take"},make:{primary:"\u092C\u0928\u093E\u090F\u0902",alternatives:["\u092C\u0928\u093E"],normalized:"make"},clone:{primary:"\u0915\u094D\u0932\u094B\u0928",alternatives:["\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F"],normalized:"clone"},swap:{primary:"\u0935\u093F\u0928\u093F\u092E\u092F",alternatives:[],normalized:"swap"},morph:{primary:"\u0930\u0942\u092A\u093E\u0902\u0924\u0930",alternatives:[],normalized:"morph"},set:{primary:"\u0938\u0947\u091F",alternatives:["\u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924"],normalized:"set"},get:{primary:"\u092A\u094D\u0930\u093E\u092A\u094D\u0924",alternatives:["\u092A\u093E\u090F\u0902"],normalized:"get"},increment:{primary:"\u092C\u0922\u093C\u093E\u090F\u0902",alternatives:["\u092C\u0922\u093C\u093E"],normalized:"increment"},decrement:{primary:"\u0918\u091F\u093E\u090F\u0902",alternatives:["\u0918\u091F\u093E"],normalized:"decrement"},log:{primary:"\u0932\u0949\u0917",alternatives:["\u0926\u0930\u094D\u091C"],normalized:"log"},show:{primary:"\u0926\u093F\u0916\u093E\u090F\u0902",alternatives:["\u0926\u093F\u0916\u093E"],normalized:"show"},hide:{primary:"\u091B\u093F\u092A\u093E\u090F\u0902",alternatives:["\u091B\u093F\u092A\u093E"],normalized:"hide"},transition:{primary:"\u0938\u0902\u0915\u094D\u0930\u092E\u0923",alternatives:[],normalized:"transition"},on:{primary:"\u092A\u0930",alternatives:[],normalized:"on"},trigger:{primary:"\u091F\u094D\u0930\u093F\u0917\u0930",alternatives:[],normalized:"trigger"},send:{primary:"\u092D\u0947\u091C\u0947\u0902",alternatives:["\u092D\u0947\u091C"],normalized:"send"},focus:{primary:"\u092B\u094B\u0915\u0938",alternatives:["\u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924"],normalized:"focus"},blur:{primary:"\u0927\u0941\u0902\u0927\u0932\u093E",alternatives:["\u092B\u094B\u0915\u0938_\u0939\u091F\u093E\u090F\u0902"],normalized:"blur"},empty:{primary:"\u0916\u093E\u0932\u0940-\u0915\u0930\u0947\u0902",alternatives:["\u0916\u093E\u0932\u0940"],normalized:"empty"},open:{primary:"\u0916\u094B\u0932\u0947\u0902",normalized:"open"},close:{primary:"\u092C\u0902\u0926-\u0915\u0930\u0947\u0902",normalized:"close"},select:{primary:"\u091A\u093F\u0939\u094D\u0928\u093F\u0924-\u0915\u0930\u0947\u0902",normalized:"select"},clear:{primary:"\u0938\u093E\u092B\u093C-\u0915\u0930\u0947\u0902",alternatives:["\u0938\u093E\u092B-\u0915\u0930\u0947\u0902"],normalized:"clear"},reset:{primary:"\u0930\u0940\u0938\u0947\u091F",normalized:"reset"},breakpoint:{primary:"\u092C\u094D\u0930\u0947\u0915\u092A\u094D\u0935\u093E\u0907\u0902\u091F",normalized:"breakpoint"},click:{primary:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},hover:{primary:"\u0939\u094B\u0935\u0930",alternatives:["\u090A\u092A\u0930_\u0930\u0916\u0947\u0902"],normalized:"hover"},submit:{primary:"\u0938\u092C\u092E\u093F\u091F",alternatives:["\u091C\u092E\u093E"],normalized:"submit"},input:{primary:"\u0907\u0928\u092A\u0941\u091F",alternatives:[],normalized:"input"},change:{primary:"\u092C\u0926\u0932\u093E\u0935",alternatives:["\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928"],normalized:"change"},go:{primary:"\u091C\u093E\u090F\u0902",alternatives:["\u091C\u093E"],normalized:"go"},scroll:{primary:"\u0938\u094D\u0915\u094D\u0930\u0949\u0932",normalized:"scroll"},push:{primary:"\u0927\u0915\u0947\u0932\u0947\u0902",alternatives:["\u092A\u0941\u0936"],normalized:"push"},replace:{primary:"\u092C\u0926\u0932\u0947\u0902_\u092F\u0942\u0906\u0930\u090F\u0932",alternatives:["\u092A\u094D\u0930\u0924\u093F\u0938\u094D\u0925\u093E\u092A\u093F\u0924"],normalized:"replace"},process:{primary:"\u0938\u0902\u0938\u093E\u0927\u093F\u0924",alternatives:["\u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0943\u0924"],normalized:"process"},wait:{primary:"\u092A\u094D\u0930\u0924\u0940\u0915\u094D\u0937\u093E",alternatives:["\u0930\u0941\u0915\u0947\u0902"],normalized:"wait"},fetch:{primary:"\u0932\u093E\u090F\u0902",alternatives:[],normalized:"fetch"},settle:{primary:"\u0938\u094D\u0925\u093F\u0930",alternatives:[],normalized:"settle"},if:{primary:"\u0905\u0917\u0930",alternatives:["\u092F\u0926\u093F"],normalized:"if"},when:{primary:"\u091C\u092C",normalized:"when"},where:{primary:"\u0915\u0939\u093E\u0901",normalized:"where"},else:{primary:"\u0935\u0930\u0928\u093E",alternatives:["\u0928\u0939\u0940\u0902 \u0924\u094B"],normalized:"else"},repeat:{primary:"\u0926\u094B\u0939\u0930\u093E\u090F\u0902",alternatives:["\u0926\u094B\u0939\u0930\u093E"],normalized:"repeat"},for:{primary:"\u0915\u0947 \u0932\u093F\u090F",alternatives:["\u0939\u0947\u0924\u0941"],normalized:"for"},while:{primary:"\u091C\u092C \u0924\u0915",alternatives:[],normalized:"while"},forever:{primary:"\u0939\u092E\u0947\u0936\u093E",normalized:"forever",alternatives:["forever"]},unless:{primary:"\u091C\u092C \u0924\u0915 \u0928\u0939\u0940\u0902",normalized:"unless"},continue:{primary:"\u091C\u093E\u0930\u0940",alternatives:[],normalized:"continue"},halt:{primary:"\u0930\u094B\u0915\u0947\u0902",alternatives:["\u0930\u094B\u0915"],normalized:"halt"},throw:{primary:"\u092B\u0947\u0902\u0915\u0947\u0902",alternatives:["\u092B\u0947\u0902\u0915"],normalized:"throw"},call:{primary:"\u0915\u0949\u0932",alternatives:["\u092C\u0941\u0932\u093E\u090F\u0902"],normalized:"call"},return:{primary:"\u0932\u094C\u091F\u093E\u090F\u0902",alternatives:["\u0932\u094C\u091F\u093E"],normalized:"return"},then:{primary:"\u092B\u093F\u0930",alternatives:["\u0924\u092C"],normalized:"then"},and:{primary:"\u0914\u0930",alternatives:[],normalized:"and"},matches:{primary:"\u092E\u0947\u0932 \u0916\u093E\u0924\u093E",normalized:"matches"},end:{primary:"\u0938\u092E\u093E\u092A\u094D\u0924",alternatives:["\u0905\u0902\u0924"],normalized:"end"},js:{primary:"\u091C\u0947\u090F\u0938",alternatives:["js"],normalized:"js"},async:{primary:"\u0905\u0938\u093F\u0902\u0915",alternatives:[],normalized:"async"},tell:{primary:"\u092C\u0924\u093E\u090F\u0902",alternatives:["\u092C\u0924\u093E"],normalized:"tell"},default:{primary:"\u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F",alternatives:[],normalized:"default"},init:{primary:"\u092A\u094D\u0930\u093E\u0930\u0902\u092D",alternatives:[],normalized:"init"},behavior:{primary:"\u0935\u094D\u092F\u0935\u0939\u093E\u0930",alternatives:[],normalized:"behavior"},install:{primary:"\u0907\u0902\u0938\u094D\u091F\u0949\u0932",alternatives:[],normalized:"install"},measure:{primary:"\u092E\u093E\u092A\u0947\u0902",alternatives:[],normalized:"measure"},beep:{primary:"\u092C\u0940\u092A",alternatives:[],normalized:"beep"},break:{primary:"\u0924\u094B\u0921\u093C\u0947\u0902",alternatives:[],normalized:"break"},copy:{primary:"\u0915\u0949\u092A\u0940",alternatives:[],normalized:"copy"},exit:{primary:"\u092C\u093E\u0939\u0930",alternatives:[],normalized:"exit"},pick:{primary:"\u091A\u0941\u0928\u0947\u0902",alternatives:[],normalized:"pick"},render:{primary:"\u0930\u0947\u0902\u0921\u0930",alternatives:[],normalized:"render"},into:{primary:"\u092E\u0947\u0902",alternatives:[],normalized:"into"},before:{primary:"\u0938\u0947 \u092A\u0939\u0932\u0947",alternatives:["\u092A\u0939\u0932\u0947"],normalized:"before"},after:{primary:"\u0915\u0947 \u092C\u093E\u0926",alternatives:["\u092C\u093E\u0926"],normalized:"after"},until:{primary:"\u0924\u0915",alternatives:[],normalized:"until"},event:{primary:"\u0918\u091F\u0928\u093E",alternatives:[],normalized:"event"},from:{primary:"\u0938\u0947",normalized:"from"},connect:{primary:"\u0915\u0928\u0947\u0915\u094D\u091F",alternatives:["\u0938\u0902\u092F\u094B\u091C\u093F\u0924"],normalized:"connect"},stream:{primary:"\u0938\u094D\u091F\u094D\u0930\u0940\u092E",alternatives:["\u0927\u093E\u0930\u093E","\u092A\u094D\u0930\u0935\u093E\u0939"],normalized:"stream"},live:{primary:"\u0932\u093E\u0907\u0935",alternatives:["\u0938\u091C\u0940\u0935","\u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937"],normalized:"live"},socket:{primary:"\u0938\u0949\u0915\u0947\u091F",alternatives:["\u0935\u0947\u092C\u0938\u0949\u0915\u0947\u091F"],normalized:"socket"},worker:{primary:"worker",alternatives:["\u0935\u0930\u094D\u0915\u0930"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0907\u0935\u0947\u0902\u091F\u0938\u094B\u0930\u094D\u0938"],normalized:"eventsource"},bind:{primary:"bind",alternatives:["\u092C\u093E\u0907\u0902\u0921","\u092C\u093E\u0902\u0927\u0947\u0902"],normalized:"bind"},intercept:{primary:"intercept",alternatives:["\u0907\u0902\u091F\u0930\u0938\u0947\u092A\u094D\u091F"],normalized:"intercept"}},tokenization:{particles:["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u092A\u0930",alternatives:[],normalized:"on"},sourceMarker:{primary:"\u0938\u0947",position:"after"},eventMarker:{primary:"\u092A\u0930",alternatives:[],position:"after"},temporalMarkers:["\u091C\u092C","\u091C\u092C \u092D\u0940"]}}});var Rl={};N(Rl,{HindiTokenizer:()=>Ir,hindiTokenizer:()=>Ag});var Rg,Ng,Ir,Ag,Nl=z(()=>{"use strict";D();Ll();Ea();G();X();so();po();Pe();Rg=new Set(["\u0915\u094B","\u092E\u0947\u0902","\u092A\u0930","\u0938\u0947","\u0915\u093E","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"]),Ng=[{native:"\u092E\u093E\u0909\u0938\u0928\u0940\u091A\u0947",normalized:"mousedown"},{native:"\u092E\u093E\u0909\u0938\u090A\u092A\u0930",normalized:"mouseup"},{native:"\u0938\u091A",normalized:"true"},{native:"\u0938\u0924\u094D\u092F",normalized:"true"},{native:"\u091D\u0942\u0920",normalized:"false"},{native:"\u0905\u0938\u0924\u094D\u092F",normalized:"false"},{native:"\u0916\u093E\u0932\u0940",normalized:"null"},{native:"\u0905\u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924",normalized:"undefined"},{native:"\u092A\u0939\u0932\u093E",normalized:"first"},{native:"\u0905\u0902\u0924\u093F\u092E",normalized:"last"},{native:"\u0905\u0917\u0932\u093E",normalized:"next"},{native:"\u092A\u093F\u091B\u0932\u093E",normalized:"previous"},{native:"\u0928\u093F\u0915\u091F\u0924\u092E",normalized:"closest"},{native:"\u092E\u0942\u0932",normalized:"parent"},{native:"\u0915\u094D\u0932\u093F\u0915",normalized:"click"},{native:"\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928",normalized:"change"},{native:"\u091C\u092E\u093E",normalized:"submit"},{native:"\u0907\u0928\u092A\u0941\u091F",normalized:"input"},{native:"\u0932\u094B\u0921",normalized:"load"},{native:"\u0938\u094D\u0915\u094D\u0930\u0949\u0932",normalized:"scroll"},{native:"\u0915\u094B",normalized:"to"},{native:"\u0915\u0947 \u0938\u093E\u0925",normalized:"with"}],Ir=class extends R{constructor(){super();this.language="hi";this.direction="ltr";this.initializeKeywordsFromProfile(Ta,Ng),this.normalizer=new Rt,this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new pr),this.registerExtractor(new cr),this.registerExtractor(new ee),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return Rg.has(t)?"particle":this.isKeyword(t)?"keyword":t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":(t.startsWith(":"),"identifier")}},Ag=new Ir});function jg(n){return/[àèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/.test(n)}function Mg(n){let e=n.toLowerCase();if(e.endsWith("are")||e.endsWith("ere")||e.endsWith("ire")||e.endsWith("ando")||e.endsWith("endo")||e.endsWith("ato")||e.endsWith("uto")||e.endsWith("ito")||e.endsWith("arsi")||e.endsWith("ersi")||e.endsWith("irsi"))return!0;for(let t of n)if(jg(t))return!0;return!1}var Al,Og,Wg,Ig,Vg,Nt,RS,jl=z(()=>{"use strict";ae();Al=["si","mi","ti","ci","vi"],Og=[{ending:"ando",stem:"are",confidence:.88,type:"gerund"},{ending:"ato",stem:"are",confidence:.88,type:"participle"},{ending:"ata",stem:"are",confidence:.88,type:"participle"},{ending:"ati",stem:"are",confidence:.88,type:"participle"},{ending:"ate",stem:"are",confidence:.88,type:"participle"},{ending:"o",stem:"are",confidence:.75,type:"present"},{ending:"i",stem:"are",confidence:.72,type:"present"},{ending:"a",stem:"are",confidence:.75,type:"present"},{ending:"iamo",stem:"are",confidence:.85,type:"present"},{ending:"ate",stem:"are",confidence:.85,type:"present"},{ending:"ano",stem:"are",confidence:.85,type:"present"},{ending:"avo",stem:"are",confidence:.88,type:"past"},{ending:"avi",stem:"are",confidence:.88,type:"past"},{ending:"ava",stem:"are",confidence:.88,type:"past"},{ending:"avamo",stem:"are",confidence:.88,type:"past"},{ending:"avate",stem:"are",confidence:.88,type:"past"},{ending:"avano",stem:"are",confidence:.88,type:"past"},{ending:"ai",stem:"are",confidence:.85,type:"past"},{ending:"asti",stem:"are",confidence:.88,type:"past"},{ending:"\xF2",stem:"are",confidence:.85,type:"past"},{ending:"ammo",stem:"are",confidence:.88,type:"past"},{ending:"aste",stem:"are",confidence:.88,type:"past"},{ending:"arono",stem:"are",confidence:.88,type:"past"},{ending:"i",stem:"are",confidence:.72,type:"subjunctive"},{ending:"ino",stem:"are",confidence:.82,type:"subjunctive"},{ending:"a",stem:"are",confidence:.75,type:"imperative"},{ending:"are",stem:"are",confidence:.92,type:"dictionary"}],Wg=[{ending:"endo",stem:"ere",confidence:.88,type:"gerund"},{ending:"uto",stem:"ere",confidence:.85,type:"participle"},{ending:"uta",stem:"ere",confidence:.85,type:"participle"},{ending:"uti",stem:"ere",confidence:.85,type:"participle"},{ending:"ute",stem:"ere",confidence:.85,type:"participle"},{ending:"o",stem:"ere",confidence:.72,type:"present"},{ending:"i",stem:"ere",confidence:.72,type:"present"},{ending:"e",stem:"ere",confidence:.72,type:"present"},{ending:"iamo",stem:"ere",confidence:.85,type:"present"},{ending:"ete",stem:"ere",confidence:.85,type:"present"},{ending:"ono",stem:"ere",confidence:.82,type:"present"},{ending:"evo",stem:"ere",confidence:.88,type:"past"},{ending:"evi",stem:"ere",confidence:.88,type:"past"},{ending:"eva",stem:"ere",confidence:.88,type:"past"},{ending:"evamo",stem:"ere",confidence:.88,type:"past"},{ending:"evate",stem:"ere",confidence:.88,type:"past"},{ending:"evano",stem:"ere",confidence:.88,type:"past"},{ending:"ei",stem:"ere",confidence:.85,type:"past"},{ending:"etti",stem:"ere",confidence:.85,type:"past"},{ending:"esti",stem:"ere",confidence:.88,type:"past"},{ending:"\xE9",stem:"ere",confidence:.85,type:"past"},{ending:"ette",stem:"ere",confidence:.85,type:"past"},{ending:"emmo",stem:"ere",confidence:.88,type:"past"},{ending:"este",stem:"ere",confidence:.88,type:"past"},{ending:"erono",stem:"ere",confidence:.88,type:"past"},{ending:"ettero",stem:"ere",confidence:.88,type:"past"},{ending:"ere",stem:"ere",confidence:.92,type:"dictionary"}],Ig=[{ending:"endo",stem:"ire",confidence:.85,type:"gerund"},{ending:"ito",stem:"ire",confidence:.85,type:"participle"},{ending:"ita",stem:"ire",confidence:.85,type:"participle"},{ending:"iti",stem:"ire",confidence:.85,type:"participle"},{ending:"ite",stem:"ire",confidence:.85,type:"participle"},{ending:"o",stem:"ire",confidence:.7,type:"present"},{ending:"i",stem:"ire",confidence:.7,type:"present"},{ending:"e",stem:"ire",confidence:.7,type:"present"},{ending:"iamo",stem:"ire",confidence:.85,type:"present"},{ending:"ite",stem:"ire",confidence:.85,type:"present"},{ending:"ono",stem:"ire",confidence:.78,type:"present"},{ending:"isco",stem:"ire",confidence:.85,type:"present"},{ending:"isci",stem:"ire",confidence:.85,type:"present"},{ending:"isce",stem:"ire",confidence:.85,type:"present"},{ending:"iscono",stem:"ire",confidence:.88,type:"present"},{ending:"ivo",stem:"ire",confidence:.88,type:"past"},{ending:"ivi",stem:"ire",confidence:.88,type:"past"},{ending:"iva",stem:"ire",confidence:.88,type:"past"},{ending:"ivamo",stem:"ire",confidence:.88,type:"past"},{ending:"ivate",stem:"ire",confidence:.88,type:"past"},{ending:"ivano",stem:"ire",confidence:.88,type:"past"},{ending:"ii",stem:"ire",confidence:.85,type:"past"},{ending:"isti",stem:"ire",confidence:.88,type:"past"},{ending:"\xEC",stem:"ire",confidence:.85,type:"past"},{ending:"immo",stem:"ire",confidence:.88,type:"past"},{ending:"iste",stem:"ire",confidence:.88,type:"past"},{ending:"irono",stem:"ire",confidence:.88,type:"past"},{ending:"ire",stem:"ire",confidence:.92,type:"dictionary"}],Vg=[...Og,...Wg,...Ig].sort((n,e)=>e.ending.length-n.ending.length),Nt=class{constructor(){this.language="it"}isNormalizable(e){return e.length<3?!1:Mg(e)}normalize(e){let t=e.toLowerCase();if((t.endsWith("are")||t.endsWith("ere")||t.endsWith("ire"))&&!Al.some(i=>t.endsWith(i+"are")||t.endsWith(i+"ere")||t.endsWith(i+"ire")))return V(e);let r=this.tryReflexiveNormalization(t);if(r)return r;let a=this.tryConjugationNormalization(t);return a||V(e)}tryReflexiveNormalization(e){for(let t of Al)if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir")){let i=r+"e";return x(i,.88,{removedSuffixes:[t],conjugationType:"reflexive"})}if(r.endsWith("are")||r.endsWith("ere")||r.endsWith("ire"))return x(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});let a=this.tryConjugationNormalization(r);if(a&&a.stem!==r)return x(a.stem,a.confidence*.95,{removedSuffixes:[t,...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(let t of Vg)if(e.endsWith(t.ending)){let r=e.slice(0,-t.ending.length);if(r.length<2)continue;let a=r+t.stem;return x(a,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}},RS=new Nt});var Ml={};N(Ml,{italianProfile:()=>Pa});var Pa,La=z(()=>{"use strict";Pa={code:"it",name:"Italian",nativeName:"Italiano",regions:["western"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"io",it:"esso",you:"tu",result:"risultato",event:"evento",target:"obiettivo",body:"corpo"},possessive:{marker:"di",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mio",it:"suo",you:"tuo"},keywords:{mio:"me",mia:"me",miei:"me",mie:"me",tuo:"you",tua:"you",tuoi:"you",tue:"you",suo:"it",sua:"it",suoi:"it",sue:"it"}},roleMarkers:{destination:{primary:"in",alternatives:["su","a"],position:"before"},source:{primary:"da",alternatives:["di"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"commutare",alternatives:["alternare"],normalized:"toggle"},add:{primary:"aggiungere",alternatives:["aggiungi"],normalized:"add"},remove:{primary:"rimuovere",alternatives:["eliminare","togliere"],normalized:"remove"},put:{primary:"mettere",alternatives:["inserire"],normalized:"put"},append:{primary:"accodare",normalized:"append"},prepend:{primary:"anteporre",normalized:"prepend"},take:{primary:"prendere",normalized:"take"},make:{primary:"fare",alternatives:["creare"],normalized:"make"},clone:{primary:"clonare",normalized:"clone"},swap:{primary:"scambiare",normalized:"swap"},morph:{primary:"trasformare",alternatives:["convertire"],normalized:"morph"},set:{primary:"impostare",alternatives:["definire"],normalized:"set"},get:{primary:"ottenere",normalized:"get"},increment:{primary:"incrementare",alternatives:["aumentare"],normalized:"increment"},decrement:{primary:"decrementare",alternatives:["diminuire"],normalized:"decrement"},log:{primary:"registrare",normalized:"log"},show:{primary:"mostrare",alternatives:["visualizzare"],normalized:"show"},hide:{primary:"nascondere",normalized:"hide"},transition:{primary:"transizione",alternatives:["animare"],normalized:"transition"},on:{primary:"su",alternatives:["al"],normalized:"on"},trigger:{primary:"scatenare",alternatives:["attivare"],normalized:"trigger"},send:{primary:"inviare",normalized:"send"},focus:{primary:"focalizzare",normalized:"focus"},blur:{primary:"sfuocare",normalized:"blur"},empty:{primary:"svuotare",alternatives:["vuoto"],normalized:"empty"},open:{primary:"aprire",normalized:"open"},close:{primary:"chiudere",normalized:"close"},select:{primary:"selezionare",normalized:"select"},clear:{primary:"cancellare",normalized:"clear"},reset:{primary:"reimpostare",normalized:"reset"},breakpoint:{primary:"punto-interruzione",normalized:"breakpoint"},go:{primary:"andare",alternatives:["navigare","vai"],normalized:"go"},scroll:{primary:"scorrere",alternatives:["scroll"],normalized:"scroll"},push:{primary:"spingere",alternatives:["push"],normalized:"push"},replace:{primary:"sostituire",normalized:"replace"},process:{primary:"elaborare",alternatives:["processare"],normalized:"process"},wait:{primary:"aspettare",alternatives:["attendere"],normalized:"wait"},fetch:{primary:"recuperare",normalized:"fetch"},settle:{primary:"stabilizzare",normalized:"settle"},if:{primary:"se",normalized:"if"},unless:{primary:"salvo",normalized:"unless"},when:{primary:"quando",normalized:"when"},where:{primary:"dove",normalized:"where"},else:{primary:"altrimenti",normalized:"else"},repeat:{primary:"ripetere",normalized:"repeat"},for:{primary:"per",normalized:"for"},while:{primary:"mentre",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuare",normalized:"continue"},halt:{primary:"fermare",normalized:"halt"},throw:{primary:"lanciare",normalized:"throw"},call:{primary:"chiamare",normalized:"call"},return:{primary:"ritornare",normalized:"return"},then:{primary:"allora",alternatives:["poi","quindi"],normalized:"then"},and:{primary:"e",alternatives:["anche"],normalized:"and"},end:{primary:"fine",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asincrono",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"predefinito",normalized:"default"},init:{primary:"inizializzare",alternatives:["inizia"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"installare",normalized:"install"},measure:{primary:"misurare",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"interrompere",normalized:"break"},copy:{primary:"copiare",normalized:"copy"},exit:{primary:"uscire",normalized:"exit"},pick:{primary:"scegliere",normalized:"pick"},render:{primary:"renderizzare",normalized:"render"},into:{primary:"in",alternatives:["dentro"],normalized:"into"},before:{primary:"prima",normalized:"before"},after:{primary:"dopo",normalized:"after"},click:{primary:"clic",alternatives:["clicca"],normalized:"click"},resize:{primary:"ridimensiona",normalized:"resize"},hover:{primary:"passaggio",alternatives:["sorvolo"],normalized:"hover"},submit:{primary:"invio",alternatives:["sottomettere"],normalized:"submit"},input:{primary:"inserimento",alternatives:["input"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiamento"],normalized:"change"},load:{primary:"carica",alternatives:["caricamento"],normalized:"load"},until:{primary:"fino",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"da",alternatives:["di"],normalized:"from"},connect:{primary:"connettere",alternatives:["connettersi","collegare"],normalized:"connect"},stream:{primary:"trasmettere",alternatives:["flusso","streaming"],normalized:"stream"},live:{primary:"in-diretta",alternatives:["diretta","dal-vivo","vivo"],normalized:"live"},socket:{primary:"socket",alternatives:["presa","websocket"],normalized:"socket"},bind:{primary:"vincolare",alternatives:["legare","bind"],normalized:"bind"},intercept:{primary:"intercettare",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"lavoratore",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sorgente-eventi"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"su",alternatives:["al"],normalized:"on"},sourceMarker:{primary:"da",alternatives:["di"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"al",alternatives:["allo","alla","su"],position:"before"},temporalMarkers:["quando","al"]}}});function _g(n){return{isLetter:r=>n.test(r),isIdentifierChar:r=>/[0-9]/.test(r)||n.test(r)}}function Ol(){return[new Ca("italian-keyword",/[a-zA-ZàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚ]/,qg)]}var Ca,qg,Wl=z(()=>{"use strict";Ca=class{constructor(e,t,r){this.name=e;let a=_g(t);this.isLetter=a.isLetter,this.isIdentifierChar=a.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){return this.isLetter(e[t])}extract(e,t){if(!this.context)throw new Error(`${this.name}: context not set`);let r=t,a="";for(;r<e.length&&this.isIdentifierChar(e[r]);)a+=e[r++];if(!a)return null;let i=a.toLowerCase(),o=this.prepositions.has(i),s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0,c;if(!s&&this.context.normalizer){let p=this.context.normalizer.normalize(a);if(p.stem!==a&&p.confidence>=.7){let m=this.context.lookupKeyword(p.stem);m&&(c=m.normalized)}}return{value:a,length:r-t,metadata:{normalized:l||c,isPreposition:o}}}},qg=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"])});var Il={};N(Il,{ItalianTokenizer:()=>Vr,italianTokenizer:()=>Bg});var Kg,$g,Vr,Bg,Vl=z(()=>{"use strict";D();jl();La();G();X();Wl();Kg=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"]),$g=[{native:"vero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nullo",normalized:"null"},{native:"indefinito",normalized:"undefined"},{native:"primo",normalized:"first"},{native:"prima",normalized:"first"},{native:"ultimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"prossimo",normalized:"next"},{native:"successivo",normalized:"next"},{native:"precedente",normalized:"previous"},{native:"vicino",normalized:"closest"},{native:"padre",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"fare clic",normalized:"click"},{native:"input",normalized:"input"},{native:"cambio",normalized:"change"},{native:"invio",normalized:"submit"},{native:"tasto gi\xF9",normalized:"keydown"},{native:"tasto su",normalized:"keyup"},{native:"mouse sopra",normalized:"mouseover"},{native:"mouse fuori",normalized:"mouseout"},{native:"fuoco",normalized:"focus"},{native:"sfuocatura",normalized:"blur"},{native:"caricamento",normalized:"load"},{native:"scorrimento",normalized:"scroll"},{native:"io",normalized:"me"},{native:"me",normalized:"me"},{native:"destinazione",normalized:"target"},{native:"secondo",normalized:"s"},{native:"secondi",normalized:"s"},{native:"millisecondo",normalized:"ms"},{native:"millisecondi",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minuti",normalized:"m"},{native:"ora",normalized:"h"},{native:"ore",normalized:"h"},{native:"fino a",normalized:"until"},{native:"prima di",normalized:"before"},{native:"dopo di",normalized:"after"},{native:"dentro di",normalized:"into"},{native:"fuori di",normalized:"out"},{native:"aggiungere",normalized:"add"},{native:"aggiungi",normalized:"add"},{native:"rimuovi",normalized:"remove"},{native:"elimina",normalized:"remove"},{native:"togli",normalized:"remove"},{native:"metti",normalized:"put"},{native:"inserisci",normalized:"put"},{native:"prendi",normalized:"take"},{native:"fai",normalized:"make"},{native:"crea",normalized:"make"},{native:"clona",normalized:"clone"},{native:"copia",normalized:"clone"},{native:"imposta",normalized:"set"},{native:"ottieni",normalized:"get"},{native:"incrementa",normalized:"increment"},{native:"aumenta",normalized:"increment"},{native:"decrementa",normalized:"decrement"},{native:"diminuisci",normalized:"decrement"},{native:"registra",normalized:"log"},{native:"mostra",normalized:"show"},{native:"visualizza",normalized:"show"},{native:"nascondi",normalized:"hide"},{native:"anima",normalized:"transition"},{native:"scatena",normalized:"trigger"},{native:"attiva",normalized:"trigger"},{native:"invia",normalized:"send"},{native:"focalizza",normalized:"focus"},{native:"sfuoca",normalized:"blur"},{native:"vai",normalized:"go"},{native:"naviga",normalized:"go"},{native:"aspetta",normalized:"wait"},{native:"attendi",normalized:"wait"},{native:"recupera",normalized:"fetch"},{native:"stabilizza",normalized:"settle"},{native:"ripeti",normalized:"repeat"},{native:"continua",normalized:"continue"},{native:"ferma",normalized:"halt"},{native:"lancia",normalized:"throw"},{native:"chiama",normalized:"call"},{native:"ritorna",normalized:"return"},{native:"inizializza",normalized:"init"},{native:"installa",normalized:"install"},{native:"misura",normalized:"measure"},{native:"e",normalized:"and"},{native:"o",normalized:"or"},{native:"non",normalized:"not"},{native:"\xE8",normalized:"is"},{native:"esiste",normalized:"exists"},{native:"vuoto",normalized:"empty"},{native:"toggle",normalized:"toggle"},{native:"di",normalized:"tell"}],Vr=class extends R{constructor(){super();this.language="it";this.direction="ltr";this.initializeKeywordsFromProfile(Pa,$g),this.setNormalizer(new Nt),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Ol()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Kg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Bg=new Vr});var _l={};N(_l,{malayProfile:()=>Ra});var Ra,Na=z(()=>{"use strict";Ra={code:"ms",name:"Malay",nativeName:"Melayu",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"ia",you:"kamu",result:"hasil",event:"peristiwa",target:"sasaran",body:"badan"},possessive:{marker:"",markerPosition:"after-object",keywords:{saya:"me",saya_punya:"me",aku:"me",awak:"you",kamu:"you",anda:"you",dia:"it",ia:"it",nya:"it","-ku":"me","-mu":"you","-nya":"it"}},roleMarkers:{destination:{primary:"ke",alternatives:["pada"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"togol",alternatives:["tukar"],normalized:"toggle"},add:{primary:"tambah",normalized:"add"},remove:{primary:"buang",alternatives:["padam"],normalized:"remove"},put:{primary:"letak",alternatives:["letakkan"],normalized:"put"},append:{primary:"tambah_hujung",normalized:"append"},prepend:{primary:"tambah_mula",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["cipta"],normalized:"make"},clone:{primary:"klon",alternatives:[],normalized:"clone"},swap:{primary:"tukar_tempat",normalized:"swap"},morph:{primary:"ubah_bentuk",normalized:"morph"},set:{primary:"tetapkan",alternatives:["setkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:[],normalized:"get"},increment:{primary:"tambah_satu",normalized:"increment"},decrement:{primary:"kurang_satu",normalized:"decrement"},log:{primary:"catat",alternatives:["log"],normalized:"log"},show:{primary:"tunjuk",alternatives:[],normalized:"show"},hide:{primary:"sembunyi",alternatives:["sorok"],normalized:"hide"},transition:{primary:"peralihan",normalized:"transition"},on:{primary:"apabila",alternatives:["ketika"],normalized:"on"},trigger:{primary:"cetuskan",normalized:"trigger"},send:{primary:"hantar",normalized:"send"},focus:{primary:"fokus",normalized:"focus"},blur:{primary:"kabur",normalized:"blur"},empty:{primary:"kosongkan",alternatives:["kosong"],normalized:"empty"},open:{primary:"buka",normalized:"open"},close:{primary:"tutup",normalized:"close"},select:{primary:"tandai",normalized:"select"},clear:{primary:"bersihkan",normalized:"clear"},reset:{primary:"set-semula",alternatives:["reset"],normalized:"reset"},breakpoint:{primary:"titik-henti",normalized:"breakpoint"},go:{primary:"pergi",alternatives:["pindah"],normalized:"go"},scroll:{primary:"tatal",alternatives:["skrol","scroll"],normalized:"scroll"},push:{primary:"tolak",alternatives:["push"],normalized:"push"},replace:{primary:"ganti_url",alternatives:["gantikan_url"],normalized:"replace"},process:{primary:"proses",normalized:"process"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"ambil_dari",alternatives:["muat"],normalized:"fetch"},settle:{primary:"selesai",normalized:"settle"},if:{primary:"jika",alternatives:["kalau"],normalized:"if"},unless:{primary:"kecuali",normalized:"unless"},when:{primary:"bila",normalized:"when"},where:{primary:"di_mana",normalized:"where"},else:{primary:"kalau_tidak",alternatives:["jika_tidak"],normalized:"else"},repeat:{primary:"ulang",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selagi",alternatives:["semasa"],normalized:"while"},forever:{primary:"selamanya",normalized:"forever",alternatives:["forever"]},continue:{primary:"teruskan",normalized:"continue"},halt:{primary:"henti",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"pulang",alternatives:["kembali"],normalized:"return"},then:{primary:"kemudian",alternatives:["lepas_itu"],normalized:"then"},and:{primary:"dan",normalized:"and"},end:{primary:"tamat",alternatives:["habis"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"tak_segerak",normalized:"async"},tell:{primary:"beritahu",normalized:"tell"},default:{primary:"lalai",normalized:"default"},init:{primary:"mula",alternatives:["mulakan"],normalized:"init"},behavior:{primary:"kelakuan",normalized:"behavior"},install:{primary:"pasang",normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"pecah",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"papar",normalized:"render"},into:{primary:"ke_dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"selepas",alternatives:["lepas"],normalized:"after"},until:{primary:"sehingga",alternatives:["sampai"],normalized:"until"},event:{primary:"peristiwa",normalized:"event"},from:{primary:"dari",normalized:"from"},connect:{primary:"sambung",alternatives:["hubungkan"],normalized:"connect"},stream:{primary:"strim",alternatives:["penstriman","aliran"],normalized:"stream"},live:{primary:"langsung",alternatives:["siaran-langsung"],normalized:"live"},socket:{primary:"soket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"ikat",alternatives:["kaitkan","bind"],normalized:"bind"},intercept:{primary:"pintas",alternatives:["cegat","intercept"],normalized:"intercept"},worker:{primary:"pekerja",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sumber_peristiwa"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"apabila",alternatives:["ketika"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},eventMarker:{primary:"apabila",alternatives:["ketika"],position:"before"}}}});var ql={};N(ql,{MalayTokenizer:()=>_r,malayTokenizer:()=>Fg});var Dg,_r,Fg,Kl=z(()=>{"use strict";D();Na();G();X();zo();Dg=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"kosong",normalized:"null"},{native:"tak_tentu",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"seterusnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"berubah",normalized:"change"},{native:"ubah",normalized:"change"},{native:"hantar",normalized:"submit"},{native:"input",normalized:"input"},{native:"masuk",normalized:"input"},{native:"muat",normalized:"load"},{native:"tatal",normalized:"scroll"},{native:"hover",normalized:"hover"}],_r=class extends R{constructor(){super();this.language="ms";this.direction="ltr";this.initializeKeywordsFromProfile(Ra,Dg),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(ho()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith(".")||t.startsWith("#")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith(":")?"identifier":t.startsWith('"')||t.startsWith("'")||/^-?\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Fg=new _r});var $l={};N($l,{polishProfile:()=>Aa});var Aa,ja=z(()=>{"use strict";Aa={code:"pl",name:"Polish",nativeName:"Polski",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"start",subjectDrop:!0,suffixes:["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107"]},references:{me:"ja",it:"to",you:"ty",result:"wynik",event:"zdarzenie",target:"cel",body:"body"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"m\xF3j",it:"jego",you:"tw\xF3j"},keywords:{m\u00F3j:"me",moja:"me",moje:"me",tw\u00F3j:"you",twoja:"you",twoje:"you",jego:"it",jej:"it"}},roleMarkers:{destination:{primary:"do",alternatives:["w","na"],position:"before"},source:{primary:"z",alternatives:["od","ze"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"z",alternatives:["ze"],position:"before"}},keywords:{toggle:{primary:"prze\u0142\u0105cz",alternatives:["przelacz"],normalized:"toggle",form:"imperative"},add:{primary:"dodaj",normalized:"add",form:"imperative"},remove:{primary:"usu\u0144",alternatives:["usun","wyczy\u015B\u0107","wyczysc"],normalized:"remove",form:"imperative"},put:{primary:"umie\u015B\u0107",alternatives:["umiesc","wstaw"],normalized:"put",form:"imperative"},append:{primary:"do\u0142\u0105cz",alternatives:["dolacz"],normalized:"append",form:"imperative"},prepend:{primary:"poprzed\u017A",alternatives:["poprzedz"],normalized:"prepend",form:"imperative"},take:{primary:"we\u017A",alternatives:["wez"],normalized:"take",form:"imperative"},make:{primary:"utw\xF3rz",alternatives:["utworz","stw\xF3rz","stworz"],normalized:"make",form:"imperative"},clone:{primary:"sklonuj",normalized:"clone",form:"imperative"},swap:{primary:"zamie\u0144",alternatives:["zamien"],normalized:"swap",form:"imperative"},morph:{primary:"przekszta\u0142\u0107",alternatives:["przeksztalc"],normalized:"morph",form:"imperative"},set:{primary:"ustaw",alternatives:["okre\u015Bl","okresl"],normalized:"set",form:"imperative"},get:{primary:"uzyskaj",normalized:"get",form:"imperative"},increment:{primary:"zwi\u0119ksz",alternatives:["zwieksz"],normalized:"increment",form:"imperative"},decrement:{primary:"zmniejsz",normalized:"decrement",form:"imperative"},log:{primary:"loguj",alternatives:["wypisz"],normalized:"log",form:"imperative"},show:{primary:"poka\u017C",alternatives:["pokaz","wy\u015Bwietl","wyswietl"],normalized:"show",form:"imperative"},hide:{primary:"ukryj",alternatives:["schowaj"],normalized:"hide",form:"imperative"},transition:{primary:"animuj",alternatives:["przej\u015Bcie","przejscie"],normalized:"transition",form:"imperative"},on:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},trigger:{primary:"wyzw\xF3l",alternatives:["wyzwol"],normalized:"trigger",form:"imperative"},send:{primary:"wy\u015Blij",alternatives:["wyslij"],normalized:"send",form:"imperative"},focus:{primary:"skup",alternatives:["skupienie"],normalized:"focus",form:"imperative"},blur:{primary:"rozmyj",alternatives:["odskup"],normalized:"blur",form:"imperative"},empty:{primary:"opr\xF3\u017Cnij",alternatives:["oproznij","pusty"],normalized:"empty"},open:{primary:"otw\xF3rz",alternatives:["otworz"],normalized:"open"},close:{primary:"zamknij",normalized:"close"},select:{primary:"zaznacz",normalized:"select"},clear:{primary:"zeruj",normalized:"clear"},reset:{primary:"zresetuj",normalized:"reset"},breakpoint:{primary:"punkt-przerwania",normalized:"breakpoint"},go:{primary:"id\u017A",alternatives:["idz","przejd\u017A","przejdz","nawiguj"],normalized:"go",form:"imperative"},scroll:{primary:"przewi\u0144",alternatives:["przewin"],normalized:"scroll",form:"imperative"},push:{primary:"wepchnij",alternatives:["push"],normalized:"push",form:"imperative"},replace:{primary:"nadpisz",alternatives:["zamie\u0144_url","zamien_url"],normalized:"replace",form:"imperative"},process:{primary:"przetw\xF3rz",alternatives:["przetworz"],normalized:"process",form:"imperative"},wait:{primary:"czekaj",alternatives:["poczekaj"],normalized:"wait",form:"imperative"},fetch:{primary:"pobierz",alternatives:["za\u0142aduj","zaladuj"],normalized:"fetch",form:"imperative"},settle:{primary:"ustabilizuj",normalized:"settle",form:"imperative"},if:{primary:"je\u015Bli",alternatives:["jesli","je\u017Celi","jezeli"],normalized:"if"},unless:{primary:"chyba",normalized:"unless"},when:{primary:"kiedy",normalized:"when"},where:{primary:"gdzie",normalized:"where"},else:{primary:"inaczej",alternatives:["wpp"],normalized:"else"},repeat:{primary:"powt\xF3rz",alternatives:["powtorz"],normalized:"repeat",form:"imperative"},for:{primary:"dla",alternatives:["ka\u017Cdy","kazdy"],normalized:"for"},while:{primary:"dop\xF3ki",alternatives:["dopoki","podczas"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"kontynuuj",alternatives:["dalej"],normalized:"continue",form:"imperative"},halt:{primary:"zatrzymaj",alternatives:["stop"],normalized:"halt",form:"imperative"},throw:{primary:"rzu\u0107",alternatives:["rzuc"],normalized:"throw",form:"imperative"},call:{primary:"wywo\u0142aj",alternatives:["wywolaj"],normalized:"call",form:"imperative"},return:{primary:"zwr\xF3\u0107",alternatives:["zwroc"],normalized:"return",form:"imperative"},then:{primary:"wtedy",alternatives:["potem","nast\u0119pnie","nastepnie"],normalized:"then"},and:{primary:"i",alternatives:["oraz"],normalized:"and"},end:{primary:"koniec",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["asynchronicznie"],normalized:"async"},tell:{primary:"powiedz",normalized:"tell",form:"imperative"},default:{primary:"domy\u015Blnie",alternatives:["domyslnie"],normalized:"default"},init:{primary:"inicjuj",normalized:"init",form:"imperative"},behavior:{primary:"zachowanie",normalized:"behavior"},install:{primary:"zainstaluj",normalized:"install",form:"imperative"},measure:{primary:"zmierz",normalized:"measure",form:"imperative"},beep:{primary:"sygna\u0142",normalized:"beep"},break:{primary:"przerwij",normalized:"break"},copy:{primary:"kopiuj",normalized:"copy"},exit:{primary:"wyjd\u017A",normalized:"exit"},pick:{primary:"wybierz",normalized:"pick"},render:{primary:"renderuj",normalized:"render"},into:{primary:"do",alternatives:["w"],normalized:"into"},before:{primary:"przed",normalized:"before"},after:{primary:"po",normalized:"after"},click:{primary:"klikni\u0119ciu",alternatives:["klikniecie","klik"],normalized:"click"},resize:{primary:"zmie\u0144rozmiar",normalized:"resize"},hover:{primary:"najechaniu",alternatives:["hover"],normalized:"hover"},submit:{primary:"wys\u0142aniu",alternatives:["wyslaniu","submit"],normalized:"submit"},input:{primary:"wprowadzeniu",alternatives:["input","wej\u015Bcie"],normalized:"input"},change:{primary:"zmianie",alternatives:["zmiana"],normalized:"change"},until:{primary:"a\u017C",alternatives:["az"],normalized:"until"},event:{primary:"zdarzenie",normalized:"event"},from:{primary:"z",alternatives:["od","ze"],normalized:"from"},connect:{primary:"po\u0142\u0105cz",alternatives:["pod\u0142\u0105cz"],normalized:"connect"},stream:{primary:"transmituj",alternatives:["strumie\u0144","streamuj"],normalized:"stream"},live:{primary:"na-\u017Cywo",alternatives:["na-bie\u017C\u0105co","live","\u017Cywy"],normalized:"live"},socket:{primary:"gniazdo",alternatives:["socket","websocket"],normalized:"socket"},bind:{primary:"powi\u0105\u017C",alternatives:["zwi\u0105za\u0107","bind"],normalized:"bind"},intercept:{primary:"przechwy\u0107",alternatives:["przechwytuj","intercept"],normalized:"intercept"},worker:{primary:"pracownik",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u017Ar\xF3d\u0142o-zdarze\u0144"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},sourceMarker:{primary:"na",alternatives:["w","przy"],position:"before"},conditionalKeyword:{primary:"kiedy",alternatives:["gdy","je\u015Bli"]},eventMarker:{primary:"przy",alternatives:["na","gdy"],position:"before"},temporalMarkers:["kiedy","gdy","przy"]}}});var Bl,At,FS,Dl=z(()=>{"use strict";ae();Bl=new Map([["prze\u0142\u0105cz","prze\u0142\u0105cza\u0107"],["przelacz","przelaczac"],["dodaj","dodawa\u0107"],["usu\u0144","usuwa\u0107"],["usun","usuwac"],["umie\u015B\u0107","umieszcza\u0107"],["umiesc","umieszczac"],["wstaw","wstawia\u0107"],["ustaw","ustawia\u0107"],["pobierz","pobiera\u0107"],["we\u017A","bra\u0107"],["wez","brac"],["zwi\u0119ksz","zwi\u0119ksza\u0107"],["zwieksz","zwiekszac"],["zmniejsz","zmniejsza\u0107"],["poka\u017C","pokazywa\u0107"],["pokaz","pokazywac"],["ukryj","ukrywa\u0107"],["schowaj","schowywa\u0107"],["czekaj","czeka\u0107"],["poczekaj","poczeka\u0107"],["id\u017A","i\u015B\u0107"],["idz","isc"],["przejd\u017A","przej\u015B\u0107"],["przejdz","przejsc"],["wywo\u0142aj","wywo\u0142ywa\u0107"],["wywolaj","wywolywac"],["wy\u015Blij","wysy\u0142a\u0107"],["wyslij","wysylac"],["loguj","logowa\u0107"],["wypisz","wypisywa\u0107"],["sklonuj","sklonowa\u0107"],["kopiuj","kopiowa\u0107"],["zamie\u0144","zamienia\u0107"],["zamien","zamieniac"],["utw\xF3rz","tworzy\u0107"],["utworz","tworzyc"],["stw\xF3rz","stwarza\u0107"],["stworz","stwarzac"],["skup","skupia\u0107"],["rozmyj","rozmywa\u0107"],["nawiguj","nawigowa\u0107"],["za\u0142aduj","\u0142adowa\u0107"],["zaladuj","ladowac"],["powt\xF3rz","powtarza\u0107"],["powtorz","powtarzac"],["kontynuuj","kontynuowa\u0107"],["zatrzymaj","zatrzymywa\u0107"],["przerwij","przerywa\u0107"],["rzu\u0107","rzuca\u0107"],["rzuc","rzucac"],["zwr\xF3\u0107","zwraca\u0107"],["zwroc","zwracac"],["inicjuj","inicjowa\u0107"],["zainstaluj","instalowa\u0107"],["zmierz","mierzy\u0107"]]),At=class{constructor(){this.language="pl"}isNormalizable(e){return e.length<3?!1:/[a-zA-ZąęćńóśźżłĄĘĆŃÓŚŹŻŁ]/.test(e)}normalize(e){let t=e.toLowerCase();if(this.isInfinitive(t))return V(t);let r=this.tryImperativeNormalization(t);if(r)return r;let a=this.tryPastTenseNormalization(t);if(a)return a;let i=this.tryPresentTenseNormalization(t);return i||V(t)}isInfinitive(e){return["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107","iwa\u0107","ywa\u0107"].some(r=>e.endsWith(r))}tryImperativeNormalization(e){return Bl.has(e)?x(Bl.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):e.endsWith("aj")?x(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["aj"],conjugationType:"imperative"}):e.endsWith("uj")?x(e.slice(0,-2)+"owa\u0107",.8,{removedSuffixes:["uj"],conjugationType:"imperative"}):e.endsWith("ij")?x(e.slice(0,-2)+"i\u0107",.75,{removedSuffixes:["ij"],conjugationType:"imperative"}):null}tryPresentTenseNormalization(e){return e.endsWith("uj\u0119")||e.endsWith("uje")?x(e.slice(0,-3)+"owa\u0107",.85,{removedSuffixes:["uj\u0119"],conjugationType:"present"}):e.endsWith("am")&&e.length>3?x(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["am"],conjugationType:"present"}):e.endsWith("em")&&e.length>3?x(e.slice(0,-2)+"e\u0107",.75,{removedSuffixes:["em"],conjugationType:"present"}):e.endsWith("\u0119")&&e.length>2?x(e.slice(0,-1)+"a\u0107",.7,{removedSuffixes:["\u0119"],conjugationType:"present"}):null}tryPastTenseNormalization(e){if(e.endsWith("a\u0142em")||e.endsWith("a\u0142am"))return x(e.slice(0,-4)+"a\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("a\u0142")||e.endsWith("a\u0142a")){let t=e.endsWith("a\u0142a")?3:2;return x(e.slice(0,-t)+"a\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}if(e.endsWith("i\u0142em")||e.endsWith("i\u0142am")||e.endsWith("ilem")||e.endsWith("ilam"))return x(e.slice(0,-4)+"i\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("i\u0142")||e.endsWith("i\u0142a")||e.endsWith("il")||e.endsWith("ila")){let t=e.endsWith("i\u0142a")||e.endsWith("ila")?3:2;return x(e.slice(0,-t)+"i\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}return null}},FS=new At});var Fl={};N(Fl,{PolishTokenizer:()=>qr,polishTokenizer:()=>Gg});var Hg,Ug,qr,Gg,Hl=z(()=>{"use strict";D();ja();Dl();G();X();bo();Hg=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015Br\xF3d","wsrod","obok","poza","wok\xF3\u0142","wokol","przeciw","ku"]),Ug=[{native:"prawda",normalized:"true"},{native:"fa\u0142sz",normalized:"false"},{native:"falsz",normalized:"false"},{native:"null",normalized:"null"},{native:"nieokre\u015Blony",normalized:"undefined"},{native:"nieokreslony",normalized:"undefined"},{native:"pierwszy",normalized:"first"},{native:"pierwsza",normalized:"first"},{native:"pierwsze",normalized:"first"},{native:"ostatni",normalized:"last"},{native:"ostatnia",normalized:"last"},{native:"ostatnie",normalized:"last"},{native:"nast\u0119pny",normalized:"next"},{native:"nastepny",normalized:"next"},{native:"poprzedni",normalized:"previous"},{native:"najbli\u017Cszy",normalized:"closest"},{native:"najblizszy",normalized:"closest"},{native:"rodzic",normalized:"parent"},{native:"klikni\u0119cie",normalized:"click"},{native:"klikniecie",normalized:"click"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"zmiana",normalized:"change"},{native:"wys\u0142anie",normalized:"submit"},{native:"wyslanie",normalized:"submit"},{native:"naci\u015Bni\u0119cie",normalized:"keydown"},{native:"nacisniecie",normalized:"keydown"},{native:"klawisz",normalized:"keydown"},{native:"najechanie",normalized:"mouseover"},{native:"zjechanie",normalized:"mouseout"},{native:"rozmycie",normalized:"blur"},{native:"za\u0142adowanie",normalized:"load"},{native:"zaladowanie",normalized:"load"},{native:"przewini\u0119cie",normalized:"scroll"},{native:"przewiniecie",normalized:"scroll"},{native:"input",normalized:"input"},{native:"m\xF3j",normalized:"my"},{native:"moj",normalized:"my"},{native:"sekunda",normalized:"s"},{native:"sekundy",normalized:"s"},{native:"sekund",normalized:"s"},{native:"milisekunda",normalized:"ms"},{native:"milisekundy",normalized:"ms"},{native:"milisekund",normalized:"ms"},{native:"minuta",normalized:"m"},{native:"minuty",normalized:"m"},{native:"minut",normalized:"m"},{native:"godzina",normalized:"h"},{native:"godziny",normalized:"h"},{native:"godzin",normalized:"h"},{native:"po\u0142\xF3\u017C",normalized:"put"},{native:"poloz",normalized:"put"},{native:"lub",normalized:"or"},{native:"nie",normalized:"not"},{native:"jest",normalized:"is"},{native:"istnieje",normalized:"exists"},{native:"pusty",normalized:"empty"},{native:"puste",normalized:"empty"}],qr=class extends R{constructor(){super();this.language="pl";this.direction="ltr";this.initializeKeywordsFromProfile(Aa,Ug),this.setNormalizer(new At),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(wo()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return Hg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Gg=new qr});function Xg(n){return/[а-яА-ЯёЁ]/.test(n)}function Zg(n){for(let e of n)if(Xg(e))return!0;return!1}var Ul,jt,eT,Gl=z(()=>{"use strict";ae();Ul=new Map([["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438","\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C"],["\u0434\u043E\u0431\u0430\u0432\u044C","\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C"],["\u0443\u0434\u0430\u043B\u0438","\u0443\u0434\u0430\u043B\u0438\u0442\u044C"],["\u0443\u0431\u0435\u0440\u0438","\u0443\u0431\u0440\u0430\u0442\u044C"],["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C"],["\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C"],["\u0432\u0441\u0442\u0430\u0432\u044C","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C"],["\u0432\u043E\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u044C"],["\u0441\u043E\u0437\u0434\u0430\u0439","\u0441\u043E\u0437\u0434\u0430\u0442\u044C"],["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439","\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u043F\u043E\u043C\u0435\u043D\u044F\u0439","\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u044C"],["\u043F\u043E\u043B\u0443\u0447\u0438","\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C"],["\u0443\u0432\u0435\u043B\u0438\u0447\u044C","\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C"],["\u0443\u043C\u0435\u043D\u044C\u0448\u0438","\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0441\u043A\u0440\u043E\u0439","\u0441\u043A\u0440\u044B\u0442\u044C"],["\u0441\u043F\u0440\u044F\u0447\u044C","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C"],["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439","\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0432\u044B\u0437\u043E\u0432\u0438","\u0432\u044B\u0437\u0432\u0430\u0442\u044C"],["\u043E\u0442\u043F\u0440\u0430\u0432\u044C","\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0440\u0430\u0437\u043C\u043E\u0439","\u0440\u0430\u0437\u043C\u044B\u0442\u044C"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0438\u0434\u0438","\u0438\u0434\u0442\u0438"],["\u0436\u0434\u0438","\u0436\u0434\u0430\u0442\u044C"],["\u043F\u043E\u0434\u043E\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0430\u0442\u044C"],["\u0437\u0430\u0433\u0440\u0443\u0437\u0438","\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"],["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"],["\u0431\u0440\u043E\u0441\u044C","\u0431\u0440\u043E\u0441\u0438\u0442\u044C"],["\u0432\u0435\u0440\u043D\u0438","\u0432\u0435\u0440\u043D\u0443\u0442\u044C"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u044C"],["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439","\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C"],["\u0438\u0437\u043C\u0435\u0440\u044C","\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C"]]),jt=class{constructor(){this.language="ru"}isNormalizable(e){return e.length<3?!1:Zg(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("\u0441\u044F")||t.endsWith("\u0441\u044C")){let s=this.tryReflexiveNormalization(t);if(s)return s}if(t.endsWith("\u0442\u044C")||t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u044C"))return V(e);let r=this.tryImperativeLookup(t);if(r)return r;let a=this.tryPastTenseNormalization(t);if(a)return a;let i=this.tryPresentTenseNormalization(t);if(i)return i;let o=this.tryGenericImperativeNormalization(t);return o||V(e)}tryReflexiveNormalization(e){let t=(e.endsWith("\u0441\u044F"),2),r=e.slice(0,-t);if(e.endsWith("\u0442\u044C\u0441\u044F")||e.endsWith("\u0442\u0438\u0441\u044C")||e.endsWith("\u0447\u044C\u0441\u044F"))return V(e);let a=this.normalizeNonReflexive(r);if(a.confidence<1){let i=a.stem.endsWith("\u0442\u044C")?a.stem.slice(0,-2)+"\u0442\u044C\u0441\u044F":a.stem+"\u0441\u044F";return x(i,a.confidence*.95,{removedSuffixes:["\u0441\u044F",...a.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u044C")||e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u044C"))return V(e);let t=this.tryImperativeLookup(e);if(t)return t;let r=this.tryPastTenseNormalization(e);if(r)return r;let a=this.tryPresentTenseNormalization(e);if(a)return a;let i=this.tryGenericImperativeNormalization(e);return i||V(e)}tryImperativeLookup(e){return Ul.has(e)?x(Ul.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?x(e.slice(0,-3)+"\u0442\u044C",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0438\u0442\u0435")&&e.length>5?x(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?x(e.slice(0,-1)+"\u0442\u044C",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?x(e+"\u0442\u044C",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u044C"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0435\u043B\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0435\u0442\u044C",.82,{removedSuffixes:["\u0435\u043B\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u0431\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u0431\u043E"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u044C",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u043B")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.82,{removedSuffixes:["\u0430\u043B"],conjugationType:"past"}):e.endsWith("\u0438\u043B")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.82,{removedSuffixes:["\u0438\u043B"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u044C",.8,{removedSuffixes:["\u0438\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u0442"],conjugationType:"present"}):e.endsWith("\u0438\u043C")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u0438\u043C"],conjugationType:"present"}):e.endsWith("\u044F\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u044C",.78,{removedSuffixes:["\u044F\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u0448\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u0435\u0448\u044C"],conjugationType:"present"}):e.endsWith("\u0435\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u043C")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0435\u043C"],conjugationType:"present"}):e.endsWith("\u044E\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.75,{removedSuffixes:["\u044E\u0442"],conjugationType:"present"}):e.endsWith("\u0443\u0442")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u044C",.72,{removedSuffixes:["\u0443\u0442"],conjugationType:"present"}):null}},eT=new jt});var Xl={};N(Xl,{russianProfile:()=>Ma});var Ma,Oa=z(()=>{"use strict";Ma={code:"ru",name:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u044C","\u0442\u044C\u0441\u044F","\u0438\u0442\u044C","\u0438\u0442\u044C\u0441\u044F","\u0430\u0442\u044C","\u0430\u0442\u044C\u0441\u044F","\u0435\u0442\u044C","\u0435\u0442\u044C\u0441\u044F"]},references:{me:"\u044F",it:"\u044D\u0442\u043E",you:"\u0442\u044B",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",target:"\u0446\u0435\u043B\u044C",body:"\u0442\u0435\u043B\u043E"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u043E\u0439",it:"\u0435\u0433\u043E",you:"\u0442\u0432\u043E\u0439"},keywords:{\u043C\u043E\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0451:"me",\u043C\u043E\u0438:"me",\u0442\u0432\u043E\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0451:"you",\u0442\u0432\u043E\u0438:"you",\u0435\u0433\u043E:"it",\u0435\u0451:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u043A"],position:"before"},source:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0441",alternatives:["\u0441\u043E"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C",alternatives:["\u0434\u043E\u0431\u0430\u0432\u044C"],normalized:"add",form:"infinitive"},remove:{primary:"\u0443\u0434\u0430\u043B\u0438\u0442\u044C",alternatives:["\u0443\u0434\u0430\u043B\u0438","\u0443\u0431\u0440\u0430\u0442\u044C","\u0443\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043B\u043E\u0436\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u043E\u0436\u0438","\u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C","\u043F\u043E\u043C\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","\u0432\u0441\u0442\u0430\u0432\u044C"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043A\u043E\u043D\u0435\u0446",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u044C"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C_\u0432_\u043D\u0430\u0447\u0430\u043B\u043E",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u044C",alternatives:["\u0432\u043E\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u043E\u0437\u0434\u0430\u0442\u044C",alternatives:["\u0441\u043E\u0437\u0434\u0430\u0439"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u043A\u043B\u043E\u043D\u0438\u0440\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C",alternatives:["\u043F\u043E\u043C\u0435\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044C","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C",alternatives:["\u043F\u043E\u043B\u0443\u0447\u0438"],normalized:"get",form:"infinitive"},increment:{primary:"\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",alternatives:["\u0443\u0432\u0435\u043B\u0438\u0447\u044C"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",alternatives:["\u0443\u043C\u0435\u043D\u044C\u0448\u0438"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u043A\u0440\u044B\u0442\u044C",alternatives:["\u0441\u043A\u0440\u043E\u0439","\u0441\u043F\u0440\u044F\u0442\u0430\u0442\u044C","\u0441\u043F\u0440\u044F\u0447\u044C"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0438\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0430\u043D\u0438\u043C\u0438\u0440\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",normalized:"on"},trigger:{primary:"\u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C","\u0437\u0430\u043F\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u044C"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u0430\u0437\u043C\u044B\u0442\u044C",alternatives:["\u0440\u0430\u0437\u043C\u043E\u0439"],normalized:"blur",form:"infinitive"},empty:{primary:"\u043E\u043F\u0443\u0441\u0442\u043E\u0448\u0438\u0442\u044C",alternatives:["\u043F\u0443\u0441\u0442\u043E\u0439"],normalized:"empty"},open:{primary:"\u043E\u0442\u043A\u0440\u044B\u0442\u044C",normalized:"open"},close:{primary:"\u0437\u0430\u043A\u0440\u044B\u0442\u044C",normalized:"close"},select:{primary:"\u0432\u044B\u0434\u0435\u043B\u0438\u0442\u044C",normalized:"select"},clear:{primary:"\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",normalized:"clear"},reset:{primary:"\u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C",normalized:"reset"},breakpoint:{primary:"\u0442\u043E\u0447\u043A\u0430-\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0430",normalized:"breakpoint"},click:{primary:"\u043A\u043B\u0438\u043A",alternatives:["\u043A\u043B\u0438\u043A\u0435","\u043D\u0430\u0436\u0430\u0442\u0438\u0438"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0438",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0435"],normalized:"hover"},submit:{primary:"\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435",alternatives:["\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430"],normalized:"submit"},input:{primary:"\u0432\u0432\u043E\u0434\u0435",alternatives:["\u0432\u0432\u043E\u0434"],normalized:"input"},change:{primary:"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438",alternatives:["\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435"],normalized:"change"},load:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0435"],normalized:"load"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0438\u0434\u0442\u0438","\u0438\u0434\u0438"],normalized:"go",form:"infinitive"},scroll:{primary:"\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u044C",alternatives:["\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438"],normalized:"scroll",form:"infinitive"},push:{primary:"\u0432\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C",alternatives:["\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C"],normalized:"push",form:"infinitive"},replace:{primary:"\u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C",alternatives:["\u0437\u0430\u043C\u0435\u043D\u0438"],normalized:"replace",form:"infinitive"},process:{primary:"\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C",alternatives:["\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u0439"],normalized:"process",form:"infinitive"},wait:{primary:"\u0436\u0434\u0430\u0442\u044C",alternatives:["\u0436\u0434\u0438","\u043F\u043E\u0434\u043E\u0436\u0434\u0438"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u0438"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"settle",form:"infinitive"},if:{primary:"\u0435\u0441\u043B\u0438",normalized:"if"},unless:{primary:"\u043A\u0440\u043E\u043C\u0435",normalized:"unless"},when:{primary:"\u043A\u043E\u0433\u0434\u0430",normalized:"when"},where:{primary:"\u0433\u0434\u0435",normalized:"where"},else:{primary:"\u0438\u043D\u0430\u0447\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u0430\u0436\u0434\u044B\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0430",normalized:"while"},forever:{primary:"\u0432\u0441\u0435\u0433\u0434\u0430",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",alternatives:["\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438"],normalized:"continue",form:"infinitive"},halt:{primary:"\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",alternatives:["\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u0431\u0440\u043E\u0441\u0438\u0442\u044C",alternatives:["\u0431\u0440\u043E\u0441\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u044B\u0437\u0432\u0430\u0442\u044C",alternatives:["\u0432\u044B\u0437\u043E\u0432\u0438"],normalized:"call",form:"infinitive"},return:{primary:"\u0432\u0435\u0440\u043D\u0443\u0442\u044C",alternatives:["\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u0437\u0430\u0442\u0435\u043C",alternatives:["\u043F\u043E\u0442\u043E\u043C","\u0442\u043E\u0433\u0434\u0430"],normalized:"then"},and:{primary:"\u0438",normalized:"and"},matches:{primary:"\u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442",normalized:"matches"},end:{primary:"\u043A\u043E\u043D\u0435\u0446",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u044C",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u043F\u043E_\u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",normalized:"default"},init:{primary:"\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435",normalized:"behavior"},install:{primary:"\u0438\u043D\u0441\u0442\u0430\u043B\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"install",form:"infinitive"},measure:{primary:"\u0438\u0437\u043C\u0435\u0440\u0438\u0442\u044C",alternatives:["\u0438\u0437\u043C\u0435\u0440\u044C"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0440\u0435\u0440\u0432\u0430\u0442\u044C",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",normalized:"copy"},exit:{primary:"\u0432\u044B\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u044B\u0431\u0440\u0430\u0442\u044C",normalized:"pick"},render:{primary:"\u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0432\u043E"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u043E\u0441\u043B\u0435",normalized:"after"},until:{primary:"\u043F\u043E\u043A\u0430_\u043D\u0435",normalized:"until"},event:{primary:"\u0441\u043E\u0431\u044B\u0442\u0438\u0435",normalized:"event"},from:{primary:"\u0438\u0437",alternatives:["\u043E\u0442","\u0441"],normalized:"from"},connect:{primary:"\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C",alternatives:["\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C","\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F"],normalized:"connect"},stream:{primary:"\u0442\u0440\u0430\u043D\u0441\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",alternatives:["\u043F\u043E\u0442\u043E\u043A","\u0441\u0442\u0440\u0438\u043C"],normalized:"stream"},live:{primary:"\u0432-\u043F\u0440\u044F\u043C\u043E\u043C-\u044D\u0444\u0438\u0440\u0435",alternatives:["\u043F\u0440\u044F\u043C\u043E\u0439-\u044D\u0444\u0438\u0440","\u0432\u0436\u0438\u0432\u0443\u044E","\u0436\u0438\u0432\u043E\u0439"],normalized:"live"},socket:{primary:"\u0441\u043E\u043A\u0435\u0442",alternatives:["\u0433\u043D\u0435\u0437\u0434\u043E","websocket","socket"],normalized:"socket"},bind:{primary:"\u043F\u0440\u0438\u0432\u044F\u0437\u0430\u0442\u044C",alternatives:["\u0441\u0432\u044F\u0437\u0430\u0442\u044C","bind"],normalized:"bind"},intercept:{primary:"\u043F\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044C",alternatives:["\u043F\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438","intercept"],normalized:"intercept"},worker:{primary:"\u0440\u0430\u0431\u043E\u0447\u0438\u0439",alternatives:["\u0432\u043E\u0440\u043A\u0435\u0440","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A-\u0441\u043E\u0431\u044B\u0442\u0438\u0439"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",position:"before"},temporalMarkers:["\u043A\u043E\u0433\u0434\u0430","\u0435\u0441\u043B\u0438"]}}});var Zl={};N(Zl,{RussianTokenizer:()=>Kr,russianTokenizer:()=>Qg});var Yg,Jg,Kr,Qg,Yl=z(()=>{"use strict";D();Gl();Oa();G();X();gn();Pe();Yg=new Set(["\u0432","\u0432\u043E","\u043D\u0430","\u0441","\u0441\u043E","\u043A","\u043A\u043E","\u043E","\u043E\u0431","\u043E\u0431\u043E","\u0443","\u043E\u0442","\u0434\u043E","\u0438\u0437","\u0437\u0430","\u043F\u043E","\u043F\u043E\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043F\u0435\u0440\u0435\u0434\u043E","\u043C\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043B\u044F","\u043F\u0440\u0438","\u043F\u0440\u043E","\u043F\u043E\u0441\u043B\u0435","\u0432\u043E\u043A\u0440\u0443\u0433","\u043F\u0440\u043E\u0442\u0438\u0432","\u0432\u043C\u0435\u0441\u0442\u043E","\u043A\u0440\u043E\u043C\u0435","\u0441\u0440\u0435\u0434\u0438"]),Jg=[{native:"\u043C\u044B\u0448\u044C\u0432\u043D\u0438\u0437",normalized:"mousedown"},{native:"\u043C\u044B\u0448\u044C\u0432\u0432\u0435\u0440\u0445",normalized:"mouseup"},{native:"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u0440\u0430\u0437\u043C\u0435\u0440\u0430",normalized:"resize"},{native:"\u0438\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u043B\u043E\u0436\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E",normalized:"undefined"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B",normalized:"ms"},{native:"\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u043C\u0438\u043D\u0443\u0442\u0430",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442\u044B",normalized:"m"},{native:"\u043C\u0438\u043D\u0443\u0442",normalized:"m"},{native:"\u0447\u0430\u0441",normalized:"h"},{native:"\u0447\u0430\u0441\u0430",normalized:"h"},{native:"\u0447\u0430\u0441\u043E\u0432",normalized:"h"},{native:"\u043F\u0435\u0440\u0432\u044B\u0439",normalized:"first"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439",normalized:"last"},{native:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",normalized:"next"},{native:"\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",normalized:"previous"},{native:"\u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0438\u0439",normalized:"closest"},{native:"\u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C",normalized:"parent"},{native:"\u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439",normalized:"random"},{native:"\u043F\u0435\u0440\u0432\u0430\u044F",normalized:"first"},{native:"\u043F\u0435\u0440\u0432\u043E\u0435",normalized:"first"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F",normalized:"last"},{native:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435",normalized:"last"},{native:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F",normalized:"next"},{native:"\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F",normalized:"previous"},{native:"\u043F\u0443\u0441\u0442\u0430\u044F",normalized:"empty"},{native:"\u043F\u0443\u0441\u0442\u043E\u0435",normalized:"empty"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0451",normalized:"my"},{native:"\u043C\u043E\u0438",normalized:"my"}],Kr=class extends R{constructor(){super();this.language="ru";this.direction="ltr";this.initializeKeywordsFromProfile(Ma,Jg),this.setNormalizer(new jt),this.registerExtractors([...W(),...io(),new _,new M,new ee,new A,new j])}classifyToken(t){let r=t.toLowerCase();return Yg.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},Qg=new Kr});var Jl={};N(Jl,{thaiProfile:()=>Wa});var Wa,Ia=z(()=>{"use strict";Wa={code:"th",name:"Thai",nativeName:"\u0E44\u0E17\u0E22",direction:"ltr",script:"thai",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"second",subjectDrop:!0},references:{me:"\u0E09\u0E31\u0E19",it:"\u0E21\u0E31\u0E19",you:"\u0E04\u0E38\u0E13",result:"\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",event:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",target:"\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22",body:"\u0E1A\u0E2D\u0E14\u0E35\u0E49"},possessive:{marker:"\u0E02\u0E2D\u0E07",markerPosition:"between",keywords:{\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19:"me",\u0E02\u0E2D\u0E07\u0E1C\u0E21:"me",\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13:"you",\u0E02\u0E2D\u0E07\u0E21\u0E31\u0E19:"it",\u0E02\u0E2D\u0E07\u0E40\u0E02\u0E32:"it",\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D:"it"}},roleMarkers:{patient:{primary:"",position:"before"},destination:{primary:"\u0E43\u0E19",alternatives:["\u0E44\u0E1B\u0E22\u0E31\u0E07"],position:"before"},source:{primary:"\u0E08\u0E32\u0E01",position:"before"},style:{primary:"\u0E14\u0E49\u0E27\u0E22",position:"before"}},keywords:{toggle:{primary:"\u0E2A\u0E25\u0E31\u0E1A",alternatives:[],normalized:"toggle"},add:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21",alternatives:[],normalized:"add"},remove:{primary:"\u0E25\u0E1A",alternatives:["\u0E25\u0E1A\u0E2D\u0E2D\u0E01"],normalized:"remove"},put:{primary:"\u0E43\u0E2A\u0E48",alternatives:["\u0E27\u0E32\u0E07"],normalized:"put"},append:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E17\u0E49\u0E32\u0E22",alternatives:[],normalized:"append"},prepend:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E19\u0E49\u0E32",alternatives:[],normalized:"prepend"},take:{primary:"\u0E23\u0E31\u0E1A",alternatives:[],normalized:"take"},make:{primary:"\u0E2A\u0E23\u0E49\u0E32\u0E07",alternatives:[],normalized:"make"},clone:{primary:"\u0E42\u0E04\u0E25\u0E19",alternatives:["\u0E2A\u0E33\u0E40\u0E19\u0E32"],normalized:"clone"},swap:{primary:"\u0E2A\u0E25\u0E31\u0E1A\u0E17\u0E35\u0E48",alternatives:[],normalized:"swap"},morph:{primary:"\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07",alternatives:[],normalized:"morph"},set:{primary:"\u0E15\u0E31\u0E49\u0E07",alternatives:["\u0E01\u0E33\u0E2B\u0E19\u0E14"],normalized:"set"},get:{primary:"\u0E23\u0E31\u0E1A\u0E04\u0E48\u0E32",alternatives:[],normalized:"get"},increment:{primary:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E04\u0E48\u0E32",alternatives:[],normalized:"increment"},decrement:{primary:"\u0E25\u0E14\u0E04\u0E48\u0E32",alternatives:[],normalized:"decrement"},log:{primary:"\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01",alternatives:[],normalized:"log"},show:{primary:"\u0E41\u0E2A\u0E14\u0E07",alternatives:[],normalized:"show"},hide:{primary:"\u0E0B\u0E48\u0E2D\u0E19",alternatives:[],normalized:"hide"},transition:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E1C\u0E48\u0E32\u0E19",alternatives:[],normalized:"transition"},on:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},trigger:{primary:"\u0E17\u0E23\u0E34\u0E01\u0E40\u0E01\u0E2D\u0E23\u0E4C",alternatives:[],normalized:"trigger"},send:{primary:"\u0E2A\u0E48\u0E07",alternatives:[],normalized:"send"},focus:{primary:"\u0E42\u0E1F\u0E01\u0E31\u0E2A",alternatives:[],normalized:"focus"},blur:{primary:"\u0E40\u0E1A\u0E25\u0E2D",alternatives:[],normalized:"blur"},empty:{primary:"\u0E25\u0E49\u0E32\u0E07",alternatives:["\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E48\u0E32\u0E07","\u0E27\u0E48\u0E32\u0E07"],normalized:"empty"},open:{primary:"\u0E40\u0E1B\u0E34\u0E14",normalized:"open"},close:{primary:"\u0E1B\u0E34\u0E14",normalized:"close"},select:{primary:"\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2B\u0E21\u0E32\u0E22",normalized:"select"},clear:{primary:"\u0E40\u0E04\u0E25\u0E35\u0E22\u0E23\u0E4C",normalized:"clear"},reset:{primary:"\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15",normalized:"reset"},breakpoint:{primary:"\u0E08\u0E38\u0E14\u0E1E\u0E31\u0E01",normalized:"breakpoint"},click:{primary:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},hover:{primary:"\u0E42\u0E2E\u0E40\u0E27\u0E2D\u0E23\u0E4C",alternatives:["\u0E27\u0E32\u0E07\u0E40\u0E21\u0E32\u0E2A\u0E4C"],normalized:"hover"},submit:{primary:"\u0E22\u0E37\u0E48\u0E19",alternatives:["\u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25"],normalized:"submit"},input:{primary:"\u0E1B\u0E49\u0E2D\u0E19",alternatives:["\u0E01\u0E23\u0E2D\u0E01"],normalized:"input"},change:{primary:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",alternatives:["\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"],normalized:"change"},go:{primary:"\u0E44\u0E1B",alternatives:["\u0E44\u0E1B\u0E17\u0E35\u0E48"],normalized:"go"},scroll:{primary:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19",normalized:"scroll"},push:{primary:"\u0E14\u0E31\u0E19",alternatives:["\u0E1C\u0E25\u0E31\u0E01"],normalized:"push"},replace:{primary:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48",alternatives:["\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19-url"],normalized:"replace"},process:{primary:"\u0E1B\u0E23\u0E30\u0E21\u0E27\u0E25\u0E1C\u0E25",alternatives:["\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23"],normalized:"process"},wait:{primary:"\u0E23\u0E2D",alternatives:[],normalized:"wait"},fetch:{primary:"\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",alternatives:[],normalized:"fetch"},settle:{primary:"\u0E04\u0E07\u0E17\u0E35\u0E48",alternatives:[],normalized:"settle"},if:{primary:"\u0E16\u0E49\u0E32",alternatives:["\u0E2B\u0E32\u0E01"],normalized:"if"},unless:{primary:"unless",normalized:"unless"},when:{primary:"\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48",normalized:"when"},where:{primary:"\u0E17\u0E35\u0E48\u0E44\u0E2B\u0E19",normalized:"where"},else:{primary:"\u0E44\u0E21\u0E48\u0E07\u0E31\u0E49\u0E19",alternatives:["\u0E44\u0E21\u0E48\u0E40\u0E0A\u0E48\u0E19\u0E19\u0E31\u0E49\u0E19"],normalized:"else"},repeat:{primary:"\u0E17\u0E33\u0E0B\u0E49\u0E33",alternatives:[],normalized:"repeat"},for:{primary:"\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A",alternatives:[],normalized:"for"},while:{primary:"\u0E43\u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48",alternatives:[],normalized:"while"},forever:{primary:"\u0E15\u0E25\u0E2D\u0E14\u0E44\u0E1B",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u0E15\u0E48\u0E2D\u0E44\u0E1B",alternatives:[],normalized:"continue"},halt:{primary:"\u0E2B\u0E22\u0E38\u0E14",alternatives:[],normalized:"halt"},throw:{primary:"\u0E42\u0E22\u0E19",alternatives:[],normalized:"throw"},call:{primary:"\u0E40\u0E23\u0E35\u0E22\u0E01",alternatives:[],normalized:"call"},return:{primary:"\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32",alternatives:["\u0E01\u0E25\u0E31\u0E1A"],normalized:"return"},then:{primary:"\u0E41\u0E25\u0E49\u0E27",alternatives:[],normalized:"then"},and:{primary:"\u0E41\u0E25\u0E30",alternatives:[],normalized:"and"},end:{primary:"\u0E08\u0E1A",alternatives:[],normalized:"end"},js:{primary:"\u0E40\u0E08\u0E40\u0E2D\u0E2A",alternatives:["js"],normalized:"js"},async:{primary:"\u0E2D\u0E30\u0E0B\u0E34\u0E07\u0E04\u0E4C",alternatives:[],normalized:"async"},tell:{primary:"\u0E1A\u0E2D\u0E01",alternatives:[],normalized:"tell"},default:{primary:"\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"default"},init:{primary:"\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",alternatives:[],normalized:"init"},behavior:{primary:"\u0E1E\u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21",alternatives:[],normalized:"behavior"},install:{primary:"\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07",alternatives:[],normalized:"install"},measure:{primary:"\u0E27\u0E31\u0E14",alternatives:[],normalized:"measure"},beep:{primary:"\u0E1A\u0E35\u0E4A\u0E1A",alternatives:[],normalized:"beep"},break:{primary:"\u0E02\u0E31\u0E14\u0E08\u0E31\u0E07\u0E2B\u0E27\u0E30",alternatives:[],normalized:"break"},copy:{primary:"\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",alternatives:[],normalized:"copy"},exit:{primary:"\u0E2D\u0E2D\u0E01",alternatives:[],normalized:"exit"},pick:{primary:"\u0E40\u0E25\u0E37\u0E2D\u0E01",alternatives:[],normalized:"pick"},render:{primary:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",alternatives:[],normalized:"render"},into:{primary:"\u0E43\u0E19",alternatives:[],normalized:"into"},before:{primary:"\u0E01\u0E48\u0E2D\u0E19",alternatives:[],normalized:"before"},after:{primary:"\u0E2B\u0E25\u0E31\u0E07",alternatives:[],normalized:"after"},until:{primary:"\u0E08\u0E19\u0E16\u0E36\u0E07",alternatives:[],normalized:"until"},event:{primary:"\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",alternatives:[],normalized:"event"},from:{primary:"\u0E08\u0E32\u0E01",normalized:"from"},connect:{primary:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D",alternatives:["\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21"],normalized:"connect"},stream:{primary:"\u0E2A\u0E15\u0E23\u0E35\u0E21",alternatives:["\u0E2A\u0E15\u0E23\u0E35\u0E21\u0E21\u0E34\u0E48\u0E07","\u0E01\u0E23\u0E30\u0E41\u0E2A"],normalized:"stream"},live:{primary:"\u0E44\u0E25\u0E1F\u0E4C",alternatives:["\u0E2A\u0E14","\u0E16\u0E48\u0E32\u0E22\u0E17\u0E2D\u0E14\u0E2A\u0E14"],normalized:"live"},socket:{primary:"\u0E0B\u0E47\u0E2D\u0E01\u0E40\u0E01\u0E47\u0E15",alternatives:["websocket","\u0E40\u0E27\u0E47\u0E1A\u0E0B\u0E47\u0E2D\u0E01\u0E40\u0E01\u0E47\u0E15","socket"],normalized:"socket"},intercept:{primary:"\u0E14\u0E31\u0E01\u0E08\u0E31\u0E1A",alternatives:["intercept","\u0E2A\u0E01\u0E31\u0E14\u0E01\u0E31\u0E49\u0E19"],normalized:"intercept"},worker:{primary:"\u0E40\u0E27\u0E34\u0E23\u0E4C\u0E01\u0E40\u0E01\u0E2D\u0E23\u0E4C",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0E2D\u0E35\u0E40\u0E27\u0E19\u0E15\u0E4C\u0E0B\u0E2D\u0E23\u0E4C\u0E2A"],normalized:"eventsource"},bind:{primary:"\u0E1C\u0E39\u0E01",alternatives:["bind"],normalized:"bind"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],normalized:"on"},sourceMarker:{primary:"\u0E08\u0E32\u0E01",position:"before"},eventMarker:{primary:"\u0E40\u0E21\u0E37\u0E48\u0E2D",alternatives:["\u0E15\u0E2D\u0E19"],position:"before"},temporalMarkers:["\u0E40\u0E21\u0E37\u0E48\u0E2D","\u0E15\u0E2D\u0E19"]}}});var Ql={};N(Ql,{ThaiTokenizer:()=>$r,thaiTokenizer:()=>tv});var ev,$r,tv,ec=z(()=>{"use strict";D();Ia();G();X();vo();ev=[{native:"\u0E08\u0E23\u0E34\u0E07",normalized:"true"},{native:"\u0E40\u0E17\u0E47\u0E08",normalized:"false"},{native:"\u0E27\u0E48\u0E32\u0E07",normalized:"null"},{native:"\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14",normalized:"undefined"},{native:"\u0E41\u0E23\u0E01",normalized:"first"},{native:"\u0E2A\u0E38\u0E14\u0E17\u0E49\u0E32\u0E22",normalized:"last"},{native:"\u0E16\u0E31\u0E14\u0E44\u0E1B",normalized:"next"},{native:"\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",normalized:"previous"},{native:"\u0E43\u0E01\u0E25\u0E49\u0E2A\u0E38\u0E14",normalized:"closest"},{native:"\u0E15\u0E49\u0E19\u0E17\u0E32\u0E07",normalized:"parent"},{native:"\u0E04\u0E25\u0E34\u0E01",normalized:"click"},{native:"\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07",normalized:"change"},{native:"\u0E2A\u0E48\u0E07",normalized:"submit"},{native:"\u0E2D\u0E34\u0E19\u0E1E\u0E38\u0E15",normalized:"input"},{native:"\u0E42\u0E2B\u0E25\u0E14",normalized:"load"},{native:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19",normalized:"scroll"},{native:"\u0E40\u0E27\u0E25\u0E32",normalized:"when"},{native:"\u0E44\u0E1B\u0E22\u0E31\u0E07",normalized:"to"},{native:"\u0E14\u0E49\u0E27\u0E22",normalized:"with"},{native:"\u0E41\u0E25\u0E30",normalized:"and"}],$r=class extends R{constructor(){super();this.language="th";this.direction="ltr";this.initializeKeywordsFromProfile(Wa,ev),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(go()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith(".")||t.startsWith("#")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith(":")?"identifier":t.startsWith('"')||t.startsWith("'")||/^-?\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},tv=new $r});var tc={};N(tc,{tagalogProfile:()=>Va});var Va,_a=z(()=>{"use strict";Va={code:"tl",name:"Tagalog",nativeName:"Tagalog",direction:"ltr",script:"latin",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"ako",it:"ito",you:"ikaw",result:"resulta",event:"pangyayari",target:"target",body:"katawan"},possessive:{marker:"ng",markerPosition:"between",keywords:{ko:"me",akin:"me",aking:"me",mo:"you",iyo:"you",niya:"it",nito:"it",kaniya:"it"}},roleMarkers:{destination:{primary:"sa",alternatives:["bago","matapos"],position:"before"},source:{primary:"mula_sa",position:"before"},patient:{primary:"",position:"before"},style:{primary:"nang",position:"before"}},keywords:{toggle:{primary:"palitan",alternatives:["itoggle"],normalized:"toggle"},add:{primary:"idagdag",alternatives:["magdagdag"],normalized:"add"},remove:{primary:"alisin",alternatives:["tanggalin"],normalized:"remove"},put:{primary:"ilagay",alternatives:["maglagay"],normalized:"put"},append:{primary:"idagdag_sa_dulo",normalized:"append"},prepend:{primary:"idagdag_sa_simula",normalized:"prepend"},take:{primary:"kumuha",normalized:"take"},make:{primary:"gumawa",alternatives:["lumikha"],normalized:"make"},clone:{primary:"i-clone",normalized:"clone"},swap:{primary:"palitan_pwesto",alternatives:["magpalit"],normalized:"swap"},morph:{primary:"baguhin",normalized:"morph"},set:{primary:"itakda",alternatives:["magtakda"],normalized:"set"},get:{primary:"kunin",normalized:"get"},increment:{primary:"dagdagan",alternatives:["taasan"],normalized:"increment"},decrement:{primary:"bawasan",alternatives:["ibaba"],normalized:"decrement"},log:{primary:"itala",normalized:"log"},show:{primary:"ipakita",alternatives:["magpakita"],normalized:"show"},hide:{primary:"itago",alternatives:["magtago"],normalized:"hide"},transition:{primary:"lumipat",normalized:"transition"},on:{primary:"kapag",normalized:"on"},trigger:{primary:"palitawin",alternatives:["magpatugtog"],normalized:"trigger"},send:{primary:"ipadala",alternatives:["magpadala"],normalized:"send"},focus:{primary:"ituon",normalized:"focus"},blur:{primary:"alisin_tuon",normalized:"blur"},empty:{primary:"walang-laman",alternatives:["alisin-laman","walang_laman"],normalized:"empty"},open:{primary:"buksan",normalized:"open"},close:{primary:"isara",normalized:"close"},select:{primary:"piliin",normalized:"select"},clear:{primary:"burahin",normalized:"clear"},reset:{primary:"i-reset",normalized:"reset"},breakpoint:{primary:"breakpoint",normalized:"breakpoint"},go:{primary:"pumunta",alternatives:["punta"],normalized:"go"},scroll:{primary:"iscroll",alternatives:["mag_scroll","scroll"],normalized:"scroll"},push:{primary:"itulak",alternatives:["ipush"],normalized:"push"},replace:{primary:"palitan_url",alternatives:["ireplace"],normalized:"replace"},process:{primary:"iproseso",alternatives:["proseso"],normalized:"process"},wait:{primary:"maghintay",alternatives:["hintay"],normalized:"wait"},fetch:{primary:"kuhanin_mula",alternatives:["kunin_mula"],normalized:"fetch"},settle:{primary:"magpatahimik",normalized:"settle"},if:{primary:"kung",normalized:"if"},unless:{primary:"maliban_kung",normalized:"unless"},when:{primary:"tuwing",normalized:"when"},where:{primary:"kung_saan",normalized:"where"},else:{primary:"kung_hindi",alternatives:["kundi"],normalized:"else"},repeat:{primary:"ulitin",alternatives:["paulit-ulit"],normalized:"repeat"},for:{primary:"para_sa",normalized:"for"},while:{primary:"habang",normalized:"while"},forever:{primary:"magpakailanman",normalized:"forever",alternatives:["forever"]},continue:{primary:"magpatuloy",normalized:"continue"},halt:{primary:"itigil",alternatives:["huminto"],normalized:"halt"},throw:{primary:"ihagis",alternatives:["itapon"],normalized:"throw"},call:{primary:"tawagin",alternatives:["tawagan","tumawag"],normalized:"call"},return:{primary:"ibalik",alternatives:["bumalik"],normalized:"return"},then:{primary:"pagkatapos",alternatives:["saka"],normalized:"then"},and:{primary:"at",normalized:"and"},end:{primary:"wakas",alternatives:["tapos"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["sabay"],normalized:"async"},tell:{primary:"sabihin",alternatives:["magsabi"],normalized:"tell"},default:{primary:"pamantayan",alternatives:["default","unang_halaga"],normalized:"default"},init:{primary:"simulan",alternatives:["magsimula"],normalized:"init"},behavior:{primary:"ugali",alternatives:["kilos"],normalized:"behavior"},install:{primary:"ikabit",alternatives:["mag-install"],normalized:"install"},measure:{primary:"sukatin",normalized:"measure"},beep:{primary:"tunog",normalized:"beep"},break:{primary:"putulin",normalized:"break"},copy:{primary:"kopyahin",normalized:"copy"},exit:{primary:"lumabas",normalized:"exit"},pick:{primary:"pumili",normalized:"pick"},render:{primary:"irender",normalized:"render"},into:{primary:"sa",normalized:"into"},before:{primary:"bago",normalized:"before"},after:{primary:"matapos",normalized:"after"},until:{primary:"hanggang",normalized:"until"},event:{primary:"pangyayari",normalized:"event"},from:{primary:"mula",alternatives:["galing"],normalized:"from"},connect:{primary:"ikonekta",alternatives:["kumonekta","connect"],normalized:"connect"},stream:{primary:"i-stream",alternatives:["stream","agos"],normalized:"stream"},live:{primary:"live",alternatives:["tuwiran","direkta"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},worker:{primary:"worker",alternatives:["manggagawa"],normalized:"worker"},eventsource:{primary:"eventsource",normalized:"eventsource"},intercept:{primary:"intercept",alternatives:["harangin","humarang"],normalized:"intercept"},bind:{primary:"itali",alternatives:["iugnay","bind"],normalized:"bind"}},eventHandler:{keyword:{primary:"kapag",normalized:"on"},sourceMarker:{primary:"mula_sa",alternatives:["galing_sa"],position:"before"},eventMarker:{primary:"kapag",position:"before"}}}});function rv(n){let e=n.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122?!0:n==="\xF1"||n==="\xD1"}function nv(n){for(let e of n)if(rv(e))return!0;return!1}function lv(n){let e=n.toLowerCase();if(e.length<5)return null;let t=0;for(let r=0;r<e.length;r++){let a=e[r];if(!"aeiou".includes(a))t=r+1;else break}if(t===0)return null;for(let r of ov){let a=t;if(e.slice(a,a+r.length)===r){let i=e.slice(0,t)+e.slice(a+r.length);if(i.length>=3)return{stem:i,infix:r}}}return null}function cv(n){let e=n.toLowerCase();if(e.length<4)return{stem:e,reduplicated:!1};let t=e[0],r=e[1];if(!"aeiou".includes(t)&&"aeiou".includes(r)){let a=e.slice(2);if(a.length>=2&&a[0]===t)return{stem:a,reduplicated:!0}}return{stem:e,reduplicated:!1}}var av,iv,ov,sv,qa,rc,nc=z(()=>{"use strict";ae();av=[{pattern:"magpapa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"magpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nagpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3}],iv=[{pattern:"mag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"mang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ma",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"na",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"i",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"pa",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],ov=["um","in"],sv=[{pattern:"hin",confidencePenalty:.18,type:"patient-focus"},{pattern:"in",confidencePenalty:.18,type:"patient-focus"},{pattern:"han",confidencePenalty:.18,type:"locative-focus"},{pattern:"an",confidencePenalty:.18,type:"locative-focus"}];qa=class{constructor(){this.language="tl"}isNormalizable(e){return!(!nv(e)||e.length<2)}normalize(e){let t=e.toLowerCase(),r=1,a=[],i=[],o=[];for(let p of av)if(t.startsWith(p.pattern)){let m=t.slice(p.pattern.length),d=p.minRemaining??2;if(m.length>=d){t=m,r-=p.confidencePenalty,a.push(p.pattern),o.push(`prefix:${p.pattern}`);break}}if(a.length===0){for(let p of iv)if(t.startsWith(p.pattern)){let m=t.slice(p.pattern.length),d=p.minRemaining??2;if(m.length>=d){t=m,r-=p.confidencePenalty,a.push(p.pattern),o.push(`prefix:${p.pattern}`);break}}}let s=cv(t);s.reduplicated&&s.stem.length>=2&&(t=s.stem,r-=.1,o.push("reduplication:CV"));let l=lv(t),c=!1;if(l&&l.stem.length>=2&&(t=l.stem,r-=.18,o.push(`infix:${l.infix}`),c=!0),!c){for(let p of sv)if(t.endsWith(p.pattern)){let m=t.slice(0,-p.pattern.length);if(m.length>=2){t=m,r-=p.confidencePenalty,i.push(p.pattern),o.push(`suffix:${p.pattern}`);break}}}return r=Math.max(.5,r),a.length===0&&i.length===0&&o.length===0?V(e):x(t,r,{removedPrefixes:a,removedSuffixes:i,appliedRules:o})}},rc=new qa});var ac={};N(ac,{TagalogTokenizer:()=>Br,tagalogTokenizer:()=>mv});var pv,Br,mv,ic=z(()=>{"use strict";D();_a();nc();G();X();xo();pv=[{native:"totoo",normalized:"true"},{native:"mali",normalized:"false"},{native:"wala",normalized:"null"},{native:"hindi_tinukoy",normalized:"undefined"},{native:"una",normalized:"first"},{native:"huli",normalized:"last"},{native:"susunod",normalized:"next"},{native:"nakaraan",normalized:"previous"},{native:"pinakamalapit",normalized:"closest"},{native:"magulang",normalized:"parent"},{native:"pindot",normalized:"click"},{native:"pagbabago",normalized:"change"},{native:"isumite",normalized:"submit"},{native:"input",normalized:"input"},{native:"karga",normalized:"load"},{native:"mag_scroll",normalized:"scroll"}],Br=class extends R{constructor(){super();this.language="tl";this.direction="ltr";this.initializeKeywordsFromProfile(Va,pv),this.setNormalizer(rc),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(ko()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith(".")||t.startsWith("#")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith(":")?"identifier":t.startsWith('"')||t.startsWith("'")||/^-?\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},mv=new Br});function dv(n){return/[а-яА-ЯіІїЇєЄґҐьЬ']/.test(n)}var oc,Mt,bT,sc=z(()=>{"use strict";ae();oc=new Map([["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438","\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438"],["\u0434\u043E\u0434\u0430\u0439","\u0434\u043E\u0434\u0430\u0442\u0438"],["\u0432\u0438\u0434\u0430\u043B\u0438","\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438"],["\u043F\u0440\u0438\u0431\u0435\u0440\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438"],["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438"],["\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438"],["\u0432\u0441\u0442\u0430\u0432","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438"],["\u0432\u0456\u0437\u044C\u043C\u0438","\u0432\u0437\u044F\u0442\u0438"],["\u0441\u0442\u0432\u043E\u0440\u0438","\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438"],["\u043A\u043B\u043E\u043D\u0443\u0439","\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438"],["\u043F\u043E\u043C\u0456\u043D\u044F\u0439","\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438"],["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439","\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u0438"],["\u043E\u0442\u0440\u0438\u043C\u0430\u0439","\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438"],["\u0437\u0431\u0456\u043B\u044C\u0448","\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438"],["\u0437\u043C\u0435\u043D\u0448","\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438"],["\u0437\u0430\u043F\u0438\u0448\u0438","\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438"],["\u043F\u043E\u043A\u0430\u0436\u0438","\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0441\u0445\u043E\u0432\u0430\u0439","\u0441\u0445\u043E\u0432\u0430\u0442\u0438"],["\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438"],["\u0430\u043D\u0456\u043C\u0443\u0439","\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043A\u043B\u0438\u0447","\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438"],["\u043D\u0430\u0434\u0456\u0448\u043B\u0438","\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438"],["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u043F\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0439\u0434\u0438","\u0439\u0442\u0438"],["\u0447\u0435\u043A\u0430\u0439","\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0442\u0438"],["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436","\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438"],["\u043F\u043E\u0432\u0442\u043E\u0440\u0438","\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438"],["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439","\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438"],["\u043A\u0438\u043D\u044C","\u043A\u0438\u043D\u0443\u0442\u0438"],["\u043F\u043E\u0432\u0435\u0440\u043D\u0438","\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438"],["\u0441\u043A\u0430\u0436\u0438","\u0441\u043A\u0430\u0437\u0430\u0442\u0438"],["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439","\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043C\u0456\u0440\u044F\u0439","\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438"]]),Mt=class{constructor(){this.language="uk"}isNormalizable(e){return e.length<3?!1:dv(e)}normalize(e){let t=e.toLowerCase();if(t.endsWith("\u0441\u044F")||t.endsWith("\u0441\u044C")){let s=this.tryReflexiveNormalization(t);if(s)return s}if(t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u0438"))return V(e);let r=this.tryImperativeLookup(t);if(r)return r;let a=this.tryPastTenseNormalization(t);if(a)return a;let i=this.tryPresentTenseNormalization(t);if(i)return i;let o=this.tryGenericImperativeNormalization(t);return o||V(e)}tryReflexiveNormalization(e){let t=e.slice(0,-2);if(e.endsWith("\u0442\u0438\u0441\u044F")||e.endsWith("\u0447\u0438\u0441\u044F"))return V(e);let r=this.normalizeNonReflexive(t);if(r.confidence<1){let a=r.stem.endsWith("\u0442\u0438")?r.stem.slice(0,-2)+"\u0442\u0438\u0441\u044F":r.stem+"\u0441\u044F";return x(a,r.confidence*.95,{removedSuffixes:["\u0441\u044F",...r.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u0438"))return V(e);let t=this.tryImperativeLookup(e);if(t)return t;let r=this.tryPastTenseNormalization(e);if(r)return r;let a=this.tryPresentTenseNormalization(e);if(a)return a;let i=this.tryGenericImperativeNormalization(e);return i||V(e)}tryImperativeLookup(e){return oc.has(e)?x(oc.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?x(e.slice(0,-3)+"\u0442\u0438",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0456\u0442\u044C")&&e.length>5?x(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0456\u0442\u044C"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?x(e.slice(0,-1)+"\u0442\u0438",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?x(e+"\u0442\u0438",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u0438"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0430")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0430"],conjugationType:"past"}):e.endsWith("\u0430\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043B\u0438")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043B\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u0432")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u0438",.82,{removedSuffixes:["\u0430\u0432"],conjugationType:"past"}):e.endsWith("\u0438\u0432")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u0438",.82,{removedSuffixes:["\u0438\u0432"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448")&&e.length>3?x(e.slice(0,-2)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u0448"],conjugationType:"present"}):e.endsWith("\u0438\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u0438\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0438\u043C\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044F\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u044F\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0454\u0448")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u0454\u0448"],conjugationType:"present"}):e.endsWith("\u0435\u0448")&&e.length>3?x(e.slice(0,-2)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0435\u0448"],conjugationType:"present"}):e.endsWith("\u0454")&&e.length>2?x(e.slice(0,-1)+"\u0430\u0442\u0438",.72,{removedSuffixes:["\u0454"],conjugationType:"present"}):e.endsWith("\u0454\u043C\u043E")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.8,{removedSuffixes:["\u0454\u043C\u043E"],conjugationType:"present"}):e.endsWith("\u044E\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u044E\u0442\u044C"],conjugationType:"present"}):e.endsWith("\u0443\u0442\u044C")&&e.length>4?x(e.slice(0,-3)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0443\u0442\u044C"],conjugationType:"present"}):null}},bT=new Mt});var lc={};N(lc,{ukrainianProfile:()=>Ka});var Ka,$a=z(()=>{"use strict";Ka={code:"uk",name:"Ukrainian",nativeName:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u0438","\u0442\u0438\u0441\u044F","\u0438\u0442\u0438","\u0438\u0442\u0438\u0441\u044F","\u0430\u0442\u0438","\u0430\u0442\u0438\u0441\u044F","\u0456\u0442\u0438","\u0456\u0442\u0438\u0441\u044F"]},references:{me:"\u044F",it:"\u0446\u0435",you:"\u0442\u0438",result:"\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",event:"\u043F\u043E\u0434\u0456\u044F",target:"\u0446\u0456\u043B\u044C",body:"\u0442\u0456\u043B\u043E"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043C\u0456\u0439",it:"\u0439\u043E\u0433\u043E",you:"\u0442\u0432\u0456\u0439"},keywords:{\u043C\u0456\u0439:"me",\u043C\u043E\u044F:"me",\u043C\u043E\u0454:"me",\u043C\u043E\u0457:"me",\u0442\u0432\u0456\u0439:"you",\u0442\u0432\u043E\u044F:"you",\u0442\u0432\u043E\u0454:"you",\u0442\u0432\u043E\u0457:"you",\u0439\u043E\u0433\u043E:"it",\u0457\u0457:"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043D\u0430","\u0434\u043E"],position:"before"},source:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0437",alternatives:["\u0456\u0437"],position:"before"}},keywords:{toggle:{primary:"\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u043C\u043A\u043D\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043E\u0434\u0430\u0439"],normalized:"add",form:"infinitive"},remove:{primary:"\u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043B\u0438","\u043F\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043F\u0440\u0438\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043F\u043E\u043A\u043B\u0430\u0441\u0442\u0438",alternatives:["\u043F\u043E\u043A\u043B\u0430\u0434\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438\u0442\u0438","\u043F\u043E\u043C\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u0432_\u043A\u0456\u043D\u0435\u0446\u044C",alternatives:["\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u0438"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043E\u0434\u0430\u0442\u0438_\u043D\u0430_\u043F\u043E\u0447\u0430\u0442\u043E\u043A",normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044F\u0442\u0438",alternatives:["\u0432\u0456\u0437\u044C\u043C\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438",alternatives:["\u0441\u0442\u0432\u043E\u0440\u0438"],normalized:"make",form:"infinitive"},clone:{primary:"\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438",alternatives:["\u043A\u043B\u043E\u043D\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043F\u043E\u043C\u0456\u043D\u044F\u0442\u0438",alternatives:["\u043F\u043E\u043C\u0456\u043D\u044F\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438",alternatives:["\u043E\u0442\u0440\u0438\u043C\u0430\u0439"],normalized:"get",form:"infinitive"},increment:{primary:"\u0437\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043B\u044C\u0448"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0437\u043C\u0435\u043D\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043C\u0435\u043D\u0448"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043F\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043F\u043E\u043A\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u0445\u043E\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043E\u0432\u0430\u0439","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438","\u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0439"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043D\u0456\u043C\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0430\u043D\u0456\u043C\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043F\u0440\u0438",normalized:"on"},trigger:{primary:"\u0456\u043D\u0456\u0446\u0456\u044E\u0432\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0438","\u0437\u0430\u043F\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438",alternatives:["\u043D\u0430\u0434\u0456\u0448\u043B\u0438"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0439","\u0444\u043E\u043A\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0439"],normalized:"blur",form:"infinitive"},empty:{primary:"\u0441\u043F\u043E\u0440\u043E\u0436\u043D\u0438\u0442\u0438",alternatives:["\u043F\u043E\u0440\u043E\u0436\u043D\u0456\u0439"],normalized:"empty"},open:{primary:"\u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438",normalized:"open"},close:{primary:"\u0437\u0430\u043A\u0440\u0438\u0442\u0438",normalized:"close"},select:{primary:"\u0432\u0438\u0434\u0456\u043B\u0438\u0442\u0438",normalized:"select"},clear:{primary:"\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u0438",normalized:"clear"},reset:{primary:"\u0441\u043A\u0438\u043D\u0443\u0442\u0438",normalized:"reset"},breakpoint:{primary:"\u0442\u043E\u0447\u043A\u0430-\u0437\u0443\u043F\u0438\u043D\u043A\u0438",normalized:"breakpoint"},click:{primary:"\u043A\u043B\u0456\u043A\u0443",alternatives:["\u043A\u043B\u0456\u043A","\u043D\u0430\u0442\u0438\u0441\u043A\u0430\u043D\u043D\u0456"],normalized:"click"},hover:{primary:"\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"hover"},submit:{primary:"\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0446\u0456",alternatives:["\u0432\u0456\u0434\u043F\u0440\u0430\u0432\u043A\u0430","\u043D\u0430\u0434\u0441\u0438\u043B\u0430\u043D\u043D\u044F"],normalized:"submit"},input:{primary:"\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u0456",alternatives:["\u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044F"],normalized:"input"},change:{primary:"\u0437\u043C\u0456\u043D\u0456",alternatives:["\u0437\u043C\u0456\u043D\u0430"],normalized:"change"},load:{primary:"\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F",normalized:"load"},go:{primary:"\u043F\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0439\u0434\u0438","\u0439\u0442\u0438","\u0439\u0434\u0438"],normalized:"go",form:"infinitive"},scroll:{primary:"\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u0438",alternatives:["\u043F\u0440\u043E\u043A\u0440\u0443\u0442\u0438"],normalized:"scroll",form:"infinitive"},push:{primary:"\u0448\u0442\u043E\u0432\u0445\u043D\u0443\u0442\u0438",alternatives:["\u0437\u0430\u0448\u0442\u043E\u0432\u0445\u043D\u0443\u0442\u0438"],normalized:"push",form:"infinitive"},replace:{primary:"\u0437\u0430\u043C\u0456\u043D\u0438\u0442\u0438",alternatives:["\u0437\u0430\u043C\u0456\u043D\u0438"],normalized:"replace",form:"infinitive"},process:{primary:"\u043E\u0431\u0440\u043E\u0431\u0438\u0442\u0438",alternatives:["\u043E\u0431\u0440\u043E\u0431\u043B\u044F\u0442\u0438"],normalized:"process",form:"infinitive"},wait:{primary:"\u0447\u0435\u043A\u0430\u0442\u0438",alternatives:["\u0447\u0435\u043A\u0430\u0439","\u0437\u0430\u0447\u0435\u043A\u0430\u0439"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438",alternatives:["\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0456\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",normalized:"settle",form:"infinitive"},if:{primary:"\u044F\u043A\u0449\u043E",normalized:"if"},unless:{primary:"\u043A\u0440\u0456\u043C",normalized:"unless"},when:{primary:"\u043A\u043E\u043B\u0438",normalized:"when"},where:{primary:"\u0434\u0435",normalized:"where"},else:{primary:"\u0456\u043D\u0430\u043A\u0448\u0435",normalized:"else"},repeat:{primary:"\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0442\u043E\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043B\u044F",alternatives:["\u043A\u043E\u0436\u043D\u0438\u0439"],normalized:"for"},while:{primary:"\u043F\u043E\u043A\u0438",normalized:"while"},forever:{primary:"\u0437\u0430\u0432\u0436\u0434\u0438",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438",alternatives:["\u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439"],normalized:"continue",form:"infinitive"},halt:{primary:"\u0437\u0443\u043F\u0438\u043D\u0438\u0442\u0438",alternatives:["\u0437\u0443\u043F\u0438\u043D\u0438\u0441\u044C","\u0441\u0442\u043E\u043F"],normalized:"halt",form:"infinitive"},throw:{primary:"\u043A\u0438\u043D\u0443\u0442\u0438",alternatives:["\u043A\u0438\u043D\u044C"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u0438\u043A\u043B\u0438\u043A\u0430\u0442\u0438",alternatives:["\u0432\u0438\u043A\u043B\u0438\u0447"],normalized:"call",form:"infinitive"},return:{primary:"\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438",alternatives:["\u043F\u043E\u0432\u0435\u0440\u043D\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u043F\u043E\u0442\u0456\u043C",alternatives:["\u0434\u0430\u043B\u0456","\u0442\u043E\u0434\u0456"],normalized:"then"},and:{primary:"\u0456",alternatives:["\u0442\u0430"],normalized:"and"},matches:{primary:"\u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0454",normalized:"matches"},end:{primary:"\u043A\u0456\u043D\u0435\u0446\u044C",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043A\u0430\u0437\u0430\u0442\u0438",alternatives:["\u0441\u043A\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u0437\u0430_\u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C",normalized:"default"},init:{primary:"\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0456\u043D\u0456\u0446\u0456\u0430\u043B\u0456\u0437\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043F\u043E\u0432\u0435\u0434\u0456\u043D\u043A\u0430",normalized:"behavior"},install:{primary:"\u0456\u043D\u0441\u0442\u0430\u043B\u044E\u0432\u0430\u0442\u0438",normalized:"install",form:"infinitive"},measure:{primary:"\u0432\u0438\u043C\u0456\u0440\u044F\u0442\u0438",alternatives:["\u0432\u0438\u043C\u0456\u0440\u044F\u0439"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043A",normalized:"beep"},break:{primary:"\u043F\u0435\u0440\u0435\u0440\u0432\u0430\u0442\u0438",normalized:"break"},copy:{primary:"\u043A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438",normalized:"copy"},exit:{primary:"\u0432\u0438\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u0438\u0431\u0440\u0430\u0442\u0438",normalized:"pick"},render:{primary:"\u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u0438",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0443"],normalized:"into"},before:{primary:"\u0434\u043E",alternatives:["\u043F\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043F\u0456\u0441\u043B\u044F",normalized:"after"},until:{primary:"\u043F\u043E\u043A\u0438_\u043D\u0435",normalized:"until"},event:{primary:"\u043F\u043E\u0434\u0456\u044F",normalized:"event"},from:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],normalized:"from"},connect:{primary:"\u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0438",alternatives:["\u0437\u02BC\u0454\u0434\u043D\u0430\u0442\u0438","\u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0438\u0441\u044F"],normalized:"connect"},stream:{primary:"\u0442\u0440\u0430\u043D\u0441\u043B\u044E\u0432\u0430\u0442\u0438",alternatives:["\u043F\u043E\u0442\u0456\u043A","\u0441\u0442\u0440\u0456\u043C"],normalized:"stream"},live:{primary:"\u043D\u0430\u0436\u0438\u0432\u043E",alternatives:["\u0443-\u043F\u0440\u044F\u043C\u043E\u043C\u0443-\u0435\u0444\u0456\u0440\u0456","\u0432-\u0440\u0435\u0436\u0438\u043C\u0456-\u0440\u0435\u0430\u043B\u044C\u043D\u043E\u0433\u043E-\u0447\u0430\u0441\u0443","\u0436\u0438\u0432\u0438\u0439"],normalized:"live"},socket:{primary:"\u0441\u043E\u043A\u0435\u0442",alternatives:["\u0433\u043D\u0456\u0437\u0434\u043E","websocket","socket"],normalized:"socket"},bind:{primary:"\u043F\u0440\u0438\u0432'\u044F\u0437\u0430\u0442\u0438",alternatives:["\u0437\u0432'\u044F\u0437\u0430\u0442\u0438","\u043F\u0440\u0438\u0454\u0434\u043D\u0430\u0442\u0438","bind"],normalized:"bind"},intercept:{primary:"\u043F\u0435\u0440\u0435\u0445\u043E\u043F\u0438\u0442\u0438",alternatives:["\u043F\u0435\u0440\u0435\u0445\u043E\u043F\u043B\u0435\u043D\u043D\u044F","intercept"],normalized:"intercept"},worker:{primary:"\u0440\u043E\u0431\u0456\u0442\u043D\u0438\u043A",alternatives:["\u0432\u043E\u0440\u043A\u0435\u0440","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0434\u0436\u0435\u0440\u0435\u043B\u043E-\u043F\u043E\u0434\u0456\u0439"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"\u043F\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043D\u0430",alternatives:["\u0432","\u043F\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043F\u0440\u0438",position:"before"},temporalMarkers:["\u043A\u043E\u043B\u0438","\u044F\u043A\u0449\u043E"]}}});var cc={};N(cc,{UkrainianTokenizer:()=>Dr,ukrainianTokenizer:()=>yv});var uv,fv,Dr,yv,pc=z(()=>{"use strict";D();sc();$a();G();X();gn();Pe();uv=new Set(["\u0432","\u0443","\u043D\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043E","\u0432\u0456\u0434","\u043E","\u043E\u0431","\u043F\u0440\u0438","\u0434\u043B\u044F","\u043F\u0456\u0434","\u043D\u0430\u0434","\u043F\u0435\u0440\u0435\u0434","\u043C\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043F\u043E","\u0437\u0430","\u043F\u0440\u043E","\u043F\u0456\u0441\u043B\u044F","\u043D\u0430\u0432\u043A\u043E\u043B\u043E","\u043F\u0440\u043E\u0442\u0438","\u0437\u0430\u043C\u0456\u0441\u0442\u044C","\u043A\u0440\u0456\u043C","\u0441\u0435\u0440\u0435\u0434","\u043A"]),fv=[{native:"\u043C\u0438\u0448\u0430\u0432\u043D\u0438\u0437",normalized:"mousedown"},{native:"\u043C\u0438\u0448\u0430\u0432\u0433\u043E\u0440\u0443",normalized:"mouseup"},{native:"\u0437\u043C\u0456\u043D\u0430\u0440\u043E\u0437\u043C\u0456\u0440\u0443",normalized:"resize"},{native:"\u0456\u0441\u0442\u0438\u043D\u0430",normalized:"true"},{native:"\u043F\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u0445\u0438\u0431\u043D\u0456\u0441\u0442\u044C",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043D\u0435\u0432\u0438\u0437\u043D\u0430\u0447\u0435\u043D\u043E",normalized:"undefined"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"s"},{native:"\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"s"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438",normalized:"ms"},{native:"\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434",normalized:"ms"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D\u0438",normalized:"m"},{native:"\u0445\u0432\u0438\u043B\u0438\u043D",normalized:"m"},{native:"\u0433\u043E\u0434\u0438\u043D\u0430",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D\u0438",normalized:"h"},{native:"\u0433\u043E\u0434\u0438\u043D",normalized:"h"},{native:"\u043F\u0435\u0440\u0448\u0438\u0439",normalized:"first"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u0456\u0439",normalized:"last"},{native:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",normalized:"next"},{native:"\u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",normalized:"previous"},{native:"\u043D\u0430\u0439\u0431\u043B\u0438\u0436\u0447\u0438\u0439",normalized:"closest"},{native:"\u0431\u0430\u0442\u044C\u043A\u0456\u0432\u0441\u044C\u043A\u0438\u0439",normalized:"parent"},{native:"\u0432\u0438\u043F\u0430\u0434\u043A\u043E\u0432\u0438\u0439",normalized:"random"},{native:"\u043F\u0435\u0440\u0448\u0430",normalized:"first"},{native:"\u043F\u0435\u0440\u0448\u0435",normalized:"first"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u044F",normalized:"last"},{native:"\u043E\u0441\u0442\u0430\u043D\u043D\u0454",normalized:"last"},{native:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430",normalized:"next"},{native:"\u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F",normalized:"previous"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u044F",normalized:"empty"},{native:"\u043F\u043E\u0440\u043E\u0436\u043D\u0454",normalized:"empty"},{native:"\u043C\u043E\u044F",normalized:"my"},{native:"\u043C\u043E\u0454",normalized:"my"},{native:"\u043C\u043E\u0457",normalized:"my"}],Dr=class extends R{constructor(){super();this.language="uk";this.direction="ltr";this.initializeKeywordsFromProfile(Ka,fv),this.setNormalizer(new Mt),this.registerExtractors([...W(),...oo(),new _,new M,new ee,new A,new j])}classifyToken(t){let r=t.toLowerCase();return uv.has(r)?"particle":this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},yv=new Dr});var mc={};N(mc,{vietnameseProfile:()=>Ba});var Ba,Da=z(()=>{"use strict";Ba={code:"vi",name:"Vietnamese",nativeName:"Ti\u1EBFng Vi\u1EC7t",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"t\xF4i",it:"n\xF3",you:"b\u1EA1n",result:"k\u1EBFt qu\u1EA3",event:"s\u1EF1 ki\u1EC7n",target:"m\u1EE5c ti\xEAu",body:"body"},possessive:{marker:"c\u1EE7a",markerPosition:"between",specialForms:{me:"c\u1EE7a t\xF4i",it:"c\u1EE7a n\xF3",you:"c\u1EE7a b\u1EA1n"},keywords:{"c\u1EE7a t\xF4i":"me",my:"me","c\u1EE7a b\u1EA1n":"you","c\u1EE7a anh":"you","c\u1EE7a ch\u1ECB":"you","c\u1EE7a n\xF3":"it"}},roleMarkers:{destination:{primary:"v\xE0o",alternatives:["cho","\u0111\u1EBFn"],position:"before"},source:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"v\u1EDBi",position:"before"}},keywords:{toggle:{primary:"chuy\u1EC3n \u0111\u1ED5i",alternatives:["b\u1EADt t\u1EAFt","chuy\u1EC3n"],normalized:"toggle"},add:{primary:"th\xEAm",alternatives:["b\u1ED5 sung"],normalized:"add"},remove:{primary:"x\xF3a",alternatives:["g\u1EE1 b\u1ECF","lo\u1EA1i b\u1ECF","b\u1ECF"],normalized:"remove"},put:{primary:"\u0111\u1EB7t",alternatives:["\u0111\u1EC3","\u0111\u01B0a"],normalized:"put"},append:{primary:"n\u1ED1i",normalized:"append"},prepend:{primary:"th\xEAm v\xE0o \u0111\u1EA7u",normalized:"prepend"},take:{primary:"l\u1EA5y",normalized:"take"},make:{primary:"t\u1EA1o",normalized:"make"},clone:{primary:"nh\xE2n b\u1EA3n",normalized:"clone"},swap:{primary:"ho\xE1n \u0111\u1ED5i",normalized:"swap"},morph:{primary:"bi\u1EBFn \u0111\u1ED5i",normalized:"morph"},set:{primary:"g\xE1n",alternatives:["thi\u1EBFt l\u1EADp"],normalized:"set"},get:{primary:"l\u1EA5y gi\xE1 tr\u1ECB",alternatives:["nh\u1EADn"],normalized:"get"},increment:{primary:"t\u0103ng",alternatives:["t\u0103ng l\xEAn"],normalized:"increment"},decrement:{primary:"gi\u1EA3m",alternatives:["gi\u1EA3m \u0111i"],normalized:"decrement"},log:{primary:"in ra",normalized:"log"},show:{primary:"hi\u1EC3n th\u1ECB",alternatives:["hi\u1EC7n"],normalized:"show"},hide:{primary:"\u1EA9n",alternatives:["che","gi\u1EA5u"],normalized:"hide"},transition:{primary:"chuy\u1EC3n ti\u1EBFp",normalized:"transition"},on:{primary:"khi",alternatives:["tr\xEAn"],normalized:"on"},trigger:{primary:"k\xEDch ho\u1EA1t",normalized:"trigger"},send:{primary:"g\u1EEDi",normalized:"send"},focus:{primary:"t\u1EADp trung",normalized:"focus"},blur:{primary:"m\u1EA5t t\u1EADp trung",normalized:"blur"},empty:{primary:"l\xE0m-r\u1ED7ng",alternatives:["tr\u1ED1ng"],normalized:"empty"},open:{primary:"m\u1EDF",normalized:"open"},close:{primary:"\u0111\xF3ng",normalized:"close"},select:{primary:"\u0111\xE1nh-d\u1EA5u",normalized:"select"},clear:{primary:"t\u1EA9y",normalized:"clear"},reset:{primary:"\u0111\u1EB7t-l\u1EA1i",normalized:"reset"},breakpoint:{primary:"\u0111i\u1EC3m-d\u1EEBng",normalized:"breakpoint"},click:{primary:"nh\u1EA5p",alternatives:["b\u1EA5m"],normalized:"click"},hover:{primary:"di chu\u1ED9t",alternatives:["r\xEA chu\u1ED9t"],normalized:"hover"},submit:{primary:"n\u1ED9p",alternatives:[],normalized:"submit"},input:{primary:"nh\u1EADp",alternatives:["nh\u1EADp li\u1EC7u"],normalized:"input"},change:{primary:"thay \u0111\u1ED5i",alternatives:["\u0111\u1ED5i"],normalized:"change"},go:{primary:"\u0111i \u0111\u1EBFn",alternatives:["\u0111i"],normalized:"go"},scroll:{primary:"cu\u1ED9n",normalized:"scroll"},push:{primary:"\u0111\u1EA9y",alternatives:["push"],normalized:"push"},replace:{primary:"thay_th\u1EBF",alternatives:["thay_the"],normalized:"replace"},process:{primary:"x\u1EED_l\xFD",alternatives:["xu_ly"],normalized:"process"},wait:{primary:"ch\u1EDD",alternatives:["\u0111\u1EE3i","ch\u1EDD \u0111\u1EE3i"],normalized:"wait"},fetch:{primary:"t\u1EA3i",normalized:"fetch"},settle:{primary:"\u1ED5n \u0111\u1ECBnh",normalized:"settle"},if:{primary:"n\u1EBFu",normalized:"if"},unless:{primary:"tr\u1EEB khi",alternatives:["tr\u1EEB_khi"],normalized:"unless"},when:{primary:"l\xFAc",normalized:"when"},where:{primary:"\u1EDF_\u0111\xE2u",normalized:"where"},else:{primary:"kh\xF4ng th\xEC",alternatives:["n\u1EBFu kh\xF4ng"],normalized:"else"},repeat:{primary:"l\u1EB7p l\u1EA1i",normalized:"repeat"},for:{primary:"v\u1EDBi m\u1ED7i",normalized:"for"},while:{primary:"trong khi",normalized:"while"},forever:{primary:"m\xE3i m\xE3i",normalized:"forever",alternatives:["forever"]},continue:{primary:"ti\u1EBFp t\u1EE5c",normalized:"continue"},halt:{primary:"d\u1EEBng",alternatives:["d\u1EEBng l\u1EA1i"],normalized:"halt"},throw:{primary:"n\xE9m",normalized:"throw"},call:{primary:"g\u1ECDi",normalized:"call"},return:{primary:"tr\u1EA3 v\u1EC1",normalized:"return"},then:{primary:"r\u1ED3i",alternatives:["sau \u0111\xF3","th\xEC"],normalized:"then"},and:{primary:"v\xE0",normalized:"and"},end:{primary:"k\u1EBFt th\xFAc",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"b\u1EA5t \u0111\u1ED3ng b\u1ED9",normalized:"async"},tell:{primary:"n\xF3i v\u1EDBi",normalized:"tell"},default:{primary:"m\u1EB7c \u0111\u1ECBnh",normalized:"default"},init:{primary:"kh\u1EDFi t\u1EA1o",normalized:"init"},behavior:{primary:"h\xE0nh vi",normalized:"behavior"},install:{primary:"c\xE0i \u0111\u1EB7t",normalized:"install"},measure:{primary:"\u0111o l\u01B0\u1EDDng",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"ng\u1EAFt",normalized:"break"},copy:{primary:"sao ch\xE9p",normalized:"copy"},exit:{primary:"tho\xE1t",alternatives:["tho\xE1t ra"],normalized:"exit"},pick:{primary:"ch\u1ECDn",normalized:"pick"},render:{primary:"k\u1EBFt xu\u1EA5t",normalized:"render"},into:{primary:"v\xE0o",alternatives:["v\xE0o trong"],normalized:"into"},before:{primary:"tr\u01B0\u1EDBc",alternatives:["tr\u01B0\u1EDBc khi"],normalized:"before"},after:{primary:"sau",alternatives:["sau khi"],normalized:"after"},until:{primary:"cho \u0111\u1EBFn khi",normalized:"until"},event:{primary:"s\u1EF1 ki\u1EC7n",normalized:"event"},from:{primary:"t\u1EEB",alternatives:["kh\u1ECFi"],normalized:"from"},connect:{primary:"k\u1EBFt-n\u1ED1i",alternatives:["k\u1EBFt-n\u1ED1i-t\u1EDBi"],normalized:"connect"},stream:{primary:"truy\u1EC1n-ph\xE1t",alternatives:["ph\xE1t","lu\u1ED3ng"],normalized:"stream"},live:{primary:"tr\u1EF1c-ti\u1EBFp",alternatives:["ph\xE1t-tr\u1EF1c-ti\u1EBFp","live"],normalized:"live"},socket:{primary:"socket",alternatives:["\u1ED5-c\u1EAFm","websocket"],normalized:"socket"},bind:{primary:"r\xE0ng bu\u1ED9c",alternatives:["li\xEAn k\u1EBFt","bind"],normalized:"bind"},intercept:{primary:"ch\u1EB7n",alternatives:["ch\u1EB7n b\u1EAFt","intercept"],normalized:"intercept"},worker:{primary:"worker",alternatives:["c\xF4ng nh\xE2n"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["ngu\u1ED3n s\u1EF1 ki\u1EC7n"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"khi",alternatives:["tr\xEAn"],normalized:"on"},sourceMarker:{primary:"tr\xEAn",alternatives:["t\u1EA1i"],position:"before"},eventMarker:{primary:"khi",alternatives:["l\xFAc"],position:"before"},temporalMarkers:["khi","l\xFAc"]}}});var dc={};N(dc,{VietnameseTokenizer:()=>Fr,vietnameseTokenizer:()=>vv});var gv,Fr,vv,uc=z(()=>{"use strict";D();Da();Qi();G();X();gv=[{native:"\u0111\xFAng",normalized:"true"},{native:"sai",normalized:"false"},{native:"null",normalized:"null"},{native:"kh\xF4ng x\xE1c \u0111\u1ECBnh",normalized:"undefined"},{native:"\u0111\u1EA7u ti\xEAn",normalized:"first"},{native:"cu\u1ED1i c\xF9ng",normalized:"last"},{native:"ti\u1EBFp theo",normalized:"next"},{native:"tr\u01B0\u1EDBc \u0111\xF3",normalized:"previous"},{native:"g\u1EA7n nh\u1EA5t",normalized:"closest"},{native:"cha",normalized:"parent"},{native:"nh\u1EA5p",normalized:"click"},{native:"nh\u1EA5p chu\u1ED9t",normalized:"click"},{native:"click",normalized:"click"},{native:"nh\u1EA5p \u0111\xFAp",normalized:"dblclick"},{native:"nh\u1EADp",normalized:"input"},{native:"thay \u0111\u1ED5i",normalized:"change"},{native:"g\u1EEDi bi\u1EC3u m\u1EABu",normalized:"submit"},{native:"ph\xEDm xu\u1ED1ng",normalized:"keydown"},{native:"ph\xEDm l\xEAn",normalized:"keyup"},{native:"chu\u1ED9t v\xE0o",normalized:"mouseover"},{native:"chu\u1ED9t ra",normalized:"mouseout"},{native:"t\u1EA3i trang",normalized:"load"},{native:"cu\u1ED9n",normalized:"scroll"},{native:"c\u1EE7a t\xF4i",normalized:"my"},{native:"c\u1EE7a n\xF3",normalized:"its"},{native:"gi\xE2y",normalized:"s"},{native:"mili gi\xE2y",normalized:"ms"},{native:"ph\xFAt",normalized:"m"},{native:"gi\u1EDD",normalized:"h"},{native:"th\xEAm v\xE0o cu\u1ED1i",normalized:"append"},{native:"nh\xE2n b\u1EA3n",normalized:"clone"},{native:"t\u1EA1o ra",normalized:"make"},{native:"\u0111\u1EB7t gi\xE1 tr\u1ECB",normalized:"set"},{native:"gi\xE1 tr\u1ECB",normalized:"value"},{native:"ghi nh\u1EADt k\xFD",normalized:"log"},{native:"chuy\u1EC3n t\u1EDBi",normalized:"go"},{native:"ng\u01B0\u1EE3c l\u1EA1i",normalized:"else"},{native:"l\u1EB7p",normalized:"repeat"},{native:"ho\u1EB7c",normalized:"or"},{native:"kh\xF4ng",normalized:"not"},{native:"l\xE0",normalized:"is"},{native:"t\u1ED3n t\u1EA1i",normalized:"exists"},{native:"r\u1ED7ng",normalized:"empty"},{native:"javascript",normalized:"js"}],Fr=class extends R{constructor(){super();this.language="vi";this.direction="ltr";this.initializeKeywordsFromProfile(Ba,gv),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractors(Ji()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){let r=t.toLowerCase();return this.isKeyword(r)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},vv=new Fr});var fc={};N(fc,{hebrewProfile:()=>Fa});var Fa,Ha=z(()=>{"use strict";Fa={code:"he",name:"Hebrew",nativeName:"\u05E2\u05D1\u05E8\u05D9\u05EA",direction:"rtl",script:"hebrew",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"second",subjectDrop:!0},references:{me:"\u05D0\u05E0\u05D9",it:"\u05D6\u05D4",you:"\u05D0\u05EA\u05D4",result:"\u05EA\u05D5\u05E6\u05D0\u05D4",event:"\u05D0\u05D9\u05E8\u05D5\u05E2",target:"\u05D9\u05E2\u05D3",body:"\u05D2\u05D5\u05E3"},possessive:{marker:"\u05E9\u05DC",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"\u05E9\u05DC\u05D9",it:"\u05E9\u05DC\u05D5",you:"\u05E9\u05DC\u05DA"},keywords:{\u05E9\u05DC\u05D9:"me",\u05E9\u05DC\u05DA:"you",\u05E9\u05DC\u05D5:"it",\u05E9\u05DC\u05D4:"it"}},roleMarkers:{destination:{primary:"\u05E2\u05DC",alternatives:["\u05D1","\u05D0\u05DC","\u05DC"],position:"before"},source:{primary:"\u05DE",alternatives:["\u05DE\u05DF","\u05DE\u05D0\u05EA"],position:"before"},patient:{primary:"\u05D0\u05EA",position:"before"},style:{primary:"\u05E2\u05DD",alternatives:["\u05D1"],position:"before"}},keywords:{toggle:{primary:"\u05DE\u05EA\u05D2",alternatives:["\u05D4\u05D3\u05DC\u05E7 \u05DB\u05D1\u05D4"],normalized:"toggle"},add:{primary:"\u05D4\u05D5\u05E1\u05E3",normalized:"add"},remove:{primary:"\u05D4\u05E1\u05E8",alternatives:["\u05DE\u05D7\u05E7","\u05D4\u05D5\u05E8\u05D3"],normalized:"remove"},put:{primary:"\u05E9\u05D9\u05DD",alternatives:["\u05D4\u05E0\u05D7","\u05D4\u05DB\u05E0\u05E1"],normalized:"put"},append:{primary:"\u05E6\u05E8\u05E3",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05E1\u05D5\u05E3"],normalized:"append"},prepend:{primary:"\u05D4\u05E7\u05D3\u05DD",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D1\u05D4\u05EA\u05D7\u05DC\u05D4"],normalized:"prepend"},take:{primary:"\u05E7\u05D7",normalized:"take"},make:{primary:"\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05DB\u05DF"],normalized:"make"},clone:{primary:"\u05E9\u05DB\u05E4\u05DC",normalized:"clone"},swap:{primary:"\u05D4\u05D7\u05DC\u05E3",alternatives:["\u05D4\u05DE\u05E8"],normalized:"swap"},morph:{primary:"\u05D4\u05E4\u05D5\u05DA",alternatives:["\u05E2\u05E6\u05D1 \u05DE\u05D7\u05D3\u05E9"],normalized:"morph"},set:{primary:"\u05E7\u05D1\u05E2",alternatives:["\u05D4\u05D2\u05D3\u05E8"],normalized:"set"},get:{primary:"\u05E7\u05D1\u05DC",alternatives:["\u05D4\u05E9\u05D2"],normalized:"get"},increment:{primary:"\u05D4\u05D2\u05D3\u05DC",alternatives:["\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D7\u05D3"],normalized:"increment"},decrement:{primary:"\u05D4\u05E7\u05D8\u05DF",alternatives:["\u05D4\u05E4\u05D7\u05EA"],normalized:"decrement"},log:{primary:"\u05E8\u05E9\u05D5\u05DD",normalized:"log"},show:{primary:"\u05D4\u05E8\u05D0\u05D4",alternatives:["\u05D4\u05E6\u05D2"],normalized:"show"},hide:{primary:"\u05D4\u05E1\u05EA\u05E8",alternatives:["\u05D4\u05D7\u05D1\u05D0"],normalized:"hide"},transition:{primary:"\u05DE\u05E2\u05D1\u05E8",alternatives:["\u05D4\u05E0\u05E4\u05E9"],normalized:"transition"},on:{primary:"\u05D1",normalized:"on"},trigger:{primary:"\u05D4\u05E4\u05E2\u05DC",alternatives:["\u05E9\u05D2\u05E8"],normalized:"trigger"},send:{primary:"\u05E9\u05DC\u05D7",normalized:"send"},focus:{primary:"\u05DE\u05E7\u05D3",alternatives:["\u05D4\u05EA\u05DE\u05E7\u05D3"],normalized:"focus"},blur:{primary:"\u05D8\u05E9\u05D8\u05E9",alternatives:["\u05D4\u05E1\u05E8 \u05DE\u05D9\u05E7\u05D5\u05D3"],normalized:"blur"},empty:{primary:"\u05E8\u05D5\u05E7\u05DF",normalized:"empty"},open:{primary:"\u05E4\u05EA\u05D7",normalized:"open"},close:{primary:"\u05E1\u05D2\u05D5\u05E8",normalized:"close"},select:{primary:"\u05E1\u05DE\u05DF",normalized:"select"},clear:{primary:"\u05E0\u05E7\u05D4",normalized:"clear"},reset:{primary:"\u05D0\u05E4\u05E1",normalized:"reset"},breakpoint:{primary:"\u05E0\u05E7\u05D5\u05D3\u05EA-\u05E2\u05E6\u05D9\u05E8\u05D4",alternatives:["breakpoint"],normalized:"breakpoint"},go:{primary:"\u05DC\u05DA",alternatives:["\u05E0\u05D5\u05D5\u05D8"],normalized:"go"},scroll:{primary:"\u05D2\u05DC\u05D5\u05DC",normalized:"scroll"},push:{primary:"\u05D3\u05D7\u05D5\u05E3",alternatives:["\u05D4\u05D5\u05E1\u05E3-\u05DC\u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D4"],normalized:"push"},replace:{primary:"\u05D4\u05D7\u05DC\u05E3_\u05DB\u05EA\u05D5\u05D1\u05EA",alternatives:["\u05E9\u05E0\u05D4_\u05DB\u05EA\u05D5\u05D1\u05EA"],normalized:"replace"},process:{primary:"\u05E2\u05D1\u05D3",alternatives:["\u05E2\u05D9\u05D1\u05D5\u05D3"],normalized:"process"},wait:{primary:"\u05D7\u05DB\u05D4",alternatives:["\u05D4\u05DE\u05EA\u05DF"],normalized:"wait"},fetch:{primary:"\u05D4\u05D1\u05D0",alternatives:["\u05D8\u05E2\u05DF"],normalized:"fetch"},settle:{primary:"\u05D4\u05EA\u05D9\u05D9\u05E6\u05D1",normalized:"settle"},if:{primary:"\u05D0\u05DD",normalized:"if"},unless:{primary:"\u05D0\u05DC\u05D0",normalized:"unless"},when:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9"],normalized:"when"},where:{primary:"\u05D0\u05D9\u05E4\u05D4",alternatives:["\u05D4\u05D9\u05DB\u05DF"],normalized:"where"},else:{primary:"\u05D0\u05D7\u05E8\u05EA",alternatives:["\u05D0\u05DD \u05DC\u05D0"],normalized:"else"},repeat:{primary:"\u05D7\u05D6\u05D5\u05E8",normalized:"repeat"},for:{primary:"\u05E2\u05D1\u05D5\u05E8",alternatives:["\u05DC\u05DB\u05DC"],normalized:"for"},while:{primary:"\u05DB\u05DC \u05E2\u05D5\u05D3",alternatives:["\u05D1\u05D6\u05DE\u05DF"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u05D4\u05DE\u05E9\u05DA",normalized:"continue"},halt:{primary:"\u05E2\u05E6\u05D5\u05E8",alternatives:["\u05D4\u05E4\u05E1\u05E7"],normalized:"halt"},throw:{primary:"\u05D6\u05E8\u05D5\u05E7",normalized:"throw"},call:{primary:"\u05E7\u05E8\u05D0",alternatives:["\u05D6\u05DE\u05DF"],normalized:"call"},return:{primary:"\u05D4\u05D7\u05D6\u05E8",normalized:"return"},then:{primary:"\u05D0\u05D6",alternatives:["\u05D5\u05D0\u05D6"],normalized:"then"},and:{primary:"\u05D5\u05D2\u05DD",alternatives:["\u05D2\u05DD"],normalized:"and"},end:{primary:"\u05E1\u05D5\u05E3",alternatives:["\u05E1\u05D9\u05D5\u05DD"],normalized:"end"},js:{primary:"js",alternatives:["\u05D2\u05F3\u05D0\u05D5\u05D5\u05D4\u05E1\u05E7\u05E8\u05D9\u05E4\u05D8"],normalized:"js"},async:{primary:"\u05D0\u05E1\u05D9\u05E0\u05DB\u05E8\u05D5\u05E0\u05D9",normalized:"async"},tell:{primary:"\u05D0\u05DE\u05D5\u05E8",normalized:"tell"},default:{primary:"\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC",normalized:"default"},init:{primary:"\u05D0\u05EA\u05D7\u05DC",alternatives:["\u05D4\u05EA\u05D7\u05DC"],normalized:"init"},behavior:{primary:"\u05D4\u05EA\u05E0\u05D4\u05D2\u05D5\u05EA",normalized:"behavior"},install:{primary:"\u05D4\u05EA\u05E7\u05DF",normalized:"install"},measure:{primary:"\u05DE\u05D3\u05D5\u05D3",normalized:"measure"},beep:{primary:"\u05D1\u05D9\u05E4",normalized:"beep"},break:{primary:"\u05E9\u05D1\u05D5\u05E8",normalized:"break"},copy:{primary:"\u05D4\u05E2\u05EA\u05E7",normalized:"copy"},exit:{primary:"\u05E6\u05D0",normalized:"exit"},pick:{primary:"\u05D1\u05D7\u05E8",normalized:"pick"},render:{primary:"\u05E8\u05E0\u05D3\u05E8",normalized:"render"},into:{primary:"\u05DC\u05EA\u05D5\u05DA",alternatives:["\u05D0\u05DC"],normalized:"into"},before:{primary:"\u05DC\u05E4\u05E0\u05D9",normalized:"before"},after:{primary:"\u05D0\u05D7\u05E8\u05D9",normalized:"after"},click:{primary:"\u05DC\u05D7\u05D9\u05E6\u05D4",alternatives:["\u05E7\u05DC\u05D9\u05E7"],normalized:"click"},hover:{primary:"\u05E8\u05D9\u05D7\u05D5\u05E3",normalized:"hover"},submit:{primary:"\u05E9\u05DC\u05D9\u05D7\u05D4",alternatives:["\u05D4\u05D2\u05E9\u05D4"],normalized:"submit"},input:{primary:"\u05E7\u05DC\u05D8",alternatives:["\u05D4\u05D6\u05E0\u05D4"],normalized:"input"},change:{primary:"\u05E9\u05D9\u05E0\u05D5\u05D9",alternatives:["\u05E2\u05D3\u05DB\u05D5\u05DF"],normalized:"change"},until:{primary:"\u05E2\u05D3",normalized:"until"},event:{primary:"\u05D0\u05D9\u05E8\u05D5\u05E2",normalized:"event"},from:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],normalized:"from"},connect:{primary:"\u05D4\u05EA\u05D7\u05D1\u05E8",alternatives:["\u05D7\u05D1\u05E8","\u05D4\u05EA\u05D7\u05D1\u05E8\u05D5\u05EA"],normalized:"connect"},stream:{primary:"\u05D4\u05D6\u05E8\u05DD",alternatives:["\u05E1\u05D8\u05E8\u05D9\u05DD","\u05E9\u05D9\u05D3\u05D5\u05E8"],normalized:"stream"},live:{primary:"\u05D7\u05D9",alternatives:["\u05D1\u05D6\u05DE\u05DF-\u05D0\u05DE\u05EA","\u05DC\u05D9\u05D9\u05D1"],normalized:"live"},socket:{primary:"\u05E9\u05E7\u05E2",alternatives:["\u05E1\u05D5\u05E7\u05D8","\u05D5\u05D5\u05D1-\u05E1\u05D5\u05E7\u05D8","socket"],normalized:"socket"},bind:{primary:"\u05E7\u05E9\u05D5\u05E8",alternatives:["\u05D0\u05D2\u05D3","bind"],normalized:"bind"},intercept:{primary:"\u05D9\u05D9\u05E8\u05D8",alternatives:["\u05D9\u05D9\u05E8\u05D5\u05D8","intercept"],normalized:"intercept"},worker:{primary:"\u05E2\u05D5\u05D1\u05D3",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u05DE\u05E7\u05D5\u05E8-\u05D0\u05D9\u05E8\u05D5\u05E2\u05D9\u05DD"],normalized:"eventsource"}},tokenization:{prefixes:["\u05D4","\u05D5","\u05D1","\u05DB","\u05DC","\u05DE","\u05E9"]},eventHandler:{keyword:{primary:"\u05D1",normalized:"on"},sourceMarker:{primary:"\u05DE",alternatives:["\u05DE\u05D0\u05EA"],position:"before"},conditionalKeyword:{primary:"\u05DB\u05D0\u05E9\u05E8",alternatives:["\u05DB\u05E9","\u05D0\u05DD"]},eventMarker:{primary:"\u05D1",alternatives:["\u05DB\u05E9"],position:"before"},temporalMarkers:["\u05DB\u05D0\u05E9\u05E8","\u05DB\u05E9"]}}});var yc={};N(yc,{HebrewTokenizer:()=>Hr,hebrewTokenizer:()=>kv});var hv,zv,Hr,kv,gc=z(()=>{"use strict";D();Ha();G();X();Wo();qo();Pe();hv=new Set(["\u05E2\u05DC","\u05D0\u05EA","\u05D0\u05DC","\u05DE\u05DF","\u05E2\u05DD","\u05D1\u05EA\u05D5\u05DA","\u05DE\u05EA\u05D5\u05DA","\u05DC\u05D9\u05D3","\u05D0\u05D7\u05E8\u05D9","\u05DC\u05E4\u05E0\u05D9","\u05D1\u05D9\u05DF","\u05E2\u05D3","\u05E9\u05DC"]),zv=[{native:"\u05D0\u05DE\u05EA",normalized:"true"},{native:"\u05E9\u05E7\u05E8",normalized:"false"},{native:"null",normalized:"null"},{native:"\u05E8\u05D9\u05E7",normalized:"null"},{native:"\u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8",normalized:"undefined"},{native:"\u05E8\u05D0\u05E9\u05D5\u05DF",normalized:"first"},{native:"\u05D0\u05D7\u05E8\u05D5\u05DF",normalized:"last"},{native:"\u05D4\u05D1\u05D0",normalized:"next"},{native:"\u05D4\u05E7\u05D5\u05D3\u05DD",normalized:"previous"},{native:"\u05D4\u05E7\u05E8\u05D5\u05D1",normalized:"closest"},{native:"\u05D4\u05D5\u05E8\u05D4",normalized:"parent"},{native:"\u05DC\u05D7\u05D9\u05E6\u05D4",normalized:"click"},{native:"\u05E7\u05DC\u05D9\u05E7",normalized:"click"},{native:"\u05E7\u05DC\u05D8",normalized:"input"},{native:"\u05E9\u05D9\u05E0\u05D5\u05D9",normalized:"change"},{native:"\u05E9\u05DC\u05D9\u05D7\u05D4",normalized:"submit"},{native:"\u05DE\u05D9\u05E7\u05D5\u05D3",normalized:"focus"},{native:"\u05D8\u05E9\u05D8\u05D5\u05E9",normalized:"blur"},{native:"\u05DC\u05D7\u05D9\u05E6\u05EA \u05DE\u05E7\u05E9",normalized:"keydown"},{native:"\u05E9\u05D7\u05E8\u05D5\u05E8 \u05DE\u05E7\u05E9",normalized:"keyup"},{native:"\u05DE\u05E2\u05D1\u05E8 \u05E2\u05DB\u05D1\u05E8",normalized:"mouseover"},{native:"\u05D9\u05E6\u05D9\u05D0\u05EA \u05E2\u05DB\u05D1\u05E8",normalized:"mouseout"},{native:"load",normalized:"load"},{native:"resize",normalized:"resize"},{native:"scroll",normalized:"scroll"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"\u05D8\u05E2\u05D9\u05E0\u05D4",normalized:"load"},{native:"\u05D2\u05DC\u05D9\u05DC\u05D4",normalized:"scroll"},{native:"\u05D4\u05D9\u05D0",normalized:"it"},{native:"\u05D4\u05D5\u05D0",normalized:"it"},{native:"\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"s"},{native:"\u05E9\u05E0\u05D9\u05D5\u05EA",normalized:"s"},{native:"\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4",normalized:"ms"},{native:"\u05D3\u05E7\u05D4",normalized:"m"},{native:"\u05D3\u05E7\u05D5\u05EA",normalized:"m"},{native:"\u05E9\u05E2\u05D4",normalized:"h"},{native:"\u05E9\u05E2\u05D5\u05EA",normalized:"h"}],Hr=class extends R{constructor(){super();this.language="he";this.direction="rtl";this.initializeKeywordsFromProfile(Fa,zv),this.registerExtractors(W()),this.registerExtractor(new _),this.registerExtractor(new M),this.registerExtractor(new ee),this.registerExtractor(_o()),this.registerExtractors(Oo()),this.registerExtractor(new A),this.registerExtractor(new j)}classifyToken(t){return hv.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(t)?"event-modifier":t.startsWith("#")||t.startsWith(".")||t.startsWith("[")||t.startsWith("*")||t.startsWith("<")?"selector":t.startsWith('"')||t.startsWith("'")||/^\d/.test(t)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(t)?"operator":t.startsWith("/")||t.startsWith("./")||t.startsWith("http")?"url":"identifier"}},kv=new Hr});var Zk={};N(Zk,{ASTBuilder:()=>$t,DEFAULT_CONFIDENCE_THRESHOLD:()=>_c,HIGH_CONFIDENCE_THRESHOLD:()=>qc,SUPPORTED_LANGUAGES:()=>Ot,VERSION:()=>Hk,buildAST:()=>Vc,canLoadLanguage:()=>hc,canParse:()=>ti,createCommandNode:()=>me,createEventHandler:()=>Ke,createLiteral:()=>Q,createPropertyPath:()=>Le,createReference:()=>de,createSelector:()=>be,fromExplicit:()=>ni,getCommandMapper:()=>Kt,getLoadedLanguages:()=>zc,getPatternsForLanguage:()=>mp,getPatternsForLanguageAndCommand:()=>Gk,getProfile:()=>sn,getRegisteredLanguages:()=>Bt,getTokenizer:()=>on,getUnloadedLanguages:()=>kc,isExplicitSyntax:()=>_e,isLanguageRegistered:()=>Te,isLanguageSupported:()=>mi,loadLanguage:()=>Ga,loadLanguages:()=>vc,parse:()=>ot,parseAny:()=>ai,parseExplicit:()=>nt,registerCommandMapper:()=>si,render:()=>Vt,renderExplicit:()=>_t,toExplicit:()=>ri,tokenize:()=>Uk,tryGetProfile:()=>H});ve();var Ua={en:async()=>{let{englishTokenizer:n}=await Promise.resolve().then(()=>(Fo(),Do)),{englishProfile:e}=await Promise.resolve().then(()=>(Yt(),Ai)),{buildEnglishPatterns:t}=await Promise.resolve().then(()=>(ys(),fs));return{tokenizer:n,profile:e,buildPatterns:t}},es:async()=>{let{spanishTokenizer:n}=await Promise.resolve().then(()=>(ws(),xs)),{spanishProfile:e}=await Promise.resolve().then(()=>(Hn(),vs));return{tokenizer:n,profile:e}},ja:async()=>{let{japaneseTokenizer:n}=await Promise.resolve().then(()=>(Ps(),Es)),{japaneseProfile:e}=await Promise.resolve().then(()=>(Xn(),Ts));return{tokenizer:n,profile:e}},ar:async()=>{let{arabicTokenizer:n}=await Promise.resolve().then(()=>(Ns(),Rs)),{arabicProfile:e}=await Promise.resolve().then(()=>(Yn(),Cs));return{tokenizer:n,profile:e}},ko:async()=>{let{koreanTokenizer:n}=await Promise.resolve().then(()=>(Os(),Ms)),{koreanProfile:e}=await Promise.resolve().then(()=>(Qn(),js));return{tokenizer:n,profile:e}},zh:async()=>{let{chineseTokenizer:n}=await Promise.resolve().then(()=>(Vs(),Is)),{chineseProfile:e}=await Promise.resolve().then(()=>(ta(),Ws));return{tokenizer:n,profile:e}},tr:async()=>{let{turkishTokenizer:n}=await Promise.resolve().then(()=>(Ds(),Bs)),{turkishProfile:e}=await Promise.resolve().then(()=>(aa(),$s));return{tokenizer:n,profile:e}},pt:async()=>{let{portugueseTokenizer:n}=await Promise.resolve().then(()=>(Ys(),Zs)),{portugueseProfile:e}=await Promise.resolve().then(()=>(oa(),Fs));return{tokenizer:n,profile:e}},fr:async()=>{let{frenchTokenizer:n}=await Promise.resolve().then(()=>(nl(),rl)),{frenchProfile:e}=await Promise.resolve().then(()=>(ca(),Js));return{tokenizer:n,profile:e}},de:async()=>{let{germanTokenizer:n}=await Promise.resolve().then(()=>(cl(),ll)),{germanProfile:e}=await Promise.resolve().then(()=>(da(),al));return{tokenizer:n,profile:e}},id:async()=>{let{indonesianTokenizer:n}=await Promise.resolve().then(()=>(dl(),ml)),{indonesianProfile:e}=await Promise.resolve().then(()=>(ya(),pl));return{tokenizer:n,profile:e}},qu:async()=>{let{quechuaTokenizer:n}=await Promise.resolve().then(()=>(vl(),gl)),{quechuaProfile:e}=await Promise.resolve().then(()=>(va(),ul));return{tokenizer:n,profile:e}},sw:async()=>{let{swahiliTokenizer:n}=await Promise.resolve().then(()=>(kl(),zl)),{swahiliProfile:e}=await Promise.resolve().then(()=>(xa(),hl));return{tokenizer:n,profile:e}},bn:async()=>{let{bengaliTokenizer:n}=await Promise.resolve().then(()=>(El(),Tl)),{bengaliProfile:e}=await Promise.resolve().then(()=>(Sa(),Sl));return{tokenizer:n,profile:e}},hi:async()=>{let{hindiTokenizer:n}=await Promise.resolve().then(()=>(Nl(),Rl)),{hindiProfile:e}=await Promise.resolve().then(()=>(Ea(),Cl));return{tokenizer:n,profile:e}},it:async()=>{let{italianTokenizer:n}=await Promise.resolve().then(()=>(Vl(),Il)),{italianProfile:e}=await Promise.resolve().then(()=>(La(),Ml));return{tokenizer:n,profile:e}},ms:async()=>{let{malayTokenizer:n}=await Promise.resolve().then(()=>(Kl(),ql)),{malayProfile:e}=await Promise.resolve().then(()=>(Na(),_l));return{tokenizer:n,profile:e}},pl:async()=>{let{polishTokenizer:n}=await Promise.resolve().then(()=>(Hl(),Fl)),{polishProfile:e}=await Promise.resolve().then(()=>(ja(),$l));return{tokenizer:n,profile:e}},ru:async()=>{let{russianTokenizer:n}=await Promise.resolve().then(()=>(Yl(),Zl)),{russianProfile:e}=await Promise.resolve().then(()=>(Oa(),Xl));return{tokenizer:n,profile:e}},th:async()=>{let{thaiTokenizer:n}=await Promise.resolve().then(()=>(ec(),Ql)),{thaiProfile:e}=await Promise.resolve().then(()=>(Ia(),Jl));return{tokenizer:n,profile:e}},tl:async()=>{let{tagalogTokenizer:n}=await Promise.resolve().then(()=>(ic(),ac)),{tagalogProfile:e}=await Promise.resolve().then(()=>(_a(),tc));return{tokenizer:n,profile:e}},uk:async()=>{let{ukrainianTokenizer:n}=await Promise.resolve().then(()=>(pc(),cc)),{ukrainianProfile:e}=await Promise.resolve().then(()=>($a(),lc));return{tokenizer:n,profile:e}},vi:async()=>{let{vietnameseTokenizer:n}=await Promise.resolve().then(()=>(uc(),dc)),{vietnameseProfile:e}=await Promise.resolve().then(()=>(Da(),mc));return{tokenizer:n,profile:e}},he:async()=>{let{hebrewTokenizer:n}=await Promise.resolve().then(()=>(gc(),yc)),{hebrewProfile:e}=await Promise.resolve().then(()=>(Ha(),fc));return{tokenizer:n,profile:e}}},Ot=Object.keys(Ua);function xv(n,e){ci(n,e.tokenizer,e.profile),e.patterns?an(n,e.patterns):e.buildPatterns&&an(n,e.buildPatterns())}async function wv(n,e){try{let t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch ${e}: ${t.status} ${t.statusText}`);let r=await t.text(),a=new Blob([r],{type:"application/javascript"}),i=URL.createObjectURL(a);try{let o=await import(i);if(!o.tokenizer||!o.profile)throw new Error("Invalid language module: missing tokenizer or profile");return o}finally{URL.revokeObjectURL(i)}}catch(t){throw new Error(`Failed to load language '${n}' from ${e}: ${t instanceof Error?t.message:String(t)}`)}}async function Ga(n,e={}){let{url:t,module:r,skipIfRegistered:a=!0}=e;if(a&&Te(n))return{code:n,loaded:!1};try{let i;if(r)i=r;else if(t)i=await wv(n,t);else{let o=Ua[n];if(!o)throw new Error(`Unknown language: ${n}. Supported: ${Ot.join(", ")}`);i=await o()}return xv(n,i),{code:n,loaded:!0}}catch(i){return{code:n,loaded:!1,error:i instanceof Error?i.message:String(i)}}}async function vc(n,e={}){return Promise.all(n.map(t=>Ga(t,e)))}function hc(n){return n in Ua}function zc(){return Ot.filter(Te)}function kc(){return Ot.filter(n=>!Te(n))}ve();ve();D();function pe(n,e){return di(n,e)}function Ur(){return Bt()}ve();ve();je();function be(n){let e="complex";return n.startsWith("#")&&!n.includes(" ")?e="id":n.startsWith(".")&&!n.includes(" ")?e="class":n.startsWith("[")&&n.endsWith("]")?e="attribute":/^[a-z][a-z0-9]*$/i.test(n)&&(e="element"),{type:"selector",value:n,selectorKind:e}}function Q(n,e){let t={type:"literal",value:n};return e!==void 0?{type:"literal",value:n,dataType:e}:t}function Xe(n){return Ht(n)}function de(n){return{type:"reference",value:n}}function Le(n,e){return{type:"property-path",object:n,property:e}}function me(n,e,t){let r={kind:"command",action:n,roles:new Map(Object.entries(e))};return t!==void 0?{...r,metadata:t}:r}function Ke(n,e,t,r,a,i){let o=new Map;o.set("event",n);let s={kind:"event-handler",action:"on",roles:o,body:e};return t!==void 0&&(s.eventModifiers=t),r!==void 0&&(s.metadata=r),a!==void 0&&a.length>0&&(s.parameterNames=a),i!==void 0&&i.length>0&&(s.additionalEvents=i),s}function xc(n,e,t,r,a){let i={kind:"behavior",action:"behavior",roles:new Map,name:n,parameters:e,eventHandlers:t};return r!==void 0&&r.length>0&&(i.initBlock=r),a!==void 0&&(i.metadata=a),i}function wc(n,e,t,r){let a={kind:"def",action:"def",roles:new Map,name:n,parameters:e,body:t};return r!==void 0&&(a.metadata=r),a}function Wt(n,e="then",t){let r={kind:"compound",action:"compound",roles:new Map,statements:n,chainType:e};return t!==void 0&&(r.metadata=t),r}function bc(n,e,t,r){let a=new Map;a.set("condition",n);let i={kind:"conditional",action:"if",roles:a,thenBranch:e};return t!==void 0&&(i.elseBranch=t),r!==void 0&&(i.metadata=r),i}function It(n,e){return!e||e.length===0||e.includes(n)||e.includes("expression")?!0:n==="property-path"?e.some(t=>["selector","reference","expression"].includes(t)):n==="expression"?e.some(t=>["selector","reference","expression"].includes(t)):!1}Ue();function Ie(n,e){let t=n.possessive?.keywords?.[e];if(t)return t;let r=n.possessive?.specialForms;if(r){for(let[a,i]of Object.entries(r))if(i===e)return a}}ve();kt();var Sc=new Set(["\u0628\u062F\u0644","\u063A\u064A\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062C\u0639\u0644","\u0639\u064A\u0646","\u0632\u062F","\u0627\u0646\u0642\u0635","\u0633\u062C\u0644","\u0623\u0638\u0647\u0631","\u0623\u062E\u0641","\u0634\u063A\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062A\u0648\u0642\u0641","\u0627\u0646\u0633\u062E","\u0627\u062D\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062A\u0638\u0631","\u0627\u0646\u062A\u0642\u0627\u0644","\u0623\u0648"]),bv={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]},Xa=class{calculate(e){return this.calculateWithBreakdown(e).final}calculateWithBreakdown(e){let t=this.scoreRoleCoverage(e),r=this.scoreStemPenalty(e),a=this.scoreLanguageBoost(e),i=this.scoreLanguageAdjustment(e),o=t;return o=Math.max(.5,o+r),o=Math.min(1,o+a),o=Math.max(0,Math.min(1,o+i)),{roleCoverage:t,stemPenalty:r,languageBoost:a,languageAdjustment:i,final:o}}scoreRoleCoverage(e){let{pattern:t,captured:r}=e,a=0,i=0,o=s=>t.extraction?.[s]?.default!==void 0;for(let s of t.template.tokens)if(s.type==="role")i+=1,r.has(s.role)&&(a+=1);else if(s.type==="group")for(let l of s.tokens)l.type==="role"&&(i+=.8,r.has(l.role)?a+=.8:o(l.role)&&(a+=.8*.6));return i>0?a/i:1}scoreStemPenalty(e){let{stemMatchCount:t,totalKeywordMatches:r}=e;return t<=0||r<=0?0:-(t/r)*.15}scoreLanguageBoost(e){let{pattern:t}=e;if(t.language!=="ar")return 0;let r=t.template.tokens[0];return!r||r.type!=="literal"?0:Sc.has(r.value)||r.alternatives?.some(a=>Sc.has(a))?.15:0}scoreLanguageAdjustment(e){let{pattern:t,captured:r}=e;if(t.language!=="ar")return 0;let a=0;for(let[i,o]of r.entries()){let s=bv[i];if(!s||s.length===0)continue;let l="metadata"in o?o.metadata:void 0;l&&typeof l.prepositionValue=="string"&&(s.includes(l.prepositionValue)?a+=.1:a-=.1)}return Math.max(-.1,Math.min(.1,a))}},Tc=new Xa;var Sv=new Set(Object.values(He).filter(n=>n.bareKeyword===!0).map(n=>n.action)),K=class K{constructor(e){this.matchCache=new Map;this.stemMatchCount=0;this.totalKeywordMatches=0;this.confidenceModel=e??Tc}matchPattern(e,t){let r=e.mark(),a=new Map;if(this.currentProfile=H(t.language),this.currentPatternCommand=t.command,this.stemMatchCount=0,this.totalKeywordMatches=0,!this.matchTokenSequence(e,t.template.tokens,a))return e.reset(r),null;let o=this.confidenceModel.calculate({pattern:t,captured:a,stemMatchCount:this.stemMatchCount,totalKeywordMatches:this.totalKeywordMatches});return this.applyExtractionRules(t,a),{pattern:t,captured:a,consumedTokens:e.position()-r.position,confidence:o}}matchBest(e,t){this.matchCache.clear();let r=[],a=e.position();for(let o of t){let s=e.mark(),l=`${a}:${o.id}`,c;this.matchCache.has(l)?c=this.matchCache.get(l):(c=this.matchPattern(e,o),this.matchCache.set(l,c)),c&&r.push(c),e.reset(s)}if(r.length===0)return null;r.sort((o,s)=>{let l=s.pattern.priority-o.pattern.priority;return l!==0?l:s.confidence-o.confidence});let i=r[0];return this.matchPattern(e,i.pattern),i}matchTokenSequence(e,t,r,a){let i=t[0],o=i?.type==="literal"&&(i.value==="and"||i.value==="then"||i.alternatives?.includes("and")||i.alternatives?.includes("then"));if(this.currentProfile?.code==="ar"&&!o)for(;e.peek()?.kind==="conjunction";)e.advance();let s=0;for(let l=0;l<t.length;l++){let c=t[l];s>0&&c.type==="literal"&&this.tryConsumeEventSourceClause(e,r,c);let p=this.matchPatternToken(e,c,r,t[l+1]??a);if(s=c.type==="role"&&c.role==="event"?2:Math.max(0,s-1),!p){if(this.isOptional(c))continue;return!1}}return!0}tryConsumeEventSourceClause(e,t,r){if(t.has("source"))return;let a=e.peek(),i=e.peek(1);if(!a||!i||this.patternTokenWouldMatch(r,a))return;let o=this.currentProfile?.roleMarkers?.source,s=c=>{if(c.kind!=="particle"&&c.kind!=="keyword")return!1;if((c.normalized??"").toLowerCase()==="source")return!0;if(!o)return!1;let p=c.value.toLowerCase();return o.primary?.toLowerCase()===p?!0:!!o.alternatives?.some(m=>m.toLowerCase()===p)},l=o?.position;if(l!=="after"&&s(a)&&i.kind==="selector"){e.advance();let c=this.tokenToSemanticValue(e.advance());c&&t.set("source",c);return}if(l==="after"&&a.kind==="selector"&&s(i)){let c=this.tokenToSemanticValue(a);e.advance(),e.advance(),c&&t.set("source",c)}}matchPatternToken(e,t,r,a){switch(t.type){case"literal":return this.matchLiteralToken(e,t);case"role":return this.matchRoleToken(e,t,r,a);case"group":return this.matchGroupToken(e,t,r,a);default:return!1}}matchLiteralToken(e,t){let r=e.peek();if(!r)return!1;let a=this.getMatchType(r,t.value);if(a!=="none")return this.totalKeywordMatches++,a==="stem"&&this.stemMatchCount++,e.advance(),!0;if(t.alternatives)for(let i of t.alternatives){let o=this.getMatchType(r,i);if(o!=="none")return this.totalKeywordMatches++,o==="stem"&&this.stemMatchCount++,e.advance(),!0}for(let i of[t.value,...t.alternatives??[]])for(let o of["-","_"])if(i.includes(o)&&this.tryMatchShatteredCompound(e,i,o))return this.totalKeywordMatches++,!0;return!1}tryFoldHyphenActionKeyword(e){let t=this.currentProfile;if(!t)return null;let r=e.mark(),a=[];for(;;){let o=e.peek();if(!o||o.kind!=="identifier"&&o.kind!=="keyword")break;a.push(o.value),e.advance();let s=e.peek();if(!s||s.value!=="-")break;e.advance(),a.push("-")}if(a.length<3||a[a.length-1]==="-")return e.reset(r),null;let i=a.join("").toLowerCase();for(let[o,s]of Object.entries(t.keywords))if(s.primary.toLowerCase()===i||s.alternatives?.some(l=>l.toLowerCase()===i))return Q(o);return e.reset(r),null}tryMatchShatteredCompound(e,t,r){let a=t.split(r);if(a.length<2||a.some(o=>o.length===0))return!1;let i=e.mark();for(let o=0;o<a.length;o++){if(o>0){let l=e.peek();if(!l||l.value!==r)return e.reset(i),!1;e.advance()}let s=e.peek();if(!s||s.kind!=="identifier"&&s.kind!=="keyword"&&s.kind!=="particle"||s.value.toLowerCase()!==a[o].toLowerCase())return e.reset(i),!1;e.advance()}return!0}matchRoleToken(e,t,r,a){this.skipNoiseWords(e);let i=e.peek();if(!i)return t.optional||!1;if(t.role==="action"&&this.currentProfile&&e.peek(1)?.value==="-"){let v=this.tryFoldHyphenActionKeyword(e);if(v)return r.set(t.role,v),!0}if(t.role==="event"&&this.currentPatternCommand==="on"){if(!K.tokenLooksLikeEvent(i))return t.optional||!1;let v=(i.normalized??i.value).toLowerCase();if(K.POSITIONAL_OR_SCOPE_KEYWORDS.has(v)||this.currentProfile&&(Ie(this.currentProfile,i.value)??Ie(this.currentProfile,v))!==void 0||i.value.includes("?."))return t.optional||!1}if(t.role==="event"){let v=(i.normalized??i.value).toLowerCase();if(K.STRUCTURAL_NEVER_EVENT.has(v))return t.optional||!1}if(t.role==="duration"){let v=(i.normalized??i.value).toLowerCase();if(K.POSITIONAL_OR_SCOPE_KEYWORDS.has(v))return t.optional||!1}if(t.optional&&a===void 0&&t.role!=="event"&&t.role!=="action"&&i.kind==="keyword"&&(i.normalized??i.value).toLowerCase()in He)return!0;let o=this.tryMatchPositionalExpression(e);if(o)return t.expectedTypes&&t.expectedTypes.length>0&&!It(o.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,o),!0);let s=this.tryMatchCaretScopeExpression(e);if(s)return t.expectedTypes&&t.expectedTypes.length>0&&!It(s.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,s),!0);if(t.role!=="event"&&(!t.expectedTypes||t.expectedTypes.includes("expression"))){let v=this.tryMatchOperatorRunExpression(e);if(v)return r.set(t.role,v),!0}if(t.expectedTypes?.includes("property-path")){let v=this.tryMatchOfPossessiveExpression(e);if(v)return r.set(t.role,v),!0;let b=this.tryMatchPostNominalPossessiveExpression(e);if(b)return r.set(t.role,b),!0}let l=this.tryMatchPossessiveExpression(e);if(l)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(l.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,l),!0);let c=this.tryMatchMethodCallExpression(e);if(c)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(c.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,c),!0);let m=t.role==="event"&&this.currentPatternCommand==="on"||K.DECLARATION_COMMANDS.has(this.currentPatternCommand??"")?null:this.tryMatchBareCallExpression(e);if(m)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(m.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,m),!0);let d=this.tryMatchPossessiveSelectorExpression(e);if(d)return t.expectedTypes&&t.expectedTypes.length>0&&!It(d.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,d),!0);let u=t.role!=="condition",f=this.tryMatchPropertyAccessExpression(e,u);if(f)return t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(f.type)&&!t.expectedTypes.includes("expression")?t.optional||!1:(r.set(t.role,f),!0);let y=this.tryMatchSelectorPropertyExpression(e);if(y)return t.expectedTypes&&t.expectedTypes.length>0&&!It(y.type,t.expectedTypes)?t.optional||!1:(r.set(t.role,y),!0);if(i.kind==="identifier"&&i.value==="{"&&(!t.expectedTypes?.length||t.expectedTypes.includes("literal"))){let v=this.tryMatchBraceRunLiteral(e);if(v)return r.set(t.role,v),!0}let g=this.tokenToSemanticValue(i);if(!g)return t.optional||!1;if(t.expectedTypes&&t.expectedTypes.length>0&&!t.expectedTypes.includes(g.type)){let v=g.type==="selector"&&String(g.value).startsWith("@"),b=t.expectedTypes.some(E=>E==="expression"||E==="reference");if(!(v&&b))return t.optional||!1}if(r.set(t.role,g),e.advance(),t.role==="event"){let v=e.peek();v&&v.kind==="selector"&&v.value.startsWith("[")&&"value"in g&&(r.set(t.role,Q(`${String(g.value)}${v.value}`)),e.advance());let b=e.peek();if(b&&(b.kind==="particle"||b.kind==="keyword")&&(b.normalized??"").toLowerCase()==="source"&&!this.patternTokenWouldMatch(a,b)){let E=e.peek(1);if(E&&(E.kind==="selector"||E.kind==="identifier")){e.advance();let L=this.tokenToSemanticValue(e.advance());L&&!r.has("source")&&r.set("source",L)}}}return!0}patternTokenWouldMatch(e,t){return e?e.type==="literal"?this.getMatchType(t,e.value)!=="none"?!0:!!e.alternatives?.some(r=>this.getMatchType(t,r)!=="none"):e.type==="group"?this.patternTokenWouldMatch(e.tokens?.[0],t):!1:!1}tryMatchPositionalExpression(e){let t=e.peek();if(!t)return null;let r=(t.normalized??t.value).toLowerCase();if(!K.POSITIONAL_KEYWORDS.has(r)&&!K.POSITIONAL_KEYWORDS.has(t.value.toLowerCase()))return null;let a=e.mark(),i=[t.normalized??t.value];e.advance();let o=e.peek();if(!o||o.kind!=="selector")return e.reset(a),null;i.push(o.value),e.advance();let s=0;for(;s++<8;){let p=e.peek();if(p&&p.kind==="selector"&&p.value.startsWith("."))i.push(p.value),e.advance();else break}let l=e.peek(),c=e.peek(1);return l&&c&&c.kind==="selector"&&(l.kind==="keyword"||l.kind==="particle"||l.kind==="identifier")&&!K.POSITIONAL_KEYWORDS.has((l.normalized??l.value).toLowerCase())&&!K.COMMAND_ACTION_KEYWORDS.has((l.normalized??l.value).toLowerCase())&&(i.push(l.normalized??l.value,c.value),e.advance(),e.advance()),{type:"expression",raw:i.join(" ")}}tryMatchCaretScopeExpression(e){let t=e.peek();if(!t||t.kind!=="identifier"||!t.value.startsWith("^"))return null;let r=e.peek(1),a=e.peek(2),i=(r?.normalized??"").toLowerCase(),o=!!r&&(r.value.toLowerCase()==="on"||i==="destination"||i==="on");return!r||!a||a.kind!=="selector"||!o?null:(e.advance(),e.advance(),e.advance(),{type:"expression",raw:`${t.value} on ${a.value}`})}isOfPossessiveMarker(e){let t=e.value.toLowerCase(),r=(e.normalized??"").toLowerCase();if(t==="of"||t==="ng"||r==="of"||r==="source")return!0;let a=this.currentProfile?.code?K.OF_POSSESSIVE_MARKERS[this.currentProfile.code]:void 0;return!!a&&a.has(t)}tryMatchOperatorRunExpression(e){let t=e.mark(),r=e.position();if(!this.tryConsumeRunOperand(e))return e.reset(t),null;let a=1;for(;;){let o=e.peek();if(!o||!K.RUN_OPERATORS.has(o.value))break;let s=e.mark();if(e.advance(),!this.tryConsumeRunOperand(e)){e.reset(s);break}a++}if(a<2)return e.reset(t),null;let i=e.tokens.slice(r,e.position()).map(o=>o.value).join(" ");return{type:"expression",raw:i,value:i}}tryConsumeRunOperand(e){let t=e.peek();if(!t)return!1;if(t.value==="("){let r=e.mark(),a=0;for(;!e.isAtEnd();){let i=e.advance();if(i.value==="(")a++;else if(i.value===")"&&(a--,a===0))return!0}return e.reset(r),!1}return this.tryMatchPossessiveExpression(e)?!0:(t.kind==="literal"||t.kind==="identifier"||t.kind==="selector"||t.kind==="keyword")&&!K.RUN_OPERATORS.has(t.value)&&t.value!==")"?(e.advance(),!0):!1}tryMatchOfPossessiveExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||!this.isOfPossessiveMarker(a))return e.reset(r),null;e.advance();let i=e.peek();return!i||i.kind!=="selector"?(e.reset(r),null):(e.advance(),Le(be(i.value),t.value))}tryMatchPossessiveExpression(e){let t=e.peek();if(!t||!this.currentProfile)return null;let r=[t.value,t.normalized].filter(Boolean),a;for(let l of r)if(a=Ie(this.currentProfile,l)??Ie(this.currentProfile,l.toLowerCase()),a)break;if(!a)return null;let i=e.mark();e.advance();let o=this.currentProfile.possessive?.connectors;if(o&&o.length>0){let l=e.peek();if(l){let c=l.value.toLowerCase(),p=(l.normalized??"").toLowerCase();o.some(m=>m.toLowerCase()===c||m.toLowerCase()===p)&&e.advance()}}let s=e.peek();if(!s||ds(this.currentProfile.code,s.value))return e.reset(i),null;if(s.kind==="identifier"||s.kind==="keyword"&&!this.isStructuralKeyword(s.value)&&!(s.normalized&&this.isStructuralKeyword(s.normalized))&&!(s.normalized&&this.isRoleMarkerConcept(s.normalized))||s.kind==="selector"&&s.value.startsWith("*")||s.kind==="selector"&&s.value.startsWith("@")||s.kind==="selector"&&s.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(s.value)){e.advance();let l=s.value;s.kind==="selector"&&l.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(l)&&(l=l.substring(1));let c=l;for(;e.peek()?.kind==="selector"&&e.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(e.peek().value);)c+=e.peek().value,e.advance();let p=e.peek();if(p&&p.value.startsWith("(")){let m="",d=0,u=0;for(;!e.isAtEnd()&&u++<K.MAX_METHOD_ARGS+2;){let f=e.peek();if(!f)break;m+=f.value,e.advance();for(let y of f.value)y==="("?d++:y===")"&&d--;if(d<=0)break}c+=m}return Le(de(a),c)}return e.reset(i),null}tryMatchPostNominalPossessiveExpression(e){if(!this.currentProfile||this.currentProfile.possessive?.markerPosition!=="after-object")return null;let t=m=>{for(let d of[m.value,m.normalized].filter(Boolean))if(Ie(this.currentProfile,d)??Ie(this.currentProfile,d.toLowerCase()))return!0;return!1},r=e.peek();if(!r)return null;let a=r.kind==="selector"&&r.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(r.value);if(!(r.kind==="identifier"&&!this.isStructuralKeyword(r.value)&&!(r.normalized&&this.isStructuralKeyword(r.normalized))&&!(r.normalized&&this.isRoleMarkerConcept(r.normalized))||r.kind==="selector"&&(r.value.startsWith("*")||r.value.startsWith("@"))||a)||t(r))return null;let o=e.mark(),s=r.value;a&&(s=s.substring(1)),e.advance();let l=s;for(;e.peek()?.kind==="selector"&&e.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(e.peek().value);)l+=e.peek().value,e.advance();let c=e.peek();if(!c)return e.reset(o),null;let p;for(let m of[c.value,c.normalized].filter(Boolean))if(p=Ie(this.currentProfile,m)??Ie(this.currentProfile,m.toLowerCase()),p)break;return p?(e.advance(),Le(de(p),l)):(e.reset(o),null)}isStructuralKeyword(e){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(e.toLowerCase())}isRoleMarkerConcept(e){return new Set(["destination","source","patient","object","event","eventmarker","manner","instrument"]).has(e.toLowerCase())}static tokenLooksLikeEvent(e){if(e.kind==="selector"||e.kind==="url"||e.kind==="literal")return!1;let t=e.value;if(/[/#@*]/.test(t)||t.startsWith('"')||t.startsWith("'")||t.startsWith("`"))return!1;let r=e.normalized?.toLowerCase();return!(r&&Sv.has(r))}tryMatchBraceRunLiteral(e){let t=e.peek();if(!t||t.kind!=="identifier"||t.value!=="{")return null;let r=e.mark();e.advance();let a=["{"],i=1,o=0;for(;!e.isAtEnd()&&o++<K.MAX_BRACE_RUN_TOKENS;){let s=e.advance();if(!s)break;if(s.value==="{")i++;else if(s.value==="}"&&(i--,i===0))return a.push("}"),Q(a.join(" "));a.push(s.value)}return e.reset(r),null}tryMatchBareCallExpression(e){let t=e.peek();if(!t||t.kind!=="identifier"||!/^[A-Za-z_][\w$]*$/.test(t.value))return null;let r=e.peek(1);if(!r||r.value!=="(")return null;let a=e.mark();e.advance(),e.advance();let i=[],o=!1,s=0;for(;!e.isAtEnd()&&s++<K.MAX_METHOD_ARGS+2;){let l=e.peek();if(!l)break;if(l.value===")"){e.advance(),o=!0;break}if(l.value===","){e.advance();continue}i.push(l.value),e.advance()}return o?{type:"expression",raw:`${t.value}(${i.join(", ")})`}:(e.reset(a),null)}tryMatchMethodCallExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="operator"||a.value!==".")return e.reset(r),null;e.advance();let i=e.peek();if(!i||i.kind!=="identifier")return e.reset(r),null;e.advance();let o=e.peek();if(!o||o.kind!=="punctuation"||o.value!=="(")return e.reset(r),null;e.advance();let s=[];for(;!e.isAtEnd()&&s.length<K.MAX_METHOD_ARGS;){let c=e.peek();if(!c)break;if(c.kind==="punctuation"&&c.value===")"){e.advance();break}if(c.kind==="punctuation"&&c.value===","){e.advance();continue}s.push(c.value),e.advance()}return{type:"expression",raw:`${t.value}.${i.value}(${s.join(", ")})`}}tryMatchPropertyAccessExpression(e,t=!0){let r=e.peek();if(!r||r.kind!=="identifier"&&r.kind!=="keyword")return null;let a=e.mark();e.advance();let i=r.value.toLowerCase(),o=e.peek();if((r.kind==="identifier"||K.PROPERTY_ACCESS_BASES.has(i))&&o&&o.kind==="selector"&&/^\.[a-zA-Z_]/.test(o.value)){let u=r.value,f=[],y=0;for(;y<K.MAX_PROPERTY_DEPTH;){let b=e.peek();if(b&&b.kind==="selector"&&/^\.[a-zA-Z_]/.test(b.value))u+=`.${b.value.slice(1)}`,f.push(b.value.slice(1)),e.advance(),y++;else break}let g=e.peek(),v=!!g&&g.value.startsWith("(");if(t&&!v&&f.length>0&&Xe(i))return Le(de(i),f.join("."));if(v){let b=e.mark(),E=[],L=0,w=!1;for(;!e.isAtEnd();){let k=e.peek();if(!k)break;if(k.value==="(")L++;else if(k.value===")"){if(E.push(k.value),e.advance(),L--,L===0&&(w=!0),w)break;continue}E.push(k.value),e.advance()}w?u+=E.join(""):e.reset(b)}return{type:"expression",raw:u}}let s=e.peek();if(!s||s.kind!=="operator"||s.value!==".")return e.reset(a),null;e.advance();let l=e.peek();if(!l||l.kind!=="identifier")return e.reset(a),null;e.advance();let c=`${r.value}.${l.value}`,p=1;for(;!e.isAtEnd()&&p<K.MAX_PROPERTY_DEPTH;){let u=e.peek();if(!u||u.kind!=="operator"||u.value!==".")break;e.advance();let f=e.peek();if(!f||f.kind!=="identifier")break;e.advance(),c+=`.${f.value}`,p++}let m=e.peek();if(m&&m.kind==="punctuation"&&m.value==="("){e.advance();let u=[],f=0;for(;!e.isAtEnd()&&u.length<K.MAX_METHOD_ARGS;){let g=e.peek();if(!g)break;if(g.kind==="punctuation"&&g.value===")"){if(f===0){e.advance();break}f--}if(g.kind==="punctuation"&&g.value==="("&&f++,g.kind==="punctuation"&&g.value===","){e.advance();continue}u.push(g.value),e.advance()}return{type:"expression",raw:`${c}(${u.join(", ")})`}}let d=r.value.toLowerCase();if(t&&Xe(d)){let u=c.split(".").slice(1).join(".");return Le(de(d),u)}return{type:"expression",raw:c}}tryMatchPossessiveSelectorExpression(e){let t=e.peek();if(!t||t.kind!=="selector")return null;let r=e.mark();e.advance();let a=e.peek(),i=this.currentProfile?.possessive?.marker?.replace(/^-/,""),o=!!a&&a.kind==="punctuation"&&a.value==="'s",s=!!a&&a.value==="'"&&(e.peek(1)?.value??"").toLowerCase()==="s",l=(()=>{if(!this.currentPatternCommand||(a?.normalized??"").toLowerCase()!=="source")return!1;let d=He[this.currentPatternCommand];return!!d&&d.roles.some(u=>u.role==="source")})(),c=!!a&&!!i&&i!=="'s"&&a.value===i&&(a.kind==="particle"||a.kind==="punctuation")&&!l;if(!o&&!c&&!s)return e.reset(r),null;e.advance(),s&&e.advance();let p=e.peek();return!p||!(p.kind==="identifier"||(o||s)&&(p.kind==="selector"||p.kind==="keyword"))?(e.reset(r),null):(e.advance(),Le(be(t.value),p.value))}tryMatchSelectorPropertyExpression(e){let t=e.peek();if(!t||t.kind!=="selector"||!t.value.startsWith("#"))return null;let r=e.mark();e.advance();let a=e.peek();if(!a||a.kind!=="selector"||!a.value.startsWith("."))return e.reset(r),null;let i=e.peek(1);i&&i.kind,e.advance();let o=a.value.slice(1);return Le(be(t.value),o)}matchGroupToken(e,t,r,a){let i=e.mark(),o=new Set(r.keys());if(!this.matchTokenSequence(e,t.tokens,r,a)){e.reset(i);for(let l of r.keys())o.has(l)||r.delete(l);return t.optional||!1}return!0}getMatchType(e,t){return e.value===t?"exact":e.normalized===t?"normalized":e.stem===t&&e.stemConfidence!==void 0&&e.stemConfidence>=.7?"stem":e.kind==="keyword"&&e.value.toLowerCase()===t.toLowerCase()?"case-insensitive":"none"}tokenToSemanticValue(e){switch(e.kind){case"selector":return be(e.value);case"literal":return this.parseLiteralValue(e.value);case"keyword":let t=(e.normalized||e.value).toLowerCase();return Xe(t)?de(t):Q(e.normalized||e.value);case"identifier":if(e.value.startsWith("@"))return be(e.value);if(e.value.startsWith(":")||e.value.startsWith("$"))return de(e.value);let r=e.value.toLowerCase();return Xe(r)?de(r):{type:"expression",raw:e.value};case"url":return Q(e.value,"string");default:return null}}parseLiteralValue(e){if(e.startsWith('"')||e.startsWith("'")||e.startsWith("`")||e.startsWith("\u300C")){let a=e.slice(1,-1);return Q(a,"string")}if(e==="true")return Q(!0,"boolean");if(e==="false")return Q(!1,"boolean");let t=e.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(t){let a=parseFloat(t[1]);return t[2]?Q(e,"duration"):Q(a,"number")}let r=parseFloat(e);return isNaN(r)?Q(e,"string"):Q(r,"number")}applyExtractionRules(e,t){for(let[r,a]of Object.entries(e.extraction))t.has(r)||(a.value!==void 0?t.set(r,{type:"literal",value:a.value}):a.default&&t.set(r,a.default))}isOptional(e){return e.type!=="literal"&&e.optional===!0}skipNoiseWords(e){let t=e.peek();if(!t)return;let r=t.value.toLowerCase();if(K.ENGLISH_NOISE_WORDS.has(r)){let a=e.mark();e.advance();let i=e.peek();if(i&&(i.kind==="selector"||i.kind==="identifier"))return;let o=e.peek(1);if(i&&i.kind==="keyword"&&o&&o.kind==="selector"&&/^\.[a-zA-Z_]/.test(o.value))return;let s=i?(i.normalized??i.value).toLowerCase():"";if(i&&K.POSITIONAL_OR_SCOPE_KEYWORDS.has(s))return;let l=e.peek(1),c=l?(l.normalized??l.value).toLowerCase():"",p=this.currentProfile?.wordOrder!=="SOV"&&K.COMMAND_ACTION_KEYWORDS.has(c),m=!l||l.kind==="particle"||K.CLAUSE_BOUNDARY_KEYWORDS.has(c)||p;if(i&&i.kind==="keyword"&&this.currentProfile?.code!=="en"&&Xe(s)&&m||i&&i.kind==="keyword"&&this.currentProfile?.code==="en"&&Xe(s))return;e.reset(a)}r==="class"&&e.advance()}extractEventModifiers(e){let t={},r=!1;for(;!e.isAtEnd();){let a=e.peek();if(!a||a.kind!=="event-modifier")break;let i=a.metadata;if(!i)break;switch(r=!0,i.modifierName){case"once":t.once=!0;break;case"debounce":typeof i.value=="number"&&(t.debounce=i.value);break;case"throttle":typeof i.value=="number"&&(t.throttle=i.value);break;case"queue":(i.value==="first"||i.value==="last"||i.value==="all"||i.value==="none")&&(t.queue=i.value);break}e.advance()}return r?t:void 0}};K.POSITIONAL_KEYWORDS=new Set(["first","last","next","previous","random","closest"]),K.POSITIONAL_OR_SCOPE_KEYWORDS=new Set(["first","last","next","previous","random","closest","parent"]),K.STRUCTURAL_NEVER_EVENT=new Set(["if","unless","else","end","then"]),K.PROPERTY_ACCESS_BASES=new Set(["it","me","you","my","its","your","event","result","target","detail","body","window","document","self","this"]),K.COMMAND_ACTION_KEYWORDS=new Set(Object.keys(He).map(e=>e.toLowerCase())),K.CLAUSE_BOUNDARY_KEYWORDS=new Set(["then","and","or","end","else"]),K.OF_POSSESSIVE_MARKERS={ms:new Set(["daripada"]),sw:new Set(["ya"]),vi:new Set(["c\u1EE7a"]),zh:new Set(["\u7684"]),it:new Set(["di"]),pl:new Set(["z"]),uk:new Set(["\u0437"]),th:new Set(["\u0E02\u0E2D\u0E07"]),ja:new Set(["\u306E"]),ko:new Set(["\uC758"]),bn:new Set(["\u09B0"]),hi:new Set(["\u0915\u093E"]),qu:new Set(["pa"]),tr:new Set(["nin"])},K.RUN_OPERATORS=new Set(["+","-","*","/"]),K.MAX_BRACE_RUN_TOKENS=64,K.MAX_PROPERTY_DEPTH=10,K.MAX_METHOD_ARGS=20,K.DECLARATION_COMMANDS=new Set(["behavior","def","install"]),K.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]);var Za=K,Ce=new Za;ve();Ue();ve();var Xr=["if","unless","repeat","for","while"];function Re(n,e){let t=new Set([e]),a=H(n)?.keywords?.[e];if(a){a.primary&&t.add(a.primary.toLowerCase());for(let i of a.alternatives??[])t.add(i.toLowerCase())}return t}function ke(n,e){return e.has(n.value.toLowerCase())?!0:n.normalized?e.has(n.normalized.toLowerCase()):!1}var Tv=new Set(Xr);function Ja(n,e){let t=n.normalized?.toLowerCase();return t?Tv.has(t):e.some(r=>ke(n,r))}var Ec=new Set(["me","it","you","the","body","window","document","its","event","result","target","self","this","them","parent","next","previous","closest","first","last"]),Ev=new Set(["destination","source","style","patient","on","from","to"]);function Pv(n){if(!n||n.kind==="selector")return!1;let e=(n.normalized??n.value).toLowerCase(),t=n.value.toLowerCase();return!(Ec.has(e)||Ec.has(t)||Ev.has(e))}var Pc=new Set(["ja","ko"]);function Ya(n){let e=new Set;n?.primary&&e.add(n.primary.toLowerCase());for(let t of n?.alternatives??[])e.add(t.toLowerCase());return e}function Cc(n,e){let t=[],r=e.position.end,a=n.slice(e.position.end).match(/^\s*\(([^)]*)\)/);if(a){r=e.position.end+a[0].length;for(let i of a[1].split(/[,،、]/)){let o=i.trim();o&&t.push(o)}}return{parameters:t,headerEnd:r}}function Rc(n,e,t){let r=e+1;if(r>=n.length)return-1;let a=Ya(H(t)?.roleMarkers?.patient);return a.size>0&&ke(n[r],a)&&r++,r<n.length?r:-1}function Nc(n,e,t){if(!H(e))return null;let r=Re(e,"behavior"),a=Re(e,"def"),i=n.toLowerCase(),o=[...r].some(p=>i.includes(p)),s=/\bdef\b/.test(i)||[...a].some(p=>p!=="def"&&i.includes(p));if(!o&&!s)return null;let l=pe(n,e).tokens;if(l.length<2)return null;if(ke(l[0],r))return Lc(n,e,l,t,0);let c=l.findIndex((p,m)=>m>0&&ke(p,r));return c>0&&/^[A-Z][A-Za-z0-9_]*$/.test(l[0].value)?Lc(n,e,l,t,c):ke(l[0],a)?Lv(n,e,l,t):null}function Ac(n,e,t){let r=H(e);if(!r)return null;let a=r.wordOrder!=="SOV",i=Pc.has(e)?Ya(r.roleMarkers?.event):new Set,o=Pc.has(e)?Ya(r.keywords?.on):new Set,s=i.size>0&&o.size>0,l=Re(e,"end"),c=Re(e,"on"),p=n.toLowerCase(),m=[...l].some(k=>p.includes(k)),d=(a||s)&&(()=>{let k=0;for(let P of c)if(P){for(let h=p.indexOf(P);h>=0;h=p.indexOf(P,h+P.length))if(++k>=2)return!0}return!1})();if(!m&&!d)return null;let u=pe(n,e).tokens;if(u.length<2)return null;let f=Xr.map(k=>Re(e,k)),y=k=>Ja(k,f),g=k=>ke(k,l),v=[],b=0,E=0;for(let k=0;k<u.length;k++){let P=u[k];if(g(P)){if(b>0){b--;continue}let h=n.slice(u[E].position.start,P.position.start).trim();h&&v.push(h),E=k+1}else if(y(P))b++;else if(a&&b===0&&k>E&&ke(P,c)&&Pv(u[k+1])){let h=n.slice(u[E].position.start,P.position.start).trim();h&&v.push(h),E=k}else if(s&&b===0&&k-1>E&&ke(P,i)&&u[k+1]!==void 0&&ke(u[k+1],o)){let h=u[k-1],S=n.slice(u[E].position.start,h.position.start).trim();S&&v.push(S),E=k-1}}if(E<u.length){let k=n.slice(u[E].position.start).trim();k&&v.push(k)}if(v.length<2)return null;let L=[],w=[];for(let k of v){let P;try{P=t.statement(k,e)}catch{return null}if(!P||P.kind!=="event-handler")return null;let h=P;L.push(h);let S=!h.body||h.body.length===0;w.push(S?.2:h.metadata?.confidence??.75)}return Wt(L,"then",{sourceLanguage:e,confidence:Gr(w),sourceText:n})}function Gr(n){return n.length>0?n.reduce((e,t)=>e+t,0)/n.length:0}function jc(n){let e=[];for(let t of n){let r=t.statements;t.kind==="compound"&&Array.isArray(r)?e.push(...r):e.push(t)}return e}function Lc(n,e,t,r,a){let i=a>0,o=i?0:Rc(t,a,e);if(o<0)return null;let s=t[o],l=s.value;if(!/^[A-Z][A-Za-z0-9_]*$/.test(l))return null;let{parameters:c,headerEnd:p}=Cc(n,s),m=i?a+1:t.findIndex(h=>h.position.start>=p);m<=o&&(m=o+1);let d=Re(e,"init"),u=Re(e,"end"),f=Xr.map(h=>Re(e,h)),y=h=>Ja(h,f),g=h=>ke(h,u),v=[],b=[],E=[],L=!1,w=0,k=m;for(let h=m;h<t.length;h++){let S=t[h];if(g(S)){if(w>0){w--;continue}if(h===k){L=!0;break}if(ke(t[k],d)){let O=n.slice(t[k].position.end,S.position.start).trim();if(O)try{let C=jc(r.body(O,e));b.push(...C),E.push(Gr(C.map(F=>F.metadata?.confidence??.75)))}catch{E.push(0)}}else{let O=n.slice(t[k].position.start,S.position.start).trim();try{let C=r.statement(O,e);if(C&&C.kind==="event-handler"){let F=C;v.push(F);let $=!F.body||F.body.length===0;E.push($?.2:F.metadata?.confidence??.75)}else E.push(0)}catch{E.push(0)}}k=h+1}else y(S)&&w++}if(v.length===0&&b.length===0)return null;let P=(L?1:.8)*Gr(E);return xc(l,c,v,b.length>0?b:void 0,{sourceLanguage:e,confidence:P,sourceText:n})}function Lv(n,e,t,r){let a=Rc(t,0,e);if(a<0)return null;let i=t[a],o=i.value;if(!/^[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*$/.test(o))return null;let{parameters:s,headerEnd:l}=Cc(n,i),c=t.findIndex(w=>w.position.start>=l);c<=a&&(c=a+1);let p=Re(e,"end"),m=Xr.map(w=>Re(e,w)),d=w=>Ja(w,m),u=w=>ke(w,p),f=0,y=-1;for(let w=c;w<t.length;w++)if(u(t[w])){if(f===0){y=w;break}f--}else d(t[w])&&f++;let g=t[c]?.position.start??l,v=y>=0?t[y].position.start:n.length,b=n.slice(g,v).trim();if(!b)return null;let E;try{E=jc(r.body(b,e))}catch{return null}if(E.length===0)return null;let L=Gr(E.map(w=>w.metadata?.confidence??.75));return y<0&&(L*=.8),wc(o,s,E,{sourceLanguage:e,confidence:L,sourceText:n})}xt();kt();ve();xt();je();var Zr=class{render(e,t){if(e.kind==="compound")return this.renderCompound(e,t);if(e.kind==="behavior")return this.renderBehavior(e,t);if(e.kind==="def")return this.renderDef(e,t);let r=ui(t,e.action);if(r.length===0)return this.renderExplicit(e);let a=this.findBestPattern(e,r);return a?this.renderWithPattern(e,a):this.renderExplicit(e)}renderCompound(e,t){if(e.statements.length>1&&e.statements.every(i=>i.kind==="event-handler")){let i=this.keyword(t,"end"),o=[];for(let s of e.statements)o.push(this.render(s,t),i);return o.join(`
|
|
2
2
|
`)}let r=e.statements.map(i=>this.render(i,t)),a=this.getChainWord(e.chainType,t);return r.join(` ${a} `)}keyword(e,t){return H(e)?.keywords?.[t]?.primary??t}renderBlockHeader(e,t,r){return r.length>0?`${e} ${t}(${r.join(", ")})`:`${e} ${t}`}renderBehavior(e,t){let r=this.keyword(t,"end"),a=[this.renderBlockHeader(this.keyword(t,"behavior"),e.name,e.parameters)];for(let i of e.eventHandlers)a.push(` ${this.render(i,t)}`,` ${r}`);if(e.initBlock&&e.initBlock.length>0){a.push(` ${this.keyword(t,"init")}`);for(let i of e.initBlock)a.push(` ${this.render(i,t)}`);a.push(` ${r}`)}return a.push(r),a.join(`
|
|
3
3
|
`)}renderDef(e,t){let r=[this.renderBlockHeader(this.keyword(t,"def"),e.name,e.parameters)];for(let a of e.body)r.push(` ${this.render(a,t)}`);return r.push(this.keyword(t,"end")),r.join(`
|
|
4
4
|
`)}getChainWord(e,t){let r=H(t);return r?.keywords?r.keywords[e]?.primary??e:e}renderExplicit(e){return he(e)}supportedLanguages(){return Ur()}findBestPattern(e,t){let r=t;if(e.kind==="event-handler"){let i=t.filter(o=>!/-event-/i.test(o.id));i.length>0&&(r=i)}let a=r.map(i=>{let o=i.priority;for(let s of i.template.tokens)s.type==="role"&&(e.roles.has(s.role)?o+=10:s.optional||(o-=50));return/-at-end|-at-start|-before$|-after$/i.test(i.id)&&(o-=30),i.language==="en"&&((i.id.includes("standard")||i.id.includes("en-source"))&&(o+=20),(i.id.includes("-when")||i.id.includes("-if")||i.id.includes("-upon"))&&(o-=15)),{pattern:i,score:o}});return a.sort((i,o)=>o.score-i.score),a.length>0?a[0].pattern:null}renderWithPattern(e,t){let r=[],a=t.language;for(let i of t.template.tokens){let o=this.renderPatternToken(i,e,a);o!==null&&r.push(o)}if(e.kind==="event-handler"){let i=e;if(i.body&&i.body.length>0){let o=i.body.map(s=>this.render(s,a));r.push(o.join(" "))}}return r.join(" ")}renderPatternToken(e,t,r){switch(e.type){case"literal":return e.value;case"role":{let a=t.roles.get(e.role);return a?e.role==="event"&&t.kind==="event-handler"?this.renderEventName(a,r):this.valueToNaturalString(a,r):(e.optional,null)}case"group":{if(!e.tokens.filter(s=>s.type==="role"&&!s.optional).every(s=>t.roles.has(s.role))&&e.optional)return null;if(e.optional&&e.tokens.find(l=>l.type==="role"&&l.role==="destination")){let l=t.roles.get("destination");if(l?.type==="reference"&&l.value==="me")return null}if(e.optional&&e.tokens.find(l=>l.type==="role"&&l.role==="quantity")){let l=t.roles.get("quantity");if(l?.type==="literal"&&Number(l.value)===1)return null}let i=[],o=!1;for(let s of e.tokens){let l=this.renderPatternToken(s,t,r);l!==null&&(i.push(l),s.type==="role"&&(o=!0))}return e.optional&&!o?null:i.length>0?i.join(" "):null}default:return null}}renderEventName(e,t){if(e.type!=="literal"||typeof e.value!="string")return this.valueToNaturalString(e,t);let r=e.value,a=i=>i.includes(":")?i:us(i,t);return r.includes(" or ")?r.split(" or ").map(i=>a(i.trim())).join(" or "):a(r)}valueToNaturalString(e,t="en"){switch(e.type){case"literal":return typeof e.value=="string"&&e.dataType==="string"?`"${e.value}"`:String(e.value);case"selector":return e.value;case"reference":return this.renderReference(e,t);case"property-path":return this.renderPropertyPath(e,t);case"expression":return e.raw;case"flag":return e.name}}renderReference(e,t){let r=H(t);return r?.references?r.references[e.value]??e.value:e.value}renderPropertyPath(e,t){let r=H(t),a=e.property,i=e.object.type==="reference"?e.object.value:null;if(r?.possessive?.specialForms&&i){let s=r.possessive.specialForms[i];if(s){let{markerPosition:l,usePossessiveAdjectives:c}=r.possessive;return c&&l==="after-object"?`${a} ${s}`:`${s} ${a}`}}let o=this.valueToNaturalString(e.object,t);if(r?.possessive){let{marker:s,markerPosition:l,usePossessiveAdjectives:c}=r.possessive;if(c&&i&&l==="after-object")return`${a} ${o}`;if(s)switch(l){case"between":return r.usesSpaces?`${o}${s} ${a}`:`${o}${s}${a}`;case"after-object":return`${o}${s} ${a}`;case"before-property":return`${o} ${s} ${a}`}}return t==="en"||!r?.possessive?o==="me"?`my ${a}`:o==="it"?`its ${a}`:`${o}'s ${a}`:`${o} ${a}`}},Qa=new Zr;function Vt(n,e){return Qa.render(n,e)}function _t(n){return Qa.renderExplicit(n)}je();Ue();var Cv={getSchema:we};function nt(n){return Ut(n,{schemaLookup:Cv})}var at=new Set(["if","unless","while","repeat","for"]),Rv=new Set(["then","end","else","if","unless","while","for","repeat","and"]),Nv=new Set(["first","last","next","previous","random","closest"]),it=new Set(["click","dblclick","input","change","submit","keydown","keyup","keypress","mouseover","mouseout","mousedown","mouseup","focus","blur","load","scroll","resize","contextmenu","transitionend","transitionstart","transitionrun","transitioncancel","animationend","animationstart","animationiteration","animationcancel","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointercancel","pointerover","pointerout","touchstart","touchend","touchmove","touchcancel","mousemove","mouseenter","mouseleave","wheel","dragstart","dragend","dragover","dragenter","dragleave","drop","drag","loadend","loadstart","error","abort","close","open","message","popstate","hashchange","storage","online","offline","visibilitychange"]),qt=class extends Error{constructor(e,t,r,a){super(e),this.name="SemanticParseError",this.language=t,this.input=r,this.diagnostics=a}};function te(n,e,t){return{message:n,severity:e,source:"semantic-parser",...t&&{code:t}}}function ue(n,e){return e.length===0?n:{...n,diagnostics:e}}function Mc(n){if(n.length>=2){let e=n[0];if((e==='"'||e==="'")&&n.endsWith(e))return n.slice(1,-1)}return n}var Av=["body","statements","thenBranch","elseBranch","eventHandlers","initBlock"];function Oc(n,e){if(!n||typeof n!="object")return n;if(n.action&&n.roles instanceof Map){let r=we(n.action),a=r?.primaryRole;if(r&&a&&a!=="patient"&&!r.roles.some(i=>i.role==="patient")&&n.roles.has("patient")&&!n.roles.has(a)){let i=n.roles,o=i.get("patient");o!==void 0&&(i.delete("patient"),i.set(a,o))}if(n.action==="tell"){let i=n.roles,o=i.get("patient"),s=i.get("destination");o&&(o.type==="selector"||o.type==="reference")&&(!s||s.type==="literal")&&(i.delete("patient"),i.set("destination",o))}if(n.action==="transition"){let i=n.roles,o=i.get("destination");o&&o.type==="literal"&&!i.has("goal")&&(i.delete("destination"),i.set("goal",o));let s=i.get("patient");s&&s.type==="literal"&&typeof s.value=="string"&&/^[A-Za-z_][A-Za-z0-9_-]*$/.test(s.value)&&i.set("patient",{type:"expression",raw:s.value})}if(n.action==="morph"){let i=n.roles,o=i.get("patient");o&&o.type==="literal"&&typeof o.value=="string"&&/<[a-zA-Z][^>]*\/?>/.test(o.value)&&i.set("patient",{type:"expression",raw:o.value})}if(n.action==="wait"){let i=n.roles;if(!i.has("event")){let o=i.get("duration"),s=o?.type==="expression"?o.raw:o?.type==="literal"?o.value:void 0;typeof s=="string"&&it.has(s.toLowerCase())&&(i.delete("duration"),i.set("event",{type:"literal",value:s,dataType:"string"}))}}if(n.kind==="command"&&n.action!=="on"){let i=n.roles,o=i.get("event");if(o&&o.type==="expression"){let s=o.raw;typeof s=="string"&&/^[A-Za-z_][A-Za-z0-9_-]*(:[A-Za-z0-9_-]+)?$/.test(s)&&i.set("event",{type:"literal",value:s,dataType:"string"})}}if(e?.size){let i=n.roles;for(let o of["destination","source"]){let s=i.get(o);s&&s.type==="literal"&&typeof s.value=="string"&&e.has(s.value)&&i.set(o,{type:"expression",raw:s.value})}}}let t=n;for(let r of Av){let a=t[r];if(Array.isArray(a))for(let i of a)Oc(i,e)}return n}var q=class q{constructor(){this.parseDepth=0;this.boundIdentifiers=new Set}parse(e,t){this.parseDepth===0&&this.boundIdentifiers.clear(),this.parseDepth++;try{return Oc(this.parseInternal(e,t),this.boundIdentifiers)}finally{this.parseDepth--}}registerBoundIdentifiers(e){let t=e.action==="repeat"||e.action==="for"?"patient":e.action==="set"?"destination":null;if(!t)return;let r=e.roles.get(t);r?.type==="expression"&&typeof r.raw=="string"&&/^[A-Za-z_]\w*$/.test(r.raw)&&this.boundIdentifiers.add(r.raw)}parseInternal(e,t){let r=Nc(e,t,{statement:(h,S)=>this.parse(h,S),body:(h,S)=>this.parseStatements(h,S)});if(r)return r;let a=Ac(e,t,{statement:(h,S)=>this.parse(h,S),body:(h,S)=>this.parseStatements(h,S)});if(a)return a;let{modifiers:i,remainingInput:o}=this.extractStandaloneModifiers(e,t),s=o||e,c=this.stripAsyncModifier(s,t).remainingInput??s,m=this.stripDoNotThrowModifier(c,t).remainingInput??c,d=[],u=pe(m,t),f=xe(t);if(f.length===0)throw new qt(`No patterns available for language: ${t}`,t,m,[te(`No patterns registered for language '${t}'`,"error","no-patterns")]);let y=[...f].sort((h,S)=>S.priority-h.priority);{let h=u.tokens;if(H(t)?.wordOrder==="VSO"&&h.length>=4&&h[0]?.normalized==="source"){let S=h.findIndex(O=>O.normalized==="on");if(S>=2&&S+1<h.length){let O=m.slice(h[0].position.start,h[S].position.start).trim(),C=h[S+1].position.end,F=m.slice(h[S].position.start,C)+" "+O+m.slice(C);if(F!==m)try{let $=this.parse(F,t);if($&&$.kind==="event-handler"){let B=i?this.applyModifiers($,i):$;return ue(B,d)}}catch{}}}}{let h=u.tokens;for(let S=1;S<h.length-1;S++){let O=h[S],C=O.value,F=(O.normalized??O.value).toLowerCase();if(!(F==="or"||q.OR_KEYWORDS.has(C)||q.OR_KEYWORDS.has(F)))continue;let B=h[S+1],J=(B.normalized??B.value).toLowerCase();if(!q.KNOWN_EVENTS.has(J))break;let U=S+1,oe=h[S+2];oe&&oe.kind==="selector"&&oe.value.startsWith("[")&&(U=S+2);let le=h[S].position.start,$e=h[U].position.end,Se=(m.slice(0,le).trimEnd()+" "+m.slice($e).trimStart()).trim();if(Se&&Se!==m)try{let Be=this.parse(Se,t);if(Be&&Be.kind==="event-handler"){Be.additionalEvents=[{type:"literal",value:J}];let Qr=i?this.applyModifiers(Be,i):Be;return ue(Qr,d)}}catch{}break}}let g=y.filter(h=>h.command==="on"),v=u.mark(),b=Ce.matchBest(u,g);if(b){d.push(te(`event pattern matched: ${b.pattern.id} (confidence: ${b.confidence.toFixed(2)})`,"info","pattern-match"));let h=!1;if(/^event-[a-z]+-bare$/.test(b.pattern.id)){let S=b.captured.get("event"),O=(S?.raw??S?.value??"").toString().toLowerCase(),C=Ge[t],F=q.KNOWN_EVENTS.has(O)||!!C&&Object.keys(C).some($=>$.toLowerCase()===O);if(O&&!F){let $=this.trySOVEventExtraction(m,t,y);if($){d.push(te(`bare-event mis-anchor on "${O}" rejected; SOV extraction preferred`,"info","stage-bare-event-guard"));let B=i?this.applyModifiers($,i):$;return ue(B,d)}if(S?.type==="reference"||S?.type==="expression"){u.reset(v);let B=y.filter(U=>U.command!=="on"),J=Ce.matchBest(u,B);u.reset(v),J&&J.pattern.command!=="on"?(h=!0,d.push(te(`bare-event mis-anchor on reference "${O}" rejected; command ${J.pattern.command} preferred`,"info","stage-bare-event-guard"))):Ce.matchBest(u,g)}}}if(!h){let S=this.buildEventHandler(b,u,t),O=i?this.applyModifiers(S,i):S;return ue(O,d)}}d.push(te(`event patterns: ${g.length} tried, no match`,"info","stage-event"));let E=this.tryTrailingEventExtraction(m,t,y);if(E){d.push(te("trailing event extraction succeeded","info","stage-trailing-event"));let h=i?this.applyModifiers(E,i):E;return ue(h,d)}let L=y.filter(h=>h.command!=="on"),w=Ce.matchBest(u,L);if(w){if(at.has(w.pattern.command)){let h=this.trySOVEventExtraction(m,t,y);if(h){d.push(te(`SOV event extraction preferred over bare ${w.pattern.command} command`,"info","stage-sov-loop"));let O=i?this.applyModifiers(h,i):h;return ue(O,d)}let S=this.tryMidStreamEventExtraction(m,t,y);if(S){d.push(te(`mid-stream event extraction preferred over bare ${w.pattern.command} command`,"info","stage-midstream-loop"));let O=i?this.applyModifiers(S,i):S;return ue(O,d)}}else if(q.KNOWN_EVENTS.has(w.pattern.command)&&this.hasSOVEventMarkerHead(m,t)){let h=this.trySOVEventExtraction(m,t,y);if(h){d.push(te(`SOV event extraction preferred over command-homonym event ${w.pattern.command}`,"info","stage-sov-homonym"));let S=i?this.applyModifiers(h,i):h;return ue(S,d)}}else if(H(t)?.wordOrder==="VSO"){let h=this.tryMidStreamEventExtraction(m,t,y);if(h){d.push(te(`mid-stream event extraction preferred over bare ${w.pattern.command} command`,"info","stage-midstream-cmd"));let S=i?this.applyModifiers(h,i):h;return ue(S,d)}}if(w.consumedTokens<u.tokens.length&&H(t)?.wordOrder==="SOV"){let h=this.trySOVEventExtraction(m,t,y);if(h){d.push(te(`SOV event extraction preferred over partial ${w.pattern.command} command (trailing remainder)`,"info","stage-sov-trailing"));let S=i?this.applyModifiers(h,i):h;return ue(S,d)}}return d.push(te(`command pattern matched: ${w.pattern.id} (confidence: ${w.confidence.toFixed(2)})`,"info","pattern-match")),ue(this.buildCommand(w,t),d)}if(d.push(te(`command patterns: ${L.length} tried, no match`,"info","stage-command")),!m.includes(`
|