mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
19 lines
51 KiB
JavaScript
19 lines
51 KiB
JavaScript
(()=>{var qn=Object.create;var Ge=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var $n=Object.getOwnPropertyNames,Br=Object.getOwnPropertySymbols,Dn=Object.getPrototypeOf,Xr=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable;var Zr=(e,r,n)=>r in e?Ge(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ye=(e,r)=>{for(var n in r||(r={}))Xr.call(r,n)&&Zr(e,n,r[n]);if(Br)for(var n of Br(r))Qn.call(r,n)&&Zr(e,n,r[n]);return e};var Kn=e=>Ge(e,"__esModule",{value:!0});var be=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Jn=(e,r,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of $n(r))!Xr.call(e,t)&&t!=="default"&&Ge(e,t,{get:()=>r[t],enumerable:!(n=Nn(r,t))||n.enumerable});return e},Cr=e=>Jn(Kn(Ge(e!=null?qn(Dn(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var gt=be((Co,Ze)=>{/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
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 et,rt,tt,nt,ot,it,at,st,lt,Be,Fr,ut,ct,ft,_e,pt,mt,dt,ht,vt,bt,xt,yt,Xe;(function(e){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(t){e(n(r,n(t)))}):typeof Ze=="object"&&typeof Ze.exports=="object"?e(n(r,n(Ze.exports))):e(n(r));function n(t,o){return t!==r&&(typeof Object.create=="function"?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(i,s){return t[i]=o?o(i,s):s}}})(function(e){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])};et=function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function i(){this.constructor=t}t.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},rt=Object.assign||function(t){for(var o,i=1,s=arguments.length;i<s;i++){o=arguments[i];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])}return t},tt=function(t,o){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&o.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(t);l<s.length;l++)o.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(t,s[l])&&(i[s[l]]=t[s[l]]);return i},nt=function(t,o,i,s){var l=arguments.length,a=l<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,i):s,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,o,i,s);else for(var c=t.length-1;c>=0;c--)(u=t[c])&&(a=(l<3?u(a):l>3?u(o,i,a):u(o,i))||a);return l>3&&a&&Object.defineProperty(o,i,a),a},ot=function(t,o){return function(i,s){o(i,s,t)}},it=function(t,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,o)},at=function(t,o,i,s){function l(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function c(d){try{f(s.next(d))}catch(h){u(h)}}function p(d){try{f(s.throw(d))}catch(h){u(h)}}function f(d){d.done?a(d.value):l(d.value).then(c,p)}f((s=s.apply(t,o||[])).next())})},st=function(t,o){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,l,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(f){return function(d){return p([f,d])}}function p(f){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,l&&(a=f[0]&2?l.return:f[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,f[1])).done)return a;switch(l=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,l=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){i.label=f[1];break}if(f[0]===6&&i.label<a[1]){i.label=a[1],a=f;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(f);break}a[2]&&i.ops.pop(),i.trys.pop();continue}f=o.call(t,i)}catch(d){f=[6,d],l=0}finally{s=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},lt=function(t,o){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&Xe(o,t,i)},Xe=Object.create?function(t,o,i,s){s===void 0&&(s=i),Object.defineProperty(t,s,{enumerable:!0,get:function(){return o[i]}})}:function(t,o,i,s){s===void 0&&(s=i),t[s]=o[i]},Be=function(t){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&t[o],s=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&s>=t.length&&(t=void 0),{value:t&&t[s++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Fr=function(t,o){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var s=i.call(t),l,a=[],u;try{for(;(o===void 0||o-- >0)&&!(l=s.next()).done;)a.push(l.value)}catch(c){u={error:c}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return a},ut=function(){for(var t=[],o=0;o<arguments.length;o++)t=t.concat(Fr(arguments[o]));return t},ct=function(){for(var t=0,o=0,i=arguments.length;o<i;o++)t+=arguments[o].length;for(var s=Array(t),l=0,o=0;o<i;o++)for(var a=arguments[o],u=0,c=a.length;u<c;u++,l++)s[l]=a[u];return s},ft=function(t,o){for(var i=0,s=o.length,l=t.length;i<s;i++,l++)t[l]=o[i];return t},_e=function(t){return this instanceof _e?(this.v=t,this):new _e(t)},pt=function(t,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(t,o||[]),l,a=[];return l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l;function u(m){s[m]&&(l[m]=function(b){return new Promise(function(S,E){a.push([m,b,S,E])>1||c(m,b)})})}function c(m,b){try{p(s[m](b))}catch(S){h(a[0][3],S)}}function p(m){m.value instanceof _e?Promise.resolve(m.value.v).then(f,d):h(a[0][2],m)}function f(m){c("next",m)}function d(m){c("throw",m)}function h(m,b){m(b),a.shift(),a.length&&c(a[0][0],a[0][1])}},mt=function(t){var o,i;return o={},s("next"),s("throw",function(l){throw l}),s("return"),o[Symbol.iterator]=function(){return this},o;function s(l,a){o[l]=t[l]?function(u){return(i=!i)?{value:_e(t[l](u)),done:l==="return"}:a?a(u):u}:a}},dt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=t[Symbol.asyncIterator],i;return o?o.call(t):(t=typeof Be=="function"?Be(t):t[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(a){i[a]=t[a]&&function(u){return new Promise(function(c,p){u=t[a](u),l(c,p,u.done,u.value)})}}function l(a,u,c,p){Promise.resolve(p).then(function(f){a({value:f,done:c})},u)}},ht=function(t,o){return Object.defineProperty?Object.defineProperty(t,"raw",{value:o}):t.raw=o,t};var n=Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o};vt=function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var i in t)i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)&&Xe(o,t,i);return n(o,t),o},bt=function(t){return t&&t.__esModule?t:{default:t}},xt=function(t,o){if(!o.has(t))throw new TypeError("attempted to get private field on non-instance");return o.get(t)},yt=function(t,o,i){if(!o.has(t))throw new TypeError("attempted to set private field on non-instance");return o.set(t,i),i},e("__extends",et),e("__assign",rt),e("__rest",tt),e("__decorate",nt),e("__param",ot),e("__metadata",it),e("__awaiter",at),e("__generator",st),e("__exportStar",lt),e("__createBinding",Xe),e("__values",Be),e("__read",Fr),e("__spread",ut),e("__spreadArrays",ct),e("__spreadArray",ft),e("__await",_e),e("__asyncGenerator",pt),e("__asyncDelegator",mt),e("__asyncValues",dt),e("__makeTemplateObject",ht),e("__importStar",vt),e("__importDefault",bt),e("__classPrivateFieldGet",xt),e("__classPrivateFieldSet",yt)})});var Qe=be(Y=>{(function(){var e,r,n,t,o,i,s,l,a,u,c,p,f,d,h,m,b,S,E,C;C=150,u=20,E=150,a=.75,Y.score=function(v,x,w){var _,y,g,O;return y=w.preparedQuery,_=w.allowErrors,_||o(v,y.core_lw,y.core_up)?(O=v.toLowerCase(),g=r(v,O,y),Math.ceil(g)):0},Y.isMatch=o=function(v,x,w){var _,y,g,O,P,R,L;if(g=v.length,O=x.length,!g||O>g)return!1;for(_=-1,y=-1;++y<O;){for(P=x.charCodeAt(y),R=w.charCodeAt(y);++_<g&&(L=v.charCodeAt(_),!(L===P||L===R)););if(_===g)return!1}return!0},Y.computeScore=r=function(v,x,w){var _,y,g,O,P,R,L,H,M,q,U,oe,N,le,me,ie,ve,ue,Ar,Ee,Je,Mr,Lr,Ir;if(me=w.query,ie=w.query_lw,q=v.length,N=me.length,_=c(v,x,me,ie),y=_.score,_.count===N)return d(N,q,y,_.pos);if(le=x.indexOf(ie),le>-1)return h(v,x,me,ie,le,N,q);for(Ee=new Array(N),P=new Array(N),Ir=S(N,q),U=Math.ceil(a*N)+5,oe=U,L=!0,M=-1;++M<N;)Ee[M]=0,P[M]=0;for(H=-1;++H<q;){if(Mr=x[H],!Mr.charCodeAt(0)in w.charCodes){if(L){for(M=-1;++M<N;)P[M]=0;L=!1}continue}for(ue=0,Ar=0,O=0,ve=!0,L=!0,M=-1;++M<N;){if(Je=Ee[M],Je>ue&&(ue=Je),R=0,ie[M]===Mr)if(Lr=l(H,v,x),R=O>0?O:f(v,x,me,ie,H,M,Lr),g=Ar+p(H,M,Lr,y,R),g>ue)ue=g,oe=U;else{if(ve&&--oe<=0)return Math.max(ue,Ee[N-1])*Ir;ve=!1}Ar=Je,O=P[M],P[M]=R,Ee[M]=ue}}return ue=Ee[N-1],ue*Ir},Y.isWordStart=l=function(v,x,w){var _,y;return v===0?!0:(_=x[v],y=x[v-1],i(y)||_!==w[v]&&y===w[v-1])},Y.isWordEnd=s=function(v,x,w,_){var y,g;return v===_-1?!0:(y=x[v],g=x[v+1],i(g)||y===w[v]&&g!==w[v+1])},i=function(v){return v===" "||v==="."||v==="-"||v==="_"||v==="/"||v==="\\"},b=function(v){var x;return v<u?(x=u-v,100+x*x):Math.max(100+u-v,0)},Y.scoreSize=S=function(v,x){return E/(E+Math.abs(x-v))},d=function(v,x,w,_){return 2*v*(C*w+b(_))*S(v,x)},Y.scorePattern=m=function(v,x,w,_,y){var g,O;return O=v,g=6,w===v&&(g+=2),_&&(g+=3),y&&(g+=1),v===x&&(_&&(w===x?O+=2:O+=1),y&&(g+=1)),w+O*(O+g)},Y.scoreCharacter=p=function(v,x,w,_,y){var g;return g=b(v),w?g+C*((_>y?_:y)+10):g+C*y},Y.scoreConsecutives=f=function(v,x,w,_,y,g,O){var P,R,L,H,M,q,U;for(R=v.length,H=w.length,L=R-y,M=H-g,P=L<M?L:M,q=0,U=0,w[g]===v[y]&&q++;++U<P&&_[++g]===x[++y];)w[g]===v[y]&&q++;return U<P&&y--,U===1?1+2*q:m(U,H,q,O,s(y,v,x,R))},Y.scoreExactMatch=h=function(v,x,w,_,y,g,O){var P,R,L,H,M;for(M=l(y,v,x),M||(L=x.indexOf(_,y+1),L>-1&&(M=l(L,v,x),M&&(y=L))),R=-1,H=0;++R<g;)w[y+R]===v[R]&&H++;return P=s(y+g-1,v,x,O),d(g,O,m(g,g,H,M,P),y)},e=function(){function v(x,w,_){this.score=x,this.pos=w,this.count=_}return v}(),n=new e(0,.1,0),Y.scoreAcronyms=c=function(v,x,w,_){var y,g,O,P,R,L,H,M,q,U,oe;if(R=v.length,L=w.length,!(R>1&&L>1))return n;for(y=0,U=0,oe=0,M=0,O=-1,P=-1;++P<L;){if(H=_[P],i(H))if(O=x.indexOf(H,O+1),O>-1){U++;continue}else break;for(;++O<R;)if(H===x[O]&&l(O,v,x)){w[P]===v[O]&&M++,oe+=O,y++;break}if(O===R)break}return y<2?n:(g=y===L?t(v,x,w,y):!1,q=m(y,L,M,!0,g),new e(q,oe/y,y+U))},t=function(v,x,w,_){var y,g,O,P;if(O=v.length,P=w.length,y=0,O>12*P)return!1;for(g=-1;++g<O;)if(l(g,v,x)&&++y>_)return!1;return!0}}).call(Y)});var Tr=be(Ke=>{(function(){var e,r,n,t,o,i,s,l,a,u;u=Qe(),i=u.isMatch,e=u.computeScore,l=u.scoreSize,a=20,n=2.5,Ke.score=function(c,p,f){var d,h,m,b;return h=f.preparedQuery,d=f.allowErrors,d||i(c,h.core_lw,h.core_up)?(b=c.toLowerCase(),m=e(c,b,h),m=s(c,b,m,f),Math.ceil(m)):0},s=function(c,p,f,d){var h,m,b,S,E,C,v,x,w,_;if(f===0)return 0;for(w=d.preparedQuery,_=d.useExtensionBonus,x=d.pathSeparator,E=c.length-1;c[E]===x;)E--;if(b=c.lastIndexOf(x,E),v=E-b,C=1,_&&(C+=o(p,w.ext,b,E,2),f*=C),b===-1)return f;for(S=w.depth;b>-1&&S-- >0;)b=c.lastIndexOf(x,b-1);return m=b===-1?f:C*e(c.slice(b+1,E+1),p.slice(b+1,E+1),w),h=.5*a/(a+r(c,E+1,x)),h*m+(1-h)*f*l(0,n*v)},Ke.countDir=r=function(c,p,f){var d,h;if(p<1)return 0;for(d=0,h=-1;++h<p&&c[h]===f;);for(;++h<p;)if(c[h]===f)for(d++;++h<p&&c[h]===f;);return d},Ke.getExtension=t=function(c){var p;return p=c.lastIndexOf("."),p<0?"":c.substr(p+1)},o=function(c,p,f,d,h){var m,b,S,E;if(!p.length||(E=c.lastIndexOf(".",d),!(E>f)))return 0;for(S=p.length,m=d-E,m<S&&(S=m,m=p.length),E++,b=-1;++b<S&&c[E+b]===p[b];);return b===0&&h>0?.9*o(c,p,f,E-2,h-1):b/m}}).call(Ke)});var Gr=be((Sn,wn)=>{(function(){var e,r,n,t,o,i,s,l;l=Tr(),n=l.countDir,o=l.getExtension,wn.exports=e=function(){function a(u,c){var p,f,d;if(d=c!=null?c:{},p=d.optCharRegEx,f=d.pathSeparator,!(u&&u.length))return null;this.query=u,this.query_lw=u.toLowerCase(),this.core=r(u,p),this.core_lw=this.core.toLowerCase(),this.core_up=s(this.core),this.depth=n(u,u.length,f),this.ext=o(this.query_lw),this.charCodes=t(this.query_lw)}return a}(),i=/[ _\-:\/\\]/g,r=function(a,u){return u==null&&(u=i),a.replace(u,"")},s=function(a){var u,c,p,f;for(c="",p=0,f=a.length;p<f;p++)u=a[p],c+=u.toUpperCase()[0];return c},t=function(a){var u,c,p;for(p=a.length,c=-1,u=[];++c<p;)u[a.charCodeAt(c)]=!0;return u}}).call(Sn)});var Tn=be((En,_n)=>{(function(){var e,r,n,t,o;t=Qe(),r=Tr(),e=Gr(),n=function(i){return i.candidate},o=function(i,s){return s.score-i.score},_n.exports=function(i,s,l){var a,u,c,p,f,d,h,m,b,S,E,C,v;for(m=[],c=l.key,f=l.maxResults,p=l.maxInners,E=l.usePathScoring,b=p!=null&&p>0?p:i.length+1,a=c!=null,h=E?r:t,C=0,v=i.length;C<v&&(u=i[C],S=a?u[c]:u,!(!!S&&(d=h.score(S,s,l),d>0&&(m.push({candidate:u,score:d}),!--b))));C++);return m.sort(o),i=m.map(n),f!=null&&(i=i.slice(0,f)),i}}).call(En)});var On=be(Or=>{(function(){var e,r,n,t,o,i,s,l,a,u;u=Qe(),n=u.isMatch,t=u.isWordStart,a=u.scoreConsecutives,l=u.scoreCharacter,s=u.scoreAcronyms,Or.match=o=function(c,p,f){var d,h,m,b,S,E;return d=f.allowErrors,S=f.preparedQuery,b=f.pathSeparator,d||n(c,S.core_lw,S.core_up)?(E=c.toLowerCase(),m=r(c,E,S),m.length===0||c.indexOf(b)>-1&&(h=e(c,E,S,b),m=i(m,h)),m):[]},Or.wrap=function(c,p,f){var d,h,m,b,S,E,C,v,x;if(f.wrap!=null&&(x=f.wrap,E=x.tagClass,v=x.tagOpen,C=x.tagClose),E==null&&(E="highlight"),v==null&&(v='<strong class="'+E+'">'),C==null&&(C="</strong>"),c===p)return v+c+C;if(m=o(c,p,f),m.length===0)return c;for(b="",d=-1,S=0;++d<m.length;){for(h=m[d],h>S&&(b+=c.substring(S,h),S=h);++d<m.length;)if(m[d]===h+1)h++;else{d--;break}h++,h>S&&(b+=v,b+=c.substring(S,h),b+=C,S=h)}return S<=c.length-1&&(b+=c.substring(S)),b},e=function(c,p,f,d){var h,m,b;for(b=c.length-1;c[b]===d;)b--;if(h=c.lastIndexOf(d,b),h===-1)return[];for(m=f.depth;m-- >0;)if(h=c.lastIndexOf(d,h-1),h===-1)return[];return h++,b++,r(c.slice(h,b),p.slice(h,b),f,h)},i=function(c,p){var f,d,h,m,b,S,E;if(b=c.length,S=p.length,S===0)return c.slice();if(b===0)return p.slice();for(h=-1,m=0,d=p[m],E=[];++h<b;){for(f=c[h];d<=f&&++m<S;)d<f&&E.push(d),d=p[m];E.push(f)}for(;m<S;)E.push(p[m++]);return E},r=function(c,p,f,d){var h,m,b,S,E,C,v,x,w,_,y,g,O,P,R,L,H,M,q,U,oe,N,le,me,ie,ve;for(d==null&&(d=0),M=f.query,q=f.query_lw,O=c.length,L=M.length,E=s(c,p,M,q).score,N=new Array(L),w=new Array(L),b=0,S=1,m=2,h=3,ve=new Array(O*L),H=-1,g=-1;++g<L;)N[g]=0,w[g]=0;for(y=-1;++y<O;)for(U=0,le=0,x=0,me=p[y],g=-1;++g<L;)_=0,C=0,oe=le,q[g]===me&&(ie=t(y,c,p),_=x>0?x:a(c,p,M,q,y,g,ie),C=oe+l(y,g,ie,E,_)),le=N[g],x=w[g],U>le?R=m:(U=le,R=S),C>U?(U=C,R=h):_=0,N[g]=U,w[g]=_,ve[++H]=U>0?R:b;for(y=O-1,g=L-1,H=y*L+g,v=!0,P=[];v&&y>=0&&g>=0;)switch(ve[H]){case S:y--,H-=L;break;case m:g--,H--;break;case h:P.push(y+d),g--,y--,H-=L+1;break;default:v=!1}return P.reverse(),P}}).call(Or)});var Yr=be((An,Mn)=>{(function(){var e,r,n,t,o,i,s,l;n=Tn(),t=On(),l=Qe(),i=Tr(),e=Gr(),s=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",Mn.exports={filter:function(a,u,c){return c==null&&(c={}),(u!=null?u.length:void 0)&&(a!=null?a.length:void 0)?(c=o(c,u),n(a,u,c)):[]},score:function(a,u,c){return c==null&&(c={}),(a!=null?a.length:void 0)&&(u!=null?u.length:void 0)?(c=o(c,u),c.usePathScoring?i.score(a,u,c):l.score(a,u,c)):0},match:function(a,u,c){var p,f,d;return c==null&&(c={}),a?u?a===u?function(){d=[];for(var h=0,m=a.length;0<=m?h<m:h>m;0<=m?h++:h--)d.push(h);return d}.apply(this):(c=o(c,u),t.match(a,u,c)):[]:[]},wrap:function(a,u,c){return c==null&&(c={}),a?u?(c=o(c,u),t.wrap(a,u,c)):[]:[]},prepareQuery:function(a,u){return u==null&&(u={}),u=o(u,a),u.preparedQuery}},o=function(a,u){return a.allowErrors==null&&(a.allowErrors=!1),a.usePathScoring==null&&(a.usePathScoring=!0),a.useExtensionBonus==null&&(a.useExtensionBonus=!1),a.pathSeparator==null&&(a.pathSeparator=r),a.optCharRegEx==null&&(a.optCharRegEx=null),a.wrap==null&&(a.wrap=null),a.preparedQuery==null&&(a.preparedQuery=s&&s.query===u?s:s=new e(u,a)),a}}).call(An)});var St=Cr(gt()),{__extends:V,__assign:Fo,__rest:Po,__decorate:Ho,__param:ko,__metadata:Ro,__awaiter:wt,__generator:er,__exportStar:jo,__createBinding:Wo,__values:Z,__read:k,__spread:zo,__spreadArrays:Uo,__spreadArray:W,__await:rr,__asyncGenerator:Et,__asyncDelegator:Vo,__asyncValues:_t,__makeTemplateObject:qo,__importStar:No,__importDefault:$o,__classPrivateFieldGet:Do,__classPrivateFieldSet:Qo}=St.default;function T(e){return typeof e=="function"}function tr(e){var r=function(t){Error.call(t),t.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var nr=tr(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
`+n.map(function(t,o){return o+1+") "+t.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=n}});function ce(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var ae=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var r,n,t,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=Z(s),a=l.next();!a.done;a=l.next()){var u=a.value;u.remove(this)}}catch(m){r={error:m}}finally{try{a&&!a.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}else s.remove(this);var c=this.initialTeardown;if(T(c))try{c()}catch(m){i=m instanceof nr?m.errors:[m]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var f=Z(p),d=f.next();!d.done;d=f.next()){var h=d.value;try{Tt(h)}catch(m){i=i!=null?i:[],m instanceof nr?i=W(W([],k(i)),k(m.errors)):i.push(m)}}}catch(m){t={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(t)throw t.error}}}if(i)throw new nr(i)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Tt(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=(n=this._teardowns)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&ce(n,r)},e.prototype.remove=function(r){var n=this._teardowns;n&&ce(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Pr=ae.EMPTY;function or(e){return e instanceof ae||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function Tt(e){T(e)?e():e.unsubscribe()}var ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Te={setTimeout:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Te.delegate;return((n==null?void 0:n.setTimeout)||setTimeout).apply(void 0,W([],k(e)))},clearTimeout:function(e){var r=Te.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ir(e){Te.setTimeout(function(){var r=ee.onUnhandledError;if(r)r(e);else throw e})}function re(){}var Ot=function(){return Hr("C",void 0,void 0)}();function At(e){return Hr("E",void 0,e)}function Mt(e){return Hr("N",e,void 0)}function Hr(e,r,n){return{kind:e,value:r,error:n}}var xe=null;function Oe(e){if(ee.useDeprecatedSynchronousErrorHandling){var r=!xe;if(r&&(xe={errorThrown:!1,error:null}),e(),r){var n=xe,t=n.errorThrown,o=n.error;if(xe=null,t)throw o}}else e()}function Lt(e){ee.useDeprecatedSynchronousErrorHandling&&xe&&(xe.errorThrown=!0,xe.error=e)}var Re=function(e){V(r,e);function r(n){var t=e.call(this)||this;return t.isStopped=!1,n?(t.destination=n,or(n)&&n.add(t)):t.destination=Gn,t}return r.create=function(n,t,o){return new je(n,t,o)},r.prototype.next=function(n){this.isStopped?Rr(Mt(n),this):this._next(n)},r.prototype.error=function(n){this.isStopped?Rr(At(n),this):(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped?Rr(Ot,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(ae);var je=function(e){V(r,e);function r(n,t,o){var i=e.call(this)||this,s;if(T(n))s=n;else if(n){s=n.next,t=n.error,o=n.complete;var l;i&&ee.useDeprecatedNextContext?(l=Object.create(n),l.unsubscribe=function(){return i.unsubscribe()}):l=n,s=s==null?void 0:s.bind(l),t=t==null?void 0:t.bind(l),o=o==null?void 0:o.bind(l)}return i.destination={next:s?kr(s,i):re,error:kr(t!=null?t:It,i),complete:o?kr(o,i):re},i}return r}(Re);function kr(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{e.apply(void 0,W([],k(n)))}catch(o){ee.useDeprecatedSynchronousErrorHandling?Lt(o):ir(o)}}}function It(e){throw e}function Rr(e,r){var n=ee.onStoppedNotification;n&&Te.setTimeout(function(){return n(e,r)})}var Gn={closed:!0,next:re,error:It,complete:re};var Ae=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function J(e){return e}function Ct(e){return e.length===0?J:e.length===1?e[0]:function(n){return e.reduce(function(t,o){return o(t)},n)}}var F=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,t){var o=this,i=Bn(r)?r:new je(r,n,t);return Oe(function(){var s=o,l=s.operator,a=s.source;i.add(l?l.call(i,a):a?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var t=this;return n=Ft(n),new n(function(o,i){var s;s=t.subscribe(function(l){try{r(l)}catch(a){i(a),s==null||s.unsubscribe()}},i,o)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[Ae]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return Ct(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=Ft(r),new r(function(t,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return t(i)})})},e.create=function(r){return new e(r)},e}();function Ft(e){var r;return(r=e!=null?e:ee.Promise)!==null&&r!==void 0?r:Promise}function Yn(e){return e&&T(e.next)&&T(e.error)&&T(e.complete)}function Bn(e){return e&&e instanceof Re||Yn(e)&&or(e)}function Xn(e){return T(e==null?void 0:e.lift)}function A(e){return function(r){if(Xn(r))return r.lift(function(n){try{return e(n,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}var I=function(e){V(r,e);function r(n,t,o,i,s){var l=e.call(this,n)||this;return l.onFinalize=s,l._next=t?function(a){try{t(a)}catch(u){n.error(u)}}:e.prototype._next,l._error=i?function(a){try{i(a)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=o?function(){try{o()}catch(a){n.error(a)}finally{this.unsubscribe()}}:e.prototype._complete,l}return r.prototype.unsubscribe=function(){var n,t=this.closed;e.prototype.unsubscribe.call(this),!t&&((n=this.onFinalize)===null||n===void 0||n.call(this))},r}(Re);var Me={schedule:function(e){var r=requestAnimationFrame,n=cancelAnimationFrame,t=Me.delegate;t&&(r=t.requestAnimationFrame,n=t.cancelAnimationFrame);var o=r(function(i){n=void 0,e(i)});return new ae(function(){return n==null?void 0:n(o)})},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Me.delegate;return((n==null?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,W([],k(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Me.delegate;return((n==null?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,W([],k(e)))},delegate:void 0};var Pt=tr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var B=function(e){V(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var t=new Ht(this,this);return t.operator=n,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new Pt},r.prototype.next=function(n){var t=this;Oe(function(){var o,i;if(t._throwIfClosed(),!t.isStopped){var s=t.observers.slice();try{for(var l=Z(s),a=l.next();!a.done;a=l.next()){var u=a.value;u.next(n)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}}})},r.prototype.error=function(n){var t=this;Oe(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=n;for(var o=t.observers;o.length;)o.shift().error(n)}})},r.prototype.complete=function(){var n=this;Oe(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var t=n.observers;t.length;)t.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var t=this,o=t.hasError,i=t.isStopped,s=t.observers;return o||i?Pr:(s.push(n),new ae(function(){return ce(s,n)}))},r.prototype._checkFinalizedStatuses=function(n){var t=this,o=t.hasError,i=t.thrownError,s=t.isStopped;o?n.error(i):s&&n.complete()},r.prototype.asObservable=function(){var n=new F;return n.source=this,n},r.create=function(n,t){return new Ht(n,t)},r}(F);var Ht=function(e){V(r,e);function r(n,t){var o=e.call(this)||this;return o.destination=n,o.source=t,o}return r.prototype.next=function(n){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.next)===null||o===void 0||o.call(t,n)},r.prototype.error=function(n){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.error)===null||o===void 0||o.call(t,n)},r.prototype.complete=function(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)},r.prototype._subscribe=function(n){var t,o;return(o=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&o!==void 0?o:Pr},r}(B);var We={now:function(){return(We.delegate||Date).now()},delegate:void 0};var kt=function(e){V(r,e);function r(n,t,o){n===void 0&&(n=1/0),t===void 0&&(t=1/0),o===void 0&&(o=We);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=t,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,t),i}return r.prototype.next=function(n){var t=this,o=t.isStopped,i=t._buffer,s=t._infiniteTimeWindow,l=t._timestampProvider,a=t._windowTime;o||(i.push(n),!s&&i.push(l.now()+a)),this._trimBuffer(),e.prototype.next.call(this,n)},r.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(n),o=this,i=o._infiniteTimeWindow,s=o._buffer,l=s.slice(),a=0;a<l.length&&!n.closed;a+=i?1:2)n.next(l[a]);return this._checkFinalizedStatuses(n),t},r.prototype._trimBuffer=function(){var n=this,t=n._bufferSize,o=n._timestampProvider,i=n._buffer,s=n._infiniteTimeWindow,l=(s?1:2)*t;if(t<1/0&&l<i.length&&i.splice(0,i.length-l),!s){for(var a=o.now(),u=0,c=1;c<i.length&&i[c]<=a;c+=2)u=c;u&&i.splice(0,u+1)}},r}(B);var Rt=function(e){V(r,e);function r(n,t){return e.call(this)||this}return r.prototype.schedule=function(n,t){return t===void 0&&(t=0),this},r}(ae);var ze={setInterval:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=ze.delegate;return((n==null?void 0:n.setInterval)||setInterval).apply(void 0,W([],k(e)))},clearInterval:function(e){var r=ze.delegate;return((r==null?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0};var ar=function(e){V(r,e);function r(n,t){var o=e.call(this,n,t)||this;return o.scheduler=n,o.work=t,o.pending=!1,o}return r.prototype.schedule=function(n,t){if(t===void 0&&(t=0),this.closed)return this;this.state=n;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},r.prototype.requestAsyncId=function(n,t,o){return o===void 0&&(o=0),ze.setInterval(n.flush.bind(n,this),o)},r.prototype.recycleAsyncId=function(n,t,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return t;ze.clearInterval(t)},r.prototype.execute=function(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,t);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(n,t){var o=!1,i;try{this.work(n)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},r.prototype.unsubscribe=function(){if(!this.closed){var n=this,t=n.id,o=n.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ce(i,this),t!=null&&(this.id=this.recycleAsyncId(o,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(Rt);var jr=function(){function e(r,n){n===void 0&&(n=e.now),this.schedulerActionCtor=r,this.now=n}return e.prototype.schedule=function(r,n,t){return n===void 0&&(n=0),new this.schedulerActionCtor(this,r).schedule(t,n)},e.now=We.now,e}();var sr=function(e){V(r,e);function r(n,t){t===void 0&&(t=jr.now);var o=e.call(this,n,t)||this;return o.actions=[],o._active=!1,o._scheduled=void 0,o}return r.prototype.flush=function(n){var t=this.actions;if(this._active){t.push(n);return}var o;this._active=!0;do if(o=n.execute(n.state,n.delay))break;while(n=t.shift());if(this._active=!1,o){for(;n=t.shift();)n.unsubscribe();throw o}},r}(jr);var Wr=new sr(ar),lr=Wr;var jt=function(e){V(r,e);function r(n,t){var o=e.call(this,n,t)||this;return o.scheduler=n,o.work=t,o}return r.prototype.requestAsyncId=function(n,t,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,n,t,o):(n.actions.push(this),n._scheduled||(n._scheduled=Me.requestAnimationFrame(function(){return n.flush(void 0)})))},r.prototype.recycleAsyncId=function(n,t,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,n,t,o);n.actions.length===0&&(Me.cancelAnimationFrame(t),n._scheduled=void 0)},r}(ar);var Wt=function(e){V(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var t=this.actions,o,i=-1;n=n||t.shift();var s=t.length;do if(o=n.execute(n.state,n.delay))break;while(++i<s&&(n=t.shift()));if(this._active=!1,o){for(;++i<s&&(n=t.shift());)n.unsubscribe();throw o}},r}(sr);var Le=new Wt(jt);var fe=new F(function(e){return e.complete()});function ur(e){return e&&T(e.schedule)}function zr(e){return e[e.length-1]}function Ie(e){return T(zr(e))?e.pop():void 0}function se(e){return ur(zr(e))?e.pop():void 0}function zt(e,r){return typeof zr(e)=="number"?e.pop():r}var Ce=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function cr(e){return T(e==null?void 0:e.then)}function fr(e){return T(e[Ae])}function pr(e){return Symbol.asyncIterator&&T(e==null?void 0:e[Symbol.asyncIterator])}function mr(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 Zn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var dr=Zn();function hr(e){return T(e==null?void 0:e[dr])}function vr(e){return Et(this,arguments,function(){var n,t,o,i;return er(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,rr(n.read())];case 3:return t=s.sent(),o=t.value,i=t.done,i?[4,rr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,rr(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function br(e){return T(e==null?void 0:e.getReader)}function j(e){if(e instanceof F)return e;if(e!=null){if(fr(e))return eo(e);if(Ce(e))return ro(e);if(cr(e))return to(e);if(pr(e))return Ut(e);if(hr(e))return no(e);if(br(e))return oo(e)}throw mr(e)}function eo(e){return new F(function(r){var n=e[Ae]();if(T(n.subscribe))return n.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ro(e){return new F(function(r){for(var n=0;n<e.length&&!r.closed;n++)r.next(e[n]);r.complete()})}function to(e){return new F(function(r){e.then(function(n){r.closed||(r.next(n),r.complete())},function(n){return r.error(n)}).then(null,ir)})}function no(e){return new F(function(r){var n,t;try{for(var o=Z(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(r.next(s),r.closed)return}}catch(l){n={error:l}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}r.complete()})}function Ut(e){return new F(function(r){io(e,r).catch(function(n){return r.error(n)})})}function oo(e){return Ut(vr(e))}function io(e,r){var n,t,o,i;return wt(this,void 0,void 0,function(){var s,l;return er(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=_t(e),a.label=1;case 1:return[4,n.next()];case 2:if(t=a.sent(),!!t.done)return[3,4];if(s=t.value,r.next(s),r.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=a.sent(),o={error:l},[3,11];case 6:return a.trys.push([6,,9,10]),t&&!t.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return r.complete(),[2]}})})}function D(e,r,n,t,o){t===void 0&&(t=0),o===void 0&&(o=!1);var i=r.schedule(function(){n(),o?e.add(this.schedule(null,t)):this.unsubscribe()},t);if(e.add(i),!o)return i}function de(e,r){return r===void 0&&(r=0),A(function(n,t){n.subscribe(new I(t,function(o){return D(t,e,function(){return t.next(o)},r)},function(){return D(t,e,function(){return t.complete()},r)},function(o){return D(t,e,function(){return t.error(o)},r)}))})}function xr(e,r){return r===void 0&&(r=0),A(function(n,t){t.add(e.schedule(function(){return n.subscribe(t)},r))})}function Vt(e,r){return j(e).pipe(xr(r),de(r))}function qt(e,r){return j(e).pipe(xr(r),de(r))}function Nt(e,r){return new F(function(n){var t=0;return r.schedule(function(){t===e.length?n.complete():(n.next(e[t++]),n.closed||this.schedule())})})}function $t(e,r){return new F(function(n){var t;return D(n,r,function(){t=e[dr](),D(n,r,function(){var o,i,s;try{o=t.next(),i=o.value,s=o.done}catch(l){n.error(l);return}s?n.complete():n.next(i)},0,!0)}),function(){return T(t==null?void 0:t.return)&&t.return()}})}function yr(e,r){if(!e)throw new Error("Iterable cannot be null");return new F(function(n){D(n,r,function(){var t=e[Symbol.asyncIterator]();D(n,r,function(){t.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}function Dt(e,r){return yr(vr(e),r)}function Qt(e,r){if(e!=null){if(fr(e))return Vt(e,r);if(Ce(e))return Nt(e,r);if(cr(e))return qt(e,r);if(pr(e))return yr(e,r);if(hr(e))return $t(e,r);if(br(e))return Dt(e,r)}throw mr(e)}function Q(e,r){return r?Qt(e,r):j(e)}function te(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=se(e);return Q(e,n)}function Kt(e){return e instanceof Date&&!isNaN(e)}function z(e,r){return A(function(n,t){var o=0;n.subscribe(new I(t,function(i){t.next(e.call(r,i,o++))}))})}var ao=Array.isArray;function so(e,r){return ao(r)?e.apply(void 0,W([],k(r))):e(r)}function gr(e){return z(function(r){return so(e,r)})}var lo=Array.isArray,uo=Object.getPrototypeOf,co=Object.prototype,fo=Object.keys;function Jt(e){if(e.length===1){var r=e[0];if(lo(r))return{args:r,keys:null};if(po(r)){var n=fo(r);return{args:n.map(function(t){return r[t]}),keys:n}}}return{args:e,keys:null}}function po(e){return e&&typeof e=="object"&&uo(e)===co}function Gt(e,r){return e.reduce(function(n,t,o){return n[t]=r[o],n},{})}function Ue(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=se(e),t=Ie(e),o=Jt(e),i=o.args,s=o.keys;if(i.length===0)return Q([],n);var l=new F(mo(i,n,s?function(a){return Gt(s,a)}:J));return t?l.pipe(gr(t)):l}function mo(e,r,n){return n===void 0&&(n=J),function(t){Yt(r,function(){for(var o=e.length,i=new Array(o),s=o,l=o,a=function(c){Yt(r,function(){var p=Q(e[c],r),f=!1;p.subscribe(new I(t,function(d){i[c]=d,f||(f=!0,l--),l||t.next(n(i.slice()))},function(){--s||t.complete()}))},t)},u=0;u<o;u++)a(u)},t)}}function Yt(e,r,n){e?D(n,e,r):r()}function Bt(e,r,n,t,o,i,s,l){var a=[],u=0,c=0,p=!1,f=function(){p&&!a.length&&!u&&r.complete()},d=function(m){return u<t?h(m):a.push(m)},h=function(m){i&&r.next(m),u++;var b=!1;j(n(m,c++)).subscribe(new I(r,function(S){o==null||o(S),i?d(S):r.next(S)},function(){b=!0},void 0,function(){if(b)try{u--;for(var S=function(){var E=a.shift();s?D(r,s,function(){return h(E)}):h(E)};a.length&&u<t;)S();f()}catch(E){r.error(E)}}))};return e.subscribe(new I(r,d,function(){p=!0,f()})),function(){l==null||l()}}function ye(e,r,n){return n===void 0&&(n=1/0),T(r)?ye(function(t,o){return z(function(i,s){return r(t,i,o,s)})(j(e(t,o)))},n):(typeof r=="number"&&(n=r),A(function(t,o){return Bt(t,o,e,n)}))}function Sr(e){return e===void 0&&(e=1/0),ye(J,e)}function Xt(){return Sr(1)}function Ve(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Xt()(Q(e,se(e)))}function qe(e){return new F(function(r){j(e()).subscribe(r)})}var ho=["addListener","removeListener"],vo=["addEventListener","removeEventListener"],bo=["on","off"];function K(e,r,n,t){if(T(n)&&(t=n,n=void 0),t)return K(e,r,n).pipe(gr(t));var o=k(go(e)?vo.map(function(l){return function(a){return e[l](r,a,n)}}):xo(e)?ho.map(Zt(e,r)):yo(e)?bo.map(Zt(e,r)):[],2),i=o[0],s=o[1];if(!i&&Ce(e))return ye(function(l){return K(l,r,n)})(j(e));if(!i)throw new TypeError("Invalid event target");return new F(function(l){var a=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return l.next(1<u.length?u:u[0])};return i(a),function(){return s(a)}})}function Zt(e,r){return function(n){return function(t){return e[n](r,t)}}}function xo(e){return T(e.addListener)&&T(e.removeListener)}function yo(e){return T(e.on)&&T(e.off)}function go(e){return T(e.addEventListener)&&T(e.removeEventListener)}function wr(e,r,n){e===void 0&&(e=0),n===void 0&&(n=lr);var t=-1;return r!=null&&(ur(r)?n=r:t=r),new F(function(o){var i=Kt(e)?+e-n.now():e;i<0&&(i=0);var s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=t?this.schedule(void 0,t):o.complete())},i)})}function $(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=se(e),t=zt(e,1/0),o=e;return o.length?o.length===1?j(o[0]):Sr(t)(Q(o,n)):fe}var Ne=new F(re);var So=Array.isArray;function en(e){return e.length===1&&So(e[0])?e[0]:e}function pe(e,r){return A(function(n,t){var o=0;n.subscribe(new I(t,function(i){return e.call(r,i,o++)&&t.next(i)}))})}function rn(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Ie(e),t=en(e);return t.length?new F(function(o){var i=t.map(function(){return[]}),s=t.map(function(){return!1});o.add(function(){i=s=null});for(var l=function(u){j(t[u]).subscribe(new I(o,function(c){if(i[u].push(c),i.every(function(f){return f.length})){var p=i.map(function(f){return f.shift()});o.next(n?n.apply(void 0,W([],k(p))):p),i.some(function(f,d){return!f.length&&s[d]})&&o.complete()}},function(){s[u]=!0,!i[u].length&&o.complete()}))},a=0;!o.closed&&a<t.length;a++)l(a);return function(){i=s=null}}):fe}function tn(e){return A(function(r,n){var t=!1,o=null,i=null,s=!1,l=function(){if(i==null||i.unsubscribe(),i=null,t){t=!1;var u=o;o=null,n.next(u)}s&&n.complete()},a=function(){i=null,s&&n.complete()};r.subscribe(new I(n,function(u){t=!0,o=u,i||j(e(u)).subscribe(i=new I(n,l,a))},function(){s=!0,(!t||!i||i.closed)&&n.complete()}))})}function Ur(e,r){return r===void 0&&(r=lr),tn(function(){return wr(e,r)})}function Vr(e,r){return r===void 0&&(r=null),r=r!=null?r:e,A(function(n,t){var o=[],i=0;n.subscribe(new I(t,function(s){var l,a,u,c,p=null;i++%r==0&&o.push([]);try{for(var f=Z(o),d=f.next();!d.done;d=f.next()){var h=d.value;h.push(s),e<=h.length&&(p=p!=null?p:[],p.push(h))}}catch(S){l={error:S}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(l)throw l.error}}if(p)try{for(var m=Z(p),b=m.next();!b.done;b=m.next()){var h=b.value;ce(o,h),t.next(h)}}catch(S){u={error:S}}finally{try{b&&!b.done&&(c=m.return)&&c.call(m)}finally{if(u)throw u.error}}},function(){var s,l;try{for(var a=Z(o),u=a.next();!u.done;u=a.next()){var c=u.value;t.next(c)}}catch(p){s={error:p}}finally{try{u&&!u.done&&(l=a.return)&&l.call(a)}finally{if(s)throw s.error}}t.complete()},void 0,function(){o=null}))})}function Er(e){return A(function(r,n){var t=null,o=!1,i;t=r.subscribe(new I(n,void 0,void 0,function(s){i=j(e(s,Er(e)(r))),t?(t.unsubscribe(),t=null,i.subscribe(n)):o=!0})),o&&(t.unsubscribe(),t=null,i.subscribe(n))})}function $e(e){return e<=0?function(){return fe}:A(function(r,n){var t=0;r.subscribe(new I(n,function(o){++t<=e&&(n.next(o),e<=t&&n.complete())}))})}function nn(){return A(function(e,r){e.subscribe(new I(r,re))})}function on(e){return z(function(){return e})}function qr(e,r){return r?function(n){return Ve(r.pipe($e(1),nn()),n.pipe(qr(e)))}:ye(function(n,t){return e(n,t).pipe($e(1),on(n))})}function Nr(e,r){r===void 0&&(r=Wr);var n=wr(e,r);return qr(function(){return n})}function ge(e,r){return r===void 0&&(r=J),e=e!=null?e:wo,A(function(n,t){var o,i=!0;n.subscribe(new I(t,function(s){var l=r(s);(i||!e(o,l))&&(i=!1,o=l,t.next(s))}))})}function wo(e,r){return e===r}function $r(e,r){return ge(function(n,t){return r?r(n[e],t[e]):n[e]===t[e]})}function Se(e){return A(function(r,n){try{r.subscribe(n)}finally{n.add(e)}})}function an(e){e===void 0&&(e={});var r=e.connector,n=r===void 0?function(){return new B}:r,t=e.resetOnError,o=t===void 0?!0:t,i=e.resetOnComplete,s=i===void 0?!0:i,l=e.resetOnRefCountZero,a=l===void 0?!0:l;return function(u){var c=null,p=null,f=null,d=0,h=!1,m=!1,b=function(){p==null||p.unsubscribe(),p=null},S=function(){b(),c=f=null,h=m=!1},E=function(){var C=c;S(),C==null||C.unsubscribe()};return A(function(C,v){d++,!m&&!h&&b();var x=f=f!=null?f:n();v.add(function(){d--,d===0&&!m&&!h&&(p=Dr(E,a))}),x.subscribe(v),c||(c=new je({next:function(w){return x.next(w)},error:function(w){m=!0,b(),p=Dr(S,o,w),x.error(w)},complete:function(){h=!0,b(),p=Dr(S,s),x.complete()}}),Q(C).subscribe(c))})(u)}}function Dr(e,r){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];return r===!0?(e(),null):r===!1?null:r.apply(void 0,W([],k(n))).pipe($e(1)).subscribe(function(){return e()})}function we(e,r,n){var t,o,i,s=!1;return e&&typeof e=="object"?(i=(t=e.bufferSize)!==null&&t!==void 0?t:1/0,r=(o=e.windowTime)!==null&&o!==void 0?o:1/0,s=!!e.refCount,n=e.scheduler):i=e!=null?e:1/0,an({connector:function(){return new kt(i,r,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Fe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=se(e);return A(function(t,o){(n?Ve(e,t,n):Ve(e,t)).subscribe(o)})}function G(e,r){return A(function(n,t){var o=null,i=0,s=!1,l=function(){return s&&!o&&t.complete()};n.subscribe(new I(t,function(a){o==null||o.unsubscribe();var u=0,c=i++;j(e(a,c)).subscribe(o=new I(t,function(p){return t.next(r?r(a,p,c,u++):p)},function(){o=null,l()}))},function(){s=!0,l()}))})}function Pe(e,r,n){var t=T(e)||r||n?{next:e,error:r,complete:n}:e;return t?A(function(o,i){var s;(s=t.subscribe)===null||s===void 0||s.call(t);var l=!0;o.subscribe(new I(i,function(a){var u;(u=t.next)===null||u===void 0||u.call(t,a),i.next(a)},function(){var a;l=!1,(a=t.complete)===null||a===void 0||a.call(t),i.complete()},function(a){var u;l=!1,(u=t.error)===null||u===void 0||u.call(t,a),i.error(a)},function(){var a,u;l&&((a=t.unsubscribe)===null||a===void 0||a.call(t)),(u=t.finalize)===null||u===void 0||u.call(t)}))}):J}function He(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Ie(e);return A(function(t,o){for(var i=e.length,s=new Array(i),l=e.map(function(){return!1}),a=!1,u=function(p){j(e[p]).subscribe(new I(o,function(f){s[p]=f,!a&&!l[p]&&(l[p]=!0,(a=l.every(J))&&(l=null))},re))},c=0;c<i;c++)u(c);t.subscribe(new I(o,function(p){if(a){var f=W([p],k(s));o.next(n?n.apply(void 0,W([],k(f))):f)}}))})}function sn(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return A(function(n,t){rn.apply(void 0,W([n],k(e))).subscribe(t)})}function Qr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return sn.apply(void 0,W([],k(e)))}function ln(e,r=document){return Array.from(r.querySelectorAll(e))}function X(e,r=document){let n=un(e,r);if(typeof n=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return n}function un(e,r=document){return r.querySelector(e)||void 0}function Kr(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function cn(e){return $(K(e,"focus"),K(e,"blur")).pipe(z(({type:r})=>r==="focus"),Fe(e===Kr()))}function fn(e){return{x:e.scrollLeft,y:e.scrollTop}}function pn(e){return $(K(e,"scroll"),K(window,"resize")).pipe(Ur(0,Le),z(()=>fn(e)),Fe(fn(e)))}var Eo=new B,Bf=qe(()=>te(new ResizeObserver(e=>{for(let r of e)Eo.next(r)}))).pipe(G(e=>$(Ne,te(e)).pipe(Se(()=>e.disconnect()))),we(1));function mn(e){return{width:e.offsetWidth,height:e.offsetHeight}}function dn(e){return{width:e.scrollWidth,height:e.scrollHeight}}var _o=new B,sp=qe(()=>te(new IntersectionObserver(e=>{for(let r of e)_o.next(r)},{threshold:1}))).pipe(G(e=>$(Ne,te(e)).pipe(Se(()=>e.disconnect()))),we(1));function hn(e,r=16){return pn(e).pipe(z(({y:n})=>{let t=mn(e),o=dn(e);return n>=o.height-t.height-r}),ge())}var bp={drawer:X("[data-md-toggle=drawer]"),search:X("[data-md-toggle=search]")};function vn(){return new URL(location.href)}function bn(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 n of r)bn(e,n)}function ne(e,r,...n){let t=document.createElement(e);if(r)for(let o of Object.keys(r))typeof r[o]!="boolean"?t.setAttribute(o,r[o]):r[o]&&t.setAttribute(o,"");for(let o of n)bn(t,o);return t}function xn(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function To(e,r={credentials:"same-origin"}){return Q(fetch(`${e}`,r)).pipe(pe(n=>n.status===200),Er(()=>fe))}function _r(e,r){return To(e,r).pipe(G(n=>n.json()),we(1))}function ke(e,r=document){return X(`[data-mdx-component=${e}]`,r)}function Jr(e,r=document){return ln(`[data-mdx-component=${e}]`,r)}var Oo=X("#__config"),De=JSON.parse(Oo.textContent);De.base=`${new URL(De.base,vn())}`;function yn(){return De}function he(e,r){return typeof r!="undefined"?De.translations[e].replace("#",r.toString()):De.translations[e]}function gn(e){let r=cn(e),n=$(K(e,"keyup"),K(e,"focus").pipe(Nr(1))).pipe(z(()=>e.value),ge());return r.pipe(pe(t=>!t),He(n)).subscribe(([,t])=>{let o=document.location.pathname;t.length&&ga("send","pageview",`${o}?q=[icon]+${t}`)}),Ue([n,r]).pipe(z(([t,o])=>({ref:e,value:t,focus:o})))}var jn=Cr(Yr());function Ln(e,r){switch(r){case 0:e.textContent=he("search.result.none");break;case 1:e.textContent=he("search.result.one");break;default:e.textContent=he("search.result.other",xn(r))}}function In(e){e.textContent=he("search.result.placeholder")}function Cn(e,r){e.appendChild(r)}function Fn(e){e.innerHTML=""}var Pn=Cr(Yr());function Ao(e,r){return(0,Pn.wrap)(e.shortcode,r,{wrap:{tagOpen:"<b>",tagClose:"</b>"}})}function Hn(e,r){return ne("li",{class:"mdx-iconsearch-result__item"},ne("span",{class:"twemoji"},ne("img",{src:e.url})),ne("button",{class:"md-clipboard--inline",title:he("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},ne("code",null,`:${Ao(e,r)}:`)))}function kn(e){let r=`@${e.name}`;return ne("a",{href:e.url,title:r,class:"mdx-sponsorship__item"},ne("img",{src:e.image}))}function Rn(e){return ne("a",{href:"https://github.com/sponsors/squidfunk",class:"mdx-sponsorship__item mdx-sponsorship__item--private"},"+",e)}function Mo(e,{index$:r,query$:n}){return Ue([n.pipe($r("value")),r.pipe(z(({icons:t,emojis:o})=>[...Object.keys(t.data),...Object.keys(o.data)]))]).pipe(z(([{value:t},o])=>(0,jn.filter)(o,t)),G(t=>r.pipe(z(({icons:o,emojis:i})=>({data:t.map(s=>{let l=s in o.data?o:i;return{shortcode:s,url:[l.base,l.data[s]].join("")}})})))))}function Wn(e,{index$:r,query$:n}){let t=new B,o=hn(e).pipe(pe(Boolean)),i=X(":scope > :first-child",e);t.pipe(de(Le),He(n)).subscribe(([{data:l},{value:a}])=>{a?Ln(i,l.length):In(i)});let s=X(":scope > :last-child",e);return t.pipe(de(Le),Pe(()=>Fn(s)),G(({data:l})=>$(te(...l.slice(0,10)),te(...l.slice(10)).pipe(Vr(10),Qr(o),G(([a])=>te(...a))))),He(n)).subscribe(([l,{value:a}])=>{Cn(s,Hn(l,a))}),Mo(e,{query$:n,index$:r}).pipe(Pe(l=>t.next(l)),Se(()=>t.complete()),z(l=>Ye({ref:e},l)))}function zn(e){let r=yn(),n=_r(new URL("overrides/assets/javascripts/iconsearch_index.json",r.base)),t=ke("iconsearch-query",e),o=ke("iconsearch-result",e),i=gn(t),s=Wn(o,{index$:n,query$:i});return $(i,s)}function Un(e){let r=_r("https://3if8u9o552.execute-api.us-east-1.amazonaws.com/_/"),n=ke("sponsorship-count"),t=ke("sponsorship-total");return r.subscribe(o=>{e.removeAttribute("hidden");let i=X(":scope > :first-child",e);for(let s of o.sponsors)s.type==="public"&&i.appendChild(kn(s.user));i.appendChild(Rn(o.sponsors.filter(({type:s})=>s==="private").length)),n.innerText=`${o.sponsors.length}`,t.innerText=`$ ${o.total.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} a month`}),r.pipe(z(o=>Ye({ref:e},o)))}function Vn(){let{origin:e}=new URL(location.href);K(document.body,"click").subscribe(r=>{if(r.target instanceof HTMLElement){let n=r.target.closest("a");n&&n.origin!==e&&ga("send","event","outbound","click",n.href)}})}Vn();var Lo=document$.pipe(G(()=>$(...Jr("iconsearch").map(e=>zn(e)),...Jr("sponsorship").map(e=>Un(e)))));Lo.subscribe();})();
|
|
//# sourceMappingURL=bundle.afb943e6.min.js.map
|
|
|