diff --git a/material/.overrides/assets/javascripts/custom.7c807b8d.min.js b/material/.overrides/assets/javascripts/custom.a066854d.min.js similarity index 57% rename from material/.overrides/assets/javascripts/custom.7c807b8d.min.js rename to material/.overrides/assets/javascripts/custom.a066854d.min.js index ce56cb443..7d30cc493 100644 --- a/material/.overrides/assets/javascripts/custom.7c807b8d.min.js +++ b/material/.overrides/assets/javascripts/custom.a066854d.min.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var ho=Object.create;var _r=Object.defineProperty;var vo=Object.getOwnPropertyDescriptor;var xo=Object.getOwnPropertyNames,Yr=Object.getOwnPropertySymbols,bo=Object.getPrototypeOf,Gr=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable;var Jr=(e,r,t)=>r in e?_r(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Qe=(e,r)=>{for(var t in r||(r={}))Gr.call(r,t)&&Jr(e,t,r[t]);if(Yr)for(var t of Yr(r))yo.call(r,t)&&Jr(e,t,r[t]);return e};var Oe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var go=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of xo(r))!Gr.call(e,n)&&n!==t&&_r(e,n,{get:()=>r[n],enumerable:!(o=vo(r,n))||o.enumerable});return e};var Xr=(e,r,t)=>(t=e!=null?ho(bo(e)):{},go(r||!e||!e.__esModule?_r(t,"default",{value:e,enumerable:!0}):t,e));var qe=Oe(G=>{(function(){var e,r,t,o,n,i,u,s,f,a,c,p,l,v,h,m,x,w,E,P;P=150,a=20,E=150,f=.75,G.score=function(d,b,S){var O,y,g,_;return y=S.preparedQuery,O=S.allowErrors,O||n(d,y.core_lw,y.core_up)?(_=d.toLowerCase(),g=r(d,_,y),Math.ceil(g)):0},G.isMatch=n=function(d,b,S){var O,y,g,_,F,U,C;if(g=d.length,_=b.length,!g||_>g)return!1;for(O=-1,y=-1;++y<_;){for(F=b.charCodeAt(y),U=S.charCodeAt(y);++O-1)return h(d,b,me,ne,ue,q,j);for(Te=new Array(q),F=new Array(q),Or=w(q,j),V=Math.ceil(f*q)+5,oe=V,C=!0,M=-1;++Mfe&&(fe=De),U=0,ne[M]===Er)if(Tr=s(H,d,b),U=_>0?_:l(d,b,me,ne,H,M,Tr),g=Sr+p(H,M,Tr,y,U),g>fe)fe=g,oe=V;else{if(de&&--oe<=0)return Math.max(fe,Te[q-1])*Or;de=!1}Sr=De,_=F[M],F[M]=U,Te[M]=fe}}return fe=Te[q-1],fe*Or},G.isWordStart=s=function(d,b,S){var O,y;return d===0?!0:(O=b[d],y=b[d-1],i(y)||O!==S[d]&&y===S[d-1])},G.isWordEnd=u=function(d,b,S,O){var y,g;return d===O-1?!0:(y=b[d],g=b[d+1],i(g)||y===S[d]&&g!==S[d+1])},i=function(d){return d===" "||d==="."||d==="-"||d==="_"||d==="/"||d==="\\"},x=function(d){var b;return dy?O:y)+10):g+P*y},G.scoreConsecutives=l=function(d,b,S,O,y,g,_){var F,U,C,H,M,j,V;for(U=d.length,H=S.length,C=U-y,M=H-g,F=C-1&&(M=s(C,d,b),M&&(y=C))),U=-1,H=0;++U1&&C>1))return t;for(y=0,V=0,oe=0,M=0,_=-1,F=-1;++F-1){V++;continue}else break;for(;++_12*F)return!1;for(g=-1;++g<_;)if(s(g,d,b)&&++y>O)return!1;return!0}}).call(G)});var gr=Oe(Ne=>{(function(){var e,r,t,o,n,i,u,s,f,a;a=qe(),i=a.isMatch,e=a.computeScore,s=a.scoreSize,f=20,t=2.5,Ne.score=function(c,p,l){var v,h,m,x;return h=l.preparedQuery,v=l.allowErrors,v||i(c,h.core_lw,h.core_up)?(x=c.toLowerCase(),m=e(c,x,h),m=u(c,x,m,l),Math.ceil(m)):0},u=function(c,p,l,v){var h,m,x,w,E,P,d,b,S,O;if(l===0)return 0;for(S=v.preparedQuery,O=v.useExtensionBonus,b=v.pathSeparator,E=c.length-1;c[E]===b;)E--;if(x=c.lastIndexOf(b,E),d=E-x,P=1,O&&(P+=n(p,S.ext,x,E,2),l*=P),x===-1)return l;for(w=S.depth;x>-1&&w-- >0;)x=c.lastIndexOf(b,x-1);return m=x===-1?l:P*e(c.slice(x+1,E+1),p.slice(x+1,E+1),S),h=.5*f/(f+r(c,E+1,b)),h*m+(1-h)*l*s(0,t*d)},Ne.countDir=r=function(c,p,l){var v,h;if(p<1)return 0;for(v=0,h=-1;++hl)))return 0;for(w=p.length,m=v-E,m0?.9*n(c,p,l,E-2,h-1):x/m}}).call(Ne)});var Dr=Oe((Xt,Bt)=>{(function(){var e,r,t,o,n,i,u,s;s=gr(),t=s.countDir,n=s.getExtension,Bt.exports=e=function(){function f(a,c){var p,l,v;if(v=c!=null?c:{},p=v.optCharRegEx,l=v.pathSeparator,!(a&&a.length))return null;this.query=a,this.query_lw=a.toLowerCase(),this.core=r(a,p),this.core_lw=this.core.toLowerCase(),this.core_up=u(this.core),this.depth=t(a,a.length,l),this.ext=n(this.query_lw),this.charCodes=o(this.query_lw)}return f}(),i=/[ _\-:\/\\]/g,r=function(f,a){return a==null&&(a=i),f.replace(a,"")},u=function(f){var a,c,p,l;for(c="",p=0,l=f.length;p{(function(){var e,r,t,o,n;o=qe(),r=gr(),e=Dr(),t=function(i){return i.candidate},n=function(i,u){return u.score-i.score},eo.exports=function(i,u,s){var f,a,c,p,l,v,h,m,x,w,E,P,d;for(m=[],c=s.key,l=s.maxResults,p=s.maxInners,E=s.usePathScoring,x=p!=null&&p>0?p:i.length+1,f=c!=null,h=E?r:o,P=0,d=i.length;P0&&(m.push({candidate:a,score:v}),!--x))));P++);return m.sort(n),i=m.map(t),l!=null&&(i=i.slice(0,l)),i}}).call(Zt)});var to=Oe(wr=>{(function(){var e,r,t,o,n,i,u,s,f,a;a=qe(),t=a.isMatch,o=a.isWordStart,f=a.scoreConsecutives,s=a.scoreCharacter,u=a.scoreAcronyms,wr.match=n=function(c,p,l){var v,h,m,x,w,E;return v=l.allowErrors,w=l.preparedQuery,x=l.pathSeparator,v||t(c,w.core_lw,w.core_up)?(E=c.toLowerCase(),m=r(c,E,w),m.length===0||c.indexOf(x)>-1&&(h=e(c,E,w,x),m=i(m,h)),m):[]},wr.wrap=function(c,p,l){var v,h,m,x,w,E,P,d,b;if(l.wrap!=null&&(b=l.wrap,E=b.tagClass,d=b.tagOpen,P=b.tagClose),E==null&&(E="highlight"),d==null&&(d=''),P==null&&(P=""),c===p)return d+c+P;if(m=n(c,p,l),m.length===0)return c;for(x="",v=-1,w=0;++vw&&(x+=c.substring(w,h),w=h);++vw&&(x+=d,x+=c.substring(w,h),x+=P,w=h)}return w<=c.length-1&&(x+=c.substring(w)),x},e=function(c,p,l,v){var h,m,x;for(x=c.length-1;c[x]===v;)x--;if(h=c.lastIndexOf(v,x),h===-1)return[];for(m=l.depth;m-- >0;)if(h=c.lastIndexOf(v,h-1),h===-1)return[];return h++,x++,r(c.slice(h,x),p.slice(h,x),l,h)},i=function(c,p){var l,v,h,m,x,w,E;if(x=c.length,w=p.length,w===0)return c.slice();if(x===0)return p.slice();for(h=-1,m=0,v=p[m],E=[];++h0?b:f(c,p,M,j,y,g,ne),P=oe+s(y,g,ne,E,O)),ue=q[g],b=S[g],V>ue?U=m:(V=ue,U=w),P>V?(V=P,U=h):O=0,q[g]=V,S[g]=O,de[++H]=V>0?U:x;for(y=_-1,g=C-1,H=y*C+g,d=!0,F=[];d&&y>=0&&g>=0;)switch(de[H]){case w:y--,H-=C;break;case m:g--,H--;break;case h:F.push(y+v),g--,y--,H-=C+1;break;default:d=!1}return F.reverse(),F}}).call(wr)});var Qr=Oe((oo,no)=>{(function(){var e,r,t,o,n,i,u,s;t=ro(),o=to(),s=qe(),i=gr(),e=Dr(),u=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",no.exports={filter:function(f,a,c){return c==null&&(c={}),a!=null&&a.length&&(f!=null&&f.length)?(c=n(c,a),t(f,a,c)):[]},score:function(f,a,c){return c==null&&(c={}),f!=null&&f.length&&(a!=null&&a.length)?(c=n(c,a),c.usePathScoring?i.score(f,a,c):s.score(f,a,c)):0},match:function(f,a,c){var p,l,v;return c==null&&(c={}),f?a?f===a?function(){v=[];for(var h=0,m=f.length;0<=m?hm;0<=m?h++:h--)v.push(h);return v}.apply(this):(c=n(c,a),o.match(f,a,c)):[]:[]},wrap:function(f,a,c){return c==null&&(c={}),f?a?(c=n(c,a),o.wrap(f,a,c)):[]:[]},prepareQuery:function(f,a){return a==null&&(a={}),a=n(a,f),a.preparedQuery}},n=function(f,a){return f.allowErrors==null&&(f.allowErrors=!1),f.usePathScoring==null&&(f.usePathScoring=!0),f.useExtensionBonus==null&&(f.useExtensionBonus=!1),f.pathSeparator==null&&(f.pathSeparator=r),f.optCharRegEx==null&&(f.optCharRegEx=null),f.wrap==null&&(f.wrap=null),f.preparedQuery==null&&(f.preparedQuery=u&&u.query===a?u:u=new e(a,f)),f}}).call(oo)});/*! ***************************************************************************** +"use strict";(()=>{var ho=Object.create;var _r=Object.defineProperty;var vo=Object.getOwnPropertyDescriptor;var xo=Object.getOwnPropertyNames,Yr=Object.getOwnPropertySymbols,bo=Object.getPrototypeOf,Gr=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable;var Jr=(e,r,t)=>r in e?_r(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Qe=(e,r)=>{for(var t in r||(r={}))Gr.call(r,t)&&Jr(e,t,r[t]);if(Yr)for(var t of Yr(r))yo.call(r,t)&&Jr(e,t,r[t]);return e};var Oe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var go=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of xo(r))!Gr.call(e,n)&&n!==t&&_r(e,n,{get:()=>r[n],enumerable:!(o=vo(r,n))||o.enumerable});return e};var Xr=(e,r,t)=>(t=e!=null?ho(bo(e)):{},go(r||!e||!e.__esModule?_r(t,"default",{value:e,enumerable:!0}):t,e));var qe=Oe(G=>{(function(){var e,r,t,o,n,i,f,s,u,a,c,p,l,v,h,m,x,w,E,P;P=150,a=20,E=150,u=.75,G.score=function(d,b,S){var O,y,g,_;return y=S.preparedQuery,O=S.allowErrors,O||n(d,y.core_lw,y.core_up)?(_=d.toLowerCase(),g=r(d,_,y),Math.ceil(g)):0},G.isMatch=n=function(d,b,S){var O,y,g,_,F,U,M;if(g=d.length,_=b.length,!g||_>g)return!1;for(O=-1,y=-1;++y<_;){for(F=b.charCodeAt(y),U=S.charCodeAt(y);++O-1)return h(d,b,me,ne,fe,q,$);for(Te=new Array(q),F=new Array(q),Or=w(q,$),V=Math.ceil(u*q)+5,oe=V,M=!0,C=-1;++Cue&&(ue=De),U=0,ne[C]===Er)if(Tr=s(H,d,b),U=_>0?_:l(d,b,me,ne,H,C,Tr),g=Sr+p(H,C,Tr,y,U),g>ue)ue=g,oe=V;else{if(de&&--oe<=0)return Math.max(ue,Te[q-1])*Or;de=!1}Sr=De,_=F[C],F[C]=U,Te[C]=ue}}return ue=Te[q-1],ue*Or},G.isWordStart=s=function(d,b,S){var O,y;return d===0?!0:(O=b[d],y=b[d-1],i(y)||O!==S[d]&&y===S[d-1])},G.isWordEnd=f=function(d,b,S,O){var y,g;return d===O-1?!0:(y=b[d],g=b[d+1],i(g)||y===S[d]&&g!==S[d+1])},i=function(d){return d===" "||d==="."||d==="-"||d==="_"||d==="/"||d==="\\"},x=function(d){var b;return dy?O:y)+10):g+P*y},G.scoreConsecutives=l=function(d,b,S,O,y,g,_){var F,U,M,H,C,$,V;for(U=d.length,H=S.length,M=U-y,C=H-g,F=M-1&&(C=s(M,d,b),C&&(y=M))),U=-1,H=0;++U1&&M>1))return t;for(y=0,V=0,oe=0,C=0,_=-1,F=-1;++F-1){V++;continue}else break;for(;++_12*F)return!1;for(g=-1;++g<_;)if(s(g,d,b)&&++y>O)return!1;return!0}}).call(G)});var gr=Oe(Ne=>{(function(){var e,r,t,o,n,i,f,s,u,a;a=qe(),i=a.isMatch,e=a.computeScore,s=a.scoreSize,u=20,t=2.5,Ne.score=function(c,p,l){var v,h,m,x;return h=l.preparedQuery,v=l.allowErrors,v||i(c,h.core_lw,h.core_up)?(x=c.toLowerCase(),m=e(c,x,h),m=f(c,x,m,l),Math.ceil(m)):0},f=function(c,p,l,v){var h,m,x,w,E,P,d,b,S,O;if(l===0)return 0;for(S=v.preparedQuery,O=v.useExtensionBonus,b=v.pathSeparator,E=c.length-1;c[E]===b;)E--;if(x=c.lastIndexOf(b,E),d=E-x,P=1,O&&(P+=n(p,S.ext,x,E,2),l*=P),x===-1)return l;for(w=S.depth;x>-1&&w-- >0;)x=c.lastIndexOf(b,x-1);return m=x===-1?l:P*e(c.slice(x+1,E+1),p.slice(x+1,E+1),S),h=.5*u/(u+r(c,E+1,b)),h*m+(1-h)*l*s(0,t*d)},Ne.countDir=r=function(c,p,l){var v,h;if(p<1)return 0;for(v=0,h=-1;++hl)))return 0;for(w=p.length,m=v-E,m0?.9*n(c,p,l,E-2,h-1):x/m}}).call(Ne)});var Dr=Oe((Xt,Bt)=>{(function(){var e,r,t,o,n,i,f,s;s=gr(),t=s.countDir,n=s.getExtension,Bt.exports=e=function(){function u(a,c){var p,l,v;if(v=c!=null?c:{},p=v.optCharRegEx,l=v.pathSeparator,!(a&&a.length))return null;this.query=a,this.query_lw=a.toLowerCase(),this.core=r(a,p),this.core_lw=this.core.toLowerCase(),this.core_up=f(this.core),this.depth=t(a,a.length,l),this.ext=n(this.query_lw),this.charCodes=o(this.query_lw)}return u}(),i=/[ _\-:\/\\]/g,r=function(u,a){return a==null&&(a=i),u.replace(a,"")},f=function(u){var a,c,p,l;for(c="",p=0,l=u.length;p{(function(){var e,r,t,o,n;o=qe(),r=gr(),e=Dr(),t=function(i){return i.candidate},n=function(i,f){return f.score-i.score},eo.exports=function(i,f,s){var u,a,c,p,l,v,h,m,x,w,E,P,d;for(m=[],c=s.key,l=s.maxResults,p=s.maxInners,E=s.usePathScoring,x=p!=null&&p>0?p:i.length+1,u=c!=null,h=E?r:o,P=0,d=i.length;P0&&(m.push({candidate:a,score:v}),!--x))));P++);return m.sort(n),i=m.map(t),l!=null&&(i=i.slice(0,l)),i}}).call(Zt)});var to=Oe(wr=>{(function(){var e,r,t,o,n,i,f,s,u,a;a=qe(),t=a.isMatch,o=a.isWordStart,u=a.scoreConsecutives,s=a.scoreCharacter,f=a.scoreAcronyms,wr.match=n=function(c,p,l){var v,h,m,x,w,E;return v=l.allowErrors,w=l.preparedQuery,x=l.pathSeparator,v||t(c,w.core_lw,w.core_up)?(E=c.toLowerCase(),m=r(c,E,w),m.length===0||c.indexOf(x)>-1&&(h=e(c,E,w,x),m=i(m,h)),m):[]},wr.wrap=function(c,p,l){var v,h,m,x,w,E,P,d,b;if(l.wrap!=null&&(b=l.wrap,E=b.tagClass,d=b.tagOpen,P=b.tagClose),E==null&&(E="highlight"),d==null&&(d=''),P==null&&(P=""),c===p)return d+c+P;if(m=n(c,p,l),m.length===0)return c;for(x="",v=-1,w=0;++vw&&(x+=c.substring(w,h),w=h);++vw&&(x+=d,x+=c.substring(w,h),x+=P,w=h)}return w<=c.length-1&&(x+=c.substring(w)),x},e=function(c,p,l,v){var h,m,x;for(x=c.length-1;c[x]===v;)x--;if(h=c.lastIndexOf(v,x),h===-1)return[];for(m=l.depth;m-- >0;)if(h=c.lastIndexOf(v,h-1),h===-1)return[];return h++,x++,r(c.slice(h,x),p.slice(h,x),l,h)},i=function(c,p){var l,v,h,m,x,w,E;if(x=c.length,w=p.length,w===0)return c.slice();if(x===0)return p.slice();for(h=-1,m=0,v=p[m],E=[];++h0?b:u(c,p,C,$,y,g,ne),P=oe+s(y,g,ne,E,O)),fe=q[g],b=S[g],V>fe?U=m:(V=fe,U=w),P>V?(V=P,U=h):O=0,q[g]=V,S[g]=O,de[++H]=V>0?U:x;for(y=_-1,g=M-1,H=y*M+g,d=!0,F=[];d&&y>=0&&g>=0;)switch(de[H]){case w:y--,H-=M;break;case m:g--,H--;break;case h:F.push(y+v),g--,y--,H-=M+1;break;default:d=!1}return F.reverse(),F}}).call(wr)});var Qr=Oe((oo,no)=>{(function(){var e,r,t,o,n,i,f,s;t=ro(),o=to(),s=qe(),i=gr(),e=Dr(),f=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",no.exports={filter:function(u,a,c){return c==null&&(c={}),a!=null&&a.length&&(u!=null&&u.length)?(c=n(c,a),t(u,a,c)):[]},score:function(u,a,c){return c==null&&(c={}),u!=null&&u.length&&(a!=null&&a.length)?(c=n(c,a),c.usePathScoring?i.score(u,a,c):s.score(u,a,c)):0},match:function(u,a,c){var p,l,v;return c==null&&(c={}),u?a?u===a?function(){v=[];for(var h=0,m=u.length;0<=m?hm;0<=m?h++:h--)v.push(h);return v}.apply(this):(c=n(c,a),o.match(u,a,c)):[]:[]},wrap:function(u,a,c){return c==null&&(c={}),u?a?(c=n(c,a),o.wrap(u,a,c)):[]:[]},prepareQuery:function(u,a){return a==null&&(a={}),a=n(a,u),a.preparedQuery}},n=function(u,a){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=f&&f.query===a?f:f=new e(a,u)),u}}).call(oo)});/*! ***************************************************************************** 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 Ar=function(e,r){return Ar=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},Ar(e,r)};function $(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ar(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Br(e,r,t,o){function n(i){return i instanceof t?i:new t(function(u){u(i)})}return new(t||(t=Promise))(function(i,u){function s(c){try{a(o.next(c))}catch(p){u(p)}}function f(c){try{a(o.throw(c))}catch(p){u(p)}}function a(c){c.done?i(c.value):n(c.value).then(s,f)}a((o=o.apply(e,r||[])).next())})}function Ke(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(c){return f([a,c])}}function f(a){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,n=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[o++],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 o=t.call(e),n,i=[],u;try{for(;(r===void 0||r-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){u={error:s}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(u)throw u.error}}return i}function z(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,i;o1||s(l,v)})})}function s(l,v){try{f(o[l](v))}catch(h){p(i[0][3],h)}}function f(l){l.value instanceof ve?Promise.resolve(l.value.v).then(a,c):p(i[0][2],l)}function a(l){s("next",l)}function c(l){s("throw",l)}function p(l,v){l(v),i.shift(),i.length&&s(i[0][0],i[0][1])}}function et(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 Y=="function"?Y(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(u){return new Promise(function(s,f){u=e[i](u),n(s,f,u.done,u.value)})}}function n(i,u,s,f){Promise.resolve(f).then(function(a){i({value:a,done:s})},u)}}function T(e){return typeof e=="function"}function Ye(e){var r=function(o){Error.call(o),o.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 Ar=function(e,r){return Ar=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},Ar(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");Ar(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Br(e,r,t,o){function n(i){return i instanceof t?i:new t(function(f){f(i)})}return new(t||(t=Promise))(function(i,f){function s(c){try{a(o.next(c))}catch(p){f(p)}}function u(c){try{a(o.throw(c))}catch(p){f(p)}}function a(c){c.done?i(c.value):n(c.value).then(s,u)}a((o=o.apply(e,r||[])).next())})}function Ke(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,f;return f={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function s(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,n=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[o++],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 o=t.call(e),n,i=[],f;try{for(;(r===void 0||r-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){f={error:s}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(f)throw f.error}}return i}function z(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,i;o1||s(l,v)})})}function s(l,v){try{u(o[l](v))}catch(h){p(i[0][3],h)}}function u(l){l.value instanceof ve?Promise.resolve(l.value.v).then(a,c):p(i[0][2],l)}function a(l){s("next",l)}function c(l){s("throw",l)}function p(l,v){l(v),i.shift(),i.length&&s(i[0][0],i[0][1])}}function et(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 Y=="function"?Y(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(f){return new Promise(function(s,u){f=e[i](f),n(s,u,f.done,f.value)})}}function n(i,f,s,u){Promise.resolve(u).then(function(a){i({value:a,done:s})},f)}}function T(e){return typeof e=="function"}function Ye(e){var r=function(o){Error.call(o),o.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(o,n){return n+1+") "+o.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=t}});function ce(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,o,n,i;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var s=Y(u),f=s.next();!f.done;f=s.next()){var a=f.value;a.remove(this)}}catch(m){r={error:m}}finally{try{f&&!f.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}else u.remove(this);var c=this.initialTeardown;if(T(c))try{c()}catch(m){i=m instanceof Je?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var l=Y(p),v=l.next();!v.done;v=l.next()){var h=v.value;try{rt(h)}catch(m){i=i!=null?i:[],m instanceof Je?i=z(z([],W(i)),W(m.errors)):i.push(m)}}}catch(m){o={error:m}}finally{try{v&&!v.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}}if(i)throw new Je(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)rt(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)&&ce(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&ce(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Ir=ie.EMPTY;function Ge(e){return e instanceof ie||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function rt(e){T(e)?e():e.unsubscribe()}var te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var _e={setTimeout:function(e,r){for(var t=[],o=2;o0},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 o=this,n=this,i=n.hasError,u=n.isStopped,s=n.observers;return i||u?Ir:(this.currentObservers=null,s.push(t),new ie(function(){o.currentObservers=null,ce(s,t)}))},r.prototype._checkFinalizedStatuses=function(t){var o=this,n=o.hasError,i=o.thrownError,u=o.isStopped;n?t.error(i):u&&t.complete()},r.prototype.asObservable=function(){var t=new L;return t.source=this,t},r.create=function(t,o){return new ct(t,o)},r}(L);var ct=function(e){$(r,e);function r(t,o){var n=e.call(this)||this;return n.destination=t,n.source=o,n}return r.prototype.next=function(t){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,t)},r.prototype.error=function(t){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,t)},r.prototype.complete=function(){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||o===void 0||o.call(t)},r.prototype._subscribe=function(t){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(t))!==null&&n!==void 0?n:Ir},r}(X);var We={now:function(){return(We.delegate||Date).now()},delegate:void 0};var st=function(e){$(r,e);function r(t,o,n){t===void 0&&(t=1/0),o===void 0&&(o=1/0),n===void 0&&(n=We);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,o),i}return r.prototype.next=function(t){var o=this,n=o.isStopped,i=o._buffer,u=o._infiniteTimeWindow,s=o._timestampProvider,f=o._windowTime;n||(i.push(t),!u&&i.push(s.now()+f)),this._trimBuffer(),e.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(t),n=this,i=n._infiniteTimeWindow,u=n._buffer,s=u.slice(),f=0;f0?e.prototype.requestAsyncId.call(this,t,o,n):(t.actions.push(this),t._scheduled||(t._scheduled=Me.requestAnimationFrame(function(){return t.flush(void 0)})))},r.prototype.recycleAsyncId=function(t,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,o,n);var u=t.actions;o!=null&&((i=u[u.length-1])===null||i===void 0?void 0:i.id)!==o&&(Me.cancelAnimationFrame(o),t._scheduled=void 0)},r}(Ze);var ht=function(e){$(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(t){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n=this.actions,i;t=t||n.shift();do if(i=t.execute(t.state,t.delay))break;while((t=n[0])&&t.id===o&&n.shift());if(this._active=!1,i){for(;(t=n[0])&&t.id===o&&n.shift();)t.unsubscribe();throw i}},r}(er);var Rr=new ht(mt);var pe=new L(function(e){return e.complete()});function rr(e){return e&&T(e.schedule)}function Fr(e){return e[e.length-1]}function Ce(e){return T(Fr(e))?e.pop():void 0}function ae(e){return rr(Fr(e))?e.pop():void 0}function dt(e,r){return typeof Fr(e)=="number"?e.pop():r}var Le=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function tr(e){return T(e==null?void 0:e.then)}function or(e){return T(e[Ie])}function nr(e){return Symbol.asyncIterator&&T(e==null?void 0:e[Symbol.asyncIterator])}function ir(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 Mo(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ar=Mo();function ur(e){return T(e==null?void 0:e[ar])}function fr(e){return Zr(this,arguments,function(){var t,o,n,i;return Ke(this,function(u){switch(u.label){case 0:t=e.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,ve(t.read())];case 3:return o=u.sent(),n=o.value,i=o.done,i?[4,ve(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,ve(n)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function cr(e){return T(e==null?void 0:e.getReader)}function R(e){if(e instanceof L)return e;if(e!=null){if(or(e))return Co(e);if(Le(e))return Lo(e);if(tr(e))return Po(e);if(nr(e))return vt(e);if(ur(e))return Ro(e);if(cr(e))return Fo(e)}throw ir(e)}function Co(e){return new L(function(r){var t=e[Ie]();if(T(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Lo(e){return new L(function(r){for(var t=0;t0&&(c=new be({next:function(S){return b.next(S)},error:function(S){m=!0,x(),p=jr(w,n,S),b.error(S)},complete:function(){h=!0,x(),p=jr(w,u),b.complete()}}),R(P).subscribe(c))})(a)}}function jr(e,r){for(var t=[],o=2;o{let r=br();return typeof r!="undefined"?e.contains(r):!1}),he(e===br()),le())}function Vt(e){return{x:e.scrollLeft,y:e.scrollTop}}function $t(e){return N(K(e,"scroll"),K(window,"resize")).pipe(Hr(0,Rr),k(()=>Vt(e)),he(Vt(e)))}var Bo=new X,xp=Ve(()=>Z(new ResizeObserver(e=>{for(let r of e)Bo.next(r)}))).pipe(D(e=>N($e,Z(e)).pipe(Se(()=>e.disconnect()))),Ee(1));function jt(e){return{width:e.offsetWidth,height:e.offsetHeight}}function qt(e){return{width:e.scrollWidth,height:e.scrollHeight}}var Zo=new X,_p=Ve(()=>Z(new IntersectionObserver(e=>{for(let r of e)Zo.next(r)},{threshold:0}))).pipe(D(e=>N($e,Z(e)).pipe(Se(()=>e.disconnect()))),Ee(1));function Nt(e,r=16){return $t(e).pipe(k(({y:t})=>{let o=jt(e),n=qt(e);return t>=n.height-o.height-r}),le())}var kp={drawer:ee("[data-md-toggle=drawer]"),search:ee("[data-md-toggle=search]")};function Dt(){return new URL(location.href)}function Qt(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)Qt(e,t)}function re(e,r,...t){let o=document.createElement(e);if(r)for(let n of Object.keys(r))typeof r[n]!="undefined"&&(typeof r[n]!="boolean"?o.setAttribute(n,r[n]):o.setAttribute(n,""));for(let n of t)Qt(o,n);return o}function Kt(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function en(e,r={credentials:"same-origin"}){return B(fetch(`${e}`,r)).pipe(vr(()=>pe),D(t=>t.status!==200?kr(()=>new Error(t.statusText)):Z(t)))}function yr(e,r){return en(e,r).pipe(D(t=>t.json()),Ee(1))}(()=>{function e(o,n){parent.postMessage(o,n||"*")}function r(...o){return o.reduce((n,i)=>n.then(()=>new Promise(u=>{let s=document.createElement("script");s.src=i,s.onload=u,document.body.appendChild(s)})),Promise.resolve())}var t=class extends EventTarget{constructor(o){super(),this.url=o,this.m=i=>{i.source===this.w&&(this.dispatchEvent(new MessageEvent("message",{data:i.data})),this.onmessage&&this.onmessage(i))},this.e=(i,u,s,f,a)=>{if(u===`${this.url}`){let c=new ErrorEvent("error",{message:i,filename:u,lineno:s,colno:f,error:a});this.dispatchEvent(c),this.onerror&&this.onerror(c)}};let n=document.createElement("iframe");n.hidden=!0,document.body.appendChild(this.iframe=n),this.w.document.open(),this.w.document.write(` + {% endblock %} diff --git a/material/assets/javascripts/bundle.b062512d.min.js b/material/assets/javascripts/bundle.b062512d.min.js deleted file mode 100644 index e2b7f5aa2..000000000 --- a/material/assets/javascripts/bundle.b062512d.min.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict";(()=>{var xi=Object.create;var hr=Object.defineProperty;var yi=Object.getOwnPropertyDescriptor;var Ei=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,wi=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable;var Xr=(e,t,r)=>t in e?hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))br.call(t,r)&&Xr(e,r,t[r]);if(kt)for(var r of kt(t))Zr.call(t,r)&&Xr(e,r,t[r]);return e};var eo=(e,t)=>{var r={};for(var o in e)br.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&kt)for(var o of kt(e))t.indexOf(o)<0&&Zr.call(e,o)&&(r[o]=e[o]);return r};var vr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Si=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ei(t))!br.call(e,n)&&n!==r&&hr(e,n,{get:()=>t[n],enumerable:!(o=yi(t,n))||o.enumerable});return e};var Ht=(e,t,r)=>(r=e!=null?xi(wi(e)):{},Si(t||!e||!e.__esModule?hr(r,"default",{value:e,enumerable:!0}):r,e));var ro=vr((gr,to)=>{(function(e,t){typeof gr=="object"&&typeof to!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(gr,function(){"use strict";function e(r){var o=!0,n=!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(_){return!!(_&&_!==document&&_.nodeName!=="HTML"&&_.nodeName!=="BODY"&&"classList"in _&&"contains"in _.classList)}function p(_){var it=_.type,Ve=_.tagName;return!!(Ve==="INPUT"&&s[it]&&!_.readOnly||Ve==="TEXTAREA"&&!_.readOnly||_.isContentEditable)}function c(_){_.classList.contains("focus-visible")||(_.classList.add("focus-visible"),_.setAttribute("data-focus-visible-added",""))}function m(_){_.hasAttribute("data-focus-visible-added")&&(_.classList.remove("focus-visible"),_.removeAttribute("data-focus-visible-added"))}function l(_){_.metaKey||_.altKey||_.ctrlKey||(a(r.activeElement)&&c(r.activeElement),o=!0)}function u(_){o=!1}function d(_){a(_.target)&&(o||p(_.target))&&c(_.target)}function b(_){a(_.target)&&(_.target.classList.contains("focus-visible")||_.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),m(_.target))}function C(_){document.visibilityState==="hidden"&&(n&&(o=!0),ne())}function ne(){document.addEventListener("mousemove",Y),document.addEventListener("mousedown",Y),document.addEventListener("mouseup",Y),document.addEventListener("pointermove",Y),document.addEventListener("pointerdown",Y),document.addEventListener("pointerup",Y),document.addEventListener("touchmove",Y),document.addEventListener("touchstart",Y),document.addEventListener("touchend",Y)}function ce(){document.removeEventListener("mousemove",Y),document.removeEventListener("mousedown",Y),document.removeEventListener("mouseup",Y),document.removeEventListener("pointermove",Y),document.removeEventListener("pointerdown",Y),document.removeEventListener("pointerup",Y),document.removeEventListener("touchmove",Y),document.removeEventListener("touchstart",Y),document.removeEventListener("touchend",Y)}function Y(_){_.target.nodeName&&_.target.nodeName.toLowerCase()==="html"||(o=!1,ce())}document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",C,!0),ne(),r.addEventListener("focus",d,!0),r.addEventListener("blur",b,!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 Vr=vr((Mt,Ur)=>{/*! - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */(function(t,r){typeof Mt=="object"&&typeof Ur=="object"?Ur.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(o,n,i){"use strict";i.d(n,{default:function(){return gi}});var s=i(279),a=i.n(s),p=i(370),c=i.n(p),m=i(817),l=i.n(m);function u(j){try{return document.execCommand(j)}catch(S){return!1}}var d=function(S){var E=l()(S);return u("cut"),E},b=d;function C(j){var S=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[S?"right":"left"]="-9999px";var H=window.pageYOffset||document.documentElement.scrollTop;return E.style.top="".concat(H,"px"),E.setAttribute("readonly",""),E.value=j,E}var ne=function(S,E){var H=C(S);E.container.appendChild(H);var F=l()(H);return u("copy"),H.remove(),F},ce=function(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},H="";return typeof S=="string"?H=ne(S,E):S instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(S==null?void 0:S.type)?H=ne(S.value,E):(H=l()(S),u("copy")),H},Y=ce;function _(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(E){return typeof E}:_=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},_(j)}var it=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=S.action,H=E===void 0?"copy":E,F=S.container,z=S.target,_e=S.text;if(H!=="copy"&&H!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&_(z)==="object"&&z.nodeType===1){if(H==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(H==="cut"&&(z.hasAttribute("readonly")||z.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 Y(_e,{container:F});if(z)return H==="cut"?b(z):Y(z,{container:F})},Ve=it;function Fe(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(E){return typeof E}:Fe=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Fe(j)}function mi(j,S){if(!(j instanceof S))throw new TypeError("Cannot call a class as a function")}function Jr(j,S){for(var E=0;E0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof F.action=="function"?F.action:this.defaultAction,this.target=typeof F.target=="function"?F.target:this.defaultTarget,this.text=typeof F.text=="function"?F.text:this.defaultText,this.container=Fe(F.container)==="object"?F.container:document.body}},{key:"listenClick",value:function(F){var z=this;this.listener=c()(F,"click",function(_e){return z.onClick(_e)})}},{key:"onClick",value:function(F){var z=F.delegateTarget||F.currentTarget,_e=this.action(z)||"copy",Ct=Ve({action:_e,container:this.container,target:this.target(z),text:this.text(z)});this.emit(Ct?"success":"error",{action:_e,text:Ct,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(F){return dr("action",F)}},{key:"defaultTarget",value:function(F){var z=dr("target",F);if(z)return document.querySelector(z)}},{key:"defaultText",value:function(F){return dr("text",F)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(F){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return Y(F,z)}},{key:"cut",value:function(F){return b(F)}},{key:"isSupported",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof F=="string"?[F]:F,_e=!!document.queryCommandSupported;return z.forEach(function(Ct){_e=_e&&!!document.queryCommandSupported(Ct)}),_e}}]),E}(a()),gi=vi},828:function(o){var n=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,p){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(p))return a;a=a.parentNode}}o.exports=s},438:function(o,n,i){var s=i(828);function a(m,l,u,d,b){var C=c.apply(this,arguments);return m.addEventListener(u,C,b),{destroy:function(){m.removeEventListener(u,C,b)}}}function p(m,l,u,d,b){return typeof m.addEventListener=="function"?a.apply(null,arguments):typeof u=="function"?a.bind(null,document).apply(null,arguments):(typeof m=="string"&&(m=document.querySelectorAll(m)),Array.prototype.map.call(m,function(C){return a(C,l,u,d,b)}))}function c(m,l,u,d){return function(b){b.delegateTarget=s(b.target,l),b.delegateTarget&&d.call(m,b)}}o.exports=p},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.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||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(o,n,i){var s=i(879),a=i(438);function p(u,d,b){if(!u&&!d&&!b)throw new Error("Missing required arguments");if(!s.string(d))throw new TypeError("Second argument must be a String");if(!s.fn(b))throw new TypeError("Third argument must be a Function");if(s.node(u))return c(u,d,b);if(s.nodeList(u))return m(u,d,b);if(s.string(u))return l(u,d,b);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(u,d,b){return u.addEventListener(d,b),{destroy:function(){u.removeEventListener(d,b)}}}function m(u,d,b){return Array.prototype.forEach.call(u,function(C){C.addEventListener(d,b)}),{destroy:function(){Array.prototype.forEach.call(u,function(C){C.removeEventListener(d,b)})}}}function l(u,d,b){return a(document.body,u,d,b)}o.exports=p},817:function(o){function n(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 p=window.getSelection(),c=document.createRange();c.selectNodeContents(i),p.removeAllRanges(),p.addRange(c),s=p.toString()}return s}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,s,a){var p=this.e||(this.e={});return(p[i]||(p[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var p=this;function c(){p.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(),p=0,c=a.length;for(p;p{"use strict";/*! - * escape-html - * Copyright(c) 2012-2013 TJ Holowaychuk - * Copyright(c) 2015 Andreas Lubbe - * Copyright(c) 2015 Tiancheng "Timothy" Gu - * MIT Licensed - */var La=/["'&<>]/;Fn.exports=_a;function _a(e){var t=""+e,r=La.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function U(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i}function V(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o1||a(u,d)})})}function a(u,d){try{p(o[u](d))}catch(b){l(i[0][3],b)}}function p(u){u.value instanceof Xe?Promise.resolve(u.value.v).then(c,m):l(i[0][2],u)}function c(u){a("next",u)}function m(u){a("throw",u)}function l(u,d){u(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function io(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ye=="function"?ye(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(s){return new Promise(function(a,p){s=e[i](s),n(a,p,s.done,s.value)})}}function n(i,s,a,p){Promise.resolve(p).then(function(c){i({value:c,done:a})},s)}}function L(e){return typeof e=="function"}function at(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Rt=at(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: -`+r.map(function(o,n){return n+1+") "+o.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function De(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var je=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ye(s),p=a.next();!p.done;p=a.next()){var c=p.value;c.remove(this)}}catch(C){t={error:C}}finally{try{p&&!p.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var m=this.initialTeardown;if(L(m))try{m()}catch(C){i=C instanceof Rt?C.errors:[C]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=ye(l),d=u.next();!d.done;d=u.next()){var b=d.value;try{ao(b)}catch(C){i=i!=null?i:[],C instanceof Rt?i=V(V([],U(i)),U(C.errors)):i.push(C)}}}catch(C){o={error:C}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new Rt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ao(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&De(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&De(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var yr=je.EMPTY;function Pt(e){return e instanceof je||e&&"closed"in e&&L(e.remove)&&L(e.add)&&L(e.unsubscribe)}function ao(e){L(e)?e():e.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],o=2;o0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,s=n.isStopped,a=n.observers;return i||s?yr:(this.currentObservers=null,a.push(r),new je(function(){o.currentObservers=null,De(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,s=o.isStopped;n?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new W;return r.source=this,r},t.create=function(r,o){return new ho(r,o)},t}(W);var ho=function(e){oe(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:yr},t}(y);var xt={now:function(){return(xt.delegate||Date).now()},delegate:void 0};var yt=function(e){oe(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=xt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,s=o._infiniteTimeWindow,a=o._timestampProvider,p=o._windowTime;n||(i.push(r),!s&&i.push(a.now()+p)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),p=0;p0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=mt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var s=r.actions;o!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==o&&(mt.cancelAnimationFrame(o),r._scheduled=void 0)},t}(jt);var go=function(e){oe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t}(Wt);var we=new go(vo);var k=new W(function(e){return e.complete()});function Ut(e){return e&&L(e.schedule)}function Lr(e){return e[e.length-1]}function Ke(e){return L(Lr(e))?e.pop():void 0}function Se(e){return Ut(Lr(e))?e.pop():void 0}function Vt(e,t){return typeof Lr(e)=="number"?e.pop():t}var ft=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Dt(e){return L(e==null?void 0:e.then)}function Nt(e){return L(e[pt])}function zt(e){return Symbol.asyncIterator&&L(e==null?void 0:e[Symbol.asyncIterator])}function qt(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 Hi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Kt=Hi();function Qt(e){return L(e==null?void 0:e[Kt])}function Yt(e){return no(this,arguments,function(){var r,o,n,i;return $t(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Xe(r.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,Xe(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Xe(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Bt(e){return L(e==null?void 0:e.getReader)}function P(e){if(e instanceof W)return e;if(e!=null){if(Nt(e))return $i(e);if(ft(e))return Ri(e);if(Dt(e))return Pi(e);if(zt(e))return xo(e);if(Qt(e))return Ii(e);if(Bt(e))return Fi(e)}throw qt(e)}function $i(e){return new W(function(t){var r=e[pt]();if(L(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ri(e){return new W(function(t){for(var r=0;r=2;return function(o){return o.pipe(e?T(function(n,i){return e(n,i,o)}):de,Oe(1),r?Re(t):Io(function(){return new Jt}))}}function Fo(){for(var e=[],t=0;t=2,!0))}function me(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new y}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,p=a===void 0?!0:a;return function(c){var m,l,u,d=0,b=!1,C=!1,ne=function(){l==null||l.unsubscribe(),l=void 0},ce=function(){ne(),m=u=void 0,b=C=!1},Y=function(){var _=m;ce(),_==null||_.unsubscribe()};return v(function(_,it){d++,!C&&!b&&ne();var Ve=u=u!=null?u:r();it.add(function(){d--,d===0&&!C&&!b&&(l=$r(Y,p))}),Ve.subscribe(it),!m&&d>0&&(m=new et({next:function(Fe){return Ve.next(Fe)},error:function(Fe){C=!0,ne(),l=$r(ce,n,Fe),Ve.error(Fe)},complete:function(){b=!0,ne(),l=$r(ce,s),Ve.complete()}}),P(_).subscribe(m))})(c)}}function $r(e,t){for(var r=[],o=2;oe.next(document)),e}function q(e,t=document){return Array.from(t.querySelectorAll(e))}function D(e,t=document){let r=se(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function se(e,t=document){return t.querySelector(e)||void 0}function Me(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function er(e){return M(h(document.body,"focusin"),h(document.body,"focusout")).pipe($e(1),f(()=>{let t=Me();return typeof t!="undefined"?e.contains(t):!1}),N(e===Me()),B())}function Ge(e){return{x:e.offsetLeft,y:e.offsetTop}}function Vo(e){return M(h(window,"load"),h(window,"resize")).pipe(ke(0,we),f(()=>Ge(e)),N(Ge(e)))}function tr(e){return{x:e.scrollLeft,y:e.scrollTop}}function dt(e){return M(h(e,"scroll"),h(window,"resize")).pipe(ke(0,we),f(()=>tr(e)),N(tr(e)))}var Do=new y,ta=I(()=>$(new ResizeObserver(e=>{for(let t of e)Do.next(t)}))).pipe(x(e=>M(Te,$(e)).pipe(A(()=>e.disconnect()))),G(1));function he(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){return ta.pipe(w(t=>t.observe(e)),x(t=>Do.pipe(T(({target:r})=>r===e),A(()=>t.unobserve(e)),f(()=>he(e)))),N(he(e)))}function ht(e){return{width:e.scrollWidth,height:e.scrollHeight}}function rr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var No=new y,ra=I(()=>$(new IntersectionObserver(e=>{for(let t of e)No.next(t)},{threshold:0}))).pipe(x(e=>M(Te,$(e)).pipe(A(()=>e.disconnect()))),G(1));function or(e){return ra.pipe(w(t=>t.observe(e)),x(t=>No.pipe(T(({target:r})=>r===e),A(()=>t.unobserve(e)),f(({isIntersecting:r})=>r))))}function zo(e,t=16){return dt(e).pipe(f(({y:r})=>{let o=he(e),n=ht(e);return r>=n.height-o.height-t}),B())}var nr={drawer:D("[data-md-toggle=drawer]"),search:D("[data-md-toggle=search]")};function qo(e){return nr[e].checked}function qe(e,t){nr[e].checked!==t&&nr[e].click()}function We(e){let t=nr[e];return h(t,"change").pipe(f(()=>t.checked),N(t.checked))}function oa(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function na(){return M(h(window,"compositionstart").pipe(f(()=>!0)),h(window,"compositionend").pipe(f(()=>!1))).pipe(N(!1))}function Ko(){let e=h(window,"keydown").pipe(T(t=>!(t.metaKey||t.ctrlKey)),f(t=>({mode:qo("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),T(({mode:t,type:r})=>{if(t==="global"){let o=Me();if(typeof o!="undefined")return!oa(o,r)}return!0}),me());return na().pipe(x(t=>t?k:e))}function Le(){return new URL(location.href)}function ot(e){location.href=e.href}function Qo(){return new y}function Yo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Yo(e,r)}function O(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)Yo(o,n);return o}function ir(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Bo(){return location.hash.substring(1)}function Go(e){let t=O("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function ia(){return h(window,"hashchange").pipe(f(Bo),N(Bo()),T(e=>e.length>0),G(1))}function Jo(){return ia().pipe(f(e=>se(`[id="${e}"]`)),T(e=>typeof e!="undefined"))}function jr(e){let t=matchMedia(e);return Xt(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function Xo(){let e=matchMedia("print");return M(h(window,"beforeprint").pipe(f(()=>!0)),h(window,"afterprint").pipe(f(()=>!1))).pipe(N(e.matches))}function Wr(e,t){return e.pipe(x(r=>r?t():k))}function ar(e,t={credentials:"same-origin"}){return fe(fetch(`${e}`,t)).pipe(pe(()=>k),x(r=>r.status!==200?wt(()=>new Error(r.statusText)):$(r)))}function Ue(e,t){return ar(e,t).pipe(x(r=>r.json()),G(1))}function Zo(e,t){let r=new DOMParser;return ar(e,t).pipe(x(o=>o.text()),f(o=>r.parseFromString(o,"text/xml")),G(1))}function sr(e){let t=O("script",{src:e});return I(()=>(document.head.appendChild(t),M(h(t,"load"),h(t,"error").pipe(x(()=>wt(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(f(()=>{}),A(()=>document.head.removeChild(t)),Oe(1))))}function en(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function tn(){return M(h(window,"scroll",{passive:!0}),h(window,"resize",{passive:!0})).pipe(f(en),N(en()))}function rn(){return{width:innerWidth,height:innerHeight}}function on(){return h(window,"resize",{passive:!0}).pipe(f(rn),N(rn()))}function nn(){return K([tn(),on()]).pipe(f(([e,t])=>({offset:e,size:t})),G(1))}function cr(e,{viewport$:t,header$:r}){let o=t.pipe(J("size")),n=K([o,r]).pipe(f(()=>Ge(e)));return K([r,t,n]).pipe(f(([{height:i},{offset:s,size:a},{x:p,y:c}])=>({offset:{x:s.x-p,y:s.y-c+i},size:a})))}(()=>{function e(o,n){parent.postMessage(o,n||"*")}function t(...o){return o.reduce((n,i)=>n.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(o){super(),this.url=o,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,p,c)=>{if(s===`${this.url}`){let m=new ErrorEvent("error",{message:i,filename:s,lineno:a,colno:p,error:c});this.dispatchEvent(m),this.onerror&&this.onerror(m)}};let n=document.createElement("iframe");n.hidden=!0,document.body.appendChild(this.iframe=n),this.w.document.open(),this.w.document.write(` {% endblock %} {% block scripts %} - + {% for path in config.extra_javascript %} {% endfor %} diff --git a/material/plugins/offline/plugin.py b/material/plugins/offline/plugin.py index 799f6187f..4d0f18edc 100644 --- a/material/plugins/offline/plugin.py +++ b/material/plugins/offline/plugin.py @@ -46,6 +46,12 @@ class OfflinePlugin(BasePlugin[OfflinePluginConfig]): # Ensure correct resolution of links config.use_directory_urls = False + # Append iframe-worker to polyfills/shims + config.extra.polyfills = config.extra.get("polyfills", []) + if not any("iframe-worker" in url for url in config.extra.polyfills): + worker = "https://unpkg.com/iframe-worker/shim" + config.extra.polyfills.append(worker) + # Support offline search (run latest) @event_priority(-100) def on_post_build(self, *, config): diff --git a/src/assets/javascripts/browser/worker/index.ts b/src/assets/javascripts/browser/worker/index.ts index c61101e98..12e4e63b0 100644 --- a/src/assets/javascripts/browser/worker/index.ts +++ b/src/assets/javascripts/browser/worker/index.ts @@ -20,7 +20,6 @@ * IN THE SOFTWARE. */ -import "iframe-worker/shim" import { Observable, Subject, diff --git a/src/plugins/offline/plugin.py b/src/plugins/offline/plugin.py index 799f6187f..4d0f18edc 100644 --- a/src/plugins/offline/plugin.py +++ b/src/plugins/offline/plugin.py @@ -46,6 +46,12 @@ class OfflinePlugin(BasePlugin[OfflinePluginConfig]): # Ensure correct resolution of links config.use_directory_urls = False + # Append iframe-worker to polyfills/shims + config.extra.polyfills = config.extra.get("polyfills", []) + if not any("iframe-worker" in url for url in config.extra.polyfills): + worker = "https://unpkg.com/iframe-worker/shim" + config.extra.polyfills.append(worker) + # Support offline search (run latest) @event_priority(-100) def on_post_build(self, *, config):