From 1bee0377133ac9737461eb13092aedeff19f734b Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 5 Jul 2023 17:39:33 +0200 Subject: [PATCH 1/5] Merge of features tied to 'Piri Piri' funding goal' --- ...a678ee80.min.js => custom.98e0b405.min.js} | 8 +- ....min.js.map => custom.98e0b405.min.js.map} | 8 +- material/.overrides/main.html | 2 +- .../assets/javascripts/bundle.202856ae.min.js | 29 + .../javascripts/bundle.202856ae.min.js.map | 8 + .../assets/javascripts/bundle.220ee61c.min.js | 29 - .../javascripts/bundle.220ee61c.min.js.map | 8 - ...74e28a9f.min.js => search.780af0f4.min.js} | 18 +- ....min.js.map => search.780af0f4.min.js.map} | 8 +- .../assets/stylesheets/main.08fbbb04.min.css | 1 + .../stylesheets/main.08fbbb04.min.css.map | 1 + .../assets/stylesheets/main.26e3688c.min.css | 1 - .../stylesheets/main.26e3688c.min.css.map | 1 - material/base.html | 10 +- material/blog-archive.html | 16 + material/blog-category.html | 16 + material/blog-post.html | 98 ++ material/blog.html | 19 + material/partials/language.html | 2 +- material/partials/languages/zh-Hant.html | 3 +- material/partials/languages/zh-TW.html | 3 +- material/partials/languages/zh.html | 3 +- material/partials/nav-item.html | 137 ++- material/partials/nav.html | 4 +- material/partials/pagination.html | 20 + material/partials/post.html | 60 ++ material/partials/tabs-item.html | 37 +- material/partials/tabs.html | 4 +- material/plugins/blog/__init__.py | 0 material/plugins/blog/config.py | 82 ++ material/plugins/blog/plugin.py | 887 ++++++++++++++++++ material/plugins/info/config.py | 36 + material/plugins/info/plugin.py | 22 +- material/plugins/offline/config.py | 30 + material/plugins/offline/plugin.py | 12 +- material/plugins/search/config.py | 51 + material/plugins/search/plugin.py | 116 ++- material/plugins/social/__init__.py | 33 + material/plugins/social/config.py | 48 + material/plugins/social/plugin.py | 46 +- material/plugins/tags/__init__.py | 27 + material/plugins/tags/config.py | 43 + material/plugins/tags/plugin.py | 22 +- .../browser/element/focus/index.ts | 49 +- .../browser/location/hash/index.ts | 2 +- .../javascripts/browser/worker/index.ts | 1 - src/assets/javascripts/bundle.ts | 1 + .../javascripts/components/content/_/index.ts | 22 +- .../components/content/annotation/_/index.ts | 2 +- .../content/annotation/block/index.ts | 88 ++ .../components/content/annotation/index.ts | 1 + .../content/annotation/list/index.ts | 52 +- .../components/content/code/index.ts | 1 - .../content/{code => }/mermaid/index.css | 0 .../content/{code => }/mermaid/index.ts | 2 +- .../components/header/title/index.ts | 2 +- .../javascripts/components/sidebar/index.ts | 2 +- .../javascripts/integrations/instant/index.ts | 10 +- .../integrations/search/_/index.ts | 9 + .../integrations/search/query/index.ts | 1 + .../search/query/segment/index.ts | 81 ++ src/assets/stylesheets/main.scss | 5 + .../stylesheets/main/components/_author.scss | 86 ++ .../stylesheets/main/components/_meta.scss | 67 ++ .../stylesheets/main/components/_nav.scss | 55 +- .../main/components/_pagination.scss | 85 ++ .../stylesheets/main/components/_post.scss | 161 ++++ .../stylesheets/main/components/_status.scss | 74 ++ .../stylesheets/main/components/_tabs.scss | 11 +- .../stylesheets/main/components/_tooltip.scss | 195 ++-- src/base.html | 16 + src/blog-archive.html | 41 + src/blog-category.html | 41 + src/blog-post.html | 142 +++ src/blog.html | 46 + src/partials/language.html | 2 +- src/partials/languages/zh-Hant.html | 3 +- src/partials/languages/zh-TW.html | 3 +- src/partials/languages/zh.html | 3 +- src/partials/nav-item.html | 239 +++-- src/partials/nav.html | 11 +- src/partials/pagination.html | 42 + src/partials/post.html | 99 ++ src/partials/tabs-item.html | 59 +- src/partials/tabs.html | 5 +- src/plugins/blog/__init__.py | 0 src/plugins/blog/config.py | 82 ++ src/plugins/blog/plugin.py | 887 ++++++++++++++++++ src/plugins/info/config.py | 36 + src/plugins/info/plugin.py | 22 +- src/plugins/offline/config.py | 30 + src/plugins/offline/plugin.py | 12 +- src/plugins/search/config.py | 51 + src/plugins/search/plugin.py | 116 ++- src/plugins/social/__init__.py | 33 + src/plugins/social/config.py | 48 + src/plugins/social/plugin.py | 46 +- src/plugins/tags/__init__.py | 27 + src/plugins/tags/config.py | 43 + src/plugins/tags/plugin.py | 22 +- 100 files changed, 4610 insertions(+), 671 deletions(-) rename material/.overrides/assets/javascripts/{custom.a678ee80.min.js => custom.98e0b405.min.js} (60%) rename material/.overrides/assets/javascripts/{custom.a678ee80.min.js.map => custom.98e0b405.min.js.map} (65%) create mode 100644 material/assets/javascripts/bundle.202856ae.min.js create mode 100644 material/assets/javascripts/bundle.202856ae.min.js.map delete mode 100644 material/assets/javascripts/bundle.220ee61c.min.js delete mode 100644 material/assets/javascripts/bundle.220ee61c.min.js.map rename material/assets/javascripts/workers/{search.74e28a9f.min.js => search.780af0f4.min.js} (76%) rename material/assets/javascripts/workers/{search.74e28a9f.min.js.map => search.780af0f4.min.js.map} (92%) create mode 100644 material/assets/stylesheets/main.08fbbb04.min.css create mode 100644 material/assets/stylesheets/main.08fbbb04.min.css.map delete mode 100644 material/assets/stylesheets/main.26e3688c.min.css delete mode 100644 material/assets/stylesheets/main.26e3688c.min.css.map create mode 100644 material/blog-archive.html create mode 100644 material/blog-category.html create mode 100644 material/blog-post.html create mode 100644 material/blog.html create mode 100644 material/partials/pagination.html create mode 100644 material/partials/post.html create mode 100644 material/plugins/blog/__init__.py create mode 100644 material/plugins/blog/config.py create mode 100644 material/plugins/blog/plugin.py create mode 100644 material/plugins/info/config.py create mode 100644 material/plugins/offline/config.py create mode 100644 material/plugins/search/config.py create mode 100644 material/plugins/social/config.py create mode 100644 material/plugins/tags/config.py create mode 100644 src/assets/javascripts/components/content/annotation/block/index.ts rename src/assets/javascripts/components/content/{code => }/mermaid/index.css (100%) rename src/assets/javascripts/components/content/{code => }/mermaid/index.ts (99%) create mode 100644 src/assets/javascripts/integrations/search/query/segment/index.ts create mode 100644 src/assets/stylesheets/main/components/_author.scss create mode 100644 src/assets/stylesheets/main/components/_meta.scss create mode 100644 src/assets/stylesheets/main/components/_pagination.scss create mode 100644 src/assets/stylesheets/main/components/_post.scss create mode 100644 src/assets/stylesheets/main/components/_status.scss create mode 100644 src/blog-archive.html create mode 100644 src/blog-category.html create mode 100644 src/blog-post.html create mode 100644 src/blog.html create mode 100644 src/partials/pagination.html create mode 100644 src/partials/post.html create mode 100644 src/plugins/blog/__init__.py create mode 100644 src/plugins/blog/config.py create mode 100644 src/plugins/blog/plugin.py create mode 100644 src/plugins/info/config.py create mode 100644 src/plugins/offline/config.py create mode 100644 src/plugins/search/config.py create mode 100644 src/plugins/social/config.py create mode 100644 src/plugins/tags/config.py diff --git a/material/.overrides/assets/javascripts/custom.a678ee80.min.js b/material/.overrides/assets/javascripts/custom.98e0b405.min.js similarity index 60% rename from material/.overrides/assets/javascripts/custom.a678ee80.min.js rename to material/.overrides/assets/javascripts/custom.98e0b405.min.js index e12051380..9e4797d6d 100644 --- a/material/.overrides/assets/javascripts/custom.a678ee80.min.js +++ b/material/.overrides/assets/javascripts/custom.98e0b405.min.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var An=Object.create;var Ir=Object.defineProperty;var Mn=Object.getOwnPropertyDescriptor;var Cn=Object.getOwnPropertyNames,Zr=Object.getOwnPropertySymbols,In=Object.getPrototypeOf,rt=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable;var et=(e,r,t)=>r in e?Ir(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ke=(e,r)=>{for(var t in r||(r={}))rt.call(r,t)&&et(e,t,r[t]);if(Zr)for(var t of Zr(r))Ln.call(r,t)&&et(e,t,r[t]);return e};var Oe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Rn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Cn(r))!rt.call(e,o)&&o!==t&&Ir(e,o,{get:()=>r[o],enumerable:!(n=Mn(r,o))||n.enumerable});return e};var tt=(e,r,t)=>(t=e!=null?An(In(e)):{},Rn(r||!e||!e.__esModule?Ir(t,"default",{value:e,enumerable:!0}):t,e));var Ne=Oe(J=>{(function(){var e,r,t,n,o,i,a,c,u,s,f,p,l,v,h,m,b,w,S,R;R=150,s=20,S=150,u=.75,J.score=function(d,x,E){var O,y,g,T;return y=E.preparedQuery,O=E.allowErrors,O||o(d,y.core_lw,y.core_up)?(T=d.toLowerCase(),g=r(d,T,y),Math.ceil(g)):0},J.isMatch=o=function(d,x,E){var O,y,g,T,F,z,I;if(g=d.length,T=x.length,!g||T>g)return!1;for(O=-1,y=-1;++y-1)return h(d,x,me,oe,se,q,$);for(_e=new Array(q),F=new Array(q),Cr=w(q,$),V=Math.ceil(u*q)+5,ne=V,I=!0,C=-1;++Cue&&(ue=Qe),z=0,oe[C]===Ar)if(Mr=c(H,d,x),z=T>0?T:l(d,x,me,oe,H,C,Mr),g=Tr+p(H,C,Mr,y,z),g>ue)ue=g,ne=V;else{if(de&&--ne<=0)return Math.max(ue,_e[q-1])*Cr;de=!1}Tr=Qe,T=F[C],F[C]=z,_e[C]=ue}}return ue=_e[q-1],ue*Cr},J.isWordStart=c=function(d,x,E){var O,y;return d===0?!0:(O=x[d],y=x[d-1],i(y)||O!==E[d]&&y===E[d-1])},J.isWordEnd=a=function(d,x,E,O){var y,g;return d===O-1?!0:(y=x[d],g=x[d+1],i(g)||y===E[d]&&g!==E[d+1])},i=function(d){return d===" "||d==="."||d==="-"||d==="_"||d==="/"||d==="\\"},b=function(d){var x;return dy?O:y)+10):g+R*y},J.scoreConsecutives=l=function(d,x,E,O,y,g,T){var F,z,I,H,C,$,V;for(z=d.length,H=E.length,I=z-y,C=H-g,F=I-1&&(C=c(I,d,x),C&&(y=I))),z=-1,H=0;++z1&&I>1))return t;for(y=0,V=0,ne=0,C=0,T=-1,F=-1;++F-1){V++;continue}else break;for(;++T12*F)return!1;for(g=-1;++gO)return!1;return!0}}).call(J)});var _r=Oe(De=>{(function(){var e,r,t,n,o,i,a,c,u,s;s=Ne(),i=s.isMatch,e=s.computeScore,c=s.scoreSize,u=20,t=2.5,De.score=function(f,p,l){var v,h,m,b;return h=l.preparedQuery,v=l.allowErrors,v||i(f,h.core_lw,h.core_up)?(b=f.toLowerCase(),m=e(f,b,h),m=a(f,b,m,l),Math.ceil(m)):0},a=function(f,p,l,v){var h,m,b,w,S,R,d,x,E,O;if(l===0)return 0;for(E=v.preparedQuery,O=v.useExtensionBonus,x=v.pathSeparator,S=f.length-1;f[S]===x;)S--;if(b=f.lastIndexOf(x,S),d=S-b,R=1,O&&(R+=o(p,E.ext,b,S,2),l*=R),b===-1)return l;for(w=E.depth;b>-1&&w-- >0;)b=f.lastIndexOf(x,b-1);return m=b===-1?l:R*e(f.slice(b+1,S+1),p.slice(b+1,S+1),E),h=.5*u/(u+r(f,S+1,x)),h*m+(1-h)*l*c(0,t*d)},De.countDir=r=function(f,p,l){var v,h;if(p<1)return 0;for(v=0,h=-1;++hl)))return 0;for(w=p.length,m=v-S,m0?.9*o(f,p,l,S-2,h-1):b/m}}).call(De)});var Jr=Oe((cn,pn)=>{(function(){var e,r,t,n,o,i,a,c;c=_r(),t=c.countDir,o=c.getExtension,pn.exports=e=function(){function u(s,f){var p,l,v;if(v=f!=null?f:{},p=v.optCharRegEx,l=v.pathSeparator,!(s&&s.length))return null;this.query=s,this.query_lw=s.toLowerCase(),this.core=r(s,p),this.core_lw=this.core.toLowerCase(),this.core_up=a(this.core),this.depth=t(s,s.length,l),this.ext=o(this.query_lw),this.charCodes=n(this.query_lw)}return u}(),i=/[ _\-:\/\\]/g,r=function(u,s){return s==null&&(s=i),u.replace(s,"")},a=function(u){var s,f,p,l;for(f="",p=0,l=u.length;p{(function(){var e,r,t,n,o;n=Ne(),r=_r(),e=Jr(),t=function(i){return i.candidate},o=function(i,a){return a.score-i.score},mn.exports=function(i,a,c){var u,s,f,p,l,v,h,m,b,w,S,R,d;for(m=[],f=c.key,l=c.maxResults,p=c.maxInners,S=c.usePathScoring,b=p!=null&&p>0?p:i.length+1,u=f!=null,h=S?r:n,R=0,d=i.length;R0&&(m.push({candidate:s,score:v}),!--b))));R++);return m.sort(o),i=m.map(t),l!=null&&(i=i.slice(0,l)),i}}).call(ln)});var dn=Oe(Or=>{(function(){var e,r,t,n,o,i,a,c,u,s;s=Ne(),t=s.isMatch,n=s.isWordStart,u=s.scoreConsecutives,c=s.scoreCharacter,a=s.scoreAcronyms,Or.match=o=function(f,p,l){var v,h,m,b,w,S;return v=l.allowErrors,w=l.preparedQuery,b=l.pathSeparator,v||t(f,w.core_lw,w.core_up)?(S=f.toLowerCase(),m=r(f,S,w),m.length===0||f.indexOf(b)>-1&&(h=e(f,S,w,b),m=i(m,h)),m):[]},Or.wrap=function(f,p,l){var v,h,m,b,w,S,R,d,x;if(l.wrap!=null&&(x=l.wrap,S=x.tagClass,d=x.tagOpen,R=x.tagClose),S==null&&(S="highlight"),d==null&&(d=''),R==null&&(R=""),f===p)return d+f+R;if(m=o(f,p,l),m.length===0)return f;for(b="",v=-1,w=0;++vw&&(b+=f.substring(w,h),w=h);++vw&&(b+=d,b+=f.substring(w,h),b+=R,w=h)}return w<=f.length-1&&(b+=f.substring(w)),b},e=function(f,p,l,v){var h,m,b;for(b=f.length-1;f[b]===v;)b--;if(h=f.lastIndexOf(v,b),h===-1)return[];for(m=l.depth;m-- >0;)if(h=f.lastIndexOf(v,h-1),h===-1)return[];return h++,b++,r(f.slice(h,b),p.slice(h,b),l,h)},i=function(f,p){var l,v,h,m,b,w,S;if(b=f.length,w=p.length,w===0)return f.slice();if(b===0)return p.slice();for(h=-1,m=0,v=p[m],S=[];++h0?x:u(f,p,C,$,y,g,oe),R=ne+c(y,g,oe,S,O)),se=q[g],x=E[g],V>se?z=m:(V=se,z=w),R>V?(V=R,z=h):O=0,q[g]=V,E[g]=O,de[++H]=V>0?z:b;for(y=T-1,g=I-1,H=y*I+g,d=!0,F=[];d&&y>=0&&g>=0;)switch(de[H]){case w:y--,H-=I;break;case m:g--,H--;break;case h:F.push(y+v),g--,y--,H-=I+1;break;default:d=!1}return F.reverse(),F}}).call(Or)});var Br=Oe((vn,bn)=>{(function(){var e,r,t,n,o,i,a,c;t=hn(),n=dn(),c=Ne(),i=_r(),e=Jr(),a=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",bn.exports={filter:function(u,s,f){return f==null&&(f={}),s!=null&&s.length&&(u!=null&&u.length)?(f=o(f,s),t(u,s,f)):[]},score:function(u,s,f){return f==null&&(f={}),u!=null&&u.length&&(s!=null&&s.length)?(f=o(f,s),f.usePathScoring?i.score(u,s,f):c.score(u,s,f)):0},match:function(u,s,f){var p,l,v;return f==null&&(f={}),u?s?u===s?function(){v=[];for(var h=0,m=u.length;0<=m?hm;0<=m?h++:h--)v.push(h);return v}.apply(this):(f=o(f,s),n.match(u,s,f)):[]:[]},wrap:function(u,s,f){return f==null&&(f={}),u?s?(f=o(f,s),n.wrap(u,s,f)):[]:[]},prepareQuery:function(u,s){return s==null&&(s={}),s=o(s,u),s.preparedQuery}},o=function(u,s){return u.allowErrors==null&&(u.allowErrors=!1),u.usePathScoring==null&&(u.usePathScoring=!0),u.useExtensionBonus==null&&(u.useExtensionBonus=!1),u.pathSeparator==null&&(u.pathSeparator=r),u.optCharRegEx==null&&(u.optCharRegEx=null),u.wrap==null&&(u.wrap=null),u.preparedQuery==null&&(u.preparedQuery=a&&a.query===s?a:a=new e(s,u)),u}}).call(vn)});/*! ***************************************************************************** +"use strict";(()=>{var An=Object.create;var Ir=Object.defineProperty;var Mn=Object.getOwnPropertyDescriptor;var In=Object.getOwnPropertyNames,Zr=Object.getOwnPropertySymbols,Cn=Object.getPrototypeOf,rt=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable;var et=(e,r,t)=>r in e?Ir(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ke=(e,r)=>{for(var t in r||(r={}))rt.call(r,t)&&et(e,t,r[t]);if(Zr)for(var t of Zr(r))Ln.call(r,t)&&et(e,t,r[t]);return e};var Oe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Rn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of In(r))!rt.call(e,o)&&o!==t&&Ir(e,o,{get:()=>r[o],enumerable:!(n=Mn(r,o))||n.enumerable});return e};var tt=(e,r,t)=>(t=e!=null?An(Cn(e)):{},Rn(r||!e||!e.__esModule?Ir(t,"default",{value:e,enumerable:!0}):t,e));var Ne=Oe(J=>{(function(){var e,r,t,n,o,i,a,c,u,s,f,p,l,v,h,m,b,w,S,R;R=150,s=20,S=150,u=.75,J.score=function(d,x,E){var O,y,g,T;return y=E.preparedQuery,O=E.allowErrors,O||o(d,y.core_lw,y.core_up)?(T=d.toLowerCase(),g=r(d,T,y),Math.ceil(g)):0},J.isMatch=o=function(d,x,E){var O,y,g,T,k,z,C;if(g=d.length,T=x.length,!g||T>g)return!1;for(O=-1,y=-1;++y-1)return h(d,x,he,oe,se,$,q);for(_e=new Array($),k=new Array($),Mr=w($,q),V=Math.ceil(u*$)+5,ne=V,C=!0,I=-1;++I<$;)_e[I]=0,k[I]=0;for(H=-1;++Hue&&(ue=Qe),z=0,oe[I]===Tr)if(Ar=c(H,d,x),z=T>0?T:l(d,x,he,oe,H,I,Ar),g=Or+p(H,I,Ar,y,z),g>ue)ue=g,ne=V;else{if(ve&&--ne<=0)return Math.max(ue,_e[$-1])*Mr;ve=!1}Or=Qe,T=k[I],k[I]=z,_e[I]=ue}}return ue=_e[$-1],ue*Mr},J.isWordStart=c=function(d,x,E){var O,y;return d===0?!0:(O=x[d],y=x[d-1],i(y)||O!==E[d]&&y===E[d-1])},J.isWordEnd=a=function(d,x,E,O){var y,g;return d===O-1?!0:(y=x[d],g=x[d+1],i(g)||y===E[d]&&g!==E[d+1])},i=function(d){return d===" "||d==="."||d==="-"||d==="_"||d==="/"||d==="\\"},b=function(d){var x;return dy?O:y)+10):g+R*y},J.scoreConsecutives=l=function(d,x,E,O,y,g,T){var k,z,C,H,I,q,V;for(z=d.length,H=E.length,C=z-y,I=H-g,k=C-1&&(I=c(C,d,x),I&&(y=C))),z=-1,H=0;++z1&&C>1))return t;for(y=0,V=0,ne=0,I=0,T=-1,k=-1;++k-1){V++;continue}else break;for(;++T12*k)return!1;for(g=-1;++gO)return!1;return!0}}).call(J)});var Sr=Oe(De=>{(function(){var e,r,t,n,o,i,a,c,u,s;s=Ne(),i=s.isMatch,e=s.computeScore,c=s.scoreSize,u=20,t=2.5,De.score=function(f,p,l){var v,h,m,b;return h=l.preparedQuery,v=l.allowErrors,v||i(f,h.core_lw,h.core_up)?(b=f.toLowerCase(),m=e(f,b,h),m=a(f,b,m,l),Math.ceil(m)):0},a=function(f,p,l,v){var h,m,b,w,S,R,d,x,E,O;if(l===0)return 0;for(E=v.preparedQuery,O=v.useExtensionBonus,x=v.pathSeparator,S=f.length-1;f[S]===x;)S--;if(b=f.lastIndexOf(x,S),d=S-b,R=1,O&&(R+=o(p,E.ext,b,S,2),l*=R),b===-1)return l;for(w=E.depth;b>-1&&w-- >0;)b=f.lastIndexOf(x,b-1);return m=b===-1?l:R*e(f.slice(b+1,S+1),p.slice(b+1,S+1),E),h=.5*u/(u+r(f,S+1,x)),h*m+(1-h)*l*c(0,t*d)},De.countDir=r=function(f,p,l){var v,h;if(p<1)return 0;for(v=0,h=-1;++hl)))return 0;for(w=p.length,m=v-S,m0?.9*o(f,p,l,S-2,h-1):b/m}}).call(De)});var Jr=Oe((cn,pn)=>{(function(){var e,r,t,n,o,i,a,c;c=Sr(),t=c.countDir,o=c.getExtension,pn.exports=e=function(){function u(s,f){var p,l,v;if(v=f!=null?f:{},p=v.optCharRegEx,l=v.pathSeparator,!(s&&s.length))return null;this.query=s,this.query_lw=s.toLowerCase(),this.core=r(s,p),this.core_lw=this.core.toLowerCase(),this.core_up=a(this.core),this.depth=t(s,s.length,l),this.ext=o(this.query_lw),this.charCodes=n(this.query_lw)}return u}(),i=/[ _\-:\/\\]/g,r=function(u,s){return s==null&&(s=i),u.replace(s,"")},a=function(u){var s,f,p,l;for(f="",p=0,l=u.length;p{(function(){var e,r,t,n,o;n=Ne(),r=Sr(),e=Jr(),t=function(i){return i.candidate},o=function(i,a){return a.score-i.score},mn.exports=function(i,a,c){var u,s,f,p,l,v,h,m,b,w,S,R,d;for(m=[],f=c.key,l=c.maxResults,p=c.maxInners,S=c.usePathScoring,b=p!=null&&p>0?p:i.length+1,u=f!=null,h=S?r:n,R=0,d=i.length;R0&&(m.push({candidate:s,score:v}),!--b))));R++);return m.sort(o),i=m.map(t),l!=null&&(i=i.slice(0,l)),i}}).call(ln)});var dn=Oe(_r=>{(function(){var e,r,t,n,o,i,a,c,u,s;s=Ne(),t=s.isMatch,n=s.isWordStart,u=s.scoreConsecutives,c=s.scoreCharacter,a=s.scoreAcronyms,_r.match=o=function(f,p,l){var v,h,m,b,w,S;return v=l.allowErrors,w=l.preparedQuery,b=l.pathSeparator,v||t(f,w.core_lw,w.core_up)?(S=f.toLowerCase(),m=r(f,S,w),m.length===0||f.indexOf(b)>-1&&(h=e(f,S,w,b),m=i(m,h)),m):[]},_r.wrap=function(f,p,l){var v,h,m,b,w,S,R,d,x;if(l.wrap!=null&&(x=l.wrap,S=x.tagClass,d=x.tagOpen,R=x.tagClose),S==null&&(S="highlight"),d==null&&(d=''),R==null&&(R=""),f===p)return d+f+R;if(m=o(f,p,l),m.length===0)return f;for(b="",v=-1,w=0;++vw&&(b+=f.substring(w,h),w=h);++vw&&(b+=d,b+=f.substring(w,h),b+=R,w=h)}return w<=f.length-1&&(b+=f.substring(w)),b},e=function(f,p,l,v){var h,m,b;for(b=f.length-1;f[b]===v;)b--;if(h=f.lastIndexOf(v,b),h===-1)return[];for(m=l.depth;m-- >0;)if(h=f.lastIndexOf(v,h-1),h===-1)return[];return h++,b++,r(f.slice(h,b),p.slice(h,b),l,h)},i=function(f,p){var l,v,h,m,b,w,S;if(b=f.length,w=p.length,w===0)return f.slice();if(b===0)return p.slice();for(h=-1,m=0,v=p[m],S=[];++h0?x:u(f,p,I,q,y,g,oe),R=ne+c(y,g,oe,S,O)),se=$[g],x=E[g],V>se?z=m:(V=se,z=w),R>V?(V=R,z=h):O=0,$[g]=V,E[g]=O,ve[++H]=V>0?z:b;for(y=T-1,g=C-1,H=y*C+g,d=!0,k=[];d&&y>=0&&g>=0;)switch(ve[H]){case w:y--,H-=C;break;case m:g--,H--;break;case h:k.push(y+v),g--,y--,H-=C+1;break;default:d=!1}return k.reverse(),k}}).call(_r)});var Br=Oe((vn,bn)=>{(function(){var e,r,t,n,o,i,a,c;t=hn(),n=dn(),c=Ne(),i=Sr(),e=Jr(),a=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",bn.exports={filter:function(u,s,f){return f==null&&(f={}),s!=null&&s.length&&(u!=null&&u.length)?(f=o(f,s),t(u,s,f)):[]},score:function(u,s,f){return f==null&&(f={}),u!=null&&u.length&&(s!=null&&s.length)?(f=o(f,s),f.usePathScoring?i.score(u,s,f):c.score(u,s,f)):0},match:function(u,s,f){var p,l,v;return f==null&&(f={}),u?s?u===s?function(){v=[];for(var h=0,m=u.length;0<=m?hm;0<=m?h++:h--)v.push(h);return v}.apply(this):(f=o(f,s),n.match(u,s,f)):[]:[]},wrap:function(u,s,f){return f==null&&(f={}),u?s?(f=o(f,s),n.wrap(u,s,f)):[]:[]},prepareQuery:function(u,s){return s==null&&(s={}),s=o(s,u),s.preparedQuery}},o=function(u,s){return u.allowErrors==null&&(u.allowErrors=!1),u.usePathScoring==null&&(u.usePathScoring=!0),u.useExtensionBonus==null&&(u.useExtensionBonus=!1),u.pathSeparator==null&&(u.pathSeparator=r),u.optCharRegEx==null&&(u.optCharRegEx=null),u.wrap==null&&(u.wrap=null),u.preparedQuery==null&&(u.preparedQuery=a&&a.query===s?a:a=new e(s,u)),u}}).call(vn)});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -11,8 +11,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Lr=function(e,r){return Lr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Lr(e,r)};function j(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Lr(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function nt(e,r,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(e,r||[])).next())})}function Ge(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,o=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){a={error:c}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function U(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n1||c(l,v)})})}function c(l,v){try{u(n[l](v))}catch(h){p(i[0][3],h)}}function u(l){l.value instanceof ve?Promise.resolve(l.value.v).then(s,f):p(i[0][2],l)}function s(l){c("next",l)}function f(l){c("throw",l)}function p(l,v){l(v),i.shift(),i.length&&c(i[0][0],i[0][1])}}function it(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof G=="function"?G(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(a){return new Promise(function(c,u){a=e[i](a),o(c,u,a.done,a.value)})}}function o(i,a,c,u){Promise.resolve(u).then(function(s){i({value:s,done:c})},a)}}function _(e){return typeof e=="function"}function Ye(e){var r=function(n){Error.call(n),n.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Je=Ye(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription: +***************************************************************************** */var Cr=function(e,r){return Cr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Cr(e,r)};function j(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Cr(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function nt(e,r,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(e,r||[])).next())})}function Ge(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,o=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){a={error:c}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function U(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n1||c(l,v)})})}function c(l,v){try{u(n[l](v))}catch(h){p(i[0][3],h)}}function u(l){l.value instanceof be?Promise.resolve(l.value.v).then(s,f):p(i[0][2],l)}function s(l){c("next",l)}function f(l){c("throw",l)}function p(l,v){l(v),i.shift(),i.length&&c(i[0][0],i[0][1])}}function it(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof G=="function"?G(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(a){return new Promise(function(c,u){a=e[i](a),o(c,u,a.done,a.value)})}}function o(i,a,c,u){Promise.resolve(u).then(function(s){i({value:s,done:c})},a)}}function _(e){return typeof e=="function"}function Ye(e){var r=function(n){Error.call(n),n.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Je=Ye(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription: `+t.map(function(n,o){return o+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=t}});function fe(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var ie=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var c=G(a),u=c.next();!u.done;u=c.next()){var s=u.value;s.remove(this)}}catch(m){r={error:m}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}else a.remove(this);var f=this.initialTeardown;if(_(f))try{f()}catch(m){i=m instanceof Je?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var l=G(p),v=l.next();!v.done;v=l.next()){var h=v.value;try{at(h)}catch(m){i=i!=null?i:[],m instanceof Je?i=U(U([],W(i)),W(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{v&&!v.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}if(i)throw new Je(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)at(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&fe(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&fe(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Rr=ie.EMPTY;function Be(e){return e instanceof ie||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function at(e){_(e)?e():e.unsubscribe()}var te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Te={setTimeout:function(e,r){for(var t=[],n=2;n0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var n=this,o=this,i=o.hasError,a=o.isStopped,c=o.observers;return i||a?Rr:(this.currentObservers=null,c.push(t),new ie(function(){n.currentObservers=null,fe(c,t)}))},r.prototype._checkFinalizedStatuses=function(t){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?t.error(i):a&&t.complete()},r.prototype.asObservable=function(){var t=new L;return t.source=this,t},r.create=function(t,n){return new ht(t,n)},r}(L);var ht=function(e){j(r,e);function r(t,n){var o=e.call(this)||this;return o.destination=t,o.source=n,o}return r.prototype.next=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,t)},r.prototype.error=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,t)},r.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},r.prototype._subscribe=function(t){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&o!==void 0?o:Rr},r}(B);var ze={now:function(){return(ze.delegate||Date).now()},delegate:void 0};var dt=function(e){j(r,e);function r(t,n,o){t===void 0&&(t=1/0),n===void 0&&(n=1/0),o===void 0&&(o=ze);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return r.prototype.next=function(t){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,c=n._timestampProvider,u=n._windowTime;o||(i.push(t),!a&&i.push(c.now()+u)),this._trimBuffer(),e.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),o=this,i=o._infiniteTimeWindow,a=o._buffer,c=a.slice(),u=0;u0?e.prototype.requestAsyncId.call(this,t,n,o):(t.actions.push(this),t._scheduled||(t._scheduled=Ce.requestAnimationFrame(function(){return t.flush(void 0)})))},r.prototype.recycleAsyncId=function(t,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,o);var a=t.actions;n!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(Ce.cancelAnimationFrame(n),t._scheduled=void 0)},r}(er);var yt=function(e){j(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;t=t||o.shift();do if(i=t.execute(t.state,t.delay))break;while((t=o[0])&&t.id===n&&o.shift());if(this._active=!1,i){for(;(t=o[0])&&t.id===n&&o.shift();)t.unsubscribe();throw i}},r}(rr);var Wr=new yt(xt);var pe=new L(function(e){return e.complete()});function tr(e){return e&&_(e.schedule)}function zr(e){return e[e.length-1]}function Ie(e){return _(zr(e))?e.pop():void 0}function ae(e){return tr(zr(e))?e.pop():void 0}function gt(e,r){return typeof zr(e)=="number"?e.pop():r}var Le=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function nr(e){return _(e==null?void 0:e.then)}function or(e){return _(e[Me])}function ir(e){return Symbol.asyncIterator&&_(e==null?void 0:e[Symbol.asyncIterator])}function ar(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function jn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sr=jn();function ur(e){return _(e==null?void 0:e[sr])}function fr(e){return ot(this,arguments,function(){var t,n,o,i;return Ge(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,ve(t.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,ve(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,ve(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function cr(e){return _(e==null?void 0:e.getReader)}function P(e){if(e instanceof L)return e;if(e!=null){if(or(e))return $n(e);if(Le(e))return qn(e);if(nr(e))return Nn(e);if(ir(e))return wt(e);if(ur(e))return Dn(e);if(cr(e))return Qn(e)}throw ar(e)}function $n(e){return new L(function(r){var t=e[Me]();if(_(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qn(e){return new L(function(r){for(var t=0;t0&&(f=new xe({next:function(E){return x.next(E)},error:function(E){m=!0,b(),p=Qr(w,o,E),x.error(E)},complete:function(){h=!0,b(),p=Qr(w,a),x.complete()}}),P(R).subscribe(f))})(s)}}function Qr(e,r){for(var t=[],n=2;n{let r=yr();return typeof r!="undefined"?e.contains(r):!1}),he(e===yr()),le())}function Dt(e){return{x:e.scrollLeft,y:e.scrollTop}}function Qt(e){return N(K(e,"scroll"),K(window,"resize")).pipe(Vr(0,Wr),k(()=>Dt(e)),he(Dt(e)))}var Gt=function(){if(typeof Map!="undefined")return Map;function e(r,t){var n=-1;return r.some(function(o,i){return o[0]===t?(n=i,!0):!1}),n}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},r.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},r.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!Gr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vo?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Gr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(r){var t=r.propertyName,n=t===void 0?"":t,o=ho.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Yt=function(e,r){for(var t=0,n=Object.keys(r);t0},e}(),Bt=typeof WeakMap!="undefined"?new WeakMap:new Gt,Xt=function(){function e(r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=bo.getInstance(),n=new Ao(r,t,this);Bt.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xt.prototype[e]=function(){var r;return(r=Bt.get(this))[e].apply(r,arguments)}});var Mo=function(){return typeof gr.ResizeObserver!="undefined"?gr.ResizeObserver:Xt}(),Zt=Mo;var Co=new B,Yp=je(()=>Z(new Zt(e=>{for(let r of e)Co.next(r)}))).pipe(D(e=>N($e,Z(e)).pipe(Ee(()=>e.disconnect()))),Se(1));function en(e){return{width:e.offsetWidth,height:e.offsetHeight}}function rn(e){return{width:e.scrollWidth,height:e.scrollHeight}}var Io=new B,ol=je(()=>Z(new IntersectionObserver(e=>{for(let r of e)Io.next(r)},{threshold:0}))).pipe(D(e=>N($e,Z(e)).pipe(Ee(()=>e.disconnect()))),Se(1));function tn(e,r=16){return Qt(e).pipe(k(({y:t})=>{let n=en(e),o=rn(e);return t>=o.height-n.height-r}),le())}var ml={drawer:ee("[data-md-toggle=drawer]"),search:ee("[data-md-toggle=search]")};function nn(){return new URL(location.href)}function on(e,r){if(typeof r=="string"||typeof r=="number")e.innerHTML+=r.toString();else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let t of r)on(e,t)}function re(e,r,...t){let n=document.createElement(e);if(r)for(let o of Object.keys(r))typeof r[o]!="undefined"&&(typeof r[o]!="boolean"?n.setAttribute(o,r[o]):n.setAttribute(o,""));for(let o of t)on(n,o);return n}function an(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function Lo(e,r={credentials:"same-origin"}){return X(fetch(`${e}`,r)).pipe(br(()=>pe),D(t=>t.status!==200?Ur(()=>new Error(t.statusText)):Z(t)))}function Sr(e,r){return Lo(e,r).pipe(D(t=>t.json()),Se(1))}(()=>{function e(n,o){parent.postMessage(n,o||"*")}function r(...n){return n.reduce((o,i)=>o.then(()=>new Promise(a=>{let c=document.createElement("script");c.src=i,c.onload=a,document.body.appendChild(c)})),Promise.resolve())}var t=class extends EventTarget{constructor(n){super(),this.url=n,this.m=i=>{i.source===this.w&&(this.dispatchEvent(new MessageEvent("message",{data:i.data})),this.onmessage&&this.onmessage(i))},this.e=(i,a,c,u,s)=>{if(a===`${this.url}`){let f=new ErrorEvent("error",{message:i,filename:a,lineno:c,colno:u,error:s});this.dispatchEvent(f),this.onerror&&this.onerror(f)}};let o=document.createElement("iframe");o.hidden=!0,document.body.appendChild(this.iframe=o),this.w.document.open(),this.w.document.write(` + {% endblock %} diff --git a/material/assets/javascripts/bundle.202856ae.min.js b/material/assets/javascripts/bundle.202856ae.min.js new file mode 100644 index 000000000..af6d862f1 --- /dev/null +++ b/material/assets/javascripts/bundle.202856ae.min.js @@ -0,0 +1,29 @@ +"use strict";(()=>{var Ri=Object.create;var yr=Object.defineProperty;var Hi=Object.getOwnPropertyDescriptor;var Pi=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,$i=Object.getPrototypeOf,xr=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable;var nn=(e,t,r)=>t in e?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))xr.call(t,r)&&nn(e,r,t[r]);if(Ht)for(var r of Ht(t))on.call(t,r)&&nn(e,r,t[r]);return e};var an=(e,t)=>{var r={};for(var n in e)xr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ht)for(var n of Ht(e))t.indexOf(n)<0&&on.call(e,n)&&(r[n]=e[n]);return r};var Pt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ii=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pi(t))!xr.call(e,o)&&o!==r&&yr(e,o,{get:()=>t[o],enumerable:!(n=Hi(t,o))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?Ri($i(e)):{},Ii(t||!e||!e.__esModule?yr(r,"default",{value:e,enumerable:!0}):r,e));var cn=Pt((Er,sn)=>{(function(e,t){typeof Er=="object"&&typeof sn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Er,function(){"use strict";function e(r){var n=!0,o=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(T){return!!(T&&T!==document&&T.nodeName!=="HTML"&&T.nodeName!=="BODY"&&"classList"in T&&"contains"in T.classList)}function f(T){var Qe=T.type,De=T.tagName;return!!(De==="INPUT"&&s[Qe]&&!T.readOnly||De==="TEXTAREA"&&!T.readOnly||T.isContentEditable)}function c(T){T.classList.contains("focus-visible")||(T.classList.add("focus-visible"),T.setAttribute("data-focus-visible-added",""))}function u(T){T.hasAttribute("data-focus-visible-added")&&(T.classList.remove("focus-visible"),T.removeAttribute("data-focus-visible-added"))}function p(T){T.metaKey||T.altKey||T.ctrlKey||(a(r.activeElement)&&c(r.activeElement),n=!0)}function m(T){n=!1}function d(T){a(T.target)&&(n||f(T.target))&&c(T.target)}function h(T){a(T.target)&&(T.target.classList.contains("focus-visible")||T.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(T.target))}function v(T){document.visibilityState==="hidden"&&(o&&(n=!0),Y())}function Y(){document.addEventListener("mousemove",z),document.addEventListener("mousedown",z),document.addEventListener("mouseup",z),document.addEventListener("pointermove",z),document.addEventListener("pointerdown",z),document.addEventListener("pointerup",z),document.addEventListener("touchmove",z),document.addEventListener("touchstart",z),document.addEventListener("touchend",z)}function G(){document.removeEventListener("mousemove",z),document.removeEventListener("mousedown",z),document.removeEventListener("mouseup",z),document.removeEventListener("pointermove",z),document.removeEventListener("pointerdown",z),document.removeEventListener("pointerup",z),document.removeEventListener("touchmove",z),document.removeEventListener("touchstart",z),document.removeEventListener("touchend",z)}function z(T){T.target.nodeName&&T.target.nodeName.toLowerCase()==="html"||(n=!1,G())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",v,!0),Y(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var fn=Pt(wr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},s=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(G,z){d.append(z,G)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;hd[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:wr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(T){throw new Error("URL unable to set base "+c+" due to "+T)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),v=!0,Y=!0,G=this;["append","delete","set"].forEach(function(T){var Qe=h[T];h[T]=function(){Qe.apply(h,arguments),v&&(Y=!1,G.search=h.toString(),Y=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var z=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==z&&(z=this.search,Y&&(v=!1,this.searchParams._fromString(this.search),v=!0))}})},s=i.prototype,a=function(f){Object.defineProperty(s,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){a(f)}),Object.defineProperty(s,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(s,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:wr)});var Br=Pt((Mt,Yr)=>{/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(t,r){typeof Mt=="object"&&typeof Yr=="object"?Yr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Mt=="object"?Mt.ClipboardJS=r():t.ClipboardJS=r()})(Mt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return ki}});var s=i(279),a=i.n(s),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(j){try{return document.execCommand(j)}catch(O){return!1}}var d=function(O){var E=p()(O);return m("cut"),E},h=d;function v(j){var O=document.documentElement.getAttribute("dir")==="rtl",E=document.createElement("textarea");E.style.fontSize="12pt",E.style.border="0",E.style.padding="0",E.style.margin="0",E.style.position="absolute",E.style[O?"right":"left"]="-9999px";var P=window.pageYOffset||document.documentElement.scrollTop;return E.style.top="".concat(P,"px"),E.setAttribute("readonly",""),E.value=j,E}var Y=function(O,E){var P=v(O);E.container.appendChild(P);var I=p()(P);return m("copy"),P.remove(),I},G=function(O){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},P="";return typeof O=="string"?P=Y(O,E):O instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O==null?void 0:O.type)?P=Y(O.value,E):(P=p()(O),m("copy")),P},z=G;function T(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(E){return typeof E}:T=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},T(j)}var Qe=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=O.action,P=E===void 0?"copy":E,I=O.container,K=O.target,_e=O.text;if(P!=="copy"&&P!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(K!==void 0)if(K&&T(K)==="object"&&K.nodeType===1){if(P==="copy"&&K.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(P==="cut"&&(K.hasAttribute("readonly")||K.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(_e)return z(_e,{container:I});if(K)return P==="cut"?h(K):z(K,{container:I})},De=Qe;function $e(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e=function(E){return typeof E}:$e=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},$e(j)}function Si(j,O){if(!(j instanceof O))throw new TypeError("Cannot call a class as a function")}function rn(j,O){for(var E=0;E0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof I.action=="function"?I.action:this.defaultAction,this.target=typeof I.target=="function"?I.target:this.defaultTarget,this.text=typeof I.text=="function"?I.text:this.defaultText,this.container=$e(I.container)==="object"?I.container:document.body}},{key:"listenClick",value:function(I){var K=this;this.listener=c()(I,"click",function(_e){return K.onClick(_e)})}},{key:"onClick",value:function(I){var K=I.delegateTarget||I.currentTarget,_e=this.action(K)||"copy",Rt=De({action:_e,container:this.container,target:this.target(K),text:this.text(K)});this.emit(Rt?"success":"error",{action:_e,text:Rt,trigger:K,clearSelection:function(){K&&K.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(I){return gr("action",I)}},{key:"defaultTarget",value:function(I){var K=gr("target",I);if(K)return document.querySelector(K)}},{key:"defaultText",value:function(I){return gr("text",I)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(I){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return z(I,K)}},{key:"cut",value:function(I){return h(I)}},{key:"isSupported",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],K=typeof I=="string"?[I]:I,_e=!!document.queryCommandSupported;return K.forEach(function(Rt){_e=_e&&!!document.queryCommandSupported(Rt)}),_e}}]),E}(a()),ki=Ci},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function s(a,f){for(;a&&a.nodeType!==o;){if(typeof a.matches=="function"&&a.matches(f))return a;a=a.parentNode}}n.exports=s},438:function(n,o,i){var s=i(828);function a(u,p,m,d,h){var v=c.apply(this,arguments);return u.addEventListener(m,v,h),{destroy:function(){u.removeEventListener(m,v,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?a.apply(null,arguments):typeof m=="function"?a.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return a(v,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=s(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(n,o,i){var s=i(879),a=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!s.string(d))throw new TypeError("Second argument must be a String");if(!s.fn(h))throw new TypeError("Third argument must be a Function");if(s.node(m))return c(m,d,h);if(s.nodeList(m))return u(m,d,h);if(s.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(d,h)})}}}function p(m,d,h){return a(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),s=f.toString()}return s}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,s,a){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var f=this;function c(){f.off(i,c),s.apply(a,arguments)}return c._=s,this.on(i,c,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=a.length;for(f;f{"use strict";/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var as=/["'&<>]/;Go.exports=ss;function ss(e){var t=""+e,r=as.exec(t);if(!r)return t;var n,o="",i=0,s=0;for(i=r.index;i{function e(n,o){parent.postMessage(n,o||"*")}function t(...n){return n.reduce((o,i)=>o.then(()=>new Promise(s=>{let a=document.createElement("script");a.src=i,a.onload=s,document.body.appendChild(a)})),Promise.resolve())}var r=class extends EventTarget{constructor(n){super(),this.url=n,this.m=i=>{i.source===this.w&&(this.dispatchEvent(new MessageEvent("message",{data:i.data})),this.onmessage&&this.onmessage(i))},this.e=(i,s,a,f,c)=>{if(s===`${this.url}`){let u=new ErrorEvent("error",{message:i,filename:s,lineno:a,colno:f,error:c});this.dispatchEvent(u),this.onerror&&this.onerror(u)}};let o=document.createElement("iframe");o.hidden=!0,document.body.appendChild(this.iframe=o),this.w.document.open(),this.w.document.write(` {% endblock %} {% block scripts %} - + {% for path in config.extra_javascript %} {% if path.endswith(".mjs") %} diff --git a/material/blog-archive.html b/material/blog-archive.html new file mode 100644 index 000000000..5de8dcaf4 --- /dev/null +++ b/material/blog-archive.html @@ -0,0 +1,16 @@ +{#- + This file was automatically generated - do not edit +-#} +{% extends "main.html" %} +{% block container %} +
+
+
+ {{ page.content }} +
+ {% for post in posts %} + {% include "partials/post.html" %} + {% endfor %} +
+
+{% endblock %} diff --git a/material/blog-category.html b/material/blog-category.html new file mode 100644 index 000000000..5de8dcaf4 --- /dev/null +++ b/material/blog-category.html @@ -0,0 +1,16 @@ +{#- + This file was automatically generated - do not edit +-#} +{% extends "main.html" %} +{% block container %} +
+
+
+ {{ page.content }} +
+ {% for post in posts %} + {% include "partials/post.html" %} + {% endfor %} +
+
+{% endblock %} diff --git a/material/blog-post.html b/material/blog-post.html new file mode 100644 index 000000000..572dd3306 --- /dev/null +++ b/material/blog-post.html @@ -0,0 +1,98 @@ +{#- + This file was automatically generated - do not edit +-#} +{% extends "main.html" %} +{% import "partials/nav-item.html" as item with context %} +{% block container %} +
+
+
+
+ + {% if "toc.integrate" in features %} + {% include "partials/toc.html" %} + {% endif %} +
+
+
+
+ {% block content %} + {% include "partials/content.html" %} + {% endblock %} +
+
+{% endblock %} diff --git a/material/blog.html b/material/blog.html new file mode 100644 index 000000000..a87dafa9a --- /dev/null +++ b/material/blog.html @@ -0,0 +1,19 @@ +{#- + This file was automatically generated - do not edit +-#} +{% extends "main.html" %} +{% block container %} +
+
+
+ {{ page.content }} +
+ {% for post in posts %} + {% include "partials/post.html" %} + {% endfor %} + {% block pagination %} + {% include "partials/pagination.html" %} + {% endblock %} +
+
+{% endblock %} diff --git a/material/partials/language.html b/material/partials/language.html index a96012afc..e497e66ba 100644 --- a/material/partials/language.html +++ b/material/partials/language.html @@ -3,4 +3,4 @@ -#} {% import "partials/languages/" ~ config.theme.language ~ ".html" as lang %} {% import "partials/languages/en.html" as fallback %} -{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %} +{% macro t(key) %}{{ lang.t(key) or fallback.t(key) or key }}{% endmacro %} diff --git a/material/partials/languages/zh-Hant.html b/material/partials/languages/zh-Hant.html index 0a96a2516..aaac6a7dc 100644 --- a/material/partials/languages/zh-Hant.html +++ b/material/partials/languages/zh-Hant.html @@ -26,9 +26,8 @@ "header": "頁首", "meta.comments": "評論", "meta.source": "來源", - "search.config.lang": "ja", "search.config.pipeline": "stemmer", - "search.config.separator": "[\\s\\-,。]+", + "search.config.separator": "[\\s\\u200b\\u3000\\-、。,.?!;]+", "nav": "導航", "readtime.one": "需要 1 分鐘閲讀", "readtime.other": "需要 # 分鐘閲讀", diff --git a/material/partials/languages/zh-TW.html b/material/partials/languages/zh-TW.html index be79e14f2..b43170be1 100644 --- a/material/partials/languages/zh-TW.html +++ b/material/partials/languages/zh-TW.html @@ -32,9 +32,8 @@ "rss.created": "RSS 訂閱", "rss.updated": "RSS 訂閱內容已更新", "search": "搜尋", - "search.config.lang": "ja", "search.config.pipeline": "stemmer", - "search.config.separator": "[\\s\\- 、。,.?;]+", + "search.config.separator": "[\\s\\u200b\\u3000\\-、。,.?!;]+", "search.placeholder": "搜尋", "search.share": "分享", "search.reset": "清除", diff --git a/material/partials/languages/zh.html b/material/partials/languages/zh.html index 33721838e..1ce9a0c9b 100644 --- a/material/partials/languages/zh.html +++ b/material/partials/languages/zh.html @@ -32,9 +32,8 @@ "rss.created": "RSS 订阅", "rss.updated": "已更新内容的 RSS 订阅", "search": "查找", - "search.config.lang": "ja", "search.config.pipeline": "stemmer", - "search.config.separator": "[\\s\\-,。]+", + "search.config.separator": "[\\s\\u200b\\u3000\\-、。,.?!;]+", "search.placeholder": "搜索", "search.share": "分享", "search.reset": "清空当前内容", diff --git a/material/partials/nav-item.html b/material/partials/nav-item.html index 90e615645..5be3ff1f4 100644 --- a/material/partials/nav-item.html +++ b/material/partials/nav-item.html @@ -1,63 +1,105 @@ {#- This file was automatically generated - do not edit -#} +{% macro render_status(nav_item, type) %} + {% set class = "md-status md-status--" ~ type %} + {% if config.extra.status and config.extra.status[type] %} + + + {% else %} + + {% endif %} +{% endmacro %} +{% macro render_content(nav_item, ref = nav_item) %} + {% if nav_item.is_page and nav_item.meta.icon %} + {% include ".icons/" ~ nav_item.meta.icon ~ ".svg" %} + {% endif %} + + {{ nav_item.title }} + + {% if nav_item.is_page and nav_item.meta.status %} + {{ render_status(nav_item, nav_item.meta.status) }} + {% endif %} +{% endmacro %} +{% macro render_pruned(nav_item, ref = nav_item) %} + {% set first = nav_item.children | first %} + {% if first and first.children %} + {{ render_pruned(first, ref) }} + {% else %} + + {{ render_content(first, ref) }} + {% if nav_item.children | length > 1 %} + + {% endif %} + + {% endif %} +{% endmacro %} {% macro render(nav_item, path, level) %} {% set class = "md-nav__item" %} {% if nav_item.active %} {% set class = class ~ " md-nav__item--active" %} {% endif %} {% if nav_item.children %} + {% set indexes = [] %} + {% if "navigation.indexes" in features %} + {% for nav_item in nav_item.children %} + {% if nav_item.is_index and not index is defined %} + {% set _ = indexes.append(nav_item) %} + {% endif %} + {% endfor %} + {% endif %} {% if "navigation.sections" in features and level == 1 + ( "navigation.tabs" in features ) %} {% set class = class ~ " md-nav__item--section" %} + {% elif not nav_item.active and "navigation.prune" in features %} + {% set class = class ~ " md-nav__item--pruned" %} + {% set prune = true %} {% endif %}
  • - {% set expanded = "navigation.expand" in features %} - {% set active = nav_item.active or expanded %} - {% set checked = "checked" if nav_item.active %} - {% if expanded and not checked %} - {% set indeterminate = "md-toggle--indeterminate" %} - {% endif %} - - {% set indexes = [] %} - {% if "navigation.indexes" in features %} - {% for nav_item in nav_item.children %} - {% if nav_item.is_index and not index is defined %} - {% set _ = indexes.append(nav_item) %} - {% endif %} - {% endfor %} - {% endif %} - {% if not indexes %} - - {% else %} - {% set index = indexes | first %} - {% set class = "md-nav__link--active" if index == page %} - - {% endif %} - + + {% endif %} + + {% else %} + {{ render_pruned(nav_item) }} + {% endif %}
  • {% elif nav_item == page %}
  • @@ -69,12 +111,12 @@ {% endif %} {% if toc %} {% endif %} - {{ nav_item.title }} + {{ render_content(nav_item) }} {% if toc %} {% include "partials/toc.html" %} @@ -83,9 +125,8 @@ {% else %}
  • - {{ nav_item.title }} + {{ render_content(nav_item) }}
  • {% endif %} {% endmacro %} -{{ render(nav_item, path, level) }} diff --git a/material/partials/nav.html b/material/partials/nav.html index 736707672..a701dcd27 100644 --- a/material/partials/nav.html +++ b/material/partials/nav.html @@ -1,6 +1,7 @@ {#- This file was automatically generated - do not edit -#} +{% import "partials/nav-item.html" as item with context %} {% set class = "md-nav md-nav--primary" %} {% if "navigation.tabs" in features %} {% set class = class ~ " md-nav--lifted" %} @@ -23,8 +24,7 @@
      {% for nav_item in nav %} {% set path = "__nav_" ~ loop.index %} - {% set level = 1 %} - {% include "partials/nav-item.html" %} + {{ item.render(nav_item, path, 1) }} {% endfor %}
    diff --git a/material/partials/pagination.html b/material/partials/pagination.html new file mode 100644 index 000000000..1de2cd4ce --- /dev/null +++ b/material/partials/pagination.html @@ -0,0 +1,20 @@ +{#- + This file was automatically generated - do not edit +-#} +{% import ".icons/material/chevron-double-left.svg" as icon_first %} +{% import ".icons/material/chevron-left.svg" as icon_previous %} +{% import ".icons/material/chevron-right.svg" as icon_next %} +{% import ".icons/material/chevron-double-right.svg" as icon_last %} + diff --git a/material/partials/post.html b/material/partials/post.html new file mode 100644 index 000000000..48d2607ee --- /dev/null +++ b/material/partials/post.html @@ -0,0 +1,60 @@ +{#- + This file was automatically generated - do not edit +-#} +
    +
    + {% if post.authors %} + + {% endif %} + +
    +
    + {{ post.content }} + +
    +
    diff --git a/material/partials/tabs-item.html b/material/partials/tabs-item.html index c05954986..c2938ad40 100644 --- a/material/partials/tabs-item.html +++ b/material/partials/tabs-item.html @@ -1,28 +1,35 @@ {#- This file was automatically generated - do not edit -#} -{% if not class %} +{% macro render_content(nav_item, ref = nav_item) %} + {% if nav_item == ref or "navigation.indexes" in features %} + {% if nav_item.is_index and nav_item.meta.icon %} + {% include ".icons/" ~ nav_item.meta.icon ~ ".svg" %} + {% endif %} + {% endif %} + {{ ref.title }} +{% endmacro %} +{% macro render(nav_item, ref = nav_item) %} {% set class = "md-tabs__link" %} - {% if nav_item.active %} + {% if ref.active %} {% set class = class ~ " md-tabs__link--active" %} {% endif %} -{% endif %} -{% if nav_item.children %} - {% set title = title | d(nav_item.title) %} - {% set nav_item = nav_item.children | first %} {% if nav_item.children %} - {% include "partials/tabs-item.html" %} + {% set first = nav_item.children | first %} + {% if first.children %} + {{ render(first, ref) }} + {% else %} +
  • + + {{ render_content(first, ref) }} + +
  • + {% endif %} {% else %}
  • - {{ title }} + {{ render_content(nav_item) }}
  • {% endif %} -{% else %} -
  • - - {{ nav_item.title }} - -
  • -{% endif %} +{% endmacro %} diff --git a/material/partials/tabs.html b/material/partials/tabs.html index 44568401c..04cb0c9c7 100644 --- a/material/partials/tabs.html +++ b/material/partials/tabs.html @@ -1,12 +1,12 @@ {#- This file was automatically generated - do not edit -#} -{% set class = "" %} +{% import "partials/tabs-item.html" as item with context %}