text: (()=>{var e,t,n,r,i,a,s,o={14850:(e,t,n)=>{"use strict";n.d(t,{CJ:()=>y,MX:()=>ge,K_:()=>x,jb:()=>$,jJ:()=>O,s1:()=>fe,v0:()=>Oe,xv:()=>ke,Of:()=>M,zp:()=>B,sk:()=>Ue,Ak:()=>Ae,ew:()=>b,xz:()=>be,by:()=>Q,Ot:()=>a,hK:()=>d,IU:()=>Te,Ky:()=>ee,Dk:()=>re,tP:()=>Ze,bL:()=>we,kB:()=>Ce,ak:()=>H,Ub:()=>ie,Bq:()=>z,zO:()=>te,uf:()=>k,G6:()=>D,QF:()=>N,Ez:()=>pe,dL:()=>A.Z,o6:()=>T,fU:()=>ve,JO:()=>de,rS:()=>I,ML:()=>ye,_1:()=>xe,Gj:()=>v,I2:()=>i,ZI:()=>L,E0:()=>w,Jh:()=>R,UZ:()=>j,vn:()=>q,Iu:()=>G,ux:()=>U,rI:()=>F,h5:()=>Z,dM:()=>o,UF:()=>s,NS:()=>Ie,Tr:()=>Ee,SD:()=>p,BF:()=>h,ZD:()=>Se,og:()=>V,$9:()=>Be,_v:()=>Pe});var r=n(34963);const i=function(e){return{type:r.jo,value:e}},a=function(){return{type:r.rx}},s=function(){return{type:r.fB}},o=function(e){return{type:r.sk,value:e}};var c=n(31807),u=n.n(c),l=n(69989),f=n(53808);function h(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(u()){var r=l[e]||l.ENGLISH;return function(){return fetch(r.file).then((function(e){return e.json()})).then(f.a).then((function(){t&&n(70812).P()}))}}}const p=function(e){return{type:r.ro,value:{subsection:e}}},d=function(e){return{type:r.WV,value:e}},v=function(e){return{type:r.CJ,value:e}};var g=n(14824),m=n(89441);const y=function(e){return{type:r.lA,value:e||{description:null,testString:"",compareString:"",target:m.m,criteria:g.FS}}},x=function(e){return{type:r.rT,value:e}},b=function(e,t){return{type:r.mo,value:{oldIndex:e,newIndex:t}}},j=function(e,t,n,i){return{type:r.ES,value:{testKey:e,error:t,steps:n,time:i}}},Z=function(){return{type:r.p2}},O=function(){return{type:r.lZ}},w=function(e){return{type:r.Jb,value:e}},k=function(e){return{type:r.a0,value:e}};var C=n(23765),E=n(4844),P=n(34768),S=[P.Y8,P.D9,P.ik,P.VE,P.ek,P.Rp,P.Fo,P.ed,P.wm,P.Vu,P.e0,P.UA,P.Gv].map((function(e){return(""+e).toLowerCase().trim()})),_=["recursive call could loop indefinitely","regular expression is too large","too much recursion"];const N=function(e){var t=(""+e).toLowerCase().trim();if(e&&(C.Z.error("Regex Error:",e),!S.includes(t)&&!_.some((function(e){return t.includes(e)})))){var n=new Error("Unhandled error while matching regex. Code: "+e);E.O7(n)}return{type:r.Nl,value:e}},R=function(e){return{type:r.Cy,value:e}},T=function(e){return C.Z.info("Flavor:",e),{type:r.hl,value:e}};var A=n(61898);const D=function(e){return C.Z.info("Delimiter:",e),{type:r.Sr,value:e}};function I(e){return{type:r.KE,value:e}}const L=function(e){return{type:r.u8,value:e}};function M(e,t){return function(n,r){if(!e)return Promise.resolve();var i=r().general.cookie;return fetch("/api/regex/".concat(e,"/").concat(t),{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",cookie:i}}).then((function(e){return e.json()})).then((function(r){var i=r.regex,a=r.testString,s=void 0===a?"":a,o=r.flavor,c=r.delimiter,u=r.flags,l=r.substitution,f=void 0===l?"":l,h=r.listSubstitution,p=void 0===h?"":h,d=r.unitTests,v=r.isFavorite,g=r.isLibraryEntry,m=r.title,x=r.tags,b=r.libraryTitle,j=r.libraryDescription,Z=r.libraryAuthor,O=r.isEditable,w=r.isOwner;n(k(i)),n(R(s)),n(T(o)),n(D(c)),n(A.Z("",u,o)),null!=f?(n(U()),n(L(f))):null!=p&&(n(q()),n(H(p))),d.forEach((function(e){return n(y(e))})),null==p&&null==f&&""===s&&d.length>0&&n(F()),n(Ce(b,j,Z)),n(z(e,t,null,g,m||b,x,w)),n($(v)),n(te(O))}))}}function B(e){return function(t){return fetch("/api/regex/"+e,{method:"GET",credentials:"same-origin"}).then((function(e){return e.json()})).then((function(e){var n=e.versions;return t(function(e){return{type:r.r0,value:e}}(n))}))}}const U=function(){return C.Z.info("Function:",r.T_),{type:r.T_}},F=function(){return C.Z.info("Function:",r.YW),{type:r.YW}},G=function(){return C.Z.info("Function:",r.RS),{type:r.RS}};function V(e){return{type:r.NJ,value:e}}const q=function(){return C.Z.info("Function:",r.R8),{type:r.R8}};function H(e){return{type:r.r$,value:e}}const z=function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;return t=parseInt(t,10)||null,{type:r.nU,value:{permalinkFragment:e,version:t,deleteCode:n,isLibraryEntry:i,title:a,tags:s,isOwner:o}}};var W=n(4942),Y=n(25968),K=n(94500);function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){(0,W.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){Y.ZP.emit(Y.P);var r=n(),i=r.unitTests.tests.map((function(e){return{criteria:e.criteria,description:e.description,target:e.target,testString:e.testString,compareString:e.compareString}})),a=r.regexEditor,s={regex:a.regex,testString:a.testString,flags:a.flags,delimiter:a.delimiter,flavor:a.flavor,unitTests:i};e&&(s.permalinkFragment=r.general.permalinkFragment);var o,c,u=r.regexEditor,l=u.showSubstitutionArea,f=u.substString,h=u.showListSubstitutionArea,p=u.listSubstString;return l?s=X(X({},s),{},{substitution:f||""}):h&&(s=X(X({},s),{},{listSubstitution:p||""})),e&&(o=r.general.title,c=r.general.tags),fetch("/api/regex/",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(s)}).then((function(e){return e.json()})).then((function(n){var r=n.permalinkFragment,i=n.version,a=n.isLibraryEntry,u=n.deleteCode;return s.permalinkFragment&&!u&&(u=void 0),null!=u&&(0,K.SW)(r,u),t(z(r,i,u,a,o,c,!e||void 0)),{permalinkFragment:r,version:i,deleteCode:u}}))}}const $=function(e){return{type:r.yF,value:e}},ee=function(e){return{type:r.yB,value:e}},te=function(e){return{type:r._,value:e}};var ne=n(34595);const re=function(e){return{type:r.ol,value:e||ne.DEFAULT_PAGE_TITLE}},ie=function(e){return{type:r.lK,value:e||ne.DEFAULT_META_DESCRIPTION}};var ae=n(17563),se=n(7504),oe=n.n(se);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){(0,W.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:r.sH,value:ue(ue({},e),{},{staleData:t})}};function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe().ALL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(r,i){var a=i().general.cookie;return fetch("/api/user/history/".concat(e,"/").concat(t,"/?").concat(ae.stringify({filterTags:n})),{method:"GET",credentials:"same-origin",headers:{cookie:a}}).then((function(e){return e.json()})).then((function(e){return r(le(e))}))}}var he=n(26915);function pe(e,t,n){return function(i){return fetch("/api/user/favorite/".concat(e),{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({isFavorite:n})}).then(he.Z).then((function(){null!=t&&i({type:r.Ht,value:{itemIndex:t,isFavorite:n}})}))}}function de(e,t,n){return function(i){return fetch("/api/user/history/".concat(e,"/private"),{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({isPrivate:n})}).then(he.Z).then((function(){return i({type:r.Ht,value:{itemIndex:t,isPrivate:n}})}))}}function ve(e,t,n){return function(i){return fetch("/api/user/history/".concat(e,"/lock"),{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({isLocked:n})}).then(he.Z).then((function(){return i({type:r.Ht,value:{itemIndex:t,isLocked:n}})}))}}function ge(e,t){return function(){return fetch("/api/regex",{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({deleteCode:t})}).then((function(){return(0,K.rP)(e)}))}}var me=n(60370);function ye(e,t,n){var i=(0,me.Z)(e);return function(a,s){return fetch("/api/user/history/".concat(n,"/tags"),{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({tags:i})}).then((function(){null!=t&&a(function(e,t){return{type:r.Xm,value:{tags:e,itemIndex:t}}}(e,t));var o=s().general.permalinkFragment;null!=o&&n===o&&a({type:r.CN,value:i})}))}}function xe(e,t,n){return function(i,a){return fetch("/api/user/history/".concat(n,"/title"),{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({title:e})}).then((function(){null!=t&&i({type:r.Ht,value:{itemIndex:t,title:e}});var s=a().general.permalinkFragment;null!=s&&n===s&&i({type:r.se,value:e})}))}}function be(){return{type:r.go}}var je=n(35896);const Ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:r.b9,value:{libraryData:e,pages:t}}};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:je.MOST_RECENT,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=ae.stringify({search:t,orderBy:n,filterFlavors:r});return function(t,n){var r=n().general.cookie;return fetch("/api/library/".concat(e,"/?").concat(i),{method:"GET",credentials:"same-origin",headers:{cookie:r}}).then((function(e){return e.json()})).then((function(e){return t(Ze(e.data,e.pages))}))}}const we=function(e){return{type:r.mX,value:e}};function ke(e){return function(t,n){var r=n().general.cookie;return fetch("/api/library/details/".concat(e),{method:"GET",credentials:"same-origin",headers:{cookie:r}}).then((function(e){return e.json()})).then((function(e){return t(we(e))}))}}const Ce=function(e,t,n){return{type:r.DE,value:{title:e,description:t,author:n}}};function Ee(e,t,n){return function(r,i){Y.ZP.emit(Y.P);var a=i(),s=a.unitTests.tests.map((function(e){return{criteria:e.criteria,description:e.description,target:e.target,testString:e.testString,compareString:e.compareString}})),o=a.regexEditor,c=o.regex,u=o.testString,l=o.flags,f=o.delimiter,h=o.flavor,p=o.showSubstitutionArea,d=o.substString;return fetch("/api/library/",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({regex:c,testString:u,flags:l,delimiter:f,flavor:h,unitTests:s,author:n,description:t,title:e,substitution:p?d||"":null})}).then((function(e){return e.json()})).then((function(i){var a=i.permalinkFragment;return r(Ce(e,t,n)),a}))}}function Pe(e,t){return function(n){return fetch("/api/library/".concat(e,"/vote"),{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({vote:t})}).then((function(){return n(function(e,t){return{type:r.BS,value:{permalinkFragment:t,vote:e}}}(t,e))}))}}function Se(e,t,n){return function(r,i){var a=i();return fetch("/api/library/",{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({permalinkFragment:a.general.permalinkFragment,author:n,description:t,title:e})}).then((function(e){return e.json()})).then((function(i){var a=i.permalinkFragment,s=i.version;return r(Ce(e,t,n)),{permalinkFragment:a,version:s}}))}}var _e=n(58317);function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){(0,W.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Te=function(e,t){if(!t)return{type:r.qI,value:{}};var n=Re({firstSeen:new Date,lastSeen:new Date,allTimeCount:0,todayCount:0},e&&e[t.bannerid]||{});n.allTimeCount++,n.todayCount++;var i=Re(Re({},e),{},(0,W.Z)({},t.bannerid,n));return _e.Z.save("regex101-sponsor",i),{type:r.qI,value:t}};function Ae(){return function(e,t){var n=t().general.cookie;return fetch("/api/quiz/tasks",{method:"GET",credentials:"same-origin",headers:{cookie:n}}).then((function(e){return e.json()})).then((function(t){return e(De(t))}))}}function De(e){return{type:r.te,value:e}}function Ie(e,t){return function(n){var i={regex:t.regex,flags:t.flags,delimiter:t.delimiter,substitution:t.substitution};return fetch("/api/quiz/verify/".concat(e),{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)}).then((function(e){return e.json()})).then((function(t){if(t.errorMessage)n(function(e,t){var n=t.errorMessage,i=t.totalTests,a=t.testNumber;return{type:r.nA,value:{taskNumber:e,errorMessage:n,totalTests:i,testNumber:a}}}(e-1,t));else{var i=t.successMessage,a=t.tasks;n(function(e,t){return{type:r.Sb,value:{taskNumber:e,successMessage:t}}}(e-1,i)),n(De(a))}}))}}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){(0,W.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e,t){return{type:r.F,value:Me({taskIdx:e},t)}}function Ue(e,t){return function(n,i){var a=i().general.cookie;return fetch("/api/quiz/statistics/"+t,{method:"GET",credentials:"same-origin",headers:{cookie:a}}).then((function(e){return e.json()})).then((function(t){return n(function(e,t){return{type:r.$Z,value:{taskIdx:e,stats:t}}}(e,t))}))}}},34963:(e,t,n)=>{"use strict";n.d(t,{nU:()=>r,RT:()=>i,yF:()=>a,th:()=>s,yB:()=>o,se:()=>c,CN:()=>u,qI:()=>l,yM:()=>f,_:()=>h,ol:()=>p,lK:()=>d,sH:()=>v,Ht:()=>g,Xm:()=>m,go:()=>y,jo:()=>x,rx:()=>b,fB:()=>j,sk:()=>Z,xw:()=>O,hl:()=>w,ro:()=>k,WV:()=>C,CJ:()=>E,T_:()=>P,YW:()=>S,RS:()=>_,DA:()=>N,Sr:()=>R,KE:()=>T,Nl:()=>A,u8:()=>D,Cy:()=>I,a0:()=>L,tc:()=>M,r0:()=>B,NJ:()=>U,R8:()=>F,r$:()=>G,lA:()=>V,rT:()=>q,LM:()=>H,mo:()=>z,ES:()=>W,p2:()=>Y,lZ:()=>K,Jb:()=>J,b9:()=>X,BS:()=>Q,mX:()=>$,DE:()=>ee,te:()=>te,nA:()=>ne,Sb:()=>re,F:()=>ie,$Z:()=>ae});var r="SET_PERMALINK_FRAGMENT",i="SET_USER_DATA",a="FAVORITE_CURRENT_REGEX",s="SET_COOKIE",o="SET_DELETE_CODE",c="SET_GENERAL_TITLE",u="SET_GENERAL_TAGS",l="SET_CARBON_SPONSOR",f="SET_CURRENT_THEME",h="SET_PERMALINK_EDITABLE",p="SET_DOCUMENT_TITLE",d="SET_META_DESCRIPTION",v="SET_USER_HISTORY",g="UPDATE_ACCOUNT_DATA",m="SET_REGEX_TAGS",y="RESET_USER_HISTORY",x="SET_SETTINGS",b="SAVE_STORAGE",j="STORAGE_SAVED",Z="STORAGE_LOADED",O="SAVE_REGEX_EDITOR_STATE",w="SET_REGEX_FLAVOR",k="TOGGLE_RIGHT_SIDEBAR_SUBSECTION",C="SET_ACTIVE_SUBSECTION",E="SET_RIGHT_SIDEBAR_WIDTH",P="SHOW_SUBSTITUTION_AREA",S="SHOW_UNIT_TEST_AREA",_="SHOW_MATCH_AREA",N="SET_REGEX_FLAGS",R="SET_REGEX_DELIMITER",T="SET_REGEX_RESULT",A="SET_REGEX_ERROR",D="SET_SUBSTITUTION",I="SET_TEST_STRING",L="SET_REGEX",M="SET_UNIT_TESTS_ACTIVE",B="SET_REGEX_VERSIONS",U="UPDATE_REGEX_AREA_PARSER",F="SHOW_LIST_SUBSTITUTION_AREA",G="SET_LIST_SUBSTITUTION",V="ADD_UNIT_TEST",q="DELETE_UNIT_TEST",H="EDIT_UNIT_TEST",z="MOVE_UNIT_TEST",W="SET_UNIT_TEST_STATUS",Y="START_UNIT_TESTING",K="FINISH_UNIT_TESTING",J="SET_UNIT_TEST_FILTER",X="SET_LIBRARY_DATA",Q="VOTE_LIBRARY_ENTRY",$="SET_LIBRARY_DETAILS",ee="SET_LIBRARY_ENTRY_METADATA",te="SET_QUIZ_TASKS",ne="SET_QUIZ_TASK_ERROR",re="SET_QUIZ_TASK_DONE",ie="UPDATE_QUIZ_TASK_ENTRY",ae="SET_QUIZ_STATISTICS"},61898:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,e:()=>f});var r=n(23765),i=n(60370),a=n(34963),s=n(76493),o=n.n(s),c=n(81370),u=n.n(c);const l=function(e,t,n){var i=t;n!==u().PCRE&&n!==u().PCRE2||!e.includes("y")?n===u().JAVASCRIPT&&e.includes("A")&&(i=i.replace("A","y")):i=i.replace("y","A");var s=f(i,n);if(n===u().PYTHON){var o=-1!==s.indexOf("u"),c=-1!==s.indexOf("a");-1!==e.indexOf("a")&&o?s=s.replace("a",""):(-1!==e.indexOf("u")&&c||o&&c)&&(s=s.replace("u",""))}return r.Z.info("Flags:",s),{type:a.DA,value:s}};function f(e,t){return(0,i.Z)(e.replace(new RegExp("[^".concat(o()[t],"]"),"g"),"")).join("")}},9599:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(34963);function i(e){return{type:r.yM,value:e}}},90732:(e,t,n)=>{"use strict";n.d(t,{aQ:()=>a,tZ:()=>s,OH:()=>o,sh:()=>c,tp:()=>u,dg:()=>l,Go:()=>f,bU:()=>h,uZ:()=>p,SX:()=>d,Bt:()=>v,uv:()=>g,vI:()=>m,Wr:()=>y});var r=n(81370),i=n.n(r),a="javascript",s="php",o="python",c="csharp",u="java",l="ruby",f="rust",h="golang",p="perl",d="autoit",v="SED",g="swift5_2",m=[{value:a,string:"JavaScript",referencePage:"https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions"},{value:s,string:"PHP",referencePage:"http://php.net/manual/en/ref.pcre.php"},{value:o,string:"Python",referencePage:"https://docs.python.org/3/library/re.html"},{value:c,string:"C#",referencePage:"https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex(v=vs.110).aspx"},{value:u,string:"Java",referencePage:"https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html"},{value:l,string:"Ruby",referencePage:"http://ruby-doc.org/core-2.2.0/Regexp.html"},{value:f,string:"Rust",referencePage:"https://docs.rs/regex/latest/regex/"},{value:h,string:"Golang",referencePage:"https://golang.org/pkg/regexp/"},{value:p,string:"Perl",referencePage:"http://perldoc.perl.org/perlre.html"},{value:d,string:"AutoIt",referencePage:"https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm"},{value:v,string:"SED",referencePage:"https://www.gnu.org/software/sed/manual/html_node/The-_0022s_0022-Command.html"},{value:g,string:"Swift 5.2",referencePage:"https://developer.apple.com/documentation/foundation/nsregularexpression"}].sort((function(e,t){return e.string.localeCompare(t.string)}));function y(e){switch(e){case i().PCRE2:case i().PCRE:return s;case i().GOLANG:return h;case i().JAVASCRIPT:return a;case i().PYTHON:return o;case i().JAVA:return u;default:return a}}},33086:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r={name:"showWhitespace",flattenSpans:!1,token:function(e){var t=e.peek();if(" "===t)return e.next(),"space";for(;!e.eol()&&" "!==t;)e.next(),t=e.peek();return null}};function i(e){e.defineOption("showWhitespace",!1,(function(t,n,i){i===e.Init&&(i=!1),i&&!n?t.removeOverlay("showWhitespace"):!i&&n&&t.addOverlay(r)}))}},86135:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(4942),i=n(45987),a=n(67294),s=n(94184),o=n.n(s),c=n(85893),u=["className","children"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t=e.className,n=e.children,r=(0,i.Z)(e,u);return(0,c.jsx)("div",f(f({className:o()("WLU1r","BcuOd",t)},r),{},{children:n}))};const p=(0,a.memo)(h);var d=["icon","children"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(e){var t=e.icon,n=e.children,r=(0,i.Z)(e,d);return(0,c.jsxs)(p,g(g({},r),{},{children:[t&&(0,c.jsx)(t,{size:14,className:"FvZHv"}),n]}))};const y=(0,a.memo)(m)},87740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(4942),i=n(45987),a=n(67294),s=n(94184),o=n.n(s),c=n(79352),u=n(85893),l=["isActive","className","children"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){var t=e.isActive,n=e.className,r=e.children,a=(0,i.Z)(e,l);return(0,u.jsxs)("div",h(h({className:o()("rocdx",t&&"wxNpu",n)},a),{},{children:[(0,u.jsx)("div",{className:"u_Q0A",children:r}),t&&(0,u.jsx)(c.xuy,{size:16,className:"zxc_j"})]}))};const d=(0,a.memo)(p)},87287:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(4942),i=n(45987),a=n(67294),s=n(35383),o=n(86135),c=n(85893),u=["icon","children","className"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t=e.icon,n=e.children,r=e.className,a=(0,i.Z)(e,u);return(0,c.jsx)(s.Z,f(f({},a),{},{children:(0,c.jsx)(o.Z,{icon:t,children:n,className:r})}))};const p=(0,a.memo)(h)},35383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(4942),i=n(45987),a=n(67294),s=n(94184),o=n.n(s),c=n(63101),u=n(85893),l=["isDisabled","className","children","onClick"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){var t=e.isDisabled,n=e.className,r=e.children,a=e.onClick,s=(0,i.Z)(e,l),f=o()("tu7rF",n,t&&"QTYb3");return null!=a?(0,u.jsx)(c.Yd,h(h({tag:"li",disabled:t,className:f,onClick:a},s),{},{children:r})):(0,u.jsx)("li",h(h({className:f},s),{},{children:r}))};const d=(0,a.memo)(p)},54430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(4942),i=n(45987),a=n(67294),s=n(63101),o=n(85893),c=["className","children","header","headerChildren"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e};var f=function(e){var t=e.className,n=e.children,r=e.header,a=e.headerChildren,u=(0,i.Z)(e,c);return(0,o.jsxs)("div",l(l({className:t},u),{},{children:[!!r&&(0,o.jsx)(s.__,{text:r,className:"bjLBV",children:a}),(0,o.jsx)("ul",{className:"yEXrR",children:n})]}))};const h=(0,a.memo)(f)},27582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(4942),i=n(45987),a=n(67294),s=n(94184),o=n.n(s),c=n(87287),u=n(85893),l=["children","className","rightElement","monospace"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){var t=e.children,n=e.className,r=e.rightElement,a=e.monospace,s=void 0===a||a,f=(0,i.Z)(e,l);return(0,u.jsxs)(c.Z,h(h({className:o()("VZGjx",n)},f),{},{children:[(0,u.jsx)("div",{className:"Lta24",children:t}),(0,u.jsx)("div",{className:o()("IVPLo",s&&"i8N8D"),children:r})]}))};const d=(0,a.memo)(p)},43406:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(4942),i=n(45987),a=n(67294),s=n(87287),o=n(87740),c=n(85893),u=["isActive","children"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t=e.isActive,n=e.children,r=(0,i.Z)(e,u);return(0,c.jsx)(s.Z,f(f({},r),{},{children:(0,c.jsx)(o.Z,{children:n,isActive:t})}))};const p=(0,a.memo)(h)},3262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(67294),i=n(94184),a=n.n(i),s=n(79352),o=n(25968),c=n(53808),u=n(70872),l=n(74387),f=n(63101);const h="UGBuq",p="Mveik";var d=n(85893),v=(0,u.Z)(l.E2),g={appear:h,appearActive:p,enter:h,enterActive:p,exit:"T8Z3r",exitActive:"sAd7O"};const m=function(e){var t=e.children,n=e.isOpen,i=e.className,u=e.isLoading,l=e.onModalClose,h=(0,r.useCallback)((function(e){u||(e.stopPropagation(),l())}),[l,u]),p=(0,r.useCallback)((function(e){return e.stopPropagation()}),[]);return(0,r.useEffect)((function(){return n&&o.ZP.on("key:escape",h),function(){return o.ZP.off("key:escape",h)}}),[n,h]),(0,d.jsx)(f.h_,{isOpen:n,closeTimeout:v,children:(0,d.jsx)(f.uT,{className:"CL1DJ",classNames:g,timeout:v,in:n,children:(0,d.jsx)(f.iQ,{children:(0,d.jsxs)("div",{className:"Uj2uD",role:"dialog",children:[(0,d.jsx)("div",{className:"JPiEz",onMouseUp:h,onClick:h}),(0,d.jsxs)("div",{className:a()("pvMZe",i),onMouseUp:p,onClick:p,children:[(0,d.jsx)(f.Yd,{className:a()("o1E1z",u&&"dIKNo"),onClick:h,"aria-label":(0,c.Z)("Close"),children:(0,d.jsx)(s.eSQ,{size:24,className:"ghZGL"})}),t]})]})})})})}},58461:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(4942),i=n(45987),a=n(94184),s=n.n(a),o=n(85893),c=["children","className"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f=function(e){var t=e.children,n=e.className,r=(0,i.Z)(e,c);return(0,o.jsx)("div",l(l({className:s()("qC93k",n)},r),{},{children:t}))}},95712:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(4942),i=n(45987),a=n(85893),s=["children"];function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const u=function(e){var t=e.children,n=(0,i.Z)(e,s);return(0,a.jsx)("div",c(c({className:"xJ9FN"},n),{},{children:t}))}},91536:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(4942),i=n(45987),a=n(94184),s=n.n(a),o=n(85893),c=["children","className"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f=function(e){var t=e.children,n=e.className,r=(0,i.Z)(e,c);return(0,o.jsx)("h3",l(l({className:s()("pIQMq",n)},r),{},{children:t}))}},8342:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(67294),i=n(53808),a=n(63101),s=n(23543),o=n(3262),c=n(91536),u=n(58461),l=n(95712),f=n(85893);const h=function(e){var t=e.shortcuts,n=e.onModalClose,h=e.isOpen;return(0,f.jsxs)(o.Z,{onModalClose:n,isOpen:h,className:"Lc3cW",children:[(0,f.jsx)(c.Z,{children:(0,i.Z)("Keyboard Shortcuts")}),(0,f.jsx)(u.Z,{children:(0,f.jsxs)("table",{className:"Ooj_l",children:[(0,f.jsx)("thead",{children:(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{className:"P07mv",children:(0,i.Z)("Shortcut")}),(0,f.jsx)("th",{className:"iXeHu",children:(0,i.Z)("Description")})]})}),(0,f.jsx)("tbody",{children:t.map((function(e,t){var n=e.description,s=e.shortcuts;return(0,f.jsxs)("tr",{className:"tt9uJ",children:[(0,f.jsx)("td",{className:"wE5nz",children:s.map((function(e,t){return(0,f.jsxs)(r.Fragment,{children:[(0,f.jsx)("div",{className:"cGBV0",children:(0,f.jsx)(a.aX,{shortcut:e})}),t!==s.length-1&&" ".concat((0,i.Z)("or")," ")]},"shortcut-".concat(e,"-").concat(t))}))}),(0,f.jsx)("td",{children:n})]},"shortcut-".concat(t))}))})]})}),(0,f.jsx)(l.Z,{children:(0,f.jsx)(a.zx,{text:(0,i.Z)("Close"),onClick:n,type:s.V5.n1})})]})}},14824:(e,t,n)=>{"use strict";n.d(t,{FS:()=>c,Xg:()=>u,u0:()=>l,wU:()=>f,DC:()=>h,xz:()=>p,GU:()=>d,VO:()=>v});var r,i=n(4942),a=n(53808),s=n(63101),o=n(85893),c="DOES_MATCH",u="DOES_NOT_MATCH",l="STARTS_WITH",f="ENDS_WITH",h="CONTAINS",p="EQUALS",d="IS_NULL",v=(r={},(0,i.Z)(r,c,(0,a.Z)("does match")),(0,i.Z)(r,u,(0,o.jsx)(s.vV,{text:"does {1} match",ph1:(0,o.jsx)("em",{style:{textDecoration:"underline"},children:(0,a.Z)("not")})})),(0,i.Z)(r,l,(0,a.Z)("starts with")),(0,i.Z)(r,f,(0,a.Z)("ends with")),(0,i.Z)(r,h,(0,a.Z)("contains")),(0,i.Z)(r,p,(0,a.Z)("equals")),(0,i.Z)(r,d,(0,a.Z)("is null")),r)},89441:(e,t,n)=>{"use strict";n.d(t,{m:()=>i,H:()=>a});var r=n(53808),i="REGEX";function a(e,t){if(e===i)return(0,r.Z)("regex");if(0===(e=parseInt(e,10)))return(0,r.Z)("full match");var n=e;return null!=t[e]&&e!==t[e]&&(n+=" (".concat(t[e],")")),(0,r.Z)("capture group {1}",n)}},50836:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(93942),i=n(63101),a=n(39781),s=n(85893);const o=function(e){var t=e.className,n=e.children,o=e.to,c=void 0===o?"debugger":o,u=(0,r.v9)((function(e){return e.regexEditor.flavor}));return(0,a.G)(u)?(0,s.jsx)(i.rU,{to:c,className:t,children:n}):null}},23584:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(4942),i=n(45987),a=n(67294),s=n(94184),o=n.n(s),c=n(63101),u=n(23543),l=n(70657),f=n(85893),h=["tooltip","tooltipDirection","children","size","className","style"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=e.tooltip,n=e.tooltipDirection,r=void 0===n?u.qF.N:n,s=e.children,p=e.size,v=void 0===p?22:p,g=e.className,m=e.style,y=void 0===m?{}:m,x=(0,i.Z)(e,h);return!s||s.length>1?null:(0,f.jsx)(c.lx,{text:t,direction:r,children:(0,f.jsxs)(c.rU,d(d({className:o()(l.Z.iconButton,g),style:d(d({},y),{},{width:v,height:v})},x),{},{children:[(0,f.jsx)(c._G,{children:t}),(0,a.cloneElement)(s,d(d({},s.props),{},{className:o()(s.props.className,l.Z.icon)}))]}))})};const g=(0,a.memo)(v)},20411:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(42982),i=n(45987),a=n(67294),s=n(53808),o=n(85893),c=["text","tag","className","style"],u=/{[1-9]\d*}/g,l=function(e){var t=e.text,n=e.tag,l=void 0===n?"span":n,f=e.className,h=e.style,p=(0,i.Z)(e,c),d=t.match(u);if(!d)return(0,o.jsx)(l,{className:f,style:h,children:s.Z.apply(void 0,[t].concat((0,r.Z)(Object.values(p))))});var v=t.split(u);return(0,o.jsx)(l,{className:f,style:h,children:v.reduce((function(e,t,n){if(!d[n])return[].concat((0,r.Z)(e),[t]);var i=d[n].slice(1,-1),s=p["ph".concat(i)];return[].concat((0,r.Z)(e),[t,(0,o.jsx)(a.Fragment,{children:s},t+n)])}),[])})};const f=(0,a.memo)(l)},20400:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(70885),i=n(42982),a=n(4942),s=n(45987),o=n(67294),c=n(94184),u=n.n(c),l=n(93942),f=n(39912),h=n(85893),p=["text","removeNewlines","className","markerClassName"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=function(e){var t=e.text,n=e.removeNewlines,a=e.className,o=e.markerClassName,c=(0,s.Z)(e,p),d=(0,l.v9)((function(e){return e.settings.displayWhitespace}));if(!d&&!n)return(0,h.jsx)("span",v(v({className:a},c),{},{children:t}));var g=!d&&n?/(?:\r\n?|\n)/g:/(?:\r\n?|\n)|[ \t\f\v\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,m=t.split(g);if(m.length<=1)return(0,h.jsx)("span",v(v({className:a},c),{},{children:t}));var y=t.match(g);return m.reduce((function(e,t,s){if(!y[s])return[].concat((0,i.Z)(e),[t]);var c=function(e){if(/[\r\n]/.test(e))return[f.Z.whitespace,"\u21b5"];if(e.length>1)throw new Error('Marker length greater than 1, string: "'.concat(e,'"'));return" "===e?[f.Z.whitespace,"\u2022"]:"\t"===e?[f.Z.tab," "]:[f.Z.specialChar,"U+".concat(("0000"+e.codePointAt(0).toString(16).toUpperCase()).slice(-4))]}(y[s]),l=(0,r.Z)(c,2),p=l[0],d=l[1],v=n&&"\n"===y[s]?(0,h.jsx)("span",{className:u()(a,o,p,f.Z.removeNewlines),children:d},"special-char-".concat(s)):(0,h.jsx)("span",{className:u()(a,o,p,f.Z.addBeforeElement),"data-content":d,children:y[s]},"special-char-".concat(s));return[].concat((0,i.Z)(e),[t,v])}),[])};const m=(0,o.memo)(g)},63101:(e,t,n)=>{"use strict";n.d(t,{Yd:()=>M,zx:()=>q,FX:()=>Ve,gx:()=>We,qi:()=>et,Yi:()=>rt.Z,SV:()=>ft,Tv:()=>tt,iQ:()=>dt,aX:()=>Et,hU:()=>Ae,x6:()=>vt.Z,CP:()=>Ot,__:()=>p,rU:()=>le,Po:()=>Me,A5:()=>nt,qX:()=>b,h_:()=>z,l_:()=>yt,_G:()=>at,I2:()=>ht,$j:()=>ve,vV:()=>R.Z,Yv:()=>Pe,oi:()=>re,lx:()=>N,uT:()=>be,K:()=>it.Z});var r=n(4942),i=n(45987),a=n(94184),s=n.n(a),o=n(23543);const c={root:"dYInr",small:"z2wCE",medium:"yBUBH",large:"m46EU",overflow:"JOzNE",required:"uJMuU"};var u=n(85893),l=["size","text","className","children","allowOverflow","required"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const p=function(e){var t=e.size,n=void 0===t?o.J7.HC:t,r=e.text,a=e.className,f=e.children,p=e.allowOverflow,d=e.required,v=(0,i.Z)(e,l);return(0,u.jsxs)("h2",h(h({className:s()(c.root,!p&&c.overflow,c[n],a)},v),{},{children:[(0,u.jsx)("span",{className:s()(!p&&c.overflow),children:r}),d&&(0,u.jsx)("span",{className:c.required,children:" *"}),f]}))};var d=n(67294);const v={error:"zyVia",warn:"wxY97",info:"ZHUJ9",margin:"_2SqQ"};var g=["type","children","className","noMargin"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){var t=e.type,n=void 0===t?o.gr.H_:t,r=e.children,a=e.className,c=e.noMargin,l=(0,i.Z)(e,g);return n===o.gr.pn&&(l.role=l.role||"alert",c=!0),(0,u.jsx)("div",y(y({className:s()(v[n],!c&&v.margin,a)},l),{},{children:r}))};const b=(0,d.memo)(x);var j=n(70885),Z=n(31807),O=n.n(Z),w=n(49581),k=n(70872),C=n(74387);const E={portal:"B5ZQm",animation:"W1cZe",tooltipped:"VkxC6","tooltipped-s":"tpO8n","tooltipped-se":"rRIcU","tooltipped-sw":"rxR8J","tooltipped-n":"HEiJb","tooltipped-ne":"C8D6d","tooltipped-nw":"_LdAA","tooltipped-w":"ItfZm","tooltipped-e":"G0Q1B",multiline:"IE41R","tooltipped-sticky":"prZOI",enter:"_e9G1",enterActive:"cSwfV",leave:"y9o0V",leaveActive:"UuK9m"};var P=O()&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),S=(0,k.Z)(C.DP),_={appear:E.enter,appearActive:E.enterActive,enter:E.enter,enterActive:E.enterActive,exit:E.leave,exitActive:E.leaveActive};const N=function(e){var t=e.direction,n=void 0===t?o.qF.S:t,r=e.text,i=e.children,a=e.disableTooltip,c=e.multiline,l=(0,d.useRef)({}),f=(0,d.useState)(!1),h=(0,j.Z)(f,2),p=h[0],v=h[1],g=(0,d.useRef)(null),m=d.Children.only(i),y=m.ref||g,x=(0,w.Sf)((function(){return v(!0)}),175,"cancel");if((0,d.useEffect)((function(){var e=y.current,t=function(){var e,t;null!==(e=document)&&void 0!==e&&null!==(t=e.body)&&void 0!==t&&t.classList.contains("using-keyboard")&&v(!0)},n=function(){var e,t;x.cancel(),null!==(e=document)&&void 0!==e&&null!==(t=e.body)&&void 0!==t&&t.classList.contains("using-keyboard")&&v(!1)},r=function(){x.cancel(),v(!1)},i=function(t){null!==e&&void 0!==e&&e.contains(t.target)||e===t.target||r()};return e.addEventListener("focus",t,{passive:!0}),e.addEventListener("blur",n,{passive:!0}),e.addEventListener("mouseenter",x,{passive:!0}),e.addEventListener("mouseleave",r,{passive:!0}),document.body.addEventListener("click",i,{passive:!0}),function(){x.cancel(),e.removeEventListener("focus",t,{passive:!0}),e.removeEventListener("blur",n,{passive:!0}),e.removeEventListener("mouseenter",x,{passive:!0}),e.removeEventListener("mouseleave",r,{passive:!0}),document.body.removeEventListener("click",i,{passive:!0})}}),[y,x]),(0,d.useEffect)((function(){(m.props.disabled||m.props.isDisabled)&&(x.cancel(),v(!1))}),[m.props.disabled,m.props.isDisabled,x]),y.current&&p){var b,Z,O=y.current.getBoundingClientRect();switch(l.current={position:"absolute",height:O.height,width:O.width},n){case o.qF.SE:case o.qF.SW:case o.qF.S:b=O.top+O.height,Z=O.left;break;case o.qF.NW:case o.qF.NE:case o.qF.N:b=O.top,Z=O.left;break;case o.qF.W:case o.qF.E:b=O.top+O.height/2,Z=O.left;break;default:throw new Error("Unhandled tooltip direction ".concat(n))}l.current.top=Math.round(b),l.current.left=Math.round(Z)}var k=!a&&!P&&p;return(0,u.jsxs)(u.Fragment,{children:[(0,d.cloneElement)(m,{ref:y,"aria-label":m.props["aria-label"]||r}),(0,u.jsx)(z,{isOpen:k,closeTimeout:S,className:E.portal,children:(0,u.jsx)(be,{className:E.animation,classNames:_,timeout:S,style:l.current,in:k,children:(0,u.jsx)("div",{className:s()(E.tooltipped,c&&E.multiline,E["tooltipped-".concat(n)]),role:"tooltip",children:(0,u.jsx)("span",{children:r})})})})]})};var R=n(20411),T=n(45697),A=n.n(T),D=["tag","className","onClick","disabled"];function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var L=(0,d.forwardRef)((function(e,t){var n=e.tag,a=void 0===n?"button":n,o=e.className,c=e.onClick,l=e.disabled,f=(0,i.Z)(e,D),h=(0,d.useCallback)((function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c(e))}),[c]);return"button"!==a&&(f.role=f.role||"button",f.tabIndex=f.tabIndex||0,l||(f.onKeyUp=h)),l&&(f.tabIndex=-1,f.disabled=!0),"button"===a&&(f.type="button"),(0,u.jsx)(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:s()("b0Wk4",l&&"KOowz",o),onClick:l?void 0:c,ref:t,"aria-disabled":l},f))}));const M=(0,d.memo)(L),B={okButton:"KlLjA",cancelButton:"o0XbU",dangerButton:"LHBOD",disabled:"TzGX0"};var U=["text","type","className","disabled"];function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V=(0,d.forwardRef)((function(e,t){var n=e.text,r=e.type,a=void 0===r?o.V5.OK:r,c=e.className,l=e.disabled,f=(0,i.Z)(e,U);return(0,u.jsx)(M,G(G({className:s()(B[a],c,l&&B.disabled),"aria-label":n,disabled:l,ref:t},f),{},{children:n}))}));V.propTypes={text:A().string.isRequired,type:A().oneOf(o.V5.$6),className:A().string,disabled:A().bool};const q=(0,d.memo)(V);var H=n(73935);const z=function(e){var t=e.className,n=e.children,r=e.onPortalRef,i=e.isOpen,a=void 0===i||i,s=e.closeTimeout,o=void 0===s?0:s,c=e.portalTarget,l=null==c&&O()?document.body:c,f=(0,d.useState)(!1),h=(0,j.Z)(f,2),p=h[0],v=h[1],g=(0,d.useRef)(),m=(0,d.useRef)();(0,d.useEffect)((function(){return a&&(clearTimeout(m.current),null==g.current&&(g.current=document.createElement("div"),l.appendChild(g.current),null===r||void 0===r||r(g.current)),v(!0)),function(){null!=g.current&&(clearTimeout(m.current),m.current=setTimeout((function(){var e;null===(e=g.current)||void 0===e||e.remove(),g.current=null,v(!1),null===r||void 0===r||r(null)}),o))}}),[a,l,o,r]),(0,d.useEffect)((function(){null!=g.current&&null!=t&&(g.current.className=t)}),[a,t]),(0,d.useEffect)((function(){return function(){var e;clearTimeout(m.current),null===(e=g.current)||void 0===e||e.remove(),g.current=null,null===r||void 0===r||r(null)}}),[r]);var y=d.Children.only(n);return O()?p?H.createPortal(y,g.current):null:(0,u.jsx)("div",{style:{display:"none"},children:y})};var W=n(79352),Y=n(25968),K=n(53808),J=n(12037),X=function(e){var t=e.maxLength,n=e.currentLength,r=void 0===n?0:n,i=e.multiline,a=s()("MaQ5e",!i&&"kRYUB");return t?(0,u.jsx)("div",{className:a,children:"".concat(r,"/").concat(t)}):(0,u.jsx)("div",{className:a,children:r})};const Q=(0,d.memo)(X);var $=["onChange","className","codeInput","value","defaultValue","multiline","readOnly","maxlength","validation","showLengthCounter","selectOnMount","selectOnFocus","focusOnMount","wrappedClassName","copyButton","clearButton"];function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=(0,d.forwardRef)((function(e,t){var n=e.onChange,r=e.className,a=e.codeInput,c=e.value,l=e.defaultValue,f=e.multiline,h=void 0!==f&&f,p=e.readOnly,v=e.maxlength,g=e.validation,m=e.showLengthCounter,y=e.selectOnMount,x=e.selectOnFocus,b=e.focusOnMount,Z=e.wrappedClassName,O=e.copyButton,w=e.clearButton,k=(0,i.Z)(e,$),C=(0,d.useState)(""),E=(0,j.Z)(C,2),P=E[0],S=E[1],_=(0,d.useState)(!1),R=(0,j.Z)(_,2),T=R[0],A=R[1],D=(0,d.useState)(!1),I=(0,j.Z)(D,2),L=I[0],B=I[1],U=(0,d.useRef)(null),F=t||U;(0,d.useEffect)((function(){var e=null;return T&&(e=setTimeout((function(){return A(!1)}),400)),function(){clearTimeout(e)}}),[T]),(0,d.useEffect)((function(){null!=c&&S(c)}),[c]);var G=(0,d.useCallback)((function(){Y.ZP.emit(Y.B3,J.LEFT_ARROW),Y.ZP.emit(Y.B3,J.RIGHT_ARROW),Y.ZP.emit(Y.B3,J.SHIFT_LEFT_ARROW),Y.ZP.emit(Y.B3,J.SHIFT_RIGHT_ARROW),B(!0)}),[]),V=(0,d.useCallback)((function(){Y.ZP.emit(Y.LG,J.LEFT_ARROW),Y.ZP.emit(Y.LG,J.RIGHT_ARROW),Y.ZP.emit(Y.LG,J.SHIFT_LEFT_ARROW),Y.ZP.emit(Y.LG,J.SHIFT_RIGHT_ARROW),B(!1)}),[]),q=(0,d.useCallback)((function(e){if(!p){var t=e.target.value;g&&!g.test(t)||v&&v<t.length?(A(!0),null===n||void 0===n||n(P)):(A(!1),S(t),null===n||void 0===n||n(t))}}),[P,v,g,n,p]),H=(0,d.useCallback)((function(){A(!1),S(""),null===n||void 0===n||n("")}),[n]);(0,d.useEffect)((function(){null!=l&&S(l)}),[l]),(0,d.useEffect)((function(){(y||b)&&setTimeout((function(){var e;return null===(e=F.current)||void 0===e?void 0:e.focus()}))}),[]),(0,d.useEffect)((function(){L&&x&&F.current.select()}),[F,x,L]);var z=h?"textarea":"input",X=w&&!p&&!h&&!v&&!m&&P.length>0;return(0,u.jsxs)("div",{className:s()("OSM2Q",T&&"YUotv",L&&"E646T",p&&"qPEQx",Z),children:[(0,u.jsx)(z,te(te({},k),{},{className:s()("vNcES",a&&"zLfBM",O&&"L6fuH",X&&"svJgY",(v||m)&&!h&&"Nih6H",r),onChange:q,onFocus:G,onBlur:V,value:P,ref:F})),X&&(0,u.jsx)(N,{text:(0,K.Z)("Clear"),direction:o.qF.NW,children:(0,u.jsx)(M,{onClick:H,className:"e8Fwv",children:(0,u.jsx)(W.eSQ,{size:20})})}),(v||m)&&(0,u.jsx)(Q,{maxLength:v,currentLength:P.length,multiline:h}),O&&(0,u.jsx)(et,{className:"mha2w",copyText:P,basic:!0})]})}));const re=(0,d.memo)(ne);var ie=n(39711),ae=n(96974),se=["to","absolute","children","noTheme","className","activeClassName","activeRegex"];function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=(0,d.forwardRef)((function(e,t){var n=e.to,r=e.absolute,a=void 0!==r&&r,o=e.children,c=e.noTheme,l=void 0!==c&&c,f=e.className,h=e.activeClassName,p=e.activeRegex,d=(0,i.Z)(e,se),v=(0,ae.TH)().pathname,g=null!=p&&p.test(v),m=s()("HnB3F",!l&&"kKIV1",g&&h,f);return a?(0,u.jsx)("a",ce(ce({href:n,className:m,rel:"noopener",ref:t},d),{},{children:o})):(0,u.jsx)(ie.rU,ce(ce({to:n,className:m,ref:t},d),{},{children:o}))}));const le=(0,d.memo)(ue),fe={loading:"Pv6NV",large:"K5n25",medium:"uo2S1",small:"LbYg5",tiny:"u06aC"};var he=["className","size"];function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var de=function(e){var t=e.className,n=e.size,a=void 0===n?o.J7.M2:n,c=(0,i.Z)(e,he);return(0,u.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:s()(fe.loading,t,fe[a]),"aria-label":(0,K.Z)("Loading...")},c))};const ve=(0,d.memo)(de);var ge=n(17159),me=["children","className","component","appear","enter","exit","unmountOnExit","mountOnEnter","timeout","classNames","style","in"];function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const be=(0,d.forwardRef)((function(e,t){var n=e.children,r=e.className,a=e.component,s=void 0===a?"div":a,o=e.appear,c=void 0===o||o,l=e.enter,f=void 0===l||l,h=e.exit,p=void 0===h||h,d=e.unmountOnExit,v=void 0===d||d,g=e.mountOnEnter,m=void 0===g||g,y=e.timeout,x=e.classNames,b=e.style,j=e.in,Z=(0,i.Z)(e,me),w=(0,u.jsx)(s,{className:r,style:b,ref:t,children:n});return O()?"visible"===document.visibilityState||!1===document.hidden||document.hasFocus()?(0,u.jsx)(ge.Z,xe(xe({classNames:x,timeout:y,appear:c,enter:f,exit:p,mountOnEnter:m,unmountOnExit:v,in:j},Z),{},{children:w})):(0,u.jsx)(ge.Z,xe(xe({className:r,classNames:x,timeout:y,appear:!1,enter:!1,exit:p,mountOnEnter:m,unmountOnExit:v,in:j},Z),{},{children:w})):w}));var je=n(37731),Ze=n(25913),Oe=n(12541),we=["target","placement"];function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn:function(e){var t=e.state,n=t.modifiersData.maxSize.height;t.styles.popper.maxHeight="".concat(n,"px")}};const Pe=function(e){var t=e.target,n=e.placement,r=(0,i.Z)(e,we),a=(0,d.useRef)(null);(0,d.useEffect)((function(){return function(){var e;return null===(e=a.current)||void 0===e?void 0:e.destroy()}}),[]);var s=(0,d.useCallback)((function(e){if(e){var r=H.findDOMNode(e),i=H.findDOMNode(t);a.current=(0,je.fi)(i,r,{placement:n,modifiers:[Ce(Ce({},Oe.Z),{},{options:{padding:10}}),Ee,Ze.Z],rootBoundary:"viewport"})}else{var s;null===(s=a.current)||void 0===s||s.destroy()}}),[t,n]);return(0,u.jsx)(z,Ce(Ce({},r),{},{onPortalRef:s}))};var Se=n(70657),_e=["tooltip","tooltipDirection","className","children","disabled","size","isLoading"];function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=(0,d.forwardRef)((function(e,t){var n=e.tooltip,r=e.tooltipDirection,a=void 0===r?o.qF.N:r,c=e.className,l=e.children,f=e.disabled,h=e.size,p=void 0===h?22:h,v=e.isLoading,g=void 0!==v&&v,m=(0,i.Z)(e,_e);return!l||l.length>1?null:(0,u.jsx)(N,{text:n,direction:a,children:(0,u.jsxs)(M,Re(Re({className:s()(Se.Z.iconButton,f&&Se.Z.disabled,c),disabled:f},m),{},{style:{width:p,height:p},ref:t,children:[(0,d.cloneElement)(l,Re(Re({},l.props),{},{className:s()(l.props.className,Se.Z.icon)})),g&&(0,u.jsx)("div",{className:Se.Z.spinner,children:(0,u.jsx)(ve,{style:{width:p-12,height:p-12},size:o.J7.HC})})]}))})}));const Ae=(0,d.memo)(Te);var De=["children","className"];function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Me=function(e){var t=e.children,n=e.className,r=(0,i.Z)(e,De);return(0,u.jsx)(p,Le(Le({className:s()("icHQ0",n)},r),{},{children:(0,u.jsx)("div",{className:"hwtOd",children:t})}))};var Be=["collapsed","className","onClick"];function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=function(e){var t=e.collapsed,n=e.className,r=e.onClick,a=(0,i.Z)(e,Be);return(0,u.jsx)(M,{onClick:r,children:(0,u.jsx)(p,Fe(Fe({className:s()("MudcX",n)},a),{},{children:(0,u.jsx)("div",{className:"YTTWs",children:t?(0,u.jsx)(W.gcy,{}):(0,u.jsx)(W.ZXJ,{})})}))})};const Ve=(0,d.memo)(Ge);var qe=["header","children","className","contentClassName","isVisible"];function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const We=function(e){var t=e.header,n=e.children,r=e.className,a=e.contentClassName,o=e.isVisible,c=void 0===o||o,l=(0,i.Z)(e,qe);return(0,u.jsxs)("div",ze(ze({className:s()("gUc_7",r)},l),{},{children:[(0,d.cloneElement)(t,{className:s()("BrhQI",t.props.className)}),c&&(0,u.jsx)("div",{className:s()("D57o9",a),children:(0,d.cloneElement)(n,{className:s()(n.props.className,"KjF06")})})]}))};var Ye,Ke=n(84665),Je=["className","basic","getCopyComponent","copyText"];function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}O()&&(Ye=n(42152));var $e=function(e){var t=e.className,n=e.basic,r=e.getCopyComponent,a=e.copyText,c=(0,i.Z)(e,Je),l=(0,d.useRef)(null),f=(0,d.useState)(null),h=(0,j.Z)(f,2),p=h[0],v=h[1];return(0,d.useEffect)((function(){var e,t=new Ye(l.current,{container:l.current,text:function(){if(null==r)return a;var e=r();return e.textContent||e.value||""}}),n=function(t){var n;t.clearSelection(),v((0,K.Z)("Copied!")),null===(n=l.current)||void 0===n||n.focus(),clearTimeout(e),e=setTimeout((function(){return v(null)}),1e3)},i=function(){v((0,K.Z)("Press {1} to copy",(0,Ke.W5)("c"))),clearTimeout(e),e=setTimeout((function(){return v(null)}),1e3)};return t.on("success",n),t.on("error",i),function(){clearTimeout(e),t.off("success",n),t.off("error",i),t.destroy()}}),[r,a]),n?(0,u.jsx)(N,{direction:o.qF.NW,text:p||(0,K.Z)("Copy to clipboard"),children:(0,u.jsx)(M,Qe(Qe({className:s()("EOaQm",t),onMouseOut:function(){return v(null)},ref:l},c),{},{children:(0,u.jsx)(W.qA2,{size:16})}))}):(0,u.jsx)(Ae,Qe(Qe({tooltip:p||(0,K.Z)("Copy to clipboard"),tooltipDirection:o.qF.NW,onMouseOut:function(){return v(null)},size:28,ref:l,className:t},c),{},{children:(0,u.jsx)(W.qA2,{size:14})}))};const et=(0,d.memo)($e),tt=function(e){var t=e.className,n=e.topPadding,r=void 0===n?0:n,i=e.rightPos,a=void 0===i?0:i,o=e.children,c=(0,d.useRef)(null);return(0,d.useEffect)((function(){var e,t,n=null===(e=c.current)||void 0===e?void 0:e.parentNode,i=function(){c.current&&(c.current.style.opacity=.01,clearTimeout(t),t=setTimeout((function(){if(n&&c.current){var e=n.scrollTop,t=n.scrollLeft;c.current.style.opacity=1,c.current.style.top=r+e+"px",c.current.style.left="calc(100% + ".concat(t-a,"px)")}}),250))};return n.addEventListener("scroll",i,{capture:!1,passive:!0}),function(){clearTimeout(t),n.removeEventListener("scroll",i,{capture:!1,passive:!0})}}),[r,a]),(0,u.jsx)("div",{className:s()("WRRyg",t),ref:c,style:{top:r,left:"calc(100% - ".concat(a,"px)")},children:o})};function nt(){return(0,u.jsx)("noscript",{children:(0,u.jsx)(le,{to:"http://enable-javascript.com/",absolute:!0,children:(0,K.Z)("Please enable JavaScript to use this web application.")})})}var rt=n(50836),it=n(20400);const at=function(e){var t=e.children;return(0,u.jsx)("span",{className:"M__Pz",children:t})};var st=n(15671),ot=n(43144),ct=n(60136),ut=n(82963),lt=n(61120);const ft=function(e){(0,ct.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,lt.Z)(t);if(n){var i=(0,lt.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,ut.Z)(this,e)});function i(){var e;(0,st.Z)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=r.call.apply(r,[this].concat(n))).state={hasError:!1},e}return(0,ot.Z)(i,[{key:"componentDidCatch",value:function(e,t){}},{key:"render",value:function(){var e=this.props,t=e.fallback,n=e.children,r=e.className;return this.state.hasError?void 0===t?(0,u.jsx)(b,{type:o.gr.pn,className:r,children:(0,K.Z)("An error occurred while fetching the resource")}):t:n}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),i}(d.Component),ht=function(e){var t=e.fallback,n=e.errorClassName,r=e.children,i=e.errorFallback;return O()?(0,u.jsx)(ft,{className:n,fallback:i,children:(0,u.jsx)(d.Suspense,{fallback:t,children:r})}):t};var pt=n(44291);const dt=function(e){var t=e.children,n=d.Children.only(t),r=(0,d.useRef)(null),i=n.ref||r;return(0,d.useEffect)((function(){var e;return i.current&&(e=(0,pt.v)(i.current,{returnFocusOnDeactivate:!0,allowOutsideClick:!0})).activate(),function(){var t;clearTimeout(void 0),null===(t=e)||void 0===t||t.deactivate()}}),[i]),(0,d.cloneElement)(n,{ref:i})};var vt=n(23584),gt=n(58830);function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const yt=function(e){return(0,d.useContext)(gt.U),(0,u.jsx)(ae.Fg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))};var xt=["className","children"];function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=(0,d.forwardRef)((function(e,t){var n=e.className,r=e.children,a=(0,i.Z)(e,xt);return(0,u.jsxs)(M,jt(jt({className:s()("WtMVB",n),ref:t},a),{},{children:[r,(0,u.jsx)(W.ZXJ,{})]}))}));Zt.propTypes={className:A().string,children:A().node};const Ot=Zt;var wt=n(93942),kt=n(49061),Ct=function(e){var t=e.shortcut;if((0,wt.v9)((function(e){return e.settings.disableKeyboardShortcuts})))return null;var n=[];t.metaKey&&(Ke.yg&&Ke.yg!==kt.B?Ke.yg===kt.v&&n.push("\u2318"):n.push("ctrl")),t.shiftKey&&n.push("\u21e7"),t.altKey&&n.push("\u2325");var r=null;switch(t.key){case"ArrowLeft":r="\u2190";break;case"ArrowUp":r="\u2191";break;case"ArrowRight":r="\u2192";break;case"ArrowDown":r="\u2193";break;case"PageDown":r="PgDn";break;case"PageUp":r="PgUp";break;case"Enter":r="enter";break;default:r=t.key}return n.push(r),n.join("+")};Ct.propTypes={shortcut:A().object.isRequired};const Et=(0,d.memo)(Ct)},23543:(e,t,n)=>{"use strict";n.d(t,{qF:()=>i,gr:()=>u,J7:()=>r,V5:()=>a});var r={};n.r(r),n.d(r,{M2:()=>s,HC:()=>o,TC:()=>c});var i={};n.r(i),n.d(i,{E:()=>g,N:()=>v,NE:()=>p,NW:()=>d,S:()=>h,SE:()=>l,SW:()=>f,W:()=>m});var a={};n.r(a),n.d(a,{n1:()=>y,T:()=>b,OK:()=>x,$6:()=>j});var s="medium",o="small",c="tiny",u=n(43154),l="se",f="sw",h="s",p="ne",d="nw",v="n",g="e",m="w",y="cancelButton",x="okButton",b="dangerButton",j=[x,y,b]},43154:(e,t,n)=>{"use strict";n.d(t,{pn:()=>r,u_:()=>i,H_:()=>a});var r="error",i="warn",a="info"},34595:e=>{e.exports={ROOT_ELEMENT:"#regex-app",UPDATE_RESULT_DELAY:500,DONATION_LINK:"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=firas%2edib%40gmail%2ecom&lc=US&item_name=Regex101&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest",WEBCHAT_LINK:"https://web.libera.chat/?nick=<NICKNAME>&chan=#regex",GROUP_COUNT:6,DELETE_CODES:"regex101-delete-codes",CACHE_NAME:"regex101-cache",SPONSOR_LINK:"https://github.com/sponsors/firasdib",STATE_STORAGE_KEY:"regex101-state",STATE_TEMP_REGEX_EDITOR_KEY:"regex101-temp",DEFAULT_PAGE_TITLE:"build, test, and debug regex",DEFAULT_META_DESCRIPTION:"Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java. Features a regex quiz & library.",LIBRARY_META_DESCRIPTION:"Search, filter and view user submitted regular expressions in the regex library. Over 15,000 entries, and counting!",QUIZ_META_DESCRIPTION:"Learn regex and challenge yourself in a unique regex quiz: play progressively harder levels and compete with orders in creating the shortest solutions.",SETTINGS_META_DESCRIPTION:"Customize your regex101 experience to suit your needs. Extensive options available: themes, default flavor, site language, and much more.",ACCOUNT_META_DESCRIPTION:"Manage all your regular expressions using your personal account. Add favorites, organize entries with titles and tags, make entries private, and more!"}},78850:(e,t,n)=>{var r,i=n(59713),a=n(81370),s=["/","~","@",";","%","`","#"];e.exports=(i(r={},a.PCRE2,s),i(r,a.PCRE,s),i(r,a.PYTHON,['"',"'",'"""',"'''"]),i(r,a.JAVASCRIPT,["/","`",'"',"'"]),i(r,a.GOLANG,["`"]),i(r,a.JAVA,['"']),r)},81370:e=>{var t="pcre",n="pcre2",r="javascript",i="python",a="golang",s="java",o=[t,n,r,i,a,s];e.exports={PCRE2:n,PCRE:t,PYTHON:i,JAVASCRIPT:r,GOLANG:a,JAVA:s,all:o}},12037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ESC:()=>r,UPDATE_REGEX:()=>i,SAVE_REGEX:()=>a,LEFT_ARROW:()=>s,RIGHT_ARROW:()=>o,SHIFT_LEFT_ARROW:()=>c,SHIFT_RIGHT_ARROW:()=>u,COMMA:()=>l,DOT:()=>f,META_LEFT_ARROW:()=>h,META_RIGHT_ARROW:()=>p,PLUS:()=>d,MINUS:()=>v,HOME:()=>g,END:()=>m,PAGE_UP:()=>y,PAGE_DOWN:()=>x,RUN_UNIT_TESTS:()=>b,SHOW_SHORTCUTS:()=>j,SWITCH_TO_MATCH:()=>Z,SWITCH_TO_SUBST:()=>O,SWITCH_TO_LIST:()=>w,SWITCH_TO_UNIT_TESTS:()=>k,SHOW_DEBUGGER:()=>C,SHOW_CODE_GEN:()=>E});var r={name:"escape",keyCode:[27],key:"Escape",overrideInput:!0},i={name:"updateRegex",key:"s",keyCode:[83],shiftKey:!0,metaKey:!0,alwaysConsume:!0,overrideInput:!0},a={name:"saveRegex",key:"s",keyCode:[83],metaKey:!0,alwaysConsume:!0,overrideInput:!0},s={name:"leftArrow",key:"ArrowLeft",keyCode:[37],overrideInput:!1},o={name:"rightArrow",key:"ArrowRight",keyCode:[39],overrideInput:!1},c={name:"shiftLeftArrow",key:"ArrowLeft",keyCode:[37],shiftKey:!0,overrideInput:!1},u={name:"shiftRightArrow",key:"ArrowRight",keyCode:[39],shiftKey:!0,overrideInput:!1},l={name:"comma",key:",",keyCode:[44],overrideInput:!1},f={name:"dot",key:".",keyCode:[46],overrideInput:!1},h={name:"metaArrowLeft",key:"ArrowLeft",keyCode:[37],metaKey:!0,overrideInput:!1},p={name:"metaArrowRight",key:"ArrowRight",keyCode:[39],metaKey:!0,overrideInput:!1},d={name:"plus",key:"+",keyCode:[107,171],overrideInput:!1},v={name:"minus",key:"-",keyCode:[109,173],overrideInput:!1},g={name:"home",key:"Home",keyCode:[36],overrideInput:!1},m={name:"end",key:"End",keyCode:[35],overrideInput:!1},y={name:"pageUp",key:"PageUp",keyCode:[33],overrideInput:!1},x={name:"pageDown",key:"PageDown",keyCode:[34],overrideInput:!1},b={name:"ctrlEnter",key:"Enter",keyCode:[13],metaKey:!0,overrideInput:!0},j={name:"question",key:"?",keyCode:[171],shiftKey:!0,overrideInput:!1},Z={name:"ctrl1",key:"1",keyCode:[49],metaKey:!0,overrideInput:!0},O={name:"ctrl2",key:"2",keyCode:[50],metaKey:!0,overrideInput:!0},w={name:"ctrl3",key:"3",keyCode:[51],metaKey:!0,overrideInput:!0},k={name:"ctrl4",key:"4",keyCode:[52],metaKey:!0,overrideInput:!0},C={name:"ctrlB",key:"b",keyCode:[66],metaKey:!0,overrideInput:!0},E={name:"ctrlG",key:"g",keyCode:[71],metaKey:!0,overrideInput:!0}},69989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CHINESE:()=>y,DUTCH:()=>v,ENGLISH:()=>d,FRENCH:()=>g,GERMAN:()=>m,ITALIAN:()=>w,PORTOGUESE:()=>j,ROMANIAN:()=>O,RUSSIAN:()=>Z,SPANISH:()=>b,SWEDISH:()=>x});const r=n.p+"assets/english.c37e8be7.json",i=n.p+"assets/dutch.eb64730d.json",a=n.p+"assets/french.64fab261.json",s=n.p+"assets/german.d4cfa1da.json",o=n.p+"assets/zh.af835888.json",c=n.p+"assets/sv.1556021c.json",u=n.p+"assets/spanish.0d91ad0f.json",l=n.p+"assets/pt_BR.1baf2556.json",f=n.p+"assets/ru.dfa5c81a.json",h=n.p+"assets/ro.a44de2ab.json",p=n.p+"assets/it.a80763f3.json";var d={text:"English",file:r},v={text:"Dutch",file:i},g={text:"French",file:a},m={text:"German",file:s},y={text:"Chinese",file:o},x={text:"Swedish",file:c},b={text:"Spanish",file:u},j={text:"Portogueze (Brazil)",file:l},Z={text:"Russian",file:f},O={text:"Romanian",file:h},w={text:"Italian",file:p}},35896:e=>{var t="MOST_RECENT",n="MOST_POINTS",r="LEAST_POINTS",i="RELEVANCE",a=[t,n,r,i];e.exports={MOST_RECENT:t,MOST_POINTS:n,LEAST_POINTS:r,RELEVANCE:i,all:a}},34768:(e,t,n)=>{"use strict";n.d(t,{D9:()=>r,ik:()=>i,Y8:()=>a,Hg:()=>s,VE:()=>o,ek:()=>c,Rp:()=>u,e0:()=>l,ed:()=>f,Fo:()=>h,wm:()=>p,Vu:()=>d,UA:()=>v,Gv:()=>g});var r="PATTERN_ERROR",i="TIMEOUT_ERROR",a="FAILED_TO_INITIALIZE_ENGINE",s=-1,o=-8,c=-11,u=-21,l=-26,f=-33,h=-36,p=-47,d=-52,v=-53,g="JAVA_STACK_ERROR"},49061:(e,t,n)=>{"use strict";n.d(t,{v:()=>r,B:()=>i});var r="OSX",i="WINDOWS"},67664:(e,t,n)=>{"use strict";n.d(t,{f0:()=>r,CL:()=>i,Xu:()=>a,wi:()=>s,kU:()=>o,cs:()=>c,bk:()=>u,eB:()=>l,jV:()=>f,wn:()=>h,Gz:()=>p,gN:()=>d,As:()=>v,Bj:()=>g,RY:()=>m,Hh:()=>y,Cc:()=>x,Vt:()=>b,IA:()=>j,sw:()=>Z,i0:()=>O,BC:()=>w,fA:()=>k,VM:()=>C,d3:()=>E,Y4:()=>P,$H:()=>S,Af:()=>_,RH:()=>N,zX:()=>R,t0:()=>T,Jf:()=>A,O3:()=>D,K0:()=>I,Yo:()=>L,y1:()=>M,oH:()=>B,Rf:()=>U,YY:()=>F,xi:()=>G,Iu:()=>V,mi:()=>q,jb:()=>H,XD:()=>z,Ey:()=>W,M3:()=>Y,mB:()=>K,wW:()=>J,Qc:()=>X,of:()=>Q,rs:()=>$,xX:()=>ee,jz:()=>te,sb:()=>ne,Oy:()=>re});var r="UNMATCHED_PARENTHESIS",i="INCOMPLETE_GROUP",a="INVALID_CONDITION",s="DUPLICATE_SUBPATTERN_NAME",o="BAD_SUBPATTERN_NAME",c="TOO_MANY_ALTERNATIVES",u="TOO_LONG_SUBPATTERN_NAME",l="LOOKBEHIND_VARIABLE_WIDTH",f="TOKEN_NOT_ALLOWED_IN_LOOKBEHIND",h="DUPLICATE_SUBPATTERN_BAD_INDEX",p="INVALID_HYPHEN_INLINE_MODIFIERS",d="UNKNOWN_VERB",v="VERB_NOT_AT_START",g="INVALID_REFERENCE",m="NOT_QUANTIFIABLE",y="QUANTIFIER_OUT_OF_ORDER",x="QUANTIFIER_LOOKBEHIND_DISALLOWED",b="QUANTIFIER_TOO_LARGE",j="LONE_BRACKET",Z="INCOMPLETE_CHARCLASS",O="CHARCLASS_RANGE_OUT_OF_ORDER",w="INVALID_CHARCLASS_RANGE_META",k="POSIX_OUTSIDE_CHARCLASS",C="UNKNOWN_POSIX_CLASS",E="INVALID_CHARCLASS_RANGE_PCRE_BUG",P="CHARCLASS_RANGE_INVALID",S="INVALID_POSIX_WORD_BOUNDARY",_="BAD_CHARCLASS_RANGE_SURROGATES",N="UNSUPPORTED_ESCAPE_SEQUENCE",R="TRAILING_BACKSLASH",T="UNESCAPED_DELIMITER",A="TOO_LARGE_NUMBER",D="NULL_BYTE_NOT_ALLOWED",I="INVALID_UNICODE_ESCAPE",L="INCOMPLETE_HEX_TOKEN",M="HEX_VALUE_TOO_LARGE",B="HEX_SURROGATES",U="OCTAL_VALUE_TOO_LARGE",F="INCOMPLETE_TOKEN",G="UNKNOWN_UNICODE_SCRIPT",V="INVALID_CONTROL_CHAR",q="INVALID_ESCAPE_SEQUENCE",H="BACKSPACE_NOT_SUPPORTED",z="EMPTY_QUOTE",W="LONELY_END_QUOTE_ERROR",Y="PYTHON_INLINE_MODIFIERS_BAD_POS",K="PYTHON_CONFLICTING_FLAGS_A_U",J="PYTHON_BOGUS_ESCAPE",X="GOLANG_INVALID_ESCAPE_BACKTICK",Q="JS_NOT_ALLOWED_IN_STRICT_MODE",$="UNMATCHED_BRACKET",ee="TOO_MANY_CONDITIONALS",te="INVALID_CHARCLASS_INTERSECTION",ne="JAVA_BACKREF_PREMATURE_USE",re="BACKREFERENCE_IN_CHAR_CLASS"},76493:(e,t,n)=>{var r,i=n(59713),a=n(31807),s=n(81370),o="gmi";a||(o+="syud"),e.exports=(i(r={},s.PCRE2,"gmixsuUAJD"),i(r,s.PCRE,"gmixXsuUAJD"),i(r,s.JAVASCRIPT,o),i(r,s.PYTHON,"gmixsua"),i(r,s.GOLANG,"gmisU"),i(r,s.JAVA,"gmisxuU"),i(r,"extendFlags",(function(t,n){e.exports[t]+=n})),r)},1277:(e,t,n)=>{"use strict";n.d(t,{MW:()=>r,hs:()=>i,Wj:()=>a,t0:()=>s,$U:()=>o,Qp:()=>c,dz:()=>u,Pg:()=>l,L3:()=>f,Yb:()=>h,RW:()=>p,cF:()=>d,lA:()=>v,Eb:()=>g,Tf:()=>m,bO:()=>y,_w:()=>x,O3:()=>b,hb:()=>j,bJ:()=>Z,eq:()=>O,WE:()=>w,ZH:()=>k,HI:()=>C,U6:()=>E,jt:()=>P,be:()=>S,jl:()=>_,XR:()=>N,qi:()=>R,xT:()=>T,Ws:()=>A,oK:()=>D,Yz:()=>I,df:()=>L,sS:()=>M,no:()=>B,Jy:()=>U,t:()=>F,jf:()=>G,vU:()=>V,Ty:()=>q,Gs:()=>H,up:()=>z,PG:()=>W,fy:()=>Y,qh:()=>K,zl:()=>J,Xq:()=>X,aM:()=>Q,py:()=>$,w_:()=>ee,Cz:()=>te,tI:()=>ne,hL:()=>re,zB:()=>ie,tK:()=>ae,Az:()=>se,Bx:()=>oe});var r="META",i="ALTERNATOR",a="QUANTIFIER",s="ESCAPED_LITERAL",o="QUOTED_LITERALS",c="LONELY_END_QUOTE",u="UNICODE_PROPERTY",l="OCTAL",f="HEX",h="UNICODE_ESCAPE",p="INLINE_MODIFIERS",d="DELIMITER",v="CONTROL_SEQUENCE",g="GLOBAL_FLAGS",m="VERTICAL_TAB",y="SURROGATE_PAIR",x="SUBPATTERN_REFERENCE_GROUP",b="NAMED_BACKREFERENCE",j="BACKREFERENCE_G",Z="BACKREFERENCE_K",O="SUBPATTERN_REFERENCE_G",w="NUMERIC_BACKREFERENCE",k="BACKSPACE",C="OPEN_CHARCLASS",E="CLOSE_CHARCLASS",P="CHARCLASS_RANGE",S="POSIX",_="EMPTY_CHARCLASS",N="POSIX_WORD_BOUNDARY",R="LINE_COMMENT",T="GROUP",A="DEFINE",D="CONDITIONAL",I="CONDITIONAL_CONDITION",L="MODIFIER_GROUP",M="NAMED_GROUP",B="BRANCH_RESET_GROUP",U="ATOMIC_GROUP",F="CAPTURING_GROUP",G="GROUP_COMMENT",V="VERB",q="NEGATIVE_LOOKBEHIND",H="POSITIVE_LOOKBEHIND",z="NEGATIVE_LOOKAHEAD",W="POSITIVE_LOOKAHEAD",Y="NON_ATOMIC_POSITIVE_LOOKAHEAD",K="NON_ATOMIC_POSITIVE_LOOKBEHIND",J="PLAIN_TEXT",X="ERROR_TOKEN",Q="START_CASE_MODIFIER",$="END_CASE_MODIFIER",ee="SUBST_CONDITIONAL",te="INSERT_PRECEDES_MATCH",ne="INSERT_FOLLOWS_MATCH",re="INSERT_FULL_MATCH",ie="CHARCLASS_INTERSECTION";function ae(e){return[T,A,D,L,M,B,U,F].includes(e)||se(e)}function se(e){return[q,H,z,W,Y,K].includes(e)}function oe(e){return[C,i,ie].includes(e)||ae(e)}},13201:e=>{e.exports={GOOGLE:"google",TWITTER:"twitter",GITHUB:"github"}},7551:(e,t,n)=>{"use strict";n.d(t,{rp:()=>r,Py:()=>i,B7:()=>a});var r="light",i="dark",a="AUTO"},7504:e=>{e.exports={MINE:"mine",FAVORITES:"favorites",LIBRARY:"library"}},11162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(4942),i=n(45987),a=n(67294),s=n(45697),o=n.n(s),c=n(94184),u=n.n(c),l=n(85893),f=["children","className"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=(0,a.forwardRef)((function(e,t){var n=e.children,r=e.className,a=(0,i.Z)(e,f);return(0,l.jsx)("div",p(p({className:u()("ueGQi",r),ref:t},a),{},{children:n}))}));d.propTypes={children:o().node,className:o().string};const v=d},94500:(e,t,n)=>{"use strict";n.d(t,{SW:()=>s,rP:()=>o,$Z:()=>c});var r=n(23765),i=n(58317),a=n(34595);function s(e,t){var n={permalinkFragment:e,deleteCode:t},s=i.Z.get(a.DELETE_CODES)||[];s.find((function(t){return t.permalinkFragment===e}))?r.Z.info("Delete code for '".concat(e,"' already stored")):(s.push(n),i.Z.save(a.DELETE_CODES,s),r.Z.info("Saved new delete code",n))}function o(e){try{var t=i.Z.get(a.DELETE_CODES,!1)||[],n=t.find((function(t){return t.permalinkFragment===e})),s=n?t.indexOf(n):-1;if(-1!==s){var o=t.slice();return o.splice(s,1),r.Z.info("Removed delete code for permalink fragment",e),i.Z.save(a.DELETE_CODES,o,!1)}throw new Error}catch(t){r.Z.warn("Unable to remove delete code for permalink fragment",e,t)}}function c(e){try{var t=(i.Z.get(a.DELETE_CODES,!1)||[]).find((function(t){return t.permalinkFragment===e}));if(t)return r.Z.info("Retrieved delete code for permalink fragment",e),t.deleteCode;r.Z.warn("Unable to retrieve delete code for permalink fragment",e)}catch(t){r.Z.error('Unable to retrieve delete code for permalink fragment "'.concat(e,'"'),t)}}},64023:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4942),i=n(71002),a=n(15671),s=n(43144),o=n(34768);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const l=function(){function e(){(0,a.Z)(this,e),this.tokens=[],this._positionToTokenMap=null,this._initialState=null,this._patternError=null,this.tokens=[],this._positionToTokenMap=[],this._initialState={}}return(0,s.Z)(e,[{key:"getStatus",value:function(){return this._patternError?o.D9:null}},{key:"getTokenAtPos",value:function(e){if(null==e||e<0)return null;for(var t=0,n=this.tokens.length-1;t<=n;){var r=t+n>>1,i=this.tokens[r];i.invisible&&r>0&&(i=this.tokens[r-1]);var a=i.position,s=a.start,o=a.end;if(e>=s&&e<o)return i;e<s?n=r-1:t=r+1}return null}},{key:"_token",value:function(e,t,n){for(var r=this._getTokenizers(e),i=0,a=r.length;i<a;i++){var s=r[i].call(this,t,t.peek(),n);if(null!=s)return s}throw new Error("There was no tokenizer that could parse the regex '".concat(t.current,"'"))}},{key:"_getTokenizers",value:function(){throw new Error("Tokenizer function not implemented")}}],[{key:"copyState",value:function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],s=e[a];Array.isArray(s)?t[a]=s.slice():null!=s&&"object"===(0,i.Z)(s)?t[a]=u({},s):t[a]=s}return t}}]),e}()},26681:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=new(n(11357).ZP)},11357:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ct,wx:()=>Et,fg:()=>Pt,IP:()=>St,nn:()=>_t,x3:()=>Nt,XG:()=>Rt});var r=n(42982),i=n(70885),a=n(4942),s=n(15671),o=n(43144),c=n(60136),u=n(82963),l=n(61120),f=n(64023),h=n(75659),p=n(1277),d=n(81370),v=n.n(d),g=n(39781),m=n(43307);const y=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.hs)).string="",t.alternativeNumber=0,t.position={start:-1,end:-1},t.invisible=!0,t}return(0,o.Z)(i,[{key:"_getNextState",value:function(e){return e.parents.push(this),e.previousToken=this.state.previousToken,e}}]),i}(m.Z);var x=n(4844),b=n(67664),j=n(4458);const Z=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.$U)).setStyle(j.Z.quote),t}return(0,o.Z)(i,[{key:"parseComplete",value:function(){if("\\Q\\E"===this.string)this.setError(b.XD);else{var e=this.string.length-3;this.charCode=this.string.charCodeAt(e),this.codePoint=this.string.codePointAt(e)}this.length=this.string.length-4}}]),i}(m.Z);var O=n(24051),w=n(65315),k=n(45036);const C=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.be)).posixClass=null,t.setStyle(j.Z.meta),t}return(0,o.Z)(i,[{key:"parseComplete",value:function(){this.posixClass=this.string.replace(/^\[:\^?|:\]$/g,""),this.state.inCharClass?/^[<>]$/.test(this.posixClass)?this.setError(b.$H):/^(?:alnum|ascii|alpha|word|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit)$/.test(this.posixClass)||this.setError(b.VM):this.setError(b.fA)}}]),i}(m.Z),E=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p._w)).setStyle(j.Z.subpattern_reference),t}return(0,o.Z)(i,[{key:"_revalidate",value:function(e){if("(?0)"!==this.string&&"(?R)"!==this.string){var t,n=this.string.replace(/^(?:\\g|\(\?P>)|[^\w\-+]/g,"");if(n)if("+"===n.charAt(0)){var r=parseInt(n.slice(1),10);t=this.state.captureGroupCount+r,(0===r||this.state.captureGroupCount+r>e.captureGroupCount)&&this.setError(b.Bj)}else if("-"===n.charAt(0)){var i=parseInt(n.slice(1),10);t=this.state.captureGroupCount-i+1,(0===i||this.state.captureGroupCount-i<0)&&this.setError(b.Bj)}else isNaN(n)||"&"===this.string.charAt(2)||"(?P>"===this.string.slice(0,4)?-1===e.subpatterns.indexOf(n)&&this.setError(b.Bj):(t=parseInt(n,10),e.captureGroupCount<t&&this.setError(b.Bj));else this.setError(b.YY);return this.reference=t||n,!!this.error}this.reference=null}}]),i}(n(53996).Z);var P=n(86700),S=n(4427),_=n(38645),N=n(60370),R=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v().PCRE,r=t.match(/^\^?([^-]*)-?(.*)/),a=(0,i.Z)(r,3),s=a[1],o=a[2];if(n!==v().PCRE){if(o.includes("-"))return[null,null,null];if(t.includes("^")){var c="imsnx".replace(new RegExp("[".concat(s,"]"),"g"),""),u=e.replace(new RegExp("[^".concat(c,"]"),"g"),"");o+=u}}o=o.replace(/-/g,"");var l=(0,N.Z)(e+s).join("").replace(new RegExp("[".concat(o,"]"),"g"),"");return n===v().PCRE2?[s.includes("xx")||e.includes("xx")?l.replace("x","xx"):l,(0,N.Z)(s.includes("xx")?s.match(/xx|./g):s),(0,N.Z)(o.includes("xx")?o.match(/xx|./g):o)]:[l,(0,N.Z)(s),(0,N.Z)(o)]};const T=function(e){(0,c.Z)(a,e);var t,n,r=(t=a,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function a(e){var t;return(0,s.Z)(this,a),(t=r.call(this,e,p.RW)).flags=null,t.onFlags=null,t.offFlags=null,t.setStyle(j.Z.inline_modifiers),t}return(0,o.Z)(a,[{key:"parseComplete",value:function(){var e=R(this.state.flags,this.string.slice(2,-1),this.state.flavor),t=(0,i.Z)(e,3),n=t[0],r=t[1],a=t[2];if(null==n)return this.flags=this.state.flags,void this.setError(b.Gz);this.flags=n,this.onFlags=r,this.offFlags=a,"(?)"===this.string&&this.state.flavor!==v().PCRE&&this.setError(b.YY)}},{key:"_getNextState",value:function(e){return e.flags=this.flags,e}}]),a}(m.Z);var A=/^(?:ACCEPT|F(?:AIL)?|COMMIT|PRUNE(?::\w+)?|SKIP(?::\w+)?|MARK:\w+|THEN(?::\w+)?|:\w+)$/,D=/^(?:LIMIT_MATCH=\d{1,9}|LIMIT_RECURSION=\d{1,9}|NO_AUTO_POSSESS|NO_START_OPT|CR|LF|CRLF|ANYCRLF|ANY|BSR_ANYCRLF|BSR_UNICODE|UTF16|UCP)$/,I=/^(?:LIMIT_DEPTH=\d{1,9}|LIMIT_HEAP=\d{1,9}|NOTEMPTY|NOTEMPTY_ATSTART|NO_DOTSTAR_ANCHOR|NUL)$/;const L=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.vU)).verb=null,t.setStyle(j.Z.verb),t}return(0,o.Z)(i,[{key:"parseComplete",value:function(){this.verb=this.string.slice(2,-1),"ACCEPT"===this.verb&&this.state.flavor===v().PCRE2&&(this.quantifiable=!0),this.state.flavor===v().PCRE2&&I.test(this.verb)||A.test(this.verb)||D.test(this.verb)?!D.test(this.verb)||0===this.position.start||this.state.actualPreviousToken&&this.state.actualPreviousToken.type===p.vU&&!this.state.actualPreviousToken.error&&D.test(this.state.actualPreviousToken.string)||this.setError(b.As):this.setError(b.gN)}},{key:"_getNextState",value:function(e){return"CR"===this.verb?e.lineTerminators=["\\r"]:"LF"===this.verb?e.lineTerminators=["\\n"]:"CRLF"===this.verb?e.lineTerminators=["\\r\\n"]:"ANYCRLF"===this.verb?e.lineTerminators=["\\n","\\r","\\r\\n"]:"ANY"===this.verb&&(e.lineTerminators=["\\n","\\r","\\r\\n","\\f","\\v","\\x85","\\u2028","\\u2029"]),e}}]),i}(m.Z);var M=n(16770),B=n(87263);const U=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){return(0,s.Z)(this,i),r.call(this,e,p.Jy,!0)}return(0,o.Z)(i)}(B.Z),F=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e,t){return(0,s.Z)(this,i),r.call(this,e,p.Ws)}return(0,o.Z)(i,[{key:"_getNextState",value:function(e){return e.inDEFINE=!0,B.Z.prototype._getNextState.call(this,e)}}]),i}(B.Z),G=function(e){(0,c.Z)(a,e);var t,n,r=(t=a,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function a(e){var t;return(0,s.Z)(this,a),(t=r.call(this,e,p.df,!0)).flags=null,t.onFlags=null,t.offFlags=null,t}return(0,o.Z)(a,[{key:"parseComplete",value:function(){B.Z.prototype.parseComplete.call(this);var e=R(this.state.flags,this.string.slice(2,-1),this.state.flavor),t=(0,i.Z)(e,3),n=t[0],r=t[1],a=t[2];if(null==n)return this.flags=this.state.flags,void this.setError(b.Gz);this.flags=n,this.onFlags=r,this.offFlags=a}},{key:"_getNextState",value:function(e){return e.flags=this.flags,B.Z.prototype._getNextState.call(this,e)}}]),a}(B.Z);var V=n(75262),q=n(6975),H=n(43276),z=n(53980),W=n(23550),Y=n(23049);const K=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e,t){return(0,s.Z)(this,i),r.call(this,e,p.fy,t)}return(0,o.Z)(i)}(n(85877).Z),J=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e,t){return(0,s.Z)(this,i),r.call(this,e,p.qh,t)}return(0,o.Z)(i)}(n(50594).Z);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.no,!0)).captureGroupMap={},t.subpatterns=[],t.finalCaptureGroupCount=0,t}return(0,o.Z)(i,[{key:"setBaseline",value:function(e){this.finalCaptureGroupCount=Math.max(this.finalCaptureGroupCount,e.captureGroupCount),this.captureGroupMap=Q(Q({},this.captureGroupMap),e.captureGroupMap),this.subpatterns=(0,N.Z)(this.subpatterns.concat(e.subpatterns))}},{key:"getBaseline",value:function(){return{captureGroupCount:this.state.captureGroupCount,captureGroupMap:this.captureGroupMap||this.state.captureGroupMap,subpatterns:this.subpatterns||this.state.subpatterns}}},{key:"_getNextState",value:function(e){return e.inDuplicateSubpatternGroup=!0,B.Z.prototype._getNextState.call(this,e)}}]),i}(B.Z);var ee=n(78338),te=n(61923),ne=n(4462);const re=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){_.Z.prototype.parseComplete.call(this),"}"!==this.string.slice(-1)?this.setError(b.YY):(!this.state.unicodeEnabled&&this.charCode>65535||this.state.unicodeEnabled&&this.charCode>parseInt("0x10FFFF",16))&&this.setError(b.Rf)}}]),i}(_.Z);var ie=n(64375);const ae=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.Qp)).setError(b.Ey),t}return(0,o.Z)(i)}(m.Z);var se=n(22028),oe=["Arabic","Armenian","Avestan","Balinese","Bamum","Bassa_Vah","Batak","Bengali","Bopomofo","Brahmi","Braille","Buginese","Buhid","Canadian_Aboriginal","Car-ian","Caucasian_Albanian","Chakma","Cham","Cherokee","Common","Coptic","Cunei-form","Cypriot","Cyrillic","Deseret","Devanagari","Duployan","Egyptian_Hiero-glyphs","Elbasan","Ethiopic","Georgian","Glagolitic","Gothic","Grantha","Greek","Gujarati","Gurmukhi","Han","Hangul","Hanunoo","Hebrew","Hiragana","Imperial_Aramaic","Inherited","Inscriptional_Pahlavi","Inscrip-tional_Parthian","Javanese","Kaithi","Kannada","Katakana","Kayah_Li","Kharoshthi","Khmer","Khojki","Khudawadi","Lao","Latin","Lepcha","Limbu","Lin-ear_A","Linear_B","Lisu","Lycian","Lydian","Mahajani","Malayalam","Mandaic","Manichaean","Meetei_Mayek","Mende_Kikakui","Meroitic_Cursive","Meroitic_Hieroglyphs","Miao","Modi","Mongolian","Mro","Myanmar","Nabataean","New_Tai_Lue","Nko","Ogham","Ol_Chiki","Old_Italic","Old_North_Arabian","Old_Permic","Old_Persian","Old_South_Arabian","Old_Turkic","Oriya","Osmanya","Pahawh_Hmong","Palmyrene","Pau_Cin_Hau","Phags_Pa","Phoenician","Psalter_Pahlavi","Rejang","Runic","Samaritan","Saurashtra","Sharada","Sha-vian","Siddham","Sinhala","Sora_Sompeng","Sundanese","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tai_Le","Tai_Tham","Tai_Viet","Takri","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Tirhuta","Ugaritic","Vai","Warang_Citi","Yi","C","Cc","Cf","Cn","Co","Cs","L","Ll","Lm","Lo","Lt","Lu","L&","M","Mc","Me","Mn","N","Nd","Nl","No","P","Pc","Pd","Pe","Pf","Pi","Po","Ps","S","Sc","Sk","Sm","So","Z","Zl","Zp","Zs"];const ce=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){se.Z.prototype.parseComplete.call(this),-1===oe.indexOf(this.script)?this.setError(b.xi):"{"===this.string.charAt(2)&&"}"!==this.string.slice(-1)&&this.setError(b.YY)}}]),i}(se.Z);var ue=n(72655);const le=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"_revalidate",value:function(e,t){return t&&/^\\[a-z]/i.test(t.string)&&t.type===p.t0?(this.setError(b.d3),!0):this.state.flavor===v().PCRE&&null==e.charCode?(this._convertToPlainText(),!1):ue.Z.prototype._revalidate.apply(this,arguments)}}]),i}(ue.Z);var fe=n(97027);const he=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){fe.Z.prototype.parseComplete.call(this),(this.state.flavor===v().PCRE2||this.state.flags.includes("X"))&&/^\\[a-z]/i.test(this.string)&&this.setError(b.mi)}}]),i}(fe.Z);var pe=n(53467);const de=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){pe.Z.prototype.parseComplete.call(this),(this.from>65535||this.to!==1/0&&this.to>65535)&&this.setError(b.Vt)}},{key:"_validateQuantifier",value:function(e){"+"===e?this.possessive=!0:pe.Z.prototype._validateQuantifier.apply(this,arguments)}}]),i}(pe.Z),ve=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e,t){var n;return(0,s.Z)(this,i),(n=r.call(this,e,p.oK,!0)).expectCondition=!1,n.condition=null,n.lookaround=!1,n.backreference=!1,n.subroutine=!1,n.reference=null,n.expectCondition=t,n}return(0,o.Z)(i,[{key:"setCondition",value:function(e){this.lookaround=!0,this.condition=e}},{key:"parseComplete",value:function(){B.Z.prototype.parseComplete.call(this),this.expectCondition||(this.condition=this.string.slice(3,-1))}},{key:"_getNextState",value:function(e){return e.conditionals.push(this),this.expectCondition&&(e.expectingCondition=!0),B.Z.prototype._getNextState.call(this,e)}},{key:"_revalidate",value:function(e){if(!this.condition||!this.closeGroup)return this.setError(b.CL),!!this.error;if("string"!==typeof this.condition)return!1;if(/^R?\d+$/.test(this.condition))this.reference=parseInt(this.condition.replace(/\D/g,""),10),this.reference>e.captureGroupCount&&this.setError(b.Bj),"R"===this.condition.charAt(0)?this.subroutine=!0:(this.backreference=!0,0===this.reference&&this.setError(b.Bj));else if("R"===this.condition&&-1===e.subpatterns.indexOf("R"))this.reference=null,this.subroutine=!0;else if(/^(?:<\w+>|'\w+'|\w+)$/.test(this.condition))this.backreference=!0,this.reference=this.condition.replace(/\W/g,""),-1===e.subpatterns.indexOf(this.reference)&&this.setError(b.Bj);else if(/^R&/.test(this.condition))this.reference=this.condition.slice(2),this.subroutine=!0,-1===e.subpatterns.indexOf(this.reference)&&this.setError(b.Bj);else if(-1!==this.condition.indexOf("+")){var t=parseInt(this.condition.slice(1),10);this.reference=this.state.captureGroupCount+t,this.backreference=!0,(0===t||this.reference>e.captureGroupCount)&&this.setError(b.Bj)}else if(-1!==this.condition.indexOf("-")){var n=parseInt(this.condition.slice(1),10);this.reference=this.state.captureGroupCount-n+1,this.backreference=!0,(0===n||this.reference<1)&&this.setError(b.Bj)}return!!this.error}}]),i}(B.Z),ge=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.XR)).setStyle([j.Z.charclass,j.Z.meta]),t.quantifiable=!1,t.length=0,t}return(0,o.Z)(i)}(m.Z);var me=n(95808),ye=n(32774),xe=function(e,t,n){if("\\"===t&&e.matchString("\\E"))return new ae(n)},be=function(e,t,n){if("\\"===t&&e.match(/^\\Q(?:(?!\\E)[\s\S])*(?:\\E)?/))return new Z(n)},je=function(e,t,n){if("["===t&&!n.inCharClass&&e.match(/^\[\[:[<>]:]]/))return new ge(n)},Ze=function(e,t,n){if("["===t&&e.match(/^\[:(?:(?!\[:[a-z]+:])(?:\\[\s\S]|[^\\\]]))*?\\?:]/))return new C(n)},Oe=function(e,t,n){if("["===t&&e.match(/^\[([.=])(?:\\[\s\S]|[^\]\\])*?\\?\1]/))return new ie.Z(n)},we=function(e,t,n){if(!n.inCharClass&&"["===t&&e.match(/^\[\^?/))return new w.Z(n)},ke=function(e,t,n){if(n.inCharClass&&e.eat("]"))return n.previousToken.type===p.HI?new O.Z(n):new k.Z(n)},Ce=function(e,t,n){if(n.inCharClass&&e.eat("-"))return new le(n)},Ee=function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?(?:[0R]|[+-]?[1-9]+\d*|P>\w+|&\w+)\)/))return new E(n)},Pe=function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?P=(\w+)\)/))return new P.Z(n)},Se=function(e,t,n){var r;if(!n.inCharClass&&"("===t&&(r=e.match(/^\(\*[A-Z\d_:]+(?:=\d+)?\)/))){var i=r[0];return i.includes("UTF")?n.unicodeEnabled=!0:i.includes("UCP")&&(n.ucpVerb=!0),new L(n)}},_e=function(e,t,n){if(!n.inCharClass&&-1!=="+*?{".indexOf(t)&&e.match(/^(?:[*+?]|{\d+,?\d*})/))return new de(n)},Ne=function(e,t,n){if("\\"===t&&e.match(/^\\[pP]([CLMNPSZ]|{\^?(?:L&|\w+)}?)?/))return new ce(n)},Re=function(e,t,n){if(!n.inCharClass&&"\\"===t&&e.match(/^(?:\\g{\w+}|\\k(?:'\w+'|<\w+>|{\w+})?)/))return new P.Z(n)},Te=function(e,t,n){if(!n.inCharClass&&"\\"===t&&e.match(/^\\g(?:<\w+>|'\w+'|'[+-]\d+'|<[+-]\d+>)?/))return new E(n)},Ae=function(e,t,n){if("\\"===t&&e.match(/^\\x(?:{[0-9A-Fa-f]*}?|[0-9A-Fa-f]{0,2})/))return new ne.Z(n)},De=function(e,t,n){if("\\"===t&&e.match(/^\\o(?:{([0-7]+)}?)?/))return new re(n)},Ie=function(e,t,n){var r;if("\\"===t&&(r=e.match(ye.i)))return/^\\[lu]/i.test(r[0])||"\\N"===r[0].slice(0,2)&&(r[0].length>2||n.inCharClass)?new ie.Z(n):n.inCharClass?"\\b"===r[0]?new te.Z(n):/^\\[trnfaedDhHpPsSvVwWN]/.test(r[0])?new ee.Z(n):new he(n):new ee.Z(n)},Le=function(e){return function(t,n,r){var i;if(!r.inCharClass&&"("===n&&(i=t.match(e))){var a=i[0],s=i[0].replace(/\w+/g,"");if("("===i[0])return r.flags.includes("n")?new z.Z(r):new M.Z(r);if("(?:"===i[0])return new z.Z(r);if("(?>"===i[0])return new U(r);if("(?|"===i[0])return new $(r);if("(?<>"===s||"(?''"===s)return new V.Z(r);if(/^\(\?[a-z-]+:/i.test(i[0]))return new G(r);if("(?="===s||"(*pla:"===a||"(*positive_lookahead:"===a)return new W.Z(r);if("(?!"===s||"(*nla:"===a||"(*negative_lookahead:"===a)return new q.Z(r);if("(?<="===s||"(*plb:"===a||"(*positive_lookbehind:"===a)return new Y.Z(r);if("(?<!"===s||"(*nlb:"===a||"(*negative_lookbehind:"===a)return new H.Z(r);if("(?*"===s||"(*napla:"===a||"(*non_atomic_positive_lookahead:"===a)return new K(r);if("(?<*"===s||"(*naplb:"===a||"(*non_atomic_positive_lookbehind:"===a)return new J(r);if("(?"===s){var o=t.match(/^\((?:R(?:&\w+)?|R?\d+|[+-]?\d+|\w+|'\w+'|<\w+>)\)/);if(o&&"(DEFINE)"===o[0]&&-1===r.subpatterns.indexOf("DEFINE"))return new F(r);var c=!o&&!!t.match(/^\((?:\?<?[=!]|\*(?:[pn]l[ab]|(?:positive|negative)_lookahead|(?:positive|negative)_lookbehind):)/,!1);return new ve(r,c)}x.O7(new Error("Unknown group structure '".concat(s,"'")))}}};const Me=[xe,be,Oe,je,Ze,we,ke,Ce,Ee,Pe,(0,me.UB)(2147483639),function(e,t,n){var r;if("\\"===t&&(r=e.match(/^\\(\d{1,3})/))){var i=parseInt(r[1],10);if(!n.inCharClass&&i>0&&"0"!==r[1].charAt(0)&&(i<10&&1===r[1].length||i<=n.captureGroupCount))return new S.Z(n);var a=r[1].match(/^[0-7]{1,3}/),s=0;return a?((s=r[1].length-a[0].length)>0&&e.backUp(s),new _.Z(n)):(r[0].length>2&&e.backUp(r[0].length-2),new he(n))}},function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?[mixXsUJ-]*\)/))return new T(n)},Se,me.mw,Le(/^\((?:\?(?:[mixXsUJ-]*:|[>!=|]|<[=!]|'\w+'|P?<\w+>)?)?/),me.fF,me.MH,_e,Ne,function(e,t,n){if(!n.inCharClass&&"\\"===t&&e.match(/^\\g(?:\d+|{-?\d+})/))return new S.Z(n)},Re,Te,Ae,De,me.oY,me.Nk,Ie,(0,me.eb)(he),me.tP,me.k_,me.sN,me.NY];var Be=n(52011);const Ue=[xe,be,Oe,je,Ze,we,ke,Ce,Ee,Pe,function(e,t,n){var r;if("\\"===t&&(r=e.match(/^\\(\d{1,3})/))){var i=parseInt(r[1],10);if(!n.inCharClass&&i>0&&"0"!==r[1].charAt(0)){if(i<10&&1===r[1].length||i<=n.captureGroupCount)return new S.Z(n);if(/^\\[89]\d/.test(r[0]))return e.backUp(r[0].length-3),new S.Z(n)}var a=r[1].match(/^[0-7]{1,3}/),s=0;return a?((s=r[1].length-a[0].length)>0&&e.backUp(s),new _.Z(n)):(r[0].length>2&&e.backUp(r[0].length-2),new he(n))}},function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?(?:\^[mixsUJn]*|[nmixsUJ-]*)\)/))return new T(n)},Se,me.mw,Le(/^\((?:\?(?:[mixsUJn-]*:|[>!=|]|<[=!]|'\w+'|P?<\w+>|<?\*)?|\*(?:(?:napl[ab])|[pn]l[ab]|(?:positive|negative)_lookahead|(?:positive|negative)_lookbehind|non_atomic_positive_(?:lookbehind|lookahead)):)?/),me.fF,me.MH,_e,Ne,function(e,t,n){if(!n.inCharClass&&"\\"===t&&e.match(/^\\g(?:\d+|{[+-]?\d+})/))return new S.Z(n)},Re,Te,Ae,De,function(e,t,n){if("\\"===t&&e.match(/^\\c[\x20-\x7f]?/))return new Be.Z(n)},me.Nk,Ie,(0,me.eb)(he),me.tP,me.k_,me.sN,me.NY];var Fe=n(92880),Ge=["Ahom","Anatolian_Hieroglyphs","Arabic","Armenian","Avestan","Balinese","Bamum","Bassa_Vah","Batak","Bengali","Bopomofo","Brahmi","Braille","Buginese","Buhid","Canadian_Aboriginal","Carian","Caucasian_Albanian","Chakma","Cham","Cherokee","Common","Coptic","Cuneiform","Cypriot","Cyrillic","Deseret","Devanagari","Duployan","Egyptian_Hieroglyphs","Elbasan","Ethiopic","Georgian","Glagolitic","Gothic","Grantha","Greek","Gujarati","Gurmukhi","Han","Hangul","Hanunoo","Hatran","Hebrew","Hiragana","Imperial_Aramaic","Inherited","Inscriptional_Pahlavi","Inscriptional_Parthian","Javanese","Kaithi","Kannada","Katakana","Kayah_Li","Kharoshthi","Khmer","Khojki","Khudawadi","Lao","Latin","Lepcha","Limbu","Linear_A","Linear_B","Lisu","Lycian","Lydian","Mahajani","Malayalam","Mandaic","Manichaean","Meetei_Mayek","Mende_Kikakui","Meroitic_Cursive","Meroitic_Hieroglyphs","Miao","Modi","Mongolian","Mro","Multani","Myanmar","Nabataean","New_Tai_Lue","Nko","Ogham","Ol_Chiki","Old_Hungarian","Old_Italic","Old_North_Arabian","Old_Permic","Old_Persian","Old_South_Arabian","Old_Turkic","Oriya","Osmanya","Pahawh_Hmong","Palmyrene","Pau_Cin_Hau","Phags_Pa","Phoenician","Psalter_Pahlavi","Rejang","Runic","Samaritan","Saurashtra","Sharada","Shavian","Siddham","SignWriting","Sinhala","Sora_Sompeng","Sundanese","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tai_Le","Tai_Tham","Tai_Viet","Takri","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Tirhuta","Ugaritic","Vai","Warang_Citi","Yi","C","Cc","Cf","Co","Cs","L","Ll","Lm","Lo","Lt","Lu","M","Mc","Me","Mn","N","Nd","Nl","No","P","Pc","Pd","Pe","Pf","Pi","Po","Ps","S","Sc","Sk","Sm","So","Z","Zl","Zp","Zs"];const Ve=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){se.Z.prototype.parseComplete.call(this),-1===Ge.indexOf(this.script)&&this.setError(b.xi)}}]),i}(se.Z);var qe=n(32973),He=n(66476),ze=n(49116);const We=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){pe.Z.prototype.parseComplete.call(this),(this.from>1e3||this.to!==1/0&&this.to>1e3)&&this.setError(b.Vt)}}]),i}(pe.Z),Ye=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"_revalidate",value:function(e,t){return null==e.charCode?(this._convertToPlainText(),!1):ue.Z.prototype._revalidate.apply(this,arguments)}}]),i}(ue.Z);var Ke=function(e,t,n){if("\\"===t&&e.match(/^\\x(?:[0-9A-Fa-f]{2}|{[0-9A-Fa-f]+}?)/))return new He.Z(n)};const Je=[be,function(e,t,n){if(!n.inCharClass&&"["===t&&e.match(/^\[\^?/))return new w.Z(n)},function(e,t,n){if(n.inCharClass&&e.eat("]"))return n.previousToken.type===p.HI?new O.Z(n):new k.Z(n)},function(e,t,n){if("["===t&&e.match(/^\[:\^?([^:]*):]/))return new C(n)},function(e,t,n){if(n.inCharClass&&e.eat("-"))return new Ye(n)},function(e,t,n){if("\\"===t&&e.match(/^\\(?:[1-7][0-7]{1,2}|[0-7]{2,3})/))return new _.Z(n)},function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?[imsU]*(?:-[imsU]+)?\)/))return new T(n)},function(e,t,n){var r;if(!n.inCharClass&&"("===t&&(r=e.match(/^\((?:\?(?:[imsU-]*:|P<\w+>))?/))){var i=r[0].replace(/\w+/g,"");if("("===r[0])return new M.Z(n);if("(?:"===r[0])return new z.Z(n);if("(?|"===r[0])return new $(n);if("(?<>"===i)return new V.Z(n);if(/^\(\?[imsU-]+:/.test(r[0]))return new G(n);x.O7(new Error("Unknown group structure '".concat(i,"'")))}},me.fF,me.MH,function(e,t,n){if(!n.inCharClass&&-1!=="+*?{".indexOf(t)&&e.match(/^(?:[*+?]|{\d+,?\d*})/))return new We(n)},function(e,t,n){if("\\"===t&&e.match(/^\\[pP](?:C[cfos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?|{\^?\w*}?)?/))return new Ve(n)},Ke,me.Nk,function(e,t,n){var r;if("\\"===t&&(r=e.match(/^\\[WwDdSspPABbzaftnrv]/)))return"\\v"===r[0]?new qe.Z(n):n.inCharClass?/^\\[trnfaedDpPsSvwW]/.test(r[0])?new ee.Z(n):new ze.Z(n):new ee.Z(n)},(0,me.eb)(ze.Z),me.k_,me.sN,me.NY],Xe=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),t=r.call(this,e),e.inCharClass&&t.setError(b.wW),t}return(0,o.Z)(i)}(S.Z);var Qe=n(13511);const $e=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){Qe.Z.prototype.parseComplete.call(this),"\\x"===this.string&&this.setError(b.YY)}}]),i}(Qe.Z),et=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){T.prototype.parseComplete.call(this),0!==this.position.start?this.setError(b.M3):this.flags.includes("u")&&this.flags.includes("a")&&this.setError(b.mB)}}]),i}(T),tt=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){pe.Z.prototype.parseComplete.call(this),(this.from>65535||this.to!==1/0&&this.to>65535)&&this.setError(b.Vt)}}]),i}(pe.Z),nt=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.oK,!0)).condition=null,t.reference=null,t.lookaround=!1,t.backreference=!0,t.subroutine=!1,t}return(0,o.Z)(i,[{key:"parseComplete",value:function(){B.Z.prototype.parseComplete.call(this),this.condition=this.string.slice(3,-1)}},{key:"_getNextState",value:function(e){return e.conditionals.push(this),B.Z.prototype._getNextState.call(this,e)}},{key:"_revalidate",value:function(e){return this.condition&&this.closeGroup?(this.reference=isNaN(this.condition)?this.condition:parseInt(this.condition,10),e.captureGroupMap[this.condition]||this.setError(b.Bj),!!this.error):(this.setError(b.CL),!0)}}]),i}(B.Z);var rt=n(54602);const it=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){rt.Z.prototype.parseComplete.call(this),parseInt(this.hex,16)>=parseInt("0xd800",16)&&parseInt(this.hex,16)<=parseInt("0xdfff",16)&&this.setError(b.oH)}}]),i}(rt.Z),at=[function(e,t,n){if(!n.inCharClass&&"["===t&&e.match(/^\[\^?/))return new w.Z(n)},function(e,t,n){if(n.inCharClass&&e.eat("]"))return n.previousToken.type===p.HI?new O.Z(n):new k.Z(n)},function(e,t,n){if(n.inCharClass&&e.eat("-"))return new ue.Z(n)},function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?P=\w+\)/))return new P.Z(n)},(0,me.UB)(2147483639),function(e,t,n){if("\\"===t&&(e.match(/^\\(?:0[0-7]?[0-7]?|[0-3][0-7]{2})/)||n.inCharClass&&e.match(/^\\[0-7][0-7]{0,2}/)))return new _.Z(n)},function(e,t,n){if("\\"===t&&e.match(/^\\\d{1,2}/))return new Xe(n)},function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?[imsuax-]*\)/))return new et(n)},me.mw,function(e,t,n){var r;if(!n.inCharClass&&"("===t&&(r=e.match(/^\((?:\?(?:<[!=]|[!=]|:|P<\w+>)?)?/))){var i=r[0].replace(/\w+/g,"");if("("===r[0])return new M.Z(n);if("(?:"===r[0])return new z.Z(n);if("(?<>"===i)return new V.Z(n);if(/^\(\?[imsuax-]+:/.test(r[0]))return new G(n);if("(?="===i)return new W.Z(n);if("(?!"===i)return new q.Z(n);if("(?<="===i)return new Y.Z(n);if("(?<!"===i)return new H.Z(n);if("(?"===i)return e.match(/^\(\w+\)/),new nt(n);x.O7(new Error("Unknown group structure '".concat(i,"'")))}},me.fF,me.MH,function(e,t,n){if(!n.inCharClass&&-1!=="+*?{".indexOf(t)&&e.match(/^(?:[*+?]|{(?:\d+,?\d*|,\d+)})/))return new tt(n)},function(e,t,n){if("\\"===t&&e.match(/^\\x(?:[0-9A-Fa-f]{2})?/))return new $e(n)},function(e,t,n){if("\\"===t&&e.match(/^\\(?:u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|[uU])/))return new it(n)},me.Nk,function(e,t,n){var r;if("\\"===t&&(r=e.match(/^\\[WwDdSsvaefntrBbAZ]/)))return"\\v"===r[0]?new qe.Z(n):n.inCharClass?"\\b"===r[0]?new te.Z(n):/^\\[trnfaedDsSvwW]/.test(r[0])?new ee.Z(n):new fe.Z(n):new ee.Z(n)},(0,me.eb)(),me.tP,me.k_,me.sN,me.NY],st=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),t=r.call(this,e),e.inCharClass&&t.setError(b.Oy),t}return(0,o.Z)(i)}(S.Z);var ot=n(25287),ct=["LD","Lower","Upper","ASCII","Alpha","Digit","Alnum","Punct","Graph","Print","Blank","Cntrl","XDigit","Space","javaLowerCase","javaUpperCase","javaAlphabetic","javaIdeographic","javaTitleCase","javaDigit","javaDefined","javaLetter","javaLetterOrDigit","javaJavaIdentifierStart","javaJavaIdentifierPart","javaUnicodeIdentifierStart","javaUnicodeIdentifierPart","javaIdentifierIgnorable","javaSpaceChar","javaWhitespace","javaISOControl","javaMirrored","IsAlphabetic","IsIdeographic","IsLetter","IsLowercase","IsUppercase","IsTitlecase","IsPunctuation","IsControl","IsWhite_Space","IsDigit","IsHex_Digit","IsNoncharacter_Code_Point","IsAssigned"],ut=["Mc","Pc","Cc","Sc","Pd","Nd","L","S","Me","Pe","Pf","Cf","Pi","Nl","Zl","Ll","Sm","Lm","Sk","Mn","Lo","No","Po","So","Zp","Co","Zs","Ps","Cs","Lt","Cn","Lu"],lt=["Arabic","Armenian","Avestan","Balinese","Bamum","Batak","Bengali","Bopomofo","Brahmi","Braille","Buginese","Buhid","Canadian_Aboriginal","Carian","Cham","Cherokee","Common","Coptic","Cuneiform","Cypriot","Cyrillic","Deseret","Devanagari","Egyptian_Hieroglyphs","Ethiopic","Georgian","Glagolitic","Gothic","Greek","Gujarati","Gurmukhi","Han","Hangul","Hanunoo","Hebrew","Hiragana","Imperial_Aramaic","Inherited","Inscriptional_Pahlavi","Inscriptional_Parthian","Javanese","Kaithi","Kannada","Katakana","Kayah_Li","Kharoshthi","Khmer","Lao","Latin","Lepcha","Limbu","Linear_B","Lisu","Lycian","Lydian","Malayalam","Mandaic","Meetei_Mayek","Mongolian","Myanmar","New_Tai_Lue","Nko","Ogham","Ol_Chiki","Old_Italic","Old_Persian","Old_South_Arabian","Old_Turkic","Oriya","Osmanya","Phags_Pa","Phoenician","Rejang","Runic","Samaritan","Saurashtra","Shavian","Sinhala","Sundanese","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tai_Le","Tai_Tham","Tai_Viet","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Ugaritic","Unknown","Vai","Yi"],ft=["Aegean_Numbers","Alchemical_Symbols","Alphabetic_Presentation_Forms","Ancient_Greek_Musical_Notation","Ancient_Greek_Numbers","Ancient_Symbols","Arabic","Arabic_Presentation_Forms_A","Arabic_Presentation_Forms_B","Arabic_Supplement","Armenian","Arrows","Avestan","Balinese","Bamum","Bamum_Supplement","Basic_Latin","Batak","Bengali","Block_Elements","Bopomofo","Bopomofo_Extended","Box_Drawing","Brahmi","Braille_Patterns","Buginese","Buhid","Byzantine_Musical_Symbols","Carian","Cham","Cherokee","CJK_Compatibility","CJK_Compatibility_Forms","CJK_Compatibility_Ideographs","CJK_Compatibility_Ideographs_Supplement","CJK_Radicals_Supplement","CJK_Strokes","CJK_Symbols_and_Punctuation","CJK_Unified_Ideographs","CJK_Unified_Ideographs_Extension_A","CJK_Unified_Ideographs_Extension_B","CJK_Unified_Ideographs_Extension_C","CJK_Unified_Ideographs_Extension_D","Combining_Diacritical_Marks","Combining_Diacritical_Marks_Supplement","Combining_Half_Marks","Common_Indic_Number_Forms","Control_Pictures","Coptic","Counting_Rod_Numerals","Cuneiform","Cuneiform_Numbers_and_Punctuation","Currency_Symbols","Cypriot_Syllabary","Cyrillic","Cyrillic_Extended_A","Cyrillic_Extended_B","Cyrillic_Supplementary","Deseret","Devanagari","Devanagari_Extended","Dingbats","Domino_Tiles","Egyptian_Hieroglyphs","Emoticons","Enclosed_Alphanumeric_Supplement","Enclosed_Alphanumerics","Enclosed_CJK_Letters_and_Months","Enclosed_Ideographic_Supplement","Ethiopic","Ethiopic_Extended","Ethiopic_Extended_A","Ethiopic_Supplement","General_Punctuation","Geometric_Shapes","Georgian","Georgian_Supplement","Glagolitic","Gothic","Greek_Extended","Gujarati","Gurmukhi","Halfwidth_and_Fullwidth_Forms","Hangul_Compatibility_Jamo","Hangul_Jamo","Hangul_Jamo_Extended_A","Hangul_Jamo_Extended_B","Hangul_Syllables","Hanunoo","Hebrew","High_Private_Use_Surrogates","High_Surrogates","Hiragana","Ideographic_Description_Characters","Imperial_Aramaic","Inscriptional_Pahlavi","Inscriptional_Parthian","IPA_Extensions","Javanese","Kaithi","Kana_Supplement","Kanbun","Kangxi_Radicals","Kannada","Katakana","Katakana_Phonetic_Extensions","Kayah_Li","Kharoshthi","Khmer","Khmer_Symbols","Lao","Latin-1_Supplement","Latin_Extended_A","Latin_Extended_Additional","Latin_Extended_B","Latin_Extended_C","Latin_Extended_D","Lepcha","Letterlike_Symbols","Limbu","Linear_B_Ideograms","Linear_B_Syllabary","Lisu","Low_Surrogates","Lycian","Lydian","Mahjong_Tiles","Malayalam","Mandaic","Mathematical_Alphanumeric_Symbols","Mathematical_Operators","Meetei_Mayek","Miscellaneous_Mathematical_Symbols_A","Miscellaneous_Mathematical_Symbols_B","Miscellaneous_Symbols","Miscellaneous_Symbols_and_Arrows","Miscellaneous_Symbols_And_Pictographs","Miscellaneous_Technical","Modifier_Tone_Letters","Mongolian","Musical_Symbols","Myanmar","Myanmar_Extended_A","New_Tai_Lue","NKo","Number_Forms","Ogham","Ol_Chiki","Old_Italic","Old_Persian","Old_South_Arabian","Old_Turkic","Optical_Character_Recognition","Oriya","Osmanya","Phags-pa","Phaistos_Disc","Phoenician","Phonetic_Extensions","Phonetic_Extensions_Supplement","Playing_Cards","Private_Use_Area","Rejang","Rumi_Numeral_Symbols","Runic","Samaritan","Saurashtra","Shavian","Sinhala","Small_Form_Variants","Spacing_Modifier_Letters","Specials","Sundanese","Superscripts_and_Subscripts","Supplemental_Arrows_A","Supplemental_Arrows_B","Supplemental_Mathematical_Operators","Supplemental_Punctuation","Supplementary_Private_Use_Area_A","Supplementary_Private_Use_Area_B","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tags","Tai_Le","Tai_Tham","Tai_Viet","Tai_Xuan_Jing_Symbols","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Transport_And_Map_Symbols","Ugaritic","Unified_Canadian_Aboriginal_Syllabics","Unified_Canadian_Aboriginal_Syllabics_Extended","Vai","Variation_Selectors","Variation_Selectors_Supplement","Vedic_Extensions","Vertical_Forms","Yi_Radicals","Yi_Syllables","Yijing_Hexagram_Symbols"];const ht=function(e){(0,c.Z)(a,e);var t,n,r=(t=a,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function a(){return(0,s.Z)(this,a),r.apply(this,arguments)}return(0,o.Z)(a,[{key:"parseComplete",value:function(){se.Z.prototype.parseComplete.call(this);var e=this.script.match(/^(?:(\w+)=(\w+)|(I[ns])(\w+)|()(\w+))$/)||[],t=(0,i.Z)(e,7),n=t[1],r=t[2],a=t[3],s=t[4],o=t[5],c=t[6],u=n||a||o,l=r||s||c,f=!1;"Is"===u?f=ut.includes(l)||lt.includes(l)||ct.includes(u+l):"In"===u||"blk"===u||"block"===u?f=ft.includes(l):"script"===u||"sc"===u?f=lt.includes(l):"general_category"===u||"gc"===u?f=ut.includes(l):u||(f=ct.includes(l)||ut.includes(l)),this.category=u,this.script=l,f||this.setError(b.xi)}}]),a}(se.Z),pt=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(e){var t;return(0,s.Z)(this,i),(t=r.call(this,e,p.zB)).leftToken=null,t.rightToken=null,t.setStyle(j.Z.meta),t.quantifiable=!1,t.length=1,t}return(0,o.Z)(i,[{key:"_getNextState",value:function(e){return e.charClassIntersections.push(this),e}},{key:"getTooltipMarkerRange",value:function(){var e=m.Z.prototype.getTooltipMarkerRange.call(this);if(!this.error&&null!=this.parent){var t=this.parent.getTooltipMarkerRange().primary;e.secondary=t}return e}},{key:"parseComplete",value:function(){this.parent.intersection=!0}},{key:"_revalidate",value:function(e,t){return e&&t&&e.type!==p.HI&&e.type!==p.zB&&t.type!==p.U6&&t.type!==p.zB||this.setError(b.jz),!!this.error}}]),i}(m.Z),dt=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){_.Z.prototype.parseComplete.call(this),"\\0"===this.string&&this.setError(b.mi)}}]),i}(_.Z),vt=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){"{"===this.string.charAt(0)&&"}"!==this.string.slice(-1)?this.setError(b.YY):de.prototype.parseComplete.call(this)}}]),i}(de),gt=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"_getNextState",value:function(e){return this.state.flags.includes("x")&&/[ \t\r\n\f]/.test(this.string)&&(e.previousToken=this.state.previousToken,this.ignoreOnHover=!0),e}}]),i}(O.Z);var mt=n(68120);const yt=function(e){(0,c.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function i(){return(0,s.Z)(this,i),r.apply(this,arguments)}return(0,o.Z)(i,[{key:"parseComplete",value:function(){P.Z.prototype.parseComplete.call(this),this.state.subpatterns.includes(this.reference)||this.setError(b.sb)}}]),i}(P.Z);var xt=n(4727);const bt=[be,function(e,t,n){if("["===t&&e.match(/^\[\^?/))return new w.Z(n)},function(e,t,n){if(n.inCharClass&&e.matchString("&&"))return new pt(n)},function(e,t,n){if(n.inCharClass&&e.eat("]"))return n.previousToken.type===p.HI?new gt(n):new k.Z(n)},Ce,function(e,t,n){if("\\"===t&&e.match(/^\\0(?:[0-3]?[0-7]{1,2})?/))return new dt(n)},function(e,t,n){if("\\"===t){var r=e.match(/^\\[1-9]\d*/);if(r){for(var i=parseInt(r[0].slice(1),10);(""+i).length>0&&i>n.captureGroupCount;)i=Math.floor(i/10);return e.backUp(r[0].length-("\\"+i).length),new st(n)}}},function(e,t,n){if(!n.inCharClass&&"("===t&&e.match(/^\(\?[misxu-]*\)/))return new T(n)},function(e,t,n){var r;if(!n.inCharClass&&"("===t&&(r=e.match(/^\((?:\?(?:[misxu-]*:|[>!=]|<[=!]|<[a-zA-Z0-9]+>))?/))){var i=r[0].replace(/\w+/g,"");if("("===r[0])return new M.Z(n);if("(?:"===r[0])return new z.Z(n);if("(?>"===r[0])return new U(n);if("(?="===i)return new W.Z(n,!1);if("(?!"===i)return new q.Z(n,!1);if("(?<>"===i)return new V.Z(n);if("(?<="===i)return new Y.Z(n,!1);if("(?<!"===i)return new H.Z(n,!1);if(/^\(\?[misxu-]+:/.test(r[0]))return new G(n);x.O7(new Error("Unknown group structure '".concat(i,"'")))}},me.fF,me.MH,function(e,t,n){if(!n.inCharClass&&-1!=="+*?{".indexOf(t)&&e.match(/^(?:[*+?]|{\d+,?\d*}|{)/))return new vt(n)},function(e,t,n){if("\\"===t&&e.match(/^\\[Pp]{(?:\w+=)?\w*}?/))return new ht(n)},function(e,t,n){if(!n.inCharClass&&"\\"===t&&e.match(/^\\k<\w+>/))return new yt(n)},Ke,function(e,t,n){if("\\"===t&&e.match(ye.t))return new xt.Z(n)},me.oY,me.Nk,function(e,t,n){var r;if("\\"===t&&(r=e.match(/^\\[dDsSwWbBAGZztrnfaeRhHvV]/)))return n.inCharClass?/^\\[trnfaedDsSwWhHvV]/.test(r[0])?new ee.Z(n):new ot.Z(n):new ee.Z(n)},function(e,t,n){if("\\"===t&&e.match(/^\\u[0-9A-Fa-f]{4}/))return new rt.Z(n)},(0,me.eb)(ot.Z),function(e,t,n){if("#"===t&&-1!==n.flags.indexOf("x")&&e.match(/^#.*/))return new mt.Z(n)},me.k_,me.sN,function(e,t,n){return e.next(),new gt(n)}];function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ot=!1,wt=!1,kt=!1;const Ct=function(e){(0,c.Z)(d,e);var t,n,a=(t=d,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,l.Z)(t);if(n){var i=(0,l.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,u.Z)(this,e)});function d(){var e;return(0,s.Z)(this,d),(e=a.call(this)).captureGroupCount=0,e.captureGroupMap={},e.subpatterns=[],e.alternatives=0,e.definedSubpatterns=[],e._getTokenizers=function(e){switch(e){case v().PCRE2:return Ue;case v().PCRE:return Me;case v().JAVASCRIPT:return Fe.ZP;case v().GOLANG:return Je;case v().PYTHON:return at;case v().JAVA:return bt;default:throw new Error("There is no tokenizer for '".concat(e,"'"))}},e._initialState={alternatives:0,parents:[],previousToken:null,actualPreviousToken:null,lineTerminators:null,captureGroups:[],captureGroupCount:0,captureGroupMap:{},subpatterns:[],definedSubpatterns:[],groups:[],conditionals:[],lookbehinds:[],lookbehindCount:0,lookaroundCount:0,inDEFINE:!1,inDuplicateSubpatternGroup:!1,inCharClass:!1,charClasses:[],ranges:[],charClassIntersections:[],condition:null,expectingCondition:!1,subpatternTokens:[],unicodeEnabled:!1,ucpVerb:!1},e}return(0,o.Z)(d,[{key:"parseRegex",value:function(e,t,n){for(var r=[],i=t,a=new h.Z(e);!a.eof();){var s=a.position,o=this._token(n.flavor,a,i),c=a.position;if(o.position={start:s,end:c},o.string=e.slice(s,c),o.parseComplete(),r.push(o),p.tK(o.type)&&")"!==o.string){var u=new y(o.getNextState());r.push(u),i=u.getNextState()}else i=o.getNextState()}return this.captureGroupCount=i.captureGroupCount,this.captureGroupMap=i.captureGroupMap,this.subpatterns=i.subpatterns,this.alternatives=i.alternatives,this.definedSubpatterns=i.definedSubpatterns,this.captureGroups=i.captureGroups,[r,i]}},{key:"revalidate",value:function(e,t){this._patternError=t.patternError;for(var n=[].concat(t.groups,t.charClasses,t.subpatternTokens,t.ranges,t.conditionals,t.lookbehinds,t.charClassIntersections),r=0,i=n.length;r<i;r++){var a=n[r],s=!1;if(a.type===p.jt){var o=e.indexOf(a),c=a.state.previousToken,u=e[o+1];s=a._revalidate(c,u)}else if(a.type===p.zB){var l=e.indexOf(a),f=e[l-1],h=e[l+1];s=a._revalidate(f,h)}else s=a._revalidate(t);this._patternError=this._patternError||s}}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zt(Zt(Zt({},f.Z.copyState(this._initialState)),{},{flavor:v().PCRE2},t),{},{unicodeEnabled:this._checkUnicodeEnabled(t.flags,t.flavor),lineTerminators:(0,g.m)(t.flavor||v().PCRE2)}),a=new y(n);n=a.getNextState();var s=this.parseRegex(e,n,t),o=(0,i.Z)(s,2),c=o[0],u=o[1];return this.revalidate(c,u),this.tokens=[a].concat((0,r.Z)(c)),this.tokens}},{key:"_checkUnicodeEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v().PCRE2;return t===v().GOLANG||t===v().JAVA&&e.includes("U")||t!==v().GOLANG&&t!==v().JAVA&&e.includes("u")}}]),d}(f.Z);function Et(){Ot=!0}function Pt(){wt=!0}function St(){kt=!0}function _t(){return Ot}function Nt(){return wt}function Rt(){return kt}},32774:(e,t,n)=>{"use strict";n.d(t,{t:()=>r,i:()=>i});var r=/^\\u[dD](?:[89]|[ABab])[\dA-Fa-f]{2}\\u[dD][C-Fc-f][\dA-Fa-f]{2}/,i=/^\\(?:[WwDdSsVvHhaefntrXBbRKCGAZzQEckgPpuLlUo]|N(?:{\w*}?)?)/},92880:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>$,FY:()=>Q});var r=n(4844),i=n(65315),a=n(45036),s=n(4427),o=n(38645),c=n(16770),u=n(6975),l=n(23550),f=n(43276),h=n(23049),p=n(53980),d=n(75262),v=n(86700),g=n(78338),m=n(61923),y=n(32973),x=n(43144),b=n(15671),j=n(60136),Z=n(82963),O=n(61120),w=n(1277),k=n(43307),C=n(4458);const E=function(e){(0,j.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,O.Z)(t);if(n){var i=(0,O.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Z.Z)(this,e)});function i(e){var t;return(0,b.Z)(this,i),(t=r.call(this,e,w.jl)).setStyle([C.Z.charclass,C.Z.meta]),t.quantifiable=!0,t.length=1,t}return(0,x.Z)(i)}(k.Z);var P=n(54602),S=n(95165),_=n(52011),N=n(24051),R=function(e){(0,j.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,O.Z)(t);if(n){var i=(0,O.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Z.Z)(this,e)});function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,b.Z)(this,i),(t=r.call(this,e,w.WE)).setStyle(C.Z.backreference),t.allowZeroRef=n,t}return(0,x.Z)(i,[{key:"_revalidate",value:function(e){if(!this.error){var t=this.string.replace(/\D/g,""),n=parseInt(t,10);return this.allowZeroRef&&0===n?(this.reference=0,!1):(n>e.captureGroupCount&&(this.type=w.Pg,this.length=1,this.quantifiable=!0,this.charCode=parseInt(t,8)||0,this.setStyle(C.Z.meta)),this.reference=n,!1)}}}]),i}(n(53996).Z);const T=R;var A=n(19099),D=n(67664),I=n(72655);const L=function(e){(0,j.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,O.Z)(t);if(n){var i=(0,O.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Z.Z)(this,e)});function i(){return(0,b.Z)(this,i),r.apply(this,arguments)}return(0,x.Z)(i,[{key:"_revalidate",value:function(e,t){return this.state.unicodeEnabled&&this.type===w.jt&&t&&e.type!==w.HI&&t.type!==w.U6&&(e.type!==w.jt&&null==e.charCode||t.type!==w.jt&&null==t.charCode)?(this.setError(D.BC),I.Z.prototype._revalidate.apply(this,arguments)):!t||null==t.charCode&&t.type!==w.jt?void this._convertToPlainText():I.Z.prototype._revalidate.apply(this,arguments)}}]),i}(I.Z);var M=n(43949);const B=function(e){(0,j.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,O.Z)(t);if(n){var i=(0,O.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Z.Z)(this,e)});function i(e){var t;return(0,b.Z)(this,i),(t=r.call(this,e,w.zl)).setError(D.IA),t}return(0,x.Z)(i)}(k.Z);var U=n(5786),F=n(70885),G=n(22028),V=["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"],q=["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],H=["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Chorasmian","Chrs","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Dives_Akuru","Diak","Dogra","Dogr","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Elymaic","Elym","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gunjala_Gondi","Gong","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanifi_Rohingya","Rohg","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khitan_Small_Script","Kits","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Makasar","Maka","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Medefaidrin","Medf","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","Nandinagari","Nand","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Nyiakeng_Puachue_Hmong","Hmnp","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_Sogdian","Sogo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sogdian","Sogd","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Wancho","Wcho","Warang_Citi","Wara","Yezidi","Yezi","Yi","Yiii","Zanabazar_Square","Zanb"];const z=function(e){(0,j.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,O.Z)(t);if(n){var i=(0,O.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Z.Z)(this,e)});function i(){return(0,b.Z)(this,i),r.apply(this,arguments)}return(0,x.Z)(i,[{key:"parseComplete",value:function(){G.Z.prototype.parseComplete.call(this);var e=this.script.split("="),t=(0,F.Z)(e,2),n=t[0],r=t[1];null==r&&(r=n,n=null),this.category=n,this.script=r;var i=!0;switch(n){case null:i=V.includes(r)||q.includes(r);break;case"gc":case"General_Category":i=q.includes(r);break;case"Script":case"sc":case"Script_Extensions":case"scx":i=H.includes(r);break;default:i=!1}i||this.setError(D.xi)}}]),i}(G.Z);var W=n(4727);const Y=function(e){(0,j.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,O.Z)(t);if(n){var i=(0,O.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Z.Z)(this,e)});function i(e){var t;return(0,b.Z)(this,i),(t=r.call(this,e,w.lA)).controlChar=null,t.setStyle(C.Z.meta),t.quantifiable=!1,t.length=1,t}return(0,x.Z)(i,[{key:"parseComplete",value:function(){this.controlChar=this.string.slice(2),this.charCode=16+parseInt(this.controlChar,10)}}]),i}(k.Z);var K=n(11357),J=n(32774),X=n(95808),Q=function(e,t,n){if("\\"===t&&n.unicodeEnabled&&e.match(J.t))return new W.Z(n)};const $=[function(e,t,n){if(!n.inCharClass&&"["===t&&e.match(/^\[\^?/))return e.eat("]")?new E(n):new i.Z(n)},function(e,t,n){if(n.inCharClass&&e.eat("]"))return new a.Z(n)},function(e,t,n){if(n.inCharClass&&e.eat("-"))return new L(n)},function(e,t,n){if(-1!==n.flags.indexOf("u")&&"\\"===t)return!n.inCharClass&&e.match(/^\\[1-9]\d*/)?new s.Z(n):e.match(/^\\0/)?new U.Z(n,!!e.match(/^\d+/)):void 0;var r;if("\\"===t&&(r=e.match(/^\\(\d{1,3})/))){var i=parseInt(r[1],10);if(!n.inCharClass&&i>0)return new T(n);var a=r[1].match(/^(?:[0-3][0-7]{1,2}|[0-7]{1,2})/),c=0;return a?((c=r[1].length-a[0].length)>0&&e.backUp(c),new o.Z(n)):(r[0].length>2&&e.backUp(r[0].length-2),new M.Z(n))}},function(e,t,n){if((0,K.x3)()&&"\\"===t&&!n.inCharClass&&e.match(/^\\k(?:<\w+>)?/))return new v.Z(n)},function(e,t,n){if(!n.inCharClass&&"("===t){var i=new RegExp("^\\((?:\\?(?:".concat((0,K.x3)()?"<\\w+>|":"","[=!:]").concat((0,K.nn)()?"|<[=!]":"","))?")),a=e.match(i);if(null!=a){var s=a[0].replace(/\w+/g,"");if("("===a[0])return new c.Z(n);if("(?:"===a[0])return new p.Z(n);if("(?="===s)return new l.Z(n,!1);if("(?!"===s)return new u.Z(n,!1);if("(?<>"===s)return new d.Z(n);if((0,K.nn)()&&"(?<="===s)return new h.Z(n,!1);if((0,K.nn)()&&"(?<!"===s)return new f.Z(n,!1);r.O7(new Error("Unknown group structure '".concat(s,"'")))}}},X.fF,X.MH,X.is,function(e,t,n){if("\\"===t){var r=-1===n.flags.indexOf("u")?/^\\x[0-9A-Fa-f]{2}/:/^\\x(?:[0-9A-Fa-f]{2})?/;if(e.match(r))return new A.Z(n)}},Q,function(e,t,n){if("\\"===t){var r=-1===n.flags.indexOf("u")?/^\\u[0-9A-Fa-f]{4}/:/^\\u(?:[0-9A-Fa-f]{4}|{[^}]*}?)/;if(e.match(r))return new P.Z(n)}},function(e,t,n){if((0,K.XG)()&&"\\"===t&&-1!==n.flags.indexOf("u")&&e.match(/^\\[pP](?:{[\w=]+}?)?/))return new z(n)},function(e,t,n){if("\\"===t){if(e.match(/^\\c[a-zA-Z]/)||-1!==n.flags.indexOf("u")&&e.match(/^\\c/))return new _.Z(n);if(n.inCharClass&&e.match(/^\\c\d/))return new Y(n);if(e.match(/^\\(?=c)/))return new N.Z(n)}},X.Nk,function(e,t,n){var r;if("\\"===t&&(r=e.match(/^\\[WwDdSsvfntrBb]/)))return"\\v"===r[0]?new y.Z(n):n.inCharClass?"\\b"===r[0]?new m.Z(n):/^\\[trnfaedDsSwW]/.test(r[0])?new g.Z(n):new M.Z(n):new g.Z(n)},(0,X.eb)(M.Z),X.k_,function(e,t,n){if(!n.inCharClass&&e.eat(n.delimiter))return new S.Z(n)},function(e,t,n){if(-1!==n.flags.indexOf("u")&&-1!=="]{}".indexOf(t))return e.next(),new B(n)},X.NY]},95808:(e,t,n)=>{"use strict";n.d(t,{eb:()=>G,UB:()=>V,MH:()=>T,fF:()=>R,tP:()=>D,oY:()=>F,mw:()=>I,Nk:()=>U,NY:()=>B,is:()=>A,k_:()=>L,sN:()=>M});var r=n(4942),i=n(15671),a=n(43144),s=n(97326),o=n(60136),c=n(82963),u=n(61120),l=n(67664),f=n(1277),h=n(43307);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const v=function(e){(0,o.Z)(h,e);var t,n,r=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.Z)(t);if(n){var i=(0,u.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.Z)(this,e)});function h(e){var t;(0,i.Z)(this,h);var n=e.groups[e.groups.length-1],a=n?n.type:null;return e.parents.pop(),(t=r.call(this,e,a)).openGroup=null,t.groupNumber=null,t.subpattern=null,t.flags=null,n?n.error?t.setError(n.error):(t.setStyle(n.style),t.openGroup=n,n.setCloseGroup((0,s.Z)(t)),n.addRelatedToken((0,s.Z)(t))):t.setError(l.f0),null!=n&&(t.state.flags=n.previousFlags),null!=t.openGroup&&(t.groupNumber=t.openGroup.groupNumber,t.subpattern=t.openGroup.subpattern),t}return(0,a.Z)(h,[{key:"getTooltipMarkerRange",value:function(){return{primary:{start:{pos:(this.openGroup||this).editorPosition.start.pos,line:(this.openGroup||this).editorPosition.start.line},end:{pos:this.editorPosition.end.pos,line:this.editorPosition.end.line}}}}},{key:"getTooltipToken",value:function(){return this.openGroup||this}},{key:"_getNextState",value:function(e){if(e.parents.pop(),e.groups.pop(),this.error||(e.previousToken=this.openGroup),this.type===f.Ws)e.inDEFINE=!1;else if(this.type===f.PG||this.type===f.up||this.type===f.fy)e.lookbehindCount=this.openGroup.state.lookbehindCount,e.lookaroundCount--;else if(this.type===f.Gs||this.type===f.Ty||this.type===f.qh)e.lookbehindCount--,e.lookaroundCount--;else if(this.type===f.no){this.openGroup.setBaseline(e);var t=this.parent.type===f.no;e=d(d(d({},e),this.openGroup.getBaseline()),{},{inDuplicateSubpatternGroup:t,captureGroupCount:this.openGroup.finalCaptureGroupCount})}return e}}]),h}(h.Z);var g=n(4458);const m=function(e){(0,o.Z)(l,e);var t,n,r=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.Z)(t);if(n){var i=(0,u.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.Z)(this,e)});function l(e){var t;return(0,i.Z)(this,l),e.parents.pop(),(t=r.call(this,e,f.hs)).alternativeNumber=null,t.setStyle(g.Z.alternator),t.parent&&t.parent.addRelatedToken((0,s.Z)(t)),t}return(0,a.Z)(l)}(h.Z),y=function(e){(0,o.Z)(s,e);var t,n,r=(t=s,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.Z)(t);if(n){var i=(0,u.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.Z)(this,e)});function s(e){var t;return(0,i.Z)(this,s),(t=r.call(this,e)).alternativeNumber=e.alternatives+1,t}return(0,a.Z)(s,[{key:"_getNextState",value:function(e){return e.alternatives++,e.parents.push(this),e}}]),s}(m);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const j=function(e){(0,o.Z)(s,e);var t,n,r=(t=s,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.Z)(t);if(n){var i=(0,u.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.Z)(this,e)});function s(e){var t;(0,i.Z)(this,s),t=r.call(this,e);var n=e.groups[e.groups.length-1];return n.addAlternative(),t.alternativeNumber=n.alternatives,(n.type===f.Ws||n.type===f.oK&&n.alternatives>1)&&t.setError(l.cs),t.setStyle(n.style),t}return(0,a.Z)(s,[{key:"_getNextState",value:function(e){e.parents.push(this);var t=this.state.groups[this.state.groups.length-1];return t&&t.type===f.no&&(t.setBaseline(e),e=b(b({},e),t.getBaseline())),e}}]),s}(m);var Z=n(53467),O=n(68120),w=n(1234),k=n(95165),C=n(24051);const E=function(e){(0,o.Z)(s,e);var t,n,r=(t=s,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.Z)(t);if(n){var i=(0,u.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.Z)(this,e)});function s(e){var t;return(0,i.Z)(this,s),(t=r.call(this,e,f.jf)).setStyle(g.Z.comment),t}return(0,a.Z)(s,[{key:"getComment",value:function(){return this.string.slice(3,-1)}},{key:"_getNextState",value:function(e){return e.previousToken=this.state.previousToken,e}}]),s}(h.Z);var P=n(78338),S=n(97027),_=n(52011);const N=function(e){(0,o.Z)(s,e);var t,n,r=(t=s,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.Z)(t);if(n){var i=(0,u.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.Z)(this,e)});function s(e){var t;return(0,i.Z)(this,s),(t=r.call(this,e,f.MW)).setStyle([g.Z.charclass,g.Z.meta]),t.setError(l.Jf),t}return(0,a.Z)(s)}(h.Z);var R=function(e,t,n){if(!n.inCharClass&&e.eat(")"))return new v(n)},T=function(e,t,n){if(!n.inCharClass&&e.eat("|"))return n.groups.length>0?new j(n):new y(n)},A=function(e,t,n){if(!n.inCharClass&&-1!=="+*?{".indexOf(t)&&e.match(/^(?:[*+?]|{\d+,?\d*})/))return new Z.Z(n)},D=function(e,t,n){if(!n.inCharClass&&"#"===t&&-1!==n.flags.indexOf("x")&&"#"!==n.delimiter&&e.match(/^#.*/))return new O.Z(n)},I=function(e,t,n){if(!n.inCharClass&&"#"!==n.delimiter&&"("===t&&e.match(/^\(\?#[^)]*\)/))return new E(n)},L=function(e,t,n){if("\\"===t)return e.next(),new w.Z(n)},M=function(e,t,n){if(e.matchString(n.delimiter))return new k.Z(n)},B=function(e,t,n){return e.next(),new C.Z(n)},U=function(e,t,n){if(!n.inCharClass&&e.match(/^[$^.]/))return new P.Z(n)},F=function(e,t,n){if("\\"===t&&e.match(/^\\c.?/))return new _.Z(n)},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.Z;return function(t,n,r){if("\\"===n&&t.position+1<=t.stringLength){var i=t.position;return t.next(),t.next(),t.position===i+1?(t.backUp(1),null):new e(r)}}},V=function(e){return function(t,n,r){var i;if("\\"===n&&(i=t.match(/^\\\d+/))){if(parseInt(i[0].slice(1),10)>e)return new N(r);t.backUp(i[0].length)}}}},75659:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(70885),i=n(15671),a=n(43144),s=n(23765);const o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(0,i.Z)(this,e),this.position=0,this.string=null,this.stringLength=0,this.string=t,this.stringLength=this.string.length,this.position=0}return(0,a.Z)(e,[{key:"eof",value:function(){return this.position>=this.stringLength}},{key:"sof",value:function(){return 0===this.position}},{key:"peek",value:function(){var e=this._getWholeCharAndI(this.string,this.position);return(0,r.Z)(e,1)[0]||null}},{key:"next",value:function(){if(this.position<this.stringLength){var e=this._getWholeCharAndI(this.string,this.position),t=(0,r.Z)(e,2),n=t[0],i=t[1];return this.position=i+1,n}return null}},{key:"eat",value:function(e){var t=this._getWholeCharAndI(this.string,this.position),n=(0,r.Z)(t,2),i=n[0],a=n[1];return i===e?(this.position=a+1,i):null}},{key:"eatWhile",value:function(e){for(var t=this.position;this.eat(e););return this.position>t}},{key:"skipToEnd",value:function(){this.position=this.stringLength}},{key:"skipTo",value:function(e){var t=this.string.indexOf(e,this.position);return t>-1&&(this.position=t,!0)}},{key:"backUp",value:function(e){this.position-=e}},{key:"match",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.string.slice(this.position).match(e);if(n&&n.index>0)throw new Error("Regex match did not happen at the beginning of string ".concat(e.toString()));return n&&t&&(this.position+=n[0].length),n}},{key:"matchString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.string.substr(this.position,e.length);return n===e&&(t&&(this.position+=e.length),!0)}},{key:"current",value:function(){return this.string.slice(0,this.position)}},{key:"_getWholeCharAndI",value:function(e,t){var n=e.charCodeAt(t);if(isNaN(n))return[null,t];if(n<55296||n>57343)return[e.charAt(t),t];if(55296<=n&&n<=56319){if(e.length<=t+1)return s.Z.error("High surrogate without following low surrogate"),[e.charAt(t),t];var r=e.charCodeAt(t+1);return 56320>r||r>57343?(s.Z.error("High surrogate without following low surrogate"),[e.charAt(t),t]):[e.charAt(t)+e.charAt(t+1),t+1]}if(0===t)return s.Z.error("Low surrogate without preceding high surrogate"),[e.charAt(t),t];var i=e.charCodeAt(t-1);return 55296>i||i>56319?(s.Z.error("Low surrogate without preceding high surrogate"),[e.charAt(t),t]):[e.charAt(t+1),t+1]}}]),e}()},61923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(43307),l=n(4458);const f=function(e){(0,a.Z)(f,e);var t,n,u=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,i.Z)(this,f),(t=u.call(this,e,c.ZH)).setStyle(l.Z.meta),t.length=1,t.charCode="\b".charCodeAt(0),t}return(0,r.Z)(f)}(u.Z)},16770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(87263);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,r.Z)(this,f),(t=l.call(this,e,c.t,!0)).groupNumber=null,t.groupNumber=e.captureGroupCount+1,t}return(0,i.Z)(f,[{key:"_getNextState",value:function(e){return this.state.inDEFINE&&e.definedSubpatterns.push(this.state.captureGroupCount),e.captureGroupCount++,e.captureGroupMap[e.captureGroupCount]=e.captureGroupCount,e.captureGroups.push(this),u.Z.prototype._getNextState.call(this,e)}}]),f}(u.Z)},72655:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(15671),i=n(43144),a=n(11752),s=n(60136),o=n(82963),c=n(61120),u=n(1277),l=n(67664),f=n(43307),h=n(4458);const p=function(e){(0,s.Z)(p,e);var t,n,f=(t=p,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,c.Z)(t);if(n){var i=(0,c.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,o.Z)(this,e)});function p(e){var t;return(0,r.Z)(this,p),(t=f.call(this,e,u.jt)).leftToken=null,t.rightToken=null,t.setStyle(h.Z.meta),t.charCode="-".charCodeAt(0),t}return(0,i.Z)(p,[{key:"getTooltipMarkerRange",value:function(){return this.type===u.zl?(0,a.Z)((0,c.Z)(p.prototype),"getTooltipMarkerRange",this).call(this):{primary:{start:{pos:(this.leftToken||this).editorPosition.start.pos,line:(this.leftToken||this).editorPosition.start.line},end:{pos:(this.rightToken||this).editorPosition.end.pos,line:(this.rightToken||this).editorPosition.end.line}}}}},{key:"_getNextState",value:function(e){return e.ranges.push(this),e}},{key:"_revalidate",value:function(e,t){this.leftToken=e,this.rightToken=t;var n=(null===e||void 0===e?void 0:e.codePoint)||(null===e||void 0===e?void 0:e.charCode),r=(null===t||void 0===t?void 0:t.codePoint)||(null===t||void 0===t?void 0:t.charCode);return!t||t.type===u.U6||e.type===u.HI||e.type===u.jt||e.partOfRange||t.partOfRange?this._convertToPlainText():null==n||null==r?this.setError(l.BC):n>r&&this.setError(l.i0),!this.state.unicodeEnabled&&(null!=e&&e.type===u.zl&&e.charCode>=parseInt("0xd800",16)&&e.charCode<=parseInt("0xdfff",16)||null!=t&&t.type===u.zl&&t.charCode>=parseInt("0xd800",16)&&t.charCode<=parseInt("0xdfff",16))&&this.setError(l.Af),this.type!==u.zl&&(e.error||t.error?this.setError(l.Y4):(e.rangeToken=t.rangeToken=this,e.partOfRange=!0,t.partOfRange=!0)),!!this.error}},{key:"_convertToPlainText",value:function(){var e,t;this.type=u.zl,this.length=1,this.isPoorlyPlaced=(null===(e=this.rightToken)||void 0===e?void 0:e.type)!==u.U6&&(null===(t=this.leftToken)||void 0===t?void 0:t.type)!==u.HI,this.leftToken=this.rightToken=void 0,this.setStyle(null)}}]),p}(f.Z)},45036:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(97326),s=n(60136),o=n(82963),c=n(61120),u=n(1277),l=n(43307),f=n(4458);const h=function(e){(0,s.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,c.Z)(t);if(n){var i=(0,c.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,o.Z)(this,e)});function h(e){var t;(0,r.Z)(this,h),(t=l.call(this,e,u.U6)).openCharClass=null,t.setStyle([f.Z.charclass,f.Z.meta]);var n=e.charClasses[e.charClasses.length-1];return n.addRelatedToken((0,a.Z)(t)),n.closeCharClass=(0,a.Z)(t),t.openCharClass=n,t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"getTooltipMarkerRange",value:function(){return{primary:{start:{pos:(this.openCharClass||this).editorPosition.start.pos,line:(this.openCharClass||this).editorPosition.start.line},end:{pos:this.editorPosition.end.pos,line:this.editorPosition.end.line}}}}},{key:"getTooltipToken",value:function(){return this.openCharClass||this}},{key:"setQuantifier",value:function(e){this.openCharClass?this.openCharClass.setQuantifier(e):this.quantifier=e}},{key:"_getNextState",value:function(e){return e.charClasses.pop(),e.parents.pop(),e.inCharClass=0!==e.charClasses.length,e}}]),h}(l.Z)},52011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(43307),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.lA)).controlChar=null,t.setStyle(f.Z.meta),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this.controlChar=this.string.slice(2),/^[\u0000-\u007F]$/.test(this.controlChar)||this.setError(u.Iu),this.controlChar&&(this.charCode=64^this.controlChar.toUpperCase().charCodeAt(0))}}]),h}(l.Z)},97027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(81370),f=n.n(l),h=n(43307),p=n(4458);const d=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.t0)).setStyle(p.Z.escaped_string),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this.charCode=this.string.charCodeAt(1),this.codePoint=this.string.codePointAt(1),"\0"===this.string.slice(1)&&[f().PCRE,f().PCRE2,f().PYTHON].includes(this.state.flavor)&&this.setError(u.O3)}}]),h}(h.Z)},49116:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(67664),u=n(97027);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.Z)(this,f),(t=l.call(this,e))._isSubstitution=null,t._isSubstitution=n,t}return(0,i.Z)(f,[{key:"parseComplete",value:function(){u.Z.prototype.parseComplete.call(this),/^\\[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]$/i.test(this.string)?"\\`"===this.string?this.setError(c.Qc):this._isSubstitution&&!/^\\[\\"]$/.test(this.string)&&this.setError(c.mi):this.setError(c.mi)}}]),f}(u.Z)},66476:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(67664);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.Z)(this,l),(t=u.call(this,e))._isSubstitution=null,t._isSubstitution=n,t}return(0,i.Z)(l,[{key:"parseComplete",value:function(){this._setValues(),"{"===this.string.charAt(2)&&"}"!==this.string.slice(-1)?this.setError(c.YY):parseInt(this.hex,16)>parseInt("0xfffff",16)?(this.setError(c.y1),this.charCode=null):this._isSubstitution&&!/^\\x..$/.test(this.string)&&this.setError(c.YY)}}]),l}(n(13511).Z)},87263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(11752),s=n(60136),o=n(82963),c=n(61120),u=n(67664),l=n(43307),f=n(4458);const h=function(e){(0,s.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,c.Z)(t);if(n){var i=(0,c.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,o.Z)(this,e)});function h(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.Z)(this,h),(n=l.call(this,e,t)).alternatives=0,n.closeGroup=null,n.previousFlags=null,n.setStyle(f.Z["group-".concat(Math.min(e.groups.length,3))]),n.quantifiable=!1,n.willBeQuantifiable=i,n}return(0,i.Z)(h,[{key:"getTooltipMarkerRange",value:function(){return{primary:{start:{pos:this.editorPosition.start.pos,line:this.editorPosition.start.line},end:{pos:(this.closeGroup||this).editorPosition.end.pos,line:(this.closeGroup||this).editorPosition.end.line}}}}},{key:"setCloseGroup",value:function(e){this.closeGroup=e,this.closeGroup.quantifiable=this.quantifiable=this.willBeQuantifiable}},{key:"setQuantifier",value:function(e){(0,a.Z)((0,c.Z)(h.prototype),"setQuantifier",this).call(this,e),this.closeGroup&&this.closeGroup.setQuantifier(e)}},{key:"parseComplete",value:function(){this.previousFlags=this.state.flags}},{key:"addAlternative",value:function(){this.alternatives++}},{key:"_getNextState",value:function(e){return e.parents.push(this),e.groups.push(this),e}},{key:"_revalidate",value:function(){return this.setError(u.CL),!0}}]),h}(l.Z)},13511:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(43307),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.L3)).hex=null,t.setStyle(f.Z.meta),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this._setValues(),"{"===this.string.charAt(2)&&"}"!==this.string.slice(-1)?this.setError(u.YY):parseInt(this.hex,16)>parseInt("0x10ffff",16)&&(this.setError(u.y1),this.charCode=null)}},{key:"_setValues",value:function(){this.hex=this.string.slice(2).replace(/[{}]/g,"")||"00",this.charCode=parseInt(this.hex,16)}}]),h}(l.Z)},25287:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(67664),u=n(97027);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(){return(0,r.Z)(this,f),l.apply(this,arguments)}return(0,i.Z)(f,[{key:"parseComplete",value:function(){u.Z.prototype.parseComplete.call(this),/^\\[a-z]$/i.test(this.string)&&this.setError(c.mi)}}]),f}(u.Z)},5786:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(67664);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,i.Z)(this,l),t=u.call(this,e),n&&t.setError(c.mi),t}return(0,r.Z)(l)}(n(38645).Z)},43949:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(67664),u=n(97027);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(){return(0,r.Z)(this,f),l.apply(this,arguments)}return(0,i.Z)(f,[{key:"parseComplete",value:function(){u.Z.prototype.parseComplete.call(this),(this.state.unicodeEnabled&&!/^\\[$()*+./?[\\\]^{|}]$/i.test(this.string)||this.state.inCharClass&&"\\k"===this.string)&&this.setError(c.mi)}}]),f}(u.Z)},19099:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(67664),u=n(13511);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.Z)(this,f),(t=l.call(this,e))._substitutionMode=null,t._substitutionMode=n,t}return(0,i.Z)(f,[{key:"parseComplete",value:function(){u.Z.prototype.parseComplete.call(this),("\\x"===this.string||this._substitutionMode&&!/^\\x..$/.test(this.string))&&this.setError(c.YY)}}]),f}(u.Z)},68120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(43307),l=n(4458);const f=function(e){(0,a.Z)(f,e);var t,n,u=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,r.Z)(this,f),(t=u.call(this,e,c.qi)).setStyle(l.Z.comment),t}return(0,i.Z)(f,[{key:"getComment",value:function(){return this.string.slice(1)}},{key:"_getNextState",value:function(e){return e.previousToken=this.state.previousToken,e.actualPreviousToken=this.state.actualPreviousToken,e}}]),f}(u.Z)},85877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(36125);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(){return(0,r.Z)(this,l),u.apply(this,arguments)}return(0,i.Z)(l,[{key:"_getNextState",value:function(e){return e.lookbehindCount=0,c.Z.prototype._getNextState.call(this,e)}}]),l}(c.Z)},36125:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(87263);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e,t){var n,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.Z)(this,l),(n=u.call(this,e,t)).isCondition=null,n.isCondition=!1,n.willBeQuantifiable=i,n}return(0,i.Z)(l,[{key:"_getNextState",value:function(e){return this.state.expectingCondition&&(this.state.previousToken.setCondition(this),e.expectingCondition=!1,this.isCondition=!0,this.willBeQuantifiable=!1,this.quantifiable=!1),e.lookaroundCount++,c.Z.prototype._getNextState.call(this,e)}}]),l}(c.Z)},50594:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(81370),f=n.n(l),h=n(36125);const p=function(e){(0,a.Z)(p,e);var t,n,l=(t=p,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function p(){return(0,r.Z)(this,p),l.apply(this,arguments)}return(0,i.Z)(p,[{key:"_getNextState",value:function(e){return e.lookbehinds.push(this),e.lookbehindCount++,h.Z.prototype._getNextState.call(this,e)}},{key:"_revalidate",value:function(){if(!this.closeGroup)return this.setError(u.CL),!0;var e={foundError:!1};if(this.state.flavor===f().PYTHON)this._ensureFixedWidth(this.children,e);else if(this.state.flavor!==f().JAVA&&this.state.flavor!==f().JAVASCRIPT)for(var t=0,n=this.children.length;t<n;t++)this._ensureFixedWidth(this.children[t].children,e);return e.foundError}},{key:"_ensureFixedWidth",value:function(e,t){for(var n=null,r=0,i=0,a=e.length;i<a;i++){var s=e[i];if(s.type===c.hs){var o=this._ensureFixedWidth(s.children,t);null==n?(n=o,r+=o):n!==o&&(s.parent.setError(u.eB),t.foundError=!0)}else if((0,c.tK)(s.type)&&!(0,c.Az)(s.type)){var l=this._ensureFixedWidth(s.children,t),f=e[i+1];f&&f.type===c.Wj&&(l*=f.length,i+=f.quantifier?2:1),r+=l}else r+=s.length}return r}}]),p}(h.Z)},78338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(81370),f=n.n(l),h=n(43307),p=n(4458),d=/^(?:\\[zZbBAGK]|[$^])$/;const v=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.MW)).setStyle(p.Z.meta),t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){switch(this.quantifiable=!d.test(this.string),this.quantifier||d.test(this.string)||(this.length=1),(this.state.flavor===f().PCRE2||this.state.flavor===f().PCRE)&&(this.state.lookbehindCount>0&&("\\X"===this.string||"\\R"===this.string||"\\C"===this.string&&this.state.unicodeEnabled)||this.state.lookaroundCount>0&&"\\K"===this.string)&&this.setError(u.jV),this.string){case"\\a":this.charCode=7;break;case"\\b":this.charCode=8;break;case"\\f":this.charCode=12;break;case"\\n":this.charCode=10;break;case"\\r":this.charCode=13;break;case"\\t":this.charCode=9;break;case"\\e":this.charCode=27;break;default:this.charCode=null}}}]),h}(h.Z)},86700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(53996),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.O3)).reference=null,t.setStyle(f.Z.backreference),t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this.reference=this.string.replace(/^(?:\(\?P=|\\[kg])|\W/g,"")}},{key:"_revalidate",value:function(e){return this.reference?-1===e.subpatterns.indexOf(this.reference)&&this.setError(u.Bj):this.setError(u.YY),!!this.error}}]),h}(l.Z)},75262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(87263);const f=function(e){(0,a.Z)(h,e);var t,n,f=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=f.call(this,e,c.sS,!0)).groupNumber=null,t.subpattern=null,t.groupNumber=e.captureGroupCount+1,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){var e=this.state.flags;if(l.Z.prototype.parseComplete.call(this),this.subpattern=this.string.replace("(?P","").match(/\w+/)[0],this.subpattern.length>32&&this.setError(u.bk),/^\d$/.test(this.subpattern.charAt(0))&&this.setError(u.kU),this.state.inDuplicateSubpatternGroup){var t=this.state.captureGroupCount+1;if("string"===typeof this.state.captureGroupMap[t])return void(this.state.captureGroupMap[t]!==this.subpattern&&this.setError(u.wn));if("number"===typeof this.state.captureGroupMap[t])return void this.setError(u.wn)}-1!==this.state.subpatterns.indexOf(this.subpattern)&&-1===e.indexOf("J")&&this.setError(u.wi)}},{key:"_getNextState",value:function(e){return this.state.inDEFINE&&e.definedSubpatterns.push(this.state.captureGroupCount),e.subpatterns.push(this.subpattern),e.captureGroupCount++,e.captureGroupMap[e.captureGroupCount]=this.subpattern,e.captureGroupMap[this.subpattern]=e.captureGroupCount,e.captureGroups.push(this),l.Z.prototype._getNextState.call(this,e)}}]),h}(l.Z)},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e,t){return(0,i.Z)(this,l),u.call(this,e,c.up,t)}return(0,r.Z)(l)}(n(85877).Z)},43276:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e,t){return(0,i.Z)(this,l),u.call(this,e,c.Ty,t)}return(0,r.Z)(l)}(n(50594).Z)},53980:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e){return(0,i.Z)(this,l),u.call(this,e,c.xT,!0)}return(0,r.Z)(l)}(n(87263).Z)},4427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(53996),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.Z)(this,h),(t=l.call(this,e,c.WE)).setStyle(f.Z.backreference),t.allowZeroRef=n,t}return(0,i.Z)(h,[{key:"_revalidate",value:function(e){if(!this.error){var t=this.string.replace(/\D/g,"");if(this.allowZeroRef&&"0"===t)return this.reference=0,!1;var n=null;if(t){var r=parseInt(t,10);-1!==this.string.indexOf("-")?(n=this.state.captureGroupCount-r+1,0===r&&this.setError(u.Bj)):-1!==this.string.indexOf("+")?(n=this.state.captureGroupCount+r,0===r&&this.setError(u.Bj)):n=r,(n>e.captureGroupCount||n<1)&&this.setError(u.Bj)}else this.setError(u.YY);return this.reference=n,!!this.error}}}]),h}(l.Z)},38645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(43307),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.Pg)).setStyle(f.Z.meta),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this.charCode=parseInt(this.string.replace(/\D/g,""),8)||0,this.state.unicodeEnabled&&this.charCode>=parseInt("0xd800",16)&&this.charCode<=parseInt("0xdfff",16)&&this.setError(u.oH)}}]),h}(l.Z)},65315:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(43307),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.HI)).closeCharClass=null,t.intersection=!1,t.setStyle([f.Z.charclass,f.Z.meta]),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"getTooltipMarkerRange",value:function(){return{primary:{start:{pos:this.editorPosition.start.pos,line:this.editorPosition.start.line},end:{pos:(this.closeCharClass||this).editorPosition.end.pos,line:(this.closeCharClass||this).editorPosition.end.line}}}}},{key:"_getNextState",value:function(e){return e.inCharClass=!0,e.charClasses.push(this),e.parents.push(this),e}},{key:"_revalidate",value:function(){return this.setError(u.sw),!0}}]),h}(l.Z)},4462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(67664),u=n(13511);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(){return(0,r.Z)(this,f),l.apply(this,arguments)}return(0,i.Z)(f,[{key:"parseComplete",value:function(){u.Z.prototype.parseComplete.call(this),this.hex.length>4&&!this.state.unicodeEnabled?this.setError(c.y1):this.state.unicodeEnabled&&parseInt(this.hex,16)>=parseInt("0xd800",16)&&parseInt(this.hex,16)<=parseInt("0xdfff",16)?this.setError(c.oH):"\\x{}"===this.string&&this.setError(c.Yo)}}]),f}(u.Z)},24051:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(81370),l=n.n(u),f=n(67664);const h=function(e){(0,a.Z)(h,e);var t,n,u=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=u.call(this,e,c.zl))._ignoreWhitespace=!1,t.setStyle(null),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this.charCode=this.string.charCodeAt(0),this.codePoint=this.string.codePointAt(0),0===this.charCode&&[l().PCRE,l().PCRE2,l().PYTHON].includes(this.state.flavor)&&this.setError(f.O3),this._ignoreWhitespace=(this.state.flags.includes("x")&&!this.state.inCharClass||this.state.flags.includes("xx"))&&/[ \t\r\n\f]/.test(this.string),this._ignoreWhitespace&&(this.length=0)}},{key:"_getNextState",value:function(e){return this._ignoreWhitespace&&(e.previousToken=this.state.previousToken,this.ignoreOnHover=!0),e}}]),h}(n(43307).Z)},23550:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e,t){return(0,i.Z)(this,l),u.call(this,e,c.PG,t)}return(0,r.Z)(l)}(n(85877).Z)},23049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277);const u=function(e){(0,a.Z)(l,e);var t,n,u=(t=l,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function l(e,t){return(0,i.Z)(this,l),u.call(this,e,c.Gs,t)}return(0,r.Z)(l)}(n(50594).Z)},53467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(81370),f=n.n(l),h=n(11357),p=n(43307),d=n(4458);const v=function(e){(0,a.Z)(p,e);var t,n,l=(t=p,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function p(e){var t;return(0,r.Z)(this,p),(t=l.call(this,e,c.Wj)).to=null,t.from=null,t.possessive=!1,t.lazy=!1,t.setStyle(e.previousToken&&((0,c.tK)(e.previousToken.type)||e.previousToken.type===c.Wj)?e.previousToken.style:d.Z.quantifier),t.quantifiable=!0,t.lazy=-1!==e.flags.indexOf("U"),t}return(0,i.Z)(p,[{key:"getTooltipMarkerRange",value:function(){var e={start:{pos:this.editorPosition.start.pos,line:this.editorPosition.start.line},end:{pos:this.editorPosition.end.pos,line:this.editorPosition.end.line}};if(this.error)return{primary:e};var t=this.state.previousToken,n={};return t&&t.type===c.Wj&&(e.start.pos=t.editorPosition.start.pos,e.start.line=t.editorPosition.start.line,t=t.state.previousToken),this.quantifier&&(e.end.pos=this.quantifier.editorPosition.end.pos,e.end.line=this.quantifier.editorPosition.end.line),t&&(n=t.getTooltipMarkerRange().primary),{primary:e,secondary:n}}},{key:"getTooltipToken",value:function(){return!this.error&&this.state.previousToken&&this.state.previousToken.type===c.Wj?this.state.previousToken:this}},{key:"parseComplete",value:function(){if(this._calculateDimension(),this.state.previousToken&&this.state.previousToken.quantifiable){if(this.length=this._getLength(),this.state.previousToken.type===c.Wj){var e=(this.state.previousToken.string+this.string).slice(-1);this._validateQuantifier(e),this.quantifiable=!1}this.error||(this.state.previousToken.possessive=this.possessive,this.state.previousToken.lazy=this.lazy,this.state.previousToken.setQuantifier(this),this.state.previousToken.addRelatedToken(this))}else this.setError(u.RY)}},{key:"_calculateDimension",value:function(){var e=this.state.flavor,t=this.string.charAt(0),n=this.state.lookbehindCount>0,r=n&&e===f().JAVASCRIPT&&(0,h.nn)();if("{"===t){var i,a=this.string.replace(/[^\d,]/g,"").split(","),s=a[0]?parseInt(a[0],10):0;i=void 0===a[1]?s:""===a[1]?1/0:parseInt(a[1],10),this.to=i,this.from=s,s>i?this.setError(u.Hh):n&&!r&&(e===f().JAVA?i===1/0&&this.setError(u.Cc):s!==i?this.setError(u.Cc):e!==f().PCRE&&e!==f().PYTHON||0!==i||this.setError(u.Cc))}else n&&!r&&(e===f().JAVA?"?"!==t&&this.setError(u.Cc):this.setError(u.Cc)),"*"===t?(this.from=0,this.to=1/0):"+"===t?(this.from=1,this.to=1/0):(this.from=0,this.to=1)}},{key:"_getLength",value:function(){return this.state.previousToken.type===c.Wj?this.state.previousToken.length:this.from===this.to?this.from*Math.max(this.state.previousToken.length,1)-this.state.previousToken.length:1/0}},{key:"_validateQuantifier",value:function(e){"?"===e?this.lazy=!this.lazy:this.setError(u.RY)}}]),p}(p.Z)},53996:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(81370),u=n.n(c),l=n(67664);const f=function(e){(0,a.Z)(f,e);var t,n,c=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e,t){var n;return(0,r.Z)(this,f),(n=c.call(this,e,t)).reference=null,n.quantifiable=!0,n.length=0,n.state.flavor!==u().JAVASCRIPT&&e.lookbehindCount>0&&n.setError(l.jV),n}return(0,i.Z)(f,[{key:"_getNextState",value:function(e){return e.subpatternTokens.push(this),e}},{key:"_revalidate",value:function(){throw new Error("Reference token has not implemented `_revalidate`")}}]),f}(n(43307).Z)},4727:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(43307),l=n(4458);const f=function(e){(0,a.Z)(f,e);var t,n,u=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,r.Z)(this,f),(t=u.call(this,e,c.bO)).highBits=null,t.lowBits=null,t.setStyle(l.Z.meta),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(f,[{key:"parseComplete",value:function(){this.highBits=this.string.slice(2,6),this.lowBits=this.string.slice(8),this.charCode=this.codePoint=parseInt("0x10000",16)+(parseInt(this.highBits,16)-parseInt("0xd800",16))*parseInt("0x400",16)+(parseInt(this.lowBits,16)-parseInt("0xdc00",16))}}]),f}(u.Z)},43307:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(15671),i=n(43144),a=n(64023),s=n(67664),o=n(4458);const c=function(){function e(t,n){var i;(0,r.Z)(this,e),this.state=null,this.type=null,this.error=null,this.parent=null,this.children=[],this.string=null,this.position=null,this.editorPosition=null,this.style=null,this.quantifiable=null,this.quantifier=null,this.partOfRange=!1,this.rangeToken=null,this.relatedTokens=[],this.ignoreOnHover=!1,this.length=0,this.charCode=null,this.codePoint=null,this.isPoorlyPlaced=!1,this.isSubstitution=!1,this.state=t,this.type=n,this.setParent(null===(i=t.parents)||void 0===i?void 0:i[t.parents.length-1])}return(0,i.Z)(e,[{key:"getNextState",value:function(){var e,t=a.Z.copyState(this.state);return t.previousToken=this,t.actualPreviousToken=this,(null===(e=this._getNextState)||void 0===e?void 0:e.call(this,t))||t}},{key:"getRelatedTokens",value:function(){var e=[];return function t(n){n.forEach((function(n){-1===e.indexOf(n)&&(e.push(n),t(n.relatedTokens))}))}(this.relatedTokens),e}},{key:"getTooltipMarkerRange",value:function(){return this.partOfRange?this.rangeToken.getTooltipMarkerRange():{primary:{start:{pos:this.editorPosition.start.pos,line:this.editorPosition.start.line},end:{pos:this.editorPosition.end.pos,line:this.editorPosition.end.line}}}}},{key:"getTooltipToken",value:function(){return this.partOfRange?this.rangeToken:this}},{key:"setError",value:function(e){var t,n;this.error=e,this.quantifiable=!1,this.style=o.Z.error,this.state.patternError=!0,null===(t=this.quantifier)||void 0===t||t.setError(s.RY),null===(n=this.closeGroup)||void 0===n||n.setError(e)}},{key:"setParent",value:function(e){e&&(this.parent=e,this.parent.addChild(this))}},{key:"setStyle",value:function(e){if(!this.error){var t=e||[];this.state.inCharClass?this.style=[o.Z.inCharClass].concat(t).join(" "):this.state.inQuote?this.style=[o.Z.inQuote].concat(t).join(" "):this.style=[].concat(e).join(" ")}}},{key:"setQuantifier",value:function(e){if(!this.quantifiable&&!this.willBeQuantifiable)throw new Error("Trying to add quantifier to non-quantifiable token");this.quantifier=e}},{key:"addChild",value:function(e){this.children.push(e)}},{key:"addRelatedToken",value:function(e){-1===this.relatedTokens.indexOf(e)&&(this.relatedTokens.push(e),e.addRelatedToken(this))}},{key:"parseComplete",value:function(){}}]),e}()},1234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,i.Z)(this,f),(t=l.call(this,e,c.zl)).setError(u.zX),t}return(0,r.Z)(f)}(n(43307).Z)},95165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,i.Z)(this,f),(t=l.call(this,e,c.cF)).setError(u.t0),t}return(0,r.Z)(f)}(n(43307).Z)},54602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(43307),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.Z)(this,h),(t=l.call(this,e,c.Yb)).hex=null,t._substitutionMode=null,t.setStyle(f.Z.meta),t.quantifiable=!0,t.length=1,t._substitutionMode=n,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this.hex=this.string.replace(/^\\u|[{}]/gi,""),this.charCode=parseInt(this.hex,16),"{"===this.string.charAt(2)&&"}"!==this.string.slice(-1)||""===this.hex?this.setError(u.YY):/[^a-f0-9]/i.test(this.hex)?this.setError(u.K0):parseInt(this.hex,16)>parseInt("10ffff",16)?this.setError(u.y1):this._substitutionMode&&!/^\\u.{4}$/.test(this.string)&&this.setError(u.K0)}}]),h}(l.Z)},22028:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(15671),i=n(43144),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664),l=n(43307),f=n(4458);const h=function(e){(0,a.Z)(h,e);var t,n,l=(t=h,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function h(e){var t;return(0,r.Z)(this,h),(t=l.call(this,e,c.dz)).script=null,t.category=null,t.setStyle(f.Z.meta),t.quantifiable=!0,t.length=1,t}return(0,i.Z)(h,[{key:"parseComplete",value:function(){this.script=this.string.slice(2).replace(/[^&\w\-=]/g,""),(!this.script||"{"===this.string.charAt(2)&&"}"!==this.string.slice(-1))&&this.setError(u.YY)}}]),h}(l.Z)},64375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(67664);const l=function(e){(0,a.Z)(f,e);var t,n,l=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,i.Z)(this,f),(t=l.call(this,e,c.MW)).setError(u.RH),t}return(0,r.Z)(f)}(n(43307).Z)},32973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(43144),i=n(15671),a=n(60136),s=n(82963),o=n(61120),c=n(1277),u=n(43307),l=n(4458);const f=function(e){(0,a.Z)(f,e);var t,n,u=(t=f,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,o.Z)(t);if(n){var i=(0,o.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.Z)(this,e)});function f(e){var t;return(0,i.Z)(this,f),(t=u.call(this,e,c.Tf)).setStyle(l.Z.meta),t.quantifiable=!0,t.charCode="\v".charCodeAt(0),t.length=1,t}return(0,r.Z)(f)}(u.Z)},74387:e=>{e.exports.JL="0.2s",e.exports.t2="0.25s",e.exports.E2="0.2s",e.exports.DP="0.1s",e.exports.ug="0.5s",e.exports.Y4="0.25s",e.exports.oA="0.3s",e.exports.s_="0.25s",e.exports.K0="1s"},41163:e=>{e.exports.zj="5px",e.exports.Pt="785px",e.exports.bP="900px",e.exports.D6="900px",e.exports.p4="1080px"},4844:(e,t,n)=>{"use strict";n.d(t,{O7:()=>g,S1:()=>p,PC:()=>d,fo:()=>y});var r=n(15861),i=n(87757),a=n.n(i),s=n(23765),o=n(25968),c=n(45987),u=["regexAreaParser"];function l(e,t,n){var r=n.regexEditor,i=r.regex,a=r.delimiter,s=r.flavor,o=r.flags,l=r.testString,f=r.substString,h=n.general,p=h.permalinkFragment,d=h.version,v=h.userId,g=h.email;e.setUser({id:v,email:g}),t.setContext("permalink",{permalinkFragment:p,version:d}),t.setContext("editor",{regex:i,delimiter:a,flavor:s,flags:o,testString:l,substString:f}),t.setTag("flavor",s),t.setTag("permalink",p),n.regexAreaParser;var m=(0,c.Z)(n,u);t.setContext("redux.state",m)}var f=null,h=null;function p(){window.onerror=function(e,t,n,r,i){null==i?s.Z.error({message:e,url:t,line:n,column:r}):g(i)},window.onunhandledrejection=function(e){return g(e.reason,e.promise)}}function d(){return v.apply(this,arguments)}function v(){return(v=(0,r.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==h&&(h=n.e(530).then(n.bind(n,80215)).then((function(e){return window.onerror=null,window.onunhandledrejection=null,e.init({dsn:"https://5f9e813965e0433598973663dff85743@sentry.io/102476",release:"6.3.8",normalizeDepth:6,allowUrls:["regex101.com"]}),e}))),e.abrupt("return",h);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m.apply(this,arguments)}function m(){return m=(0,r.Z)(a().mark((function e(t){var n,r,i=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:null,e.prev=1,o.ZP.emit(o.P),s.Z.error(t),e.next=6,d();case 6:(r=e.sent).withScope((function(e){null!=f&&l(r,e,f.getState()),null!=n?(e.setExtra("unhandledPromiseRejection",!0),r.captureException(t,{originalException:n})):r.captureException(t)})),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),s.Z.error("Unable to submit error report",e.t0),window.onerror=null;case 14:case"end":return e.stop()}}),e,null,[[1,10]])}))),m.apply(this,arguments)}function y(e){f=e}},58317:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(15671),i=n(43144),a=n(31807),s=n.n(a),o=n(23765);const c=new(function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"get",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!s())return{};try{if(!window.localStorage||"function"!==typeof window.localStorage.getItem)throw new Error("localStorage not accessible or function `getItem` missing. Aborting.");var n=window.localStorage.getItem(e);return JSON.parse(n)||null}catch(e){if(o.Z.error(e),!t)throw e}}},{key:"save",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(s())try{if(!window.localStorage||"function"!==typeof window.localStorage.setItem)throw new Error("localStorage not accessible or function `setItem` missing. Aborting.");var r=JSON.stringify(t);window.localStorage.setItem(e,r)}catch(e){if(o.Z.error(e),!n)throw e}}},{key:"delete",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(s())try{if(!window.localStorage||"function"!==typeof window.localStorage.removeItem)throw new Error("localStorage not accessible or function `removeItem` missing. Aborting.");window.localStorage.removeItem(e)}catch(e){if(o.Z.error(e),!n)throw e}}}]),e}())},26915:(e,t,n)=>{"use strict";function r(e){if(e.status>=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}n.d(t,{Z:()=>r})},42623:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var r=(0,n(68692).Z)((function(e,t,n){var r=i(e),a=i(t),s=n/100;return"rgb(".concat((a.r-r.r)*s+r.r,", ").concat((a.g-r.g)*s+r.g,", ").concat((a.b-r.b)*s+r.b,")")}));function i(e){(e=e.trim()).length<7&&(e+=e.slice(1));var t=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(t)return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)};throw new Error("Invalid color '".concat(e,"'"))}},70872:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(23765);function i(e){var t=parseFloat(e),n=e.match(/m?s/);switch(n&&(n=n[0]),n){case"s":return 1e3*t;case"ms":return t;default:return r.Z.error(new Error("Unknown unit '".concat(n,"'"))),0}}},25968:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g,B3:()=>m,LG:()=>y,P:()=>x,AZ:()=>b,U0:()=>j,$7:()=>Z,Rd:()=>O,l2:()=>w,yM:()=>k,Fx:()=>C,ji:()=>E,fZ:()=>P,En:()=>S});var r=n(71002),i=n(42982),a=n(15671),s=n(43144),o=n(31807),c=n.n(o),u=n(23765),l=function(){function e(){(0,a.Z)(this,e),this._events={},this._maxListeners=10}return(0,s.Z)(e,[{key:"setMaxListeners",value:function(e){if("number"!==typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this}},{key:"emit",value:function(e){var t;this._events||(this._events={});var n=this._events[e];if(v(n))return!1;var r=new f;if(p(n))switch(arguments.length){case 1:n.call(this,r);break;case 2:n.call(this,r,arguments[1]);break;case 3:n.call(this,r,arguments[1],arguments[2]);break;default:t=[r].concat((0,i.Z)(Array.prototype.slice.call(arguments,1))),n.apply(this,t)}else if(d(n)){t=[r].concat((0,i.Z)(Array.prototype.slice.call(arguments,1)));for(var a=n.slice(),s=a.length-1;s>=0&&(a[s].apply(this,t),!r.hasStoppedPropagation);s--);}return!0}},{key:"addListener",value:function(e,t){if(c()){if(!p(t))throw TypeError("listener must be a function");return this._events[e]?d(this._events[e])?-1!==this._events[e].indexOf(t)?u.Z.error(new Error("Listener for ".concat(e," added multiple times. Name: '").concat(t.name,"'"))):this._events[e].push(t):this._events[e]===t?u.Z.error(new Error("Listener for ".concat(e," already added. Name: '").concat(t.name,"'"))):this._events[e]=[this._events[e],t]:this._events[e]=t,d(this._events[e])&&!this._events[e].warned&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,u.Z.error(new Error("Possible EventEmitter memory leak detected. ".concat(this._events[e].length," listeners added. Use setMaxListeners() to increase limit.")))),this}}},{key:"on",value:function(e){if(h(e))return this.addListener.apply(this,arguments);for(var t in e)e.hasOwnProperty(t)&&this.addListener.call(this,t,e[t]);return this}},{key:"once",value:function(e,t){if(!p(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this}},{key:"removeListener",value:function(e,t){if(!p(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;var n=this._events[e];if(n===t||p(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(d(n)){for(var r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this}},{key:"off",value:function(e){if(h(e))return this.removeListener.apply(this,arguments);for(var t in e)e.hasOwnProperty(t)&&this.removeListener(t,e[t]);return this}},{key:"removeAllListeners",value:function(e){if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(var t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}var n=this._events[e];if(p(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this}},{key:"listeners",value:function(e){return this._events&&this._events[e]?p(this._events[e])?[this._events[e]]:this._events[e].slice():[]}},{key:"listenerCount",value:function(e){if(this._events){var t=this._events[e];if(p(t))return 1;if(t)return t.length}return 0}}]),e}(),f=function(){function e(){(0,a.Z)(this,e),this.hasStoppedPropagation=!1}return(0,s.Z)(e,[{key:"stopPropagation",value:function(){this.hasStoppedPropagation=!0}}]),e}();function h(e){return"string"===typeof e}function p(e){return"function"===typeof e}function d(e){return"object"===(0,r.Z)(e)&&null!==e}function v(e){return void 0===e}const g=new l;var m="disable:shortcut",y="enable:shortcut",x="flush:state",b="testarea:hideCanvas",j="testarea:showCanvas",Z="testarea:resize",O="closeLeftSidebar",w="set:substString",k="testlist:open",C="testlist:close",E="matchGroup:click",P="quickref:loadExample",S="loading:finish"},39781:(e,t,n)=>{"use strict";n.d(t,{G:()=>a,m:()=>s});var r=n(81370),i=n.n(r),a=function(e){return e===i().PCRE||e===i().PCRE2},s=function(e){switch(e){case i().JAVA:return["\\r\\n","\\n","\\r","\\u2028","\\u2029","\\u0085"];case i().PCRE2:case i().PYTHON:case i().GOLANG:case i().PCRE:return["\\n"];case i().JAVASCRIPT:return["\\n","\\r","\\u2028","\\u2029"];default:throw new Error("Unknown line terminator for ".concat(e))}}},99237:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,n:()=>s});var r=n(68692),i=n(34595),a=(0,r.Z)((function(e){return getComputedStyle(document.documentElement).getPropertyValue(e)})),s=function(e,t,n){return a(n?"--match-highlight-color":"--match-group-".concat((e-1)%i.GROUP_COUNT+1).concat(t?"-alt":""))}},49581:(e,t,n)=>{"use strict";n.d(t,{Sf:()=>s.Z,vI:()=>i,$5:()=>o.Z,DB:()=>c,OL:()=>f,aL:()=>O.ZP,kF:()=>v,pD:()=>Z,YX:()=>j,Sj:()=>a.Z});var r=n(67294);const i=function(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)((function(){var t;return n.current?t=e():n.current=!0,function(){var e;return null===(e=t)||void 0===e?void 0:e()}}),t),(0,r.useEffect)((function(){return function(){return n.current=!1}}),[])};var a=n(82935),s=n(90375),o=n(58830);const c=function(e,t){(0,r.useRef)(!1),(0,r.useLayoutEffect)(e,t)};var u=n(19272),l=n(96974);const f=function(){var e=(0,l.TH)();(0,r.useEffect)((function(){var t;t=e.pathname,(0,u.set)({page:t}),(0,u.pageview)(t)}),[e.pathname])};var h=n(93942),p=n(14850),d=n(34595);const v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.DEFAULT_META_DESCRIPTION,n=(0,h.I0)(),i=(0,l.TH)();(0,r.useEffect)((function(){var r;document.title="regex101: ".concat(e||d.DEFAULT_PAGE_TITLE),null===(r=document.querySelector('meta[name="description"]'))||void 0===r||r.setAttribute("content",t),n((0,p.Dk)(e)),n((0,p.Ub)(t))}),[e,t,n,i])};var g=n(70885),m=n(42623),y=n(99237),x=n(9599),b=n(7551);const j=function(){var e=(0,h.I0)(),t=(0,h.v9)((function(e){return e.general.currentTheme})),n=(0,h.v9)((function(e){return e.settings.theme})),i=(0,r.useState)(t),a=(0,g.Z)(i,2),s=a[0],o=a[1];(0,r.useEffect)((function(){return o(t)}),[t]),(0,r.useEffect)((function(){var e,t,r,i=function(e){if(n===b.B7){var t=e.matches?b.Py:b.rp;o(t)}};return null===(e=window)||void 0===e||null===(t=e.matchMedia("(prefers-color-scheme: dark)"))||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"change",i),function(){var e,t,n;return null===(e=window)||void 0===e||null===(t=e.matchMedia("(prefers-color-scheme: dark)"))||void 0===t||null===(n=t.removeEventListener)||void 0===n?void 0:n.call(t,"change",i)}}),[n,e]),(0,r.useEffect)((function(){var t;document.documentElement.setAttribute("data-theme",s),(t=document.querySelector("meta[name=theme-color]"))&&t.setAttribute("content",(0,y.R)("--primary-color")),y.R.clear(),m.C.clear(),e((0,x.Z)(s))}),[e,s])},Z=function(){var e=(0,l.UO)().permalinkFragment,t=(0,h.v9)((function(e){return e.general.permalinkFragment}));(0,r.useEffect)((function(){null==t&&null!=e&&window.location.reload()}),[e,t])};var O=n(84665)},90375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(67294),i=n(91296),a=n.n(i);const s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flush",i=(0,r.useCallback)(a()((function(){return e.apply(void 0,arguments)}),t),[t]);return(0,r.useEffect)((function(){return function(){switch(n){case"flush":return i.flush();case"cancel":return i.cancel();default:throw new Error("Unknown cleanup '".concat(n,"'"))}}}),[i,n]),i}},58830:(e,t,n)=>{"use strict";n.d(t,{U:()=>u,Z:()=>l});var r=n(70885),i=n(67294),a=n(93942),s=n(31807),o=n.n(s),c=n(23765),u=(0,i.createContext)({promises:[],resolvedData:{},redirect:{},addPromise:function(){},setResolvedData:function(){},getResolvedData:function(){},setRedirectTo:function(){},SSR:!1});const l=function(e){var t=(0,i.useRef)(null),n=(0,a.I0)(),s=(0,i.useContext)(u),l=s.getResolvedData(e),f=(0,i.useState)(l||{loading:!1,error:null}),h=(0,r.Z)(f,2),p=h[0],d=h[1],v=(0,i.useCallback)((function(r){var i,a,u;null==l&&(d({loading:!0,error:null}),null===(i=t.current)||void 0===i||null===(a=i.cancel)||void 0===a||a.call(i),t.current=n(r).then((function(){t.current=null;var n={loading:!1,error:null};s.setResolvedData(e,n),d(n)})).catch((function(t){if(o()&&t.code===DOMException.ABORT_ERR)c.Z.warn("Data fetch for '".concat(e,"' aborted because the parent has unmounted")),s.setResolvedData(e,{loading:!1,error:null});else{var n={loading:!1,error:t};s.setResolvedData(e,n),d(n)}})),o()&&null==(null===(u=t.current)||void 0===u?void 0:u.cancel)&&c.Z.error("Fetch '".concat(e,"' has no cancel")),s.addPromise(t.current))}),[n,s,e,l]);return(0,i.useEffect)((function(){return function(){var e,n;null===(e=t.current)||void 0===e||null===(n=e.cancel)||void 0===n||n.call(e),t.current=null}}),[]),[p.loading,p.error,v]}},84665:(e,t,n)=>{"use strict";n.d(t,{yg:()=>y,W5:()=>x,ZP:()=>b});var r,i,a,s,o,c,u,l=n(4942),f=n(67294),h=n(93942),p=n(31807),d=n.n(p),v=n(25968),g=n(49061),m=n(12037),y=d()&&(null!==(r=navigator)&&void 0!==r&&null!==(i=r.userAgentData)&&void 0!==i&&null!==(a=i.platform)&&void 0!==a&&null!==(s=a.toLowerCase())&&void 0!==s&&s.includes("mac")||null!==(o=navigator)&&void 0!==o&&null!==(c=o.userAgent)&&void 0!==c&&null!==(u=c.toLowerCase())&&void 0!==u&&u.includes("mac"))?g.v:g.B,x=function(e){return"".concat(y===g.B?"Ctrl":"\u2318","+").concat(e)};const b=function(){var e=(0,h.v9)((function(e){return e.settings.disableKeyboardShortcuts})),t=(0,f.useRef)([]),n=(0,f.useCallback)((function(e){var n,r,i,a,s,o,c=e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||"input"===(null===(n=e.target)||void 0===n||null===(r=n.tagName)||void 0===r?void 0:r.toLowerCase())||"textarea"===(null===(i=e.target)||void 0===i||null===(a=i.tagName)||void 0===a?void 0:a.toLowerCase())||(null===(s=e.target)||void 0===s||null===(o=s.className)||void 0===o?void 0:o.includes("CodeMirror"));for(var u in m)if(Object.prototype.hasOwnProperty.call(m,u)){var l=m[u],f=!!l.metaKey===!!(y===g.v?e.metaKey:e.ctrlKey),h=!!l.altKey===!!e.altKey,p=!!l.shiftKey===!!e.shiftKey,d=l.overrideInput||!c;if((!e.key&&l.keyCode.includes(e.which)||e.key&&l.key.toLowerCase()===e.key.toLowerCase())&&f&&h&&p&&d&&!t.current.includes(l.name)){var x="key:".concat(l.name);(v.ZP.listeners(x).length>0||l.alwaysConsume)&&(e.preventDefault(),e.stopPropagation(),v.ZP.emit(x))}}}),[]);(0,f.useEffect)((function(){var r,i=function(e,n){t.current=t.current.filter((function(e){return e!==n.name}))},a=function(e,n){return t.current.push(n.name)};return e||(document.addEventListener("keydown",n),v.ZP.on((r={},(0,l.Z)(r,v.LG,i),(0,l.Z)(r,v.B3,a),r))),function(){var e;document.removeEventListener("keydown",n),v.ZP.off((e={},(0,l.Z)(e,v.LG,i),(0,l.Z)(e,v.B3,a),e))}}),[e,n])}},82935:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(70885),i=n(67294),a=n(31807),s=n.n(a);const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=(0,i.useState)({width:s()?window.innerWidth:1920,height:s()?window.innerHeight:1080}),o=(0,r.Z)(a,2),c=o[0],u=o[1];return(0,i.useEffect)((function(){var e,n=c.width;return window.addEventListener("resize",e=function(){for(var e=s()?window.innerWidth:1920,r=s()?window.innerHeight:1080,i=0,a=t.length;i<a;i++){var o=t[i];if(e<o&&o<n||e>=o&&n<=o){u({width:e,height:r}),n=e;break}}},{passive:!0}),function(){window.removeEventListener("resize",e,{passive:!0})}}),[c.width,t]),c}},23765:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2043);const i=n.n(r)()},44466:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var r=function(e){return e.toString().replace(/\B(?=(?:.{3})+$)/g,"\u2009")}},68692:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=e.length,n=function n(){var r=arguments,i=n.cache;if(t<2){var a=r[0];if(i[a])return i[a]}else for(var s=0,o=i[0].length;s<o;s++){for(var c=!1,u=0;u<t;u++){var l=i[0][s][u];if(!(c=l===r[u]))break}if(c)return i[1][s]}var f=e.apply(this,arguments);if(t<2){var h=r[0];i[h]=f}else{var p=[];i[0].push(p),i[1].push(f);for(var d=0,v=r.length;d<v;d++)p[d]=r[d]}return f};return n.clear=function(){n.cache=t<2?Object.create(null):[[],[]]},n.clear(),n}},53808:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,a:()=>s});var r=n(71002),i={};const a=function(e){var t=arguments,n=i[e]||e;return n.replace(/#?{[1-9]\d*}/g,(function(n){if("#"===n.charAt(0))return n.slice(1);var i=parseInt(n.slice(1,-1),10);if(null==t[i])throw new Error("Placeholder '".concat(i,"' referencing invalid argument: '").concat(e,"'"));if("string"!==typeof t[i]&&"number"!==typeof t[i])throw new Error("Placeholder '".concat(i,"' is not a string: '").concat((0,r.Z)(t[i]),"'"));return t[i]}))};function s(e){i=e}},60370:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t="string"===typeof e?e.split(""):e;return t.filter((function(e,n){return t.indexOf(e)===n}))}},82771:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(15671),i=n(43144),a=n(11752),s=n(60136),o=n(82963),c=n(61120),u=n(81370),l=n.n(u);function f(){return new Worker(n.p+"golang.worker.3a4f597b0f29de84dd21.js")}function h(){return new Worker(n.p+"pcre2.worker.fd9366b4957568e05a11.js")}function p(){return new Worker(n.p+"pcre.worker.f47a9973cf3fe7308d7d.js")}function d(){return new Worker(n.p+"javascript.worker.7ea214f9901a49cde2dc.js")}function v(){return new Worker(n.p+"java.worker.844898d846087775e7d5.js")}var g=n(4942),m=n(26681),y=n(32774),x=n(1277);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,g.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z={regex:null,flags:null,data:{}};function O(e){if(null!=Z.regex&&null!=Z.flags&&Z.regex===e.regex&&Z.flags===e.flags)return j(j({},e),{},{regex:Z.cachedRegex,flags:Z.cachedFlags,options:j(j({},e.options),{},{bumpalong:!0})});for(var t,n=m.Z.tokens,r="",i=0,a=n.length;i<a;i++){var s=n[i],o=s.type;r+=w(s.string,o,s.state.inCharClass)}var c=n[0].state.flags;t=-1!==c.indexOf("a")?c.replace(/[au]/g,"")+"P":c.replace(/a/g,"")+"u";var u=j(j({},e),{},{regex:r,flags:t,options:j(j({},e.options),{},{bumpalong:!0})});return Z={regex:e.regex,flags:e.flags,cachedRegex:r,cachedFlags:t},u}function w(e,t,n){return t===x.MW&&"\\Z"===e?"\\z":t===x.MW&&"\\v"===e?"\\x{0B}":t===x.Wj&&"{,"===e.slice(0,2)?"{0,"+e.slice(2):t===x.Yb&&"\\u"===e.slice(0,2).toLowerCase()?"\\x{"+e.slice(2)+"}":t===x.t0&&y.i.test(e)?e.slice(1):n&&t===x.zl&&-1!==".=:".indexOf(e)?"\\"+e:t===x.RW?e.replace(/[au]/g,""):t===x.MW&&"\\v"===e?"\\x0B":e}const k=function(e){(0,s.Z)(g,e);var t,n,u=(t=g,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,c.Z)(t);if(n){var i=(0,c.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,o.Z)(this,e)});function g(){return(0,r.Z)(this,g),u.apply(this,arguments)}return(0,i.Z)(g,[{key:"getWorker",value:function(e){switch(e){case l().PCRE2:return h;case l().PCRE:case l().PYTHON:return p;case l().JAVASCRIPT:return d;case l().GOLANG:return f;case l().JAVA:return v;default:throw new Error("No worker file exists for flavor '".concat(e,"'"))}}},{key:"runMatch",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s={regex:e,flags:t,testString:n,options:{isDebugging:!!r.debugging,calculateSteps:!!r.calculateRegexSteps}};return r.flavor===l().PYTHON&&(s=O(s)),(0,a.Z)((0,c.Z)(g.prototype),"runWorker",this).call(this,s,r,i)}}]),g}(n(54292).Z)},54292:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(15861),i=n(15671),a=n(43144),s=n(87757),o=n.n(s),c=n(34768),u=n(34595),l=n(81370),f=n.n(l),h=n(23765);const p=function(){function e(){(0,i.Z)(this,e),this._worker=null,this._timeout=null,this._currentFlavor=null,this._runTimeout=null,this._recentReset=!1}var t,n;return(0,a.Z)(e,[{key:"getWorker",value:function(){throw new Error("Method not implemented")}},{key:"runWorker",value:function(e,t,n){var r=this;this.isRunning()&&(this._recentReset=!0,this.resetWorker()),clearTimeout(this._runTimeout),this._runTimeout=setTimeout((function(){r._recentReset=!1,r._runWorker(e,t,n)}),this._recentReset?u.UPDATE_RESULT_DELAY:1)}},{key:"_runWorker",value:(n=(0,r.Z)(o().mark((function e(t){var n,r,i=this,a=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:{},r=a.length>2?a[2]:void 0,n.maxExecutionTime||(n.maxExecutionTime=2e3),n.flavor||(n.flavor=f().PCRE2),n.flavor!==this._currentFlavor&&(this._currentFlavor=n.flavor,this.resetWorker()),this._worker){e.next=19;break}return e.prev=6,e.next=9,this._createWorker();case 9:this._worker.callback=r,this._worker.onmessage=function(e){clearTimeout(i._timeout),i._timeout=null,i._worker.callback(e.data,e.data.error||null)},this._worker.onerror=function(e){e.preventDefault(),h.Z.warn("Web worker encountered an unhandled error:",e.filename,"Line:",e.lineno,"Col:",e.colno,"Msg:",e.message),(i._worker.callback||r)(null,c.Y8)},e.next=19;break;case 14:return e.prev=14,e.t0=e.catch(6),h.Z.error(e.t0),r(null,c.Y8),e.abrupt("return");case 19:this._worker&&(this._worker.callback=r),this._timeout=setTimeout((function(){i._worker.callback(null,c.ik),i.resetWorker()}),n.maxExecutionTime),this._worker.postMessage(t);case 22:case"end":return e.stop()}}),e,this,[[6,14]])}))),function(e){return n.apply(this,arguments)})},{key:"isRunning",value:function(){return null!=this._timeout}},{key:"resetWorker",value:function(){clearTimeout(this._runTimeout),clearTimeout(this._timeout),this._timeout=null,this._runTimeout=null,this._worker&&(this._worker.callback=function(){},this._worker.terminate(),this._worker=null)}},{key:"_createWorker",value:(t=(0,r.Z)(o().mark((function e(){var t=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._timeout),this._timeout=null,e.abrupt("return",new Promise((function(e,n){var r=t.getWorker(t._currentFlavor);t._worker=new r,t._timeout=setTimeout((function(){return t.resetWorker(),n(new Error("Unable to load worker, timeout after 10s"))}),1e4),t._worker.onmessage=function(n){"onload"===n.data&&(clearTimeout(t._timeout),e())},t._worker.onerror=function(e){e.stopPropagation(),e.preventDefault(),n(e)}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}()},70812:(e,t,n)=>{"use strict";n.d(t,{P:()=>uh});var r={};n.r(r),n.d(r,{account:()=>ce,general:()=>te,libraryEntry:()=>me,quiz:()=>Ze,regexAreaParser:()=>Ce,regexEditor:()=>R,regexLibrary:()=>pe,rightSidebar:()=>w,settings:()=>L,unitTests:()=>W});var i=n(15861),a=n(87757),s=n.n(a),o=n(73935),c=n(4942),u=n(26915);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const h=function(){var e=window.fetch;window.fetch=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new AbortController,i=r.signal,a=r.abort.bind(r),s=e(t,f({signal:i},n));return o(s).then(u.Z);function o(e){if(e instanceof Promise){var t=e;t.then=function(e,t){return o(Object.getPrototypeOf(this).then.call(this,e,t))},t.cancel=a}return e}}};var p=n(23765),d=n(14890),v=n(53894),g=n(42982),m="EXPLANATION",y="MATCH_INFO",x="QUICKREF",b=n(34963);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O={activeSubsection:m,visibleSections:[m,y,x],hiddenSections:[],width:null};const w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case b.CJ:return Z(Z({},e),{},{width:t.value});case b.ro:var n=t.value.subsection,r=e.visibleSections.includes(n);return Z(Z({},e),{},r?{visibleSections:e.visibleSections.filter((function(e){return e!==n})),hiddenSections:[].concat((0,g.Z)(e.hiddenSections),[n])}:{visibleSections:[].concat((0,g.Z)(e.visibleSections),[n]),hiddenSections:e.hiddenSections.filter((function(e){return e!==n}))});case b.WV:return Z(Z({},e),{},{activeSubsection:t.value});case b.tc:return Z(Z({},e),{},{activeSubsection:m});default:return e}};var k=n(81370),C=n.n(k),E=n(78850),P=n.n(E);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N={flavor:k.PCRE2,delimiter:"/",flags:"gm",regex:"",testString:"",matchResult:[],error:null,substString:"",listSubstString:"",hasUnsavedData:!1,regexVersions:0,showMatchArea:!0,showSubstitutionArea:!1,showUnitTestArea:!1,showListSubstitutionArea:!1};function R(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(n.type){case b.r$:return _(_({},t),{},{listSubstString:n.value});case b.R8:return _(_({},t),{},{showMatchArea:!1,showSubstitutionArea:!1,showUnitTestArea:!1,showListSubstitutionArea:!0,hasUnsavedData:!!t.regex});case b.YW:return _(_({},t),{},{showMatchArea:!1,showSubstitutionArea:!1,showUnitTestArea:!0,showListSubstitutionArea:!1});case b.T_:return _(_({},t),{},{showMatchArea:!1,showSubstitutionArea:!0,showUnitTestArea:!1,showListSubstitutionArea:!1,hasUnsavedData:!!t.regex});case b.RS:return _(_({},t),{},{showMatchArea:!0,showSubstitutionArea:!1,showUnitTestArea:!1,showListSubstitutionArea:!1});case b.hl:return _(_({},t),{},{flavor:n.value,hasUnsavedData:!0});case b.DA:return _(_({},t),{},{flags:n.value,hasUnsavedData:!0});case b.Sr:return _(_({},t),{},{delimiter:n.value,hasUnsavedData:!0});case b.KE:var r=n.value;return 0!==r.length||0!==t.matchResult.length&&0===r.length?_(_({},t),{},{matchResult:r}):t;case b.u8:return _(_({},t),{},{substString:n.value,hasUnsavedData:n.value!==t.substString||t.hasUnsavedData});case b.a0:return _(_({},t),{},{regex:n.value,hasUnsavedData:n.value!==t.regex||t.hasUnsavedData});case b.Cy:return _(_({},t),{},{testString:n.value,hasUnsavedData:n.value!==t.testString||t.hasUnsavedData});case b.Nl:return _(_({},t),{},{error:n.value});case b.lA:case b.rT:case b.LM:case b.mo:return _(_({},t),{},{hasUnsavedData:!0});case b.nU:return _(_({},t),{},{hasUnsavedData:!n.value.permalinkFragment});case b.sk:var i=t.flavor||k.PCRE2;""===t.regex&&t.flavor===k.PCRE2&&null!==(e=n.value.settings)&&void 0!==e&&e.defaultFlavor&&(i=n.value.settings.defaultFlavor);var a=t.delimiter;return-1===P()[i].indexOf(a)&&(a=P()[i][0]),_(_({},t),{},{flavor:i,delimiter:a,hasUnsavedData:!1});case b.r0:return _(_({},t),{},{regexVersions:n.value});default:return t}}var T=n(7551);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={maxExecutionTime:2e3,theme:T.B7,nonParticipatingGroups:!1,displayWhitespace:!0,colorizeSyntax:!0,autoComplete:!1,wrapLines:!0,testAreaLineNumbers:!1,regexAreaLineNumbers:!1,language:"ENGLISH",storageSaved:null,storageLoaded:null,editorTooltips:!0,alwaysCollapseLeftSidebar:!1,alwaysCollapseRightSidebar:!1,defaultFlavor:k.PCRE2,showWarningUnsavedProgress:!0,defaultCodeGenLanguage:"",calculateRegexSteps:!0,defaultTabBehavior:!0,disableKeyboardShortcuts:!1};const L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case b.jo:return D(D({},e),t.value);case b.sk:return D(D({},e),{},{storageLoaded:(new Date).getTime()});case b.fB:return D(D({},e),{},{storageSaved:(new Date).getTime()});default:return e}};var M=n(71002),B=n(45987),U="PASS",F="FAIL",G="ALL";function V(e){var t=function(e,t){if("object"!==(0,M.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==(0,M.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,M.Z)(t)?t:String(t)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z={tests:[],testResults:{},testsRunning:!1,testFilter:G};const W=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(n.type){case b.lA:return H(H({},t),{},{tests:[].concat((0,g.Z)(t.tests),[H(H({},n.value),{},{key:Math.random().toString(36).slice(2)})])});case b.rT:var r=t.tests[n.value].key,i=t.testResults,a=(i[r],(0,B.Z)(i,[r].map(V)));return H(H({},t),{},{tests:[].concat((0,g.Z)(t.tests.slice(0,n.value)),(0,g.Z)(t.tests.slice(n.value+1))),testResults:a});case b.LM:var s=n.value,o=s.testKey,u=s.test,l=t.tests.findIndex((function(e){return e.key===o}));return null==l?(p.Z.warn("Tried to update unit test with ".concat(o," but could not find it")),t):H(H({},t),{},{tests:[].concat((0,g.Z)(t.tests.slice(0,l)),[H(H({},t.tests[l]),u)],(0,g.Z)(t.tests.slice(l+1)))});case b.mo:var f=n.value.oldIndex,h=n.value.newIndex;return(e=t.tests.slice()).splice(h,0,e.splice(f,1)[0]),H(H({},t),{},{tests:e});case b.p2:return H(H({},t),{},{testsRunning:!0});case b.lZ:return H(H({},t),{},{testsRunning:!1});case b.ES:var d=n.value,v=d.testKey,m=d.error,y=d.steps,x=d.time;return H(H({},t),{},{testResults:H(H({},t.testResults),{},(0,c.Z)({},v,{error:m,hasError:!!m,steps:y||null,time:x}))});case b.Jb:return H(H({},t),{},{testFilter:n.value});default:return t}};var Y=n(9599);function K(e){var t=e.getState().settings.theme;t===T.B7?e.dispatch((0,Y.Z)(J())):e.dispatch((0,Y.Z)(t))}function J(){var e,t,n;return null!==(e=window)&&void 0!==e&&null!==(t=e.matchMedia)&&void 0!==t&&null!==(n=t.call(e,"(prefers-color-scheme: dark)"))&&void 0!==n&&n.matches?T.Py:T.rp}var X=n(34595);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee={permalinkFragment:null,version:null,deleteCode:null,userId:null,email:null,profilePicture:null,serviceProvider:null,isFavorite:!1,isLibraryEntry:!1,title:null,documentTitle:X.DEFAULT_PAGE_TITLE,metaDescription:X.DEFAULT_META_DESCRIPTION,tags:[],cookie:"",sponsorData:null,currentTheme:T.B7,permalinkIsEditable:!0,isOwner:!1};const te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case b._:return $($({},e),{},{permalinkIsEditable:t.value});case b.jo:return $($({},e),{},{currentTheme:t.value.theme===T.B7?J():t.value.theme});case b.yM:return $($({},e),{},{currentTheme:t.value});case b.qI:return $($({},e),{},{sponsorData:t.value||null});case b.nU:var n=t.value,r=n.permalinkFragment,i=n.version,a=n.deleteCode,s=void 0===a?e.deleteCode:a,o=n.isLibraryEntry,c=void 0===o?e.isLibraryEntry:o,u=n.title,l=void 0===u?e.title:u,f=n.tags,h=void 0===f?e.tags:f,p=n.isOwner,d=void 0===p?e.isOwner:p;return $($({},e),{},{error:null,isFavorite:r===e.permalinkFragment&&e.isFavorite,permalinkFragment:r,version:i,deleteCode:s,isLibraryEntry:c||r===e.permalinkFragment&&e.isLibraryEntry,title:l,tags:h,isOwner:d,permalinkIsEditable:!0});case b.RT:var v=t.value,g=v.userId,m=v.email,y=v.profilePicture,x=v.serviceProvider;return $($({},e),{},{userId:g,email:m,profilePicture:y,serviceProvider:x});case b.yF:return $($({},e),{},{isFavorite:t.value});case b.th:return $($({},e),{},{cookie:t.value});case b.yB:return $($({},e),{},{deleteCode:t.value});case b.se:return $($({},e),{},{title:t.value});case b.CN:return $($({},e),{},{tags:t.value});case b.ol:return $($({},e),{},{documentTitle:t.value});case b.lK:return $($({},e),{},{metaDescription:t.value});default:return e}};var ne=n(60370),re=["itemIndex"];function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var se={data:[],pages:0,allTags:[],staleData:!0};function oe(e,t,n){return{data:[].concat((0,g.Z)(e.data.slice(0,t)),[n],(0,g.Z)(e.data.slice(t+1)))}}const ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case b.sH:return ae(ae({},e),t.value);case b.Ht:var n=t.value,r=n.itemIndex,i=(0,B.Z)(n,re),a=ae(ae({},e.data[r]),i);return ae(ae({},e),oe(e,r,a));case b.Xm:var s=t.value,o=s.itemIndex,c=s.tags,u=ae(ae({},e.data[o]),{},{tags:(0,g.Z)(c)}),l=(0,ne.Z)(e.allTags.concat(c));return ae(ae(ae({},e),oe(e,o,u)),{},{allTags:l});case b.go:return se;default:return e}};function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fe={libraryData:[],pages:0,details:null};function he(e,t){var n=e.userVote>0?e.upvotes-1:e.upvotes,r=e.userVote<0?e.downvotes-1:e.downvotes;return t>0?n++:t<0&&r++,le(le({},e),{},{userVote:t,upvotes:n,downvotes:r})}const pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case b.b9:var n=t.value,r=n.libraryData,i=n.pages;return le(le({},e),{},{libraryData:r,pages:i});case b.BS:var a=t.value,s=a.vote,o=a.permalinkFragment,c=e.libraryData.findIndex((function(e){return e.permalinkFragment===o}));return-1===c||null==e.libraryData[c]?e:le(le({},e),{},{libraryData:[].concat((0,g.Z)(e.libraryData.slice(0,c)),[he(e.libraryData[c],s)],(0,g.Z)(e.libraryData.slice(c+1)))});case b.mX:return le(le({},e),{},{details:t.value});default:return e}};function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge={title:null,description:null,author:null};const me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.type===b.DE){var n=t.value,r=n.title,i=n.description,a=n.author;return ve(ve({},e),{},{title:r,description:i,author:a})}return e};var ye=["taskIdx"];function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je={allTasks:[]};const Ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:je,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case b.te:return be(be({},e),{},{allTasks:t.value.reduce((function(t,n,r){return e.allTasks[r]?[].concat((0,g.Z)(t),[be(be({},e.allTasks[r]),n)]):[].concat((0,g.Z)(t),[n])}),[])});case b.nA:var n=t.value,r=n.errorMessage,i=n.testNumber,a=n.totalTests;return be(be({},e),{},{allTasks:[].concat((0,g.Z)(e.allTasks.slice(0,t.value.taskNumber)),[be(be({},e.allTasks[t.value.taskNumber]),{},{errorMessage:r,failingTestNumber:i,totalTests:a})],(0,g.Z)(e.allTasks.slice(t.value.taskNumber+1)))});case b.Sb:var s=t.value,o=s.taskNumber,c=s.successMessage;return be(be({},e),{},{allTasks:[].concat((0,g.Z)(e.allTasks.slice(0,o)),[be(be({},e.allTasks[o]),{},{successMessage:c,errorMessage:null,hasSolved:!0})],(0,g.Z)(e.allTasks.slice(o+1)))});case b.F:var u=t.value,l=u.taskIdx,f=(0,B.Z)(u,ye);return be(be({},e),{},{allTasks:[].concat((0,g.Z)(e.allTasks.slice(0,l)),[be(be({},e.allTasks[l]),{},{latest:be(be({},e.allTasks[l].latest),f)})],(0,g.Z)(e.allTasks.slice(l+1)))});case b.$Z:var h=t.value,p=h.taskIdx,d=h.stats;return be(be({},e),{},{allTasks:[].concat((0,g.Z)(e.allTasks.slice(0,p)),[be(be({},e.allTasks[p]),{},{stats:d})],(0,g.Z)(e.allTasks.slice(p+1)))});default:return e}};function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke={tokens:[],subpatterns:[],captureGroupMap:{},captureGroupCount:0,status:null,definedSubpatterns:[]};const Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.type===b.NJ?we(we({},e),t.value):e};var Ee=n(14850);const Pe=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n};var Se=n(58317),_e=n(31807),Ne=n.n(_e),Re=function(e,t){return Te(e,t)};function Te(){for(var e=function(e){return e&&"object"===(0,M.Z)(e)},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return Object.keys(n).forEach((function(r){var i=t[r],a=n[r];Array.isArray(a)?t[r]=a:e(i)&&e(a)?t[r]=Te(i,a):t[r]=a})),t}),{})}var Ae,De=(Ae={},(0,c.Z)(Ae,b.rx,{reducersToSave:["settings","rightSidebar"],key:X.STATE_STORAGE_KEY}),(0,c.Z)(Ae,b.xw,{reducersToSave:["regexEditor"],key:X.STATE_TEMP_REGEX_EDITOR_KEY}),Ae);var Ie=n(2043),Le=n.n(Ie),Me=n(19272);function Be(){(0,Me.initialize)("UA-33878479-1")}var Ue=n(76493),Fe=n.n(Ue);function Ge(){var e=/test/,t=void 0!==e.unicode,n=void 0!==e.dotAll,r=void 0!==e.sticky,i=void 0!==e.hasIndices;try{"aaa".match(new RegExp("^a","gy")).length>1&&(r=!1,p.Z.warn("Sticky flag for JS has been disabled as behavior in this browser is non-standard"))}catch(e){p.Z.warn("Unable to test for sticky flag, continuing...")}Fe().extendFlags(C().JAVASCRIPT,(r?"y":"")+(t?"u":"")+(n?"s":"")+(i?"d":""))}var Ve=n(11357);function qe(){try{new RegExp("(?<=test)regex").test("testregex")&&(0,Ve.wx)()}catch(e){p.Z.warn("This browser does not have lookbehind support for the javascript flavor")}}function He(){try{new RegExp("(?<name>test)").test("test")&&(0,Ve.fg)()}catch(e){p.Z.warn("This browser does not have named group support for the javascript flavor")}}var ze=n(94500);function We(e){var t=e.getState().general.permalinkFragment;if(t){var n=(0,ze.$Z)(t);n&&e.dispatch((0,Ee.Ky)(n))}}function Ye(){"serviceWorker"in navigator&&null!=navigator.serviceWorker.getRegistrations&&(navigator.serviceWorker.getRegistrations().then((function(e){return Promise.all(e.map((function(e){var t;return"https://regex101.com/static/sw.js"===(null===e||void 0===e||null===(t=e.active)||void 0===t?void 0:t.scriptURL)?e.unregister():null}))).catch((function(){}))})).catch((function(){})),setTimeout((function(){navigator.serviceWorker.register("/sw.js").catch((function(e){return p.Z.error("Unable to initialize service worker",e)}))}),2e3))}var Ke=n(14144),Je=n.n(Ke);function Xe(e){var t=Se.Z.get("regex101-sponsor"),n=!Array.isArray(t)&&t||null;if(n){var r=(new Date).toDateString();Object.keys(n).forEach((function(e){var t=n[e];new Date(t.lastSeen).toDateString()!==r&&(t.lastSeen=new Date,t.todayCount=0)}))}var i="https://srv.buysellads.com/ads/CESIEKJM.json"+(n?"?freqcap="+Object.keys(n).map((function(e){var t=n[e],r=t.allTimeCount,i=t.todayCount;return"".concat(e,":").concat(i,",").concat(r)})).join(";"):"");Je()(i).then((function(e){return e.json()})).then((function(t){t&&t.ads&&Array.isArray(t.ads)&&e.dispatch((0,Ee.IU)(n,t.ads.find((function(e){return!(null===e||void 0===e||!e.statlink)}))))})).catch((function(t){Le().error("Unable to load sponsor data",t),e.dispatch({type:b.qI,value:{adBlock:!0}})}))}function Qe(e){return $e.apply(this,arguments)}function $e(){return($e=(0,i.Z)(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==(n=t.getState().settings.language)||"ENGLISH"===n){e.next=4;break}return e.next=4,t.dispatch((0,Ee.BF)(n,!1));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function et(){try{new RegExp("\\p{Letter}","u").test("test")&&(0,Ve.IP)()}catch(e){p.Z.warn("This browser does not have named group support for the javascript flavor")}}function tt(){document.body.addEventListener("mousedown",(function(){document.body.classList.remove("using-keyboard")})),document.body.addEventListener("keydown",(function(e){"Tab"!==e.key&&9!==e.which&&9!==e.keyCode||document.body.classList.add("using-keyboard")}))}function nt(){Se.Z.delete(X.STATE_TEMP_REGEX_EDITOR_KEY)}const rt=function(){var e;Le().setDefaultLevel("info"),p.Z.info("App initialized - version %s","6.3.8"),window.regex101=window.regex101||{};try{e=JSON.parse(decodeURIComponent(window.__INITIAL_STATE__)),p.Z.info("Loaded initial state")}catch(e){return void p.Z.error(new Error("Unable to parse initial state from server"),{state:window.__INITIAL_STATE__})}var t=[Be,Ge,qe,He,et,We,Ye,Xe,Qe,K,tt,nt],n=function(e){var t=function(e){return function(t,n){return e(n.type===b.sk?Re(t,n.value):t,n)}}((0,d.UY)(r)),n=function(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){var a=t(i),s=e[i.type];if(!s)return a;var o=Pe(r(),s.reducersToSave);return Se.Z.save(s.key,o),n((0,Ee.UF)()),a}}}}(De),i="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||d.qC,a=(0,d.MT)(t,e,i((0,d.md)(v.Z,n)));return function(e,t){Ne()&&Object.values(e).forEach((function(e){var n=Se.Z.get(e.key)||{};t.dispatch((0,Ee.dM)(n))}))}(De,a),p.Z.info("Store configured"),a}(e);return Promise.all(t.map((function(e){return e(n)}))).catch((function(e){throw e})).catch((function(e){return p.Z.error("Unable to initialize app",e)})).then((function(){return n}))};var it=n(4844),at=n(93942),st=n(39711),ot=n(67294),ct=n(96974),ut=n(94184),lt=n.n(ut),ft=n(49581),ht=n(53808),pt=n(25968),dt=n(63101),vt=n(70885),gt=n(79352),mt=n(47516),yt=n(5434),xt=n(82935),bt=n(41163);const jt="mNcTS",Zt="j_FSe";var Ot=n(85893),wt=parseFloat(bt.bP);const kt=function(e){var t=e.noClick,n=e.className,r=(0,xt.Z)(wt);return r.width,(0,Ot.jsx)("h1",{children:(0,Ot.jsxs)(dt.rU,{className:lt()("djxIS",t&&"SZppj",n),to:"/",absolute:!0,tabIndex:t?-1:0,"aria-label":"regular expressions 101",children:[wt>=r.width?(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("span",{className:jt,children:"Reg"}),(0,Ot.jsx)("span",{className:Zt,children:"Ex"})]}):(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("span",{className:jt,children:"Regular"})," ",(0,Ot.jsx)("span",{className:Zt,children:"Expressions"})," "]}),(0,Ot.jsx)("span",{className:"kkc8H",children:"101"})]})})};var Ct=n(23543),Et=parseFloat(bt.Pt),Pt=(0,ot.forwardRef)((function(e,t){var n=e.link,r=e.icon,i=e.text,a=e.label,s=e.className,o=e.direction,c=void 0===o?Ct.qF.S:o,u=e.onClick,l=(0,xt.Z)(Et);return Et>=l.width?(0,Ot.jsx)(dt.x6,{to:n,noTheme:!0,absolute:!0,target:"_blank",tooltip:a,onClick:u,tooltipDirection:c,size:28,className:lt()("jm3JB","v_pM0"),ref:t,children:(0,Ot.jsx)(r,{className:s,size:16})}):(0,Ot.jsxs)(dt.rU,{className:"a4ddH",to:n,noTheme:!0,absolute:!0,target:"_blank","aria-label":a,onClick:u,children:[(0,Ot.jsx)(r,{className:lt()("xfXAE",s),size:14}),(0,Ot.jsx)("span",{className:"t1rej",children:i})]})}));const St=(0,ot.memo)(Pt);var _t=n(3262),Nt=n(91536),Rt=n(58461),Tt=n(95712),At=["fallback","className"];function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=Ne()?(0,ot.lazy)((function(){return Promise.all([n.e(215),n.e(101)]).then(n.bind(n,44652))})):function(){};const Mt=function(e){var t=e.fallback,n=e.className,r=(0,B.Z)(e,At),i=(0,Ot.jsxs)("div",{className:lt()("GIfGY",n),children:[(0,Ot.jsx)(dt.$j,{className:"V0n59",size:Ct.J7.TC}),(0,Ot.jsx)("div",{className:"TnH56",children:(0,ht.Z)("Loading markdown...")})]});return(0,Ot.jsx)(dt.I2,{fallback:t||i,children:(0,Ot.jsx)(Lt,It(It({},r),{},{className:n}))})},Bt=function(e){var t=e.isOpen,n=e.onModalClose,r=e.title,i=e.textUrl,a=(0,ot.useState)(""),s=(0,vt.Z)(a,2),o=s[0],c=s[1],u=(0,ot.useState)({isFetching:!1,fetchError:!1}),l=(0,vt.Z)(u,2),f=l[0],h=l[1];(0,ot.useEffect)((function(){var e=null;return t&&(c(""),h({isFetching:!0,fetchError:!1}),e=fetch(i).then((function(e){return e.text()})).then((function(e){c(e),h({isFetching:!1,fetchError:!1})})).catch((function(e){p.Z.error("Unable to fetch text",e),h({isFetching:!1,fetchError:!0})}))),function(){var t;return null===(t=e)||void 0===t?void 0:t.cancel()}}),[t,i]);var d=(0,Ot.jsxs)("div",{className:"e4TKI",children:[(0,Ot.jsx)(dt.$j,{className:"emNHs"}),(0,Ot.jsx)("div",{className:"J0NvP",children:(0,ht.Z)("Loading content...")})]});return(0,Ot.jsxs)(_t.Z,{onModalClose:n,isOpen:t,children:[(0,Ot.jsx)(Nt.Z,{children:r}),(0,Ot.jsxs)(Rt.Z,{children:[f.isFetching&&d,f.fetchError&&(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,children:(0,ht.Z)("Unable to fetch content, please try again later")}),!f.isFetching&&!f.fetchError&&(0,Ot.jsx)(Mt,{className:"pWUrQ",fallback:d,children:o})]}),(0,Ot.jsx)(Tt.Z,{children:(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Close"),onClick:n,type:Ct.V5.n1})})]})},Ut="Gceny";var Ft=parseFloat(bt.p4),Gt=parseFloat(bt.D6),Vt=function(e){var t=e.alwaysCollapseLeftSidebar,n=e.alwaysCollapseRightSidebar,r=(0,xt.Z)(Ft,Gt),i=(0,ot.useState)(!1),a=(0,vt.Z)(i,2),s=a[0],o=a[1],c=(0,ct.TH)(),u=!/^\/(?:account.*|settings.*|library.*|quiz\/?)$/.test(c.pathname),l=t||r.width<Ft,f=n||r.width<Gt;return(0,Ot.jsxs)("header",{className:lt()(Ut,l&&"V13Sk",u&&f&&"wlvok"),children:[(0,Ot.jsx)(kt,{className:"ZPud1"}),(0,Ot.jsxs)("div",{className:"YxYLF",children:[(0,Ot.jsx)(St,{className:"LTJnM",label:(0,ht.Z)("Follow me on twitter!"),text:"@regex101",icon:gt.x2F,link:"https://twitter.com/regex101"}),(0,Ot.jsx)(St,{className:"paRbz",label:(0,ht.Z)("Like regex101? Support it by donating!"),text:(0,ht.Z)("Donate"),icon:mt.pu9,link:X.DONATION_LINK}),(0,Ot.jsx)(St,{className:"FRRzx",label:(0,ht.Z)("Become a sponsor!"),text:(0,ht.Z)("Sponsor"),icon:gt.iB2,link:X.SPONSOR_LINK}),(0,Ot.jsx)(St,{className:"azy0N",label:(0,ht.Z)("Send me an email"),text:(0,ht.Z)("Contact"),icon:gt.YTS,link:"mailto:contact@regex101.com"}),(0,Ot.jsx)(St,{className:"h8KP1",label:(0,ht.Z)("Bugs or suggestions go here"),text:(0,ht.Z)("Bug Reports & Feedback"),icon:yt.mvF,link:"https://github.com/firasdib/Regex101/issues"}),(0,Ot.jsx)(St,{className:"x0HyW",label:(0,ht.Z)("Wiki (Info & FAQ)"),text:(0,ht.Z)("Wiki"),icon:gt.qvv,link:"https://github.com/firasdib/Regex101/wiki"}),(0,Ot.jsx)(St,{direction:Ct.qF.SW,className:"OFFYM",label:(0,ht.Z)("Whats new?"),text:(0,ht.Z)("Whats new?"),icon:gt.lBz,link:"/static/assets/changelog.md",onClick:function(e){e.preventDefault(),e.stopPropagation(),o(!0)}})]}),(0,Ot.jsx)(Bt,{isOpen:s,onModalClose:function(){return o(!1)},textUrl:"/static/assets/changelog.md",title:(0,ht.Z)("What's new?")})]})};const qt=(0,ot.memo)(Vt);var Ht=n(70872),zt=n(74387),Wt=(0,Ht.Z)(zt.ug),Yt={exit:"uKbj5",exitActive:"xPMjQ"},Kt=function(){var e=(0,ot.useState)(!0),t=(0,vt.Z)(e,2),n=t[0],r=t[1],i=(0,ot.useState)(!0),a=(0,vt.Z)(i,2),s=a[0],o=a[1];return(0,ot.useEffect)((function(){return pt.ZP.once(pt.En,(function(){r(!1),setTimeout((function(){return o(!1)}),Wt)})),function(){return clearTimeout(void 0)}}),[]),s?(0,Ot.jsx)(dt.uT,{className:lt()("QzY4i",!n&&"sr6nN"),classNames:Yt,appear:!1,enter:!1,timeout:Wt,in:n,children:(0,Ot.jsxs)("div",{className:"sNjVA",children:[(0,Ot.jsx)("div",{className:Ut,children:(0,Ot.jsx)(kt,{noClick:!0})}),(0,Ot.jsxs)("div",{className:"GwqPG",children:[(0,Ot.jsx)(dt.$j,{}),(0,Ot.jsx)("div",{className:"RIMEV",children:(0,ht.Z)("Please wait while the app is loading...")})]}),(0,Ot.jsx)(dt.A5,{})]})}):null};const Jt=(0,ot.memo)(Kt);var Xt=n(43406),Qt=n(54430),$t=n(23584);const en="wcfss",tn=function(){var e=(0,at.I0)(),t=(0,ot.useState)(!1),n=(0,vt.Z)(t,2),r=n[0],i=n[1],a=(0,at.v9)((function(e){return e.regexEditor.flavor})),s=(0,at.v9)((function(e){return e.regexEditor.flags})),o=(0,ot.useCallback)((function(t){(0,Me.event)({category:"regexFlavor",action:"Selected ".concat(t.toLowerCase()," flavor")});var n=P()[t][0];e(Ee.o6(t)),e(Ee.G6(n)),e(Ee.dL(s,s,t))}),[e,s]),c=(0,ot.useCallback)((function(e){e.preventDefault(),i(!0)}),[]),u=(0,ot.useCallback)((function(){return i(!1)}),[]);return(0,Ot.jsxs)(Qt.Z,{className:en,header:(0,ht.Z)("Flavor"),headerChildren:(0,Ot.jsx)($t.Z,{to:"/static/assets/flavors.md",onClick:c,className:"IC7U1",tooltip:(0,ht.Z)("Need help selecting flavor?"),size:16,children:(0,Ot.jsx)(gt.zXH,{size:16})}),children:[(0,Ot.jsx)(Xt.Z,{icon:gt.mV1,onClick:function(){return o(C().PCRE2)},isActive:a===C().PCRE2,children:"PCRE2 (PHP >=7.3)"}),(0,Ot.jsxs)(Xt.Z,{icon:gt.mV1,onClick:function(){return o(C().PCRE)},isActive:a===C().PCRE,children:["PCRE (PHP ","<7.3",")"]}),(0,Ot.jsx)(Xt.Z,{icon:gt.mV1,onClick:function(){return o(C().JAVASCRIPT)},isActive:a===C().JAVASCRIPT,children:"ECMAScript (JavaScript)"}),(0,Ot.jsx)(Xt.Z,{icon:gt.mV1,onClick:function(){return o(C().PYTHON)},isActive:a===C().PYTHON,children:"Python"}),(0,Ot.jsx)(Xt.Z,{icon:gt.mV1,onClick:function(){return o(C().GOLANG)},isActive:a===C().GOLANG,children:"Golang"}),(0,Ot.jsx)(Xt.Z,{icon:gt.mV1,onClick:function(){return o(C().JAVA)},isActive:a===C().JAVA,children:"Java 8"}),(0,Ot.jsx)(Bt,{title:(0,ht.Z)("Flavor Help"),onModalClose:u,textUrl:"/static/assets/flavors.md",isOpen:r})]})};var nn=n(80471),rn=n(12037),an=n(34768),sn=n(35383),on=n(86135);const cn="PEVyC";var un=["children","icon","absolute","to","className","isDisabled"];function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hn=function(e){var t=e.children,n=e.icon,r=e.absolute,i=e.to,a=e.className,s=e.isDisabled,o=(0,B.Z)(e,un);return(0,Ot.jsx)(sn.Z,fn(fn({isDisabled:s,className:a},o),{},{children:(0,Ot.jsx)(dt.rU,{tabIndex:s?-1:void 0,to:i,absolute:r,className:cn,noTheme:!0,children:(0,Ot.jsx)(on.Z,{icon:n,children:t,className:a})})}))};const pn=(0,ot.memo)(hn);var dn=n(87287);function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e?"/r/"+e+"/"+t:"/"}var gn=n(17563);const mn="SOmBr",yn="UfPXv";var xn=function(e){var t=e.text,n=e.onDelete,r=e.clickable,i=void 0!==r&&r,a=e.index,s=e.size,o=void 0===s?Ct.J7.M2:s,c=e.isSelected,u=void 0!==c&&c,l=e.to,f=lt()("iFPCp",n&&"EvQAt",i&&"LNuoU",o===Ct.J7.M2&&"sDfVp",o===Ct.J7.HC&&"k7DPw",u&&"ociUu");return n?(0,Ot.jsx)(dt.Yd,{className:f,onClick:function(){return n(a)},children:(0,Ot.jsxs)("div",{className:"i_U6u",children:[(0,Ot.jsx)("div",{className:yn,children:t}),n&&(0,Ot.jsx)(gt.eSQ,{className:mn})]})}):i?(0,Ot.jsx)(dt.rU,{className:f,to:l,noTheme:!0,children:t}):(0,Ot.jsxs)("span",{className:f,children:[(0,Ot.jsx)("span",{className:yn,children:t}),n&&(0,Ot.jsx)(gt.eSQ,{className:mn})]})};const bn=(0,ot.memo)(xn);var jn=["className","tags","ignoreEmpty"];function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wn=function(e){var t=e.className,n=e.tags,r=e.ignoreEmpty,i=(0,B.Z)(e,jn),a=(0,ct.TH)();if(0===n.length)return r?null:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("You have no tags yet, add some and organize your entries!")});var s=gn.parse(a.search),o=[].concat(s.filterTags||[]);return(0,Ot.jsx)("div",{className:lt()("e_47g",t),children:n.sort().map((function(e,t){var n=o.includes(e),r=On(On({},a),{},{search:gn.stringify(On(On({},s),{},{filterTags:n?o.filter((function(t){return t!==e})):[].concat((0,g.Z)(o),[e])}))});return(0,Ot.jsx)(bn,On({text:e,index:t,isSelected:n,to:r},i),"tag-".concat(t))}))})};const kn=(0,ot.memo)(wn),Cn="EHJke",En=function(e){var t=e.title,n=void 0===t?"":t,r=e.tags,i=void 0===r?[]:r,a=e.onTagsChange,s=e.onTitleChange,o=e.disabled,c=e.className,u=(0,ot.useState)(""),l=(0,vt.Z)(u,2),f=l[0],h=l[1],p=(0,ot.useCallback)((function(e){return h(e)}),[]),d=function(e){e.stopPropagation(),e.preventDefault(),f.length>0&&a([].concat((0,g.Z)(i),[f])),h("")};return(0,Ot.jsxs)("div",{className:lt()("b_UzD",o&&"ICuz5",c),children:[(0,Ot.jsxs)("div",{className:Cn,children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Edit personal title")}),(0,Ot.jsx)(dt.oi,{value:n,onChange:s,placeholder:(0,ht.Z)("Insert a personal title"),maxlength:150})]}),(0,Ot.jsxs)("div",{className:Cn,children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Tags")}),(0,Ot.jsx)(kn,{tags:i,onDelete:function(e){return a([].concat((0,g.Z)(i.slice(0,e)),(0,g.Z)(i.slice(e+1))))}})]}),(0,Ot.jsxs)("form",{className:"ECIrE",onSubmit:d,children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Add tag")}),(0,Ot.jsxs)("div",{className:"MPX5Z",children:[(0,Ot.jsx)(dt.oi,{onChange:p,placeholder:(0,ht.Z)("Any word can be used as a tag"),value:f,maxlength:125,className:"GoqIP",validation:/^[0-9A-Z_a-z]*$/}),(0,Ot.jsx)(dt.hU,{tooltip:(0,ht.Z)("Add tag"),className:"fyf3i",disabled:0===f.length,size:28,onClick:d,children:(0,Ot.jsx)(gt.p22,{size:22})})]})]})]})},Pn="LrAFA",Sn="Tpbre";var _n=function(e){var t=e.permalink,n=e.error,r=e.userId,i=e.isOwner,a=e.deleteCode,s=e.isLoading;return n?(0,Ot.jsx)("div",{className:Pn,children:(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,children:(0,ht.Z)("There was an error trying to save your regex. Please try again later.")})}):s?(0,Ot.jsxs)("div",{className:Pn,children:[(0,Ot.jsx)(dt.$j,{}),(0,Ot.jsx)("div",{className:"BjqNv",children:(0,ht.Z)("Please wait while your request is being processed...")})]}):(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Link to regular expression")}),(0,Ot.jsx)(dt.oi,{type:"text",value:t,selectOnMount:!0,selectOnFocus:!0,readOnly:!0,copyButton:!0}),(0,Ot.jsx)(dt.qX,{className:Sn,children:(0,ht.Z)("Your regex has been permanently saved and may be accessed with this link by anybody you give it to.")}),null!=r&&i&&(0,Ot.jsx)(dt.qX,{className:Sn,children:(0,ht.Z)("The entry has automatically been added to your account which means you can at any time delete this entry, make it private and much much more.")}),null==r&&i&&null!=a&&(0,Ot.jsxs)("div",{className:"XXWwF",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Delete regular expression")}),(0,Ot.jsx)(dt.oi,{type:"text",value:"".concat(window.location.protocol,"//").concat(window.location.hostname,"/delete/").concat(a),readOnly:!0,copyButton:!0,selectOnFocus:!0}),(0,Ot.jsx)(dt.qX,{className:Sn,children:(0,ht.Z)("Because you are not signed in this entry has not been tied to an account. It is recommended you sign in so that your entries are never lost and you can manage them from the account page whenever you like.")})]})]})};const Nn=(0,ot.memo)(_n);var Rn=[];const Tn=function(e){var t=e.isUpdating,n=e.onModalClose,r=e.isOpen,a=(0,ct.s0)(),o=(0,at.I0)(),c=(0,at.v9)((function(e){return e.general.permalinkFragment})),u=(0,at.v9)((function(e){return e.general.userId})),l=(0,at.v9)((function(e){return e.general.title}))||"",f=(0,at.v9)((function(e){return e.general.tags}))||Rn,h=(0,at.v9)((function(e){return e.general.isOwner})),d=(0,at.v9)((function(e){return e.general.isFavorite})),v=(0,ot.useState)(!1),g=(0,vt.Z)(v,2),m=g[0],y=g[1],x=(0,ot.useState)(l),b=(0,vt.Z)(x,2),j=b[0],Z=b[1],O=(0,ot.useState)(f),w=(0,vt.Z)(O,2),k=w[0],C=w[1],E=(0,ot.useState)({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!1}),P=(0,vt.Z)(E,2),S=P[0],_=P[1],N=(0,ot.useState)(null),R=(0,vt.Z)(N,2),T=R[0],A=R[1],D=(0,ot.useState)(null),I=(0,vt.Z)(D,2),L=I[0],M=I[1],B=(0,ot.useState)(!1),U=(0,vt.Z)(B,2),F=U[0],G=U[1];(0,ot.useEffect)((function(){r&&(G(!1),y(!1),A(null),M(null))}),[r]);var V=(0,ot.useCallback)((function(e){C(e),y(!0)}),[]),q=(0,ot.useCallback)((function(e){Z(e),y(!0)}),[]),H=function(){var e=(0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!0,hasAccError:!1}),e.prev=1,e.next=4,Promise.all([o((0,Ee.ML)(k,null,c)),o((0,Ee._1)(j,null,c)),new Promise((function(e){return setTimeout(e,500)}))]);case 4:_({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!1}),n(),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),p.Z.error("Unable to save account data",e.t0),_({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!0});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();(0,ot.useEffect)((function(){Z(l),C(f)}),[f,l]),(0,ot.useEffect)((function(){r&&!F&&(G(!0),_({isLoadingRegex:!0,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!1}),o((0,Ee.by)(t)).then((function(e){var t=vn(e.permalinkFragment,e.version);a(t,{replace:!0}),A("".concat(window.location.protocol,"//").concat(window.location.hostname).concat(t)),M(e.deleteCode),_({isLoadingAcc:!1,isLoadingRegex:!1,hasAccError:!1,hasRegexError:!1})})).catch((function(e){p.Z.error("Unable to save regex",e),_({isLoadingAcc:!1,isLoadingRegex:!1,hasAccError:!1,hasRegexError:!0})})))}),[r,o,a,t,F]);var z=t?(0,ht.Z)("Update Regular Expression"):(0,ht.Z)("Save Regular Expression"),W=!S.isLoadingRegex&&null!=u&&!S.hasRegexError&&(h||d);return(0,Ot.jsxs)(_t.Z,{isOpen:r,onModalClose:n,isLoading:S.isLoadingRegex||S.isLoadingAcc,children:[(0,Ot.jsx)(Nt.Z,{children:z}),(0,Ot.jsxs)(Rt.Z,{children:[(0,Ot.jsx)(Nn,{error:S.hasRegexError,permalink:T,userId:u,isOwner:h,deleteCode:L,isLoading:S.isLoadingRegex}),W&&T&&(0,Ot.jsx)(En,{title:j,tags:k,onTagsChange:V,onTitleChange:q,disabled:S.isLoadingAcc,className:"D7pB5"})]}),(0,Ot.jsxs)(Tt.Z,{children:[S.isLoadingAcc&&(0,Ot.jsx)(dt.$j,{className:"Yc0v9",size:Ct.J7.TC}),S.hasAccError&&(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Unable to save changes, please try again"),direction:Ct.qF.N,children:(0,Ot.jsx)("div",{className:"uYI6N",role:"alert",children:(0,Ot.jsx)(gt.j6O,{size:20})})}),W&&(0,Ot.jsx)(dt.zx,{onClick:H,text:(0,ht.Z)("Save"),className:"JySmX",disabled:!m}),(0,Ot.jsx)(dt.zx,{type:Ct.V5.n1,onClick:n,text:(0,ht.Z)("Close")})]})]})};function An(e,t,n){var r=0;return ot.Children.map(e,(function(e){if((0,ot.isValidElement)(e)){var i=r;return r++,t.call(n,e,i)}return e}))}function Dn(e,t){var n;return function(e,t,n){var r=0;ot.Children.forEach(e,(function(e){(0,ot.isValidElement)(e)&&(t.call(void 0,e,r),r++)}))}(e,(function(r,i){!n&&t(r,i,e)&&(n=r)})),n}var In=n(45697),Ln=n.n(In),Mn=function(e){return e.children};Mn.propTypes={children:Ln().node.isRequired};const Bn=Mn,Un=function(e){var t=e.children,n=e.className,r=e.tabs,i=e.renderToolbar,a=(0,ot.useState)(0),s=(0,vt.Z)(a,2),o=s[0],c=s[1];return(0,Ot.jsxs)("div",{className:lt()("xcnvY",n),children:[(0,Ot.jsxs)("div",{className:"JIZX7",children:[r.map((function(e,t){return(0,Ot.jsx)(dt.Yd,{className:lt()("KDcqY",t===o&&"hVcJX"),onClick:function(){return c(t)},children:e},"tabview-tab-".concat(t))})),i&&i(o)]}),Dn(t,(function(e,t){return o===t}))]})};var Fn=n(89583);const Gn={menuPortal:"tdkJ8",insideModal:"zXY8d",menuScroll:"NrXoa",menu:"f6YSB",enterBottom:"NrZNZ",enterTop:"MpxoU",enterActive:"uarNo",leave:"SSIhI",leaveActiveBottom:"oupK4",leaveActiveTop:"b8xoE"};var Vn=["className","children","target","isOpen","onMenuClose","closeOnClick","insideModal","placement"];function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zn=(0,Ht.Z)(zt.t2);const Wn=function(e){var t=e.className,n=e.children,r=e.target,i=e.isOpen,a=e.onMenuClose,s=e.closeOnClick,o=void 0!==s&&s,c=e.insideModal,u=e.placement,l=void 0===u?"bottom":u,f=(0,B.Z)(e,Vn),h=(0,ot.useRef)(null),p=(0,ot.useCallback)((function(e){e.stopPropagation(),a()}),[a]);(0,ot.useEffect)((function(){var e,t=function(e){var t;null!==(t=h.current)&&void 0!==t&&t.contains(e.target)||null!==r&&void 0!==r&&r.contains(e.target)||r===e.target||a()};return i&&(e=setTimeout((function(){var e,n;pt.ZP.once("key:escape",p),null===(e=document.body)||void 0===e||e.addEventListener("mousedown",t,{passive:!0}),null===(n=document.body)||void 0===n||n.addEventListener("touchend",t,{passive:!0})}),zn)),function(){var n,r;clearTimeout(e),pt.ZP.off("key:escape",p),null===(n=document.body)||void 0===n||n.removeEventListener("mousedown",t,{passive:!0}),null===(r=document.body)||void 0===r||r.removeEventListener("touchend",t,{passive:!0})}}),[i,a,r,p]);var d={appear:"bottom"===l?Gn.enterBottom:Gn.enterTop,appearActive:Gn.enterActive,enter:Gn.enter,enterActive:Gn.enterActive,exit:Gn.leave,exitActive:"bottom"===l?Gn.leaveActiveBottom:Gn.leaveActiveTop};return(0,Ot.jsx)(dt.Yv,{className:Gn.menuPortal,target:r,isOpen:i,closeTimeout:zn,placement:l,children:(0,Ot.jsx)(dt.uT,Hn(Hn({className:lt()(Gn.menu,t,c&&Gn.insideModal),classNames:d,timeout:zn,in:i,ref:h},f),{},{children:(0,Ot.jsx)(dt.iQ,{children:(0,Ot.jsx)(Ot.Fragment,{children:An(n,(function(e){return(0,ot.cloneElement)(e,{onClick:e.props.onClick&&(t=e.props.onClick,function(e){o&&a(),null===t||void 0===t||t(e)})});var t}))})})}))})},Yn="TjiR_",Kn="IQ0Dq",Jn="i0q6u",Xn="Ung4t";var Qn=["isActive","children","className"];function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tr=function(e){var t=e.isActive,n=e.children,r=e.className,i=(0,B.Z)(e,Qn);return(0,Ot.jsxs)(dt.Yd,er(er({className:lt()(Yn,r)},i),{},{children:[(0,Ot.jsx)("div",{className:Jn,children:n}),(0,Ot.jsx)(gt.xuy,{size:18,className:lt()(Kn,!t&&Xn)})]}))};const nr=(0,ot.memo)(tr);var rr=["text"];function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sr=function(e){var t=e.text,n=(0,B.Z)(e,rr);return(0,Ot.jsx)("h4",ar(ar({className:"KMW6D"},n),{},{children:t}))};const or=(0,ot.memo)(sr),cr=function(){return(0,Ot.jsx)("hr",{className:"dYvK9"})};var ur=["isActive","children","className","disabled"];function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hr=function(e){var t=e.isActive,n=e.children,r=e.className,i=e.disabled,a=(0,B.Z)(e,ur);return(0,Ot.jsxs)(dt.rU,fr(fr({className:lt()(Yn,i&&"roQ4U",r),tabIndex:i?-1:void 0,"aria-disabled":i,noTheme:!0},a),{},{children:[(0,Ot.jsx)("div",{className:Jn,children:n}),(0,Ot.jsx)(gt.xuy,{size:18,className:lt()(Kn,!t&&Xn)})]}))};const pr=(0,ot.memo)(hr);var dr=["onHeaderClick"];function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mr=function(e){var t=e.onHeaderClick,n=(0,B.Z)(e,dr);return(0,Ot.jsxs)(Wn,gr(gr({closeOnClick:!0,insideModal:!0},n),{},{children:[(0,Ot.jsx)(or,{text:(0,ht.Z)("Headers")}),(0,Ot.jsx)(cr,{}),(0,Ot.jsx)(nr,{onClick:function(){return t("# ")},children:"H1"}),(0,Ot.jsx)(nr,{onClick:function(){return t("## ")},children:"H2"}),(0,Ot.jsx)(nr,{onClick:function(){return t("### ")},children:"H3"})]}))},yr=function(e){var t=e.children;return(0,Ot.jsx)("div",{className:"sswmd",children:t})};var xr=["tooltip","lastGroup","icon","isMenu"];function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zr=(0,ot.forwardRef)((function(e,t){var n=e.tooltip,r=e.lastGroup,i=e.icon,a=e.isMenu,s=(0,B.Z)(e,xr);return(0,Ot.jsx)(dt.lx,{text:n,direction:r?Ct.qF.NW:Ct.qF.N,children:(0,Ot.jsxs)(dt.Yd,jr(jr({className:"rYU7E"},s),{},{ref:t,children:[(0,Ot.jsx)(i,{className:"HJfpj"}),a&&(0,Ot.jsx)(gt.ZXJ,{className:"wTcsC"})]}))})}));Zr.propTypes={tooltip:Ln().string.isRequired,icon:Ln().elementType.isRequired,onClick:Ln().func.isRequired,lastGroup:Ln().bool,isMenu:Ln().bool};const Or=Zr;var wr=function(e){var t=e.onTextChange,n=e.className,r=e.getStart,i=e.getEnd,a=e.value,s=(0,ot.useRef)(),o=(0,ot.useState)(!1),c=(0,vt.Z)(o,2),u=c[0],l=c[1],f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e+d()+n;t(p(a),r()+e.length,i()+e.length)},h=function(e){var n=d(),a=n.split("\n").map(e).join("\n");t(p(a),r(),i()+a.length-n.length)},p=function(e){return a.substring(0,r())+e+a.substring(i())},d=function(){return a.substring(r(),i())};return(0,Ot.jsxs)("div",{className:lt()("CHR_O",n),children:[(0,Ot.jsxs)(yr,{children:[(0,Ot.jsx)(Or,{icon:Fn.YHB,tooltip:(0,ht.Z)("Add header"),onClick:function(){return l(!0)},isMenu:!0,ref:s}),(0,Ot.jsx)(Or,{icon:Fn.PKR,tooltip:(0,ht.Z)("Add bold text"),onClick:function(){return f("**","**")}}),(0,Ot.jsx)(Or,{icon:Fn.Mef,tooltip:(0,ht.Z)("Add italic text"),onClick:function(){return f("_","_")}})]}),(0,Ot.jsxs)(yr,{children:[(0,Ot.jsx)(Or,{icon:Fn.fkU,tooltip:(0,ht.Z)("Insert quote"),onClick:function(){return h((function(e){return"> "+e}))}}),(0,Ot.jsx)(Or,{icon:Fn.tvD,tooltip:(0,ht.Z)("Insert code snippet"),onClick:function(){-1!==d().indexOf("\n")?h((function(e){return" ".repeat(4)+e})):f("`","`")}}),(0,Ot.jsx)(Or,{icon:Fn.gjK,tooltip:(0,ht.Z)("Insert link"),onClick:function(){var e=d(),n="[".concat(e,"](url)"),i=r()+e.length+3,a=i+3;t(p(n),i,a)}})]}),(0,Ot.jsxs)(yr,{children:[(0,Ot.jsx)(Or,{icon:Fn.AeW,tooltip:(0,ht.Z)("Add bulleted list"),onClick:function(){return h((function(e){return"- "+e}))},lastGroup:!0}),(0,Ot.jsx)(Or,{icon:Fn.Fe1,tooltip:(0,ht.Z)("Add numbered list"),onClick:function(){return h((function(e,t){return t+1+". "+e}))},lastGroup:!0})]}),(0,Ot.jsx)(mr,{isOpen:u,onMenuClose:function(){return l(!1)},onHeaderClick:function(e){return f(e)},target:s.current})]})};const kr=(0,ot.memo)(wr),Cr="YONkN",Er="PhRac",Pr="FVje3";var Sr=["defaultValue","value","onChange","containerClassName","className"];function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rr=function(e){var t=e.defaultValue,n=e.value,r=e.onChange,i=(e.containerClassName,e.className),a=(0,B.Z)(e,Sr),s=(0,ot.useRef)(),o=(0,ot.useState)(t||n||""),c=(0,vt.Z)(o,2),u=c[0],l=c[1],f=(0,ot.useCallback)((function(){var e;return(null===(e=s.current)||void 0===e?void 0:e.selectionStart)||0}),[]),h=(0,ot.useCallback)((function(){var e;return(null===(e=s.current)||void 0===e?void 0:e.selectionEnd)||0}),[]),p=(0,ot.useCallback)((function(e){l(e),r&&r(e)}),[r]),d=(0,ot.useCallback)((function(e,t,n){r&&r(e),s.current&&(l(e),setTimeout((function(){s.current&&(s.current.focus(),s.current.setSelectionRange(t,n))})))}),[r]),v=[(0,ht.Z)("Write"),(0,ht.Z)("Preview")];return(0,Ot.jsxs)(Un,{className:i,tabs:v,renderToolbar:function(e){return 0!==e?null:(0,Ot.jsx)(kr,{className:"MafZJ",onTextChange:d,getStart:f,getEnd:h,value:u})},children:[(0,Ot.jsxs)(Bn,{children:[(0,Ot.jsx)("div",{className:Er,children:(0,Ot.jsx)(dt.oi,Nr(Nr({},a),{},{onChange:p,className:Pr,value:u,ref:s,multiline:!0}))}),(0,Ot.jsx)(dt.rU,{to:"http://whatismarkdown.com/",absolute:!0,target:"_blank",className:Cr,children:(0,ht.Z)("Styling with Markdown is supported")})]}),(0,Ot.jsxs)(Bn,{children:[(0,Ot.jsxs)("div",{className:Er,children:[(0,Ot.jsx)(dt.oi,Nr(Nr({},a),{},{className:Pr,value:u,multiline:!0,disabled:!0})),(0,Ot.jsx)(Mt,{className:"w0msh",children:u||(0,ht.Z)("Nothing to preview")})]}),(0,Ot.jsx)(dt.rU,{to:"http://whatismarkdown.com/",absolute:!0,target:"_blank",className:Cr,children:(0,ht.Z)("Styling with Markdown is supported")})]})]})};const Tr=(0,ot.memo)(Rr);var Ar=function(e){var t=e.title,n=e.children,r=e.required;return(0,Ot.jsxs)("div",{className:"WQ5ax",children:[(0,Ot.jsx)(dt.__,{text:t,required:r}),n]})};const Dr=(0,ot.memo)(Ar),Ir=function(e){var t=e.onModalClose,n=e.isOpen,r=(0,at.I0)(),a=(0,at.v9)((function(e){return e.general.isLibraryEntry})),o=(0,at.v9)((function(e){return e.libraryEntry.description}))||"",c=(0,at.v9)((function(e){return e.libraryEntry.title}))||"",u=(0,at.v9)((function(e){return e.libraryEntry.author}))||"",l=(0,at.v9)((function(e){return e.general.permalinkIsEditable})),f=a&&l,h=(0,ot.useState)(!1),d=(0,vt.Z)(h,2),v=d[0],g=d[1],m=(0,ot.useState)(f?c:""),y=(0,vt.Z)(m,2),x=y[0],b=y[1],j=(0,ot.useState)(f?u:""),Z=(0,vt.Z)(j,2),O=Z[0],w=Z[1],k=(0,ot.useState)(f?o:""),C=(0,vt.Z)(k,2),E=C[0],P=C[1],S=(0,ot.useState)(""),_=(0,vt.Z)(S,2),N=_[0],R=_[1],T=(0,ot.useState)({isLoading:!1,hasError:!1,success:!1}),A=(0,vt.Z)(T,2),D=A[0],I=A[1],L=(0,ot.useCallback)((function(e){b(e),g(!0)}),[]),M=(0,ot.useCallback)((function(e){w(e),g(!0)}),[]),B=(0,ot.useCallback)((function(e){P(e),g(!0)}),[]),U=function(){var e=(0,i.Z)(s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I({isLoading:!0,hasError:!1,success:!1}),e.prev=1,e.next=4,r(a&&l?(0,Ee.ZD)(x,E,O):(0,Ee.Tr)(x,E,O));case 4:n=e.sent,f?t():(R(n),I({isLoading:!1,hasError:!1,success:!0})),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),p.Z.error("Unable to create or update library entry",e.t0),I({isLoading:!1,hasError:!0,success:!1});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return(0,ot.useEffect)((function(){n&&(f?(b(c),w(u),P(o)):(b(""),w(""),P("")),I({isLoading:!1,hasError:!1,success:!1}))}),[n,c,u,o,f]),(0,Ot.jsxs)(_t.Z,{onModalClose:t,isOpen:n,isLoading:D.isLoading,children:[(0,Ot.jsx)(Nt.Z,{children:f?(0,ht.Z)("Update Library Entry"):(0,ht.Z)("Submit Workspace to Regex Library")}),(0,Ot.jsx)(Rt.Z,{children:(0,Ot.jsxs)("div",{className:lt()("_GCcL",D.isLoading&&"sXKS3"),children:[D.success&&(0,Ot.jsxs)("div",{className:"tuaRV",children:[(0,Ot.jsx)("div",{className:"ns94K",children:(0,ht.Z)("Your workspace has been successfully submitted to the library!")}),(0,Ot.jsx)(dt.vV,{tag:"p",text:"You can find the library entry here: {1}",ph1:(0,Ot.jsx)(dt.rU,{to:"/library/".concat(N),absolute:!0,children:"/library/".concat(N)})}),(0,Ot.jsx)(dt.vV,{tag:"p",text:"Any changes to the library entry, both the expression, as well as title/description/etc, can be made at the following url: {1}",ph1:(0,Ot.jsx)(dt.rU,{to:vn(N),absolute:!0,children:vn(N)})}),(0,Ot.jsx)("p",{children:(0,ht.Z)("You can continue to edit in this workspace without affecting the entry you just submitted.")}),(0,Ot.jsx)("strong",{children:(0,ht.Z)("Thank you for your contribution")})]}),!D.success&&(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Dr,{title:(0,ht.Z)("Title"),required:!0,children:(0,Ot.jsx)(dt.oi,{maxlength:150,onChange:L,defaultValue:x,placeholder:(0,ht.Z)("Title of regular expression")})}),(0,Ot.jsx)(Dr,{title:(0,ht.Z)("Description"),required:!0,children:(0,Ot.jsx)(Tr,{maxlength:5e3,onChange:B,placeholder:(0,ht.Z)("Description of regular expression"),defaultValue:E})}),(0,Ot.jsx)(Dr,{title:(0,ht.Z)("Author"),className:"H7aJ9",children:(0,Ot.jsx)(dt.oi,{maxlength:150,onChange:M,defaultValue:O,placeholder:(0,ht.Z)("Name or other identifier of the author")})})]})]})}),(0,Ot.jsxs)(Tt.Z,{children:[D.isLoading&&(0,Ot.jsx)(dt.$j,{className:"GjCIr",size:Ct.J7.TC}),D.hasError&&(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("There was a problem while trying to submit your regex to the library. Please try again later."),direction:Ct.qF.N,children:(0,Ot.jsx)("div",{className:"QokGJ",role:"alert",children:(0,Ot.jsx)(gt.j6O,{size:20})})}),!D.success&&(0,Ot.jsx)(dt.zx,{text:a?(0,ht.Z)("Update"):(0,ht.Z)("Submit"),disabled:!v||0===x.length||0===E.length||D.isLoading,onClick:U,className:"ZmwNY"}),(0,Ot.jsx)(dt.zx,{text:D.success?(0,ht.Z)("Close"):(0,ht.Z)("Cancel"),onClick:t,type:Ct.V5.n1,disabled:D.isLoading})]})]})},Lr=function(e){var t=e.title,n=e.children,r=e.onModalClose,i=e.isOpen,a=e.onConfirmClick,s=e.confirmText,o=void 0===s?(0,ht.Z)("Ok"):s,c=e.isDanger,u=e.isLoading;return(0,Ot.jsxs)(_t.Z,{onModalClose:r,isOpen:i,className:"LZ_87",isLoading:u,children:[(0,Ot.jsx)(Nt.Z,{className:"CrJ1q",children:t}),(0,Ot.jsx)(Rt.Z,{className:"EgtQt",children:n}),(0,Ot.jsxs)(Tt.Z,{children:[(0,Ot.jsx)(dt.zx,{text:o,onClick:a,style:{marginRight:10},type:c?Ct.V5.T:Ct.V5.OK,disabled:u}),(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Close"),onClick:r,type:Ct.V5.n1,disabled:u})]})]})};function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ur=function(e){return(0,Ot.jsxs)(Lr,Br(Br({title:(0,ht.Z)("Delete Regex"),confirmText:(0,ht.Z)("Yes, delete"),isDanger:!0},e),{},{children:[(0,Ot.jsx)("div",{children:(0,ht.Z)("Are you sure you want to delete this regex? This action is non-reversible and will delete all versions of this regex.")}),(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,className:"GCjCg",children:(0,ht.Z)("The data can never be recovered again!")})]}))};var Fr=n(27582);const Gr=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.regexEditor.regex})),n=(0,at.v9)((function(e){return e.regexEditor.error})),r=(0,at.v9)((function(e){return e.regexEditor.hasUnsavedData})),a=(0,at.v9)((function(e){return e.general.permalinkFragment})),o=(0,at.v9)((function(e){return e.general.isOwner})),c=(0,at.v9)((function(e){return e.general.userId})),u=(0,at.v9)((function(e){return e.general.isFavorite})),l=(0,at.v9)((function(e){return e.general.isLibraryEntry})),f=(0,at.v9)((function(e){return e.general.deleteCode})),h=(0,at.v9)((function(e){return e.general.permalinkIsEditable})),p=(0,ot.useState)(!1),d=(0,vt.Z)(p,2),v=d[0],g=d[1],m=(0,ot.useState)(!1),y=(0,vt.Z)(m,2),x=y[0],b=y[1],j=(0,ot.useState)(!1),Z=(0,vt.Z)(j,2),O=Z[0],w=Z[1],k=(0,ot.useState)(!1),C=(0,vt.Z)(k,2),E=C[0],P=C[1],S=(0,ot.useCallback)((function(){return w(!0)}),[]),_=(0,ot.useCallback)((function(e){e.preventDefault(),P(!0)}),[]),N=(0,ot.useCallback)((function(){return P(!1)}),[]),R=(0,ot.useCallback)((function(){return w(!1)}),[]),T=(0,ot.useCallback)((0,i.Z)(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Ee.MX(a,f));case 2:window.location.href="/";case 3:case"end":return t.stop()}}),t)}))),[e,a,f]),A=(0,ot.useCallback)((0,i.Z)(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Ee.Ez(a,null,!u));case 2:e(Ee.jb(!u));case 3:case"end":return t.stop()}}),t)}))),[e,u,a]),D=(0,ot.useCallback)((function(){g(!1),b(!1)}),[]),I=(0,ot.useCallback)((function(e){(0,Me.event)({category:"saveRegex",action:"User saved regex"}),e.stopPropagation(),""!==t&&r&&g(!0)}),[t,r]),L=(0,ot.useCallback)((function(e){(0,Me.event)({category:"updateRegex",action:"User updated regex"}),e.stopPropagation(),""!==t&&r&&null!=a&&h&&(b(!0),g(!0))}),[t,r,a,h]);return(0,ot.useEffect)((function(){return pt.ZP.on({"key:updateRegex":L,"key:saveRegex":I}),function(){pt.ZP.off({"key:updateRegex":L,"key:saveRegex":I})}}),[L,I]),(0,Ot.jsxs)(Qt.Z,{className:en,header:(0,ht.Z)("Save & Share"),children:[(0,Ot.jsx)(Fr.Z,{icon:gt.d26,onClick:I,isDisabled:""===t||!r,className:"wHTes",rightElement:(0,Ot.jsx)(dt.aX,{shortcut:rn.SAVE_REGEX}),monospace:!1,children:(0,ht.Z)("Save Regex")}),null!=a&&h&&(0,Ot.jsx)(Fr.Z,{icon:gt.PwW,onClick:L,isDisabled:""===t||!r,rightElement:(0,Ot.jsx)(dt.aX,{shortcut:rn.UPDATE_REGEX}),monospace:!1,children:l?(0,ht.Z)("Update Library Regex"):(0,ht.Z)("Update Regex")}),null!=f&&(0,Ot.jsx)(pn,{to:"/delete/".concat(f),icon:gt.M$4,className:"QQcsx",onClick:_,absolute:!0,tabIndex:-1,children:(0,ht.Z)("Delete Regex")}),l&&o&&(0,Ot.jsx)(dn.Z,{isDisabled:""===t||n===an.D9,icon:gt.tuW,onClick:S,children:(0,ht.Z)("Edit Library Entry")}),!l&&null!=c&&(0,Ot.jsx)(dn.Z,{isDisabled:""===t||n===an.D9,icon:gt.tuW,onClick:S,children:(0,ht.Z)("Add to Public Library")}),null!=c&&null!=a&&(0,Ot.jsx)(dn.Z,{icon:gt.iB2,className:"XusZa",onClick:A,children:u?(0,ht.Z)("Unfavorite Regex"):(0,ht.Z)("Favorite Regex")}),l&&(0,Ot.jsx)(pn,{to:"/library/".concat(a),icon:nn.bwQ,children:(0,ht.Z)("Go to library entry")}),(0,Ot.jsx)(Tn,{isUpdating:x,onModalClose:D,isOpen:v}),(0,Ot.jsx)(Ir,{isOpen:O,onModalClose:R}),(0,Ot.jsx)(Ur,{isOpen:E,onModalClose:N,onConfirmClick:T})]})},Vr=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.regexEditor.showMatchArea})),n=(0,at.v9)((function(e){return e.regexEditor.showSubstitutionArea})),r=(0,at.v9)((function(e){return e.regexEditor.showListSubstitutionArea})),i=(0,at.v9)((function(e){return e.regexEditor.showUnitTestArea})),a=(0,at.v9)((function(e){return e.unitTests.tests.length})),s=(0,ot.useCallback)((function(t){t.stopPropagation(),(0,Me.event)({category:"regexFunction",action:"Switched to matching"}),e(Ee.Iu())}),[e]),o=(0,ot.useCallback)((function(t){t.stopPropagation(),(0,Me.event)({category:"regexFunction",action:"Switched to substitution"}),e(Ee.ux())}),[e]),c=(0,ot.useCallback)((function(t){t.stopPropagation(),(0,Me.event)({category:"regexFunction",action:"Switched to unit test"}),e(Ee.rI())}),[e]),u=(0,ot.useCallback)((function(t){t.stopPropagation(),(0,Me.event)({category:"regexFunction",action:"Switched to list substitution"}),e(Ee.vn())}),[e]);return(0,ot.useEffect)((function(){return pt.ZP.on({"key:ctrl1":s,"key:ctrl2":o,"key:ctrl3":u,"key:ctrl4":c}),function(){pt.ZP.off({"key:ctrl1":s,"key:ctrl2":o,"key:ctrl3":u,"key:ctrl4":c})}}),[s,o,u,c]),(0,Ot.jsxs)(Qt.Z,{className:en,header:(0,ht.Z)("Function"),children:[(0,Ot.jsx)(Xt.Z,{icon:gt.tJT,onClick:s,isActive:t,children:(0,ht.Z)("Match")}),(0,Ot.jsx)(Xt.Z,{icon:gt.EgU,onClick:o,isActive:n&&!i,children:(0,ht.Z)("Substitution")}),(0,Ot.jsx)(Xt.Z,{icon:gt.dR_,onClick:u,isActive:r,children:(0,ht.Z)("List")}),(0,Ot.jsx)(Xt.Z,{icon:gt.aJY,onClick:c,isActive:i,children:(0,ht.Z)("Unit Tests {1}",a>0?"(".concat(a,")"):"")})]})};var qr=n(14578),Hr=n(39781),zr=n(90732);const Wr=function(){var e=(0,ct.s0)(),t=(0,at.v9)((function(e){return e.regexEditor.flavor})),n=(0,at.v9)((function(e){return e.regexEditor.regex})),r=(0,at.v9)((function(e){return e.regexEditor.error})),i=(0,at.v9)((function(e){return e.regexEditor.showListSubstitutionArea})),a=(0,at.v9)((function(e){return e.regexEditor.showUnitTestArea})),s=(0,at.v9)((function(e){return e.settings.defaultCodeGenLanguage})),o=(0,ot.useCallback)((function(r){r.stopPropagation(),""!==n&&e("codegen?language=".concat(s||(0,zr.Wr)(t)))}),[n,s,t,e]),c=(0,ot.useCallback)((function(t){t.stopPropagation(),""===n||r===an.D9||a||e("debugger")}),[n,r,a,e]);return(0,ot.useEffect)((function(){return pt.ZP.on({"key:ctrlB":c,"key:ctrlG":o}),function(){pt.ZP.off({"key:ctrlB":c,"key:ctrlG":o})}}),[c,o]),(0,Ot.jsxs)(Qt.Z,{header:(0,ht.Z)("Tools"),children:[(0,Ot.jsx)(pn,{icon:qr.xv9,isDisabled:""===n||i,to:"codegen?language=".concat(s||(0,zr.Wr)(t)),children:(0,ht.Z)("Code Generator")}),(0,Hr.G)(t)&&(0,Ot.jsx)(pn,{icon:gt.RwU,isDisabled:""===n||r===an.D9||a,to:"debugger",children:(0,ht.Z)("Regex Debugger")})]})},Yr=function(){return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Gr,{}),(0,Ot.jsx)(tn,{}),(0,Ot.jsx)(Vr,{}),(0,Ot.jsx)(Wr,{})]})};var Kr=n(8193),Jr=n(87740),Xr=["to","children","icon","isDisabled","isActive"];function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ei=function(e){var t=e.to,n=e.children,r=e.icon,i=e.isDisabled,a=e.isActive,s=(0,B.Z)(e,Xr),o=(0,ct.bS)(t);return(0,Ot.jsx)(sn.Z,$r($r({isDisabled:i},s),{},{children:(0,Ot.jsx)(dt.rU,{tabIndex:i?-1:0,to:t,className:cn,noTheme:!0,children:(0,Ot.jsx)(on.Z,{icon:r,children:(0,Ot.jsx)(Jr.Z,{children:n,isActive:a||!!o})})})}))};const ti=(0,ot.memo)(ei);var ni=n(35896),ri=n.n(ni);function ii(e){switch(e){case ri().MOST_RECENT:return(0,ht.Z)("Most Recent");case ri().MOST_POINTS:return(0,ht.Z)("Most Points");case ri().LEAST_POINTS:return(0,ht.Z)("Fewest Points");case ri().RELEVANCE:return(0,ht.Z)("Relevance");default:throw new Error("Unknown order ".concat(e))}}var ai=[{flavor:C().PCRE2,string:"PCRE2"},{flavor:C().PCRE,string:"PCRE"},{flavor:C().JAVASCRIPT,string:"ECMAScript"},{flavor:C().PYTHON,string:"Python"},{flavor:C().GOLANG,string:"Golang"},{flavor:C().JAVA,string:"Java"}],si=function(e){switch(e){case ri().MOST_RECENT:return Kr.dT6;case ri().MOST_POINTS:return mt.PNI;case ri().LEAST_POINTS:return mt.a7d;case ri().RELEVANCE:return Kr.Ehc;default:throw new Error('Unknown library sorting order "'.concat(e,'"'))}};const oi=function(){var e=(0,st.lr)(),t=(0,vt.Z)(e,1)[0],n=t.getAll("filterFlavors"),r=t.get("orderBy")||ri().MOST_RECENT,i=t.get("search")||"";return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Qt.Z,{header:(0,ht.Z)("Order By"),className:en,children:ri().all.filter((function(e){return!(e===ri().RELEVANCE&&0===i.length)})).map((function(e){return(0,Ot.jsx)(ti,{to:"?".concat(gn.stringify({filterFlavors:n,search:i,orderBy:e})),isActive:r===e,icon:si(e),children:ii(e)},"library-order-menu-".concat(e))}))}),(0,Ot.jsx)(Qt.Z,{header:(0,ht.Z)("Filter by Flavor"),children:ai.map((function(e){var t=[].concat(n),a=t.includes(e.flavor);return a?t=t.filter((function(t){return t!==e.flavor})):t.push(e.flavor),(0,Ot.jsx)(ti,{icon:gt.mV1,isActive:a,to:"?".concat(gn.stringify({search:i,orderBy:r,filterFlavors:t})),children:e.string},"library-flavor-".concat(e.flavor))}))})]})};var ci=function(){return(0,Ot.jsxs)("div",{className:"sFanj",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Settings")}),(0,Ot.jsxs)("div",{children:[(0,ht.Z)("All settings to control the application are located here."),(0,Ot.jsx)("br",{}),(0,Ot.jsx)("br",{}),(0,ht.Z)("They are automatically saved as you change them and will be automatically loaded every time.")]})]})};const ui=(0,ot.memo)(ci);var li=n(60155),fi=n(7504),hi=n.n(fi),pi=n(13201),di=n.n(pi),vi=[{string:"Google",icon:gt.D27,to:"/connect/google"},{string:"Github",icon:gt.q7V,to:"/connect/github"},{string:"Twitter",icon:gt.x2F,to:"/connect/twitter"}];const gi=function(e){var t=e.onModalClose,n=e.isOpen,r=e.returnTo,i=void 0===r?"/account/all":r,a=(0,at.I0)(),s=(0,ot.useCallback)((function(){return a({type:b.xw})}),[a]);return(0,Ot.jsxs)(_t.Z,{onModalClose:t,isOpen:n,className:"dyCRh",children:[(0,Ot.jsx)(Nt.Z,{children:(0,ht.Z)("Sign In")}),(0,Ot.jsxs)(Rt.Z,{className:"HLkfc",children:[(0,Ot.jsx)(Qt.Z,{header:(0,ht.Z)("Select a service provider"),className:"gT9Zk",children:vi.map((function(e){return(0,Ot.jsx)(pn,{to:"".concat(e.to,"?returnTo=").concat(i),icon:e.icon,onClick:s,absolute:!0,children:e.string},"provider-".concat(e.string))}))}),(0,Ot.jsxs)("div",{className:"gYcOc",children:[(0,Ot.jsx)(dt.qX,{noMargin:!0,children:(0,ht.Z)("Only the bare minimum information is retrieved and saved in order to identify your account.")}),(0,Ot.jsx)(dt.qX,{noMargin:!0,type:Ct.gr.u_,children:(0,ht.Z)("Note that clicking any of the links above will refresh the page. Your data will be saved to local storage and restored once you return to the website.")})]})]}),(0,Ot.jsx)(Tt.Z,{children:(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Close"),onClick:t,type:Ct.V5.n1})})]})},mi=function(){var e=(0,at.v9)((function(e){return e.account.allTags})),t=(0,at.v9)((function(e){return e.account.staleData}));return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Tags")}),t?(0,Ot.jsx)(dt.$j,{size:Ct.J7.TC,style:{margin:"0 auto"}}):(0,Ot.jsx)(kn,{tags:e,clickable:!0})]})},yi="qxoBe";function xi(e){switch(e){case di().GOOGLE:return gt.D27;case di().TWITTER:return gt.x2F;case di().GITHUB:return gt.q7V;default:throw new Error("Unknown service provider "+e)}}const bi=function(){var e=(0,at.v9)((function(e){return e.general.userId})),t=(0,at.v9)((function(e){return e.general.email})),n=(0,at.v9)((function(e){return e.general.serviceProvider})),r=(0,ot.useState)(!1),a=(0,vt.Z)(r,2),o=a[0],c=a[1],u=(0,ot.useState)(!1),l=(0,vt.Z)(u,2),f=l[0],h=l[1],p=(0,ot.useState)(!1),d=(0,vt.Z)(p,2),v=d[0],g=d[1],m=(0,ot.useCallback)((function(){return c(!0)}),[]),y=(0,ot.useCallback)((function(){return h(!0)}),[]),x=(0,ot.useCallback)((function(){c(!1),h(!1)}),[]),b=(0,ot.useCallback)((0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),e.prev=1,e.next=4,fetch("/api/user/",{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}});case 4:return e.prev=4,window.location.href="/account",e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[1,,4,7]])}))),[]),j=[{string:(0,ht.Z)("My Expressions"),icon:gt.U$J,scope:hi().MINE},{string:(0,ht.Z)("My Favorites"),icon:gt.iB2,scope:hi().FAVORITES},{string:(0,ht.Z)("My Library Entries"),icon:li.Q0w,scope:hi().LIBRARY}];return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)(Qt.Z,{header:(0,ht.Z)("Control"),className:yi,children:[null==e&&(0,Ot.jsx)(dn.Z,{onClick:m,icon:gt.yrM,children:(0,ht.Z)("Sign In")}),null!=e&&null!=t&&null!=n&&(0,Ot.jsx)(dn.Z,{className:"Hp8EU",icon:xi(n),isDisabled:!0,children:t}),null!=e&&(0,Ot.jsx)(dn.Z,{icon:gt.Xgw,className:"VsHye",onClick:y,children:(0,ht.Z)("Delete account")}),null!=e&&(0,Ot.jsx)(pn,{to:"/login/destroy",absolute:!0,icon:gt.Xgw,children:(0,ht.Z)("Sign out")})]}),null!=e&&(0,Ot.jsx)(Qt.Z,{header:(0,ht.Z)("Category"),className:yi,children:j.map((function(e){return(0,Ot.jsx)(ti,{to:"/account/".concat(e.scope),icon:e.icon,children:e.string},"account-category-".concat(e.scope))}))}),null!=e&&(0,Ot.jsx)(mi,{}),(0,Ot.jsx)(gi,{onModalClose:x,isOpen:o}),(0,Ot.jsx)(Lr,{onModalClose:x,title:(0,ht.Z)("Delete Account and Data"),isLoading:v,isOpen:f,onConfirmClick:b,isDanger:!0,confirmText:(0,ht.Z)("Yes, delete everything"),children:(0,Ot.jsxs)("div",{className:"hvqpn",children:[(0,Ot.jsx)("strong",{children:(0,ht.Z)("Are you sure you want to delete your account?")}),(0,Ot.jsx)("div",{children:(0,ht.Z)("All associated data with your account will be permanently deleted, such as your saved expressions, your library entries, and your quiz progression.")}),(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,className:"A9fBo",children:(0,ht.Z)("Your data can never be recovered again!")})]})})]})},ji="zcg3R";var Zi=function(){return null==(0,at.v9)((function(e){return e.general.userId}))?null:(0,Ot.jsxs)(Qt.Z,{header:(0,ht.Z)("Tasks"),className:ji,children:[(0,Ot.jsx)(ti,{icon:gt.iB2,to:"/quiz",children:(0,ht.Z)("Introduction")}),(0,Ot.jsx)(Oi,{})]})},Oi=function(){var e=(0,at.v9)((function(e){return e.general.userId})),t=(0,at.v9)((function(e){return e.quiz.allTasks})),n=(0,ft.$5)("getQuizTasks"),r=(0,vt.Z)(n,3),i=r[0],a=r[1],s=r[2];return(0,ft.DB)((function(){e&&0===t.length&&s((0,Ee.Ak)())}),[s,t.length,e]),null==e?null:i?(0,Ot.jsx)(dt.$j,{size:Ct.J7.TC,className:"upLOL"}):a?(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,className:"UPygB",children:(0,ht.Z)("There was an error fetching the quiz data. Please try again later.")}):t.map((function(e,t){var n=t+1;return(0,Ot.jsxs)(ti,{icon:gt.XBp,to:"/quiz/".concat(n),isDisabled:!e.canSolve,children:[n,". ",e.title," ",e.isOptional&&"(".concat((0,ht.Z)("optional"),")")]},"task-".concat(e.taskNumber))}))};const wi=function(){var e=(0,ot.useState)(!1),t=(0,vt.Z)(e,2),n=t[0],r=t[1],i=(0,at.v9)((function(e){return e.general.userId})),a=(0,ot.useCallback)((function(){return r(!0)}),[]),s=(0,ot.useCallback)((function(){return r(!1)}),[]);return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Zi,{}),(0,Ot.jsxs)(Qt.Z,{header:(0,ht.Z)("Control"),className:ji,children:[null==i&&(0,Ot.jsx)(dn.Z,{onClick:a,icon:gt.yrM,children:(0,ht.Z)("Sign In")}),null!=i&&(0,Ot.jsx)(pn,{to:"/login/destroy",absolute:!0,icon:gt.Xgw,children:(0,ht.Z)("Sign out")})]}),(0,Ot.jsx)(gi,{onModalClose:s,isOpen:n,returnTo:"/quiz"})]})};var ki=n(94537);const Ci="VUMXN",Ei="WIk_o";var Pi=(0,Ht.Z)(zt.K0),Si={appear:Ci,appearActive:Ei,enter:Ci,enterActive:Ei,exit:"gGhok",exitActive:"cQ7Yd"};const _i=function(e){var t,n=e.children,r=e.className,i=ot.Children.toArray(n),a=(0,ot.useState)((t=i.length,Math.floor(Math.random()*t))),s=(0,vt.Z)(a,2),o=s[0],c=s[1];return(0,ot.useEffect)((function(){var e;return i.length>1&&(e=setTimeout((function(){return c((o+1)%i.length)}),3e4)),function(){return clearTimeout(e)}}),[o,i.length]),(0,Ot.jsx)(ki.Z,{children:(0,Ot.jsx)(dt.uT,{in:!0,classNames:Si,className:lt()("byHyj",r),timeout:Pi,children:i[o]},"carousel-child-".concat(o))})},Ni="RhnCb";var Ri=function(e){var t,n=e.className,r=(0,ot.useState)(!1),i=(0,vt.Z)(r,2),a=i[0],s=i[1],o=(0,at.v9)((function(e){return e.general.sponsorData})),c=(0,ot.useCallback)((function(){return(0,Me.outboundLink)({label:"Doppler Sponsor"},(function(){}))}),[]),u=(0,ot.useCallback)((function(){return(0,Me.outboundLink)({label:"Moovweb Sponsor"},(function(){}))}),[]),l=(0,ot.useCallback)((function(){return(0,Me.outboundLink)({label:"Carbon Sponsor"},(function(){}))}),[]),f=(0,ot.useCallback)((function(){return s(!0)}),[]),h=(0,ot.useCallback)((function(){return s(!1)}),[]),p=null===o||void 0===o?void 0:o.statlink,d=null===o||void 0===o?void 0:o.adBlock,v=null==o&&!d;return(0,Ot.jsxs)("div",{className:lt()("jyUE5",n),children:[(0,Ot.jsx)("div",{className:"M4byA",children:(0,Ot.jsx)("div",{className:"tSxrO",children:(0,ht.Z)("Sponsors")})}),(0,Ot.jsx)("div",{className:"Di8kW",children:(0,Ot.jsxs)(_i,{children:[(0,Ot.jsxs)(dt.rU,{className:"X2oC_",to:"https://www.layer0.co/?utm_medium=referral&utm_source=regex101&utm_campaign=regex101",onClick:u,target:"_blank",rel:"nofollow noopener",absolute:!0,children:[(0,Ot.jsx)("div",{className:Ni}),"Jamstack at Scale"]}),(0,Ot.jsxs)(dt.rU,{className:"duRSK",to:"https://www.doppler.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=regex101&utm_source=github",onClick:c,target:"_blank",rel:"nofollow noopener",absolute:!0,children:[(0,Ot.jsx)("div",{className:Ni}),"All your environment variables, in one place"]})]})}),p&&(0,Ot.jsxs)("div",{className:"G3BCS",children:[(0,Ot.jsxs)(dt.rU,{className:"Ct5Li",to:"".concat(o.statlink,"?segment=placement:regex101com"),rel:"nofollow noopener",onClick:l,target:"_blank",absolute:!0,children:[(0,Ot.jsx)("img",{src:o.smallImage,width:120,height:90,loading:"lazy",alt:o.description,children:o.title}),(0,Ot.jsx)("div",{className:"tgFFz",children:o.description}),null===(t=o.pixel)||void 0===t?void 0:t.split("||").map((function(e,t){return(0,Ot.jsx)("img",{src:e.replace("[timestamp]",o.timestamp),style:{display:"none"},height:0,width:0,alt:""},"pixel-".concat(t))}))]}),(0,Ot.jsx)(dt.rU,{to:o.ad_via_link,className:"JLQ9d",rel:"nofollow noopener",target:"_blank",absolute:!0,children:"Ads via Carbon"})]}),d&&(0,Ot.jsx)("div",{className:"_gHmG",children:(0,Ot.jsxs)(dt.qX,{noMargin:!0,children:[(0,ht.Z)("If you're running an ad blocker, consider whitelisting regex101 to support the website.")," ",(0,Ot.jsx)(dt.Yd,{onClick:f,className:"Q1PRl",children:(0,ht.Z)("Read more")}),"."]})}),v&&(0,Ot.jsxs)("div",{className:"EJDHZ",children:[(0,Ot.jsx)("div",{className:"k0UBc"}),(0,Ot.jsxs)("div",{className:"IAz16",children:[(0,Ot.jsx)("div",{}),(0,Ot.jsx)("div",{}),(0,Ot.jsx)("div",{})]})]}),(0,Ot.jsxs)(_t.Z,{isOpen:a,onModalClose:h,className:"sM6Wv",children:[(0,Ot.jsx)(Nt.Z,{children:(0,ht.Z)("Advertisements and your privacy")}),(0,Ot.jsxs)(Rt.Z,{className:"hv1JN",children:[(0,Ot.jsxs)("p",{children:[(0,ht.Z)("The advertisements are provided by Carbon, but implemented by regex101."),(0,Ot.jsx)("br",{}),(0,Ot.jsx)("strong",{children:(0,ht.Z)("No cookies will be used for tracking and no third party scripts will be loaded.")})]}),(0,Ot.jsx)(dt.vV,{text:"The information is fetched using a JSONP request, which contains the ad text and a link to the ad image. The JSON file and images are fetched from {1} or {2}.",ph1:(0,Ot.jsx)("em",{children:"buysellads.com"}),ph2:(0,Ot.jsx)("em",{children:"buysellads.net"}),tag:"p"}),(0,Ot.jsx)(dt.vV,{text:"If you have any questions or concerns, please feel free to {1}.",ph1:(0,Ot.jsx)(dt.rU,{to:"mailto:contact@regex101.com",absolute:!0,children:(0,ht.Z)("send an email")}),tag:"p"})]}),(0,Ot.jsx)(Tt.Z,{children:(0,Ot.jsx)(dt.zx,{onClick:h,text:(0,ht.Z)("Close"),type:Ct.V5.n1})})]})]})};const Ti=(0,ot.memo)(Ri);var Ai="regex101-nickname";const Di="_eLp0",Ii="zOliV";var Li=34;const Mi=function(e){var t=e.className,n=(0,at.v9)((function(e){return e.general.permalinkFragment})),r=(0,at.v9)((function(e){return e.general.version})),i=(0,at.v9)((function(e){return e.general.profilePicture})),a=(0,ot.useRef)(function(){var e,t,n=Se.Z.get(Ai);return(!n||"string"!==typeof n||n.length>16||n.includes("..."))&&(e=["Adelie","Hound","Civet","Ainu","Akbash","Akita","Ant","Fox","Hare","Wolf","Mist","Avocet","Baboon","Camel","Badger","Barb","Bat","Beagle","Bear","Collie","Beaver","Beetle","Bichon","Bird","Birman","Bison","Bobcat","Bombay","Bongo","Bonobo","Booby","Boykin","Budgie","Fish","Caiman","Lizard","Canaan","Cat","Cesky","Fousek","Coati","Coral","Cougar","Cow","Coyote","Crab","Crane","Cuscus","Frog","Deer","Bracke","Dhole","Dingo","Discus","Dodo","Dog","Dogo","Donkey","Drever","Duck","Dugong","Dunker","Dusky","Eagle","Mau","Emu","Falcon","Fennec","Ferret","Spitz","Fly","Fossa","Gar","Gecko","Gerbil","Gibbon","Goat","Oriole","Goose","Gopher","Grouse","Guppy","Shark","Heron","Horse","Human","Hyena","Ibis","Iguana","Impala","Indri","Insect","Setter","Jackal","Jaguar","Kakapo","Kiwi","Koala","Kudu","Lemur","Liger","Lion","Llama","Owl","Lynx","Macaw","Magpie","Mayfly","Mole","Molly","Monkey","Moose","Eel","Moray","Moth","Mouse","Mule","Newt","Numbat","Ocelot","Okapi","Olm","Otter","Oyster","Parrot","Pig","Pika","Pike","Poodle","Possum","Prawn","Puffin","Pug","Puma","Pygmy","Quail","Quokka","Quoll","Rabbit","Rat","Robin","Saola","Seal","Serval","Sheep","Shrimp","Skunk","Sloth","Snail","Snake","Somali","Sponge","Squid","Stoat","Swan","Tang","Tapir","Tetra","Tiger","Toucan","Turkey","Uakari","Uguisu","Walrus","Wasp","Weasel","Wombat","Wrasse","Yak","Yorkie","Zebra","Zebu","Zonkey","Zorse"],t=Math.floor(Math.random()*(e.length-1-0+1))+0,n="re101-".concat(e[t].toLowerCase(),"-?"),Se.Z.save(Ai,n)),n}()||"re101-guest-?").current,s=(0,ot.useCallback)((function(){pt.ZP.emit(pt.Rd)}),[]);return(0,Ot.jsxs)("nav",{className:lt()("uOmOI",t),children:[(0,Ot.jsx)(dt.x6,{tooltip:(0,ht.Z)("Regex Editor"),tooltipDirection:Ct.qF.E,to:null!=n?vn(n,r):"/",onClick:s,size:Li,className:Di,activeClassName:Ii,activeRegex:/^\/(?!library|account|quiz|settings)/i,noTheme:!0,children:(0,Ot.jsx)(gt.mV1,{size:18})}),(0,Ot.jsx)(dt.x6,{tooltip:(0,ht.Z)("Regex Library"),tooltipDirection:Ct.qF.E,to:"/library",onClick:s,size:Li,className:Di,activeClassName:Ii,activeRegex:/^\/library/i,noTheme:!0,children:(0,Ot.jsx)(li.Q0w,{size:18})}),(0,Ot.jsx)(dt.x6,{tooltip:(0,ht.Z)("Account"),tooltipDirection:Ct.qF.E,to:"/account/mine",onClick:s,size:Li,className:i?"eDcsT":Di,activeClassName:Ii,activeRegex:/^\/account/i,noTheme:!0,children:i?(0,Ot.jsx)("img",{src:i,style:{height:Li,width:Li},alt:""}):(0,Ot.jsx)(gt.dgb,{size:18})}),(0,Ot.jsx)(dt.x6,{tooltip:(0,ht.Z)("Regex Quiz"),tooltipDirection:Ct.qF.E,to:"/quiz",onClick:s,size:Li,className:Di,activeClassName:Ii,activeRegex:/^\/quiz/i,noTheme:!0,children:(0,Ot.jsx)(gt.Xhu,{size:18})}),(0,Ot.jsx)(dt.x6,{tooltip:(0,ht.Z)("Settings"),tooltipDirection:Ct.qF.E,to:"/settings",onClick:s,size:Li,className:Di,activeClassName:Ii,activeRegex:/^\/settings/i,noTheme:!0,children:(0,Ot.jsx)(yt.b9P,{size:18})}),(0,Ot.jsx)(dt.x6,{tooltip:(0,ht.Z)("Live Help"),tooltipDirection:Ct.qF.E,to:X.WEBCHAT_LINK.replace("<NICKNAME>",a),target:"_blank",size:Li,className:Di,noTheme:!0,absolute:!0,children:(0,Ot.jsx)(gt.IGw,{})})]})};var Bi=["tooltipDirection","tooltipText","onClick","className"];function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gi=function(e){var t=e.tooltipDirection,n=e.tooltipText,r=e.onClick,i=e.className,a=(0,B.Z)(e,Bi);return(0,Ot.jsx)(dt.hU,Fi(Fi({tooltip:n,tooltipDirection:t,size:28,onClick:r,className:lt()("k3zrI",i),tag:"div"},a),{},{children:(0,Ot.jsx)("div",{className:"_wt32",children:(0,Ot.jsx)(gt.B4m,{size:16,className:"wL3Ov"})})}))};const Vi=(0,ot.memo)(Gi);var qi=["onClick"];function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const zi=function(e){var t=e.onClick,n=(0,B.Z)(e,qi);return(0,ot.useEffect)((function(){var e=function(e){return function(){t();for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];pt.ZP.emit.apply(pt.ZP,[e].concat(r))}},n=e("key:updateRegex"),r=e("key:saveRegex"),i=e("key:ctrl1"),a=e("key:ctrl2"),s=e("key:ctrl3"),o=e("key:ctrl4"),c=e("key:ctrlB"),u=e("key:ctrlG");return pt.ZP.on({"key:updateRegex":n,"key:saveRegex":r,"key:ctrl1":i,"key:ctrl2":a,"key:ctrl3":s,"key:ctrl4":o,"key:ctrlB":c,"key:ctrlG":u}),function(){return pt.ZP.off({"key:updateRegex":n,"key:saveRegex":r,"key:ctrl1":i,"key:ctrl2":a,"key:ctrl3":s,"key:ctrl4":o,"key:ctrlB":c,"key:ctrlG":u})}}),[t]),(0,Ot.jsx)(Vi,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({onClick:t},n))},Wi="MPQtP",Yi="XZcdB",Ki="Hf3vu";var Ji=(0,Ht.Z)(zt.s_),Xi={appear:Yi,appearActive:Ki,enter:Yi,enterActive:Ki,exit:"LSp5h",exitActive:"rMyiN"};const Qi=function(e){var t=e.children,n=(0,ot.useState)(!1),r=(0,vt.Z)(n,2),i=r[0],a=r[1],s=(0,ot.useCallback)((function(e){e.stopPropagation(),a(!1)}),[]),o=(0,ot.useCallback)((function(){return a(!0)}),[]),c=(0,ot.useCallback)((function(e){e.stopPropagation(),e.preventDefault()}),[]);return(0,ot.useEffect)((function(){return i&&(pt.ZP.once("key:escape",s),pt.ZP.once(pt.Rd,s)),function(){pt.ZP.off("key:escape",s),pt.ZP.off(pt.Rd,s)}}),[i,s]),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(zi,{className:"SjbhX",tooltipDirection:Ct.qF.SE,tooltipText:(0,ht.Z)("Show Sidebar"),onClick:o}),(0,Ot.jsx)(dt.h_,{isOpen:i,closeTimeout:Ji,children:(0,Ot.jsx)(dt.uT,{className:"cek5f",classNames:Xi,timeout:Ji,in:i,onMouseUp:s,children:(0,Ot.jsx)(dt.iQ,{children:(0,Ot.jsxs)("div",{className:Wi,onMouseUp:c,children:[(0,Ot.jsx)(kt,{className:"cfODq",noClick:!0}),t]})})})})]})};var $i=parseFloat(bt.p4);const ea=function(e){var t=e.alwaysCollapseLeftSidebar,n=(0,ft.Sj)($i),r=(0,ot.useState)(!Ne()||window.navigator.onLine),i=(0,vt.Z)(r,2),a=i[0],s=i[1];(0,ot.useEffect)((function(){var e=function(){return s(!0)},t=function(){return s(!1)};return window.addEventListener("online",e),window.addEventListener("offline",t),function(){window.removeEventListener("online",e),window.removeEventListener("offline",t)}}),[]);var o=(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)("div",{className:"AkJag",children:[(0,Ot.jsx)(Mi,{className:"i1N2B"}),(0,Ot.jsx)("div",{className:"hIvL6",children:(0,Ot.jsxs)(ct.Z5,{children:[(0,Ot.jsx)(ct.AW,{path:"library/*",element:(0,Ot.jsx)(oi,{})}),(0,Ot.jsx)(ct.AW,{path:"/settings/*",element:(0,Ot.jsx)(ui,{})}),(0,Ot.jsx)(ct.AW,{path:"/quiz/*",element:(0,Ot.jsx)(wi,{})}),(0,Ot.jsx)(ct.AW,{path:"/account/*",element:(0,Ot.jsx)(bi,{})}),(0,Ot.jsx)(ct.AW,{path:"/r/:permalinkFragment/:version/*",element:(0,Ot.jsx)(Yr,{})}),(0,Ot.jsx)(ct.AW,{path:"/*",element:(0,Ot.jsx)(Yr,{})})]})})]}),(0,Ot.jsx)(Ti,{className:"XNbml"}),!a&&(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,className:"ELopF",children:(0,ht.Z)("No Internet Connection")})]});return t||n.width<=$i?(0,Ot.jsx)(Qi,{children:o}):(0,Ot.jsx)("div",{className:Wi,children:o})};var ta=n(11162),na=Ne()?(0,ot.lazy)((function(){return Promise.all([n.e(648),n.e(961)]).then(n.bind(n,87168))})):function(){};const ra=function(){var e=(0,at.v9)((function(e){return e.regexEditor.regex})),t=(0,at.v9)((function(e){return e.regexEditor.flags})),n=(0,at.v9)((function(e){return e.regexEditor.delimiter})),r=(0,at.v9)((function(e){return e.regexEditor.testString})),i=(0,at.v9)((function(e){return e.regexEditor.showSubstitutionArea||e.regexEditor.showListSubstitutionArea})),a=(0,at.v9)((function(e){return e.regexEditor.substString})),s=(0,at.v9)((function(e){return e.regexEditor.flavor})),o=(0,st.lr)({language:zr.aQ}),c=(0,vt.Z)(o,1)[0];if(!e)return(0,Ot.jsx)(dt.l_,{to:"/"});var u=c.get("language"),l=zr.vI.find((function(e){return e.value===u}))||zr.vI[0],f=(0,Ot.jsxs)("div",{className:"KRaGv",children:[(0,Ot.jsx)(dt.$j,{className:"cvoeF",size:Ct.J7.TC}),(0,ht.Z)("Loading code sample...")]});return(0,Ot.jsxs)("div",{className:"zOaGx",children:[(0,Ot.jsxs)("div",{className:"vkmye",children:[(0,Ot.jsx)(dt.gx,{header:(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Language")}),className:"kolUL",children:(0,Ot.jsx)(Qt.Z,{children:zr.vI.map((function(e){return(0,Ot.jsx)(ti,{isActive:e.value===l.value,icon:gt.mV1,to:"?language=".concat(e.value),children:e.string},"codegen-".concat(e.value))}))})}),(0,Ot.jsx)(dt.gx,{header:(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Generated Code")}),className:"EHsbj",children:(0,Ot.jsx)(ta.Z,{className:"tu4NX",children:(0,Ot.jsx)(dt.I2,{fallback:f,children:(0,Ot.jsx)(na,{regex:e,flags:t,delimiter:n,testString:r,isSubstituting:i,substString:a,flavor:s,isGlobal:t.includes("g"),language:l.value})})})})]}),(0,Ot.jsxs)(dt.qX,{className:"UB_yQ",children:[(0,Ot.jsx)("p",{children:(0,ht.Z)("Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report.")}),(0,Ot.jsxs)("p",{children:[(0,ht.Z)("For a full regex reference for {1}, please visit:",l.string)," ",(0,Ot.jsx)(dt.rU,{to:l.referencePage,absolute:!0,target:"_blank",children:l.referencePage})]})]})]})};var ia=Ne()?(0,ot.lazy)((function(){return n.e(153).then(n.bind(n,49159))})):function(){};const aa=function(){var e=(0,ct.UO)(),t=e.permalinkFragment,n=e.version,r=(0,st.lr)(),i=(0,vt.Z)(r,1)[0].get("testId"),a=(0,at.v9)((function(e){return e.regexEditor.showUnitTestArea})),s=(0,at.v9)((function(e){return isNaN(i)?null:e.unitTests.tests[i]})),o=(0,at.v9)((function(e){return e.regexEditor.regex})),c=(0,at.v9)((function(e){return e.regexEditor.delimiter})),u=(0,at.v9)((function(e){return e.regexEditor.flags})),l=(0,at.v9)((function(e){return e.regexEditor.testString})),f=(0,at.v9)((function(e){return e.regexEditor.flavor}));if(!(0,Hr.G)(f)||""===o||a&&null==s){var h=null!=t?"/r/".concat(t,"/").concat(n):"/";return(0,Ot.jsx)(dt.l_,{to:h})}var p=(0,Ot.jsxs)("div",{className:"pWsZe",children:[(0,Ot.jsx)(dt.$j,{className:"q_luf"}),(0,Ot.jsx)("div",{className:"_6fv9",children:(0,ht.Z)("Please wait while your expression is being debugged...")})]});return(0,Ot.jsx)(dt.I2,{fallback:p,errorClassName:"LeB5S",children:(0,Ot.jsx)(ia,{regex:o,flags:u,testString:(null===s||void 0===s?void 0:s.testString)||l,flavor:f,delimiter:c})})};var sa=n(17159);const oa="luWMx",ca="xYbLs";function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fa=(0,Ht.Z)(zt.oA),ha={appear:oa,appearActive:ca,enter:oa,enterActive:ca,exit:"d0ccR",exitActive:"CZqGt"},pa=function(e){var t=e.children,n=e.title,r=e.preserveLocation,i=e.location,a=(0,ct.s0)(),s=(0,ot.useMemo)((function(){var e=(0,ct.i3)("..",i.pathname);return r?la(la({},i),{},{pathname:e.pathname}):e}),[i,r]),o=(0,ot.useCallback)((function(e){e.stopPropagation(),a(s)}),[a,s]);(0,ot.useEffect)((function(){return pt.ZP.once("key:escape",o),pt.ZP.emit(pt.B3,rn.UPDATE_REGEX),pt.ZP.emit(pt.B3,rn.SAVE_REGEX),function(){pt.ZP.off("key:escape",o),pt.ZP.emit(pt.LG,rn.UPDATE_REGEX),pt.ZP.emit(pt.LG,rn.SAVE_REGEX)}}),[o]);var c=(0,ot.useCallback)((function(e){return e.stopPropagation()}),[]);return(0,Ot.jsx)(dt.iQ,{children:(0,Ot.jsx)("div",{className:"FAEdS",onClick:o,children:(0,Ot.jsx)("div",{className:"oc96W",children:(0,Ot.jsxs)("div",{className:"Q0dmP",onClick:c,children:[(0,Ot.jsxs)("div",{className:"OaNsb",children:[(0,Ot.jsx)("h1",{children:n}),(0,Ot.jsx)(dt.Yd,{className:"MGagp",onClick:o,"aria-label":(0,ht.Z)("Close"),children:(0,Ot.jsx)(gt.eSQ,{size:24,className:"e1IQs"})})]}),(0,Ot.jsx)("div",{className:"wy53k",children:t})]})})})})};const da=function(e){var t=e.children,n=e.title,r=e.preserveLocation,i=void 0!==r&&r,a=e.path,s=(0,ct.TH)();return(0,Ot.jsx)(dt.h_,{isOpen:!0,closeTimeout:fa,children:(0,Ot.jsx)(ki.Z,{component:null,children:(0,Ot.jsx)(sa.Z,{classNames:ha,timeout:fa,children:(0,Ot.jsx)(ct.Z5,{location:s,children:(0,Ot.jsx)(ct.AW,{path:a,element:(0,Ot.jsx)(pa,{children:t,title:n,preserveLocation:i,location:s})})})},s.pathname)})})};var va=n(90375);const ga="PngQi";var ma=function(e){var t=e.onResize,n=e.className,r=(0,ot.useState)(!1),i=(0,vt.Z)(r,2),a=i[0],s=i[1],o=(0,ot.useState)(0),c=(0,vt.Z)(o,2),u=c[0],l=c[1],f=(0,ot.useState)(0),h=(0,vt.Z)(f,2),p=h[0],d=h[1],v=(0,ot.useCallback)((function(e){s(!0),l(e.clientX),d(e.clientY)}),[]);return(0,ot.useEffect)((function(){var e=function(e){return t({x:e.clientX,y:e.clientY,dx:Math.abs(u-e.clientX),dy:Math.abs(p-e.clientY)})},n=function t(){document.body.classList.remove(ga),window.removeEventListener("mouseup",t,{passive:!0}),window.removeEventListener("mousemove",e,{passive:!0}),s(!1)};return a&&(document.body.classList.add(ga),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("mousemove",e,{passive:!0})),function(){document.body.classList.remove(ga),window.removeEventListener("mouseup",n,{passive:!0}),window.removeEventListener("mousemove",e,{passive:!0})}}),[a,t,u,p]),(0,Ot.jsx)("div",{className:lt()("Kmeux",n),onMouseDown:v})};const ya=(0,ot.memo)(ma),xa=function(e){var t=e.children,n=(0,at.I0)(),r=(0,at.v9)((function(e){return e.rightSidebar.width})),i=(0,ot.useState)(r),a=(0,vt.Z)(i,2),s=a[0],o=a[1],c=(0,ot.useRef)(null),u=(0,va.Z)((function(e){n((0,Ee.Gj)(e)),n((0,Ee.Ot)()),o(e)}),X.UPDATE_RESULT_DELAY),l=(0,ot.useCallback)((function(e){var t;pt.ZP.emit(pt.$7);var n=window.innerWidth-e.x;u(n),null!==(t=c.current)&&void 0!==t&&t.style&&(c.current.style.width="".concat(n,"px"))}),[u]);return(0,ot.useEffect)((function(){return function(){return u.cancel()}}),[u]),(0,Ot.jsxs)("div",{className:"IPjTl",style:{width:"".concat(s,"px")},ref:c,children:[(0,Ot.jsx)(ya,{className:"RyQaE",onResize:l}),t]})};var ba=n(15671),ja=n(43144),Za=n(60136),Oa=n(82963),wa=n(61120),ka=["className","nodeLabel","children","defaultCollapsed","onClick"];function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Pa=function(e){var t=e.className,n=e.nodeLabel,r=e.children,i=e.defaultCollapsed,a=void 0!==i&&i,s=e.onClick,o=(0,B.Z)(e,ka),c=(0,ot.useState)(a),u=(0,vt.Z)(c,2),l=u[0],f=u[1],h=(0,ot.useCallback)((function(){f((function(e){return!e})),s&&s.apply(void 0,arguments)}),[s]);return(0,Ot.jsxs)("div",Ea(Ea({className:lt()("UHIuh",t),onClick:s},o),{},{children:[(0,Ot.jsxs)("div",{className:"eZsI3",children:[(0,Ot.jsx)(dt.Yd,{className:"ng0cj",onClick:h,children:(0,Ot.jsx)("div",{className:lt()("NjK4I",l&&"qtFSJ")})}),n]}),!l&&(0,Ot.jsx)("div",{className:"UF5u5",children:r})]}))};var Sa=n(67664),_a=n(1277),Na=n(20400),Ra=n(1947);function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Da(e){return(0,Ot.jsx)("span",{className:Ra.Z.tokenSample,children:(0,Ot.jsx)(Na.Z,{text:e})})}function Ia(e){return(0,Ot.jsx)("span",{className:Ra.Z.keyword,children:e})}function La(e){return(0,Ot.jsx)("span",{className:Ra.Z.plainText,children:(0,Ot.jsx)(Na.Z,{text:e,removeNewlines:!0})})}function Ma(e){var t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Ba(e){return e.map((function(e,t){return e.error?(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("span",{className:lt()(Ra.Z.token,e.style),children:e.string})," ",Ua(e.error)]},"error-explanation-".concat(t)):null}))}function Ua(e){switch(e){case Sa.CL:return(0,ht.Z)("Incomplete group structure");case Sa.Xu:return(0,ht.Z)("The condition is invalid (you may be referencing a non-existent subpattern or group)");case Sa.wi:return(0,ht.Z)("A subpattern name must be unique");case Sa.kU:return(0,ht.Z)("A subpattern name must be alpha numeric and may not begin with a digit");case Sa.cs:return(0,ht.Z)("There are too many alternatives within the parent structure");case Sa.gN:return(0,ht.Z)("This verb is unknown or invalid");case Sa.As:return(0,ht.Z)("This verb must be placed at the start of the regex");case Sa.Bj:return(0,ht.Z)("This token references a non-existent or invalid subpattern");case Sa.RY:return(0,ht.Z)("The preceding token is not quantifiable");case Sa.Hh:return(0,ht.Z)("The quantifier range is out of order");case Sa.sw:return(0,ht.Z)("Character class missing closing bracket");case Sa.i0:return(0,ht.Z)("Character range is out of order");case Sa.fA:return(0,ht.Z)("A posix character class may only appear inside a character class");case Sa.VM:return(0,ht.Z)("The posix class is unknown/invalid");case Sa.RH:return(0,ht.Z)("This token is not supported in the selected flavor");case Sa.zX:return(0,ht.Z)("Pattern may not end with a trailing backslash");case Sa.t0:return(0,Ot.jsx)(dt.vV,{text:"An unescaped delimiter must be escaped with a backslash ({1})",ph1:Da("\\")});case Sa.Yo:return(0,ht.Z)("No hex code was specified");case Sa.y1:return(0,ht.Z)("The character offset is too large");case Sa.oH:return(0,ht.Z)("Surrogate values are disallowed in Unicode mode");case Sa.Rf:return(0,ht.Z)("The value specified is too large");case Sa.XD:return(0,ht.Z)("A quote without content has ambiguous behavior and should be avoided");case Sa.YY:return(0,ht.Z)("The token is incomplete");case Sa.xi:return(0,ht.Z)("This script is unknown/invalid");case Sa.Iu:return(0,ht.Z)("Invalid control character");case Sa.mi:return(0,ht.Z)("This token has no special meaning and has thus been rendered erroneous");case Sa.bk:return(0,ht.Z)("A named subpattern may not have a name which length exceeds 32 characters");case Sa.eB:return(0,ht.Z)("A lookbehind assertion has to be fixed width");case Sa.jV:return(0,ht.Z)("This token can not be used in a lookbehind due to either making it non-fixed width or interfering with the pattern matching");case Sa.Cc:return(0,ht.Z)("A quantifier inside a lookbehind makes it non-fixed width");case Sa.M3:return(0,ht.Z)("Regex101 only supports inline modifiers to be placed at the start of the regex for python (which is also best practice)");case Sa.mB:return(0,Ot.jsx)(dt.vV,{text:"You can not set both the {1} and {2} flag simultaneously",ph1:(0,Ot.jsx)("strong",{className:Ra.Z.flags,children:"a"}),ph2:(0,Ot.jsx)("strong",{className:Ra.Z.flags,children:"u"})});case Sa.BC:return(0,ht.Z)("You cannot create a range with shorthand escape sequences");case Sa.jb:return(0,ht.Z)("The escape sequence to match backspace is not supported in the selected flavor");case Sa.d3:return(0,ht.Z)("Due to a bug in PCRE creating ranges with an escaped literal is unsafe. To avoid this, simply use the literal representation instead");case Sa.K0:return(0,ht.Z)("Invalid unicode escape");case Sa.Vt:return(0,ht.Z)("Quantifier range is too large");case Sa.wn:return(0,ht.Z)("Groups with the same index must either have the same name or both be non-named groups");case Sa.f0:return(0,ht.Z)("Unmatched parenthesis");case Sa.IA:return(0,Ot.jsx)(dt.vV,{text:"This token must be escaped when the {1} flag is enabled unless they form a valid quantifier",ph1:(0,Ot.jsx)("strong",{className:Ra.Z.flag,children:"u"})});case Sa.Y4:return(0,ht.Z)("The range is invalid because either the left or right token is erroneous");case Sa.wW:return(0,ht.Z)("Bogus escape: this escape is not recognized in the python flavor");case Sa.Qc:return(0,Ot.jsx)(dt.vV,{text:"Backticks can not be used in a raw string, use {1} instead",ph1:Da("\\x60")});case Sa.$H:return(0,ht.Z)("POSIX Word Boundaries must be the only item inside a character class");case Sa.Af:return(0,ht.Z)("Character range with surrogate pairs without unicode enabled results in ambiguous behavior");case Sa.of:return(0,Ot.jsx)(dt.vV,{text:"This token is not valid under strict mode, and may cause certain browsers to throw errors. If you need to reference this subpattern, use the {1} syntax, otherwise use the token literally.",ph1:Da("$n")});case Sa.Gz:return(0,ht.Z)("Invalid placement of hyphen; there may only be one inside the group");case Sa.rs:return(0,ht.Z)("Unmatched opening bracket");case Sa.Jf:return(0,ht.Z)("The number following the backslash is too large");case Sa.O3:return(0,ht.Z)("You may not use a null byte in your regex, as that effectively terminates it at that position");case Sa.jz:return(0,ht.Z)("Invalid character class intersection. Make sure the tokens to the left and right of this token are intersectable");case Sa.sb:return(0,ht.Z)("Named backreference may not be used before group definition");case Sa.Oy:return(0,ht.Z)("Backreferences may not be placed inside character classes. If you meant to create an octal escape, prefix the escape with a 0.");case Sa.Ey:return(0,Ot.jsx)(dt.vV,{text:"End quote literals without a corresponding open quote literal {1} match null, and only serve to create visual noise. If you meant to match the literal {2}, remove the backslash.",ph1:Da("\\Q"),ph2:La("E")});case Sa.xX:return(0,ht.Z)("You cannot nest conditional replacements more than 10 levels deep");default:return it.O7(new Error("Unknown error type '".concat(e,"'"))),null}}function Fa(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.state.lineTerminators,i="";t&&-1!==r.indexOf("\\r")&&-1!==r.indexOf("\\n")&&-1===r.indexOf("\\r\\n")&&(i="(".concat((0,ht.Z)("with no special consideration for the \\r\\n sequence"),")"));var a="";return a=n?(0,ht.Z)("Lines are delimited by: {1} {2}",r.join(", "),i):(0,ht.Z)("Line terminator(s) are: {1} {2}",r.join(", "),i),(0,Ot.jsx)(dt.lx,{text:a,direction:Ct.qF.NW,multiline:!0,children:(0,Ot.jsx)("div",{className:Ra.Z.tooltip,children:(0,Ot.jsx)(gt.zXH,{size:16,className:Ra.Z.icon})})})}var Ga=function(e){for(var t=[],n=null,r=0,i=e.length;r<i;r++){var a=e[r];if(a.string){var s={string:a.string,style:a.style};a.editorPosition&&(s.editorPosition={start:{pos:a.editorPosition.start.pos,line:a.editorPosition.start.line},end:{pos:a.editorPosition.end.pos,line:a.editorPosition.end.line}}),n&&n.style===s.style?(n.string+=s.string,s.editorPosition&&(n.editorPosition.end=s.editorPosition.end)):(t.push(s),n=s)}}return t},Va=function(e){for(var t=0,n=0;n<e.length;){for(var r=e.codePointAt(n),i=0;r;)i+=1,r>>=8;n+=Math.round(i/2),t+=1}return t};function qa(e,t){return Ha(e,t)}function Ha(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.state.flags.includes("x"),i=e.state.flags.includes("xx"),a=e.state.flags.includes("i"),s=t;if(!n&&(r&&!e.state.inCharClass||i)&&e.type!==_a.$U&&(s=s.replace(/[ \t\r\n\f]/g,"")),0===s.length)return{explanation:null};var o=e.codePoint||e.charCode;if(e.isSubstitution)return{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the character {1} with index {2} ({3} or {4})",ph1:La(s),ph2:Ia((0,Ot.jsxs)(Ot.Fragment,{children:[o,(0,Ot.jsx)("sub",{children:"10"})]})),ph3:Ia((0,Ot.jsxs)(Ot.Fragment,{children:[o.toString(16).toUpperCase(),(0,Ot.jsx)("sub",{children:"16"})]})),ph4:Ia((0,Ot.jsxs)(Ot.Fragment,{children:[o.toString(8).toUpperCase(),(0,Ot.jsx)("sub",{children:8})]}))})};var c=Va(s),u=a?(0,ht.Z)("case insensitive"):(0,ht.Z)("case sensitive");if(e.state.inCharClass&&c>1){var l=(0,ne.Z)(s).join("");return{explanation:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,ht.Z)("matches a single character in the list")," ",La(l)," (",u,")"]})}}var f=e.state.inCharClass&&e.isPoorlyPlaced&&"-"===t?(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("This hyphen is treated literally, which might be confusing for others. Consider escaping it or placing at the start or end of the class.")}):null;return 1===c&&e.type!==_a.$U?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the character {1} with index {2} ({3} or {4}) literally ({5})",ph1:La(s),ph2:Ia((0,Ot.jsxs)(Ot.Fragment,{children:[o,(0,Ot.jsx)("sub",{children:"10"})]})),ph3:Ia((0,Ot.jsxs)(Ot.Fragment,{children:[o.toString(16).toUpperCase(),(0,Ot.jsx)("sub",{children:"16"})]})),ph4:Ia((0,Ot.jsxs)(Ot.Fragment,{children:[o.toString(8).toUpperCase(),(0,Ot.jsx)("sub",{children:8})]})),ph5:u}),notice:f}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the characters {1} literally ({2})",ph1:La(s),ph2:u}),notice:f}}function za(e){return 0===e?(0,ht.Z)("zero"):1===e?(0,ht.Z)("one"):e===1/0?(0,ht.Z)("unlimited"):e}function Wa(e,t,n,r){var i=function(e,t,n){if("g"===t)return(0,Ot.jsx)(dt.vV,{text:"{1}. All matches (don't return after first match)",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"g"}),"lobal"]})});if("i"===t)return n?(0,Ot.jsx)(dt.vV,{text:"{1}. Case insensitive match (ignores case of {2})",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"i"}),"nsensitive"]}),ph2:Da("[a-zA-Z]")}):(0,Ot.jsx)(dt.vV,{text:"{1}. Case sensitive match",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["-",(0,Ot.jsx)("strong",{children:"i"}),"nsensitive"]})});if("J"===t)return n?(0,Ot.jsx)(dt.vV,{text:"Allow duplicate subpattern names"}):(0,Ot.jsx)(dt.vV,{text:"Disallow duplicate subpattern names"});if("s"===t)return n?(0,Ot.jsx)(dt.vV,{text:"{1}. Dot matches newline characters {2}",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"s"}),"ingle line"]}),ph2:e===C().JAVASCRIPT?(0,Ot.jsx)("strong",{children:"(draft)"}):""}):(0,Ot.jsx)(dt.vV,{text:"{1}. A dot won't match {2}",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["-",(0,Ot.jsx)("strong",{children:"s"}),"ingle line"]}),ph2:Da("\\n")});if("m"===t)return n?(0,Ot.jsx)(dt.vV,{text:"{1}. Causes {2} and {3} to match the begin/end of each line (not only begin/end of string)",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"m"}),"ulti line"]}),ph2:Da("^"),ph3:Da("$")}):(0,Ot.jsx)(dt.vV,{text:"{1}. Causes {2} and {3} to match begin/end of string",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["-",(0,Ot.jsx)("strong",{children:"m"}),"ulti line"]}),ph2:Da("^"),ph3:Da("$")});if("xx"===t)return n?(0,Ot.jsx)(dt.vV,{text:"{1}. Spaces and text after a {2} in the pattern are ignored (even whitespace inside character classes)",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["e",(0,Ot.jsx)("strong",{children:"x"}),"tra e",(0,Ot.jsx)("strong",{children:"x"}),"tended"]}),ph2:Ia("#")}):(0,Ot.jsx)(dt.vV,{text:"{1}. Whitespaces and {2} in the pattern are treated literally",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["-e",(0,Ot.jsx)("strong",{children:"x"}),"tra e",(0,Ot.jsx)("strong",{children:"x"}),"tended"]}),ph2:Ia("#")});if("x"===t)return n?(0,Ot.jsx)(dt.vV,{text:"{1}. Spaces and text after a {2} in the pattern are ignored",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["e",(0,Ot.jsx)("strong",{children:"x"}),"tended"]}),ph2:Ia("#")}):(0,Ot.jsx)(dt.vV,{text:"{1}. Whitespaces and {2} in the pattern are treated literally",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["-e",(0,Ot.jsx)("strong",{children:"x"}),"tended"]}),ph2:Ia("#")});if("X"===t)return(0,Ot.jsx)(dt.vV,{text:"{1}. A {2} followed by a letter with no special meaning is faulted",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["e",(0,Ot.jsx)("strong",{children:"X"}),"tra"]}),ph2:Ia("\\")});if("A"===t)return(0,Ot.jsx)(dt.vV,{text:"{1}. The pattern is forced to become anchored at the start of the search, or at the position of the last successful match, equivalent to a {2}",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"A"}),"nchored"]}),ph2:Da("\\G")});if("U"===t)return e===C().JAVA?(0,Ot.jsx)(dt.vV,{text:"{1}. Enable the built in character classes to also match unicode characters",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"U"}),"nicode"]})}):n?(0,Ot.jsx)(dt.vV,{text:"{1}. The match becomes lazy by default. Now a {2} following a quantifier makes it greedy",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"U"}),"ngreedy"]}),ph2:Da("?")}):(0,Ot.jsx)(dt.vV,{text:"{1}. The match becomes greedy by default",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["-",(0,Ot.jsx)("strong",{children:"U"}),"ngreedy"]})});if("u"===t){if(e===C().PCRE||e===C().PCRE2)return(0,Ot.jsx)(dt.vV,{text:"{1}. Pattern strings are treated as {2}. Also causes escape sequences to match unicode characters",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"u"}),"nicode"]}),ph2:Ia("UTF-16")});if(e===C().PYTHON)return(0,Ot.jsx)(dt.vV,{text:"{1}. Make {2}, {3}, {4}, {5}, {6}, {7}, {8} and {9} perform matching with Unicode semantic (redundant in Python 3)",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"u"}),"nicode"]}),ph2:Da("\\w"),ph3:Da("\\W"),ph4:Da("\\b"),ph5:Da("\\B"),ph6:Da("\\d"),ph7:Da("\\D"),ph8:Da("\\s"),ph9:Da("\\S")});if(e===C().JAVASCRIPT)return(0,Ot.jsx)(dt.vV,{text:"{1}. Enable all unicode features and interpret all unicode escape sequences as such",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"u"}),"nicode"]})});if(e===C().JAVA)return n?(0,Ot.jsx)(dt.vV,{text:"{1}. Apply case insensitive matching to unicode characters in accordance with the unicode standard",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"u"}),"nicode case"]})}):(0,Ot.jsx)(dt.vV,{text:"{1}. Case insensitive matching is only applied to the US-ASCII character set",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["-",(0,Ot.jsx)("strong",{children:"u"}),"nicode case"]})})}return"a"===t?(0,Ot.jsx)(dt.vV,{text:"{1}. Force the escape sequences {2}, {3}, {4}, {5}, {6}, {7}, {8} and {9} to perform ASCII-only matching instead of full Unicode matching",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"a"}),"scii"]}),ph2:Da("\\w"),ph3:Da("\\W"),ph4:Da("\\b"),ph5:Da("\\B"),ph6:Da("\\d"),ph7:Da("\\D"),ph8:Da("\\s"),ph9:Da("\\S")}):"D"===t?(0,Ot.jsx)(dt.vV,{text:"{1}. Force the a dollar sign, {2}, to always match end of the string, instead of end of the line. This option is ignored if the {3}-flag is set",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"D"}),"ollar"]}),ph2:Da("$"),ph3:Da("m")}):"y"===t?(0,Ot.jsx)(dt.vV,{text:"{1}. Force the pattern to only match consecutive matches from where the previous match ended.",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["stick",(0,Ot.jsx)("strong",{children:"y"})]})}):"n"===t?n?(0,Ot.jsx)(dt.vV,{text:"{1}. All capturing groups {2} are instead treated as if they were non-capturing groups {3}.",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"no"})," capture"]}),ph2:Da("()"),ph3:Da("(?:)")}):(0,Ot.jsx)(dt.vV,{text:"{1}. Capturing groups {2} are no longer treated as if they were non-capturing groups {3}.",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{children:"no"})," capture"]}),ph2:Da("()"),ph3:Da("(?:)")}):"d"===t?(0,Ot.jsx)(dt.vV,{text:"{1}. The JavaScript regex engine now returns the indices at which the regex matched in the subject string.",ph1:(0,Ot.jsxs)(Ot.Fragment,{children:["in",(0,Ot.jsx)("strong",{children:"d"}),"ices"]})}):void 0}(e,t,r);return i?(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("span",{className:lt()(Ra.Z.flag,!r&&Ra.Z.flagDisabled),children:(0,ht.Z)("{1} modifier:",t)})," ",i]},"flag-".concat(t,"-").concat(r,"-").concat(n)):(it.O7(new Error("Unable to explain '".concat(t,"'"))),null)}const Ya=function(e,t,n){return[].concat(null===e||void 0===e?void 0:e.map((function(e,t){return Wa(n,e,t,!0)})),null===t||void 0===t?void 0:t.map((function(e,t){return Wa(n,e,t,!1)})))},Ka=function(e){switch(e){case"Letter":case"L":return(0,ht.Z)("matches any kind of letter from any language");case"Lowercase_Letter":case"Ll":return(0,ht.Z)("matches a lowercase letter that has an uppercase variant");case"Uppercase_Letter":case"Lu":return(0,ht.Z)("matches an uppercase letter that has a lowercase variant");case"Titlecase_Letter":case"Lt":return(0,ht.Z)("matches a letter that appears at the start of a word when only the first letter of the word is capitalized");case"Cased_Letter":case"LC":case"L&":return(0,Ot.jsx)(dt.vV,{text:"matches a letter that exists in lowercase and uppercase variants (combination of {1}, {2} and {3})",ph1:Da("Ll"),ph2:Da("Lu"),ph3:Da("Lt")});case"Modifier_Letter":case"Lm":return(0,ht.Z)("matches a special character that is used like a letter");case"Other_Letter":case"Lo":return(0,ht.Z)("matches a letter or ideograph that does not have lowercase and uppercase variants");case"Mark":case"M":return(0,ht.Z)("matches a character intended to be combined with another character (e.g. accents, umlauts, enclosing boxes, etc.)");case"Nonspacing_Mark":case"Mn":return(0,ht.Z)("matches a character intended to be combined with another character without taking up extra space (e.g. accents, umlauts, etc.)");case"Spacing_Mark":case"Mc":return(0,ht.Z)("matches a character intended to be combined with another character that takes up extra space (vowel signs in many Eastern languages)");case"Enclosing_Mark":case"Me":return(0,ht.Z)("matches a character that encloses the character is is combined with (circle, square, keycap, etc.)");case"Separator":case"Z":return(0,ht.Z)("matches any kind of whitespace or invisible separator");case"Space_Separator":case"Zs":return(0,ht.Z)("matches a whitespace character that is invisible, but does take up space");case"Line_Separator":case"Zl":return(0,Ot.jsx)(dt.vV,{text:"matches a line separator character {1}",ph1:Ia("U+2028")});case"Paragraph_Separator":case"Zp":return(0,Ot.jsx)(dt.vV,{text:"matches a paragraph separator character {1}",ph1:Ia("U+2029")});case"Symbol":case"S":return(0,ht.Z)("matches any math symbols, currency signs, dingbats, box-drawing characters, etc");case"Math_Symbol":case"Sm":return(0,ht.Z)("matches any mathematical symbol");case"Currency_Symbol":case"Sc":return(0,ht.Z)("matches any currency sign");case"Modifier_Symbol":case"Sk":return(0,ht.Z)("matches a combining character (mark) as a full character on its own");case"Other_Symbol":case"So":return(0,ht.Z)("matches various symbols that are not math symbols, currency signs, or combining characters");case"Number":case"N":return(0,ht.Z)("matches any kind of numeric character in any script");case"Decimal_Number":case"Nd":return(0,ht.Z)("matches a digit zero through nine in any script except ideographic scripts");case"Letter_Number":case"Nl":return(0,ht.Z)("matches a number that looks like a letter, such as a Roman numeral");case"Other_Number":case"No":return(0,ht.Z)("matches a superscript or subscript digit, or a number that is not a digit (excluding numbers from ideographic scripts)");case"Punctuation":case"P":return(0,ht.Z)("matches any kind of punctuation character");case"Dash_Punctuation":case"Pd":return(0,ht.Z)("matches any kind of hyphen or dash");case"Open_Punctuation":case"Ps":return(0,ht.Z)("matches any kind of opening bracket");case"Close_Punctuation":case"Pe":return(0,ht.Z)("matches any kind of closing bracket");case"Initial_Punctuation":case"Pi":return(0,ht.Z)("matches any kind of opening quote");case"Final_Punctuation":case"Pf":return(0,ht.Z)("matches any kind of closing quote");case"Connector_Punctuation":case"Pc":return(0,ht.Z)("matches a punctuation character such as an underscore that connects words");case"Other_Punctuation":case"Po":return(0,ht.Z)("matches any kind of punctuation character that is not a dash, bracket, quote or connector");case"Other":case"C":return(0,ht.Z)("matches invisible control characters and unused code points");case"Control":case"Cc":return(0,Ot.jsx)(dt.vV,{text:"matches an ASCII {1} or Latin-1 {2} control character",ph1:Da("[\\x00-\\x1F]"),ph2:Da("[\\x80-\\x9F]")});case"Format":case"Cf":return(0,ht.Z)("matches invisible formatting indicator");case"Private_Use":case"Co":return(0,ht.Z)("matches any code point reserved for private use");case"Surrogate":case"Cs":return(0,Ot.jsx)(dt.vV,{text:"matches one half of a surrogate pair in {1} encoding",ph1:Ia("UTF-16")});case"Unassigned":case"Cn":return(0,ht.Z)("matches any code point to which no character has been assigned");default:return null}};function Ja(e,t,n){var r=e.codePoint||e.charCode,i=String.fromCodePoint(r);if(e.isSubstitution)return{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the character {1} with index {2} ({3} or {4})",ph1:La(i),ph2:Ia((0,Ot.jsxs)(ot.Fragment,{children:[r.toString(t).toUpperCase(),(0,Ot.jsx)("sub",{children:t})]})),ph3:Ia((0,Ot.jsxs)(ot.Fragment,{children:[r,(0,Ot.jsx)("sub",{children:"10"})]})),ph4:Ia((0,Ot.jsxs)(ot.Fragment,{children:[r.toString(n).toUpperCase(),(0,Ot.jsx)("sub",{children:n})]}))})};var a=-1!==e.state.flags.indexOf("i")?(0,ht.Z)("case insensitive"):(0,ht.Z)("case sensitive");return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the character {1} with index {2} ({3} or {4}) literally ({5})",ph1:La(i),ph2:Ia((0,Ot.jsxs)(ot.Fragment,{children:[r.toString(t).toUpperCase(),(0,Ot.jsx)("sub",{children:t})]})),ph3:Ia((0,Ot.jsxs)(ot.Fragment,{children:[r,(0,Ot.jsx)("sub",{children:"10"})]})),ph4:Ia((0,Ot.jsxs)(ot.Fragment,{children:[r.toString(n).toUpperCase(),(0,Ot.jsx)("sub",{children:n})]})),ph5:a})}}function Xa(e){var t=isNaN(e.reference)||null==e.reference?e.reference:Ma(e.reference);if(e.backreference)return(0,Ot.jsx)(dt.vV,{tag:"span",text:"Conditionally matches one of two options depending on whether the {1} capturing group matched",ph1:Ia(t)});if(e.subroutine)return null===t&&"R"===e.condition?(0,Ot.jsx)(dt.vV,{tag:"span",text:"Checks whether the whole pattern matches",ph1:Ia(t)}):(0,Ot.jsx)(dt.vV,{tag:"span",text:"Checks whether the {1} subroutine matches",ph1:Ia(t)});throw new Error("Condition type is not specified")}const Qa=function(e){var t=e.conditional;return t.lookaround?{explanation:(0,Ot.jsx)(dt.vV,{text:"Conditionally matches one of two options depending on whether the lookaround matches"})}:{explanation:Xa(t)}};var $a=n(43154),es=n(20411);function ts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ns(e,t)}function ns(e,t){var n=e.token,r=e.string,i=n.type;return i===_a.MW?function(e,t){var n,r=e.string.length>1?e.string.charAt(1):e.string.charAt(0),i=-1!==e.state.flags.indexOf("u"),a=-1!==e.state.flags.indexOf("m"),s=-1!==e.state.flags.indexOf("s"),o=-1!==e.state.flags.indexOf("D"),c=e.state.flavor===C().JAVASCRIPT,u=e.state.flavor===C().PYTHON;if("w"===r)return i&&!c?{explanation:(0,Ot.jsx)(dt.vV,{text:"match any word character in any script (equivalent to {1})",ph1:Da("[\\p{L}\\p{N}_]")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any word character (equivalent to {1})",ph1:Da("[a-zA-Z0-9_]")})};if("W"===r)return i&&!c?{explanation:(0,Ot.jsx)(dt.vV,{text:"match any non-word character in any script (equivalent to {1})",ph1:Da("[^\\p{L}\\p{N}_]")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any non-word character (equivalent to {1})",ph1:Da("[^a-zA-Z0-9_]")})};if("d"===r)return i&&!c?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a digit zero through nine in any script except ideographic scripts (equivalent to {1})",ph1:Da("\\p{Nd}")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a digit (equivalent to {1})",ph1:Da("[0-9]")})};if("D"===r)return i&&!c?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any non-numeric character in any script (equivalent to {1})",ph1:Da("\\p{Nd}")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any character that's not a digit (equivalent to {1})",ph1:Da("[^0-9]")})};if("s"===r){if(c)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any whitespace character (equivalent to {1})",ph1:Da("[\\r\\n\\t\\f\\v \\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]")})};if(i)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any kind of invisible character (equivalent to {1})",ph1:Da("[\\p{Z}\\h\\v]")})};var l=Da(u?"[\\r\\n\\t\\f\\v \xa0]":"[\\r\\n\\t\\f\\v ]");return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any whitespace character (equivalent to {1})",ph1:l})}}if("S"===r)return c?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any non-whitespace character (equivalent to {1})",ph1:Da("[^\\r\\n\\t\\f\\v \\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]")})}:i?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any kind of visible character (equivalent to {1})",ph1:Da("[^\\p{Z}\\h\\v]")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any non-whitespace character (equivalent to {1})",ph1:Da("[^\\r\\n\\t\\f\\v ]")})};if("h"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any horizontal whitespace character (equivalent to {1})",ph1:Da("[[:blank:]]")})};if("H"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any character that's not a horizontal whitespace character"})};if("v"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any vertical whitespace character"})};if("V"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any character that's not a vertical whitespace character"})};if("N"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any non-newline character"})};if("R"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any Unicode newline sequence"})};if("C"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches one data unit, even in UTF mode (best avoided)"})};if("X"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any number of Unicode characters that form an extended Unicode sequence"})};if("t"===r)return e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts a tab character {1}",ph1:Ia("(ASCII 9)")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a tab character {1}",ph1:Ia("(ASCII 9)")})};if("r"===r)return e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts a carriage return {1}",ph1:Ia("(ASCII 13)")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a carriage return {1}",ph1:Ia("(ASCII 13)")})};if("n"===r)return e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts a line-feed (newline) character {1}",ph1:Ia("(ASCII 10)")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a line-feed (newline) character {1}",ph1:Ia("(ASCII 10)")})};if("f"===r)return e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts a form-feed character {1}",ph1:Ia("(ASCII 12)")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a form-feed character {1}",ph1:Ia("(ASCII 12)")})};if("a"===r)return e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the bell character {1}",ph1:Ia("(ASCII 7)")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the bell character {1}",ph1:Ia("(ASCII 7)")})};if("e"===r)return e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts esc {1}",ph1:Ia("(ASCII 7)")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches esc {1}",ph1:Ia("(ASCII 7)")})};if("b"===r){var f=(0,Ot.jsx)("span",{className:Ra.Z.zeroWidth}),h=(0,Ot.jsxs)("span",{className:Ra.Z.tokenSample,children:["(^",f,"\\w|\\w",f,"$|\\W",f,"\\w|\\w",f,"\\W)"]});return{explanation:(0,Ot.jsx)(dt.vV,{text:"assert position at a word boundary: {1}",ph1:h})}}if("B"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"assert position where {1} does not match",ph1:Da("\\b")})};if("A"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"asserts position at start of the string"})};if("z"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"asserts position at the end of the string"})};if("G"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"asserts position at the end of the previous match or the start of the string for the first match"})};if("K"===r)return{explanation:(0,Ot.jsx)(dt.vV,{text:"resets the starting point of the reported match. Any previously consumed characters are no longer included in the final match"})};if("."===r){var p="";return s||(p=(0,ht.Z)("(except for line terminators)")),{explanation:(0,Ot.jsxs)("span",{children:[i&&(0,ht.Z)("matches any character, including unicode {1}",p),!i&&(0,ht.Z)("matches any character {1}",p),!s&&!t.brief&&Fa(e)]})}}if("^"===r){var d=(0,ht.Z)("the string");return a&&(d=(0,ht.Z)("a line")),{explanation:(0,Ot.jsxs)("span",{children:[(0,ht.Z)("asserts position at start of {1}",d),a&&!t.brief&&Fa(e,!0,!0)]})}}return"Z"===r?{explanation:(0,Ot.jsx)(dt.vV,{text:"asserts position at the end of the string, or before the line terminator right at the end of the string (if any)"})}:"$"===r?(n=a?(0,ht.Z)("asserts position at the end of a line"):o||c||e.state.flavor===C().GOLANG?(0,ht.Z)("asserts position at the end of the string"):(0,ht.Z)("asserts position at the end of the string, or before the line terminator right at the end of the string (if any)"),{explanation:(0,Ot.jsxs)("span",{children:[n,!o&&!t.brief&&Fa(e,!0,a)]})}):(it.O7(new Error("Unable to explain token '".concat(e.type,"': '").concat(e.string,"'"))),{explanation:null})}(n,t):i===_a.t0?function(e){return Ha(e,e.string.slice(1),!0)}(n):i===_a.zl?qa(n,r):i===_a.hs?function(e,t){var n,r=t.alternatives;if(t.brief)return(null===(n=e.parent)||void 0===n?void 0:n.type)===_a.oK?{explanation:(0,Ot.jsx)(dt.vV,{text:"Separates the true and false case of the parent conditional."})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Equivalent to boolean OR"})};if(e.parent){if(e.parent.type===_a.oK)return 0===e.alternativeNumber?{explanation:(0,Ot.jsx)(dt.vV,{text:"If condition is met, match the following regex"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Else match the following regex"})};if(0===e.parent.alternatives)return{explanation:null}}else if(0===r)return{explanation:null};return{explanation:(0,Ot.jsx)(dt.vV,{text:"{1} Alternative",ph1:Ma(e.alternativeNumber+1)})}}(n,t):i===_a.$U?function(e){var t=e.string.replace(/^\\Q|\\E$/g,"");return""===t?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches an empty string (any position)"})}:qa(e,t)}(n):i===_a.RW?function(e){return{explanation:(0,Ot.jsx)(dt.vV,{text:"match the remainder of the pattern with the following effective flags: {1}",ph1:Ia(e.flags)}),children:Ya(e.onFlags,e.offFlags,e.state.flavor)}}(n):i===_a.Pg?function(e){return Ja(e,8,16)}(n):i===_a.bO||i===_a.L3||i===_a.Yb?function(e){return Ja(e,16,8)}(n):i===_a.dz?function(e){if("\\P"===e.string.slice(0,2)||-1!==e.string.indexOf("^")){var t=e.string.includes("{")?"\\p{".concat(e.script,"}"):"\\p".concat(e.script);return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any characters that {1} does not",ph1:Da(t)})}}if(null!=Ka(e.script))return{explanation:(0,Ot.jsx)("span",{children:Ka(e.script)})};var n=null==e.category||"Script"===e.category?(0,ht.Z)("script"):(0,ht.Z)("script extension");return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any characters in the {1} {2}",ph1:Ia(e.script),ph2:n})}}(n):i===_a.lA?function(e){return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the control sequence {1} {2}",ph1:Da("CTRL+"+e.controlChar),ph2:Ia("(ASCII "+e.charCode+")")})}}(n):i===_a.Eb?function(e){return{explanation:(0,Ot.jsx)(dt.vV,{text:"Global pattern flags"}),children:Ya(e.globalFlags.split(""),[],e.flavor)}}(n):_a.tK(i)?function(e){switch(e.type){case _a.t:return{explanation:(0,Ot.jsx)(dt.vV,{text:"{1} Capturing Group",ph1:Ma(e.groupNumber)})};case _a.df:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Non-capturing Group. Matches the tokens contained with the following effective flags: {1}",ph1:Ia(e.flags)}),children:Ya(e.onFlags,e.offFlags,e.state.flavor)};case _a.xT:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Non-capturing group"})};case _a.Ws:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Subpattern definition construct"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("May only be used to define functions. No matching is done in this group.")})};case _a.oK:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Conditional"})};case _a.Ty:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Negative Lookbehind"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Assert that the Regex below does not match")})};case _a.Gs:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Positive Lookbehind"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Assert that the Regex below matches")})};case _a.up:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Negative Lookahead"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Assert that the Regex below does not match")})};case _a.PG:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Positive Lookahead"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Assert that the Regex below matches")})};case _a.fy:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Non-atomic Positive Lookahead"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Assert that the Regex below matches")})};case _a.qh:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Non-atomic Positive Lookbehind"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Assert that the Regex below matches")})};case _a.sS:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Named Capture Group {1}",ph1:Ia(e.subpattern)})};case _a.no:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Branch Reset Group"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Subpatterns declared within each alternative of this construct will start over from the same index.")})};case _a.Jy:return{explanation:(0,Ot.jsx)(dt.vV,{text:"Atomic Group"}),notice:(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("Non-capturing group that discards backtracking positions once matched.")})};default:return it.O7(new Error("Unable to match group type '".concat(e.type,"' to a component: '").concat(e.string,"'"))),null}}(n):i===_a.Wj?function(e){var t,n=e.state.previousToken.type;"?"===e.string||"??"===e.string||n!==_a.t&&n!==_a.sS?(0,_a.Az)(n)&&n!==_a.qh&&n!==_a.fy&&(t=(0,Ot.jsx)(dt.qX,{type:Ct.gr.u_,children:(0,ht.Z)("A quantifier following a lookaround serves no purpose, and can safely be removed from the regular expression")})):t=(0,Ot.jsx)(dt.qX,{type:Ct.gr.u_,children:(0,ht.Z)("A repeated capturing group will only capture the last iteration. Put a capturing group around the repeated group to capture all iterations or use a non-capturing group instead if you're not interested in the data")});var r,i,a,s,o=e.to===1/0||e.to<=1?za(e.to):e.to,c=e.to===1/0||e.to<=1?za(e.from):e.from;return e.from===e.to?(1===e.from?r=(0,ht.Z)("meaningless quantifier"):0===e.from&&(r=(0,ht.Z)("causes token to be ignored")),{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the previous token exactly {1} {2} {3}",ph1:Ia(c),ph2:1!==e.from?(0,ht.Z)("times"):(0,ht.Z)("time"),ph3:r?"(".concat(r,")"):""}),notice:t}):(e.possessive?(i=(0,ht.Z)("as many times as possible, without giving back"),a=(0,ht.Z)("possessive")):e.lazy?(i=(0,ht.Z)("as few times as possible, expanding as needed"),a=(0,ht.Z)("lazy")):(i=(0,ht.Z)("as many times as possible, giving back as needed"),a=(0,ht.Z)("greedy")),{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the previous token between {1} and {2} times, {3} {4}",ph1:Ia(c),ph2:Ia(o),ph3:i,ph4:(s="("+a+")",(0,Ot.jsx)("span",{className:Ra.Z.info,children:s}))}),notice:t})}(n):i===_a._w||i===_a.eq?function(e){return null===e.reference?{explanation:(0,Ot.jsx)(dt.vV,{text:"recurses the entire pattern"})}:/^\d+$/.test(e.reference)?{explanation:(0,Ot.jsx)(dt.vV,{text:"recurses the {1} subpattern",ph1:Ia(Ma(e.reference))})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"recurses the subpattern named {1}",ph1:Ia(e.reference)})}}(n):i===_a.WE||i===_a.O3||i===_a.bJ||i===_a.hb?function(e){return 0===e.reference?e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the same text as most recently matched by the entire pattern"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the same text as most recently matched by the entire pattern"})}:/^\d+$/.test(e.reference)?e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the same text as most recently matched by the {1} capturing group",ph1:Ia(Ma(e.reference))})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the same text as most recently matched by the {1} capturing group",ph1:Ia(Ma(e.reference))})}:e.isSubstitution?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the same text as most recently matched by the capturing group named {1}",ph1:Ia(e.reference)})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the same text as most recently matched by the capturing group named {1}",ph1:Ia(e.reference)})}}(n):i===_a.qi||i===_a.jf?function(e,t){return t.brief?{explanation:(0,Ot.jsx)("span",{children:(0,ht.Z)("Inline comment, discarded by the engine when matching the regex")})}:{explanation:(0,Ot.jsxs)("span",{children:[" ",e.getComment()]}),string:(0,ht.Z)("Comment")+":"}}(n,t):i===_a.vU?function(e){return"UTF"===e.verb.slice(0,3)?{explanation:(0,Ot.jsx)(dt.vV,{text:"sets the property mode to {1}",ph1:Ia("UTF-"+e.verb.replace(/\D+/g,""))})}:"UCP"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"sets the property mode to Unicode"})}:"NO_START_OPT"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"suppresses the start-of-match optimizations that are otherwise run by Perl"})}:"CR"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"specifies a newline convention: carriage return"})}:"LF"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"specifies a newline convention: line-feed"})}:"CRLF"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"specifies a newline convention: {1}, followed by {2}",ph1:Da("(*CR)"),ph2:Da("(*LF)")})}:"ANYCRLF"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"specifies a newline convention: {1}, {2} or {3}",ph1:Da("(*CR)"),ph2:Da("(*LF)"),ph3:Da("(*CRLF)")})}:"ANY"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"specifies a newline convention: all unicode newline sequences {1}",ph1:Da("(?:\\r\\n|[\\r\\n\\v\\f\\x85\\u2028\\u2029])")})}:"BSR_ANYCRLF"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"specifies a newline convention: {1}, {2} or {3} only",ph1:Da("(*CR)"),ph2:Da("(*LF)"),ph3:Da("(*CRLF)")})}:"BSR_UNICODE"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"specifies a newline convention: any Unicode newline sequence"})}:/\(\*(?:MARK)?:[^:]+\)/.test(e.verb)?{explanation:(0,Ot.jsx)(dt.vV,{text:"marker verb whose main purpose is to track how a match was arrived at"})}:"FAIL"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"verb synonymous with {1}. Forces a matching failure at the given position in the pattern",ph1:Da("(?!)")})}:"F"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"shorthand for {1}",ph1:Da("(*FAIL)")})}:/^PRUNE(?::[^:]+)?$/.test(e.verb)?{explanation:(0,Ot.jsx)(dt.vV,{text:"this verb causes the match to fail at the current starting position in the subject if the rest of the pattern does not match"})}:"COMMIT"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"causes the whole match to fail outright if the rest of the pattern does not match"})}:/^THEN(?::[^:]+)?$/.test(e.verb)?{explanation:(0,Ot.jsx)(dt.vV,{text:"causes a skip to the next innermost alternative if the rest of the pattern does not match"})}:/^SKIP(?::[^:]+)?$/.test(e.verb)?{explanation:(0,Ot.jsx)(dt.vV,{text:"acts like {1}, except that if the pattern is unanchored, the bumpalong advance is not to the next character, but to the position in the subject where {2} was encountered",ph1:Da("(*PRUNE)"),ph2:Da("(*SKIP)")})}:"ACCEPT"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"this verb causes the match to end successfully, skipping the remainder of the pattern"})}:/^LIMIT_RECURSION=\d+$/.test(e.verb)?{explanation:(0,Ot.jsx)(dt.vV,{text:"this verb sets the recursion limit (max depth) for the pattern"})}:/^LIMIT_MATCH=\d+$/.test(e.verb)?{explanation:(0,Ot.jsx)(dt.vV,{text:"this verb sets the match limit (max iterations) for the pattern"})}:"NO_AUTO_POSSESS"===e.verb?{explanation:(0,Ot.jsx)(dt.vV,{text:"this verb disables the internal `auto-possessification` optimization in PCRE"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Undescribed specific verb; No description for it yet (nothing's perfect)"})}}(n):i===_a.Yz?Qa(n):i===_a.ZH?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a backspace character {1}",ph1:Ia("(ASCII 8)")})}:i===_a.Tf?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a vertical tab character"})}:i===_a.HI?function(e,t){var n=e.string.includes("^");return e.intersection?n?t.brief?{explanation:(0,Ot.jsx)(dt.vV,{text:"match a single character not present in the intersection of tokens within this set"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Match a single character not present in both the lists below"})}:t.brief?{explanation:(0,Ot.jsx)(dt.vV,{text:"match a single character present in the intersection of tokens within this set"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Match a single character present in both the lists below"})}:n?t.brief?{explanation:(0,Ot.jsx)(dt.vV,{text:"match a single character not present in the set"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Match a single character not present in the list below"})}:t.brief?{explanation:(0,Ot.jsx)(dt.vV,{text:"match a single character present in the set"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Match a single character present in the list below"})}}(n,t):i===_a.jt?function(e){var t=e.leftToken,n=e.rightToken,r=String.fromCodePoint(t.codePoint||t.charCode),i=String.fromCodePoint(n.codePoint||n.charCode),a=-1!==e.state.flags.indexOf("i")?(0,ht.Z)("case insensitive"):(0,ht.Z)("case sensitive");return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a single character in the range between {1} {2} and {3} {4} ({5})",ph1:La(r),ph2:Ia("(index "+(t.codePoint||t.charCode)+")"),ph3:La(i),ph4:Ia("(index "+(n.codePoint||n.charCode)+")"),ph5:a}),string:t.string+e.string+n.string}}(n):i===_a.be?function(e){if(-1!==e.string.indexOf("^"))return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches the negation of {1}",ph1:Da(e.posixClass)})};var t=-1!==e.state.flags.indexOf("u");switch(e.posixClass){case"ascii":return t?{explanation:(0,Ot.jsx)(dt.vV,{text:"equivalent to {1}",ph1:Da("\\p{InBasicLatin}")})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a character with {1} value {2} through {3}",ph1:Ia("ASCII"),ph2:Ia("0"),ph3:Ia("127")})};case"alnum":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a alphanumeric character {1}",ph1:Da(t?"\\p{Xan}":"[a-zA-Z0-9]")})};case"word":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a alphanumeric character or {1} {2} (also written as {3})",ph1:Ia("_"),ph2:Da(t?"[\\p{Xwd}]":"[A-Za-z0-9_]"),ph3:Da("\\w")})};case"alpha":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a alphabetic character {1}",ph1:Da(t?"\\p{L}":"[a-zA-Z]")})};case"blank":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a whitespace character, excluding line breaks {1}",ph1:Da(t?"\\h":"[ \\t]")})};case"cntrl":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a control character {1}",ph1:Da(t?"\\p{Cc}":"[\\x00-\\x1F\\x7F]")})};case"digit":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a digit {1} (also written as {2})",ph1:Da(t?"\\p{Nd}":"[0-9]"),ph2:Da("\\d")})};case"graph":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a visible character {1}",ph1:Da(t?"[\\pL\\pM\\pN\\pP\\pS\\p{Cf}]":"[\\x21-\\x7E]")})};case"lower":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a lowercase letter {1}",ph1:Da(t?"\\p{Ll}":"[a-z]")})};case"print":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a visible character or the space character {1}",ph1:Da(t?"[\\pL\\pM\\pN\\pP\\pS\\p{Cf}\\p{Zs}]":"[\\x20-\\x7E]")})};case"punct":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a punctuation character {1}",ph1:Da(t?"[\\p{P}\\p{S}]":"[!\"#$%&'()*+,\\-./:;<=>?@[\\]^_`{|}~]")})};case"upper":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a uppercase letter {1}",ph1:Da(t?"\\p{Lu}":"[A-Z]")})};case"xdigit":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a hexadecimal digit {1}",ph1:Da("[A-Fa-f0-9]")})};case"space":return{explanation:(0,Ot.jsx)(dt.vV,{text:"matches a whitespace character, including a line break {1} (also written as {2})",ph1:Da(t?"[\\p{xps}]":"[ \\t\\r\\n\\v\\f]"),ph2:Da("\\s")})};default:it.O7(new Error("Unknown posix class '".concat(e.string,"': '").concat(e.string,"'")))}}(n):i===_a.jl?function(e){return-1!==e.string.indexOf("^")?{explanation:(0,Ot.jsx)(dt.vV,{text:"matches any character, including newline"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"empty character class \u2014 matches {1}",ph1:(0,Ot.jsx)("em",{children:"null"})})}}(n):i===_a.aM||i===_a.py?function(e){return"\\E"===e.string?{explanation:(0,Ot.jsx)("span",{children:(0,ht.Z)("Terminates any previous text transformation (initiated with either \\U or \\L)")})}:"\\l"===e.string||"\\u"===e.string?{explanation:(0,Ot.jsx)("span",{children:(0,ht.Z)("Converts the subsequent token to their {1} equivalence","\\u"===e.string?(0,ht.Z)("uppercase"):(0,ht.Z)("lowercase"))})}:{explanation:(0,Ot.jsx)("span",{children:(0,Ot.jsx)(dt.vV,{text:"Converts all subsequent tokens to their {1} equivalence until {2} is encountered",ph1:"\\U"===e.string?(0,ht.Z)("uppercase"):(0,ht.Z)("lowercase"),ph2:Ia("\\E")})})}}(n):i===_a.XR?function(e){var t=(0,Ot.jsx)(dt.qX,{type:$a.u_,children:(0,ht.Z)("Avoid using this legacy syntax for any new patterns.")});return"[[:<:]]"===e.string?{explanation:(0,Ot.jsx)(dt.vV,{text:"Matches start of word (POSIX syntax), equivalent to {1}",ph1:Da("\\b(?=\\w)")}),notice:t}:{explanation:(0,Ot.jsx)(dt.vV,{text:"Matches end of word (POSIX syntax), equivalent to {1}",ph1:Da("\\b(?<=\\w)")}),notice:t}}(n):i===_a.tI||i===_a.hL||i===_a.Cz?function(e){return"$`"===e.string?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the portion of the string that precedes the matched substring"})}:"$'"===e.string?{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the portion of the string that follows the matched substring"})}:{explanation:(0,Ot.jsx)(dt.vV,{text:"inserts the matched substring"})}}(n):i===_a.w_?function(e){var t=isNaN(e.reference)?(0,Ot.jsx)(es.Z,{text:"subpattern {1}",ph1:Ia(e.reference)}):(0,Ot.jsx)(es.Z,{text:"{1} subpattern",ph1:Ia(Ma(e.reference))});return{explanation:(0,Ot.jsx)(es.Z,{text:"Replaces the text conditionally depending on if the {1} matched",ph1:t})}}(n):i===_a.zB?function(e,t){if(t.brief)return{explanation:(0,ht.Z)("matches the intersection of the tokens to the left and right of this token")};throw new Error("Trying to explain character class intersection token")}(0,t):(it.O7(new Error("Unable to explain token '".concat(i,"': '").concat(r))),{explanation:null})}function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.error)return Ua(e.error);var n=e.getTooltipToken(),r={string:n.string,children:[],nodeLabel:[],token:n};t.brief=!0;var i=n.type===_a.oK?Qa({conditional:n}).explanation:ts(r,t).explanation;return(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("strong",{children:is(e)})," \u2014 ",i]})}function is(e){switch(e.type){case _a.$U:return(0,ht.Z)("Quote");case _a.MW:return(0,ht.Z)("Meta Escape");case _a.hs:return(0,ht.Z)("Alternative");case _a.Wj:return(0,ht.Z)("Quantifier");case _a.zl:case _a.t0:return(0,ht.Z)("Text");case _a.Qp:return(0,ht.Z)("Lonely End Quote");case _a.dz:return(0,ht.Z)("Unicode Property");case _a.Pg:return(0,ht.Z)("Octal");case _a.L3:return(0,ht.Z)("Hex");case _a.Yb:return(0,ht.Z)("Unicode");case _a.RW:return(0,ht.Z)("Modifier");case _a.lA:return(0,ht.Z)("Control Character");case _a.Tf:return(0,ht.Z)("Vertical Tab");case _a.bO:return(0,ht.Z)("Surrogate Pair");case _a.eq:case _a._w:return(0,ht.Z)("Subroutine");case _a.O3:case _a.hb:case _a.bJ:case _a.WE:return(0,ht.Z)("Backreference");case _a.ZH:return(0,ht.Z)("Backspace");case _a.jl:case _a.HI:case _a.U6:return(0,ht.Z)("Character Class");case _a.jt:return(0,ht.Z)("Range");case _a.XR:case _a.be:return(0,ht.Z)("Posix Class");case _a.jf:case _a.qi:return(0,ht.Z)("Comment");case _a.df:case _a.sS:case _a.no:case _a.xT:case _a.Jy:case _a.t:return(0,ht.Z)("Group");case _a.Ws:return(0,ht.Z)("Definition");case _a.oK:case _a.w_:return(0,ht.Z)("Conditional");case _a.vU:return(0,ht.Z)("Verb");case _a.Ty:case _a.Gs:case _a.up:case _a.PG:case _a.fy:case _a.qh:return(0,ht.Z)("Lookaround");case _a.aM:case _a.py:return(0,ht.Z)("Case Modifier");case _a.Cz:return(0,ht.Z)("Before Match");case _a.tI:return(0,ht.Z)("After Match");case _a.hL:return(0,ht.Z)("Full Match");case _a.zB:return(0,ht.Z)("Class Intersection");default:it.O7(Error("Unable to map title for '".concat(e.type,"'")))}}const as="V3CMy",ss="N3KUM",os="N_Lxn";var cs=function(e){var t=e.className,n=e.tokens,r=Ga(n);return 0===r.length?null:(0,Ot.jsx)("div",{className:lt()("zlDez",t),children:r.map((function(e,t){var n=e.string,r=e.style;return null!=r?(0,Ot.jsx)("span",{className:r,children:(0,Ot.jsx)(dt.K,{text:n})},"node-label-token-".concat(t)):(0,Ot.jsx)(dt.K,{text:n},"node-label-token-".concat(t))}))})};const us=(0,ot.memo)(cs),ls="XsOAS";var fs=function(e){var t=e.flags,n=e.tokens,r=e.delimiter;return(0,Ot.jsxs)("div",{className:"NC6ky",children:[(0,Ot.jsx)("div",{className:lt()("taqI9",ls),children:r}),(0,Ot.jsx)(us,{className:"kevho",tokens:n}),(0,Ot.jsx)("div",{className:lt()("V9YRK",ls),children:r}),(0,Ot.jsx)("div",{className:"m1_F1",children:t})]})};const hs=(0,ot.memo)(fs);var ps=["tokens"];function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const vs=function(e){var t=e.tokens,n=(0,B.Z)(e,ps),r=t.reduce((function(e,t){return e.concat(t.token.type===_a.hs?t.token:[],t.nodeLabel)}),[]);return(0,Ot.jsx)(hs,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({tokens:r},n))};var gs=new Ve.ZP;const ms=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"render",value:function(){var e=this.props,t=e.regex,n=e.flags,r=e.delimiter,i=e.flavor,a=e.className,s=gs.parse(t,{flags:n,delimiter:r,flavor:i}),o=function(e,t){var n=[],r=[],i=a(null,{string:"",type:_a.hs,children:[]});return function e(t,r){for(var i=null,o=0,c=r.length;o<c;o++){var u=r[o];if(!n.includes(u)&&(n.push(u),t.addNodeLabel(u),!(u.type===_a.U6||u.type===_a.Wj||_a.tK(u.type)&&")"===u.string||u.partOfRange))){var l=a(t,u);if(u.quantifier){var f=a(l,u.quantifier);u.quantifier.quantifier&&(f.string+=u.quantifier.quantifier.string),l.children.push(f)}else if(s(u)){0===i.children.length&&i.children.push(Aa(Aa({},i),{},{children:[]})),i.string+=u.string,n.push(u),i.children.push(l),i.nodeLabel.push(u);continue}if(t.children.push(l),u.type===_a.oK){var h={children:[],conditional:u,type:_a.Yz,string:"",state:u.state};u.lookaround&&h.children.push(u.condition),e(l,[h].concat(u.children))}else u.type!==_a.zl&&e(l,u.children);var p=(i=l).token;if(p.quantifier&&_a.tK(p.type))for(var d=p.quantifier.quantifier||p.quantifier,v=o+1;v<r.length;v++){var g=r[v];if(i.addNodeLabel(g),n.push(g),g.ignoreOnHover||g.type===_a.Wj||t.children.push(a(t,g)),g===d)break}}}}(i,e),r.push.apply(r,(0,g.Z)(i.children)),t&&r.push({children:[],nodeLabel:[],token:{type:_a.Eb,globalFlags:t,flavor:e[0].state.flavor,children:[]}}),r;function a(e,t){return{parent:e,string:t.string,children:[],nodeLabel:t.type!==_a.hs?[t]:[],token:t,addNodeLabel:function(e){null!=this.parent&&this.parent.addNodeLabel(e),this.nodeLabel.push(e)}}}function s(e){var t=e.state.actualPreviousToken;return t&&e.type===_a.zl&&t.type===_a.zl&&!e.quantifier&&!e.partOfRange&&!t.partOfRange&&!e.isPoorlyPlaced&&!t.isPoorlyPlaced&&!t.intersectionToken&&!e.intersectionToken}}(s,n),c=(0,Ot.jsx)(vs,{tokens:o,delimiter:r,flags:n});return(0,Ot.jsx)("div",{className:a,children:(0,Ot.jsx)(Pa,{nodeLabel:c,children:null!=gs.getStatus()?this.renderErrorExplanation(s):this.renderExplanationTree(o,0,gs.alternatives)})})}},{key:"renderExplanationTree",value:function(e,t,n){var r=this;return e.map((function(e,i){var a=e.token;if(a.type===_a.zB)return(0,Ot.jsx)("div",{className:"g3DN5"},"character-intersection-".concat(a.string,"-").concat(i));var s=ts(e,{alternatives:n}),o=s.explanation,c=s.children,u=void 0===c?null:c,l=s.notice,f=void 0===l?null:l,h=s.string;if(null==o)return r.renderExplanationTree(e.children,t,n);if(a.children.length>0||_a.Bx(a.type)){var p=e.children.length,d=e.children[0];if(0===p||1===p&&d.token.type===_a.Wj||1===p&&d.token.type===_a.hs&&0===d.children.length){var v=!_a.Az(a.type);return(0,Ot.jsxs)("div",{children:[r.renderNodeLabel(e,o)," ",(0,Ot.jsx)(dt.vV,{text:"{1}, matches any position",ph1:(0,Ot.jsxs)(ot.Fragment,{children:["\u2014 ",(0,Ot.jsx)("em",{children:"null"})]})}),v?f:""]},"null-match-".concat(a.string,"-").concat(i))}}if(e.children.length>0||_a.Bx(a.type)||null!=u&&0!==u.length)return(0,Ot.jsxs)(Pa,{nodeLabel:r.renderNodeLabel(e,o,f),defaultCollapsed:t>10||a.type===_a.zl,children:[u,r.renderExplanationTree(e.children,t++,n)]},"treeview-parent-".concat(a.children.length,"-").concat(i));var g=h||e.string,m=/^\s+$/.test(g);return(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("span",{className:lt()(a.style,"uNm38",m&&"mBF1Z"),children:(0,Ot.jsx)(dt.K,{text:g,removeNewlines:!0})})," ",o,f]},"token-explanation-".concat(a.string,"-").concat(i))}))}},{key:"renderNodeLabel",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.token;if(r.type===_a.Yz)return(0,Ot.jsx)("strong",{children:t});var i=(0,Ot.jsx)(us,{tokens:e.nodeLabel,className:as});return _a.Bx(r.type)||r.type===_a.Eb?(0,Ot.jsxs)("span",{children:[(0,ot.cloneElement)(t,{className:lt()(os,as)})," ",i,n]}):(0,Ot.jsxs)("span",{children:[i," ",(0,ot.cloneElement)(t,{className:ss}),n]})}},{key:"renderErrorExplanation",value:function(e){return(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(dt.qX,{children:(0,ht.Z)("All the errors detected are listed below, from left to right, as they appear in the pattern.")}),Ba(e)]},"error-explanation-".concat(e.length))}}]),i}(ot.Component);var ys=function(e){var t=e.text;return(0,Ot.jsx)("div",{className:"AOv9F",children:t})};const xs=(0,ot.memo)(ys),bs=function(e){var t=e.regex,n=e.flavor,r=e.delimiter,i=e.flags;return null==t||0===t.length?(0,Ot.jsx)(xs,{text:(0,ht.Z)("An explanation of your regex will be automatically generated as you type.")}):(0,Ot.jsx)(ms,{regex:t,flavor:n,delimiter:r,flags:i,className:"IrE8B"})};var js=n(50836),Zs=n(26681);const Os={matchData:"amvtn",textTruncated:"MjTIZ",didNotParticipate:"aSQIC",groupNum:"TrT00",clickable:"N9b7Q",matchPos:"CPj3q",groupName:"fxJfD",row:"IoDqL",groupText:"Q8YiL","group-0":"BX3FE","group-1":"znTgg","group-2":"v1n1J","group-3":"CXLa2","group-4":"nmqJh","group-5":"T_XLc","group-6":"m94jE","group-0-alt":"KzxFx","group-1-alt":"dftGW","group-2-alt":"GDx0h","group-3-alt":"zOJvb","group-4-alt":"EMlAx","group-5-alt":"heE6F","group-6-alt":"UpMUh"};var ws=100,ks=function(e){var t=e.group,n=e.evenMatch,r=e.showNonParticipatingGroups,i=e.matchNumber,a=(0,ot.useState)(!1),s=(0,vt.Z)(a,2),o=s[0],c=s[1],u=(0,ot.useCallback)((function(){return pt.ZP.emit(pt.ji,t)}),[t]),l=(0,ot.useCallback)((function(){return c((function(e){return!e}))}),[]);if(!t.isParticipating&&!r)return null;var f=Os["group-".concat((t.groupNum-1)%X.GROUP_COUNT+1).concat(n?"":"-alt")],h=void 0!==t.start&&t.isParticipating?"".concat(t.start,"-").concat(t.end):"n/a",p=o?t.content:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;if(null==e)return"";var n=e.match(new RegExp("^.*".concat("\\n[^\\n]*".repeat(4),"\\n")));if(n){var r=Math.min(n.index+n[0].length-1,ws);return e.slice(0,r)+"..."}return e.length>t+3?e.slice(0,t)+"...":e}(t.content,ws),d=null!=t.content&&(t.content.length>ws||(t.content.match(/\n/g)||[]).length>=5);return(0,Ot.jsxs)("tr",{className:lt()(Os.row,!t.isParticipating&&Os.didNotParticipate),children:[(0,Ot.jsx)(dt.Yd,{tag:"td",disabled:null==t.start||!t.isParticipating,className:lt()(Os.groupNum,null!=t.start&&t.isParticipating&&Os.clickable),onClick:u,children:0===t.groupNum?(0,Ot.jsx)(dt.vV,{text:"Match {1}",ph1:(0,Ot.jsx)("span",{className:Os.groupName,children:i}),className:lt()(Os.groupText,f)}):(0,Ot.jsx)(dt.vV,{text:"Group {1}",ph1:(0,Ot.jsx)("span",{className:Os.groupName,children:t.groupName||Zs.Z.captureGroupMap[t.groupNum]}),className:lt()(Os.groupText,f)})}),(0,Ot.jsx)("td",{className:Os.matchPos,children:h}),(0,Ot.jsx)("td",{className:lt()(Os.matchData,d&&Os.textTruncated),onClick:d?l:null,children:t.isParticipating?""===p?(0,Ot.jsx)("em",{children:"null"}):(0,Ot.jsx)(dt.K,{text:p}):(0,ht.Z)("group did not participate in match")})]})};const Cs=(0,ot.memo)(ks),Es=function(e){var t=e.groups,n=e.matchId,r=e.showNonParticipatingGroups,i=e.isLast;return(0,Ot.jsx)("div",{className:lt()(!i&&"YXXyK"),children:(0,Ot.jsx)("table",{className:"EFPn1",children:(0,Ot.jsx)("tbody",{children:t.map((function(e,t){return(0,Ot.jsx)(Cs,{group:e,showNonParticipatingGroups:r,evenMatch:n%2===0,matchNumber:n+1},"match-".concat(n,"-group-").concat(t))}))})})})},Ps="IRvGa",Ss="LLQ0z";var _s=function(e){var t=e.matchError;switch(t){case an.Y8:return(0,Ot.jsx)(dt.vV,{tag:"div",className:Ss,text:"Unable to initialize the regex engine! Please try to reload the web page. If the issue persists, please open an issue here: {1}",ph1:(0,Ot.jsx)(dt.rU,{to:"https://github.com/firasdib/Regex101/issues",absolute:!0,children:"https://github.com/firasdib/Regex101/issues"})});case an.D9:return(0,Ot.jsx)("div",{className:Ss,children:(0,ht.Z)("Your pattern contains one or more errors, please see the explanation section above.")});case an.ik:return(0,Ot.jsxs)("div",{className:Ss,children:[(0,Ot.jsx)("div",{children:(0,ht.Z)("Your expression took too long to finish and was terminated. Please increase the timeout and try again.")}),(0,Ot.jsx)("br",{}),(0,Ot.jsxs)("div",{children:[(0,ht.Z)("This may be an indication of catastrophic backtracking. To find out more and what this is, please read the following article:")," ",(0,Ot.jsx)(dt.rU,{to:"http://www.regular-expressions.info/catastrophic.html",absolute:!0,children:"Runaway Regular Expressions"})]})]});case an.wm:case an.VE:return(0,Ot.jsxs)("div",{className:Ss,children:[(0,ht.Z)("Catastrophic backtracking has been detected and the execution of your expression has been halted. To find out more and what this is, please read the following article:")," ",(0,Ot.jsx)(dt.rU,{to:"http://www.regular-expressions.info/catastrophic.html",absolute:!0,children:"Runaway Regular Expressions"}),(0,Ot.jsx)("br",{}),(0,Ot.jsx)("br",{}),(0,Ot.jsx)(dt.Yi,{className:Ps,children:(0,ht.Z)("Try launching the debugger to find out why.")})]});case an.Fo:case an.ek:return(0,Ot.jsx)("div",{className:Ss,children:(0,ht.Z)("The match was halted because the offset does not point to the beginning of a valid UTF-16 character.")});case an.Vu:case an.e0:return(0,Ot.jsx)("div",{className:Ss,children:(0,ht.Z)("The match was halted because your expression contains a recursive loop. This means either that the whole pattern, or a subpattern, has been called recursively for the second time at the same position in the subject string.")});case an.UA:case an.Rp:return(0,Ot.jsx)("div",{className:Ss,children:(0,ht.Z)("The internal recursion limit was reached.")});case an.Gv:return(0,Ot.jsxs)("div",{className:Ss,children:[(0,ht.Z)("The Java regex engine reached the maximum call stack size."),(0,Ot.jsx)("br",{}),(0,Ot.jsx)("br",{}),(0,ht.Z)("This is due to the fact that the regex engine is implemented using recursion, and is severely limited by it.")," ",(0,ht.Z)("This indicates that your expression is not optimized for Java, and you are likely to run into similar issues in your Java code.")]});default:return(0,Ot.jsxs)("div",{className:Ss,children:[(0,ht.Z)("Your expression caused an unhandled error:"),(0,Ot.jsx)("br",{}),(0,Ot.jsx)("br",{})," ",(0,Ot.jsx)("strong",{children:t})]})}};const Ns=(0,ot.memo)(_s);var Rs=function(e){var t=e.className,n=e.children;return(0,Ot.jsx)("label",{className:lt()("luECo",t),children:n})};const Ts=(0,ot.memo)(Rs);function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Is="JSON",Ls="CSV",Ms="TEXT";const Bs=function(e,t,n){var r=function(e,t){return e.map((function(e){return e.map((function(e){var n=e.start,r=e.end,i=e.content,a=e.isParticipating,s=e.groupNum;if(!t&&0===s)return null;var o={content:i,isParticipating:a,groupNum:s,groupName:e.groupName||Zs.Z.captureGroupMap[s]||null};return null!=e.start&&(o=Ds(Ds({},o),{},{startPos:n,endPos:r})),o})).filter(Boolean)}))}(t,n);switch(e){case Is:return JSON.stringify(r,null,2);case Ls:return function(e){var t="",n=!1;return e.forEach((function(e,r){e.forEach((function(e){t+=r+1+","+(null!=e.groupName?e.groupName:e.groupNum)+","+(e.isParticipating?"yes":"no")+",",null!=e.startPos&&(t+=e.startPos+","+e.endPos+",",n=!0),null!=e.content&&(-1!==e.content.indexOf(",")?t+='"'.concat(e.content.replace(/"/g,'""'),'"'):t+=e.content),t+="\n"}))})),"match,group,is_participating"+(n?",start,end":"")+",content\n"+t}(r);default:return function(e){return e.map((function(e){return e.filter((function(e){return e.isParticipating})).map((function(e){return e.content})).join("\n")})).join("\n")}(r)}},Us=function(e){var t=e.matchData,n=e.isOpen,r=e.onModalClose,i=(0,ot.useState)(Is),a=(0,vt.Z)(i,2),s=a[0],o=a[1],c=(0,ot.useState)(!0),u=(0,vt.Z)(c,2),l=u[0],f=u[1],h=(0,ot.useRef)(null);return(0,Ot.jsxs)(_t.Z,{onModalClose:r,isOpen:n,className:"icDzB",children:[(0,Ot.jsx)(Nt.Z,{children:(0,ht.Z)("Export Matches")}),(0,Ot.jsx)(Rt.Z,{children:(0,Ot.jsxs)("div",{className:"xTEgj",children:[(0,Ot.jsx)(dt.gx,{header:(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Export Method")}),className:"Nt7kG",children:(0,Ot.jsxs)(Qt.Z,{children:[(0,Ot.jsx)(Xt.Z,{isActive:s===Is,icon:"file-code",onClick:function(){return o(Is)},children:"JSON"}),(0,Ot.jsx)(Xt.Z,{isActive:s===Ls,icon:"file-excel",onClick:function(){return o(Ls)},children:"CSV"}),(0,Ot.jsx)(Xt.Z,{isActive:s===Ms,icon:"doc-text",onClick:function(){return o(Ms)},children:(0,ht.Z)("Plain Text")})]})}),(0,Ot.jsx)(dt.gx,{className:"CtTH_",header:(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Data")}),children:(0,Ot.jsxs)("div",{className:"zES36",children:[(0,Ot.jsxs)(ta.Z,{className:"uzmGU",ref:h,children:[n&&Bs(s,t,l),(0,Ot.jsx)(dt.Tv,{topPadding:5,rightPos:5,children:(0,Ot.jsx)(dt.qi,{getCopyComponent:function(){return h.current}})})]}),(0,Ot.jsxs)(Ts,{className:"NgTKU",children:[(0,Ot.jsx)("input",{type:"checkbox",checked:l,onChange:function(){return f(!l)}}),(0,ht.Z)("Include full match in exported data")]})]})})]})}),(0,Ot.jsx)(Tt.Z,{children:(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Close"),onClick:r,type:Ct.V5.n1})})]})},Fs=function(e){var t=e.matchData,n=(0,ot.useState)(!1),r=(0,vt.Z)(n,2),i=r[0],a=r[1],s=(0,ot.useCallback)((function(){return a(!0)}),[]),o=(0,ot.useCallback)((function(){return a(!1)}),[]);return(0,Ot.jsx)(dt.Tv,{children:(0,Ot.jsxs)(dt.Yd,{onClick:s,className:"eUlm1",children:[(0,Ot.jsx)("span",{className:"YIKin",children:(0,ht.Z)("Export Matches")})," ",(0,Ot.jsx)(nn.bwQ,{size:16}),(0,Ot.jsx)(Us,{isOpen:i,onModalClose:o,matchData:t})]})})},Gs=function(){var e=(0,at.v9)((function(e){return e.regexEditor.matchResult})),t=(0,at.v9)((function(e){return e.regexEditor.regex})),n=(0,at.v9)((function(e){return e.regexEditor.error})),r=(0,at.v9)((function(e){return e.settings.nonParticipatingGroups})),i=(0,ot.useState)(25),a=(0,vt.Z)(i,2),s=a[0],o=a[1],c=(0,ot.useRef)(),u=(0,ot.useCallback)((function(){if(null!=c.current){var t=c.current,n=t.scrollTop,r=t.scrollHeight,i=t.offsetHeight;e.length>s&&n>=.9*(r-i)&&o((function(e){return 2*e}))}}),[s,e.length]),l=(0,ot.useMemo)((function(){for(var t=[],n=Math.min(s,e.length),i=0;i<n;i++){var a=e[i];t.push((0,Ot.jsx)(Es,{groups:a,matchId:i,showNonParticipatingGroups:r,isLast:i===s||i+1===n},"match-".concat(i)))}return t}),[e,s,r]);return null!=n?(0,Ot.jsx)(Ns,{matchError:n}):""===t?(0,Ot.jsx)(xs,{text:(0,ht.Z)("Detailed match information will be displayed here automatically.")}):0===e.length?(0,Ot.jsxs)("div",{className:"muBVf",children:[(0,ht.Z)("Your regular expression does not match the subject string."),(0,Ot.jsx)(js.Z,{className:Ps,children:(0,ht.Z)("Try launching the debugger to find out why.")})]}):0===l.length?(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("div",{children:(0,ht.Z)("No match groups were extracted.")}),(0,Ot.jsx)("div",{className:"FfuRb",children:(0,ht.Z)("This means that your pattern did match but there were no capturing groups that matched anything in the subject string.")})]}):(0,Ot.jsxs)("div",{className:"b62Ye",onScroll:u,ref:c,children:[(0,Ot.jsx)(Fs,{matchData:e}),l]})};function Vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hs=Ne()?(0,ot.lazy)((function(){return Promise.all([n.e(483),n.e(653)]).then(n.bind(n,12948))})):function(){};const zs=function(e){var t=(0,Ot.jsx)("div",{children:(0,Ot.jsx)("div",{className:"_0eAtQ",children:(0,Ot.jsx)(dt.$j,{})})});return(0,Ot.jsx)(dt.I2,{fallback:t,children:(0,Ot.jsx)(Hs,qs({},e))})},Ws=function(e){var t=e.subsection,n=e.children,r=e.title,i=e.resizable,a=e.id,s=(0,at.I0)(),o=(0,at.v9)((function(e){return e.rightSidebar.visibleSections})),c=(0,ot.useCallback)((function(){s((0,Ee.SD)(t)),s((0,Ee.Ot)())}),[s,t]),u=o.includes(t);return(0,Ot.jsx)(dt.gx,{className:lt()("P3VvM",i&&"DIFDZ",!u&&"Z1_qK"),header:(0,Ot.jsx)(dt.FX,{collapsed:!u,text:r,className:"fpGbf",onClick:c}),contentClassName:"a0ZUJ",isVisible:u,id:a,children:n})},Ys="CsAbs",Ks="_lvMT";var Js=(0,Ht.Z)(zt.s_),Xs={appear:Ys,appearActive:Ks,enter:Ys,enterActive:Ks,exit:"mpimk",exitActive:"CTDda"};const Qs=function(e){var t=e.children,n=(0,ot.useRef)(),r=(0,ot.useState)(!1),i=(0,vt.Z)(r,2),a=i[0],s=i[1],o=(0,ot.useCallback)((function(){return s(!0)}),[]),c=(0,ot.useCallback)((function(e){null!=n.current&&n.current.contains(e.target)||s(!1)}),[]);return(0,ot.useEffect)((function(){var e=function(){return s(!1)};return pt.ZP.on("key:escape",e),function(){return pt.ZP.off("key:escape",e)}}),[]),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(Vi,{tooltipDirection:Ct.qF.SW,tooltipText:(0,ht.Z)("Show Sidebar"),onClick:o,className:"Vg44D"}),(0,Ot.jsx)(dt.h_,{isOpen:a,closeTimeout:Js,children:(0,Ot.jsx)(dt.uT,{className:"NtTXe",classNames:Xs,timeout:Js,in:a,children:(0,Ot.jsx)(dt.iQ,{children:(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("div",{className:"jJmso",onClick:c,onTouchEnd:c}),(0,Ot.jsx)("nav",{ref:n,className:"KwIMW",children:t})]})})})})]})};var $s=["title","children"];function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const no=function(e){var t=e.title,n=e.children,r=(0,B.Z)(e,$s);return(0,Ot.jsxs)("div",to(to({className:"uYpkX"},r),{},{children:[(0,Ot.jsx)(dt.__,{text:t,className:"F61ks"}),(0,Ot.jsx)("div",{className:"MY46R",children:n})]}))},ro=function(e){var t=e.subsections,n=(0,at.I0)(),r=(0,at.v9)((function(e){return e.rightSidebar.activeSubsection}));return(0,Ot.jsx)("div",{className:"JPMcE",children:t.map((function(e){var t=e.tooltip,i=e.icon,a=e.key;return(0,Ot.jsx)(dt.hU,{onClick:function(){return n((0,Ee.hK)(a))},size:34,tooltip:t,tooltipDirection:Ct.qF.SE,className:lt()("CoQ5Y",r===a&&"Cikzv"),children:(0,Ot.jsx)(i,{size:18})},"smallRightSidebarBtn-".concat(a))}))})};var io=parseFloat(bt.D6),ao=function(){var e=(0,at.v9)((function(e){return e.rightSidebar.activeSubsection})),t=(0,at.v9)((function(e){return e.regexEditor.delimiter})),n=(0,at.v9)((function(e){return e.regexEditor.flags})),r=(0,at.v9)((function(e){return e.regexEditor.regex})),i=(0,at.v9)((function(e){return e.regexEditor.flavor}));switch(e){case m:return(0,Ot.jsx)(no,{title:(0,ht.Z)("Explanation"),children:(0,Ot.jsx)(bs,{regex:r,flags:n,delimiter:t,flavor:i})});case y:return(0,Ot.jsx)(no,{title:(0,ht.Z)("Match Information"),children:(0,Ot.jsx)(Gs,{})});case x:return(0,Ot.jsx)(no,{title:(0,ht.Z)("Quick Reference"),id:"quickrefParent",children:(0,Ot.jsx)(zs,{})});default:throw new Error("Unknown subsection '".concat(e,"'"))}};const so=function(){var e=(0,ft.Sj)(io),t=(0,at.v9)((function(e){return e.regexEditor.showUnitTestArea})),n=(0,at.v9)((function(e){return e.settings.alwaysCollapseRightSidebar})),r=(0,at.v9)((function(e){return e.regexEditor.delimiter})),i=(0,at.v9)((function(e){return e.regexEditor.flags})),a=(0,at.v9)((function(e){return e.regexEditor.regex})),s=(0,at.v9)((function(e){return e.regexEditor.flavor}));if(n||e.width<io){var o=[{tooltip:(0,ht.Z)("View Explanation"),icon:nn.UCm,key:m}];return t||o.push({tooltip:(0,ht.Z)("View Match Information"),icon:qr.n2W,key:y}),o.push({tooltip:(0,ht.Z)("View Regex Quick Reference"),icon:gt.CA9,key:x,id:"quickrefParent"}),(0,Ot.jsxs)(Qs,{children:[(0,Ot.jsx)(ro,{subsections:o}),(0,Ot.jsx)(ao,{})]})}return(0,Ot.jsxs)(xa,{children:[(0,Ot.jsx)(Ws,{title:(0,ht.Z)("Explanation"),subsection:m,resizable:!0,children:(0,Ot.jsx)(bs,{regex:a,flags:i,delimiter:r,flavor:s})}),!t&&(0,Ot.jsx)(Ws,{title:(0,ht.Z)("Match Information"),subsection:y,resizable:!0,children:(0,Ot.jsx)(Gs,{})}),(0,Ot.jsx)(Ws,{title:(0,ht.Z)("Quick Reference"),subsection:x,id:"quickrefParent",children:(0,Ot.jsx)(zs,{})})]})},oo=function(e){var t=e.result,n=e.className;if(null==t.time&&null==t.steps)return null;var r=Math.round(1e3*t.time)/1e3;return(0,Ot.jsxs)("div",{className:n,children:[null!=t.error&&(0,Ot.jsx)("div",{className:"eFWYj",children:t.error}),(0,Ot.jsx)(dt.vV,{tag:"div",text:"Test finished in {1}{2}",ph1:null!=t.steps?"".concat(t.steps," ").concat(1===t.steps?(0,ht.Z)("step"):(0,ht.Z)("steps")):(0,ht.Z)("approximately {1} ms",r),ph2:null!=t.steps?", ".concat((0,ht.Z)("approximately {1} ms",r)):""})]})},co="qI7UZ",uo="tfiLD",lo="eoxGV",fo=function(e){var t=e.disabled,n=e.isFirstItem,r=e.isLastItem,i=e.testNumber,a=e.className,s=(0,at.I0)(),o=(0,ot.useCallback)((function(){return s((0,Ee.ew)(i,i+1))}),[i,s]),c=(0,ot.useCallback)((function(){return s((0,Ee.ew)(i,i-1))}),[i,s]),u=(0,ot.useCallback)((function(){return s((0,Ee.K_)(i))}),[i,s]),l=(0,at.v9)((function(e){return(0,Hr.G)(e.regexEditor.flavor)}));return(0,Ot.jsxs)("div",{className:lt()("sdZCP",a),children:[(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Move down"),direction:Ct.qF.N,children:(0,Ot.jsx)(dt.Yd,{onClick:o,disabled:r||t,className:lt()(co,(r||t)&&uo),children:(0,Ot.jsx)(gt.ebp,{size:22})})}),(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Move up"),direction:Ct.qF.N,children:(0,Ot.jsx)(dt.Yd,{onClick:c,disabled:n||t,className:lt()(co,(n||t)&&uo),children:(0,Ot.jsx)(gt.Tvk,{size:22})})}),l&&(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Debug Test"),direction:Ct.qF.N,children:(0,Ot.jsx)(dt.rU,{to:"debugger?testId=".concat(i),className:lt()(co,lo),noTheme:!0,children:(0,Ot.jsx)(gt.RwU,{size:18})})}),(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Delete"),direction:Ct.qF.NW,children:(0,Ot.jsx)(dt.Yd,{onClick:u,disabled:t,className:lt()(co,lo,t&&uo),children:(0,Ot.jsx)(gt.M$4,{size:18})})})]})};var ho=n(89441),po=n(14824),vo=function(e,t){var n;return null==e||e===ho.m?n=[po.FS,po.Xg]:(n=[po.u0,po.wU,po.DC,po.xz],t!==C().GOLANG&&"0"!==e&&n.push(po.GU)),n.map((function(e){return{value:e,text:po.VO[e]}}))};const go=function(e){var t=e.onChange,n=e.currentTarget,r=(0,at.v9)((function(e){return e.regexAreaParser.captureGroupCount})),i=(0,at.v9)((function(e){return e.regexAreaParser.definedSubpatterns})),a=(0,at.v9)((function(e){return e.regexAreaParser.captureGroupMap})),s=(0,ot.useRef)(null),o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[{value:ho.m,text:ho.H(ho.m,n)},{value:0,text:ho.H(0,n)}],i=0;i<e;i++)-1===t.indexOf(i)&&r.push({value:i+1,text:ho.H(i+1,n)});return r}(r,i,a),c=(0,ot.useState)(!1),u=(0,vt.Z)(c,2),l=u[0],f=u[1];return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(dt.CP,{onClick:function(){return f(!0)},ref:s,disabled:l,children:(0,ho.H)(n,a)}),(0,Ot.jsxs)(Wn,{isOpen:l,onMenuClose:function(){return f(!1)},target:s.current,closeOnClick:!0,children:[(0,Ot.jsx)(or,{text:(0,ht.Z)("Select target")}),(0,Ot.jsx)(cr,{}),o.map((function(e){return(0,Ot.jsx)(nr,{isActive:e.value===n,onClick:function(){return t(e.value)},children:e.text},"test-target-".concat(e.value))}))]})]})},mo=function(e){var t=e.onChange,n=e.currentTarget,r=e.currentCriteria,i=(0,at.v9)((function(e){return e.regexEditor.flavor})),a=(0,ot.useRef)(null),s=vo(n,i),o=(0,ot.useState)(!1),c=(0,vt.Z)(o,2),u=c[0],l=c[1];return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(dt.CP,{onClick:function(){return l(!0)},ref:a,disabled:u,children:po.VO[r]}),(0,Ot.jsxs)(Wn,{isOpen:u,onMenuClose:function(){return l(!1)},target:a.current,closeOnClick:!0,children:[(0,Ot.jsx)(or,{text:(0,ht.Z)("Select assertion")}),(0,Ot.jsx)(cr,{}),s.map((function(e){return(0,Ot.jsx)(nr,{isActive:e.value===r,onClick:function(){return t(e.value)},children:e.text},"test-criteria-".concat(e.value))}))]})]})},yo="QChMj";var xo=function(e){if(0===e.length)return(0,Ot.jsx)("em",{children:(0,ht.Z)("empty string")});var t=e.replace(/\s+/," ");return t.length>40?t.slice(0,40)+String.fromCharCode(8230):t};const bo=function(e){var t=e.test,n=(0,at.v9)((function(e){return e.regexAreaParser.captureGroupMap})),r=t.description,i=t.testString,a=t.target,s=t.criteria,o=t.compareString;return r||(0,Ot.jsx)(dt.vV,{text:"given the string {1} assert that {2} {3} {4}",ph1:(0,Ot.jsx)("span",{className:yo,children:xo(i||"")}),ph2:ho.H(a,n),ph3:po.VO[s],ph4:null==a||a===ho.m?"":(0,Ot.jsx)("span",{className:yo,children:xo(o||"")})})},jo="RRgDA",Zo="wdfE9",Oo="zr88s",wo="FHCCK",ko="n3dVL",Co=function(e){var t=e.testKey,n=e.testNumber,r=e.viewDetails,i=e.onViewDetailsClick,a=e.existingTest,s=void 0===a?{}:a,o=e.isLastItem,c=e.isFirstItem,u=e.result,l=void 0===u?{}:u,f=(0,at.I0)(),h=(0,at.v9)((function(e){return e.unitTests.testsRunning})),p=s.description,d=s.testString,v=s.compareString,g=s.target,m=s.criteria,y=l.hasError,x=(0,ot.useRef)(null),j=(0,ot.useState)(p||""),Z=(0,vt.Z)(j,2),O=Z[0],w=Z[1],k=(0,ot.useState)(d||""),C=(0,vt.Z)(k,2),E=C[0],P=C[1],S=(0,ot.useState)(v||""),_=(0,vt.Z)(S,2),N=_[0],R=_[1],T=(0,ot.useState)(g),A=(0,vt.Z)(T,2),D=A[0],I=A[1],L=(0,ot.useState)(m),M=(0,vt.Z)(L,2),B=M[0],U=M[1],F=(0,ft.Sf)((function(e,t){return f(function(e,t){return{type:b.LM,value:{testKey:e,test:t}}}(e,t))}),500);(0,ot.useEffect)((function(){r&&x.current.focus()}),[r]),(0,ft.vI)((function(){F(t,{description:O,testString:E,compareString:N,target:D,criteria:B})}),[t,F,O,E,N,D,B]);var G=!1===y,V=y;return(0,Ot.jsxs)("div",{className:lt()("_mdci",V&&Zo,G&&jo),children:[(0,Ot.jsx)(dt.Yd,{className:"CIpAk",onClick:function(){return i(t)},tag:"div","aria-label":r?(0,ht.Z)("Expand test"):(0,ht.Z)("Collapse test"),children:r?(0,Ot.jsx)(gt.ebp,{size:22}):(0,Ot.jsx)(gt.jZo,{size:22})}),!r&&(0,Ot.jsxs)("div",{className:"bjIoO",children:[(0,Ot.jsx)("div",{className:Oo,children:(0,Ot.jsx)(bo,{test:s})}),(0,Ot.jsxs)("div",{className:lt()(wo,G&&jo,V&&Zo),children:[G&&(0,Ot.jsx)(gt.xuy,{size:18}),V&&(0,Ot.jsx)(gt.eSQ,{size:18})]}),(0,Ot.jsx)(fo,{isFirstItem:c,isLastItem:o,disabled:h,testNumber:n,className:ko})]}),r&&(0,Ot.jsxs)("div",{className:"oLvlF",children:[(0,Ot.jsxs)("div",{className:"nwj_2",children:[(0,Ot.jsx)("input",{placeholder:(0,ht.Z)("insert test description"),className:Oo,onChange:function(e){return w(e.target.value)},value:O,ref:x,spellCheck:"false"}),(0,Ot.jsxs)("div",{className:lt()(wo,G&&jo,V&&Zo),children:[G&&(0,Ot.jsx)(gt.xuy,{size:18}),V&&(0,Ot.jsx)(gt.eSQ,{size:18})]}),(0,Ot.jsx)(fo,{isFirstItem:c,isLastItem:o,disabled:h,testNumber:n,className:ko})]}),(0,Ot.jsx)("div",{className:"fo_Hl",children:(0,ht.Z)("given the following test string")}),(0,Ot.jsx)("textarea",{placeholder:(0,ht.Z)("insert test string"),className:"W7b7u",onChange:function(e){return P(e.target.value)},value:E,rows:2,spellCheck:"false"}),(0,Ot.jsx)(dt.vV,{tag:"div",className:"L5b8E",text:"assert that {1} {2}",ph1:(0,Ot.jsx)(go,{currentTarget:D,onChange:function(e){I(e);var t=vo(e);U(t[0].value)}}),ph2:(0,Ot.jsx)(mo,{currentTarget:D,currentCriteria:B,onChange:U})}),null!=D&&D!==ho.m&&B!==po.GU&&(0,Ot.jsx)("textarea",{placeholder:(0,ht.Z)("insert comparison string"),className:"mbbk1",onChange:function(e){return R(e.target.value)},value:N}),null!=l&&(0,Ot.jsx)(oo,{result:l,className:"MwoOx"})]})]})},Eo="Yz_VU",Po=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.unitTests.tests})),n=(0,at.v9)((function(e){return e.unitTests.testResults})),r=(0,at.v9)((function(e){return e.unitTests.testFilter})),i=(0,ot.useState)([]),a=(0,vt.Z)(i,2),s=a[0],o=a[1],u=function(e){var t=s.filter((function(t){return t!==e}));t.length===s.length&&t.push(e),o(t)};(0,ot.useEffect)((function(){var e,n=function(){return o(t.map((function(e){return e.key})))},r=function(){return o([])};return pt.ZP.on((e={},(0,c.Z)(e,pt.yM,n),(0,c.Z)(e,pt.Fx,r),e)),function(){var e;return pt.ZP.off((e={},(0,c.Z)(e,pt.yM,n),(0,c.Z)(e,pt.Fx,r),e))}}),[e,t]);var l=(0,ot.useCallback)((function(){return e((0,Ee.CJ)())}),[e]),f=(0,ot.useCallback)((function(){return e((0,Ee.E0)(G))}),[e]),h=(0,ot.useMemo)((function(){return r===G?t:t.filter((function(e){var t=n[e.key];return(null===t||void 0===t?void 0:t.hasError)===(r!==U)}))}),[t,r,n]);return(0,Ot.jsx)(ta.Z,{className:"GuvgB",children:0===t.length?(0,Ot.jsx)(dt.vV,{text:"There are no unit tests, click {1} to add some.",ph1:(0,Ot.jsx)(dt.Yd,{onClick:l,className:Eo,children:(0,ht.Z)("here")})}):0===h.length?(0,Ot.jsx)(dt.vV,{text:"No tests matched your filter, click {1} to show all.",ph1:(0,Ot.jsx)(dt.Yd,{onClick:f,className:Eo,children:(0,ht.Z)("here")})}):h.map((function(e,r){return(0,Ot.jsx)(Co,{existingTest:e,testKey:e.key,testNumber:r,viewDetails:s.includes(e.key),onViewDetailsClick:u,isLastItem:r===t.length-1,isFirstItem:0===r,result:n[e.key]},"unit-test-list-".concat(e.key))}))})};var So=n(82771),_o=function(e){var t=e.className,n=(0,ot.useRef)(),r=(0,ot.useState)(!1),i=(0,vt.Z)(r,2),a=i[0],s=i[1],o=(0,at.I0)(),c=(0,at.v9)((function(e){return e.unitTests.testFilter})),u=(0,ot.useCallback)((function(){return s(!0)}),[]),l=(0,ot.useCallback)((function(){return s(!1)}),[]),f=(0,ot.useCallback)((function(){return pt.ZP.emit(pt.yM)}),[]),h=(0,ot.useCallback)((function(){return pt.ZP.emit(pt.Fx)}),[]),p=(0,ot.useCallback)((function(){return o((0,Ee.E0)(G))}),[o]),d=(0,ot.useCallback)((function(){return o((0,Ee.E0)(U))}),[o]),v=(0,ot.useCallback)((function(){return o((0,Ee.E0)(F))}),[o]);return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Tools and Filters"),direction:Ct.qF.NE,children:(0,Ot.jsx)(dt.Yd,{onClick:u,className:"llECe",ref:n,children:(0,Ot.jsx)(gt.LB8,{size:18})})}),(0,Ot.jsxs)(Wn,{onMenuClose:l,isOpen:a,target:n.current,placement:"top",closeOnClick:!0,children:[(0,Ot.jsx)(or,{text:(0,ht.Z)("Tools and Filters")}),(0,Ot.jsx)(cr,{}),(0,Ot.jsx)(nr,{onClick:f,children:(0,ht.Z)("Expand all tests")}),(0,Ot.jsx)(nr,{onClick:h,children:(0,ht.Z)("Collapse all tests")}),(0,Ot.jsx)(cr,{}),(0,Ot.jsx)(nr,{onClick:p,isActive:c===G,children:(0,ht.Z)("Show all tests")}),(0,Ot.jsx)(nr,{onClick:d,isActive:c===U,children:(0,ht.Z)("Show only passed tests")}),(0,Ot.jsx)(nr,{onClick:v,isActive:c===F,children:(0,ht.Z)("Show only failed tests")})]})]})};const No=(0,ot.memo)(_o);var Ro=["criteria","target","testString","compareString"];function To(e,t){switch(e.criteria){case po.FS:return 0===t.length?(0,ht.Z)("Expected regex to match, but did not."):null;case po.Xg:return t.length>0?(0,ht.Z)("Expected regex to not match, but did."):null;default:return function(e,t){if(!t||0===t.length)return(0,ht.Z)("The regex did not match the subject string.");var n,r=t[e.target],i=e.criteria,a=e.compareString||"";if(i===po.GU)return r&&null!=r.content?(0,ht.Z)("Group {1} was not expected to participate in the match but did anyway",e.target):null;if(!r)return(0,ht.Z)("Group {1} no longer exists in the pattern or did not participate in the match",e.target);switch(n=r.name?"".concat(r.groupNum," (").concat(r.name,")"):0===r.groupNum?"".concat(r.groupNum," (").concat((0,ht.Z)("full match"),")"):r.groupNum,i){case po.DC:return null!=r.content&&-1!==r.content.indexOf(a)?null:(0,ht.Z)("Expected group {1} to contain `{2}` but did not",n,a);case po.xz:return r.content===a?null:(0,ht.Z)("Expected group {1} to equal `{2}` but was instead `{3}`",n,a,r.content||"");case po.u0:var s=null==r.content?"":r.content.slice(0,a.length);return s===a?null:(0,ht.Z)("Expected group {1} to start with `{2}` but was instead `{3}`",n,a,s);case po.wU:var o=null==r.content?"":r.content.slice(-1*a.length);return o===a?null:(0,ht.Z)("Expected group {1} to end with `{2}` but was instead `{3}`",n,a,o);default:throw new Error("Unknown unit test criteria '".concat(i,"'"))}}(e,t[0])}}const Ao=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.regexEditor.flavor})),n=(0,at.v9)((function(e){return e.regexEditor.regex})),r=(0,at.v9)((function(e){return e.regexEditor.flags})),i=(0,at.v9)((function(e){return e.settings.maxExecutionTime})),a=(0,at.v9)((function(e){return!!e.regexAreaParser.status})),s=(0,at.v9)((function(e){return e.regexAreaParser.tokens.length>0})),o=(0,at.v9)((function(e){return e.unitTests.tests}),(function(e,t){if(e.length!==t.length)return!1;var n=t.reduce((function(e,t){if(null==t.key)throw new Error("Invalid unit test");return e[t.key]=t,e}),{});return e.every((function(e){return(0,at.wU)(Pe(e,Ro),Pe(n[e.key]||{},Ro))}))})),c=(0,ot.useRef)(new So.Z).current,u=(0,ot.useState)(0),l=(0,vt.Z)(u,2),f=l[0],h=l[1],p=(0,ot.useState)(!1),d=(0,vt.Z)(p,2),v=d[0],g=d[1],m=(0,ot.useCallback)((function(){c.resetWorker(),h(0),g(!1),e((0,Ee.jJ)())}),[e,c]),y=(0,ot.useCallback)((function(n,r,a,s,o){var u={maxExecutionTime:i,flavor:t,calculateRegexSteps:!0};c.runMatch(r,a.replace(/g/g,""),s.testString,u,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;e(n?(0,Ee.UZ)(s.key,(0,ht.Z)("Internal engine error: {1}",n)):(0,Ee.UZ)(s.key,To(s,t.matchResult),t.steps,t.time)),h((function(e){return e+1})),o.next()}))}),[i,t,e,c]),x=(0,ot.useCallback)((function(){var t,i,a,s,u,l;c.resetWorker(),h(0),g(!0),e((0,Ee.h5)()),t=o.length,i=function(e){return y(e.iteration(),n,r,o[e.iteration()],e)},a=function(){g(!1),e((0,Ee.jJ)())},s=0,u=!1,(l={next:function(){u||(s<t?(s++,i(l)):(u=!0,a()))},iteration:function(){return s-1},break:function(){u=!0,a()}}).next()}),[e,y,o,n,r,c]),b=m,j=(0,ot.useCallback)((function(){return e((0,Ee.CJ)())}),[e]);(0,ot.useEffect)((function(){var e=function(){v&&m(),s&&""!==n&&!a&&x()};return pt.ZP.on("key:ctrlEnter",e),function(){return pt.ZP.off("key:ctrlEnter",e)}}),[s,a,n,x,v,m]),(0,ot.useEffect)((function(){s&&""!==n&&!a&&x()}),[s,a,n,x]),(0,ot.useEffect)((function(){return m}),[m]);var Z=Math.max(0,o.length>0?(o.length-f)/o.length*100:100);return(0,Ot.jsxs)("div",{className:"bc_U_",children:[(0,Ot.jsxs)("div",{className:"bzSeP",children:[(0,Ot.jsx)(No,{className:"llbAo"}),(0,Ot.jsxs)("div",{className:"cfrN_",children:[!v&&(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Run tests"),disabled:0===o.length||""===n||a,onClick:function(){!s||""===n||a||v||x(!0)}}),v&&(0,Ot.jsx)(dt.zx,{type:Ct.V5.T,text:(0,ht.Z)("Cancel"),onClick:b}),(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Add test"),onClick:j,className:"KuRpm"})]})]}),(0,Ot.jsx)("div",{className:"W3HLH",style:{right:"".concat(Z,"%")}})]})};var Do=function(){var e=(0,at.v9)((function(e){return e.unitTests.testResults})),t=Object.values(e).reduce((function(e,t){var n=(0,vt.Z)(e,2),r=n[0],i=n[1];return[r+(!1===t.hasError?1:0),i+(t.hasError?1:0)]}),[0,0]),n=(0,vt.Z)(t,2),r=n[0],i=n[1],a=(r>0||i>0)&&(i>0?(0,Ot.jsx)("span",{className:"ceywG",children:1===i?(0,ht.Z)("{1} test failed",i):(0,ht.Z)("{1} tests failed",i)}):(0,Ot.jsx)("span",{className:"BIsZ6",children:(0,ht.Z)("All tests passed")}));return(0,Ot.jsx)(dt.__,{className:"esMAk",text:(0,ht.Z)("Unit Tests"),children:a})};const Io=(0,ot.memo)(Do),Lo=function(){return(0,Ot.jsxs)("div",{className:"Av0Zr",children:[(0,Ot.jsx)(Io,{}),(0,Ot.jsxs)("div",{className:"YXYOI",children:[(0,Ot.jsx)(Po,{}),(0,Ot.jsx)(Ao,{})]})]})};var Mo;n(31807)&&(Mo=n(4631),n(88386),n(82801),n(64020),n(33086).Z(Mo));const Bo=Mo;var Uo=n(39912);function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Go=function(e){return function(t){var n=document.createElement("span");return e?(n.className=Uo.Z.specialChar,n.appendChild(document.createTextNode("U+".concat(("0000"+t.codePointAt(0).toString(16).toUpperCase()).slice(-4))))):n.appendChild(document.createTextNode(t)),n}},Vo=function(e){var t=e.onChange,n=e.onFocus,r=e.onBlur,i=e.onCursorMove,a=e.onPaste,s=e.onCreate,o=e.options,u=void 0===o?{}:o,l=e.defaultValue,f=e.singleLine,h=e.className,p=(0,ot.useRef)(null),d=(0,ot.useRef)(null);return(0,ot.useEffect)((function(){var e=Bo.fromTextArea(p.current,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styleSelectedText:!0},u));return d.current=e,function(){return e.toTextArea()}}),[]),(0,ot.useEffect)((function(){t&&d.current.on("change",t),n&&d.current.on("focus",n),r&&d.current.on("blur",r),i&&d.current.on("cursorActivity",i),a&&d.current.on("paste",a);var e=function(e,t){if(t.update){var n=t.text.join("").replace(/[\r\n]/g,"");t.update(t.from,t.to,[n])}return!0};return f&&d.current.on("beforeChange",e),function(){d.current.off("change",t),d.current.off("focus",n),d.current.off("blur",r),d.current.off("cursorActivity",i),d.current.off("paste",a),d.current.off("beforeChange",e)}}),[t,n,r,i,a,f]),(0,ot.useEffect)((function(){for(var e in d.current.setOption("tabindex",0),d.current.setOption("direction","ltr"),u)if(u.hasOwnProperty(e)){var t=u[e];switch(e){case"showWhitespace":d.current.setOption("specialCharPlaceholder",Go(t));break;case"tabindex":d.current.setOption("tabindex",t);break;case"placeholder":d.current.setOption("placeholder",t),d.current.setOption("screenReaderLabel",t);break;default:d.current.setOption(e,t)}}}),[u]),(0,ot.useEffect)((function(){l&&d.current.setValue(l),null===s||void 0===s||s(d.current)}),[]),(0,Ot.jsx)("div",{className:lt()(h,u.showWhitespace&&"CodeMirror-show-whitespace"),translate:"no",children:(0,Ot.jsx)("textarea",{style:{display:"none"},ref:p,defaultValue:"",autoComplete:"off",translate:"no"})})};const qo=(0,ot.memo)(Vo);var Ho=function(){function e(t,n){(0,ba.Z)(this,e),this._editor=null,this._parser=null,this._editor=n,this._parser=t}return(0,ja.Z)(e,[{key:"parse",value:function(e,t){for(var n=this._parser.parse(e,t),r=0,i=n.length;r<i;r++){var a=n[r];if(a.string){var s=a.position,o=s.start,c=s.end,u=this._editor.posFromIndex(o),l=this._editor.posFromIndex(c);a.editorPosition={start:{line:u.line,pos:u.ch},end:{line:l.line,pos:l.ch}}}}return n}},{key:"paint",value:function(){var e=this,t=Ga(this._parser.tokens);this._editor.operation((function(){for(var n=e._editor.getAllMarks(),r=0,i=n.length;r<i;r++)n[r].clear();for(var a=0,s=t.length;a<s;a++){var o=t[a],c=o.style,u=o.editorPosition,l=u.start,f=u.end,h=Bo.Pos(l.line,l.pos),p=Bo.Pos(f.line,f.pos);e._editor.markText(h,p,{className:c})}}))}},{key:"clearPaint",value:function(){var e=this;this._editor.operation((function(){e._editor.getAllMarks().forEach((function(e){return e.clear()}))}))}},{key:"getTokenAtPos",value:function(e){return this._parser.getTokenAtPos(e)}},{key:"getStatus",value:function(){return this._parser.getStatus()}}]),e}();const zo=Ho;function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ko=function(e,t,n){for(var r=e.coordsChar({left:t,top:n},"page"),i=0;i<2;i++){var a=e.charCoords(r,"page");if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return e.indexFromPos(r);if(r.ch--<=0)break}return null},Jo=function(e,t){if(null==t)return null;var n=e.posFromIndex(t),r=e.charCoords(n);return Yo(Yo({},r),{},{x:r.left,y:r.top,width:r.right-r.left,height:r.bottom-r.top})},Xo=n(4458);const Qo="zNH_P",$o="_UG3a";var ec=(0,Ht.Z)(zt.DP),tc={appear:Qo,appearActive:$o,enter:Qo,enterActive:$o,exit:"i2I1d",exitActive:"Gb8MO"};const nc=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){var e;(0,ba.Z)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=r.call.apply(r,[this].concat(n))).state={showTooltip:!1,data:null,mouseDown:!1},e._rootRef=(0,ot.createRef)(),e._arrowRef=(0,ot.createRef)(),e._timeout=null,e}return(0,ja.Z)(i,[{key:"componentDidMount",value:function(){var e,t;this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),null===(e=document.body)||void 0===e||e.addEventListener("mousedown",this.onMouseDown,{passive:!0,capture:!0}),null===(t=document.body)||void 0===t||t.addEventListener("mouseup",this.onMouseUp,{passive:!0,capture:!0})}},{key:"componentWillUnmount",value:function(){var e,t,n;null===(e=document.body)||void 0===e||e.removeEventListener("mouseout",this.onMouseOut,!0),null===(t=document.body)||void 0===t||t.removeEventListener("mousedown",this.onMouseDown,{passive:!0,capture:!0}),null===(n=document.body)||void 0===n||n.removeEventListener("mouseup",this.onMouseUp,{passive:!0,capture:!0})}},{key:"onMouseDown",value:function(){this.setState({mouseDown:!0})}},{key:"onMouseUp",value:function(){this.setState({mouseDown:!1})}},{key:"setPos",value:function(e,t){var n=this;if(this._rootRef.current){var r=this._rootRef.current;return r.style.left="0px",r.style.top="0px",window.cancelAnimationFrame(this._timeout),this._timeout=window.requestAnimationFrame((function(){var r=n._rootRef.current,i=n._arrowRef.current;if(r&&i){var a=r.offsetWidth,s=r.offsetHeight,o=Math.min(Math.max(5,Math.max(0,e-a/2)),window.innerWidth-a-5);r.style.left="".concat(o,"px"),r.style.top="".concat(Math.max(0,t-s+5),"px"),r.style.visibility="visible",i.style.left="".concat(e-o,"px")}})),this}}},{key:"show",value:function(e){document.body.addEventListener("mouseout",this.onMouseOut,{passive:!0});var t=this._rootRef.current;return t&&(t.style.visibility="hidden",t.style.left="0px"),this.setState({showTooltip:!0,data:e}),this}},{key:"hide",value:function(){return document.body.removeEventListener("mouseout",this.onMouseOut,{passive:!0}),this.setState({showTooltip:!1}),this}},{key:"render",value:function(){var e=this.state,t=e.data,n=e.showTooltip,r=e.mouseDown;return(0,Ot.jsx)(dt.h_,{isOpen:n&&!r,closeTimeout:ec,children:(0,Ot.jsxs)(dt.uT,{classNames:tc,timeout:ec,in:n,className:"LbBCd",ref:this._rootRef,children:[(0,Ot.jsx)("div",{className:"tcP1D",children:t}),(0,Ot.jsx)("div",{className:"xVC5K",ref:this._arrowRef})]})})}}]),i}(ot.Component),rc=function(e){var t=e.onCreate,n=e.onFocusChange,r=e.defaultValue,i=e.parser,a=e.onPaste,s=e.onChange,o=e.parserOptions,c=e.codeMirrorOptions,u=e.TooltipClass,l=e.singleLine,f=e.className,h=(0,at.v9)((function(e){return e.settings.colorizeSyntax})),p=(0,at.v9)((function(e){return e.settings.editorTooltips})),d=(0,ot.useRef)(null),v=(0,ot.useRef)(null),g=(0,ot.useRef)(null),m=(0,ot.useRef)(null),y=(0,ot.useState)(-1),x=(0,vt.Z)(y,2),b=x[0],j=x[1],Z=(0,ot.useState)({value:r||""}),O=(0,vt.Z)(Z,2),w=O[0],k=O[1],C=(0,ot.useState)(!1),E=(0,vt.Z)(C,2),P=E[0],S=E[1],_=(0,ot.useCallback)((function(e){d.current=e,v.current=new zo(i,e),v.current.parse(e.getValue(),o),h&&v.current.paint(e),j(e.indexFromPos(e.getCursor())),null===t||void 0===t||t(e)}),[h,t,i,o]),N=(0,ot.useCallback)((function(e,t){return k({value:e.getValue()})}),[]),R=(0,ot.useCallback)((function(){return n(!0)}),[n]),T=(0,ot.useCallback)((function(){j(-1),n(!1)}),[n]),A=(0,ot.useCallback)((function(e){return j(e.indexFromPos(e.getCursor()))}),[]),D=(0,ot.useCallback)((function(){return S(!0)}),[]),I=(0,ot.useCallback)((function(){return S(!1)}),[]),L=(0,ot.useCallback)((function(e){if(p&&null!=d.current)if(P){var t;null===(t=g.current)||void 0===t||t.hide()}else{var n,r,i=Ko(d.current,e.clientX,e.clientY+window.pageYOffset),a=null===(n=v.current)||void 0===n?void 0:n.getTokenAtPos(i);null===(r=g.current)||void 0===r||r.selectToken(a);var s,o=Jo(d.current,i);o&&(null===(s=g.current)||void 0===s||s.setPosition(e.clientX,o.top))}}),[p,P]);return(0,ot.useEffect)((function(){var e=[];if(b>=0&&!P){var t,n=v.current.getTokenAtPos(b),r=n?n.getRelatedTokens():[];null===(t=d.current)||void 0===t||t.operation((function(){r.forEach((function(t){var n=Bo.Pos(t.editorPosition.start.line,t.editorPosition.start.pos),r=Bo.Pos(t.editorPosition.end.line,t.editorPosition.end.pos);e.push(d.current.markText(n,r,{className:Xo.Z.cursorover}))}))}))}return function(){var t;null===(t=d.current)||void 0===t||t.operation((function(){e.forEach((function(e){return e.clear()}))}))}}),[b,P]),(0,ot.useEffect)((function(){var e=new u(m.current,d.current);return g.current=e,function(){e.destroy(),g.current=null}}),[u]),(0,ft.vI)((function(){var e=v.current.parse(w.value,o);h?v.current.paint():v.current.clearPaint(),s(w.value,v.current.getStatus(),e,o)}),[s,h,o,w]),(0,Ot.jsxs)("div",{className:lt()("h9z_E",f),onMouseMove:L,onMouseDownCapture:D,onMouseUpCapture:I,children:[(0,Ot.jsx)(qo,{onChange:N,onFocus:R,onBlur:T,onPaste:a,onCreate:_,options:c,defaultValue:r,onCursorMove:A,singleLine:l}),(0,Ot.jsx)(nc,{ref:m})]})},ic=function(e){var t=e.token;return(0,Ot.jsx)("div",{className:"fnwkx",children:rs(t)})},ac=function(){function e(t,n){(0,ba.Z)(this,e),this._tooltip=null,this._token=null,this._codemirror=null,this._marks=[],this._tooltip=t,this._codemirror=n,this.onMouseOut=this.onMouseOut.bind(this)}return(0,ja.Z)(e,[{key:"destroy",value:function(){this.hide(),this._tooltip=null,this._codemirror=null,this._marks=null,this._token=null}},{key:"onMouseOut",value:function(e){var t;null!==(t=this._codemirror)&&void 0!==t&&t.display.lineDiv.contains(e.relatedTarget)||this.hide()}},{key:"selectToken",value:function(e){var t,n,r;if(!this._equalTokens(this._token,e))if(this._token=e,this._clearMarks(),this._token){var i=null===(t=e.getTooltipMarkerRange)||void 0===t?void 0:t.call(e);if(i){var a=i.primary,s=i.secondary;this._markRange(a.start,a.end),s&&s.start&&this._markRange(s.start,s.end,!0)}null===(n=this._tooltip)||void 0===n||n.show(this._getTooltipContent(e)),null===(r=document)||void 0===r||r.body.addEventListener("mouseout",this.onMouseOut,{passive:!0})}else this.hide()}},{key:"setPosition",value:function(){var e;null===(e=this._tooltip)||void 0===e||e.setPos.apply(this._tooltip,arguments)}},{key:"hide",value:function(){var e,t;null===(e=document)||void 0===e||e.body.removeEventListener("mouseout",this.onMouseOut,{passive:!0}),this._clearMarks(),this._token=null,null===(t=this._tooltip)||void 0===t||t.hide()}},{key:"_getTooltipContent",value:function(){throw new Error("Tooltip content not found")}},{key:"_equalTokens",value:function(){throw new Error("Token comparison function not implemented")}},{key:"_clearMarks",value:function(){try{this._marks.forEach((function(e){return e.clear()})),this._marks=[]}catch(e){}}},{key:"_markRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Bo.Pos(e.line,e.pos),i=Bo.Pos(t.line,t.pos),a="mouseover"+(n?"Related":"");this._marks.push(this._codemirror.markText(r,i,{className:Xo.Z[a],startStyle:Xo.Z[a+"Left"],endStyle:Xo.Z[a+"Right"]}))}}]),e}(),sc=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"selectToken",value:function(e){var t;null!==e&&void 0!==e&&null!==(t=e.getTooltipToken)&&void 0!==t&&t.call(e).ignoreOnHover?this.hide():ac.prototype.selectToken.apply(this,arguments)}},{key:"_getTooltipContent",value:function(e){return(0,Ot.jsx)(ic,{token:this._token.getTooltipToken()})}},{key:"_equalTokens",value:function(e,t){return!(!e&&t||e&&!t)&&(null==e&&null==t||e.getTooltipToken()===t.getTooltipToken())}}]),i}(ac);var oc=["availableDelimiters","delimiter","onChange"];function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lc=function(e){var t=e.availableDelimiters,n=e.delimiter,r=e.onChange,i=(0,B.Z)(e,oc);return(0,Ot.jsxs)(Wn,uc(uc({closeOnClick:!0},i),{},{children:[(0,Ot.jsx)(or,{text:(0,ht.Z)("Delimiters")}),(0,Ot.jsx)(cr,{}),t.map((function(e){return(0,Ot.jsx)(nr,{isActive:e===n,onClick:function(){e!==n&&r(e)},className:"G9G7z",children:e},"delimiter-".concat(e))}))]}))};const fc=(0,ot.memo)(lc),hc=function(e){var t=e.flavor,n=e.delimiter,r=e.availableDelimiters,i=e.onChange,a=(0,ot.useRef)(),s=(0,ot.useState)(!1),o=(0,vt.Z)(s,2),c=o[0],u=o[1],l=(0,ot.useCallback)((function(){return u(!0)}),[]),f=(0,ot.useCallback)((function(){return u(!1)}),[]),h=r.length<2;return(0,Ot.jsx)(dt.lx,{direction:Ct.qF.NE,text:(0,ht.Z)("Change delimiter"),children:(0,Ot.jsxs)(dt.Yd,{disabled:h,className:lt()("LEmfz",h&&"bwhBe"),onClick:l,tag:"div",children:[(0,Ot.jsxs)("div",{className:"RW_5t",ref:a,children:[(0,Ot.jsx)(Fn.EAB,{className:"eb03W",size:12}),t===C().PYTHON&&"r",n]}),(0,Ot.jsx)(fc,{availableDelimiters:r,delimiter:n,isOpen:c,target:a.current,onMenuClose:f,onChange:i})]})})};function pc(e,t,n){switch(e){case"g":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"g"}),"lobal",(0,Ot.jsx)("div",{children:(0,ht.Z)("Don't return after first match")})]});case"i":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"i"}),"nsensitive",(0,Ot.jsx)("div",{children:(0,ht.Z)("Case insensitive match")})]});case"m":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"m"}),"ulti line",(0,Ot.jsx)("div",{children:(0,ht.Z)("^ and $ match start/end of line")})]});case"s":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"s"}),"ingle line",(0,Ot.jsx)("div",{children:(0,ht.Z)("Dot matches newline")})]});case"S":return null;case"x":return(0,Ot.jsxs)("div",{className:t,children:["e",(0,Ot.jsx)("strong",{children:"x"}),"tended",(0,Ot.jsx)("div",{children:(0,ht.Z)("Ignore whitespace")})]});case"J":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"J"}),"changed",(0,Ot.jsx)("div",{children:(0,ht.Z)("Allow duplicate subpattern names")})]});case"u":return n===C().JAVA?(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"u"}),"nicode case",(0,Ot.jsx)("div",{children:(0,ht.Z)("Case insensitive matching affects unicode characters as well")})]}):(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"u"}),"nicode",(0,Ot.jsx)("div",{children:(0,ht.Z)("Match with full unicode")})]});case"U":return n===C().JAVA?(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"U"}),"nicode matching",(0,Ot.jsx)("div",{children:(0,ht.Z)("Enables unicode support for predefined classes")})]}):(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"U"}),"ngreedy",(0,Ot.jsx)("div",{children:(0,ht.Z)("Make quantifiers lazy")})]});case"X":return(0,Ot.jsxs)("div",{className:t,children:["e",(0,Ot.jsx)("strong",{children:"X"}),"tra",(0,Ot.jsx)("div",{children:(0,ht.Z)("Disallow meaningless escapes")})]});case"A":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"A"}),"nchored",(0,Ot.jsx)("div",{children:(0,ht.Z)("Anchor to start of pattern, or at the end of the most recent match")})]});case"D":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"D"}),"ollar end only",(0,Ot.jsx)("div",{children:(0,ht.Z)("$ matches only end of pattern")})]});case"a":return(0,Ot.jsxs)("div",{className:t,children:[(0,Ot.jsx)("strong",{children:"a"}),"scii",(0,Ot.jsx)("div",{children:(0,ht.Z)("Make escape sequences perform ASCII-only matching")})]});case"y":return(0,Ot.jsxs)("div",{className:t,children:["stick",(0,Ot.jsx)("strong",{children:"y"}),(0,Ot.jsx)("div",{children:(0,ht.Z)("Anchor to start of pattern, or at the end of the most recent match")})]});case"d":return(0,Ot.jsxs)("div",{className:t,children:["in",(0,Ot.jsx)("strong",{children:"d"}),"ices",(0,Ot.jsx)("div",{children:(0,ht.Z)("The regex engine returns match indices")})]});default:return it.O7(new Error("Unknown flag '".concat(e,"'"))),null}}var dc=["isOpen","flavor","flags","onChange"];function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mc=function(e){var t=e.isOpen,n=e.flavor,r=e.flags,i=e.onChange,a=(0,B.Z)(e,dc),s=(0,ot.useCallback)((function(e,t,n){var a=r;n?a+=t:a=a.replace(t,""),i(a)}),[r,i]),o=(0,ot.useCallback)((function(e){if(!e.ctrlKey&&!e.altKey&&!e.metaKey){var t=e.which||e.keyCode||e.charCode,n=e.char||e.key||String.fromCharCode(t);1===n.length&&(e.preventDefault(),s(e,n,-1===r.indexOf(n)))}}),[s,r]);(0,ot.useEffect)((function(){return t&&window.addEventListener("keypress",o),function(){return window.removeEventListener("keypress",o)}}),[t,o]);var c=Fe()[n].split("");return(0,Ot.jsxs)(Wn,gc(gc({isOpen:t},a),{},{children:[(0,Ot.jsx)(or,{text:(0,ht.Z)("Regex Flags")}),(0,Ot.jsx)(cr,{}),c.map((function(e){var t=-1!==r.indexOf(e);return(0,Ot.jsx)(nr,{isActive:t,onClick:function(n){return s(n,e,!t)},className:"ZsQZ7",children:pc(e,"COW0E",n)},"flag-".concat(e))}))]}))};var yc=function(e){var t=e.flags,n=e.delimiter,r=e.flavor,i=e.onChange,a=(0,ot.useRef)(null),s=(0,ot.useState)(!1),o=(0,vt.Z)(s,2),c=o[0],u=o[1];return(0,Ot.jsx)(dt.lx,{direction:Ct.qF.NW,text:(0,ht.Z)("Set Regex Options"),children:(0,Ot.jsxs)(dt.Yd,{tag:"div",className:"AhIEh",onClick:function(){return u(!0)},children:[(0,Ot.jsxs)("div",{className:"lqj6M",ref:a,children:[(0,Ot.jsx)("div",{className:"n9qI6",children:n}),(0,Ot.jsx)("div",{className:"bcp8d",children:t})]}),(0,Ot.jsx)(mc,{flags:t,flavor:r,isOpen:c,target:a.current,onMenuClose:function(){return u(!1)},onChange:i})]})})};const xc=(0,ot.memo)(yc),bc=function(e){var t=e.onRegexPaste,n=e.onRegexChange,r=e.onDelimiterChange,i=e.onFlagsChange,a=e.flags,s=e.flavor,o=e.delimiter,c=e.regex,u=e.onEnterClick,l=e.regexParser,f=(0,at.v9)((function(e){return e.settings.autoComplete})),h=(0,at.v9)((function(e){return e.settings.wrapLines})),d=(0,at.v9)((function(e){return e.settings.regexAreaLineNumbers})),v=(0,at.v9)((function(e){return e.settings.displayWhitespace})),g=(0,at.v9)((function(e){return e.settings.defaultTabBehavior})),m=(0,ot.useState)(!1),y=(0,vt.Z)(m,2),x=y[0],b=y[1],j=(0,ot.useRef)(null),Z=(0,ot.useMemo)((function(){return{flavor:s,flags:a,delimiter:o}}),[s,a,o]),O=(0,ot.useMemo)((function(){return{lineNumbers:d,mode:null,autofocus:!0,placeholder:(0,ht.Z)("insert your regular expression here"),tabSize:4,lineWrapping:h,extraKeys:{"Shift-Tab":!1,Tab:!g&&null,Enter:u||!1},autoCloseBrackets:f,showWhitespace:v}}),[v,f,u,h,d,g]),w=(0,ot.useCallback)((function(e){return b(e)}),[]),k=(0,ot.useCallback)((function(e,n){if(e.getValue()===e.getSelection()){var r="";window.clipboardData&&window.clipboardData.getData?r=window.clipboardData.getData("Text"):n.clipboardData&&n.clipboardData.getData?r=n.clipboardData.getData("text/plain"):p.Z.warn("User pasted data but could not retrieve it");var i=P()[s],a=new RegExp("^\\s*([sm]?)(".concat(i.join("|"),")([\\s\\S]+)\\2([a-zA-Z]*)\\s*$")),o=r.match(a);if(null!=o){var c=o[1],u=o[2],l=o[3],f="",h=o[4];if("s"===c){var d=function(e,t){for(var n=0,r=-1,i=!1,a=e.length-1;0<=a;a--){var s=e.charAt(a);if(i)if("\\"===s)n++;else{if(n%2===0)return r;n=0,r=-1,i=!1}else s===t&&(r=a,i=!0)}return r}(l,u);if(-1===d)return;var v=l;l=v.slice(0,d),f=v.slice(d+1)}n.preventDefault(),n.stopPropagation(),e.setValue(l),null===t||void 0===t||t({delimiter:u,flags:h,regex:l,isSub:"s"===c,substText:f})}}}),[t,s]),C=(0,ot.useCallback)((function(e){return j.current=e}),[]);return(0,ot.useEffect)((function(){var e=function(e,t){var n=t.groupNum;if(null!=j.current){var r=l.captureGroups[n-1],i=j.current.posFromIndex(null==r?0:r.position.start);j.current.setCursor(i)}};return pt.ZP.on(pt.ji,e),function(){return pt.ZP.off(pt.ji,e)}}),[l]),(0,ot.useEffect)((function(){var e=function(e,t){return j.current.setValue(t)};return pt.ZP.on(pt.fZ,e),function(){return pt.ZP.off(pt.fZ,e)}}),[j]),(0,Ot.jsxs)("div",{className:lt()("cO83v",x&&"KkBJC"),children:[(0,Ot.jsx)(hc,{availableDelimiters:P()[s],delimiter:o,flavor:s,onChange:r}),(0,Ot.jsx)(rc,{defaultValue:c,parser:l,onFocusChange:w,onPaste:k,onChange:n,onEnterClick:u,parserOptions:Z,codeMirrorOptions:O,TooltipClass:sc,className:"T886D",onCreate:C}),(0,Ot.jsx)(xc,{flags:a,delimiter:o,flavor:s,onChange:i}),(0,Ot.jsx)(dt.qi,{basic:!0,className:lt()("OkWyQ",""===c&&"Si8g5"),disabled:""===c,copyText:o+c+o+a})]})};var jc=n(44466);const Zc="odN4_",Oc="J9uy0",wc="zM5RE",kc="Z8VZM",Cc="JFyYg",Ec="I7e3C";function Pc(e){return e>999?+(e/1e3).toFixed(1)+"s":e.toFixed(1)+"ms"}var Sc=function(e){var t,n=e.error,r=e.matchNum,i=e.isMatching,a=e.time,s=e.steps,o=e.flavor,c=e.hasRegex,u=!1,l=!1,f="",h="";if(i)t=wc,f=(0,ht.Z)("Processing...");else if(n)switch(t=Cc,n){case an.D9:f=(0,ht.Z)("Pattern Error");break;case an.ik:f=(0,ht.Z)("Timeout"),u=!0;break;case an.wm:case an.VE:f=(0,ht.Z)("Catastrophic Backtracking"),u=!0;break;default:f=(0,ht.Z)("Engine Error"),l=!0}else r?(t=kc,f=r>1?(0,ht.Z)("{1} matches",(0,jc.u)(r)):(0,ht.Z)("{1} match",r)):(t=wc,f=(0,ht.Z)("No Match"),u=!0),c&&(null!=s&&(h+=1!==s?(0,ht.Z)("{1} steps",(0,jc.u)(s)):(0,ht.Z)("{1} step",s)),null!=a&&(null!=s&&(h+=", "),h+=Pc(a)));return u&&c&&(0,Hr.G)(o)?(0,Ot.jsx)(dt.Yi,{className:lt()(Zc,"iRqgt"),children:(0,Ot.jsxs)("div",{className:lt()(Oc,t),children:[f,(0,Ot.jsx)(gt.RwU,{className:"Jfsx5"})]})}):(0,Ot.jsx)(dt.lx,{disableTooltip:!l,direction:Ct.qF.N,text:null!=n?(0,ht.Z)("Error reported by engine: {1}",n):"",children:(0,Ot.jsx)("div",{className:Zc,children:(0,Ot.jsxs)("div",{className:lt()(Oc,t),children:[f,h&&(0,Ot.jsxs)("span",{className:Ec,children:[" (",h,")"]})]})})})};const _c=(0,ot.memo)(Sc),Nc="NRMSt",Rc="XKeHF",Tc=function(e){var t,n=e.permalinkFragment,r=e.version,i=e.isOpen,a=e.target,s=e.onMenuClose,o=(0,at.v9)((function(e){return e.regexEditor.regexVersions})),c=(0,ft.$5)("getRegexVersions"),u=(0,vt.Z)(c,3),l=u[0],f=u[1],h=u[2];return(0,ft.DB)((function(){i&&n&&h((0,Ee.zp)(n))}),[i,n]),t=f?(0,Ot.jsx)("div",{className:Nc,role:"alert",children:(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,className:Rc,children:(0,ht.Z)("Unable to fetch versions")})}):l?(0,Ot.jsxs)("div",{className:Nc,children:[(0,Ot.jsx)("div",{className:Rc,children:(0,ht.Z)("Loading...")}),(0,Ot.jsx)(dt.$j,{size:Ct.J7.TC,className:"JVYN7"})]}):new Array(o).fill(0).map((function(e,t){var i=t+1===r;return(0,Ot.jsx)(pr,{isActive:i,disabled:i,to:vn(n,t+1),absolute:!0,children:(0,ht.Z)("Version {1}",t+1)},"version-".concat(t))})),(0,Ot.jsxs)(Wn,{target:a,isOpen:i,onMenuClose:s,closeOnClick:!0,children:[(0,Ot.jsx)(or,{text:(0,ht.Z)("Regex Versions"),tabIndex:0}),(0,Ot.jsx)(cr,{}),t]})},Ac=function(e){var t=e.children,n=(0,at.v9)((function(e){return e.general.version})),r=(0,at.v9)((function(e){return e.general.permalinkFragment})),i=(0,at.v9)((function(e){return e.general.title})),a=(0,ot.useState)(!1),s=(0,vt.Z)(a,2),o=s[0],c=s[1],u=(0,ot.useRef)(null),l=(0,ot.useCallback)((function(){return c(!0)}),[]),f=(0,ot.useCallback)((function(){return c(!1)}),[]);return(0,ft.kF)(i),(0,Ot.jsx)("div",{className:"YZA2N",children:(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Regular Expression"),children:(0,Ot.jsxs)("div",{className:"XjlwO",children:[null!=r&&(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Select Regex Version"),direction:Ct.qF.NW,children:(0,Ot.jsxs)(dt.CP,{onClick:l,ref:u,children:["v",n]})}),(0,Ot.jsx)(Tc,{isOpen:o,onMenuClose:f,permalinkFragment:r,version:n,target:u.current}),t]})})})};var Dc=function(e){return[Math.min(e.start,e.end),Math.max(e.start,e.end)]},Ic=function(e){var t=e.matchNum,n=e.group,r=e.start,i=e.end,a=e.content,s=a.length>100?a.slice(0,100)+"\u2026":a;return(0,Ot.jsxs)("div",{className:"Th_7x",children:[(0,Ot.jsx)(dt.vV,{tag:"div",className:"rameg",text:"Match {1}",ph1:(0,Ot.jsx)("span",{children:t+1})}),(0,Ot.jsxs)("div",{className:"p5UZM",children:[(0,Ot.jsx)(dt.vV,{text:"Group {1}",ph1:isNaN(n)?'"'.concat(n,'"'):n,className:"_sUW4"}),":"," ",(0,Ot.jsx)("span",{children:""===a?(0,Ot.jsx)("em",{children:"null"}):(0,Ot.jsx)(dt.K,{text:s,removeNewlines:!0})})]}),null!=r&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("strong",{children:"Pos:"})," ",r,"-",i]})]})};const Lc=(0,ot.memo)(Ic),Mc=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"_getTooltipContent",value:function(e){return(0,Ot.jsx)(Lc,{matchNum:e.match,group:e.groupName||Zs.Z.captureGroupMap[e.groupNum]||e.groupNum,start:e.start,end:e.end,content:e.content})}},{key:"_equalTokens",value:function(e,t){return e===t}}]),i}(ac);var Bc=n(99237),Uc=n(42623),Fc=parseFloat(bt.zj),Gc=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return{left:(e+.5|0)+Fc,right:(n+.5|0)+Fc,top:1+(t+.5|0),bottom:(r+.5|0)-1,scrollX:0|i,scrollY:(0|a)-Fc}},Vc=function(e,t,n,r,i,a,s){var o=Gc(t,n,r,i,s,a),c=o.left,u=o.right,l=o.top,f=o.bottom,h=o.scrollX,p=o.scrollY;e.beginPath(),e.lineWidth=2,e.setLineDash([]),e.moveTo(c-h-1,f-p+1),e.lineTo(u-h+1,f-p+1),e.moveTo(c-h-1,l-p-1),e.lineTo(u-h+1,l-p-1),e.moveTo(c-h-1,l-p-1),e.lineTo(c-h-1,f-p+1),e.moveTo(u-h+1,l-p-1),e.lineTo(u-h+1,f-p+1),e.closePath(),e.stroke()},qc=function(e,t,n,r,i,a,s,o,c){if(!(r<0||t+1>r)){var u=Gc(t,n,r,i,s,a),l=u.left,f=u.right,h=u.top,p=u.bottom,d=u.scrollX,v=u.scrollY,g=Fc,m=e.fillStyle;o&&(e.fillStyle=(0,Uc.C)(m,(0,Bc.R)("--content-bg"),40),e.fillRect(l-g-d,h-v,g,p-h)),c&&(e.fillStyle=(0,Uc.C)(m,(0,Bc.R)("--content-bg"),40),e.fillRect(f-d,h-v,g,p-h)),e.fillStyle=m,e.fillRect(l-d,h-v,f-l,p-h)}},Hc=function(e,t,n){var r=Gc(n.left,n.top,0,n.bottom),i=r.left,a=r.top,s=r.bottom;e.strokeStyle=(0,Bc.R)("--match-zero-width"),e.setLineDash([1,2]),e.beginPath(),e.moveTo(i-t.left|0,a-t.top+Fc|0),e.lineTo(i-t.left|0,s-t.top+Fc|0),e.closePath(),e.stroke()},zc=function(e,t,n,r,i,a,s){if(e&&e.canvas){var o=t.visibleArea,c=t.firstVisibleIndex,u=t.lastVisibleIndex;if(o){e.clearRect(0,0,e.canvas.width,e.canvas.height);for(var l={},f=[],h=u;c<=h;h--){var p=i[h];if(null!=p)for(var d=0;d<p.length;d++){var v=p[d];if(null!==v&&void 0!==v&&v.isParticipating){var g=v.match,m=v.groupNum,y="".concat(g,"_").concat(m);if(null==l[y])if(l[y]=!0,null==v.start||v.start!==v.end){var x=(0,Bc.n)(v.groupNum,v.match%2!==0);Wc(e,n,r,v,o,x,qc)}else f.push(v)}}}for(var b=0,j=f.length;b<j;b++){var Z=f[b],O=Yc(n,Z),w=(0,vt.Z)(O,1)[0];Hc(e,o,w)}if(e.clearRect(0,0,e.canvas.width,Fc),e.clearRect(0,e.canvas.height-Fc,e.canvas.width,e.canvas.height),null!=a){var k=(0,Bc.n)(a.groupNum,a.match%2!==0,s);Wc(e,n,r,a,o,k,qc),Wc(e,n,r,a,o,k,Vc)}}}},Wc=function(e,t,n,r,i,a,s){var o=Yc(t,r),c=(0,vt.Z)(o,2),u=c[0],l=c[1];if(e.fillStyle=a,e.strokeStyle=(0,Uc.C)(a,(0,Bc.R)("--match-mix-hex-color"),(0,Bc.R)("--match-mix-amount")),u.bottom===l.bottom)u.left===l.right?s(e,u.left,u.top,u.left+2,l.bottom,i.top,i.left):s(e,u.left,u.top,l.right,l.bottom,i.top,i.left);else{var f=i.width-n,h=t.defaultTextHeight();s(e,u.left,u.top,f,u.bottom,i.top,i.left,!1,!0);for(var p=u.top;(p+=h)<l.top-1;)s(e,0,p,f,p+u.bottom-u.top,i.top,i.left,!0,!0);s(e,0,l.top,Math.max(l.right,2),l.bottom,i.top,i.left,!0,!1)}},Yc=function(e,t){var n=Dc(t),r=(0,vt.Z)(n,2),i=r[0],a=r[1],s=t.startPos||(t.startPos=e.posFromIndex(i)),o=t.endPos||(t.endPos=e.posFromIndex(a>i?a-1:a)),c=e.charCoords(s,"local"),u=e.charCoords(o,"local");if(c.left>u.left&&c.top>=u.top||c.left>=u.left&&c.top>u.top){var l=c;c=u,u=l}return[c,u]},Kc=function(e,t){var n=e.indexFromPos(e.coordsChar({left:0,top:t.top},"local")),r=e.indexFromPos(e.coordsChar({right:0,top:t.top},"local")),i=e.indexFromPos(e.coordsChar({left:t.clientWidth,top:t.top+t.clientHeight},"local")),a=e.indexFromPos(e.coordsChar({right:t.clientWidth,top:t.top+t.clientHeight},"local"));return[Math.min(n,r),Math.max(i,a)]};const Jc=function(){try{var e=document.createElement("canvas");if(!e||!e.getContext("2d")||!("setLineDash"in e.getContext("2d")))return!1}catch(e){return!1}return!0}()?function(e){var t=e.cmInstance,n=e.matchMap,r=e.waiting,i=(0,at.v9)((function(e){return e.settings.editorTooltips})),a=(0,at.v9)((function(e){return e.settings.wrapLines})),s=(0,at.v9)((function(e){return e.settings.testAreaLineNumbers})),o=(0,at.v9)((function(e){return e.general.currentTheme})),u=(0,ot.useRef)(null),l=(0,ot.useRef)(null),f=(0,ot.useRef)(null),h=(0,ot.useRef)(0),p=(0,ot.useState)(!0),d=(0,vt.Z)(p,2),v=d[0],g=d[1],m=(0,ot.useState)(!1),y=(0,vt.Z)(m,2),x=y[0],b=y[1],j=(0,ot.useCallback)((function(){t.refresh();var e=u.current,n=null===e||void 0===e?void 0:e.parentNode;if(null!=n){var r=n.getBoundingClientRect(),i=r.bottom-r.top,a=r.right-r.left-2;e.style.left="".concat(h.current,"px");var s=a-h.current|0,o=0|i;e.width===s&&e.height===o||(e.width=s,e.height=o)}}),[t]),Z=(0,ot.useRef)(null),O=(0,ot.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];clearTimeout(Z.current),Z.current=setTimeout((function(){var i=t.getScrollInfo(),a=Kc(t,i),s=(0,vt.Z)(a,2),o={visibleArea:i,firstVisibleIndex:s[0],lastVisibleIndex:s[1]};zc(l.current,o,t,h.current,n,e,r)}),1)}),[t,n]);return(0,ot.useEffect)((function(){return l.current=u.current.getContext("2d",{alpha:!0,antialias:!1}),function(e){["imageSmoothingEnabled","mozImageSmoothingEnabled","webkitImageSmoothingEnabled","msImageSmoothingEnabled"].some((function(t){return null!=e[t]&&(e[t]=!1,!0)}))}(l),function(){return clearTimeout(Z.current)}}),[]),(0,ot.useEffect)((function(){O()}),[O,a,s,o]),(0,ot.useEffect)((function(){var e=!1,n=function(){e||O(),e=!1};t.on("scroll",n);var r=function(){return e=!0};t.on("beforeChange",r);var i=function(n,r){var i=Dc(r),a=(0,vt.Z)(i,1)[0],s=t.posFromIndex(a);e=!0,t.setCursor(s),O(r)};return pt.ZP.on(pt.ji,i),function(){t.off("scroll",n),t.off("beforeChange",r),pt.ZP.off(pt.ji,i)}}),[t,O]),(0,ot.useEffect)((function(){var e;j();var t=function(){return g(!0)},n=function(){return b(!0)},r=null,i=function(){clearTimeout(r),g(!0),r=setTimeout(n,500)};return pt.ZP.on((e={},(0,c.Z)(e,pt.AZ,t),(0,c.Z)(e,pt.U0,n),(0,c.Z)(e,pt.$7,i),e)),window.addEventListener("resize",i,{passive:!0}),function(){var e;clearTimeout(r),pt.ZP.off((e={},(0,c.Z)(e,pt.AZ,t),(0,c.Z)(e,pt.U0,n),(0,c.Z)(e,pt.$7,i),e)),window.removeEventListener("resize",i,{passive:!0})}}),[]),(0,ot.useEffect)((function(){var e,r,a,s={passive:!0,capture:!0},o=new Mc(f.current,t),c=null,l=!1,h=function(){l=!0,g()},p=function(){return l=!1};null===(e=document.body)||void 0===e||e.addEventListener("mousedown",h,s),null===(r=document.body)||void 0===r||r.addEventListener("mouseup",p,s);var d=function(){return o.hide()};t.on("scroll",d);var v=function(e){if(i&&!l){var r=Ko(t,e.clientX,e.clientY+window.pageYOffset),a=function(e){if(!e||0===e.length)return null;for(var t=e.length-1;0<=t;t--){var n=e[t];if(n.start!==n.end)return n}return e[0]}(n[r]);if(null!=a||null!=c){o.selectToken(a),O(a,!1);var s=Jo(t,r);s&&o.setPosition(e.clientX,s.top),c=a}}},g=function(){i&&O()},m=null===(a=u.current)||void 0===a?void 0:a.parentNode;return null===m||void 0===m||m.addEventListener("mousemove",v,s),null===m||void 0===m||m.addEventListener("mouseleave",g,s),function(){var e,n;t.off("scroll",d),null===(e=document.body)||void 0===e||e.removeEventListener("mousedown",h,s),null===(n=document.body)||void 0===n||n.removeEventListener("mouseup",p,s),null===m||void 0===m||m.removeEventListener("mousemove",v,s),null===m||void 0===m||m.removeEventListener("mouseleave",g,s),o.destroy()}}),[i,t,O,n]),(0,ot.useEffect)((function(){x&&(j(),O(),b(!1),g(!1))}),[x,j,O]),(0,ot.useEffect)((function(){var e=setTimeout((function(){return g(r)}),100);return function(){return clearTimeout(e)}}),[r]),(0,ot.useEffect)((function(){if(s){var e,n,r=(null===t||void 0===t||null===(e=t.display)||void 0===e||null===(n=e.gutters)||void 0===n?void 0:n.offsetWidth)||0;r!==h.current&&(h.current=r,j())}})),(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("canvas",{ref:u,className:lt()("MF2Zl",v&&"PepZ_")}),(0,Ot.jsx)(nc,{ref:f})]})}:function(){return null},Xc=function(e){var t=e.matchMap,n=e.onInput,r=e.waiting,i=(0,at.v9)((function(e){return e.regexEditor.showSubstitutionArea})),a=(0,at.v9)((function(e){return e.regexEditor.showListSubstitutionArea})),s=(0,at.v9)((function(e){return e.regexEditor.testString})),o=(0,at.v9)((function(e){return e.settings.wrapLines})),c=(0,at.v9)((function(e){return e.settings.testAreaLineNumbers})),u=(0,at.v9)((function(e){return e.settings.displayWhitespace})),l=(0,at.v9)((function(e){return e.settings.defaultTabBehavior})),f=(0,ot.useState)(!1),h=(0,vt.Z)(f,2),p=h[0],d=h[1],v=(0,ot.useState)(null),g=(0,vt.Z)(v,2),m=g[0],y=g[1],x=(0,ot.useCallback)((function(){return d(!0)}),[]),b=(0,ot.useCallback)((function(){return d(!1)}),[]),j=(0,ot.useMemo)((function(){return{lineNumbers:c,mode:null,autofocus:!1,placeholder:(0,ht.Z)("insert your test string here"),tabSize:4,lineWrapping:o,extraKeys:{"Shift-Tab":!1,Tab:!l&&null,Enter:!1},showWhitespace:u}}),[c,o,u,l]),Z=(0,ot.useCallback)((function(e){return y(e)}),[]);return(0,ot.useEffect)((function(){var e=function(){return null===m||void 0===m?void 0:m.refresh()};pt.ZP.on(pt.U0,e);var t=function(e,t,n){return m.setValue(n)};return pt.ZP.on(pt.fZ,t),function(){pt.ZP.off(pt.U0,e),pt.ZP.off(pt.fZ,t)}}),[m]),(0,Ot.jsxs)("div",{className:lt()("of6uh",(i||a)&&"qFwsQ"),children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Test String")}),(0,Ot.jsxs)("div",{className:lt()("s6TnK",p&&"AH8pc"),children:[(0,Ot.jsx)(qo,{onCreate:Z,className:"Pk2Mn",onChange:n,onFocus:x,onBlur:b,options:j,defaultValue:s}),null!=m&&(0,Ot.jsx)(Jc,{cmInstance:m,matchMap:t,waiting:r})]})]})};var Qc=n(11752);function $c(){return new Worker(n.p+"pcre2.worker.6a6cad9ca9016bec1cac.js")}function eu(){return new Worker(n.p+"generic.worker.7de77004541d55020f3c.js")}function tu(){return new Worker(n.p+"javascript.worker.9ee6d1cb113f6a1352c5.js")}function nu(){return new Worker(n.p+"java.worker.09686d0cdfc8affd30b6.js")}var ru=n(54292),iu=["listMode"];function au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ou=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"getWorker",value:function(e){switch(e){case C().PCRE2:return $c;case C().JAVASCRIPT:return tu;case C().PYTHON:case C().PCRE:case C().GOLANG:return eu;case C().JAVA:return nu;default:throw new Error("No worker file exists for flavor '".concat(e,"'"))}}},{key:"runSubst",value:function(e,t,n,r,a,s,o){var c=s.listMode,u=(0,B.Z)(s,iu),l={regex:e,flags:t,testString:n,substString:r,listMode:c};return[C().PCRE,C().PYTHON,C().GOLANG].includes(s.flavor)?(0,Qc.Z)((0,wa.Z)(i.prototype),"runWorker",this).call(this,su(su({},l),a),u,o):(0,Qc.Z)((0,wa.Z)(i.prototype),"runWorker",this).call(this,l,u,o)}}]),i}(ru.Z);var cu=n(64023),uu=n(75659),lu=n(4427),fu=n(86700),hu=n(78338),pu=n(13511),du=n(43307);const vu=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.aM)).setStyle(Xo.Z.meta),t}return(0,ja.Z)(i,[{key:"_getNextState",value:function(e){return"\\U"===this.string?(e.uppercase=!0,e.lowercase=!1):(e.uppercase=!1,e.lowercase=!0),e}}]),i}(du.Z),gu=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.py)).setStyle(Xo.Z.meta),t}return(0,ja.Z)(i,[{key:"_getNextState",value:function(e){return e.lowercase=!1,e.uppercase=!1,e}}]),i}(du.Z);var mu=n(97027),yu=n(1234),xu=n(24051),bu=n(32973),ju=n(61923),Zu=function(e,t,n){if(e.match(/^\\[trnfae]/))return new hu.Z(n)},Ou=function(e,t,n){if(e.matchString("\\v"))return new bu.Z(n)},wu=function(e,t,n){if(e.match(/^\\[\s\S]/))return new mu.Z(n)},ku=function(e,t,n){return"\\"===e.next()?new yu.Z(n):new xu.Z(n)};const Cu=[function(e,t,n){var r=e.match(/^[\\$]\d+/);if(r){for(var i=parseInt(r[0].slice(1),10);(""+i).length>0&&i>n.captureGroupCount;)i=Math.floor(i/10);return e.backUp(r[0].length-("$"+i).length),new lu.Z(n,!0)}},function(e,t,n){if(e.match(/^(?:\${\d+}|\\g<\d+>)/))return new lu.Z(n,!0)},function(e,t,n){if(e.match(/^(?:\${\w+}|\\g<\w+>)/))return new fu.Z(n)},Zu,function(e,t,n){if(e.matchString("\\b"))return new ju.Z(n)},Ou,function(e,t,n){if(e.match(/^\\x(?:[a-fA-F0-9]{2}|{[a-fA-F0-9]+})/))return new pu.Z(n)},function(e,t,n){return e.match(/^\\[UL]/)?new vu(n):e.matchString("\\E")?new gu(n):void 0},wu,ku];var Eu=n(19099),Pu=n(52011),Su=n(64375);const _u=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.hL)).setStyle(Xo.Z.meta),t}return(0,ja.Z)(i)}(du.Z),Nu=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.Cz)).setStyle(Xo.Z.meta),t}return(0,ja.Z)(i)}(du.Z),Ru=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.tI)).setStyle(Xo.Z.meta),t}return(0,ja.Z)(i)}(du.Z);var Tu=n(5786),Au=n(54602),Du=n(43949);const Iu=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"parseComplete",value:function(){Du.Z.prototype.parseComplete.call(this),/^\\[89]$/.test(this.string)&&this.setError(Sa.of)}}]),i}(Du.Z);var Lu=n(92880),Mu=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.O3)).reference=null,t.setStyle(Xo.Z.backreference),t}return(0,ja.Z)(i,[{key:"parseComplete",value:function(){this.reference=this.string.replace(/^\\?\$</,"").slice(0,-1)}},{key:"_revalidate",value:function(e){return this.reference?-1===e.subpatterns.indexOf(this.reference)&&this.setError(Sa.Bj):this.setError(Sa.YY),!!this.error}}]),i}(n(53996).Z);const Bu=Mu;var Uu=function(e,t,n){var r=e.match(/^\\?\$([1-9]\d?)/);if(r){for(var i=parseInt(r[1],10);(""+i).length>0&&i>n.captureGroupCount;)i=Math.floor(i/10);return e.backUp(r[1].length-(""+i).length),new lu.Z(n)}},Fu=function(e,t,n){if(e.match(/^\\(?:[0-3][0-7]{1,2}|[0-7]{1,2})/))return new Su.Z(n)},Gu=function(e,t,n){if("\\"===t&&e.match(/^\\u[0-9A-Fa-f]{0,4}/))return new Au.Z(n,!0)};const Vu=[function(e,t,n){if(e.matchString("$$")||e.matchString("\\$$"))return new mu.Z(n)},function(e,t,n){if(e.matchString("$&")||e.matchString("\\$&"))return new _u(n)},function(e,t,n){if(e.matchString("$`")||e.matchString("\\$`"))return new Nu(n)},function(e,t,n){if(e.matchString("$'")||e.matchString("\\$'"))return new Ru(n)},function(e,t,n){if((0,Ve.x3)()&&e.match(/^\\?\$<[^>]*>/))return new Bu(n)},Uu,function(e,t,n){if(e.matchString("\\0"))return new Tu.Z(n,!!e.match(/^\d+/))},Fu,function(e,t,n){if(e.match(/^\\[trnfab]/))return new hu.Z(n)},function(e,t,n){if(e.matchString("\\v"))return new bu.Z(n)},function(e,t,n){if(e.match(/^\\x[a-fA-F0-9]{0,2}/))return new Eu.Z(n,!0)},Lu.FY,Gu,function(e,t,n){if(e.match(/^\\c./))return new Pu.Z(n)},function(e,t,n){if("\\"===t&&e.match(/^\\[\s\S]/))return new Iu(n)},ku];var qu=n(38645);const Hu=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"parseComplete",value:function(){qu.Z.prototype.parseComplete.call(this),4!==this.string.length&&this.setError(Sa.mi)}}]),i}(qu.Z);var zu=n(66476),Wu=n(95165),Yu=n(49116);const Ku=[function(e,t,n){if(e.match(/^\$(?:\d+\b|{\d+})/))return new lu.Z(n,!0)},function(e,t,n){if(e.match(/^\$(?:\w+|{\w+})/))return new fu.Z(n)},function(e,t,n){if(e.match(/^\\[0-7]{1,3}/))return new Hu(n)},Zu,Ou,function(e,t,n){if(e.match(/^\\x[a-fA-F0-9]{0,2}/))return new zu.Z(n,!0)},Lu.FY,Gu,function(e,t,n){if(e.matchString("\\U"))return new Su.Z(n)},function(e,t,n){if(e.matchString('"'))return new Wu.Z(n)},function(e,t,n){if(e.match(/^\\[\s\S]/))return new Yu.Z(n,!0)},ku],Ju=[function(e,t,n){if(e.match(/^\\[1-9]\d?/))return new lu.Z(n)},function(e,t,n){if(e.match(/^\\(?:0[0-7]{1,2}|[1-3][0-7]{1,2})/))return new qu.Z(n)},function(e,t,n){if(e.match(/^\\g<\d+>/))return new lu.Z(n,!0)},function(e,t,n){if(e.match(/^\\g<\w+>/))return new fu.Z(n)},function(e,t,n){if(e.match(/^\\g/))return new lu.Z(n,!0)},Zu,Ou,wu,ku];var Xu=n(4462);const Qu=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"parseComplete",value:function(){mu.Z.prototype.parseComplete.call(this),/^\\[\da-z]/i.test(this.string)&&this.setError(Sa.mi)}}]),i}(mu.Z),$u=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.w_)).hasAlternative=!1,t.closeGroup=null,t.reference=null,t.setStyle(Xo.Z["group-".concat(Math.min(e.conditionals.length,3))]),t}return(0,ja.Z)(i,[{key:"getTooltipMarkerRange",value:function(){return{primary:{start:{pos:this.editorPosition.start.pos,line:this.editorPosition.start.line},end:{pos:(this.closeGroup||this).editorPosition.end.pos,line:(this.closeGroup||this).editorPosition.end.line}}}}},{key:"parseComplete",value:function(){du.Z.prototype.parseComplete.call(this),this.hasAlternative=this.string.includes("-"),this.reference=this.string.replace(/\W/g,"")}},{key:"setCloseGroup",value:function(e){this.closeGroup=e}},{key:"_getNextState",value:function(e){return e.conditionals.push(this),e.allConditionals.push(this),e}},{key:"_revalidate",value:function(){return this.closeGroup?isNaN(this.reference)?this.state.subpatterns.includes(this.reference)||this.setError(Sa.Bj):this.state.conditionals.length>9?this.setError(Sa.xX):(this.reference=parseInt(this.reference,10),this.state.captureGroupCount<this.reference&&this.setError(Sa.Bj)):this.setError(Sa.CL),!!this.error}}]),i}(du.Z);var el=n(97326);const tl=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;(0,ba.Z)(this,i);var n=e.conditionals[e.conditionals.length-1],a=n?n.type:null;return(t=r.call(this,e,a)).openGroup=null,n?n.error?t.setError(n.error):(t.setStyle(n.style),t.openGroup=n,n.addRelatedToken((0,el.Z)(t)),n.setCloseGroup((0,el.Z)(t))):t.setError(Sa.rs),t}return(0,ja.Z)(i,[{key:"getTooltipMarkerRange",value:function(){return{primary:{start:{pos:(this.openGroup||this).editorPosition.start.pos,line:(this.openGroup||this).editorPosition.start.line},end:{pos:this.editorPosition.end.pos,line:this.editorPosition.end.line}}}}},{key:"_getNextState",value:function(e){return e.conditionals.pop(),e}}]),i}(du.Z),nl=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;(0,ba.Z)(this,i);var n=e.conditionals[e.conditionals.length-1],a=n.type;return(t=r.call(this,e,a)).conditional=null,n.error?t.setError(n.error):(t.setStyle(n.style),n.addRelatedToken((0,el.Z)(t))),n.hasAlternative=!0,t.conditional=n,t}return(0,ja.Z)(i,[{key:"getTooltipMarkerRange",value:function(){var e={pos:this.conditional.editorPosition.start.pos,line:this.conditional.editorPosition.start.line};return{primary:{start:e,end:null!=this.conditional.closeGroup?{pos:this.conditional.closeGroup.editorPosition.end.pos,line:this.conditional.closeGroup.editorPosition.end.line}:e}}}}]),i}(du.Z),rl=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){return(0,ba.Z)(this,i),r.apply(this,arguments)}return(0,ja.Z)(i,[{key:"parseComplete",value:function(){("$"===this.string||this.string.includes("{")&&!this.string.includes("}"))&&this.setError(Sa.YY)}}]),i}(lu.Z),il=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(e){var t;return(0,ba.Z)(this,i),(t=r.call(this,e,_a.Xq)).setError(Sa.YY),t}return(0,ja.Z)(i)}(du.Z),al=[function(e,t,n){if(n.conditionals.length>0&&e.matchString("{"))return new il(n)},function(e,t,n){if("$"===t&&e.matchString("$$"))return new Qu(n)},function(e,t,n){if("$"===t&&e.match(/^\$(?:[a-z]\w*|\{[a-z]\w*\})/i))return new fu.Z(n)},function(e,t,n){if("$"===t&&e.match(/^\$\{(?:\d{1,2}|[a-z]\w+):[+-]/i))return new $u(n)},function(e,t,n){if("$"===t&&e.match(/^\$(?:\d+|\{\d{1,2}\})?/))return new rl(n,!0)},function(e,t,n){var r=n.conditionals.length;if(r>0&&!n.conditionals[r-1].hasAlternative&&e.eat(":"))return new nl(n)},function(e,t,n){if(n.conditionals.length>0&&e.eat("}"))return new tl(n)},Zu,function(e,t,n){if(e.match(/^\\x(?:[a-fA-F0-9]{2}|{[a-fA-F0-9]*}?)/))return new Xu.Z(n)},function(e,t,n){return e.match(/^\\[UL]/i)?new vu(n):e.matchString("\\E")?new gu(n):void 0},function(e,t,n){if("\\"===t&&e.match(/^\\[\s\S]/))return new Qu(n)},ku];var sl=n(25287);const ol=[Uu,function(e,t,n){if(e.match(/^\${\w+}/))return new fu.Z(n)},function(e,t,n){if(e.match(/^\\[trnfb]/))return new hu.Z(n)},Lu.FY,Gu,function(e,t,n){return e.matchString("$0")?new lu.Z(n,!0):e.eat("$")?new il(n):void 0},Fu,function(e,t,n){if("\\"===t&&e.match(/^\\[\s\S]/))return new sl.Z(n)},ku];function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ll=function(e){(0,Za.Z)(i,e);var t,n,r=(t=i,n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,wa.Z)(t);if(n){var i=(0,wa.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Oa.Z)(this,e)});function i(){var e;return(0,ba.Z)(this,i),(e=r.call(this))._getTokenizers=function(e){switch(e){case C().PCRE2:return al;case C().PCRE:return Cu;case C().JAVASCRIPT:return Vu;case C().GOLANG:return Ku;case C().PYTHON:return Ju;case C().JAVA:return ol;default:throw new Error("There is no tokenizer for '".concat(e,"'"))}},e._initialState={uppercase:!1,lowercase:!1,subpatternTokens:[],inCharClass:!1,flags:"",subpatterns:[],captureGroupCount:0,captureGroupMap:{},conditionals:[],allConditionals:[],unicodeEnabled:!1},e._patternError=!1,e}return(0,ja.Z)(i,[{key:"parse",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new uu.Z(e),i=ul(ul({},this._initialState),cu.Z.copyState(t));!r.eof();){var a=r.position,s=this._token(t.flavor,r,i),o=r.position;s.position={start:a,end:o},s.string=e.slice(a,o),s.isSubstitution=!0,s.parseComplete(),n.push(s),i=s.getNextState()}var c=i;this._patternError=c.patternError;for(var u=[].concat(c.subpatternTokens,c.allConditionals),l=0,f=u.length;l<f;l++){var h=u[l],p=h._revalidate(c);this._patternError=this._patternError||p}return this.tokens=n,n}}]),i}(cu.Z),fl=function(e){var t=e.subpatterns,n=e.captureGroupCount,r=e.substParser,i=e.defaultValue,a=e.onEnterClick,s=e.onChange,o=e.flavor,c=e.className,u=(0,at.v9)((function(e){return e.settings.displayWhitespace})),l=(0,at.v9)((function(e){return e.settings.defaultTabBehavior})),f=(0,ot.useRef)(null),h=(0,ot.useMemo)((function(){return{mode:null,placeholder:(0,ht.Z)("insert your replacement value here"),tabSize:4,extraKeys:{"Shift-Tab":!1,Tab:!l&&null,Enter:a||!1},showWhitespace:u}}),[a,u,l]),p=(0,ot.useMemo)((function(){return{flavor:o,subpatterns:t,captureGroupCount:n,unicodeEnabled:o===C().JAVASCRIPT||o===C().GOLANG}}),[t,n,o]),d=(0,ot.useState)(!1),v=(0,vt.Z)(d,2),g=v[0],m=v[1],y=(0,ot.useCallback)((function(e){return m(e)}),[]),x=(0,ot.useCallback)((function(e){return f.current=e}),[]);return(0,ot.useEffect)((function(){var e=function(e,t){return f.current.setValue(t)};return pt.ZP.on(pt.l2,e),function(){return pt.ZP.off(pt.l2,e)}}),[]),(0,Ot.jsx)(rc,{onCreate:x,onChange:s,defaultValue:i,onFocusChange:y,parser:r,parserOptions:p,TooltipClass:sc,codeMirrorOptions:h,className:lt()("Pgoeh",g&&"Vnkit",c),singleLine:!0})};var hl=function(e){var t=e.isSubst,n=e.error,r=e.time,i=e.hasResult,a=null,s=null,o=!1;if(t)a=wc,s=(0,ht.Z)("Processing...");else if(n)switch(a=Cc,n){case an.D9:s=(0,ht.Z)("Pattern Error");break;case an.ik:s=(0,ht.Z)("Timeout");break;default:s=(0,ht.Z)("Engine Error"),o=!0}else i?(s=(0,ht.Z)("Success"),a=kc):(s=(0,ht.Z)("No result"),a=wc);return(0,Ot.jsx)(dt.lx,{disableTooltip:!o,direction:Ct.qF.N,text:null!=n?(0,ht.Z)("Error reported by engine: {1}",n):"",children:(0,Ot.jsx)("div",{className:"Br6dk",children:(0,Ot.jsxs)("div",{className:lt()(Oc,a),children:[s,null!=r&&(0,Ot.jsxs)("span",{className:Ec,children:[" (",Pc(r),")"]})]})})})};const pl=(0,ot.memo)(hl);var dl=(0,Ht.Z)(zt.Y4),vl=new ll,gl=[an.Y8,an.wm,an.Vu,an.D9,an.ik,an.Gv];const ml=function(e){var t=e.regex,n=e.substString,r=e.matchResult,i=e.testString,a=e.regexParserStatus,s=e.captureGroupMap,o=e.subpatterns,c=e.captureGroupCount,u=e.label,l=e.listMode,f=e.onValueChange,h=(0,at.v9)((function(e){return e.settings.wrapLines})),d=(0,at.v9)((function(e){return e.settings.displayWhitespace})),v=(0,at.v9)((function(e){return e.settings.testAreaLineNumbers})),g=(0,at.v9)((function(e){return e.settings.maxExecutionTime})),m=(0,at.v9)((function(e){return e.regexEditor.flavor})),y=(0,at.v9)((function(e){return e.regexEditor.flags})),x=(0,ot.useRef)(null),b=(0,ot.useRef)(new ou),j=(0,ot.useState)({substString:n,tokens:[],status:null}),Z=(0,vt.Z)(j,2),O=Z[0],w=Z[1],k=(0,ot.useState)({isSubst:!0,time:null,substError:null,hasResult:!1}),C=(0,vt.Z)(k,2),E=C[0],P=C[1],S=(0,ft.Sf)((function(e){return f(e)}),X.UPDATE_RESULT_DELAY),_=(0,ft.Sf)((function(e,t){null==t||gl.includes(t)||(p.Z.error("Subst error reported by engine:",t),it.O7(new Error(t))),P({isSubst:!1,time:null==e?null:e.time,substError:t,hasResult:null!=(null===e||void 0===e?void 0:e.result)})}),X.UPDATE_RESULT_DELAY,"cancel"),N=(0,ot.useCallback)((function(e,t,n){return w({substString:e,status:t,tokens:n})}),[]),R=(0,ot.useCallback)((function(e){var t=x.current,n=null===t||void 0===t?void 0:t.getScrollInfo(),r=n.top,i=n.left;null===t||void 0===t||t.setValue(e),null===t||void 0===t||t.scrollTo(i,r)}),[]);(0,ot.useEffect)((function(){if(S(O.substString),_.cancel(),""===t||null!=O.status||0===r.length||null!=a)b.current.resetWorker(),""===t?P({hasResult:!1,isSubst:!1,time:null,substError:null}):_({time:null,result:null},O.status||a),R(i||"");else{P({hasResult:!1,isSubst:!0,time:null,substError:null});var e={maxExecutionTime:g,flavor:m,listMode:l},n={matchResult:r,tokens:O.tokens,captureGroupMap:s};b.current.runSubst(t,y,i,O.substString,n,e,(function(e,t){_(e,t),R(null==(null===e||void 0===e?void 0:e.result)?i:e.result)}))}}),[g,r,O.substString,O.tokens,O.status,y,a,_,S,l,R]);var T=(0,ot.useCallback)((function(e){return x.current=e}),[]);(0,ot.useEffect)((function(){var e=function(){return S.flush()};return pt.ZP.on(pt.P,e),function(){return pt.ZP.off(pt.P,e)}}),[S]),(0,ot.useEffect)((function(){pt.ZP.emit(pt.AZ);var e=setTimeout((function(){return pt.ZP.emit(pt.U0)}),dl);return function(){clearTimeout(e),pt.ZP.emit(pt.AZ),setTimeout((function(){return pt.ZP.emit(pt.U0)}),dl)}}),[]),(0,ot.useEffect)((function(){return function(){return b.current.resetWorker()}}),[]);var A=(0,ot.useMemo)((function(){return{mode:null,lineWrapping:h,readOnly:!0,showWhitespace:d,lineNumbers:v,extraKeys:{"Shift-Tab":!1,Tab:!1},tabindex:-1}}),[v,d,h]);return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(dt.__,{text:u,className:"llpmv"}),(0,Ot.jsx)(pl,{isSubst:E.isSubst,error:E.substError,time:E.time,hasResult:E.hasResult}),(0,Ot.jsxs)("div",{className:"uP9GB",children:[(0,Ot.jsx)(qo,{className:"iuWEc",onCreate:T,options:A,defaultValue:""}),(0,Ot.jsx)(fl,{onChange:N,defaultValue:n,substParser:vl,flavor:m,captureGroupCount:c,subpatterns:o})]})]})},yl=function(e){var t=e.matchResult,n=e.testString,r=e.regex,i=e.regexParserStatus,a=e.captureGroupMap,s=e.subpatterns,o=e.captureGroupCount,c=(0,at.I0)(),u=(0,at.v9)((function(e){return e.regexEditor.substString})),l=(0,ot.useCallback)((function(e){return c((0,Ee.ZI)(e))}),[c]);return(0,Ot.jsx)(ml,{label:(0,ht.Z)("Substitution"),substString:u,testString:n,matchResult:t,regex:r,regexParserStatus:i,captureGroupMap:a,subpatterns:s,captureGroupCount:o,onValueChange:l})},xl=function(e){var t=e.matchResult,n=e.testString,r=e.regex,i=e.regexParserStatus,a=e.captureGroupMap,s=e.subpatterns,o=e.captureGroupCount,c=(0,at.I0)(),u=(0,at.v9)((function(e){return e.regexEditor.listSubstString})),l=(0,ot.useCallback)((function(e){return c((0,Ee.ak)(e))}),[c]);return(0,Ot.jsx)(ml,{label:(0,ht.Z)("List"),substString:u,testString:n,matchResult:t,regex:r,regexParserStatus:i,captureGroupMap:a,subpatterns:s,captureGroupCount:o,onValueChange:l,listMode:!0})},bl=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.regexEditor.regex})),n=(0,at.v9)((function(e){return e.regexEditor.flags})),r=(0,at.v9)((function(e){return e.regexEditor.flavor})),i=(0,at.v9)((function(e){return e.regexEditor.delimiter})),a=(0,at.v9)((function(e){return e.regexEditor.testString})),s=(0,at.v9)((function(e){return e.regexEditor.showUnitTestArea})),o=(0,at.v9)((function(e){return e.settings.maxExecutionTime})),c=(0,at.v9)((function(e){return e.settings.calculateRegexSteps})),u=(0,at.v9)((function(e){return e.regexEditor.error})),l=(0,at.v9)((function(e){return e.regexEditor.matchResult.length})),f=(0,at.v9)((function(e){return e.regexEditor.showSubstitutionArea})),h=(0,at.v9)((function(e){return e.regexEditor.showListSubstitutionArea})),p=(0,ot.useRef)(new So.Z).current,d=(0,ot.useState)(a),v=(0,vt.Z)(d,2),g=v[0],m=v[1],y=(0,ot.useState)({regex:"",status:null,tokens:[],flavor:r,flags:n,captureGroupMap:{},subpatterns:[],captureGroupCount:0,definedSubpatterns:[]}),x=(0,vt.Z)(y,2),b=x[0],j=x[1],Z=(0,ot.useState)({isMatching:!1,time:null,steps:null}),O=(0,vt.Z)(Z,2),w=O[0],k=O[1],E=(0,ot.useState)({matchResult:[],matchMap:{}}),P=(0,vt.Z)(E,2),S=P[0],_=P[1],N=(0,ot.useRef)(0),R=(0,ot.useState)(!1),T=(0,vt.Z)(R,2),A=T[0],D=T[1],I=(0,va.Z)((function(t,n){var r=t||{},i=r.steps,a=r.time,s=r.matchResult,o=r.matchMap;null!=n?(k({isMatching:!1,time:null,steps:null}),e((0,Ee.QF)(n))):(e((0,Ee.QF)(null)),k({isMatching:!1,steps:i,time:a})),e((0,Ee.rS)(n?[]:s)),_(n?{matchResult:[],matchMap:{}}:{matchResult:s,matchMap:o})}),X.UPDATE_RESULT_DELAY,"cancel"),L=(0,va.Z)((function(t,n,r){e((0,Ee.og)({status:n,tokens:r,subpatterns:Zs.Z.subpatterns,captureGroupMap:Zs.Z.captureGroupMap,captureGroupCount:Zs.Z.captureGroupCount,definedSubpatterns:Zs.Z.definedSubpatterns})),e((0,Ee.uf)(t))}),X.UPDATE_RESULT_DELAY),M=(0,va.Z)((function(t){return e((0,Ee.Jh)(t))}),X.UPDATE_RESULT_DELAY),B=(0,ot.useCallback)((function(t){var n=t.delimiter,i=t.flags,a=t.isSub,s=t.substText;[C().PCRE,C().PCRE2].includes(r)&&e((0,Ee.G6)(n)),e((0,Ee.dL)("",i,r)),a&&(e((0,Ee.ux)()),pt.ZP.emit(pt.l2,s))}),[r,e]),U=(0,ot.useCallback)((function(t){return e((0,Ee.G6)(t))}),[e]),F=(0,ot.useCallback)((function(t){return e((0,Ee.dL)(n,t,r))}),[n,r,e]),G=(0,ot.useCallback)((function(e,t,n,r){var i=r.flavor,a=r.flags;j({regex:e,status:t,tokens:n,flavor:i,flags:a,subpatterns:Zs.Z.subpatterns,captureGroupMap:Zs.Z.captureGroupMap,captureGroupCount:Zs.Z.captureGroupCount,definedSubpatterns:Zs.Z.definedSubpatterns}),L(e,t,n)}),[L]),V=(0,ot.useCallback)((function(e){var t=e.getValue();M(t),m(t)}),[M]);(0,ot.useEffect)((function(){I.cancel();var e=1e9*Math.random()|0;N.current=e;var t=b.regex,n=b.status,r=b.flavor,i=b.flags;if(""===t||null!=n)_({matchResult:[],matchMap:{}}),I({matchResult:[],matchMap:{},steps:null,time:null},n),D(!1);else{k({isMatching:!0,time:null,steps:null}),D(!0);var a={maxExecutionTime:o,calculateRegexSteps:c,flavor:r};p.runMatch(t,i,g,a,(function(t,n){e===N.current&&(_({matchResult:(null===t||void 0===t?void 0:t.matchResult)||[],matchMap:(null===t||void 0===t?void 0:t.matchMap)||{}}),I(t,n),D(!1))}))}}),[b,p,g,I,L,o,c]),(0,ot.useEffect)((function(){var e=function(){L.flush(),M.flush()};return pt.ZP.on(pt.P,e),function(){return pt.ZP.off(pt.P,e)}}),[L,M]),(0,ot.useEffect)((function(){return function(){return p.resetWorker()}}),[p]);var q=f?yl:xl;return(0,Ot.jsxs)("div",{className:"AUc0W",children:[(0,Ot.jsxs)("div",{className:"rjodX",children:[(0,Ot.jsx)(Ac,{children:!s&&(0,Ot.jsx)(_c,{isMatching:w.isMatching,matchNum:l,steps:w.steps,time:w.time,error:u,flavor:r,hasRegex:t.length>0})}),(0,Ot.jsx)(bc,{onRegexChange:G,onRegexPaste:B,onDelimiterChange:U,onFlagsChange:F,regex:t,flavor:r,flags:n,delimiter:i,regexParser:Zs.Z})]}),(0,Ot.jsx)("div",{className:"f9BbV",children:s?(0,Ot.jsx)(Lo,{}):(0,Ot.jsxs)("div",{className:"F69Q6",children:[(0,Ot.jsx)(Xc,{onInput:V,matchMap:S.matchMap,waiting:A}),(h||f)&&(0,Ot.jsx)("div",{className:"kPafO",children:(0,Ot.jsx)(q,{matchResult:S.matchResult,testString:g,regex:b.regex,regexParserStatus:b.status,captureGroupMap:b.captureGroupMap,subpatterns:b.subpatterns,captureGroupCount:b.captureGroupCount})})]})})]})};var jl=n(8342),Zl=function(){var e=(0,ot.useState)(!1),t=(0,vt.Z)(e,2),n=t[0],r=t[1],i=[{description:(0,ht.Z)("Switch to regex matching"),shortcuts:[rn.SWITCH_TO_MATCH]},{description:(0,ht.Z)("Switch to regex substitution"),shortcuts:[rn.SWITCH_TO_SUBST]},{description:(0,ht.Z)("Switch to regex list substitution"),shortcuts:[rn.SWITCH_TO_LIST]},{description:(0,ht.Z)("Switch to unit tests"),shortcuts:[rn.SWITCH_TO_UNIT_TESTS]},{description:(0,ht.Z)("Open regex debugger"),shortcuts:[rn.SHOW_DEBUGGER]},{description:(0,ht.Z)("Open code generator"),shortcuts:[rn.SHOW_CODE_GEN]},{description:(0,ht.Z)("Run unit tests (when view is open)"),shortcuts:[rn.RUN_UNIT_TESTS]}];return(0,ot.useEffect)((function(){var e=function(){return r(!0)};return pt.ZP.on("key:question",e),function(){return pt.ZP.off("key:question",e)}}),[]),(0,Ot.jsx)(jl.Z,{onModalClose:function(){return r(!1)},isOpen:n,shortcuts:i})};const Ol=(0,ot.memo)(Zl),wl=function(){(0,ft.pD)();var e=(0,ct.UO)(),t=e.permalinkFragment,n=e.version,r=(0,ft.$5)("getRegex"),i=(0,vt.Z)(r,3),a=i[1],s=i[2];if((0,ft.DB)((function(e){e&&null!=t&&!isNaN(n)&&s((0,Ee.Of)(t,n))}),[s,t,n]),null!=t&&(a||isNaN(n)))return"1"!==n?(0,Ot.jsx)(dt.l_,{to:"/r/".concat(t,"/1")}):(0,Ot.jsx)(dt.l_,{to:"/"});var o=t?"".concat(t,"-").concat(n):"plain";return(0,Ot.jsxs)("div",{className:"bkz2q",children:[(0,Ot.jsx)(so,{}),(0,Ot.jsx)(bl,{}),(0,Ot.jsx)(da,{path:"/codegen",title:(0,ht.Z)("Code Generator"),children:(0,Ot.jsx)(ra,{})},"code-gen-".concat(o)),(0,Ot.jsx)(da,{path:"/debugger",title:(0,ht.Z)("Regex Debugger"),children:(0,Ot.jsx)(aa,{})},"debugger-".concat(o)),(0,Ot.jsxs)(ct.Z5,{children:[(0,Ot.jsx)(ct.AW,{path:"/codegen",element:(0,Ot.jsx)(Ot.Fragment,{})}),(0,Ot.jsx)(ct.AW,{path:"/debugger",element:(0,Ot.jsx)(Ot.Fragment,{})}),(0,Ot.jsx)(ct.AW,{path:"/",element:(0,Ot.jsx)(Ot.Fragment,{})}),(0,Ot.jsx)(ct.AW,{path:"*",element:(0,Ot.jsx)(dt.l_,{to:null!=t?"/r/".concat(t,"/").concat(n):"/"})})]}),(0,Ot.jsx)(Ol,{})]})};var kl=function(e){return e.isVisible?(0,Ot.jsx)("div",{className:"wMRs6",children:(0,Ot.jsx)(dt.$j,{size:Ct.J7.HC})}):null};const Cl=(0,ot.memo)(kl),El=function(e){var t=e.isLoading,n=e.children;return(0,Ot.jsxs)(Ot.Fragment,{children:[!t&&n,(0,Ot.jsx)(Cl,{isVisible:t})]})};function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pl(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _l=function(e){var t=e.active,n=e.page,r=(0,ct.TH)(),i=Sl(Sl({},r),{},{search:gn.stringify(Sl(Sl({},gn.parse(r.search)),{},{page:n}))});return(0,Ot.jsx)(dt.rU,{to:i,className:lt()("PMAGi",t&&"J4QnP"),noTheme:!0,children:n})},Nl="RnWnK";function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Al=function(e){var t=e.left,n=e.right,r=e.nextPage,i=e.className,a=e.visible,s=(0,ct.TH)(),o=Tl(Tl({},s),{},{search:gn.stringify(Tl(Tl({},gn.parse(s.search)),{},{page:r}))});return(0,Ot.jsxs)(dt.rU,{to:o,className:lt()("Fa5Yt",!a&&"qE_eB",i),noTheme:!0,"aria-label":t?(0,ht.Z)("Previous page"):(0,ht.Z)("Next page"),children:[t&&(0,Ot.jsx)(gt.jW7,{size:20,className:Nl}),n&&(0,Ot.jsx)(gt.jfD,{size:20,className:Nl})]})};const Dl=(0,ot.memo)(Al);function Il(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}var Ll=function(e){var t=e.pages,n=e.className,r=e.currentPage;if(t<2)return null;var i=Math.min(t,r),a=(0,ne.Z)([].concat(Il(Math.max(1,i-3),i),Il(i,Math.min(t,i+3)))).filter((function(e){return 1!==e&&e!==t}));return(0,Ot.jsxs)("div",{className:lt()("lt5O_",n),children:[(0,Ot.jsx)(Dl,{nextPage:i-1,visible:i>1,left:!0}),(0,Ot.jsx)(_l,{page:1,active:1===i}),a[0]>2&&"...",a.map((function(e){return(0,Ot.jsx)(_l,{page:e,active:i===e},"page-".concat(e))})),a[a.length-1]+1<t&&"...",(0,Ot.jsx)(_l,{page:t,active:t===i}),(0,Ot.jsx)(Dl,{nextPage:i+1,visible:i<t,right:!0})]})};const Ml=(0,ot.memo)(Ll),Bl="EIMPZ",Ul="tMvcj";var Fl=function(e){var t=e.upvotes,n=e.downvotes,r=e.userVote,i=e.permalinkFragment,a=e.className,s=(0,at.I0)(),o=(0,at.v9)((function(e){return e.general.userId})),c=(0,ot.useState)(t),u=(0,vt.Z)(c,2),l=u[0],f=u[1],h=(0,ot.useState)(n),p=(0,vt.Z)(h,2),d=p[0],v=p[1],g=(0,ot.useState)(r),m=(0,vt.Z)(g,2),y=m[0],x=m[1];(0,ot.useEffect)((function(){f(t),v(n),x(r)}),[t,n,r]);var b,j=function(e,t){e.preventDefault(),y===t&&(t=0);var n=y>0?l-1:l,r=y<0?d-1:d;t>0?n++:t<0&&r++,f(n),v(r),x(t),s((0,Ee._v)(i,t))},Z=null!=o,O=Math.round(l-d),w=Math.max(0,Math.round(l/Math.max(1,l+d)*100)),k=(0,ht.Z)("{1} upvotes, {2} downvotes ({3}% like it)",Math.round(l),Math.round(d),w)+(Z?"":"\n("+(0,ht.Z)("You must be signed in to vote")+")"),C=null;return 0===l&&0===d||(b=(w/100*120).toString(10),C="hsl(".concat(b,", 100%, 25%)")),(0,Ot.jsx)(dt.lx,{direction:Ct.qF.E,text:k,children:(0,Ot.jsxs)("div",{className:lt()("rQI68",a),children:[(0,Ot.jsx)(dt.Yd,{className:lt()(Bl,"IBxjT",y>0&&Ul),onClick:function(e){return j(e,1)},disabled:!Z,"aria-label":(0,ht.Z)("Upvote"),children:(0,Ot.jsx)(Fn.s$2,{size:16})}),(0,Ot.jsx)("div",{className:"OK2mW",style:{color:C},children:O}),(0,Ot.jsx)(dt.Yd,{className:lt()(Bl,"QSQhw",y<0&&Ul),onClick:function(e){return j(e,-1)},disabled:!Z,"aria-label":(0,ht.Z)("Downvote"),children:(0,Ot.jsx)(Fn.RiI,{size:16})})]})})};const Gl=(0,ot.memo)(Fl);var Vl=function(e){var t=e.delimiter,n=e.flags,r=e.regex,i=e.flavor,a=e.permalinkFragment,s=e.version,o=(0,ot.useRef)(new Ve.ZP).current.parse(r,{delimiter:t,flags:n,flavor:i});return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(dt.Po,{text:(0,ht.Z)("Regular Expression"),children:(0,Ot.jsx)("div",{className:"tKAH6",children:i})}),(0,Ot.jsxs)(ta.Z,{className:"fHgtW",children:[(0,Ot.jsx)(hs,{tokens:o,delimiter:t,flags:n}),(0,Ot.jsx)("div",{className:"LOiuh",children:(0,Ot.jsxs)(dt.rU,{to:vn(a,s),absolute:!0,children:[(0,ht.Z)("Open regex in editor"),(0,Ot.jsx)(li.xXr,{className:"L3Eaj"})]})})]})]})};const ql=(0,ot.memo)(Vl);var Hl=n(27484),zl=n.n(Hl),Wl=n(70178),Yl=n.n(Wl),Kl=n(84110),Jl=n.n(Kl);zl().extend(Jl()),zl().extend(Yl());const Xl=zl();var Ql=function(e){var t=e.date,n=e.author,r=e.description;return(0,Ot.jsxs)("div",{className:"XL8nr",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Description")}),(0,Ot.jsxs)(ta.Z,{children:[(0,Ot.jsx)(Mt,{className:lt()("EcsU0",!r&&"afYTT"),children:r||(0,ht.Z)("no description available")}),(0,Ot.jsxs)("div",{className:"KPMvl",children:[(0,ht.Z)("Submitted by")," ",(0,Ot.jsx)("span",{className:"UblEx",children:n||(0,ht.Z)("anonymous")})," - ",Xl.utc(t).fromNow()]})]})]})};const $l=(0,ot.memo)(Ql),ef=function(){var e,t=(0,at.I0)(),n=(0,at.v9)((function(e){return e.regexLibrary.details})),r=(0,ct.UO)().libraryId,i=(0,ft.$5)("libraryDetails"),a=(0,vt.Z)(i,3),s=a[0],o=a[1],c=a[2];if((0,ft.DB)((function(){null==n&&c((0,Ee.xv)(r))}),[c,r,n]),(0,ft.kF)((null===n||void 0===n?void 0:n.title)||"Regex Library",X.LIBRARY_META_DESCRIPTION),(0,ot.useEffect)((function(){return function(){return t((0,Ee.bL)(null))}}),[t]),o)return 404===(null===(e=o.response)||void 0===e?void 0:e.status)?(0,Ot.jsx)(dt.l_,{to:"/library"}):(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,children:(0,ht.Z)("There was a problem when trying to fetch the details for this entry. Please try again later.")});if(s||null==n)return(0,Ot.jsx)(Cl,{isVisible:!0});var u=n.regex,l=n.flags,f=n.flavor,h=n.delimiter,p=n.permalinkFragment,d=n.version,v=n.dateModified,g=n.description,m=n.author,y=n.upvotes,x=n.downvotes,b=n.userVote;return(0,Ot.jsxs)("div",{className:"Cq6xD",children:[(0,Ot.jsxs)("div",{className:"FDqYn",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Vote"),className:"ULHf7"}),(0,Ot.jsx)(Gl,{upvotes:y,downvotes:x,userVote:b,permalinkFragment:p})]}),(0,Ot.jsxs)("div",{className:"INRCS",children:[(0,Ot.jsx)(ql,{regex:u,flags:l,flavor:f,delimiter:h,permalinkFragment:p,version:d}),(0,Ot.jsx)($l,{date:v,description:g||void 0,author:m||void 0})]})]})};var tf=n(26525),nf=n.n(tf),rf=function(e){var t,n,r=e.title,i=e.flavor,a=e.date,s=e.upvotes,o=e.downvotes,c=e.canvote,u=void 0!==c&&c,l=e.author,f=void 0===l?(0,ht.Z)("anonymous"):l,h=e.userVote,p=e.description,d=e.permalinkFragment,v=(0,ct.TH)().search;return(0,Ot.jsxs)("div",{className:"fiYVe",children:[(0,Ot.jsx)(Gl,{canvote:u,upvotes:s,downvotes:o,userVote:h,permalinkFragment:d,className:"BKJlR"}),(0,Ot.jsx)(dt.rU,{noTheme:!0,to:"".concat(d).concat(v),className:"wqwfW",children:(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)("div",{className:"aqvFS",children:[(0,Ot.jsx)("div",{className:"UYk6r",children:i}),(0,Ot.jsx)("h3",{className:"elKva",children:r})]}),(0,Ot.jsx)("div",{className:lt()("xZqXR",!p&&"LHJqG"),children:(t=nf()(p||(0,ht.Z)("no description available")),n=t,t&&t.length>303&&(n=t.slice(0,300)+"..."),n.split("\n").length>6&&(n=n.split("\n").slice(0,6).join("\n")+"..."),n)}),(0,Ot.jsxs)("div",{className:"RryPT",children:[(0,ht.Z)("Submitted by")," ",(0,Ot.jsx)("span",{className:"iNeUZ",children:f})," - ",(0,Ot.jsx)("span",{children:Xl.utc(a).fromNow()})]})]})})]})};const af=(0,ot.memo)(rf),sf="m7Th9";var of=function(e){var t=e.libraryData,n=e.fetchError,r=e.didSearch;return n?(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,children:(0,ht.Z)("There was a problem trying to fetch the library data. Please try again later.")}):0===t.length?(0,Ot.jsx)(dt.qX,{noMargin:!0,children:r?(0,ht.Z)("Your search did not match anything"):(0,ht.Z)("There does not seem to be anything here")}):t.map((function(e,t){return(0,Ot.jsx)(af,{title:e.title,description:e.description||void 0,flavor:e.flavor,date:e.dateModified,upvotes:e.upvotes,downvotes:e.downvotes,permalinkFragment:e.permalinkFragment,author:e.author||void 0,userVote:e.userVote||void 0},"library-entry-".concat(t))}))};const cf=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.regexLibrary.libraryData})),n=(0,at.v9)((function(e){return e.regexLibrary.pages})),r=(0,at.v9)((function(e){var t;return null===(t=e.regexLibrary.details)||void 0===t?void 0:t.title})),i=(0,st.lr)(),a=(0,vt.Z)(i,2),s=a[0],o=a[1],c=s.getAll("filterFlavors"),u=s.get("orderBy")||ri().MOST_RECENT,l=s.get("search")||"",f=s.get("page")||1,h=(0,ft.$5)("regexLibrary"),p=(0,vt.Z)(h,3),d=p[0],v=p[1],g=p[2];(0,ft.vI)((function(){g((0,Ee.v0)(f,l,u,c))}),[g,c.join(""),u,l,f]),(0,ft.DB)((function(){0===t.length&&g((0,Ee.v0)(f,l,u,c))}),[g,c.join(""),u,l,f,t.length]);var m=(0,ft.Sf)(o,500,"cancel"),y=(0,ot.useCallback)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=0===l.length&&0!==t.length?ri().RELEVANCE:0===t.length&&u===ri().RELEVANCE?ri().MOST_RECENT:u,m({filterFlavors:c,orderBy:e,search:t})}),[m,c,u,l.length]);return(0,ot.useEffect)((function(){return function(){return e((0,Ee.tP)([]))}}),[e]),(0,ft.kF)("Regex Library",X.LIBRARY_META_DESCRIPTION),(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)("div",{className:"Mn1lS",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Library entries"),className:sf}),(0,Ot.jsxs)("label",{className:"SS2G3",children:[(0,Ot.jsx)("span",{className:sf,children:(0,ht.Z)("Search library")}),(0,Ot.jsx)(dt.oi,{defaultValue:l||"",onChange:y,placeholder:(0,ht.Z)("Search library"),focusOnMount:!0,clearButton:!0})]}),(0,Ot.jsx)(ta.Z,{className:"kyeKv",children:(0,Ot.jsx)(El,{isLoading:d,children:(0,Ot.jsx)(of,{libraryData:t,fetchError:!!v,didSearch:""!==l||c.length>0})})}),(null===t||void 0===t?void 0:t.length)>0&&!v&&(0,Ot.jsx)(Ml,{pages:n,currentPage:parseInt(f,10),className:"TkFqs"})]}),(0,Ot.jsx)(ct.Z5,{children:(0,Ot.jsx)(ct.AW,{path:":foo/:bar/*",element:(0,Ot.jsx)(dt.l_,{to:"/library"})})}),(0,Ot.jsx)(da,{title:r||(0,ht.Z)("Library Entry"),preserveLocation:!0,path:":libraryId/*",children:(0,Ot.jsx)(ef,{})})]})};var uf=n(69989),lf=function(e){var t=e.title,n=e.children;return(0,Ot.jsxs)("div",{className:"qaldp",children:[(0,Ot.jsx)(dt.__,{text:t}),(0,Ot.jsx)(ta.Z,{children:n})]})};const ff=(0,ot.memo)(lf),hf="UClnn",pf="Ln7r5";var df=[50,100,200,400,600,800,1e3,1500,2e3,3e3,4e3,5e3,7500,1e4,15e3,2e4,3e4,4e4,5e4,75e3,1e5],vf={exit:"Cr18H",exitActive:"YmXqP"},gf=(0,Ht.Z)(zt.JL);const mf=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.settings.maxExecutionTime})),n=(0,at.v9)((function(e){return e.settings.theme})),r=(0,at.v9)((function(e){return e.settings.nonParticipatingGroups})),i=(0,at.v9)((function(e){return e.settings.colorizeSyntax})),a=(0,at.v9)((function(e){return e.settings.autoComplete})),s=(0,at.v9)((function(e){return e.settings.wrapLines})),o=(0,at.v9)((function(e){return e.settings.regexAreaLineNumbers})),u=(0,at.v9)((function(e){return e.settings.testAreaLineNumbers})),l=(0,at.v9)((function(e){return e.settings.language})),f=(0,at.v9)((function(e){return e.settings.editorTooltips})),h=(0,at.v9)((function(e){return e.settings.displayWhitespace})),p=(0,at.v9)((function(e){return e.settings.alwaysCollapseLeftSidebar})),d=(0,at.v9)((function(e){return e.settings.alwaysCollapseRightSidebar})),v=(0,at.v9)((function(e){return e.settings.defaultFlavor})),g=(0,at.v9)((function(e){return e.settings.showWarningUnsavedProgress})),m=(0,at.v9)((function(e){return e.settings.defaultCodeGenLanguage})),y=(0,at.v9)((function(e){return e.settings.calculateRegexSteps})),x=(0,at.v9)((function(e){return e.settings.defaultTabBehavior})),b=(0,at.v9)((function(e){return e.settings.disableKeyboardShortcuts})),j=(0,ot.useState)(!1),Z=(0,vt.Z)(j,2),O=Z[0],w=Z[1],C=(0,ot.useRef)(),E=function(j,Z){var O;null==j.target.checked?(O=j.target.value,/^\d+$/.test(O)&&(O=parseInt(O,10))):O=j.target.checked;var k=(0,c.Z)({maxExecutionTime:t,theme:n,nonParticipatingGroups:r,colorizeSyntax:i,autoComplete:a,wrapLines:s,regexAreaLineNumbers:o,testAreaLineNumbers:u,language:l,editorTooltips:f,displayWhitespace:h,alwaysCollapseLeftSidebar:p,alwaysCollapseRightSidebar:d,defaultFlavor:v,showWarningUnsavedProgress:g,defaultCodeGenLanguage:m,calculateRegexSteps:y,defaultTabBehavior:x,disableKeyboardShortcuts:b},Z,O);w(!0),e((0,Ee.I2)(k)),e((0,Ee.Ot)()),l!==k.language&&e((0,Ee.BF)(k.language)),clearTimeout(C.current),C.current=setTimeout((function(){return w(!1)}),2e3)};return(0,ot.useEffect)((function(){return function(){clearTimeout(C.current)}}),[]),(0,Ot.jsxs)("div",{className:"EGx_u",children:[(0,Ot.jsx)(dt.uT,{className:"mCG29",classNames:vf,timeout:gf,appear:!1,enter:!1,in:O,children:(0,Ot.jsxs)("div",{className:"aQbMN",children:[(0,ht.Z)("Saving settings..."),(0,Ot.jsx)(dt.$j,{size:Ct.J7.TC,className:"Y06gr"})]})}),(0,Ot.jsxs)(ff,{title:(0,ht.Z)("General"),children:[(0,Ot.jsxs)(Ts,{className:hf,children:[(0,ht.Z)("Language"),(0,Ot.jsx)("select",{defaultValue:l,onChange:function(e){return E(e,"language")},children:Object.keys(uf).sort().map((function(e){return(0,Ot.jsx)("option",{value:e,children:uf[e].text},"language-".concat(e))}))}),(0,Ot.jsxs)(dt.qX,{className:pf,noMargin:!0,children:[(0,ht.Z)("You can help with translations by visiting the following url:")," ",(0,Ot.jsx)(dt.rU,{to:"https://r101.cf",absolute:!0,children:"https://r101.cf"})]})]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:p,onChange:function(e){return E(e,"alwaysCollapseLeftSidebar")}}),(0,ht.Z)("Always collapse left sidebar")]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:d,onChange:function(e){return E(e,"alwaysCollapseRightSidebar")}}),(0,ht.Z)("Always collapse right sidebar")]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:g,onChange:function(e){return E(e,"showWarningUnsavedProgress")}}),(0,ht.Z)("Show warning popup when trying to leave site with unsaved data")]}),(0,Ot.jsxs)(Ts,{className:hf,children:[(0,Ot.jsx)("input",{type:"checkbox",checked:x,onChange:function(e){return E(e,"defaultTabBehavior")}}),(0,ht.Z)("Use the default behavior for the tab key"),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("The tab key will by default switch to the next field in the tabbing order. If this option is disabled, input areas for regex, substitution and test string will instead consume the tab key.")})]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:b,onChange:function(e){return E(e,"disableKeyboardShortcuts")}}),(0,ht.Z)("Disable all keyboard shortcuts")]})]}),(0,Ot.jsx)(ff,{title:(0,ht.Z)("Theme"),children:(0,Ot.jsxs)(Ts,{children:[(0,ht.Z)("Style"),(0,Ot.jsxs)("select",{defaultValue:n,onChange:function(e){return E(e,"theme")},children:[(0,Ot.jsx)("option",{value:T.B7,children:(0,ht.Z)("Automatic")}),(0,Ot.jsx)("option",{value:T.rp,children:(0,ht.Z)("Light")}),(0,Ot.jsx)("option",{value:T.Py,children:(0,ht.Z)("Dark")})]})]})}),(0,Ot.jsxs)(ff,{title:(0,ht.Z)("Editor"),children:[(0,Ot.jsxs)(Ts,{className:hf,children:[(0,ht.Z)("Max Execution Time"),(0,Ot.jsx)("select",{defaultValue:t,onChange:function(e){return E(e,"maxExecutionTime")},children:df.map((function(e){return(0,Ot.jsx)("option",{value:e,children:e>1e3?"".concat(e/1e3,"s"):"".concat(e,"ms")},"max-time-".concat(e))}))}),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("This setting affects how long the matcher will try to match your regex before it decides to give up")}),t<1500&&(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,type:Ct.gr.u_,children:(0,ht.Z)("Values below {1} are not recommended. Use at your own discretion","1.5s")})]}),(0,Ot.jsxs)(Ts,{className:hf,children:[(0,ht.Z)("Default flavor"),(0,Ot.jsx)("select",{defaultValue:v,onChange:function(e){return E(e,"defaultFlavor")},children:k.all.map((function(e){return(0,Ot.jsx)("option",{value:e,children:e},"flavor-".concat(e))}))}),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("Select the flavor you want to use when the site loads. Note: a saved entry's flavor will override this")})]}),(0,Ot.jsxs)(Ts,{className:hf,children:[(0,ht.Z)("Default code generator language"),(0,Ot.jsxs)("select",{defaultValue:m,onChange:function(e){return E(e,"defaultCodeGenLanguage")},children:[(0,Ot.jsx)("option",{value:"auto",children:(0,ht.Z)("Automatic")},"code-gen-language-auto"),zr.vI.map((function(e){return(0,Ot.jsx)("option",{value:e.value,children:e.string},"code-gen-language-".concat(e.value))}))]}),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("If left to automatic, the code generator will mirror the currently selected flavor in the editor")})]}),(0,Ot.jsxs)(Ts,{className:hf,children:[(0,Ot.jsx)("input",{type:"checkbox",checked:i,onChange:function(e){return E(e,"colorizeSyntax")}}),(0,ht.Z)("Highlight Syntax"),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("Enable or disable the syntax highlighting of your regular expression in the editor")})]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){return E(e,"autoComplete")}}),(0,ht.Z)("Auto-complete Brackets")]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:s,onChange:function(e){return E(e,"wrapLines")}}),(0,ht.Z)("Wrap Long Lines")]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:o,onChange:function(e){return E(e,"regexAreaLineNumbers")}}),(0,ht.Z)("Show Line Numbers in Regex Editor")]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:u,onChange:function(e){return E(e,"testAreaLineNumbers")}}),(0,ht.Z)("Show Line Numbers in Test String Editor and Substitution Result")]}),(0,Ot.jsxs)(Ts,{className:hf,children:[(0,Ot.jsx)("input",{type:"checkbox",checked:f,onChange:function(e){return E(e,"editorTooltips")}}),(0,ht.Z)("Show tooltips"),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("Show informative and helpful tooltips when hovering tokens in the regex editor")})]}),(0,Ot.jsxs)(Ts,{children:[(0,Ot.jsx)("input",{type:"checkbox",checked:h,onChange:function(e){return E(e,"displayWhitespace")}}),(0,ht.Z)("Visualize whitespace and other special characters")]}),(0,Ot.jsxs)(Ts,{className:hf,children:[(0,Ot.jsx)("input",{type:"checkbox",checked:y,onChange:function(e){return E(e,"calculateRegexSteps")}}),(0,ht.Z)("Show how many steps a regular expression takes to evaluate"),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("If you are working on very large and complex expressions, turning this option off will yield improved performance")})]}),(0,Ot.jsxs)(Ts,{className:hf,children:[(0,Ot.jsx)("input",{type:"checkbox",checked:r,onChange:function(e){return E(e,"nonParticipatingGroups")}}),(0,ht.Z)("Include non-participating groups in match result"),(0,Ot.jsx)(dt.qX,{className:pf,noMargin:!0,children:(0,ht.Z)("This setting determines whether groups in your regex, which did not match anything in the subject string, should be included in the results or not")})]})]})]})},yf=function(){return(0,ft.kF)("Settings",X.SETTINGS_META_DESCRIPTION),(0,Ot.jsxs)(ct.Z5,{children:[(0,Ot.jsx)(ct.AW,{path:"/",element:(0,Ot.jsx)(mf,{})}),(0,Ot.jsx)(ct.AW,{path:"*",element:(0,Ot.jsx)(dt.l_,{to:"/settings"})})]})};var xf=function(e){var t,n=e.title,r=e.permalinkFragment,i=e.version,a=e.flavor;return t=null!=n&&n.length>0?(0,Ot.jsxs)("span",{children:[(0,Ot.jsx)("strong",{className:"fQJFj",children:n})," (",r,"/",i,")"]}):"".concat(r,"/").concat(i),(0,Ot.jsxs)("div",{className:"ultvh",children:[(0,Ot.jsx)(dt.rU,{to:vn(r,i),absolute:!0,children:t}),(0,Ot.jsx)("div",{className:"Qz9r3",children:a})]})};const bf=(0,ot.memo)(xf),jf=function(e){var t=e.onModalClose,n=e.isOpen,r=e.title,a=void 0===r?"":r,o=e.tags,c=void 0===o?[]:o,u=e.historyItemIndex,l=e.permalinkFragment,f=(0,at.I0)(),h=(0,ot.useState)(!1),d=(0,vt.Z)(h,2),v=d[0],g=d[1],m=(0,ot.useState)(a),y=(0,vt.Z)(m,2),x=y[0],b=y[1],j=(0,ot.useState)(c),Z=(0,vt.Z)(j,2),O=Z[0],w=Z[1],k=(0,ot.useState)({isLoading:!1,hasError:!1}),C=(0,vt.Z)(k,2),E=C[0],P=C[1],S=(0,ot.useCallback)((function(e){w(e),g(!0)}),[]),_=(0,ot.useCallback)((function(e){b(e),g(!0)}),[]),N=function(){var e=(0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P({isLoading:!0,hasError:!1}),e.prev=1,e.next=4,Promise.all([f((0,Ee.ML)(O,u,l)),f((0,Ee._1)(x,u,l)),new Promise((function(e){return setTimeout(e,500)}))]);case 4:P({isLoading:!1,hasError:!1}),t(),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),p.Z.error("Unable to save account details",e.t0),P({isLoading:!1,hasError:!0});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return(0,ot.useEffect)((function(){n&&(b(a),w(c))}),[n,c,a]),(0,Ot.jsxs)(_t.Z,{onModalClose:t,isOpen:n,isLoading:E.isLoading,children:[(0,Ot.jsx)(Nt.Z,{children:(0,ht.Z)("Edit account entry")}),(0,Ot.jsx)(Rt.Z,{children:(0,Ot.jsx)(En,{title:x,tags:O,onTagsChange:S,onTitleChange:_,disabled:E.isLoading})}),(0,Ot.jsxs)(Tt.Z,{children:[E.isLoading&&(0,Ot.jsx)(dt.$j,{className:"gTWw0",size:Ct.J7.TC}),E.hasError&&(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Unable to save changes, please try again"),direction:Ct.qF.N,children:(0,Ot.jsx)("div",{className:"wzCa1",role:"alert",children:(0,Ot.jsx)(gt.j6O,{size:20})})}),(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Save"),onClick:N,className:"cTD4v",disabled:E.isLoading||!v}),(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Close"),onClick:t,type:Ct.V5.n1,disabled:E.isLoading})]})]})},Zf={root:"W2Ezh",icons:"J1eYs",date:"ULefS",icon:"YTN_p",fill:"QYMY8",delete:"nbKtJ",isFavorite:"wEJsJ",isLocked:"lEtvT",title:"xO8vv"},Of=function(e){var t=e.refreshData,n=e.permalinkFragment,r=e.historyItemIndex,a=e.isOwner,o=e.dateAdded,c=e.isFavorite,u=e.isPrivate,l=e.isLocked,f=e.deleteCode,h=e.isLibraryEntry,p=e.title,d=e.tags,v=(0,at.I0)(),g=(0,at.v9)((function(e){return e.general.permalinkFragment})),m=(0,ot.useState)(!1),y=(0,vt.Z)(m,2),x=y[0],b=y[1],j=(0,ot.useState)(!1),Z=(0,vt.Z)(j,2),O=Z[0],w=Z[1],k=(0,ot.useCallback)((0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(Ee.Ez(n,r,!c));case 2:null!=g&&g===n&&v(Ee.jb(!c));case 3:case"end":return e.stop()}}),e)}))),[v,n,c,r,g]),C=(0,ot.useCallback)((0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(Ee.JO(n,r,!u));case 2:case"end":return e.stop()}}),e)}))),[v,n,r,u]),E=(0,ot.useCallback)((0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(Ee.fU(n,r,!l));case 2:case"end":return e.stop()}}),e)}))),[v,n,r,l]),P=(0,ot.useCallback)((function(){return b(!0)}),[]),S=(0,ot.useCallback)((function(){return b(!1)}),[]),_=(0,ot.useCallback)((function(){return w(!0)}),[]),N=(0,ot.useCallback)((function(){return w(!1)}),[]),R=(0,ot.useCallback)((0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!1),e.next=3,v(Ee.MX(n,f));case 3:g===n&&v(Ee.Bq(null,null,null)),t();case 5:case"end":return e.stop()}}),e)}))),[v,n,f,t,g]);return(0,Ot.jsxs)("div",{className:Zf.root,children:[(0,Ot.jsxs)("div",{className:Zf.icons,children:[(0,Ot.jsx)(dt.lx,{text:c?(0,ht.Z)("Remove from favorites"):(0,ht.Z)("Add to favorites"),direction:Ct.qF.NE,children:(0,Ot.jsx)(dt.Yd,{onClick:k,children:(0,Ot.jsx)(gt.iB2,{className:lt()(Zf.icon,Zf.isFavorite,c&&Zf.fill),size:16})})}),(0,Ot.jsx)(dt.lx,{text:(0,ht.Z)("Edit title and tags"),direction:Ct.qF.N,children:(0,Ot.jsx)(dt.Yd,{onClick:P,children:(0,Ot.jsx)(gt.cpK,{className:lt()(Zf.icon,Zf.title),size:16})})}),a&&!h&&(0,Ot.jsx)(dt.lx,{text:u?(0,ht.Z)("Make permalink public"):(0,ht.Z)("Make permalink private"),direction:Ct.qF.N,children:(0,Ot.jsx)(dt.Yd,{onClick:C,children:(0,Ot.jsx)(gt.NuV,{className:lt()(Zf.icon,Zf.isPrivate,u&&Zf.fill),size:16})})}),a&&!h&&(0,Ot.jsx)(dt.lx,{text:l?(0,ht.Z)("Allow others to edit permalink"):(0,ht.Z)("Disallow others to edit permalink"),direction:Ct.qF.N,children:(0,Ot.jsx)(dt.Yd,{onClick:E,children:(0,Ot.jsx)(gt.Dx2,{className:lt()(Zf.icon,Zf.isLocked,l&&Zf.fill),size:16})})}),!!f&&(0,Ot.jsx)(dt.lx,{text:h?(0,ht.Z)("Delete library entry"):(0,ht.Z)("Delete permalink"),direction:Ct.qF.N,children:(0,Ot.jsx)(dt.Yd,{onClick:_,children:(0,Ot.jsx)(gt.M$4,{className:lt()(Zf.icon,Zf.delete),size:16})})})]}),(0,Ot.jsx)("div",{className:Zf.date,children:Xl(o).format("YYYY-MM-DD HH:mm")}),(0,Ot.jsx)(jf,{isOpen:x,onModalClose:S,title:p,tags:d,historyItemIndex:r,permalinkFragment:n}),(0,Ot.jsx)(Ur,{isOpen:O,onModalClose:N,onConfirmClick:R})]})},wf="ZZ5Pq";function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kf(Object(n),!0).forEach((function(t){(0,c.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ef=function(e){var t=e.item,n=e.historyItemIndex,r=e.refreshData,i=t.permalinkFragment,a=t.version,s=t.title,o=t.flavor,c=t.tags,u=t.regex,l=t.delimiter,f=t.flags;return(0,Ot.jsxs)("div",{className:"yHCCV",children:[(0,Ot.jsx)(Of,Cf({refreshData:r,historyItemIndex:n},t)),(0,Ot.jsx)(bf,{permalinkFragment:i,version:a,title:s,flavor:o}),(0,Ot.jsxs)("div",{className:"o699z",children:[(0,Ot.jsx)("div",{className:wf,children:l}),(0,Ot.jsx)("div",{className:"cp1os",children:u}),(0,Ot.jsx)("div",{className:wf,children:l}),(0,Ot.jsx)("div",{className:"J2B0P",children:f})]}),(0,Ot.jsx)(kn,{className:"fyIbf",tags:c,size:Ct.J7.HC,ignoreEmpty:!0})]})};const Pf=(0,ot.memo)(Ef),Sf=function(e){var t=e.returnTo,n=(0,ot.useState)(!1),r=(0,vt.Z)(n,2),i=r[0],a=r[1],s=(0,ot.useCallback)((function(){return a(!1)}),[]);return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)(dt.qX,{className:"WdG4k",type:Ct.gr.u_,children:[(0,Ot.jsx)(dt.vV,{tag:"strong",text:"Please {1} by clicking the link or the button in the left sidebar.",ph1:(0,Ot.jsx)(dt.Yd,{className:"dQeBH",onClick:function(){return a(!0)},children:(0,ht.Z)("sign in")})}),(0,Ot.jsxs)("p",{children:[(0,ht.Z)("You do not have to create an account, just select an existing account from one of the supported service providers.")," ",(0,ht.Z)("Only the bare minimum information is retrieved and saved in order to identify your account.")]})]}),(0,Ot.jsx)(gi,{onModalClose:s,isOpen:i,returnTo:t})]})},_f="bl5fq";var Nf=function(e){var t=e.scope,n=e.page,r=e.emptyMessage,i=(0,st.lr)(),a=(0,vt.Z)(i,1)[0].getAll("filterTags"),s=a.join(""),o=(0,at.v9)((function(e){return e.account.staleData})),c=(0,at.v9)((function(e){return e.account.data})),u=(0,ft.$5)("getUserData"),l=(0,vt.Z)(u,3),f=l[0],h=l[1],p=l[2],d=(0,ot.useCallback)((function(){return p((0,Ee.s1)(t,n,a))}),[p,s,n,t]);return(0,ft.DB)((function(){o&&p((0,Ee.s1)(t,n,a))}),[p,o,s,n,t]),(0,ft.vI)((function(){p((0,Ee.s1)(t,n,a))}),[p,s,n,t]),h?(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,children:(0,ht.Z)("There was an error while fetching your account data. Please try again later.")}):f||0!==c.length?(0,Ot.jsx)(El,{isLoading:f,children:c.map((function(e,n){return(0,Ot.jsx)(Pf,{item:e,filterTags:a,historyItemIndex:n,refreshData:d},"".concat(t,"-user-data-item-").concat(n))}))}):(0,Ot.jsx)(dt.qX,{noMargin:!0,children:a.length>0?(0,ht.Z)("Your tag filtration returned no results."):r})};const Rf=function(e){var t=e.title,n=e.scope,r=e.emptyMessage,i=(0,st.lr)(),a=(0,vt.Z)(i,1)[0],s=parseInt(a.get("page"),10)||1,o=(0,at.v9)((function(e){return e.account.pages})),c=(0,at.v9)((function(e){return e.general.userId})),u=null!=c?t:(0,ht.Z)("Account Page");return(0,ft.kF)(u,X.ACCOUNT_META_DESCRIPTION),(0,Ot.jsxs)("div",{className:"Pw4UW",children:[(0,Ot.jsx)(dt.__,{text:u,className:"rtGnE"}),(0,Ot.jsx)(ta.Z,{className:"mdzfm",children:null==c?(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Sf,{}),(0,Ot.jsxs)("p",{className:_f,children:[(0,ht.Z)("By signing in, all your expressions will be automatically saved to your account, where you have ability to organize and manage them.")," ",(0,ht.Z)("You can add titles and tags to organize your entries, as well as favorite any expressions.")]}),(0,Ot.jsxs)("p",{className:_f,children:[(0,ht.Z)("You also get a valuable feature set with regards to your data privacy, where you are given the ability to restrict who can view and edit the information you save.")," ",(0,ht.Z)("If you want to permanently remove the saved data, you can easily do so from here. The delete link will be automatically tied to your account, so you never have to worry about losing it.")]}),(0,Ot.jsx)(dt.vV,{tag:"p",text:"By signing in you also get the ability to enhance your skills and participate in the {1} along with thousands of other regex connoisseurs!",ph1:(0,Ot.jsx)(dt.rU,{to:"/quiz",children:(0,ht.Z)("regex quiz")})})]}):(0,Ot.jsx)(Nf,{scope:n,emptyMessage:r,page:s})}),(0,Ot.jsx)(Ml,{className:"StUEG",currentPage:s,pages:o})]})},Tf=function(){var e=(0,at.I0)();return(0,ot.useEffect)((function(){return function(){return e((0,Ee.xz)())}}),[e]),(0,Ot.jsx)("div",{className:"cX9NU",children:(0,Ot.jsxs)(ct.Z5,{children:[(0,Ot.jsx)(ct.AW,{path:hi().MINE,element:(0,Ot.jsx)(Rf,{title:(0,ht.Z)("My Regular Expressions"),scope:hi().MINE,emptyMessage:(0,ht.Z)("You have not created anything yourself yet.")})}),(0,Ot.jsx)(ct.AW,{path:hi().FAVORITES,element:(0,Ot.jsx)(Rf,{title:(0,ht.Z)("My Favorites"),scope:hi().FAVORITES,emptyMessage:(0,ht.Z)("You have not added anything to your favorites yet.")})}),(0,Ot.jsx)(ct.AW,{path:hi().LIBRARY,element:(0,Ot.jsx)(Rf,{title:(0,ht.Z)("My Library Entries"),scope:hi().LIBRARY,emptyMessage:(0,ht.Z)("You have not submitted anything to the library yet.")})}),(0,Ot.jsx)(ct.AW,{path:"*",element:(0,Ot.jsx)(dt.l_,{to:"/account/".concat(hi().MINE)})})]})})};var Af=n(61898);const Df=function(e){var t=e.title,n=e.children;return(0,Ot.jsxs)("div",{className:"bSN9D",children:[(0,Ot.jsx)(dt.__,{text:t,className:"WnWGc"}),n]})};var If=Ne()?(0,ot.lazy)((function(){return Promise.all([n.e(87),n.e(781)]).then(n.bind(n,90372))})):function(){};const Lf=function(e){var t=e.regex,n=e.flags,r=e.delimiter,i=e.substitution,a=e.isSubstitutionTask,s=e.shortestSolution,o=e.className,c=e.taskIdx,u=e.taskNumber,l=e.hasSolved,f=(""+t+n+r+r+i).length,h=a?"s"+r+t+r+i+r+n:r+t+r+n;return(0,Ot.jsxs)("div",{className:o,children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Task Statistics")}),(0,Ot.jsxs)(ta.Z,{children:[(0,Ot.jsx)(dt.vV,{text:"Your shortest solution thus far is {1} characters long. The overall shortest solution is {2} characters long.",ph1:(0,Ot.jsx)("strong",{children:f}),ph2:(0,Ot.jsx)("strong",{children:s})}),(0,Ot.jsx)("div",{className:"uoWfq",children:h}),!l&&(0,Ot.jsx)(dt.qX,{type:Ct.gr.pn,className:"oJnCW",children:(0,ht.Z)("Your previous best entry has been invalidated and this task is no longer marked as completed for you.")}),l&&(0,Ot.jsx)(dt.I2,{errorClassName:"xEiQv",fallback:(0,Ot.jsx)(dt.$j,{size:Ct.J7.TC,className:"Z2tPY"}),children:(0,Ot.jsx)(If,{taskIdx:c,taskNumber:u,bestSolution:f})})]})]})};var Mf=parseFloat(bt.D6),Bf=function(e){var t=e.regex,n=e.flags,r=e.delimiter,i=e.flavor,a=(0,at.v9)((function(e){return e.rightSidebar.activeSubsection}));switch(a){case m:return(0,Ot.jsx)(no,{title:(0,ht.Z)("Explanation"),children:(0,Ot.jsx)(bs,{regex:t,flags:n,delimiter:r,flavor:i})});case x:return(0,Ot.jsx)(no,{title:(0,ht.Z)("Quick Reference"),id:"quickrefParent",children:(0,Ot.jsx)(zs,{})});default:throw new Error("Unknown subsection '".concat(a,"'"))}};const Uf=function(e){var t=e.regex,n=e.flags,r=e.delimiter,i=e.flavor,a=(0,ft.Sj)(Mf);if((0,at.v9)((function(e){return e.settings.alwaysCollapseRightSidebar}))||a.width<Mf){var s=[{tooltip:(0,ht.Z)("View Explanation"),icon:nn.UCm,key:m},{tooltip:(0,ht.Z)("View Regex Quick Reference"),icon:gt.CA9,key:x}];return(0,Ot.jsxs)(Qs,{children:[(0,Ot.jsx)(ro,{subsections:s}),(0,Ot.jsx)(Bf,{regex:t,flags:n,delimiter:r,flavor:i})]})}return(0,Ot.jsxs)(xa,{children:[(0,Ot.jsx)(Ws,{title:(0,ht.Z)("Explanation"),subsection:m,resizable:!0,children:(0,Ot.jsx)(bs,{regex:t,flags:n,delimiter:r,flavor:i})}),(0,Ot.jsx)(Ws,{title:(0,ht.Z)("Quick Reference"),subsection:x,id:"quickrefParent",children:(0,Ot.jsx)(zs,{})})]})};Ln().shape({taskNumber:Ln().number.isRequired,title:Ln().string.isRequired,description:Ln().string.isRequired,taskType:Ln().string.isRequired,errorMessage:Ln().string,successMessage:Ln().string,totalTests:Ln().number,failingTestNumber:Ln().number,hasSolved:Ln().bool.isRequired,canSolve:Ln().bool.isRequired,shortestSolution:Ln().number}),Ln().shape({regex:Ln().string.isRequired,flags:Ln().string.isRequired,delimiter:Ln().string.isRequired,substitution:Ln().string.isRequired}),Ln().shape({regex:Ln().string,flags:Ln().string,delimiter:Ln().string,substitution:Ln().string});var Ff=function(e){var t=e.entry,n=e.className,r=t.regex,i=t.flags,a=t.delimiter,s=t.substitution;if(""===r||null==r)return null;var o=(""+r+i+a+a+s).length;return(0,Ot.jsx)("div",{className:n,children:(0,ht.Z)("Current score: {1}",o)})};const Gf=(0,ot.memo)(Ff),Vf="H513J",qf="ZVVpX",Hf="vMhEV",zf=function(e){var t=e.task,n=e.error,r=e.loading,i=e.totalTasks,a=e.taskIdx;return n?(0,Ot.jsxs)(dt.qX,{type:Ct.gr.pn,children:[(0,ht.Z)("There was an error querying the server, please try again later:")," ",n.message]}):r?(0,Ot.jsx)(dt.$j,{size:Ct.J7.HC,className:"Npsea"}):t.errorMessage?(0,Ot.jsx)(Mt,{className:"c7Tes",children:"**Test ".concat(t.failingTestNumber,"/").concat(t.totalTests,":** ").concat(t.errorMessage)}):t.successMessage?(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Mt,{className:qf,children:t.successMessage}),a+1<i&&(0,Ot.jsxs)(dt.rU,{className:"ityDl",to:"/quiz/".concat(a+1),children:[(0,ht.Z)("Next question")," \u2192"]})]}):(0,ht.Z)("Enter your regex and hit submit to see the result.")};var Wf=["latest","best"];const Yf=function(e){var t=e.taskIdx,n=(0,ot.useRef)(new Ve.ZP).current,r=(0,ot.useRef)(new ll).current,i=(0,at.I0)(),a=(0,at.v9)((function(e){return e.quiz.allTasks.length})),s=(0,at.v9)((function(e){return e.quiz.allTasks[t-1]}))||{latest:{},best:{},task:null},o=s.latest,c=s.best,u=(0,B.Z)(s,Wf),l=o.regex,f=o.flags,h=o.delimiter,p=o.substitution,d=c.regex,v=c.flags,g=c.delimiter,m=c.substitution;(0,ft.kF)("Task ".concat(t," - ").concat(u.title),X.QUIZ_META_DESCRIPTION);var y=(0,ft.Sf)((function(e,t){return i((0,Ee.$9)(e,{regex:t}))}),X.UPDATE_RESULT_DELAY),x=(0,ft.Sf)((function(e,t){return i((0,Ee.$9)(e,{substitution:t}))}),X.UPDATE_RESULT_DELAY),b=(0,ot.useCallback)((function(e){var n=(0,Af.e)(e,C().PCRE2);i((0,Ee.$9)(t-1,{flags:n}))}),[i,t]),j=(0,ot.useCallback)((function(e){return i((0,Ee.$9)(t-1,{delimiter:e}))}),[i,t]),Z=(0,ot.useCallback)((function(e){return y(t-1,e)}),[y,t]),O=(0,ot.useCallback)((function(e){return x(t-1,e)}),[x,t]),w=(0,ft.$5)("submitQuizSolution"),k=(0,vt.Z)(w,3),E=k[0],P=k[1],S=k[2],_=function(){E||0===l.length||null!=r.getStatus()||null!=n.getStatus()||(y.flush(),x.flush(),S((0,Ee.NS)(u.taskNumber,o)))},N="".concat((0,ht.Z)("Task {1}",t),": ").concat(u.title);u.isOptional&&(N+=" (".concat((0,ht.Z)("optional"),")"));var R="SUB"===u.taskType;return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Uf,{regex:l,flavor:C().PCRE2,flags:f,delimiter:h}),(0,Ot.jsxs)(Df,{title:N,children:[(0,Ot.jsx)(ta.Z,{className:"k3Ut5",children:(0,Ot.jsx)(Mt,{className:qf,children:u.description})}),(0,Ot.jsxs)("div",{className:"tYBLb",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Regular Expression")}),(0,Ot.jsx)(bc,{onRegexChange:Z,onFlagsChange:b,onDelimiterChange:j,onEnterClick:_,delimiter:h,regex:l,flags:f,regexParser:n,flavor:C().PCRE2})]}),R&&(0,Ot.jsxs)("div",{className:"qdCR1",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Substitution")}),(0,Ot.jsx)(fl,{flavor:C().PCRE2,substParser:r,captureGroupCount:n.captureGroupCount,subpatterns:n.subpatterns,defaultValue:p,onEnterClick:_,onChange:O,className:"ICHlo"})]}),(0,Ot.jsxs)("div",{className:"O_glM",children:[(0,Ot.jsx)(Gf,{className:"asiz9",entry:o}),(0,Ot.jsx)(dt.zx,{text:(0,ht.Z)("Submit"),onClick:_,disabled:E||0===l.length||null!=r.getStatus()||null!=n.getStatus(),className:"nfzMY"})]}),(0,Ot.jsxs)("div",{className:"chvbW",children:[(0,Ot.jsx)(dt.__,{text:(0,ht.Z)("Result")}),(0,Ot.jsx)(ta.Z,{children:(0,Ot.jsx)(zf,{task:u,error:P,loading:E,totalTasks:a,taskIdx:t})})]}),null!=d&&(0,Ot.jsx)("div",{className:Vf,children:(0,Ot.jsx)(Lf,{regex:d,flags:v,delimiter:g,substitution:m,isSubstitutionTask:R,shortestSolution:u.shortestSolution,className:Vf,taskNumber:u.taskNumber,hasSolved:u.hasSolved,taskIdx:t})})]})]})},Kf=function(){var e=(0,ct.UO)().taskIdx,t=(0,at.v9)((function(t){return t.quiz.allTasks[e-1]}));return null!==t&&void 0!==t&&t.canSolve?(0,Ot.jsx)(Yf,{taskIdx:parseInt(e,10)},"quiz-task-".concat(e)):(0,Ot.jsx)(dt.l_,{to:"/quiz"})};var Jf=["DrRegex","Andreas Zetterlund","Timvde","Zarthus","Davidebyzero"],Xf=function(e){var t=e.notSignedIn;return(0,Ot.jsx)(Df,{title:(0,ht.Z)("Regex Quiz"),children:(0,Ot.jsxs)(ta.Z,{className:"d9Wg4",children:[t&&(0,Ot.jsx)(Sf,{returnTo:"/quiz"}),(0,Ot.jsx)("strong",{children:(0,ht.Z)("Welcome to the regex101 regex quiz!")}),(0,Ot.jsxs)("p",{className:Hf,children:[(0,ht.Z)("This is an interactive learning tool you can use to improve your understanding of regular expressions, and their different applications.")," ",(0,ht.Z)("The quiz is divided into a number of different tasks, which each have a short description of the problem for you to solve.")," ",(0,ht.Z)("Once you have solved each task, you will be presented with statistics over how well others have done in that task, and the next task will be made available to you.")," ",(0,ht.Z)("After you have finished a task you can continue improving upon your solution, making it shorter, and climb higher into the leader boards.")]}),(0,Ot.jsxs)("p",{className:Hf,children:[(0,ht.Z)("Do note that these tasks do not necessarily promote best practices in real life scenarios, but rather aim to teach you the fundamentals of writing powerful regular expressions.")," ",(0,ht.Z)("Parsing HTML with regex is seldom a good idea, despite there being a task in the quiz to do just that.")," ",(0,ht.Z)("The quiz is evaluated using the PCRE2 engine, which is also available in the main editor if you would like to do some testing.")," ",(0,ht.Z)("The tasks will get progressively harder, and you will receive less and less hand-holding the further you progress.")]}),(0,Ot.jsxs)("p",{className:Hf,children:[(0,ht.Z)("If you encounter any issues, quirky behavior or bugs, please open up an issue on github with all the relevant details"),":"," ",(0,Ot.jsx)(dt.rU,{to:"https://github.com/firasdib/Regex101/issues",absolute:!0,children:"https://github.com/firasdib/Regex101/issues"})]}),(0,Ot.jsxs)("div",{className:Hf,children:[(0,ht.Z)("A special thanks goes out to the following individuals for their hard work and contributions to the quiz:"),(0,Ot.jsx)("ul",{className:"Qx04x",children:Jf.map((function(e){return(0,Ot.jsx)("li",{children:e},"credit-quiz-".concat(e))}))})]}),(0,Ot.jsx)("p",{className:Hf,children:(0,Ot.jsx)("strong",{children:(0,ht.Z)("Enjoy!")})})]})})};const Qf=function(){var e=(0,at.I0)(),t=(0,at.v9)((function(e){return e.general.userId}));return(0,ot.useEffect)((function(){e((0,Ee.hK)(m))}),[e]),(0,ft.kF)("Regex Quiz",X.QUIZ_META_DESCRIPTION),null==t?(0,Ot.jsx)(Xf,{notSignedIn:!0}):(0,Ot.jsx)("div",{className:"jGEqA",children:(0,Ot.jsxs)(ct.Z5,{children:[(0,Ot.jsx)(ct.AW,{path:":taskIdx/*",element:(0,Ot.jsx)(Kf,{})}),(0,Ot.jsx)(ct.AW,{path:"/",element:(0,Ot.jsx)(Xf,{})})]})})},$f=function(){var e=(0,ct.UO)().permalinkFragment,t=(0,at.v9)((function(e){return e.regexEditor.regexVersions})),n=(0,ft.$5)("getRegexVersions"),r=(0,vt.Z)(n,3),i=r[0],a=r[1],s=r[2];return(0,ft.DB)((function(){s((0,Ee.zp)(e))}),[e]),i?null:a?(0,Ot.jsx)(dt.l_,{to:"/"}):(0,Ot.jsx)(dt.l_,{to:"/r/".concat(e,"/").concat(t)})};var eh=function(){return(0,Ot.jsxs)("div",{className:"DmUSm",children:[(0,Ot.jsx)("h1",{children:"A critical error has occurred"}),(0,Ot.jsxs)("p",{children:["If possible, open up an issue with as many details as you can here:"," ",(0,Ot.jsx)("a",{href:"https://github.com/firasdib/Regex101/issues",children:"https://github.com/firasdib/Regex101/issues"}),"."]}),(0,Ot.jsx)("p",{children:"It might be a good idea to take a screen shot of your dev console window, if you know how to open it."})]})};const th=function(){(0,ft.OL)(),(0,ft.YX)(),(0,ft.aL)();var e=(0,at.v9)((function(e){return e.settings.alwaysCollapseLeftSidebar})),t=(0,at.v9)((function(e){return e.settings.alwaysCollapseRightSidebar})),n=(0,at.v9)((function(e){return e.regexEditor.hasUnsavedData})),r=(0,at.v9)((function(e){return e.settings.showWarningUnsavedProgress}));return(0,ot.useEffect)((function(){window.requestAnimationFrame((function(){return pt.ZP.emit(pt.En)}))}),[]),(0,ot.useEffect)((function(){window.onbeforeunload=function(e){if(r&&n){var t=(0,ht.Z)("You have made changes since you last saved, leaving the website will result in a permanent loss of the data.");return e.returnValue=t,t}}}),[n,r]),(0,Ot.jsx)(dt.SV,{fallback:(0,Ot.jsx)(eh,{}),children:(0,Ot.jsxs)("div",{className:"HPRlT",children:[(0,Ot.jsx)(qt,{alwaysCollapseLeftSidebar:e,alwaysCollapseRightSidebar:t}),(0,Ot.jsx)(ea,{alwaysCollapseLeftSidebar:e}),(0,Ot.jsx)("div",{className:lt()("QtZzw",e&&"rxgkz"),children:(0,Ot.jsxs)(ct.Z5,{children:[(0,Ot.jsx)(ct.AW,{path:"/library/*",element:(0,Ot.jsx)(cf,{})}),(0,Ot.jsx)(ct.AW,{path:"/settings/*",element:(0,Ot.jsx)(yf,{})}),(0,Ot.jsx)(ct.AW,{path:"/account/*",element:(0,Ot.jsx)(Tf,{})}),(0,Ot.jsx)(ct.AW,{path:"/quiz/*",element:(0,Ot.jsx)(Qf,{})}),(0,Ot.jsx)(ct.AW,{path:"/r/:permalinkFragment/latest",element:(0,Ot.jsx)($f,{})}),(0,Ot.jsx)(ct.AW,{path:"/r/:permalinkFragment/:version/*",element:(0,Ot.jsx)(wl,{})}),(0,Ot.jsx)(ct.AW,{path:"/r/:permalinkFragment/*",element:(0,Ot.jsx)(wl,{})}),(0,Ot.jsx)(ct.AW,{path:"/*",element:(0,Ot.jsx)(wl,{})})]})}),(0,Ot.jsx)(Jt,{})]})})},nh=function(e){var t=e.store;return e.promises,(0,Ot.jsx)(at.zt,{store:t,children:(0,Ot.jsx)(st.VK,{children:(0,Ot.jsx)(th,{})})})};var rh,ih=null;function ah(){return sh.apply(this,arguments)}function sh(){return(sh=(0,i.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return it.S1(),e.next=3,oh();case 3:return h(),e.next=6,rt();case 6:return t=e.sent,it.fo(t),ch(t),e.next=11,it.PC();case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oh(){return String.fromCodePoint&&window.fetch&&Object.assign&&Object.values&&String.prototype.repeat&&String.prototype.includes&&String.prototype.codePointAt&&String.prototype.trim&&Array.prototype.includes&&Array.prototype.find&&Array.prototype.fill&&Array.prototype.findIndex&&"undefined"!==typeof AbortController?(null==window.performance&&(window.performance={}),null==window.performance.now&&(window.performance.now=function(){return Date.now()}),Promise.resolve()):Promise.all([n.e(889),n.e(429)]).then(n.t.bind(n,95010,23))}function ch(e){ih||(ih=e);var t=document.querySelector(X.ROOT_ELEMENT);t.innerHTML="",(0,o.render)((0,Ot.jsx)(nh,{store:e}),t)}function uh(){var e=document.querySelector(X.ROOT_ELEMENT);(0,o.unmountComponentAtNode)(e),ch(ih)}"interactive"===document.readyState?ah():document.addEventListener("readystatechange",rh=function(){var e=(0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("interactive"!==document.readyState){e.next=4;break}return document.removeEventListener("readystatechange",rh),e.next=4,ah();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}())},70657:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={iconButton:"PRs2u",disabled:"SC8TZ",spinner:"ndNuf",icon:"nstWU"}},39912:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={specialChar:"sej3F",whitespace:"qjDbF",tab:"YHF8J",addBeforeElement:"Ue7my",removeNewlines:"iHZok"}},1947:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={tokenSample:"T0laQ",plainText:"xq9Cm",keyword:"GedSw",flag:"d_MyJ",info:"hZ6T9",zeroWidth:"KzUpc",token:"KrSXE",flagDisabled:"Vsdwm",tooltip:"fOhwT",icon:"W6jS6",flags:"aBAKk"}},4458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"group-0":"Ptqb6","group-1":"MnwcL","group-2":"bSq9j","group-3":"WDFFo","group-4":"BuckL",alternator:"DsO3D",quote:"aZNG2",charclass:"QZoeQ",meta:"yyE4U",quantifier:"LEd3h",escaped_string:"HR7qQ",inline_modifiers:"Bzxfi",verb:"BKf2X",subpattern_reference:"xj8ZQ",backreference:"r2GH2",error:"w_XEF",inCharClass:"PQ94p",comment:"yU1q9",cursorover:"OFUcl",mouseoverRelated:"Hkx_o",mouseoverRelatedLeft:"kUV2_",mouseoverRelatedRight:"qlnVF",mouseover:"PqJSq",mouseoverLeft:"kG5eN",mouseoverRight:"u8QII"}}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,u),n.loaded=!0,n.exports}u.m=o,e=[],u.O=(t,n,r,i)=>{if(!n){var a=1/0;for(l=0;l<e.length;l++){for(var[n,r,i]=e[l],s=!0,o=0;o<n.length;o++)(!1&i||a>=i)&&Object.keys(u.O).every((e=>u.O[e](n[o])))?n.splice(o--,1):(s=!1,i<a&&(a=i));if(s){e.splice(l--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,r,i]},u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"===typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"===typeof e.then)return e}var i=Object.create(null);u.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,u.d(i,a),i},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce(((t,n)=>(u.f[n](e,t),t)),[])),u.u=e=>({87:"vendors-quizStats",101:"markdownContainer",153:"regexDebugger",215:"vendors-markdownContainer",429:"polyfills",483:"vendors-quickref",530:"vendors-sentry",648:"vendors-codeSample",653:"quickref",781:"quizStats",889:"vendors-polyfills",961:"codeSample"}[e]+"."+{87:"e5a652c33c7aff4a259d",101:"6b52b5fd9d8212766fbf",153:"2668b96b8e00d2b698da",215:"226174ceb87cfa83a934",429:"86987257ae55c46f375b",483:"e4f5fe4e38c9a1ce419c",530:"ff7c6dd1c4746444d649",648:"759f7e7903ba8018a6b3",653:"8bcaf572d5a87bd05898",781:"b0e2761f254d0636dcbc",889:"700e3826bd1b88833828",961:"0f38ea8ba81947059f00"}[e]+".chunk.js"),u.miniCssF=e=>e+"."+{101:"1e1a275b544a5ac1944d",153:"9460fd24609c3be9e65c",653:"2fa5d267b8f78dde7b4c",781:"7ba3836d8ae25f7bb111",961:"3f4e47b936fafeb707f0"}[e]+".css",u.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),u.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="regex101:",u.l=(e,t,n,a)=>{if(r[e])r[e].push(t);else{var s,o;if(void 0!==n)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var f=c[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==i+n){s=f;break}}s||(o=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,u.nc&&s.setAttribute("nonce",u.nc),s.setAttribute("data-webpack",i+n),s.src=e),r[e]=[t];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),o&&document.head.appendChild(s)}},u.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),u.p="/static/",a=e=>new Promise(((t,n)=>{var r=u.miniCssF(e),i=u.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(s=n[r]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===e||i===t))return s}var a=document.getElementsByTagName("style");for(r=0;r<a.length;r++){var s;if((i=(s=a[r]).getAttribute("data-href"))===e||i===t)return s}})(r,i))return t();((e,t,n,r)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=a=>{if(i.onerror=i.onload=null,"load"===a.type)n();else{var s=a&&("load"===a.type?"missing":a.type),o=a&&a.target&&a.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=o,i.parentNode.removeChild(i),r(c)}},i.href=t,document.head.appendChild(i)})(e,i,t,n)})),s={296:0},u.f.miniCss=(e,t)=>{s[e]?t.push(s[e]):0!==s[e]&&{101:1,153:1,653:1,781:1,961:1}[e]&&t.push(s[e]=a(e).then((()=>{s[e]=0}),(t=>{throw delete s[e],t})))},(()=>{var e={296:0};u.f.j=(t,n)=>{var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var a=u.p+u.u(t),s=new Error;u.l(a,(n=>{if(u.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}},u.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,s,o]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in s)u.o(s,r)&&(u.m[r]=s[r]);if(o)var l=o(u)}for(t&&t(n);c<a.length;c++)i=a[c],u.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return u.O(l)},n=("undefined"!==typeof self?self:this).webpackChunkregex101=("undefined"!==typeof self?self:this).webpackChunkregex101||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=u.O(void 0,[598],(()=>u(70812)));l=u.O(l)})();