mkdocs-material/material/assets/javascripts/worker/packer.js

2 lines
5.9 KiB
JavaScript
Raw Normal View History

!function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1)}([function(e,r,t){var o,n=function(){var e=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function n(e,r){if(!o[e]){o[e]={};for(var t=0;t<e.length;t++)o[e][e.charAt(t)]=t}return o[e][r]}var s={compressToBase64:function(e){if(null==e)return"";var t=s._compress(e,6,(function(e){return r.charAt(e)}));switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:s._decompress(e.length,32,(function(t){return n(r,e.charAt(t))}))},compressToUTF16:function(r){return null==r?"":s._compress(r,15,(function(r){return e(r+32)}))+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:s._decompress(e.length,16384,(function(r){return e.charCodeAt(r)-32}))},compressToUint8Array:function(e){for(var r=s.compress(e),t=new Uint8Array(2*r.length),o=0,n=r.length;o<n;o++){var i=r.charCodeAt(o);t[2*o]=i>>>8,t[2*o+1]=i%256}return t},decompressFromUint8Array:function(r){if(null==r)return s.decompress(r);for(var t=new Array(r.length/2),o=0,n=t.length;o<n;o++)t[o]=256*r[2*o]+r[2*o+1];var i=[];return t.forEach((function(r){i.push(e(r))})),s.decompress(i.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":s._compress(e,6,(function(e){return t.charAt(e)}))},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),s._decompress(e.length,32,(function(r){return n(t,e.charAt(r))})))},compress:function(r){return s._compress(r,16,(function(r){return e(r)}))},_compress:function(e,r,t){if(null==e)return"";var o,n,s,i={},u={},a="",c="",p="",l=2,f=3,h=2,d=[],m=0,v=0;for(s=0;s<e.length;s+=1)if(a=e.charAt(s),Object.prototype.hasOwnProperty.call(i,a)||(i[a]=f++,u[a]=!0),c=p+a,Object.prototype.hasOwnProperty.call(i,c))p=c;else{if(Object.prototype.hasOwnProperty.call(u,p)){if(p.charCodeAt(0)<256){for(o=0;o<h;o++)m<<=1,v==r-1?(v=0,d.push(t(m)),m=0):v++;for(n=p.charCodeAt(0),o=0;o<8;o++)m=m<<1|1&n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n>>=1}else{for(n=1,o=0;o<h;o++)m=m<<1|n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n=0;for(n=p.charCodeAt(0),o=0;o<16;o++)m=m<<1|1&n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n>>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[p]}else for(n=i[p],o=0;o<h;o++)m=m<<1|1&n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n>>=1;0==--l&&(l=Math.pow(2,h),h++),i[c]=f++,p=String(a)}if(""!==p){if(Object.prototype.hasOwnProperty.call(u,p)){if(p.charCodeAt(0)<256){for(o=0;o<h;o++)m<<=1,v==r-1?(v=0,d.push(t(m)),m=0):v++;for(n=p.charCodeAt(0),o=0;o<8;o++)m=m<<1|1&n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n>>=1}else{for(n=1,o=0;o<h;o++)m=m<<1|n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n=0;for(n=p.charCodeAt(0),o=0;o<16;o++)m=m<<1|1&n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n>>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[p]}else for(n=i[p],o=0;o<h;o++)m=m<<1|1&n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n>>=1;0==--l&&(l=Math.pow(2,h),h++)}for(n=2,o=0;o<h;o++)m=m<<1|1&n,v==r-1?(v=0,d.push(t(m)),m=0):v++,n>>=1;for(;;){if(m<<=1,v==r-1){d.push(t(m));break}v++}return d.join("")},decompress:function(e){return null==e?"":""==e?null:s._decompress(e.l
2019-12-18 19:14:20 +03:00
//# sourceMappingURL=packer.js.map