1"use strict";(self.webpackChunk_nematis_wp_helpers=self.webpackChunk_nematis_wp_helpers||[]).push([[401],{245:function(t,e,r){var n=r(620);var i=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var s=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(t,e){return function(r,n,o,a=10){const c=t[e];if(!s(r))return;if(!i(n))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof a)return void console.error("If specified, the hook priority must be a number.");const l={callback:o,priority:a,namespace:n};if(c[r]){const t=c[r].handlers;let e;for(e=t.length;e>0&&!(a>=t[e-1].priority);e--);e===t.length?t[e]=l:t.splice(e,0,l),c.__current.forEach(t=>{t.name===r&&t.currentIndex>=e&&t.currentIndex++})}else c[r]={handlers:[l],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,n,o,a)}};var a=function(t,e,r=!1){return function(n,o){const a=t[e];if(!s(n))return;if(!r&&!i(o))return;if(!a[n])return 0;let c=0;if(r)c=a[n].handlers.length,a[n]={runs:a[n].runs,handlers:[]};else{const t=a[n].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===o&&(t.splice(e,1),c++,a.__current.forEach(t=>{t.name===n&&t.currentIndex>=e&&t.currentIndex--}))}return"hookRemoved"!==n&&t.doAction("hookRemoved",n,o),c}};var c=function(t,e){return function(r,n){const i=t[e];return void 0!==n?r in i&&i[r].handlers.some(t=>t.namespace===n):r in i}};var l=function(t,e,r,n){return function(i,...s){const o=t[e];o[i]||(o[i]={handlers:[],runs:0}),o[i].runs++;const a=o[i].handlers;if(!a||!a.length)return r?s[0]:void 0;const c={name:i,currentIndex:0};return(n?async function(){try{o.__current.add(c);let t=r?s[0]:void 0;for(;c.currentIndex<a.length;){const e=a[c.currentIndex];t=await e.callback.apply(null,s),r&&(s[0]=t),c.currentIndex++}return r?t:void 0}finally{o.__current.delete(c)}}:function(){try{o.__current.add(c);let t=r?s[0]:void 0;for(;c.currentIndex<a.length;){t=a[c.currentIndex].callback.apply(null,s),r&&(s[0]=t),c.currentIndex++}return r?t:void 0}finally{o.__current.delete(c)}})()}};var h=function(t,e){return function(){var r;const n=t[e],i=Array.from(n.__current);return null!==(r=i.at(-1)?.name)&&void 0!==r?r:null}};var u=function(t,e){return function(r){const n=t[e];return void 0===r?n.__current.size>0:Array.from(n.__current).some(t=>t.name===r)}};var d=function(t,e){return function(r){const n=t[e];if(s(r))return n[r]&&n[r].runs?n[r].runs:0}};class m{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=c(this,"actions"),this.hasFilter=c(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions",!1,!1),this.doActionAsync=l(this,"actions",!1,!0),this.applyFilters=l(this,"filters",!0,!1),this.applyFiltersAsync=l(this,"filters",!0,!0),this.currentAction=h(this,"actions"),this.currentFilter=h(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")}}var f=function(){return new m};const p=f(),{addAction:_,addFilter:A,removeAction:g,removeFilter:y,hasAction:k,hasFilter:v,removeAllActions:F,removeAllFilters:N,doAction:b,doActionAsync:w,applyFilters:I,applyFiltersAsync:x,currentAction:T,currentFilter:E,doingAction:S,doingFilter:H,didAction:V,didFilter:j,actions:z,filters:R}=p;window[n.A.getHooksInstanceName()]=f()},620:function(t,e,r){r.d(e,{A:function(){return n}});
1class n{static getVendor(){return"nematis"}static getEnvironment(){return null}static getFilterType(){return null}static getFilterTypeName(){return null}static getFilterNameSeparator(){return"."}static getNamespaceSeparator(){return"/"}static filterName(t){const e=this.getFilterNameSeparator(),r=new RegExp(this.getNamespaceSeparator(),"g");t=t.replace(r,e);return this._noEmptyArrayValues([this.getFilterTypeName(),t.trim()]).join(e)}static namespace(t){const e=this.getNamespaceSeparator(),r=new RegExp(`\\${this.getFilterNameSeparator()}`,"g");t=t.replace(r,e);return this._noEmptyArrayValues([this.getVendor(),this.getEnvironment(),this.getFilterType(),this.getFilterTypeName(),t.trim()]).join(e)}static getHooksInstanceName(){return`_${this.getVendor()}Hooks`}static addAction(t,e,r,n=10){const i=this._buildNamespaceArgument(t,r);this._hooks.addAction(this.filterName(t),i,e,n)}static addFilter(t,e,r,n=10){const i=this._buildNamespaceArgument(t,r);this._hooks.addFilter(this.filterName(t),i,e,n)}static removeAction(t,e){this._hooks.removeAction(this.filterName(t),this._buildNamespaceArgument(t,e))}static removeFilter(t,e){this._hooks.removeFilter(this.filterName(t),this._buildNamespaceArgument(t,e))}static removeAllActions(t){this._hooks.removeAllActions(this.filterName(t))}static removeAllFilters(t){this._hooks.removeAllFilters(this.filterName(t))}static doAction(t,...e){this._hooks.doAction(this.filterName(t),...e)}static async doActionAsync(t,...e){await this._runAsyncHook("actions",!1,t,...e)}static applyFilters(t,...e){return this._hooks.applyFilters(this.filterName(t),...e)}static applyFiltersAsync(t,...e){return this._runAsyncHook("filters",!0,t,...e)}static doingAction(t){return this._hooks.doingAction(this.filterName(t))}static doingFilter(t){return this._hooks.doingFilter(this.filterName(t))}static didAction(t){return this._hooks.didAction(this.filterName(t))}static didFilter(t){return this._hooks.didFilter(this.filterName(t))}static hasAction(t,e){const r=this._buildNamespaceArgument(t,e);return this._hooks.hasAction(this.filterName(t),r)}static hasFilter(t,e){const r=this._buildNamespaceArgument(t,e);return this._hooks.hasFilter(this.filterName(t),r)}static get _actions(){return this._hooks.actions}static get _filters(){return this._hooks.filters}static get _defaultHooks(){return this._hooks.defaultHooks}static get _hooks(){const t=this.getHooksInstanceName();return t in window?window[t]:null}static _noEmptyArrayValues(t){return t.filter(t=>t)}static _buildNamespaceArgument(t,e){const r=this.getNamespaceSeparator();return this._noEmptyArrayValues([this.namespace(t,!0),e]).join(r)}static async _runAsyncHook(t,e,r,...n){const i=this.filterName(r),s=this._hooks[t];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const o=s[i].handlers;if(!o||!o.length)return e?n[0]:null;const a={name:i,currentIndex:0},c=s.__current instanceof Set;for(c?s.__current.add(a):s.__current.push(a);a.currentIndex<o.length;){const t=o[a.currentIndex];try{const r=await t.callback.apply(null,n);e&&(n[0]=r)}catch(t){}a.currentIndex++}return c?s.__current.delete(a):s.__current.pop(),e?n[0]:void 0}}}},function(t){var e;e=245,t(t.s=e)}]); 2//# sourceMappingURL=hooks.0304c09a.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.