-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.min.js
18 lines (18 loc) · 5.07 KB
/
index.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*!
* / ' / /
* /__ ___ ( /
* \--`-'-|`---\ |
* |' _/ ` __/ /
* '._ W ,--'
* |_:_._/
*
* ~~~~~~~~~~ rx4d v1.3.0
*
* @commit 73c89892ad
* @moment Saturday, May 16, 2020 6:24 PM
* @homepage https://github.com/adriancmiranda/rx4d#readme
* @author Adrian C. Miranda
* @license (c) 2016-2023 Adrian C. Miranda
*/
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).rx4d={})}(this,(function(n){"use strict";var e="number",t="string",r=function(n){return typeof n===t||n instanceof String};r.empty=function(n){return r(n)&&0===n.length};var u=r;function c(n){return"function"==typeof n}function o(n){return function(n){return null!=n&&n.constructor===Array}(n)||function(n){return"string"==typeof n||n instanceof String}(n)||!!n&&"object"==typeof n&&"number"==typeof n.length&&(0===n.length||n.length>0&&n.length-1 in n)}function i(n,e,t,r){try{var u=o(t)?t:[];switch(u.length){case 0:return n.call(e);case 1:return n.call(e,u[0]);case 2:return n.call(e,u[0],u[1]);case 3:return n.call(e,u[0],u[1],u[2]);case 4:return n.call(e,u[0],u[1],u[2],u[3]);case 5:return n.call(e,u[0],u[1],u[2],u[3],u[4]);case 6:return n.call(e,u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return n.call(e,u[0],u[1],u[2],u[3],u[4],u[5],u[6]);case 8:return n.call(e,u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7]);case 9:return n.call(e,u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8]);default:return n.apply(e,u)}}catch(n){if(r)return n;throw n}}var a=Object.setPrototypeOf,f=Object.defineProperties,l=Object.create,s=Object.keys,p=Array.from,h=function(n,e){return p(n).reduce((function(n,e){return n[n.length]=c(e)?e():e,n}),e)},d=function(n,e){function t(){var t=this,r="",u=this.object.reduce((function(e,u){if(c(n[u.name])){var o=h(u.args,[e,r]);e=i(n[u.name],t,o),r=e}else e+=n[u.name],r=n[u.name];return e}),r);return e?i(e,this,[u,arguments],!0):u}function r(n){function e(){return i(t,e,arguments)}return e.object=n,a(e,o),e}var u=s(n).reduce((function(e,t){var u,o=c(n[t]);return e[t]=((u={})[o?"value":"get"]=function(){return r(this.object.concat({name:t,args:arguments}))},u),e}),l(null)),o=f((function(){}),u);return f({object:n},s(u).reduce((function(e,t){var u,o=c(n[t]);return e[t]=((u={})[o?"value":"get"]=function(){return r([{name:t,args:arguments}])},u),e}),l(null)))},g=/[-[/\]{}()*+?.,\\^$|#\s]/g,y=function(n){return void 0===n?"undefined":null===n?"null":n.source?y(n.source):n},m=function(n){return n=y(n),typeof(t=n)===e||t instanceof Number?n:function(n){return n=u(n)?n:"",g.lastIndex=0,n.replace(g,"\\$&")}(n);var t},b={beginningOfInput:"^",endOfInput:"$",anySingleCharExceptTheNewline:".",anySingleChar:"[\\s\\S]",somethingExceptTheNewline:"(?:.+)",something:"(?:[\\s\\S]+)",anythingExceptTheNewline:"(?:.*)",anything:"(?:[\\s\\S]*)",zeroOrMoreTimes:"*",oneOrMoreTimes:"+",zeroOrOneTime:"?",or:"|",escape:"\\",backslash:"\\",backspace:"[\\b]",wordBoundary:"\\b",nonWordBoundary:"\\B",digit:"\\d",nonDigit:"\\D",formFeed:"\\f",lineFeed:"\\n",lineBreak:"\\r\\n?|\\n|\\u2028|\\u2029",carriageReturn:"\\r",whiteSpace:"\\s",notWhiteSpace:"\\S",nonASCIIWhiteSpace:"[\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",tab:"\\t",verticalTab:"\\v",alphanumeric:"\\w",alphanumerical:"\\w",nonWord:"\\W",nul:"\\0",nil:"\\0",lowercase:"[a-z]",uppercase:"[A-Z]",letter:"[a-zA-Z]",numeric:"[0-9]",varchar:"[a-zA-Z_$][0-9a-zA-Z_$]",eol:"(?:(?:\\n)|(?:\\r\\n))",startCapture:"(",endCapture:")",startGroup:"(",endGroup:")",startCharset:"[",endCharset:"]",quote:function(n,e,t){return""+n+m(t)},value:function(n,e,t){return""+n+y(t)},plus:function(n,e,t){return""+n+y(t)},unicode:function(n,e,t){return n+"\\u"+t},control:function(n,e,t){return n+"\\c"+t},notRemember:function(n,e,t){return n+"(?:"+y(t)+")"},then:function(n,e,t){return n+"(?:"+y(t)+")"},find:function(n,e,t){return n+"(?:"+y(t)+")"},maybe:function(n,e,t){return n+"(?:"+y(t)+")*"},maybeOne:function(n,e,t){return n+"(?:"+y(t)+")?"},ifFollowedBy:function(n,e,t){return n+"(?="+y(t)+")"},ifNotFollowedBy:function(n,e,t){return n+"(?!"+y(t)+")"},anythingBut:function(n,e,t){return n+"(?:[^"+y(t)+"]*)"},somethingBut:function(n,e,t){return n+"(?:[^"+y(t)+"]+)"},notCharset:function(n,e,t){return n+"[^"+y(t)+"]"},charset:function(n,e,t){return n+"["+y(t)+"]"},any:function(n,e,t){return n+"["+y(t)+"]"},anyOf:function(n,e,t){return n+"["+y(t)+"]"},group:function(n,e,t){return n+"("+y(t)+")"},size:function(n,e,t){return n+"{"+(0|t)+"}"},atLeast:function(n,e,t){return n+"{"+(0|t)+",}"},atMost:function(n,e,t){return n+"{,"+(0|t)+"}"},range:function(n,e,t,r){return n+"{"+(0|t)+","+(0|r)+"}"},repeat:function(n,e,t){return""+n+new Array(1+(0|t)).join(e)},replace:function(n,e,t,r){return n.replace(t,r)},flags:function(n,e,t){return new RegExp(n,t)},either:function(n,e){for(var t=[],r=arguments.length-2;r-- >0;)t[r]=arguments[r+2];return""+n+t.join("|")}},v=Object.assign,O=d(b);n.match=O,n.rules=function(n,e,t){return null==n?O:d(v({},n,b,e),t)},n.src=y,n.val=m,Object.defineProperty(n,"__esModule",{value:!0})}));
//# sourceMappingURL=index.min.js.map