Files

2 lines
2.1 MiB
JavaScript
Raw Permalink Normal View History

/*! For license information please see Code.js.LICENSE.txt */
(()=>{var e={26030:function(e,t,n){var r=n(48287).Buffer;!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),o=new Uint8Array(128);for(let e=0;e<64;e++){const t=i.charCodeAt(e);o[t]=e,a[e]=t}const s="undefined"!=typeof TextDecoder?new TextDecoder:void 0!==r?{decode:e=>r.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function l(e,t,n,r){let i=0,a=0,s=0;do{const n=e.charCodeAt(t++);s=o[n],i|=(31&s)<<a,a+=5}while(32&s);const l=1&i;return i>>>=1,l&&(i=-2147483648|-i),n[r]+=i,t}function u(e,r){if(r>=e.length)return!1;const i=e.charCodeAt(r);return i!==t&&i!==n}function c(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function d(e){const r=new Int32Array(5);let i=new Uint8Array(1024),a=0;for(let o=0;o<e.length;o++){const s=e[o];if(o>0&&(i=_(i,a,1),i[a++]=n),0!==s.length){r[0]=0;for(let e=0;e<s.length;e++){const n=s[e];i=_(i,a,36),e>0&&(i[a++]=t),a=m(i,a,r,n,0),1!==n.length&&(a=m(i,a,r,n,1),a=m(i,a,r,n,2),a=m(i,a,r,n,3),4!==n.length&&(a=m(i,a,r,n,4)))}}}return s.decode(i.subarray(0,a))}function _(e,t,n){if(e.length>t+n)return e;const r=new Uint8Array(2*e.length);return r.set(e),r}function m(e,t,n,r,i){const o=r[i];let s=o-n[i];n[i]=o,s=s<0?-s<<1|1:s<<1;do{let n=31&s;s>>>=5,s>0&&(n|=32),e[t++]=a[n]}while(s>0);return t}const f=/^[\w+.-]+:\/\//,h=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/,g=/^file:(?:\/\/((?![a-z]:)[^/]*)?)?(\/?.*)/i;function E(e){return e.startsWith("/")}function S(e){const t=h.exec(e);return b(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/")}function b(e,t,n,r,i){return{scheme:e,user:t,host:n,port:r,path:i,relativePath:!1}}function D(e){if(function(e){return e.startsWith("//")}(e)){const t=S("http:"+e);return t.scheme="",t}if(E(e)){const t=S("http://foo.com"+e);return t.scheme="",t.host="",t}if(function(e){return e.startsWith("file:")}(e))return function(e){const t=g.exec(e),n=t[2];return b("file:","",t[1]||"","",E(n)?n:"/"+n)}(e);if(function(e){return f.test(e)}(e))return S(e);const t=S("http://foo.com/"+e);return t.scheme="",t.host="",t.relativePath=!0,t}function C(e){const{relativePath:t}=e,n=e.path.split("/");let r=1,i=0,a=!1;for(let e=1;e<n.length;e++){const o=n[e];o?(a=!1,"."!==o&&(".."!==o?(n[r++]=o,i++):i?(a=!0,i--,r--):t&&(n[r++]=o))):a=!0}let o="";for(let e=1;e<r;e++)o+="/"+n[e];(!o||a&&!o.endsWith("/.."))&&(o+="/"),e.path=o}function y(e,t){if(!e&&!t)return"";const n=D(e);if(t&&!n.scheme){const e=D(t);n.scheme=e.scheme,n.host||(n.user=e.user,n.host=e.host,n.port=e.port),function(e,t){e.relativePath&&(C(t),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path,e.relativePath=t.relativePath)}(n,e)}if(C(n),n.relativePath){const r=n.path.slice(1);return r?!(t||e).startsWith(".")||r.startsWith(".")?r:"./"+r:"."}return n.scheme||n.host?`${n.scheme}//${n.user}${n.host}${n.port}${n.path}`:n.path}function A(e,t){return t&&!t.endsWith("/")&&(t+="/"),y(e,t)}const v=0;function T(e,t){for(let n=t;n<e.length;n++)if(!R(e[n]))return n;return e.length}function R(e){for(let t=1;t<e.length;t++)if(e[t][v]<e[t-1][v])return!1;return!0}function N(e,t){return t||(e=e.slice()),e.sort(O)}function O(e,t){return e[v]-t[v]}let x=!1;function I(e,t,n){for(let r=n+1;r<e.length&&e[r][v]===t;r++,n++);return n}function w(e,t,n){for(let r=n-1;r>=0&&e[r][v]===t;r--,n--);return n}function F(e,t,n,r){const{lastKey:i,lastNeedle:a,lastIndex:o}=n;let s=0,l=e.length-1;if(r===i){if(t===a)return x=-1!==o&&e[o][v]===t,o;t>=a?s=-1===o?0:o:l=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){const i=n+(r-n>>1),a=e[i][v]-t;if(0===a)return x=!0,i;a<0?n=i+1:r=i-1}return x=!1,n-1}(e,t,s,l)}const M=function(e,t){const n="string"==typeof e?JSON.parse(e):e;if(!("sections"in n))return new Y(n,t);const r=[],i=[],a=[],o=[],{sections:s}=n;let l=0;for(;l<s.length-1;l++){const e=s[l+1].offset;k(s[l],t,r,i,a,o,e.line,e.column)}s.length>0&&k(s[l],t