PageSourceSearch

https://pika.page/assets/linkify-it-f610379cbaebb1ca3cb42359069eec36aad5ccc3902620e0e30e845f4f7d0d16.js

js pika.page collected 2026-09-25 18:54:58 UTC 9,727 bytes, 4 lines download raw bytes

vendor: 6,447 bytes, lines 1-3
1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/index.mjs
2
3import{Any as e,Cc as t,Z as n,P as r}from"uc.micro";function i(i){let a={};i=i||{},a.src_Any=e.source,a.src_Cc=t.source,a.src_Z=n.source,a.src_P=r.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join(`|`),a.src_ZCc=[a.src_Z,a.src_Cc].join(`|`);let o=`[><|]`;return a.src_pseudo_letter=`(?:(?!${o}|${a.src_ZPCc})${a.src_Any})`,a.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,a.src_auth=`(?:(?:(?!${a.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,a.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,a.src_host_terminator=`(?=$|${o}|${a.src_ZPCc})(?!${i[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${a.src_ZPCc}))`,a.src_path=`(?:[/?#](?:(?!${a.src_ZCc}|${o}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${a.src_ZCc}|\\]).)*\\]|\\((?:(?!${a.src_ZCc}|[)]).)*\\)|\\{(?:(?!${a.src_ZCc}|[}]).)*\\}|\\"(?:(?!${a.src_ZCc}|["]).)+\\"|\\'(?:(?!${a.src_ZCc}|[']).)+\\'|\\'(?=${a.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${a.src_ZCc}|[.]|$)|`+(i[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${a.src_ZCc}|$)|;(?!${a.src_ZCc}|$)|\\!+(?!${a.src_ZCc}|[!]|$)|\\?(?!${a.src_ZCc}|[?]|$))+|\\/)?`,a.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,a.src_xn=`xn--[a-z0-9\\-]{1,59}`,a.src_domain_root=`(?:`+a.src_xn+`|${a.src_pseudo_letter}{1,63})`,a.src_domain=`(?:`+a.src_xn+`|(?:${a.src_pseudo_letter})|(?:${a.src_pseudo_letter}(?:-|${a.src_pseudo_letter}){0,61}${a.src_pseudo_letter}))`,a.src_host=`(?:(?:(?:(?:${a.src_domain})\\.)*${a.src_domain}))`,a.tpl_host_fuzzy=`(?:`+a.src_ip4+`|(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%)))`,a.tpl_host_no_ip_fuzzy=`(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%))`,a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${a.src_ZPCc}|>|$))`,a.tpl_email_fuzzy=`(^|${o}|"|\\(|${a.src_ZCc})(${a.src_email_name}@${a.tpl_host_fuzzy_strict})`,a.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${a.src_ZPCc}))((?![$+<=>^\`|\uff5c])${a.tpl_host_port_fuzzy_strict}${a.src_path})`,a.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${a.src_ZPCc}))((?![$+<=>^\`|\uff5c])${a.tpl_host_port_no_ip_fuzzy_strict}${a.src_path})`,a}function a(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function o(e){return Object.prototype.toString.call(e)}function s(e){return o(e)===`[object String]`}function c(e){return o(e)===`[object Object]`}function l(e){return o(e)===`[object RegExp]`}function u(e){return o(e)===`[object Function]`}function d(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}const f={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(e){return Object.keys(e||{}).reduce(function(e,t){return e||f.hasOwnProperty(t)},!1)}const m={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},h=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,g=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function _(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function v(){return function(e,t){t.normalize(e)}}function y(e){let t=e.re=i(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let a=[];e.__compiled__={};function o(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,c(n)){l(n.validate)?r.validate=_(n.validate):u(n.validate)?r.validate=n.validate:o(t,n),u(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=v();return}if(s(n)){a.push(t);return}o(t,n)}),a.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:v()};let f=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(d).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${f})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${f}
3)`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function b(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function x(e,t){if(!(this instanceof x))return new x(e,t);t||p(e)&&(t=e,e={}),this.__opts__=a({},f,t),this.__schemas__=a({},m,e),this.__compiled__={},this.__tlds__=g,this.__tlds_replaced__=!1,this.re={},y(this)}x.prototype.add=function e(t,n){return this.__schemas__[t]=n,y(this),this},x.prototype.set=function e(t){return this.__opts__=a(this.__opts__,t),this},x.prototype.test=function e(t){if(!t.length)return!1;let n,r;if(this.re.schema_test.test(t)){for(r=this.re.schema_search,r.lastIndex=0;(n=r.exec(t))!==null;)if(this.testSchemaAt(t,n[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&t.indexOf(`@`)>=0&&t.match(this.re.email_fuzzy)!==null)},x.prototype.pretest=function e(t){return this.re.pretest.test(t)},x.prototype.testSchemaAt=function e(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},x.prototype.match=function e(t){let n=[],r=[],i=[],a=[],o,s,c;function l(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!t.length)return null;if(this.re.schema_test.test(t))for(c=this.re.schema_search,c.lastIndex=0;(o=c.exec(t))!==null;)s=this.testSchemaAt(t,o[2],c.lastIndex),s&&r.push({schema:o[2],index:o.index+o[1].length,lastIndex:o.index+o[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(c=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,c.lastIndex=0;(o=c.exec(t))!==null;)i.push({schema:``,index:o.index+o[1].length,lastIndex:o.index+o[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(c=this.re.email_fuzzy_global,c.lastIndex=0;(o=c.exec(t))!==null;)a.push({schema:`mailto:`,index:o.index+o[1].length,lastIndex:o.index+o[0].length});let u=[0,0,0],d=0;for(;;){let e=[r[u[0]],a[u[1]],i[u[2]]],o=l(l(e[0],e[1]),e[2]);if(!o)break;if(o===e[0]?u[0]++:o===e[1]?u[1]++:u[2]++,o.index<d)continue;let s=new b(t,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),n.push(s),d=o.lastIndex}return n.length?n:null},x.prototype.matchAtStart=function e(t){if(!t.length)return null;let n=this.re.schema_at_start.exec(t);if(!n)return null;let r=this.testSchemaAt(t,n[2],n[0].length);if(!r)return null;let i=new b(t,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[i.schema].normalize(i,this),i},x.prototype.tlds=function e(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),y(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,y(this),this)},x.prototype.normalize=function e(t){t.schema||(t.url=`http://${t.url}`),t.schema===`mailto:`&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)},x.prototype.onCompile=function e(){};export{x as default};
4

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.