PageSourceSearch

https://hermods.se/wp-content/themes/ams/js/partials/ams-hermods-child.min.js?ver=1781178705

js hermods.se collected 2026-10-01 12:14:17 UTC 57,514 bytes, 1 lines download raw bytes

vendor: 10,589 bytes, line 1
1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("underscore",e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t._,i=t._=e();i.noConflict=function(){return t._=n,i}}())}(this,(function(){var t="1.13.1",e="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},n=Array.prototype,i=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,o=n.push,r=n.slice,c=i.toString,s=i.hasOwnProperty,l="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,d=Array.isArray,f=Object.keys,p=Object.create,m=l&&ArrayBuffer.isView,v=isNaN,h=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],y=Math.pow(2,53)-1;function _(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),i=Array(n),a=0;a<n;a++)i[a]=arguments[a+e];switch(e){case 0:return t.call(this,i);case 1:return t.call(this,arguments[0],i);case 2:return t.call(this,arguments[0],arguments[1],i)}var o=Array(e+1);for(a=0;a<e;a++)o[a]=arguments[a];return o[e]=i,t.apply(this,o)}}function w(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function j(t){return void 0===t}function k(t){return!0===t||!1===t||"[object Boolean]"===c.call(t)}function x(t){var e="[object "+t+"]";return function(t){return c.call(t)===e}}var C=x("String"),S=x("Number"),N=x("Date"),O=x("RegExp"),E=x("Error"),A=x("Symbol"),T=x("ArrayBuffer"),I=x("Function"),L=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof L&&(I=function(t){return"function"==typeof t||!1});var P=I,M=x("Object"),D=u&&M(new DataView(new ArrayBuffer(8))),H="undefined"!=typeof Map&&M(new Map),q=x("DataView");var R=D?function(t){return null!=t&&P(t.getInt8)&&T(t.buffer)}:q,B=d||x("Array");function V(t,e){return null!=t&&s.call(t,e)}var U=x("Arguments");!function(){U(arguments)||(U=function(t){return V(t,"callee")})}();var F=U;function J(t){return S(t)&&v(t)}function K(t){return function(){return t}}function W(t){return function(e){var n=t(e);return"number"==typeof n&&n>=0&&n<=y}}function z(t){return function(e){return null==e?void 0:e[t]}}var Q=z("byteLength"),X=W(Q),$=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var Y=l?function(t){return m?m(t)&&!R(t):X(t)&&$.test(c.call(t))}:K(!1),G=z("length");function Z(t,e){e=function(t){for(var e={},n=t.length,i=0;i<n;++i)e[t[i]]=!0;return{contains:function(t){return e[t]},push:function(n){return e[n]=!0,t.push(n)}}}(e);var n=b.length,a=t.constructor,o=P(a)&&a.prototype||i,r="constructor";for(V(t,r)&&!e.contains(r)&&e.push(r);n--;)(r=b[n])in t&&t[r]!==o[r]&&!e.contains(r)&&e.push(r)}function tt(t){if(!w(t))return[];if(f)return f(t);var e=[];for(var n in t)V(t,n)&&e.push(n);return g&&Z(t,e),e}function et(t,e){var n=tt(e),i=n.length;if(null==t)return!i;for(var a=Object(t),o=0;o<i;o++){var r=n[o];if(e[r]!==a[r]||!(r in a))return!1}return!0}function nt(t){return t instanceof nt?t:this instanceof nt?void(this._wrapped=t):new nt(t)}function it(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,Q(t))}nt.VERSION=t,nt.prototype.value=function(){return this._wrapped},nt.prototype.valueOf=nt.prototype.toJSON=nt.prototype.value,nt.prototype.toString=function(){return String(this._wrapped)};var at="[object DataView]";function ot(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var a=typeof t;return("function"===a||"object"===a||"object"==typeof e)&&rt(t,e,n,i)}function rt(t,e,n,i){t instanceof nt&&(t=t._wrapped),e instanceof nt&&(e=e._wrapped);var o=c.call(t);if(o!==c.call(e))return!1;if(D&&"[object Object]"==o&&R(t)){if(!R(e))return!1;o=at}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return a.valueOf.call(t)===a.valueOf.call(e);case"[object ArrayBuffer]":case at:return rt(it(t),it(e),n,i)}var r="[object Array]"===o;if(!r&&Y(t)){if(Q(t)!==Q(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,l=e.constructor;if(s!==l&&!(P(s)&&s instanceof s&&P(l)&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}i=i||[];for(var u=(n=n||[]).length;u--;)if(n[u]===t)return i[u]===e;if(n.push(t),i.push(e),r){if((u=t.length)!==e.length)return!1;for(;u--;)if(!ot(t[u],e[u],n,i))return!1}else{var d,f=tt(t);if(u=f.length,tt(e).length!==u)return!1;for(;u--;)if(!V(e,d=f[u])||!ot(t[d],e[d],n,i))return!1}return n.pop(),i.pop(),!0}function ct(t){if(!w(t))return[];var e=[];for(var n in t)e.push(n);return g&&Z(t,e),e}function st(t){var e=G(t);return function(n){if(null==n)return!1;var i=ct(n);if(G(i))return!1;for(var a=0;a<e;a++)if(!P(n[t[a]]))return!1;return t!==pt||!P(n[lt])}}var lt="forEach",ut=["clear","delete"],dt=["get","has","set"],ft=ut.concat(lt,dt),pt=ut.concat(dt),mt=["add"].concat(ut,lt,"has"),vt=H?st(ft):x("Map"),ht=H?st(pt):x("WeakMap"),gt=H?st(mt):x("Set"),bt=x("WeakSet");function yt(t){for(var e=tt(t),n=e.length,i=Array(n),a=0;a<n;a++)i[a]=t[e[a]];return i}function _t(t){for(var e={},n=tt(t),i=0,a=n.length;i<a;i++)e[t[n[i]]]=n[i];return e}function wt(t){var e=[];for(var n in t)P(t[n])&&e.push(n);return e.sort()}function jt(t,e){return function(n){var i=arguments.length;if(e&&(n=Object(n)),i<2||null==n)return n;for(var a=1;a<i;a++)for(var o=arguments[a],r=t(o),c=r.length,s=0;s<c;s++){var l=r[s];e&&void 0!==n[l]||(n[l]=o[l])}return n}}var kt=jt(ct),xt=jt(tt),Ct=jt(ct,!0);function St(t){if(!w(t))return{};if(p)return p(t);var e=function(){};e.prototype=t;var n=new e;return e.prototype=null,n}function Nt(t){return w(t)?B(t)?t.slice():kt({},t):t}function Ot(t){return B(t)?t:[t]}function Et(t){return nt.toPath(t)}function At(t,e){for(var n=e.length,i=0;i<n;i++){if(null==t)return;t=t[e[i]]}return n?t:void 0}function Tt(t,e,n){var i=At(t,Et(e));return j(i)?n:i}function It(t){return t}function Lt(t){return t=xt({},t),function(e){return et(e,t)}}function Pt(t){return t=Et(t),function(e){return At(e,t)}}function Mt(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,i,a){return t.call(e,n,i,a)};case 4:return function(n,i,a,o){return t.call(e,n,i,a,o)}}return function(){return t.apply(e,arguments)}}function Dt(t,e,n){return null==t?It:P(t)?Mt(t,e,n):w(t)&&!B(t)?Lt(t):Pt(t)}function Ht(t,e){return Dt(t,e,1/0)}function qt(t,e,n){return nt.iteratee!==Ht?nt.iteratee(t,e):Dt(t,e,n)}function Rt(){}function Bt(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}nt.toPath=Ot,nt.iteratee=Ht;var Vt=Date.now||function(){return(new Date).getTime()};function Ut(t){var e=function(e){return t[e]},n="(?:"+tt(t).join("|")+")",i=RegExp(n),a=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(a,e):t}}var Ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Jt=Ut(Ft),Kt=Ut(_t(Ft)),Wt=nt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},zt=/(.)^/,Qt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Xt=/\\|'|\r|\n|\u2028|\u2029/g;function $t(t){return"\\"+Qt[t]}var Yt=/^\s*(\w|\$)+\s*$/;var Gt=0;function Zt(t,e,n,i,a){if(!(i instanceof e))return t.apply(n,a);var o=St(t.prototype),r=t.apply(o,a);return w(r)?r:o}var te=_((function(t,e){var n=te.placeholder,i=function(){for(var a=0,o=e.length,r=Array(o),c=0;c<o;c++)r[c]=e[c]===n?arguments[a++]:e[c];for(;a<arguments.length;)r.push(arguments[a++]);return Zt(t,i,this,this,r)};return i}));te.placeholder=nt;var ee=_((function(t,e,n){if(!P(t))throw new TypeError("Bind must be called on a function");var i=_((function(a){return Zt(t,i,e,this,n.concat(a))}));return i})),ne=W(G);function ie(t,e,n,i){if(i=i||[],e||0===e){if(e<=0)return i.concat(t)}else e=1/0;for(var a=i.length,o=0,r=G(t);o<r;o++){var c=t[o];if(ne(c)&&(B(c)||F(c)))if(e>1)ie(c,e-1,n,i),a=i.length;else for(var s=0,l=c.length;s<l;)i[a++]=c[s++];else n||(i[a++]=c)}return i}var ae=_((function(t,e){var n=(e=ie(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=e[n];t[i]=ee(t[i],t)}return t}));var oe=_((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),re=te(oe,nt,1);function ce(t){return function(){return!t.apply(this,arguments)}}function se(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}var le=te(se,2);function ue(t,e,n){e=qt(e,n);for(var i,a=tt(t),o=0,r=a.length;o<r;o++)if(e(t[i=a[o]],i,t))return i}function de(t){return function(e,n,i){n=qt(n,i);for(var a=G(e),o=t>0?0:a-1;o>=0&&o<a;o+=t)if(n(e[o],o,e))return o;return-1}}var fe=de(1),pe=de(-1);function me(t,e,n,i){for(var a=(n=qt(n,i,1))(e),o=0,r=G(t);o<r;){var c=Math.floor((o+r)/2);n(t[c])<a?o=c+1:r=c}return o}function ve(t,e,n){return function(i,a,o){var c=0,s=G(i);if("number"==typeof o)t>0?c=o>=0?o:Math.max(o+s,c):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return i[o=n(i,a)]===a?o:-1;if(a!=a)return(o=e(r.call(i,c,s),J))>=0?o+c:-1;for(o=t>0?c:s-1;o>=0&&o<s;o+=t)if(i[o]===a)return o;return-1}}var he=ve(1,fe,me),ge=ve(-1,pe);function be(t,e,n){var i=(ne(t)?fe:ue)(t,e,n);if(void 0!==i&&-1!==i)return t[i]}function ye(t,e,n){var i,a;if(e=Mt(e,n),ne(t))for(i=0,a=t.length;i<a;i++)e(t[i],i,t);else{var o=tt(t);for(i=0,a=o.length;i<a;i++)e(t[o[i]],o[i],t)}return t}function _e(t,e,n){e=qt(e,n);for(var i=!ne(t)&&tt(t),a=(i||t).length,o=Array(a),r=0;r<a;r++){var c=i?i[r]:r;o[r]=e(t[c],c,t)}return o}function we(t){var e=function(e,n,i,a){var o=!ne(e)&&tt(e),r=(o||e).length,c=t>0?0:r-1;for(a||(i=e[o?o[c]:c],c+=t);c>=0&&c<r;c+=t){var s=o?o[c]:c;i=n(i,e[s],s,e)}return i};return function(t,n,i,a){var o=arguments.length>=3;return e(t,Mt(n,a,4),i,o)}}var je=we(1),ke=we(-1);function xe(t,e,n){var i=[];return e=qt(e,n),ye(t,(function(t,n,a){e(t,n,a)&&i.push(t)})),i}function Ce(t,e,n){e=qt(e,n);for(var i=!ne(t)&&tt(t),a=(i||t).length,o=0;o<a;o++){var r=i?i[o]:o;if(!e(t[r],r,t))return!1}return!0}function Se(t,e,n){e=qt(e,n);for(var i=!ne(t)&&tt(t),a=(i||t).length,o=0;o<a;o++){var r=i?i[o]:o;if(e(t[r],r,t))return!0}return!1}function Ne(t,e,n,i){return ne(t)||(t=yt(t)),("number"!=typeof n||i)&&(n=0),he(t,e,n)>=0}var Oe=_((function(t,e,n){var i,a;
vendor: 5,798 bytes, line 1
1return P(e)?a=e:(e=Et(e),i=e.slice(0,-1),e=e[e.length-1]),_e(t,(function(t){var o=a;if(!o){if(i&&i.length&&(t=At(t,i)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function Ee(t,e){return _e(t,Pt(e))}function Ae(t,e,n){var i,a,o=-1/0,r=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var c=0,s=(t=ne(t)?t:yt(t)).length;c<s;c++)null!=(i=t[c])&&i>o&&(o=i);else e=qt(e,n),ye(t,(function(t,n,i){((a=e(t,n,i))>r||a===-1/0&&o===-1/0)&&(o=t,r=a)}));return o}function Te(t,e,n){if(null==e||n)return ne(t)||(t=yt(t)),t[Bt(t.length-1)];var i=ne(t)?Nt(t):yt(t),a=G(i);e=Math.max(Math.min(e,a),0);for(var o=a-1,r=0;r<e;r++){var c=Bt(r,o),s=i[r];i[r]=i[c],i[c]=s}return i.slice(0,e)}function Ie(t,e){return function(n,i,a){var o=e?[[],[]]:{};return i=qt(i,a),ye(n,(function(e,a){var r=i(e,a,n);t(o,e,r)})),o}}var Le=Ie((function(t,e,n){V(t,n)?t[n].push(e):t[n]=[e]})),Pe=Ie((function(t,e,n){t[n]=e})),Me=Ie((function(t,e,n){V(t,n)?t[n]++:t[n]=1})),De=Ie((function(t,e,n){t[n?0:1].push(e)}),!0),He=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function qe(t,e,n){return e in n}var Re=_((function(t,e){var n={},i=e[0];if(null==t)return n;P(i)?(e.length>1&&(i=Mt(i,e[1])),e=ct(t)):(i=qe,e=ie(e,!1,!1),t=Object(t));for(var a=0,o=e.length;a<o;a++){var r=e[a],c=t[r];i(c,r,t)&&(n[r]=c)}return n})),Be=_((function(t,e){var n,i=e[0];return P(i)?(i=ce(i),e.length>1&&(n=e[1])):(e=_e(ie(e,!1,!1),String),i=function(t,n){return!Ne(e,n)}),Re(t,i,n)}));function Ve(t,e,n){return r.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function Ue(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:Ve(t,t.length-e)}function Fe(t,e,n){return r.call(t,null==e||n?1:e)}var Je=_((function(t,e){return e=ie(e,!0,!0),xe(t,(function(t){return!Ne(e,t)}))})),Ke=_((function(t,e){return Je(t,e)}));function We(t,e,n,i){k(e)||(i=n,n=e,e=!1),null!=n&&(n=qt(n,i));for(var a=[],o=[],r=0,c=G(t);r<c;r++){var s=t[r],l=n?n(s,r,t):s;e&&!n?(r&&o===l||a.push(s),o=l):n?Ne(o,l)||(o.push(l),a.push(s)):Ne(a,s)||a.push(s)}return a}var ze=_((function(t){return We(ie(t,!0,!0))}));function Qe(t){for(var e=t&&Ae(t,G).length||0,n=Array(e),i=0;i<e;i++)n[i]=Ee(t,i);return n}var Xe=_(Qe);function $e(t,e){return t._chain?nt(e).chain():e}function Ye(t){return ye(wt(t),(function(e){var n=nt[e]=t[e];nt.prototype[e]=function(){var t=[this._wrapped];return o.apply(t,arguments),$e(this,n.apply(nt,t))}})),nt}ye(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=n[t];nt.prototype[t]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),$e(this,n)}})),ye(["concat","join","slice"],(function(t){var e=n[t];nt.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),$e(this,t)}}));var Ge={__proto__:null,VERSION:t,restArguments:_,isObject:w,isNull:function(t){return null===t},isUndefined:j,isBoolean:k,isElement:function(t){return!(!t||1!==t.nodeType)},isString:C,isNumber:S,isDate:N,isRegExp:O,isError:E,isSymbol:A,isArrayBuffer:T,isDataView:R,isArray:B,isFunction:P,isArguments:F,isFinite:function(t){return!A(t)&&h(t)&&!isNaN(parseFloat(t))},isNaN:J,isTypedArray:Y,isEmpty:function(t){if(null==t)return!0;var e=G(t);return"number"==typeof e&&(B(t)||C(t)||F(t))?0===e:0===G(tt(t))},isMatch:et,isEqual:function(t,e){return ot(t,e)},isMap:vt,isWeakMap:ht,isSet:gt,isWeakSet:bt,keys:tt,allKeys:ct,values:yt,pairs:function(t){for(var e=tt(t),n=e.length,i=Array(n),a=0;a<n;a++)i[a]=[e[a],t[e[a]]];return i},invert:_t,functions:wt,methods:wt,extend:kt,extendOwn:xt,assign:xt,defaults:Ct,create:function(t,e){var n=St(t);return e&&xt(n,e),n},clone:Nt,tap:function(t,e){return e(t),t},get:Tt,has:function(t,e){for(var n=(e=Et(e)).length,i=0;i<n;i++){var a=e[i];if(!V(t,a))return!1;t=t[a]}return!!n},mapObject:function(t,e,n){e=qt(e,n);for(var i=tt(t),a=i.length,o={},r=0;r<a;r++){var c=i[r];o[c]=e(t[c],c,t)}return o},identity:It,constant:K,noop:Rt,toPath:Ot,property:Pt,propertyOf:function(t){return null==t?Rt:function(e){return Tt(t,e)}},matcher:Lt,matches:Lt,times:function(t,e,n){var i=Array(Math.max(0,t));e=Mt(e,n,1);for(var a=0;a<t;a++)i[a]=e(a);return i},random:Bt,now:Vt,escape:Jt,unescape:Kt,templateSettings:Wt,template:function(t,e,n){!e&&n&&(e=n),e=Ct({},e,nt.templateSettings);var i=RegExp([(e.escape||zt).source,(e.interpolate||zt).source,(e.evaluate||zt).source].join("|")+"|$","g"),a=0,o="__p+='";t.replace(i,(function(e,n,i,r,c){return o+=t.slice(a,c).replace(Xt,$t),a=c+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":r&&(o+="';\n"+r+"\n__p+='"),e})),o+="';\n";var r,c=e.variable;if(c){if(!Yt.test(c))throw new Error("variable is not a bare identifier: "+c)}else o="with(obj||{}){\n"+o+"}\n",c="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{r=new Function(c,"_",o)}catch(t){throw t.source=o,t}var s=function(t){return r.call(this,t,nt)};return s.source="function("+c+"){\n"+o+"}",s},result:function(t,e,n){var i=(e=Et(e)).length;if(!i)return P(n)?n.call(t):n;for(var a=0;a<i;a++){var o=null==t?void 0:t[e[a]];void 0===o&&(o=n,a=i),t=P(o)?o.call(t):o}return t},uniqueId:function(t){var e=++Gt+"";return t?t+e:e},chain:function(t){var e=nt(t);return e._chain=!0,e},iteratee:Ht,partial:te,bind:ee,bindAll:ae,memoize:function(t,e){var n=function(i){var a=n.cache,o=""+(e?e.apply(this,arguments):i);return V(a,o)||(a[o]=t.apply(this,arguments)),a[o]};return n.cache={},n},delay:oe,defer:re,throttle:function(t,e,n){var i,a,o,r,c=0;n||(n={});var s=function(){c=!1===n.leading?0:Vt(),i=null,r=t.apply(a,o),i||(a=o=null)},l=function(){var l=Vt();c||!1!==n.leading||(c=l);var u=e-(l-c);return a=this,o=arguments,u<=0||u>
1e?(i&&(clearTimeout(i),i=null),c=l,r=t.apply(a,o),i||(a=o=null)):i||!1===n.trailing||(i=setTimeout(s,u)),r};return l.cancel=function(){clearTimeout(i),c=0,i=a=o=null},l},debounce:function(t,e,n){var i,a,o,r,c,s=function(){var l=Vt()-a;e>l?i=setTimeout(s,e-l):(i=null,n||(r=t.apply(c,o)),i||(o=c=null))},l=_((function(l){return c=this,o=l,a=Vt(),i||(i=setTimeout(s,e),n&&(r=t.apply(c,o))),r}));return l.cancel=function(){clearTimeout(i),i=o=c=null},l},wrap:function(t,e){return te(e,t)},negate:ce,compose:function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},after:function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},before:se,once:le,findKey:ue,findIndex:fe,findLastIndex:pe,sortedIndex:me,indexOf:he,lastIndexOf:ge,find:be,detect:be,findWhere:function(t,e){return be(t,Lt(e))},each:ye,forEach:ye,map:_e,collect:_e,reduce:je,foldl:je,inject:je,reduceRight:ke,foldr:ke,filter:xe,select:xe,reject:function(t,e,n){return xe(t,ce(qt(e)),n)},every:Ce,all:Ce,some:Se,any:Se,contains:Ne,includes:Ne,include:Ne,invoke:Oe,pluck:Ee,where:function(t,e){return xe(t,Lt(e))},max:Ae,min:function(t,e,n){var i,a,o=1/0,r=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var c=0,s=(t=ne(t)?t:yt(t)).length;c<s;c++)null!=(i=t[c])&&i<o&&(o=i);else e=qt(e,n),ye(t,(function(t,n,i){((a=e(t,n,i))<r||a===1/0&&o===1/0)&&(o=t,r=a)}));return o},shuffle:function(t){return Te(t,1/0)},sample:Te,sortBy:function(t,e,n){var i=0;return e=qt(e,n),Ee(_e(t,(function(t,n,a){return{value:t,index:i++,criteria:e(t,n,a)}})).sort((function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return t.index-e.index})),"value")},groupBy:Le,indexBy:Pe,countBy:Me,partition:De,toArray:function(t){return t?B(t)?r.call(t):C(t)?t.match(He):ne(t)?_e(t,It):yt(t):[]},size:function(t){return null==t?0:ne(t)?t.length:tt(t).length},pick:Re,omit:Be,first:Ue,head:Ue,take:Ue,initial:Ve,last:function(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:Fe(t,Math.max(0,t.length-e))},rest:Fe,tail:Fe,drop:Fe,compact:function(t){return xe(t,Boolean)},flatten:function(t,e){return ie(t,e,!1)},without:Ke,uniq:We,unique:We,union:ze,intersection:function(t){for(var e=[],n=arguments.length,i=0,a=G(t);i<a;i++){var o=t[i];if(!Ne(e,o)){var r;for(r=1;r<n&&Ne(arguments[r],o);r++);r===n&&e.push(o)}}return e},difference:Je,unzip:Qe,transpose:Qe,zip:Xe,object:function(t,e){for(var n={},i=0,a=G(t);i<a;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},range:function(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var i=Math.max(Math.ceil((e-t)/n),0),a=Array(i),o=0;o<i;o++,t+=n)a[o]=t;return a},chunk:function(t,e){if(null==e||e<1)return[];for(var n=[],i=0,a=t.length;i<a;)n.push(r.call(t,i,i+=e));return n},mixin:Ye,default:nt},Ze=Ye(Ge);return Ze._=Ze,Ze})),window.wp=window.wp||{},function(t){var e="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize((function(e){var n,i={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(a){return(n=n||_.template(t("#tmpl-"+e).html(),i))(a)}})),wp.ajax={settings:e.ajax||{},post:function(t,e){return wp.ajax.send({data:_.isObject(t)?t:_.extend(e||{},{action:t})})},send:function(e,n){var i,a;return _.isObject(e)?n=e:(n=n||{}).data=_.extend(n.data||{},{action:e}),n=_.defaults(n||{},{type:"POST",url:wp.ajax.settings.url,context:this}),a=t.Deferred((function(i){n.success&&i.done(n.success),n.error&&i.fail(n.error),delete n.success,delete n.error,i.jqXHR=t.ajax(n).done((function(t){if("1"!==t&&1!==t||(t={success:!0}),_.isObject(t)&&!_.isUndefined(t.success)){var n=this;i.done((function(){e&&e.data&&"query-attachments"===e.data.action&&i.jqXHR.hasOwnProperty("getResponseHeader")&&i.jqXHR.getResponseHeader("X-WP-Total")?n.totalAttachments=parseInt(i.jqXHR.getResponseHeader("X-WP-Total"),10):n.totalAttachments=0})),i[t.success?"resolveWith":"rejectWith"](this,[t.data])}else i.rejectWith(this,[t])})).fail((function(){i.rejectWith(this,arguments)}))})),(i=a.promise()).abort=function(){return a.jqXHR.abort(),this},i}}}(jQuery),function(t){t((function(){t("#contact-form-button").on("click",(function(){t("html").addClass("overflow-lock"),t(".contact-form-overlay").addClass("is-active")})),t("#contact-form-button-sticky").on("click",(function(){t("html").toggleClass("overflow-lock"),t(".contact-form-overlay").toggleClass("is-active")})),t(".close-contact-form").on("click",(function(){t(".contact-form-overlay").removeClass("is-active"),t("html").removeClass("overflow-lock")})),t("#submit-contact-form").on("click",(function(e){if(t(this).closest("form")[0].checkValidity()&&e.preventDefault(),t("#privacy").is(":checked")){var n="",i=null,a=null;n=t("#contact-form-education-type").is("input")?t("#contact-form-education-type").val():t("#contact-form-education-type :selected").val(),t("#contact-form-location-select").length>0&&(i=t("#contact-form-location-select :selected").text(),a=t("#contact-form-location-select :selected").val());var o={firstname:t("input[name='firstname']").val(),lastname:t("input[name='lastname']").val(),email:t("input[name='email']").val(),phone:t("input[name='phone']").val(),location:i,location_slug:a,education:t("input[name='education-name']").val(),channel:n,education_id:t("input[name='education_id']").val(),education_type_id:t("[name='education_type_id']").val(),location_id:t("input[name='location_id']").val()};t("#submit-contact-form").attr("disabled","disabled"),t.ajax({url:"/wp-json/hermods-contact-form/v1/send-form",method:"POST",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(o)}).done((function(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"interestform:sent",eventCategory:n}),window.location.href="/tack-for-ditt-intresse/"})).fail((function(e,n,i){t(".contact-form-error").removeClass("d-none")})).always((function(){t("#submit-contact-form").removeAttr("disabled")}))}else t(".field-accept-privacy").addClass("warning")})),t(".page-template-template-contact-form").length>0&&t("#contact-form-location-select").length>0&&t.getJSON("/wp-json/hdb/v1/municipalities",(function(e){var n=['<option value="" disabled selected>Välj Ort</option>'];e.data.data.forEach((t=>{n.push('<option value="'+t.slug+'">'+t.name+"</option>")})),t("#contact-form-location-select").html(n.join(""))})).fail((function(e,n,i){t(".contact-form-error").removeClass("d-none")}))}))}(jQuery),function(t){t((function(){if(void 0!==window.contactLocationPlaces&&0!==window.contactLocationPlaces.length)for(var e=wp.template("contacts-and-locations-cards"),n=[],i=0;i<window.contactLocationPlaces.length;i++){contactLocationPlaces[i].length>1&&(t("#contacts-and-locations-select-"+i).removeClass("d-none"),t("#contacts-and-locations-select-"+i).select2({dropdownParent:t("#ams_contacts_and_locations_card_module-"+i)}),t("#contacts-and-locations-select-"+i).change((function(){var t=parseInt(this.id.substr(this.id.indexOf("#contacts-and-locations-select-")));o(this.value,t)}))),a(contactLocationPlaces[i].map((function(t){return t.slug})).join(","),contactLocationTypes[i].map((function(t){return t.id})).join(","),i)}function a(e,i,a){t(".spinner-container").addClass("is-active"),t.getJSON("/wp-json/hdb/v1/education-type-municipality/?municipalities="+e+"&education_types="+String(i),(function(e){t(".spinner-container").removeClass("is-active"),n[a]=e.data.data,1===contactLocationPlaces[a].length&&o(contactLocationPlaces[a][0].slug,a)})).fail((function(t,e,n){console.log("Education Type Variation API request failed! "+e)}))}function o(i,a){var o=n[a].filter((function(t){return t.municipality.slug===i})),r=e({items:o});t("#contacts-and-locations-result-"+a).html(r)}}))}(jQuery),function(t){t((function(){t.fn.extend({toggleText:function(t,e){return this.text(this.text()==e?t:e)}});let e,n,i,a,o,r,c=".ams_education_filter",s={municipality:{select:"#edu-filter-locations",tags:".filter-tags-container-locations"}},l=t(c);if(0!==l.length){void 0!==l.data("autoSearch")&&l.on("filter:changed",(function(t,n,i){let a=500;i.hasClass("edu-filter-subject")&&(a=1e3),e&&window.clearTimeout(e),e=window.setTimeout((function(){m()}),a)})),t("#eduNavPrev").on("click keypress",(function(t){p(t)&&n>1&&(n-=1,_(v(n)))})),t("#eduNavNext").on("click keypress",(function(t){p(t)&&n<a&&(n+=1,_(v(n)))})),t(".edu-filter-expand-button").on("click keypress",(function(e){p(e)&&(t(".edu-filter-expanded-filters-container").slideToggle(300),t(".edu-filter-expand-button").toggleClass("is-expanded"),t(".edu-filter-expand-button.is-expanded").length>0?t(".edu-filter-expand-button").text("Visa färre filter"):t(".edu-filter-expand-button").text("Visa fler filter"))})),t("html").on("click",(function(e){0!==t(".edu-filter-subjects-container.is-active").length&&0===t(e.target).closest(".edu-filter-subjects-container").length&&0===t(e.target).closest("#edu-filter-subjects-button").length&&(t(".edu-filter-subjects-container").removeClass("is-active"),t("#edu-filter-subjects-button").toggleClass("is-active"))})),t("#edu-filter-subjects-close").on("click",(function(){t(".edu-filter-subjects-container").removeClass("is-active"),t("#edu-filter-subjects-button").toggleClass("is-active")})),t("#edu-filter-subjects-button").on("click",(function(e){p(e)&&(t(this).toggleClass("is-active"),t(".edu-filter-subjects-container").toggleClass("is-active"),t(".edu-filter-subjects-container").offset({top:t("#edu-filter-subjects-button").offset().top+60}))}
1)),t("#edu-filter-search-button, #edu-filter-search-button-subjects").on("click keypress",(function(t){p(t)&&m()})),function(){t(".spinner-container").addClass("is-active");let e="";window.preSelectedEduTypes&&(e="?filter[education_type.id]="+window.preSelectedEduTypes.join(","));t.getJSON("/wp-json/hdb/v1/filter/options"+e,(function(e){let n=e.data,i=g("filter[education_place]"),a=t.map(g("filter[studypaces.id]").split(","),Number),o=t.map(g("filter[studyforms.id]").split(","),Number),r=t.map(g("filter[education_type.id]").split(","),Number),l=t.map(g("filter[subjects.id]").split(","),Number),u={categories:[],municipalities:[],study_paces:[],study_forms:[],education_types:[]},d={remote:{ids:[1,3,4,5,7,8],label:"Distans",comparison:"distans"},flex:{ids:[6,10],label:"Flex"},classroom:{ids:[2,9],label:"Klassrum",comparison:"klassrum"},hybrid:{ids:[11],label:"Hybrid"}};n.municipalities.forEach((function(t){u.municipalities.push({value:t.slug,label:t.name,selected:y("municipalities",t.slug,-1!==i.indexOf(t.slug))})})),t(s.municipality.tags).length?b(t(s.municipality.tags),u.municipalities):(u.municipalities.unshift({value:"",label:void 0!==t(s.municipality.select).data("label")?t(s.municipality.select).data("label"):"Sök Ort"}),b(t(s.municipality.select),u.municipalities)),n.study_paces.forEach((function(t){u.study_paces.push({value:t.id,label:t.name,selected:y("study_paces",t.id,-1!==a.indexOf(t.id))})})),b(t(".filter-tags-container-studypaces"),u.study_paces);for(let t in d){let e=!1;o.forEach((n=>{if(-1!==d[t].ids.indexOf(n))return e=!0,!1})),u.study_forms.push({value:t,label:d[t].label,selected:y("study_forms",void 0!==d[t].comparison?d[t].comparison:t,e),comparison:void 0!==d[t].comparison?d[t].comparison:t})}b(t(".filter-tags-container-studyforms"),u.study_forms),n.education_types.forEach((function(t){let e=t.name;switch(t.slug){case"sfi":e="SFI";break;case"yh":e="Yrkeshögskola"}u.education_types.push({value:t.id,label:e,selected:y("education_types",t.id,-1!==r.indexOf(t.id))})})),b(t(".filter-tags-container-education-types"),u.education_types),n.subjects.forEach((function(t){let e=t.name,n=subject_icons.filter((function(e){return e.id===t.id}));n.length&&(e='<img class="edu-filter-subject-icon" src="'+n[0].image+'">'+e),u.categories.push({value:t.id,label:e,selected:-1!==l.indexOf(t.id)})})),b(t(".edu-filter-subjects"),u.categories,["edu-filter-subject"]),t(".filter-tag").on("click keypress",(function(e){p(e)&&(t(this).toggleClass("selected"),t(c).trigger("filter:changed",[e,t(this)]))})),t(".edu-filter-subject").on("click keypress",(function(e){p(e)&&(t(this).toggleClass("selected"),function(){let e=[];t(".edu-filter-subjects .selected").each((function(){e.push(t(this).text())}));let n=t("#edu-filter-subjects-button"),i=n.find(".edu-subject-button-text");0===e.length?i.text(void 0!==n.data("label")?n.data("label"):"Bläddra bland kategorier"):1===e.length?i.text(e[0]):i.text(e.length+" kategorier valda")}(),t(c).trigger("filter:changed",[e,t(this)]))})),t(".spinner-container").removeClass("is-active")})).done((function(){t(s.municipality.select).length&&t(s.municipality.select).select2({dropdownParent:t("#education-search-form")}).on("change",(function(e){t(c).trigger("filter:changed",[e,t(this)])})),(-1!==window.location.href.indexOf("education-filter")||showResultsOnPageload
1)&&_(v())})).fail((function(t,e,n){console.log("Filter Options API request failed! "+e)}))}();var u=wp.template("education-results"),d=wp.template("education-card-results"),f=wp.template("education-subjects-results")}function p(t){return t.preventDefault(),"click"===t.type||32===t.which||13===t.which}function m(){t("#edu-filter-subjects-button").removeClass("is-active"),t(".edu-filter-subjects-container").removeClass("is-active"),n=1;let e=v(1);redirectResultsToArchive?window.location.href=educationArchiveUrl+e+"&":_(e)}function v(e=-1){var n="?education-filter";set_page=-1===e?g("page")?g("page"):1:e,n=n+"&page="+String(set_page);var i=h(t(".filter-tags-container-studypaces .selected")),a=h(t(".filter-tags-container-studyforms .selected")),o=h(t(".filter-tags-container-education-types .selected")),r=h(t(".edu-filter-subjects .selected"));let c=[];c=t(".filter-tags-container-locations").length?h(t(".filter-tags-container-locations .selected")):t("#edu-filter-locations option:selected").val();var s="";return-1!==a.indexOf("flex")&&(s+="6,10,"),-1!==a.indexOf("remote")&&(s+="1,3,4,5,7,8,"),-1!==a.indexOf("classroom")&&(s+="2,9,"),-1!==a.indexOf("hybrid")&&(s+="11"),(s=s.replace(/,\s*$/,""))&&(n=n+"&filter[studyforms.id]="+s),i&&(n=n+"&filter[studypaces.id]="+i),o&&(n=n+"&filter[education_type.id]="+o),r&&(n=n+"&filter[subjects.id]="+r),c&&(n=n+"&filter[education_place]="+c),window.resultStyleCard&&(n+="&per_page=12"),n}function h(e){var n=[];return e.each((function(){n.push(t(this).attr("data-option-value"))})),n.join(",")}function g(t){return new URLSearchParams(window.location.search).get(t)||""}function b(e,n,i){if(!e.length)return;let a=[],o=e.data("limitations"),r=e.get(0).nodeName.toLowerCase();i=void 0!==i?i:[],o=void 0===o?[]:o.split(",").filter((function(t){return t.length})),o.forEach((function(t,e){isNaN(parseInt(t))||(o[e]=parseInt(t))})),n.forEach((function(e){let n=[],c=void 0!==e.selected&&e.selected,s=void 0!==e.comparison?e.comparison:e.value;if(o.length&&-1===t.inArray(s,o))return!0;if("div"===r)n=i.length?i.filter((function(t){return t.length})):["filter-tag"],c&&(n=n.concat(["selected"])),a.push('<span role="button" data-option-value="'+e.value+'" class="'+n.join(" ")+'">'+e.label+"</span>");else a.push('<option value="'+e.value+'" '+(c?'selected="selected"':"")+">"+e.label+"</option>")})),e.html(a)}function y(t,e,n){return void 0!==window.preSelections&&void 0!==window.preSelections[t]?-1!==window.preSelections[t].indexOf(e):n}function _(e=""){t(".spinner-container").addClass("is-active"),e&&history.pushState("","",e),"undefined"!=typeof resultStyleSubject&&resultStyleSubject?t.getJSON("/wp-json/hdb/v1/filter/educations/subjects"+e,(function(e){var n="";e.data.forEach((t=>{n+=f(t)})),t(".edu-filter-results").html(n),t(".spinner-container").removeClass("is-active"),t(".education-subject-results-title").on("click keypress",(function(e){p(e)&&(t(this).siblings().slideToggle(300),t(this).children(".expanded-icon").toggleClass("is-active"),t(this).toggleClass("is-active"))}))})).done((function(){})).fail((function(t,e,n){console.log("Filter Education API request failed! "+e)})):t.getJSON("/wp-json/hdb/v1/filter/educations"+e,(function(e){var c=[];e.data.forEach((function(t){var e="";e=t.education_type&&"sfi"==t.education_type.slug?"SFI":t.education_type&&"yh"==t.education_type.slug?"YH":"VUX";var n=[];t.subjects.forEach((function(t){var e=subject_icons.filter((function(e){return t.id==e.id}));const i=e.length>0&&void 0!==e[0].image&&e[0].image;n.push({id:t.id,image:i,name:t.name})}));var i="",a=window.subject_images.filter((function(t){return t.id==n[0].id}))[0];i=void 0===a?window.subject_images[15].image:a.image,c.push({name:t.name,edu_type_tag:e,edu_type:t.education_type?t.education_type.name:"",points:t.points,subjects:n,subject_icons:subject_icons,subjects_string:w(t.subjects),study_forms:w(t.study_forms),study_paces:w(t.study_paces),url:t.url,is_open:t.is_open,image:i})}));var s="";
1window.resultStyleCard?c.forEach((t=>{s+=d(t)})):c.forEach((t=>{s+=u(t)})),function(e){n=e.current_page,totalItems=e.total,i=e.per_page,a=e.last_page,o=e.from,r=e.to;var c=[],s="",l="";if(totalItems>0){for(var u=1;u<=a;u++)s=u===n?" selected":"",l=v(u),c.push('<a href="'+window.location.pathname+"/"+l+'" class="edu-filter-navigation-item'+s+'" id="edu-filter-navigation-item-'+u+'">'+u+"</a>");t("#eduNavItems").html(c.join("")),t(".edu-filter-navigation-item").each((function(){t(this).on("click keypress",(function(e){p(e)&&_(v(t(this).text()))}))})),t("#eduNavNext").text("Nästa"),t("#eduNavPrev").text("Föregående")}else t("#eduNavItems").html("Inga resultat hittades.");n===a?t("#eduNavNext").addClass("inactive"):t("#eduNavNext").removeClass("inactive");1===n?t("#eduNavPrev").toggleClass("inactive"):t("#eduNavPrev").removeClass("inactive");t(".edu-filter-navigation").length>1&&t(".edu-filter-navigation")[1].remove();totalItems>0&&t(".edu-filter-navigation").clone(!0).appendTo(".ams_education_filter")}(e.meta),t(".edu-filter-results").html(s),t(".spinner-container").removeClass("is-active")})).done((function(){})).fail((function(t,e,n){console.log("Filter Education API request failed! "+e)}))}function w(t){return t.map((function(t){return t.name})).join(", ")}}))}(jQuery),function(t){t((function(){!function(){let e=function(t){return t.preventDefault(),"click"===t.type||32===t.which||13===t.which};!function(){let n={button:".edu-filter-container-seo #edu-filter-subjects-button",container:".edu-filter-container-seo .edu-filter-subjects-container"};t(n.button).on("click",(function(i){e(i)&&(t(this).toggleClass("is-active"),t(n.container).toggleClass("is-active").offset({top:t(n.button).offset().top+60}))})),t("#edu-filter-subjects-close").on("click",(function(e){0!==t(".edu-filter-subjects-container.is-active").length&&(t(".edu-filter-subjects-container").removeClass("is-active"),t("#edu-filter-subjects-button").toggleClass("is-active"))})),t("html").on("click",(function(e){0!==t(".edu-filter-subjects-container.is-active").length&&0===t(e.target).closest(".edu-filter-subjects-container").length&&0===t(e.target).closest("#edu-filter-subjects-button").length&&(t(".edu-filter-subjects-container").removeClass("is-active"),t("#edu-filter-subjects-button").toggleClass("is-active"))}))}(),t(".edu-filter-expand-button-seo").on("click keypress",(function(n){e(n)&&(t(this).toggleClass("is-expanded"),t(".edu-filter-expanded-filters-container-seo").slideToggle(300),t(this).hasClass(".is-expanded")?t(this).text("Visa färre filter"):t(this).text("Visa fler filter"))}))}(),t(".select2").each((function(){t(this).parents("form").first(),t(this).select2({})})),function(){let e={container:".edu-filter-container-seo",form:"form.edu-filter-search-seo",filters:{tag:".filter-tag",subject:".edu-filter-subject"}};t(e.container).find([e.filters.tag,e.filters.subject].join(",")).each((function(){t(this).click((function(){t(this).toggleClass("selected")}))}));let n=t(e.container).find(e.form);n.submit((function(n){n.preventDefault();let i=[],a=t(this).data("baseUrl");t(e.container).find([e.filters.tag+".selected",e.filters.subject+".selected"].join(",")).each((function(){i.push(t(this).data("formKey"))}));let o=[];return t('select[name="municipality"] > option').each((function(){(t(this).is(":selected")||void 0!==t(this).data("selected"))&&void 0!==t(this).attr("value")&&o.push(t(this).attr("value"))})),o.length&&(i=i.concat(o)),i.length?window.location.href=a+"s/"+encodeURIComponent(i.join(" ")):window.location.href=a,!1})),void 0!==n.data("autoTrigger")&&n.trigger("submit")}()}))}(jQuery),function(t){t((function(){0!==t(".ams_subtabnavi_module").length&&(t(".subtabnavi-tabs-mobile select").on("change",(function(){var e=t(this).children("option:selected").val();t(".subtabnavi-tab").removeClass("is-active"),t(".subtabnavi-tab-content").removeClass("is-active"),t("#"+e+"-btn").addClass("is-active"),t("#"+e+"-content").addClass("is-active")})),t("#subtabnavi-tab-start-btn").on("click",(function(){t(".subtabnavi-tab").removeClass("is-active"),t(".subtabnavi-tab-content").removeClass("is-active"),t("#subtabnavi-tab-start-btn").addClass("is-active"),t("#subtabnavi-tab-start-content").addClass("is-active")})),t("#subtabnavi-tab-after_education-btn").on("click",(function(){t(".subtabnavi-tab").removeClass("is-active"),t(".subtabnavi-tab-content").removeClass("is-active"),t("#subtabnavi-tab-after_education-btn").addClass("is-active"),t("#subtabnavi-tab-after_education-content").addClass("is-active")})),t("#subtabnavi-tab-previous_knowledge-btn").on("click",(function(){t(".subtabnavi-tab").removeClass("is-active"),t(".subtabnavi-tab-content").removeClass("is-active"),t("#subtabnavi-tab-previous_knowledge-btn").addClass("is-active"),t("#subtabnavi-tab-previous_knowledge-content").addClass("is-active")})),t("#subtabnavi-tab-about_the_education-btn").on("click",(function(){t(".subtabnavi-tab").removeClass("is-active"),t(".subtabnavi-tab-content").removeClass("is-active"),t("#subtabnavi-tab-about_the_education-btn").addClass("is-active"),t("#subtabnavi-tab-about_the_education-content").addClass("is-active")})))}
1))}(jQuery),function(t){t((function(){function e(){let e={position:"fixed",bottom:"14px",right:"10px",display:"block",width:"100px",height:"48px"},n=["border-radius: 30px !important","min-width: 150px !important"],i=t("#application-button"),a=t("#application-button-copy");if(0===window.location.pathname.indexOf("/yh")?"undefined"!=typeof productId&&0===productId.indexOf("YH")?(a.length&&a.remove(),i.length&&(i=i.clone(),i.find("i").remove(),i.attr("id","application-button-copy"),i.css(e),i.attr("style",i.attr("style")+" "+n.join("; ")),i.appendTo("body"))):(a.length&&a.remove(),i=t('<a id="application-button-copy" class="btn btn-sidebar site__cta-bg--100 site__text-color--light site__buttons-1 ams_active_button_state_default yh_apply" target="_blank"><span id="application-button-text">GÅ TILL ANSÖKAN</span></a>'),i.attr("href","https://apply.yh-antagning.se/to/hermods/ht2026"),i.css(e),i.attr("style",i.attr("style")+" "+n.join("; ")),i.appendTo("body")):(a.length&&a.remove(),i=t()),i.length){let e;t(window).resize((function(){e&&window.clearTimeout(e),e=window.setTimeout((function(){t(window).width()<1200?i.hide():i.show()}),300)}))}}function n(t){return t.map((function(t){return t.name})).join(", ")}function i(e){let n,i,a={education_id:void 0!==e.education?e.education.id:e.id,education_type_id:void 0!==e.education?e.education.education_type.id:e.education_type.id,location_id:void 0!==e.municipality?e.municipality.id:null},o=t("form#contact-form-form");for(let t in a){if(i=a[t],n=o.find('input[name="'+t+'"]'),null===i)return!0;if(n.length)return n.val(i),!0;o.append('<input type="hidden" name="'+t+'" value="'+i+'" />')}}function a(t){if(!Array.isArray(t)||0===t.length)return null;const e=new Date;e.setHours(0,0,0,0);const n=t.filter((t=>new Date(t)>=e));if(0===n.length)return null;let i=n[0],a=Math.abs(e-new Date(i));for(let t=1;t<n.length;t++){const o=Math.abs(e-new Date(n[t]));o<a&&(i=n[t],a=o)}return i}function o(t,e){if(!t||!e)return!1;const n=new Date,i=new Date(t),a=new Date(e);return!isNaN(i.getTime())&&!isNaN(a.getTime())&&(n.setHours(0,0,0,0),i.setHours(0,0,0,0),a.setHours(0,0,0,0),n>=i&&n<=a)}function r(r){t(".spinner-container").addClass("is-active"),t.getJSON("/wp-json/hdb/v1/education-places/education/"+productId+"/municipality/"+r,(function(c){setTimeout((function(){const l=c.data;i(l);var u="";u+=l.education.subjects.length>0?s({title:"Område",content:n(l.education.subjects)}):"",l.study_paces.length>0?u+=s({title:"Studietakt",content:n(l.study_paces)}):l.education.study_paces.length>0&&(u+=s({title:"Studietakt",content:n(l.education.study_paces)})),u+=l.education.points?s({title:"Poäng",content:l.education.points}):"",l.study_forms.length>0?u+=s({title:"Studieform",content:n(l.study_forms)}):l.education.study_forms.length>0&&(u+=s({title:"Studieform",content:n(l.education.study_forms)})),u+=l.education.level?s({title:"Utbildningsnivå",content:l.education.level.name}):"",u+=l.education.education_type?s({title:"Utbildningstyp",content:l.education.education_type.name}):"",l.study_times.length>0?(t(".education-fact-studytimes").html(n(l.study_times)),u+=s({title:"Studietid",content:n(l.study_times)})):l.education.study_times.length>0&&(u+=s({title:"Studietid",content:n(l.education.study_times)})),u+=l.education.course_code?s({title:"Kurskod",content:l.education.course_code}):"",u+=l.education.niva_code?s({title:"Nivåkod",content:l.education.niva_code}):"",u+=l.education.niva_level?s({title:"Ämnesnivå",content:l.education.niva_level}):"";var d=JSON.parse(l.application.multiple_application_start_dates),f=JSON.parse(l.application.multiple_application_end_dates),p=JSON.parse(l.study_start.multiple_study_start_dates),m=!1,v=!1;null!==l.application.start_date&&(m=new Date(l.application.start_date).toISOString().split("T")[0]),null!==l.application.end_date&&(v=new Date(l.application.end_date).toISOString().split("T")[0]),null!==d&&(m=a(d)),null!==f&&(v=a(f)),console.log("applicationStartDate: "+m),console.log("applicationEndDate: "+v),!0===l.study_start.flexible_start?u+=s({title:"Studiestart",content:"Flexibel studiestart"}):null!==l.study_start.description?u+=s({title:"Studiestart",content:l.study_start.description}):null!==l.study_start.start_date?u+=s({title:"Studiestart",content:new Date(l.study_start.start_date).toISOString().split("T")[0]}):null!==p&&(u+=s({title:"Studiestart",content:a(p)})),t(".sidebar-apply-desc-container").css("display","block");var h=l.application.link&&(l.application.open||o(m,v));h?(t("#application-button").css("display","block"),t("#application-button").attr("href",l.application.link),t("#application-button").attr("disabled",!1),t("#application-button-text").html("GÅ TILL ANSÖKAN"),t("#application-button-sticky").show(),t("#application-button-sticky").attr("href",l.application.link),t("#application-button-sticky-text").html("TILL ANSÖKAN"),t("#application-button-sticky").attr("disabled",!1),t(".sidebar-apply-status-icon").removeClass("is-closed"),t(".sidebar-apply-status-icon").addClass("is-open"),t(".sidebar-apply-status-label").html("Öppen för ansökan"),e()):(t("#application-button-text").html("ANSÖKAN STÄNGD"),t("#application-button").attr("disabled",!0),t("#application-button").css("display","none"),t("#application-button-sticky").hide(),t(".sidebar-apply-status-icon").removeClass("is-open"),t(".sidebar-apply-status-icon").addClass("is-closed"),t(".sidebar-apply-status-label").html("Stängd för ansökan")),l.application.description?t(".sidebar-apply-desc-info").html(l.application.description):t(".sidebar-apply-desc-info").html(""),new Date(m).setHours(0,0,0,0)>new Date(v).setHours(0,0,0,0)&&!o(m,v)&&!1===function(t,e){if("string"!=typeof t||"string"!=typeof e)return!1;const n=t.toLowerCase(),i=e.toLowerCase();return n.split(/\s+/).includes(i)}(l.education.education_type.name,"komvux")?t(".sidebar-apply-desc-date-start").html("Ansökan öppnar: "+m):t(".sidebar-apply-desc-date-start").html(""),new Date(v).setHours(0,0,0,0)>=(new Date).setHours(0,0,0,0)&&h?t(".sidebar-apply-desc-date-end").html("Ansökan stänger: "+v):t(".sidebar-apply-desc-date-end").html(""),t(".education-facts").html(u),
1(l.contacts||l.locations)&&(t(".sidebar-contacts").length<1&&t(".sidebar").append('<div class="ams_container-card_module top-border sidebar-contacts"><h4 class="site__heading-size-4">Kontakta oss</h4><hr><div class="location-cards"></div></div>'),function(e){if(0===t(".contact-cards").length){var n=document.createElement("div");n.className="contact-cards",t(".sidebar-contacts").append(n)}t(".contact-cards").empty(),e.length>0&&e.forEach((function(e){var n=document.createElement("div");if(n.className="contact-card",t(".contact-cards").append(n),e.firstname||e.lastname){var i=document.createElement("div");i.className="contact-card-item contact-card-name";var a=e.firstname?e.firstname:"",o=e.lastname?e.lastname:"";i.innerHTML=a+" "+o,n.appendChild(i)}if(e.title){var r=document.createElement("div");r.className="contact-card-item contact-card-title",r.innerHTML=e.title,n.appendChild(r)}if(e.phone){var c=document.createElement("div");c.className="contact-card-item contact-card-phone";var s=document.createElement("a");s.setAttribute("href","tel:"+e.phone),s.innerHTML='<i class="fas fa-phone"></i>'+e.phone,s.className="site__links-8",c.appendChild(s),n.appendChild(c)}if(e.phone2){var l=document.createElement("div");l.className="contact-card-item contact-card-phone-second";var u=document.createElement("a");u.setAttribute("href","tel:"+e.phone2),u.innerHTML='<i class="fas fa-phone"></i>'+e.phone2,u.className="site__links-8",l.appendChild(u),n.appendChild(l)}if(e.email){var d=document.createElement("div");d.className="contact-card-item contact-card-email";var f=document.createElement("a");f.setAttribute("href","mailto:"+e.email),f.innerHTML='<i class="fas fa-envelope"></i>'+e.email,f.className="site__links-8",d.appendChild(f),n.appendChild(d)}if(e.phone_time){var p=document.createElement("div");p.className="contact-card-item contact-card-phone-time",p.innerHTML="Telefontider: "+e.phone_time,n.appendChild(p)}}))}(l.contacts),function(e){if(0===t(".location-cards").length){var n=document.createElement("div");n.className="location-cards",t(".contact-cards").length>0?t(n).insertBefore(".contact-cards"):t(".product-contacts").append(n)}t(".location-cards").empty(),e.length>0&&e.forEach((function(e){var n=document.createElement("div");if(n.className="location-card",t(".location-cards").append(n),e.name){var i=document.createElement("div");i.className="location-card-item location-card-name",i.innerHTML=e.name,n.appendChild(i)}if(e.visiting_address){var a=document.createElement("div");a.className="location-card-item location-card-address",a.innerHTML=e.visiting_address.replace("\n","<br>"),n.appendChild(a)}if(e.postal_address){var o=document.createElement("div");o.className="location-card-item location-card-postaladdress",o.innerHTML=e.postal_address.replace("\n","<br>"),n.appendChild(o)}if(e.phone){var r=document.createElement("div");r.className="location-card-item location-card-phone";var c=document.createElement("a");c.setAttribute("href","tel:"+e.phone),c.innerHTML='<i class="fas fa-phone"></i>'+e.phone,c.className="site__links-8",r.appendChild(c),n.appendChild(r)}if(e.email){var s=document.createElement("div");s.className="location-card-item location-card-email";var l=document.createElement("a");l.setAttribute("href","mailto:"+e.email),l.innerHTML='<i class="fas fa-envelope"></i>'+e.email,l.className="site__links-8",s.appendChild(l),n.appendChild(s)}if(e.phone_time){var u=document.createElement("div");u.className="location-card-item location-card-phone-time",u.innerHTML="Telefontider: "+e.phone_time,n.appendChild(u)}if(e.open_time){var d=document.createElement("div");d.className="location-card-item location-card-open-time",d.innerHTML="Öppettider: "+e.open_time,n.appendChild(d)}}))}(l.locations)),function(e){setTimeout((function(){t("#contact-form-location-select").children().removeAttr("selected"),t("#contact-form-location-select option").filter((function(t){return e===this.value})).attr("selected","selected"),t("#contact-form-location-select").trigger("change")}),200)}(r),setTimeout((function(){t(".select2-selection__rendered").html(l.municipality.name)}),200),t(".spinner-container").removeClass("is-active")}),1e3)})).fail((function(t,e,n){console.log("Education Place API request failed! "+e)}))}function c(a){t(".spinner-container").addClass("is-active"),t.getJSON("/wp-json/hdb/v1/educations/"+productId,(function(e){!function(e,n){var i=JSON.parse(t(".yoast-schema-graph").html());if(e){document.title=e;var a=document.querySelector('meta[property="og:title"]');a&&a.setAttribute("content",e),i&&i["@graph"][1].name&&(i["@graph"][1].name=e)}if(n){var o=document.querySelector('meta[name="description"]');if(o)o.setAttribute("content",n);else{var r=document.createElement("meta");r.setAttribute("name","description"),r.setAttribute("content",n);var c=document.querySelector("title");c.parentNode.insertBefore(r,c.nextSibling)}var s=document.querySelector('meta[property="og:description"]');s&&s.setAttribute("content",n),i&&i["@graph"][1].description&&(i["@graph"][1].description=n)}t(".yoast-schema-graph").html(JSON.stringify(i))}(e.data.meta_title,e.data.meta_description),function(e){if(0!==t("#hero-picture").length||"undefined"===e||0===e.length)return;var n=subject_images.filter((function(t){return t.id==e[0].id}))[0];if(void 0===n)return;var i='<picture id="hero-picture"><img src="'+n.image+'"></picture>';t(".hero__img-overlay").html(i)}(e.data.subjects),function(e){var i="";i+=e.subjects.length>0?s({title:"OmrÃ¥de",content:n(e.subjects)}):"",i+=e.study_paces.length>0?s({title:"Studietakt",content:n(e.study_paces)}):"",i+=e.points?s({title:"Poäng",content:e.points}):"",i+=e.study_forms.length>0?s({title:"Studieform",content:n(e.study_forms)}):"",i+=e.level?s({title:"UtbildningsnivÃ¥",content:e.level.name}):"",i+=e.education_type?s({title:"Utbildningstyp",content:e.education_type.name}):"",i+=e.study_times.length>0?s({title:"Studietid",content:n(e.study_times)}):"",i+=e.course_code?s({title:"Kurskod",content:e.course_code}):"",i+=e.niva_code?s({title:"NivÃ¥kod",content:e.niva_code}):"",i+=e.niva_level?s({title:"ÄmnesnivÃ¥",content:e.niva_level}):"",t(".education-facts").html(i),e.education_type&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"education:education_type",education_type:e.education_type.slug}));null!=e.education_type.name&&e.education_type.name.includes("vux")&&(t(".sidebar-apply-notification").show(),t("#application-button").addClass("vux_apply"),t("#application-button-sticky").addClass("vux_apply"));null!=e.education_type.name&&e.education_type.name.includes("Yrkeshögskole")&&(t("#application-button").addClass("yh_apply"),t("#application-button-sticky").addClass("yh_apply"));null!=e.education_type.name&&e.education_type.name.includes("Sfi")&&(t("#application-button").addClass("sfi_apply"),t("#application-button-sticky").addClass("sfi_apply"));null!=e.education_type.name&&e.education_type.name.includes("Yrkeshögskoleutbildning")&&t(".sidebar-apply-information").text("VÃ
1¤lj den ort du vill studera pÃ¥ för att kunna ansöka.");var a=['<option value="" disabled selected>Välj ort</option>'];e.education_places.forEach((t=>{a.push('<option value="'+t.slug+'">'+t.name+"</option>")})),t("#sidebar-education-place-select").html(a.join("")),t("#contact-form-location-select").html(a.join("")),t("#contact-form-education-type").length>0&&t("#contact-form-education-type").val(e.education_type.slug);t("#contact-form-education").length>0&&t("#contact-form-education").val(e.name);t("#sidebar-education-place-select").select2({dropdownParent:t(".sidebar-education-place")})}(e.data),function(e){if(0===e.length)return;var n=wp.template("pointplan"),i="";e.forEach((e=>{i+=`<div class="pointplan__container"><h3 class="site__heading-size-4">${e.name}</h3>`,e.educations.forEach((t=>{i+=n({name:t.name,points:t.points,description:t.description,url:t.web_url})})),i+="</div>",t(".pointplan").html(i)})),t(".pointplan__title").on("click keypress",(function(e){t(this).siblings().slideToggle(300),t(this).siblings().toggleClass("is-active"),t(this).children(".expanded-icon").toggleClass("is-active"),t(this).toggleClass("is-active")})),t(".pointplan").show()}(e.data.pointplans),i(e.data),t(".spinner-container").removeClass("is-active")})).done((function(){"function"==typeof a?a():e(),t("#sidebar-education-place-select option").filter((function(e){return t(this).val()===locationSlug})).attr("selected","selected")})).fail((function(t,e,n){console.log("Education API request failed! "+e)}))}var s=wp.template("education-fact");!function(){if(0!==t(".single-education").length&&"undefined"!=typeof productId&&""!==productId){t(window).on("popstate",(function(t){location.reload()}));var n=locationSlug;"undefined"!=typeof locationSlug&&""!==locationSlug?c(r(locationSlug)):(c(),t(".sidebar-contacts").remove()),t("#sidebar-education-place-select").change((function(){r(this.value);var t=window.location.href;""!==n&&t.indexOf(n)>-1?t=t.replace(n,this.value):t+=this.value,n=this.value,history.pushState("","",t)}));var i=t(".header_wrapper").height();t("#application-button-sticky").on("click",(function(){void 0===t(this).attr("href")&&t("html, body").animate({scrollTop:t("#sidebar-education-place").offset().top-i},300)}))}else 0===window.location.pathname.indexOf("/yh")&&e()}()}))}(jQuery),function(t){t((function(){if(t("body.page-template-archive-place").length>0){t(".location-module__list_of_all_options a").removeClass("d-inline-block").addClass("d-none"),t(".spinner-container").addClass("is-active"),t.getJSON("/wp-json/hdb/v1/municipalities",(function(e){var n;t(".spinner-container").removeClass("is-active"),$markers=[],e.data.data.forEach((t=>{n={google_map:{address:"",lat:t.latitude||null,lng:t.longitude||null,zoom:14,place_id:"",name:t.name,city:t.name,state:"",country:"Sverige",country_short:"SE"},google_map_link:"",varumarke_map:"Hermods",enhternamn_map:t.name,enhternamn_map:t.name,kommunstad_map:t.name,geografiskt_lage_map:"",rep_anpassat_filter_map:!1,gruppering_map:"",adress_map:{adress:"",postnr:"",postort:""},email_map:"",telefon_map:{del_1:"",del_2:"",del_3:"",del_4:""},las_mer_map:{url:t.slug+"/",text:""},postadress:{gataadress:"",postnr:"",postort:""},social_links:!1,button_link:{button_link:{title:"Till "+t.name,url:t.slug+"/",target:""},button_type:!1,fa_icon_class:""}},$markers.push(n)})),window.setOptionsKommunStadLista($markers),window.globalDisplayListOfAllOptions()})).fail((function(t,e,n){console.log("Municipalities API request failed! "+e)}))}t(".place-education-types-results-title").on("click",(function(){t(this).siblings().slideToggle(300),t(this).toggleClass("is-active"),t(".expanded-icon",this).toggleClass("is-active")}))}))}(jQuery),function(t){t((function(){var e=MyAutocomplete.url;function n(){t.ajax({url:e,data:{action:"cart_count_retriever"},success:function(e){var n;n=e,t(".woocommerce-cart__menu-count").length&&t(".woocommerce-cart__menu-count").html(n)},error:function(t){console.log(t)}})}n(),t("#woocommerce-filter-form-subject").select2({dropdownParent:t("#woocommerce-filter__form")}),t("#woocommerce-filter-form-category").select2({dropdownParent:t("#woocommerce-filter__form")}),t(".add_to_cart_button ").on("click",(function(){n(),t(".woocommerce-shopping-modal").addClass("is-active"),t(".woocommerce-shopping-modal__subheading").text(t(this).data("product-name"))})),t("#edu-filter-locations").select2({dropdownParent:t("#education-search-form")}),t(".woocommerce-shopping-modal__close-modal").on("click",(function(){t(".woocommerce-shopping-modal").removeClass("is-active")})),t("#woocommerce-shopping-modal__button-close").on("click",(function(){t(".woocommerce-shopping-modal").removeClass("is-active")})),t("form.cart").on("submit",(function(e){e.preventDefault();var i=t(this),a=i.find(".woocommerce-product__add-to-cart").val(),o=i.serializeArray();if(""===a&&(a=i.find('input[name="product_id"]').val()),"undefined"==typeof wc_add_to_cart_params)return console.log("wc_add_to_cart_params missing"),!1;t.ajax({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","custom_add_to_cart"),data:{product_id:a,form_data:o},success:function(e){n(),t(".woocommerce-shopping-modal").addClass("is-active"),t(".woocommerce-shopping-modal__subheading").text(i.find(".woocommerce-product__add-to-cart").data("product-name")),t('input[name="quantity"]').val(1),t(".products").before(e),console.log(e)},error:function(t){console.log(t)}})})),t("#woocommerce-ssn__submit").on("click",(function(){var n=t("#woocommerce-ssn__field").val();t.ajax({url:e,type:"POST",data:{action:"store_ssn",ssn:n,ssn_nonce:t("#ssn_nonce").val()},success:function(e){t("#ssn-message").text(e.data),0==e.success?t("#kco-iframe").hide():t("#kco-iframe").show()},error:function(t){console.log("Error storing SSN",t)}})}))}))}(jQuery);

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.