Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oniguruma-to-es

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oniguruma-to-es - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

4

dist/index.min.js

@@ -32,3 +32,3 @@ var OnigurumaToES=(()=>{var ce=Object.defineProperty;var Ft=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var $t=Object.prototype.hasOwnProperty;var It=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},vt=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Nt(t))!$t.call(e,n)&&n!==r&&ce(e,n,{get:()=>t[n],enumerable:!(s=Ft(t,n))||s.enumerable});return e};var Pt=e=>vt(ce({},"__esModule",{value:!0}),e);var zr={};It(zr,{EmulatedRegExp:()=>ie,toDetails:()=>yt,toOnigurumaAst:()=>Wr,toRegExp:()=>qr});var w=String.fromCodePoint,f=String.raw,ve=(()=>{try{new RegExp("(?<n>)|(?<n>)")}catch{return!1}return!0})(),Pe=(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),Ge=(()=>{try{new RegExp("","v")}catch{return!1}return!0})();function O(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function M(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function B(e,t){return e.alternatives.length===1&&e.alternatives[0].elements.length===1&&(!t||t(e.alternatives[0].elements[0]))}function V(e,t){return ue[e]>=ue[t]}function x(e,t){if(!e)throw new Error(t??"Value expected");return e}var ue={ES2018:2018,ES2024:2024,ES2025:2025},Gt={auto:"auto",ES2018:"ES2018",ES2024:"ES2024",ES2025:"ES2025"};function Z(e){if(e?.target!==void 0&&!Gt[e.target])throw new Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,maxRecursionDepth:5,target:"auto",tmGrammar:!1,verbose:!1,...e};return t.target==="auto"&&(t.target=ve&&Pe?"ES2025":Ge?"ES2024":"ES2018"),t}var Lt=new Set([w(304),w(305)]);function pe(e){if(Lt.has(e))return[e];let t=new Set,r=e.toLowerCase(),s=r.toUpperCase(),n=Mt.get(r),o=Tt.get(r),a=Ot.get(r);return[...s].length===1&&t.add(s),a&&t.add(a),n&&t.add(n),t.add(r),o&&t.add(o),[...t]}var fe=new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator","ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),ge=new Map;for(let e of fe)ge.set(j(e),e);var Rt=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji","RGI_Emoji_Flag_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence"]),he=new Map;for(let e of Rt)he.set(j(e),e);var Le=new Set("Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo Extended_Pictographic Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi EBase EComp EMod EPres ExtPict Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz".split(" ")),Tt=new Map([["s",w(383)],[w(383),"s"]]),Ot=new Map([[w(223),w(7838)],[w(107),w(8490)],[w(229),w(8491)],[w(969),w(8486)]]),Mt=new Map([v(453),v(456),v(459),v(498),...le(8072,8079),...le(8088,8095),...le(8104,8111),v(8124),v(8140),v(8188)]),J=new Map([["alnum",f`[\p{Alpha}\p{Nd}]`],["alpha",f`\p{Alpha}`],["ascii",f`\p{ASCII}`],["blank",f`[\p{Zs}\t]`],["cntrl",f`\p{cntrl}`],["digit",f`\p{Nd}`],["graph",f`[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]`],["lower",f`\p{Lower}`],["print",f`[[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",f`[\p{P}\p{S}]`],["space",f`\p{space}`],["upper",f`\p{Upper}`],["word",f`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",f`\p{AHex}`]]),Re=new Set(["alnum","blank","graph","print","word","xdigit"]);function Ut(e,t){let r=[];for(let s=e;s<=t;s++)r.push(s);return r}function j(e){return e.replace(/[- _]+/g,"").toLowerCase()}function v(e){let t=w(e);return[t.toLowerCase(),t]}function le(e,t){return Ut(e,t).map(r=>v(r))}var de=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);var g={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",VariableLengthCharacterSet:"VariableLengthCharacterSet",EscapedNumber:"EscapedNumber"},A={any:"any",digit:"digit",dot:"dot",hex:"hex",non_newline:"non_newline",posix:"posix",property:"property",space:"space",word:"word"},K={flags:"flags",keep:"keep"},_={atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Te=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),Ue=f`\[\^?\]?`,De=`c.? | C(?:-.?)?|${f`[pP]\{(?:\^?[\x20\w]+\})?`}|${f`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${f`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${f`o\{[^\}]*\}?`}|${f`\d{1,3}`}`,Be=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Y=new RegExp(f`

?|[
\v\f\x85\u2028\u2029])`));else if(n===Q.grapheme){if(r==="strict")throw new Error(f`Use of "\X" requires non-strict accuracy`);let o=s?f`\p{RGI_Emoji}`:Ye().source.replace(/\\u\{/g,f`\x{`);t(F(f`(?>\r\n|${o}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}))}else throw new Error(`Unexpected varcharset kind "${n}"`)}},nt={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:s,ref:n}=e;s||r.set(e,[...t.get(n).map(({node:o})=>o)])},Recursion({node:e},{reffedNodesByReferencer:t}){let{ref:r}=e,s=e.parent;for(;(s=s.parent)&&!(s.type===l.CapturingGroup&&(s.name===r||s.number===r)););t.set(e,s)},CapturingGroup:{enter({node:e,replaceWith:t,skip:r},{groupOriginByCopy:s,groupsByName:n,multiplexCapturesToLeftByRef:o,openRefs:a,reffedNodesByReferencer:i}){let c=s.get(e),u=e.name??e.number;if(c&&a.has(u)){let C=et(u);i.set(C,a.get(u)),t(C),r();return}a.set(u,e);let p=M(o,u,[]);for(let C=0;C<p.length;C++){let d=p[C];if(c===d.node||c&&c===d.origin||e===d.origin){p.splice(C,1);break}}if(p.push({node:e,origin:c}),e.name){let C=M(n,e.name,new Map);for(let d of C.values())!d.hasDuplicateNameToRemove&&st(d.node,e,{ancestorsParticipate:!0})&&(d.hasDuplicateNameToRemove=!0);n.get(e.name).set(e,{node:e})}},exit({node:e},{openRefs:t}){t.delete(e.name??e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=O(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine(e,t){let{node:r,replaceWith:s}=e,{ref:n}=r,o=t.subroutineRefMap.get(n),a=n===0,i=a?et(n):at(o,t.groupOriginByCopy,null),c=i;if(!a){let u=ot(Sr(o,C=>C.type===l.Group&&!!C.flags)),p=u?O(t.globalFlags,u):t.globalFlags;wr(p,t.currentFlags)||(c=z(I({flags:Ar(p)}),[i]))}s(c),a||lt(c,e,t,nt)}},Er={Backreference({node:e,replaceWith:t},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let n=r.reffedNodesByReferencer.get(e).filter(o=>st(o,e,{ancestorsParticipate:!1}));if(!n.length)t(te({negate:!0}));else if(n.length>1){let o=n.map(a=>se(P(),[ee(a.number)]));t(se(I(),o))}else e.ref=n[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Recursion({node:e},t){e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let s=0;s<r;s++){let n=Ee();e.pattern.alternatives.at(-1).elements.push(n)}}}};function se(e,t){return t.forEach(r=>r.parent=e),e[Ae(e)]=t,e}function wr(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function st(e,t,{ancestorsParticipate:r}){let s=t;do{if(s.type===l.Pattern)return!1;if(s.type===l.Alternative)continue;if(s===e)return r;let n=it(s.parent);for(let o of n){if(o===s)break;if(o===e||ut(o,e))return!0}}while(s=s.parent);throw new Error("Unexpected path")}function at(e,t,r,s){let n=Array.isArray(e)?[]:{};for(let[o,a]of Object.entries(e))o==="parent"?n.parent=Array.isArray(r)?s:r:a&&typeof a=="object"?n[o]=at(a,t,n,r):(o==="type"&&a===l.CapturingGroup&&t.set(n,t.get(e)??e),n[o]=a);return n}function et(e){return{type:l.Recursion,ref:e}}function Sr(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Ae(e){for(let t of["alternatives","classes","elements"])if(e[t])return t;return null}function ot(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:s})=>{t.forEach(n=>{s.enable?.[n]&&(delete r.disable[n],r.enable[n]=!0),s.disable?.[n]&&(r.disable[n]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function Ar({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function it(e){if(!e)throw new Error("Node expected");if(e.type===l.Quantifier)return[e.element];let t=Ae(e);return t&&e[t]}function ct(e){let t=e.find(r=>r.kind===E.search_start||ne(r,{negate:!1})||!we(r));if(!t)return null;if(t.kind===E.search_start)return t;if($(t))return t.alternatives[0].elements[0];if(t.type===l.Group||t.type===l.CapturingGroup){let r=[];for(let s of t.alternatives){let n=ct(s.elements);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function ut(e,t){let r=it(e)??[];for(let s of r)if(s===t||ut(s,t))return!0;return!1}function _r(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function F(e,t){let r=!!t?.skipPropertyNameValidation,n=q(H(e),{skipPropertyNameValidation:r}).pattern.alternatives;return n.length>1||n[0].elements.length>1?se(I(),n):n[0].elements[0]}function z(e,t){let r=Ae(e);return e[r][0].parent=e,t&&se(e[r][0],t),e}function lt(e,{parent:t,key:r,container:s},n,o){N({node:e,parent:t,key:r,container:s},n,o)}function ft(e,t){let r=Z(t),s=V(r.target,"ES2024"),n=V(r.target,"ES2025"),o=r.maxRecursionDepth;if(o!==null&&(!Number.isInteger(o)||o<2||o>100))throw new Error("Invalid maxRecursionDepth; use 2-100 or null");let a=null,i=null;if(!n){let h=[e.flags.ignoreCase];N({node:e},{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(S){h.push(S)},setHasCasedChar(){h.at(-1)?a=!0:i=!0}},kr)}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!i)},u=null,p={accuracy:r.accuracy,appliedGlobalFlags:c,captureFlagIMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},groupNames:new Set,inCharClass:!1,lastNode:u,maxRecursionDepth:o,useAppliedIgnoreCase:!!(!n&&a&&i),useDuplicateNames:n,useFlagMods:n,useFlagV:s,usePostEs2018Properties:s,verbose:r.verbose};function C(h){switch(p.lastNode=u,u=h,h.type){case l.Regex:return{pattern:C(h.pattern),flags:C(h.flags),options:{...h.options}};case l.Alternative:return h.elements.map(C).join("");case l.Assertion:return Nr(h,p,C);case l.Backreference:return $r(h,p);case l.CapturingGroup:return Ir(h,p,C);case l.Character:return vr(h,p);case l.CharacterClass:return Pr(h,p,C);case l.CharacterClassIntersection:if(!p.useFlagV)throw new Error("Use of class intersection requires min target ES2024");return h.classes.map(C).join("&&");case l.CharacterClassRange:return Gr(h,p);case l.CharacterSet:return Lr(h,p);case l.Flags:return Rr(h,p);case l.Group:return Tr(h,p,C);case l.Pattern:return h.alternatives.map(C).join("|");case l.Quantifier:return C(h.element)+Dr(h);case l.Recursion:return Or(h,p);default:throw new Error(`Unexpected node type "${h.type}"`)}}let d=C(e);return s||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d}var kr={AnyGroup:{enter({node:e},t){let r=t.getCurrentModI();t.pushModI(e.flags?O({ignoreCase:r},e.flags).ignoreCase:r)},exit(e,t){t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){_e(w(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),gt(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind===k.property&&de.has(e.value)&&t.setHasCasedChar()}},yr=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),br=new Set(["-","\\","]","^"]),xr=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),pt=new Map([[9,f`\t`],[10,f`\n`],[11,f`\v`],[12,f`\f`],[13,f`\r`],[8232,f`\u2028`],[8233,f`\u2029`],[65279,f`\uFEFF`]]),Fr=/^\p{Cased}$/u;function _e(e){return Fr.test(e)}function Nr(e,t,r){let{kind:s,negate:n,alternatives:o}=e;if($(e))return`(?${`${s===E.lookahead?"":"<"}${n?"!":"="}`}${o.map(r).join("|")})`;if(s===E.string_end)return"$";if(s===E.string_start)return"^";throw new Error(`Unexpected assertion kind "${s}"`)}function $r({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureFlagIMap.get(e))throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e}function Ir({name:e,number:t,alternatives:r},s,n){return e&&(s.groupNames.has(e)?s.useDuplicateNames||(e=null):s.groupNames.add(e)),s.captureFlagIMap.set(t,s.currentFlags.ignoreCase),`(${e?`?<${e}>`:""}${r.map(n).join("|")})`}function vr({value:e},t){let r=w(e),s=U(e,{isAfterBackref:t.lastNode.type===l.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(s!==r)return s;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&_e(r)){let n=pe(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r}function Pr({negate:e,parent:t,elements:r},s,n){if(!e&&(!s.useFlagV||!s.verbose)&&t.type===l.CharacterClass&&r[0].type!==l.CharacterClassIntersection||!s.verbose&&t.type===l.CharacterClassIntersection&&r.length===1&&r[0].type!==l.CharacterClassRange)return r.map(n).join("");if(!s.useFlagV&&t.type===l.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");s.inCharClass=!0;let o=`[${e?"^":""}${r.map(n).join("")}]`;return s.inCharClass=!1,o}function Gr(e,t){let r=e.min.value,s=e.max.value,n={isAfterBackref:!1,inCharClass:!0,useFlagV:t.useFlagV},o=U(r,n),a=U(s,n),i="";if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let c=gt(e);Mr(c).forEach(p=>{i+=Array.isArray(p)?`${U(p[0],n)}-${U(p[1],n)}`:U(p,n)})}return`${o}-${a}${i}`}function Lr({kind:e,negate:t,value:r,key:s},n){if(e===k.dot)return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":f`[^\n]`;if(e===k.digit)return t?f`\D`:f`\d`;if(e===k.property){if(!n.usePostEs2018Properties&&Le.has(r))throw new Error(`Unicode property "${r}" unavailable in target ES2018`);if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&de.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?f`\P`:f`\p`}{${s?`${s}=`:""}${r}}`}if(e===k.word)return t?f`\W`:f`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function Rr(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function Tr({atomic:e,flags:t,parent:r,alternatives:s},n,o){let a=n.currentFlags;t&&(n.currentFlags=O(a,t));let i=s.map(o).join("|"),c=!n.verbose&&s.length===1&&r.type!==l.Quantifier&&!e&&(!n.useFlagMods||!t)?i:`(?${Ur(e,t,n.useFlagMods)}${i})`;return n.currentFlags=a,c}function Or({ref:e},t){let r=t.maxRecursionDepth;if(!r)throw new Error("Use of recursion disabled");if(t.accuracy==="strict")throw new Error("Use of recursion requires non-strict accuracy due to depth limit");return e===0?`(?R=${r})`:f`\g<${e}&R=${r}>`}function gt(e,t){let r=!!t?.firstOnly,s=e.min.value,n=e.max.value,o=[];if(s<65&&(n===65535||n>=131071)||s===65536&&n>=131071)return o;for(let a=s;a<=n;a++){let i=w(a);if(!_e(i))continue;let c=pe(i).filter(u=>{let p=u.codePointAt(0);return p<s||p>n});if(c.length&&(o.push(...c),r))break}return o}function U(e,{isAfterBackref:t,inCharClass:r,useFlagV:s}){if(pt.has(e))return pt.get(e);if(e<32||e>126&&e<160||e>262143||t&&Br(e))return e>255?f`\u{${e.toString(16).toUpperCase()}}`:f`\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?s?xr:br:yr,o=w(e);return(n.has(o)?"\\":"")+o}function Mr(e){let t=e.map(n=>n.codePointAt(0)).sort((n,o)=>n-o),r=[],s=null;for(let n=0;n<t.length;n++)t[n+1]===t[n]+1?s??=t[n]:s===null?r.push(t[n]):(r.push([s,t[n]]),s=null);return r}function Ur(e,t,r){if(e)return">";let s="";if(t&&r){let{enable:n,disable:o}=t;s=(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${s}:`}function Dr({min:e,max:t,greedy:r,possessive:s}){let n;return!e&&t===1?n="?":!e&&t===1/0?n="*":e===1&&t===1/0?n="+":e===t?n=`{${e}}`:n=`{${e},${t===1/0?"":t}}`,n+(s?"+":r?"":"?")}function Br(e){return e>47&&e<58}var y=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function G(e,t,r,s){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],a=0,i="";for(let c of e.matchAll(n)){let{0:u,groups:{$skip:p}}=c;if(!p&&(!s||s===y.DEFAULT==!a)){r instanceof Function?i+=r(c,{context:a?y.CHAR_CLASS:y.DEFAULT,negated:o[o.length-1]}):i+=r;continue}u[0]==="["?(a++,o.push(u[1]==="^")):u==="]"&&a&&(a--,o.pop()),i+=u}return i}function ke(e,t,r,s){G(e,t,r,s)}function Vr(e,t,r=0,s){if(!new RegExp(t,"su").test(e))return null;let n=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let o=0,a;for(;a=n.exec(e);){let{0:i,groups:{$skip:c}}=a;if(!c&&(!s||s===y.DEFAULT==!o))return a;i==="["?o++:i==="]"&&o&&o--,n.lastIndex==a.index&&n.lastIndex++}return null}function ae(e,t,r){return!!Vr(e,t,0,r)}function ht(e,t){let r=/\\?./gsu;r.lastIndex=t;let s=e.length,n=0,o=1,a;for(;a=r.exec(e);){let[i]=a;if(i==="[")n++;else if(n)i==="]"&&n--;else if(i==="(")o++;else if(i===")"&&(o--,!o)){s=a.index;break}}return e.slice(t,s)}var oe="$E$",X=class e extends RegExp{_captureMap;constructor(t,r,s){let n;s?.useEmulationGroups&&({expression:t,captureMap:n}=jr(t)),super(t,r),n?this._captureMap=n:t instanceof e&&(this._captureMap=t._captureMap)}exec(t){let r=RegExp.prototype.exec.call(this,t);if(!r||!this._captureMap)return r;let s=[...r];r.length=1;let n;this.hasIndices&&(n=[...r.indices],r.indices.length=1);for(let o=1;o<s.length;o++)this._captureMap[o]&&(r.push(s[o]),this.hasIndices&&r.indices.push(n[o]));return r}};function jr(e){let t=oe.replace(/\$/g,"\\$"),r=[!0];return e=G(e,String.raw`\((?:(?!\?)|\?<(?![=!])[^>]+>)(?<mark>${t})?`,({0:s,groups:{mark:n}})=>n?(r.push(!1),s.slice(0,-oe.length)):(r.push(!0),s),y.DEFAULT),{captureMap:r,expression:e}}var dt={DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS",ENCLOSED_P:"ENCLOSED_P",ENCLOSED_U:"ENCLOSED_U",GROUP_NAME:"GROUP_NAME",INTERVAL_QUANTIFIER:"INTERVAL_QUANTIFIER",INVALID_INCOMPLETE_TOKEN:"INVALID_INCOMPLETE_TOKEN"},ye={DEFAULT:"DEFAULT",ENCLOSED_P:"ENCLOSED_P",ENCLOSED_Q:"ENCLOSED_Q",ENCLOSED_U:"ENCLOSED_U",INVALID_INCOMPLETE_TOKEN:"INVALID_INCOMPLETE_TOKEN",RANGE:"RANGE"},Qn=new Set([dt.ENCLOSED_P,dt.ENCLOSED_U]),Wn=new Set([ye.ENCLOSED_P,ye.ENCLOSED_Q,ye.ENCLOSED_U]),qn=(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),zn=(()=>{try{new RegExp("","v")}catch{return!1}return!0})();var Kr=String.raw`\(\?<(?![=!])(?<captureName>[^>]+)>`,Xn=String.raw`\((?!\?)(?!(?<=\(\?\()DEFINE\))|${Kr}`,Ct=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;var Hr=["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"].join("|"),Zn=new RegExp(String.raw`
\v\f\x85\u2028\u2029])`));else if(n===Q.grapheme){if(r==="strict")throw new Error(f`Use of "\X" requires non-strict accuracy`);let o=s?f`\p{RGI_Emoji}`:Ye().source.replace(/\\u\{/g,"\\x{");t(F(f`(?>\r\n|${o}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}))}else throw new Error(`Unexpected varcharset kind "${n}"`)}},nt={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:s,ref:n}=e;s||r.set(e,[...t.get(n).map(({node:o})=>o)])},Recursion({node:e},{reffedNodesByReferencer:t}){let{ref:r}=e,s=e.parent;for(;(s=s.parent)&&!(s.type===l.CapturingGroup&&(s.name===r||s.number===r)););t.set(e,s)},CapturingGroup:{enter({node:e,replaceWith:t,skip:r},{groupOriginByCopy:s,groupsByName:n,multiplexCapturesToLeftByRef:o,openRefs:a,reffedNodesByReferencer:i}){let c=s.get(e),u=e.name??e.number;if(c&&a.has(u)){let C=et(u);i.set(C,a.get(u)),t(C),r();return}a.set(u,e);let p=M(o,u,[]);for(let C=0;C<p.length;C++){let d=p[C];if(c===d.node||c&&c===d.origin||e===d.origin){p.splice(C,1);break}}if(p.push({node:e,origin:c}),e.name){let C=M(n,e.name,new Map);for(let d of C.values())!d.hasDuplicateNameToRemove&&st(d.node,e,{ancestorsParticipate:!0})&&(d.hasDuplicateNameToRemove=!0);n.get(e.name).set(e,{node:e})}},exit({node:e},{openRefs:t}){t.delete(e.name??e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=O(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine(e,t){let{node:r,replaceWith:s}=e,{ref:n}=r,o=t.subroutineRefMap.get(n),a=n===0,i=a?et(n):at(o,t.groupOriginByCopy,null),c=i;if(!a){let u=ot(Sr(o,C=>C.type===l.Group&&!!C.flags)),p=u?O(t.globalFlags,u):t.globalFlags;wr(p,t.currentFlags)||(c=z(I({flags:Ar(p)}),[i]))}s(c),a||lt(c,e,t,nt)}},Er={Backreference({node:e,replaceWith:t},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let n=r.reffedNodesByReferencer.get(e).filter(o=>st(o,e,{ancestorsParticipate:!1}));if(!n.length)t(te({negate:!0}));else if(n.length>1){let o=n.map(a=>se(P(),[ee(a.number)]));t(se(I(),o))}else e.ref=n[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Recursion({node:e},t){e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let s=0;s<r;s++){let n=Ee();e.pattern.alternatives.at(-1).elements.push(n)}}}};function se(e,t){return t.forEach(r=>r.parent=e),e[Ae(e)]=t,e}function wr(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function st(e,t,{ancestorsParticipate:r}){let s=t;do{if(s.type===l.Pattern)return!1;if(s.type===l.Alternative)continue;if(s===e)return r;let n=it(s.parent);for(let o of n){if(o===s)break;if(o===e||ut(o,e))return!0}}while(s=s.parent);throw new Error("Unexpected path")}function at(e,t,r,s){let n=Array.isArray(e)?[]:{};for(let[o,a]of Object.entries(e))o==="parent"?n.parent=Array.isArray(r)?s:r:a&&typeof a=="object"?n[o]=at(a,t,n,r):(o==="type"&&a===l.CapturingGroup&&t.set(n,t.get(e)??e),n[o]=a);return n}function et(e){return{type:l.Recursion,ref:e}}function Sr(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Ae(e){for(let t of["alternatives","classes","elements"])if(e[t])return t;return null}function ot(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:s})=>{t.forEach(n=>{s.enable?.[n]&&(delete r.disable[n],r.enable[n]=!0),s.disable?.[n]&&(r.disable[n]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function Ar({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function it(e){if(!e)throw new Error("Node expected");if(e.type===l.Quantifier)return[e.element];let t=Ae(e);return t&&e[t]}function ct(e){let t=e.find(r=>r.kind===E.search_start||ne(r,{negate:!1})||!we(r));if(!t)return null;if(t.kind===E.search_start)return t;if($(t))return t.alternatives[0].elements[0];if(t.type===l.Group||t.type===l.CapturingGroup){let r=[];for(let s of t.alternatives){let n=ct(s.elements);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function ut(e,t){let r=it(e)??[];for(let s of r)if(s===t||ut(s,t))return!0;return!1}function _r(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function F(e,t){let r=!!t?.skipPropertyNameValidation,n=q(H(e),{skipPropertyNameValidation:r}).pattern.alternatives;return n.length>1||n[0].elements.length>1?se(I(),n):n[0].elements[0]}function z(e,t){let r=Ae(e);return e[r][0].parent=e,t&&se(e[r][0],t),e}function lt(e,{parent:t,key:r,container:s},n,o){N({node:e,parent:t,key:r,container:s},n,o)}function ft(e,t){let r=Z(t),s=V(r.target,"ES2024"),n=V(r.target,"ES2025"),o=r.maxRecursionDepth;if(o!==null&&(!Number.isInteger(o)||o<2||o>100))throw new Error("Invalid maxRecursionDepth; use 2-100 or null");let a=null,i=null;if(!n){let h=[e.flags.ignoreCase];N({node:e},{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(S){h.push(S)},setHasCasedChar(){h.at(-1)?a=!0:i=!0}},kr)}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!i)},u=null,p={accuracy:r.accuracy,appliedGlobalFlags:c,captureFlagIMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},groupNames:new Set,inCharClass:!1,lastNode:u,maxRecursionDepth:o,useAppliedIgnoreCase:!!(!n&&a&&i),useDuplicateNames:n,useFlagMods:n,useFlagV:s,usePostEs2018Properties:s,verbose:r.verbose};function C(h){switch(p.lastNode=u,u=h,h.type){case l.Regex:return{pattern:C(h.pattern),flags:C(h.flags),options:{...h.options}};case l.Alternative:return h.elements.map(C).join("");case l.Assertion:return Nr(h,p,C);case l.Backreference:return $r(h,p);case l.CapturingGroup:return Ir(h,p,C);case l.Character:return vr(h,p);case l.CharacterClass:return Pr(h,p,C);case l.CharacterClassIntersection:if(!p.useFlagV)throw new Error("Use of class intersection requires min target ES2024");return h.classes.map(C).join("&&");case l.CharacterClassRange:return Gr(h,p);case l.CharacterSet:return Lr(h,p);case l.Flags:return Rr(h,p);case l.Group:return Tr(h,p,C);case l.Pattern:return h.alternatives.map(C).join("|");case l.Quantifier:return C(h.element)+Dr(h);case l.Recursion:return Or(h,p);default:throw new Error(`Unexpected node type "${h.type}"`)}}let d=C(e);return s||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d}var kr={AnyGroup:{enter({node:e},t){let r=t.getCurrentModI();t.pushModI(e.flags?O({ignoreCase:r},e.flags).ignoreCase:r)},exit(e,t){t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){_e(w(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),gt(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind===k.property&&de.has(e.value)&&t.setHasCasedChar()}},yr=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),br=new Set(["-","\\","]","^"]),xr=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),pt=new Map([[9,f`\t`],[10,f`\n`],[11,f`\v`],[12,f`\f`],[13,f`\r`],[8232,f`\u2028`],[8233,f`\u2029`],[65279,f`\uFEFF`]]),Fr=/^\p{Cased}$/u;function _e(e){return Fr.test(e)}function Nr(e,t,r){let{kind:s,negate:n,alternatives:o}=e;if($(e))return`(?${`${s===E.lookahead?"":"<"}${n?"!":"="}`}${o.map(r).join("|")})`;if(s===E.string_end)return"$";if(s===E.string_start)return"^";throw new Error(`Unexpected assertion kind "${s}"`)}function $r({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureFlagIMap.get(e))throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e}function Ir({name:e,number:t,alternatives:r},s,n){return e&&(s.groupNames.has(e)?s.useDuplicateNames||(e=null):s.groupNames.add(e)),s.captureFlagIMap.set(t,s.currentFlags.ignoreCase),`(${e?`?<${e}>`:""}${r.map(n).join("|")})`}function vr({value:e},t){let r=w(e),s=U(e,{isAfterBackref:t.lastNode.type===l.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(s!==r)return s;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&_e(r)){let n=pe(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r}function Pr({negate:e,parent:t,elements:r},s,n){if(!e&&(!s.useFlagV||!s.verbose)&&t.type===l.CharacterClass&&r[0].type!==l.CharacterClassIntersection||!s.verbose&&t.type===l.CharacterClassIntersection&&r.length===1&&r[0].type!==l.CharacterClassRange)return r.map(n).join("");if(!s.useFlagV&&t.type===l.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");s.inCharClass=!0;let o=`[${e?"^":""}${r.map(n).join("")}]`;return s.inCharClass=!1,o}function Gr(e,t){let r=e.min.value,s=e.max.value,n={isAfterBackref:!1,inCharClass:!0,useFlagV:t.useFlagV},o=U(r,n),a=U(s,n),i="";if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let c=gt(e);Mr(c).forEach(p=>{i+=Array.isArray(p)?`${U(p[0],n)}-${U(p[1],n)}`:U(p,n)})}return`${o}-${a}${i}`}function Lr({kind:e,negate:t,value:r,key:s},n){if(e===k.dot)return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":f`[^\n]`;if(e===k.digit)return t?f`\D`:f`\d`;if(e===k.property){if(!n.usePostEs2018Properties&&Le.has(r))throw new Error(`Unicode property "${r}" unavailable in target ES2018`);if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&de.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?f`\P`:f`\p`}{${s?`${s}=`:""}${r}}`}if(e===k.word)return t?f`\W`:f`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function Rr(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function Tr({atomic:e,flags:t,parent:r,alternatives:s},n,o){let a=n.currentFlags;t&&(n.currentFlags=O(a,t));let i=s.map(o).join("|"),c=!n.verbose&&s.length===1&&r.type!==l.Quantifier&&!e&&(!n.useFlagMods||!t)?i:`(?${Ur(e,t,n.useFlagMods)}${i})`;return n.currentFlags=a,c}function Or({ref:e},t){let r=t.maxRecursionDepth;if(!r)throw new Error("Use of recursion disabled");if(t.accuracy==="strict")throw new Error("Use of recursion requires non-strict accuracy due to depth limit");return e===0?`(?R=${r})`:f`\g<${e}&R=${r}>`}function gt(e,t){let r=!!t?.firstOnly,s=e.min.value,n=e.max.value,o=[];if(s<65&&(n===65535||n>=131071)||s===65536&&n>=131071)return o;for(let a=s;a<=n;a++){let i=w(a);if(!_e(i))continue;let c=pe(i).filter(u=>{let p=u.codePointAt(0);return p<s||p>n});if(c.length&&(o.push(...c),r))break}return o}function U(e,{isAfterBackref:t,inCharClass:r,useFlagV:s}){if(pt.has(e))return pt.get(e);if(e<32||e>126&&e<160||e>262143||t&&Br(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?s?xr:br:yr,o=w(e);return(n.has(o)?"\\":"")+o}function Mr(e){let t=e.map(n=>n.codePointAt(0)).sort((n,o)=>n-o),r=[],s=null;for(let n=0;n<t.length;n++)t[n+1]===t[n]+1?s??=t[n]:s===null?r.push(t[n]):(r.push([s,t[n]]),s=null);return r}function Ur(e,t,r){if(e)return">";let s="";if(t&&r){let{enable:n,disable:o}=t;s=(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${s}:`}function Dr({min:e,max:t,greedy:r,possessive:s}){let n;return!e&&t===1?n="?":!e&&t===1/0?n="*":e===1&&t===1/0?n="+":e===t?n=`{${e}}`:n=`{${e},${t===1/0?"":t}}`,n+(s?"+":r?"":"?")}function Br(e){return e>47&&e<58}var y=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function G(e,t,r,s){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],a=0,i="";for(let c of e.matchAll(n)){let{0:u,groups:{$skip:p}}=c;if(!p&&(!s||s===y.DEFAULT==!a)){r instanceof Function?i+=r(c,{context:a?y.CHAR_CLASS:y.DEFAULT,negated:o[o.length-1]}):i+=r;continue}u[0]==="["?(a++,o.push(u[1]==="^")):u==="]"&&a&&(a--,o.pop()),i+=u}return i}function ke(e,t,r,s){G(e,t,r,s)}function Vr(e,t,r=0,s){if(!new RegExp(t,"su").test(e))return null;let n=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let o=0,a;for(;a=n.exec(e);){let{0:i,groups:{$skip:c}}=a;if(!c&&(!s||s===y.DEFAULT==!o))return a;i==="["?o++:i==="]"&&o&&o--,n.lastIndex==a.index&&n.lastIndex++}return null}function ae(e,t,r){return!!Vr(e,t,0,r)}function ht(e,t){let r=/\\?./gsu;r.lastIndex=t;let s=e.length,n=0,o=1,a;for(;a=r.exec(e);){let[i]=a;if(i==="[")n++;else if(n)i==="]"&&n--;else if(i==="(")o++;else if(i===")"&&(o--,!o)){s=a.index;break}}return e.slice(t,s)}var oe="$E$",X=class e extends RegExp{_captureMap;constructor(t,r,s){let n;s?.useEmulationGroups&&({expression:t,captureMap:n}=jr(t)),super(t,r),n?this._captureMap=n:t instanceof e&&(this._captureMap=t._captureMap)}exec(t){let r=RegExp.prototype.exec.call(this,t);if(!r||!this._captureMap)return r;let s=[...r];r.length=1;let n;this.hasIndices&&(n=[...r.indices],r.indices.length=1);for(let o=1;o<s.length;o++)this._captureMap[o]&&(r.push(s[o]),this.hasIndices&&r.indices.push(n[o]));return r}};function jr(e){let t=oe.replace(/\$/g,"\\$"),r=[!0];return e=G(e,String.raw`\((?:(?!\?)|\?<(?![=!])[^>]+>)(?<mark>${t})?`,({0:s,groups:{mark:n}})=>n?(r.push(!1),s.slice(0,-oe.length)):(r.push(!0),s),y.DEFAULT),{captureMap:r,expression:e}}var dt={DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS",ENCLOSED_P:"ENCLOSED_P",ENCLOSED_U:"ENCLOSED_U",GROUP_NAME:"GROUP_NAME",INTERVAL_QUANTIFIER:"INTERVAL_QUANTIFIER",INVALID_INCOMPLETE_TOKEN:"INVALID_INCOMPLETE_TOKEN"},ye={DEFAULT:"DEFAULT",ENCLOSED_P:"ENCLOSED_P",ENCLOSED_Q:"ENCLOSED_Q",ENCLOSED_U:"ENCLOSED_U",INVALID_INCOMPLETE_TOKEN:"INVALID_INCOMPLETE_TOKEN",RANGE:"RANGE"},Hn=new Set([dt.ENCLOSED_P,dt.ENCLOSED_U]),Qn=new Set([ye.ENCLOSED_P,ye.ENCLOSED_Q,ye.ENCLOSED_U]),Wn=(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),qn=(()=>{try{new RegExp("","v")}catch{return!1}return!0})();var Kr=String.raw`\(\?<(?![=!])(?<captureName>[^>]+)>`,zn=String.raw`\((?!\?)(?!(?<=\(\?\()DEFINE\))|${Kr}`,Ct=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;var Hr=["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"].join("|"),Xn=new RegExp(String.raw`
\\(?: c[A-Za-z]

@@ -45,3 +45,3 @@ | p\{(?<pStrProp>${Hr})\}

| .
`.replace(/\s+/g,""),"gsu");var Jn=new RegExp(String.raw`
`.replace(/\s+/g,""),"gsu");var Zn=new RegExp(String.raw`
(?<groupN>\(\?<(?![=!])|\\[gk]<)

@@ -48,0 +48,0 @@ | (?<enclosedPU>\\[pPu]\{)

{
"name": "oniguruma-to-es",
"version": "0.4.0",
"version": "0.4.1",
"description": "Convert Oniguruma patterns to native JavaScript RegExp",

@@ -5,0 +5,0 @@ "author": "Steven Levithan",

@@ -221,3 +221,3 @@ # Oniguruma-To-ES

JavaScript version support needed for generated regexes. `auto` sets the value based on your environment. Later targets allow faster processing, simpler generated source, and support for additional features.
JavaScript version used for generated regexes. Using `auto` detects the best value based on your environment. Later targets allow faster processing, simpler generated source, and support for additional features.

@@ -224,0 +224,0 @@ <details>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc