1"use strict";(self.webpackChunktaniarascia_com=self.webpackChunktaniarascia_com||[]).push([[711],{422:function(t){!function(e,r,n){let i;(i=n.define)&&i.amd?i([],(function(){return r})):(i=n.modules)?i["FlexSearch".toLowerCase()]=r:t.exports=r}(0,function t(e){function r(t,e){const r=e?e.id:t&&t.id;this.id=r||0===r?r:C++,this.init(t,e),a(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)})),a(this,"length",(function(){return this.index.length}))}function n(t,e,r,n){return this.u!==this.g&&(this.o=this.o.concat(r),this.u++,n&&this.o.length>=n&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(e,this.o),this.F&&this.F(this.o))),this}function i(t){const e=j();for(const r in t)if(t.hasOwnProperty(r)){const n=t[r];v(n)?e[r]=n.slice(0):k(n)?e[r]=i(n):e[r]=n}return e}function s(t,e){const r=t.length,n=w(e),i=[];for(let s=0,o=0;s<r;s++){const r=t[s];(n&&e(r)||!n&&!e[r])&&(i[o++]=r)}return i}function o(t,e,r,n,i,s,o,a,c,l){let h;if(r=y(r,o?0:i,a,s,e,c,l),a&&(a=r.page,h=r.next,r=r.result),o)e=this.where(o,null,i,r);else{for(e=r,r=this.l,i=e.length,s=Array(i),o=0;o<i;o++)s[o]=r[e[o]];e=s}return r=e,n&&(w(n)||(I=n.split(":"),1<I.length?n=m:(I=I[0],n=p)),r.sort(n)),r=g(a,h,r),this.cache&&this.j.set(t,r),r}function a(t,e,r){Object.defineProperty(t,e,{get:r})}function c(t){return new RegExp(t,"g")}function l(t,e){for(let r=0;r<e.length;r+=2)t=t.replace(e[r],e[r+1]);return t}function h(t,e,r,n,i,s,o,a){return e[r]?e[r]:(i=i?(a-(o||a/1.5))*s+(o||a/1.5)*i:s,e[r]=i,i>=o&&((t=(t=t[a-(i+.5|0)])[r]||(t[r]=[]))[t.length]=n),i)}function u(t,e){if(t){const r=Object.keys(t);for(let n=0,i=r.length;n<i;n++){const i=r[n],s=t[i];if(s)for(let r=0,n=s.length;r<n;r++){if(s[r]===e){1===n?delete t[i]:s.splice(r,1);break}k(s[r])&&u(s[r],e)}}}}function f(t){let e="",r="";var n="";for(let i=0;i<t.length;i++){const s=t[i];s!==r&&(i&&"h"===s?(n="a"===n||"e"===n||"i"===n||"o"===n||"u"===n||"y"===n,(("a"===r||"e"===r||"i"===r||"o"===r||"u"===r||"y"===r)&&n||" "===r)&&(e+=s)):e+=s),n=i===t.length-1?"":t[i+1],r=s}return e}function d(t,e){return 0>(t=t.length-e.length)?1:t?-1:0}function p(t,e){return(t=t[I])<(e=e[I])?-1:t>e?1:0}function m(t,e){const r=I.length;for(let n=0;n<r;n++)t=t[I[n]],e=e[I[n]];return t<e?-1:t>e?1:0}function g(t,e,r){return t?{page:t,next:e?""+e:null,result:r}:r}function y(t,e,r,n,i,s,o){let a,c=[];if(!0===r){r="0";var l=""}else l=r&&r.split(":");const h=t.length;if(1<h){const v=j(),w=[];let k,x;var u,f=0;let N;var d=!0;let O,A,S,F,C,L,$=0;if(l&&(2===l.length?(F=l,l=!1):l=C=parseInt(l[0],10)),o){for(k=j();f<h;f++)if("not"===i[f])for(x=t[f],N=x.length,u=0;u<N;u++)k["@"+x[u]]=1;else S=f+1;if(E(S))return g(r,a,c);f=0}else A=b(i)&&i;for(;f<h;f++){const b=f===(S||h)-1;if(!A||!f)if((u=A||i&&i[f])&&"and"!==u){if("or"!==u)continue;L=!1}else L=s=!0;if(x=t[f],N=x.length){if(d){if(!O){O=x;continue}var p=O.length;for(u=0;u<p;u++){var m="@"+(d=O[u]);o&&k[m]||(v[m]=1,s||(c[$++]=d))}O=null,d=!1}for(m=!1,u=0;u<N;u++){var y="@"+(p=x[u]);const t=s?v[y]||0:f;if(!(!t&&!n||o&&k[y]||!s&&v[y]))if(t===f){if(b){if((!C||--C<$)&&(c[$++]=p,e&&$===e))return g(r,$+(l||0),c)}else v[y]=f+1;m=!0}else n&&((y=w[t]||(w[t]=[]))[y.length]=p)}if(L&&!m&&!n)break}else if(L&&!n)return g(r,a,x)}if(O)if(f=O.length,o)for(u=l?parseInt(l,10):0;u<f;u++)k["@"+(t=O[u])]||(c[$++]=t);else c=O;if(n)for($=c.length,F?(f=parseInt(F[0],10)+1,u=parseInt(F[1],10)+1):(f=w.length,u=0);f--;)if(p=w[f]){for(N=p.length;u<N;u++)if(n=p[u],(!o||!k["@"+n])&&(c[$++]=n,e&&$===e))return g(r,f+":"+u,c);u=0}}else!h||i&&"not"===i[0]||(c=t[0],l&&(l=parseInt(l[0],10)));return e&&(o=c.length,l&&l>o&&(l=0),a=(l=l||0)+e,a<o?c=c.slice(l,a):(a=0,l&&(c=c.slice(l)))),g(r,a,c)}function b(t){return"string"==typeof t}function v(t){return t.constructor===Array}function w(t){return"function"==typeof t}function k(t){return"object"==typeof t}function E(t){return void 0===t}function x(t){const e=Array(t);for(let r=0;r<t;r++)e[r]=j();return e}function j(){return Object.create(null)}function N(){let t,e;self.onmessage=function(r){if(r=r.data)if(r.search){const n=e.search(r.content,r.threshold?{limit:r.limit,threshold:r.threshold,where:r.where}:r.limit);self.postMessage({id:t,content:r.content,limit:r.limit,result:n})}else r.add?e.add(r.id,r.content):r.update?e.update(r.id,r.content):r.remove?e.remove(r.id):r.clear?e.clear():r.info?((r=e.info()).worker=t,console.log(r)):r.register&&(t=r.id,r.options.cache=!1,r.options.async=!1,r.options.worker=!1,e=new Function(r.register.substring(r.register.indexOf("{")+1,r.register.lastIndexOf("}")))(),e=new e(r.options))}}function O(r,n,i,s){r=e("flexsearch","id"+r,N,(function(t){(t=t.data)&&t.result&&s(t.id,t.content,t.result,t.limit,t.where,t.cursor,t.suggest)}),n);const o=t.toString();return i.id=n,r.postMessage({register:o,options:i,id:n}),r}const A={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},S={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},F=[];let C=0;const L={},$={};let I;r.create=function(t,e){return new r(t,e)},r.registerMatcher=function(t){for(const e in t)t.hasOwnProperty(e)&&F.push(c(e),t[e]);return this},r.registerEncoder=function(t,e){return U[t]=e.bind(U),this},r.registerLanguage=function(t,e){return L[t]=e.filter,$[t]=e.stemmer,this},r.encode=function(t,e){return U[t](e)},r.prototype.init=function(t,e){if(this.v=[],e){var s=e.preset;t=e}else t||(t=A),s=t.preset;if(e={},b(t)?(e=S[t],t={}):s&&(e=S[s]),s=t.worker)if("undefined"==typeof Worker)t.worker=!1,this.m=null;else{var o=parseInt(s,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(o);for(var a=0;a<o;a++)this.m[a]=O(this.id,a,t,n.bind(this))}if(this.f=t.tokenize||e.f||this.f||A.f,this.split=E(s=t.split)?this.split||A.split:b(s)?c(s):s,this.D=t.rtl||this.D||A.D,this.async="undefined"==typeof Promise||E(s=t.async)?this.async||A.async:s,this.g=E(s=t.worker)?this.g||A.g:s,this.threshold=E(s=t.threshold)?e.threshold||this.threshold||A.threshold:s,this.b=E(s=t.resolution)?s=e.b||this.b||A.b:s,s<=this.threshold&&(this.b=this.threshold+1),this.depth="strict"!==this.f||E(s=t.depth)?e.depth||this.depth||A.depth:s,this.w=(s=E(s=t.encode)?e.encode||A.encode:s)&&U[s]&&U[s].bind(U)||(w(s)?s:this.w||!1),(s=t.matcher)&&this.addMatcher(s),s=(e=t.lang)||t.filter){if(b(s)&&(s=L[s]),v(s)){o=this.w,a=j();for(var l=0;l<s.length;l++){var h=o?o(s[l]):s[l];a[h]=1}s=a}this.filter=s}if(s=e||t.stemmer){var u;for(u in e=b(s)?$[s]:s,o=this.w,a=[],e)e.hasOwnProperty(u)&&(l=o?o(u):u,a.push(c(l+"($|\\W)"),o?o(e[u]):e[u]));this.stemmer=u=a}if(this.a=a=(s=t.doc)?i(s):this.a||A.a,this.i=x(this.b-(this.threshold||0)),this.h=j(),this.c=j(),a){if(this.l=j(),t.doc=null,u=a.index={},e=a.keys=[],o=a.field,l=a.tag,h=a.store,v(a.id)||(a.id=a.id.split(":")),h){var f=j();if(b(h))f[h]=1;else if(v(h))for(let t=0;t<h.length;t++)f[h[t]]=1;else k(h)&&(f=h);a.store=f}if(l){if(this.G=j(),h=j(),o)if(b(o))h[o]=t;else if(v(o))for(f=0;f<o.length;f++)h[o[f]]=t;else k(o)&&(h=o);for(v(l)||(a.tag=l=[l]),o=0;o<l.length;o++)this.G[l[o]]=j();this.I=l,o=h}if(o){let n;for(v(o)||(k(o)?(n=o,a.field=o=Object.keys(o)):a.field=o=[o]),a=0;a<o.length;a++)v(l=o[a])||(n&&(t=n[l]),e[a]=l,o[a]=l.split(":")),u[l]=new r(t)}t.doc=s}return this.B=!0,this.j=!!(this.cache=s=E(s=t.cache)?this.cache||A.cache:s)&&new q(s),this},r.prototype.encode=function(t){return t&&(F.length&&(t=l(t,F)),this.v.length&&(t=l(t,this.v)),this.w&&(t=this.w(t)),this.stemmer&&(t=l(t,this.stemmer))),t},r.prototype.addMatcher=function(t){const e=this.v;for(const r in t)t.hasOwnProperty(r)&&e.push(c(r),t[r]);return this},r.prototype.add=function(t,e,r,n,i){if(this.a&&k(t))return this.A("add",t,e);if(e&&b(e)&&(t||0===t)){var o="@"+t;if(this.c[o]&&!n)return this.update(t,e);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:t,content:e}),this.c[o]=""+this.C,r&&r(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let i=this;return o=new Promise((function(r){setTimeout((function(){i.add(t,e,null,n,!0),i=null,r()}))})),r?(o.then(r),this):o}if(r)return this.add(t,e,null,n,!0),r(),this}if(!(e=this.encode(e)).length)return this;i=w(r=this.f)?r(e):e.split(this.split),this.filter&&(i=s(i,this.filter));const d=j();d._ctx=j();const p=i.length,m=this.threshold,g=this.depth,y=this.b,b=this.i,v=this.D;for(let e=0;e<p;e++){var a=i[e];if(a){var c=a.length,l=(v?e+1:p-e)/p,u="";switch(r){case"reverse":case"both":for(var f=c;--f;)h(b,d,u=a[f]+u,t,v?1:(c-f)/c,l,m,y-1);u="";case"forward":for(f=0;f<c;f++)h(b,d,u+=a[f],t,v?(f+1)/c:1,l,m,y-1);break;case"full":for(f=0;f<c;f++){const e=(v?f+1:c-f)/c;for(let r=c;r>f;r--)h(b,d,u=a.substring(f,r),t,e,l,m,y-1)}break;
1default:if(c=h(b,d,a,t,1,l,m,y-1),g&&1<p&&c>=m)for(c=d._ctx[a]||(d._ctx[a]=j()),a=this.h[a]||(this.h[a]=x(y-(m||0))),0>(l=e-g)&&(l=0),(u=e+g+1)>p&&(u=p);l<u;l++)l!==e&&h(a,c,i[l],t,0,y-(l<e?e-l:l-e),m,y-1)}}}this.c[o]=1,this.B=!1}return this},r.prototype.A=function(t,e,r){if(v(e)){var n=e.length;if(n--){for(var i=0;i<n;i++)this.A(t,e[i]);return this.A(t,e[n],r)}}else{var s,o=this.a.index,a=this.a.keys,c=this.a.tag;i=this.a.store;var l=this.a.id;n=e;for(var h=0;h<l.length;h++)n=n[l[h]];if("remove"===t&&(delete this.l[n],l=a.length,l--)){for(e=0;e<l;e++)o[a[e]].remove(n);return o[a[l]].remove(n,r)}if(c){for(s=0;s<c.length;s++){var u=c[s],f=e;for(l=u.split(":"),h=0;h<l.length;h++)f=f[l[h]];f="@"+f}s=(s=this.G[u])[f]||(s[f]=[])}for(let i=0,s=(l=this.a.field).length;i<s;i++){for(u=l[i],c=e,f=0;f<u.length;f++)c=c[u[f]];u=o[a[i]],f="add"===t?u.add:u.update,i===s-1?f.call(u,n,c,r):f.call(u,n,c)}if(i){for(r=Object.keys(i),t=j(),o=0;o<r.length;o++)if(i[a=r[o]]){let r,n;for(a=a.split(":"),l=0;l<a.length;l++)r=(r||e)[c=a[l]],n=(n||t)[c]=r}e=t}s&&(s[s.length]=e),this.l[n]=e}return this},r.prototype.update=function(t,e,r){return this.a&&k(t)?this.A("update",t,e):(this.c["@"+t]&&b(e)&&(this.remove(t),this.add(t,e,r,!0)),this)},r.prototype.remove=function(t,e,r){if(this.a&&k(t))return this.A("remove",t,e);var n="@"+t;if(this.c[n]){if(this.g)return this.m[this.c[n]].postMessage({remove:!0,id:t}),delete this.c[n],e&&e(),this;if(!r){if(this.async&&"function"!=typeof importScripts){let r=this;return n=new Promise((function(e){setTimeout((function(){r.remove(t,null,!0),r=null,e()}))})),e?(n.then(e),this):n}if(e)return this.remove(t,null,!0),e(),this}for(e=0;e<this.b-(this.threshold||0);e++)u(this.i[e],t);this.depth&&u(this.h,t),delete this.c[n],this.B=!1}return this},r.prototype.search=function(t,e,r,n){if(k(e)){if(v(e))for(var i=0;i<e.length;i++)e[i].query=t;else e.query=t;t=e,e=1e3}else e&&w(e)?(r=e,e=1e3):e||0===e||(e=1e3);if(!this.g){var a=[],c=t;if(k(t)&&!v(t)){r||(r=t.callback)&&(c.callback=null);var l=t.sort,h=t.page;e=t.limit,N=t.threshold;var u=t.suggest;t=t.query}if(this.a){N=this.a.index;const s=c.where;var f=c.bool||"or",p=c.field;let d,y,w=f;if(p)v(p)||(p=[p]);else if(v(c)){var m=c;p=[],w=[];for(var g=0;g<c.length;g++)i=(n=c[g]).bool||f,p[g]=n.field,w[g]=i,"not"===i?d=!0:"and"===i&&(y=!0)}else p=this.a.keys;for(f=p.length,g=0;g<f;g++)m&&(c=m[g]),h&&!b(c)&&(c.page=null,c.limit=0),a[g]=N[p[g]].search(c,0);if(r)return r(o.call(this,t,w,a,l,e,u,s,h,y,d));if(this.async){const r=this;return new Promise((function(n){Promise.all(a).then((function(i){n(o.call(r,t,w,i,l,e,u,s,h,y,d))}))}))}return o.call(this,t,w,a,l,e,u,s,h,y,d)}if(N||(N=this.threshold||0),!n){if(this.async&&"function"!=typeof importScripts){let t=this;return N=new Promise((function(r){setTimeout((function(){r(t.search(c,e,null,!0)),t=null}))})),r?(N.then(r),this):N}if(r)return r(this.search(c,e,null,!0)),this}if(!t||!b(t))return a;if(c=t,this.cache)if(this.B){if(r=this.j.get(t))return r}else this.j.clear(),this.B=!0;if(!(c=this.encode(c)).length)return a;r=w(r=this.f)?r(c):c.split(this.split),this.filter&&(r=s(r,this.filter)),m=r.length,n=!0,i=[];var E=j(),x=0;if(1<m&&(this.depth&&"strict"===this.f?f=!0:r.sort(d)),!f||(g=this.h)){const t=this.b;for(;x<m;x++){let e=r[x];if(e){if(f){if(!p)if(g[e])p=e,E[e]=1;else if(!u)return a;
1if(u&&x===m-1&&!i.length)f=!1,e=p||e,E[e]=0;else if(!p)continue}if(!E[e]){const r=[];let s=!1,o=0;const a=f?g[p]:this.i;if(a){let n;for(let i=0;i<t-N;i++)(n=a[i]&&a[i][e])&&(r[o++]=n,s=!0)}if(s)p=e,i[i.length]=1<o?r.concat.apply([],r):r[0];else if(!u){n=!1;break}E[e]=1}}}}else n=!1;return n&&(a=y(i,e,h,u)),this.cache&&this.j.set(t,a),a}this.F=r,this.u=0,this.o=[];for(var N=0;N<this.g;N++)this.m[N].postMessage({search:!0,limit:e,content:t})},r.prototype.find=function(t,e){return this.where(t,e,1)[0]||null},r.prototype.where=function(t,e,r,n){const i=this.l,s=[];let o,a=0;var c;let l;if(k(t)){r||(r=e);var h=Object.keys(t),u=h.length;if(o=!1,1===u&&"id"===h[0])return[i[t.id]];if((c=this.I)&&!n)for(var f=0;f<c.length;f++){var d=c[f],p=t[d];if(!E(p)){if(l=this.G[d]["@"+p],0==--u)return l;h.splice(h.indexOf(d),1),delete t[d];break}}for(c=Array(u),f=0;f<u;f++)c[f]=h[f].split(":")}else{if(w(t)){for(r=(e=n||Object.keys(i)).length,h=0;h<r;h++)t(u=i[e[h]])&&(s[a++]=u);return s}if(E(e))return[i[t]];if("id"===t)return[i[e]];h=[t],u=1,c=[t.split(":")],o=!0}for(f=(n=l||n||Object.keys(i)).length,d=0;d<f;d++){p=l?n[d]:i[n[d]];let f=!0;for(let r=0;r<u;r++){o||(e=t[h[r]]);const n=c[r],i=n.length;let s=p;if(1<i)for(let t=0;t<i;t++)s=s[n[t]];else s=s[n[0]];if(s!==e){f=!1;break}}if(f&&(s[a++]=p,r&&a===r))break}return s},r.prototype.info=function(){if(!this.g)return{id:this.id,items:this.length,cache:!(!this.cache||!this.cache.s)&&this.cache.s.length,matcher:F.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&"strict"===this.f};for(let t=0;t<this.g;t++)this.m[t].postMessage({info:!0,id:this.id})},r.prototype.clear=function(){return this.destroy().init()},r.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){const t=this.a.keys;for(let e=0;e<t.length;e++)this.a.index[t[e]].destroy();this.a=this.l=null}return this},r.prototype.export=function(t){const e=!t||E(t.serialize)||t.serialize;if(this.a){const e=!t||E(t.doc)||t.doc;var r=!t||E(t.index)||t.index;t=[];let n=0;if(r)for(r=this.a.keys;n<r.length;n++){const e=this.a.index[r[n]];t[n]=[e.i,e.h,Object.keys(e.c)]}e&&(t[n]=this.l)}else t=[this.i,this.h,Object.keys(this.c)];return e&&(t=JSON.stringify(t)),t},r.prototype.import=function(t,e){(!e||E(e.serialize)||e.serialize)&&(t=JSON.parse(t));const r=j();if(this.a){var n=!e||E(e.doc)||e.doc,i=0;if(!e||E(e.index)||e.index){const n=(e=this.a.keys).length;for(var s=t[0][2];i<s.length;i++)r[s[i]]=1;for(i=0;i<n;i++){s=this.a.index[e[i]];const n=t[i];n&&(s.i=n[0],s.h=n[1],s.c=r)}}n&&(this.l=k(n)?n:t[i])}else{for(n=t[2],i=0;i<n.length;i++)r[n[i]]=1;this.i=t[0],this.h=t[1],this.c=r}};const R=function(){const t=c("\\s+"),e=c("[^a-z0-9 ]"),r=[c("[-/]")," ",e,"",t," "];return function(t){return f(l(t.toLowerCase(),r))}}(),U={icase:function(t){return t.toLowerCase()},simple:function(){const t=c("\\s+"),e=c("[^a-z0-9 ]"),r=c("[-/]"),n=[c("[à áâãäå]"),"a",c("[èéêë]"),"e",c("[ìÃîï]"),"i",c("[òóôõöÅ]"),"o",c("[ùúûüű]"),"u",c("[ýŷÿ]"),"y",c("ñ"),"n",c("[çc]"),"k",c("Ã"),"s",c(" & ")," and ",r," ",e,"",t," "];return function(t){return" "===(t=l(t.toLowerCase(),n))?"":t}}(),advanced:function(){const t=c("ae"),e=c("ai"),r=c("ay"),n=c("ey"),i=c("oe"),s=c("ue"),o=c("ie"),a=c("sz"),h=c("zs"),u=c("ck"),d=c("cc"),p=[t,"a",e,"ei",r,"ei",n,"ei",i,"o",s,"u",o,"i",a,"s",h,"s",c("sh"),"s",u,"k",d,"k",c("th"),"t",c("dt"),"t",c("ph"),"f",c("pf"),"f",c("ou"),"o",c("uo"),"u"];return function(t,e){return t?(2<(t=this.simple(t)).length&&(t=l(t,p)),e||1<t.length&&(t=f(t)),t):t}}(),extra:function(){const t=[c("p"),"b",c("z"),"s",c("[cgq]"),"k",c("n"),"m",c("d"),"t",c("[vw]"),"f",c("[aeiouy]"),""];return function(e){if(!e)return e;if(1<(e=this.advanced(e,!0)).length){e=e.split(" ");for(let r=0;r<e.length;r++){const n=e[r];1<n.length&&(e[r]=n[0]+l(n.substring(1),t))}e=f(e=e.join(" "))}return e}}(),balance:R},q=function(){function t(t){this.clear(),this.H=!0!==t&&t}return t.prototype.clear=function(){this.cache=j(),this.count=j(),this.index=j(),this.s=[]},t.prototype.set=function(t,e){if(this.H&&E(this.cache[t])){let r=this.s.length;if(r===this.H){r--;const t=this.s[r];delete this.cache[t],delete this.count[t],delete this.index[t]}this.index[t]=r,this.s[r]=t,this.count[t]=-1,this.cache[t]=e,this.get(t)}else this.cache[t]=e},t.prototype.get=function(t){const e=this.cache[t];if(this.H&&e){var r=++this.count[t];const e=this.index;let i=e[t];if(0<i){const s=this.s;for(var n=i;this.count[s[--i]]<=r&&-1!==i;);if(i++,i!==n){for(r=n;r>i;r--)n=s[r-1],s[r]=n,e[n]=r;s[i]=t,e[t]=i}}}return e},t}();return r}(function(){const t={},e="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(r,n,i,s,o){return i=e?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):r+".min.js",t[r+="-"+n]||(t[r]=[]),t[r][o]=new Worker(i),t[r][o].onmessage=s,t[r][o]}}()),this)},2711:function(t,e,r){function n(t,e){return void 0===e&&(e={}),t.map((t=>{var r,n;return{id:t.node.id,date:t.node.frontmatter.date,slug:t.node.fields.slug,tags:t.node.frontmatter.tags,categories:t.node.frontmatter.categories,title:t.node.frontmatter.title,de
1scription:t.node.frontmatter.description,...e.thumbnails&&{thumbnail:null===(r=t.node.frontmatter)||void 0===r||null===(n=r.thumbnail)||void 0===n?void 0:n.publicURL}}}))}function i(t){return t&&`${t}`.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map((t=>t.toLowerCase())).join("-")}function s(){const t=document.getElementById("append-comments-here"),e=document.createElement("script"),r=window.localStorage.getItem("theme");e.async=!0,e.src="https://utteranc.es/client.js",e.setAttribute("repo","taniarascia/comments"),e.setAttribute("issue-term","pathname"),e.setAttribute("id","utterances"),e.setAttribute("theme","light"===r?"github-light":"github-dark"),e.setAttribute("crossorigin","anonymous"),t.firstChild?console.error("Error adding utterances comments"):t.appendChild(e)}function o(t,e){void 0===e&&(e=2);const r=t.split(" ");return r[1].startsWith("0")?r[1]=r[1].slice(1,2):r[1]=r[1].slice(0,2),1===e||(r[1]+=","),r[0]+" "+r[e]}function a(t){const e=new Date(t),r=new Date,n=Math.abs(r-e);if(Math.floor(n/864e5)<50)return!0}r.d(e,{GQ:function(){return n},Yv:function(){return i},po:function(){return o},re:function(){return s},vw:function(){return a}})},2982:function(t,e,r){r.r(e),r.d(e,{default:function(){return Z}});var n={};r.r(n),r.d(n,{exclude:function(){return P},extract:function(){return L},parse:function(){return $},parseUrl:function(){return R},pick:function(){return q},stringify:function(){return I},stringifyUrl:function(){return U}});var i=r(6540),s=r(4794),o=r(8154),a=r(9705),c=r(5739),l=r(422),h=r.n(l);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(c){i=!0,s=c}finally{try{n||null==a.return||a.return()}finally{if(i)throw s}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=new Error("FlexSearch index is required. Check that your index exists and is valid."),d=new Error("FlexSearch store is required. Check that your store exists and is valid.");const p="%[a-f0-9]{2}",m=new RegExp("("+p+")|([^%]+?)","gi"),g=new RegExp("("+p+")+","gi");function y(t,e){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;e=e||1;const r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],y(r),y(n))}function b(t){try{return decodeURIComponent(t)}catch{let e=t.match(m)||[];for(let r=1;r<e.length;r++)e=(t=y(e,r).join("")).match(m)||[];return t}}function v(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return function(t){const e={"%FE%FF":"��","%FF%FE":"��"};let r=g.exec(t);for(;r;){try{e[r[0]]=decodeURIComponent(r[0])}catch{const t=b(r[0]);t!==r[0]&&(e[r[0]]=t)}r=g.exec(t)}e["%C2"]="�";const n=Object.keys(e);for(const i of n)t=t.replace(new RegExp(i,"g"),e[i]);return t}(t)}}function w(t,e){const r={};if(Array.isArray(e))for(const n of e){const e=Object.getOwnPropertyDescriptor(t,n);e?.enumerable&&Object.defineProperty(r,n,e)}else for(const n of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,n);if(i.enumerable){e(n,t[n],t)&&Object.defineProperty(r,n,i)}}return r}function k(t,e){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===t||""===e)return[];const r=t.indexOf(e);return-1===r?[]:[t.slice(0,r),t.slice(r+e.length)]}const E=t=>null==t,x=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),j=Symbol("encodeFragmentIdentifier");function N(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function O(t,e){return e.encode?e.strict?x(t):encodeURIComponent(t):t}function A(t,e){return e.decode?v(t):t}function S(t){return Array.isArray(t)?t.sort():"object"==typeof t?S(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function F(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function C(t,e,r){return"string"===r&&"string"==typeof t?t:"function"==typeof r&&"string"==typeof t?r(t):"boolean"===r&&null===t||("boolean"!==r||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()?"boolean"!==r||null===t||"1"!==t.toLowerCase()&&"0"!==t.toLowerCase()?"string[]"===r&&"none"!==e.arrayFormat&&"string"==typeof t?[t]:"number[]"!==r||"none"===e.arrayFormat||Number.isNaN(Number(t))||"string"!=typeof t||""===t.trim()?"number"!==r||Number.isNaN(Number(t))||"string"!=typeof t||""===t.trim()?!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()?e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?Number(t):t:"true"===t.toLowerCase():Number(t):[Number(t)]:"1"===t.toLowerCase():"true"===t.toLowerCase())}function L(t){const e=(t=F(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function $(t,e){N((e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...e}).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)]$/.exec(t),t=t.replace(/\[\d*]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[])$/.exec(t),t=t.replace(/\[]$/,""),e?void 0!==n[t]?n[t]=[...n[t],r]:n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[...n[t],r]:n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator)?r.split(t.arrayFormatSeparator).map((e=>A(e,t))):null===r?r:A(r,t);n[e]=i};case"bracket-separator":return(e,r,n)=>{const i=/(\[])$/.test(e);
1if(e=e.replace(/\[]$/,""),!i)return void(n[e]=r?A(r,t):r);const s=null===r?[]:A(r,t).split(t.arrayFormatSeparator);void 0!==n[e]?n[e]=[...n[e],...s]:n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[...[r[t]].flat(),e]:r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;const t=e.decode?i.replaceAll("+"," "):i;let[s,o]=k(t,"=");void 0===s&&(s=t),o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:A(o,e),r(A(s,e),o,n)}for(const[i,s]of Object.entries(n))if("object"==typeof s&&null!==s&&"string"!==e.types[i])for(const[t,r]of Object.entries(s)){const n=e.types[i],o="function"==typeof n?n:n?n.replace("[]",""):void 0;s[t]=C(r,e,o)}else"object"==typeof s&&null!==s&&"string"===e.types[i]?n[i]=Object.values(s).join(e.arrayFormatSeparator):n[i]=C(s,e,e.types[i]);return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return t[e]=Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?S(r):r,t}),Object.create(null))}function I(t,e){if(!t)return"";N((e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e}).arrayFormatSeparator);const r=r=>e.skipNull&&E(t[r])||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[O(e,t),"[",i,"]"].join("")]:[...r,[O(e,t),"[",O(i,t),"]=",O(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[O(e,t),"[]"].join("")]:[...r,[O(e,t),"[]=",O(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[O(e,t),":list="].join("")]:[...r,[O(e,t),":list=",O(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[O(r,t),e,O(i,t)].join("")]:[[n,O(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,O(e,t)]:[...r,[O(e,t),"=",O(n,t)].join("")]}}(e),i={};for(const[o,a]of Object.entries(t))r(o)||(i[o]=a);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{let i=t[r];if(e.replacer&&(i=e.replacer(r,i),void 0===i))return"";if(void 0===i)return"";if(null===i)return O(r,e);if(Array.isArray(i)){if(0===i.length&&"bracket-separator"===e.arrayFormat)return O(r,e)+"[]";let t=i;return e.replacer&&(t=i.map(((t,n)=>e.replacer(`${r}[${n}]`,t))).filter((t=>void 0!==t))),t.reduce(n(r),[]).join("&")}return O(r,e)+"="+O(i,e)})).filter((t=>t.length>0)).join("&")}function R(t,e){e={decode:!0,...e};let[r,n]=k(t,"#");return void 0===r&&(r=t),{url:r?.split("?")?.[0]??"",query:$(L(t),e),...e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:A(n,e)}:{}}}function U(t,e){e={encode:!0,strict:!0,[j]:!0,...e};const r=F(t.url).split("?")[0]||"";let n=I({...$(L(t.url),{sort:!1,...e}),...t.query},e);n&&=`?${n}`;let i=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);if("string"==typeof t.fragmentIdentifier){const n=new URL(r);n.hash=t.fragmentIdentifier,i=e[j]?n.hash:`#${t.fragmentIdentifier}`}return`${r}${n}${i}`}function q(t,e,r){r={parseFragmentIdentifier:!0,[j]:!1,...r};const{url:n,query:i,fragmentIdentifier:s}=R(t,r);return U({url:n,query:w(i,e),fragmentIdentifier:s},r)}function P(t,e,r){return q(t,Array.isArray(e)?t=>!e.includes(t):(t,r)=>!e(t,r),r)}var M=n,B=r(1098),D=r(5861);const z=t=>{let{count:e,query:r,handleSearch:n,setQuery:o,isLocal:a=!0,...c}=t;const l=(0,i.useRef)(null);return i.createElement("form",{onSubmit:t=>{if(t.preventDefault(),!a){const t=r?`/blog?search=${r}`:"";o(""),(0,s.navigate)(t)}}},i.createElement("div",Object.assign({className:"search-container "+(a?"":"with-button")},c),i.createElement("input",{ref:l,id:"search",type:"search",className:"searchbar "+(a?"with-icon":""),placeholder:a?`Search ${e} posts...`:"Search posts...",value:r,autoComplete:"off",onChange:n}),a&&i.createElement("img",{className:"search-icon",src:D.A,alt:"Search",onClick:()=>l.current.focus()}),!a&&i.createElement("button",{type:"submit",className:"transparent-button",disabled:!r},"Go")))};var T=r(3466),G=r(3341);const H=t=>{var e,r,n,o,a,c;let{data:l,section:p,detailed:m}=t;const g=(0,B.useLocation)(),{search:y}=M.parse(g.search),{0:b,1:v}
1=(0,i.useState)(y||""),w=(0,s.useStaticQuery)("2383531783"),{localSearchPages:k}=w,E=[{tag:"javascript",label:"JavaScript",image:null===(e=w.js)||void 0===e?void 0:e.publicURL},{tag:"react",label:"React",image:null===(r=w.react)||void 0===r?void 0:r.publicURL},{tag:"css",label:"CSS",image:null===(n=w.css)||void 0===n?void 0:n.publicURL},{tag:"php",label:"PHP",image:null===(o=w.php)||void 0===o?void 0:o.publicURL},{tag:"node",label:"Node",image:null===(a=w.node)||void 0===a?void 0:a.publicURL},{tag:"games",label:"Games",image:null===(c=w.snake)||void 0===c?void 0:c.publicURL},{tag:"life",label:"Life",image:G.A}],x=function(t,e,r,n){var s=u((0,i.useState)(null),2),o=s[0],a=s[1];return(0,i.useEffect)((function(){if(!e)throw f;if(!r)throw d}),[e,r]),(0,i.useEffect)((function(){if(e instanceof h())a(e);else{var t=h().create();t.import(e),a(t)}}),[e]),(0,i.useMemo)((function(){return t&&o&&r?o.search(t,n).map((function(t){return r[t]})):[]}),[t,o,r])}(b,k.index,k.store);return i.createElement(i.Fragment,null,i.createElement("div",{className:"quick-filters"},E.map((t=>{let{tag:e,label:r,image:n}=t;return i.createElement("div",{className:"tooltip-container tooltip-above",key:e},i.createElement("button",{type:"button","aria-label":`Filter posts by ${r}`,className:"quick-filter "+(b===e?"active":""),onClick:()=>(t=>{const e=b===t?"":t;(0,s.navigate)(e?`/${p}/?search=${e}`:`/${p}/`),v(e)})(e)},i.createElement("img",{src:n,alt:"",width:"22",height:"22"})),i.createElement("div",{className:"tooltip"},r))}))),i.createElement(z,{count:l.length,query:b,handleSearch:t=>{const e=t.target.value?`/${p}/?search=${t.target.value}`:"";(0,s.navigate)(e),v(t.target.value)},style:{marginBottom:"2.5rem"}}),i.createElement("section",null,b?x.length>0?i.createElement(T.A,{data:x,showYears:!0,query:b,detailed:m}):i.createElement("p",{style:{marginTop:"2rem"}},"Sorry, nothing matched that search."):i.createElement(T.A,{data:l,showYears:!0,detailed:m})))};var W=r(5288),Y=r(6108),_=r(2711),Q=r(1310);function Z(t){let{data:e}=t;const r=e.posts.edges,n=(0,i.useMemo)((()=>(0,_.GQ)(r,{thumbnails:!0})),[r]),c="Blog",l="Guides, tutorials, and notes on code and life.",h=i.createElement("div",null,`${l} `,i.createElement(s.Link,{to:"/shelves"},"Browse the shelves"),".");return i.createElement(i.Fragment,null,i.createElement(o.A,{title:`${c} | ${Q.A.siteTitle}`}),i.createElement(W.k,{customTitle:c,customDescription:l}),i.createElement(Y.M,null,i.createElement(a.l,{title:c,description:h,hasSearch:!0,icon:G.A}),i.createElement(H,{data:n,section:"blog",detailed:!0})))}Z.Layout=c.P},3466:function(t,e,r){r.d(e,{A:function(){return o}});var n=r(4506),i=r(6540),s=r(4751);const o=t=>{let{data:e=[],showYears:r,query:o,prefix:a,hideDate:c,yearOnly:l,numbered:h,...u}=t;const f=(0,i.useMemo)((()=>{const t={};return e.forEach((e=>{var r;const i=null===(r=e.date)||void 0===r?void 0:r.split(", ")[1];t[i]=[].concat((0,n.A)(t[i]||[]),[e])})),t}),[e]),d=(0,i.useMemo)((()=>Object.keys(f).reverse()),[f]);return r?d.map((t=>{const e=f[t].length;return i.createElement("section",{className:"year",key:t},i.createElement("h2",{className:"flex-align-center gap"},i.createElement("div",null,t),i.createElement("div",{className:"chip"},i.createElement("span",{className:"chip-highlight"},e),1===e?"post":"posts")),i.createElement("div",{className:"posts"},f[t].map((t=>i.createElement(s.L,Object.assign({key:t.id,node:t,query:o,prefix:a},u))))))})):i.createElement("div",{className:"posts"},e.map(((t,e)=>i.createElement(s.L,Object.assign({key:t.id,node:t,query:o,prefix:a,hideDate:c,yearOnly:l,number:h?e+1:void 0},u)))))}},4751:function(t,e,r){r.d(e,{L:function(){return a}});var n=r(6540),i=r(4794),s=r(2711);const o=(t,e)=>{if(!e)return t;const r=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),i=t.search(r);if(-1===i)return t;const s=i+e.length;return n.createElement(n.Fragment,null,t.slice(0,i),n.createElement("strong",{className:"searched"},t.slice(i,s)),t.slice(s))},a=t=>{let e,{node:r,prefix:a,includeYear:c,query:l,detailed:h,number:u}=t;r.date&&(e=c?(0,s.po)(r.date):(0,s.po)(r.date,1));const f=(0,n.useMemo)((()=>(0,s.vw)(r.date)),[r.date]),d=(t,e)=>n.createElement("div",null,o(t,e));return h?n.createElement(i.Link,{to:a?`/${a}${r.slug}`:r.slug,key:r.id,className:"post detailed"},n.createElement("div",{className:"post-thumbnail"},r.thumbnail&&n.createElement("img",{src:r.thumbnail,alt:""})),n.createElement("div",{className:"post-info"},n.createElement("div",{className:"post-title"},d(r.title,l),f&&n.createElement("div",{className:"button x-small"},"⨠New")),r.date&&n.createElement("time",null,e),r.description&&n.createElement("p",{className:"post-description"},r.description)),r.tags&&n.createElement("div",{className:"post-tags"},r.tags.map((t=>n.createElement("span",{className:"tag",key:t},o(t,l)))))):n.createElement(i.Link,{to:a?`/${a}${r.slug}`:r.slug,key:r.id,className:"post"},n.createElement("div",null,u&&n.createElement("span",{className:"post-number"},u,"."),f&&n.createElement("div",{className:"button x-small"},"⨠New")," ",d(r.title,l)),n.createElement("time",null,e))}},6108:function(t,e,r){r.d(e,{M:function(){return i}});var n=r(6540);const i=t=>{let{children:e}=t;return n.createElement("main",{className:"main-content page"},e)}}}]); 2//# sourceMappingURL=component---src-pages-blog-js-8020fc84662d7967dd59.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.