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