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