mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-04 20:08:05 +01:00
2 lines
5.9 KiB
JavaScript
2 lines
5.9 KiB
JavaScript
!function(r){var e={};function t(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return r[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=r,t.c=e,t.d=function(r,e,o){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:o})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)t.d(o,n,function(e){return r[e]}.bind(null,n));return o},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s=1)}([function(r,e,t){var o,n=function(){var r=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function n(r,e){if(!o[r]){o[r]={};for(var t=0;t<r.length;t++)o[r][r.charAt(t)]=t}return o[r][e]}var i={compressToBase64:function(r){if(null==r)return"";var t=i._compress(r,6,(function(r){return e.charAt(r)}));switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(r){return null==r?"":""==r?null:i._decompress(r.length,32,(function(t){return n(e,r.charAt(t))}))},compressToUTF16:function(e){return null==e?"":i._compress(e,15,(function(e){return r(e+32)}))+" "},decompressFromUTF16:function(r){return null==r?"":""==r?null:i._decompress(r.length,16384,(function(e){return r.charCodeAt(e)-32}))},compressToUint8Array:function(r){for(var e=i.compress(r),t=new Uint8Array(2*e.length),o=0,n=e.length;o<n;o++){var s=e.charCodeAt(o);t[2*o]=s>>>8,t[2*o+1]=s%256}return t},decompressFromUint8Array:function(e){if(null==e)return i.decompress(e);for(var t=new Array(e.length/2),o=0,n=t.length;o<n;o++)t[o]=256*e[2*o]+e[2*o+1];var s=[];return t.forEach((function(e){s.push(r(e))})),i.decompress(s.join(""))},compressToEncodedURIComponent:function(r){return null==r?"":i._compress(r,6,(function(r){return t.charAt(r)}))},decompressFromEncodedURIComponent:function(r){return null==r?"":""==r?null:(r=r.replace(/ /g,"+"),i._decompress(r.length,32,(function(e){return n(t,r.charAt(e))})))},compress:function(e){return i._compress(e,16,(function(e){return r(e)}))},_compress:function(r,e,t){if(null==r)return"";var o,n,i,s={},u={},a="",c="",p="",l=2,f=3,h=2,d=[],m=0,v=0;for(i=0;i<r.length;i+=1)if(a=r.charAt(i),Object.prototype.hasOwnProperty.call(s,a)||(s[a]=f++,u[a]=!0),c=p+a,Object.prototype.hasOwnProperty.call(s,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==e-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==e-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==e-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==e-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=s[p],o=0;o<h;o++)m=m<<1|1&n,v==e-1?(v=0,d.push(t(m)),m=0):v++,n>>=1;0==--l&&(l=Math.pow(2,h),h++),s[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==e-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==e-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==e-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==e-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=s[p],o=0;o<h;o++)m=m<<1|1&n,v==e-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==e-1?(v=0,d.push(t(m)),m=0):v++,n>>=1;for(;;){if(m<<=1,v==e-1){d.push(t(m));break}v++}return d.join("")},decompress:function(r){return null==r?"":""==r?null:i._decompress(r.length,32768,(function(e){return r.charCodeAt(e)}))},_decompress:function(e,t,o){var n,i,s,u,a,c,p,l=[],f=4,h=4,d=3,m="",v=[],y={val:o(0),position:t,index:1};for(n=0;n<3;n+=1)l[n]=n;for(s=0,a=Math.pow(2,2),c=1;c!=a;)u=y.val&y.position,y.position>>=1,0==y.position&&(y.position=t,y.val=o(y.index++)),s|=(u>0?1:0)*c,c<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),c=1;c!=a;)u=y.val&y.position,y.position>>=1,0==y.position&&(y.position=t,y.val=o(y.index++)),s|=(u>0?1:0)*c,c<<=1;p=r(s);break;case 1:for(s=0,a=Math.pow(2,16),c=1;c!=a;)u=y.val&y.position,y.position>>=1,0==y.position&&(y.position=t,y.val=o(y.index++)),s|=(u>0?1:0)*c,c<<=1;p=r(s);break;case 2:return""}for(l[3]=p,i=p,v.push(p);;){if(y.index>e)return"";for(s=0,a=Math.pow(2,d),c=1;c!=a;)u=y.val&y.position,y.position>>=1,0==y.position&&(y.position=t,y.val=o(y.index++)),s|=(u>0?1:0)*c,c<<=1;switch(p=s){case 0:for(s=0,a=Math.pow(2,8),c=1;c!=a;)u=y.val&y.position,y.position>>=1,0==y.position&&(y.position=t,y.val=o(y.index++)),s|=(u>0?1:0)*c,c<<=1;l[h++]=r(s),p=h-1,f--;break;case 1:for(s=0,a=Math.pow(2,16),c=1;c!=a;)u=y.val&y.position,y.position>>=1,0==y.position&&(y.position=t,y.val=o(y.index++)),s|=(u>0?1:0)*c,c<<=1;l[h++]=r(s),p=h-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,d),d++),l[p])m=l[p];else{if(p!==h)return null;m=i+i.charAt(0)}v.push(m),l[h++]=i+m.charAt(0),i=m,0==--f&&(f=Math.pow(2,d),d++)}}};return i}();void 0===(o=function(){return n}.call(e,t,e,r))||(r.exports=o)},function(r,e,t){"use strict";t.r(e);var o,n=t(0);!function(r){r[r.STRING=0]="STRING",r[r.BINARY=1]="BINARY"}(o||(o={})),t.d(e,"handler",(function(){return a}));var i=navigator.userAgent.includes("AppleWebKit"),s=i?n.compress:n.compressToUTF16,u=i?n.decompress:n.decompressFromUTF16;function a(r){switch(r.type){case o.STRING:return{type:o.BINARY,data:s(r.data)};case o.BINARY:return{type:o.STRING,data:u(r.data)}}}addEventListener("message",(function(r){postMessage(a(r.data))}))}]);
|
|
//# sourceMappingURL=packer.js.map
|