-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.min.js
1 lines (1 loc) · 942 Bytes
/
index.min.js
1
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).skipRegex=n()}(this,function(){"use strict";var d,s,c,a,l,x,p,y;return s=(d="[{(,;:?=|&!^~<>%*/")+"+-",a=(c=["await","case","default","do","else","extends","in","instanceof","of","prefix","return","typeof","void","yield"]).reduce(function(e,n){return e+n.slice(-1)},""),l=/^\/(?=[^*/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuys]*/,x=/[$\w]/,p=/.*/g,y=function(e,n){for(;0<=--n&&/\s/.test(e[n]););return n},function(e,n){var t=p,i=t.lastIndex=n++,f=t.exec(e);if(f=f&&f[0].match(l)){var r=i+f[0].length,o=e[i=y(e,i)];if(i<0||~d.indexOf(o))return r;if("."===o)"."===e[i-1]&&(n=r);else{if("+"===o||"-"===o){if(e[--i]!==o||(i=y(e,i))<0)return r;if(o=e[i],~s.indexOf(o))return r}if(~a.indexOf(o)){for(var u=i+1;0<=--i&&x.test(e[i]););~c.indexOf(e.slice(i+1,u))&&(n=r)}}}return n}});