vendor: 28,042 bytes, lines 1-10
1function _mergeNamespaces(e,r){for(var t=0;t<r.length;t++){const n=r[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var a=Function.bind.apply(r,i);return new a}return r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),t}var jquery$1={exports:{}};/*! 2 * jQuery JavaScript Library v3.7.1 3 * https://jquery.com/ 4 * 5 * Copyright OpenJS Foundation and other contributors 6 * Released under the MIT license 7 * https://jquery.org/license 8 * 9 * Date: 2023-08-28T13:37Z 10 */(function(e){(function(r,t){e.exports=r.document?t(r,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}})(typeof window<"u"?window:commonjsGlobal,function(r,t){var n=[],i=Object.getPrototypeOf,a=n.slice,s=n.flat?function(u){return n.flat.call(u)}:function(u){return n.concat.apply([],u)},c=n.push,h=n.indexOf,l={},p=l.toString,b=l.hasOwnProperty,m=b.toString,A=m.call(Object),L={},k=function(v){return typeof v=="function"&&typeof v.nodeType!="number"&&typeof v.item!="function"},T=function(v){return v!=null&&v===v.window},S=r.document,M={type:!0,src:!0,nonce:!0,noModule:!0};function H(u,v,x){x=x||S;var E,D,F=x.createElement("script");if(F.text=u,v)for(E in M)D=v[E]||v.getAttribute&&v.getAttribute(E),D&&F.setAttribute(E,D);x.head.appendChild(F).parentNode.removeChild(F)}function te(u){return u==null?u+"":typeof u=="object"||typeof u=="function"?l[p.call(u)]||"object":typeof u}var Ie="3.7.1",we=/HTML$/i,_=function(u,v){return new _.fn.init(u,v)};_.fn=_.prototype={jquery:Ie,constructor:_,length:0,toArray:function(){return a.call(this)},get:function(u){return u==null?a.call(this):u<0?this[u+this.length]:this[u]},pushStack:function(u){var v=_.merge(this.constructor(),u);return v.prevObject=this,v},each:function(u){return _.each(this,u)},map:function(u){return this.pushStack(_.map(this,function(v,x){return u.call(v,x,v)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(u,v){return(v+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(u,v){return v%2}))},eq:function(u){var v=this.length,x=+u+(u<0?v:0);return this.pushStack(x>=0&&x<v?[this[x]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:n.sort,splice:n.splice},_.extend=_.fn.extend=function(){var u,v,x,E,D,F,O=arguments[0]||{},Y=1,K=arguments.length,ae=!1;for(typeof O=="boolean"&&(ae=O,O=arguments[Y]||{},Y++),typeof O!="object"&&!k(O)&&(O={}),Y===K&&(O=this,Y--);Y<K;Y++)if((u=arguments[Y])!=null)for(v in u)E=u[v],!(v==="__proto__"||O===E)&&(ae&&E&&(_.isPlainObject(E)||(D=Array.isArray(E)))?(x=O[v],D&&!Array.isArray(x)?F=[]:!D&&!_.isPlainObject(x)?F={}:F=x,D=!1,O[v]=_.extend(ae,F,E)):E!==void 0&&(O[v]=E));return O},_.extend({expando:"jQuery"+(Ie+Math.random()).replace(/\D/g,""),isReady:!0,error:function(u){throw new Error(u)},noop:function(){},isPlainObject:function(u){var v,x;return!u||p.call(u)!=="[object Object]"?!1:(v=i(u),v?(x=b.call(v,"constructor")&&v.constructor,typeof x=="function"&&m.call(x)===A):!0)},isEmptyObject:function(u){var v;for(v in u)return!1;return!0},globalEval:function(u,v,x){H(u,{nonce:v&&v.nonce},x)},each:function(u,v){var x,E=0;if(oe(u))for(x=u.length;E<x&&v.call(u[E],E,u[E])!==!1;E++);else for(E in u)if(v.call(u[E],E,u[E])===!1)break;return u},text:function(u){var v,x="",E=0,D=u.nodeType;if(!D)for(;v=u[E++];)x+=_.text(v);return D===1||D===11?u.textContent:D===9?u.documentElement.textContent:D===3||D===4?u.nodeValue:x},makeArray:function(u,v){var x=v||[];return u!=null&&(oe(Object(u))?_.merge(x,typeof u=="string"?[u]:u):c.call(x,u)),x},inArray:function(u,v,x){return v==null?-1:h.call(v,u,x)},isXMLDoc:function(u){var v=u&&u.namespaceURI,x=u&&(u.ownerDocument||u).documentElement;return!we.test(v||x&&x.nodeName||"HTML")},merge:function(u,v){for(var x=+v.length,E=0,D=u.length;E<x;E++)u[D++]=v[E];return u.length=D,u},grep:function(u,v,x){for(var E,D=[],F=0,O=u.length,Y=!x;F<O;F++)E=!v(u[F],F),E!==Y&&D.push(u[F]);return D},map:function(u,v,x){var E,D,F=0,O=[];if(oe(u))for(E=u.length;F<E;F++)D=v(u[F],F,x),D!=null&&O.push(D);else for(F in u)D=v(u[F],F,x),D!=null&&O.push(D);return s(O)},guid:1,support:L}),typeof Symbol=="function"&&(_.fn[Symbol.iterator]=n[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(u,v){l["[object "+v+"]"]=v.toLowerCase()});function oe(u){var v=!!u&&"length"in u&&u.length,x=te(u);return k(u)||T(u)?!1:x==="array"||v===0||typeof v=="number"&&v>0&&v-1 in u}function ee(u,v){return u.nodeName&&u.nodeName.toLowerCase()===v.toLowerCase()}var Ee=n.pop,Le=n.sort,Pe=n.splice,$e="[\\x20\\t\\r\\n\\f]",Ze=new RegExp("^"+$e+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$e+"+$","g");_.contains=function(u,v){var x=v&&v.parentNode;return u===x||!!(x&&x.nodeType===1&&(u.contains?u.contains(x):u.compareDocumentPosition&&u.compareDocumentPosition(x)&16))};var je=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function gt(u,v){return v?u==="\0"?"�":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u}_.escapeSelector=function(u){return(u+"").replace(je,gt)};var Xe=S,dt=c;(function(){var u,v,x,E,D,F=dt,O,Y,K,ae,he,ke=_.expando,me=0,Re=0,Je=Xr(),mt=Xr(),ft=Xr(),kt=Xr(),Dt=function(Z,ce){return Z===ce&&(D=!0),0},Wt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",vr="(?:\\\\[\\da-fA-F]{1,6}"+$e+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Lt="\\["+$e+"*("+vr+")(?:"+$e+"*([*^$|!~]?=)"+$e+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+vr+"))|)"+$e+"*\\]",$r=":("+vr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Lt+")*)|.*)\\)|)",Ot=new RegExp($e+"+","g"),Gt=new RegExp("^"+$e+"*,"+$e+"*"),zr=new RegExp("^"+$e+"*([>+~]|"+$e+")"+$e+"*"),en=new RegExp($e+"|>"),br=new RegExp($r),Ur=new RegExp("^"+vr+"$"),Ar={ID:new RegExp("^#("+vr+")"),CLASS:new RegExp("^\\.("+vr+")"),TAG:new RegExp("^("+vr+"|[*])"),ATTR:new RegExp("^"+Lt),PSEUDO:new RegExp("^"+$r),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$e+"*(even|odd|(([+-]|)(\\d*)n|)"+$e+"*(?:([+-]|)"+$e+"*(\\d+)|))"+$e+"*\\)|)","i"),bool:new RegExp("^(?:"+Wt+")$","i"),needsContext:new RegExp("^"+$e+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$e+"*((?:-\\d)?\\d*)"+$e+"*\\)|)(?=[^-]|$)","i")},Or=/^(?:input|select|textarea|button)$/i,Dr=/^h\d$/i,ur=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tn=/[+~]/,nr=new RegExp("\\\\[\\da-fA-F]{1,6}"+$e+"?|\\\\([^\\r\\n\\f])","g"),gr=function(Z,ce){var Te="0x"+Z.slice(1)-65536;return ce||(Te<0?String.fromCharCode(Te+65536):String.fromCharCode(Te>>10|55296,Te&1023|56320))},un=function(){Vr()},rn=bn(function(Z){return Z.disabled===!0&&ee(Z,"fieldset")},{dir:"parentNode",next:"legend"});function fn(){try{return O.activeElement}catch{}}try{F.apply(n=a.call(Xe.childNodes),Xe.childNodes),n[Xe.childNodes.length].nodeType}catch{F={apply:function(ce,Te){dt.apply(ce,a.call(Te))},call:function(ce){dt.apply(ce,a.call(arguments,1))}}}function Rt(Z,ce,Te,De){var He,tt,ct,vt,ut,Mt,Tt,St=ce&&ce.ownerDocument,$t=ce?ce.nodeType:9;if(Te=Te||[],typeof Z!="string"||!Z||$t!==1&&$t!==9&&$t!==11)return Te;if(!De&&(Vr(ce),ce=ce||O,K)){if($t!==11&&(ut=ur.exec(Z)))if(He=ut[1]){if($t===9)if(ct=ce.getElementById(He)){if(ct.id===He)return F.call(Te,ct),Te}else return Te;else if(St&&(ct=St.getElementById(He))&&Rt.contains(ce,ct)&&ct.id===He)return F.call(Te,ct),Te}else{if(ut[2])return F.apply(Te,ce.getElementsByTagName(Z)),Te;if((He=ut[3])&&ce.getElementsByClassName)return F.apply(Te,ce.getElementsByClassName(He)),Te}if(!kt[Z+" "]&&(!ae||!ae.test(Z))){if(Tt=Z,St=ce,$t===1&&(en.test(Z)||zr.test(Z))){for(St=tn.test(Z)&&Dn(ce.parentNode)||ce,(St!=ce||!L.scope)&&((vt=ce.getAttribute("id"))?vt=_.escapeSelector(vt):ce.setAttribute("id",vt=ke)),Mt=dn(Z),tt=Mt.length;tt--;)Mt[tt]=(vt?"#"+vt:":scope")+" "+xn(Mt[tt]);Tt=Mt.join(",")}try{return F.apply(Te,St.querySelectorAll(Tt)),Te}catch{kt(Z,!0)}finally{vt===ke&&ce.removeAttribute("id")}}}return Bn(Z.replace(Ze,"$1"),ce,Te,De)}function Xr(){var Z=[];function ce(Te,De){return Z.push(Te+" ")>v.cacheLength&&delete ce[Z.shift()],ce[Te+" "]=De}return ce}function rr(Z){return Z[ke]=!0,Z}function Pr(Z){var ce=O.createElement("fieldset");try{return!!Z(ce)}catch{return!1}finally{ce.parentNode&&ce.parentNode.removeChild(ce),ce=null}}function Hn(Z){return function(ce){return ee(ce,"input")&&ce.type===Z}}function zn(Z){return function(ce){return(ee(ce,"input")||ee(ce,"button"))&&ce.type===Z}}function Nn(Z){return function(ce){return"form"in ce?ce.parentNode&&ce.disabled===!1?"label"in ce?"label"in ce.parentNode?ce.parentNode.disabled===Z:ce.disabled===Z:ce.isDisabled===Z||ce.isDisabled!==!Z&&rn(ce)===Z:ce.disabled===Z:"label"in ce?ce.disabled===Z:!1}}function Gr(Z){return rr(function(ce){return ce=+ce,rr(function(Te,De){for(var He,tt=Z([],Te.length,ce),ct=tt.length;ct--;)Te[He=tt[ct]]&&(Te[He]=!(De[He]=Te[He]))})})}function Dn(Z){return Z&&typeof Z.getElementsByTagName<"u"&&Z}function Vr(Z){var ce,Te=Z?Z.ownerDocument||Z:Xe;return Te==O||Te.nodeType!==9||!Te.documentElement||(O=Te,Y=O.documentElement,K=!_.isXMLDoc(O),he=Y.matches||Y.webkitMatchesSelector||Y.msMatchesSelector,Y.msMatchesSelector&&Xe!=O&&(ce=O.defaultView)&&ce.top!==ce&&ce.addEventListener("unload",un),L.getById=Pr(function(De){return Y.appendChild(De).id=_.expando,!O.getElementsByName||!O.getElementsByName(_.expando).length}),L.disconnectedMatch=Pr(function(De){return he.call(De,"*")}),L.scope=Pr(function(){return O.querySelectorAll(":scope")}),L.cssHas=Pr(function(){try{return O.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),L.getById?(v.filter.ID=function(De){var He=De.replace(nr,gr);return function(tt){return tt.getAttribute("id")===He}},v.find.ID=function(De,He){if(typeof He.getElementById<"u"&&K){var tt=He.getElementById(De);return tt?[tt]:[]}}):(v.filter.ID=function(De){var He=De.replace(nr,gr);return function(tt){var ct=typeof tt.getAttributeNode<"u"&&tt.getAttributeNode("id");return ct&&ct.value===He}},v.find.ID=function(De,He){if(typeof He.getElementById<"u"&&K){var tt,ct,vt,ut=He.getElementById(De);if(ut){if(tt=ut.getAttributeNode("id"),tt&&tt.value===De)return[ut];for(vt=He.getElementsByName(De),ct=0;ut=vt[ct++];)if(tt=ut.getAttributeNode("id"),tt&&tt.value===De)return[ut]}return[]}}),v.find.TAG=function(De,He){return typeof He.getElementsByTagName<"u"?He.getElementsByTagName(De):He.querySelectorAll(De)},v.find.CLASS=function(De,He){if(typeof He.getElementsByClassName<"u"&&K)return He.getElementsByClassName(De)},ae=[],Pr(function(De){var He;Y.appendChild(De).innerHTML="<a id='"+ke+"' href='' disabled='disabled'></a><select id='"+ke+"-\r\\' disabled='disabled'><option selected=''></option></select>",De.querySelectorAll("[selected]").length||ae.push("\\["+$e+"*(?:value|"+Wt+")"),De.querySelectorAll("[id~="+ke+"-]").length||ae.push("~="),De.querySelectorAll("a#"+ke+"+*").length||ae.push(".#.+[+~]"),De.querySelectorAll(":checked").length||ae.push(":checked"),He=O.createElement("input"),He.setAttribute("type","hidden"),De.appendChild(He).setAttribute("name","D"),Y.appendChild(De).disabled=!0,De.querySelectorAll(":disabled").length!==2&&ae.push(":enabled",":disabled"),He=O.createElement("input"),He.setAttribute("name",""),De.appendChild(He),De.querySelectorAll("[name='']").length||ae.push("\\["+$e+"*name"+$e+"*="+$e+`*(?:''|"")`)}),L.cssHas||ae.push(":has"),ae=ae.length&&new RegExp(ae.join("|")),Dt=function(De,He){if(De===He)return D=!0,0;var tt=!De.compareDocumentPosition-!He.compareDocumentPosition;return tt||(tt=(De.ownerDocument||De)==(He.ownerDocument||He)?De.compareDocumentPosition(He):1,tt&1||!L.sortDetached&&He.compareDocumentPosition(De)===tt?De===O||De.ownerDocument==Xe&&Rt.contains(Xe,De)?-1:He===O||He.ownerDocument==Xe&&Rt.contains(Xe,He)?1:E?h.call(E,De)-h.call(E,He):0:tt&4?-1:1)}),O}Rt.matches=function(Z,ce){return Rt(Z,null,null,ce)},Rt.matchesSelector=function(Z,ce){if(Vr(Z),K&&!kt[ce+" "]&&(!ae||!ae.test(ce)))try{var Te=he.call(Z,ce);if(Te||L.disconnectedMatch||Z.document&&Z.document.nodeType!==11)return Te}catch{kt(ce,!0)}return Rt(ce,O,null,[Z]).length>0},Rt.contains=function(Z,ce){return(Z.ownerDocument||Z)!=O&&Vr(Z),_.contains(Z,ce)},Rt.attr=function(Z,ce){(Z.ownerDocument||Z)!=O&&Vr(Z);var Te=v.attrHandle[ce.toLowerCase()],De=Te&&b.call(v.attrHandle,ce.toLowerCase())?Te(Z,ce,!K):void 0;return De!==void 0?De:Z.getAttribute(ce)},Rt.error=function(Z){throw new Error("Syntax error, unrecognized expression: "+Z)},_.uniqueSort=function(Z){var ce,Te=[],De=0,He=0;if(D=!L.sortStable,E=!L.sortStable&&a.call(Z,0),Le.call(Z,Dt),D){for(;ce=Z[He++];)ce===Z[He]&&(De=Te.push(He));for(;De--;)Pe.call(Z,Te[De],1)}return E=null,Z},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(a.apply(this)))},v=_.expr={cacheLength:50,createPseudo:rr,match:Ar,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Z){return Z[1]=Z[1].replace(nr,gr),Z[3]=(Z[3]||Z[4]||Z[5]||"").replace(nr,gr),Z[2]==="~="&&(Z[3]=" "+Z[3]+" "),Z.slice(0,4)},CHILD:function(Z){return Z[1]=Z[1].toLowerCase(),Z[1].slice(0,3)==="nth"?(Z[3]||Rt.error(Z[0]),Z[4]=+(Z[4]?Z[5]+(Z[6]||1):2*(Z[3]==="even"||Z[3]==="odd")),Z[5]=+(Z[7]+Z[8]||Z[3]==="odd")):Z[3]&&Rt.error(Z[0]),Z},PSEUDO:function(Z){var ce,Te=!Z[6]&&Z[2];return Ar.CHILD.test(Z[0])?null:(Z[3]?Z[2]=Z[4]||Z[5]||"":Te&&br.test(Te)&&(ce=dn(Te,!0))&&(ce=Te.indexOf(")",Te.length-ce)-Te.length)&&(Z[0]=Z[0].slice(0,ce),Z[2]=Te.slice(0,ce)),Z.slice(0,3))}},filter:{TAG:function(Z){var ce=Z.replace(nr,gr).toLowerCase();return Z==="*"?function(){return!0}:function(Te){return ee(Te,ce)}},CLASS:function(Z){var ce=Je[Z+" "];return ce||(ce=new RegExp("(^|"+$e+")"+Z+"("+$e+"|$)"))&&Je(Z,function(Te){return ce.test(typeof Te.className=="string"&&Te.className||typeof Te.getAttribute<"u"&&Te.getAttribute("class")||"")})},ATTR:function(Z,ce,Te){return function(De){var He=Rt.attr(De,Z);return He==null?ce==="!=":ce?(He+="",ce==="="?He===Te:ce==="!="?He!==Te:ce==="^="?Te&&He.indexOf(Te)===0:ce==="*="?Te&&He.indexOf(Te)>-1:ce==="$="?Te&&He.slice(-Te.length)===Te:ce==="~="?(" "+He.replace(Ot," ")+" ").indexOf(Te)>-1:ce==="|="?He===Te||He.slice(0,Te.length+1)===Te+"-":!1):!0}},CHILD:function(Z,ce,Te,De,He){var tt=Z.slice(0,3)!=="nth",ct=Z.slice(-4)!=="last",vt=ce==="of-type";return De===1&&He===0?function(ut){return!!ut.parentNode}:function(ut,Mt,Tt){var St,$t,xt,Xt,_r,ir=tt!==ct?"nextSibling":"previousSibling",kr=ut.parentNode,Nr=vt&&ut.nodeName.toLowerCase(),nn=!Tt&&!vt,fr=!1;if(kr){if(tt){for(;ir;){for(xt=ut;xt=xt[ir];)if(vt?ee(xt,Nr):xt.nodeType===1)return!1;_r=ir=Z==="only"&&!_r&&"nextSibling"}return!0}if(_r=[ct?kr.firstChild:kr.lastChild],ct&&nn){for($t=kr[ke]||(kr[ke]={}),St=$t[Z]||[],Xt=St[0]===me&&St[1],fr=Xt&&St[2],xt=Xt&&kr.childNodes[Xt];xt=++Xt&&xt&&xt[ir]||(fr=Xt=0)||_r.pop();)if(xt.nodeType===1&&++fr&&xt===ut){$t[Z]=[me,Xt,fr];break}}else if(nn&&($t=ut[ke]||(ut[ke]={}),St=$t[Z]||[],Xt=St[0]===me&&St[1],fr=Xt),fr===!1)for(;(xt=++Xt&&xt&&xt[ir]||(fr=Xt=0)||_r.pop())&&!((vt?ee(xt,Nr):xt.nodeType===1)&&++fr&&(nn&&($t=xt[ke]||(xt[ke]={}),$t[Z]=[me,fr]),xt===ut)););return fr-=He,fr===De||fr%De===0&&fr/De>=0}}},PSEUDO:function(Z,ce){var Te,De=v.pseudos[Z]||v.setFilters[Z.toLowerCase()]||Rt.error("unsupported pseudo: "+Z);return De[ke]?De(ce):De.length>1?(Te=[Z,Z,"",ce],v.setFilters.hasOwnProperty(Z.toLowerCase())?rr(function(He,tt){for(var ct,vt=De(He,ce),ut=vt.length;ut--;)ct=h.call(He,vt[ut]),He[ct]=!(tt[ct]=vt[ut])}):function(He){return De(He,0,Te)}):De}},pseudos:{not:rr(function(Z){var ce=[],Te=[],De=Pn(Z.replace(Ze,"$1"));return De[ke]?rr(function(He,tt,ct,vt){for(var ut,Mt=De(He,null,vt,[]),Tt=He.length;Tt--;)(ut=Mt[Tt])&&(He[Tt]=!(tt[Tt]=ut))}):function(He,tt,ct){return ce[0]=He,De(ce,null,ct,Te),ce[0]=null,!Te.pop()}}),has:rr(function(Z){return function(ce){return Rt(Z,ce).length>0}}),contains:rr(function(Z){return Z=Z.replace(nr,gr),function(ce){return(ce.textContent||_.text(ce)).indexOf(Z)>-1}}),lang:rr(function(Z){return Ur.test(Z||"")||Rt.error("unsupported lang: "+Z),Z=Z.replace(nr,gr).toLowerCase(),function(ce){var Te;do if(Te=K?ce.lang:ce.getAttribute("xml:lang")||ce.getAttribute("lang"))return Te=Te.toLowerCase(),Te===Z||Te.indexOf(Z+"-")===0;while((ce=ce.parentNode)&&ce.nodeType===1);return!1}}),target:function(Z){var ce=r.location&&r.location.hash;return ce&&ce.slice(1)===Z.id},root:function(Z){return Z===Y},focus:function(Z){return Z===fn()&&O.hasFocus()&&!!(Z.type||Z.href||~Z.tabIndex)},enabled:Nn(!1),disabled:Nn(!0),checked:function(Z){return ee(Z,"input")&&!!Z.checked||ee(Z,"option")&&!!Z.selected},selected:function(Z){return Z.parentNode&&Z.parentNode.selectedIndex,Z.selected===!0},empty:function(Z){for(Z=Z.firstChild;Z;Z=Z.nextSibling)if(Z.nodeType<6)return!1;return!0},parent:function(Z){return!v.pseudos.empty(Z)},header:function(Z){return Dr.test(Z.nodeName)},input:function(Z){return Or.test(Z.nodeName)},button:function(Z){return ee(Z,"input")&&Z.type==="button"||ee(Z,"button")},text:function(Z){var ce;return ee(Z,"input")&&Z.type==="text"&&((ce=Z.getAttribute("type"))==null||ce.toLowerCase()==="text")},first:Gr(function(){return[0]}),last:Gr(function(Z,ce){return[ce-1]}),eq:Gr(function(Z,ce,Te){return[Te<0?Te+ce:Te]}),even:Gr(function(Z,ce){for(var Te=0;Te<ce;Te+=2)Z.push(Te);return Z}),odd:Gr(function(Z,ce){for(var Te=1;Te<ce;Te+=2)Z.push(Te);return Z}),lt:Gr(function(Z,ce,Te){var De;for(Te<0?De=Te+ce:Te>ce?De=ce:De=Te;--De>=0;)Z.push(De);return Z}),gt:Gr(function(Z,ce,Te){for(var De=Te<0?Te+ce:Te;++De<ce;)Z.push(De);return Z})}},v.pseudos.nth=v.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[u]=Hn(u);for(u in{submit:!0,reset:!0})v.pseudos[u]=zn(u);function Rn(){}Rn.prototype=v.filters=v.pseudos,v.setFilters=new Rn;function dn(Z,ce){var Te,De,He,tt,ct,vt,ut,Mt=mt[Z+" "];if(Mt)return ce?0:Mt.slice(0);for(ct=Z,vt=[],ut=v.preFilter;ct;){(!Te||(De=Gt.exec(ct)))&&(De&&(ct=ct.slice(De[0].length)||ct),vt.push(He=[])),Te=!1,(De=zr.exec(ct))&&(Te=De.shift(),He.push({value:Te,type:De[0].replace(Ze," ")}),ct=ct.slice(Te.length));for(tt in v.filter)(De=Ar[tt].exec(ct))&&(!ut[tt]||(De=ut[tt](De)))&&(Te=De.shift(),He.push({value:Te,type:tt,matches:De}),ct=ct.slice(Te.length));if(!Te)break}return ce?ct.length:ct?Rt.error(Z):mt(Z,vt).slice(0)}function xn(Z){for(var ce=0,Te=Z.length,De="";ce<Te;ce++)De+=Z[ce].value;return De}function bn(Z,ce,Te){var De=ce.dir,He=ce.next,tt=He||De,ct=Te&&tt==="parentNode",vt=Re++;return ce.first?function(ut,Mt,Tt){for(;ut=ut[De];)if(ut.nodeType===1||ct)return Z(ut,Mt,Tt);return!1}:function(ut,Mt,Tt){var St,$t,xt=[me,vt];if(Tt){for(;ut=ut[De];)if((ut.nodeType===1||ct)&&Z(ut,Mt,Tt))return!0}else for(;ut=ut[De];)if(ut.nodeType===1||ct)if($t=ut[ke]||(ut[ke]={}),He&&ee(ut,He))ut=ut[De]||ut;else{if((St=$t[tt])&&St[0]===me&&St[1]===vt)return xt[2]=St[2];if($t[tt]=xt,xt[2]=Z(ut,Mt,Tt))return!0}return!1}}function Mn(Z){return Z.length>1?function(ce,Te,De){for(var He=Z.length;He--;)if(!Z[He](ce,Te,De))return!1;return!0}:Z[0]}function Un(Z,ce,Te){for(var De=0,He=ce.length;De<He;De++)Rt(Z,ce[De],Te);return Te}function Tn(Z,ce,Te,De,He){for(var tt,ct=[],vt=0,ut=Z.length,Mt=ce!=null;vt<ut;vt++)(tt=Z[vt])&&(!Te||Te(tt,De,He))&&(ct.push(tt),Mt&&ce.push(vt));return ct}function $n(Z,ce,Te,De,He,tt){return De&&!De[ke]&&(De=$n(De)),He&&!He[ke]&&(He=$n(He,tt)),rr(function(ct,vt,ut,Mt){var Tt,St,$t,xt,Xt=[],_r=[],ir=vt.length,kr=ct||Un(ce||"*",ut.nodeType?[ut]:ut,[]),Nr=Z&&(ct||!ce)?Tn(kr,Xt,Z,ut,Mt):kr;if(Te?(xt=He||(ct?Z:ir||De)?[]:vt,Te(Nr,xt,ut,Mt)):xt=Nr,De)for(Tt=Tn(xt,_r),De(Tt,[],ut,Mt),St=Tt.length;St--;)($t=Tt[St])&&(xt[_r[St]]=!(Nr[_r[St]]=$t));if(ct){if(He||Z){if(He){for(Tt=[],St=xt.length;St--;)($t=xt[St])&&Tt.push(Nr[St]=$t);He(null,xt=[],Tt,Mt)}for(St=xt.length;St--;)($t=xt[St])&&(Tt=He?h.call(ct,$t):Xt[St])>-1&&(ct[Tt]=!(vt[Tt]=$t))}}else xt=Tn(xt===vt?xt.splice(ir,xt.length):xt),He?He(null,vt,xt,Mt):F.apply(vt,xt)})}function On(Z){for(var ce,Te,De,He=Z.length,tt=v.relative[Z[0].type],ct=tt||v.relative[" "],vt=tt?1:0,ut=bn(function(St){return St===ce},ct,!0),Mt=bn(function(St){return h.call(ce,St)>-1},ct,!0),Tt=[function(St,$t,xt){var Xt=!tt&&(xt||$t!=x)||((ce=$t).nodeType?ut(St,$t,xt):Mt(St,$t,xt));return ce=null,Xt}];vt<He;vt++)if(Te=v.relative[Z[vt].type])Tt=[bn(Mn(Tt),Te)];else{if(Te=v.filter[Z[vt].type].apply(null,Z[vt].matches),Te[ke]){for(De=++vt;De<He&&!v.relative[Z[De].type];De++);return $n(vt>1&&Mn(Tt),vt>1&&xn(Z.slice(0,vt-1).concat({value:Z[vt-2].type===" "?"*":""})).replace(Ze,"$1"),Te,vt<De&&On(Z.slice(vt,De)),De<He&&On(Z=Z.slice(De)),De<He&&xn(Z))}Tt.push(Te)}return Mn(Tt)}function Vn(Z,ce){var Te=ce.length>0,De=Z.length>0,He=function(tt,ct,vt,ut,Mt){var Tt,St,$t,xt=0,Xt="0",_r=tt&&[],ir=[],kr=x,Nr=tt||De&&v.find.TAG("*",Mt),nn=me+=kr==null?1:Math.random()||.1,fr=Nr.length;for(Mt&&(x=ct==O||ct||Mt);Xt!==fr&&(Tt=Nr[Xt])!=null;Xt++){if(De&&Tt){for(St=0,!ct&&Tt.ownerDocument!=O&&(Vr(Tt),vt=!K);$t=Z[St++];)if($t(Tt,ct||O,vt)){F.call(ut,Tt);break}Mt&&(me=nn)}Te&&((Tt=!$t&&Tt)&&xt--,tt&&_r.push(Tt))}if(xt+=Xt,Te&&Xt!==xt){for(St=0;$t=ce[St++];)$t(_r,ir,ct,vt);if(tt){if(xt>0)for(;Xt--;)_r[Xt]||ir[Xt]||(ir[Xt]=Ee.call(ut));ir=Tn(ir)}F.apply(ut,ir),Mt&&!tt&&ir.length>0&&xt+ce.length>1&&_.uniqueSort(ut)}return Mt&&(me=nn,x=kr),_r};return Te?rr(He):He}function Pn(Z,ce){var Te,De=[],He=[],tt=ft[Z+" "];if(!tt){for(ce||(ce=dn(Z)),Te=ce.length;Te--;)tt=On(ce[Te]),tt[ke]?De.push(tt):He.push(tt);tt=ft(Z,Vn(He,De)),tt.selector=Z}return tt}function Bn(Z,ce,Te,De){var He,tt,ct,vt,ut,Mt=typeof Z=="function"&&Z,Tt=!De&&dn(Z=Mt.selector||Z);if(Te=Te||[],Tt.length===1){if(tt=Tt[0]=Tt[0].slice(0),tt.length>2&&(ct=tt[0]).type==="ID"&&ce.nodeType===9&&K&&v.relative[tt[1].type]){if(ce=(v.find.ID(ct.matches[0].replace(nr,gr),ce)||[])[0],ce)Mt&&(ce=ce.parentNode);else return Te;Z=Z.slice(tt.shift().value.length)}for(He=Ar.needsContext.test(Z)?0:tt.length;He--&&(ct=tt[He],!v.relative[vt=ct.type]);)if((ut=v.find[vt])&&(De=ut(ct.matches[0].replace(nr,gr),tn.test(tt[0].type)&&Dn(ce.parentNode)||ce))){if(tt.splice(He,1),Z=De.length&&xn(tt),!Z)return F.apply(Te,De),Te;break}}return(Mt||Pn(Z,Tt))(De,ce,!K,Te,!ce||tn.test(Z)&&Dn(ce.parentNode)||ce),Te}L.sortStable=ke.split("").sort(Dt).join("")===ke,Vr(),L.sortDetached=Pr(function(Z){return Z.compareDocumentPosition(O.createElement("fieldset"))&1}),_.find=Rt,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,Rt.compile=Pn,Rt.select=Bn,Rt.setDocument=Vr,Rt.tokenize=dn,Rt.escape=_.escapeSelector,Rt.getText=_.text,Rt.isXML=_.isXMLDoc,Rt.selectors=_.expr,Rt.support=_.support,Rt.uniqueSort=_.uniqueSort})();var yt=function(u,v,x){for(var E=[],D=x!==void 0;(u=u[v])&&u.nodeType!==9;)if(u.nodeType===1){if(D&&_(u).is(x))break;E.push(u)}return E},Bt=function(u,v){for(var x=[];u;u=u.nextSibling)u.nodeType===1&&u!==v&&x.push(u);return x},se=_.expr.match.needsContext,xe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function qe(u,v,x){return k(v)?_.grep(u,function(E,D){return!!v.call(E,D,E)!==x}):v.nodeType?_.grep(u,function(E){return E===v!==x}):typeof v!="string"?_.grep(u,function(E){return h.call(v,E)>-1!==x}):_.filter(v,u,x)}_.filter=function(u,v,x){var E=v[0];return x&&(u=":not("+u+")"),v.length===1&&E.nodeType===1?_.find.matchesSelector(E,u)?[E]:[]:_.find.matches(u,_.grep(v,function(D){return D.nodeType===1}))},_.fn.extend({find:function(u){var v,x,E=this.length,D=this;if(typeof u!="string")return this.pushStack(_(u).filter(function(){for(v=0;v<E;v++)if(_.contains(D[v],this))return!0}));for(x=this.pushStack([]),v=0;v<E;v++)_.find(u,D[v],x);return E>1?_.uniqueSort(x):x},filter:function(u){return this.pushStack(qe(this,u||[],!1))},not:function(u){return this.pushStack(qe(this,u||[],!0))},is:function(u){return!!qe(this,typeof u=="string"&&se.test(u)?_(u):u||[],!1).length}});var R,re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,W=_.fn.init=function(u,v,x){var E,D;if(!u)return this;if(x=x||R,typeof u=="string")if(u[0]==="<"&&u[u.length-1]===">"&&u.length>=3?E=[null,u,null]:E=re.exec(u),E&&(E[1]||!v))if(E[1]){if(v=v instanceof _?v[0]:v,_.merge(this,_.parseHTML(E[1],v&&v.nodeType?v.ownerDocument||v:S,!0)),xe.test(E[1])&&_.isPlainObject(v))for(E in v)k(this[E])?this[E](v[E]):this.attr(E,v[E]);return this}else return D=S.getElementById(E[2]),D&&(this[0]=D,this.length=1),this;else return!v||v.jquery?(v||x).find(u):this.constructor(v).find(u);else{if(u.nodeType)return this[0]=u,this.length=1,this;if(k(u))return x.ready!==void 0?x.ready(u):u(_)}return _.makeArray(u,this)};W.prototype=_.fn,R=_(S);var ne=/^(?:parents|prev(?:Until|All))/,be={children:!0,contents:!0,next:!0,prev:!0};_.fn.extend({has:function(u){var v=_(u,this),x=v.length;return this.filter(function(){for(var E=0;E<x;E++)if(_.contains(this,v[E]))return!0})},closest:function(u,v){var x,E=0,D=this.length,F=[],O=typeof u!="string"&&_(u);if(!se.test(u)){for(;E<D;E++)for(x=this[E];x&&x!==v;x=x.parentNode)if(x.nodeType<11&&(O?O.index(x)>-1:x.nodeType===1&&_.find.matchesSelector(x,u))){F.push(x);break}}return this.pushStack(F.length>1?_.uniqueSort(F):F)},index:function(u){return u?typeof u=="string"?h.call(_(u),this[0]):h.call(this,u.jquery?u[0]:u):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(u,v){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(u,v))))},addBack:function(u){return this.add(u==null?this.prevObject:this.prevObject.filter(u))}});function fe(u,v){for(;(u=u[v])&&u.nodeType!==1;);return u}_.each({parent:function(u){var v=u.parentNode;return v&&v.nodeType!==11?v:null},parents:function(u){return yt(u,"parentNode")},parentsUntil:function(u,v,x){return yt(u,"parentNode",x)},next:function(u){return fe(u,"nextSibling")},prev:function(u){return fe(u,"previousSibling")},nextAll:function(u){return yt(u,"nextSibling")},prevAll:function(u){return yt(u,"previousSibling")},nextUntil:function(u,v,x){return yt(u,"nextSibling",x)},prevUntil:function(u,v,x){return yt(u,"previousSibling",x)},siblings:function(u){return Bt((u.parentNode||{}).firstChild,u)},children:function(u){return Bt(u.firstChild)},contents:function(u){return u.contentDocument!=null&&i(u.contentDocument)?u.contentDocument:(ee(u,"template")&&(u=u.content||u),_.merge([],u.childNodes))}},function(u,v){_.fn[u]=function(x,E){var D=_.map(this,v,x);return u.slice(-5)!=="Until"&&(E=x),E&&typeof E=="string"&&(D=_.filter(E,D)),this.length>1&&(be[u]||_.uniqueSort(D),ne.test(u)&&D.reverse()),this.pushStack(D)}});var ye=/[^\x20\t\r\n\f]+/g;function et(u){var v={};return _.each(u.match(ye)||[],function(x,E){v[E]=!0}),v}_.Callbacks=function(u){u=typeof u=="string"?et(u):_.extend({},u);var v,x,E,D,F=[],O=[],Y=-1,K=function(){for(D=D||u.once,E=v=!0;O.length;Y=-1)for(x=O.shift();++Y<F.length;)F[Y].apply(x[0],x[1])===!1&&u.stopOnFalse&&(Y=F.length,x=!1);u.memory||(x=!1),v=!1,D&&(x?F=[]:F="")},ae={add:function(){return F&&(x&&!v&&(Y=F.length-1,O.push(x)),function he(ke){_.each(ke,function(me,Re){k(Re)?(!u.unique||!ae.has(Re))&&F.push(Re):Re&&Re.length&&te(Re)!=="str
10ing"&&he(Re)})}(arguments),x&&!v&&K()),this},remove:function(){return _.each(arguments,function(he,ke){for(var me;(me=_.inArray(ke,F,me))>-1;)F.splice(me,1),me<=Y&&Y--}),this},has:function(he){return he?_.inArray(he,F)>-1:F.length>0},empty:function(){return F&&(F=[]),this},disable:function(){return D=O=[],F=x="",this},disabled:function(){return!F},lock:function(){return D=O=[],!x&&!v&&(F=x=""),this},locked:function(){return!!D},fireWith:function(he,ke){return D||(ke=ke||[],ke=[he,ke.slice?ke.slice():ke],O.push(ke),v||K()),this},fire:function(){return ae.fireWith(this,arguments),this},fired:function(){return!!E}};return ae};function Be(u){return u}function ht(u){throw u}function _t(u,v,x,E){var D;try{u&&k(D=u.promise)?D.call(u).done(v).fail(x):u&&k(D=u.then)?D.call(u,v,x):v.apply(void 0,[u].slice(E))}catch(F){x.apply(void 0,[F])}}_.extend({Deferred:function(u){var v=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],x="pending",E={state:function(){return x},always:function(){return D.done(arguments).fail(arguments),this},catch:function(F){return E.then(null,F)},pipe:function(){var F=arguments;return _.Deferred(function(O){_.each(v,function(Y,K){var ae=k(F[K[4]])&&F[K[4]];D[K[1]](function(){var he=ae&&ae.apply(this,arguments);he&&k(he.promise)?he.promise().progress(O.notify).done(O.resolve).fail(O.reject):O[K[0]+"With"](this,ae?[he]:arguments)})}),F=null}).promise()},then:function(F,O,Y){var K=0;function ae(he,ke,me,Re){return function(){var Je=this,mt=arguments,ft=function(){var Dt,Wt;if(!(he<K)){if(Dt=me.apply(Je,mt),Dt===ke.promise())throw new TypeError("Thenable self-resolution");Wt=Dt&&(typeof Dt=="object"||typeof Dt=="function")&&Dt.then,k(Wt)?Re?Wt.call(Dt,ae(K,ke,Be,Re),ae(K,ke,ht,Re)):(K++,Wt.call(Dt,ae(K,ke,Be,Re),ae(K,ke,ht,Re),ae(K,ke,Be,ke.notifyWith))):(me!==Be&&(Je=void 0,mt=[Dt]),(Re||ke.resolveWith)(Je,mt))}},kt=Re?ft:function(){try{ft()}catch(Dt){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(Dt,kt.error),he+1>=K&&(me!==ht&&(Je=void 0,mt=[Dt]),ke.rejectWith(Je,mt))}};he?kt():(_.Deferred.getErrorHook?kt.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(kt.error=_.Deferred.getStackHook()),r.setTimeout(kt))}}return _.Deferred(function(he){v[0][3].add(ae(0,he,k(Y)?Y:Be,he.notifyWith)),v[1][3].add(ae(0,he,k(F)?F:Be)),v[2][3].add(ae(0,he,k(O)?O:ht))}).promise()},promise:function(F){return F!=null?_.extend(F,E):E}},D={};return _.each(v,function(F,O){var Y=O[2],K=O[5];E[O[1]]=Y.add,K&&Y.add(function(){x=K},v[3-F][2].disable,v[3-F][3].disable,v[0][2].lock,v[0][3].lock),Y.add(O[3].fire),D[O[0]]=function(){return D[O[0]+"With"](this===D?void 0:this,arguments),this},D[O[0]+"With"]=Y.fireWith}),E.promise(D),u&&u.call(D,D),D},when:function(u){var v=arguments.length,x=v,E=Array(x),D=a.call(arguments),F=_.Deferred(),O=function(Y){return function(K){E[Y]=this,D[Y]=arguments.length>1?a.call(arguments):K,--v||F.resolveWith(E,D)}};if(v<=1&&(_t(u,F.done(O(x)).resolve,F.reject,!v),F.state()==="pending"||k(D[x]&&D[x].then)))return F.then();for(;x--;)_t(D[x],O(x),F.reject);return F.promise()}});var Et=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(u,v){r.console&&r.console.warn&&u&&Et.test(u.name)&&r.console.warn("jQuery.Deferred exception: "+u.message,u.stack,v)},_.readyException=function(u){r.setTimeout(function(){throw u})};var Pt=_.Deferred();_.fn.ready=function(u){return Pt.then(u).catch(function(v){_.readyException(v)}),this},_.extend({isReady:!1,readyWait:1,ready:function(u){(u===!0?--_.readyWait:_.isReady)||(_.isReady=!0,!(u!==!0&&--_.readyWait>0)&&Pt.resolveWith(S,[_]))}}),_.ready.then=Pt.then;function Ut(){S.removeEventListener("DOMContentLoaded",Ut),r.removeEventListener("load",Ut),_.ready()}S.readyState==="complete"||S.readyState!=="loading"&&!S.documentElement.doScroll?r.setTimeout(_.ready):(S.addEventListener("DOMContentLoaded",Ut),r.addEventListener("load",Ut));var rt=function(u,v,x,E,D,F,O){var Y=0,K=u.length,ae=x==null;if(te(x)==="object"){D=!0;for(Y in x)rt(u,v,Y,x[Y],!0,F,O)}else if(E!==void 0&&(D=!0,k(E)||(O=!0),ae&&(O?(v.call(u,E),v=null):(ae=v,v=function(he,ke,me){return ae.call(_(he),me)})),v))for(;Y<K;Y++)v(u[Y],x,O?E:E.call(u[Y],Y,v(u[Y],x)));return D?u:ae?v.call(u):K?v(u[0],x):F},Vt=/^-ms-/,Ke=/-([a-z])/g;function At(u,v){return v.toUpperCase()}function Ve(u){return u.replace(Vt,"ms-").replace(Ke,At)}var wt=function(u){return u.nodeType===1||u.nodeType===9||!+u.nodeType};function Ct(){this.expando=_.expando+Ct.uid++}Ct.uid=1,Ct.prototype={cache:function(u){var v=u[this.expando];return v||(v={},wt(u)&&(u.nodeType?u[this.expando]=v:Object.defineProperty(u,this.expando,{value:v,configurable:!0}))),v},set:function(u,v,x){var E,D=this.cache(u);if(typeof v=="string")D[Ve(v)]=x;else for(E in v)D[Ve(E)]=v[E];return D},get:function(u,v){return v===void 0?this.cache(u):u[this.expando]&&u[this.expando][Ve(v)]},access:function(u,v,x){return v===void 0||v&&typeof v=="string"&&x===void 0?this.get(u,v):(this.set(u,v,x),x!==void 0?x:v)},remove:function(u,v){var x,E=u[this.expando];if(E!==void 0){if(v!==void 0)for(Array.isArray(v)?v=v.map(Ve):(v=Ve(v),v=v in E?[v]:v.match(ye)||[]),x=v.length;x--;)delete E[v[x]];(v===void 0||_.isEmptyObject(E))&&(u.nodeType?u[this.expando]=void 0:delete u[this.expando])}},hasData:function(u){var v=u[this.expando];return v!==void 0&&!_.isEmptyObject(v)}};var nt=new Ct,Ht=new Ct,Tr=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ar=/[A-Z]/g;function Mr(u){return u==="true"?!0:u==="false"?!1:u==="null"?null:u===+u+""?+u:Tr.test(u)?JSON.parse(u):u}function Er(u,v,x){var E;if(x===void 0&&u.nodeType===1)if(E="data-"+v.replace(ar,"-$&").toLowerCase(),x=u.getAttribute(E),typeof x=="str
10ing"){try{x=Mr(x)}catch{}Ht.set(u,v,x)}else x=void 0;return x}_.extend({hasData:function(u){return Ht.hasData(u)||nt.hasData(u)},data:function(u,v,x){return Ht.access(u,v,x)},removeData:function(u,v){Ht.remove(u,v)},_data:function(u,v,x){return nt.access(u,v,x)},_removeData:function(u,v){nt.remove(u,v)}}),_.fn.extend({data:function(u,v){var x,E,D,F=this[0],O=F&&F.attributes;if(u===void 0){if(this.length&&(D=Ht.get(F),F.nodeType===1&&!nt.get(F,"hasDataAttrs"))){for(x=O.length;x--;)O[x]&&(E=O[x].name,E.indexOf("data-")===0&&(E=Ve(E.slice(5)),Er(F,E,D[E])));nt.set(F,"hasDataAttrs",!0)}return D}return typeof u=="object"?this.each(function(){Ht.set(this,u)}):rt(this,function(Y){var K;if(F&&Y===void 0)return K=Ht.get(F,u),K!==void 0||(K=Er(F,u),K!==void 0)?K:void 0;this.each(function(){Ht.set(this,u,Y)})},null,v,arguments.length>1,null,!0)},removeData:function(u){return this.each(function(){Ht.remove(this,u)})}}),_.extend({queue:function(u,v,x){var E;if(u)return v=(v||"fx")+"queue",E=nt.get(u,v),x&&(!E||Array.isArray(x)?E=nt.access(u,v,_.makeArray(x)):E.push(x)),E||[]},dequeue:function(u,v){v=v||"fx";var x=_.queue(u,v),E=x.length,D=x.shift(),F=_._queueHooks(u,v),O=function(){_.dequeue(u,v)};D==="inprogress"&&(D=x.shift(),E--),D&&(v==="fx"&&x.unshift("inprogress"),delete F.stop,D.call(u,O,F)),!E&&F&&F.empty.fire()},_queueHooks:function(u,v){var x=v+"queueHooks";return nt.get(u,x)||nt.access(u,x,{empty:_.Callbacks("once memory").add(function(){nt.remove(u,[v+"queue",x])})})}}),_.fn.extend({queue:function(u,v){var x=2;return typeof u!="string"&&(v=u,u="fx",x--),arguments.length<x?_.queue(this[0],u):v===void 0?this:this.each(function(){var E=_.queue(this,u,v);_._queueHooks(this,u),u==="fx"&&E[0]!=="inprogress"&&_.dequeue(this,u)})},dequeue:function(u){return this.each(function(){_.dequeue(this,u)})},clearQueue:function(u){return this.queue(u||"fx",[])},promise:function(u,v){var x,E=1,D=_.Deferred(),F=this,O=this.length,Y=function(){--E||D.resolveWith(F,[F])};for(typeof u!="string"&&(v=u,u=void 0),u=u||"fx";O--;)x=nt.get(F[O],u+"queueHooks"),x&&x.empty&&(E++,x.empty.add(Y));return Y(),D.promise(v)}});var dr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,sr=new RegExp("^(?:([+-])=|)("+dr+")([a-z%]*)$","i"),Jt=["Top","Right","Bottom","Left"],Zt=S.documentElement,Ft=function(u){return _.contains(u.ownerDocument,u)},Lr={composed:!0};Zt.getRootNode&&(Ft=function(u){return _.contains(u.ownerDocument,u)||u.getRootNode(Lr)===u.ownerDocument});var hr=function(u,v){return u=v||u,u.style.display==="none"||u.style.display===""&&Ft(u)&&_.css(u,"display")==="none"};function Sr(u,v,x,E){var D,F,O=20,Y=E?function(){return E.cur()}:function(){return _.css(u,v,"")},K=Y(),ae=x&&x[3]||(_.cssNumber[v]?"":"px"),he=u.nodeType&&(_.cssNumber[v]||ae!=="px"&&+K)&&sr.exec(_.css(u,v));if(he&&he[3]!==ae){for(K=K/2,ae=ae||he[3],he=+K||1;O--;)_.style(u,v,he+ae),(1-F)*(1-(F=Y()/K||.5))<=0&&(O=0),he=he/F;he=he*2,_.style(u,v,he+ae),x=x||[]}return x&&(he=+he||+K||0,D=x[1]?he+(x[1]+1)*x[2]:+x[2],E&&(E.unit=ae,E.start=he,E.end=D)),D}var pr={};function or(u){var v,x=u.ownerDocument,E=u.nodeName,D=pr[E];return D||(v=x.body.appendChild(x.createElement(E)),D=_.css(v,"display"),v.parentNode.removeChild(v),D==="none"&&(D="block"),pr[E]=D,D)}function Yt(u,v){for(var x,E,D=[],F=0,O=u.length;F<O;F++)E=u[F],E.style&&(x=E.style.display,v?(x==="none"&&(D[F]=nt.get(E,"display")||null,D[F]||(E.style.display="")),E.style.display===""&&hr(E)&&(D[F]=or(E))):x!=="none"&&(D[F]="none",nt.set(E,"display",x)));for(F=0;F<O;F++)D[F]!=null&&(u[F].style.display=D[F]);return u}_.fn.extend({show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(u){return typeof u=="boolean"?u?this.show():this.hide():this.each(function(){hr(this)?_(this).show():_(this).hide()})}});var lr=/^(?:checkbox|radio)$/i,wr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,U=/^$|^module$|\/(?:java|ecma)script/i;(function(){var u=S.createDocumentFragment(),v=u.appendChild(S.createElement("div")),x=S.createElement("input");x.setAttribute("type","radio"),x.setAttribute("checked","checked"),x.setAttribute("name","t"),v.appendChild(x),L.checkClone
vendor: 4,237 bytes, line 10
10=v.cloneNode(!0).cloneNode(!0).lastChild.checked,v.innerHTML="<textarea>x</textarea>",L.noCloneChecked=!!v.cloneNode(!0).lastChild.defaultValue,v.innerHTML="<option></option>",L.option=!!v.lastChild})();var J={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};J.tbody=J.tfoot=J.colgroup=J.caption=J.thead,J.th=J.td,L.option||(J.optgroup=J.option=[1,"<select multiple='multiple'>","</select>"]);function ue(u,v){var x;return typeof u.getElementsByTagName<"u"?x=u.getElementsByTagName(v||"*"):typeof u.querySelectorAll<"u"?x=u.querySelectorAll(v||"*"):x=[],v===void 0||v&&ee(u,v)?_.merge([u],x):x}function Me(u,v){for(var x=0,E=u.length;x<E;x++)nt.set(u[x],"globalEval",!v||nt.get(v[x],"globalEval"))}var Ge=/<|&#?\w+;/;function it(u,v,x,E,D){for(var F,O,Y,K,ae,he,ke=v.createDocumentFragment(),me=[],Re=0,Je=u.length;Re<Je;Re++)if(F=u[Re],F||F===0)if(te(F)==="object")_.merge(me,F.nodeType?[F]:F);else if(!Ge.test(F))me.push(v.createTextNode(F));else{for(O=O||ke.appendChild(v.createElement("div")),Y=(wr.exec(F)||["",""])[1].toLowerCase(),K=J[Y]||J._default,O.innerHTML=K[1]+_.htmlPrefilter(F)+K[2],he=K[0];he--;)O=O.lastChild;_.merge(me,O.childNodes),O=ke.firstChild,O.textContent=""}for(ke.textContent="",Re=0;F=me[Re++];){if(E&&_.inArray(F,E)>-1){D&&D.push(F);continue}if(ae=Ft(F),O=ue(ke.appendChild(F),"script"),ae&&Me(O),x)for(he=0;F=O[he++];)U.test(F.type||"")&&x.push(F)}return ke}var bt=/^([^.]*)(?:\.(.+)|)/;function lt(){return!0}function Ce(){return!1}function ot(u,v,x,E,D,F){var O,Y;if(typeof v=="object"){typeof x!="string"&&(E=E||x,x=void 0);for(Y in v)ot(u,Y,x,E,v[Y],F);return u}if(E==null&&D==null?(D=x,E=x=void 0):D==null&&(typeof x=="string"?(D=E,E=void 0):(D=E,E=x,x=void 0)),D===!1)D=Ce;else if(!D)return u;return F===1&&(O=D,D=function(K){return _().off(K),O.apply(this,arguments)},D.guid=O.guid||(O.guid=_.guid++)),u.each(function(){_.event.add(this,v,D,E,x)})}_.event={global:{},add:function(u,v,x,E,D){var F,O,Y,K,ae,he,ke,me,Re,Je,mt,ft=nt.get(u);if(wt(u))for(x.handler&&(F=x,x=F.handler,D=F.selector),D&&_.find.matchesSelector(Zt,D),x.guid||(x.guid=_.guid++),(K=ft.events)||(K=ft.events=Object.create(null)),(O=ft.handle)||(O=ft.handle=function(kt){return typeof _<"u"&&_.event.triggered!==kt.type?_.event.dispatch.apply(u,arguments):void 0}),v=(v||"").match(ye)||[""],ae=v.length;ae--;)Y=bt.exec(v[ae])||[],Re=mt=Y[1],Je=(Y[2]||"").split(".").sort(),Re&&(ke=_.event.special[Re]||{},Re=(D?ke.delegateType:ke.bindType)||Re,ke=_.event.special[Re]||{},he=_.extend({type:Re,origType:mt,data:E,handler:x,guid:x.guid,selector:D,needsContext:D&&_.expr.match.needsContext.test(D),namespace:Je.join(".")},F),(me=K[Re])||(me=K[Re]=[],me.delegateCount=0,(!ke.setup||ke.setup.call(u,E,Je,O)===!1)&&u.addEventListener&&u.addEventListener(Re,O)),ke.add&&(ke.add.call(u,he),he.handler.guid||(he.handler.guid=x.guid)),D?me.splice(me.delegateCount++,0,he):me.push(he),_.event.global[Re]=!0)},remove:function(u,v,x,E,D){var F,O,Y,K,ae,he,ke,me,Re,Je,mt,ft=nt.hasData(u)&&nt.get(u);if(!(!ft||!(K=ft.events))){for(v=(v||"").match(ye)||[""],ae=v.length;ae--;){if(Y=bt.exec(v[ae])||[],Re=mt=Y[1],Je=(Y[2]||"").split(".").sort(),!Re){for(Re in K)_.event.remove(u,Re+v[ae],x,E,!0);continue}for(ke=_.event.special[Re]||{},Re=(E?ke.delegateType:ke.bindType)||Re,me=K[Re]||[],Y=Y[2]&&new RegExp("(^|\\.)"+Je.join("\\.(?:.*\\.|)")+"(\\.|$)"),O=F=me.length;F--;)he=me[F],(D||mt===he.origType)&&(!x||x.guid===he.guid)&&(!Y||Y.test(he.namespace))&&(!E||E===he.selector||E==="**"&&he.selector)&&(me.splice(F,1),he.selector&&me.delegateCount--,ke.remove&&ke.remove.call(u,he));O&&!me.length&&((!ke.teardown||ke.teardown.call(u,Je,ft.handle)===!1)&&_.removeEvent(u,Re,ft.handle),delete K[Re])}_.isEmptyObject(K)&&nt.remove(u,"handle events")}},dispatch:function(u){var v,x,E,D,F,O,Y=new Array(arguments.length),K=_.event.fix(u),ae=(nt.get(this,"events")||Object.create(null))[K.type]||[],he=_.event.special[K.type]||{};for(Y[0]=K,v=1;v<arguments.length;v++)Y[v]=arguments[v];if(K.delegateTarget=this,!(he.preDispatch&&he.preDispatch.call(this,K)===!1)){for(O=_.event.handlers.call(this,K,ae),v=0;
10(D=O[v++])&&!K.isPropagationStopped();)for(K.currentTarget=D.elem,x=0;(F=D.handlers[x++])&&!K.isImmediatePropagationStopped();)(!K.rnamespace||F.namespace===!1||K.rnamespace.test(F.namespace))&&(K.handleObj=F,K.data=F.data,E=((_.event.special[F.origType]||{}).handle||F.handler).apply(D.elem,Y),E!==void 0&&(K.result=E)===!1&&(K.preventDefault(),K.stopPropagation()));return he.postDispatch&&he.postDispatch.call(this,K),K.result}},handlers:function(u,v){var x,E,D,F,O,Y=[],K=v.delegateCount,ae=u.target;if(K&&ae.nodeType&&!(u.type==="click"&&u.button>=1)){for(;ae!==this;ae=ae.parentNode||this)if(ae.nodeType===1&&!(u.type==="click"&&ae.disabled===!0)){for(F=[],O={},x=0;x<K;x++)E=v[x],D=E.selector+" ",O[D]===void 0&&(O[D]=E.needsContext?_(D,this).index(ae)>-1:_.find(D,this,null,[ae]).length),O[D]&&F.push(E);F.length&&Y.push({elem:ae,handlers:F})}}return ae=this,K<v.length&&Y.push({elem:ae,handlers:v.slice(K)}),Y},addProp:function(u,v){Object.defineProperty(_.Event.prototype,u,{enumerable:!0,configurable:!0,get:k(v)?function(){if(this.originalEvent)return v(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[u]},set:function(x){Object.defineProperty(this,u,{enumerable:!0,configurable:!0,writable:!0,value:x})}})},fix:function(u){return u[_.expando]?u:new _.Event(u)},special:{load:{noBubble:!0},click:{setup:function(u){var v=this||u;return lr.test(v.type)&&v.click&&ee(v,"input")&&st(v,"click",!0),!1},trigger:function(u){var v=this||u;return lr.test(v.type)&&v.click&&ee(v,"input")&&st(v,"click"),!0},_default:function(u){var v=u.target;return lr.test(v.type)&&v.click&&ee(v,"input")&&nt.get(v,"click")||ee(v,"a")}},beforeunload:{postDispatch:function(u){u.result!==void 0&&u.originalEvent&&(u.originalEvent.returnValue=u.result)}}}};function st(u,v,x){if(!x){nt.get(u,v)===void 0&&_.event.add(u,v,lt);return}nt.set(u,v,!1),_.event.add(u,v,{namespace:!1,handler:function(E){var D,F=nt.get(this,v);if(E.isTrigger&1&&this[v]){if(F)(_.event.special[v]||{}).delegateType&&E.stopPropagation();else if(F=a.call(arguments),nt.set(this,v,F),this[v](),D=nt.get(this,v),nt.set(this,v,!1),F!==D)return E.stopImmediatePropagation(),E.preventDefault(),D}else F&&(nt.set(this,v,_.event.trigger(F[0],F.slice(1),this)),E.stopPropagation(),E.isImmediatePropagationStopped=lt)}})}_.removeEvent=function(u,v,x){u.removeEventListener&&u.removeEventListener(v,x)},_.Event=function(u,v){if(!(this instanceof _.Event))return new _.Event(u,v);u&&u.type?(this.originalEvent=u,this.type=u.type,this.isDefaultPrevented=u.defaultPrevented||u.defaultPrevented===void 0&&u.returnValue===!1?lt:Ce,this.target=u.target&&u.target.nodeType===3?u.target.parentNode:u.target,this.currentTarget=u.currentTarget,this.relatedTarget=u.relatedTarget):this.type=u,v&&_.extend(this,v),this.timeStamp=u&&u.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var u=this.originalEvent;this.isDefaultPrevented=lt,u&&!this.isSimulated&&u.preventDefault()},stopPropagation:function(){var u=this.originalEvent;this.isPropagationStopped=lt,u&&!this.isSimulated&&u.stopPropagation()},stopImmediatePropagation:function(){var u=this.originalEvent;this.isImmediatePropagationStopped=lt,u&&!this.isSimulated&&u.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(u,v){function x(E){if(S.documentMode){var D=nt.get(this,"handle"),F=_.event.fix(E);F.type=E.type==="focusin"?"focus":"blur",F.isSimulated=!0,D(E),F.target===F.currentTarget&&D(F)}else _.event.simulate(v,E.target,_.event.fix(E))}_.event.special[u]={setup:function(){var E;if(st(this,u,!0),S.documentMode)E=nt.get(this,v),E||this.addEventListener(v,x),nt.set(this,v,(E||0)+1);else return!1},trigger:function(){return st(this,u),!0},teardown:function(){var E;if(S.documentMode)E=nt.get(this,v)-1,E?nt.set(this,v,E):(this.removeEventListener(v,x),nt.remove(this,v));else return!1},_default:function(E){return nt.get(E.target,u)},delegateType:v},_.event.special[v]={setup:function(){var E=this.ownerDocument||this.document||this,D=S.documentMode?this:E,F=nt.get(D,v);F||(S.documentMode?this.addEventListener(v,x):E.addEventListener(u,x,!0)),nt.set(D,v,(F||0)+1)},teardown:function(){var E=this.ownerDocument||this.document||this,D=S.documentMode?this:E,F=nt.get(D,v)-1;F?nt.set(D,v,F):(S.documentMode?this.removeEventListener(v,x):E.removeEventListener(u,x,!0),nt.remove(D,v))}}}
vendor: 5,535 bytes, line 10
10),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(u,v){_.event.special[u]={delegateType:v,bindType:v,handle:function(x){var E,D=this,F=x.relatedTarget,O=x.handleObj;return(!F||F!==D&&!_.contains(D,F))&&(x.type=O.origType,E=O.handler.apply(this,arguments),x.type=v),E}}}),_.fn.extend({on:function(u,v,x,E){return ot(this,u,v,x,E)},one:function(u,v,x,E){return ot(this,u,v,x,E,1)},off:function(u,v,x){var E,D;if(u&&u.preventDefault&&u.handleObj)return E=u.handleObj,_(u.delegateTarget).off(E.namespace?E.origType+"."+E.namespace:E.origType,E.selector,E.handler),this;if(typeof u=="object"){for(D in u)this.off(D,v,u[D]);return this}return(v===!1||typeof v=="function")&&(x=v,v=void 0),x===!1&&(x=Ce),this.each(function(){_.event.remove(this,u,x,v)})}});var It=/<script|<style|<link/i,P=/checked\s*(?:[^=]|=\s*.checked.)/i,X=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function z(u,v){return ee(u,"table")&&ee(v.nodeType!==11?v:v.firstChild,"tr")&&_(u).children("tbody")[0]||u}function B(u){return u.type=(u.getAttribute("type")!==null)+"/"+u.type,u}function G(u){return(u.type||"").slice(0,5)==="true/"?u.type=u.type.slice(5):u.removeAttribute("type"),u}function Q(u,v){var x,E,D,F,O,Y,K;if(v.nodeType===1){if(nt.hasData(u)&&(F=nt.get(u),K=F.events,K)){nt.remove(v,"handle events");for(D in K)for(x=0,E=K[D].length;x<E;x++)_.event.add(v,D,K[D][x])}Ht.hasData(u)&&(O=Ht.access(u),Y=_.extend({},O),Ht.set(v,Y))}}function pe(u,v){var x=v.nodeName.toLowerCase();x==="input"&&lr.test(u.type)?v.checked=u.checked:(x==="input"||x==="textarea")&&(v.defaultValue=u.defaultValue)}function Fe(u,v,x,E){v=s(v);var D,F,O,Y,K,ae,he=0,ke=u.length,me=ke-1,Re=v[0],Je=k(Re);if(Je||ke>1&&typeof Re=="string"&&!L.checkClone&&P.test(Re))return u.each(function(mt){var ft=u.eq(mt);Je&&(v[0]=Re.call(this,mt,ft.html())),Fe(ft,v,x,E)});if(ke&&(D=it(v,u[0].ownerDocument,!1,u,E),F=D.firstChild,D.childNodes.length===1&&(D=F),F||E)){for(O=_.map(ue(D,"script"),B),Y=O.length;he<ke;he++)K=D,he!==me&&(K=_.clone(K,!0,!0),Y&&_.merge(O,ue(K,"script"))),x.call(u[he],K,he);if(Y)for(ae=O[O.length-1].ownerDocument,_.map(O,G),he=0;he<Y;he++)K=O[he],U.test(K.type||"")&&!nt.access(K,"globalEval")&&_.contains(ae,K)&&(K.src&&(K.type||"").toLowerCase()!=="module"?_._evalUrl&&!K.noModule&&_._evalUrl(K.src,{nonce:K.nonce||K.getAttribute("nonce")},ae):H(K.textContent.replace(X,""),K,ae))}return u}function ve(u,v,x){for(var E,D=v?_.filter(v,u):u,F=0;(E=D[F])!=null;F++)!x&&E.nodeType===1&&_.cleanData(ue(E)),E.parentNode&&(x&&Ft(E)&&Me(ue(E,"script")),E.parentNode.removeChild(E));return u}_.extend({htmlPrefilter:function(u){return u},clone:function(u,v,x){var E,D,F,O,Y=u.cloneNode(!0),K=Ft(u);if(!L.noCloneChecked&&(u.nodeType===1||u.nodeType===11)&&!_.isXMLDoc(u))for(O=ue(Y),F=ue(u),E=0,D=F.length;E<D;E++)pe(F[E],O[E]);if(v)if(x)for(F=F||ue(u),O=O||ue(Y),E=0,D=F.length;E<D;E++)Q(F[E],O[E]);else Q(u,Y);return O=ue(Y,"script"),O.length>0&&Me(O,!K&&ue(u,"script")),Y},cleanData:function(u){for(var v,x,E,D=_.event.special,F=0;(x=u[F])!==void 0;F++)if(wt(x)){if(v=x[nt.expando]){if(v.events)for(E in v.events)D[E]?_.event.remove(x,E):_.removeEvent(x,E,v.handle);x[nt.expando]=void 0}x[Ht.expando]&&(x[Ht.expando]=void 0)}}}),_.fn.extend({detach:function(u){return ve(this,u,!0)},remove:function(u){return ve(this,u)},text:function(u){return rt(this,function(v){return v===void 0?_.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=v)})},null,u,arguments.length)},append:function(){return Fe(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var v=z(this,u);v.appendChild(u)}})},prepend:function(){return Fe(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var v=z(this,u);v.insertBefore(u,v.firstChild)}})},before:function(){return Fe(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this)})},after:function(){return Fe(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling)})},empty:function(){for(var u,v=0;(u=this[v])!=null;v++)u.nodeType===1&&(_.cleanData(ue(u,!1)),u.textContent="");return this},clone:function(u,v){return u=u??!1,v=v??u,this.map(function(){return _.clone(this,u,v)})},html:function(u){return rt(this,function(v){var x=this[0]||{},E=0,D=this.length;if(v===void 0&&x.nodeType===1)return x.innerHTML;if(typeof v=="string"&&!It.test(v)&&!J[(wr.exec(v)||["",""])[1].toLowerCase()]){v=_.htmlPrefilter(v);try{for(;E<D;E++)x=this[E]||{},x.nodeType===1&&(_.cleanData(ue(x,!1)),x.innerHTML=v);x=0}catch{}}x&&this.empty().append(v)},null,u,arguments.length)},replaceWith:function(){var u=[];return Fe(this,arguments,function(v){var x=this.parentNode;_.inArray(this,u)<0&&(_.cleanData(ue(this)),x&&x.replaceChild(v,this))},u)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(u,v){_.fn[u]=function(x){for(var E,D=[],F=_(x),O=F.length-1,Y=0;Y<=O;Y++)E=Y===O?this:this.clone(!0),_(F[Y])[v](E),c.apply(D,E.get());return this.pushStack(D)}});var ge=new RegExp("^("+dr+")(?!px)[a-z%]+$","i"),_e=/^--/,We=function(u){var v=u.ownerDocument.defaultView;return(!v||!v.opener)&&(v=r),v.getComputedStyle(u)},Ye=function(u,v,x){var E,D,F={};for(D in v)F[D]=u.style[D],u.style[D]=v[D];E=x.call(u);for(D in v)u.style[D]=F[D];return E},Ne=new RegExp(Jt.join("|"),"i");(function(){function u(){if(ae){K.style.cssText="position:absolute;
10left:-11111px;width:60px;margin-top:1px;padding:0;border:0",ae.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Zt.appendChild(K).appendChild(ae);var he=r.getComputedStyle(ae);x=he.top!=="1%",Y=v(he.marginLeft)===12,ae.style.right="60%",F=v(he.right)===36,E=v(he.width)===36,ae.style.position="absolute",D=v(ae.offsetWidth/3)===12,Zt.removeChild(K),ae=null}}function v(he){return Math.round(parseFloat(he))}var x,E,D,F,O,Y,K=S.createElement("div"),ae=S.createElement("div");ae.style&&(ae.style.backgroundClip="content-box",ae.cloneNode(!0).style.backgroundClip="",L.clearCloneStyle=ae.style.backgroundClip==="content-box",_.extend(L,{boxSizingReliable:function(){return u(),E},pixelBoxStyles:function(){return u(),F},pixelPosition:function(){return u(),x},reliableMarginLeft:function(){return u(),Y},scrollboxSize:function(){return u(),D},reliableTrDimensions:function(){var he,ke,me,Re;return O==null&&(he=S.createElement("table"),ke=S.createElement("tr"),me=S.createElement("div"),he.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ke.style.cssText="box-sizing:content-box;border:1px solid",ke.style.height="1px",me.style.height="9px",me.style.display="block",Zt.appendChild(he).appendChild(ke).appendChild(me),Re=r.getComputedStyle(ke),O=parseInt(Re.height,10)+parseInt(Re.borderTopWidth,10)+parseInt(Re.borderBottomWidth,10)===ke.offsetHeight,Zt.removeChild(he)),O}}))})();function Oe(u,v,x){var E,D,F,O,Y=_e.test(v),K=u.style;return x=x||We(u),x&&(O=x.getPropertyValue(v)||x[v],Y&&O&&(O=O.replace(Ze,"$1")||void 0),O===""&&!Ft(u)&&(O=_.style(u,v)),!L.pixelBoxStyles()&&ge.test(O)&&Ne.test(v)&&(E=K.width,D=K.minWidth,F=K.maxWidth,K.minWidth=K.maxWidth=K.width=O,O=x.width,K.width=E,K.minWidth=D,K.maxWidth=F)),O!==void 0?O+"":O}function ze(u,v){return{get:function(){if(u()){delete this.get;return}return(this.get=v).apply(this,arguments)}}}var at=["Webkit","Moz","ms"],zt=S.createElement("div").style,Nt={};function jt(u){for(var v=u[0].toUpperCase()+u.slice(1),x=at.length;x--;)if(u=at[x]+v,u in zt)return u}function tr(u){var v=_.cssProps[u]||Nt[u];return v||(u in zt?u:Nt[u]=jt(u)||u)}var qt=/^(none|table(?!-c[ea]).+)/,cr={position:"absolute",visibility:"hidden",display:"block"},er={letterSpacing:"0",fontWeight:"400"};function Se(u,v,x){var E=sr.exec(v);return E?Math.max(0,E[2]-(x||0))+(E[3]||"px"):v}function Ue(u,v,x,E,D,F){var O=v==="width"?1:0,Y=0,K=0,ae=0;if(x===(E?"border":"content"))return 0;for(;O<4;O+=2)x==="margin"&&(ae+=_.css(u,x+Jt[O],!0,D)),E?(x==="content"&&(K-=_.css(u,"padding"+Jt[O],!0,D)),x!=="margin"&&(K-=_.css(u,"border"+Jt[O]+"Width",!0,D))):(K+=_.css(u,"padding"+Jt[O],!0,D),x!=="padding"?K+=_.css(u,"border"+Jt[O]+"Width",!0,D):Y+=_.css(u,"border"+Jt[O]+"Width",!0,D));return!E&&F>=0&&(K+=Math.max(0,Math.ceil(u["offset"+v[0].toUpperCase()+v.slice(1)]-F-K-Y-.5))||0),K+ae}function Qe(u,v,x){var E=We(u),D=!L.boxSizingReliable()||x,F=D&&_.css(u,"boxSizing",!1,E)==="border-box",O=F,Y=Oe(u,v,E),K="offset"+v[0].toUpperCase()+v.slice(1);if(ge.test(Y)){if(!x)return Y;Y="auto"}return(!L.boxSizingReliable()&&F||!L.reliableTrDimensions()&&ee(u,"tr")||Y==="auto"||!parseFloat(Y)&&_.css(u,"display",!1,E)==="inline")&&u.getClientRects().length&&(F=_.css(u,"boxSizing",!1,E)==="border-box",O=K in u,O&&(Y=u[K])),Y=parseFloat(Y)||0,Y+Ue(u,v,x||(F?"border":"content"),O,E,Y)+"px"}_.extend({cssHooks:{opacity:{get:function(u,v){if(v){var x=Oe(u,"opacity");return x===""?"1":x}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(u,v,x,E){if(!(!u||u.nodeType===3||u.nodeType===8||!u.style)){var D,F,O,Y=Ve(v),K=_e.test(v),ae=u.style;if(K||(v=tr(Y)),O=_.cssHooks[v]||_.cssHooks[Y],x!==void 0){if(F=typeof x,F==="string"&&(D=sr.exec(x))&&D[1]&&(x=Sr(u,v,D),F="number"),x==null||x!==x)return;F==="number"&&!K&&(x+=D&&D[3]||(_.cssNumber[Y]?"":"px")),!L.clearCloneStyle&&x===""&&v.indexOf("background")===0&&(ae[v]="inherit"),(!O||!("set"in O)||(x=O.set(u,x,E))!==void 0)&&(K?ae.setProperty(v,x):ae[v]=x)}else return O&&"get"in O&&(D=O.get(u,!1,E))!==void 0?D:ae[v]}},css:function(u,v,x,E){var D,F,O,Y=Ve(v),K=_e.test(v);return K||(v=tr(Y)),O=_.cssHooks[v]||_.cssHooks[Y],O&&"get"in O&&(D=O.get(u,!0,x)),D===void 0&&(D=Oe(u,v,E)),D==="normal"&&v in er&&(D=er[v]),x===""||x?(F=parseFloat(D),x===!0||isFinite(F)?F||0:D):D}}),_.each(["height","width"],function(u,v){_.cssHooks[v]={get:function(x,E,D){if(E)return qt.test(_.css(x,"display"))&&(!x.getClientRects().length||!x.getBoundingClientRect().width)?Ye(x,cr,function(){return Qe(x,v,D)}):Qe(x,v,D)},set:function(x,E,D){var F,O=We(x),Y=!L.scrollboxSize()&&O.position==="absolute",K=Y||D,ae=K&&_.css(x,"boxSizing",!1,O)==="border-box",he=D?Ue(x,v,D,ae,O):0;return ae&&Y&&(he-=Math.ceil(x["offset"+v[0].toUpperCase()+v.slice(1)]-parseFloat(O[v])-Ue(x,v,"border",!1,O)-.5)),he&&(F=sr.exec(E))&&(F[3]||"px")!=="px"&&(x.style[v]=E,E=_.css(x,v)),Se(x,E,he)}}}),_.cssHooks.marginLeft=ze(L.reliableMarginLeft,function(u,v){if(v)return(parseFloat(Oe(u,"marginLeft"))||u.getBoundingClientRect().left-Ye(u,{marginLeft:0},function(){return u.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(u,v){_.cssHooks[u+v]={expand:function(x){for(var E=0,D={}
vendor: 10,250 bytes, line 10
10,F=typeof x=="string"?x.split(" "):[x];E<4;E++)D[u+Jt[E]+v]=F[E]||F[E-2]||F[0];return D}},u!=="margin"&&(_.cssHooks[u+v].set=Se)}),_.fn.extend({css:function(u,v){return rt(this,function(x,E,D){var F,O,Y={},K=0;if(Array.isArray(E)){for(F=We(x),O=E.length;K<O;K++)Y[E[K]]=_.css(x,E[K],!1,F);return Y}return D!==void 0?_.style(x,E,D):_.css(x,E)},u,v,arguments.length>1)}});function pt(u,v,x,E,D){return new pt.prototype.init(u,v,x,E,D)}_.Tween=pt,pt.prototype={constructor:pt,init:function(u,v,x,E,D,F){this.elem=u,this.prop=x,this.easing=D||_.easing._default,this.options=v,this.start=this.now=this.cur(),this.end=E,this.unit=F||(_.cssNumber[x]?"":"px")},cur:function(){var u=pt.propHooks[this.prop];return u&&u.get?u.get(this):pt.propHooks._default.get(this)},run:function(u){var v,x=pt.propHooks[this.prop];return this.options.duration?this.pos=v=_.easing[this.easing](u,this.options.duration*u,0,1,this.options.duration):this.pos=v=u,this.now=(this.end-this.start)*v+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),x&&x.set?x.set(this):pt.propHooks._default.set(this),this}},pt.prototype.init.prototype=pt.prototype,pt.propHooks={_default:{get:function(u){var v;return u.elem.nodeType!==1||u.elem[u.prop]!=null&&u.elem.style[u.prop]==null?u.elem[u.prop]:(v=_.css(u.elem,u.prop,""),!v||v==="auto"?0:v)},set:function(u){_.fx.step[u.prop]?_.fx.step[u.prop](u):u.elem.nodeType===1&&(_.cssHooks[u.prop]||u.elem.style[tr(u.prop)]!=null)?_.style(u.elem,u.prop,u.now+u.unit):u.elem[u.prop]=u.now}}},pt.propHooks.scrollTop=pt.propHooks.scrollLeft={set:function(u){u.elem.nodeType&&u.elem.parentNode&&(u.elem[u.prop]=u.now)}},_.easing={linear:function(u){return u},swing:function(u){return .5-Math.cos(u*Math.PI)/2},_default:"swing"},_.fx=pt.prototype.init,_.fx.step={};var Kt,Qt,Rr=/^(?:toggle|show|hide)$/,an=/queueHooks$/;function sn(){Qt&&(S.hidden===!1&&r.requestAnimationFrame?r.requestAnimationFrame(sn):r.setTimeout(sn,_.fx.interval),_.fx.tick())}function yr(){return r.setTimeout(function(){Kt=void 0}),Kt=Date.now()}function Yr(u,v){var x,E=0,D={height:u};for(v=v?1:0;E<4;E+=2-v)x=Jt[E],D["margin"+x]=D["padding"+x]=u;return v&&(D.opacity=D.width=u),D}function Hr(u,v,x){for(var E,D=(xr.tweeners[v]||[]).concat(xr.tweeners["*"]),F=0,O=D.length;F<O;F++)if(E=D[F].call(x,v,u))return E}function En(u,v,x){var E,D,F,O,Y,K,ae,he,ke="width"in v||"height"in v,me=this,Re={},Je=u.style,mt=u.nodeType&&hr(u),ft=nt.get(u,"fxshow");x.queue||(O=_._queueHooks(u,"fx"),O.unqueued==null&&(O.unqueued=0,Y=O.empty.fire,O.empty.fire=function(){O.unqueued||Y()}),O.unqueued++,me.always(function(){me.always(function(){O.unqueued--,_.queue(u,"fx").length||O.empty.fire()})}));for(E in v)if(D=v[E],Rr.test(D)){if(delete v[E],F=F||D==="toggle",D===(mt?"hide":"show"))if(D==="show"&&ft&&ft[E]!==void 0)mt=!0;else continue;Re[E]=ft&&ft[E]||_.style(u,E)}if(K=!_.isEmptyObject(v),!(!K&&_.isEmptyObject(Re))){ke&&u.nodeType===1&&(x.overflow=[Je.overflow,Je.overflowX,Je.overflowY],ae=ft&&ft.display,ae==null&&(ae=nt.get(u,"display")),he=_.css(u,"display"),he==="none"&&(ae?he=ae:(Yt([u],!0),ae=u.style.display||ae,he=_.css(u,"display"),Yt([u]))),(he==="inline"||he==="inline-block"&&ae!=null)&&_.css(u,"float")==="none"&&(K||(me.done(function(){Je.display=ae}),ae==null&&(he=Je.display,ae=he==="none"?"":he)),Je.display="inline-block")),x.overflow&&(Je.overflow="hidden",me.always(function(){Je.overflow=x.overflow[0],Je.overflowX=x.overflow[1],Je.overflowY=x.overflow[2]})),K=!1;for(E in Re)K||(ft?"hidden"in ft&&(mt=ft.hidden):ft=nt.access(u,"fxshow",{display:ae}),F&&(ft.hidden=!mt),mt&&Yt([u],!0),me.done(function(){mt||Yt([u]),nt.remove(u,"fxshow");for(E in Re)_.style(u,E,Re[E])})),K=Hr(mt?ft[E]:0,E,me),E in ft||(ft[E]=K.start,mt&&(K.end=K.start,K.start=0))}}function Kr(u,v){var x,E,D,F,O;for(x in u)if(E=Ve(x),D=v[E],F=u[x],Array.isArray(F)&&(D=F[1],F=u[x]=F[0]),x!==E&&(u[E]=F,delete u[x]),O=_.cssHooks[E],O&&"expand"in O){F=O.expand(F),delete u[E];for(x in F)x in u||(u[x]=F[x],v[x]=D)}else v[E]=D}function xr(u,v,x){var E,D,F=0,O=xr.prefilters.length,Y=_.Deferred().always(function(){delete K.elem}),K=function(){if(D)return!1;for(var ke=Kt||yr(),me=Math.max(0,ae.startTime+ae.duration-ke),Re=me/ae.duration||0,Je=1-Re,mt=0,ft=ae.tweens.length;mt<ft;mt++)ae.tweens[mt].run(Je);return Y.notifyWith(u,[ae,Je,me]),Je<1&&ft?me:(ft||Y.notifyWith(u,[ae,1,0]),Y.resolveWith(u,[ae]),!1)},ae=Y.promise({elem:u,props:_.extend({},v),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},x),originalProperties:v,originalOptions:x,startTime:Kt||yr(),duration:x.duration,tweens:[],createTween:function(ke,me){var Re=_.Tween(u,ae.opts,ke,me,ae.opts.specialEasing[ke]||ae.opts.easing);return ae.tweens.push(Re),Re},stop:function(ke){var me=0,Re=ke?ae.tweens.length:0;if(D)return this;for(D=!0;me<Re;me++)ae.tweens[me].run(1);return ke?(Y.notifyWith(u,[ae,1,0]),Y.resolveWith(u,[ae,ke])):Y.rejectWith(u,[ae,ke]),this}}),he=ae.props;for(Kr(he,ae.opts.specialEasing);F<O;F++)if(E=xr.prefilters[F].call(ae,u,he,ae.opts),E)return k(E.stop)&&(_._queueHooks(ae.elem,ae.opts.queue).stop=E.stop.bind(E)),E;return _.map(he,Hr,ae),k(ae.opts.start)&&ae.opts.start.call(u,ae),ae.progress(ae.opts.progress).done(ae.opts.done,ae.opts.complete).fail(ae.opts.fail).always(ae.opts.always),_.fx.timer(_.extend(K,{elem:u,anim:ae,queue:ae.opts.queue})),ae}_.Animation=_.extend(xr,{tweeners:{"*":[function(u,v){var x=this.createTween(u,v);return Sr(x.elem,u,sr.exec(v),x),x}]},tweener:function(u,v){k(u)?(v=u,u=["*"]):u=u.match(ye);for(var x,E=0,D=u.length;E<D;E++)x=u[E],xr.tweeners[x]=xr.tweeners[x]||[],xr.tweeners[x].unshift(v)},prefilters:[En],prefilter:function(u,v){v?xr.prefilters.unshift(u):xr.prefilters.push(u)}}),_.speed=function(u,v,x){var E=u&&typeof u=="object"?_.extend({},u):{complete:x||!x&&v||k(u)&&u,duration:u,easing:x&&v||v&&!k(v)&&v};return _.fx.off?E.duration=0:typeof E.duration!="number"&&(E.duration in _.fx.speeds?E.duration=_.fx.speeds[E.duration]:E.duration=_.fx.speeds._default),(E.queue==null||E.queue===!0)&&(E.queue="fx"),E.old=E.complete,E.complete=function(){k(E.old)&&E.old.call(this),E.queue&&_.dequeue(this,E.queue)},E},_.fn.extend({fadeTo:function(u,v,x,E){return this.filter(hr).css("opacity",0).show().end().animate({opacity:v},u,x,E)},animate:function(u,v,x,E){var D=_.isEmptyObject(u),F=_.speed(v,x,E),O=function(){var Y=xr(this,_.extend({},u),F);(D||nt.get(this,"finish"))&&Y.stop(!0)};return O.finish=O,D||F.queue===!1?this.each(O):this.queue(F.queue,O)},stop:function(u,v,x){var E=function(D){var F=D.stop;delete D.stop,F(x)};return typeof u!="string"&&(x=v,v=u,u=void 0),v&&this.queue(u||"fx",[]),this.each(function(){var D=!0,F=u!=null&&u+"queueHooks",O=_.timers,Y=nt.get(this);if(F)Y[F]&&Y[F].stop&&E(Y[F]);else for(F in Y)Y[F]&&Y[F].stop&&an.test(F)&&E(Y[F]);for(F=O.length;F--;)O[F].elem===this&&(u==null||O[F].queue===u)&&(O[F].anim.stop(x),D=!1,O.splice(F,1));(D||!x)&&_.dequeue(this,u)})},finish:function(u){return u!==!1&&(u=u||"fx"),this.each(function(){var v,x=nt.get(this),E=x[u+"queue"],D=x[u+"queueHooks"],F=_.timers,O=E?E.length:0;for(x.finish=!0,_.queue(this,u,[]),D&&D.stop&&D.stop.call(this,!0),v=F.length;v--;)F[v].elem===this&&F[v].queue===u&&(F[v].anim.stop(!0),F.splice(v,1));for(v=0;v<O;v++)E[v]&&E[v].finish&&E[v].finish.call(this);delete x.finish})}}),_.each(["toggle","show","hide"],function(u,v){var x=_.fn[v];_.fn[v]=function(E,D,F){return E==null||typeof E=="boolean"?x.apply(this,arguments):this.animate(Yr(v,!0),E,D,F)}}),_.each({slideDown:Yr("show"),slideUp:Yr("hide"),slideToggle:Yr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(u,v){_.fn[u]=function(x,E,D){return this.animate(v,x,E,D)}}),_.timers=[],_.fx.tick=function(){var u,v=0,x=_.timers;for(Kt=Date.now();v<x.length;v++)u=x[v],!u()&&x[v]===u&&x.splice(v--,1);x.length||_.fx.stop(),Kt=void 0},_.fx.timer=function(u){_.timers.push(u),_.fx.start()},_.fx.interval=13,_.fx.start=function(){Qt||(Qt=!0,sn())},_.fx.stop=function(){Qt=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(u,v){return u=_.fx&&_.fx.speeds[u]||u,v=v||"fx",this.queue(v,function(x,E){var D=r.setTimeout(x,u);E.stop=function(){r.clearTimeout(D)}})},function(){var u=S.createElement("input"),v=S.createElement("select"),x=v.appendChild(S.createElement("option"));u.type="checkbox",L.checkOn=u.value!=="",L.optSelected=x.selected,u=S.createElement("input"),u.value="t",u.type="radio",L.radioValue=u.value==="t"}();var mr,Wr=_.expr.attrHandle;_.fn.extend({attr:function(u,v){return rt(this,_.attr,u,v,arguments.length>1)},removeAttr:function(u){return this.each(function(){_.removeAttr(this,u)})}}),_.extend({attr:function(u,v,x){var E,D,F=u.nodeType;if(!(F===3||F===8||F===2)){if(typeof u.getAttribute>"u")return _.prop(u,v,x);if((F!==1||!_.isXMLDoc(u))&&(D=_.attrHooks[v.toLowerCase()]||(_.expr.match.bool.test(v)?mr:void 0)),x!==void 0){if(x===null){_.removeAttr(u,v);return}return D&&"set"in D&&(E=D.set(u,x,v))!==void 0?E:(u.setAttribute(v,x+""),x)}return D&&"get"in D&&(E=D.get(u,v))!==null?E:(E=_.find.attr(u,v),E??void 0)}},attrHooks:{type:{set:function(u,v){if(!L.radioValue&&v==="radio"&&ee(u,"input")){var x=u.value;return u.setAttribute("type",v),x&&(u.value=x),v}}}},removeAttr:function(u,v){var x,E=0,D=v&&v.match(ye);if(D&&u.nodeType===1)for(;x=D[E++];)u.removeAttribute(x)}}),mr={set:function(u,v,x){return v===!1?_.removeAttr(u,x):u.setAttribute(x,x),x}},_.each(_.expr.match.bool.source.match(/\w+/g),function(u,v){var x=Wr[v]||_.find.attr;Wr[v]=function(E,D,F){var O,Y,K=D.toLowerCase();return F||(Y=Wr[K],Wr[K]=O,O=x(E,D,F)!=null?K:null,Wr[K]=Y),O}});var on=/^(?:input|select|textarea|button)$/i,Sn=/^(?:a|area)$/i;_.fn.extend({prop:function(u,v){return rt(this,_.prop,u,v,arguments.length>1)},removeProp:function(u){return this.each(function(){delete this[_.propFix[u]||u]})}}),_.extend({prop:function(u,v,x){var E,D,F=u.nodeType;if(!(F===3||F===8||F===2))return(F!==1||!_.isXMLDoc(u))&&(v=_.propFix[v]||v,D=_.propHooks[v]),x!==void 0?D&&"set"in D&&(E=D.set(u,x,v))!==void 0?E:u[v]=x:D&&"get"in D&&(E=D.get(u,v))!==null?E:u[v]},propHooks:{tabIndex:{get:function(u){var v=_.find.attr(u,"tabindex");return v?parseInt(v,10):on.test(u.nodeName)||Sn.test(u.nodeName)&&u.href?
100:-1}}},propFix:{for:"htmlFor",class:"className"}}),L.optSelected||(_.propHooks.selected={get:function(u){var v=u.parentNode;return v&&v.parentNode&&v.parentNode.selectedIndex,null},set:function(u){var v=u.parentNode;v&&(v.selectedIndex,v.parentNode&&v.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});function Fr(u){var v=u.match(ye)||[];return v.join(" ")}function Br(u){return u.getAttribute&&u.getAttribute("class")||""}function Jr(u){return Array.isArray(u)?u:typeof u=="string"?u.match(ye)||[]:[]}_.fn.extend({addClass:function(u){var v,x,E,D,F,O;return k(u)?this.each(function(Y){_(this).addClass(u.call(this,Y,Br(this)))}):(v=Jr(u),v.length?this.each(function(){if(E=Br(this),x=this.nodeType===1&&" "+Fr(E)+" ",x){for(F=0;F<v.length;F++)D=v[F],x.indexOf(" "+D+" ")<0&&(x+=D+" ");O=Fr(x),E!==O&&this.setAttribute("class",O)}}):this)},removeClass:function(u){var v,x,E,D,F,O;return k(u)?this.each(function(Y){_(this).removeClass(u.call(this,Y,Br(this)))}):arguments.length?(v=Jr(u),v.length?this.each(function(){if(E=Br(this),x=this.nodeType===1&&" "+Fr(E)+" ",x){for(F=0;F<v.length;F++)for(D=v[F];x.indexOf(" "+D+" ")>-1;)x=x.replace(" "+D+" "," ");O=Fr(x),E!==O&&this.setAttribute("class",O)}}):this):this.attr("class","")},toggleClass:function(u,v){var x,E,D,F,O=typeof u,Y=O==="string"||Array.isArray(u);return k(u)?this.each(function(K){_(this).toggleClass(u.call(this,K,Br(this),v),v)}):typeof v=="boolean"&&Y?v?this.addClass(u):this.removeClass(u):(x=Jr(u),this.each(function(){if(Y)for(F=_(this),D=0;D<x.length;D++)E=x[D],F.hasClass(E)?F.removeClass(E):F.addClass(E);else(u===void 0||O==="boolean")&&(E=Br(this),E&&nt.set(this,"__className__",E),this.setAttribute&&this.setAttribute("class",E||u===!1?"":nt.get(this,"__className__")||""))}))},hasClass:function(u){var v,x,E=0;for(v=" "+u+" ";x=this[E++];)if(x.nodeType===1&&(" "+Fr(Br(x))+" ").indexOf(v)>-1)return!0;return!1}});var Cn=/\r/g;_.fn.extend({val:function(u){var v,x,E,D=this[0];return arguments.length?(E=k(u),this.each(function(F){var O;this.nodeType===1&&(E?O=u.call(this,F,_(this).val()):O=u,O==null?O="":typeof O=="number"?O+="":Array.isArray(O)&&(O=_.map(O,function(Y){return Y==null?"":Y+""})),v=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],(!v||!("set"in v)||v.set(this,O,"value")===void 0)&&(this.value=O))})):D?(v=_.valHooks[D.type]||_.valHooks[D.nodeName.toLowerCase()],v&&"get"in v&&(x=v.get(D,"value"))!==void 0?x:(x=D.value,typeof x=="string"?x.replace(Cn,""):x??"")):void 0}}),_.extend({valHooks:{option:{get:function(u){var v=_.find.attr(u,"value");return v??Fr(_.text(u))}},select:{get:function(u){var v,x,E,D=u.options,F=u.selectedIndex,O=u.type==="select-one",Y=O?null:[],K=O?F+1:D.length;for(F<0?E=K:E=O?F:0;E<K;E++)if(x=D[E],(x.selected||E===F)&&!x.disabled&&(!x.parentNode.disabled||!ee(x.parentNode,"optgroup"))){if(v=_(x).val(),O)return v;Y.push(v)}return Y},set:function(u,v){for(var x,E,D=u.options,F=_.makeArray(v),O=D.length;O--;)E=D[O],(E.selected=_.inArray(_.valHooks.option.get(E),F)>-1)&&(x=!0);return x||(u.selectedIndex=-1),F}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(u,v){if(Array.isArray(v))return u.checked=_.inArray(_(u).val(),v)>-1}},L.checkOn||(_.valHooks[this].get=function(u){return u.getAttribute("value")===null?"on":u.value})});var Ir=r.location,hn={guid:Date.now()},Qr=/\?/;_.parseXML=function(u){var v,x;if(!u||typeof u!="string")return null;try{v=new r.DOMParser().parseFromString(u,"text/xml")}catch{}return x=v&&v.getElementsByTagName("parsererror")[0],(!v||x)&&_.error("Invalid XML: "+(x?_.map(x.childNodes,function(E){return E.textContent}).join(` 11`):u)),v};var pn=/^(?:focusinfocus|focusoutblur)$/,Cr=function(u){u.stopPropagation()};_.extend(_.event,{trigger:function(u,v,x,E){var D,F,O,Y,K,ae,he,ke,me=[x||S],Re=b.call(u,"type")?u.type:u,Je=b.call(u,"namespace")?u.namespace.split("."):[];if(F=ke=O=x=x||S,!(x.nodeType===3||x.nodeType===8)&&!pn.test(Re+_.event.triggered)&&(Re.indexOf(".")>-1&&(Je=Re.split("."),Re=Je.shift(),Je.sort()),K=Re.indexOf(":")<0&&"on"+Re,u=u[_.expando]?u:new _.Event(Re,typeof u=="object"&&u),u.isTrigger=E?2:3,u.namespace=Je.join("."),u.rnamespace=u.n
vendor: 17,850 bytes, lines 11-13
11amespace?new RegExp("(^|\\.)"+Je.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=x),v=v==null?[u]:_.makeArray(v,[u]),he=_.event.special[Re]||{},!(!E&&he.trigger&&he.trigger.apply(x,v)===!1))){if(!E&&!he.noBubble&&!T(x)){for(Y=he.delegateType||Re,pn.test(Y+Re)||(F=F.parentNode);F;F=F.parentNode)me.push(F),O=F;O===(x.ownerDocument||S)&&me.push(O.defaultView||O.parentWindow||r)}for(D=0;(F=me[D++])&&!u.isPropagationStopped();)ke=F,u.type=D>1?Y:he.bindType||Re,ae=(nt.get(F,"events")||Object.create(null))[u.type]&&nt.get(F,"handle"),ae&&ae.apply(F,v),ae=K&&F[K],ae&&ae.apply&&wt(F)&&(u.result=ae.apply(F,v),u.result===!1&&u.preventDefault());return u.type=Re,!E&&!u.isDefaultPrevented()&&(!he._default||he._default.apply(me.pop(),v)===!1)&&wt(x)&&K&&k(x[Re])&&!T(x)&&(O=x[K],O&&(x[K]=null),_.event.triggered=Re,u.isPropagationStopped()&&ke.addEventListener(Re,Cr),x[Re](),u.isPropagationStopped()&&ke.removeEventListener(Re,Cr),_.event.triggered=void 0,O&&(x[K]=O)),u.result}},simulate:function(u,v,x){var E=_.extend(new _.Event,x,{type:u,isSimulated:!0});_.event.trigger(E,null,v)}}),_.fn.extend({trigger:function(u,v){return this.each(function(){_.event.trigger(u,v,this)})},triggerHandler:function(u,v){var x=this[0];if(x)return _.event.trigger(u,v,x,!0)}});var An=/\[\]$/,jr=/\r?\n/g,kn=/^(?:submit|button|image|reset|file)$/i,Zr=/^(?:input|select|textarea|keygen)/i;function ln(u,v,x,E){var D;if(Array.isArray(v))_.each(v,function(F,O){x||An.test(u)?E(u,O):ln(u+"["+(typeof O=="object"&&O!=null?F:"")+"]",O,x,E)});else if(!x&&te(v)==="object")for(D in v)ln(u+"["+D+"]",v[D],x,E);else E(u,v)}_.param=function(u,v){var x,E=[],D=function(F,O){var Y=k(O)?O():O;E[E.length]=encodeURIComponent(F)+"="+encodeURIComponent(Y??"")};if(u==null)return"";if(Array.isArray(u)||u.jquery&&!_.isPlainObject(u))_.each(u,function(){D(this.name,this.value)});else for(x in u)ln(x,u[x],v,D);return E.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var u=_.prop(this,"elements");return u?_.makeArray(u):this}).filter(function(){var u=this.type;return this.name&&!_(this).is(":disabled")&&Zr.test(this.nodeName)&&!kn.test(u)&&(this.checked||!lr.test(u))}).map(function(u,v){var x=_(this).val();return x==null?null:Array.isArray(x)?_.map(x,function(E){return{name:v.name,value:E.replace(jr,`\r 12`)}}):{name:v.name,value:x.replace(jr,`\r 13`)}}).get()}});var mn=/%20/g,Ln=/#.*$/,vn=/([?&])_=[^&]*/,Fn=/^(.*?):[ \t]*([^\r\n]*)$/mg,gn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,In=/^(?:GET|HEAD)$/,_n=/^\/\//,wn={},qr={},yn="*/".concat("*"),cn=S.createElement("a");cn.href=Ir.href;function w(u){return function(v,x){typeof v!="string"&&(x=v,v="*");var E,D=0,F=v.toLowerCase().match(ye)||[];if(k(x))for(;E=F[D++];)E[0]==="+"?(E=E.slice(1)||"*",(u[E]=u[E]||[]).unshift(x)):(u[E]=u[E]||[]).push(x)}}function o(u,v,x,E){var D={},F=u===qr;function O(Y){var K;return D[Y]=!0,_.each(u[Y]||[],function(ae,he){var ke=he(v,x,E);if(typeof ke=="string"&&!F&&!D[ke])return v.dataTypes.unshift(ke),O(ke),!1;if(F)return!(K=ke)}),K}return O(v.dataTypes[0])||!D["*"]&&O("*")}function d(u,v){var x,E,D=_.ajaxSettings.flatOptions||{};for(x in v)v[x]!==void 0&&((D[x]?u:E||(E={}))[x]=v[x]);return E&&_.extend(!0,u,E),u}function g(u,v,x){for(var E,D,F,O,Y=u.contents,K=u.dataTypes;K[0]==="*";)K.shift(),E===void 0&&(E=u.mimeType||v.getResponseHeader("Content-Type"));if(E){for(D in Y)if(Y[D]&&Y[D].test(E)){K.unshift(D);break}}if(K[0]in x)F=K[0];else{for(D in x){if(!K[0]||u.converters[D+" "+K[0]]){F=D;break}O||(O=D)}F=F||O}if(F)return F!==K[0]&&K.unshift(F),x[F]}function y(u,v,x,E){var D,F,O,Y,K,ae={},he=u.dataTypes.slice();if(he[1])for(O in u.converters)ae[O.toLowerCase()]=u.converters[O];for(F=he.shift();F;)if(u.responseFields[F]&&(x[u.responseFields[F]]=v),!K&&E&&u.dataFilter&&(v=u.dataFilter(v,u.dataType)),K=F,F=he.shift(),F){if(F==="*")F=K;else if(K!=="*"&&K!==F){if(O=ae[K+" "+F]||ae["* "+F],!O){for(D in ae)if(Y=D.split(" "),Y[1]===F&&(O=ae[K+" "+Y[0]]||ae["* "+Y[0]],O)){O===!0?O=ae[D]:ae[D]!==!0&&(F=Y[0],he.unshift(Y[1]));break}}if(O!==!0)if(O&&u.throws)v=O(v);else try{v=O(v)}catch(ke){return{state:"parsererror",error:O?ke:"No conversion from "+K+" to "+F}}}}return{state:"success",data:v}}_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ir.href,type:"GET",isLocal:gn.test(Ir.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(u,v){return v?d(d(u,_.ajaxSettings),v):d(_.ajaxSettings,u)},ajaxPrefilter:w(wn),ajaxTransport:w(qr),ajax:function(u,v){typeof u=="object"&&(v=u,u=void 0),v=v||{};var x,E,D,F,O,Y,K,ae,he,ke,me=_.ajaxSetup({},v),Re=me.context||me,Je=me.context&&(Re.nodeType||Re.jquery)?_(Re):_.event,mt=_.Deferred(),ft=_.Callbacks("once memory"),kt=me.statusCode||{},Dt={},Wt={},vr="canceled",Lt={readyState:0,getResponseHeader:function(Ot){var Gt;if(K){if(!F)for(F={};Gt=Fn.exec(D);)F[Gt[1].toLowerCase()+" "]=(F[Gt[1].toLowerCase()+" "]||[]).concat(Gt[2]);Gt=F[Ot.toLowerCase()+" "]}return Gt==null?null:Gt.join(", ")},getAllResponseHeaders:function(){return K?D:null},setRequestHeader:function(Ot,Gt){return K==null&&(Ot=Wt[Ot.toLowerCase()]=Wt[Ot.toLowerCase()]||Ot,Dt[Ot]=Gt),this},overrideMimeType:function(Ot){return K==null&&(me.mimeType=Ot),this},statusCode:function(Ot){var Gt;if(Ot)if(K)Lt.always(Ot[Lt.status]);else for(Gt in Ot)kt[Gt]=[kt[Gt],Ot[Gt]];return this},abort:function(Ot){var Gt=Ot||vr;return x&&x.abort(Gt),$r(0,Gt),this}};if(mt.promise(Lt),me.url=((u||me.url||Ir.href)+"").replace(_n,Ir.protocol+"//"),me.type=v.method||v.type||me.method||me.type,me.dataTypes=(me.dataType||"*").toLowerCase().match(ye)||[""],me.crossDomain==null){Y=S.createElement("a");try{Y.href=me.url,Y.href=Y.href,me.crossDomain=cn.protocol+"//"+cn.host!=Y.protocol+"//"+Y.host}catch{me.crossDomain=!0}}if(me.data&&me.processData&&typeof me.data!="string"&&(me.data=_.param(me.data,me.traditional)),o(wn,me,v,Lt),K)return Lt;ae=_.event&&me.global,ae&&_.active++===0&&_.event.trigger("ajaxStart"),me.type=me.type.toUpperCase(),me.hasContent=!In.test(me.type),E=me.url.replace(Ln,""),me.hasContent?me.data&&me.processData&&(me.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(me.data=me.data.replace(mn,"+")):(ke=me.url.slice(E.length),me.data&&(me.processData||typeof me.data=="string")&&(E+=(Qr.test(E)?"&":"?")+me.data,delete me.data),me.cache===!1&&(E=E.replace(vn,"$1"),ke=(Qr.test(E)?"&":"?")+"_="+hn.guid+++ke),me.url=E+ke),me.ifModified&&(_.lastModified[E]&&Lt.setRequestHeader("If-Modified-Since",_.lastModified[E]),_.etag[E]&&Lt.setRequestHeader("If-None-Match",_.etag[E])),(me.data&&me.hasContent&&me.contentType!==!1||v.contentType)&&Lt.setRequestHeader("Content-Type",me.contentType),Lt.setRequestHeader("Accept",me.dataTypes[0]&&me.accepts[me.dataTypes[0]]?me.accepts[me.dataTypes[0]]+(me.dataTypes[0]!=="*"?", "+yn+"; q=0.01":""):me.accepts["*"]);for(he in me.headers)Lt.setRequestHeader(he,me.headers[he]);if(me.beforeSend&&(me.beforeSend.call(Re,Lt,me)===!1||K))return Lt.abort();if(vr="abort",ft.add(me.complete),Lt.done(me.success),Lt.fail(me.error),x=o(qr,me,v,Lt),!x)$r(-1,"No Transport");else{if(Lt.readyState=1,ae&&Je.trigger("ajaxSend",[Lt,me]),K)return Lt;me.async&&me.timeout>0&&(O=r.setTimeout(function(){Lt.abort("timeout")},me.timeout));try{K=!1,x.send(Dt,$r)}catch(Ot){if(K)throw Ot;$r(-1,Ot)}}function $r(Ot,Gt,zr,en){var br,Ur,Ar,Or,Dr,ur=Gt;K||(K=!0,O&&r.clearTimeout(O),x=void 0,D=en||"",Lt.readyState=Ot>0?4:0,br=Ot>=200&&Ot<300||Ot===304,zr&&(Or=g(me,Lt,zr)),!br&&_.inArray("script",me.dataTypes)>-1&&_.inArray("json",me.dataTypes)<0&&(me.converters["text script"]=function(){}),Or=y(me,Or,Lt,br),br?(me.ifModified&&(Dr=Lt.getResponseHeader("Last-Modified"),Dr&&(_.lastModified[E]=Dr),Dr=Lt.getResponseHeader("etag"),Dr&&(_.etag[E]=Dr)),Ot===204||me.type==="HEAD"?ur="nocontent":Ot===304?ur="notmodified":(ur=Or.state,Ur=Or.data,Ar=Or.error,br=!Ar)):(Ar=ur,(Ot||!ur)&&(ur="error",Ot<0&&(Ot=0))),Lt.status=Ot,Lt.statusText=(Gt||ur)+"",br?mt.resolveWith(Re,[Ur,ur,Lt]):mt.rejectWith(Re,[Lt,ur,Ar]),Lt.statusCode(kt),kt=void 0,ae&&Je.trigger(br?"ajaxSuccess":"ajaxError",[Lt,me,br?Ur:Ar]),ft.fireWith(Re,[Lt,ur]),ae&&(Je.trigger("ajaxComplete",[Lt,me]),--_.active||_.event.trigger("ajaxStop")))}return Lt},getJSON:function(u,v,x){return _.get(u,v,x,"json")},getScript:function(u,v){return _.get(u,void 0,v,"script")}}),_.each(["get","post"],function(u,v){_[v]=function(x,E,D,F){return k(E)&&(F=F||D,D=E,E=void 0),_.ajax(_.extend({url:x,type:v,dataType:F,data:E,success:D},_.isPlainObject(x)&&x))}}),_.ajaxPrefilter(function(u){var v;for(v in u.headers)v.toLowerCase()==="content-type"&&(u.contentType=u.headers[v]||"")}),_._evalUrl=function(u,v,x){return _.ajax({url:u,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(E){_.globalEval(E,v,x)}})},_.fn.extend({wrapAll:function(u){var v;return this[0]&&(k(u)&&(u=u.call(this[0])),v=_(u,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&v.insertBefore(this[0]),v.map(function(){for(var x=this;x.firstElementChild;)x=x.firstElementChild;return x}).append(this)),this},wrapInner:function(u){return k(u)?this.each(function(v){_(this).wrapInner(u.call(this,v))}):this.each(function(){var v=_(this),x=v.contents();x.length?x.wrapAll(u):v.append(u)})},wrap:function(u){var v=k(u);return this.each(function(x){_(this).wrapAll(v?u.call(this,x):u)})},unwrap:function(u){return this.parent(u).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(u){return!_.expr.pseudos.visible(u)},_.expr.pseudos.visible=function(u){return!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch{}};var C={0:200,1223:204},I=_.ajaxSettings.xhr();L.cors=!!I&&"withCredentials"in I,L.ajax=I=!!I,_.ajaxTransport(function(u){var v,x;if(L.cors||I&&!u.crossDomain)return{send:function(E,D){var F,O=u.xhr();if(O.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(F in u.xhrFields)O[F]=u.xhrFields[F];u.mimeType&&O.overrideMimeType&&O.overrideMimeType(u.mimeType),!u.crossDomain&&!E["X-Requested-With"]&&(E["X-Requested-With"]="XMLHttpRequest");for(F in E)O.setRequestHeader(F,E[F]);v=function(Y){return function(){v&&(v=x=O.onload=O.onerror=O.onabort=O.ontimeout=O.onreadystatechange=null,Y==="abort"?O.abort():Y==="error"?typeof O.status!="number"?D(0,"error"):D(O.status,O.statusText):D(C[O.status]||O.status,O.statusText,(O.responseType||"text")!=="text"||typeof O.responseText!="string"?{binary:O.response}:{text:O.responseText},O.getAllResponseHeaders()))}},O.onload=v(),x=O.onerror=O.ontimeout=v("error"),O.onabort!==void 0?O.onabort=x:O.onreadystatechange=function(){O.readyState===4&&r.setTimeout(function(){v&&x()})},v=v("abort");try{O.send(u.hasContent&&u.data||null)}catch(Y){if(v)throw Y}},abort:function(){v&&v()}}}),_.ajaxPrefilter(function(u){u.crossDomain&&(u.contents.script=!1)}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(u){return _.globalEval(u),u}}}),_.ajaxPrefilter("script",function(u){u.cache===void 0&&(u.cache=!1),u.crossDomain&&(u.type="GET")}),_.ajaxTransport("script",function(u){if(u.crossDomain||u.scriptAttrs){var v,x;return{send:function(E,D){v=_("<script>").attr(u.scriptAttrs||{}).prop({charset:u.scriptCharset,src:u.url}).on("load error",x=function(F){v.remove(),x=null,F&&D(F.type==="error"?404:200,F.type)}),S.head.appendChild(v[0])},abort:function(){x&&x()}}}});var N=[],V=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var u=N.pop()||_.expando+"_"+hn.guid++;return this[u]=!0,u}}),_.ajaxPrefilter("json jsonp",function(u,v,x){var E,D,F,O=u.jsonp!==!1&&(V.test(u.url)?"url":typeof u.data=="string"&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&V.test(u.data)&&"data");if(O||u.dataTypes[0]==="jsonp")return E=u.jsonpCallback=k(u.jsonpCallback)?u.jsonpCallback():u.jsonpCallback,O?u[O]=u[O].replace(V,"$1"+E):u.jsonp!==!1&&(u.url+=(Qr.test(u.url)?"&":"?")+u.jsonp+"="+E),u.converters["script json"]=function(){return F||_.error(E+" was not called"),F[0]},u.dataTypes[0]="json",D=r[E],r[E]=function(){F=arguments},x.always(function(){D===void 0?_(r).removeProp(E):r[E]=D,u[E]&&(u.jsonpCallback=v.jsonpCallback,N.push(E)),F&&k(D)&&D(F[0]),F=D=void 0}),"script"}),L.createHTMLDocument=function(){var u=S.implementation.createHTMLDocument("").body;return u.innerHTML="<form></form><form></form>",u.childNodes.length===2}(),_.parseHTML=function(u,v,x){if(typeof u!="string")return[];typeof v=="boolean"&&(x=v,v=!1);var E,D,F;return v||(L.createHTMLDocument?(v=S.implementation.createHTMLDocument(""),E=v.createElement("base"),E.href=S.location.href,v.head.appendChild(E)):v=S),D=xe.exec(u),F=!x&&[],D?[v.createElement(D[1])]:(D=it([u],v,F),F&&F.length&&_(F).remove(),_.merge([],D.childNodes))},_.fn.load=function(u,v,x){var E,D,F,O=this,Y=u.indexOf(" ");return Y>-1&&(E=Fr(u.slice(Y)),u=u.slice(0,Y)),k(v)?(x=v,v=void 0):v&&typeof v=="object"&&(D="POST"),O.length>0&&_.ajax({url:u,type:D||"GET",dataType:"html",data:v}).done(function(K){F=arguments,O.html(E?_("<div>").append(_.parseHTML(K)).find(E):K)}).always(x&&function(K,ae){O.each(function(){x.apply(this,F||[K.responseText,ae,K])})}),this},_.expr.pseudos.animated=function(u){return _.grep(_.timers,function(v){return u===v.elem}).length},_.offset={setOffset:function(u,v,x){var E,D,F,O,Y,K,ae,he=_.css(u,"position"),ke=_(u),me={};he==="static"&&(u.style.position="relative"),Y=ke.offset(),F=_.css(u,"top"),K=_.css(u,"left"),ae=(he==="absolute"||he==="fixed")&&(F+K).indexOf("auto")>-1,ae?(E=ke.position(),O=E.top,D=E.left):(O=parseFloat(F)||0,D=parseFloat(K)||0),k(v)&&(v=v.call(u,x,_.extend({},Y))),v.top!=null&&(me.top=v.top-Y.top+O),v.left!=null&&(me.left=v.left-Y.left+D),"using"in v?v.using.call(u,me):ke.css(me)}},_.fn.extend({offset:function(u){if(arguments.length)return u===void 0?this:this.each(function(D){_.offset.setOffset(this,u,D)});var v,x,E=this[0];if(E)return E.getClientRects().length?(v=E.getBoundingClientRect(),x=E.ownerDocument.defaultView,{top:v.top+x.pageYOffset,left:v.left+x.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var u,v,x,E=this[0],D={top:0,left:0};if(_.css(E,"position")==="fixed")v=E.getBoundingClientRect();else{for(v=this.offset(),x=E.ownerDocument,u=E.offsetParent||x.documentElement;u&&(u===x.body||u===x.documentElement)&&_.css(u,"position")==="static";)u=u.parentNode;u&&u!==E&&u.nodeType===1&&(D=_(u).offset(),D.top+=_.css(u,"borderTopWidth",!0),D.left+=_.css(u,"borderLeftWidth",!0))}return{top:v.top-D.top-_.css(E,"marginTop",!0),left:v.left-D.left-_.css(E,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var u=this.offsetParent;u&&_.css(u,"position")==="static";)u=u.offsetParent;return u||Zt})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(u,v){var x=v==="pageYOffset";_.fn[u]=function(E){return rt(this,function(D,F,O){var Y;if(T(D)?Y=D:D.nodeType===9&&(Y=D.defaultView),O===void 0)return Y?Y[v]:D[F];Y?Y.scrollTo(x?Y.pageXOffset:O,x?O:Y.pageYOffset):D[F]=O},u,E,arguments.length)}}),_.each(["top","left"],function(u,v){_.cssHooks[v]=ze(L.pixelPosition,function(x,E){if(E)return E=Oe(x,v),ge.test(E)?_(x).position()[v]+"px":E})}),_.each({Height:"height",Width:"width"},function(u,v){_.each({padding:"inner"+u,content:v,"":"outer"+u},function(x,E){_.fn[E]=function(D,F){var O=arguments.length&&(x||typeof D!="boolean"),Y=x||(D===!0||F===!0?"margin":"border");return rt(this,function(K,ae,he){var ke;return T(K)?E.indexOf("outer")===0?K["inner"+u]:K.document.documentElement["client"+u]:K.nodeType===9?(ke=K.documentElement,Math.max(K.body["scroll"+u],ke["scroll"+u],K.body["offset"+u],ke["offset"+u],ke["client"+u])):he===void 0?_.css(K,ae,Y):_.style(K,ae,he,Y)},v,O?D:void 0,O)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(u,v){_.fn[v]=function(x){return this.on(v,x)}}),_.fn.extend({bind:function(u,v,x){return this.on(u,null,v,x)},unbind:function(u,v){return this.off(u,null,v)},delegate:function(u,v,x,E){return this.on(v,u,x,E)},undelegate:function(u,v,x){return arguments.length===1?this.off(u,"**"):this.off(v,u||"**",x)},hover:function(u,v){return this.on("mouseenter",u).on("mouseleave",v||u)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(u,v){_.fn[v]=function(x,E){return arguments.length>0?this.on(v,null,x,E):this.trigger(v)}});var ie=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(u,v){var x,E,D;if(typeof v=="string"&&(x=u[v],v=u,u=x),!!k(u))return E=a.call(arguments,2),D=function(){return u.apply(v||this,E.concat(a.call(arguments)))},D.guid=u.guid=u.guid||_.guid++,D},_.holdReady=function(u){u?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=ee,_.isFunction=k,_.isWindow=T,_.camelCase=Ve,_.type=te,_.now=Date.now,_.isNumeric=function(u){var v=_.type(u);return(v==="number"||v==="string")&&!isNaN(u-parseFloat(u))},_.trim=function(u){return u==null?"":(u+"").replace(ie,"$1")}
13;var le=r.jQuery,Ae=r.$;return _.noConflict=function(u){return r.$===_&&(r.$=Ae),u&&r.jQuery===_&&(r.jQuery=le),_},typeof t>"u"&&(r.jQuery=r.$=_),_})})(jquery$1);var jqueryExports=jquery$1.exports;const $$1=getDefaultExportFromCjs(jqueryExports),jquery=_mergeNamespaces({__proto__:null,default:$$1},[jqueryExports]);var pubsub={exports:{}};pubsub.exports;(function(e,r){(function(t,n){var i={};t.PubSub?(i=t.PubSub,console.warn("PubSub already loaded, using existing version")):(t.PubSub=i,n(i)),e!==void 0&&e.exports&&(r=e.exports=i),r.PubSub=i,e.exports=r=i})(typeof window=="object"&&window||commonjsGlobal||commonjsGlobal,function(t){var n={},i=-1,a="*";function s(k){var T;for(T in k)if(Object.prototype.hasOwnProperty.call(k,T))return!0;return!1}function c(k){return function(){throw k}}function h(k,T,S){try{k(T,S)}catch(M){setTimeout(c(M),0)}}function l(k,T,S){k(T,S)}function p(k,T,S,M){var H=n[T],te=M?l:h,Ie;if(Object.prototype.hasOwnProperty.call(n,T))for(Ie in H)Object.prototype.hasOwnProperty.call(H,Ie)&&te(H[Ie],k,S)}function b(k,T,S){return function(){var H=String(k),te=H.lastIndexOf(".");for(p(k,k,T,S);te!==-1;)H=H.substr(0,te),te=H.lastIndexOf("."),p(k,H,T,S);p(k,a,T,S)}}function m(k){var T=String(k),S=!!(Object.prototype.hasOwnProperty.call(n,T)&&s(n[T]));return S}function A(k){for(var T=String(k),S=m(T)||m(a),M=T.lastIndexOf(".");!S&&M!==-1;)T=T.substr(0,M),M=T.lastIndexOf("."),S=m(T);return S}function L(k,T,S,M){k=typeof k=="symbol"?k.toString():k;var H=b(k,T,M),te=A(k);return te?(S===!0?H():setTimeout(H,0),!0):!1}t.publish=function(k,T){return L(k,T,!1,t.immediateExceptions)},t.publishSync=function(k,T){return L(k,T,!0,t.immediateExceptions)},t.subscribe=function(k,T){if(typeof T!="function")return!1;k=typeof k=="symbol"?k.toString():k,Object.prototype.hasOwnProperty.call(n,k)||(n[k]={});var S="uid_"+String(++i);return n[k][S]=T,S},t.subscribeAll=function(k){return t.subscribe(a,k)},t.subscribeOnce=function(k,T){var S=t.subscribe(k,function(){t.unsubscribe(S),T.apply(this,arguments)});return t},t.clearAllSubscriptions=function(){n={}},t.clearSubscriptions=function(T){var S;for(S in n)Object.prototype.hasOwnProperty.call(n,S)&&S.indexOf(T)===0&&delete n[S]},t.countSubscriptions=function(T){var S,M,H=0;for(S in n)if(Object.prototype.hasOwnProperty.call(n,S)&&S.indexOf(T)===0){for(M in n[S])H++;break}return H},t.getSubscriptions=function(T){var S,M=[];for(S in n)Object.prototype.hasOwnProperty.call(n,S)&&S.indexOf(T)===0&&M.push(S);return M},t.unsubscribe=function(k){var T=function(oe){var ee;for(ee in n)if(Object.prototype.hasOwnProperty.call(n,ee)&&ee.indexOf(oe)===0)return!0;return!1},S=typeof k=="string"&&(Object.prototype.hasOwnProperty.call(n,k)||T(k)),M=!S&&typeof k=="string",H=typeof k=="function",te=!1,Ie,we,_;if(S){t.clearSubscriptions(k);return}for(Ie in n)if(Object.prototype.hasOwnProperty.call(n,Ie)){if(we=n[Ie],M&&we[k]){delete we[k],te=k;break}if(H)for(_ in we)Object.prototype.hasOwnProperty.call(we,_)&&we[_]===k&&(delete we[_],te=!0)}return te}})})(pubsub,pubsub.exports);var pubsubExports=pubsub.exports;const Pubsub=getDefaultExportFromCjs(pubsubExports);function QueryHandler$1(e){this.options=e,!e.deferSetup&&this.setup()}QueryHandler$1.prototype={constructor:QueryHandler$1,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}};var QueryHandler_1=QueryHandler$1;const QueryHandler$2=getDefaultExportFromCjs(QueryHandler_1),QueryHandler$3=_mergeNamespaces({__proto__:null,default:QueryHandler$2},[QueryHandler_1]),require$$0$3=getAugmentedNamespace(QueryHandler$3);function each$2(e,r){var t=0,n=e.length,i;for(t;t<n&&(i=r(e[t],t),i!==!1);t++);}function isArray$1(e){return Object.prototype.toString.apply(e)==="[object Array]"}function isFunction$1(e){return typeof e=="function"}var Util$1={isFunction:isFunction$1,isArray:isArray$1,each:each$2};const Util$2=getDefaultExportFromCjs(Util$1),Util$3=_mergeNamespaces({__proto__:null,default:Util$2},[Util$1]),require$$1=getAugmentedNamespace(Util$3);var QueryHandler=require$$0$3,each$1=require$$1.each;function MediaQuery$1(e,r){this.query=e,this.isUnconditional=r,this.handlers=[],this.mql=window.matchMedia(e);var t=this;this.listener=function(n){t.mql=n.currentTarget||n,t.assess()},this.mql.addListener(this.listener)}MediaQuery$1.prototype={constuctor:MediaQuery$1,addHandler:function(e){var r=new QueryHandler(e);this.handlers.push(r),this.matches()&&r.on()},removeHandler:function(e){var r=this.handlers;each$1(r,function(t,n){if(t.equals(e))return t.destroy(),!r.splice(n,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){each$1(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";each$1(this.handlers,function(r){r[e]()})}};var MediaQuery_1=MediaQuery$1;const MediaQuery$2=getDefaultExportFromCjs(MediaQuery_1),MediaQuery$3=_mergeNamespaces({__proto__:null,default:MediaQuery$2},[MediaQuery_1]),require$$0$2=getAugmentedNamespace(MediaQuery$3);var MediaQuery=require$$0$2,Util=require$$1,each=Util.each,isFunction=Util.isFunction,isArray=Util.isArray;function MediaQueryDispatch$1(){if(!window.matchMedia)throw new Error("matchMedia n
13ot present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}MediaQueryDispatch$1.prototype={constructor:MediaQueryDispatch$1,register:function(e,r,t){var n=this.queries,i=t&&this.browserIsIncapable;return n[e]||(n[e]=new MediaQuery(e,i)),isFunction(r)&&(r={match:r}),isArray(r)||(r=[r]),each(r,function(a){isFunction(a)&&(a={match:a}),n[e].addHandler(a)}),this},unregister:function(e,r){var t=this.queries[e];return t&&(r?t.removeHandler(r):(t.clear(),delete this.queries[e])),this}};var MediaQueryDispatch_1=MediaQueryDispatch$1;const MediaQueryDispatch$2=getDefaultExportFromCjs(MediaQueryDispatch_1),MediaQueryDispatch$3=_mergeNamespaces({__proto__:null,default:MediaQueryDispatch$2},[MediaQueryDispatch_1]),require$$0$1=getAugmentedNamespace(MediaQueryDispatch$3);var MediaQueryDispatch=require$$0$1,src=new MediaQueryDispatch;const enquire=getDefaultExportFromCjs(src);function Fso(){}Fso.prototype={triggerSelectorClass:".js_fso",triggerElemDataAttribute:"val",$prgFormClass:"#js_fso-form",$prgForm:$$1(),prgUrlClass:".js_fso-data",$prgUrlElem:$$1(),init:function(){(this.$prgForm.length===0||this.$prgUrlElem.length===0)&&(this.$prgForm=$$1(this.$prgFormClass),this.$prgUrlElem=$$1(this.prgUrlClass,this.$prgForm))},addEventListener:function(e){let r=this,t=function(){if(event.layerX!==0&&event.layerY!==0){let a=$$1(this).data().modalRef,s=$$1(a)?.data();if(s){let c=s["vue-bypass-form-submit-callback"];c&&($$1("#merchant-selector").modal("hide"),c($$1(this).data()))}else r.$prgUrlElem.val($$1(this).data(r.triggerElemDataAttribute)),r.$prgForm.submit()}},n,i;e?(n=e,i=typeof e=="string"&&!$$1(e).hasClass(r.triggerSelectorClass)):(n=this.triggerSelectorClass,i=!1),i?$$1(n).on("click",r.triggerSelectorClass,t):$$1(n).on("click",t)}};var swiper={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(commonjsGlobal,function(){var t=typeof document>"u"?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,n=typeof window>"u"?{document:t,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(o){for(var d=this,g=0;g<o.length;g+=1)d[g]=o[g];return d.length=o.length,this};function a(w,o){var d=[],g=0;if(w&&!o&&w instanceof i)return w;if(w){if(typeof w=="string"){var y,C,I=w.trim();if(I.indexOf("<")>=0&&I.indexOf(">")>=0){var N="div";for(I.indexOf("<li")===0&&(N="ul"),I.indexOf("<tr")===0&&(N="tbody"),(I.indexOf("<td")===0||I.indexOf("<th")===0)&&(N="tr"),I.indexOf("<tbody")===0&&(N="table"),I.indexOf("<option")===0&&(N="select"),C=t.createElement(N),C.innerHTML=I,g=0;g<C.childNodes.length;g+=1)d.push(C.childNodes[g])}else for(!o&&w[0]==="#"&&!w.match(/[ .<>:~]/)?y=[t.getElementById(w.trim().split("#")[1])]:y=(o||t).querySelectorAll(w.trim()),g=0;g<y.length;g+=1)y[g]&&d.push(y[g])}else if(w.nodeType||w===n||w===t)d.push(w);else if(w.length>0&&w[0].nodeType)for(g=0;g<w.length;g+=1)d.push(w[g])}return new i(d)}a.fn=i.prototype,a.Class=i,a.Dom7=i;function s(w){for(var o=[],d=0;d<w.length;d+=1)o.indexOf(w[d])===-1&&o.push(w[d]);return o}function c(w){if(typeof w>"u")return this;for(var o=w.split(" "),d=0;d<o.length;d+=1)for(var g=0;g<this.length;g+=1)typeof this[g]<"u"&&typeof this[g].classList<"u"&&this[g].classList.add(o[d]);return this}function h(w){for(var o=w.split(" "),d=0;d<o.length;d+=1)for(var g=0;g<this.length;g+=1)typeof this[g]<"u"&&typeof this[g].classList<"u"&&this[g].classList.remove(o[d]);return this}function l(w){return this[0]?this[0].classList.contains(w):!1}function p(w){for(var o=w.split(" "),d=0;d<o.length;d+=1)for(var g=0;g<this.length;g+=1)typeof this[g]<"u"&&typeof this[g].classList<"u"&&this[g].classList.toggle(o[d]);return this}function b(w,o){var d=arguments;if(arguments.length===1&&typeof w=="string")return this[0]?this[0].getAttribute(w):void 0;for(var g=0;g<this.length;g+=1)if(d.length===2)this[g].setAttribute(w,o);else for(var y in w)this[g][y]=w[y],this[g].setAttribute(y,w[y]);return this}function m(w){for(var o=0;o<this.length;o+=1)this[o].removeAttribute(w);return this}function A(w,o){var d;if(typeof o>"u"){if(d=this[0],d){if(d.dom7ElementDataStorage&&w in d.dom7ElementDataStorage)return d.dom7ElementDataStorage[w];var g=d.getAttribute("data-"+w);return g||void 0}return}for(var y=0;y<this.length;y+=1)d=this[y],d.dom7ElementDataStorage||(d.dom7ElementDataStorage={}),d.dom7ElementDataStorage[w]=o;return this}function L(w){for(var o=0;o<this.length;o+=1){var d=this[o].style;d.webkitTransform=w,d.transform=w}return this}
vendor: 57,496 bytes, line 13
13function k(w){typeof w!="string"&&(w=w+"ms");for(var o=0;o<this.length;o+=1){var d=this[o].style;d.webkitTransitionDuration=w,d.transitionDuration=w}return this}function T(){for(var w,o=[],d=arguments.length;d--;)o[d]=arguments[d];var g=o[0],y=o[1],C=o[2],I=o[3];typeof o[1]=="function"&&(w=o,g=w[0],C=w[1],I=w[2],y=void 0),I||(I=!1);function N(E){var D=E.target;if(D){var F=E.target.dom7EventData||[];if(F.indexOf(E)<0&&F.unshift(E),a(D).is(y))C.apply(D,F);else for(var O=a(D).parents(),Y=0;Y<O.length;Y+=1)a(O[Y]).is(y)&&C.apply(O[Y],F)}}function V(E){var D=E&&E.target?E.target.dom7EventData||[]:[];D.indexOf(E)<0&&D.unshift(E),C.apply(this,D)}for(var ie=g.split(" "),le,Ae=0;Ae<this.length;Ae+=1){var u=this[Ae];if(y)for(le=0;le<ie.length;le+=1){var x=ie[le];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[x]||(u.dom7LiveListeners[x]=[]),u.dom7LiveListeners[x].push({listener:C,proxyListener:N}),u.addEventListener(x,N,I)}else for(le=0;le<ie.length;le+=1){var v=ie[le];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[v]||(u.dom7Listeners[v]=[]),u.dom7Listeners[v].push({listener:C,proxyListener:V}),u.addEventListener(v,V,I)}}return this}function S(){for(var w,o=[],d=arguments.length;d--;)o[d]=arguments[d];var g=o[0],y=o[1],C=o[2],I=o[3];typeof o[1]=="function"&&(w=o,g=w[0],C=w[1],I=w[2],y=void 0),I||(I=!1);for(var N=g.split(" "),V=0;V<N.length;V+=1)for(var ie=N[V],le=0;le<this.length;le+=1){var Ae=this[le],u=void 0;if(!y&&Ae.dom7Listeners?u=Ae.dom7Listeners[ie]:y&&Ae.dom7LiveListeners&&(u=Ae.dom7LiveListeners[ie]),u&&u.length)for(var v=u.length-1;v>=0;v-=1){var x=u[v];C&&x.listener===C||C&&x.listener&&x.listener.dom7proxy&&x.listener.dom7proxy===C?(Ae.removeEventListener(ie,x.proxyListener,I),u.splice(v,1)):C||(Ae.removeEventListener(ie,x.proxyListener,I),u.splice(v,1))}}return this}function M(){for(var w=[],o=arguments.length;o--;)w[o]=arguments[o];for(var d=w[0].split(" "),g=w[1],y=0;y<d.length;y+=1)for(var C=d[y],I=0;I<this.length;I+=1){var N=this[I],V=void 0;try{V=new n.CustomEvent(C,{detail:g,bubbles:!0,cancelable:!0})}catch{V=t.createEvent("Event"),V.initEvent(C,!0,!0),V.detail=g}N.dom7EventData=w.filter(function(ie,le){return le>0}),N.dispatchEvent(V),N.dom7EventData=[],delete N.dom7EventData}return this}function H(w){var o=["webkitTransitionEnd","transitionend"],d=this,g;function y(C){if(C.target===this)for(w.call(this,C),g=0;g<o.length;g+=1)d.off(o[g],y)}if(w)for(g=0;g<o.length;g+=1)d.on(o[g],y);return this}function te(w){if(this.length>0){if(w){var o=this.styles();return this[0].offsetWidth+parseFloat(o.getPropertyValue("margin-right"))+parseFloat(o.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function Ie(w){if(this.length>0){if(w){var o=this.styles();return this[0].offsetHeight+parseFloat(o.getPropertyValue("margin-top"))+parseFloat(o.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function we(){if(this.length>0){var w=this[0],o=w.getBoundingClientRect(),d=t.body,g=w.clientTop||d.clientTop||0,y=w.clientLeft||d.clientLeft||0,C=w===n?n.scrollY:w.scrollTop,I=w===n?n.scrollX:w.scrollLeft;return{top:o.top+C-g,left:o.left+I-y}}return null}function _(){return this[0]?n.getComputedStyle(this[0],null):{}}function oe(w,o){var d;if(arguments.length===1)if(typeof w=="string"){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(w)}else{for(d=0;d<this.length;d+=1)for(var g in w)this[d].style[g]=w[g];return this}if(arguments.length===2&&typeof w=="string"){for(d=0;d<this.length;d+=1)this[d].style[w]=o;return this}return this}function ee(w){if(!w)return this;for(var o=0;o<this.length;o+=1)if(w.call(this[o],o,this[o])===!1)return this;return this}function Ee(w){if(typeof w>"u")return this[0]?this[0].innerHTML:void 0;for(var o=0;o<this.length;o+=1)this[o].innerHTML=w;return this}function Le(w){if(typeof w>"u")return this[0]?this[0].textContent.trim():null;for(var o=0;o<this.length;o+=1)this[o].textContent=w;return this}function Pe(w){var o=this[0],d,g;if(!o||typeof w>"u")return!1;if(typeof w=="string"){if(o.matches)return o.matches(w);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(w);if(o.msMatchesSelector)return o.msMatchesSelector(w);for(d=a(w),g=0;g<d.length;g+=1)if(d[g]===o)return!0;return!1}else{if(w===t)return o===t;if(w===n)return o===n}if(w.nodeType||w instanceof i){for(d=w.nodeType?[w]:w,g=0;g<d.length;g+=1)if(d[g]===o)return!0;return!1}return!1}function $e(){var w=this[0],o;if(w){for(o=0;(w=w.previousSibling)!==null;)w.nodeType===1&&(o+=1);return o}}function Ze(w){if(typeof w>"u")return this;var o=this.length,d;return w>o-1?new i([]):w<0?(d=o+w,d<0?new i([]):new i([this[d]])):new i([this[w]])}function je(){for(var w=[],o=arguments.length;o--;)w[o]=arguments[o];for(var d,g=0;g<w.length;g+=1){d=w[g];for(var y=0;y<this.length;y+=1)if(typeof d=="string"){var C=t.createElement("div");for(C.innerHTML=d;C.firstChild;)this[y].appendChild(C.firstChild)}else if(d instanceof i)for(var I=0;I<d.length;I+=1)this[y].appendChild(d[I]);else this[y].appendChild(d)}return this}function gt(w){var o,d;for(o=0;o<this.length;o+=1)if(typeof w=="string"){var g=t.createElement("div");for(g.innerHTML=w,d=g.childNodes.length-1;d>=0;d-=1)this[o].insertBefore(g.childNodes[d],this[o].childNodes[0])}else if(w instanceof i)for(d=0;d<w.length;d+=1)this[o].insertBefore(w[d],this[o].childNodes[0]);else this[o].insertBefore(w,this[o].childNodes[0]);return this}function Xe(w){return this.length>0?w?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(w)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])}function dt(w){var o=[],d=this[0];if(!d)return new i([]);for(;d.nextElementSibling;){var g=d.nextElementSibling;w?a(g).is(w)&&o.push(g):o.push(g),d=g}return new i(o)}function yt(w){if(this.length>0){var o=this[0];return w?o.previousElementSibling&&a(o.previousElementSibling).is(w)?new i([o.previousElementSibling]):new i([]):o.previousElementSibling?new i([o.previousElementSibling]):new i([])}return new i([])}function Bt(w){var o=[],d=this[0];if(!d)return new i([]);for(;d.previousElementSibling;){var g=d.previousElementSibling;w?a(g).is(w)&&o.push(g):o.push(g),d=g}return new i(o)}function se(w){for(var o=[],d=0;d<this.length;d+=1)this[d].parentNode!==null&&(w?a(this[d].parentNode).is(w)&&o.push(this[d].parentNode):o.push(this[d].parentNode));return a(s(o))}function xe(w){for(var o=[],d=0;d<this.length;d+=1)for(var g=this[d].parentNode;g;)w?a(g).is(w)&&o.push(g):o.push(g),g=g.parentNode;return a(s(o))}function qe(w){var o=this;return typeof w>"u"?new i([]):(o.is(w)||(o=o.parents(w).eq(0)),o)}function R(w){for(var o=[],d=0;d<this.length;d+=1)for(var g=this[d].querySelectorAll(w),y=0;y<g.length;y+=1)o.push(g[y]);return new i(o)}function re(w){for(var o=[],d=0;d<this.length;d+=1)for(var g=this[d].childNodes,y=0;y<g.length;y+=1)w?g[y].nodeType===1&&a(g[y]).is(w)&&o.push(g[y]):g[y].nodeType===1&&o.push(g[y]);return new i(s(o))}function W(){for(var w=0;w<this.length;w+=1)this[w].parentNode&&this[w].parentNode.removeChild(this[w]);return this}function ne(){for(var w=[],o=arguments.length;o--;)w[o]=arguments[o];var d=this,g,y;for(g=0;g<w.length;g+=1){var C=a(w[g]);for(y=0;y<C.length;y+=1)d[d.length]=C[y],d.length+=1}return d}var be={addClass:c,removeClass:h,hasClass:l,toggleClass:p,attr:b,removeAttr:m,data:A,transform:L,transition:k,on:T,off:S,trigger:M,transitionEnd:H,outerWidth:te,outerHeight:Ie,offset:we,css:oe,each:ee,html:Ee,text:Le,is:Pe,index:$e,eq:Ze,append:je,prepend:gt,next:Xe,nextAll:dt,prev:yt,prevAll:Bt,parent:se,parents:xe,closest:qe,find:R,children:re,remove:W,add:ne,styles:_};Object.keys(be).forEach(function(w){a.fn[w]=be[w]});var fe={deleteProps:function(o){var d=o;Object.keys(d).forEach(function(g){try{d[g]=null}catch{}try{delete d[g]}catch{}})},nextTick:function(o,d){return d===void 0&&(d=0),setTimeout(o,d)},now:function(){return Date.now()},getTranslate:function(o,d){d===void 0&&(d="x");var g,y,C,I=n.getComputedStyle(o,null);return n.WebKitCSSMatrix?(y=I.transform||I.webkitTransform,y.split(",").length>6&&(y=y.split(", ").map(function(N){return N.replace(",",".")}).join(", ")),C=new n.WebKitCSSMatrix(y==="none"?"":y)):(C=I.MozTransform||I.OTransform||I.MsTransform||I.msTransform||I.transform||I.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),g=C.toString().split(",")),d==="x"&&(n.WebKitCSSMatrix?y=C.m41:g.length===16?y=parseFloat(g[12]):y=parseFloat(g[4])),d==="y"&&(n.WebKitCSSMatrix?y=C.m42:g.length===16?y=parseFloat(g[13]):y=parseFloat(g[5])),y||0},parseUrlQuery:function(o){var d={},g=o||n.location.href,y,C,I,N;if(typeof g=="string"&&g.length)for(g=g.indexOf("?")>-1?g.replace(/\S*\?/,""):"",C=g.split("&").filter(function(V){return V!==""}),N=C.length,y=0;y<N;y+=1)I=C[y].replace(/#\S+/g,"").split("="),d[decodeURIComponent(I[0])]=typeof I[1]>"u"?void 0:decodeURIComponent(I[1])||"";return d},isObject:function(o){return typeof o=="object"&&o!==null&&o.constructor&&o.constructor===Object},extend:function(){for(var o=[],d=arguments.length;d--;)o[d]=arguments[d];for(var g=Object(o[0]),y=1;y<o.length;y+=1){var C=o[y];if(C!=null)for(var I=Object.keys(Object(C)),N=0,V=I.length;N<V;N+=1){var ie=I[N],le=Object.getOwnPropertyDescriptor(C,ie);le!==void 0&&le.enumerable&&(fe.isObject(g[ie])&&fe.isObject(C[ie])?fe.extend(g[ie],C[ie]):!fe.isObject(g[ie])&&fe.isObject(C[ie])?(g[ie]={},fe.extend(g[ie],C[ie])):g[ie]=C[ie])}}return g}},ye=function(){var o=t.createElement("div");return{touch:n.Modernizr&&n.Modernizr.touch===!0||function(){return!!(n.navigator.maxTouchPoints>0||"ontouchstart"in n||n.DocumentTouch&&t instanceof n.DocumentTouch)}(),pointerEvents:!!(n.navigator.pointerEnabled||n.PointerEvent||"maxTouchPoints"in n.navigator&&n.navigator.maxTouchPoints>0),prefixedPointerEvents:!!n.navigator.msPointerEnabled,transition:function(){var g=o.style;return"transition"in g||"webkitTransition"in g||"MozTransition"in g}(),transforms3d:n.Modernizr&&n.Modernizr.csstransforms3d===!0||function(){var g=o.style;return"webkitPerspective"in g||"MozPerspective"in g||"OPerspective"in g||"MsPerspective"in g||"perspective"in g}(),flexbox:function(){for(var g=o.style,y="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),C=0;C<y.length;C+=1)if(y[C]in g)return!0;return!1}(),observer:function(){return"MutationObserver"in n||"WebkitMutationObserver"in n}(),passiveListener:function(){var g=!1;try{var y=Object.defineProperty({},"passive",{get:function(){g=!0}});n.addEventListener("testPassiveListener",null,y)}catch{}return g}(),gestures:function(){return"ongesturestart"in n}()}}(),et=function(){function o(){var d=n.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}return{isIE:!!n.navigator.userAgent.match(/Trident/g)||!!n.navigator.userAgent.match(/MSIE/g),isEdge:!!n.navigator.userAgent.match(/Edge/g),isSafari:o(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(n.navigator.userAgent)}}(),Be=function(o){o===void 0&&(o={});var d=this;d.params=o,d.eventsListeners={},d.params&&d.params.on&&Object.keys(d.params.on).forEach(function(g){d.on(g,d.params.on[g])})},ht={components:{configurable:!0}};Be.prototype.on=function(o,d,g){var y=this;if(typeof d!="function")return y;var C=g?"unshift":"push";return o.split(" ").forEach(function(I){y.eventsListeners[I]||(y.eventsListeners[I]=[]),y.eventsListeners[I][C](d)}),y},Be.prototype.once=function(o,d,g){var y=this;if(typeof d!="function")return y;function C(){for(var I=[],N=arguments.length;N--;)I[N]=arguments[N];d.apply(y,I),y.off(o,C),C.f7proxy&&delete C.f7proxy}return C.f7proxy=d,y.on(o,C,g)},Be.prototype.off=function(o,d){var g=this;return g.eventsListeners&&o.split(" ").forEach(function(y){typeof d>"u"?g.eventsListeners[y]=[]:g.eventsListeners[y]&&g.eventsListeners[y].length&&g.eventsListeners[y].forEach(function(C,I){(C===d||C.f7proxy&&C.f7proxy===d)&&g.eventsListeners[y].splice(I,1)})}),g},Be.prototype.emit=function(){for(var o=[],d=arguments.length;d--;)o[d]=arguments[d];var g=this;if(!g.eventsListeners)return g;var y,C,I;typeof o[0]=="string"||Array.isArray(o[0])?(y=o[0],C=o.slice(1,o.length),I=g):(y=o[0].events,C=o[0].data,I=o[0].context||g);var N=Array.isArray(y)?y:y.split(" ");return N.forEach(function(V){if(g.eventsListeners&&g.eventsListeners[V]){var ie=[];g.eventsListeners[V].forEach(function(le){ie.push(le)}),ie.forEach(function(le){le.apply(I,C)})}}),g},Be.prototype.useModulesParams=function(o){var d=this;d.modules&&Object.keys(d.modules).forEach(function(g){var y=d.modules[g];y.params&&fe.extend(o,y.params)})},Be.prototype.useModules=function(o){o===void 0&&(o={});var d=this;d.modules&&Object.keys(d.modules).forEach(function(g){var y=d.modules[g],C=o[g]||{};y.instance&&Object.keys(y.instance).forEach(function(I){var N=y.instance[I];typeof N=="function"?d[I]=N.bind(d):d[I]=N}),y.on&&d.on&&Object.keys(y.on).forEach(function(I){d.on(I,y.on[I])}),y.create&&y.create.bind(d)(C)})},ht.components.set=function(w){var o=this;o.use&&o.use(w)},Be.installModule=function(o){for(var d=[],g=arguments.length-1;g-- >0;)d[g]=arguments[g+1];var y=this;y.prototype.modules||(y.prototype.modules={});var C=o.name||Object.keys(y.prototype.modules).length+"_"+fe.now();return y.prototype.modules[C]=o,o.proto&&Object.keys(o.proto).forEach(function(I){y.prototype[I]=o.proto[I]}),o.static&&Object.keys(o.static).forEach(function(I){y[I]=o.static[I]}),o.install&&o.install.apply(y,d),y},Be.use=function(o){for(var d=[],g=arguments.length-1;g-- >0;)d[g]=arguments[g+1];var y=this;return Array.isArray(o)?(o.forEach(function(C){return y.installModule(C)}),y):y.installModule.apply(y,[o].concat(d))},Object.defineProperties(Be,ht);function _t(){var w=this,o,d,g=w.$el;typeof w.params.width<"u"?o=w.params.width:o=g[0].clientWidth,typeof w.params.height<"u"?d=w.params.height:d=g[0].clientHeight,!(o===0&&w.isHorizontal()||d===0&&w.isVertical())&&(o=o-parseInt(g.css("padding-left"),10)-parseInt(g.css("padding-right"),10),d=d-parseInt(g.css("padding-top"),10)-parseInt(g.css("padding-bottom"),10),fe.extend(w,{width:o,height:d,size:w.isHorizontal()?o:d}))}function Et(){var w=this,o=w.params,d=w.$wrapperEl,g=w.size,y=w.rtlTranslate,C=w.wrongRTL,I=w.virtual&&o.virtual.enabled,N=I?w.virtual.slides.length:w.slides.length,V=d.children("."+w.params.slideClass),ie=I?w.virtual.slides.length:V.length,le=[],Ae=[],u=[],v=o.slidesOffsetBefore;typeof v=="function"&&(v=o.slidesOffsetBefore.call(w));var x=o.slidesOffsetAfter;typeof x=="function"&&(x=o.slidesOffsetAfter.call(w));var E=w.snapGrid.length,D=w.snapGrid.length,F=o.spaceBetween,O=-v,Y=0,K=0;if(!(typeof g>"u")){typeof F=="string"&&F.indexOf("%")>=0&&(F=parseFloat(F.replace("%",""))/100*g),w.virtualSize=-F,y?V.css({marginLeft:"",marginTop:""}):V.css({marginRight:"",marginBottom:""});var ae;o.slidesPerColumn>1&&(Math.floor(ie/o.slidesPerColumn)===ie/w.params.slidesPerColumn?ae=ie:ae=Math.ceil(ie/o.slidesPerColumn)*o.slidesPerColumn,o.slidesPerView!=="auto"&&o.slidesPerColumnFill==="row"&&(ae=Math.max(ae,o.slidesPerView*o.slidesPerColumn)));for(var he,ke=o.slidesPerColumn,me=ae/ke,Re=Math.floor(ie/o.slidesPerColumn),Je=0;Je<ie;Je+=1){he=0;var mt=V.eq(Je);if(o.slidesPerColumn>1){var ft=void 0,kt=void 0,Dt=void 0;o.slidesPerColumnFill==="column"?(kt=Math.floor(Je/ke),Dt=Je-kt*ke,(kt>Re||kt===Re&&Dt===ke-1)&&(Dt+=1,Dt>=ke&&(Dt=0,kt+=1)),ft=kt+Dt*ae/ke,mt.css({"-webkit-box-ordinal-group":ft,"-moz-box-ordinal-group":ft,"-ms-flex-order":ft,"-webkit-order":ft,order:ft})):(Dt=Math.floor(Je/me),kt=Je-Dt*me),mt.css("margin-"+(w.isHorizontal()?"top":"left"),Dt!==0&&o.spaceBetween&&o.spaceBetween+"px").attr("data-swiper-column",kt).attr("data-swiper-row",Dt)}if(mt.css("display")!=="none"){if(o.slidesPerView==="auto"){var Wt=n.getComputedStyle(mt[0],null),vr=mt[0].style.transform,Lt=mt[0].style.webkitTransform;if(vr&&(mt[0].style.transform="none"),Lt&&(mt[0].style.webkitTransform="none"),o.roundLengths)he=w.isHorizontal()?mt.outerWidth(!0):mt.outerHeight(!0);else if(w.isHorizontal()){var $r=parseFloat(Wt.getPropertyValue("width")),Ot=parseFloat(Wt.getPropertyValue("padding-left")),Gt=parseFloat(Wt.getPropertyValue("padding-right")),zr=parseFloat(Wt.getPropertyValue("margin-left")),en=parseFloat(Wt.getPropertyValue("margin-right")),br=Wt.getPropertyValue("box-sizing");br&&br==="border-box"?he=$r+zr+en:he=$r+Ot+Gt+zr+en}else{var Ur=parseFloat(Wt.getPropertyValue("height")),Ar=parseFloat(Wt.getPropertyValue("padding-top")),Or=parseFloat(Wt.getPropertyValue("padding-bottom")),Dr=parseFloat(Wt.getPropertyValue("margin-top")),ur=parseFloat(Wt.getPropertyValue("margin-bottom")),tn=Wt.getPropertyValue("box-sizing");tn&&tn==="border-box"?he=Ur+Dr+ur:he=Ur+Ar+Or+Dr+ur}vr&&(mt[0].style.transform=vr),Lt&&(mt[0].style.webkitTransform=Lt),o.roundLengths&&(he=Math.floor(he))}else he=(g-(o.slidesPerView-1)*F)/o.slidesPerView,o.roundLengths&&(he=Math.floor(he)),V[Je]&&(w.isHorizontal()?V[Je].style.width=he+"px":V[Je].style.height=he+"px");V[Je]&&(V[Je].swiperSlideSize=he),u.push(he),o.centeredSlides?(O=O+he/2+Y/2+F,Y===0&&Je!==0&&(O=O-g/2-F),Je===0&&(O=O-g/2-F),Math.abs(O)<1/1e3&&(O=0),o.roundLengths&&(O=Math.floor(O)),K%o.slidesPerGroup===0&&le.push(O),Ae.push(O)):(o.roundLengths&&(O=Math.floor(O)),K%o.slidesPerGroup===0&&le.push(O),Ae.push(O),O=O+he+F),w.virtualSize+=he+F,Y=he,K+=1}}w.virtualSize=Math.max(w.virtualSize,g)+x;var nr;if(y&&C&&(o.effect==="slide"||o.effect==="coverflow")&&d.css({width:w.virtualSize+o.spaceBetween+"px"}),(!ye.flexbox||o.setWrapperSize)&&(w.isHorizontal()?d.css({width:w.virtualSize+o.spaceBetween+"px"}):d.css({height:w.virtualSize+o.spaceBetween+"px"})),o.slidesPerColumn>1&&(w.virtualSize=(he+o.spaceBetween)*ae,w.virtualSize=Math.ceil(w.virtualSize/o.slidesPerColumn)-o.spaceBetween,w.isHorizontal()?d.css({width:w.virtualSize+o.spaceBetween+"px"}):d.css({height:w.virtualSize+o.spaceBetween+"px"}),o.centeredSlides)){nr=[];for(var gr=0;gr<le.length;gr+=1){var un=le[gr];o.roundLengths&&(un=Math.floor(un)),le[gr]<w.virtualSize+le[0]&&nr.push(un)}le=nr}if(!o.centeredSlides){nr=[];for(var rn=0;rn<le.length;rn+=1){var fn=le[rn];o.roundLengths&&(fn=Math.floor(fn)),le[rn]<=w.virtualSize-g&&nr.push(fn)}le=nr,Math.floor(w.virtualSize-g)-Math.floor(le[le.length-1])>1&&le.push(w.virtualSize-g)}if(le.length===0&&(le=[0]),o.spaceBetween!==0&&(w.isHorizontal()?y?V.css({marginLeft:F+"px"}):V.css({marginRight:F+"px"}):V.css({marginBottom:F+"px"})),o.centerInsufficientSlides){var Rt=0;if(u.forEach(function(rr){Rt+=rr+(o.spaceBetween?o.spaceBetween:0)}),Rt-=o.spaceBetween,Rt<g){var Xr=(g-Rt)/2;le.forEach(function(rr,Pr){le[Pr]=rr-Xr}),Ae.forEach(function(rr,Pr){Ae[Pr]=rr+Xr})}}fe.extend(w,{slides:V,snapGrid:le,slidesGrid:Ae,slidesSizesGrid:u}),ie!==N&&w.emit("slidesLengthChange"),le.length!==E&&(w.params.watchOverflow&&w.checkOverflow(),w.emit("snapGridLengthChange")),Ae.length!==D&&w.emit("slidesGridLengthChange"),(o.watchSlidesProgress||o.watchSlidesVisibility)&&w.updateSlidesOffset()}}function Pt(w){var o=this,d=[],g=0,y;if(typeof w=="number"?o.setTransition(w):w===!0&&o.setTransition(o.params.speed),o.params.slidesPerView!=="auto"&&o.params.slidesPerView>1)for(y=0;y<Math.ceil(o.params.slidesPerView);y+=1){var C=o.activeIndex+y;if(C>o.slides.length)break;d.push(o.slides.eq(C)[0])}else d.push(o.slides.eq(o.activeIndex)[0]);for(y=0;y<d.length;y+=1)if(typeof d[y]<"u"){var I=d[y].offsetHeight;g=I>g?I:g}g&&o.$wrapperEl.css("height",g+"px")}function Ut(){for(var w=this,o=w.slides,d=0;d<o.length;d+=1)o[d].swiperSlideOffset=w.isHorizontal()?o[d].offsetLeft:o[d].offsetTop}function rt(w){w===void 0&&(w=this&&this.translate||0);var o=this,d=o.params,g=o.slides,y=o.rtlTranslate;if(g.length!==0){typeof g[0].swiperSlideOffset>"u"&&o.updateSlidesOffset();var C=-w;y&&(C=w),g.removeClass(d.slideVisibleClass),o.visibleSlidesIndexes=[],o.visibleSlides=[];for(var I=0;I<g.length;I+=1){var N=g[I],V=(C+(d.centeredSlides?o.minTranslate():0)-N.swiperSlideOffset)/(N.swiperSlideSize+d.spaceBetween);if(d.watchSlidesVisibility){var ie=-(C-N.swiperSlideOffset),le=ie+o.slidesSizesGrid[I],Ae=ie>=0&&ie<o.size||le>0&&le<=o.size||ie<=0&&le>=o.size;Ae&&(o.visibleSlides.push(N),o.visibleSlidesIndexes.push(I),g.eq(I).addClass(d.slideVisibleClass))}N.progress=y?-V:V}o.visibleSlides=a(o.visibleSlides)}}function Vt(w){w===void 0&&(w=this&&this.translate||0);var o=this,d=o.params,g=o.maxTranslate()-o.minTranslate(),y=o.progress,C=o.isBeginning,I=o.isEnd,N=C,V=I;g===0?(y=0,C=!0,I=!0):(y=(w-o.minTranslate())/g,C=y<=0,I=y>=1),fe.extend(o,{progress:y,isBeginning:C,isEnd:I}),(d.watchSlidesProgress||d.watchSlidesVisibility)&&o.updateSlidesProgress(w),C&&!N&&o.emit("reachBeginning toEdge"),I&&!V&&o.emit("reachEnd toEdge"),(N&&!C||V&&!I)&&o.emit("fromEdge"),o.emit("progress",y)}function Ke(){var w=this,o=w.slides,d=w.params,g=w.$wrapperEl,y=w.activeIndex,C=w.realIndex,I=w.virtual&&d.virtual.enabled;o.removeClass(d.slideActiveClass+" "+d.slideNextClass+" "+d.slidePrevClass+" "+d.slideDuplicateActiveClass+" "+d.slideDuplicateNextClass+" "+d.slideDuplicatePrevClass);var N;I?N=w.$wrapperEl.find("."+d.slideClass+'[data-swiper-slide-index="'+y+'"]'):N=o.eq(y),N.addClass(d.slideActiveClass),d.loop&&(N.hasClass(d.slideDuplicateClass)?g.children("."+d.slideClass+":not(."+d.slideDuplicateClass+')[data-swiper-slide-index="'+C+'"]').addClass(d.slideDuplicateActiveClass):g.children("."+d.slideClass+"."+d.slideDuplicateClass+'[data-swiper-slide-index="'+C+'"]').addClass(d.slideDuplicateActiveClass));var V=N.nextAll("."+d.slideClass).eq(0).addClass(d.slideNextClass);d.loop&&V.length===0&&(V=o.eq(0),V.addClass(d.slideNextClass));var ie=N.prevAll("."+d.slideClass).eq(0).addClass(d.slidePrevClass);d.loop&&ie.length===0&&(ie=o.eq(-1),ie.addClass(d.slidePrevClass)),d.loop&&(V.hasClass(d.slideDuplicateClass)?g.children("."+d.slideClass+":not(."+d.slideDuplicateClass+')[data-swiper-slide-index="'+V.attr("data-swiper-slide-index")+'"]').addClass(d.slideDuplicateNextClass):g.children("."+d.slideClass+"."+d.slideDuplicateClass+'[data-swiper-slide-index="'+V.attr("data-swiper-slide-index")+'"]').addClass(d.slideDuplicateNextClass),ie.hasClass(d.slideDuplicateClass)?g.children("."+d.slideClass+":not(."+d.slideDuplicateClass+')[data-swiper-slide-index="'+ie.attr("data-swiper-slide-index")+'"]').addClass(d.slideDuplicatePrevClass):g.children("."+d.slideClass+"."+d.slideDuplicateClass+'[data-swiper-slide-index="'+ie.attr("data-swiper-slide-index")+'"]').addClass(d.slideDuplicatePrevClass))}function At(w){var o=this,d=o.rtlTranslate?o.translate:-o.translate,g=o.slidesGrid,y=o.snapGrid,C=o.params,I=o.activeIndex,N=o.realIndex,V=o.snapIndex,ie=w,le;if(typeof ie>"u"){for(var Ae=0;Ae<g.length;Ae+=1)typeof g[Ae+1]<"u"?d>=g[Ae]&&d<g[Ae+1]-(g[Ae+1]-g[Ae])/2?ie=Ae:d>=g[Ae]&&d<g[Ae+1]&&(ie=Ae+1):d>=g[Ae]&&(ie=Ae);C.normalizeSlideIndex&&(ie<0||typeof ie>"u")&&(ie=0)}if(y.indexOf(d)>=0?le=y.indexOf(d):le=Math.floor(ie/C.slidesPerGroup),le>=y.length&&(le=y.length-1),ie===I){le!==V&&(o.snapIndex=le,o.emit("snapIndexChange"));return}var u=parseInt(o.slides.eq(ie).attr("data-swiper-slide-index")||ie,10);fe.extend(o,{snapIndex:le,realIndex:u,previousIndex:I,activeIndex:ie}),o.emit("activeIndexChange"),o.emit("snapIndexChange"),N!==u&&o.emit("realIndexChange"),o.emit("slideChange")}function Ve(w){var o=this,d=o.params,g=a(w.target).closest("."+d.slideClass)[0],y=!1;if(g)for(var C=0;C<o.slides.length;C+=1)o.slides[C]===g&&(y=!0);if(g&&y)o.clickedSlide=g,o.virtual&&o.params.virtual.enabled?o.clickedIndex=parseInt(a(g).attr("data-swiper-slide-index"),10):o.clickedIndex=a(g).index();else{o.clickedSlide=void 0,o.clickedIndex=void 0;return}d.slideToClickedSlide&&o.clickedIndex!==void 0&&o.clickedIndex!==o.activeIndex&&o.slideToClickedSlide()}var wt={updateSize:_t,updateSlides:Et,updateAutoHeight:Pt,updateSlidesOffset:Ut,updateSlidesProgress:rt,updateProgress:Vt,updateSlidesClasses:Ke,updateActiveIndex:At,updateClickedSlide:Ve};function Ct(w){w===void 0&&(w=this.isHorizontal()?"x":"y");var o=this,d=o.params,g=o.rtlTranslate,y=o.translate,C=o.$wrapperEl;if(d.virtualTranslate)return g?-y:y;var I=fe.getTranslate(C[0],w);return g&&(I=-I),I||0}function nt(w,o){var d=this,g=d.rtlTranslate,y=d.params,C=d.$wrapperEl,I=d.progress,N=0,V=0,ie=0;d.isHorizontal()?N=g?-w:w:V=w,y.roundLengths&&(N=Math.floor(N),V=Math.floor(V)),y.virtualTranslate||(ye.transforms3d?C.transform("translate3d("+N+"px, "+V+"px, "+ie+"px)"):C.transform("translate("+N+"px, "+V+"px)")),d.previousTranslate=d.translate,d.translate=d.isHorizontal()?N:V;var le,Ae=d.maxTranslate()-d.minTranslate();Ae===0?le=0:le=(w-d.minTranslate())/Ae,le!==I&&d.updateProgress(w),d.emit("setTranslate",d.translate,o)}function Ht(){return-this.snapGrid[0]}function Tr(){return-this.snapGrid[this.snapGrid.length-1]}var ar={getTranslate:Ct,setTranslate:nt,minTranslate:Ht,maxTranslate:Tr};function Mr(w,o){var d=this;d.$wrapperEl.transition(w),d.emit("setTransition",w,o)}function Er(w,o){w===void 0&&(w=!0);var d=this,g=d.activeIndex,y=d.params,C=d.previousIndex;y.autoHeight&&d.updateAutoHeight();var I=o;if(I||(g>C?I="next":g<C?I="prev":I="reset"),d.emit("transitionStart"),w&&g!==C){if(I==="reset"){d.emit("slideResetTransitionStart");return}d.emit("slideChangeTransitionStart"),I==="next"?d.emit("slideNextTransitionStart"):d.emit("slidePrevTransitionStart")}}function dr(w,o){w===void 0&&(w=!0);var d=this,g=d.activeIndex,y=d.previousIndex;d.animating=!1,d.setTransition(0);var C=o;if(C||(g>y?C="next":g<y?C="prev":C="reset"),d.emit("transitionEnd"),w&&g!==y){if(C==="reset"){d.emit("slideResetTransitionEnd");return}d.emit("slideChangeTransitionEnd"),C==="next"?d.emit("slideNextTransitionEnd"):d.emit("slidePrevTransitionEnd")}}var sr={setTransition:Mr,transitionStart:Er,transitionEnd:dr};function Jt(w,o,d,g){w===void 0&&(w=0),o===void 0&&(o=this.params.speed),d===void 0&&(d=!0);var y=this,C=w;C<0&&(C=0);var I=y.params,N=y.snapGrid,V=y.slidesGrid,ie=y.previousIndex,le=y.activeIndex,Ae=y.rtlTranslate;if(y.animating&&I.preventInteractionOnTransition)return!1;var u=Math.floor(C/I.slidesPerGroup);u>=N.length&&(u=N.length-1),(le||I.initialSlide||0)===(ie||0)&&d&&y.emit("beforeSlideChangeStart");var v=-N[u];if(y.updateProgress(v),I.normalizeSlideIndex)for(var x=0;x<V.length;x+=1)-Math.floor(v*100)>=Math.floor(V[x]*100)&&(C=x);if(y.initialized&&C!==le&&(!y.allowSlideNext&&v<y.translate&&v<y.minTranslate()||!y.allowSlidePrev&&v>y.translate&&v>y.maxTranslate()&&(le||0)!==C))return!1;var E;return C>le?E="next":C<le?E="prev":E="reset",Ae&&-v===y.translate||!Ae&&v===y.translate?(y.updateActiveIndex(C),I.autoHeight&&y.updateAutoHeight(),y.updateSlidesClasses(),I.effect!=="slide"&&y.setTranslate(v),E!=="reset"&&(y.transitionStart(d,E),y.transitionEnd(d,E)),!1):(o===0||!ye.transition?(y.setTransition(0),y.setTranslate(v),y.updateActiveIndex(C),y.updateSlidesClasses(),y.emit("beforeTransitionStart",o,g),y.transitionStart(d,E),y.transitionEnd(d,E)):(y.setTransition(o),y.setTranslate(v),y.updateActiveIndex(C),y.updateSlidesClasses(),y.emit("beforeTransitionStart",o,g),y.transitionStart(d,E),y.animating||(y.animating=!0,y.onSlideToWrapperTransitionEnd||(y.onSlideToWrapperTransitionEnd=function(F){!y||y.destroyed||F.target===this&&(y.$wrapperEl[0].removeEventListener("transitionend",y.onSlideToWrapperTransitionEnd),y.$wrapperEl[0].removeEventListener("webkitTransitionEnd",y.onSlideToWrapperTransitionEnd),y.onSlideToWrapperTransitionEnd=null,delete y.onSlideToWrapperTransitionEnd,y.transitionEnd(d,E))}),y.$wrapperEl[0].addEventListener("transitionend",y.onSlideToWrapperTransitionEnd),y.$wrapperEl[0].addEventListener("webkitTransitionEnd",y.onSlideToWrapperTransitionEnd))),!0)}function Zt(w,o,d,g){w===void 0&&(w=0),o===void 0&&(o=this.params.speed),d===void 0&&(d=!0);var y=this,C=w;return y.params.loop&&(C+=y.loopedSlides),y.slideTo(C,o,d,g)}function Ft(w,o,d){w===void 0&&(w=this.params.speed),o===void 0&&(o=!0);var g=this,y=g.params,C=g.animating;return y.loop?C?!1:(g.loopFix(),g._clientLeft=g.$wrapperEl[0].clientLeft,g.slideTo(g.activeIndex+y.slidesPerGroup,w,o,d)):g.slideTo(g.activeIndex+y.slidesPerGroup,w,o,d)}function Lr(w,o,d){w===void 0&&(w=this.params.speed),o===void 0&&(o=!0);var g=this,y=g.params,C=g.animating,I=g.snapGrid,N=g.slidesGrid,V=g.rtlTranslate;if(y.loop){if(C)return!1;g.loopFix(),g._clientLeft=g.$wrapperEl[0].clientLeft}var ie=V?g.translate:-g.translate;function le(E){return E<0?-Math.floor(Math.abs(E)):Math.floor(E)}var Ae=le(ie),u=I.map(function(E){return le(E)});N.map(function(E){return le(E)}),I[u.indexOf(Ae)];var v=I[u.indexOf(Ae)-1],x;return typeof v<"u"&&(x=N.indexOf(v),x<0&&(x=g.activeIndex-1)),g.slideTo(x,w,o,d)}function hr(w,o,d){w===void 0&&(w=this.params.speed),o===void 0&&(o=!0);var g=this;return g.slideTo(g.activeIndex,w,o,d)}function Sr(w,o,d){w===void 0&&(w=this.params.speed),o===void 0&&(o=!0);var g=this,y=g.activeIndex,C=Math.floor(y/g.params.slidesPerGroup);if(C<g.snapGrid.length-1){var I=g.rtlTranslate?g.translate:-g.translate,N=g.snapGrid[C],V=g.snapGrid[C+1];I-N>(V-N)/2&&(y=g.params.slidesPerGroup)}return g.slideTo(y,w,o,d)}function pr(){var w=this,o=w.params,d=w.$wrapperEl,g=o.slidesPerView==="auto"?w.slidesPerViewDynamic():o.slidesPerView,y=w.clickedIndex,C;if(o.loop){if(w.animating)return;C=parseInt(a(w.clickedSlide).attr("data-swiper-slide-index"),10),o.centeredSlides?y<w.loopedSlides-g/2||y>w.slides.length-w.loopedSlides+g/2?(w.loopFix(),y=d.children("."+o.slideClass+'[data-swiper-slide-index="'+C+'"]:not(.'+o.slideDuplicateClass+")").eq(0).index(),fe.nextTick(function(){w.slideTo(y)})):w.slideTo(y):y>w.slides.length-g?(w.loopFix(),y=d.children("."+o.slideClass+'[data-swiper-slide-index="'+C+'"]:not(.'+o.slideDuplicateClass+")").eq(0).index(),fe.nextTick(function(){w.slideTo(y)})):w.slideTo(y)}else w.slideTo(y)}var or={slideTo:Jt,slideToLoop:Zt,slideNext:Ft,slidePrev:Lr,slideReset:hr,slideToClosest:Sr,slideToClickedSlide:pr};function Yt(){var w=this,o=w.params,d=w.$wrapperEl;d.children("."+o.slideClass+"."+o.slideDuplicateClass).remove();var g=d.children("."+o.slideClass);if(o.loopFillGroupWithBlank){var y=o.slidesPerGroup-g.length%o.slidesPerGroup;if(y!==o.slidesPerGroup){for(var C=0;C<y;C+=1){var I=a(t.createElement("div")).addClass(o.slideClass+" "+o.slideBlankClass);d.append(I)}g=d.children("."+o.slideClass)}}o.slidesPerView==="auto"&&!o.loopedSlides&&(o.loopedSlides=g.length),w.loopedSlides=parseInt(o.loopedSlides||o.slidesPerView,10),w.loopedSlides+=o.loopAdditionalSlides,w.loopedSlides>g.length&&(w.loopedSlides=g.length);var N=[],V=[];g.each(function(Ae,u){var v=a(u);Ae<w.loopedSlides&&V.push(u),Ae<g.length&&Ae>=g.length-w.loopedSlides&&N.push(u),v.attr("data-swiper-slide-index",Ae)});for(var ie=0;ie<V.length;ie+=1)d.append(a(V[ie].cloneNode(!0)).addClass(o.slideDuplicateClass));for(var le=N.length-1;le>=0;le-=1)d.prepend(a(N[le].cloneNode(!0)).addClass(o.slideDuplicateClass))}function lr(){var w=this,o=w.params,d=w.activeIndex,g=w.slides,y=w.loopedSlides,C=w.allowSlidePrev,I=w.allowSlideNext,N=w.snapGrid,V=w.rtlTranslate,ie;w.allowSlidePrev=!0,w.allowSlideNext=!0;var le=-N[d],Ae=le-w.getTranslate();if(d<y){ie=g.length-y*3+d,ie+=y;var u=w.slideTo(ie,0,!1,!0);u&&Ae!==0&&w.setTranslate((V?-w.translate:w.translate)-Ae)}else if(o.slidesPerView==="auto"&&d>=y*2||d>=g.length-y){ie=-g.length+d+y,ie+=y;var v=w.slideTo(ie,0,!1,!0);v&&Ae!==0&&w.setTranslate((V?-w.translate:w.translate)-Ae)}w.allowSlidePrev=C,w.allowSlideNext=I}function wr(){var w=this,o=w.$wrapperEl,d=w.params,g=w.slides;o.children("."+d.slideClass+"."+d.slideDuplicateClass+",."+d.slideClass+"."+d.slideBlankClass).remove(),g.removeAttr("data-swiper-slide-index")}var U={loopCreate:Yt,loopFix:lr,loopDestroy:wr};function J(w){var o=this;if(!(ye.touch||!o.params.simulateTouch||o.params.watchOverflow&&o.isLocked)){var d=o.el;d.style.cursor="move",d.style.cursor=w?"-webkit-grabbing":"-webkit-grab",d.style.cursor=w?"-moz-grabbin":"-moz-grab",d.style.cursor=w?"grabbing":"grab"}}function ue(){var w=this;ye.touch||w.params.watchOverflow&&w.isLocked||(w.el.style.cursor="")}var Me={setGrabCursor:J,unsetGrabCursor:ue};function Ge(w){var o=this,d=o.$wrapperEl,g=o.params;if(g.loop&&o.loopDestroy(),typeof w=="object"&&"length"in w)for(var y=0;y<w.length;y+=1)w[y]&&d.append(w[y]);else d.append(w);g.loop&&o.loopCreate(),g.observer&&ye.observer||o.update()}function it(w){var o=this,d=o.params,g=o.$wrapperEl,y=o.activeIndex;d.loop&&o.loopDestroy();var C=y+1;if(typeof w=="object"&&"length"in w){for(var I=0;I<w.length;I+=1)w[I]&&g.prepend(w[I]);C=y+w.length}else g.prepend(w);d.loop&&o.loopCreate(),d.observer&&ye.observer||o.update(),o.slideTo(C,0,!1)}function bt(w,o){var d=this,g=d.$wrapperEl,y=d.params,C=d.activeIndex,I=C;y.loop&&(I-=d.loopedSlides,d.loopDestroy(),d.slides=g.children("."+y.slideClass));var N=d.slides.length;if(w<=0){d.prependSlide(o);return}if(w>=N){d.appendSlide(o);return}for(var V=I>w?I+1:I,ie=[],le=N-1;le>=w;le-=1){var Ae=d.slides.eq(le);Ae.remove(),ie.unshift(Ae)}if(typeof o=="object"&&"length"in o){for(var u=0;u<o.length;u+=1)o[u]&&g.append(o[u]);V=I>w?I+o.length:I}else g.append(o);for(var v=0;v<ie.length;v+=1)g.append(ie[v]);y.loop&&d.loopCreate(),y.observer&&ye.observer||d.update(),y.loop?d.slideTo(V+d.loopedSlides,0,!1):d.slideTo(V,0,!1)}function lt(w){var o=this,d=o.params,g=o.$wrapperEl,y=o.activeIndex,C=y;d.loop&&(C-=o.loopedSlides,o.loopDestroy(),o.slides=g.children("."+d.slideClass));var I=C,N;if(typeof w=="object"&&"length"in w){for(var V=0;V<w.length;V+=1)N=w[V],o.slides[N]&&o.slides.eq(N).remove(),N<I&&(I-=1);I=Math.max(I,0)}else N=w,o.slides[N]&&o.slides.eq(N).remove(),N<I&&(I-=1),I=Math.max(I,0);d.loop&&o.loopCreate(),d.observer&&ye.observer||o.update(),d.loop?o.slideTo(I+o.loopedSlides,0,!1):o.slideTo(I,0,!1)}function Ce(){for(var w=this,o=[],d=0;d<w.slides.length;d+=1)o.push(d);w.removeSlide(o)}var ot={appendSlide:Ge,prependSlide:it,addSlide:bt,removeSlide:lt,removeAllSlides:Ce},st=function(){var o=n.navigator.userAgent,d={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:n.cordova||n.phonegap,phonegap:n.cordova||n.phonegap},g=o.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),y=o.match(/(Android);?[\s\/]+([\d.]+)?/),C=o.match(/(iPad).*OS\s([\d_]+)/),I=o.match(/(iPod)(.*OS\s([\d_]+))?/),N=!C&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(g&&(d.os="windows",d.osVersion=g[2],d.windows=!0),y&&!g&&(d.os="android",d.osVersion=y[2],d.android=!0,d.androidChrome=o.toLowerCase().indexOf("chrome")>=0),(C||N||I)&&(d.os="ios",d.ios=!0),N&&!I&&(d.osVersion=N[2].replace(/_/g,"."),d.iphone=!0),C&&(d.osVersion=C[2].replace(/_/g,"."),d.ipad=!0),I&&(d.osVersion=I[3]?I[3].replace(/_/g,"."):null,d.iphone=!0),d.ios&&d.osVersion&&o.indexOf("Version/")>=0&&d.osVersion.split(".")[0]==="10"&&(d.osVersion=o.toLowerCase().split("version/")[1].split(" ")[0]),d.desktop=!(d.os||d.android||d.webView),d.webView=(N||C||I)&&o.match(/.*AppleWebKit(?!.*Safari)/i),d.os&&d.os==="ios"){var V=d.osVersion.split("."),ie=t.querySelector('meta[name="viewport"]');d.minimalUi=!d.webView&&(I||N)&&(V[0]*1===7?V[1]*1>=1:V[0]*1>7)&&ie&&ie.getAttribute("content").indexOf("minimal-ui")>=0}return d.pixelRatio=n.devicePixelRatio||1,d}();function It(w){var o=this,d=o.touchEventsData,g=o.params,y=o.touches;if(!(o.animating&&g.preventInteractionOnTransition)){var C=w;if(C.originalEvent&&(C=C.originalEvent),d.isTouchEvent=C.type==="touchstart",!(!d.isTouchEvent&&"which"in C&&C.which===3)&&!(!d.isTouchEvent&&"button"in C&&C.button>0)&&!(d.isTouched&&d.isMoved)){if(g.noSwiping&&a(C.target).closest(g.noSwipingSelector?g.noSwipingSelector:"."+g.noSwipingClass)[0]){o.allowClick=!0;return}if(!(g.swipeHandler&&!a(C).closest(g.swipeHandler)[0])){y.currentX=C.type==="touchstart"?C.targetTouches[0].pageX:C.pageX,y.currentY=C.type==="touchstart"?C.targetTouches[0].pageY:C.pageY;var I=y.currentX,N=y.currentY,V=g.edgeSwipeDetection||g.iOSEdgeSwipeDetection,ie=g.edgeSwipeThreshold||g.iOSEdgeSwipeThreshold;if(!(V&&(I<=ie||I>=n.screen.width-ie))){if(fe.extend(d,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),y.startX=I,y.startY=N,d.touchStartTime=fe.now(),o.allowClick=!0,o.updateSize(),o.swipeDirection=void 0,g.threshold>0&&(d.allowThresholdMove=!1),C.type!=="touchstart"){var le=!0;a(C.target).is(d.formElements)&&(le=!1),t.activeElement&&a(t.activeElement).is(d.formElements)&&t.activeElement!==C.target&&t.activeElement.blur();var Ae=le&&o.allowTouchMove&&g.touchStartPreventDefault;(g.touchStartForcePreventDefault||Ae)&&C.preventDefault()}o.emit("touchStart",C)}}}}}function P(w){var o=this,d=o.touchEventsData,g=o.params,y=o.touches,C=o.rtlTranslate,I=w;if(I.originalEvent&&(I=I.originalEvent),!d.isTouched){d.startMoving&&d.isScrolling&&o.emit("touchMoveOpposite",I);return}if(!(d.isTouchEvent&&I.type==="mousemove")){var N=I.type==="touchmove"?I.targetTouches[0].pageX:I.pageX,V=I.type==="touchmove"?I.targetTouches[0].pageY:I.pageY;if(I.preventedByNestedSwiper){y.startX=N,y.startY=V;return}if(!o.allowTouchMove){o.allowClick=!1,d.isTouched&&(fe.extend(y,{startX:N,startY:V,currentX:N,currentY:V}),d.touchStartTime=fe.now());return}if(d.isTouchEvent&&g.touchReleaseOnEdges&&!g.loop){if(o.isVertical()){if(V<y.startY&&o.translate<=o.maxTranslate()||V>y.startY&&o.translate>=o.minTranslate()){d.isTouched=!1,d.isMoved=!1;return}}else if(N<y.startX&&o.translate<=o.maxTranslate()||N>y.startX&&o.translate>=o.minTranslate())return}if(d.isTouchEvent&&t.activeElement&&I.target===t.activeElement&&a(I.target).is(d.formElements)){d.isMoved=!0,o.allowClick=!1;return}if(d.allowTouchCallbacks&&o.emit("touchMove",I),!(I.targetTouches&&I.targetTouches.length>1)){y.currentX=N,y.currentY=V;var ie=y.currentX-y.startX,le=y.currentY-y.startY;if(!(o.params.threshold&&Math.sqrt(Math.pow(ie,2)+Math.pow(le,2))<o.params.threshold)){if(typeof d.isScrolling>"u"){var Ae;o.isHorizontal()&&y.currentY===y.startY||o.isVertical()&&y.currentX===y.startX?d.isScrolling=!1:ie*ie+le*le>=25&&(Ae=Math.atan2(Math.abs(le),Math.abs(ie))*180/Math.PI,d.isScrolling=o.isHorizontal()?Ae>g.touchAngle:90-Ae>g.touchAngle)}if(d.isScrolling&&o.emit("touchMoveOpposite",I),typeof d.startMoving>"u"&&(y.currentX!==y.startX||y.currentY!==y.startY)&&(d.startMoving=!0),d.isScrolling){d.isTouched=!1;return}if(d.startMoving){o.allowClick=!1,I.preventDefault(),g.touchMoveStopPropagation&&!g.nested&&I.stopPropagation(),d.isMoved||(g.loop&&o.loopFix(),d.startTranslate=o.getTranslate(),o.setTransition(0),o.animating&&o.$wrapperEl.trigger("webkitTransitionEnd transitionend"),d.allowMomentumBounce=!1,g.grabCursor&&(o.allowSlideNext===!0||o.allowSlidePrev===!0)&&o.setGrabCursor(!0),o.emit("sliderFirstMove",I)),o.emit("sliderMove",I),d.isMoved=!0;var u=o.isHorizontal()?ie:le;y.diff=u,u*=g.touchRatio,C&&(u=-u),o.swipeDirection=u>0?"prev":"next",d.currentTranslate=u+d.startTranslate;var v=!0,x=g.resistanceRatio;if(g.touchReleaseOnEdges&&(x=0),u>0&&d.currentTranslate>o.minTranslate()?(v=!1,g.resistance&&(d.currentTranslate=o.minTranslate()-1+Math.pow(-o.minTranslate()+d.startTranslate+u,x))):u<0&&d.currentTranslate<o.maxTranslate()&&(v=!1,g.resistance&&(d.currentTranslate=o.maxTranslate()+1-Math.pow(o.maxTranslate()-d.startTranslate-u,x))),v&&(I.preventedByNestedSwiper=!0),!o.allowSlideNext&&o.swipeDirection==="next"&&d.currentTranslate<d.startTranslate&&(d.currentTranslate=d.startTranslate),!o.allowSlidePrev&&o.swipeDirection==="prev"&&d.currentTranslate>d.startTranslate&&(d.currentTranslate=d.startTranslate),g.threshold>0)if(Math.abs(u)>g.threshold||d.allowThresholdMove){if(!d.allowThresholdMove){d.allowThresholdMove=!0,y.startX=y.currentX,y.startY=y.currentY,d.currentTranslate=d.startTranslate,y.diff=o.isHorizontal()?y.currentX-y.startX:y.currentY-y.startY;return}}else{d.currentTranslate=d.startTranslate;return}g.followFinger&&((g.freeMode||g.watchSlidesProgress||g.watchSlidesVisibility)&&(o.updateActiveIndex(),o.updateSlidesClasses()),g.freeMode&&(d.velocities.length===0&&d.velocities.push({position:y[o.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:y[o.isHorizontal()?"currentX":"currentY"],time:fe.now()})),o.updateProgress(d.currentTranslate),o.setTranslate(d.currentTranslate))}}}}}function X(w){var o=this,d=o.touchEventsData,g=o.params,y=o.touches,C=o.rtlTranslate,I=o.$wrapperEl,N=o.slidesGrid,V=o.snapGrid,ie=w;if(ie.originalEvent&&(ie=ie.originalEvent),d.allowTouchCallbacks&&o.emit("touchEnd",ie),d.allowTouchCallbacks=!1,!d.isTouched){d.isMoved&&g.grabCursor&&o.setGrabCursor(!1),d.isMoved=!1,d.startMoving=!1;return}g.grabCursor&&d.isMoved&&d.isTouched&&(o.allowSlideNext===!0||o.allowSlidePrev===!0)&&o.setGrabCursor(!1);var le=fe.now(),Ae=le-d.touchStartTime;if(o.allowClick&&(o.updateClickedSlide(ie),o.emit("tap",ie),Ae<300&&le-d.lastClickTime>300&&(d.clickTimeout&&clearTimeout(d.clickTimeout),d.clickTimeout=fe.nextTick(function(){!o||o.destroyed||o.emit("click",ie)},300)),Ae<300&&le-d.lastClickTime<300&&(d.clickTimeout&&clearTimeout(d.clickTimeout),o.emit("doubleTap",ie))),d.lastClickTime=fe.now(),fe.nextTick(function(){o.destroyed||(o.allowClick=!0)}),!d.isTouched||!d.isMoved||!o.swipeDirection||y.diff===0||d.currentTranslate===d.startTranslate){d.isTouched=!1,d.isMoved=!1,d.startMoving=!1;return}d.isTouched=!1,d.isMoved=!1,d.startMoving=!1;var u;if(g.followFinger?u=C?o.translate:-o.translate:u=-d.currentTranslate,g.freeMode){if(u<-o.minTranslate()){o.slideTo(o.activeIndex);return}if(u>-o.maxTranslate()){o.slides.length<V.length?o.slideTo(V.length-1):o.slideTo(o.slides.length-1);return}if(g.freeModeMomentum){if(d.velocities.length>1){var v=d.velocities.pop(),x=d.velocities.pop(),E=v.position-x.position,D=v.time-x.time;o.velocity=E/D,o.velocity/=2,Math.abs(o.velocity)<g.freeModeMinimumVelocity&&(o.velocity=0),(D>150||fe.now()-v.time>300)&&(o.velocity=0)}else o.velocity=0;o.velocity*=g.freeModeMomentumVelocityRatio,d.velocities.length=0;var F=1e3*g.freeModeMomentumRatio,O=o.velocity*F,Y=o.translate+O;C&&(Y=-Y);var K=!1,ae,he=Math.abs(o.velocity)*20*g.freeModeMomentumBounceRatio,ke;if(Y<o.maxTranslate())g.freeModeMomentumBounce?(Y+o.maxTranslate()<-he&&(Y=o.maxTranslate()-he),ae=o.maxTranslate(),K=!0,d.allowMomentumBounce=!0):Y=o.maxTranslate(),g.loop&&g.centeredSlides&&(ke=!0);else if(Y>o.minTranslate())g.freeModeMomentumBounce?(Y-o.minTranslate()>he&&(Y=o.minTranslate()+he),ae=o.minTranslate(),K=!0,d.allowMomentumBounce=!0):Y=o.minTranslate(),g.loop&&g.centeredSlides&&(ke=!0);else if(g.freeModeSticky){for(var me,Re=0;Re<V.length;Re+=1)if(V[Re]>-Y){me=Re;break}Math.abs(V[me]-Y)<Math.abs(V[me-1]-Y)||o.swipeDirection==="next"?Y=V[me]:Y=V[me-1],Y=-Y}if(ke&&o.once("transitionEnd",function(){o.loopFix()}),o.velocity!==0)C?F=Math.abs((-Y-o.translate)/o.velocity):F=Math.abs((Y-o.translate)/o.velocity);else if(g.freeModeSticky){o.slideToClosest();return}g.freeModeMomentumBounce&&K?(o.updateProgress(ae),o.setTransition(F),o.setTranslate(Y),o.transitionStart(!0,o.swipeDirection),o.animating=!0,I.transitionEnd(function(){!o||o.destroyed||!d.allowMomentumBounce||(o.emit("momentumBounce"),o.setTransition(g.speed),o.setTranslate(ae),I.transitionEnd(function(){!o||o.destroyed||o.transitionEnd()}))})):o.velocity?(o.updateProgress(Y),o.setTransition(F),o.setTranslate(Y),o.transitionStart(!0,o.swipeDirection),o.animating||(o.animating=!0,I.transitionEnd(function(){!o||o.destroyed||o.transitionEnd()}))):o.updateProgress(Y),o.updateActiveIndex(),o.updateSlidesClasses()}else if(g.freeModeSticky){o.slideToClosest();return}(!g.freeModeMomentum||Ae>=g.longSwipesMs)&&(o.updateProgress(),o.updateActiveIndex(),o.updateSlidesClasses());return}for(var Je=0,mt=o.slidesSizesGrid[0],ft=0;ft<N.length;ft+=g.slidesPerGroup)typeof N[ft+g.slidesPerGroup]<"u"?u>=N[ft]&&u<N[ft+g.slidesPerGroup]&&(Je=ft,mt=N[ft+g.slidesPerGroup]-N[ft]):u>=N[ft]&&(Je=ft,mt=N[N.length-1]-N[N.length-2]);var kt=(u-N[Je])/mt;if(Ae>g.longSwipesMs){if(!g.longSwipes){o.slideTo(o.activeIndex);return}o.swipeDirection==="next"&&(kt>=g.longSwipesRatio?o.slideTo(Je+g.slidesPerGroup):o.slideTo(Je)),o.swipeDirection==="prev"&&(kt>1-g.longSwipesRatio?o.slideTo(Je+g.slidesPerGroup):o.slideTo(Je))}else{if(!g.shortSwipes){o.slideTo(o.activeIndex);return}o.swipeDirection==="next"&&o.slideTo(Je+g.slidesPerGroup),o.swipeDirection==="prev"&&o.slideTo(Je)}}function z(){var w=this,o=w.params,d=w.el;if(!(d&&d.offsetWidth===0)){o.breakpoints&&w.setBreakpoint();var g=w.allowSlideNext,y=w.allowSlidePrev,C=w.snapGrid;if(w.allowSlideNext=!0,w.allowSlidePrev=!0,w.updateSize(),w.updateSlides(),o.freeMode){var I=Math.min(Math.max(w.translate,w.maxTranslate()),w.minTranslate());w.setTranslate(I),w.updateActiveIndex(),w.updateSlidesClasses(),o.autoHeight&&w.updateAutoHeight()}else w.updateSlidesClasses(),(o.slidesPerView==="auto"||o.slidesPerView>1)&&w.isEnd&&!w.params.centeredSlides?w.slideTo(w.slides.length-1,0,!1,!0):w.slideTo(w.activeIndex,0,!1,!0);w.allowSlidePrev=y,w.allowSlideNext=g,w.params.watchOverflow&&C!==w.snapGrid&&w.checkOverflow()}}function B(w){var o=this;o.allowClick||(o.params.preventClicks&&w.preventDefault(),o.params.preventClicksPropagation&&o.animating&&(w.stopPropagation(),w.stopImmediatePropagation()))}function G(){var w=this,o=w.params,d=w.touchEvents,g=w.el,y=w.wrapperEl;w.onTouchStart=It.bind(w),w.onTouchMove=P.bind(w),w.onTouchEnd=X.bind(w),w.onClick=B.bind(w);var C=o.touchEventsTarget==="container"?g:y,I=!!o.nested;{if(!ye.touch&&(ye.pointerEvents||ye.prefixedPointerEvents))C.addEventListener(d.start,w.onTouchStart,!1),t.addEventListener(d.move,w.onTouchMove,I),t.addEventListener(d.end,w.onTouchEnd,!1);else{if(ye.touch){var N=d.start==="touchstart"&&ye.passiveListener&&o.passiveListeners?{passive:!0,capture:!1}:!1;C.addEventListener(d.start,w.onTouchStart,N),C.addEventListener(d.move,w.onTouchMove,ye.passiveListener?{passive:!1,capture:I}:I),C.addEventListener(d.end,w.onTouchEnd,N)}(o.simulateTouch&&!st.ios&&!st.android||o.simulateTouch&&!ye.touch&&st.ios)&&(C.addEventListener("mousedown",w.onTouchStart,!1),t.addEventListener("mousemove",w.onTouchMove,I),t.addEventListener("mouseup",w.onTouchEnd,!1))}(o.preventClicks||o.preventClicksPropagation)&&C.addEventListener("click",w.onClick,!0)}w.on(st.ios||st.android?"resize orientationchange observerUpdate":"resize observerUpdate",z,!0)}function Q(){var w=this,o=w.params,d=w.touchEvents,g=w.el,y=w.wrapperEl,C=o.touchEventsTarget==="container"?g:y,I=!!o.nested;{if(!ye.touch&&(ye.pointerEvents||ye.prefixedPointerEvents))C.removeEventListener(d.start,w.onTouchStart,!1),t.removeEventListener(d.move,w.onTouchMove,I),t.removeEventListener(d.end,w.onTouchEnd,!1);else{if(ye.touch){var N=d.start==="onTouchStart"&&ye.passiveListener&&o.passiveListeners?{passive:!0,capture:!1}:!1;C.removeEventListener(d.start,w.onTouchStart,N),C.removeEventListener(d.move,w.onTouchMove,I),C.removeEventListener(d.end,w.onTouchEnd,N)}(o.simulateTouch&&!st.ios&&!st.android||o.simulateTouch&&!ye.touch&&st.ios)&&(C.removeEventListener("mousedown",w.onTouchStart,!1),t.removeEventListener("mousemove",w.onTouchMove,I),t.removeEventListener("mouseup",w.onTouchEnd,!1))}(o.preventClicks||o.preventClicksPropagation)&&C.removeEventListener("click",w.onClick,!0)}w.off(st.ios||st.android?"resize orientationchange observerUpdate":"resize observerUpdate",z)}var pe={attachEvents:G,detachEvents:Q};function Fe(){var w=this,o=w.activeIndex,d=w.initialized,g=w.loopedSlides;g===void 0&&(g=0);var y=w.params,C=y.breakpoints;if(!(!C||C&&Object.keys(C).length===0)){var I=w.getBreakpoint(C);if(I&&w.currentBreakpoint!==I){var N=I in C?C[I]:void 0;N&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(Ae){var u=N[Ae];typeof u>"u"||(Ae==="slidesPerView"&&(u==="AUTO"||u==="auto")?N[Ae]="auto":Ae==="slidesPerView"?N[Ae]=parseFloat(u):N[Ae]=parseInt(u,10))});var V=N||w.originalParams,ie=V.direction&&V.direction!==y.direction,le=y.loop&&(V.slidesPerView!==y.slidesPerView||ie);ie&&d&&w.changeDirection(),fe.extend(w.params,V),fe.extend(w,{allowTouchMove:w.params.allowTouchMove,allowSlideNext:w.params.allowSlideNext,allowSlidePrev:w.params.allowSlidePrev}),w.currentBreakpoint=I,le&&d&&(w.loopDestroy(),w.loopCreate(),w.updateSlides(),w.slideTo(o-g+w.loopedSlides,0,!1)),w.emit("breakpoint",V)}}}function ve(w){var o=this;if(w){var d=!1,g=[];Object.keys(w).forEach(function(I){g.push(I)}),g.sort(function(I,N){return parseInt(I,10)-parseInt(N,10)});for(var y=0;y<g.length;y+=1){var C=g[y];o.params.breakpointsInverse?C<=n.innerWidth&&(d=C):C>=n.innerWidth&&!d&&(d=C)}return d||"max"}}var ge={setBreakpoint:Fe,getBreakpoint:ve};function _e(){var w=this,o=w.classNames,d=w.params,g=w.rtl,y=w.$el,C=[];C.push("initialized"),C.push(d.direction),d.freeMode&&C.push("free-mode"),ye.flexbox||C.push("no-flexbox"),d.autoHeight&&C.push("autoheight"),g&&C.push("rtl"),d.slidesPerColumn>1&&C.push("multirow"),st.android&&C.push("android"),st.ios&&C.push("ios"),(et.isIE||et.isEdge)&&(ye.pointerEvents||ye.prefixedPointerEvents)&&C.push("wp8-"+d.direction),C.forEach(function(I){o.push(d.containerModifierClass+I)}),y.addClass(o.join(" "))}function We(){var w=this,o=w.$el,d=w.classNames;o.removeClass(d.join(" "))}var Ye={addClasses:_e,removeClasses:We};function Ne(w,o,d,g,y,C){var I;function N(){C&&C()}(!w.complete||!y)&&o?(I=new n.Image,I.onload=N,I.onerror=N,g&&(I.sizes=g),d&&(I.srcset=d),o&&(I.src=o)):N()}function Oe(){var w=this;w.imagesToLoad=w.$el.find("img");function o(){typeof w>"u"||w===null||!w||w.destroyed||(w.imagesLoaded!==void 0&&(w.imagesLoaded+=1),w.imagesLoaded===w.imagesToLoad.length&&(w.params.updateOnImagesReady&&w.update(),w.emit("imagesReady")))}for(var d=0;d<w.imagesToLoad.length;d+=1){var g=w.imagesToLoad[d];w.loadImage(g,g.currentSrc||g.getAttribute("src"),g.srcset||g.getAttribute("srcset"),g.sizes||g.getAttribute("sizes"),!0,o)}}var ze={loadImage:Ne,preloadImages:Oe};function at(){var w=this,o=w.isLocked;w.isLocked=w.snapGrid.length===1,w.allowSlideNext=!w.isLocked,w.allowSlidePrev=!w.isLocked,o!==w.isLocked&&w.emit(w.isLocked?"lock":"unlock"),o&&o!==w.isLocked&&(w.isEnd=!1,w.navigation.update())}var zt={checkOverflow:at},Nt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},jt={update:wt,translate:ar,transition:sr,slide:or,loop:U,grabCursor:Me,manipulation:ot,events:pe,breakpoints:ge,checkOverflow:zt,classes:Ye,images:ze},tr={},qt=function(w){function o(){for(var g,y=[],C=arguments.length;C--;)y[C]=arguments[C];var I,N;y.length===1&&y[0].constructor&&y[0].constructor===Object?N=y[0]:(g=y,I=g[0],N=g[1]),N||(N={}),N=fe.extend({},N),I&&!N.el&&(N.el=I),w.call(this,N),Object.keys(jt).forEach(function(v){Object.keys(jt[v]).forEach(function(x){o.prototype[x]||(o.prototype[x]=jt[v][x])})});var V=this;typeof V.modules>"u"&&(V.modules={}),Object.keys(V.modules).forEach(function(v){var x=V.modules[v];if(x.params){var E=Object.keys(x.params)[0],D=x.params[E];if(typeof D!="object"||D===null||!(E in N&&"enabled"in D))return;N[E]===!0&&(N[E]={enabled:!0}),typeof N[E]=="object"&&!("enabled"in N[E])&&(N[E].enabled=!0),N[E]||(N[E]={enabled:!1})}});var ie=fe.extend({},Nt);V.useModulesParams(ie),V.params=fe.extend({},ie,tr,N),V.originalParams=fe.extend({},V.params),V.passedParams=fe.extend({},N),V.$=a;var le=a(V.params.el);if(I=le[0],!!I){if(le.length>1){var Ae=[];return le.each(function(v,x){var E=fe.extend({},N,{el:x});Ae.push(new o(E))}),Ae}I.swiper=V,le.data("swiper",V);var u=le.children("."+V.params.wrapperClass);return fe.extend(V,{$el:le,el:I,$wrapperEl:u,wrapperEl:u[0],classNames:[],slides:a(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return V.params.direction==="horizontal"},isVertical:function(){return V.params.direction==="vertical"},rtl:I.dir.toLowerCase()==="rtl"||le.css("direction")==="rtl",rtlTranslate:V.params.direction==="horizontal"&&(I.dir.toLowerCase()==="rtl"||le.css("direction")==="rtl"),wrongRTL:u.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:V.params.allowSlideNext,allowSlidePrev:V.params.allowSlidePrev,touchEvents:function(){var x=["touchstart","touchmove","touchend"],E=["mousedown","mousemove","mouseup"];return ye.pointerEvents?E=["pointerdown","pointermove","pointerup"]:ye.prefixedPointerEvents&&(E=["MSPointerDown","MSPointerMove","MSPointerUp"]),V.touchEventsTouch={start:x[0],move:x[1],end:x[2]},V.touchEventsDesktop={start:E[0],move:E[1],end:E[2]},ye.touch||!V.params.simulateTouch?V.touchEventsTouch:V.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:fe.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:V.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),V.useModules(),V.params.init&&V.init(),V}}w&&(o.__proto__=w),o.prototype=Object.create(w&&w.prototype),o.prototype.constructor=o;var d={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return o.prototype.slidesPerViewDynamic=function(){var y=this,C=y.params,I=y.slides,N=y.slidesGrid,V=y.size,ie=y.activeIndex,le=1;if(C.centeredSlides){for(var Ae=I[ie].swiperSlideSize,u,v=ie+1;v<I.length;v+=1)I[v]&&!u&&(Ae+=I[v].swiperSlideSize,le+=1,Ae>V&&(u=!0));for(var x=ie-1;x>=0;x-=1)I[x]&&!u&&(Ae+=I[x].swiperSlideSize,le+=1,Ae>V&&(u=!0))}else for(var E=ie+1;E<I.length;E+=1)N[E]-N[ie]<V&&(le+=1);return le},o.prototype.update=function(){var y=this;if(!y||y.destroyed)return;var C=y.snapGrid,I=y.params;I.breakpoints&&y.setBreakpoint(),y.updateSize(),y.updateSlides(),y.updateProgress(),y.updateSlidesClasses();function N(){var ie=y.rtlTranslate?y.translate*-1:y.translate,le=Math.min(Math.max(ie,y.maxTranslate()),y.minTranslate());y.setTranslate(le),y.updateActiveIndex(),y.updateSlidesClasses()}var V;y.params.freeMode?(N(),y.params.autoHeight&&y.updateAutoHeight()):((y.params.slidesPerView==="auto"||y.params.slidesPerView>1)&&y.isEnd&&!y.params.centeredSlides?V=y.slideTo(y.slides.length-1,0,!1,!0):V=y.slideTo(y.activeIndex,0,!1,!0),V||N()),I.watchOverflow&&C!==y.snapGrid&&y.checkOverflow(),y.emit("update")},o.prototype.changeDirection=function(y,C){C===void 0&&(C=!0);var I=this,N=I.params.direction;return y||(y=N==="horizontal"?"vertical":"horizontal"),y===N||y!=="horizontal"&&y!=="vertical"||(N==="vertical"&&(I.$el.removeClass(I.params.containerModifierClass+"vertical wp8-vertical").addClass(""+I.params.containerModifierClass+y),(et.isIE||et.isEdge)&&(ye.pointerEvents||ye.prefixedPointerEvents)&&I.$el.addClass(I.params.containerModifierClass+"wp8-"+y)),N==="horizontal"&&(I.$el.removeClass(I.params.containerModifierClass+"horizontal wp8-horizontal").addClass(""+I.params.containerModifierClass+y),(et.isIE||et.isEdge)&&(ye.pointerEvents||ye.prefixedPointerEvents)&&I.$el.addClass(I.params.containerModifierClass+"wp8-"+y)),I.params.direction=y,I.slides.each(function(V,ie){y==="vertical"?ie.style.width="":ie.style.height=""}),I.emit("changeDirection"),C&&I.update()),I},o.prototype.init=function(){var y=this;y.initialized||(y.emit("beforeInit"),y.params.breakpoints&&y.setBreakpoint(),y.addClasses(),y.params.loop&&y.loopCreate(),y.updateSize(),y.updateSlides(),y.params.watchOverflow&&y.checkOverflow(),y.params.grabCursor&&y.setGrabCursor(
13),y.params.preloadImages&&y.preloadImages(),y.params.loop?y.slideTo(y.params.initialSlide+y.loopedSlides,0,y.params.runCallbacksOnInit):y.slideTo(y.params.initialSlide,0,y.params.runCallbacksOnInit),y.attachEvents(),y.initialized=!0,y.emit("init"))},o.prototype.destroy=function(y,C){y===void 0&&(y=!0),C===void 0&&(C=!0);var I=this,N=I.params,V=I.$el,ie=I.$wrapperEl,le=I.slides;return typeof I.params>"u"||I.destroyed||(I.emit("beforeDestroy"),I.initialized=!1,I.detachEvents(),N.loop&&I.loopDestroy(),C&&(I.removeClasses(),V.removeAttr("style"),ie.removeAttr("style"),le&&le.length&&le.removeClass([N.slideVisibleClass,N.slideActiveClass,N.slideNextClass,N.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),I.emit("destroy"),Object.keys(I.eventsListeners).forEach(function(Ae){I.off(Ae)}),y!==!1&&(I.$el[0].swiper=null,I.$el.data("swiper",null),fe.deleteProps(I)),I.destroyed=!0),null},o.extendDefaults=function(y){fe.extend(tr,y)},d.extendedDefaults.get=function(){return tr},d.defaults.get=function(){return Nt},d.Class.get=function(){return w},d.$.get=function(){return a},Object.defineProperties(o,d),o}(Be),cr={name:"device",proto:{device:st},static:{device:st}},er={name:"support",proto:{support:ye},static:{support:ye}},Se={name:"browser",proto:{browser:et},static:{browser:et}},Ue={name:"resize",create:function(){var o=this;fe.extend(o,{resize:{resizeHandler:function(){!o||o.destroyed||!o.initialized||(o.emit("beforeResize"),o.emit("resize"))},orientationChangeHandler:function(){!o||o.destroyed||!o.initialized||o.emit("orientationchange")}}})},on:{init:function(){var o=this;n.addEventListener("resize",o.resize.resizeHandler),n.addEventListener("orientationchange",o.resize.orientationChangeHandler)},destroy:function(){var o=this;n.removeEventListener("resize",o.resize.resizeHandler),n.removeEventListener("orientationchange",o.resize.orientationChangeHandler)}}},Qe={func:n.MutationObserver||n.WebkitMutationObserver,attach:function(o,d){d===void 0&&(d={});var g=this,y=Qe.func,C=new y(function(I){if(I.length===1){g.emit("observerUpdate",I[0]);return}var N=function(){g.emit("observerUpdate",I[0])};n.requestAnimationFrame?n.requestAnimationFrame(N):n.setTimeout(N,0)});C.observe(o,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),g.observer.observers.push(C)},init:function(){var o=this;if(!(!ye.observer||!o.params.observer)){if(o.params.observeParents)for(var d=o.$el.parents(),g=0;g<d.length;g+=1)o.observer.attach(d[g]);o.observer.attach(o.$el[0],{childList:o.params.observeSlideChildren}),o.observer.attach(o.$wrapperEl[0],{attributes:!1})}},destroy:function(){var o=this;o.observer.observers.forEach(function(d){d.disconnect()}),o.observer.observers=[]}},pt={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var o=this;fe.extend(o,{observer:{init:Qe.init.bind(o),attach:Qe.attach.bind(o),destroy:Qe.destroy.bind(o),observers:[]}})},on:{init:function(){var o=this;o.observer.init()},destroy:function(){var o=this;o.observer.destroy()}}},Kt={update:function(o){var d=this,g=d.params,y=g.slidesPerView,C=g.slidesPerGroup,I=g.centeredSlides,N=d.params.virtual,V=N.addSlidesBefore,ie=N.addSlidesAfter,le=d.virtual,Ae=le.from,u=le.to,v=le.slides,x=le.slidesGrid,E=le.renderSlide,D=le.offset;d.updateActiveIndex();var F=d.activeIndex||0,O;d.rtlTranslate?O="right":O=d.isHorizontal()?"left":"top";var Y,K;I?(Y=Math.floor(y/2)+C+V,K=Math.floor(y/2)+C+ie):(Y=y+(C-1)+V,K=C+ie);var ae=Math.max((F||0)-K,0),he=Math.min((F||0)+Y,v.length-1),ke=(d.slidesGrid[ae]||0)-(d.slidesGrid[0]||0);fe.extend(d.virtual,{from:ae,to:he,offset:ke,slidesGrid:d.slidesGrid});function me(){d.updateSlides(),d.updateProgress(),d.updateSlidesClasses(),d.lazy&&d.params.lazy.enabled&&d.lazy.load()}if(Ae===ae&&u===he&&!o){d.slidesGrid!==x&&ke!==D&&d.slides.css(O,ke+"px"),d.updateProgress();return}if(d.params.virtual.renderExternal){d.params.virtual.renderExternal.call(d,{offset:ke,from:ae,to:he,slides:function(){for(var Dt=[],Wt=ae;Wt<=he;Wt+=1)Dt.push(v[Wt]);return Dt}()}),me();return}var Re=[],Je=[];
vendor: 2,687 bytes, line 13
13if(o)d.$wrapperEl.find("."+d.params.slideClass).remove();else for(var mt=Ae;mt<=u;mt+=1)(mt<ae||mt>he)&&d.$wrapperEl.find("."+d.params.slideClass+'[data-swiper-slide-index="'+mt+'"]').remove();for(var ft=0;ft<v.length;ft+=1)ft>=ae&&ft<=he&&(typeof u>"u"||o?Je.push(ft):(ft>u&&Je.push(ft),ft<Ae&&Re.push(ft)));Je.forEach(function(kt){d.$wrapperEl.append(E(v[kt],kt))}),Re.sort(function(kt,Dt){return Dt-kt}).forEach(function(kt){d.$wrapperEl.prepend(E(v[kt],kt))}),d.$wrapperEl.children(".swiper-slide").css(O,ke+"px"),me()},renderSlide:function(o,d){var g=this,y=g.params.virtual;if(y.cache&&g.virtual.cache[d])return g.virtual.cache[d];var C=y.renderSlide?a(y.renderSlide.call(g,o,d)):a('<div class="'+g.params.slideClass+'" data-swiper-slide-index="'+d+'">'+o+"</div>");return C.attr("data-swiper-slide-index")||C.attr("data-swiper-slide-index",d),y.cache&&(g.virtual.cache[d]=C),C},appendSlide:function(o){var d=this;if(typeof o=="object"&&"length"in o)for(var g=0;g<o.length;g+=1)o[g]&&d.virtual.slides.push(o[g]);else d.virtual.slides.push(o);d.virtual.update(!0)},prependSlide:function(o){var d=this,g=d.activeIndex,y=g+1,C=1;if(Array.isArray(o)){for(var I=0;I<o.length;I+=1)o[I]&&d.virtual.slides.unshift(o[I]);y=g+o.length,C=o.length}else d.virtual.slides.unshift(o);if(d.params.virtual.cache){var N=d.virtual.cache,V={};Object.keys(N).forEach(function(ie){V[parseInt(ie,10)+C]=N[ie]}),d.virtual.cache=V}d.virtual.update(!0),d.slideTo(y,0)},removeSlide:function(o){var d=this;if(!(typeof o>"u"||o===null)){var g=d.activeIndex;if(Array.isArray(o))for(var y=o.length-1;y>=0;y-=1)d.virtual.slides.splice(o[y],1),d.params.virtual.cache&&delete d.virtual.cache[o[y]],o[y]<g&&(g-=1),g=Math.max(g,0);else d.virtual.slides.splice(o,1),d.params.virtual.cache&&delete d.virtual.cache[o],o<g&&(g-=1),g=Math.max(g,0);d.virtual.update(!0),d.slideTo(g,0)}},removeAllSlides:function(){var o=this;o.virtual.slides=[],o.params.virtual.cache&&(o.virtual.cache={}),o.virtual.update(!0),o.slideTo(0,0)}},Qt={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var o=this;fe.extend(o,{virtual:{update:Kt.update.bind(o),appendSlide:Kt.appendSlide.bind(o),prependSlide:Kt.prependSlide.bind(o),removeSlide:Kt.removeSlide.bind(o),removeAllSlides:Kt.removeAllSlides.bind(o),renderSlide:Kt.renderSlide.bind(o),slides:o.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var o=this;if(o.params.virtual.enabled){o.classNames.push(o.params.containerModifierClass+"virtual");var d={watchSlidesProgress:!0};fe.extend(o.params,d),fe.extend(o.originalParams,d),o.params.initialSlide||o.virtual.update(
13)}},setTranslate:function(){var o=this;o.params.virtual.enabled&&o.virtual.update()}}},Rr={handle:function(o){var d=this,g=d.rtlTranslate,y=o;y.originalEvent&&(y=y.originalEvent);var C=y.keyCode||y.charCode;if(!d.allowSlideNext&&(d.isHorizontal()&&C===39||d.isVertical()&&C===40)||!d.allowSlidePrev&&(d.isHorizontal()&&C===37||d.isVertical()&&C===38))return!1;if(!(y.shiftKey||y.altKey||y.ctrlKey||y.metaKey)&&!(t.activeElement&&t.activeElement.nodeName&&(t.activeElement.nodeName.toLowerCase()==="input"||t.activeElement.nodeName.toLowerCase()==="textarea"))){if(d.params.keyboard.onlyInViewport&&(C===37||C===39||C===38||C===40)){var I=!1;if(d.$el.parents("."+d.params.slideClass).length>0&&d.$el.parents("."+d.params.slideActiveClass).length===0)return;var N=n.innerWidth,V=n.innerHeight,ie=d.$el.offset();g&&(ie.left-=d.$el[0].scrollLeft);for(var le=[[ie.left,ie.top],[ie.left+d.width,ie.top],[ie.left,ie.top+d.height],[ie.left+d.width,ie.top+d.height]],Ae=0;Ae<le.length;Ae+=1){var u=le[Ae];u[0]>=0&&u[0]<=N&&u[1]>=0&&u[1]<=V&&(I=!0)}if(!I)return}d.isHorizontal()?((C===37||C===39)&&(y.preventDefault?y.preventDefault():y.returnValue=!1),(C===39&&!g||C===37&&g)&&d.slideNext(),(C===37&&!g||C===39&&g)&&d.slidePrev()):((C===38||C===40)&&(y.preventDefault?y.preventDefault():y.returnValue=!1),C===40&&d.slideNext(),C===38&&d.slidePrev()),d.emit("keyPress",C)}},enable:function(){var o=this;o.keyboard.enabled||(a(t).on("keydown",o.keyboard.handle),o.keyboard.enabled=!0)},disable:function(){var o=this;o.keyboard.enabled&&(a(t).off("keydown",o.keyboard.handle),o.keyboard.enabled=!1)}},an={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var o=this;fe.extend(o,{keyboard:{enabled:!1,enable:Rr.enable.bind(o),disable:Rr.disable.bind(o),handle:Rr.handle.bind(o)}})},on:{init:function(){var o=this;o.params.keyboard.enabled&&o.keyboard.enable()},destroy:function(){var o=this;o.keyboard.enabled&&o.keyboard.disable()}}};function sn(){var w="onwheel",o=w in t;if(!o){var d=t.createElement("div");d.setAttribute(w,"return;"),o=typeof d[w]=="function"}return!o&&t.implementation&&t.implementation.hasFeature&&t.implementation.hasFeature("","")!==!0&&(o=t.implementation.hasFeature("Events.wheel","3.0")),o}var yr={lastScrollTime:fe.now(),event:function(){return n.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":sn()?"wheel":"mousewheel"}(),normalize:function(o){var d=10,g=40,y=800,C=0,I=0,N=0,V=0;return"detail"in o&&(I=o.detail),"wheelDelta"in o&&(I=-o.wheelDelta/120),"wheelDeltaY"in o&&(I=-o.wheelDeltaY/120),"wheelDeltaX"in o&&(C=-o.wheelDeltaX/120),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(C=I,I=0),N=C*d,V=I*d,"deltaY"in o&&(V=o.deltaY),"deltaX"in o&&(N=o.deltaX),(N||V)&&o.deltaMode&&(o.deltaMode===1?(N*=g,V*=g):(N*=y,V*=y)),N&&!C&&(C=N<1?-1:1),V&&!I&&(I=V<1?-1:1),{spinX:C,spinY:I,pixelX:N,pixelY:V}},handleMouseEnter:function(){var o=this;o.mouseEntered=!0},handleMouseLeave:function(){var o=this;o.mouseEntered=!1},handle:function(o){var d=o,g=this,y=g.params.mousewheel;if(!g.mouseEntered&&!y.releaseOnEdges)return!0;d.originalEvent&&(d=d.originalEvent);var C=0,I=g.rtlTranslate?-1:1,N=yr.normalize(d);if(y.forceToAxis)if(g.isHorizontal())if(Math.abs(N.pixelX)>Math.abs(N.pixelY))C=N.pixelX*I;else return!0;else if(Math.abs(N.pixelY)>Math.abs(N.pixelX))C=N.pixelY;else return!0;else C=Math.abs(N.pixelX)>Math.abs(N.pixelY)?-N.pixelX*I:-N.pixelY;if(C===0)return!0;if(y.invert&&(C=-C),g.params.freeMode){g.params.loop&&g.loopFix();var V=g.getTranslate()+C*y.sensitivity,ie=g.isBeginning,le=g.isEnd;if(V>=g.minTranslate()&&(V=g.minTranslate()),V<=g.maxTranslate()&&(V=g.maxTranslate()),g.setTransition(0),g.setTranslate(V),g.updateProgress(),g.updateActiveIndex(),g.updateSlidesClasses(),(!ie&&g.isBeginning||!le&&g.isEnd)&&g.updateSlidesClasses(),g.params.freeModeSticky&&(clearTimeout(g.mousewheel.timeout),g.mousewheel.timeout=fe.nextTick(function(){g.slideToClosest()},300)),g.emit("scroll",d),g.params.autoplay&&g.params.autoplayDisableOnInteraction&&g.autoplay.stop(),V===g.minTranslate()||V===g.maxTranslate())return!0}else{if(fe.now()-g.mousewheel.lastScrollTime>60){if(C<0){if((!g.isEnd||g.params.loop)&&!g.animating)g.slideNext(),g.emit("scroll",d);else if(y.releaseOnEdges)return!0}else if((!g.isBeginning||g.params.loop)&&!g.animating)g.slidePrev(),g.emit("scroll",d);else if(y.releaseOnEdges)return!0}g.mousewheel.lastScrollTime=new n.Date().getTime()}return d.preventDefault?d.preventDefault():d.returnValue=!1,!1},enable:function(){var o=this;if(!yr.event||o.mousewheel.enabled)return!1;var d=o.$el;return o.params.mousewheel.eventsTarged!=="container"&&(d=a(o.params.mousewheel.eventsTarged)),d.on("mouseenter",o.mou
13sewheel.handleMouseEnter),d.on("mouseleave",o.mousewheel.handleMouseLeave),d.on(yr.event,o.mousewheel.handle),o.mousewheel.enabled=!0,!0},disable:function(){var o=this;if(!yr.event||!o.mousewheel.enabled)return!1;var d=o.$el;return o.params.mousewheel.eventsTarged!=="container"&&(d=a(o.params.mousewheel.eventsTarged)),d.off(yr.event,o.mousewheel.handle),o.mousewheel.enabled=!1,!0}},Yr={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var o=this;fe.extend(o,{mousewheel:{enabled:!1,enable:yr.enable.bind(o),disable:yr.disable.bind(o),handle:yr.handle.bind(o),handleMouseEnter:yr.handleMouseEnter.bind(o),handleMouseLeave:yr.handleMouseLeave.bind(o),lastScrollTime:fe.now()}})},on:{init:function(){var o=this;o.params.mousewheel.enabled&&o.mousewheel.enable()},destroy:function(){var o=this;o.mousewheel.enabled&&o.mousewheel.disable()}}},Hr={update:function(){var o=this,d=o.params.navigation;if(!o.params.loop){var g=o.navigation,y=g.$nextEl,C=g.$prevEl;C&&C.length>0&&(o.isBeginning?(C.addClass(d.disabledClass),o.a11y.makeElUnFocusable(C)):(C.removeClass(d.disabledClass),o.a11y.makeElFocusable(C)),C[o.params.watchOverflow&&o.isLocked?"addClass":"removeClass"](d.lockClass)),y&&y.length>0&&(o.isEnd?(y.addClass(d.disabledClass),o.a11y.makeElUnFocusable(y)):(y.removeClass(d.disabledClass),o.a11y.makeElFocusable(y)),y[o.params.watchOverflow&&o.isLocked?"addClass":"removeClass"](d.lockClass))}},onPrevClick:function(o){var d=this;o.preventDefault(),!(d.isBeginning&&!d.params.loop)&&d.slidePrev()},onNextClick:function(o){var d=this;o.preventDefault(),!(d.isEnd&&!d.params.loop)&&d.slideNext()},init:function(){var o=this,d=o.params.navigation;if(d.nextEl||d.prevEl){var g,y;d.nextEl&&(g=a(d.nextEl),o.params.uniqueNavElements&&typeof d.nextEl=="string"&&g.length>1&&o.$el.find(d.nextEl).length===1&&(g=o.$el.find(d.nextEl))),d.prevEl&&(y=a(d.prevEl),o.params.uniqueNavElements&&typeof d.prevEl=="string"&&y.length>1&&o.$el.find(d.prevEl).length===1&&(y=o.$el.find(d.prevEl))),g&&g.length>0&&g.on("click",o.navigation.onNextClick),y&&y.length>0&&y.on("click",o.navigation.onPrevClick),fe.extend(o.navigation,{$nextEl:g,nextEl:g&&g[0],$prevEl:y,prevEl:y&&y[0]})}},destroy:function(){var o=this,d=o.navigation,g=d.$nextEl,y=d.$prevEl;g&&g.length&&(g.off("click",o.navigation.onNextClick),g.removeClass(o.params.navigation.disabledClass),o.a11y.makeElFocusable(g)),y&&y.length&&(y.off("click",o.navigation.onPrevClick),y.removeClass(o.params.navigation.disabledClass),o.a11y.makeElUnFocusable(g))}},En={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var o=this;fe.extend(o,{navigation:{init:Hr.init.bind(o),update:Hr.update.bind(o),destroy:Hr.destroy.bind(o),onNextClick:Hr.onNextClick.bind(o),onPrevClick:Hr.onPrevClick.bind(o)}})},on:{init:function(){var o=this;o.navigation.init(),o.navigation.update()},toEdge:function(){var o=this;o.navigation.update()},fromEdge:function(){var o=this;o.navigation.update()},destroy:function(){var o=this;o.navigation.destroy()},click:function(o){var d=this,g=d.navigation,y=g.$nextEl,C=g.$prevEl;if(d.params.navigation.hideOnClick&&!a(o.target).is(C)&&!a(o.target).is(y)){var I;y?I=y.hasClass(d.params.navigation.hiddenClass):C&&(I=C.hasClass(d.params.navigation.hiddenClass)),I===!0?d.emit("navigationShow",d):d.emit("navigationHide",d),y&&y.toggleClass(d.params.navigation.hiddenClass),C&&C.toggleClass(d.params.navigation.hiddenClass)}}}},Kr={update:function(){var o=this,d=o.rtl,g=o.params.pagination;if(!(!g.el||!o.pagination.el||!o.pagination.$el||o.pagination.$el.length===0)){var y=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:o.slides.length,C=o.pagination.$el,I,N=o.params.loop?Math.ceil((y-o.loopedSlides*2)/o.params.slidesPerGroup):o.snapGrid.length;if(o.params.loop?(I=Math.ceil((o.activeIndex-o.loopedSlides)/o.params.slidesPerGroup),I>y-1-o.loopedSlides*2&&(I-=y-o.loopedSlides*2),I>N-1&&(I-=N),I<0&&o.params.paginationType!=="bullets"&&(I=N+I)):typeof o.snapIndex<"u"?I=o.snapIndex:I=o.activeIndex||0,g.type==="bullets"&&o.pagination.bullets&&o.pagination.bullets.length>0){var V=o.pagination.bullets,ie,le,Ae;if(g.dynamicBullets&&(o.pagination.bulletSize=V.eq(0)[o.isHorizontal()?"outerWidth":"outerHeight"](!0),C.css(o.isHorizontal()?"width":"height",o.pagination.bulletSize*(g.dynamicMainBullets+4)+"px"),g.dynamicMainBullets>1&&o.previousIndex!==void 0&&(o.pagination.dynamicBulletIndex+=I-o.previousIndex,o.pagination.dynamicBulletIndex>g.dynamicMainBullets-1?o.pagination.dynamicBulletIndex=g.dynamicMainBullets-1:o.pagination.dynamicBulletIndex<0&&(o.pagination.dynamicBulletIndex=0)),ie=I-o.pagination.dynamicBulletIndex,le=ie+(Math.min(V.length,g.dynamicMainBullets)-1),Ae=(le+ie)/2),V.removeClass(g.bulletActiveClass+" "+g.bulletActiveClass+"-next "+g.bulletActiveClass+"-next-next "+g.bulletActiveClass+"-prev "+g.bulletActiveClass+"-prev-prev "+g.bulletActiveClass+"-main"),C.length>1)V.each(function(ke,me){var Re=a(me),Je=Re.index();Je===I&&Re.addClass(g.bulletActiveClass),g.dynamicBullets&&(Je>=ie&&Je<=le&&Re.addClass(g.bulletActiveClass+"-main"),Je===ie&&Re.prev().addClass(g.bulletActiveClass+"-prev").prev().addClass(g.bulletActiveClass+"-prev-prev"),Je===le&&Re.next().addClass(g.bulletActiveClass+"-next").next().addClass(g.bulletActiveClass+"-next-next"))});else{var u=V.eq(I);if(u.addClass(g.bulletActiveClass),g.dynamicBullets){for(var v=V.eq(ie),x=V.eq(le),E=ie;E<=le;E+=1)V.eq(E).addClass(g.bulletActiveClass+"-main");v.prev().addClass(g.bulletActiveClass+"-prev").prev().addClass(g.bulletActiveClass+"-prev-prev"),x.next().addClass(g.bulletActiveClass+"-next").next().addClass(g.bulletActiveClass+"-next-next")}}if(g.dynamicBullets){var D=Math.min(V.length,g.dynamicMainBullets+4),F=(o.pagination.bulletSize*D-o.pagination.bulletSize)/2-Ae*o.pagination.bulletSize,O=d?"right":"left";V.css(o.isHorizontal()?O:"top",F+"px")}}if(g.type==="fraction"&&(C.find("."+g.currentClass).text(g.formatFractionCurrent(I+1)),C.find("."+g.totalClass).text(g.formatFractionTotal(N))),g.type==="progressbar"){var Y;g.progressbarOpposite?Y=o.isHorizontal()?"vertical":"horizontal":Y=o.isHorizontal()?"horizontal":"vertical";var K=(I+1)/N,ae=1,he=1;Y==="horizontal"?ae=K:he=K,C.find("."+g.progressbarFillClass).transform("translate3d(0,
130,0) scaleX("+ae+") scaleY("+he+")").transition(o.params.speed)}g.type==="custom"&&g.renderCustom?(C.html(g.renderCustom(o,I+1,N)),o.emit("paginationRender",o,C[0])):o.emit("paginationUpdate",o,C[0]),C[o.params.watchOverflow&&o.isLocked?"addClass":"removeClass"](g.lockClass)}},render:function(){var o=this,d=o.params.pagination;if(!(!d.el||!o.pagination.el||!o.pagination.$el||o.pagination.$el.length===0)){var g=o.virtual&&o.params.virtual.enabled?o.virtual.slides.length:o.slides.length,y=o.pagination.$el,C="";if(d.type==="bullets"){for(var I=o.params.loop?Math.ceil((g-o.loopedSlides*2)/o.params.slidesPerGroup):o.snapGrid.length,N=0;N<I;N+=1)d.renderBullet?C+=d.renderBullet.call(o,N,d.bulletClass):C+="<"+d.bulletElement+' class="'+d.bulletClass+'"></'+d.bulletElement+">";y.html(C),o.pagination.bullets=y.find("."+d.bulletClass)}d.type==="fraction"&&(d.renderFraction?C=d.renderFraction.call(o,d.currentClass,d.totalClass):C='<span class="'+d.currentClass+'"></span> / <span class="'+d.totalClass+'"></span>',y.html(C)),d.type==="progressbar"&&(d.renderProgressbar?C=d.renderProgressbar.call(o,d.progressbarFillClass):C='<span class="'+d.progressbarFillClass+'"></span>',y.html(C)),d.type!=="custom"&&o.emit("paginationRender",o.pagination.$el[0])}},init:function(){var o=this,d=o.params.pagination;if(d.el){var g=a(d.el);g.length!==0&&(o.params.uniqueNavElements&&typeof d.el=="string"&&g.length>1&&o.$el.find(d.el).length===1&&(g=o.$el.find(d.el)),d.type==="bullets"&&d.clickable&&g.addClass(d.clickableClass),g.addClass(d.modifierClass+d.type),d.type==="bullets"&&d.dynamicBullets&&(g.addClass(""+d.modifierClass+d.type+"-dynamic"),o.pagination.dynamicBulletIndex=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&g.addClass(d.progressbarOppositeClass),d.clickable&&g.on("click","."+d.bulletClass,function(C){C.preventDefault();var I=a(this).index()*o.params.slidesPerGroup;o.params.loop&&(I+=o.loopedSlides),o.slideTo(I)}),fe.extend(o.pagination,{$el:g,el:g[0]}))}},destroy:function(){var o=this,d=o.params.pagination;if(!(!d.el||!o.pagination.el||!o.pagination.$el||o.pagination.$el.length===0)){var g=o.pagination.$el;g.removeClass(d.hiddenClass),g.removeClass(d.modifierClass+d.type),o.pagination.bullets&&o.pagination.bullets.removeClass(d.bulletActiveClass),d.clickable&&g.off("click","."+d.bulletClass)}}},xr={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(w){return w},formatFractionTotal:function(w){return w},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var o=this;fe.extend(o,{pagination:{init:Kr.init.bind(o),render:Kr.render.bind(o),update:Kr.update.bind(o),destroy:Kr.destroy.bind(o),dynamicBulletIndex:0}})},on:{init:function(){var o=this;o.pagination.init(),o.pagination.render(),o.pagination.update()},activeIndexChange:function(){var o=this;(o.params.loop||typeof o.snapIndex>"u")&&o.pagination.update()},snapIndexChange:function(){var o=this;o.params.loop||o.pagination.update()},slidesLengthChange:function(){var o=this;o.params.loop&&(o.pagination.render(),o.pagination.update())},snapGridLengthChange:function(){var o=this;o.params.loop||(o.pagination.render(),o.pagination.update())},destroy:function(){var o=this;o.pagination.destroy()},click:function(o){var d=this;if(d.params.pagination.el&&d.params.pagination.hideOnClick&&d.pagination.$el.length>0&&!a(o.target).hasClass(d.params.pagination.bulletClass)){var g=d.pagination.$el.hasClass(d.params.pagination.hiddenClass);
vendor: 6,261 bytes, line 13
13g===!0?d.emit("paginationShow",d):d.emit("paginationHide",d),d.pagination.$el.toggleClass(d.params.pagination.hiddenClass)}}}},mr={setTranslate:function(){var o=this;if(!(!o.params.scrollbar.el||!o.scrollbar.el)){var d=o.scrollbar,g=o.rtlTranslate,y=o.progress,C=d.dragSize,I=d.trackSize,N=d.$dragEl,V=d.$el,ie=o.params.scrollbar,le=C,Ae=(I-C)*y;g?(Ae=-Ae,Ae>0?(le=C-Ae,Ae=0):-Ae+C>I&&(le=I+Ae)):Ae<0?(le=C+Ae,Ae=0):Ae+C>I&&(le=I-Ae),o.isHorizontal()?(ye.transforms3d?N.transform("translate3d("+Ae+"px, 0, 0)"):N.transform("translateX("+Ae+"px)"),N[0].style.width=le+"px"):(ye.transforms3d?N.transform("translate3d(0px, "+Ae+"px, 0)"):N.transform("translateY("+Ae+"px)"),N[0].style.height=le+"px"),ie.hide&&(clearTimeout(o.scrollbar.timeout),V[0].style.opacity=1,o.scrollbar.timeout=setTimeout(function(){V[0].style.opacity=0,V.transition(400)},1e3))}},setTransition:function(o){var d=this;!d.params.scrollbar.el||!d.scrollbar.el||d.scrollbar.$dragEl.transition(o)},updateSize:function(){var o=this;if(!(!o.params.scrollbar.el||!o.scrollbar.el)){var d=o.scrollbar,g=d.$dragEl,y=d.$el;g[0].style.width="",g[0].style.height="";var C=o.isHorizontal()?y[0].offsetWidth:y[0].offsetHeight,I=o.size/o.virtualSize,N=I*(C/o.size),V;o.params.scrollbar.dragSize==="auto"?V=C*I:V=parseInt(o.params.scrollbar.dragSize,10),o.isHorizontal()?g[0].style.width=V+"px":g[0].style.height=V+"px",I>=1?y[0].style.display="none":y[0].style.display="",o.params.scrollbar.hide&&(y[0].style.opacity=0),fe.extend(d,{trackSize:C,divider:I,moveDivider:N,dragSize:V}),d.$el[o.params.watchOverflow&&o.isLocked?"addClass":"removeClass"](o.params.scrollbar.lockClass)}},setDragPosition:function(o){var d=this,g=d.scrollbar,y=d.rtlTranslate,C=g.$el,I=g.dragSize,N=g.trackSize,V;d.isHorizontal()?V=o.type==="touchstart"||o.type==="touchmove"?o.targetTouches[0].pageX:o.pageX||o.clientX:V=o.type==="touchstart"||o.type==="touchmove"?o.targetTouches[0].pageY:o.pageY||o.clientY;var ie;ie=(V-C.offset()[d.isHorizontal()?"left":"top"]-I/2)/(N-I),ie=Math.max(Math.min(ie,1),0),y&&(ie=1-ie);var le=d.minTranslate()+(d.maxTranslate()-d.minTranslate())*ie;d.updateProgress(le),d.setTranslate(le),d.updateActiveIndex(),d.updateSlidesClasses()},onDragStart:function(o){var d=this,g=d.params.scrollbar,y=d.scrollbar,C=d.$wrapperEl,I=y.$el,N=y.$dragEl;d.scrollbar.isTouched=!0,o.preventDefault(),o.stopPropagation(),C.transition(100),N.transition(100),y.setDragPosition(o),clearTimeout(d.scrollbar.dragTimeout),I.transition(0),g.hide&&I.css("opacity",1),d.emit("scrollbarDragStart",o)},onDragMove:function(o){var d=this,g=d.scrollbar,y=d.$wrapperEl,C=g.$el,I=g.$dragEl;d.scrollbar.isTouched&&(o.preventDefault?o.preventDefault():o.returnValue=!1,g.setDragPosition(o),y.transition(0),C.transition(0),I.transition(0),d.emit("scrollbarDragMove",o))},onDragEnd:function(o){var d=this,g=d.params.scrollbar,y=d.scrollbar,C=y.$el;d.scrollbar.isTouched&&(d.scrollbar.isTouched=!1,g.hide&&(clearTimeout(d.scrollbar.dragTimeout),d.scrollbar.dragTimeout=fe.nextTick(function(){C.css("opacity",0),C.transition(400)},1e3)),d.emit("scrollbarDragEnd",o),g.snapOnRelease&&d.slideToClosest())},enableDraggable:function(){var o=this;if(o.params.scrollbar.el){var d=o.scrollbar,g=o.touchEventsTouch,y=o.touchEventsDesktop,C=o.params,I=d.$el,N=I[0],V=ye.passiveListener&&C.passiveListeners?{passive:!1,capture:!1}:!1,ie=ye.passiveListener&&C.passiveListeners?{passive:!0,capture:!1}:!1;ye.touch?(N.addEventListener(g.start,o.scrollbar.onDragStart,V),N.addEventListener(g.move,o.scrollbar.onDragMove,V),N.addEventListener(g.end,o.scrollbar.onDragEnd,ie)):(N.addEventListener(y.start,o.scrollbar.onDragStart,V),t.addEventListener(y.move,o.scrollbar.onDragMove,V),t.addEventListener(y.end,o.scrollbar.onDragEnd,ie))}},disableDraggable:function(){var o=this;if(o.params.scrollbar.el){var d=o.scrollbar,g=o.touchEventsTouch,y=o.touchEventsDesktop,C=o.params,I=d.$el,N=I[0],V=ye.passiveListener&&C.passiveListeners?{passive:!1,capture:!1}:!1,ie=ye.passiveListener&&C.passiveListeners?{passive:!0,capture:!1}:!1;ye.touch?(N.removeEventListener(g.start,o.scrollbar.onDragStart,V),N.removeEventListener(g.move,o.scrollbar.onDragMove,V),N.removeEventListener(g.end,o.scrollbar.onDragEnd,ie)):(N.removeEventListener(y.start,o.scrollbar.onDragStart,V),t.removeEventListener(y.move,o.scrollbar.onDragMove,V),t.removeEventListener(y.end,o.scrollbar.onDragEnd,ie))}},init:function(){var o=this;if(o.params.scrollbar.el){var d=o.scrollbar,g=o.$el,y=o.params.scrollbar,C=a(y.el);o.params.uniqueNavElements&&typeof y.el=="string"&&C.length>1&&g.find(y.el).length===1&&(C=g.find(y.el));var I=C.find("."+o.params.scrollbar.dragClass);I.length===0&&(I=a('<div class="'+o.params.scrollbar.dragClass+'"></div>'),C.append(I)),fe.extend(d,{$el:C,el:C[0],$dragEl:I,dragEl:I[0]}),y.draggable&&d.enableDraggable()}},destroy:function(){var o=this;o.scrollbar.disableDraggable()}},Wr={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var o=this;fe.extend(o,{scrollbar:{init:mr.init.bind(o),destroy:mr.destroy.bind(o),updateSize:mr.updateSize.bind(o),setTranslate:mr.setTranslate.bind(o),setTransition:mr.setTransition.bind(o),enableDraggable:mr.enableDraggable.bind(o),disableDraggable:mr.disableDraggable.bind(o),setDragPosition:mr.setDragPosition.bind(o),onDragStart:mr.onDragStart.bind(o),onDragMove:mr.onDragMove.bind(o),onDragEnd:mr.onDragEnd.bind(o),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var o=this;o.scrollbar.init(),o.scrollbar.updateSize(),o.scrollbar.setTranslate()},update:function(){var o=this;o.scrollbar.updateSize()},resize:function(){var o=this;o.scrollbar.updateSize()},observerUpdate:function(){var o=this;o.scrollbar.updateSize()},setTranslate:function(){var o=this;o.scrollbar.setTranslate()},setTransition:function(o){var d=this;d.scrollbar.setTransition(o)},destroy:function(){var o=this;o.scrollbar.destroy()}}},on={setTransform:function(o,d){var g=this,y=g.rtl,C=a(o),I=y?-1:1,N=C.attr("data-swiper-parallax")||"0",V=C.attr("data-swiper-parallax-x"),ie=C.attr("data-swiper-parallax-y"),le=C.attr("data-swiper-parallax-scale"),Ae=C.attr("data-swiper-parallax-opacity");
13if(V||ie?(V=V||"0",ie=ie||"0"):g.isHorizontal()?(V=N,ie="0"):(ie=N,V="0"),V.indexOf("%")>=0?V=parseInt(V,10)*d*I+"%":V=V*d*I+"px",ie.indexOf("%")>=0?ie=parseInt(ie,10)*d+"%":ie=ie*d+"px",typeof Ae<"u"&&Ae!==null){var u=Ae-(Ae-1)*(1-Math.abs(d));C[0].style.opacity=u}if(typeof le>"u"||le===null)C.transform("translate3d("+V+", "+ie+", 0px)");else{var v=le-(le-1)*(1-Math.abs(d));C.transform("translate3d("+V+", "+ie+", 0px) scale("+v+")")}},setTranslate:function(){var o=this,d=o.$el,g=o.slides,y=o.progress,C=o.snapGrid;d.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(I,N){o.parallax.setTransform(N,y)}),g.each(function(I,N){var V=N.progress;o.params.slidesPerGroup>1&&o.params.slidesPerView!=="auto"&&(V+=Math.ceil(I/2)-y*(C.length-1)),V=Math.min(Math.max(V,-1),1),a(N).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(ie,le){o.parallax.setTransform(le,V)})})},setTransition:function(o){o===void 0&&(o=this.params.speed);var d=this,g=d.$el;g.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(y,C){var I=a(C),N=parseInt(I.attr("data-swiper-parallax-duration"),10)||o;o===0&&(N=0),I.transition(N)})}},Sn={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var o=this;fe.extend(o,{parallax:{setTransform:on.setTransform.bind(o),setTranslate:on.setTranslate.bind(o),setTransition:on.setTransition.bind(o)}})},on:{beforeInit:function(){var o=this;o.params.parallax.enabled&&(o.params.watchSlidesProgress=!0,o.originalParams.watchSlidesProgress=!0)},init:function(){var o=this;o.params.parallax.enabled&&o.parallax.setTranslate()},setTranslate:function(){var o=this;o.params.parallax.enabled&&o.parallax.setTranslate()},setTransition:function(o){var d=this;d.params.parallax.enabled&&d.parallax.setTransition(o)}}},Fr={getDistanceBetweenTouches:function(o){if(o.targetTouches.length<2)return 1;var d=o.targetTouches[0].pageX,g=o.targetTouches[0].pageY,y=o.targetTouches[1].pageX,C=o.targetTouches[1].pageY,I=Math.sqrt(Math.pow(y-d,2)+Math.pow(C-g,2));return I},onGestureStart:function(o){var d=this,g=d.params.zoom,y=d.zoom,C=y.gesture;if(y.fakeGestureTouched=!1,y.fakeGestureMoved=!1,!ye.gestures){if(o.type!=="touchstart"||o.type==="touchstart"&&o.targetTouches.length<2)return;y.fakeGestureTouched=!0,C.scaleStart=Fr.getDistanceBetweenTouches(o)}if((!C.$slideEl||!C.$slideEl.length)&&(C.$slideEl=a(o.target).closest(".swiper-slide"),C.$slideEl.length===0&&(C.$slideEl=d.slides.eq(d.activeIndex)),C.$imageEl=C.$slideEl.find("img, svg, canvas"),C.$imageWrapEl=C.$imageEl.parent("."+g.containerClass),C.maxRatio=C.$imageWrapEl.attr("data-swiper-zoom")||g.maxRatio,C.$imageWrapEl.length===0)){C.$imageEl=void 0;return}C.$imageEl.transition(0),d.zoom.isScaling=!0},onGestureChange:function(o){var d=this,g=d.params.zoom,y=d.zoom,C=y.gesture;if(!ye.gestures){if(o.type!=="touchmove"||o.type==="touchmove"&&o.targetTouches.length<2)return;y.fakeGestureMoved=!0,C.scaleMove=Fr.getDistanceBetweenTouches(o)}!C.$imageEl||C.$imageEl.length===0||(ye.gestures?y.scale=o.scale*y.currentScale:y.scale=C.scaleMove/C.scaleStart*y.currentScale,y.scale>C.maxRatio&&(y.scale=C.maxRatio-1+Math.pow(y.scale-C.maxRatio+1,.5)),y.scale<g.minRatio&&(y.scale=g.minRatio+1-Math.pow(g.minRatio-y.scale+1,.5)),C.$imageEl.transform("translate3d(0,0,0) scale("+y.scale+")"))},onGestureEnd:function(o){var d=this,g=d.params.zoom,y=d.zoom,C=y.gesture;if(!ye.gestures){if(!y.fakeGestureTouched||!y.fakeGestureMoved||o.type!=="touchend"||o.type==="touchend"&&o.changedTouches.length<2&&!st.android)return;y.fakeGestureTouched=!1,y.fakeGestureMoved=!1}!C.$imageEl||C.$imageEl.length===0||(y.scale=Math.max(Math.min(y.scale,C.maxRatio),g.minRatio),C.$imageEl.transition(d.params.speed).transform("translate3d(0,0,0) scale("+y.scale+")"),y.currentScale=y.scale,y.isScaling=!1,y.scale===1&&(C.$slideEl=void 0))},onTouchStart:function(o){var d=this,g=d.zoom,y=g.gesture,C=g.image;!y.$imageEl||y.$imageEl.length===0||C.isTouched||(st.android&&o.preventDefault(),C.isTouched=!0,C.touchesStart.x=o.type==="touchstart"?o.targetTouches[0].pageX:o.pageX,C.touchesStart.y=o.type==="touchstart"?o.targetTouches[0].pageY:o.pageY)},onTouchMove:function(o){var d=this,g=d.zoom,y=g.gesture,C=g.image,I=g.velocity;if(!(!y.$imageEl||y.$imageEl.length===0)&&(d.allowClick=!1,!(!C.isTouched||!y.$slideEl))){C.isMoved||(C.width=y.$imageEl[0].offsetWidth,C.height=y.$imageEl[0].offsetHeight,C.startX=fe.getTranslate(y.$imageWrapEl[0],"x")||0,C.startY=fe.getTranslate(y.$imageWrapEl[0],"y")||0,y.slideWidth=y.$slideEl[0].offsetWidth,y.slideHeight=y.$slideEl[0].offsetHeight,y.$imageWrapEl.transition(0),d.rtl&&(C.startX=-C.startX,C.startY=-C.startY));var N=C.width*g.scale,V=C.height*g.scale;if(!(N<y.slideWidth&&V<y.slideHeight)){if(C.minX=Math.min(y.slideWidth/2-N/2,0),C.maxX=-C.minX,C.minY=Math.min(y.slideHeight/2-V/2,0),C.maxY=-C.minY,C.touchesCurrent.x=o.type==="touchmove"?o.targetTouches[0].pageX:o.pageX,C.touchesCurrent.y=o.type==="touchmove"?o.targetTouches[0].pageY:o.pageY,!C.isMoved&&!g.isScaling){if(d.isHorizontal()&&(Math.floor(C.minX)===Math.floor(C.startX)&&C.touchesCurrent.x<C.touchesStart.x||Math.floor(C.maxX)===Math.floor(C.startX)&&C.touchesCurrent.x>C.touchesStart.x)){C.isTouched=!1;return}if(!d.isHorizontal()&&(Math.floor(C.minY)===Math.floor(C.startY)&&C.touchesCurrent.y<C.touchesStart.y||Math.floor(C.maxY)===Math.floor(C.startY)&&C.touchesCurrent.y>C.touchesStart.y)){C.isTouched=!1;return}}o.preventDefault(),o.stopPropagation(),C.isMoved=!0,C.currentX=C.touchesCurrent.x-C.touchesStart.x+C.startX,C.currentY=C.touchesCurrent.y-C.touchesStart.y+C.startY,C.currentX<C.minX&&(C.currentX=C.minX+1-Math.pow(C.minX-C.currentX+1,.8)),C.currentX>C.maxX&&(C.currentX=C.maxX-1+Math.pow(C.currentX-C.maxX+1,.8)),C.currentY<C.minY&&(C.currentY=C.minY+1-Math.pow(C.minY-C.currentY+1,.8)),C.currentY>C.maxY&&(C.currentY=C.maxY-1+Math.pow(C.currentY-C.maxY+1,.8)),I.prevPositionX||(I.prevPositionX=C.touchesCurrent.x),I.prevPositionY||(I.prevPositionY=C.touchesCurrent.y),I.prevTime||(I.prevTime=Date.now()),I.x=(C.touchesCurrent.x-I.prevPositionX)/(Date.now()-I.prevTime)/2,I.y=(C.touchesCurrent.y-I.prevPositionY)/(Date.now()-I.prevTime)/2,Math.abs(C.touchesCurrent.x-I.prevPositionX)<2&&(I.x=0),Math.abs(C.touchesCurrent.y-I.prevPositionY)<2&&(I.y=0),I.prevPositionX=C.touchesCurrent.x,I.prevPositionY=C.touchesCurrent.y,I.prevTime=Date.now(),y.$imageWrapEl.transform("translate3d("+C.currentX+"px, "+C.currentY+"px,0)")}}},onTouchEnd:function(){var o=this,d=o.zoom,g=d.gesture,y=d.image,C=d.velocity;if(!(!g.$imageEl||g.$imageEl.length===0)){if(!y.isTouched||!y.isMoved){y.isTouched=!1,y.isMoved=!1;return}y.isTouched=!1,y.isMoved=!1;var I=300,N=300,V=C.x*I,ie=y.currentX+V,le=C.y*N,Ae=y.currentY+le;C.x!==0&&(I=Math.abs((ie-y.currentX)/C.x)),C.y!==0&&(N=Math.abs((Ae-y.currentY)/C.y));var u=Math.max(I,N);y.currentX=ie,y.currentY=Ae;var v=y.width*d.scale,x=y.height*d.scale;y.minX=Math.min(g.slideWidth/2-v/2,0),y.maxX=-y.minX,y.minY=Math.min(g.slideHeight/2-x/2,0),y.maxY=-y.minY,y.currentX=Math.max(Math.min(y.currentX,y.maxX),y.minX),y.currentY=Math.max(Math.min(y.currentY,y.maxY),y.minY),g.$imageWrapEl.transition(u).transform("translate3d("+y.currentX+"px, "+y.currentY+"px,0)")}},onTransitionEnd:function(){var o=this,d=o.zoom,g=d.gesture;g.$slideEl&&o.previousIndex!==o.activeIndex&&(g.$imageEl.transform("translate3d(0,
130,0) scale(1)"),g.$imageWrapEl.transform("translate3d(0,0,0)"),d.scale=1,d.currentScale=1,g.$slideEl=void 0,g.$imageEl=void 0,g.$imageWrapEl=void 0)},toggle:function(o){var d=this,g=d.zoom;g.scale&&g.scale!==1?g.out():g.in(o)},in:function(o){var d=this,g=d.zoom,y=d.params.zoom,C=g.gesture,I=g.image;if(C.$slideEl||(C.$slideEl=d.clickedSlide?a(d.clickedSlide):d.slides.eq(d.activeIndex),C.$imageEl=C.$slideEl.find("img, svg, canvas"),C.$imageWrapEl=C.$imageEl.parent("."+y.containerClass)),!(!C.$imageEl||C.$imageEl.length===0)){C.$slideEl.addClass(""+y.zoomedSlideClass);var N,V,ie,le,Ae,u,v,x,E,D,F,O,Y,K,ae,he,ke,me;typeof I.touchesStart.x>"u"&&o?(N=o.type==="touchend"?o.changedTouches[0].pageX:o.pageX,V=o.type==="touchend"?o.changedTouches[0].pageY:o.pageY):(N=I.touchesStart.x,V=I.touchesStart.y),g.scale=C.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,g.currentScale=C.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,o?(ke=C.$slideEl[0].offsetWidth,me=C.$slideEl[0].offsetHeight,ie=C.$slideEl.offset().left,le=C.$slideEl.offset().top,Ae=ie+ke/2-N,u=le+me/2-V,E=C.$imageEl[0].offsetWidth,D=C.$imageEl[0].offsetHeight,F=E*g.scale,O=D*g.scale,Y=Math.min(ke/2-F/2,0),K=Math.min(me/2-O/2,0),ae=-Y,he=-K,v=Ae*g.scale,x=u*g.scale,v<Y&&(v=Y),v>ae&&(v=ae),x<K&&(x=K),x>he&&(x=he)):(v=0,x=0),C.$imageWrapEl.transition(300).transform("translate3d("+v+"px, "+x+"px,0)"),C.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+g.scale+")")}},out:function(){var o=this,d=o.zoom,g=o.params.zoom,y=d.gesture;y.$slideEl||(y.$slideEl=o.clickedSlide?a(o.clickedSlide):o.slides.eq(o.activeIndex),y.$imageEl=y.$slideEl.find("img, svg, canvas"),y.$imageWrapEl=y.$imageEl.parent("."+g.containerClass)),!(!y.$imageEl||y.$imageEl.length===0)&&(d.scale=1,d.currentScale=1,y.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),y.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),y.$slideEl.removeClass(""+g.zoomedSlideClass),y.$slideEl=void 0)},enable:function(){var o=this,d=o.zoom;if(!d.enabled){d.enabled=!0;var g=o.touchEvents.start==="touchstart"&&ye.passiveListener&&o.params.passiveListeners?{passive:!0,capture:!1}:!1;ye.gestures?(o.$wrapperEl.on("gesturestart",".swiper-slide",d.onGestureStart,g),o.$wrapperEl.on("gesturechange",".swiper-slide",d.onGestureChange,g),o.$wrapperEl.on("gestureend",".swiper-slide",d.onGestureEnd,g)):o.touchEvents.start==="touchstart"&&(o.$wrapperEl.on(o.touchEvents.start,".swiper-slide",d.onGestureStart,g),o.$wrapperEl.on(o.touchEvents.move,".swiper-slide",d.onGestureChange,g),o.$wrapperEl.on(o.touchEvents.end,".swiper-slide",d.onGestureEnd,g)),o.$wrapperEl.on(o.touchEvents.move,"."+o.params.zoom.containerClass,d.onTouchMove)}},disable:function(){var o=this,d=o.zoom;if(d.enabled){o.zoom.enabled=!1;var g=o.touchEvents.start==="touchstart"&&ye.passiveListener&&o.params.passiveListeners?{passive:!0,capture:!1}:!1;ye.gestures?(o.$wrapperEl.off("gesturestart",".swiper-slide",d.onGestureStart,g),o.$wrapperEl.off("gesturechange",".swiper-slide",d.onGestureChange,g),o.$wrapperEl.off("gestureend",".swiper-slide",d.onGestureEnd,g)):o.touchEvents.start==="touchstart"&&(o.$wrapperEl.off(o.touchEvents.start,".swiper-slide",d.onGestureStart,g),o.$wrapperEl.off(o.touchEvents.move,".swiper-slide",d.onGestureChange,g),o.$wrapperEl.off(o.touchEvents.end,".swiper-slide",d.onGestureEnd,g)),o.$wrapperEl.off(o.touchEvents.move,"."+o.params.zoom.containerClass,d.onTouchMove)}}},Br={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var o=this,d={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(y){d[y]=Fr[y].bind(o)}),fe.extend(o,{zoom:d});var g=1;Object.defineProperty(o.zoom,"scale",{get:function(){return g},set:function(C){if(g!==C){var I=o.zoom.gesture.$imageEl?o.zoom.gesture.$imageEl[0]:void 0,N=o.zoom.gesture.$slideEl?o.zoom.gesture.$slideEl[0]:void 0;o.emit("zoomChange",C,I,N)}g=C}})},on:{init:function(){var o=this;o.params.zoom.enabled&&o.zoom.enable()},destroy:function(){var o=this;o.zoom.disable()},touchStart:function(o){var d=this;d.zoom.enabled&&d.zoom.onTouchStart(o)},touchEnd:function(o){var d=this;d.zoom.enabled&&d.zoom.onTouchEnd(o)},doubleTap:function(o){var d=this;d.params.zoom.enabled&&d.zoom.enabled&&d.params.zoom.toggle&&d.zoom.toggle(o)},transitionEnd:function(){var o=this;o.zoom.enabled&&o.params.zoom.enabled&&o.zoom.onTransitionEnd()}}},Jr={loadInSlide:function(o,d){d===void 0&&(d=!0);var g=this,y=g.params.lazy;if(!(typeof o>"u")&&g.slides.length!==0){var C=g.virtual&&g.params.virtual.enabled,I=C?g.$wrapperEl.children("."+g.params.slideClass+'[data-swiper-slide-index="'+o+'"]'):g.slides.eq(o),N=I.find("."+y.elementClass+":not(."+y.loadedClass+"):not(."+y.loadingClass+")");I.hasClass(y.elementClass)&&!I.hasClass(y.loadedClass)&&!I.hasClass(y.loadingClass)&&(N=N.add(I[0])),N.length!==0&&N.each(function(V,ie){var le=a(ie);le.addClass(y.loadingClass);var Ae=le.attr("data-background"),u=le.attr("data-src"),v=le.attr("data-srcset"),x=le.attr("data-sizes");g.loadImage(le[0],u||Ae,v,x,!1,function(){if(!(typeof g>"u"||g===null||!g||g&&!g.params||g.destroyed)){if(Ae?(le.css("background-image",'url("'+Ae+'")'),le.removeAttr("data-background")):(v&&(le.attr("srcset",v),le.removeAttr("data-srcset")),x&&(le.attr("sizes",x),le.removeAttr("data-sizes")),u&&(le.attr("src",u),le.removeAttr("data-src"))),le.addClass(y.loadedClass).removeClass(y.loadingClass),I.find("."+y.preloaderClass).remove(),g.params.loop&&d){var E=I.attr("data-swiper-slide-index");if(I.hasClass(g.params.slideDuplicateClass)){var D=g.$wrapperEl.children('[data-swiper-slide-index="'+E+'"]:not(.'+g.params.slideDuplicateClass+")");g.lazy.loadInSlide(D.index(),!1)}else{var F=g.$wrapperEl.children("."+g.params.slideDuplicateClass+'[data-swiper-slide-index="'+E+'"]');g.lazy.loadInSlide(F.index(),!1)}}g.emit("lazyImageReady",I[0],le[0])}}),g.emit("lazyImageLoad",I[0],le[0])})}},load:function(){var o=this,d=o.$wrapperEl,g=o.params,y=o.slides,C=o.activeIndex,I=o.virtual&&g.virtual.enabled,N=g.lazy,V=g.slidesPerView;V==="auto"&&(V=0);function ie(K){if(I){if(d.children("."+g.slideClass+'[data-swiper-slide-index="'+K+'"]').length)return!0}else if(y[K])return!0;return!1}function le(K){return I?a(K).attr("data-swiper-slide-index"):a(K).index()}if(o.lazy.initialImageLoaded||(o.lazy.initialImageLoaded=!0),o.params.watchSlidesVisibility)d.children("."+g.slideVisibleClass).each(function(K,ae){var he=I?a(ae).attr("data-swiper-slide-index"):a(ae).index();o.lazy.loadInSlide(he)});else if(V>1)for(var Ae=C;Ae<C+V;Ae+=1)ie(Ae)&&o.lazy.loadInSlide(Ae);else o.lazy.loadInSlide(C);if(N.loadPrevNext)if(V>1||N.loadPrevNextAmount&&N.loadPrevNextAmount>1){for(var u=N.loadPrevNextAmount,v=V,x=Math.min(C+v+Math.max(u,v),y.length),E=Math.max(C-Math.max(v,u),0),D=C+V;D<x;D+=1)ie(D)&&o.lazy.loadInSlide(D);for(var F=E;F<C;F+=1)ie(F)&&o.lazy.loadInSlide(F)}else{var O=d.children("."+g.slideNextClass);O.length>0&&o.lazy.loadInSlide(le(O));var Y=d.children("."+g.slidePrevClass);Y.length>0&&o.lazy.loadInSlide(le(Y))}}},Cn={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var o=this;fe.extend(o,{lazy:{initialImageLoaded:!1,load:Jr.load.bind(o),loadInSlide:Jr.loadInSlide.bind(o)}})},on:{beforeInit:function(){var o=this;o.params.lazy.enabled&&o.params.preloadImages&&(o.params.preloadImages=!1)},init:function(){var o=this;o.params.lazy.enabled&&!o.params.loop&&o.params.initialSlide===0&&o.lazy.load()},scroll:function(){var o=this;o.params.freeMode&&!o.params.freeModeSticky&&o.lazy.load()},resize:function(){var o=this;o.params.lazy.enabled&&o.lazy.load()},scrollbarDragMove:function(){var o=this;o.params.lazy.enabled&&o.lazy.load()},transitionStart:function(){var o=this;o.params.lazy.enabled&&(o.params.lazy.loadOnTransitionStart||!o.params.lazy.loadOnTransitionStart&&!
13o.lazy.initialImageLoaded)&&o.lazy.load()},transitionEnd:function(){var o=this;o.params.lazy.enabled&&!o.params.lazy.loadOnTransitionStart&&o.lazy.load()}}},Ir={LinearSpline:function(o,d){var g=function(){var N,V,ie;return function(le,Ae){for(V=-1,N=le.length;N-V>1;)ie=N+V>>1,le[ie]<=Ae?V=ie:N=ie;return N}}();this.x=o,this.y=d,this.lastIndex=o.length-1;var y,C;return this.interpolate=function(N){return N?(C=g(this.x,N),y=C-1,(N-this.x[y])*(this.y[C]-this.y[y])/(this.x[C]-this.x[y])+this.y[y]):0},this},getInterpolateFunction:function(o){var d=this;d.controller.spline||(d.controller.spline=d.params.loop?new Ir.LinearSpline(d.slidesGrid,o.slidesGrid):new Ir.LinearSpline(d.snapGrid,o.snapGrid))},setTranslate:function(o,d){var g=this,y=g.controller.control,C,I;function N(ie){var le=g.rtlTranslate?-g.translate:g.translate;g.params.controller.by==="slide"&&(g.controller.getInterpolateFunction(ie),I=-g.controller.spline.interpolate(-le)),(!I||g.params.controller.by==="container")&&(C=(ie.maxTranslate()-ie.minTranslate())/(g.maxTranslate()-g.minTranslate()),I=(le-g.minTranslate())*C+ie.minTranslate()),g.params.controller.inverse&&(I=ie.maxTranslate()-I),ie.updateProgress(I),ie.setTranslate(I,g),ie.updateActiveIndex(),ie.updateSlidesClasses()}if(Array.isArray(y))for(var V=0;V<y.length;V+=1)y[V]!==d&&y[V]instanceof qt&&N(y[V]);else y instanceof qt&&d!==y&&N(y)},setTransition:function(o,d){var g=this,y=g.controller.control,C;function I(N){N.setTransition(o,g),o!==0&&(N.transitionStart(),N.params.autoHeight&&fe.nextTick(function(){N.updateAutoHeight()}),N.$wrapperEl.transitionEnd(function(){y&&(N.params.loop&&g.params.controller.by==="slide"&&N.loopFix(),N.transitionEnd())}))}if(Array.isArray(y))for(C=0;C<y.length;C+=1)y[C]!==d&&y[C]instanceof qt&&I(y[C]);else y instanceof qt&&d!==y&&I(y)}},hn={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var o=this;fe.extend(o,{controller:{control:o.params.controller.control,getInterpolateFunction:Ir.getInterpolateFunction.bind(o),setTranslate:Ir.setTranslate.bind(o),setTransition:Ir.setTransition.bind(o)}})},on:{update:function(){var o=this;o.controller.control&&o.controller.spline&&(o.controller.spline=void 0,delete o.controller.spline)},resize:function(){var o=this;o.controller.control&&o.controller.spline&&(o.controller.spline=void 0,delete o.controller.spline)},observerUpdate:function(){var o=this;o.controller.control&&o.controller.spline&&(o.controller.spline=void 0,delete o.controller.spline)},setTranslate:function(o,d){var g=this;g.controller.control&&g.controller.setTranslate(o,d)},setTransition:function(o,d){var g=this;g.controller.control&&g.controller.setTransition(o,d)}}},Qr={makeElFocusable:function(o){return o.attr("tabIndex","0"),o},makeElUnFocusable:function(o){return o.attr("tabIndex","-1"),o},addElRole:function(o,d){return o.attr("role",d),o},addElLabel:function(o,d){return o.attr("aria-label",d),o},disableEl:function(o){return o.attr("aria-disabled",!0),o},enableEl:function(o){return o.attr("aria-disabled",!1),o},onEnterKey:function(o){var d=this,g=d.params.a11y;if(o.keyCode===13){var y=a(o.target);d.navigation&&d.navigation.$nextEl&&y.is(d.navigation.$nextEl)&&(d.isEnd&&!d.params.loop||d.slideNext(),d.isEnd?d.a11y.notify(g.lastSlideMessage):d.a11y.notify(g.nextSlideMessage)),d.navigation&&d.navigation.$prevEl&&y.is(d.navigation.$prevEl)&&(d.isBeginning&&!d.params.loop||d.slidePrev(),d.isBeginning?d.a11y.notify(g.firstSlideMessage):d.a11y.notify(g.prevSlideMessage)),d.pagination&&y.is("."+d.params.pagination.bulletClass)&&y[0].click()}},notify:function(o){var d=this,g=d.a11y.liveRegion;g.length!==0&&(g.html(""),g.html(o))},updateNavigation:function(){var o=this;if(!o.params.loop){var d=o.navigation,g=d.$nextEl,y=d.$prevEl;y&&y.length>0&&(o.isBeginning?o.a11y.disableEl(y):o.a11y.enableEl(y)),g&&g.length>0&&(o.isEnd?o.a11y.disableEl(g):o.a11y.enableEl(g))}},updatePagination:function(){var o=this,d=o.params.a11y;o.pagination&&o.params.pagination.clickable&&o.pagination.bullets&&o.pagination.bullets.length&&o.pagination.bullets.each(function(g,y){var C=a(y);o.a11y.addElRole(C,"button"),o.a11y.addElLabel(C,d.paginationBulletMessage.replace(/{{index}}/,C.index()+1))})},init:function(){var o=this;o.$el.append(o.a11y.liveRegion);var d=o.params.a11y,g,y;o.navigation&&o.navigation.$nextEl&&(g=o.navigation.$nextEl),o.navigation&&o.navigation.$prevEl&&(y=o.navigation.$prevEl),g&&(o.a11y.addElRole(g,"button"),o.a11y.addElLabel(g,d.nextSlideMessage),g.on("key
13down",o.a11y.onEnterKey)),y&&(o.a11y.addElRole(y,"button"),o.a11y.addElLabel(y,d.prevSlideMessage),y.on("keydown",o.a11y.onEnterKey)),o.pagination&&o.params.pagination.clickable&&o.pagination.bullets&&o.pagination.bullets.length&&o.pagination.$el.on("keydown","."+o.params.pagination.bulletClass,o.a11y.onEnterKey)},destroy:function(){var o=this;o.a11y.liveRegion&&o.a11y.liveRegion.length>0&&o.a11y.liveRegion.remove();var d,g;o.navigation&&o.navigation.$nextEl&&(d=o.navigation.$nextEl),o.navigation&&o.navigation.$prevEl&&(g=o.navigation.$prevEl),d&&d.off("keydown",o.a11y.onEnterKey),g&&g.off("keydown",o.a11y.onEnterKey),o.pagination&&o.params.pagination.clickable&&o.pagination.bullets&&o.pagination.bullets.length&&o.pagination.$el.off("keydown","."+o.params.pagination.bulletClass,o.a11y.onEnterKey)}},pn={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var o=this;fe.extend(o,{a11y:{liveRegion:a('<span class="'+o.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Qr).forEach(function(d){o.a11y[d]=Qr[d].bind(o)})},on:{init:function(){var o=this;o.params.a11y.enabled&&(o.a11y.init(),o.a11y.updateNavigation())},toEdge:function(){var o=this;o.params.a11y.enabled&&o.a11y.updateNavigation()},fromEdge:function(){var o=this;o.params.a11y.enabled&&o.a11y.updateNavigation()},paginationUpdate:function(){var o=this;o.params.a11y.enabled&&o.a11y.updatePagination()},destroy:function(){var o=this;o.params.a11y.enabled&&o.a11y.destroy()}}},Cr={init:function(){var o=this;if(o.params.history){if(!n.history||!n.history.pushState){o.params.history.enabled=!1,o.params.hashNavigation.enabled=!0;return}var d=o.history;d.initialized=!0,d.paths=Cr.getPathValues(),!(!d.paths.key&&!d.paths.value)&&(d.scrollToSlide(0,d.paths.value,o.params.runCallbacksOnInit),o.params.history.replaceState||n.addEventListener("popstate",o.history.setHistoryPopState))}},destroy:function(){var o=this;o.params.history.replaceState||n.removeEventListener("popstate",o.history.setHistoryPopState)},setHistoryPopState:function(){var o=this;o.history.paths=Cr.getPathValues(),o.history.scrollToSlide(o.params.speed,o.history.paths.value,!1)},getPathValues:function(){var o=n.location.pathname.slice(1).split("/").filter(function(C){return C!==""}),d=o.length,g=o[d-2],y=o[d-1];return{key:g,value:y}},setHistory:function(o,d){var g=this;if(!(!g.history.initialized||!g.params.history.enabled)){var y=g.slides.eq(d),C=Cr.slugify(y.attr("data-history"));n.location.pathname.includes(o)||(C=o+"/"+C);var I=n.history.state;I&&I.value===C||(g.params.history.replaceState?n.history.replaceState({value:C},null,C):n.history.pushState({value:C},null,C))}},slugify:function(o){return o.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(o,d,g){var y=this;if(d)for(var C=0,I=y.slides.length;C<I;C+=1){var N=y.slides.eq(C),V=Cr.slugify(N.attr("data-history"));if(V===d&&!N.hasClass(y.params.slideDuplicateClass)){var ie=N.index();y.slideTo(ie,o,g)}}else y.slideTo(0,o,g)}},An={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var o=this;fe.extend(o,{history:{init:Cr.init.bind(o),setHistory:Cr.setHistory.bind(o),setHistoryPopState:Cr.setHistoryPopState.bind(o),scrollToSlide:Cr.scrollToSlide.bind(o),destroy:Cr.destroy.bind(o)}})},on:{init:function(){var o=this;o.params.history.enabled&&o.history.init()},destroy:function(){var o=this;o.params.history.enabled&&o.history.destroy()},transitionEnd:function(){var o=this;o.history.initialized&&o.history.setHistory(o.params.history.key,o.activeIndex)}}},jr={onHashCange:function(){var o=this,d=t.location.hash.replace("#",""),g=o.slides.eq(o.activeIndex).attr("data-hash");if(d!==g){var y=o.$wrapperEl.children("."+o.params.slideClass+'[data-hash="'+d+'"]').index();if(typeof y>"u")return;o.slideTo(y)}},setHash:function(){var o=this;if(!(!o.hashNavigation.initialized||!o.params.hashNavigation.enabled))if(o.params.hashNavigation.replaceState&&n.history&&n.history.replaceState)n.history.replaceState(null,null,"#"+o.slides.eq(o.activeIndex).attr("data-hash")||"");else{var d=o.slides.eq(o.activeIndex),g=d.attr("data-hash")||d.attr("data-history");t.location.hash=g||""}},init:function(){var o=this;if(!(!o.params.hashNavigation.enabled||o.params.history&&o.params.history.enabled)){o.hashNavigation.initialized=!0;var d=t.location.hash.replace("#","");if(d)for(var g=0,y=0,C=o.slides.length;y<C;y+=1){var I=o.slides.eq(y),N=I.attr("data-hash")||I.attr("data-history");if(N===d&&!I.hasClass(o.params.slideDuplicateClass)){var V=I.index();o.slideTo(V,g,o.params.runCallbacksOnInit,!0)}}o.params.hashNavigation.watchState&&a(n).on("hashchange",o.hashNavigation.onHashCange)}},destroy:function(){var o=this;o.params.hashNavigation.watchState&&a(n).off("hashchange",o.hashNavigation.onHashCange)}},kn={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var o=this;fe.extend(o,{hashNavigation:{initialized:!1,init:jr.init.bind(o),destroy:jr.destroy.bind(o),setHash:jr.setHash.bind(o),onHashCange:jr.onHashCange.bind(o)}})},on:{init:function(){var o=this;o.params.hashNavigation.enabled&&o.hashNavigation.init()},destroy:function(){var o=this;o.params.hashNavigation.enabled&&o.hashNavigation.destroy()},transitionEnd:function(){var o=this;o.hashNavigation.initialized&&o.hashNavigation.setHash()}}},Zr={run:function(){var o=this,d=o.slides.eq(o.activeIndex),g=o.params.autoplay.delay;d.attr("data-swiper-autoplay")&&(g=d.attr("data-swiper-autoplay")||o.params.autoplay.delay),o.autoplay.timeout=fe.nextTick(function(){o.params.autoplay.reverseDirection?o.params.loop?(o.loopFix(),o.slidePrev(o.params.speed,!0,
13!0),o.emit("autoplay")):o.isBeginning?o.params.autoplay.stopOnLastSlide?o.autoplay.stop():(o.slideTo(o.slides.length-1,o.params.speed,!0,!0),o.emit("autoplay")):(o.slidePrev(o.params.speed,!0,!0),o.emit("autoplay")):o.params.loop?(o.loopFix(),o.slideNext(o.params.speed,!0,!0),o.emit("autoplay")):o.isEnd?o.params.autoplay.stopOnLastSlide?o.autoplay.stop():(o.slideTo(0,o.params.speed,!0,!0),o.emit("autoplay")):(o.slideNext(o.params.speed,!0,!0),o.emit("autoplay"))},g)},start:function(){var o=this;return typeof o.autoplay.timeout<"u"||o.autoplay.running?!1:(o.autoplay.running=!0,o.emit("autoplayStart"),o.autoplay.run(),!0)},stop:function(){var o=this;return!o.autoplay.running||typeof o.autoplay.timeout>"u"?!1:(o.autoplay.timeout&&(clearTimeout(o.autoplay.timeout),o.autoplay.timeout=void 0),o.autoplay.running=!1,o.emit("autoplayStop"),!0)},pause:function(o){var d=this;d.autoplay.running&&(d.autoplay.paused||(d.autoplay.timeout&&clearTimeout(d.autoplay.timeout),d.autoplay.paused=!0,o===0||!d.params.autoplay.waitForTransition?(d.autoplay.paused=!1,d.autoplay.run()):(d.$wrapperEl[0].addEventListener("transitionend",d.autoplay.onTransitionEnd),d.$wrapperEl[0].addEventListener("webkitTransitionEnd",d.autoplay.onTransitionEnd))))}},ln={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var o=this;fe.extend(o,{autoplay:{running:!1,paused:!1,run:Zr.run.bind(o),start:Zr.start.bind(o),stop:Zr.stop.bind(o),pause:Zr.pause.bind(o),onTransitionEnd:function(g){!o||o.destroyed||!o.$wrapperEl||g.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.autoplay.onTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.autoplay.onTransitionEnd),o.autoplay.paused=!1,o.autoplay.running?o.autoplay.run():o.autoplay.stop())}}})},on:{init:function(){var o=this;o.params.autoplay.enabled&&o.autoplay.start()},beforeTransitionStart:function(o,d){var g=this;g.autoplay.running&&(d||!g.params.autoplay.disableOnInteraction?g.autoplay.pause(o):g.autoplay.stop())},sliderFirstMove:function(){var o=this;o.autoplay.running&&(o.params.autoplay.disableOnInteraction?o.autoplay.stop():o.autoplay.pause())},destroy:function(){var o=this;o.autoplay.running&&o.autoplay.stop()}}},mn={setTranslate:function(){for(var o=this,d=o.slides,g=0;g<d.length;g+=1){var y=o.slides.eq(g),C=y[0].swiperSlideOffset,I=-C;o.params.virtualTranslate||(I-=o.translate);var N=0;o.isHorizontal()||(N=I,I=0);var V=o.params.fadeEffect.crossFade?Math.max(1-Math.abs(y[0].progress),0):1+Math.min(Math.max(y[0].progress,-1),0);y.css({opacity:V}).transform("translate3d("+I+"px, "+N+"px, 0px)")}},setTransition:function(o){var d=this,g=d.slides,y=d.$wrapperEl;if(g.transition(o),d.params.virtualTranslate&&o!==0){var C=!1;g.transitionEnd(function(){if(!C&&!(!d||d.destroyed)){C=!0,d.animating=!1;for(var I=["webkitTransitionEnd","transitionend"],N=0;N<I.length;N+=1)y.trigger(I[N])}})}}},Ln={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var o=this;fe.extend(o,{fadeEffect:{setTranslate:mn.setTranslate.bind(o),setTransition:mn.setTransition.bind(o)}})},on:{beforeInit:function(){var o=this;if(o.params.effect==="fade"){o.classNames.push(o.params.containerModifierClass+"fade");var d={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};fe.extend(o.params,d),fe.extend(o.originalParams,d)}},setTranslate:function(){var o=this;o.params.effect==="fade"&&o.fadeEffect.setTranslate()},setTransition:function(o){var d=this;d.params.effect==="fade"&&d.fadeEffect.setTransition(o)}}},vn={setTranslate:function(){var o=this,d=o.$el,g=o.$wrapperEl,y=o.slides,C=o.width,I=o.height,N=o.rtlTranslate,V=o.size,ie=o.params.cubeEffect,le=o.isHorizontal(),Ae=o.virtual&&o.params.virtual.enabled,u=0,v;ie.shadow&&(le?(v=g.find(".swiper-cube-shadow"),v.length===0&&(v=a('<div class="swiper-cube-shadow"></div>'),g.append(v)),v.css({height:C+"px"})):(v=d.find(".swiper-cube-shadow"),v.length===0&&(v=a('<div class="swiper-cube-shadow"></div>'),d.append(v))));for(var x=0;x<y.length;x+=1){var E=y.eq(x),D=x;Ae&&(D=parseInt(E.attr("data-swiper-slide-index"),10));
13var F=D*90,O=Math.floor(F/360);N&&(F=-F,O=Math.floor(-F/360));var Y=Math.max(Math.min(E[0].progress,1),-1),K=0,ae=0,he=0;D%4===0?(K=-O*4*V,he=0):(D-1)%4===0?(K=0,he=-O*4*V):(D-2)%4===0?(K=V+O*4*V,he=V):(D-3)%4===0&&(K=-V,he=3*V+V*4*O),N&&(K=-K),le||(ae=K,K=0);var ke="rotateX("+(le?0:-F)+"deg) rotateY("+(le?F:0)+"deg) translate3d("+K+"px, "+ae+"px, "+he+"px)";if(Y<=1&&Y>-1&&(u=D*90+Y*90,N&&(u=-D*90-Y*90)),E.transform(ke),ie.slideShadows){var me=le?E.find(".swiper-slide-shadow-left"):E.find(".swiper-slide-shadow-top"),Re=le?E.find(".swiper-slide-shadow-right"):E.find(".swiper-slide-shadow-bottom");me.length===0&&(me=a('<div class="swiper-slide-shadow-'+(le?"left":"top")+'"></div>'),E.append(me)),Re.length===0&&(Re=a('<div class="swiper-slide-shadow-'+(le?"right":"bottom")+'"></div>'),E.append(Re)),me.length&&(me[0].style.opacity=Math.max(-Y,0)),Re.length&&(Re[0].style.opacity=Math.max(Y,0))}}if(g.css({"-webkit-transform-origin":"50% 50% -"+V/2+"px","-moz-transform-origin":"50% 50% -"+V/2+"px","-ms-transform-origin":"50% 50% -"+V/2+"px","transform-origin":"50% 50% -"+V/2+"px"}),ie.shadow)if(le)v.transform("translate3d(0px, "+(C/2+ie.shadowOffset)+"px, "+-C/2+"px) rotateX(90deg) rotateZ(0deg) scale("+ie.shadowScale+")");else{var Je=Math.abs(u)-Math.floor(Math.abs(u)/90)*90,mt=1.5-(Math.sin(Je*2*Math.PI/360)/2+Math.cos(Je*2*Math.PI/360)/2),ft=ie.shadowScale,kt=ie.shadowScale/mt,Dt=ie.shadowOffset;v.transform("scale3d("+ft+", 1, "+kt+") translate3d(0px, "+(I/2+Dt)+"px, "+-I/2/kt+"px) rotateX(-90deg)")}var Wt=et.isSafari||et.isUiWebView?-V/2:0;g.transform("translate3d(0px,0,"+Wt+"px) rotateX("+(o.isHorizontal()?0:u)+"deg) rotateY("+(o.isHorizontal()?-u:0)+"deg)")},setTransition:function(o){var d=this,g=d.$el,y=d.slides;y.transition(o).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(o),d.params.cubeEffect.shadow&&!d.isHorizontal()&&g.find(".swiper-cube-shadow").transition(o)}},Fn={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var o=this;fe.extend(o,{cubeEffect:{setTranslate:vn.setTranslate.bind(o),setTransition:vn.setTransition.bind(o)}})},on:{beforeInit:function(){var o=this;if(o.params.effect==="cube"){o.classNames.push(o.params.containerModifierClass+"cube"),o.classNames.push(o.params.containerModifierClass+"3d");var d={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};fe.extend(o.params,d),fe.extend(o.originalParams,d)}},setTranslate:function(){var o=this;o.params.effect==="cube"&&o.cubeEffect.setTranslate()},setTransition:function(o){var d=this;d.params.effect==="cube"&&d.cubeEffect.setTransition(o)}}},gn={setTranslate:function(){for(var o=this,d=o.slides,g=o.rtlTranslate,y=0;y<d.length;y+=1){var C=d.eq(y),I=C[0].progress;o.params.flipEffect.limitRotation&&(I=Math.max(Math.min(C[0].progress,1),-1));var N=C[0].swiperSlideOffset,V=-180*I,ie=V,le=0,Ae=-N,u=0;if(o.isHorizontal()?g&&(ie=-ie):(u=Ae,Ae=0,le=-ie,ie=0),C[0].style.zIndex=-Math.abs(Math.round(I))+d.length,o.params.flipEffect.slideShadows){var v=o.isHorizontal()?C.find(".swiper-slide-shadow-left"):C.find(".swiper-slide-shadow-top"),x=o.isHorizontal()?C.find(".swiper-slide-shadow-right"):C.find(".swiper-slide-shadow-bottom");v.length===0&&(v=a('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"left":"top")+'"></div>'),C.append(v)),x.length===0&&(x=a('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"right":"bottom")+'"></div>'),C.append(x)),v.length&&(v[0].style.opacity=Math.max(-I,0)),x.length&&(x[0].style.opacity=Math.max(I,0))}C.transform("translate3d("+Ae+"px, "+u+"px, 0px) rotateX("+le+"deg) rotateY("+ie+"deg)")}},setTransition:function(o){var d=this,g=d.slides,y=d.activeIndex,C=d.$wrapperEl;if(g.transition(o).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(o),d.params.virtualTranslate&&o!==0){var I=!1;g.eq(y).transitionEnd(function(){if(!I&&!(!d||d.destroyed)){I=!0,d.animating=!1;for(var V=["webkitTransitionEnd","transitionend"],ie=0;ie<V.length;ie+=1)C.trigger(V[ie])}})}}},In={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var o=this;fe.extend(o,{flipEffect:{setTranslate:gn.setTranslate.bind(o),setTransition:gn.setTransition.bind(o)}})},on:{beforeInit:function(){var o=this;if(o.params.effect==="flip"){o.classNames.push(o.params.containerModifierClass+"flip"),o.classNames.push(o.params.containerModifierClass+"3d");var d={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};fe.extend(o.params,d),fe.extend(o.originalParams,d)}},setTranslate:function(){var o=this;o.params.effect==="flip"&&o.flipEffect.setTranslate()},setTransition:function(o){var d=this;d.params.effect==="flip"&&d.flipEffect.setTransition(o)}}},_n={setTranslate:function(){for(var o=this,d=o.width,g=o.height,y=o.slides,C=o.$wrapperEl,I=o.slidesSizesGrid,N=o.params.coverflowEffect,V=o.isHorizontal(),ie=o.translate,le=V?-ie+d/2:-ie+g/2,Ae=V?N.rotate:-N.rotate,u=N.depth,v=0,x=y.length;v<x;v+=1){var E=y.eq(v),D=I[v],F=E[0].swiperSlideOffset,O=(le-F-D/2)/D*N.modifier,Y=V?Ae*O:0,K=V?0:Ae*O,ae
13=-u*Math.abs(O),he=V?0:N.stretch*O,ke=V?N.stretch*O:0;Math.abs(ke)<.001&&(ke=0),Math.abs(he)<.001&&(he=0),Math.abs(ae)<.001&&(ae=0),Math.abs(Y)<.001&&(Y=0),Math.abs(K)<.001&&(K=0);var me="translate3d("+ke+"px,"+he+"px,"+ae+"px) rotateX("+K+"deg) rotateY("+Y+"deg)";if(E.transform(me),E[0].style.zIndex=-Math.abs(Math.round(O))+1,N.slideShadows){var Re=V?E.find(".swiper-slide-shadow-left"):E.find(".swiper-slide-shadow-top"),Je=V?E.find(".swiper-slide-shadow-right"):E.find(".swiper-slide-shadow-bottom");Re.length===0&&(Re=a('<div class="swiper-slide-shadow-'+(V?"left":"top")+'"></div>'),E.append(Re)),Je.length===0&&(Je=a('<div class="swiper-slide-shadow-'+(V?"right":"bottom")+'"></div>'),E.append(Je)),Re.length&&(Re[0].style.opacity=O>0?O:0),Je.length&&(Je[0].style.opacity=-O>0?-O:0)}}if(ye.pointerEvents||ye.prefixedPointerEvents){var mt=C[0].style;mt.perspectiveOrigin=le+"px 50%"}},setTransition:function(o){var d=this;d.slides.transition(o).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(o)}},wn={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var o=this;fe.extend(o,{coverflowEffect:{setTranslate:_n.setTranslate.bind(o),setTransition:_n.setTransition.bind(o)}})},on:{beforeInit:function(){var o=this;o.params.effect==="coverflow"&&(o.classNames.push(o.params.containerModifierClass+"coverflow"),o.classNames.push(o.params.containerModifierClass+"3d"),o.params.watchSlidesProgress=!0,o.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var o=this;o.params.effect==="coverflow"&&o.coverflowEffect.setTranslate()},setTransition:function(o){var d=this;d.params.effect==="coverflow"&&d.coverflowEffect.setTransition(o)}}},qr={init:function(){var o=this,d=o.params,g=d.thumbs,y=o.constructor;
13g.swiper instanceof y?(o.thumbs.swiper=g.swiper,fe.extend(o.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),fe.extend(o.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):fe.isObject(g.swiper)&&(o.thumbs.swiper=new y(fe.extend({},g.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),o.thumbs.swiperCreated=!0),o.thumbs.swiper.$el.addClass(o.params.thumbs.thumbsContainerClass),o.thumbs.swiper.on("tap",o.thumbs.onThumbClick)},onThumbClick:function(){var o=this,d=o.thumbs.swiper;if(d){var g=d.clickedIndex,y=d.clickedSlide;if(!(y&&a(y).hasClass(o.params.thumbs.slideThumbActiveClass))&&!(typeof g>"u"||g===null)){var C;if(d.params.loop?C=parseInt(a(d.clickedSlide).attr("data-swiper-slide-index"),10):C=g,o.params.loop){var I=o.activeIndex;o.slides.eq(I).hasClass(o.params.slideDuplicateClass)&&(o.loopFix(),o._clientLeft=o.$wrapperEl[0].clientLeft,I=o.activeIndex);var N=o.slides.eq(I).prevAll('[data-swiper-slide-index="'+C+'"]').eq(0).index(),V=o.slides.eq(I).nextAll('[data-swiper-slide-index="'+C+'"]').eq(0).index();typeof N>"u"?C=V:typeof V>"u"?C=N:V-I<I-N?C=V:C=N}o.slideTo(C)}}},update:function(o){var d=this,g=d.thumbs.swiper;if(g){var y=g.params.slidesPerView==="auto"?g.slidesPerViewDynamic():g.params.slidesPerView;if(d.realIndex!==g.realIndex){var C=g.activeIndex,I;if(g.params.loop){g.slides.eq(C).hasClass(g.params.slideDuplicateClass)&&(g.loopFix(),g._clientLeft=g.$wrapperEl[0].clientLeft,C=g.activeIndex);var N=g.slides.eq(C).prevAll('[data-swiper-slide-index="'+d.realIndex+'"]').eq(0).index(),V=g.slides.eq(C).nextAll('[data-swiper-slide-index="'+d.realIndex+'"]').eq(0).index();typeof N>"u"?I=V:typeof V>"u"?I=N:V-C===C-N?I=C:V-C<C-N?I=V:I=N}else I=d.realIndex;g.visibleSlidesIndexes.indexOf(I)<0&&(g.params.centeredSlides?I>C?I=I-Math.floor(y/2)+1:I=I+Math.floor(y/2)-1:I>C&&(I=I-y+1),g.slideTo(I,o?0:void 0))}var ie=1,le=d.params.thumbs.slideThumbActiveClass;if(d.params.slidesPerView>1&&!d.params.centeredSlides&&(ie=d.params.slidesPerView),g.slides.removeClass(le),g.params.loop)for(var Ae=0;Ae<ie;Ae+=1)g.$wrapperEl.children('[data-swiper-slide-index="'+(d.realIndex+Ae)+'"]').addClass(le);else for(var u=0;u<ie;u+=1)g.slides.eq(d.realIndex+u).addClass(le)}}},yn={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var o=this;fe.extend(o,{thumbs:{swiper:null,init:qr.init.bind(o),update:qr.update.bind(o),onThumbClick:qr.onThumbClick.bind(o)}})},on:{beforeInit:function(){var o=this,d=o.params,g=d.thumbs;!g||!g.swiper||(o.thumbs.init(),o.thumbs.update(!0))},slideChange:function(){var o=this;o.thumbs.swiper&&o.thumbs.update()},update:function(){var o=this;o.thumbs.swiper&&o.thumbs.update()},resize:function(){var o=this;o.thumbs.swiper&&o.thumbs.update()},observerUpdate:function(){var o=this;o.thumbs.swiper&&o.thumbs.update()},setTransition:function(o){var d=this,g=d.thumbs.swiper;g&&g.setTransition(o)},beforeDestroy:function(){var o=this,d=o.thumbs.swiper;d&&o.thumbs.swiperCreated&&d&&d.destroy()}}},cn=[cr,er,Se,Ue,pt,Qt,an,Yr,En,xr,Wr,Sn,Br,Cn,hn,pn,An,kn,ln,Ln,Fn,In,wn,yn];return typeof qt.use>"u"&&(qt.use=qt.Class.use,qt.installModule=qt.Class.installModule),qt.use(cn),qt})})(swiper);var swiperExports=swiper.exports;const Swiper=getDefaultExportFromCjs(swiperExports);let MutationObserver$1=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;$$1.fn.attrchange=function(e){if(MutationObserver$1){let r={subtree:!1,attributes:!0},t=new MutationObserver$1(function(n){n.forEach(function(i){e.call(i.target,i.attributeName)})});return this.each(function(){t.observe(this,r)})}return null};function SliderInitializer(){}SliderInitializer.prototype={defaultSliderConfigs:[{selector:".teaser-brands__slider",config:{pagination:{el:".carousel-indicators",clickable:!0,bulletElement:"li",bulletClass:"indicator",bulletActiveClass:"active"},navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},autoplay:{delay:6e3},speed:600,slidesPerView:4,slidesPerGroup:4,breakpoints:{480:{slidesPerView:2,slidesPerGroup:1},767:{slidesPerView:3,slidesPerGroup:3},1024:{slidesPerView:4,slidesPerGroup:4}}}},{selector:".slider-nearest-merchant",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},slidesPerView:3,slidesPerGroup:3,breakpoints:{767:{slidesPerView:1,slidesPerGroup:1},1024:{slidesPerView:2,slidesPerGroup:2}},centerInsufficientSlides:!0}}
13,{selector:".slider-recommendation[data-slider-config='default']",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},preloadImages:!1,lazy:{elementClass:"lazy",loadedClass:"loaded",preloaderClass:"preload-container"},slidesPerView:3,slidesPerGroup:3,breakpoints:{480:{slidesPerView:1,slidesPerGroup:1},767:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3}}}},{selector:".slider-recommendation[data-slider-config='orderedProductCinema']",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},preloadImages:!1,lazy:{elementClass:"lazy",loadedClass:"loaded",preloaderClass:"preload-container"},slidesPerView:4,slidesPerGroup:4,breakpoints:{480:{slidesPerView:1,slidesPerGroup:1},767:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3}}}},{selector:".slider-recommendation[data-slider-config='accordion']",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},preloadImages:!1,lazy:{elementClass:"lazy",loadedClass:"loaded",preloaderClass:"preload-container"},slidesPerView:4,slidesPerGroup:4,breakpoints:{480:{slidesPerView:1,slidesPerGroup:1},700:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3}}}},{selector:".slider-recommendation[data-slider-config='ads-accessories']",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},preloadImages:!1,lazy:{elementClass:"lazy",loadedClass:"loaded",preloaderClass:"preload-container"},slidesPerView:4,slidesPerGroup:4,breakpoints:{480:{slidesPerView:1,slidesPerGroup:1},767:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3}}}},{selector:".slider-recommendation[data-slider-config='product-listing']",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},preloadImages:!1,lazy:{elementClass:"lazy",loadedClass:"loaded",preloaderClass:"preload-container"},slidesPerView:3,slidesPerGroup:3,breakpoints:{480:{slidesPerView:1,slidesPerGroup:1},767:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3}}}},{selector:".slider-recommendation[data-slider-config='landing-page']",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},preloadImages:!1,lazy:{elementClass:"lazy",loadedClass:"loaded",preloaderClass:"preload-container"},slidesPerView:4,slidesPerGroup:4,breakpoints:{480:{slidesPerView:1,slidesPerGroup:1},767:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3}}}},{selector:".slider-teaser",config:{pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev",disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden"},centeredSlides:!0,loop:!0,autoplay:{delay:6e3},speed:600}}],sliderConfigs:{productSliderConfig:{selector:".slider-prd-image",config:{navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},loop:!0,slidesPerView:1,preloadImages:!1,lazy:{loadPrevNext:!0,elementClass:"lazy",loadedClass:"loaded",preloaderClass:"preload-container"}}},imageViewerConfig:{selector:".image-viewer",config:{allowTouchMove:!0,centeredSlides:!0,navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},slidesPerView:1,slidesPerGroup:1,preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0}}},imageViewerThumbsConfig:{selector:".image-viewer-thumbs",config:{centeredSlides:!1,spaceBetween:12,navigation:{nextEl:".right.carousel-control",prevEl:".left.carousel-control"},slidesPerView:4,slidesPerGroup:4,preloadImages:!1,lazy:{loadOnTransitionStart:!0},breakpoints:{480:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:4,slidesPerGroup:4}}}}},multiInit:function(e){let r=e||this.defaultSliderConfigs,t=[];return $$1.map(r,function(n){if($$1(n.selector).length>0)for(const i of $$1(n.selector))if(n.selector===".slider-teaser"&&$$1(".swiper-slide",i).length===1)i.classList.add("deactivated");else{t.push(new Swiper(i,n.config));const a=$$1(i).closest(".tab-pane");if(a.length>0&&a.attrchange(function(s){s==="class"&&a.hasClass("active")&&i.swiper.update(
13)}),n.selector===".slider-recommendation[data-slider-config='orderedProductCinema']"){const s=$$1(i).attr("data-autoplay-delay"),c=$$1(i).attr("data-autoplay-number-of-boxes");s&&c&&!window.matchMedia("(max-width: 1024px)").matches&&c>n.config.slidesPerView&&(i.swiper.params.autoplay.delay=s,i.swiper.params.autoplay.disableOnInteraction=!1,i.swiper.autoplay.start())}}}),t},singleInit:function(e,r){return new Swiper(e,r)}};function ChangeProductAmount(){}ChangeProductAmount.prototype={$form:$$1(),inputClass:".amount",$input:$$1(),deliveryExplanationClass:".delivery-explanation",$deliveryExplanation:$$1(),sumClass:".sum",$sum:$$1(),requestExecuteDelay:150,selectedScaleClass:"graduated-prices__entry__selected",scalesClass:".graduated-prices__entry",sumWithoutGraduationClass:".sum-without-graduation__js",$sumWithoutGraduation:$$1(),sumWithoutGraduationValueClass:".sum-without-graduation-value__js",$sumWithoutGraduationValue:$$1(),sumWithoutGraduationHiddenClass:"sum-without-graduation__hidden",sumReducedClass:"sum__reduced",init:function(e){this.$form=e,this.getElements(),this.addEventListeners()},getElements:function(){this.$input=$$1(this.inputClass,this.$form),this.$deliveryExplanation=$$1(this.deliveryExplanationClass,this.$form),this.$sum=$$1(this.sumClass,this.$form),this.$sumWithoutGraduation=$$1(this.sumWithoutGraduationClass,this.$form),this.$sumWithoutGraduationValue=$$1(this.sumWithoutGraduationValueClass,this.$form)},addEventListeners:function(){let e=this,r=0,t=0,n=null;this.$form.on("submit",function(i){i.preventDefault(),e.$form.trigger("formAmou
13ntSubmitPrevented")}),this.$input.on("input",function(i){i.preventDefault(),r=parseFloat(this.value),clearTimeout(n),n=setTimeout(function(){!isNaN(r)&&r!==t&&(e.requestAmountInformation(),t=r)},e.requestExecuteDelay)})},changeAmount:function(e){this.$deliveryExplanation.text(e.explanation),this.$sum.text(e.sumTotal),this.$sumWithoutGraduationValue.text(e.sumTotalWithDefaultPrice),this.$form.data("curPackagingUnitMultiplier",e.packagingUnitMultiplier),$$1("."+this.selectedScaleClass).removeClass(this.selectedScaleClass);let r=this.selectedScaleClass;$$1(this.scalesClass).each(function(){$$1(this).data("scale")===e.currentSelectedScale&&$$1(this).addClass(r)}),e.currentSelectedScale===0?(this.$sum.removeClass(this.sumReducedClass),this.$sumWithoutGraduation.addClass(this.sumWithoutGraduationHiddenClass)):(this.$sum.addClass(this.sumReducedClass),this.$sumWithoutGraduation.removeClass(this.sumWithoutGraduationHiddenClass))},requestAmountInformation:function(){let e=this,r={itemId:this.$form.data("item-id"),amount:parseFloat(this.$input.val()),amountCoverageUnitEqualsPackagingUnit:this.$form.data("packaging-unit"),amountCoverageUnitEqualsPriceUnit:this.$form.data("price-unit"),primaryMerchantId:this.$form.data("zr")};$$1.ajax({method:"POST",url:window.cfg.requestAmountInformation,data:r}).done(function(t){t.success?e.changeAmount(t):location.reload()}).fail(function(){window.console.log("ERROR: failed to get amount informations")})}};function ElementInViewport(){}ElementInViewport.prototype={lastVisibility:null,isElementInViewport:function(e){typeof $$1=="function"&&e instanceof $$1&&(e=e[0]);let r=e.getBoundingClientRect();return r.bottom>=0&&r.top<=(window.innerHeight||document.documentElement.clientHeight)&&r.right>=0&&r.left<=(window.innerWidth||document.documentElement.clientWidth)},onVisibilityChange:function(e,r){let t=this;return function(){let n=t.isElementInViewport(e);n!==t.lastVisibility&&(t.lastVisibility=n,typeof r=="function"&&r(n))}}};var CartPopup=function(){function e(){this.$cartBtn=$$1(".js_cart-btn"),this.$cartSum=$$1(),this.$cartCounts=$$1(),this.popupTimeout=0,this.cartPopupOpen=!1,this.$basketStatusBar=$$1(),this.$basketButton=$$1(),this.elementInViewport=null,this.basketStatusBarHtml=` 14 <div class="basket-status-bar"> 15 <div class="container"> 16 <span class="status-text"><span class="icon nm-icon nm-icon-checkmark_02"></span>zum Warenkorb hinzugefügt</span> 17 <span class="cart-btn"> 18 <span class="nm-icon nm-icon-shopping-cart"></span> 19 <span class="cart-count badge header__badge merchant-secondary-color__color merchant-secondary-color__background-color">0</span> 20 </span> 21 <a class="btn btn-primary status-bar-cart-button" href="/basket/">zum Warenkorb</a> 22 </div> 23 </div>`,$$1("body").append(this.basketStatusBarHtml),this.$basketStatusBar=$$1(".basket-status-bar"),this.$cartSum=$$1(".cart-text",this.$cartBtn),this.$cartCounts=$$1(".basket-count"),this.$basketButton=$$1(".status-bar-cart-button"),this.elementInViewport=new ElementInViewport}return e.prototype.addEventListeners=function(){var r=this;if(this.$cartBtn.on("cart-item::add",function(n,i,a){r.updateCartButton(i.total,i.count,a),clearTimeout(r.popupTimeout);var s=n.target.dataset.title?n.target.dataset.title:"Gerade hinzugefügt:";r.$cartBtn.popover({container:".cart-header-wrapper",title:s+'<span class="close btn-popover-close">×</span>',content:i.markup,placement:"bottom",html:!0,trigger:"manual"}),r.show(),r.popupTimeout=window.setTimeout(function(){r.hide()},3e3)}),$$1("body").on("click",function(n){($$1(".btn-popover-close").is(n.target)||!$$1(".js_cart-btn, .js_add-to-cart").is(n.target)&&$$1(".js_cart-btn, .js_add-to-cart, .popover").has(n.target).length===0&&r.cartPopupOpen)&&r.hide()}),this.elementInViewport){var t=this.elementInViewport.onVisibilityChange($$1(".nav-main-wrapper"),function(n){var i=document.querySelector("body");i&&(n?i.classList.remove("header-elements-outside-vp"):i.classList.add("header-elements-outside-vp"))});$$1(window).on("DOMContentLoaded load resize scroll",t)}},e.prototype.show=function(){this.$cartBtn.popover("show"),this.$basketStatusBar.addClass("active"),this.cartPopupOpen=!0},e.prototype.hide=function(){this.$cartBtn.popover("destroy"),this.$basketStatusBar.removeClass("active"),this.cartPopupOpen=!1},e.prototype.updateCartButton=function(r,t,n){this.$cartSum.text(r),this.$cartCounts.text(t),this.$basketButton.attr("href",n+"basket/")},e}();const config=window._is_config||{};typeof window._is_config>"u"&&console.log("window._is_config not found");function Argus(){Pubsub.subscribe("core.attach",$.proxy(this.attach,this))}Argus.prototype={attach:function(e,r){r===document&&config.argusJson&&this.landmark(config.argusJson)},ajax:function(e){this.landmark(e)},landmark:function(e){e.forEach(function(r){var t=r.type,n="";for(var i in r.params)n+="&",n+=i,n+="=",n+=r.params[i];typeof setLandmark=="function"&&setLandmark(t,n)})},pageLandmark:function(e,r){typeof setLandmark=="function"&&setLandmark("page","&pc="+e+"&pc2="+r)},displayLandmark:function(e){var r="N/A";switch(e){case"res.xs":r="XS";break;case"res.sm":r="S";break;case"res.md":r="M";break;case"res.lg":r="L";break}typeof setLandmark=="function"&&setLandmark("displaytype","&displaytype="+r)}};var __read$a=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$9=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function getSelectedBarCuts(e){return __spreadArray$9([],__read$a(e),!1).filter(function(r){var t=r.dataset.key,n=parseInt(r.value);return t!==void 0&&!Number.isNaN(n)&&n>0}).flatMap(function(r){for(var t=[],n=0;n<parseInt(r.value);n++)t.push(Object.freeze({length:r.dataset.key}));return t})}function getSelectedBoardCuts(e){return __spreadArray$9([],__read$a(e),!1).filter(function(r){var t=r.dataset.key,n=parseInt(r.value);return!Number.isNaN(n)&&n>0&&t!==void 0}).flatMap(function(r){for(var t=[],n=r.dataset.key.split(":"),i=0;i<parseInt(r.value);i++)t.push(Object.freeze({length:n[0],width:n[1]}));return t})}function isWithBarOrBoardCuttingServices(){return hasBarCuttingServices()||hasBoardCuttingServices()}function hasBarCuttingServices(){var e=document.getElementById("isBarCuttingService");return e?e.value==="true":!1}function hasBoardCuttingServices(){var e=document.getElementById("isBoardCuttingService");return e?e.value==="true":!1}function getCsrfFromHeader(){var e=document.querySelector('[name="csrf"]');return e&&e instanceof HTMLMetaElement?e.content:null}function getCsrfTokenFromWebPage(){var e=document.querySelector('input[name="_csrf"]');return e&&e instanceof HTMLInputElement?e.value:getCsrfFromHeader()}function getCsrfToken(e,r){if(e){if(r&&r!=="")return r;throw new Error("Custom CSRF token should be used, but non provided")}return getCsrfTokenFromWebPage()}function getDefaultFetchOptions(e,r){var t;try{t=getCsrfToken(e,r)}catch(n){throw new Error(n)}if(t)return{cache:"default",credentials:"same-origin",headers:{"X-CSRF-TOKEN":t}};throw new Error("Either no CSRF token was provided or none was found on the web page")}var __awaiter$h=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$h=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function fetchWithPost(e,r){return __awaiter$h(this,void 0,void 0,function(){var t,n;return __generator$h(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),t=getCsrfTokenFromWebPage(),[4,fetch(e,{method:"POST",headers:{"X-CSRF-TOKEN":t,"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(r)})];case 1:return[2,i.sent()];case 2:return n=i.sent(),console.error("[".concat(new Date().toLocaleStr
23ing(),"]: "),n),[2,null];case 3:return[2]}})})}function evaluateResponse(e,r){return __awaiter$h(this,void 0,void 0,function(){var t;return __generator$h(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),e.ok?[4,e.json()]:[3,2];case 1:return[2,n.sent()];case 2:throw new Error("[".concat(e.status,"]: ").concat(e.statusText));case 3:return[3,5];case 4:if(t=n.sent(),r)try{r(e,t)}catch(i){console.error(i)}else console.error(t);return[3,5];case 5:return[2,null]}})})}function CartAdd(){new CartPopup().addEventListeners(),this.argus=new Argus}CartAdd.prototype={allowedCartTypes:["delivery","pickup"],triggerFeedbackClass:"btn--cart-item-added",$lastTrigger:$$1(),init:function(e){this.trackinghelper=e},initAddItem:function(e,r,t,n,i,a,s){let c=this,h="",l="",p={itemId:t,productId:n,categoryId:i,zr:a};e.on("click",function(b){b.preventDefault();const m=$$1(this);l=m.data("base-url"),h=m.data("cart"),c.allowedCartTypes.includes(h)&&(p.amount=parseFloat(r.val()),p.additionalInformation=s.val(),isWithBarOrBoardCuttingServices()&&m.hasClass("js_add-cuttings-to-cart")?c.addItemWithCuttings(p,l,h,m):c.addItem(p,l,h,m))})},addItemWithCuttings:async function(e,r,t,n){const i=document.querySelectorAll('#cuttingServiceForm input[name="cuttingposition"]');delete e.amount;let a="bar";hasBarCuttingServices()?e.positions=getSelectedBarCuts(i):hasBoardCuttingServices()&&(a="board",e.positions=getSelectedBoardCuts(i));const s=`${r}basket/add/cuttingservice/${a}/${t}/`,c=await fetchWithPost(s,e),h=await evaluateResponse(c,this.handleFailedAddToCart);
23if(h){this.trackSuccessfulAddToCart(h,r,n);const l=new CustomEvent("basket-item::add",{detail:h});document.dispatchEvent(l)}else console.error(`[${new Date().toLocaleString()}] [CardAdd.addItemWithCuttings()] Error while adding cutting item to basket`)},addItem:async function(e,r,t,n){const i=new URLSearchParams({itemId:e.itemId,productId:e.productId,categoryId:e.categoryId,zr:e.zr,amount:e.amount}),a=r+"basket/add/"+t+"/?"+i.toString(),s=await fetchWithPost(a,null),c=await evaluateResponse(s,this.handleFailedAddToCart);if(c){this.trackSuccessfulAddToCart(c,r,n);const h=new CustomEvent("basket-item::add",{detail:c});document.dispatchEvent(h)}else console.error(`[${new Date().toLocaleString()}] [CardAdd.addItem()] Error while adding item to basket`)},handleFailedAddToCart:async function(e){const r=await e.text(),t=r||$$1("#cart-error-overlay .modal-message").data("default-message");console.error("ERROR: ADD TO CART FAILED ("+t+")");const n=document.querySelector("#cart-error-overlay");n.querySelector(".modal-message").textContent=t,n.showModal()},trackSuccessfulAddToCart:function(e,r,t){let n=1;if($$1("form[data-item-id]").data("curPackagingUnitMultiplier")&&(n=$$1("form[data-item-id]").data("curPackagingUnitMultiplier")),t.data("tracking")){let i=t.data("tracking").trackingData;$$1.each(i,(a,s)=>{a===0&&(s.ecommerce.add.products[0].quantity=n),a===1&&(s.ecom.ecommerce.add.products[0].quantity=n),this.trackinghelper.trustagents.push(s)})}this.trackinghelper.trackBasket(e.merchantCount,e.productCount,e.totalAsNumber)}};window.jQuery=$$1;window.$=$$1;(function(e){typeof ko<"u"&&ko.bindingHandlers&&!ko.bindingHandlers.multiselect&&(ko.bindingHandlers.multiselect={after:["options","value","selectedOptions"],init:function(n,i,a,s,c){var h=e(n),l=ko.toJS(i());if(h.multiselect(l),a.has("options")){var p=a.get("options");ko.isObservable(p)&&ko.computed({read:function(){p(),setTimeout(function(){var A=h.data("multiselect");A&&A.updateOriginalOptions(),h.multiselect("rebuild")},1)},disposeWhenNodeIsRemoved:n})}if(a.has("value")){var b=a.get("value");ko.isObservable(b)&&ko.computed({read:function(){b(),setTimeout(function(){h.multiselect("refresh")},1)},disposeWhenNodeIsRemoved:n}).extend({rateLimit:100,notifyWhenChangesStop:!0})}if(a.has("selectedOptions")){var m=a.get("selectedOptions");ko.isObservable(m)&&ko.computed({read:function(){m(),setTimeout(function(){h.multiselect("refresh")},1)},disposeWhenNodeIsRemoved:n}).extend({rateLimit:100,notifyWhenChangesStop:!0})}ko.utils.domNodeDisposal.addDisposeCallback(n,function(){h.multiselect("destroy")})},update:function(n,i,a,s,c){var h=e(n),l=ko.toJS(i());h.multiselect("setOptions",l),h.multiselect("rebuild")}});function r(n,i){for(var a=0;a<n.length;++a)i(n[a],a)}function t(n,i){this.$select=e(n),this.$select.attr("data-placeholder")&&(i.nonSelectedText=this.$select.data("placeholder")),this.options=this.mergeOptions(e.extend({},i,this.$select.data())),this.originalOptions=this.$select.clone()[0].options,this.query="",this.searchTimeout=null,this.lastToggledInput=null,this.options.multiple=this.$select.attr("multiple")==="multiple",this.options.onChange=e.proxy(this.options.onChange,this),this.options.onDropdownShow=e.proxy(this.options.onDropdownShow,this),this.options.onDropdownHide=e.proxy(this.options.onDropdownHide,this),this.options.onDropdownShown=e.proxy(this.options.onDropdownShown,this),this.options.onDropdownHidden=e.proxy(this.options.onDropdownHidden,this),this.buildContainer(),this.buildButton(),this.buildDropdown(),this.buildSelectAll(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll(),this.options.disableIfEmpty&&e("option",this.$select).length<=0&&this.disable(),this.$select.hide().after(this.$container)}t.prototype={defaults:{buttonText:function(n,i){if(n.length===0)return this.nonSelectedText;if(this.allSelectedText&&n.length===e("option",e(i)).length&&e("option",e(i)).length!==1&&this.multiple)return this.selectAllNumber?this.allSelectedText+" ("+n.length+")":this.allSelectedText;if(n.length>this.numberDisplayed)return n.length+" "+this.nSelectedText;var a="",s=this.delimiterText;return n.each(function(){var c=e(this).attr("label")!==void 0?e(this).attr("label"):e(this).text();a+=c+s}),a.substr(0,a.length-2)}
23,buttonTitle:function(n,i){if(n.length===0)return this.nonSelectedText;var a="",s=this.delimiterText;return n.each(function(){var c=e(this).attr("label")!==void 0?e(this).attr("label"):e(this).text();a+=c+s}),a.substr(0,a.length-2)},optionLabel:function(n){return e(n).attr("label")||e(n).text()},onChange:function(n,i){},onDropdownShow:function(n){},onDropdownHide:function(n){},onDropdownShown:function(n){},onDropdownHidden:function(n){},onSelectAll:function(){},enableHTML:!1,buttonClass:"btn btn-default",inheritClass:!1,buttonWidth:"auto",buttonContainer:'<div class="btn-group" />',dropRight:!1,selectedClass:"active",maxHeight:!1,checkboxName:!1,includeSelectAllOption:!1,includeSelectAllIfMoreThan:0,selectAllText:" Select all",selectAllValue:"multiselect-all",selectAllName:!1,selectAllNumber:!0,enableFiltering:!1,enableCaseInsensitiveFiltering:!1,enableClickableOptGroups:!1,filterPlaceholder:"Search",filterBehavior:"text",includeFilterClearBtn:!0,preventInputChangeEvent:!1,nonSelectedText:"None selected",nSelectedText:"selected",allSelectedText:"All selected",numberDisplayed:3,disableIfEmpty:!1,delimiterText:", ",templates:{button:'<button type="button" class="multiselect" data-toggle="dropdown"><span class="multiselect-selected-text"></span> <b class="caret"></b></button>',ul:'<ul class="page-multiselect-container dropdown-menu"></ul>',filter:'<li class="multiselect-item filter"><div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span><input class="form-control multiselect-search" type="text"></div></li>',filterClearBtn:'<span class="input-group-btn"><button class="btn btn-default multiselect-clear-filter" type="button"><i class="glyphicon glyphicon-remove-circle"></i></button></span>',li:'<li><a tabindex="0" class="checkbox"><label></label></a></li>',divider:'<li class="multiselect-item divider"></li>',liGroup:'<li class="multiselect-item multiselect-group"><label></label></li>'}},constructor:t,buildContainer:function(){this.$container=e(this.options.buttonContainer),this.$container.on("show.bs.dropdown",this.options.onDropdownShow),this.$container.on("hide.bs.dropdown",this.options.onDropdownHide),this.$container.on("shown.bs.dropdown",this.options.onDropdownShown),this.$container.on("hidden.bs.dropdown",this.options.onDropdownHidden)},buildButton:function(){this.$button=e(this.options.templates.button).addClass(this.options.buttonClass),this.$select.attr("class")&&this.options.inheritClass&&this.$button.addClass(this.$select.attr("class")),this.$select.prop("disabled")?this.disable():this.enable(),this.options.buttonWidth&&this.options.buttonWidth!=="auto"&&(this.$button.css({width:this.options.buttonWidth,overflow:"hidden","text-overflow":"ellipsis"}),this.$container.css({width:this.options.buttonWidth}));var n=this.$select.attr("tabindex");n&&this.$button.attr("tabindex",n),this.$container.prepend(this.$button)},buildDropdown:function(){this.$ul=e(this.options.templates.ul),this.options.dropRight&&this.$ul.addClass("pull-right"),this.options.maxHeight&&this.$ul.css({"max-height":this.options.maxHeight+"px","overflow-y":"auto","overflow-x":"hidden"}),this.$container.append(this.$ul)},buildDropdownOptions:function(){this.$select.children().each(e.proxy(function(n,i){var a=e(i),s=a.prop("tagName").toLowerCase();a.prop("value")!==this.options.selectAllValue&&(s==="optgroup"?this.createOptgroup(i):s==="option"&&(a.data("role")==="divider"?this.createDivider():this.createOptionValue(i)))},this)),e("li input",this.$ul).on("change",e.proxy(function(n){var i=e(n.target),a=i.prop("checked")||!1,s=i.val()===this.options.selectAllValue;this.options.selectedClass&&(a?i.closest("li").addClass(this.options.selectedClass):i.closest("li").removeClass(this.options.selectedClass));var c=i.val(),h=this.getOptionByValue(c),l=e("option",this.$select).not(h),p=e("input",this.$container).not(i);if(s&&(a?this.selectAll():this.deselectAll()),s||(a?(h.prop("selected",!0),this.options.multiple?h.prop("selected",!0):(this.options.selectedClass&&e(p).closest("li").removeClass(this.options.selectedClass),e(p).prop("checked",!1),l.prop("selected",!1),this.$button.click()),this.options.selectedClass==="active"&&l.closest("a").css("outline","")):h.prop("selected",!1)),this.$select.change(),this.updateButtonText(),this.updateSelectAll(),this.options.onChange(h,a),this.options.preventInputChangeEvent)return!1},this)),e("li a",this.$ul).on("mousedown",function(n){if(n.shiftKey)return!1}),e("li a",this.$ul).on("touchstart click",e.proxy(function(n){n.stopPropagation();var i=e(n.target);if(n.shiftKey&&this.options.multiple){i.is("label")&&(n.preventDefault(),i=i.find("input"),i.prop("checked",!i.prop("checked")));var a=i.prop("checked")||!1;if(this.lastToggledInput!==null&&this.lastToggledInput!==i){var s=i.closest("li").index(),c=this.lastToggledInput.closest("li").index();if(s>c){var h=c;c=s,s=h}++c;var l=this.$ul.find("li").slice(s,c).find("input");l.prop("checked",a),this.options.selectedClass&&l.closest("li").toggleClass(this.options.selectedClass,a);for(var p=0,b=l.length;p<b;p++){var m=e(l[p]),A=this.getOptionByValue(m.val());A.prop("selected",a)}}i.trigger("change")}i.is("input")&&!i.closest("li").is(".multiselect-item")&&(this.lastToggledInput=i),i.blur()},this)),this.$container.off("keydown.multiselect").on("keydown.multiselect",e.proxy(function(n){if(!e('input[type="text"]',this.$container).is(":focus"))if(n.keyCode===9&&this.$container.hasClass("open"))this.$button.click();else{var i=e(this.$container).find("li:not(.divider):not(.disabled) a").filter(":visible");if(!i.length)return;var a=i.index(i.filter(":focus"));n.keyCode===38&&a>0?a--:n.keyCode===40&&a<i.length-1?a++:~a||(a=0);var s=i.eq(a);if(s.focus(),n.keyCode===32||n.keyCode===13){var c=s.find("input");c.prop("checked",!c.prop("checked")),c.change()}n.stopPropagation(),n.preventDefault()}},this)),this.options.enableClickableOptGroups&&this.options.multiple&&e("li.multiselect-group",this.$ul).on("click",e.proxy(function(n){n.stopPropagation();var i=e(n.target).parent(),a=i.nextUntil("li.multiselect-group"),s=a.filter(":visible:not(.disabled)"),c=!0,h=s.find("input");h.each(function(){c=c&&e(this).prop("checked")}),h.prop("checked",!c).trigger("change")},this))},createOptionValue:function(n){var i=e(n);i.is(":selected")&&i.prop("selected",!0);var a=this.options.optionLabel(n),s=i.val(),c=this.options.multiple?"checkbox":"radio",h=e(this.options.templates.li),l=e("label",h);l.addClass(c),this.options.enableHTML?l.html(" "+a):l.text(" "+a);var p=e("<input/>").attr("type",c);p.attr("id","multiselect_"+i.val()),l.attr("for","multiselect_"+i.val()),this.options.checkboxName&&p.attr("name",this.options.checkboxName),l.before(p);var b=i.prop("selected")||!1;p.val(s),s===this.options.selectAllValue&&(h.addClass("multiselect-item multiselect-all"),p.parent().parent().addClass("multiselect-all")),l.attr("title",i.attr("title")),this.$ul.append(h),i.is(":disabled")&&p.attr("disabled","disabled").prop("disabled",!0).closest("a").attr("tabindex","-1").closest("li").addClass("disabled"),p.prop("checked",b),b&&this.options.selectedClass&&p.closest("li").addClass(this.options.selectedClass)},createDivider:function(n){var i=e(this.options.templates.divider);this.$ul.append(i)},createOptgroup:function(n){var i=e(n).prop("label"),a=e(this.options.templates.liGroup);this.options.enableHTML?e("label",a).html(i):e("label",a).text(i),this.options.enableClickableOptGroups&&a.addClass("multiselect-group-clickable"),this.$ul.append(a),e(n).is(":disabled")&&a.addClass("disabled"),e("option",n).each(e.proxy(function(s,c){this.createOptionValue(c)},this))},buildSelectAll:function(){typeof this.options.selectAllValue=="number"&&(this.options.selectAllValue=this.options.selectAllValue.toString());var n=this.hasSelectAll();if(!n&&this.options.includeSelectAllOption&&this.options.multiple&&e("option",this.$select).length>this.options.includeSelectAllIfMoreThan){this.options.includeSelectAllDivider&&this.$ul.prepend(e(this.options.templates.divider));var i=e(this.options.templates.li);e("label",i).addClass("checkbox"),this.options.enableHTML?e("label",i).html(" "+this.options.selectAllText):e("label",i).text(" "+this.options.selectAllText),this.options.selectAllName?e("label",i).prepend('<input type="checkbox" name="'+this.options.selectAllName+'" />'):e("label",i).prepend('<input type="checkbox" />');var a=e("input",i);a.val(this.options.selectAllValue),i.addClass("multiselect-item multiselect-all"),a.parent().parent().addClass("multiselect-all"),this.$ul.prepend(i),a.prop("checked",!1)}},buildFilter:function(){if(this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering){var n=Math.max(this.options.enableFiltering,this.options.enableCaseInsensitiveFiltering);if(this.$select.find("option").length>=n){if(this.$filter=e(this.options.templates.filter),e("input",this.$filter).attr("placeholder",this.options.filterPlaceholder),this.options.includeFilterClearBtn){var i=e(this.options.templates.filterClearBtn);i.on("click",e.proxy(function(a){clearTimeout(this.searchTimeout),this.$filter.find(".multiselect-search").val(""),e("li",this.$ul).show().removeClass("filter-hidden"),this.updateSelectAll()}
23,this)),this.$filter.find(".input-group").append(i)}this.$ul.prepend(this.$filter),this.$filter.val(this.query).on("click",function(a){a.stopPropagation()}).on("input keydown",e.proxy(function(a){a.which===13&&a.preventDefault(),clearTimeout(this.searchTimeout),this.searchTimeout=this.asyncFunction(e.proxy(function(){if(this.query!==a.target.value){this.query=a.target.value;var s,c;e.each(e("li",this.$ul),e.proxy(function(h,l){var p=e("input",l).length>0?e("input",l).val():"",b=e("label",l).text(),m="";if(this.options.filterBehavior==="text"?m=b:this.options.filterBehavior==="value"?m=p:this.options.filterBehavior==="both"&&(m=b+` 24`+p),p!==this.options.selectAllValue&&b){var A=!1;(this.options.enableCaseInsensitiveFiltering&&m.toLowerCase().indexOf(this.query.toLowerCase())>-1||m.indexOf(this.query)>-1)&&(A=!0),e(l).toggle(A).toggleClass("filter-hidden",!A),e(l).hasClass("multiselect-group")?(s=l,c=A):(A&&e(s).show().removeClass("filter-hidden"),!A&&c&&e(l).show().removeClass("filter-hidden"))}},this))}this.updateSelectAll()},this),300,this)},this))}}},destroy:function(){this.$container.remove(),this.$select.show(),this.$select.data("multiselect",null)},refresh:function(){e("option",this.$select).each(e.proxy(function(n,i){var a=e("li input",this.$ul).filter(function(){return e(this).val()===e(i).val()});e(i).is(":selected")?(a.prop("checked",!0),this.options.selectedClass&&a.closest("li").addClass(this.options.selectedClass)):(a.prop("checked",!1),this.options.selectedClass&&a.closest("li").removeClass(this.options.selectedClass)),e(i).is(":disabled")?a.attr("disabled","disabled").prop("disabled",!0).closest("li").addClass("disabled"):a.prop("disabled",!1).closest("li").removeClass("disabled")},this)),this.updateButtonText(),this.updateSelectAll()},select:function(n,i){e.isArray(n)||(n=[n]);for(var a=0;a<n.length;a++){var s=n[a];if(s!=null){var c=this.getOptionByValue(s),h=this.getInputByValue(s);c===void 0||h===void 0||(this.options.multiple||this.deselectAll(!1),this.options.selectedClass&&h.closest("li").addClass(this.options.selectedClass),h.prop("checked",!0),c.prop("selected",!0),i&&this.options.onChange(c,!0))}}this.updateButtonText(),this.updateSelectAll()},clearSelection:function(){this.deselectAll(!1),this.updateButtonText(),this.updateSelectAll()},deselect:function(n,i){e.isArray(n)||(n=[n]);for(var a=0;a<n.length;a++){var s=n[a];if(s!=null){var c=this.getOptionByValue(s),h=this.getInputByValue(s);c===void 0||h===void 0||(this.options.selectedClass&&h.closest("li").removeClass(this.options.selectedClass),h.prop("checked",!1),c.prop("selected",!1),i&&this.options.onChange(c,!1))}}this.updateButtonText(),this.updateSelectAll()},selectAll:function(a,i){var a=typeof a>"u"?!0:a,s=e("li input[type='checkbox']:enabled",this.$ul),c=s.filter(":visible"),h=s.length,l=c.length;if(a?(c.prop("checked",!0),e("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").addClass(this.options.selectedClass)):(s.prop("checked",!0),e("li:not(.divider):not(.disabled)",this.$ul).addClass(this.options.selectedClass)),h===l||a===!1)e("option:enabled",this.$select).prop("selected",!0);else{var p=c.map(function(){return e(this).val()}).get();e("option:enabled",this.$select).filter(function(b){return e.inArray(e(this).val(),p)!==-1}).prop("selected",!0)}i&&this.options.onSelectAll()},deselectAll:function(i){var i=typeof i>"u"?!0:i;if(i){var a=e("li input[type='checkbox']:not(:disabled)",this.$ul).filter(":visible");a.prop("checked",!1);var s=a.map(function(){return e(this).val()}).get();e("option:enabled",this.$select).filter(function(c){return e.inArray(e(this).val(),s)!==-1}).prop("selected",!1),this.options.selectedClass&&e("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").removeClass(this.options.selectedClass)}else e("li input[type='checkbox']:enabled",this.$ul).prop("checked",!1),e("option:enabled",this.$select).prop("selected",!1),this.options.selectedClass&&e("li:not(.divider):not(.disabled)",this.$ul).removeClass(this.options.selectedClass)},rebuild:function(){this.$ul.html(""),this.options.multiple=this.$select.attr("multiple")==="multiple",this.buildSelectAll(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll(),this.options.disableIfEmpty&&e("option",this.$select).length<=0?this.disable():this.enable(),this.options.dropRight&&this.$ul.addClass("pull-right")},dataprovider:function(n){var i=0,a=this.$select.empty();e.each(n,function(s,c){var h;e.isArray(c.children)?(i++,h=e("<optgroup/>").attr({label:c.label||"Group "+i,disabled:!!c.disabled}),r(c.children,function(l){h.append(e("<option/>").attr({value:l.value,label:l.label||l.value,title:l.title,selected:!!l.selected,disabled:!!l.disabled}))})):h=e("<option/>").attr({value:c.value,label:c.label||c.value,title:c.title,selected:!!c.selected,disabled:!!c.disabled}),a.append(h)}),this.rebuild()},enable:function(){this.$select.prop("disabled",!1),this.$button.prop("disabled",!1).removeClass("disabled")},disable:function(){this.$select.prop("disabled",!0),this.$button.prop("disabled",!0).addClass("disabled")},setOptions:function(n){this.options=this.mergeOptions(n)},mergeOptions:function(n){return e.extend(!0,{},this.defaults,this.options,n)},hasSelectAll:function(){return e("li.multiselect-all",this.$ul).length>0},updateSelectAll:function(){if(this.hasSelectAll()){var n=e("li:not(.multiselect-item):not(.filter-hidden) input:enabled",this.$ul),i=n.length,a=n.filter(":checked").length,s=e("li.multiselect-all",this.$ul),c=s.find("input");a>0&&a===i?(c.prop("checked",!0),s.addClass(this.options.selectedClass),this.options.onSelectAll()):(c.prop("checked",!1),s.removeClass(this.options.selectedClass))}},updateButtonText:function(){var n=this.getSelected();this.options.enableHTML?e(".multiselect .multiselect-selected-text",this.$container).html(this.options.buttonText(n,this.$select)):e(".multiselect .multiselect-selected-text",this.$container).text(this.options.buttonText(n,this.$select)),e(".multiselect",this.$container).attr("title",this.options.buttonTitle(n,this.$select))},getSelected:function(){return e("option",this.$select).filter(":selected")},getOptionByValue:function(n){for(var i=e("option",this.$select),a=n.toString(),s=0;s<i.length;s=s+1){var c=i[s];if(c.value===a)return e(c)}},getInputByValue:function(n){for(var i=e("li input",this.$ul),a=n.toString(),s=0;s<i.length;s=s+1){var c=i[s];if(c.value===a)return e(c)}},updateOriginalOptions:function(){this.originalOptions=this.$select.clone()[0].options},asyncFunction:function(n,i,a){var s=Array.prototype.slice.call(arguments,3);return setTimeout(function(){n.apply(a||window,s)},i)},setAllSelectedText:function(n){this.options.allSelectedText=n,this.updateButtonText()}},e.fn.multiselect=function(n,i,a){return this.each(function(){var s=e(this).data("multiselect"),c=typeof n=="object"&&n;s||(s=new t(this,c),e(this).data("multiselect",s)),typeof n=="string"&&(s[n](i,a),n==="destroy"&&e(this).data("multiselect",!1))})},e.fn.multiselect.Constructor=t,e(function(){e("select[data-role=multiselect]").multiselect()})})(window.jQuery);function MerchantSelector(e){this.$selector=e||$$1(".merchant-selector")}MerchantSelector.prototype={minimumVisible:3,revealOnMore:5,$selector:$$1(),$moreCta:$$1(),$form:$$1(),$currentVisible:$$1(),$possibleVisible:$$1(),$sortSelect:$$1(),activeFilters:[],$merchantEntries:$$1(),$filters:$$1(),$noResultElem:$$1(),error:!1,newSort:!1,$headline:$$1(),$headlineOtherVariations:$$1(),init:function(){this.$selector.length!==0&&(this.$moreCta=$$1(".more-merchants-cta",this.$selector),this.$form=$$1(".js_merchant-filter",this.$selector),this.$currentVisible=$$1(".js_visible-merchants",this.$selector),this.$possibleVisible=$$1(".js_total-merchants",this.$selector),this.$sortSelect=$$1(".js_sort-select",this.$selector),this.$filters=$$1(".js_filter",this.$selector),this.$headline=$$1(".js_other-merchants-same-item-headline",this.$selector),this.$headlineOtherVariations=$$1(".js_other-merchants-different-item-headline",this.$selector),$$1("select.js_multiselect").multiselect({buttonClass:"form-control text--small",buttonContainer:"<
24div/>",selectAllText:"beliebig",nonSelectedText:"beliebig",nSelectedText:"ausgewählt",numberDisplayed:2}).parent(".default-select-wrapper").removeClass("hidden"),this.addEventListeners(),this.applySettingsFromQueryString())},addEventListeners:function(){let e=this;this.$moreCta.on("click",function(r){r.preventDefault(),e.renderMerchants(e.revealOnMore)}),this.$filters.on("change",function(){let r="";e.activeFilters=[],$$1(e.$form.serializeArray()).each(function(t,n){n.name.indexOf("f-distance")!==-1?n.value!=="0"&&(r="distance="+n.value):n.name.indexOf("f-")!==-1&&e.activeFilters.push("[data-"+n.name+"*="+n.value+"]")}),r&&e.activeFilters.push(r),e.activeFilters.length>0?($$1(".merchant-selector__entry",e.$selector).addClass("filtered-invisible"),e.filter($$1(".merchant-selector__entry",e.$selector),e.activeFilters).removeClass("filtered-invisible")):$$1(".merchant-selector__entry",e.$selector).removeClass("filtered-invisible"),e.renderMerchants()}),this.$sortSelect.on("change",function(){let r=this.value,t=$$1.makeArray($$1(".merchant-selector__entry.sortable",e.$selector)).sort(function(i,a){let s=e.toFloat($$1(i).data(r)),c=e.toFloat($$1(a).data(r));return isNaN(s)||isNaN(c)?isNaN(s)-isNaN(c):s-c}),n=$$1(".merchant-selector__entry.other-variation",e.$selector);$$1(".merchant-selector__content",e.$selector).empty(),$$1(".merchant-selector__content",e.$selector).append(e.$headline),$$1(".merchant-selector__content",e.$selector).append($$1(t)),$$1(".merchant-selector__content",e.$selector).append(e.$headlineOtherVariations),$$1(".merchant-selector__content",e.$selector).append($$1(n)),e.newSort=!0,e.renderMerchants()})},applySettingsFromQueryString:function(){let e=this,r=/(\?.*)/.exec(window.location.href);if(!r)return;let t=!!/[?&]filter\.delivery=/.exec(r[1]),n=!!/[?&]filter\.availability=1/.exec(r[1]);t&&$$1("#deliveryAvail").prop("checked",!0),n&&$$1("#availability").prop("checked",!0),(t||n)&&e.$filters.trigger("change")},filter:function(e,r){let t=r[r.length-1].indexOf("distance=")!==-1?this.toFloat(r[r.length-1].split("=")[1]):0,n=[],i=r.slice(),a=this;if(t){i.pop();let s="";e.each(function(c,h){s=a.toFloat($$1(h).data("s-distance")),s<=t&&n.push(h)})}else n=e;return i.length>0?$$1(n).filter(i.join("")):$$1(n)},renderMerchants:function(e){let r=this,t=parseInt(r.$currentVisible.text());e&&(t+=e),t<this.minimumVisible&&(t=this.minimumVisible);let n=$$1(".merchant-selector__entry",r.$selector);n.each(function(){const c=$$1(this);if(c.hasClass("filtered-invisible"))c.addClass("invisible");else if(t>0){if(c.removeClass("invisible"),t===e){let h=c.find(".merchant-info-link");h.length>0&&setTimeout(()=>{h.focus()},0)}t--}else $$1(this).addClass("invisible")});let i=n.not(".invisible").length,a=n.not(".filtered-invisible").length;r.$currentVisible.text(i),r.$possibleVisible.text(a),this.$moreCta.css("opacity",i<a?"1":"0"),i===0?this.showError():this.hideError();let s=$$1(".merchant-selector__entry.other-variation").not(".invisible").not(".filtered-invisible").length>0;r.activeFilters.length>0?(r.$headline.addClass("hidden"),r.$headlineOtherVariations.addClass("hidden")):s&&r.$headlineOtherVariations.removeClass("hidden"),r.newSort=!1},showError:function(){this.$noResultElem.length===0&&(this.$noResultElem='<div class="alert alert-warning" style="display:none;">
24',this.$noResultElem+=$$1(".merchant-selector__content",this.$selector).data("error-filter-no-results")+"</div>",this.$noResultElem=$$1(this.$noResultElem).insertAfter($$1("header",this.$selector))),$$1(".js_other-merchants-same-item-headline",this.$selector).addClass("hidden"),$$1(".js_other-merchants-different-item-headline",this.$selector).addClass("hidden"),this.$sortSelect.prop("disabled",!0),this.$noResultElem.slideDown(300),this.error=!0},hideError:function(){this.error&&(this.$sortSelect.prop("disabled",!1),this.$noResultElem.slideUp(300),this.error=!1)},toFloat:function(e){return typeof e=="string"&&(e=e.replace(",",".")),parseFloat(e)}};function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}var HAS_DOM_2=(typeof HTMLElement>"u"?"undefined":_typeof(HTMLElement))==="object";function isDOMElement(e){return HAS_DOM_2?e instanceof HTMLElement:e&&_typeof(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}function addClasses(e,r){r.forEach(function(t){e.classList.add(t)})}function removeClasses(e,r){r.forEach(function(t){e.classList.remove(t)})}var RULES=".drift-bounding-box,.drift-zoom-pane{position:absolute;pointer-events:none}@keyframes noop{0%{zoom:1}}@-webkit-keyframes noop{0%{zoom:1}}.drift-zoom-pane.drift-open{display:block}.drift-zoom-pane.drift-closing,.drift-zoom-pane.drift-opening{animation:noop 1ms;-webkit-animation:noop 1ms}.drift-zoom-pane{overflow:hidden;width:100%;height:100%;top:0;left:0}.drift-zoom-pane-loader{display:none}.drift-zoom-pane img{position:absolute;display:block;max-width:none;max-height:none}";function injectBaseStylesheet(){if(!document.querySelector(".drift-base-styles")){var e=document.createElement("style");e.type="text/css",e.classList.add("drift-base-styles"),e.appendChild(document.createTextNode(RULES));var r=document.head;r.insertBefore(e,r.firstChild)}}function throwIfMissing(){throw new Error("Missing parameter")}function _classCallCheck$3(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass$3(e,r,t){return r&&_defineProperties$3(e.prototype,r),t&&_defineProperties$3(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var BoundingBox=function(){function e(r){_classCallCheck$3(this,e),this.isShowing=!1;var t=r.namespace,n=t===void 0?null:t,i=r.zoomFactor,a=i===void 0?throwIfMissing():i,s=r.containerEl,c=s===void 0?throwIfMissing():s;this.settings={namespace:n,zoomFactor:a,containerEl:c},this.openClasses=this._buildClasses("open"),this._buildElement()}return _createClass$3(e,[{key:"_buildClasses",value:function(t){var n=["drift-".concat(t)],i=this.settings.namespace;return i&&n.push("".concat(i,"-").concat(t)),n}},{key:"_buildElement",value:function(){this.el=document.createElement("div"),addClasses(this.el,this._buildClasses("bounding-box"))}},{key:"show",value:function(t,n){this.isShowing=!0,this.settings.containerEl.appendChild(this.el);var i=this.el.style;i.width="".concat(Math.round(t/this.settings.zoomFactor),"px"),i.height="".concat(Math.round(n/this.settings.zoomFactor),"px"),addClasses(this.el,this.openClasses)}},{key:"hide",value:function(){this.isShowing&&this.settings.containerEl.removeChild(this.el),this.isShowing=!1,removeClasses(this.el,this.openClasses)}},{key:"setPosition",value:function(t,n,i){var a=window.pageXOffset,s=window.pageYOffset,c=i.left+t*i.width-this.el.clientWidth/2+a,h=i.top+n*i.height-this.el.clientHeight/2+s;c<i.left+a?c=i.left+a:c+this.el.clientWidth>i.left+i.width+a&&(c=i.left+i.width-this.el.clientWidth+a),h<i.top+s?h=i.top+s:h+this.el.clientHeight>i.top+i.height+s&&(h=i.top+i.height-this.el.clientHeight+s),this.el.style.left="".concat(c,"px"),this.el.style.top="".concat(h,"px")}}]),e}();function _classCallCheck$2(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass$2(e,r,t){return r&&_defineProperties$2(e.prototype,r),t&&_defineProperties$2(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Trigger=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$2(this,e),this._show=this._show.bind(this),this._hide=this._hide.bind(this),this._handleEntry=this._handleEntry.bind(this),this._handleMovement=this._handleMovement.bind(this);var t=r.el,n=t===void 0?throwIfMissing():t,i=r.zoomPane,a=i===void 0?throwIfMissing():i,s=r.sourceAttribute,c=s===void 0?throwIfMissing():s,h=r.handleTouch,l=h===void 0?throwIfMissing():h,p=r.onShow,b=p===void 0?null:p,m=r.onHide,A=m===void 0?null:m,L=r.hoverDelay,k=L===void 0?0:L,T=r.touchDelay,S=T===void 0?0:T,M=r.hoverBoundingBox,H=M===void 0?throwIfMissing():M,te=r.touchBoundingBox,Ie=te===void 0?throwIfMissing():te,we=r.namespace,_=we===void 0?null:we,oe=r.zoomFactor,ee=oe===void 0?throwIfMissing():oe,Ee=r.boundingBoxContainer,Le=Ee===void 0?throwIfMissing():Ee,Pe=r.passive,$e=Pe===void 0?!1:Pe;this.settings={el:n,zoomPane:a,sourceAttribute:c,handleTouch:l,onShow:b,onHide:A,hoverDelay:k,touchDelay:S,hoverBoundingBox:H,touchBoundingBox:Ie,namespace:_,zoomFactor:ee,boundingBoxContainer:Le,passive:$e},(this.settings.hoverBoundingBox||this.settings.touchBoundingBox)&&(this.boundingBox=new BoundingBox({namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,containerEl:this.settings.boundingBoxContainer})),this.enabled=!0,this._bindEvents()}return _createClass$2(e,[{key:"_preventDefault",value:function(t){t.preventDefault()}},{key:"_preventDefaultAllowTouchScroll",value:function(t){(!this.settings.touchDelay||!this._isTouchEvent(t)||this.isShowing)&&t.preventDefault()}},{key:"_isTouchEvent",value:function(t){return!!t.touches}},{key:"_bindEvents",value:function(){this.settings.el.addEventListener("mouseenter",this._handleEntry),this.settings.el.addEventListener("mouseleave",this._hide),this.settings.el.addEventListener("mousemove",this._handleMovement);var t={passive:this.settings.passive};this.settings.handleTouch?(this.settings.el.addEventListener("touchstart",this._handleEntry,t),this.settings.el.addEventListener("touchend",this._hide),this.settings.el.addEventListener("touchmove",this._handleMovement,t)):(this.settings.el.addEventListener("touchstart",this._preventDefault,t),this.settings.el.addEventListener("touchend",this._preventDefault),this.settings.el.addEventListener("touchmove",this._preventDefault,t))}},{key:"_unbindEvents",value:function(){this.settings.el.removeEventListener("mouseenter",this._handleEntry),this.settings.el.removeEventListener("mouseleave",this._hide),this.settings.el.removeEventListener("mousemove",this._handleMovement),this.settings.handleTouch?(this.settings.el.removeEventListener("touchstart",this._handleEntry),this.settings.el.removeEventListener("touchend",this._hide),this.settings.el.removeEventListener("touchmove",this._handleMovement)):(this.settings.el.removeEventListener("touchstart",this._preventDefault),this.settings.el.removeEventListener("touchend",this._preventDefault),this.settings.el.removeEventListener("touchmove",this._preventDefault))}},{key:"_handleEntry",value:function(t){this._preventDefaultAllowTouchScroll(t),this._lastMovement=t,t.type=="mouseenter"&&this.settings.hoverDelay?this.entryTimeout=setTimeout(this._show,this.settings.hoverDelay):this.settings.touchDelay?this.entryTimeout=setTimeout(this._show,this.settings.touchDelay):this._show()}},{key:"_show",value:function(){if(this.enabled){var t=this.settings.onShow;if(t&&typeof t=="function"&&t(),this.settings.zoomPane.show(this.settings.el.getAttribute(this.settings.sourceAttribute),this.settings.el.clientWidth,this.settings.el.clientHeight),this._lastMovement){var n=this._lastMovement.touches;(n&&this.settings.touchBoundingBox||!n&&this.settings.hoverBoundingBox)&&this.boundingBox.show(this.settings.zoomPane.el.clientWidth,this.settings.zoomPane.el.clientHeight)}this._handleMovement()}}},{key:"_hide",value:function(t){t&&this._preventDefaultAllowTouchScroll(t),this._lastMovement=null,this.entryTimeout&&clearTimeout(this.entryTimeout),this.boundingBox&&this.boundingBox.hide();var n=this.settings.onHide;n&&typeof n=="function"&&n(),this.settings.zoomPane.hide()}},{key:"_handleMovement",value:function(t){if(t)this._preventDefaultAllowTouchScroll(t),this._lastMovement=t;else if(this._lastMovement)t=this._lastMovement;else return;var n,i;if(t.touches){var a=t.touches[0];n=a.clientX,i=a.clientY}else n=t.clientX,i=t.clientY;var s=this.settings.el,c=s.getBoundingClientRect(),h=n-c.left,l=i-c.top,p=h/this.settings.el.clientWidth,b=l/this.settings.el.clientHeight;this.boundingBox&&this.boundingBox.setPosition(p,b,c),this.settings.zoomPane.setPosition(p,b,c)}},{key:"isShowing",get:function(){return this.settings.zoomPane.isShowing}}]),e}();function _classCallCheck$1(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass$1(e,r,t){return r&&_defineProperties$1(e.prototype,r),t&&_defineProperties$1(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ZoomPane=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};
24if(_classCallCheck$1(this,e),this.HAS_ANIMATION=!1,typeof document<"u"){var t=document.createElement("div").style;this.HAS_ANIMATION="animation"in t||"webkitAnimation"in t}this._completeShow=this._completeShow.bind(this),this._completeHide=this._completeHide.bind(this),this._handleLoad=this._handleLoad.bind(this),this.isShowing=!1;var n=r.container,i=n===void 0?null:n,a=r.zoomFactor,s=a===void 0?throwIfMissing():a,c=r.inline,h=c===void 0?throwIfMissing():c,l=r.namespace,p=l===void 0?null:l,b=r.showWhitespaceAtEdges,m=b===void 0?throwIfMissing():b,A=r.containInline,L=A===void 0?throwIfMissing():A,k=r.inlineOffsetX,T=k===void 0?0:k,S=r.inlineOffsetY,M=S===void 0?0:S,H=r.inlineContainer,te=H===void 0?document.body:H;this.settings={container:i,zoomFactor:s,inline:h,namespace:p,showWhitespaceAtEdges:m,containInline:L,inlineOffsetX:T,inlineOffsetY:M,inlineContainer:te},this.openClasses=this._buildClasses("open"),this.openingClasses=this._buildClasses("opening"),this.closingClasses=this._buildClasses("closing"),this.inlineClasses=this._buildClasses("inline"),this.loadingClasses=this._buildClasses("loading"),this._buildElement()}return _createClass$1(e,[{key:"_buildClasses",value:function(t){var n=["drift-".concat(t)],i=this.settings.namespace;return i&&n.push("".concat(i,"-").concat(t)),n}},{key:"_buildElement",value:function(){this.el=document.createElement("div"),addClasses(this.el,this._buildClasses("zoom-pane"));var t=document.createElement("div");addClasses(t,this._buildClasses("zoom-pane-loader")),this.el.appendChild(t),this.imgEl=document.createElement("img"),this.el.appendChild(this.imgEl)}}
24,{key:"_setImageURL",value:function(t){this.imgEl.setAttribute("src",t)}},{key:"_setImageSize",value:function(t,n){this.imgEl.style.width="".concat(t*this.settings.zoomFactor,"px"),this.imgEl.style.height="".concat(n*this.settings.zoomFactor,"px")}},{key:"setPosition",value:function(t,n,i){var a=this.imgEl.offsetWidth,s=this.imgEl.offsetHeight,c=this.el.offsetWidth,h=this.el.offsetHeight,l=c/2,p=h/2,b=a*t,m=s*n,A=l-b,L=p-m,k=c-a,T=h-s,S=k>0,M=T>0,H=S?k/2:0,te=M?T/2:0,Ie=S?k/2:k,we=M?T/2:T;if(this.el.parentElement===this.settings.inlineContainer){var _=window.pageXOffset,oe=window.pageYOffset,ee=i.left+t*i.width-c/2+this.settings.inlineOffsetX+_,Ee=i.top+n*i.height-h/2+this.settings.inlineOffsetY+oe;this.settings.containInline&&(ee<i.left+_?ee=i.left+_:ee+c>i.left+i.width+_&&(ee=i.left+i.width-c+_),Ee<i.top+oe?Ee=i.top+oe:Ee+h>i.top+i.height+oe&&(Ee=i.top+i.height-h+oe)),this.el.style.left="".concat(ee,"px"),this.el.style.top="".concat(Ee,"px")}this.settings.showWhitespaceAtEdges||(A>H?A=H:A<Ie&&(A=Ie),L>te?L=te:L<we&&(L=we)),this.imgEl.style.transform="translate(".concat(A,"px, ").concat(L,"px)"),this.imgEl.style.webkitTransform="translate(".concat(A,"px, ").concat(L,"px)")}},{key:"_removeListenersAndResetClasses",value:function(){this.el.removeEventListener("animationend",this._completeShow),this.el.removeEventListener("animationend",this._completeHide),this.el.removeEventListener("webkitAnimationEnd",this._completeShow),this.el.removeEventListener("webkitAnimationEnd",this._completeHide),removeClasses(this.el,this.openClasses),removeClasses(this.el,this.closingClasses)}},{key:"show",value:function(t,n,i){this._removeListenersAndResetClasses(),this.isShowing=!0,addClasses(this.el,this.openClasses),this.imgEl.getAttribute("src")!=t&&(addClasses(this.el,this.loadingClasses),this.imgEl.addEventListener("load",this._handleLoad),this._setImageURL(t)),this._setImageSize(n,i),this._isInline?this._showInline():this._showInContainer(),this.HAS_ANIMATION&&(this.el.addEventListener("animationend",this._completeShow),this.el.addEventListener("webkitAnimationEnd",this._completeShow),addClasses(this.el,this.openingClasses))}},{key:"_showInline",value:function(){this.settings.inlineContainer.appendChild(this.el),addClasses(this.el,this.inlineClasses)}},{key:"_showInContainer",value:function(){this.settings.container.appendChild(this.el)}},{key:"hide",value:function(){this._removeListenersAndResetClasses(),this.isShowing=!1,this.HAS_ANIMATION?(this.el.addEventListener("animationend",this._completeHide),this.el.addEventListener("webkitAnimationEnd",this._completeHide),addClasses(this.el,this.closingClasses)):(removeClasses(this.el,this.openClasses),removeClasses(this.el,this.inlineClasses))}},{key:"_completeShow",value:function(){this.el.removeEventListener("animationend",this._completeShow),this.el.removeEventListener("webkitAnimationEnd",this._completeShow),removeClasses(this.el,this.openingClasses)}},{key:"_completeHide",value:function(){this.el.removeEventListener("animationend",this._completeHide),this.el.removeEventListener("webkitAnimationEnd",this._completeHide),removeClasses(this.el,this.openClasses),removeClasses(this.el,this.closingClasses),removeClasses(this.el,this.inlineClasses),this.el.style.left="",this.el.style.top="",this.el.parentElement===this.settings.container?this.settings.container.removeChild(this.el):this.el.parentElement===this.settings.inlineContainer&&this.settings.inlineContainer.removeChild(this.el)}},{key:"_handleLoad",value:function(){this.imgEl.removeEventListener("load",this._handleLoad),removeClasses(this.el,this.loadingClasses)}},{key:"_isInline",get:function(){var t=this.settings.inline;return t===!0||typeof t=="number"&&window.innerWidth<=t}}]),e}();function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Drift=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,e),this.VERSION="1.5.1",this.triggerEl=r,this.destroy=this.destroy.bind(this),!isDOMElement(this.triggerEl))throw new TypeError("`new Drift` requires a DOM element as its first argument.");var n=t.namespace||null,i=t.showWhitespaceAtEdges||!1,a=t.containInl
24ine||!1,s=t.inlineOffsetX||0,c=t.inlineOffsetY||0,h=t.inlineContainer||document.body,l=t.sourceAttribute||"data-zoom",p=t.zoomFactor||3,b=t.paneContainer===void 0?document.body:t.paneContainer,m=t.inlinePane||375,A="handleTouch"in t?!!t.handleTouch:!0,L=t.onShow||null,k=t.onHide||null,T="injectBaseStyles"in t?!!t.injectBaseStyles:!0,S=t.hoverDelay||0,M=t.touchDelay||0,H=t.hoverBoundingBox||!1,te=t.touchBoundingBox||!1,Ie=t.boundingBoxContainer||document.body,we=t.passive||!1;if(m!==!0&&!isDOMElement(b))throw new TypeError("`paneContainer` must be a DOM element when `inlinePane !== true`");if(!isDOMElement(h))throw new TypeError("`inlineContainer` must be a DOM element");this.settings={namespace:n,showWhitespaceAtEdges:i,containInline:a,inlineOffsetX:s,inlineOffsetY:c,inlineContainer:h,sourceAttribute:l,zoomFactor:p,paneContainer:b,inlinePane:m,handleTouch:A,onShow:L,onHide:k,injectBaseStyles:T,hoverDelay:S,touchDelay:M,hoverBoundingBox:H,touchBoundingBox:te,boundingBoxContainer:Ie,passive:we},this.settings.injectBaseStyles&&injectBaseStylesheet(),this._buildZoomPane(),this._buildTrigger()}return _createClass(e,[{key:"_buildZoomPane",value:function(){this.zoomPane=new ZoomPane({container:this.settings.paneContainer,zoomFactor:this.settings.zoomFactor,showWhitespaceAtEdges:this.settings.showWhitespaceAtEdges,containInline:this.settings.containInline,inline:this.settings.inlinePane,namespace:this.settings.namespace,inlineOffsetX:this.settings.inlineOffsetX,inlineOffsetY:this.settings.inlineOffsetY,inlineContainer:this.settings.inlineContainer})}},{key:"_buildTrigger",value:function(){this.trigger=new Trigger({el:this.triggerEl,zoomPane:this.zoomPane,handleTouch:this.settings.handleTouch,onShow:this.settings.onShow,onHide:this.settings.onHide,sourceAttribute:this.settings.sourceAttribute,hoverDelay:this.settings.hoverDelay,touchDelay:this.settings.touchDelay,hoverBoundingBox:this.settings.hoverBoundingBox,touchBoundingBox:this.settings.touchBoundingBox,namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,boundingBoxContainer:this.settings.boundingBoxContainer,passive:this.settings.passive})}},{key:"setZoomImageURL",value:function(t){this.zoomPane._setImageURL(t)}},{key:"disable",value:function(){this.trigger.enabled=!1}},{key:"enable",value:function(){this.trigger.enabled=!0}},{key:"destroy",value:function(){this.trigger._hide(),this.trigger._unbindEvents()}},{key:"isShowing",get:function(){return this.zoomPane.isShowing}},{key:"zoomFactor",get:function(){return this.settings.zoomFactor},set:function(t){this.settings.zoomFactor=t,this.zoomPane.settings.zoomFactor=t,this.trigger.settings.zoomFactor=t,this.boundingBox.settings.zoomFactor=t}}]),e}();Object.defineProperty(Drift.prototype,"isShowing",{get:function(){return this.isShowing}});Object.defineProperty(Drift.prototype,"zoomFactor",{get:function(){return this.zoomFactor},set:function(r){this.zoomFactor=r}});Drift.prototype.setZoomImageURL=Drift.prototype.setZoomImageURL;Drift.prototype.disable=Drift.prototype.disable;Drift.prototype.enable=Drift.prototype.enable;Drift.prototype.destroy=Drift.prototype.destroy;function Ads(){}Ads.prototype={$imageViewer:$$1(".image-viewer-wrapper"),imageViewerSlider:null,imageViewerThumbsSlider:null,$galleryModalElement:$$1("#gallery-overlay"),$galleryModalOriginContentWrapperSelector:$$1(".js_gallery-overlay-wrapper"),$galleryModalContentWrapperClass:".modal-body",$galleryModalContentWrapperSelector:$$1(),galleryThumbsSlidesPerView:10,galleryThumbsOriginalSlidesPerView:0,dataImageZoom:"zoom-image",dataImageOrigin:"origin-src",galleryOverlayVisible:!1,breakpointDesktop:!1,imageViewserSlideSelector:".image-viewer .swiper-slide",mobileZoomClass:"zoom",zoomImages:[],zoomInstances:[],zoomOptions:{sourceAttribute:"data-zoom-image",paneContainer:document.querySelector(".ads-buy-box"),hoverDelay:150,handleTouch:!1,touchDelay:500,injectBaseStyles:!1},init:function(e){let r=this;r.initImageViewer();let t=new ChangeProductAmount,n=new CartAdd,i=$$1(".prd-add-panel form"),a=$$1(".prd-add-panel .js_add-to-cart, .js_add-cuttings-to-cart"),s=$$1("input.amount",i),c=$$1("textarea#cutting-service-additional-information");n.init(e),t.init(i),$$1(".js_act-disabled").on("click",function(l){return l.preventDefault(),l.stopPropagation(),!1}),a.length>0&&s.length>0&&n.initAddItem(a,s,i.data("item-id"),i.data("product-id"),i.data("category-id"),i.data("zr"),c),r.merchantSelector=new MerchantSelector().init();let h=$$1(".features__reduceable");h.length>0&&h.each(function(l,p){$$1(".features__reduce-btn",p).on("click",function(b){b.preventDefault(),$$1(p).toggleClass("features--reduced")})}),window.location.hash==="#link-target-select-merchant"&&$$1("#merchant-selector").modal("show").on("hidden.bs.modal",function(){history.pushState("",document.title,window.location.pathname+window.location.search)}),listenToAvailableAtDifferentMerchantHintClick()},checkRange:function(e){const r=$$1("#cuttingLength"),t=$$1("#cuttingLengthUnit"),n=$$1("#cuttingLengthInfoText"),i=parseInt(r.attr("min")),a=parseInt(r.attr("max"));e<i||e>a?(r.addClass("has-error"),t.addClass("has-error"),n.addClass("has-error")):(r.removeClass("has-error"),t.removeClass("has-error"),n.removeClass("has-error"))},mayAddPrefixToArticleNumber:function(){const e=$$1("p.article-number > span");e.text().startsWith("Z")||e.text("Z"+e.text())},clickHandlerForThumbSlides:function(e){this.imageViewerSlider.slideTo($$1(e.currentTarget).index(),300)},slideChangeEventHandler:function(){this.imageViewerThumbsSlider.slideTo(this.imageViewerSlider.activeIndex,300),this.imageViewerThumbsSlider.slides.removeClass("active"),this.imageViewerThumbsSlider.slides.eq(this.imageViewerSlider.activeIndex).addClass("active")}
24,handleThumbnails:function(e,r,t){this.imageViewerThumbsSlider=e.singleInit(r,t),this.imageViewerSlider.on("slideChange",()=>this.slideChangeEventHandler()),this.imageViewerThumbsSlider.slides.on("click",n=>this.clickHandlerForThumbSlides(n))},enableMobileZoomForSliderSelectorElement:function(){$$1(this.imageViewserSlideSelector).on("click",".js_btn-zoom",e=>{this.enableMobileZoom(e.delegateTarget)})},addGalleryOverlay:function(e,r){this.galleryThumbsOriginalSlidesPerView=e.slidesPerView,$$1("body").append(this.$galleryModalElement),this.$galleryModalContentWrapperSelector=$$1(this.$galleryModalContentWrapperClass,this.$galleryModalElement),$$1(r.sliderConfigs.imageViewerConfig.selector+" img").on("click",()=>{window.innerWidth>1024&&this.$galleryModalElement.is(":hidden")&&this.$galleryModalElement.modal(this.$galleryModalElement)}),this.$galleryModalElement.on("show.bs.modal",this.showGalleryOverlay.bind(this)),this.$galleryModalElement.on("shown.bs.modal",this.galleryOverlayOpen.bind(this)),this.$galleryModalElement.on("hide.bs.modal",this.hideGalleryOverlay.bind(this)),this.$galleryModalElement.on("hidden.bs.modal",this.galleryOverlayClosed.bind(this))},initImageViewer:function(){const e=new SliderInitializer,r=$$1(e.sliderConfigs.imageViewerConfig.selector),t=e.sliderConfigs.imageViewerConfig.config,n=$$1(e.sliderConfigs.imageViewerThumbsConfig.selector),i=e.sliderConfigs.imageViewerThumbsConfig.config;this.imageViewerSlider=e.singleInit(r,t),this.initImageViewerZoom(e.sliderConfigs.imageViewerConfig.selector),this.enableMobileZoomForSliderSelectorElement(),n.length>0&&this.handleThumbnails(e,n,i),this.addGalleryOverlay(i,e)},initImageViewerZoom:function(e){let r=this;$$1(e+" img["+this.zoomOptions.sourceAttribute+"]").each(function(){r.zoomInstances.push(new Drift(this,r.zoomOptions)),r.zoomImages.push($$1(this))}),r.disableImageViewerZoom(),Pubsub.subscribe("res.sm",$$1.proxy(this.onBreakpointTabletChange,this)),Pubsub.subscribe("bp.desktop",$$1.proxy(this.onBreakpointDesktopChange,this))},centralizeImage:function(e){e.scrollTo((e.scrollWidth-e.clientWidth)/2,(e.scrollHeight-e.clientHeight)/2)},enableMobileZoom:function(e){if(e.className.indexOf(this.mobileZoomClass)===-1&&!this.breakpointDesktop){let r=this,t=e.querySelector(".img-wrapper"),n=e.querySelector(".img-wrapper img");this.breakpointTablet&&n.dataset.zoomImage&&(n.onload=function(){r.centralizeImage(t)},n.src=n.dataset.zoomImage),this.imageViewerSlider.allowTouchMove=!1,e.classList.add(this.mobileZoomClass),this.centralizeImage(t)}else this.breakpointDesktop||(this.imageViewerSlider.allowTouchMove=!0,e.classList.remove(this.mobileZoomClass))},disableMobileZoom:function(){$$1(this.imageViewserSlideSelector).removeClass(this.mobileZoomClass)},onBreakpointTabletChange(e,r){this.breakpointTablet=r},onBreakpointDesktopChange(e,r){r?(this.disableMobileZoom(),this.breakpointDesktop=!0,this.enableImageViewerZoom()):(this.breakpointDesktop=!1,this.disableImageViewerZoom())},enableImageViewerZoom:function(){this.breakpointDesktop&&!this.galleryOverlayVisible&&$$1(this.zoomInstances).each(function(){this.enable()})},disableImageViewerZoom:function(){$$1(this.zoomInstances).each(function(){this.disable()})},showGalleryOverlay:function(){let e=this;this.$galleryModalContentWrapperSelector.append(this.$imageViewer),$$1(this.zoomImages).each(function(){$$1(this).removeClass("swiper-lazy-loaded"),$$1(this).addClass("zoomed-image"),$$1(this).attr("data-src",$$1(this).data(e.dataImageZoom))}),this.imageViewerThumbsSlider&&(this.imageViewerThumbsSlider.params.slidesPerView=this.galleryThumbsSlidesPerView,this.imageViewerThumbsSlider.params.slidesPerGroup=this.galleryThumbsSlidesPerView)},hideGalleryOverlay:function(){let e=this;this.$galleryModalOriginContentWrapperSelector.append(this.$imageViewer),this.imageViewerThumbsSlider&&(this.imageViewerThumbsSlider.params.slidesPerView=this.galleryThumbsOriginalSlidesPerView,this.imageViewerThumbsSlider.params.slidesPerGroup=this.galleryThumbsOriginalSlidesPerView),$$1(this.zoomImages).each(function(){$$1(this).attr("data-src",$$1(this).data(e.dataImageOrigin)),$$1(this).removeClass("zoomed-image")})},galleryOverlayOpen:function(){this.galleryOverlayVisible=!0,this.imageViewerUpate(),this.disableImageViewerZoom()},galleryOverlayClosed:function(){this.galleryOverlayVisible=!1,this.imageViewerUpate(),this.enableImageViewerZoom()}
24,imageViewerUpate:function(){this.imageViewerSlider.update(),this.imageViewerSlider.lazy.load(),this.imageViewerThumbsSlider&&(this.imageViewerThumbsSlider.update(),this.imageViewerThumbsSlider.slideTo(this.imageViewerSlider.activeIndex,0),this.imageViewerThumbsSlider.lazy.load())}};function listenToAvailableAtDifferentMerchantHintClick(){let e=document.getElementById("showAvailableAtDifferentMerchantHintContainer")?.getElementsByTagName("a")[0];e&&e.addEventListener("click",()=>{document.getElementById("availability").checked=!0,document.getElementById("deliveryAvail").checked=!0,document.querySelector(".merchant-selector .js_filter")?.dispatchEvent(new Event("change")),$$1("#merchant-selector")?.modal("show")})}class Loading{constructor(r={}){var t={el:".js_main-content-wrapper",$loader:$$1(),markup:`<div class="loader"> 25 <div class="sk-grid"> 26 <div class="sk-grid-cube"></div> 27 <div class="sk-grid-cube"></div> 28 <div class="sk-grid-cube"></div> 29 <div class="sk-grid-cube"></div> 30 <div class="sk-grid-cube"></div> 31 <div class="sk-grid-cube"></div> 32 <div class="sk-grid-cube"></div> 33 <div class="sk-grid-cube"></div> 34 <div class="sk-grid-cube"></div> 35 </div> 36 </div>`};this.options=Object.assign(t,r)}load(){this.options.$loader=$$1(this.options.el+" > .loader"),this.options.$loader.length===0&&($$1(this.options.el).prepend(this.options.markup),this.options.$loader=$$1(this.options.el+" > .loader")),this.options.$loader.fadeIn(300)}stop(){this.options.$loader.fadeOut(300,function(){$$1(this).remove()})}}typeof JSON!="object"&&(JSON={});(function(){function f(e){return e<10?"0"+e:e}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(r){var t=meta[r];return typeof t=="string"?t:"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,r){var t,n,i,a,s=gap,c,h=r[e];switch(h&&typeof h=="object"&&typeof h.toJSON=="function"&&(h=h.toJSON(e)),typeof rep=="function"&&(h=rep.call(r,e,h)),typeof h){case"string":return quote(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(gap+=indent,c=[],Object.prototype.toString.apply(h)==="[object Array]"){for(a=h.length,t=0;t<a;t+=1)c[t]=str(t,h)||"null";return i=c.length===0?"[]":gap?`[ 37`+gap+c.join(`, 38`+gap)+` 39`+s+"]":"["+c.join(",")+"]",gap=s,i}if(rep&&typeof rep=="object")for(a=rep.length,t=0;t<a;t+=1)typeof rep[t]=="string"&&(n=rep[t],i=str(n,h),i&&c.push(quote(n)+(gap?": ":":")+i));else for(n in h)Object.prototype.hasOwnProperty.call(h,n)&&(i=str(n,h),i&&c.push(quote(n)+(gap?": ":":")+i));return i=c.length===0?"{}":gap?`{ 40`+gap+c.join(`, 41`+gap)+` 42`+s+"}":"{"+c.join(",")+"}",gap=s,i}}typeof JSON.stringify!="function"&&(JSON.stringify=function(e,r,t){var n;if(gap="",indent="",typeof t=="number")for(n=0;n<t;n+=1)indent+=" ";else typeof t=="string"&&(indent=t);if(rep=r,r&&typeof r!="function"&&(typeof r!="object"||typeof r.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,r){var t,n,i=e[r];if(i&&typeof i=="object")for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(n=walk(i,t),n!==void 0?i[t]=n:delete i[t]);return reviver.call(e,r,i)}if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})();/** 43* History.js jQuery Adapter 44* @author Benjamin Arthur Lupton <[email protected]> 45* @copyright 2010-2011 Benjamin Arthur Lupton <[email protected]> 46* @license New BSD License <http://creativecommons.org/licenses/BSD/> 47*/(function(e,r){var t=e.History=e.History||{},n=e.jQuery;if(typeof t.Adapter<"u")throw new Error("History.js Adapter has already been loaded...");t.Adapter={bind:function(i,a,s){n(i).bind(a,s)},trigger:function(i,a,s){n(i).trigger(a,s)},extractEventData:function(i,a,s){var c=a&&a.originalEvent&&a.originalEvent[i]||s&&s[i]||r;return c},onDomLoad:function(i){n(i)}},typeof t.init<"u"&&t.init()})(window);/** 48 * History.js HTML4 Support 49 * Depends on the HTML5 Support 50 * @author Benjamin Arthur Lupton <[email protected]> 51 * @copyright 2010-2011 Benjamin Arthur Lupton <[email protected]> 52 * @license New BSD License <http://creativecommons.org/licenses/BSD/> 53 */(function(e,r){var t=e.document,n=e.setTimeout||n,i=e.clearTimeout||i,a=e.setInterval||a,s=e.History=e.History||{};if(typeof s.initHtml4<"u")throw new Error("History.js HTML4 Support has already been loaded...");s.initHtml4=function(){if(typeof s.initHtml4.initialized<"u")return!1;s.initHtml4.initialized=!0,s.enabled=!0,s.savedHashes=[],s.isLastHash=function(c){var h=s.getHashByIndex(),l;return l=c===h,l},s.isHashEqual=function(c,h){return c=encodeURIComponent(c).replace(/%25/g,"%"),h=e
53ncodeURIComponent(h).replace(/%25/g,"%"),c===h},s.saveHash=function(c){return s.isLastHash(c)?!1:(s.savedHashes.push(c),!0)},s.getHashByIndex=function(c){var h=null;return typeof c>"u"?h=s.savedHashes[s.savedHashes.length-1]:c<0?h=s.savedHashes[s.savedHashes.length+c]:h=s.savedHashes[c],h},s.discardedHashes={},s.discardedStates={},s.discardState=function(c,h,l){var p=s.getHashByState(c),b;return b={discardedState:c,backState:l,forwardState:h},s.discardedStates[p]=b,!0},s.discardHash=function(c,h,l){var p={discardedHash:c,backState:l,forwardState:h};return s.discardedHashes[c]=p,!0},s.discardedState=function(c){var h=s.getHashByState(c),l;return l=s.discardedStates[h]||!1,l},s.discardedHash=function(c){var h=s.discardedHashes[c]||!1;return h},s.recycleState=function(c){var h=s.getHashByState(c);return s.discardedState(c)&&delete s.discardedStates[h],!0},s.emulated.hashChange&&(s.hashChangeInit=function(){s.checkerFunction=null;var c="",h,l,p,b,m=!!s.getHash();return s.isInternetExplorer()?(h="historyjs-iframe",l=t.createElement("iframe"),l.setAttribute("id",h),l.setAttribute("src","#"),l.style.display="none",t.body.appendChild(l),l.contentWindow.document.open(),l.contentWindow.document.close(),p="",b=!1,s.checkerFunction=function(){if(b)return!1;b=!0;var A=s.getHash(),L=s.getHash(l.contentWindow.document);return A!==c?(c=A,L!==A&&(p=L=A,l.contentWindow.document.open(),l.contentWindow.document.close(),l.contentWindow.document.location.hash=s.escapeHash(A)),s.Adapter.trigger(e,"hashchange")):L!==p&&(p=L,m&&L===""?s.back():s.setHash(L,!1)),b=!1,!0}):s.checkerFunction=function(){var A=s.getHash()||"";return A!==c&&(c=A,s.Adapter.trigger(e,"hashchange")),!0},s.intervalList.push(a(s.checkerFunction,s.options.hashChangeInterval)),!0},s.Adapter.onDomLoad(s.hashChangeInit)),s.emulated.pushState&&(s.onHashChange=function(c){var h=c&&c.newURL||s.getLocationHref(),l=s.getHashByUrl(h),p=null,b;return s.isLastHash(l)?(s.busy(!1),!1):(s.doubleCheckComplete(),s.saveHash(l),l&&s.isTraditionalAnchor(l)?(s.Adapter.trigger(e,"anchorchange"),s.busy(!1),!1):(p=s.extractState(s.getFullUrl(l||s.getLocationHref()),!0),s.isLastSavedState(p)?(s.busy(!1),!1):(s.getHashByState(p),b=s.discardedState(p),b?(s.getHashByIndex(-2)===s.getHashByState(b.forwardState)?s.back(!1):s.forward(!1),!1):(s.pushState(p.data,p.title,encodeURI(p.url),!1),!0))))},s.Adapter.bind(e,"hashchange",s.onHashChange),s.pushState=function(c,h,l,p){if(l=encodeURI(l).replace(/%25/g,"%"),s.getHashByUrl(l))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(p!==!1&&s.busy())return s.pushQueue({scope:s,callback:s.pushState,args:arguments,queue:p}),!1;s.busy(!0);var b=s.createStateObject(c,h,l),m=s.getHashByState(b),A=s.getState(!1),L=s.getHashByState(A),k=s.getHash(),T=s.expectedStateId==b.id;return s.storeState(b),s.expectedStateId=b.id,s.recycleState(b),s.setTitle(b),m===L?(s.busy(!1),!1):(s.saveState(b),T||s.Adapter.trigger(e,"statechange"),!s.isHashEqual(m,k)&&!s.isHashEqual(m,s.getShortUrl(s.getLocationHref()))&&s.setHash(m,!1),s.busy(!1),!0)},s.replaceState=function(c,h,l,p){if(l=encodeURI(l).replace(/%25/g,"%"),s.getHashByUrl(l))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(p!==!1&&s.busy())return s.pushQueue({scope:s,callback:s.replaceState,args:arguments,queue:p}),!1;s.busy(!0);var b=s.createStateObject(c,h,l),m=s.getHashByState(b),A=s.getState(!1),L=s.getHashByState(A),k=s.getStateByIndex(-2);return s.discardState(A,b,k),m===L?(s.storeState(b),s.expectedStateId=b.id,s.recycleState(b),s.setTitle(b),s.saveState(b),s.Adapter.trigger(e,"statechange"),s.busy(!1)):s.pushState(b.data,b.title,b.url,!1),!0}),s.emulated.pushState&&s.getHash()&&!s.emulated.hashChange&&s.Adapter.onDomLoad(function(){s.Adapter.trigger(e,"hashchange")})},typeof s.init<"u"&&s.init()})(window);/** 54 * History.js Core 55 * @author Benjamin Arthur Lupton <[email protected]> 56 * @copyright 2010-2011 Benjamin Arthur Lupton <[email protected]> 57 * @license New BSD License <http://creativecommons.org/licenses/BSD/> 58 */(function(e,r){var t=e.console||r,n=e.document,i=e.navigator,a=!1,s=e.setTimeout,c=e.clearTimeout,h=e.setInterval,l=e.clearInterval,p=e.JSON,b=e.alert,m=e.History=e.History||{},A=e.history;try{a=e.sessionStorage,a.setItem("TEST","1"),a.removeItem("TEST")}catch{a=!1}if(p.stringify=p.stringify||p.encode,p.parse=p.parse||p.decode,typeof m.init<"u")throw new Error("History.js Core has already been loaded...");m.init=function(L){return typeof m.Adapter>"u"?!1:(typeof m.initCore<"u"&&m.initCore(),typeof m.initHtml4<"u"&&m.initHtml4(),!0)},m.initCore=function(L){if(typeof m.initCore.initialized<"u")return!1;m.initCore.initialized=!0,m.options=m.options||{}
58,m.options.hashChangeInterval=m.options.hashChangeInterval||100,m.options.safariPollInterval=m.options.safariPollInterval||500,m.options.doubleCheckInterval=m.options.doubleCheckInterval||500,m.options.disableSuid=m.options.disableSuid||!1,m.options.storeInterval=m.options.storeInterval||1e3,m.options.busyDelay=m.options.busyDelay||250,m.options.debug=m.options.debug||!1,m.options.initialTitle=m.options.initialTitle||n.title,m.options.html4Mode=m.options.html4Mode||!1,m.options.delayInit=m.options.delayInit||!1,m.intervalList=[],m.clearAllIntervals=function(){var T,S=m.intervalList;if(typeof S<"u"&&S!==null){for(T=0;T<S.length;T++)l(S[T]);m.intervalList=null}},m.debug=function(){m.options.debug&&m.log.apply(m,arguments)},m.log=function(){var T=!(typeof t>"u"||typeof t.log>"u"||typeof t.log.apply>"u"),S=n.getElementById("log"),M,H,te,Ie,we;for(T?(Ie=Array.prototype.slice.call(arguments),M=Ie.shift(),typeof t.debug<"u"?t.debug.apply(t,[M,Ie]):t.log.apply(t,[M,Ie])):M=` 59`+arguments[0]+` 60`,H=1,te=arguments.length;H<te;++H){if(we=arguments[H],typeof we=="object"&&typeof p<"u")try{we=p.stringify(we)}catch{}M+=` 61`+we+` 62`}return S?(S.value+=M+` 63----- 64`,S.scrollTop=S.scrollHeight-S.clientHeight):T||b(M),!0};/** 65 * History.getInternetExplorerMajorVersion() 66 * Get's the major version of Internet Explorer 67 * @return {integer} 68 * @license Public Domain 69 * @author Benjamin Arthur Lupton <[email protected]> 70 * @author James Padolsey <https://gist.github.com/527683> 71 */m.getInternetExplorerMajorVersion=function(){var T=m.getInternetExplorerMajorVersion.cached=typeof m.getInternetExplorerMajorVersion.cached<"u"?m.getInternetExplorerMajorVersion.cached:function(){for(var S=3,M=n.createElement("div"),H=M.getElementsByTagName("i");(M.innerHTML="<!--[if gt IE "+ ++S+"]><i></i><![endif]-->")&&H[0];);return S>4?S:!1}();return T};/** 72 * History.isInternetExplorer() 73 * Are we using Internet Explorer? 74 * @return {boolean} 75 * @license Public Domain 76 * @author Benjamin Arthur Lupton <[email protected]> 77 */if(m.isInternetExplorer=function(){var T=m.isInternetExplorer.cached=typeof m.isInternetExplorer.cached<"u"?m.isInternetExplorer.cached:!!m.getInternetExplorerMajorVersion();return T},m.options.html4Mode?m.emulated={pushState:!0,hashChange:!0}:m.emulated={pushState:!(e.history&&e.history.pushState&&e.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(i.userAgent)||/AppleWebKit\/5([0-2]|3[0-2])/i.test(i.userAgent))),hashChange:!!(!("onhashchange"in e||"onhashchange"in n)||m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8)},m.enabled=!m.emulated.pushState,m.bugs={setHash:!!(!m.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),safariPoll:!!(!m.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),ieDoubleCheck:!!(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8),hashEscape:!!(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<7)},m.isEmptyObject=function(T){for(var S in T)if(T.hasOwnProperty(S))return!1;return!0},m.cloneObject=function(T){var S,M;return T?(S=p.stringify(T),M=p.parse(S)):M={},M},m.getRootUrl=function(){var T=n.location.protocol+"//"+(n.location.hostname||n.location.host);return n.location.port&&(T+=":"+n.location.port),T+="/",T},m.getBaseHref=function(){var T=n.getElementsByTagName("base"),S=null,M="";return T.length===1&&(S=T[0],M=S.href.replace(/[^\/]+$/,"")),M=M.replace(/\/+$/,""),M&&(M+="/"),M},m.getBaseUrl=function(){var T=m.getBaseHref()||m.getBasePageUrl()||m.getRootUrl();return T},m.getPageUrl=function(){var T=m.getState(!1,!1),S=(T||{}).url||m.getLocationHref(),M;return M=S.replace(/\/+$/,"").replace(/[^\/]+$/,function(H,te,Ie){return/\./.test(H)?H:H+"/"}),M},m.getBasePageUrl=function(){var T=m.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(S,M,H){return/[^\/]$/.test(S)?"":S}).replace(/\/+$/,"")+"/";return T},m.getFullUrl=function(T,S){var M=T,H=T.substring(0,1);return S=typeof S>"u"?!0:S,/[a-z]+\:\/\//.test(T)||(H==="/"?M=m.getRootUrl()+T.replace(/^\/+/,""):H==="#"?M=m.getPageUrl().replace(/#.*/,"")+T:H==="?"?M=m.getPageUrl().replace(/[\?#].*/,"")+T:S?M=m.getBaseUrl()+T.replace(/^(\.\/)+/,""):M=m.getBasePageUrl()+T.replace(/^(\.\/)+/,"")),M.replace(/\#$/,"")},m.getShortUrl=function(T){var S=T,M=m.getBaseUrl(),H=m.getRootUrl();return m.emulated.pushState&&(S=S.replace(M,"")),S=S.replace(H,"/"),m.isTraditionalAnchor(S)&&(S="./"+S),S=S.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),S},m.getLocationHref=function(T){return T=T||n,T.URL===T.location.href?T.location.href:T.location.href===decodeURIComponent(T.URL)?T.URL:T.location.hash&&decodeURIComponent(T.location.href.replace(/^[^#]+/,""))===T.location.hash||T.URL.indexOf("#")==-1&&T.location.href.indexOf("#")!=-1?T.location.href:T.URL||T.location.href},m.store={},m.idToState=m.idToState||{},m.stateToId=m.stateToId||{},m.urlToId=m.urlToId||{},m.storedStates=m.storedStates||[],m.savedStates=m.savedStates||[],m.normalizeStore=function(){m.store.idToState=m.store.idToState||{},m.store.urlToId=m.store.urlToId||{},m.store.stateToId=m.store.stateToId||{}},m.getState=function(T,S){typeof T>"u"&&(T=!0),typeof S>"u"&&(S=!0);var M=m.getLastSavedState();return!M&&S&&(M=m.createStateObject()),T&&(M=m.cloneObject(M),M.url=M.cleanUrl||M.url),M},m.getIdByState=function(T){var S=m.extractId(T.url),M;if(!S)if(M=m.getStateString(T),typeof m.stateToId[M]<"u")S=m.stateToId[M];else if(typeof m.store.stateToId[M]<"u")S=m.store.stateToId[M];else{for(;
77S=new Date().getTime()+String(Math.random()).replace(/\D/g,""),!(typeof m.idToState[S]>"u"&&typeof m.store.idToState[S]>"u"););m.stateToId[M]=S,m.idToState[S]=T}return S},m.normalizeState=function(T){var S,M;return(!T||typeof T!="object")&&(T={}),typeof T.normalized<"u"?T:((!T.data||typeof T.data!="object")&&(T.data={}),S={},S.normalized=!0,S.title=T.title||"",S.url=m.getFullUrl(T.url?T.url:m.getLocationHref()),S.hash=m.getShortUrl(S.url),S.data=m.cloneObject(T.data),S.id=m.getIdByState(S),S.cleanUrl=S.url.replace(/\??\&_suid.*/,""),S.url=S.cleanUrl,M=!m.isEmptyObject(S.data),(S.title||M)&&m.options.disableSuid!==!0&&(S.hash=m.getShortUrl(S.url).replace(/\??\&_suid.*/,""),/\?/.test(S.hash)||(S.hash+="?"),S.hash+="&_suid="+S.id),S.hashedUrl=m.getFullUrl(S.hash),(m.emulated.pushState||m.bugs.safariPoll)&&m.hasUrlDuplicate(S)&&(S.url=S.hashedUrl),S)},m.createStateObject=function(T,S,M){var H={data:T,title:S,url:M};return H=m.normalizeState(H),H},m.getStateById=function(T){T=String(T);var S=m.idToState[T]||m.store.idToState[T]||r;return S},m.getStateString=function(T){var S,M,H;return S=m.normalizeState(T),M={data:S.data,title:T.title,url:T.url},H=p.stringify(M),H},m.getStateId=function(T){var S,M;return S=m.normalizeState(T),M=S.id,M},m.getHashByState=function(T){var S,M;return S=m.normalizeState(T),M=S.hash,M},m.extractId=function(T){var S,M,H;return T.indexOf("#")!=-1?H=T.split("#")[0]:H=T,M=/(.*)\&_suid=([0-9]+)$/.exec(H),M&&M[1],S=M?String(M[2]||""):"",S||!1},m.isTraditionalAnchor=function(T){var S=!/[\/\?\.]/.test(T);return S},m.extractState=function(T,S){var M=null,H,te;return S=S||!1,H=m.extractId(T),H&&(M=m.getStateById(H)),M||(te=m.getFullUrl(T),H=m.getIdByUrl(te)||!1,H&&(M=m.getStateById(H)),!M&&S&&!m.isTraditionalAnchor(T)&&(M=m.createStateObject(null,null,te))),M},m.getIdByUrl=function(T){var S=m.urlToId[T]||m.store.urlToId[T]||r;return S},m.getLastSavedState=function(){return m.savedStates[m.savedStates.length-1]||r},m.getLastStoredState=function(){return m.storedStates[m.storedStates.length-1]||r},m.hasUrlDuplicate=function(T){var S=!1,M;return M=m.extractState(T.url),S=M&&M.id!==T.id,S},m.storeState=function(T){return m.urlToId[T.url]=T.id,m.storedStates.push(m.cloneObject(T)),T},m.isLastSavedState=function(T){var S=!1,M,H,te;return m.savedStates.length&&(M=T.id,H=m.getLastSavedState(),te=H.id,S=M===te),S},m.saveState=function(T){return m.isLastSavedState(T)?!1:(m.savedStates.push(m.cloneObject(T)),!0)},m.getStateByIndex=function(T){var S=null;return typeof T>"u"?S=m.savedStates[m.savedStates.length-1]:T<0?S=m.savedStates[m.savedStates.length+T]:S=m.savedStates[T],S},m.getCurrentIndex=function(){var T=null;return m.savedStates.length<1?T=0:T=m.savedStates.length-1,T},m.getHash=function(T){var S=m.getLocationHref(T),M;return M=m.getHashByUrl(S),M},m.unescapeHash=function(T){var S=m.normalizeHash(T);return S=decodeURIComponent(S),S},m.normalizeHash=function(T){var S=T.replace(/[^#]*#/,"").replace(/#.*/,"");return S},m.setHash=function(T,S){var M,H;return S!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.setHash,args:arguments,queue:S}),!1):(m.busy(!0),M=m.extractState(T,!0),M&&!m.emulated.pushState?m.pushState(M.data,M.title,M.url,!1):m.getHash()!==T&&(m.bugs.setHash?(H=m.getPageUrl(),m.pushState(null,null,H+"#"+T,!1)):n.location.hash=T),m)},m.escapeHash=function(T){var S=m.normalizeHash(T);return S=e.encodeURIComponent(S),m.bugs.hashEscape||(S=S.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),S},m.getHashByUrl=function(T){var S=String(T).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return S=m.unescapeHash(S),S},m.setTitle=function(T){var S=T.title,M;S||(M=m.getStateByIndex(0),M&&M.url===T.url&&(S=M.title||m.options.initialTitle));try{n.getElementsByTagName("title")[0].innerHTML=S.replace("<","<").replace(">",">").replace(" & "," & ")}catch{}return n.title=S,m},m.queues=[],m.busy=function(T){if(typeof T<"u"?m.busy.flag=T:typeof m.busy.flag>"u"&&(m.busy.flag=!1),!m.busy.flag){c(m.busy.timeout);var S=function(){var M,H,te;if(!m.busy.flag)for(M=m.queues.length-1;M>=0;--M)H=m.queues[M],H.length!==0&&(te=H.shift(),m.fireQueueItem(te),m.busy.timeout=s(S,m.options.busyDelay))};m.busy.timeout=s(S,m.options.busyDelay)}return m.busy.flag},m.busy.flag=!1,m.fireQueueItem=function(T){return T.callback.apply(T.scope||m,T.args||[])},m.pushQueue=function(T){return m.queues[T.queue||0]=m.queues[T.queue||0]||[],m.queues[T.queue||0].push(T),m},m.queue=function(T,S){return typeof T=="function"&&(T={callback:T}),typeof S<"u"&&(T.queue=S),m.busy()?m.pushQueue(T):m.fireQueueItem(T),m},m.clearQueue=function(){return m.busy.flag=!1,m.queues=[],m},m.stateChanged=!1,m.doubleChecker=!1,m.doubleCheckComplete=function(){return m.stateChanged=!0,m.doubleCheckClear(),m},m.doubleCheckClear=function(){return m.doubleChecker&&(c(m.doubleChecker),m.doubleChecker=!1),m},m.doubleCheck=function(T){return m.stateChanged=!1,m.doubleCheckClear(),m.bugs.ieDoubleCheck&&(m.doubleChecker=s(function(){return m.doubleCheckClear(),m.stateChanged||T(),!0},m.options.doubleCheckInterval)),m},m.safariStatePoll=function(){var T=m.extractState(m.getLocationHref()),S;if(!m.isLastSavedState(T))S=T;else return;return S||(S=m.createStateObject()),m.Adapter.trigger(e,"popstate"),m},m.back=function(T){return T!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.back,args:arguments,queue:T}),!1):(m.busy(!0),m.doubleCheck(function(){m.back(!1)}),A.go(-1),!0)},m.forward=function(T){return T!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.forward,args:arguments,queue:T}),!1):(m.busy(!0),m.doubleCheck(function(){m.forward(!1)}),A.go(1),!0)},m.go=function(T,S){var M;if(T>0)for(M=1;M<=T;++M)m.forward(S);else if(T<0)for(M=-1;M>=T;--M)m.back(S);else throw new Error("History.go: History.go requires a positive or negative integer passed.");return m},m.emulated.pushState){var k=function(){};m.pushState=m.pushState||k,m.replaceState=m.replaceState||k}else m.onPopState=function(T,S){var M=!1,H=!1,te,Ie;return m.doubleCheckComplete(),te=m.getHash(),te?(Ie=m.extractState(te||m.getLocationHref(),!0),Ie?m.replaceState(Ie.data,Ie.title,Ie.url,!1):(m.Adapter.trigger(e,"anchorchange"),m.busy(!1)),m.expectedStateId=!1,!1):(M=m.Adapter.extractEventData("state",T,S)||!1,M?H=m.getStateById(M):m.expectedStateId?H=m.getStateById(m.expectedStateId):H=m.extractState(m.getLocationHref()),H||(H=m.createStateObject(null,null,m.getLocationHref())),m.expectedStateId=!1,m.isLastSavedState(H)?(m.busy(!1),!1):(m.storeState(H),m.saveState(H),m.setTitle(H),m.Adapter.trigger(e,"statechange"),m.busy(!1),!0))},m.Adapter.bind(e,"popstate",m.onPopState),m.pushState=function(T,S,M,H){if(m.getHashByUrl(M)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(H!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.pushState,args:arguments,queue:H}),!1;m.busy(!0);var te=m.createStateObject(T,S,M);return m.isLastSavedState(te)?m.busy(!1):(m.storeState(te),m.expectedStateId=te.id,A.pushState(te.id,te.title,te.url),m.Adapter.trigger(e,"popstate")),!0},m.replaceState=function(T,S,M,H){if(m.getHashByUrl(M)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(H!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.replaceState,args:arguments,queue:H}),!1;m.busy(!0);var te=m.createStateObject(T,S,M);return m.isLastSavedState(te)?m.busy(!1):(m.storeState(te),m.expectedStateId=te.id,A.replaceState(te.id,te.title,te.url),m.Adapter.trigger(e,"popstate")),!0};if(a){try{m.store=p.parse(a.getItem("History.store"))||{}}catch{m.store={}}
77m.normalizeStore()}else m.store={},m.normalizeStore();m.Adapter.bind(e,"unload",m.clearAllIntervals),m.saveState(m.storeState(m.extractState(m.getLocationHref(),!0))),a&&(m.onUnload=function(){var T,S,M;try{T=p.parse(a.getItem("History.store"))||{}}catch{T={}}T.idToState=T.idToState||{},T.urlToId=T.urlToId||{},T.stateToId=T.stateToId||{};for(S in m.idToState)m.idToState.hasOwnProperty(S)&&(T.idToState[S]=m.idToState[S]);for(S in m.urlToId)m.urlToId.hasOwnProperty(S)&&(T.urlToId[S]=m.urlToId[S]);for(S in m.stateToId)m.stateToId.hasOwnProperty(S)&&(T.stateToId[S]=m.stateToId[S]);m.store=T,m.normalizeStore(),M=p.stringify(T);try{a.setItem("History.store",M)}catch(H){if(H.code===DOMException.QUOTA_EXCEEDED_ERR)a.length&&(a.removeItem("History.store"),a.setItem("History.store",M));else throw H}},m.intervalList.push(h(m.onUnload,m.options.storeInterval)),m.Adapter.bind(e,"beforeunload",m.onUnload),m.Adapter.bind(e,"unload",m.onUnload)),m.emulated.pushState||(m.bugs.safariPoll&&m.intervalList.push(h(m.safariStatePoll,m.options.safariPollInterval)),(i.vendor==="Apple Computer, Inc."||(i.appCodeName||"")==="Mozilla")&&(m.Adapter.bind(e,"hashchange",function(){m.Adapter.trigger(e,"popstate")}),m.getHash()&&m.Adapter.onDomLoad(function(){m.Adapter.trigger(e,"hashchange")})))}
77,(!m.options||!m.options.delayInit)&&m.init()})(window);const History$1=History;function Offcanvas(e="sidebar-wrapper"){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this)),this.sidebarselector=".sidebar-offcanvas."+e,this.xssidebarclass=e+" xs-sidebar-offcanvas",this.xssidebarselector=".xs-sidebar-offcanvas."+e}Offcanvas.prototype={attach:function(){let e=this;this.isxs&&!$$1(this.sidebarselector).is(":empty")&&this.switchIt(this.isxs),$$1(document.body).on("offcanvasClose",function(){$$1(".xs-sidebar-offcanvas.active").length>0&&e.hide()})},active:function(){return $$1("body").hasClass("offcanvas")},activatePage:function(){var e=this;$$1("#page").off("click").on("click",function(r){r.preventDefault(),e.hide()})},selectSidebar:function(){$$1(".xs-sidebar-offcanvas").hide(),$$1(this.xssidebarselector).show().addClass("active")},show:function(){var e=this;this.selectSidebar(),$$1("body").addClass("offcanvas"),setTimeout(function(){$$1("html, body").animate({scrollTop:0},200),e.activatePage()},10)},hide:function(){$$1("#page").off("click"),$$1("body").removeClass("offcanvas"),setTimeout(function(){$$1("body > .sidebar-wrapper").removeClass("active")},200)},toggle:function(){$$1("body").hasClass("offcanvas")?this.hide():this.show()},switchIt:function(e,r){if(!(!r&&e===this.isxs)){var t;this.isxs=e,e?($$1(this.xssidebarselector).length===0&&$$1("body").prepend('<div class="'+this.xssidebarclass+'">'),t=$$1(this.sidebarselector).html(),t&&($$1(this.xssidebarselector).html(t),$$1(this.sidebarselector).empty(),Pubsub.publish("core.attach",$$1(this.xssidebarselector)))):(t=$$1(this.xssidebarselector).html(),t&&($$1(this.sidebarselector).html(t),$$1(this.xssidebarselector).remove(),Pubsub.publish("core.attach",$$1(this.sidebarselector)),this.hide()))}}};var getBrowserWidth=function(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.documentElement.clientWidth)};function getMerchantIdFromPhone(){var e=document.querySelector(".merchant-shop-tel-link");return e&&e.dataset.id?e.dataset.id:""}function getMerchantId(){var e=sessionStorage.getItem("merchantId");return!e||e==="none"?getMerchantIdFromPhone():e}function getMerchantUrlPrefixFromHeaderLogoLink(){var e=document.querySelector("a.header__logo");return e&&e.href?e.href:""}function getMerchantUrlPrefix(){var e=sessionStorage.getItem("merchantUrlPrefix");return(!e||e==="none")&&(e=getMerchantUrlPrefixFromHeaderLogoLink()),stripTrailingSlash(e)}function stripTrailingSlash(e){return e&&e.length>0?e.endsWith("/")?e.substring(0,e.length-1):e:""}function handleExpertAdviceOnPrdList(e){e.forEach(function(r){r.isIntersecting||r.boundingClientRect.top<0?Array.from(document.querySelectorAll(".expert-advice")).forEach(function(t){return t.classList.remove("hidden")}):Array.from(document.querySelectorAll(".expert-advice")).forEach(function(t){return t.classList.add("hidden")})})}function closeExpertAdviceOnScrollMobile(){Array.from(document.querySelectorAll(".expert-advice")).forEach(function(e){e.classList.remove("active")}),document.removeEventListener("scroll",closeExpertAdviceOnScrollMobile)}function addTrackers(e){var r=e.querySelector(".expert-advice__init-msg"),t=getMerchantId();r?.addEventListener("click",function(){var a;return(a=window.dataLayer)===null||a===void 0?void 0:a.push(Object.freeze({event:"eventHaendler",haendlerId:t,eventCategory:"Landingpage",eventAction:"Fachberater angeklickt",eventLabel:"Fachberater",eventValue:0,currentUrl:window.location.href}))});var n=e.querySelector(".expert-advice__phone");n?.addEventListener("click",function(){var a;return(a=window.dataLayer)===null||a===void 0?void 0:a.push(Object.freeze({event:"eventHaendler",haendlerId:t,eventCategory:"Landingpage",eventAction:"Fachberater Telephone angeklickt",eventLabel:"Fachberater",eventValue:0,currentUrl:window.location.href}))});var i=e.querySelector(".expert-advice__link");i?.addEventListener("click",function(){var a;return(a=window.dataLayer)===null||a===void 0?void 0:a.push(Object.freeze({event:"eventHaendler",haendlerId:t,eventCategory:"Landingpage",eventAction:"Fachberater Link angeklickt",eventLabel:"Fachberater",eventValue:0,currentUrl:window.location.href}))})}function closeExportAdvice(e){var r=e.currentTarget,t=r.closest(".expert-advice");t?.classList.remove("active")}var ExpertAdvice=function(){function e(){var r=this;this.initPageLoad=!0,this.initAllListeners=function(){r.listenToExpertAdviceClick(),"IntersectionObserver"in window&&(r.listenToPrdListing(),r.listenToScrollForFooter()),r.listenToCloseExpertAdvice(),r.listenToLinkClick()},this.listenToCloseExpertAdvice=function(){Array.from(document.querySelectorAll(".expert-advice")).forEac
77h(function(t){var n=t.querySelector(".expert-advice__close");n?.addEventListener("click",function(){return t.classList.remove("active")})})},this.listenToPrdListing=function(){var t=Object.freeze({root:null,threshold:0,rootMargin:"0px"}),n=new IntersectionObserver(handleExpertAdviceOnPrdList,t),i=document.querySelectorAll(".prd-grid-item"),a=getBrowserWidth();a<768&&i.length>6?n.observe(i[6]):Array.from(document.querySelectorAll(".expert-advice")).forEach(function(s){return s.classList.remove("hidden")})},this.listenToExpertAdviceClick=function(){Array.from(document.querySelectorAll(".expert-advice")).forEach(function(t){var n=t.querySelector(".expert-advice__init-msg");addTrackers(t),n?.addEventListener("click",function(){t.classList.add("active");var i=getBrowserWidth();i<768&&document.addEventListener("scroll",closeExpertAdviceOnScrollMobile)})})},this.makeAllAdvicesVisible=function(){Array.from(document.querySelectorAll(".expert-advice")).forEach(function(t){return t.classList.remove("hidden")})},this.exportAdviceFooterHandler=function(t){var n=getBrowserWidth();n<768&&t.forEach(function(i){i.boundingClientRect.top<0&&document.querySelectorAll(".expert-advice").forEach(function(a){return a.classList.add("hidden")}),r.initPageLoad||(i.isIntersecting&&i.intersectionRatio>0?document.querySelectorAll(".expert-advice").forEach(function(a){return a.classList.add("hidden")}):document.querySelectorAll(".expert-advice").forEach(function(a){return a.classList.remove("hidden")}))}),r.initPageLoad=!1},this.listenToScrollForFooter=function(){var t=Object.freeze({root:null,threshold:0,rootMargin:"0px"}),n=new IntersectionObserver(r.exportAdviceFooterHandler,t);document.querySelectorAll("footer.main-footer").forEach(function(i){return n.observe(i)})},this.listenToLinkClick=function(){var t;(t=document.getElementById("expert-advice-link"))===null||t===void 0||t.addEventListener("click",closeExportAdvice)}}return e}(),__values$f=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$9=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$8=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},extractParamsFromAllFilterForms=function(e){var r,t,n,i,a=[];try{for(var s=__values$f(e.entries()),c=s.next();!c.done;c=s.next()){var h=c.value,l=h[0],p=h[1];if(!(!((n=h[0])===null||n===void 0)&&n.startsWith("_")||!((i=h[1])===null||i===void 0)&&i.startsWith("_")))if(typeof p=="string"&&(p=encodeURIComponent(p)),p==="range"){var b="".concat(l,"=").concat(p);l==="filter.PRICE"&&(b="price_range_changed=true&filter.PRICE=range");var m=l.substring(7),A="filter.from_".concat(m),L=e.get(A),k="".concat(A,"=").concat(L),T="filter.to_".concat(m),S=e.get(T),M="".concat(T,"=").concat(S);a.push(b,k,M)}else!l.includes(".from_")&&!l.includes(".to_")&&p!==""&&a.push("".concat(l,"=").concat(p))}}catch(H){r={error:H}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}return a.join("&")},getSelectedRadioFilters=function(e,r){var t=e.length>0?e[0].getAttribute("action"):"",n=[t||"",r,"p=0"];return e.forEach(function(i){return n.push(extractParamsFromAllFilterForms(new FormData(i)))}),n.join("&")},getSortingParam=function(){var e=document.querySelector("#item-sort");return e?"".concat(e.name,"=").concat(e.value):""},createURLWithParams=function(e){e=e||"";var r=__spreadArray$8([],__read$9(document.forms),!1).filter(function(i){return i.classList.contains("js-filter-form")});e=e.replace(/&p=\d+/g,"");var t=getSelectedRadioFilters(r,e);if(!t.includes("sortBy")){var n=getSortingParam();t=t+"&"+n}return t=t.replace(/&&/g,"&"),t=t.replace(/=&/,""),t.includes("&")&&(!t.includes("?")||t.indexOf("?")>t.indexOf("&"))&&(t=t.replace(/\?/g,"&"),t=t.replace(/&/,"?")),t};function toggleUnitLabel(){var e=this.getElementsByClassName("js--size-expander-unit");e&&e.length>0&&(this.classList.contains("collapsed")?e[0].classList.remove("hidden"):e[0].classList.add("hidden"))}function listenToSizeFilterOpener(){for(var e=document.getElementsByClassName("js--size-expander"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLElement&&t.addEventListener("click",toggleUnitLabel)}}
77function appendFilterNameAndValueToUrl(){var e=this.dataset.filterName,r=this.dataset.filterValue;if(e&&e!==""&&r&&r!==""){var t=document.querySelector('input[name="'.concat(e,'"]'));t&&t instanceof HTMLInputElement&&(t.value=r)}}function listenToRangeFilterButtonClick(){for(var e=document.getElementsByClassName("js--range-submit"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLElement&&t.addEventListener("click",appendFilterNameAndValueToUrl)}}function removeSizeFilterAndReloadUrl(){var e=this.dataset.inputName;if(e&&e!==""){var r=new URL(window.location.href);r.searchParams.delete(e),window.location.assign(r)}}function listenToSizeFilterReset(){for(var e=document.getElementsByClassName("current-filter-reset"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLElement&&t.hasAttribute("size-filter")&&t.addEventListener("click",removeSizeFilterAndReloadUrl)}}var __read$8=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$7=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function listenToExhibitionFilterChange(){__spreadArray$7([],__read$8(document.getElementsByClassName("filter__input--exhibition")),!1).forEach(function(e){e.addEventListener("click",doListenToExhibitionFilterChange)})}function doListenToExhibitionFilterChange(e){var r=e.target,t=document.getElementById("hidden_"+r.id);t.value=r.checked?"true":"false"}function restoreOpenedLabels(){for(var e,r=document.getElementsByClassName("js--size-expander-unit"),t=0;t<r.length;t++){var n=r.item(t);n&&n instanceof HTMLElement&&!(!((e=n.parentElement)===null||e===void 0)&&e.classList.contains("collapsed"))&&n.classList.remove("hidden")}}function listenToFilterEvents(){listenToRangeFilterButtonClick(),listenToSizeFilterOpener(),listenToSizeFilterReset(),listenToExhibitionFilterChange(),restoreOpenedLabels()}function formatTrackingValue(e){return e===void 0?e:e.toLowerCase().replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/Ã/g,"ss").replace(/(\r\n|\n|\r)/gm,"").trim()}var __values$e=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function removeArticleCount(e){return e.indexOf("(")>0&&(e=e.replace(/\s\([^()]*\)/g,"")),e}function pushFilterToDataLayer$1(e,r){r=removeArticleCount(r),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"filter",filter_category:formatTrackingValue(e),filter_name:formatTrackingValue(r)})}function listenToSelectListProductListFilters(){var e=document.getElementsByClassName("ga__productlist-filter-option");Array.from(e).forEach(function(r){var t=r.getElementsByClassName("ga__filter-category")[0].textContent||"",n=r.getElementsByTagName("select")[0];n.addEventListener("change",function(){var i,a,s=n.selectedOptions,c=[];try{for(var h=__values$e(s),l=h.next();!l.done;l=h.next()){var p=l.value;c.push(p.text)}}catch(m){i={error:m}}finally{try{l&&!l.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}var b=c.join(",");pushFilterToDataLayer$1(t,b)})})}function listenToListProductListLinks(){var e=document.getElementsByClassName("ga__productlist-filter-link");Array.from(e).forEach(function(r){var t=r.getElementsByClassName("ga__filter-category")[0].textContent||"";Array.from(r.getElementsByTagName("a")).forEach(function(n){return n.addEventListener("click",function(){var i=n.innerText;pushFilterToDataLayer$1(t,i)})})})}function isPartOfPriceRangeFilter(e){return e.classList.contains("ga__filter-price-range")||e.classList.contains("ga__filter-range-from")||e.classList.contains("ga__filter-range-to")}function isPriceRangeInputText(e){return e.classList.contains("ga__filter-range-from")||e.classList.contains("ga__filter-range-to")}function listenToMultiSelectProductListFilters(){var e=document.getElementsByClassName("ga__productlist-filter-multiselect");Array.from(e).forEach(function(r){var t=r.getElementsByClassName("ga__filter-category")[0].textContent||"",n=r.getElementsByTagName("input");
77Array.from(n).forEach(function(i){isPartOfPriceRangeFilter(i)?isPriceRangeInputText(i)&&i.addEventListener("change",function(){publishFilterWithCustomRange(r,t)}):i.addEventListener("change",function(){var a=[];r.querySelectorAll("input:checked + label").forEach(function(c){return a.push((c.textContent||"").trim())});var s=a.length===0?"beliebig":a.join(",");pushFilterToDataLayer$1(t,s)})})})}function listenToSliderFilters(){var e=document.getElementsByClassName("ga__productlist-filter-slider");Array.from(e).forEach(function(r){var t=r.getElementsByClassName("ga__filter-category")[0].textContent||"",n=r.getElementsByTagName("input")[0];n.addEventListener("change",function(){var i=String(n.checked);pushFilterToDataLayer$1(removeArticleCount(t),i)})})}function publishFilterWithCustomRange(e,r){var t=e.getElementsByClassName("ga__filter-range-from")[0].value,n=e.getElementsByClassName("ga__filter-range-to")[0].value;pushFilterToDataLayer$1(r,t+" bis "+n)}function listenToFilterRangeConfirmation(){var e=document.getElementsByClassName("ga__productlist-range-filter");Array.from(e).forEach(function(r){var t=r.getElementsByClassName("ga__filter-category")[0].textContent||"",n=r.getElementsByClassName("ga__range-submit")[0];n&&n.addEventListener("click",function(){publishFilterWithCustomRange(r,t)})})}function gaListenToProductlistFilters(){listenToSliderFilters(),listenToSelectListProductListFilters(),listenToMultiSelectProductListFilters(),listenToFilterRangeConfirmation(),listenToListProductListLinks()}function createLoadDataOnHistoryChangeFunction(e){return function(){const t=History$1.getState().url+"&ajax=true";$$1.get(t,function(n){if(n==="")window.location.reload(!0);else{e.loading.stop();const i=$$1(n);Pubsub.publish("core.preattach",i),setTimeout(function(){$$1(".prd-list-part").replaceWith(i),Pubsub.publish("core.attach",i),new ExpertAdvice().initAllListeners(),gaListenToProductlistFilters()},1)}}).fail(function(){e.loading.stop()})}}function ProductListFilters(){Pubsub.subscribe("core.preattach",$$1.proxy(this.preattach,this)),Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this)),this.in_ids=[],this.loading=new Loading,this.filterBtnHTML="",History$1.Adapter.bind(window,"statechange",createLoadDataOnHistoryChangeFunction(this))}ProductListFilters.prototype.preattach=function(e,r){$$1.each(this.in_ids,function(){r.find(".prd-filter-list #"+this).removeClass("collapse").addClass("in"),r.find(`[data-target="#${this}"]`).removeClass("collapsed")}),listenToSizeFilterOpener()};function resetInputs(e){let r=!1;e.each(function(){$$1(this).prop("checked")&&($$1(this).prop("checked",!1),r=!0),$$1(this).is(":text")&&$$1(this).val()!==$$1(this).attr("data-original")&&($$1(this).val($$1(this).attr("data-original")),r=!0),$$1(this).is("select")&&$$1(this)[0].selectedIndex!==0&&(r=!0,$$1(this)[0].selectedIndex=0),this instanceof HTMLInputElement&&this.type==="hidden"&&this.value==="range"&&(this.value="",r=!0)}),r&&e.first().trigger("change")}ProductListFilters.prototype.attach=function(e,r){let t=this,n=["filter.from_PRICE","filter.to_PRICE","filter.from_Breite_Artikel","filter.to_Breite_Artikel","filter.from_Staerke_Artikel","filter.to_Staerke_Artikel","filter.from_Laenge_Artikel","filter.to_Laenge_Artikel"],i=["filter.distance=any"];function a(){let l=window.location.search.substring(1),p=l.split("&"),b=[];for(const m of p){let A=m.split("=");if(decodeURIComponent(A[0]).indexOf("filter")>-1&&n.indexOf(A[0])===-1){let L={name:decodeURIComponent(A[0]),value:decodeURIComponent((A[1]+"").replace(/\+/g,"%20"))};b.push(L)}}return b}let s=a();function c(l){return l&&l[0]&&l[0].hasAttribute("filter-size")?l[0].getAttribute("filter-size"):$$1("label",l.parent()).text().replace(/ *\([^)]*\) */g,"").trim()}if(s){let l=$$1(".active-filters"),p=$$1("#filter-reset-btn"),b=$$1.parseHTML('<button class="btn btn-link text--small"><span class="nm-icon pad-right nm-icon-cross pull-left no-marge"></span>'+p.text()+"</button>");l.length>0&&(l[0].innerHTML="");for(let m of s){if(i.indexOf(m.name+"="+m.value)>-1)continue;let A=$$1(),L="";if(m.name==="filter.distance"?(A=$$1('a[data-additional-param="'+m.name+"="+m.value+'"]'),L=A.text().replace(/ *\([^)]*\) */g,"").trim()):(A=$$1('input[name="'+m.name+'"][value="'+m.value+'"]'),L=c(A),L||(A=$$1('input[type="hidden"][name="'+m.name+'"]'),L=c(A))),!L)continue;let k=$$1.parseHTML('<button type="button" class="btn btn-default text--small">'+L+'<span class="nm-icon pad-left nm-icon-cross pull-right no-marge"></span></button>');l.append(k),$$1(k).off("click").on("click",function(){if(A[0].nodeName.toLowerCase()==="a")$$1('a.reset[data-additional-param*="'+m.name+'"]').trigger("click");else switch(A[0].type){case"checkbox":A.trigger("click");break;case"radio":case"hidden":$$1('.current-filter-reset[data-input-name="'+m.name+'"]').trigger("click");break;default:window.console.error("filter type not available: "+A[0].type)}}),p.length>
770&&($$1(b).off("click").on("click",function(){p.trigger("click")}),l.append(b)),updateProductFilterList()}}[...document.querySelectorAll("#from_price, #to_price, #from_Staerke_Artikel, #to_Staerke_Artikel,#from_Breite_Artikel,#to_Breite_Artikel,#from_Laenge_Artikel,#to_Laenge_Artikel")].forEach(l=>{l.addEventListener("click",p=>{const b=p.currentTarget;b.checked=!0})}),$$1(".color-thumb").tooltip().mouseenter(function(l){$$1(this).addClass("checkmark"),l.stopPropagation()}).mouseleave(function(){$$1(this).removeClass("checkmark")}),$$1("form#filter-form input:not(.js--ignore-input-event), #item-count",r).off("change").on("change",$$1.proxy(this.reload,this)),$$1("form#filter-form a.link-to-input-filter",r).off("click").on("click",function(l){l.preventDefault();function p(b,m){let A=b.split("&"),L=[];for(let k=A.length;k--;)if(A[k].indexOf(m)!==-1){let T=A[k].split("=");L.push(T[1])}return L}if(!$$1(this).hasClass("active")){let b=$$1(this).data("filter-by"),m=p($$1(this).attr("href").substr(1),b),A=$$1(this).data("additional-param"),L=$$1('input[name="'+b+'"]');L.prop("checked",!1),$$1.each(m,function(k,T){L.filter('[value="'+T+'"]').prop("checked",!0)}),t.reload(l,A)}}),$$1("#item-sort",r).off("change").on("change",$$1.proxy(this.reload,this)),$$1("form#filter-reset-btn,#filter-reset-btn",r).off("click").on("click",function(){document.getElementById("filter-list-btn").classList.remove("active"),resetInputs($$1("form#filter-form input, form#filter-form select",r)),document.getElementById("active-filters-counter").textContent="",displaySelectedFilters()}),$$1(".filter-options__close-btn",r).off("click").on("click",l=>{const p=sessionStorage.getItem("filterState");$$1("#filter-form :checkbox:checked").each((k,T)=>{p&&!p.includes(T.name)&&(T.checked=!1)}),closeProductFilterList();let b=this,m=$$1("form#filter-form"),A=!1;if($$1(l.target).is("[value=range]")){enableRange(l.target,!0);return}($$1(l.target).is("#from_price")||$$1(l.target).is("#to_price"))&&(A=!0);let L=m.attr("action")+"&"+sessionStorage.getItem("filterState")+"&price_range_changed="+A+"&"+$$1("#item-count, #item-sort").serialize()+"&p=0";L=L.replace(/&&/g,"&"),L=L.replace(/=&/,""),b.reloadUrl(L,!0)}),$$1("#show-listing-based-on-selected-filters",r).off("click").on("click",()=>{sessionStorage.removeItem("filterState"),displaySelectedFilters()}),$$1("form#filter-form .current-filter-reset",r).off("click").on("click",function(){var l=$$1(this).attr("data-input-name");typeof l<"u"&&resetInputs($$1("form#filter-form input[name='"+l+"']",r))});var h="shown.bs.collapse hidden.bs.collapse";$$1(".prd-filter").off(h).on(h,function(){t.in_ids=[],$$1(".prd-filter-list .in").each(function(){t.in_ids.push($$1(this).attr("id"))})}),listenToFilterEvents()};ProductListFilters.prototype.reload=function(e,r){const t=createURLWithParams(r);t&&t!==""&&this.reloadUrl(t,!0)};ProductListFilters.prototype.reloadUrl=function(e,r){this.loading.load();const t=History$1.getState();History$1.pushState({},document.title,e),t.cleanUrl===e&&History$1.Adapter.trigger(document.body,"statechange"),r&&this.loading.stop()};function displaySelectedFilters(){new Offcanvas().hide(),updateProductFilterList()}function closeProductFilterList(){displaySelectedFilters(),document.getElementById("filter-list-btn").classList.remove("active")}function getHiddenActiveFilters(){return Array.from(document.querySelectorAll('#filter-form input[type="hidden"]')).filter(e=>e.value&&e.value!=="")}function updateProductFilterList(){const e=document.getElementById("item-sort"),r=getHiddenActiveFilters();let t=$$1("#filter-form :checkbox:checked").length+$$1("#filter-form :input[type=radio]:checked").length+r.length;e.selectedIndex!==0&&t++;const n=document.getElementById("filter-list-btn");t>0?(n.classList.add("active"),document.getElementById("active-filters-counter").textContent="("+t+")"):(n.classList.remove("active"),document.getElementById("active-filters-counter").textContent="")}/*! 78 * jquery.base64.js 0.0.3 - https://github.com/yckart/jquery.base64.js 79 * Makes Base64 en & -decoding simpler as it is. 80 * 81 * Based upon: https://gist.github.com/Yaffle/1284012 82 * 83 * Copyright (c) 2012 Yannick Albert (http://yckart.com) 84 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). 85 * 2013/02/10 86 **/(function(e){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
86+/",t="",n=[256],i=[256],a=0,s={encode:function(p){var b=p.replace(/[\u0080-\u07ff]/g,function(m){var A=m.charCodeAt(0);return String.fromCharCode(192|A>>6,128|A&63)}).replace(/[\u0800-\uffff]/g,function(m){var A=m.charCodeAt(0);return String.fromCharCode(224|A>>12,128|A>>6&63,128|A&63)});return b},decode:function(p){var b=p.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(m){var A=(m.charCodeAt(0)&15)<<12|(m.charCodeAt(1)&63)<<6|m.charCodeAt(2)&63;return String.fromCharCode(A)}).replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(m){var A=(m.charCodeAt(0)&31)<<6|m.charCodeAt(1)&63;return String.fromCharCode(A)});return b}};a<256;){var c=String.fromCharCode(a);t+=c,i[a]=a,n[a]=r.indexOf(c),++a}function h(p,b,m,A,L,k){p=String(p);for(var T=0,S=0,M=p.length,H="",te=0;S<M;){var Ie=p.charCodeAt(S);for(Ie=Ie<256?m[Ie]:-1,T=(T<<L)+Ie,te+=L;te>=k;){te-=k;var we=T>>te;H+=A.charAt(we),T^=we<<te}++S}return!b&&te>0&&(H+=A.charAt(T<<k-te)),H}var l=e.base64=function(p,b,m){return b?l[p](b,m):p?null:this};l.btoa=l.encode=function(p,b){return p=l.raw===!1||l.utf8encode||b?s.encode(p):p,p=h(p,!1,i,r,8,6),p+"====".slice(p.length%4||4)},l.atob=l.decode=function(p,b){p=p.replace(/[^A-Za-z0-9\+\/\=]/g,""),p=String(p).split("=");var m=p.length;do--m,p[m]=h(p[m],!0,n,t,6,8);while(m>0);return p=p.join(""),l.raw===!1||l.utf8decode||b?s.decode(p):p}})(jQuery);const defaults$1={container:"body",contentSelector:""};$$1.fn.pagination=e=>{const r=Object.assign(defaults$1,e),t=$$1(globalThis);return t.each(()=>{$$1(globalThis).data("Pagination",new Pagination($$1(globalThis),r.container))}),t};function Pagination(e,r){this.loading=new Loading,this.$el=e;let t=this;e.find("a").off("click").on("click",function(n){if(n.preventDefault(),n.stopPropagation(),!$$1(this).parent().hasClass("disabled")){t.loading.load();let i=$$1(this).data("href");i=i.replace("?sortBy=ct&","?"),i=i.replace("&sortBy=ct",""),i=i.replace("?show=all&","?"),i=i.replace("&show=all",""),$$1.get($$1.base64.decode($$1(this).data("ajax-href")),function(a){let s=!1;$$1("body, html").animate({scrollTop:r.offset().top},400,function(){if(!s)if(s=!0,a==="")window.location.reload(!0);else{let c=$$1(a);window.history.pushState(null,null,i),Pubsub.publish("core.preattach",c),setTimeout(function(){r.replaceWith(c),Pubsub.publish("core.attach",c),t.loading.stop(),new ExpertAdvice().initAllListeners()},1)}})})}})}Pagination.prototype={activePage:()=>globalThis.$el.find(".active a").attr("data-page")};$$1.fn.lazyload=function(){let e=$$1(this),r=[];return $$1("img.lazy[data-src]:not(.loaded)",e).each(function(){$$1(this).on("load",function(){$$1(this).addClass("loaded")}),$$1(this).attr("src",$$1(this).attr("data-src")),r.push(this)}),r};function LazyScroll(e,r){let t={count:60,throttle:150};this.options=$$1.extend(t,r),this.elementSelector=e,this.setup()}LazyScroll.prototype={sliderInitializer:new SliderInitializer,setup:function(){let e=this,r=null;$$1(window).on("resize scroll",function(){r&&clearTimeout(r),r=setTimeout(function(){e.checkAndLoadVisibleElements()},e.options.throttle)}),this.checkAndLoadVisibleElements()},checkAndLoadVisibleElements:function(){let e=this,r=$$1(e.elementSelector).not(".initialized"),t=0;r.each(function(){if(e.isElementInViewport(this)&&(e.loadContent(this),$$1(this).addClass("initialized"),t++),t>=e.options.count)return!1})},isElementInViewport:function(e){let r=e.getBoundingClientRect();return r.bottom>=0&&r.top<=(window.innerHeight||document.documentElement.clientHeight)&&r.right>=0&&r.left<=(window.innerWidth||document.documentElement.clientWidth)},loadContent:function(e){let r=this.sliderInitializer.sliderConfigs.productSliderConfig.selector,t=this.sliderInitializer.sliderConfigs.productSliderConfig.config,n=$$1(r,e);n.length===1?this.sliderInitializer.singleInit(n,t):$$1(e).lazyload()}};var IGNORE_EXHIBITION_FILTER="ignoreExhibitionFilter";function handeExceptionFilterChange(e){e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&(e.currentTarget.checked?sessionStorage.removeItem(IGNORE_EXHIBITION_FILTER):sessionStorage.setItem(IGNORE_EXHIBITION_FILTER,"true"))}function listenToExhibitionDefaultException(){var e=document.querySelector('[name="filter.exhibition"]');e&&e instanceof HTMLInputElement&&e.addEventListener("click",handeExceptionFilterChange)}function Product(){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this)),Pubsub.subscribe("res",$$1.proxy(this.resxs,this)),this.offcanvas=new Offcanvas,this.filters=new ProductListFilters}Product.prototype={attach:function(e,r){listenToExhibitionDefaultException(),this.lazyScroll=ne
86w LazyScroll(".prd-grid-item");const t=$$1("#filter-list-btn-container"),n=$$1(".flex-item-form input:checkbox"),i=this;function a(){document.querySelector("#filter-list-btn").classList.add("-display-grid")}document.querySelector(".prd-filter")&&a(),t.off("click").on("click",function(s){sessionStorage.setItem("filterState",$$1("#filter-form").serialize()),s.preventDefault(),s.stopPropagation(),i.offcanvas.toggle()}),$$1("input:radio").click(function(){$$1('label[for="'+$$1(this).attr("id")+'"]').toggleClass("list-active")}),n.click(s=>{const c=$$1(s.target);c.hasClass("filter__input--exhibition")&&(c.is(":checked")?$$1("#filterlist_distance").collapse("show"):$$1("#filterlist_distance").collapse("hide"))}),this.pagination=$$1(".js_list-pager",r).pagination({container:$$1(".prd-list-part")}).data("Pagination"),i.isxs&&i.offcanvas.switchIt(i.isxs,!0)},resxs:function(e,r){(e==="res.xs"||e==="res.sm")&&r?(this.isxs=r,this.offcanvas.switchIt(r)):(e==="res.md"||e==="res.lg")&&r&&(this.isxs=!1,this.offcanvas.switchIt(!1))}};function enableRange(e,r){e.name&&e.name!==""&&(e.name==="filter.Breite_Artikel"&&$$1("#from_Breite_Artikel, #to_Breite_Artikel").prop("disabled",!r),e.name==="filter.Laenge_Artikel"&&$$1("#from_Laenge_Artikel, #to_Laenge_Artikel").prop("disabled",!r),e.name==="filter.Staerke_Artikel"&&$$1("#from_Staerke_Artikel, #to_Staerke_Artikel").prop("disabled",!r),e.name==="filter.PRICE"&&$$1("#from_price, #to_price").prop("disabled",!r))}function Methods(){}Methods.prototype={required:function(e,r){if(r.nodeName.toLowerCase()==="select"){var t=$$1(r).val();return t&&t.length>0}return this.checkable(r)?this.getLength(e,r)>0:$$1.trim(e).length>0},email:function(e){return/^((([a-z]|\d|[!#$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(e)},url:function(e){return/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)}
86,date:function(e){return!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e){return/^\d{4}[/-]\d{1,2}[/-]\d{1,2}$/.test(e)},number:function(e){return/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e){return/^\d+$/.test(e)},creditcard:function(e){if(/[^0-9 -]+/.test(e))return!1;var r=0,t=0,n=!1;e=e.replace(/\D/g,"");for(var i=e.length-1;i>=0;i--){var a=e.charAt(i);t=parseInt(a,10),n&&(t*=2)>9&&(t-=9),r+=t,n=!n}return r%10===0},minlength:function(e,r){var t=e.length;return t>=r},maxlength:function(e,r){var t=e.length;return t<=r},rangelength:function(e,r){var t=e.length;return t>=r[0]&&t<=r[1]},min:function(e,r){return e>=r},max:function(e,r){return e<=r},range:function(e,r,t){return this.min(r)&&this.max(t)},checkable:function(e){return/radio|checkbox/i.test(e.type)},getLength:function(e,r){switch(r.nodeName.toLowerCase()){case"select":return $$1("option:selected",r).length;case"input":if(this.checkable(r))return this.findByName(r.name).filter(":checked").length}return e.length},findByName:function(e){return this.$el.find('[name="'+e+'"]')}};function Validator(e,r){this.$el=e,this.methods=new Methods,this.scrollToError=!0;var t=this;if(this.setElements(),this.formElements.off("change.formvalidation").on("change.formvalidation",function(){t.validateElement($$1(this),!0)}),r&&r.plugin){var n=function(i){if(!t.validate(!0)){i.preventDefault(),i.stopPropagation();return}};this.$el.is("form")?this.$el.is("[data-ajax]")||this.$el.submit(n):this.validate(!0)}}Validator.prototype={validate:function(e,r){this.setElements();var t=this,n=!0;return this.formElements.each(function(){var i=t.validateElement($$1(this),e);i||(n=i,t.showError($$1(this)))}),t.$el.data("FormValid",n),!n&&!r&&this.showError(this.$el),n},showError:function(e,r){$$1(".form-error",e).first().show();var t=$$1(".form-error",e).first().attr("data-orig-error");if(t&&!r&&$$1(".form-error .msg",e).first().html(t),this.scrollToError){var n=$$1(".form-error",e).length>0?$$1(".form-error",e).first().offset().top:e.offset().top;$$1("html, body").animate({scrollTop:n},200)}},validateElement:function(e,r){var t=e.val(),n=!0;if(e.attr("required")!=null||t!==""){if(e.attr("required")&&!this.methods.required(t,e[0]))n=!1;else if(e.attr("type")==="url"&&!this.methods.url(t))n=!1;else if(e.attr("data-min")&&(!this.methods.digits(t)||!this.methods.min(t,e.attr("data-min"))))n=!1;else if(e.attr("data-date")!=null&&e.attr("data-agerange")){var i=e.attr("data-agerange").split(";"),a=i[0],s=i[1];if(t=this.jsDateString(t),this.methods.date(t)){var c=this.getAge(t);(c<a||c>s)&&(n=!1)}else n=!1}else(e.attr("data-date")&&!this.methods.date(this.jsDateString(t))||e.attr("data-match")&&$$1(e.attr("data-match")).val()!==t)&&(n=!1);e.is("[type=radio]:checked")&&e.prop("disabled")&&(n=!1)}return!n&&r?e.parent().addClass("has-error"):r&&e.parent().removeClass("has-error"),n},setElements:function(){this.formElements=this.$el.find("input, select, textarea").not(":submit, :reset, :image")},jsDateString:function(e){var r=e.split(".");return r[1]+"/"+r[0]+"/"+r[2]},getAge:function(e){var r=new Date,t=new Date(e),n=r.getFullYear()-t.getFullYear(),i=r.getMonth()-t.getMonth();return(i<0||i===0&&r.getDate()<t.getDate())&&n--,n}};$$1.fn.validator=function(e){var r=$$1(this);return r.each(function(){e=$$1.extend(e,{plugin:!0}),new Validator($$1(this),e)}),r};function Account(){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this)),Pubsub.subscribe("res",$$1.proxy(this.responsive,this)),this.loading=new Loading}Account.prototype={attach:function(){var e=this;this.correctSliders=function(){var t=$$1(".slider-container").width(),n=Math.floor(t/2)+t%2;$$1(".toggle.handle").width(n),$$1(".toggle.no").width(t-n-2);var i=$$1(".toggle.yes").width(t-n-2);$$1(".slider").each(function(a){this.style.left!==""&&parseInt(this.style.left)!==0&&(this.style.left="-"+i.get(a).style.width)})},$$1(window).off("resize").on("resize",function(){e.correctSliders()}),this.correctSliders(),$$1(".account-menu-up, .account-menu-handle").off("click").on("click",function(){e.curtain($$1(".account-menu-up .glyphicon-chevron-up").length>0)}),$$1(".account-preferences .toggle").off("click").on("click",function(){var t=/(\w+)$/,n=t.exec(this.parentNode.parentNode.parentNode.className),i=n[n.length-1],a=$$1(".account-preferences."+i+" .slider"),s=a.get(0).style.left,c=s===""||parseInt(s)===0,h=!c,l=$$1(".account-preferences."+i+" .yes").width(),p=h?0:"-"+l;a.animate({left:p+"px"}),$$1("input[name='"+i+"']").get(0).value=c?0:1}),$$1(".account-address-error-radio-col input[type='radio']").on("change",function(){$$1(".account-address-correction-row").toggleClass("selected",!1),$$1(this.parentNode.parentNode).toggleClass("selected",!0)}
86),$$1(".account-address-correction-row").off("click").on("click",function(){$$1(".account-address-correction-row").toggleClass("selected",!1),$$1(this).toggleClass("selected",!0),$$1(this).find("input[type='radio']").get(0).checked=!0});var r=[".telnumber-edit",".faxnumber-edit",".email-edit",".password-edit",".iban-edit","#account-address-edit-dialog","#account-address-delete-confirmation","#account-order-cancel-confirmation"];r=r.join(", "),$$1("#account-address-edit-dialog").on("hide.bs.collapse",function(){$$1(".command-center").toggleClass("disabled",!1)}),$$1("#account-address-delete-confirmation").on("hide.bs.collapse",function(){$$1(".command-center").toggleClass("disabled",!1)}),$$1(".account-edit-button .action-btn").off("click").on("click",function(){var t=$$1(this).closest("form"),n=this.getAttribute("data-target");n===".email-edit"?$$1("#accountTargetType").val("EMAIL"):n===".password-edit"?$$1("#accountTargetType").val("PASSWORD"):n===".telnumber-edit"?$$1("#accountTargetType").val("PHONES"):n===".faxnumber-edit"?$$1("#accountTargetType").val("FAX"):n===".iban-edit"&&$$1("#accountTargetType").val("BANKACCOUNT"),$$1.post(t.attr("action"),t.serialize(),function(i){i.success})}),$$1(r).on("hide.bs.collapse",function(){$$1(".command-center").toggleClass("disabled",!1)}),this.hideCaller(".account-data-edit-link"),this.recycleDialog(".account-address-edit-link","#account-address-edit-dialog"),this.recycleDialog(".account-address-delete-link","#account-address-delete-confirmation"),this.recycleDialog(".account-order-cancel-link","#account-order-cancel-confirmation")},hideCaller:function(e){$$1(e).off("click").on("click",function(){$$1(this.parentNode).is(".command-center")&&$$1(this.parentNode).toggleClass("disabled",!0)})},recycleDialog:function(e,r){var t=$$1(e);t.off("click").on("click",function(){$$1(this.parentNode).is(".command-center")&&$$1(this.parentNode).toggleClass("disabled",!0);var i=this.getAttribute("href")||this.getAttribute("data-target"),a=$$1(i).is(".in");a&&$$1(i).collapse("hide");for(var s=this.getAttribute("data-alias"),c=s?$$1(s).get(0):this,h=$$1(c).is(".row, .form-group")?c:c.parentNode;h&&!$$1(h).is(".row, .form-group");)h=h.parentNode;$$1(h).is(".row, .form-group")&&$$1(h).after($$1(r))}),e=e.replace(/^\W/,"");for(var n=0;n<t.length;n++)t[n].id=e+"-"+n},curtain:function(e){var r=$$1(".account-menu").height();$$1(".local-menu-sm").animate({height:e?65:r+40},{step:function(){var n=-(r+20-$$1(this).height());$$1(".account-menu").css("top",n+"px")}});var t=$$1(".account-menu-up .glyphicon");t.toggleClass("glyphicon-chevron-up",!e),t.toggleClass("glyphicon-chevron-down",e)},localmenu:function(e,r){var t=$$1(".local-menu-sm").get(0),n=$$1(".local-menu-md").get(0),i=$$1(".local-menu").get(0);e&&r?($$1(t).css("display","block"),$$1(t).css("height",""),t.appendChild(i.parentNode.removeChild(i))):!e&&r&&($$1(t).css("display","none"),n.appendChild(i.parentNode.removeChild(i)))},responsive:function(e,r){switch(this.localmenu(e.match(/\.(xs|sm)$/),r),e){case"res.xs":break;case"res.sm":break;default:this.curtain(!1)}}};function CheckboxVisibilityToggle(){this.addHandlers=function(e,r,t,n){let i=$$1(e);i.find($$1(r)).each(function(){let a=$$1(this),s=i.find(a.data(t));a.on("click",function(){n(a,s)}),n(a,s)})}}CheckboxVisibilityToggle.prototype={addVisibilityHandlers:function(e,r,t){return this.addHandlers(e,r,t,function(n,i){n.prop("checked")?i.show():i.hide()})},addDisabledHandlers:function(e,r,t){return this.addHandlers(e,r,t,function(n,i){n.prop("checked")?i.removeAttr("disabled"):i.prop("disabled","disabled")})}};var HOOKS=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],defaults={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return typeof console<"u"&&console.warn(e)},getWeek:function(e){var r=new Date(e.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var t=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
86ox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},pad=function(e,r){return r===void 0&&(r=2),("000"+e).slice(r*-1)},int=function(e){return e===!0?1:0};function debounce(e,r){var t;return function(){var n=this,i=arguments;clearTimeout(t),t=setTimeout(function(){return e.apply(n,i)},r)}}var arrayify=function(e){return e instanceof Array?e:[e]};function toggleClass(e,r,t){if(t===!0)return e.classList.add(r);e.classList.remove(r)}function createElement(e,r,t){var n=window.document.createElement(e);return r=r||"",t=t||"",n.className=r,t!==void 0&&(n.textContent=t),n}function clearNode(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function findParent(e,r){if(r(e))return e;if(e.parentNode)return findParent(e.parentNode,r)}function createNumberInput(e,r){var t=createElement("div","numInputWrapper"),n=createElement("input","numInput "+e),i=createElement("span","arrowUp"),a=createElement("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?n.type="number":(n.type="text",n.pattern="\\d*"),r!==void 0)for(var s in r)n.setAttribute(s,r[s]);return t.appendChild(n),t.appendChild(i),t.appendChild(a),t}function getEventTarget(e){try{if(typeof e.composedPath=="function"){var r=e.composedPath();return r[0]}return e.target}catch{return e.target}}var doNothing=function(){},monthToStr=function(e,r,t){return t.months[r?"shorthand":"longhand"][e]},revFormat={D:doNothing,F:function(e,r,t){e.setMonth(t.months.longhand.indexOf(r))},G:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},H:function(e,r){e.setHours(parseFloat(r))},J:function(e,r){e.setDate(parseFloat(r))},K:function(e,r,t){e.setHours(e.getHours()%12+12*int(new RegExp(t.amPM[1],"i").test(r)))},M:function(e,r,t){e.setMonth(t.months.shorthand.indexOf(r))},S:function(e,r){e.setSeconds(parseFloat(r))},U:function(e,r){return new Date(parseFloat(r)*1e3)},W:function(e,r,t){var n=parseInt(r),i=new Date(e.getFullYear(),0,2+(n-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek),i},Y:function(e,r){e.setFullYear(parseFloat(r))},Z:function(e,r){return new Date(r)},d:function(e,r){e.setDate(parseFloat(r))},h:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},i:function(e,r){e.setMinutes(parseFloat(r))},j:function(e,r){e.setDate(parseFloat(r))},l:doNothing,m:function(e,r){e.setMonth(parseFloat(r)-1)},n:function(e,r){e.setMonth(parseFloat(r)-1)},s:function(e,r){e.setSeconds(parseFloat(r))},u:function(e,r){return new Date(parseFloat(r))},w:doNothing,y:function(e,r){e.setFullYear(2e3+parseFloat(r))}},tokenRegex={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"
86(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},formats={Z:function(e){return e.toISOString()},D:function(e,r,t){return r.weekdays.shorthand[formats.w(e,r,t)]},F:function(e,r,t){return monthToStr(formats.n(e,r,t)-1,!1,r)},G:function(e,r,t){return pad(formats.h(e,r,t))},H:function(e){return pad(e.getHours())},J:function(e,r){return r.ordinal!==void 0?e.getDate()+r.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[int(e.getHours()>11)]},M:function(e,r){return monthToStr(e.getMonth(),!0,r)},S:function(e){return pad(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,r,t){return t.getWeek(e)},Y:function(e){return pad(e.getFullYear(),4)},d:function(e){return pad(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return pad(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,r){return r.weekdays.longhand[e.getDay()]},m:function(e){return pad(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},createDateFormatter=function(e){var r=e.config,t=r===void 0?defaults:r,n=e.l10n,i=n===void 0?english:n,a=e.isMobile,s=a===void 0?!1:a;return function(c,h,l){var p=l||i;return t.formatDate!==void 0&&!s?t.formatDate(c,h,p):h.split("").map(function(b,m,A){return formats[b]&&A[m-1]!=="\\"?formats[b](c,p,t):b!=="\\"?b:""}).join("")}},createDateParser=function(e){var r=e.config,t=r===void 0?defaults:r,n=e.l10n,i=n===void 0?english:n;return function(a,s,c,h){if(!(a!==0&&!a)){var l=h||i,p,b=a;if(a instanceof Date)p=new Date(a.getTime());else if(typeof a!="string"&&a.toFixed!==void 0)p=new Date(a);else if(typeof a=="string"){var m=s||(t||defaults).dateFormat,A=String(a).trim();if(A==="today")p=new Date,c=!0;else if(t&&t.parseDate)p=t.parseDate(a,m);else if(/Z$/.test(A)||/GMT$/.test(A))p=new Date(a);else{for(var L=void 0,k=[],T=0,S=0,M="";T<m.length;T++){var H=m[T],te=H==="\\",Ie=m[T-1]==="\\"||te;if(tokenRegex[H]&&!Ie){M+=tokenRegex[H];var we=new RegExp(M).exec(a);we&&(L=!0)&&k[H!=="Y"?"push":"unshift"]({fn:revFormat[H],val:we[++S]})}else te||(M+=".")}p=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),k.forEach(function(_){var oe=_.fn,ee=_.val;return p=oe(p,ee,l)||p}),p=L?p:void 0}}if(!(p instanceof Date&&!isNaN(p.getTime()))){t.errorHandler(new Error("Invalid date provided: "+b));return}return c===!0&&p.setHours(0,0,0,0),p}}};function compareDates(e,r,t){return t===void 0&&(t=!0),t!==!1?new Date(e.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):e.getTime()-r.getTime()}var isBetween=function(e,r,t){return e>Math.min(r,t)&&e<Math.max(r,t)},calculateSecondsSinceMidnight=function(e,r,t){return e*3600+r*60+t},parseSeconds=function(e){var r=Math.floor(e/3600),t=(e-r*3600)/60;return[r,t,e-r*3600-t*60]},duration={DAY:864e5};function getDefaultHours(e){var r=e.defaultHour,t=e.defaultMinute,n=e.defaultSeconds;if(e.minDate!==void 0){var i=e.minDate.getHours(),a=e.minDate.getMinutes(),s=e.minDate.getSeconds();r<i&&(r=i),r===i&&t<a&&(t=a),r===i&&t===a&&n<s&&(n=e.minDate.getSeconds())}if(e.maxDate!==void 0){var c=e.maxDate.getHours(),h=e.maxDate.getMinutes();r=Math.min(r,c),r===c&&(t=Math.min(h,t)),r===c&&t===h&&(n=e.maxDate.getSeconds())}return{hours:r,minutes:t,seconds:n}}typeof Object.assign!="function"&&(Object.assign=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(c){c&&Object.keys(c).forEach(function(h){return e[h]=c[h]})},i=0,a=r;i<a.length;i++){var s=a[i];n(s)}return e});var __assign$8=globalThis&&globalThis.__assign||function(){return __assign$8=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$8.apply(this,arguments)},__spreadArrays=globalThis&&globalThis.__spreadArrays||function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;for(var n=Array(e),i=0,r=0;r<t;r++)for(var a=arguments[r],s=0,c=a.length;s<c;s++,i++)n[i]=a[s];return n},DEBOUNCED_CHANGE_MS=300;function FlatpickrInstance(e,r){var t={config:__assign$8(__assign$8({},defaults),flatpickr.defaultConfig),l10n:english};t.parseDate=createDateParser({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=k,t._setHoursFromDate=m,t._positionCalendar=Vt,t.changeMonth=se,t.changeYear=ne,t.clear=xe,t.close=qe,t.onMouseOver=Be,t._createElement=createElement,t.createDay=we,t.destroy=R,t.isEnabled=be,t.jumpToDate=M,t.updateValue=Yt,t.open=_t,t.redraw=Ve,t.set=Ht,t.setDate=ar,t.toggle=Zt;function n(){t.utils={getDaysInMonth:function(U,J){return U===void 0&&(U=t.currentMonth),J===void 0&&(J=t.currentYear),U===1&&(J%4===0&&J%100!==0||J%400===0)?29:t.l10n.daysInMonth[U]}}}function i(){t.element=t.input=e,t.isOpen=!1,Pt(),rt(),dr(),Er(),n(),t.isMobile||Ie(),S(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&m(t.config.noCalendar?t.latestSelectedDateObj:void 0),Yt(!1)),c();var U=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&U&&Vt(),Ft("onReady")}function a(){var U;return((U=t.calendarContainer)===null||U===void 0?void 0:U.getRootNode()).activeElement||document.activeElement}function s(U){return U.bind(t)}function c(){var U=t.config;U.weekNumbers===!1&&U.showMonths===1||U.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var J=(t.days.offsetWidth+1)*U.showMonths;t.daysContainer.style.width=J+"px",t.calendarContainer.style.width=J+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}
vendor: 15,991 bytes, line 86
86function h(U){if(t.selectedDates.length===0){var J=t.config.minDate===void 0||compareDates(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),ue=getDefaultHours(t.config);J.setHours(ue.hours,ue.minutes,ue.seconds,J.getMilliseconds()),t.selectedDates=[J],t.latestSelectedDateObj=J}U!==void 0&&U.type!=="blur"&&wr(U);var Me=t._input.value;b(),Yt(),t._input.value!==Me&&t._debouncedChange()}function l(U,J){return U%12+12*int(J===t.l10n.amPM[1])}function p(U){switch(U%24){case 0:case 12:return 12;default:return U%12}}function b(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var U=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,J=(parseInt(t.minuteElement.value,10)||0)%60,ue=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(U=l(U,t.amPM.textContent));var Me=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&compareDates(t.latestSelectedDateObj,t.config.minDate,!0)===0,Ge=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&compareDates(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var it=calculateSecondsSinceMidnight(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),bt=calculateSecondsSinceMidnight(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),lt=calculateSecondsSinceMidnight(U,J,ue);if(lt>bt&<<it){var Ce=parseSeconds(it);U=Ce[0],J=Ce[1],ue=Ce[2]}}else{if(Ge){var ot=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;U=Math.min(U,ot.getHours()),U===ot.getHours()&&(J=Math.min(J,ot.getMinutes())),J===ot.getMinutes()&&(ue=Math.min(ue,ot.getSeconds()))}if(Me){var st=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;U=Math.max(U,st.getHours()),U===st.getHours()&&J<st.getMinutes()&&(J=st.getMinutes()),J===st.getMinutes()&&(ue=Math.max(ue,st.getSeconds()))}}A(U,J,ue)}}function m(U){var J=U||t.latestSelectedDateObj;J&&J instanceof Date&&A(J.getHours(),J.getMinutes(),J.getSeconds())}function A(U,J,ue){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(U%24,J,ue||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=pad(t.config.time_24hr?U:(12+U)%12+12*int(U%12===0)),t.minuteElement.value=pad(J),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[int(U>=12)]),t.secondElement!==void 0&&(t.secondElement.value=pad(ue)))}function L(U){var J=getEventTarget(U),ue=parseInt(J.value)+(U.delta||0);(ue/1e3>1||U.key==="Enter"&&!/[^\d]/.test(ue.toString()))&&ne(ue)}function k(U,J,ue,Me){if(J instanceof Array)return J.forEach(function(Ge){return k(U,Ge,ue,Me)});if(U instanceof Array)return U.forEach(function(Ge){return k(Ge,J,ue,Me)});U.addEventListener(J,ue,Me),t._handlers.push({remove:function(){return U.removeEventListener(J,ue,Me)}})}function T(){Ft("onChange")}function S(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(ue){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+ue+"]"),function(Me){return k(Me,"click",t[ue])})}),t.isMobile){Jt();return}var U=debounce(ht,50);if(t._debouncedChange=debounce(T,DEBOUNCED_CHANGE_MS),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&k(t.daysContainer,"mouseover",function(ue){t.config.mode==="range"&&Be(getEventTarget(ue))}),k(t._input,"keydown",et),t.calendarContainer!==void 0&&k(t.calendarContainer,"keydown",et),!t.config.inline&&!t.config.static&&k(window,"resize",U),window.ontouchstart!==void 0?k(window.document,"touchstart",W):k(window.document,"mousedown",W),k(window.document,"focus",W,{capture:!0}),t.config.clickOpens===!0&&(k(t._input,"focus",t.open),k(t._input,"click",t.open)),t.daysContainer!==void 0&&(k(t.monthNav,"click",lr),k(t.monthNav,["keyup","increment"],L),k(t.daysContainer,"click",Ct)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var J=function(ue){return getEventTarget(ue).select()};k(t.timeContainer,["increment"],h),k(t.timeContainer,"blur",h,{capture:!0}),k(t.timeContainer,"click",H),k([t.hourElement,t.minuteElement],["focus","click"],J),t.secondElement!==void 0&&k(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&k(t.amPM,"click",function(ue){h(ue)})}t.config.allowInput&&k(t._input,"blur",ye)}function M(U,J){var ue=U!==void 0?t.parseDate(U):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),Me=t.currentYear,Ge=t.currentMonth;try{ue!==void 0&&(t.currentYear=ue.getFullYear(),t.currentMonth=ue.getMonth())}catch(it){it.message="Invalid date supplied: "+ue,t.config.errorHandler(it)}J&&t.currentYear!==Me&&(Ft("onYearChange"),$e()),J&&(t.currentYear!==Me||t.currentMonth!==Ge)&&Ft("onMonthChange"),t.redraw()}function H(U){var J=getEventTarget(U);~J.className.indexOf("arrow")&&te(U,J.classList.contains("arrowUp")?1:-1)}function te(U,J,ue){var Me=U&&getEventTarget(U),Ge=ue||Me&&Me.parentNode&&Me.parentNode.firstChild,it=Lr("increment");it.delta=J,Ge&&Ge.dispatchEvent(it)}function Ie(){var U=window.document.createDocumentFragment();if(t.calendarContainer=createElement("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(U.appendChild(gt()),t.innerContainer=createElement("div","flatpickr-innerContainer"),t.config.weekNumbers){var J=Bt(),ue=J.weekWrapper,Me=J.weekNumbers;t.innerContainer.appendChild(ue),t.weekNumbers=Me,t.weekWrapper=ue}t.rContainer=createElement("div","flatpickr-rContainer"),t.rContainer.appendChild(dt()),t.daysContainer||(t.daysContainer=createElement("div","flatpickr-days"),t.daysContainer.tabIndex=-1),Pe(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),U.appendChild(t.innerContainer)}t.config.enableTime&&U.appendChild(Xe()),toggleClass(t.calendarContainer,"rangeMode",t.config.mode==="range"),toggleClass(t.calendarContainer,"animate",t.config.animate===!0),toggleClass(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(U);var Ge=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Ge&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var it=createElement("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(it,t.element),it.appendChild(t.element),t.altInput&&it.appendChild(t.altInput),it.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function we(U,J,ue,Me){var Ge=be(J,!0),it=createElement("span",U,J.getDate().toString());return it.dateObj=J,it.$i=Me,it.setAttribute("aria-label",t.formatDate(J,t.config.ariaDateFormat)),U.indexOf("hidden")===-1&&compareDates(J,t.now)===0&&(t.todayDateElem=it,it.classList.add("today"),it.setAttribute("aria-current","date")),Ge?(it.tabIndex=-1,hr(J)&&(it.classList.add("selected"),t.selectedDateElem=it,t.config.mode==="range"&&(toggleClass(it,"startRange",t.selectedDates[0]&&compareDates(J,t.selectedDates[0],!0)===0),toggleClass(it,"endRange",t.selectedDates[1]&&compareDates(J,t.selectedDates[1],!0)===0),U==="nextMonthDay"&&it.classList.add("inRange")))):it.classList.add("flatpickr-disabled"),t.config.mode==="range"&&Sr(J)&&!hr(J)&&it.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&U!=="prevMonthDay"&&Me%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(J)+"</span>"),Ft("onDayCreate",it),it}function _(U){U.focus(),t.config.mode==="range"&&Be(U)}function oe(U){for(var J=U>0?0:t.config.showMonths-1,ue=U>0?t.config.showMonths:-1,Me=J;Me!=ue;Me+=U)for(var Ge=t.daysContainer.children[Me],it=U>0?0:Ge.children.length-1,bt=U>0?Ge.children.length:-1,lt=it;lt!=bt;lt+=U){var Ce=Ge.children[lt];if(Ce.className.indexOf("hidden")===-1&&be(Ce.dateObj))return Ce}}function ee(U,J){for(var ue=U.className.indexOf("Month")===-1?U.dateObj.getMonth():t.currentMonth,Me=J>0?t.config.showMonths:-1,Ge=J>0?1:-1,it=ue-t.currentMonth;it!=Me;it+=Ge)for(var bt=t.daysContainer.children[it],lt=ue-t.currentMonth===it?U.$i+J:J<0?bt.children.length-1:0,Ce=bt.children.length,ot=lt;ot>=0&&ot<Ce&&ot!=(J>0?Ce:-1);ot+=Ge){var st=bt.children[ot];if(st.className.indexOf("hidden")===-1&&be(st.dateObj)&&Math.abs(U.$i-ot)>=Math.abs(J))return _(st)}t.changeMonth(Ge),Ee(oe(Ge),0)}function Ee(U,J){var ue=a(),Me=fe(ue||document.body),Ge=U!==void 0?U:Me?ue:t.selectedDateElem!==void 0&&fe(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&fe(t.todayDateElem)?t.todayDateElem:oe(J>0?1:-1);Ge===void 0?t._input.focus():Me?ee(Ge,J):_(Ge)}function Le(U,J){for(var ue=(new Date(U,J,1).getDay()-t.l10n.firstDayOfWeek+7)%7,Me=t.utils.getDaysInMonth((J-1+12)%12,U),Ge=t.utils.getDaysInMonth(J,U),it=window.document.createDocumentFragment(),bt=t.config.showMonths>1,lt=bt?"prevMonthDay hidden":"prevMonthDay",Ce=bt?"nextMonthDay hidden":"nextMonthDay",ot=Me+1-ue,st=0;ot<=Me;ot++,st++)it.appendChild(we("flatpickr-day "+lt,new Date(U,J-1,ot),ot,st));for(ot=1;ot<=Ge;ot++,st++)it.appendChild(we("flatpickr-day",new Date(U,J,ot),ot,st));for(var It=Ge+1;It<=42-ue&&(t.config.showMonths===1||st%7!==0);It++,st++)it.appendChild(we("flatpickr-day "+Ce,new Date(U,J+1,It%Ge),It,st));var P=createElement("div","dayContainer");return P.appendChild(it),P}function Pe(){if(t.daysContainer!==void 0){clearNode(t.daysContainer),t.weekNumbers&&clearNode(t.weekNumbers);for(var U=document.createDocumentFragment(),J=0;J<t.config.showMonths;J++){var ue=new Date(t.currentYear,t.currentMonth,1);ue.setMonth(t.currentMonth+J),U.appendChild(Le(ue.getFullYear(),ue.getMonth()))}t.daysContainer.appendChild(U),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&Be()}}function $e(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var U=function(Me){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&Me<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&Me>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var J=0;J<12;J++)if(U(J)){var ue=createElement("option","flatpickr-monthDropdown-month");ue.value=new Date(t.currentYear,J).getMonth().toString(),ue.textContent=monthToStr(J,t.config.shorthandCurrentMonth,t.l10n),ue.tabIndex=-1,t.currentMonth===J&&(ue.selected=!0),t.monthsDropdownContainer.appendChild(ue)}}}function Ze(){var U=createElement("div","flatpickr-month"),J=window.document.createDocumentFragment(),ue;t.config.showMonths>1||t.config.monthSelectorType==="static"?ue=createElement("span","cur-month"):(t.monthsDropdownContainer=createElement("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),k(t.monthsDropdownContainer,"change",function(bt){var lt=getEventTarget(bt),Ce=parseInt(lt.value,10);t.changeMonth(Ce-t.currentMonth),Ft("onMonthChange")}),$e(),ue=t.monthsDropdownContainer);var Me=createNumberInput("cur-year",{tabindex:"-1"}),Ge=Me.getElementsByTagName("input")[0];Ge.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Ge.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Ge.setAttribute("max",t.config.maxDate.getFullYear().toString()),Ge.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var it=createElement("div","flatpickr-current-month");return it.appendChild(ue),it.appendChild(Me),J.appendChild(it),U.appendChild(J),{container:U,yearElement:Ge,monthElement:ue}}function je(){clearNode(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var U=t.config.showMonths;U--;){var J=Ze();t.yearElements.push(J.yearElement),t.monthElements.push(J.monthElement),t.monthNav.appendChild(J.container)}t.monthNav.appendChild(t.nextMonthNav)}function gt(){return t.monthNav=createElement("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=createElement("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=createElement("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,je(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(U){t.__hidePrevMonthArrow!==U&&(toggleClass(t.prevMonthNav,"flatpickr-disabled",U),t.__hidePrevMonthArrow=U)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(U){t.__hideNextMonthArrow!==U&&(toggleClass(t.nextMonthNav,"flatpickr-disabled",U),t.__hideNextMonthArrow=U)}}),t.currentYearElement=t.yearElements[0],pr(),t.monthNav}function Xe(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var U=getDefaultHours(t.config);t.timeContainer=createElement("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var J=createElement("span","flatpickr-time-separator",":"),ue=createNumberInput("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=ue.getElementsByTagName("input")[0];var Me=createNumberInput("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=Me.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=pad(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?U.hours:p(U.hours)),t.minuteElement.value=pad(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():U.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(ue),t.timeContainer.appendChild(J),t.timeContainer.appendChild(Me),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Ge=createNumberInput("flatpickr-second");t.secondElement=Ge.getElementsByTagName("input")[0],t.secondElement.value=pad(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():U.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(createElement("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Ge)}return t.config.time_24hr||(t.amPM=createElement("span","flatpickr-am-pm",t.l10n.amPM[int((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function dt(){t.weekdayContainer?clearNode(t.weekdayContainer):t.weekdayContainer=createElement("div","flatpickr-weekdays");for(var U=t.config.showMonths;U--;){var J=createElement("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(J)}return yt(),t.weekdayContainer}function yt(){if(t.weekdayContainer){var U=t.l10n.firstDayOfWeek,J=__spreadArrays(t.l10n.weekdays.shorthand);U>0&&U<J.length&&(J=__spreadArrays(J.splice(U,J.length),J.splice(0,U)));for(var ue=t.config.showMonths;ue--;)t.weekdayContainer.children[ue].innerHTML=`
87 <span class='flatpickr-weekday'> 88 `+J.join("</span><span class='flatpickr-weekday'>")+` 89 </span> 90 `}}function Bt(){t.calendarContainer.classList.add("hasWeeks");var U=createElement("div","flatpickr-weekwrapper");U.appendChild(createElement("span","flatpickr-weekday",t.l10n.weekAbbreviation));var J=createElement("div","flatpickr-weeks");return U.appendChild(J),{weekWrapper:U,weekNumbers:J}}function se(U,J){J===void 0&&(J=!0);var ue=J?U:U-t.currentMonth;ue<0&&t._hidePrevMonthArrow===!0||ue>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=ue,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ft("onYearChange"),$e()),Pe(),Ft("onMonthChange"),pr())}function xe(U,J){if(U===void 0&&(U=!0),J===void 0&&(J=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,J===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var ue=getDefaultHours(t.config),Me=ue.hours,Ge=ue.minutes,it=ue.seconds;A(Me,Ge,it)}t.redraw(),U&&Ft("onChange")}function qe(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Ft("onClose")}function R(){t.config!==void 0&&Ft("onDestroy");for(var U=t._handlers.length;U--;)t._handlers[U].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var J=t.calendarContainer.parentNode;if(J.lastChild&&J.removeChild(J.lastChild),J.parentNode){for(;J.firstChild;)J.parentNode.insertBefore(J.firstChild,J);J.parentNode.removeChild(J)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(ue){try{delete t[ue]}catch{}})}function re(U){return t.calendarContainer.contains(U)}function W(U){if(t.isOpen&&!t.config.inline){var J=getEventTarget(U),ue=re(J),Me=J===t.input||J===t.altInput||t.element.contains(J)||U.path&&U.path.indexOf&&(~U.path.indexOf(t.input)||~U.path.indexOf(t.altInput)),Ge=!Me&&!ue&&!re(U.relatedTarget),it=!t.config.ignoredFocusElements.some(function(bt){return bt.contains(J)});Ge&&it&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&h(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ne(U){if(!(!U||t.config.minDate&&U<t.config.minDate.getFullYear()||t.config.maxDate&&U>t.config.maxDate.getFullYear())){var J=U,ue=t.currentYear!==J;t.currentYear=J||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),ue&&(t.redraw(),Ft("onYearChange"),$e())}}function be(U,J){var ue;J===void 0&&(J=!0);var Me=t.parseDate(U,void 0,J);if(t.config.minDate&&Me&&compareDates(Me,t.config.minDate,J!==void 0?J:!t.minDateHasTime)<0||t.config.maxDate&&Me&&compareDates(Me,t.config.maxDate,J!==void 0?J:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;
vendor: 22,773 bytes, line 90
90if(Me===void 0)return!1;for(var Ge=!!t.config.enable,it=(ue=t.config.enable)!==null&&ue!==void 0?ue:t.config.disable,bt=0,lt=void 0;bt<it.length;bt++){if(lt=it[bt],typeof lt=="function"&<(Me))return Ge;if(lt instanceof Date&&Me!==void 0&<.getTime()===Me.getTime())return Ge;if(typeof lt=="string"){var Ce=t.parseDate(lt,void 0,!0);return Ce&&Ce.getTime()===Me.getTime()?Ge:!Ge}else if(typeof lt=="object"&&Me!==void 0&<.from&<.to&&Me.getTime()>=lt.from.getTime()&&Me.getTime()<=lt.to.getTime())return Ge}return!Ge}function fe(U){return t.daysContainer!==void 0?U.className.indexOf("hidden")===-1&&U.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(U):!1}function ye(U){var J=U.target===t._input,ue=t._input.value.trimEnd()!==or();J&&ue&&!(U.relatedTarget&&re(U.relatedTarget))&&t.setDate(t._input.value,!0,U.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function et(U){var J=getEventTarget(U),ue=t.config.wrap?e.contains(J):J===t._input,Me=t.config.allowInput,Ge=t.isOpen&&(!Me||!ue),it=t.config.inline&&ue&&!Me;if(U.keyCode===13&&ue){if(Me)return t.setDate(t._input.value,!0,J===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),J.blur();t.open()}else if(re(J)||Ge||it){var bt=!!t.timeContainer&&t.timeContainer.contains(J);switch(U.keyCode){case 13:bt?(U.preventDefault(),h(),wt()):Ct(U);break;case 27:U.preventDefault(),wt();break;case 8:case 46:ue&&!t.config.allowInput&&(U.preventDefault(),t.clear());break;case 37:case 39:if(!bt&&!ue){U.preventDefault();var lt=a();if(t.daysContainer!==void 0&&(Me===!1||lt&&fe(lt))){var Ce=U.keyCode===39?1:-1;U.ctrlKey?(U.stopPropagation(),se(Ce),Ee(oe(1),0)):Ee(void 0,Ce)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:U.preventDefault();var ot=U.keyCode===40?1:-1;t.daysContainer&&J.$i!==void 0||J===t.input||J===t.altInput?U.ctrlKey?(U.stopPropagation(),ne(t.currentYear-ot),Ee(oe(1),0)):bt||Ee(void 0,ot*7):J===t.currentYearElement?ne(t.currentYear-ot):t.config.enableTime&&(!bt&&t.hourElement&&t.hourElement.focus(),h(U),t._debouncedChange());break;case 9:if(bt){var st=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(X){return X}),It=st.indexOf(J);if(It!==-1){var P=st[It+(U.shiftKey?-1:1)];U.preventDefault(),(P||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(J)&&U.shiftKey&&(U.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&J===t.amPM)switch(U.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],b(),Yt();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],b(),Yt();break}(ue||re(J))&&Ft("onKeyDown",U)}function Be(U,J){if(J===void 0&&(J="flatpickr-day"),!(t.selectedDates.length!==1||U&&(!U.classList.contains(J)||U.classList.contains("flatpickr-disabled")))){for(var ue=U?U.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),Me=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),Ge=Math.min(ue,t.selectedDates[0].getTime()),it=Math.max(ue,t.selectedDates[0].getTime()),bt=!1,lt=0,Ce=0,ot=Ge;ot<it;ot+=duration.DAY)be(new Date(ot),!0)||(bt=bt||ot>Ge&&ot<it,ot<Me&&(!lt||ot>lt)?lt=ot:ot>Me&&(!Ce||ot<Ce)&&(Ce=ot));var st=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+J));st.forEach(function(It){var P=It.dateObj,X=P.getTime(),z=lt>0&&X<lt||Ce>0&&X>Ce;if(z){It.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(B){It.classList.remove(B)});return}else if(bt&&!z)return;["startRange","inRange","endRange","notAllowed"].forEach(function(B){It.classList.remove(B)}),U!==void 0&&(U.classList.add(ue<=t.selectedDates[0].getTime()?"startRange":"endRange"),Me<ue&&X===Me?It.classList.add("startRange"):Me>ue&&X===Me&&It.classList.add("endRange"),X>=lt&&(Ce===0||X<=Ce)&&isBetween(X,Me,ue)&&It.classList.add("inRange"))})}}function ht(){t.isOpen&&!t.config.static&&!t.config.inline&&Vt()}function _t(U,J){if(J===void 0&&(J=t._positionElement),t.isMobile===!0){if(U){U.preventDefault();var ue=getEventTarget(U);ue&&ue.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Ft("onOpen");return}else if(t._input.disabled||t.config.inline)return;var Me=t.isOpen;t.isOpen=!0,Me||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Ft("onOpen"),Vt(J)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(U===void 0||!t.timeContainer.contains(U.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function Et(U){return function(J){var ue=t.config["_"+U+"Date"]=t.parseDate(J,t.config.dateFormat),Me=t.config["_"+(U==="min"?"max":"min")+"Date"];ue!==void 0&&(t[U==="min"?"minDateHasTime":"maxDateHasTime"]=ue.getHours()>0||ue.getMinutes()>0||ue.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(Ge){return be(Ge)}),!t.selectedDates.length&&U==="min"&&m(ue),Yt()),t.daysContainer&&(Ve(),ue!==void 0?t.currentYearElement[U]=ue.getFullYear().toString():t.currentYearElement.removeAttribute(U),t.currentYearElement.disabled=!!Me&&ue!==void 0&&Me.getFullYear()===ue.getFullYear())}}function Pt(){var U=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],J=__assign$8(__assign$8({},JSON.parse(JSON.stringify(e.dataset||{}))),r),ue={};t.config.parseDate=J.parseDate,t.config.formatDate=J.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(st){t.config._enable=Mr(st)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(st){t.config._disable=Mr(st)}});var Me=J.mode==="time";if(!J.dateFormat&&(J.enableTime||Me)){var Ge=flatpickr.defaultConfig.dateFormat||defaults.dateFormat;ue.dateFormat=J.noCalendar||Me?"H:i"+(J.enableSeconds?":S":""):Ge+" H:i"+(J.enableSeconds?":S":"")}if(J.altInput&&(J.enableTime||Me)&&!J.altFormat){var it=flatpickr.defaultConfig.altFormat||defaults.altFormat;ue.altFormat=J.noCalendar||Me?"h:i"+(J.enableSeconds?":S K":" K"):it+(" h:i"+(J.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:Et("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:Et("max")});var bt=function(st){return function(It){t.config[st==="min"?"_minTime":"_maxTime"]=t.parseDate(It,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:bt("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:bt("max")}),J.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,ue,J);for(var lt=0;lt<U.length;lt++)t.config[U[lt]]=t.config[U[lt]]===!0||t.config[U[lt]]==="true";HOOKS.filter(function(st){return t.config[st]!==void 0}).forEach(function(st){t.config[st]=arrayify(t.config[st]||[]).map(s)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var lt=0;lt<t.config.plugins.length;lt++){var Ce=t.config.plugins[lt](t)||{};for(var ot in Ce)HOOKS.indexOf(ot)>-1?t.config[ot]=arrayify(Ce[ot]).map(s).concat(t.config[ot]):typeof J[ot]>"u"&&(t.config[ot]=Ce[ot])}J.altInputClass||(t.config.altInputClass=Ut().className+" "+t.config.altInputClass),Ft("onParseConfig")}function Ut(){return t.config.wrap?e.querySelector("[data-input]"):e}function rt(){typeof t.config.locale!="object"&&typeof flatpickr.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=__assign$8(__assign$8({},flatpickr.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?flatpickr.l10ns[t.config.locale]:void 0),tokenRegex.D="("+t.l10n.weekdays.shorthand.join("|")+")",tokenRegex.l="("+t.l10n.weekdays.longhand.join("|")+")",tokenRegex.M="("+t.l10n.months.shorthand.join("|")+")",tokenRegex.F="("+t.l10n.months.longhand.join("|")+")",tokenRegex.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var U=__assign$8(__assign$8({},r),JSON.parse(JSON.stringify(e.dataset||{})));U.time_24hr===void 0&&flatpickr.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=createDateFormatter(t),t.parseDate=createDateParser({config:t.config,l10n:t.l10n})}function Vt(U){if(typeof t.config.position=="function")return void t.config.position(t,U);if(t.calendarContainer!==void 0){Ft("onPreCalendarPosition");var J=U||t._positionElement,ue=Array.prototype.reduce.call(t.calendarContainer.children,function(Ye,Ne){return Ye+Ne.offsetHeight},0),Me=t.calendarContainer.offsetWidth,Ge=t.config.position.split(" "),it=Ge[0],bt=Ge.length>1?Ge[1]:null,lt=J.getBoundingClientRect(),Ce=window.innerHeight-lt.bottom,ot=it==="above"||it!=="below"&&Ce<ue&<.top>ue,st=window.pageYOffset+lt.top+(ot?-ue-2:J.offsetHeight+2);if(toggleClass(t.calendarContainer,"arrowTop",!ot),toggleClass(t.calendarContainer,"arrowBottom",ot),!t.config.inline){var It=window.pageXOffset+lt.left,P=!1,X=!1;bt==="center"?(It-=(Me-lt.width)/2,P=!0):bt==="right"&&(It-=Me-lt.width,X=!0),toggleClass(t.calendarContainer,"arrowLeft",!P&&!X),toggleClass(t.calendarContainer,"arrowCenter",P),toggleClass(t.calendarContainer,"arrowRight",X);var z=window.document.body.offsetWidth-(window.pageXOffset+lt.right),B=It+Me>window.document.body.offsetWidth,G=z+Me>window.document.body.offsetWidth;if(toggleClass(t.calendarContainer,"rightMost",B),!t.config.static)if(t.calendarContainer.style.top=st+"px",!B)t.calendarContainer.style.left=It+"px",t.calendarContainer.style.right="auto";else if(!G)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=z+"px";else{var Q=Ke();if(Q===void 0)return;var pe=window.document.body.offsetWidth,Fe=Math.max(0,pe/2-Me/2),ve=".flatpickr-calendar.centerMost:before",ge=".flatpickr-calendar.centerMost:after",_e=Q.cssRules.length,We="{left:"+lt.left+"px;right:auto;}";toggleClass(t.calendarContainer,"rightMost",!1),toggleClass(t.calendarContainer,"centerMost",!0),Q.insertRule(ve+","+ge+We,_e),t.calendarContainer.style.left=Fe+"px",t.calendarContainer.style.right="auto"}}}}function Ke(){for(var U=null,J=0;J<document.styleSheets.length;J++){var ue=document.styleSheets[J];if(ue.cssRules){try{ue.cssRules}catch{continue}U=ue;break}}return U??At()}function At(){var U=document.createElement("style");return document.head.appendChild(U),U.sheet}function Ve(){t.config.noCalendar||t.isMobile||($e(),pr(),Pe())}function wt(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function Ct(U){U.preventDefault(),U.stopPropagation();var J=function(st){return st.classList&&st.classList.contains("flatpickr-day")&&!st.classList.contains("flatpickr-disabled")&&!st.classList.contains("notAllowed")},ue=findParent(getEventTarget(U),J);if(ue!==void 0){var Me=ue,Ge=t.latestSelectedDateObj=new Date(Me.dateObj.getTime()),it=(Ge.getMonth()<t.currentMonth||Ge.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=Me,t.config.mode==="single")t.selectedDates=[Ge];else if(t.config.mode==="multiple"){var bt=hr(Ge);bt?t.selectedDates.splice(parseInt(bt),1):t.selectedDates.push(Ge)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=Ge,t.selectedDates.push(Ge),compareDates(Ge,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(st,It){return st.getTime()-It.getTime()}));if(b(),it){var lt=t.currentYear!==Ge.getFullYear();t.currentYear=Ge.getFullYear(),t.currentMonth=Ge.getMonth(),lt&&(Ft("onYearChange"),$e()),Ft("onMonthChange")}if(pr(),Pe(),Yt(),!it&&t.config.mode!=="range"&&t.config.showMonths===1?_(Me):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var Ce=t.config.mode==="single"&&!t.config.enableTime,ot=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(Ce||ot)&&wt()}T()}}var nt={locale:[rt,yt],showMonths:[je,c,dt],minDate:[M],maxDate:[M],positionElement:[sr],clickOpens:[function(){t.config.clickOpens===!0?(k(t._input,"focus",t.open),k(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function Ht(U,J){if(U!==null&&typeof U=="object"){Object.assign(t.config,U);for(var ue in U)nt[ue]!==void 0&&nt[ue].forEach(function(Me){return Me()})}else t.config[U]=J,nt[U]!==void 0?nt[U].forEach(function(Me){return Me()}):HOOKS.indexOf(U)>-1&&(t.config[U]=arrayify(J));t.redraw(),Yt(!0)}function Tr(U,J){var ue=[];if(U instanceof Array)ue=U.map(function(Me){return t.parseDate(Me,J)});else if(U instanceof Date||typeof U=="number")ue=[t.parseDate(U,J)];else if(typeof U=="string")switch(t.config.mode){case"single":case"time":ue=[t.parseDate(U,J)];break;case"multiple":ue=U.split(t.config.conjunction).map(function(Me){return t.parseDate(Me,J)});break;case"range":ue=U.split(t.l10n.rangeSeparator).map(function(Me){return t.parseDate(Me,J)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(U)));t.selectedDates=t.config.allowInvalidPreload?ue:ue.filter(function(Me){return Me instanceof Date&&be(Me,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(Me,Ge){return Me.getTime()-Ge.getTime()})}function ar(U,J,ue){if(J===void 0&&(J=!1),ue===void 0&&(ue=t.config.dateFormat),U!==0&&!U||U instanceof Array&&U.length===0)return t.clear(J);Tr(U,ue),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),M(void 0,J),m(),t.selectedDates.length===0&&t.clear(!1),Yt(J),J&&Ft("onChange")}function Mr(U){return U.slice().map(function(J){return typeof J=="string"||typeof J=="number"||J instanceof Date?t.parseDate(J,void 0,!0):J&&typeof J=="object"&&J.from&&J.to?{from:t.parseDate(J.from,void 0),to:t.parseDate(J.to,void 0)}:J}).filter(function(J){return J})}function Er(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var U=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);U&&Tr(U,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function dr(){if(t.input=Ut(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=createElement(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),sr()}function sr(){t._positionElement=t.config.positionElement||t._input}function Jt(){var U=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=createElement("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=U,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=U==="datetime-local"?"Y-m-d\\TH:i:S":U==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}k(t.mobileInput,"change",function(J){t.setDate(getEventTarget(J).value,!1,t.mobileFormatStr),Ft("onChange"),Ft("onClose")})}function Zt(U){if(t.isOpen===!0)return t.close();t.open(U)}function Ft(U,J){if(t.config!==void 0){var ue=t.config[U];if(ue!==void 0&&ue.length>0)for(var Me=0;ue[Me]&&Me<ue.length;Me++)ue[Me](t.selectedDates,t.input.value,t,J);U==="onChange"&&(t.input.dispatchEvent(Lr("change")),t.input.dispatchEvent(Lr("input")))}}function Lr(U){var J=document.createEvent("Event");return J.initEvent(U,!0,!0),J}function hr(U){for(var J=0;J<t.selectedDates.length;J++){var ue=t.selectedDates[J];if(ue instanceof Date&&compareDates(ue,U)===0)return""+J}return!1}function Sr(U){return t.config.mode!=="range"||t.selectedDates.length<2?!1:compareDates(U,t.selectedDates[0])>=0&&compareDates(U,t.selectedDates[1])<=0}function pr(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(U,J){var ue=new Date(t.currentYear,t.currentMonth,1);ue.setMonth(t.currentMonth+J),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[J].textContent=monthToStr(ue.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=ue.getMonth().toString(),U.value=ue.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function or(U){var J=U||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(ue){return t.formatDate(ue,J)}).filter(function(ue,Me,Ge){return t.config.mode!=="range"||t.config.enableTime||Ge.indexOf(ue)===Me}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Yt(U){U===void 0&&(U=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=or(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=or(t.config.altFormat)),U!==!1&&Ft("onValueUpdate")}function lr(U){var J=getEventTarget(U),ue=t.prevMonthNav.contains(J),Me=t.nextMonthNav.contains(J);ue||Me?se(ue?-1:1):t.yearElements.indexOf(J)>=0?J.select():J.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):J.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function wr(U){U.preventDefault();var J=U.type==="keydown",ue=getEventTarget(U),Me=ue;t.amPM!==void 0&&ue===t.amPM&&(t.amPM.textContent=t.l10n.amPM[int(t.amPM.textContent===t.l10n.amPM[0])]);var Ge=parseFloat(Me.getAttribute("min")),it=parseFloat(Me.getAttribute("max")),bt=parseFloat(Me.getAttribute("step")),lt=parseInt(Me.value,10),Ce=U.delta||(J?U.which===38?1:-1:0),ot=lt+bt*Ce;if(typeof Me.value<"u"&&Me.value.length===2){var st=Me===t.hourElement,It=Me===t.minuteElement;ot<Ge?(ot=it+ot+int(!st)+(int(st)&&int(!t.amPM)),It&&te(void 0,-1,t.hourElement)):ot>it&&(ot=Me===t.hourElement?ot-it-int(!t.amPM):Ge,It&&te(void 0,1,t.hourElement)),t.amPM&&st&&(bt===1?ot+lt===23:Math.abs(ot-lt)>bt)&&(t.amPM.textContent=t.l10n.amPM[int(t.amPM.textContent===t.l10n.amPM[0])]),Me.value=pad(ot)}}return i(),t}function _flatpickr(e,r){for(var t=Array.prototype.slice.call(e).filter(function(s){return s instanceof HTMLElement}),n=[],i=0;i<t.length;i++){var a=t[i];try{if(a.getAttribute("data-fp-omit")!==null)continue;a._flatpickr!==void 0&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=FlatpickrInstance(a,r||{}),n.push(a._flatpickr)}catch(s){console.error(s)}}return n.length===1?n[0]:n}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _flatpickr(this,e)},HTMLElement.prototype.flatpickr=function(e){return _flatpickr([this],e)});var flatpickr=function(e,r){return typeof e=="string"?_flatpickr(window.document.querySelectorAll(e),r):e instanceof Node?_flatpickr([e],r):_flatpickr(e,r)};flatpickr.defaultConfig={};flatpickr.l10ns={en:__assign$8({},english),default:__assign$8({},english)};flatpickr.localize=function(e){flatpickr.l10ns.default=__assign$8(__assign$8({},flatpickr.l10ns.default),e)};flatpickr.setDefaults=function(e){flatpickr.defaultConfig=__assign$8(__assign$8({},flatpickr.defaultConfig),e)};flatpickr.parseDate=createDateParser({});flatpickr.formatDate=createDateFormatter({});flatpickr.compareDates=compareDates;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(e){return _flatpickr(this,e)});Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof e=="string"?parseInt(e,10):e))};typeof window<"u"&&(window.flatpickr=flatpickr);var de={exports:{}};(function(e,r){(function(t,n){n(r)})(commonjsGlobal,function(t){var n=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},i={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ãndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};n.l10ns.de=i;var a=n.l10ns;
90t.German=i,t.default=a,Object.defineProperty(t,"__esModule",{value:!0})})})(de,de.exports);var deExports=de.exports,calculateMaxBirthDate=function(){var e=new Date(Date.now());return e.setFullYear(e.getFullYear()-18),e},calculateMinBirthDate=function(){var e=new Date(Date.now());return e.setFullYear(e.getFullYear()-150),e},createPaymentOptions=function(){return Object.freeze({allowInput:!0,altFormat:"d.m.Y",altInput:!0,altInputClass:"",animate:!0,clickOpens:!0,closeOnSelect:!1,dateFormat:"Y-m-d",defaultDate:new Date(1970,0,1),defaultHour:12,defaultMinute:0,defaultSeconds:0,locale:deExports.German,maxDate:calculateMaxBirthDate(),minDate:calculateMinBirthDate(),weekNumbers:!0})},WeekDay;(function(e){e[e.SUN=0]="SUN",e[e.MON=1]="MON",e[e.TUE=2]="TUE",e[e.WED=3]="WED",e[e.THU=4]="THU",e[e.FRI=5]="FRI",e[e.SAT=6]="SAT"})(WeekDay||(WeekDay={}));var minMaxTimePlugin$1={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(commonjsGlobal,function(){var t=function(L,k){return k===void 0&&(k=2),("000"+L).slice(k*-1)},n=function(L){return L===!0?1:0},i=function(L,k,T){return T.months[k?"shorthand":"longhand"][L]},a={Z:function(L){return L.toISOString()},D:function(L,k,T){return k.weekdays.shorthand[a.w(L,k,T)]},F:function(L,k,T){return i(a.n(L,k,T)-1,!1,k)},G:function(L,k,T){return t(a.h(L,k,T))},H:function(L){return t(L.getHours())},J:function(L,k){return k.ordinal!==void 0?L.getDate()+k.ordinal(L.getDate()):L.getDate()},K:function(L,k){return k.amPM[n(L.getHours()>11)]},M:function(L,k){return i(L.getMonth(),!0,k)},S:function(L){return t(L.getSeconds())},U:function(L){return L.getTime()/1e3},W:function(L,k,T){return T.getWeek(L)},Y:function(L){return t(L.getFullYear(),4)},d:function(L){return t(L.getDate())},h:function(L){return L.getHours()%12?L.getHours()%12:12},i:function(L){return t(L.getMinutes())},j:function(L){return L.getDate()},l:function(L,k){return k.weekdays.longhand[L.getDay()]},m:function(L){return t(L.getMonth()+1)},n:function(L){return L.getMonth()+1},s:function(L){return L.getSeconds()},u:function(L){return L.getTime()},w:function(L){return L.getDay()},y:function(L){return String(L.getFullYear()).substring(2)}},s={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(L){return typeof console<"u"&&console.warn(L)},getWeek:function(L){var k=new Date(L.getTime());k.setHours(0,0,0,0),k.setDate(k.getDate()+3-(k.getDay()+6)%7);var T=new Date(k.getFullYear(),0,4);return 1+Math.round(((k.getTime()-T.getTime())/864e5-3+(T.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},c={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(L){var k=L%100;if(k>3&&k<21)return"th";switch(k%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},h=function(L){var k=L.config,T=k===void 0?s:k,S=L.l10n,M=S===void 0?c:S,H=L.isMobile,te=H===void 0?!1:H;return function(Ie,we,_){var oe=_||M;return T.formatDate!==void 0&&!te?T.formatDate(Ie,we,oe):we.split("").map(function(ee,Ee,Le){return a[ee]&&Le[Ee-1]!=="\\"?a[ee](Ie,oe,T):ee!=="\\"?ee:""}).join("")}};function l(L,k,T){return T===void 0&&(T=!0),T!==!1?new Date(L.getTime()).setHours(0,0,0,0)-new Date(k.getTime()).setHours(0,0,0,0):L.getTime()-k.getTime()}function p(L,k){return 3600*(L.getHours()-k.getHours())+60*(L.getMinutes()-k.getMinutes())+L.get
90Seconds()-k.getSeconds()}var b=function(L,k,T){return L*3600+k*60+T},m=function(L){var k=Math.floor(L/3600),T=(L-k*3600)/60;return[k,T,L-k*3600-T*60]};function A(L){L===void 0&&(L={});var k={formatDate:h({}),tableDateFormat:L.tableDateFormat||"Y-m-d",defaults:{minTime:void 0,maxTime:void 0}};function T(S){return L.table!==void 0?L.table[k.formatDate(S,k.tableDateFormat)]:L.getTimeLimits&&L.getTimeLimits(S)}return function(S){return{onReady:function(){k.formatDate=this.formatDate,k.defaults={minTime:this.config.minTime&&k.formatDate(this.config.minTime,"H:i"),maxTime:this.config.maxTime&&k.formatDate(this.config.maxTime,"H:i")},S.loadedPlugins.push("minMaxTime")},onChange:function(){var M=this.latestSelectedDateObj,H=M&&T(M);if(M&&H!==void 0)if(this.set(H),S.config.minTime.setFullYear(M.getFullYear()),S.config.maxTime.setFullYear(M.getFullYear()),S.config.minTime.setMonth(M.getMonth()),S.config.maxTime.setMonth(M.getMonth()),S.config.minTime.setDate(M.getDate()),S.config.maxTime.setDate(M.getDate()),S.config.minTime>S.config.maxTime){var te=b(S.config.minTime.getHours(),S.config.minTime.getMinutes(),S.config.minTime.getSeconds()),Ie=b(S.config.maxTime.getHours(),S.config.maxTime.getMinutes(),S.config.maxTime.getSeconds()),we=b(M.getHours(),M.getMinutes(),M.getSeconds());if(we>Ie&&we<te){var _=m(te);S.setDate(new Date(M.getTime()).setHours(_[0],_[1],_[2]),!1)}}else l(M,S.config.maxTime,!1)>0?S.setDate(new Date(M.getTime()).setHours(S.config.maxTime.getHours(),S.config.maxTime.getMinutes(),S.config.maxTime.getSeconds(),S.config.maxTime.getMilliseconds()),!1):l(M,S.config.minTime,!1)<0&&S.setDate(new Date(M.getTime()).setHours(S.config.minTime.getHours(),S.config.minTime.getMinutes(),S.config.minTime.getSeconds(),S.config.minTime.getMilliseconds()),!1);else{var oe=k.defaults||{minTime:void 0,maxTime:void 0};if(this.set(oe),!M)return;var ee=S.config,Ee=ee.minTime,Le=ee.maxTime;Ee&&p(M,Ee)<0?S.setDate(new Date(M.getTime()).setHours(Ee.getHours(),Ee.getMinutes(),Ee.getSeconds(),Ee.getMilliseconds()),!1):Le&&p(M,Le)>0&&S.setDate(new Date(M.getTime()).setHours(Le.getHours(),Le.getMinutes(),Le.getSeconds(),Le.getMilliseconds()))}}}}}return A})})(minMaxTimePlugin$1);var minMaxTimePluginExports=minMaxTimePlugin$1.exports;const minMaxTimePlugin=getDefaultExportFromCjs(minMaxTimePluginExports);var getOpeningClosingHoursForDay=function(e){var r={minTime:"9:00",maxTime:"17:30"};return e.firstHalf&&(e.firstHalf.startingSchedule.minutes!==0&&(e.firstHalf.startingSchedule.hours=e.firstHalf.startingSchedule.hours+1,e.firstHalf.startingSchedule.minutes=0),e.firstHalf.endingSchedule.minutes!==0&&(e.firstHalf.endingSchedule.minutes=0),r.minTime="".concat(e.firstHalf.startingSchedule.hours,":").concat(e.firstHalf.startingSchedule.minutes),r.maxTime="".concat(e.firstHalf.endingSchedule.hours,":").concat(e.firstHalf.endingSchedule.minutes)),e.secondHalf&&(e.secondHalf.startingSchedule.minutes!==0&&(e.secondHalf.startingSchedule.hours=e.secondHalf.startingSchedule.hours+1,e.secondHalf.startingSchedule.minutes=0),e.secondHalf.endingSchedule.minutes!==0&&(e.secondHalf.endingSchedule.minutes=0),r.maxTime="".concat(e.secondHalf.endingSchedule.hours,":").concat(e.secondHalf.endingSchedule.minutes),e.firstHalf||(r.minTime="".concat(e.secondHalf.startingSchedule.hours,":").concat(e.secondHalf.startingSchedule.minutes))),r},getTimeLimitsForSpecificDays=function(e,r){var t={minTime:"8:00",maxTime:"17:00"},n=e.find(function(i){return r.getDay()===i.day});return n?getOpeningClosingHoursForDay(n):t},__assign$7=globalThis&&globalThis.__assign||function(){return __assign$7=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$7.apply(this,arguments)},areTwoDatesEqualByYearMonthDay=function(e,r){return e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()&&e.getDate()===r.getDate()&&e.getDay()===r.getDay()},checkIfNormalDay=function(e,r,t){return e.some(function(n){return areTwoDatesEqualByYearMonthDay(n,t)})?!1:t.getDay()!=0&&!(!r.firstHalf&&!r.secondHalf)},calcHalf=function(e){var r=e.startingSchedule.hours*60+e.startingSchedule.minutes,t=e.endingSchedule.hours*60+e.endingSchedule.minutes;return t-r},getTotalHalfTime=function(e,r){var t=0;return e.getHours()<r.startingSchedule.hours?t+=calcHalf(r):e.getHours()===r.startingSchedule.hours?t+=calcHalf({startingSchedule:{hours:e.getHours(),minutes:r.startingSchedule.minutes},endingSchedule:r.endingSchedule}):e.getHours()>r.startingSchedule.hours&&e.getHours()<=r.endingSchedule.hours&&(t+=calcHalf({startingSchedule:{hours:e.getHours(),minutes:0},endingSchedule:r.endingSchedule})),t},calcBothHalves=function(e,r){var t=0;return e.firstHalf&&(t+=getTotalHalfTime(r,e.firstHalf)),e.secondHalf&&(t+=getTotalHalfTime(r,e.secondHalf)),t},getTotalTimeLeftInDay=function(e,r){var t=0;if(e&&e.day===r.getDay()){var n=new Date(r);n.getMinutes()!==0&&(n.setHours(n.getHours()+1),n.setMinutes(0)),t+=calcBothHalves(e,n
90)}return t},modifyCase=function(e,r,t){var n=e-r;if(n>=60){var i=r%60,a=parseInt((r/60).toString());return i!==0&&(a=a+1),{newSchedule:{startingSchedule:{hours:a,minutes:0},endingSchedule:t.endingSchedule},timeLeft:0}}else return n<60&&n>=0?{newSchedule:null,timeLeft:0}:{newSchedule:null,timeLeft:Math.abs(n)}},modifyHalf=function(e,r,t){var n=r.startingSchedule.hours*60+r.startingSchedule.minutes,i=r.endingSchedule.hours*60+r.endingSchedule.minutes;if(e<n){var a=n+t;return modifyCase(i,a,r)}if(e>=n&&e<=i){var a=e+t;return modifyCase(i,a,r)}return{newSchedule:null,timeLeft:t}},getBothHalves=function(e,r,t){var n=__assign$7({},r),i=t;if(r.firstHalf){var a=modifyHalf(e,r.firstHalf,i),s=a.newSchedule,c=a.timeLeft;s?n.firstHalf=__assign$7({},s):delete n.firstHalf,i=c}if(r.secondHalf){var s=modifyHalf(e,r.secondHalf,i).newSchedule;s?n.secondHalf=__assign$7({},s):delete n.secondHalf}return n},modifyDate=function(e,r,t){var n=new Date(e);if(n.getMinutes()!==0&&n.setHours(n.getHours()+1,0),r.day!==n.getDay())throw new Error("Wrong working day provided, expected ".concat(n.getDay(),", got ").concat(r.day));var i=n.getHours()*60,a=getBothHalves(i,r,t);if(!a.firstHalf&&!a.secondHalf)throw new Error("We calculated a day without any opening hours at all!");return a};function showErrorMessage(e,r,t){var n,i=(n=e.parentElement)===null||n===void 0?void 0:n.parentElement;i?.classList.add("has-error");var a=i?.querySelector("#".concat(r).concat(t));a&&a.classList.remove("hidden")}function removeErrorMessage(e,r,t){var n,i=(n=e.parentElement)===null||n===void 0?void 0:n.parentElement,a=i?.querySelector("#".concat(r).concat(t));a&&a.classList.add("hidden")}function showValidCheckmark(e){var r,t=(r=e.parentElement)===null||r===void 0?void 0:r.querySelector(".nm-icon-checkmark_01");t&&t.classList.remove("hidden")}function resetInputField(e){removeErrorClass(e),removeValidCheckmark(e)}function removeErrorClass(e){var r,t=(r=e.parentElement)===null||r===void 0?void 0:r.parentElement;t?.classList.remove("has-error")}function removeValidCheckmark(e){var r,t=(r=e.parentElement)===null||r===void 0?void 0:r.querySelector(".nm-icon-checkmark_01");t&&t.classList.add("hidden")}var MIN_LENGTH=1,MAX_LENGTH=60,MIN_LENGTH_ADDRESS_ADDITION=0,MAX_LENGTH_ADDRESS_ADDITION=MAX_LENGTH,MIN_EMAIL_LENGTH=5,MAX_EMAIL_LENGTH=100,ZIP_AUSTRIA_SWISS_LENGTH=4,ZIP_GERMANY_LENGTH=5,MIN_STREETNUMBER_LENGTH=MIN_LENGTH,MAX_STREETNUMBER_LENGTH=10,MIN_PHONENUMBER_LENGTH=MIN_LENGTH,MAX_PHONENUMBER_LENGTH=25,inputFieldIDs={companyName:"checkout-companyName",firstname:"checkout-firstname",lastname:"checkout-lastname",street:"checkout-street",streetNumber:"checkout-streetNumber",addressAddition:"checkout-addressAddition",zipCode:"checkout-zipCode",city:"checkout-city",phone:"checkout-phone",email:"checkout-email",name1:"checkout-name1",name2:"checkout-name2",name3:"checkout-name3"},errorIDs={notBlank:"-error-not-blank",validSize1To60:"-error-valid-size-1-to-60",validSize0To60:"-error-valid-size-0-to-60",validSize4To4:"-error-valid-size-4-to-4",validSize5To5:"-error-valid-size-5-to-5",validSize1To10:"-error-valid-size-1-to-10",validSize1To25:"-error-valid-size-1-to-25",validSize5To100:"-error-valid-size-5-to-100",onlyDigitsZip:"-error-only-digits",validPhoneNumber:"-error-phonenumber-invalid",validEmail:"-error-email-invalid",atLeast1Name:"-error-at-least-one-name"},__assign$6=globalThis&&globalThis.__assign||function(){return __assign$6=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$6.apply(this,arguments)},__read$7=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$6=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},parseStartEndDate=function(e){try{var r=JSON.parse(e),t=new Date(r.startDate.year,r.startDate.monthValue-1,r.startDate.dayOfMonth),n=new Date(r.endDate.year,r.endDate.monthValue-1,r.endDate.dayOfMonth,23,59,59);return{startDate:t,endDate:n}}catch{throw new Error("parseStartEndDate caused an error")}},parseHolidays=function(e){try{var r=JSON.parse(e);return r.map(function(t){return new Date(t)})}catch{throw new Error("parseHolidays caused an error")}},convertStringToWeekDay=function(e){var r={SUN:WeekDay.SUN,MON:WeekDay.MON,TUE:WeekDay.TUE,WED:WeekDay.WED,THU:WeekDay.THU,FRI:WeekDay.FRI,SAT:WeekDay.SAT};if(r[e.toUpperCase()]||r[e.toUpperCase()]===0)return r[e.toUpperCase()];throw new Error("Couldn't get the proper week day for the input")},parseWorkingHours=function(e){try{var r=JSON.parse(e);return r.map(function(t){var n=convertStringToWeekDay(t.day),i={day:n};if(t.firstHalf){var a={hours:t.firstHalf.startingHour,minutes:t.firstHalf.startingMinute},s={hours:t.firstHalf.endingHour,minutes:t.firstHalf.endingMinute};i.firstHalf={startingSchedule:a,endingSchedule:s}}if(t.secondHalf){var a={hours:t.secondHalf.startingHour,minutes:t.secondHalf.startingMinute},s={hours:t.secondHalf.endingHour,minutes:t.secondHalf.endingMinute};i.secondHalf={startingSchedule:a,endingSchedule:s}}return i})}catch{throw new Error("parseWorkingHours caused an error")}},disableDate=function(e,r,t){return e.getDay()===0||t.includes(e.getDay())||r.some(function(n){return areTwoDatesEqualByYearMonthDay(e,n)})},getDisabledDates=function(e,r){return[function(t){return disableDate(t,e,r)}]},getTimeLimitsForDays=function(e){var r=minMaxTimePlugin({getTimeLimits:function(t){return getTimeLimitsForSpecificDays(e,t)}});return[r]},getScheduleStartTimeMin=function(e){return{starting:e.startingSchedule.hours*60+e.startingSchedule.minutes,ending:e.endingSchedule.hours*60+e.endingSchedule.minutes}},checkHalfBoundaries=function(e,r,t){var n=getScheduleStartTimeMin(e),i=n.starting,a=n.ending;if(r<i)return{hour:e.startingSchedule.hours,minute:e.startingSchedule.minutes,afterHalf:!1,beforeHalf:!0};if(r>a)return{hour:e.endingSchedule.hours-1,minute:e.endingSchedule.minutes,afterHalf:!0,beforeHalf:!1};if(r>=i&&r<=a){var s=a-r;if(s<60)return{hour:e.endingSchedule.hours-1,minute:e.endingSchedule.minutes,afterHalf:!t,beforeHalf:!1}}return{hour:parseInt((r/60).toString()),minute:r%60,afterHalf:!1,beforeHalf:!1}},checkBothHalvesBoundaries=function(e,r,t,n){var i=r.getHours(),a=r.getMinutes(),s=!1;if(e.firstHalf){var c=checkHalfBoundaries(e.firstHalf,t,n),h=c.hour,l=c.minute,p=c.afterHalf,b=c.beforeHalf;if(b||!b&&!p)return{hour:h,minute:l};i=h,a=l,s=!0}if(e.secondHalf){var m=checkHalfBoundaries(e.secondHalf,t,n),h=m.hour,l=m.minute,b=m.beforeHalf;return b&&s&&n?{hour:i,minute:a}:{hour:h,minute:l}}return{hour:i,minute:a}},checkDateBoundaries=function(e,r,t,n){var i=r.getHours()*60+r.getMinutes();if(t&&areTwoDatesEqualByYearMonthDay(t.date,r)){var a=checkBothHalvesBoundaries(t.workingHourSchedule,r,i,n),s=a.hour,c=a.minute;return{hour:s,minute:c}}var h=checkBothHalvesBoundaries(e,r,i,n),l=h.hour,p=h.minute;return{hour:l,minute:p}},customOnChangeForHalves=function(e,r,t,n,i){if(t.length){var a=t[0];areTwoDatesEqualByYearMonthDay(i,a)||a.setHours(1,0,0,0);var s=a.getHours()*60+a.getMinutes()-i.getHours()*60+i.getMinutes()<0,
90c=e.find(function(m){return m.day===a.getDay()});if(c){var h=checkDateBoundaries(c,a,r,s),l=h.hour,p=h.minute,b=new Date(a);return b.setHours(l,p),n.setDate(b),b}}return new Date(i)},calcEachDay=function(e,r,t){var n={excludedDays:[]},i=getTotalTimeLeftInDay(r,e),a=i-t;if(a>=0){if(a>=60){var s=modifyDate(e,r,t),c={date:new Date(e),workingHourSchedule:s};n.modifiedDate=__assign$6({},c)}t=0}else t=Math.abs(a);return(t>0||a<60)&&r&&n.excludedDays.push(new Date(e)),{calcResult:n,reserveLeft:t}},checkTodayDateAndRound=function(){var e=new Date(Date.now());return e.getMinutes()!==0&&e.getHours()!==23&&e.setHours(e.getHours()+1),e.setMinutes(0),e},reservationCalc=function(e,r,t){var n,i=checkTodayDateAndRound(),a=r*60,s=[],c={excludedDays:s};if(t.length<=0)throw new Error("No working Hours present at all");for(;a>0;){var h=t.find(function(m){return m.day===i.getDay()});if(h&&checkIfNormalDay(e,h,i)){var l=calcEachDay(i,h,a),p=l.calcResult,b=l.reserveLeft;(n=c.excludedDays).push.apply(n,__spreadArray$6([],__read$7(p.excludedDays),!1)),a=b,p.modifiedDate&&(c.modifiedDate=__assign$6({},p.modifiedDate))}else e.some(function(m){return areTwoDatesEqualByYearMonthDay(m,i)})||c.excludedDays.push(new Date(i));i.setDate(i.getDate()+1),i.setHours(0),i.setMinutes(0),i.setSeconds(0)}return c},getDaysWithoutWorkingHours=function(e){var r=JSON.parse(e);return r.map(function(t){return convertStringToWeekDay(t)})},disableMinuteDisplay=function(e){if(e){var r=e.querySelector(".flatpickr-minute"),t=e.querySelector(".flatpickr-time-separator"),n=r?.parentElement;n&&(n.style.display="none"),t&&(t.style.display="none")}},disableHourDisplay=function(e){if(e){var r=e.querySelector(".flatpickr-hour");r&&(r.style.display="none")}},createPseudoHours=function(e){var r=document.createElement("span");r.classList.add("flatpickr-new-hours"),e?.insertBefore(r,e?.firstChild)},updateNewHourValue=function(e,r){if(e&&r){var t=e.querySelector(".flatpickr-new-hours");t&&(t.innerText="Ab ".concat(r.getHours()," Uhr"))}};function selectFlatpickrRadioParent(e){var r,t,n;e.required=!0;var i=(n=(t=(r=e.parentElement)===null||r===void 0?void 0:r.parentElement)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.querySelector('input[id^="deliver-date-"]');i&&(i.checked=!0)}function flatpickrRadioSwitcher(){document.querySelectorAll(".flatpickr.flatpickr-input").forEach(function(e){e.addEventListener("click",function(){return selectFlatpickrRadioParent(e)}),e.addEventListener("mousedown",function(){return selectFlatpickrRadioParent(e)}),e.addEventListener("focus",function(){return selectFlatpickrRadioParent(e)})})}function flatpickrRadioRequiredChecker(){document.querySelectorAll('input[id^="deliver-asap-"]').forEach(function(e){e.addEventListener("click",function(){return selectEarliestDate(e)}),e.addEventListener("mousedown",function(){return selectEarliestDate(e)})}),document.querySelectorAll('input[id^="deliver-date-"]').forEach(function(e){e.addEventListener("click",function(){return selectDate(e)}),e.addEventListener("mousedown",function(){return selectDate(e)})})}function selectEarliestDate(e){resetDateValidation(e),setFlatpickrRequired(getFlatpickrId(e.id),!1)}function selectDate(e){setFlatpickrRequired(getFlatpickrId(e.id),!0)}function resetDateValidation(e){var r,t=(r=e.parentElement)===null||r===void 0?void 0:r.parentElement;if(t instanceof HTMLFieldSetElement){var n=t.querySelector('input[id^="deliver-date-"]');n instanceof HTMLInputElement&&removeErrorMessage(n,"datePicker",errorIDs.notBlank);var i=t.querySelector(".flatpickr-input");i instanceof HTMLInputElement&&removeValidCheckmark(i)}}function getFlatpickrId(e){var r=new RegExp("(?<=deliver-asap-|deliver-date-)\\S*","gm"),t=e.match(r),n="deliveryDate-";return t&&t.length>0?n+t[0]:n}function handleVisibleFlatpickrInput(e,r){e&&(e.required=r,e.setAttribute("tabindex","0"),r||(e.value="",e.setAttribute("tabindex","-1")))}function setFlatpickrRequired(e,r){var t=document.getElementById(e);t&&(t.required=r,handleVisibleFlatpickrInput(t.nextElementSibling,r))}var createDeliveryOptions=function(e){var r=e.dataset.flatpickrStartenddate;if(r)try{var t=parseStartEndDate(r);return Object.freeze({allowInput:!0,altFormat:"d.m.Y",altInput:!0,altInputClass:"",animate:!0,clickOpens:!0,closeOnSelect:!1,dateFormat:"Y-m-dTH:i",locale:deExports.German,maxDate:t.endD
90ate,minDate:t.startDate,weekNumbers:!0})}catch(n){console.error(n)}throw new Error('"parsedStartEndDate" probably returned null')},__read$6=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$5=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},createPickupOptions=function(e){var r,t=e.dataset.flatpickrStartenddate,n=e.dataset.flatpickrHolidays,i=e.dataset.flatpickrReservationtime,a=e.dataset.flatpickrWorkinghours,s=(r=e.dataset.flatpickrDayswithoutworkinghours)!==null&&r!==void 0?r:"";if(t&&n&&i&&a)try{var c=parseStartEndDate(t),h=parseHolidays(n),l=parseInt(i),p=parseWorkingHours(a),b=getDaysWithoutWorkingHours(s),m=reservationCalc(h,l,p),A=m.excludedDays,L=m.modifiedDate,k=new Date(Date.now());return L&&(L.date.getTime()<c.startDate.getTime()?k=new Date(c.startDate):k=new Date(L.date)),Object.freeze({allowInput:!0,altFormat:"d.m.Y H:i",altInput:!0,altInputClass:"",animate:!0,clickOpens:!0,closeOnSelect:!1,dateFormat:"Y-m-dTH:i",disable:getDisabledDates(__spreadArray$5(__spreadArray$5([],__read$6(h),!1),__read$6(A),!1),b),enableTime:!0,locale:deExports.German,maxDate:c.endDate,minDate:c.startDate,plugins:getTimeLimitsForDays(p),time_24hr:!0,onValueUpdate:function(T,S,M){k=customOnChangeForHalves(p,L,T,M,k),updateNewHourValue(M.timeContainer,M.latestSelectedDateObj)},weekNumbers:!0,onReady:function(T,S,M){disableMinuteDisplay(M.timeContainer),disableHourDisplay(M.timeContainer),createPseudoHours(M.timeContainer),updateNewHourValue(M.timeContainer,M.latestSelectedDateObj),k=customOnChangeForHalves(p,L,[k],M,k)}})}catch(T){console.error(T)}throw new Error('"parseStartEndDate" probably returned null')},DateTimePickerV2=function(){function e(r){this.flatpickrInstance=r}return e.prototype.init=function(r){r&&this.initializeFlatpickrElement(r)},e.prototype.createOptions=function(r){var t=r.dataset.flatpickrType;if(t)return t.toLowerCase()==="pickup"?createPickupOptions(r):t.toLowerCase()==="birthday"?createPaymentOptions():createDeliveryOptions(r);throw new Error("No flatpickr type could be determined")},e.prototype.initializeFlatpickrElement=function(r){try{var t=this.createOptions(r);this.flatpickrInstance=flatpickr(r,t)}catch(n){console.error(n)}},e}(),Checkout=function(){function e(){var r=new CheckboxVisibilityToggle;r.addVisibilityHandlers(".container",".toggles-visibility","toggle-target"),r.addDisabledHandlers(".container",".toggles-disabled","toggle-target"),this.init()}return e.prototype.init=function(){var r=this;window.focus(),document.querySelectorAll(".flatpickr.flatpickr-input").forEach(function(s){var c=new DateTimePickerV2(void 0);c.init(s)});var t=document.querySelectorAll("div.radio");t&&t.length>0&&this.initCheckRadiosOnDivClick(t);var n=document.querySelector(".order-summary__additional-information-expand-btn");n&&n.addEventListener("click",function(s){return r.toggleAdditionalInformationVisibility(s)});var i=document.getElementById("cartSummaryCommissionInput"),a=document.getElementById("cartSummaryCommissionHiddenInput");i?.addEventListener("input",function(s){var c=s.target;a&&(a.value=c.value)})},e.prototype.initCheckRadiosOnDivClick=function(r){var t=this;r.forEach(function(n){var i=$$1(n).parents(".js_radio-top-div");i.click(function(){t.checkRadio(i)})}),window.addEventListener("blur",function(){window.setTimeout(function(){if(document.activeElement&&document.activeElement===document.querySelector("iframe.hpf-cc")){var n=document.activeElement.closest(".js_radio-top-div");n&&t.checkRadio($$1(n))}},1)})},e.prototype.checkRadio=function(r){var t=$$1(r).find(":input");t.attr("disabled")==="disabled"?t.prop("checked",!1):t.prop("checked",!0)},e.prototype.toggleAdditionalInformationVisibility=function(r){var t=this;r.stopImmediatePropagation(),r.preventDefault();var n=document.querySelector(".order-summary__additional-information-text");n?.classList.toggle("fadeout");var i=r.currentTarget;i?.querySelectorAll("span").forEach(function(a){a.classList.contains("content")?t.handleTextChange(a):t.handleIconChange(a)})},e.prototype.handleIconChange=function(r){r.classList.contains("nm-icon-arrow-down")?(r.classList.remove("nm-icon-arrow-down"),r.classList.add("nm-icon-arrow-up")):(r.classList.add("nm-icon-arrow-down"),r.classList.remove("nm-icon-arrow-up"))},e.prototype.handleTextChange=function(r){r.innerText.trim().includes(r.dataset.reduced)?r.innerText=r.innerText.trim().replace(r.dataset.reduced,r.dataset.open):r.innerText=r.innerText.trim().replace(r.dataset.open,r.dataset.reduced)},e}();function clearDialogModalBody(e){var r=e.querySelector(".js--dialog-modal-body");r&&r instanceof HTMLElement&&(r.innerHTML="")}function checkIfCleanShouldBePerformed(e){var r=e.dataset.cleanOnClose;return r&&r!==""?r==="true":!0}function closeDialogModal(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("dialog");if(r){var t=checkIfCleanShouldBePerformed(r);r.close(),t&&clearDialogModalBody(r)}}}function dialogModalCloseListener(){document.querySelectorAll(".js--dialog-modal-close").forEach(function(e){return e.addEventListener("click",closeDialogModal)})}function modalIsInPath(e){var r=!1,t=document.querySelectorAll(".modal-dialog");return t.forEach(function(n){if(e.includes(n)){r=!0;return}}),r}function closeModalWhenBackdropIsClicked(e){var r=document.querySelector(".modal.fade.in");if(!modalIsInPath(e.composedPath())&&r){var t=r.getAttribute("id");$("#"+t).modal("hide")}}function preventModalBackdropFromScrolling(){var e=document.querySelectorAll(".modal.fade");e.forEach(function(r){r.addEventListener("touchmove",function(t){var n=r.querySelector(".modal-content");n!==null&&window.innerHeight<n.scrollHeight||t.preventDefault()})}),document.querySelectorAll(".modal-dialog").forEach(function(r){return r.addEventListener("click",function(t){return closeModalWhenBackdropIsClicked(t)})})}function dialogModalListeners(){dialogModalCloseListener()}function listenToBackdropScroll(){preventModalBackdropFromScrolling()}function openAdditionalInformationModalWithContent(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=document.querySelector(".js--additional-information-modal");if(r&&r instanceof HTMLElement){var t=e.currentTarget.dataset.sku,n=e.currentTarget.dataset.zr,i=e.currentTarget.dataset.merchantText,a=e.currentTarget.dataset.additionalInformation,s=r.querySelector(".js--dialog-modal-body");if(s&&s instanceof HTMLElement){var c=s.querySelector(".checkout-basket__additional_information__edit label");c!==null&&(c.textContent="");var h=r.querySelector(".checkout-basket__additional_information__edit");h&&h.classList.contains("hidden")&&h.classList.remove("hidden");var l=r.querySelector(".checkout-basket__additional_information__unsaved");l&&!l.classList.contains("hidden")&&l.classList.add("hidden"),s.dataset.sku=t,s.dataset.zr=n,s.dataset.additionalInformation=a;var p=s.querySelector("textarea");p&&(p.placeholder=i,p.textContent=a,p.value=a);var b=s.querySelector(".js--additional-information-modal-back");b&&b.addEventListener("click",function(){return toggleAdditionalInformationModalMode(r)});var m=s.querySelector(".js--additional-information-modal-withoutsave");m&&m.addEventListener("click",closeAdditionalInformationModal);var A=s.querySelector(".js--additional-information-modal-save");
90A&&A.addEventListener("click",saveAdditionalInformationModal),r.showModal()}}}}function closeAdditionalInformationModal(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("dialog"),t=r.querySelector(".js--dialog-modal-body");if(t&&t instanceof HTMLElement){var n=t.dataset.additionalInformation;if(r){var i=r.querySelector("textarea");isAdditionalInformationModalEditModeActive(r)&&i&&n!==i.value?toggleAdditionalInformationModalMode(r):closeDialogModal(e)}}}}function saveAdditionalInformationModal(e){if(e.stopImmediatePropagation(),e.preventDefault(),e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("dialog"),t=r.querySelector(".js--dialog-modal-body"),n=t.querySelector(".checkout-basket__additional_information__edit label"),i=t.querySelector(".checkout-basket__additional_information__edit textarea");r&&r instanceof HTMLElement&&t&&t instanceof HTMLElement&&n&&n instanceof HTMLElement&&i&&i instanceof HTMLTextAreaElement&&$$1.post("/ajax/basket/changeadditionalinformation/",{sku:t.dataset.sku,zr:t.dataset.zr,additionalInformation:i.value},function(){var a=document.querySelector('button[data-zr="'+t.dataset.zr+'"][data-sku="'+t.dataset.sku+'"]');a&&a instanceof HTMLElement&&(a.dataset.additionalInformation=i.value),t.dataset.additionalInformation=i.value,n.classList.remove("error"),n.classList.add("success"),n.dataset.success&&(n.textContent=n.dataset.success)}).fail(function(){n.classList.remove("success"),n.classList.add("error"),n.dataset.error&&(n.textContent=n.dataset.error)})}}function toggleAdditionalInformationModalMode(e){var r=e.querySelector(".checkout-basket__additional_information__edit"),t=e.querySelector(".checkout-basket__additional_information__unsaved");r&&r instanceof HTMLElement&&r.classList.toggle("hidden"),t&&t instanceof HTMLElement&&t.classList.toggle("hidden")}function isAdditionalInformationModalEditModeActive(e){var r=e.querySelector(".checkout-basket__additional_information__edit");return r&&r instanceof HTMLElement?!r.classList.contains("hidden"):null}function addListenersToCheckoutBasketAdditionalInformationModal(){document.querySelectorAll(".js--additional-information-modal-show").forEach(function(e){return e.addEventListener("click",openAdditionalInformationModalWithContent)}),document.querySelectorAll(".js--additional-information-modal-close").forEach(function(e){return e.addEventListener("click",closeAdditionalInformationModal)})}function returnFallbackOrEmpty(e){return e||""}function getTemplateInnerText(e,r){if(e&&e!==""){var t=document.getElementById(e);if(t&&t instanceof HTMLTemplateElement){var n=t.content.cloneNode(!0);return n.textContent?n.textContent:returnFallbackOrEmpty(r)}else console.error("Template by the id ".concat(e," not found on page or is not a template"))}else console.error("Specified template id is null or empty");return returnFallbackOrEmpty(r)}function getTemplateClone(e){if(e&&e!==""){var r=document.getElementById(e);if(r&&r.childNodes&&r instanceof HTMLTemplateElement){for(var t=[],n=0;n<r.childNodes.length;n++)t[n]=r.childNodes.item(n).cloneNode(!0);return t}else console.error("Template by the id ".concat(e," not found on page or is not a template"))}else console.error("Specified template id is null or empty");return null}function openCustomerRemarksModalWithContent(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=document.querySelector(".js--customer-remarks-modal");if(r&&r instanceof HTMLElement){var t=e.currentTarget.dataset.sku,n=e.currentTarget.dataset.zr,i=e.currentTarget.dataset.merchantText,a=e.currentTarget.dataset.customerRemarks,s=getTemplateClone("checkout-basket__customer-remarks");if(s&&s[0]&&s[1]){var c=r.querySelector(".js--dialog-modal-body");if(c&&c instanceof HTMLElement){c.dataset.sku=t,c.dataset.zr=n,c.dataset.customerRemarks=a,c.append(s[0]),c.append(s[1]);var h=c.querySelector("textarea");h&&(h.placeholder=i,h.textContent=a);var l=c.querySelector(".js--customer-remarks-modal-back");l&&l.addEventListener("click",function(){return toggleCustomerRemarksModalMode(r)});var p=c.querySelector(".js--customer-remarks-modal-withoutsave");p&&p.addEventListener("click",closeCustomerRemarksModal);var b=c.querySelector(".js--customer-remarks-modal-save");
90b&&b.addEventListener("click",saveCustomerRemarksModal),r.showModal()}}}}}function closeCustomerRemarksModal(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("dialog"),t=r.querySelector(".js--dialog-modal-body");if(t&&t instanceof HTMLElement){var n=t.dataset.customerRemarks;if(r){var i=r.querySelector("textarea");isCustomerRemarksModalEditModeActive(r)&&i&&n!==i.value?toggleCustomerRemarksModalMode(r):closeDialogModal(e)}}}}function saveCustomerRemarksModal(e){if(e.stopImmediatePropagation(),e.preventDefault(),e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("dialog"),t=r.querySelector(".js--dialog-modal-body"),n=t.querySelector(".checkout-basket__customer-remarks__edit label"),i=t.querySelector(".checkout-basket__customer-remarks__edit textarea");r&&r instanceof HTMLElement&&t&&t instanceof HTMLElement&&n&&n instanceof HTMLElement&&i&&i instanceof HTMLTextAreaElement&&$$1.post("/ajax/basket/changeCustomerRemarks/",{sku:t.dataset.sku,zr:t.dataset.zr,remarks:i.value},function(){var a=document.querySelector('div.js--customer-remarks[data-zr="'+t.dataset.zr+'"][data-sku="'+t.dataset.sku+'"]');a&&a instanceof HTMLElement&&(a.dataset.customerRemarks=i.value),t.dataset.customerRemarks=i.value,n.classList.remove("error"),n.classList.add("success"),n.dataset.success&&(n.textContent=n.dataset.success)}).fail(function(){n.classList.remove("success"),n.classList.add("error"),n.dataset.error&&(n.textContent=n.dataset.error)})}}function toggleCustomerRemarksModalMode(e){var r=e.querySelector(".checkout-basket__customer-remarks__edit"),t=e.querySelector(".checkout-basket__customer-remarks__unsaved");r&&r instanceof HTMLElement&&r.classList.toggle("hidden"),t&&t instanceof HTMLElement&&t.classList.toggle("hidden")}function isCustomerRemarksModalEditModeActive(e){var r=e.querySelector(".checkout-basket__customer-remarks__edit");return r&&r instanceof HTMLElement?!r.classList.contains("hidden"):null}function addListenersToCheckoutBasketCustomerRemarksModal(){document.querySelectorAll(".js--customer-remarks-modal-show").forEach(function(e){return e.addEventListener("click",openCustomerRemarksModalWithContent)}),document.querySelectorAll(".js--customer-remarks-modal-close").forEach(function(e){return e.addEventListener("click",closeCustomerRemarksModal)})}var __awaiter$g=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$g=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function modifyLabel(e,r){if(r&&r!==""){var t=document.getElementById(r);t&&t instanceof HTMLElement&&(e?t.classList.add("-checked"):t.classList.remove("-checked"))}}function toggleIcon(e,r){if(r&&r!==""){var t=document.getElementById(r);t&&t instanceof HTMLElement&&(e?t.classList.remove("hidden"):t.classList.add("hidden"))}}function makeCallbackRequest(e,r){return __awaiter$g(this,void 0,void 0,function(){var t,n;return __generator$g(this,function(i){return t=new FormData(r),n=t.get("_csrf"),n&&n!==""?[2,fetch(r.action,{method:r.method,headers:{"Content-Type":"application/json","X-CSRF-TOKEN":n},body:String(e)})]:[2,Promise.reject("csrfToken missing")]})})}function handleCallbackRequestChange(e){return __awaiter$g(this,void 0,void 0,function(){var r,t,n;return __generator$g(this,function(i){switch(i.label){case 0:return e.currentTarget&&e.currentTarget instanceof HTMLInputElement?(r=e.currentTarget,t=r.closest("form"),t?[4,makeCallbackRequest(r.checked,t)]:[3,2]):[3,2];case 1:n=i.sent(),n.ok&&n.status===201?(toggleIcon(r.checked,r.dataset.targetIcon),modifyLabel(r.checked,r.dataset.targetLabel)):(t.reset(),console.error(n.statusText)),i.label=2;case 2:return[2]}})})}function listenToBasketRequestCheckboxes(){for(var e=document.getElementsByClassName("js--checkout-request-checkbox"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLInputElement&&t.addEventListener("change",handleCallbackRequestChange)}}function Cart(){this.loading=new Loading}Cart.prototype={amountFormClass:".form-amount",amountClass:"input.amount",amountEditClass:".edit",amountUnitClass:".amount-unit",initialAmount:0,amountChangedParam:"amountChanged",onChangingAmount:!1,onChangingAmountClass:"editing-amount",onFormEditAmountClass:"on-edit",$currentAmountChangingForm:$$1(),submitLink:null,tooltipLink:null,init:function(){this.changeProductAmount=new ChangeProductAmount,this.initialAmountHighlighting(
90),this.addEvents(),listenToBasketRequestCheckboxes(),this.initRadioButtonsCheck()},addEvents:function(){let e=this,r=e.amountEditClass+","+e.amountClass+","+e.amountUnitClass;$$1(".remove-from-basket").on("click keydown",s=>{(s.type==="click"||s.type==="keydown"&&s.key==="Enter")&&t(s)});function t(s){s.preventDefault(),$$1.post("/basket/remove/",{itemId:$$1(s.currentTarget).find("input.itemId").val(),zr:$$1(s.currentTarget).find("input.zr").val(),cuttingService:$$1(s.currentTarget).find("input.cuttingService").val()?1:0},()=>{window.location.reload()}).fail(()=>console.error("couldn't remove item from Basket"))}$$1(".remove-voucher").on("click keydown",s=>{(s.type==="click"||s.type==="keydown"&&s.key==="Enter")&&n(s)});function n(s){s.preventDefault(),$$1.post("/basket/removevoucher/",{zr:$$1(s.currentTarget).find("input.zr").val()},()=>{window.location.reload()}).fail(()=>console.error("couldn't remove voucher"))}$$1(".voucher-button").on("click keydown",s=>{(s.type==="click"||s.type==="keydown"&&s.key==="Enter")&&i(s)});function i(s){s.preventDefault(),$$1.post("/basket/addvoucher/",{zr:$$1(s.currentTarget).find("input.zr").val(),voucherCode:document.getElementById("voucherCode"+$$1(s.currentTarget).find("input.zr").val()).value},()=>{window.location.reload()}).fail(()=>console.error("couldn't remove voucher"))}$$1(".dropdown-voucher").on("click keydown",function(s){(s.type==="click"||s.type==="keydown"&&s.key==="Enter")&&a(s)});function a(s){let c=document.getElementById("voucherForm"+$$1(s.currentTarget).find("input.zr").val());if(c.classList.contains("hidden")){c.classList.remove("hidden");let h=s.currentTarget.querySelector(".nm-icon-arrow-down");h.classList.remove("nm-icon-arrow-down"),h.classList.add("nm-icon-arrow-up")}else{c.classList.add("hidden");let h=s.currentTarget.querySelector(".nm-icon-arrow-up");h.classList.remove("nm-icon-arrow-up"),h.classList.add("nm-icon-arrow-down")}}$$1(document).on("radioToggle::change",this.deliveryOrPickup.bind(this)),$$1(this.amountFormClass).on("click select keydown",r,function(s){if(s.type==="click"||s.type==="select"||s.type==="keydown"&&s.key==="Enter"){s.preventDefault();let c=$$1(s.delegateTarget),h=$$1(e.amountClass,c).attr("id"),l=$$1(e.amountClass,e.$currentAmountChangingForm),p=typeof l[0]<"u"?l.attr("id"):h;if(h!==p||c.hasClass(e.onFormEditAmountClass)&&$$1(e.amountEditClass).is(s.currentTarget)){let b=typeof l[0]<"u"?parseFloat(l.val()):0;h!==p&&e.initialAmount===b?(e.resetEdit(),e.editAmount(c)):e.submitAmount(e.$currentAmountChangingForm)}else e.onChangingAmount||e.editAmount(c)}}),$$1("body").on("click",function(s){e.onChangingAmount&&$$1(".input-group",e.amountFormClass).has(s.target).length===0&&e.submitAmount(e.$currentAmountChangingForm)}),$$1(this.amountFormClass).on("formAmountSubmitPrevented",function(){$$1(e.amountClass,e.$currentAmountChangingForm)[0].blur(),e.submitAmount(e.$currentAmountChangingForm)}),addListenersToCheckoutBasketAdditionalInformationModal(),addListenersToCheckoutBasketCustomerRemarksModal()},initRadioButtonsCheck:function(){this.submitLink=$$1("#submitButtonCheckoutBasket"),this.tooltipLink=$$1("#tooltipButtonCheckoutBasket"),$$1(document).on("change",'input[type="radio"]',()=>{this.checkAllRadioButtonsSelected()}),this.checkAllRadioButtonsSelected()},initTooltipLogic:function(){!this.submitLink||this.submitLink.length===0||!this.tooltipLink||this.tooltipLink.length===0||(this.tooltipLink.tooltip({placement:"top",html:!0,trigger:"hover focus",delay:{show:0,hide:0}}),this.submitLink.tooltip("hide"))},checkAllRadioButtonsSelected:function(){if(!this.submitLink||this.submitLink.length===0||!this.tooltipLink||this.tooltipLink.length===0)return;const e={};$$1('input[type="radio"]').each(function(){const t=$$1(this).attr("name");t&&(e[t]||(e[t]=[]),e[t].push($$1(this)))});let r=!0;for(let t in e)if(!e[t].some(a=>a.is(":checked"))){r=!1;break}r?(this.submitLink.removeClass("hide"),this.tooltipLink.addClass("hide")):(this.submitLink.addClass("hide"),this.tooltipLink.removeClass("hide"),this.initTooltipLogic())},editAmount:function(e){let r=$$1("input.amount",e);this.$currentAmountChangingForm=e,this.amountOnEdit(!0),this.initialAmount=parseFloat(r.data("initial-amount")),e.addClass(this.onFormEditAmountClass),r.removeClass("readonly").focus(),this.changeProductAmount.init(e)},initialAmountHighlighting:function(){location.hash.indexOf("amount_")!==-1&&setTimeout(function(){history.replaceState?history.replaceState(null,null,location.pathname+location.search):location.hash=""},3e3)},amountOnEdit:function(e){e?($$1("body").addClass(this.onChangingAmountClass),this.onChangingAmount=!0):($$1("body").removeClass(this.onChangingAmountClass),this.onChangingAmount=!1)},submitAmount:function(e){let r=$$1(this.amountClass,e),t={amount:parseFloat($$1(this.amountClass,e).val()),itemId:e.data("item-id"),zr:e.data("zr")};this.initialAmount!==t.amount?$$1.ajax({method:"POST",url:window.cfg.basketEditSubmit,data:t}).done(function(){history.replaceState?history.replaceState(null,null,"#"+r[0].id):location.hash="#"+r[0].id,location.reload()}).fail(function(){window.console.log("ERROR: saving new amount failed")}):this.resetEdit()},deliveryOrPickup:function(e,r){this.loading.load();let t=this;r[0].name.startsWith("deliveryOrPickup")&&$$1.ajax({method:"POST",url:window.cfg.deliveryOrPickup,data:{deliveryOrPickup:r.val(),zr:r.data("zr")}}).always(function(){t.loading.stop(),location.reload()})},resetEdit:function(){$$1(this.amountClass,this.$currentAmountChangingForm).addClass("readonly"),this.$currentAmountChangingForm.removeClass(this.onFormEditAmountClass),this.amountOnEdit(!1)}};/** 91 * @preserve jQuery Autocomplete plugin v1.2.6 92 * @homepage http://xdsoft.net/jqplugins/autocomplete/ 93 * @license MIT - MIT-LICENSE.txt 94 * (c) 2014, Chupurnov Valeriy <[email protected]> 95 */(function(e){var r=37,t=39,n=38,i=40,a=9,s=17,c=16,h=13,l=27,p=65,b=67,m=86,A=90,L=89,k={},T=!1,S=!1,M={},H={áº:"a",Ã:"a",á:"a",Ã:"a",à :"a",Ä:"a",Ä:"a",Ắ:"a",ắ:"a",Ằ:"a",ằ:"a",Ẵ:"a",ẵ:"a",Ẳ:"a",Ẫ:"a",ẫ:"a",Ẩ:"a",ẩ:"a",Ç:"a",Ç:"a",à :"a",Ã¥:"a",Ǻ:"a",Ç»:"a",Ã:"a",ä:"a",Ç:"a",Ç:"a",Ã:"a",ã:"a",Ȧ:"a",ȧ:"a",Ç :"a",Ç¡:"a",Ä:"a",Ä :"a",Ä:"a",Ä:"a",Ả:"a",ả:"a",È:"a",È:"a",È:"a",È:"a",Ạ:"a",ạ:"a",Ặ:"a",ặ:"a",Ậ:"a",áº:"a",á¸:"a",á¸:"a","Ⱥ":"a","â±¥":"a",Ǽ:"a",ǽ:"a",Ç¢:"a",Ç£:"a",á¸:"b",á¸:"b",á¸:"b",Ḡ:"b",á¸:"b",á¸:"b","É":"b",Æ:"b","ᵬ":"b",Æ:"b",É:"b",Æ:"b",Æ:"b",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ã:"c",ç:"c",á¸:"c",á¸:"c","È»":"c","ȼ":"c",Æ:"c",Æ:"c",É:"c",Ä:"d",Ä:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",Ä:"d",Ä:"d","áµ":"d",Æ:"d",É:"d",Æ:"d",É:"d",Æ:"d",Æ:"d","È¡":"d",ð:"d",Ã:"e",Æ:"e",Æ:"e",Ç:"e",é:"e",Ã:"e",è:"e",Ä
95:"e",Ä:"e",Ã:"e",ê:"e",Ế:"e",ế:"e",á»:"e",á»:"e",á»:"e",á»
:"e",á»:"e",á»:"e",Ä:"e",Ä:"e",Ã:"e",ë:"e",Ẽ:"e",ẽ:"e",Ä:"e",Ä:"e",Ȩ:"e",È©:"e",á¸:"e",á¸:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",á¸:"e",á¸:"e",á¸:"e",á¸:"e",Ẻ:"e",ẻ:"e",È:"e",È
:"e",È:"e",È:"e",Ẹ:"e",ẹ:"e",á»:"e",á»:"e",á¸:"e",á¸:"e",á¸:"e",á¸:"e","É":"e","É":"e",É:"e",É:"e",á¸:"f",á¸:"f","áµ®":"f",Æ:"f",Æ:"f",Ç´:"g",ǵ:"g",Ä:"g",Ä:"g",Ä:"g",Ä:"g",Ǧ:"g",ǧ:"g",Ä :"g",Ä¡:"g",Ä¢:"g",Ä£:"g",Ḡ:"g",ḡ:"g",Ǥ:"g",Ç¥:"g",Æ:"g",É :"g",Ĥ:"h",Ä¥:"h",È:"h",È:"h",Ḧ:"h",ḧ:"h",Ḣ:"h",ḣ:"h",Ḩ:"h",ḩ:"h",Ḥ:"h",ḥ:"h",Ḫ:"h",ḫ:"h",H:"h","̱":"h",áº:"h",Ħ:"h",ħ:"h","â±§":"h","ⱨ":"h",Ã:"i",Ã:"i",Ã:"i",ì:"i",Ĭ:"i",Ä:"i",Ã:"i",î:"i",Ç:"i",Ç:"i",Ã:"i",ï:"i",Ḯ:"i",ḯ:"i",Ĩ:"i",Ä©:"i",İ:"i",i:"i",Ä®:"i",į:"i",Ī:"i",Ä«:"i",á»:"i",á»:"i",È:"i",È:"i",È:"i",È:"i",á»:"i",á»:"i",Ḭ:"i",á¸:"i",I:"i",ı:"i",Æ:"i",ɨ:"i",Ä´:"j",ĵ:"j",J:"j","Ì":"j",ǰ:"j","È·":"j","É":"j","É":"j",Ê:"j",É:"j",Ê:"j",Ḱ:"k",ḱ:"k",Ǩ:"k",Ç©:"k",Ķ:"k",Ä·:"k",Ḳ:"k",ḳ:"k",Ḵ:"k",ḵ:"k",Æ:"k",Æ:"k","Ⱪ":"k","ⱪ":"k",Ĺ:"a",ĺ:"l",Ľ:"l",ľ:"l",Ä»:"l",ļ:"l",Ḷ:"l",ḷ:"l",Ḹ:"l",ḹ:"l",Ḽ:"l",ḽ:"l",Ḻ:"l",ḻ:"l",Å:"l",Å:"l","Ì£":"l",Ä¿:"l",Å:"l","Ƚ":"l",Æ:"l","â± ":"l","ⱡ":"l","â±¢":"l",É«:"l",ɬ:"l",É:"l","È´":"l",Ḿ:"m",ḿ:"m",á¹:"m",á¹:"m",á¹:"m",á¹:"m",ɱ:"m",Å:"n",Å:"n",Ǹ:"n",ǹ:"n",Å:"n",Å:"n",Ã:"n",ñ:"n",á¹:"n",á¹
:"n",Å
:"n",Å:"n",á¹:"n",á¹:"n",á¹:"n",á¹:"n",á¹:"n",á¹:"n",Æ:"n",ɲ:"n","È ":"n",Æ:"n",ɳ:"n","ȵ":"n",N:"n","Ì":"n",n:"n",Ã:"o",ó:"o",Ã:"o",ò:"o",Å:"o",Å:"o",Ã:"o",ô:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",Ç:"o",Ç:"o",Ã:"o",ö:"o",Ȫ:"o",È«:"o",Å:"o",Å:"o",Ã:"o",õ:"o",á¹:"o",á¹:"o",á¹:"o",á¹:"o",Ȭ:"o",È:"o",È®:"o",ȯ:"o",Ȱ:"o",ȱ:"o",Ã:"o",ø:"o",Ǿ:"o",Ç¿:"o",Ǫ:"o",Ç«:"o",Ǭ:"o",Ç:"o",Å:"o",Å:"o",á¹:"o",á¹:"o",á¹:"o",á¹:"o",á»:"o",á»:"o",È:"o",È:"o",È:"o",È:"o",Æ :"o",Æ¡:"o",á»:"o",á»:"o",á»:"o",á»:"o",á» :"o",ỡ:"o",á»:"o",á»:"o",Ợ:"o",ợ:"o",á»:"o",á»:"o",á»:"o",á»:"o",Æ:"o",ɵ:"o",á¹:"p",á¹:"p",á¹:"p",á¹:"p","â±£":"p",Ƥ:"p",Æ¥:"p",P:"p","Ì":"p",p:"p",Ê :"q","É":"q","É":"q",Å:"r",Å:"r",Å:"r",Å:"r",á¹:"r",á¹:"r",Å:"r",Å:"r",È:"r",È:"r",È:"r",È:"r",á¹:"r",á¹:"r",á¹:"r",á¹:"r",á¹:"r",á¹:"r","É":"r","É":"r","áµ²":"r",ɼ:"r","Ɽ":"r",ɽ:"r",ɾ:"r","áµ³":"r",Ã:"s",Å:"s",Å:"s",Ṥ:"s",á¹¥:"s",Å:"s",Å:"s",Å :"s",Å¡:"s",Ṧ:"s",á¹§:"s",á¹ :"s",ṡ:"s",áº:"s",Å:"s",Å:"s",á¹¢:"s",á¹£:"s",Ṩ:"s",ṩ:"s",È:"s",È:"s",Ê:"s",S:"s","Ì©":"s",s:"s",Ã:"t",þ:"t",Ť:"t",Å¥:"t",T:"t",áº:"t",Ṫ:"t",ṫ:"t",Å¢:"t",Å£:"t",Ṭ:"t",á¹:"t",È:"t",È:"t",á¹°:"t",á¹±:"t",á¹®:"t",ṯ:"t",Ŧ:"t",ŧ:"t","Ⱦ":"t","ⱦ":"t","áµµ":"t",Æ«:"t",Ƭ:"t",Æ:"t",Æ®:"t",Ê:"t","ȶ":"t",Ã:"u",ú:"u",Ã:"u",ù:"u",Ŭ:"u",Å:"u",Ã:"u",û:"u",Ç:"u",Ç:"u",Å®:"u",ů:"u",Ã:"u",ü:"u",Ç:"u",Ç:"u",Ç:"u",Ç:"u",Ç:"u",Ç:"u",Ç:"u",Ç:"u",Ű:"u",ű:"u",Ũ:"u",Å©:"u",Ṹ:"u",á¹¹:"u",Ų:"u",ų:"u",Ū:"u",Å«:"u",Ṻ:"u",á¹»:"u",Ủ:"u",á»§:"u",È:"u",È:"u",È:"u",È:"u",Ư:"u",ư:"u",Ứ:"u",ứ:"u",Ừ:"u",ừ:"u",á»®:"u",ữ:"u",Ử:"u",á»:"u",á»°:"u",á»±:"u",Ụ:"u",ụ:"u",á¹²:"u",á¹³:"u",á¹¶:"u",á¹·:"u",á¹´:"u",á¹µ:"u","É":"u",Ê:"u",á¹¼:"v",á¹½:"v",á¹¾:"v",ṿ:"v",Ʋ:"v",Ê:"v",áº:"w",áº:"w",áº:"w",áº:"w",Å´:"w",ŵ:"w",W:"w","Ì":"w",áº:"w",áº:"w",áº
:"w",áº:"w",áº:"w",áº:"w",áº:"w",áº:"x",áº:"x",áº:"x",áº:"x",Ã:"y",ý:"y",Ỳ:"y",ỳ:"y",Ŷ:"y",Å·:"y",Y:"y",áº:"y",Ÿ:"y",ÿ:"y",Ỹ:"y",ỹ:"y",áº:"y",áº:"y",Ȳ:"y",ȳ:"y",á»¶:"y",á»·:"y",á»´:"y",ỵ:"y",Ê:"y","É":"y","É":"y",Ƴ:"y",Æ´:"y",Ź:"z",ź:"z",áº:"z",áº:"z",Ž:"z",ž:"z",Å»:"z",ż:"z",áº:"z",áº:"z",áº:"z",áº:"z",Ƶ:"z",ƶ:"z",Ȥ:"z",È¥:"z",Ê:"z",Ê:"z","Ⱬ":"z","ⱬ":"z",Ç®:"z",ǯ:"z",ƺ:"z","ï¼":"2","ï¼":"6",ï¼¢:"B",F:"F",J:"J",ï¼®:"N",ï¼²:"R",ï¼¶:"V",Z:"Z",ï½:"b",ï½:"f",ï½:"j",ï½:"n",ï½:"r",ï½:"v",ï½:"z","ï¼":"1","ï¼":"5","ï¼":"9",A:"A",ï¼¥:"E",I:"I",ï¼:"M",ï¼±:"Q",ï¼µ:"U",ï¼¹:"Y",ï½:"a",ï½
:"e",ï½:"i",ï½:"m",ï½:"q",ï½:"u",ï½:"y","ï¼":"0","ï¼":"4","ï¼":"8",D:"D",H:"H",L:"L",ï¼°:"P",ï¼´:"T",X:"X",ï½:"d",ï½:"h",ï½:"l",ï½:"p",ï½:"t",ï½:"x","ï¼":"3","ï¼":"7",ï¼£:"C",ï¼§:"G",K:"K",O:"O",ï¼³:"S",ï¼·:"W",ï½:"c",ï½:"g",ï½:"k",ï½:"o",ï½:"s",ï½:"w",ẳ:"a",Ã:"a",â:"a",Ấ:"a",ấ:"a",Ầ:"a",ầ:"a"};window.getComputedStyle===void 0&&(window.getComputedStyle=function(){function se(re,W,ne,be){var fe=W[ne],ye=parseFloat(fe),et=fe.split(/\d/)[0],Be;return be=be!==null?be:/%|em/.test(et)&&re.parentElement?se(re.parentElement,re.parentElement.currentStyle,"fontSize",null):16,Be=ne==="fontSize"?be:/width/i.test(ne)?re.clientWidth:re.clientHeight,et==="em"?ye*be:et==="in"?ye*96:et==="pt"?ye*96/72:et==="%"?ye/100*Be:ye}function xe(re,W){var ne=W==="border"?"Width":"",be=W+"Top"+ne,fe=W+"Right"+ne,ye=W+"Bottom"+ne,et=W+"Left"+ne;re[W]=(re[be]===re[fe]===re[ye]===re[et]?[re[be]]:re[be]===re[ye]&&re[et]===re[fe]?[re[be],re[fe]]:re[et]===re[fe]?[re[be],re[fe],re[ye]]:[re[be],re[fe],re[ye],re[et]]).join(" ")}function qe(re){var W=re.currentStyle,ne=this,be,fe=se(re,W,"fontSize",null);for(be in W)Object.prototype.hasOwnProperty.call(W,be)&&(/width|height|margin.|padding.|border.+W/.test(be)&&ne[be]!=="auto"?ne[be]=se(re,W,be,fe)+"px":be==="styleFloat"?ne.float=W[be]:ne[be]=W[be]);return xe(ne,"margin"),xe(ne,"padding"),xe(ne,"border"),ne.fontSize=fe+"px",ne}qe.prototype={constructor:qe,getPropertyPriority:function(){},getPropertyValue:function(re){return this[re]||""},item:function(){},removeProperty:function(){},setProperty:function(){},getPropertyCSSValue:function(){}};function R(re){return new qe(re)}return R}()),e(document).on("keydown.xdsoftctrl",function(se){se.keyCode===s&&(T=!0),se.keyCode===c&&(T=!0)}).on("keyup.xdsoftctrl",function(se){se.keyCode===s&&(T=!1),se.keyCode===c&&(T=!1)});function te(se){if(!se)return"";var xe="",qe;
95for(qe=0;qe<se.length;qe+=1)xe+=H[se.charAt(qe)]||se.charAt(qe);return xe}function Ie(se){return se.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function we(se){if(se){if(se.selectionStart)return se.selectionStart;if(document.selection){se.focus();var xe=document.selection.createRange(),qe=document.selection.createRange().text.length;return xe.moveStart("character",-se.value.length),xe.text.length-qe}}}function _(se,xe){if(se.setSelectionRange)se.focus(),se.setSelectionRange(xe,xe);else if(se.createTextRange){var qe=se.createTextRange();qe.collapse(!0),qe.moveEnd("character",xe),qe.moveStart("character",xe),qe.select()}}function oe(se){return se!==void 0}function ee(se,xe,qe,R){return oe(se)&&!e.isArray(se)?e.isFunction(se)?se.apply(this,xe):R:oe(qe)?ee.call(this,qe,xe):R}function Ee(se,xe,qe,R){var re;return ee.call(this,oe(this.source[xe])&&Object.prototype.hasOwnProperty.call(this.source[xe],se)?this.source[xe][se]:re,qe,function(){return ee.call(this,oe(this[se][xe])?this[se][xe]:oe(this[se][0])?this[se][0]:Object.prototype.hasOwnProperty.call(this,se)?this[se]:re,qe,k[se][xe]||k[se][0]||k[se],R)},R)}function Le(se,xe){return oe(xe)||(xe=0),e.isArray(this.source)&&oe(this.source[xe])&&oe(this.source[xe][se])?this.source[xe][se]:oe(this[se])?e.isArray(this[se])?oe(this[se][xe])?this[se][xe]:oe(this[se][0])?this[se][0]:null:this[se]:null}function Pe(se,xe,qe,R){xe.xhr&&xe.xhr.abort(),xe.xhr=e.ajax(e.extend(!0,{url:se,type:"GET",async:!0,cache:!1,dataType:"json"},xe.ajax)).done(function(re){qe&&qe.apply(this,e.makeArray(arguments))}).fail(function(re,W){R&&console.log("Request failed: "+W)})}function $e(se,xe){var qe=!1,R;for(R=0;R<se.length;R+=1)if(qe=Ee.call(this,"findRight",R,[se[R],xe,R]))return{right:qe,source:R};return!1}function Ze(se,xe){var qe;for(gt.call(this,se,xe),qe=0;qe<se.length;qe+=1)se[qe]=Ee.call(this,"filter",qe,[se[qe],xe,qe],se[qe])}function je(se,xe,qe){var R=this,re;if(e.isFunction(R.source))R.source.apply(R,[se,function(ne){xe=[ne],ee.call(R,qe,[se])},xe,0]);else for(re=0;re<R.source.length;re+=1)if(e.isArray(R.source[re]))xe[re]=R.source[re];else if(e.isFunction(R.source[re]))(function(ne){R.source[ne].apply(R,[se,function(be){if(xe[ne]||(xe[ne]=[]),be&&e.isArray(be))switch(R.appendMethod){case"replace":xe[ne]=be;break;default:xe[ne]=xe[ne].concat(be)}ee.call(R,qe,[se])},xe,ne])})(re);else switch(R.source[re].type){case"remote":if(oe(R.source[re].url)&&(!oe(R.source[re].minLength)||se.length>=R.source[re].minLength)){var W=Ee.call(R,"replace",re,[R.source[re].url,se],"");xe[re]||(xe[re]=[]),function(ne){Pe(W,R.source[ne],function(be){xe[ne]=be,ee.call(R,qe,[se])},R.debug)}(re)}break;default:oe(R.source[re].data)?xe[re]=R.source[re].data:xe[re]=R.source[re]}ee.call(R,qe,[se])}function gt(se,xe){for(var qe=0;qe<se.length;qe++)se[qe]=Ee.call(this,"preparse",qe,[se[qe],xe],se[qe])}function Xe(se,xe){var qe,R,re,W=[];for(qe=0;qe<se.length;qe+=1)for(R=0;R<se[qe].length&&!(W.length>=this.limit);R+=1)re=e(Ee.call(this,"render",qe,[se[qe][R],qe,R,xe],"")),re.data("source",qe),re.data("pid",R),re.data("item",se[qe][R]),W.push(re);return W}function dt(se,xe){return oe(se.data("source"))&&oe(se.data("pid"))&&oe(xe[se.data("source")])&&oe(xe[se.data("source")][se.data("pid")])?xe[se.data("source")][se.data("pid")]:!1}function yt(se,xe){var qe=dt(se,xe);return qe?Ee.call(this,"getValue",se.data("source"),[qe,se.data("source")]):oe(se.data("value"))?decodeURIComponent(se.data("value")):se.html()}k={minLength:0,valueKey:"value",titleKey:"title",highlight:!0,showHint:!0,dropdownWidth:"100%",dropdownStyle:{},itemStyle:{},hintStyle:!1,style:!1,debug:!0,openOnFocus:!1,closeOnBlur:!0,autoselect:!1,accents:!0,replaceAccentsForRemote:!0,limit:20,visibleLimit:20,visibleHeight:0,defaultHeightItem:30,timeoutUpdate:10,get:function(se,xe){return Le.call(this,se,xe)},replace:[function(se,xe){return this.replaceAccentsForRemote&&(xe=te(xe)),se.replace("%QUERY%",encodeURIComponent(xe))}],equal:function(se,xe){return xe.toLowerCase()==se.substr(0,xe.length).toLowerCase()},findRight:[function(se,xe,qe){var R="",re;if(se){for(re=0;re<se.length;re+=1)if(R=Ee.call(this,"getValue",qe,[se[re],qe]),Ee.call(this,"equal",qe,[R,xe,qe],!1))return se[re]}return!1}],valid:[function(se,xe){return this.accents&&(se=te(se),xe=te(xe)),se.toLowerCase().indexOf(xe.toLowerCase())!=-1}],filter:[function(se,xe,qe){var R=[],re="",W;if(se)for(W=0;W<se.length;W+=1)re=oe(se[W][this.get("valueKey",qe)])?se[W][this.get("valueKey",qe)]:se[W].toString(),Ee.call(this,"valid",qe,[re,xe])&&R.push(se[W]);return R}],preparse:function(se){return se},getValue:[function(se,xe){return oe(se[this.get("valueKey",xe)])?se[this.get("valueKey",xe)]:se.toString()}],getTitle:[function(se,xe){return oe(se[this.get("titleKey",xe)])?se[this.get("titleKey",xe)]:se.toString()}],render:[function(se,xe,qe,R){var re=Ee.call(this,"getValue",xe,[se,xe],k.getValue[0].call(this,se,xe)),W=Ee.call(this,"getTitle",xe,[se,xe],k.getTitle[0].call(this,se,xe)),ne="",be="",fe="",ye="",et,Be,ht,_t=0;if(this.highlight)if(!this.accents)W=W.replace(new RegExp("("+Ie(R)+")","i"),"<b>$1</b>");else{for(be=te(W).toLowerCase().replace(/[<>]+/g,""),ne=te(R).toLowerCase().replace(/[<>]+/g,""),fe=be.replace(new RegExp(Ie(ne),"g"),"<"+ne+">"),ht=0;ht<fe.length;ht+=1)et=W.charAt(_t),Be=fe.charAt(ht),Be==="<"?ye+="<b>":Be===">"?ye+="</b>":(_t+=1,ye+=et);W=ye}return"<div "+(re==R?'class="active"':"")+' data-value="'+encodeURIComponent(re)+'">'+W+"</div>"}],appendMethod:"concat",source:[],afterSelected:function(){}};function Bt(se,xe){if(e(se).hasClass("xdsoft_input"))return;var qe=e('<div class="xdsoft_autocomplete"></div>'),R=e('<div class="xdsoft_autocomplete_dropdown"></div>'),re=e('<input readonly class="xdsoft_autocomplete_hint"/>'),W=e(se),ne=0,be,fe=[],ye=!1,et="",Be="",ht=null,_t=0;W.data("autocomplete_options",xe),R.on("mousedown",function(Ve){Ve.preventDefault(),Ve.stopPropagation()}).on("updatescroll.xdsoft",function(){var Ve=R.find(".active");if(Ve.length){var wt=Ve.position().top,Ct=Ve.outerHeight(!0),nt=R.scrollTop(),Ht=R.height();wt<0?R.scrollTop(nt-Math.abs(wt)):wt+Ct>Ht&&R.scrollTop(nt+wt+Ct-Ht)}}),qe.css({display:W.css("display"),width:W.css("width")}),xe.style&&qe.css(xe.style),W.addClass("xdsoft_input").attr("autocomplete","off");var Et=null,Pt=null,Ut=!1;R.on("mousemove","div",function(){if(e(this).hasClass("active"))return!0;R.find("div").removeClass("active"),e(this).addClass("active")}).on("mousedown","div",function(Ve){R.find("div").removeClass("active"),e(this).addClass("active"),W.trigger("pick.xdsoft")}).on("touchstart","div",function(Ve){Et=Ve.originalEvent.touches[0].clientX,Pt=Ve.originalEvent.touches[0].clientY}).on("touchend","div",function(Ve){Ut===!1&&(R.find("div").removeClass("active"),e(this).addClass("active"),W.trigger("pick.xdsoft")),Ut=!1}).on("touchmove","div",function(Ve){if(!(!Et||!Pt)){var wt=Ve.originalEvent.touches[0].clientX,Ct=Ve.originalEvent.touches[0].clientY,nt=Et-wt,Ht=Pt-Ct;Math.abs(nt)>Math.abs(Ht)?nt>0?Ut="left":Ut="right":Ht>0?Ut="top":Ut="bottm",Et=null,Pt=null}});function rt(){if(W.val()!=Be)Be=W.val();else return;if(Be.length<xe.minLength){W.trigger("close.xdsoft");return}
95je.call(xe,Be,fe,function(Ve){if(Ve==Be){var wt;if(Ze.call(xe,fe,Ve),W.trigger("updateContent.xdsoft"),xe.showHint&&Be.length&&Be.length<=W.prop("size")&&(wt=$e.call(xe,fe,Be))){var Ct=Ee.call(xe,"getTitle",wt.source,[wt.right,wt.source]);Ct=Ve+Ct.substr(Ve.length),re.val(Ct)}else re.val("")}})}function Vt(Ve){var wt=Ve.keyCode,Ct;switch(wt){case p:case b:case m:case A:case L:if(Ve.shiftKey||Ve.ctrlKey)return!0;break;case c:case s:return!0;case t:case r:return T||S||Ve.shiftKey||Ve.ctrlKey?!0:(et=W.val(),_t=we(W[0]),wt===t&&_t===et.length?((Ct=$e.call(xe,fe,et))?W.trigger("pick.xdsoft",[Ee.call(xe,"getValue",Ct.source,[Ct.right,Ct.source])]):W.trigger("pick.xdsoft"),Ve.preventDefault(),!1):!0);case a:return!0;case h:return ye?(W.trigger("pick.xdsoft"),Ve.preventDefault(),!1):!0;case l:return W.val(Be).trigger("close.xdsoft"),Ve.preventDefault(),!1;case i:case n:if(!ye)return W.trigger("open.xdsoft"),W.trigger("updateContent.xdsoft"),Ve.preventDefault(),!1;ht=R.find("div.active");var nt=wt==i?"next":"prev",Ht=!0;return ht.length?(ht.removeClass("active"),ht[nt]().length?ht[nt]().addClass("active"):(W.val(Be),Ht=!1)):R.children().eq(wt==i?0:-1).addClass("active"),Ht&&W.trigger("timepick.xdsoft"),R.trigger("updatescroll.xdsoft"),Ve.preventDefault(),!1}}W.data("xdsoft_autocomplete",fe).after(qe).on("pick.xdsoft",function(Ve,wt){W.trigger("timepick.xdsoft",wt),Be=W.val(),W.trigger("close.xdsoft"),ht=R.find("div.active").eq(0),ht.length||(ht=R.children().first()),W.trigger("selected.xdsoft",[dt(ht,fe)]),xe.afterSelected&&xe.afterSelected()}).on("timepick.xdsoft",function(Ve,wt){ht=R.find("div.active"),ht.length||(ht=R.children().first()),ht.length&&(oe(wt)?W.val(wt):W.val(yt.call(xe,ht,fe)),W.trigger("autocompleted.xdsoft",[dt(ht,fe)]),re.val(""),_(W[0],W.val().length))}).on("keydown.xdsoft input.xdsoft cut.xdsoft paste.xdsoft",function(Ve){var wt=Vt(Ve);if(wt===!1||wt===!0)return wt;setTimeout(function(){rt()},1),rt()}).on("change.xdsoft",function(Ve){Be=W.val()}),Be=W.val(),je.call(xe,W.val(),fe,function(Ve){Ze.call(xe,fe,Ve)}),xe.openOnFocus&&W.on("focusin.xdsoft",function(){W.trigger("open.xdsoft"),W.trigger("updateContent.xdsoft")}),xe.closeOnBlur&&W.on("focusout.xdsoft",function(){W.trigger("close.xdsoft")}),qe.append(W).append(R);var Ke=!1,At=0;W.on("updateHelperPosition.xdsoft",function(){clearTimeout(At),At=setTimeout(function(){if(qe.css({display:W.css("display"),width:W.css("width")}),R.css(e.extend(!0,{left:W.position().left,top:W.position().top+parseInt(W.css("marginTop"))+parseInt(W[0].offsetHeight),marginLeft:W.css("marginLeft"),marginRight:W.css("marginRight"),width:xe.dropdownWidth=="100%"?W[0].offsetWidth:xe.dropdownWidth},xe.dropdownStyle)),xe.showHint){var Ve=getComputedStyle(W[0],"");re[0].style.cssText=Ve.cssText,re.css({"box-sizing":Ve.boxSizing,borderStyle:"solid",borderCollapse:Ve.borderCollapse,borderLeftWidth:Ve.borderLeftWidth,borderRightWidth:Ve.borderRightWidth,borderTopWidth:Ve.borderTopWidth,borderBottomWidth:Ve.borderBottomWidth,paddingBottom:Ve.paddingBottom,marginBottom:Ve.marginBottom,paddingTop:Ve.paddingTop,marginTop:Ve.marginTop,paddingLeft:Ve.paddingLeft,marginLeft:Ve.marginLeft,paddingRight:Ve.paddingRight,marginRight:Ve.marginRight,maxHeight:Ve.maxHeight,minHeight:Ve.minHeight,maxWidth:Ve.maxWidth,minWidth:Ve.minWidth,width:Ve.width,letterSpacing:Ve.letterSpacing,lineHeight:Ve.lineHeight,outlineWidth:Ve.outlineWidth,fontFamily:Ve.fontFamily,fontVariant:Ve.fontVariant,fontStyle:W.css("fontStyle"),fontSize:W.css("fontSize"),fontWeight:W.css("fontWeight"),flex:Ve.flex,justifyContent:Ve.justifyContent,borderRadius:Ve.borderRadius,"-webkit-box-shadow":"none","box-shadow":"none"}),W.css("font-size",W.css("fontSize")),re.innerHeight(W.innerHeight()),re.css(e.extend(!0,{position:"absolute",zIndex:"1",borderColor:"transparent",outlineColor:"transparent",left:W.position().left,top:W.position().top,background:W.css("background")},xe.hintStyle)),Ke!==!1?re.css("background",Ke):Ke=W.css("background");try{W[0].style.setProperty("background","transparent","important")}catch{W.css("background","transparent")}qe.append(re)}},xe.timeoutUpdate||1)}),W.is(":visible")?W.trigger("updateHelperPosition.xdsoft"):be=setInterval(function(){W.is(":visible")&&(W.trigger("updateHelperPosition.xdsoft"),clearInterval(be))},100),e(window).on("resize",function(){qe.css({width:"auto"}),W.trigger("updateHelperPosition.xdsoft")}),W.on("close.xdsoft",function(){ye&&(R.hide(),re.val(""),xe.autoselect||W.val(Be),ye=!1)}).on("updateContent.xdsoft",function(){var Ve=Xe.call(xe,fe,W.val()),wt=10;if(Ve.length)W.trigger("open.xdsoft");else{W.trigger("close.xdsoft");return}e(Ve).each(function(){this.css(e.extend(!0,{paddingLeft:W.css("paddingLeft"),paddingRight:W.css("paddingRight")},xe.itemStyle))}),R.html(Ve),xe.visibleHeight?wt=xe.visibleHeight:wt=xe.visibleLimit*((Ve[0]?Ve[0].outerHeight(!0):0)||xe.defaultHeightItem)+
955,R.css("maxHeight",wt+"px")}).on("open.xdsoft",function(){ye||(R.show(),ye=!0)}).on("destroy.xdsoft",function(){W.removeClass("xdsoft"),qe.after(W),qe.remove(),clearTimeout(ne),clearTimeout(be),W.data("xdsoft_autocomplete",null),W.off(".xdsoft")})}M={destroy:function(){return this.trigger("destroy.xdsoft")},update:function(){return this.trigger("updateHelperPosition.xdsoft")},options:function(se){return this.data("autocomplete_options")&&e.isPlainObject(se)&&this.data("autocomplete_options",e.extend(!0,this.data("autocomplete_options"),se)),this},setSource:function(se,xe){if(this.data("autocomplete_options")&&(e.isPlainObject(se)||e.isFunction(se)||e.isArray(se))){var qe=this.data("autocomplete_options"),R=this.data("xdsoft_autocomplete"),re=qe.source;xe!==void 0&&!isNaN(xe)?e.isPlainObject(se)||e.isArray(se)?re[xe]=e.extend(!0,e.isArray(se)?[]:{},se):re[xe]=se:e.isFunction(se)?this.data("autocomplete_options").source=se:e.extend(!0,re,se),je.call(qe,this.val(),R,function(W){Ze.call(qe,R,W)})}return this},getSource:function(se){if(this.data("autocomplete_options")){var xe=this.data("autocomplete_options").source;return se!==void 0&&!isNaN(se)&&xe[se]?xe[se]:xe}return null}},e.fn.autocomplete=function(se,xe,qe){return e.type(se)==="string"&&M[se]?M[se].call(this,xe,qe):this.each(function(){var R=e.extend(!0,{},k,se);Bt(this,R)})}})(jQuery);function SubmitSelectOnChange(){}SubmitSelectOnChange.prototype={init:function(e){let r=e.parents("form");r.length>0&&e.on("change",function(){r.submit()})}};function General(){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this)),Pubsub.subscribe("res",$$1.proxy(this.resxs,this))}General.prototype={attach:function(e,r){let t=$$1(".js_submit-select-onchange");t.length>0&&t.each(function(){new SubmitSelectOnChange().init($$1(this))}),$$1("#contact-form-overlay").on("show.bs.modal",function(){navigator.userAgent.
95search("Chrome")>=0&&navigator.userAgent.search("Edge")===-1&&$$1(this).find(".modal-dialog").css("overflow-y","auto")}),$$1("#cutting-service-info-modal").on("show.bs.modal",function(){navigator.userAgent.search("Chrome")>=0&&navigator.userAgent.search("Edge")===-1&&$$1(this).find(".modal-dialog").css("overflow-y","auto")}),initiateMerchantSelectorListener(),$$1(".text-tooltip").popover({placement:"top",html:!0,trigger:"hover"}).off("shown.bs.popover.text").on("shown.bs.popover.text",function(){var s=$$1(this).next();$$1("body > *").on("click.popclose",function(){$$1("body > *").off("click.popclose"),s.popover("hide")}),s.css({top:parseInt($$1(this).next().css("top"),10)-5+"px"})}),$$1('[data-toggle="tooltip"]').tooltip({html:!0}),$$1('[data-toggle="tooltip-click"]').tooltip({container:"body",placement:"bottom",trigger:"click",html:!0}).on("click",function(s){s.preventDefault()}),$$1(document).on("click",function(s){$$1('[data-toggle="tooltip-click"]').each(function(){!$$1(this).is(s.target)&&$$1(this).has(s.target).length===0&&$$1(".tooltip").has(s.target).length===0&&((($$1(this).tooltip("hide").data("bs.tooltip")||{}).inState||{}).click=!1)})});var n=function(s){$$1(this).parents(".panel").find(".panel-collapse").each(function(){$$1(this).hasClass("in")?$$1(this).prev().addClass("panel-in"):$$1(this).prev().removeClass("panel-in")}),s.type==="show"&&$$1(this).prev().addClass("panel-in")};if(window.matchMedia("(max-width: 767px)").matches?($$1(".desktop-panel-in").addClass("collapsed").removeClass("desktop-panel-in"),$$1(".desktop-in").addClass("collapse").removeClass("desktop-in")):($$1(".desktop-panel-in").addClass("panel-in").removeClass("desktop-panel-in"),$$1(".desktop-in").addClass("in").removeClass("desktop-in")),$$1(".collapse").off("show.bs.collapse.classes hidden.bs.collapse.classes").on("show.bs.collapse.classes hidden.bs.collapse.classes",n),$$1(".collapse.in").trigger("show.bs.collapse.classes"),r===document){this.openHash(),window.onhashchange=this.openHash;var i=this;$$1("a[href^='#']").click(function(){$$1(this).attr("href")===window.location.hash&&i.openHash()})}$$1(".alert .close").off("click").on("click",function(s){s.preventDefault(),$$1(this).parent().hide()}),$$1(".collapse").on("show.bs.collapse",function(s){window.setTimeout(function(){let c=$$1("#"+s.currentTarget.id).find(".swiper-container");c.length&&c[0].swiper!==void 0&&c[0].swiper.update()},50)}),$$1("input[type='radio'][data-radio-toggle-class]").change(function(){$$1(document).trigger("radioToggle::change",[$$1(this)])});function a(s){return s.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}$$1(".main-search .form-control").autocomplete({maxHeight:1e3,minLength:1,serviceUrl:$$1(".main-search .form-control").attr("data-js-suggest"),paramName:"q",containerClass:"suggest",transformResult:function(s){var c=$$1.parseJSON(s);return{suggestions:$$1.map($$1.merge($$1.merge($$1.merge($$1.merge(c.suggestions.topLevelCategorySuggestions,c.suggestions.topSearchSuggestions),c.suggestions.brandSuggestions),c.suggestions.categorySuggestions),c.suggestions.productSuggestions),function(h){return{value:h.value,data:h.data,title:h.title,categoryName:h.categoryName,link:h.link,isBrand:h.brand,isCategory:h.category,isProduct:h.product}})}},formatResult:function(s,c){var h="("+a(c)+")",l=s.value.replace(new RegExp(h,"gi"),"<strong>$1</strong>");return!s.data||$$1.trim(s.data)===""||(s.data&&!s.categoryName?l+=" "+s.data:s.categoryName&&(l+='<span class="brand-name"> in '+s.categoryName+"</span>")),l},onSelect:function(s){!s.link||$$1.trim(s.link)===""?(!s.categoryName||$$1.trim(s.categoryName)===""?$$1('input[name="qc"]').remove():$$1('input[name="qc"]').val(s.categoryName),$$1("#search_id_form").submit()):window.location.href=s.link},headline:function(s){var c="";return(s.isBrand===!0||s.isCategory===!0||s.isProduct===!0)&&s.title&&$$1.trim(s.title)!==""?c='<div class="header-divider-title">'+s.title+"</div>":s.title&&$$1.trim(s.title)!==""&&!s.categoryName&&(c='<div class="divider"></div>'),c}})},openHash:function(){var e=/(_[0-9]{0,})$/;if(document.location.hash&&e.test(document.location.hash)){var r=document.location.hash.match(e),t=r[0];$$1(".panel-heading").not(".panel-in").find("a[href='#collapse"+t+"']").click()}}};function initiateMerchantSelectorListener(){$$1("#merchant-selector").on("show.bs.modal",merchantSelectorListenerFunction)}function merchantSelectorListenerFunction(){let e=$$1("#merchant-selector"),r=e[0];window.trapModalFocus(r);const t=new MutationObserver(()=>{if(window.getComputedStyle(r).display==="none"){let n=r.querySelector("#cutting");n&&(n.disabled=!1,n.checked=!0,n.click());let i=e.data();if(i){i["vue-bypass-form-submit-callback"]=null;let a=r.getAttribute("focusFallback");a?window.trapFocus(a):window.releaseModalFocus(),t.disconnect()}}});t.observe(r,{childList:!0,subtree:!0,attributes:!0})}var jquery_touchSwipe_min={exports:{}};const require$$0=getAugmentedNamespace(jquery);/*! 96 * @fileOverview TouchSwipe - jQuery Plugin 97 * @version 1.6.18 98 * 99 * @author Matt Bryson http://www.github.com/mattbryson 100 * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin 101 * @see http://labs.rampinteractive.co.uk/touchSwipe/ 102 * @see http://plugins.jquery.com/project/touchSwipe 103 * @license 104 * Copyright (c) 2010-2015 Matt Bryson 105 * Dual licensed under the MIT or GPL Version 2 licenses. 106 * 107 */(function(e){(function(r){r(e.exports?require$$0:jQuery)})(function(r){function t(je){return!je||je.allowPageScroll!==void 0||je.swipe===void 0&&je.swipeStatus===void 0||(je.allowPageScroll=b),je.click!==void 0&&je.tap===void 0&&(je.tap=je.click),je||(je={}),je=r.extend({},r.fn.swipe.defaults,je),this.each(function(){var gt=r(this),Xe=gt.data($e);Xe||(Xe=new n(this,je),gt.data($e,Xe))})}function n(je,Ce){function Xe(Se){if(!(sr()||r(Se.target).closest(Ce.excludedElements,Ne).length>0)){var Ue=Se.originalEvent?Se.originalEvent:Se;if(!Ue.pointerType||Ue.pointerType!="mouse"||Ce.fallbackToMouseEvents!=0){var Qe,pt=Ue.touches,Kt=pt?pt[0]:Ue;return Oe=we,pt?ze=pt.length:Ce.preventDefaultEvents!==!1&&Se.preventDefault(),B=0,G=null,Q=null,We=null,pe=0,Fe=0,ve=0,ge=1,_e=0,Ye=pr(),Er(),Zt(0,Kt),!pt||ze===Ce.fingers||Ce.fingers===te||Be()?(zt=Ge(),ze==2&&(Zt(1,pt[1]),Fe=ve=lr(at[0].start,at[1].start)),(Ce.swipeStatus||Ce.pinchStatus)&&(Qe=R(Ue,Oe))):Qe=!1,Qe===!1?(Oe=ee,R(Ue,Oe),Qe):(Ce.hold&&(er=setTimeout(r.proxy(function(){Ne.trigger("hold",[Ue.target]),Ce.hold&&(Qe=Ce.hold.call(Ne,Ue,Ue.target))},this),Ce.longTapThreshold)),Jt(!0),null)}}}function dt(Se){var Ue=Se.originalEvent?Se.originalEvent:Se;if(Oe!==oe&&Oe!==ee&&!dr()){var Qe,pt=Ue.touches,Kt=pt?pt[0]:Ue,Qt=Ft(Kt);if(Nt=Ge(),pt&&(ze=pt.length),Ce.hold&&clearTimeout(er),Oe=_,ze==2&&(Fe==0?(Zt(1,pt[1]),Fe=ve=lr(at[0].start,at[1].start)):(Ft(pt[1]),ve=lr(at[0].end,at[1].end),We=U(at[0].end,at[1].end)),ge=wr(Fe,ve),_e=Math.abs(Fe-ve)),ze===Ce.fingers||Ce.fingers===te||!pt||Be()){if(G=Me(Qt.start,Qt.end),Q=Me(Qt.last,Qt.end),ye(Se,Q),B=J(Qt.start,Qt.end),pe=Yt(),hr(G,B),Qe=R(Ue,Oe),!Ce.triggerOnTouchEnd||Ce.triggerOnTouchLeave){var Rr=!0;if(Ce.triggerOnTouchLeave){var an=it(this);Rr=bt(Qt.end,an)}!Ce.triggerOnTouchEnd&&Rr?Oe=qe(_):Ce.triggerOnTouchLeave&&!Rr&&(Oe=qe(oe)),Oe!=ee&&Oe!=oe||R(Ue,Oe)}}else Oe=ee,R(Ue,Oe);Qe===!1&&(Oe=ee,R(Ue,Oe))}}function yt(Se){var Ue=Se.originalEvent?Se.originalEvent:Se,Qe=Ue.touches;
vendor: 8,639 bytes, line 107
107if(Qe){if(Qe.length&&!dr())return Mr(Ue),!0;if(Qe.length&&dr())return!0}return dr()&&(ze=tr),Nt=Ge(),pe=Yt(),ne()||!W()?(Oe=ee,R(Ue,Oe)):Ce.triggerOnTouchEnd||Ce.triggerOnTouchEnd===!1&&Oe===_?(Ce.preventDefaultEvents!==!1&&Se.cancelable!==!1&&Se.preventDefault(),Oe=oe,R(Ue,Oe)):!Ce.triggerOnTouchEnd&&Vt()?(Oe=oe,re(Ue,Oe,k)):Oe===_&&(Oe=ee,R(Ue,Oe)),Jt(!1),null}function Bt(){ze=0,Nt=0,zt=0,Fe=0,ve=0,ge=1,Er(),Jt(!1)}function se(Se){var Ue=Se.originalEvent?Se.originalEvent:Se;Ce.triggerOnTouchLeave&&(Oe=qe(oe),R(Ue,Oe))}function xe(){Ne.off(st,Xe),Ne.off(z,Bt),Ne.off(It,dt),Ne.off(P,yt),X&&Ne.off(X,se),Jt(!1)}function qe(Se){var Ue=Se,Qe=fe(),pt=W(),Kt=ne();return!Qe||Kt?Ue=ee:!pt||Se!=_||Ce.triggerOnTouchEnd&&!Ce.triggerOnTouchLeave?!pt&&Se==oe&&Ce.triggerOnTouchLeave&&(Ue=ee):Ue=oe,Ue}function R(Se,Ue){var Qe,pt=Se.touches;return(Pt()||Et())&&(Qe=re(Se,Ue,A)),(ht()||Be())&&Qe!==!1&&(Qe=re(Se,Ue,L)),Tr()&&Qe!==!1?Qe=re(Se,Ue,T):ar()&&Qe!==!1?Qe=re(Se,Ue,S):Ht()&&Qe!==!1&&(Qe=re(Se,Ue,k)),Ue===ee&&Bt(),Ue===oe&&(pt&&pt.length||Bt()),Qe}function re(Se,Ue,Qe){var pt;if(Qe==A){if(Ne.trigger("swipeStatus",[Ue,G||null,B||0,pe||0,ze,at,Q]),Ce.swipeStatus&&(pt=Ce.swipeStatus.call(Ne,Se,Ue,G||null,B||0,pe||0,ze,at,Q),pt===!1))return!1;if(Ue==oe&&_t()){if(clearTimeout(cr),clearTimeout(er),Ne.trigger("swipe",[G,B,pe,ze,at,Q]),Ce.swipe&&(pt=Ce.swipe.call(Ne,Se,G,B,pe,ze,at,Q),pt===!1))return!1;switch(G){case a:Ne.trigger("swipeLeft",[G,B,pe,ze,at,Q]),Ce.swipeLeft&&(pt=Ce.swipeLeft.call(Ne,Se,G,B,pe,ze,at,Q));break;case s:Ne.trigger("swipeRight",[G,B,pe,ze,at,Q]),Ce.swipeRight&&(pt=Ce.swipeRight.call(Ne,Se,G,B,pe,ze,at,Q));break;case c:Ne.trigger("swipeUp",[G,B,pe,ze,at,Q]),Ce.swipeUp&&(pt=Ce.swipeUp.call(Ne,Se,G,B,pe,ze,at,Q));break;case h:Ne.trigger("swipeDown",[G,B,pe,ze,at,Q]),Ce.swipeDown&&(pt=Ce.swipeDown.call(Ne,Se,G,B,pe,ze,at,Q))}}}if(Qe==L){if(Ne.trigger("pinchStatus",[Ue,We||null,_e||0,pe||0,ze,ge,at]),Ce.pinchStatus&&(pt=Ce.pinchStatus.call(Ne,Se,Ue,We||null,_e||0,pe||0,ze,ge,at),pt===!1))return!1;if(Ue==oe&&et())switch(We){case l:Ne.trigger("pinchIn",[We||null,_e||0,pe||0,ze,ge,at]),Ce.pinchIn&&(pt=Ce.pinchIn.call(Ne,Se,We||null,_e||0,pe||0,ze,ge,at));break;case p:Ne.trigger("pinchOut",[We||null,_e||0,pe||0,ze,ge,at]),Ce.pinchOut&&(pt=Ce.pinchOut.call(Ne,Se,We||null,_e||0,pe||0,ze,ge,at))}}return Qe==k?Ue!==ee&&Ue!==oe||(clearTimeout(cr),clearTimeout(er),Ke()&&!wt()?(qt=Ge(),cr=setTimeout(r.proxy(function(){qt=null,Ne.trigger("tap",[Se.target]),Ce.tap&&(pt=Ce.tap.call(Ne,Se,Se.target))},this),Ce.doubleTapThreshold)):(qt=null,Ne.trigger("tap",[Se.target]),Ce.tap&&(pt=Ce.tap.call(Ne,Se,Se.target)))):Qe==T?Ue!==ee&&Ue!==oe||(clearTimeout(cr),clearTimeout(er),qt=null,Ne.trigger("doubletap",[Se.target]),Ce.doubleTap&&(pt=Ce.doubleTap.call(Ne,Se,Se.target))):Qe==S&&(Ue!==ee&&Ue!==oe||(clearTimeout(cr),qt=null,Ne.trigger("longtap",[Se.target]),Ce.longTap&&(pt=Ce.longTap.call(Ne,Se,Se.target)))),pt}function W(){var Se=!0;return Ce.threshold!==null&&(Se=B>=Ce.threshold),Se}function ne(){var Se=!1;return Ce.cancelThreshold!==null&&G!==null&&(Se=Sr(G)-B>=Ce.cancelThreshold),Se}function be(){return Ce.pinchThreshold!==null?_e>=Ce.pinchThreshold:!0}function fe(){return Ce.maxTimeThreshold?!(pe>=Ce.maxTimeThreshold):!0}function ye(Se,Ue){if(Ce.preventDefaultEvents!==!1)if(Ce.allowPageScroll===b)Se.preventDefault();else{var Qe=Ce.allowPageScroll===m;switch(Ue){case a:(Ce.swipeLeft&&Qe||!Qe&&Ce.allowPageScroll!=M)&&Se.preventDefault();break;case s:(Ce.swipeRight&&Qe||!Qe&&Ce.allowPageScroll!=M)&&Se.preventDefault();break;case c:(Ce.swipeUp&&Qe||!Qe&&Ce.allowPageScroll!=H)&&Se.preventDefault();break;case h:(Ce.swipeDown&&Qe||!Qe&&Ce.allowPageScroll!=H)&&Se.preventDefault();break}}}function et(){var Se=Ut(),Ue=rt(),Qe=be();return Se&&Ue&&Qe}function Be(){return!!(Ce.pinchStatus||Ce.pinchIn||Ce.pinchOut)}function ht(){return!(!et()||!Be())}function _t(){var Se=fe(),Ue=W(),Qe=Ut(),pt=rt(),Kt=ne(),Qt=!Kt&&pt&&Qe&&Ue&&Se;return Qt}function Et(){return!!(Ce.swipe||Ce.swipeStatus||Ce.swipeLeft||Ce.swipeRight||Ce.swipeUp||Ce.swipeDown)}function Pt(){return!(!_t()||!Et())}function Ut(){return ze===Ce.fingers||Ce.fingers===te||!Ee}function rt(){return at[0].end.x!==0}function Vt(){return!!Ce.tap}function Ke(){return!!Ce.doubleTap}function At(){return!!Ce.longTap}function Ve(){if(qt==null)return!1;var Se=Ge();return Ke()&&Se-qt<=Ce.doubleTapThreshold}function wt(){return Ve()}function Ct(){return(ze===1||!Ee)&&(isNaN(B)||B<Ce.threshold)}function nt(){return pe>Ce.longTapThreshold&&Ie>B}function Ht(){return!(!Ct()||!Vt())}function Tr(){return!(!Ve()||!Ke())}function ar(){return!(!nt()||!At())}function Mr(Se){jt=Ge(),tr=Se.touches.length+1}function Er(){jt=0,tr=0}function dr(){var Se=!1;if(jt){var Ue=Ge()-jt;Ue<=Ce.fingerReleaseThreshold&&(Se=!0)}return Se}function sr(){return Ne.data($e+"_intouch")===!0}function Jt(Se){Ne&&(Se===!0?(Ne.on(It,dt),Ne.on(P,yt),X&&Ne.on(X,se)):(Ne.off(It,dt,!1),Ne.off(P,yt,!1),X&&Ne.off(X,se,!1)),Ne.data($e+"_intouch",Se===!0))}function Zt(Se,Ue){var Qe={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return Qe.start.x=Qe.last.x=Qe.end.x=Ue.pageX||Ue.clientX,Qe.start.y=Qe.last.y=Qe.end.y=Ue.pageY||Ue.clientY,at[Se]=Qe,Qe}function Ft(Se){var Ue=Se.identifier!==void 0?Se.identifier:0,Qe=Lr(Ue);return Qe===null&&(Qe=Zt(Ue,Se)),Qe.last.x=Qe.end.x,Qe.last.y=Qe.end.y,Qe.end.x=Se.pageX||Se.clientX,Qe.end.y=Se.pageY||Se.clientY,Qe}function Lr(Se){return at[Se]||null}function hr(Se,Ue){Se!=b&&(Ue=Math.max(Ue,Sr(Se)),Ye[Se].distance=Ue)}function Sr(Se){return Ye[Se]?Ye[Se].distance:void 0}function pr(){var Se={};return Se[a]=or(a),Se[s]=or(s),Se[c]=or(c),Se[h]=or(h),Se}function or(Se){return{direction:Se,distance:0}}function Yt(){return Nt-zt}function lr(Se,Ue){var Qe=Math.abs(Se.x-Ue.x),pt=Math.abs(Se.y-Ue.y);return Math.round(Math.sqrt(Qe*Qe+pt*pt))}function wr(Se,Ue){var Qe=Ue/Se*1;return Qe.toFixed(2)}function U(){return 1>ge?p:l}function J(Se,Ue){return Math.round(Math.sqrt(Math.pow(Ue.x-Se.x,2)+Math.pow(Ue.y-Se.y,2)))}function ue(Se,Ue){var Qe=Se.x-Ue.x,pt=Ue.y-Se.y,Kt=Math.atan2(pt,Qe),Qt=Math.round(180*Kt/Math.PI);return 0>Qt&&(Qt=360-Math.abs(Qt)),Qt}function Me(Se,Ue){if(lt(Se,Ue))return b;var Qe=ue(Se,Ue);return 45>=Qe&&Qe>=0||360>=Qe&&Qe>=315?a:Qe>=135&&225>=Qe?s:Qe>45&&135>Qe?h:c}function Ge(){var Se=new Date;return Se.getTime()}function it(Se){Se=r(Se);var Ue=Se.offset(),Qe={left:Ue.left,right:Ue.left+Se.outerWidth(),top:Ue.top,bottom:Ue.top+Se.outerHeight()};return Qe}function bt(Se,Ue){return Se.x>Ue.left&&Se.x<Ue.right&&Se.y>Ue.top&&Se.y<Ue.bottom}function lt(Se,Ue){return Se.x==Ue.x&&Se.y==Ue.y}var Ce=r.extend({},Ce),ot=Ee||Pe||!Ce.fallbackToMouseEvents,st=ot?Pe?Le?"MSPointerDown":"pointerdown":"touchstart":"mousedown",It=ot?Pe?Le?"MSPointerMove":"pointermove":"touchmove":"mousemove",P=ot?Pe?Le?"MSPointerUp":"pointerup":"touchend":"mouseup",X=ot?Pe?"mouseleave":null:"mouseleave",z=Pe?Le?"MSPointerCancel":"pointercancel":"touchcancel",B=0,G=null,Q=null,pe=0,Fe=0,ve=0,ge=1,_e=0,We=0,Ye=null,Ne=r(je),Oe="start",ze=0,at={},zt=0,Nt=0,jt=0,tr=0,qt=0,cr=null,er=null;try{Ne.on(st,Xe),Ne.on(z,Bt)}catch{r.error("events not supported "+st+","+z+" on jQuery.swipe")}this.enable=function(){return this.disable(),Ne.on(st,Xe),Ne.on(z,Bt),Ne},this.disable=function(){return xe(),Ne},this.destroy=function(){xe(),Ne.data($e,null),Ne=null},this.option=function(Se,Ue){if(typeof Se=="object")Ce=r.extend(Ce,Se);else if(Ce[Se]!==void 0){if(Ue===void 0)return Ce[Se];Ce[Se]=Ue}else{if(!Se)return Ce;r.error("Option "+Se+" does not exist on jQuery.swipe.options")}return null}}var i="1.6.18",a="left",s="right",c="up",h="down",l="in",p="out",b="none",m="auto",A="swipe",L="pinch",k="tap",T="doubletap",S="longtap",M="horizontal",H="vertical",te="all",Ie=10,we="start",_="move",oe="end",ee="cancel",Ee="ontouchstart"in window,Le=window.navigator.msPointerEnabled&&!window.PointerEvent&&!Ee,Pe=(window.PointerEvent||window.navigator.msPointerEnabled)&&!Ee,$e="TouchSwipe",Ze={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};r.fn.swipe=function(je){var gt=r(this),Xe=gt.data($e);if(Xe&&typeof je=="string"){if(Xe[je])return Xe[je].apply(Xe,Array.prototype.slice.call(arguments,1
107));r.error("Method "+je+" does not exist on jQuery.swipe")}else if(Xe&&typeof je=="object")Xe.option.apply(Xe,arguments);else if(!(Xe||typeof je!="object"&&je))return t.apply(this,arguments);return gt},r.fn.swipe.version=i,r.fn.swipe.defaults=Ze,r.fn.swipe.phases={PHASE_START:we,PHASE_MOVE:_,PHASE_END:oe,PHASE_CANCEL:ee},r.fn.swipe.directions={LEFT:a,RIGHT:s,UP:c,DOWN:h,IN:l,OUT:p},r.fn.swipe.pageScroll={NONE:b,HORIZONTAL:M,VERTICAL:H,AUTO:m},r.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:te}})})(jquery_touchSwipe_min);function Navi(){Pubsub.subscribe("res",$$1.proxy(this.checkBreakpointChanges,this))}function modifyUrl(e){const r=`tab=${e.currentTarget.getAttribute("aria-controls")}`;history.pushState(null,null,"?"+r)}function listenToTabClicks(){document.querySelectorAll('#merchant-info-area a[role="tab"]').forEach(e=>e.addEventListener("click",modifyUrl))}Navi.prototype={navTriggerDelay:250,mobileNavEnabled:!1,mobileNavOpen:!1,mobileNavLvl:0,$nav:$$1(".nav-main"),navImageUrls:[],$lastHoveredMainNav:$$1(),checkBreakpointChanges:function(e,r){if(r){const t={"res.lg":!1,"res.md":!1,"res.sm":!0,"res.xs":!0};this.mobileNavEnabled=t[e]}},init:function(){let e=this;this.fso=new Fso,this.fso.init(),listenToTabClicks(),[...document.getElementsByClassName("js-header-navigation-toggle")].forEach(r=>{r.addEventListener("click",()=>e.toggleMobileNav())}),$$1(document.body).swipe({swipeStatus:function(r,t,n,i){t==="move"&&n==="left"&&i>60&&$$1(document.body).trigger("offcanvasClose")},preventDefaultEvents:!1,fallbackToMouseEvents:!1}),$$1(document.body).on("offcanvasClose",function(){e.mobileNavOpen&&e.toggleMobileNav()}),this.handleHeaderOnScroll()},toggleMobileNav:function(){let e=this;if(this.mobileNavOpen=!this.mobileNavOpen,this.mobileNavOpen){for(let r of document.body.children)r.id!=="mobileNavigationWrapper"&&r.setAttribute("inert","");document.getElementById("mobileNavigationWrapper")?.removeAttribute("inert"),$$1("body").addClass("offcanvas nav-mobile-open"),setTimeout(function(){$$1("#page").on("click",function(r){r.preventDefault(),e.toggleMobileNav()})},10),$$1("html, body").animate({scrollTop:0},200)}else{for(let r of document.body.children)r.removeAttribute("inert");document.getElementById("mobileNavigationWrapper")?.setAttribute("inert",""),$$1("body").removeClass("offcanvas"),setTimeout(function(){$$1("body").removeClass("nav-mobile-open"),$$1("body > .sidebar-wrapper").removeClass("active")},201),$$1("#page").off("click")}},handleHeaderOnScroll:function(){let e=0,r=!1,t=null,n=null;function i(a){const s=document.querySelectorAll(".usp, header.container-fluid");a<=0?(t&&clearTimeout(t),s.forEach(c=>{c.classList.remove("hide-header-elements--hidden"),c.classList.contains("container-fluid")&&c.classList.remove("hide-header-elements--mobile-hidden"),n=setTimeout(()=>{c.classList.remove("hide-header-elements")},125)})):s.forEach(c=>{n&&clearTimeout(n),c.classList.contains("container-fluid")&&c.classList.add("hide-header-elements--mobile-hidden"),c.classList.add("hide-header-elements"),c.classList.contains("hide-header-elements--hidden")||(t=setTimeout(()=>{c.classList.add("hide-header-elements--hidden")},125))})}document.addEventListener("scroll",function(){e=window.scrollY,r||(window.requestAnimationFrame(function(){i(e),r=!1}),r=!0)})}};function Html5Validation(){}Html5Validation.prototype={showValidationErrorMessage:function(e,r){var t=$$1(e).closest(".validation-group").find(".form-error");r&&(t.show(),t.html(r))},validateField:function(e){var r=this,t=e.validity,n=$$1(e).is(":visible"),i=$$1(e).data("validation-matching-field"),a=!1;if(i!==void 0){var s=$$1("#"+i).val();a=s!==$$1(e).val()}if((!t.valid||a)&&n)if(a){var c=$$1("#"+i);r.showValidationErrorMessage(e,$$1(e).data("error-nomatch")),r.showValidationErrorMessage(c[0],c.data("error-nomatch"))}else t.valueMissing?r.showValidationErrorMessage(e,$$1(e).data("error-valuemissing")):t.typeMismatch?r.showValidationErrorMessage(e,$$1(e).data("error-typemismatch")):t.patternMismatch?r.showValidationErrorMessage(e,$$1(e).data("error-patternmismatch")):t.tooLong?r.showValidationErrorMessage(e,$$1(e).data("error-toolong")):t.tooShort?r.showValidationErrorMessage(e,$$1(e).data("error-tooshort")):t.rangeUnderflow?r.showValidationErrorMessage(e,$$1(e).data("error-rangeunderflow")):t.rangeOverflow?r.showValidationErrorMessage(e,$$1(e).data("error-rangeoverflow")):t.stepMismatch?r.showValidationErrorMessage(e,$$1(e).data("error-stepmismatch")):t.badInput?r.showValidationErrorMessage(e,$$1(e).data("error-badinput")):t.customError&&r.showValidationErrorMessage(e,$$1(e).data("error-customerror"));else return $$1(e).closest(".validation-group").removeClass("has-error").find(".form-error").hide(),i!==void 0&&$$1("#"+i).closest(".validation-group").find(".form-error").hide(),!0;return $$1(e).closest(".validation-group").addClass("has-error"),!1},addValidationHandler:function(){var e=this;$$1("form.validate-form input, form.validate-form select, form.validate-form textarea").each(function(){var r=this;$$1(this).blur(function(){e.validateField(r)}
107)})},validateOnSubmit:function(){var e=this;$$1("form.validate-form").submit(function(r){var t=!0;$$1(this).find("input, select").each(function(){var n=e.validateField(this);t=t&&n}),t||r.preventDefault()})}};function Content(){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this))}Content.prototype={attach:function(){$$1(".tip").popover();const e=new Html5Validation;e.addValidationHandler(),e.validateOnSubmit()}};function ModalFns(){}ModalFns.prototype={scrollToTop:function(){this.modal.css("position")==="absolute"?$$1("html, body").animate({scrollTop:this.modal.offset().top},300):this.modal.animate({scrollTop:0},300)}};function Captcha(){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this))}Captcha.prototype={attach:function(){$$1("#captcha-reload-button-anchor").off("click").on("click",function(e){e.preventDefault(),$$1("#captcha-image-anchor").empty().html('<img src="'+config.captchaImageUrl+"?"+Math.random()+'"/>')})}};Captcha.prototype=$$1.extend(Captcha.prototype,ModalFns.prototype);function Trackinghelper(){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this))}Trackinghelper.prototype={getTrackingCode:function(){return typeof et_tracking_id<"u"?et_tracking_id:null},attach:function(e,r){var t=this;if($$1(".eClick, .ewProductlist, .ePageTarget, .eLandingPage",r).off("mousedown"),$$1(".eChange",r).off("change"),$$1(".eClick",r).on("mousedown",function(){var n=$$1(this),i=n.data("category"),a=n.data("action"),s=n.data("value");t.event(i!==void 0?i:"",a!==void 0?a:"",s!==void 0?s:"")}),$$1(".ewProductlist",r).on("mousedown",function(){var n=$$1(this),i=n.data("page");t.wrapperProductList(i)}),$$1(".ePageTarget",r).on("mousedown",function(){var n=$$1(this),i=n.data("pagename"),a=n.data("target");t.wrapPageTarget(i,a)}),$$1(".eLandingPage",r).on("mousedown",function(){var n=$$1(this),i=n.data("lpage");t.wrapLandingPage(i)}),$$1(".eChange",r).change(function(){var n=$$1(this),i=n.data("category"),a=n.data("action"),s=n.data("value");t.event(i!==void 0?i:"",a!==void 0?a:"",s!==void 0?s:"")}),$$1(".productlist-trackingdata",r).each(function(){let n=JSON.parse($$1(this).text());!n||!window.dataLayer||(t.fireTrackingEventsForVisibleProductBoxes(n),$$1(window).scroll(function(){t.fireTrackingEventsForVisibleProductBoxes(n)}))}),$$1("#merchant-list").length!==0){let n=$$1("#merchant-list").data("searchterm");if(window.dataLayer&&n){let i=$$1('#merchant-list [role="tabpanel"]').first();t.fireNonEcomEvent("Händlersuche","Top Anzeige: "+i.data("name"),n,i.data("id"))}$$1('#merchant-list [role="tabpanel"]').on("shown.bs.collapse",function(){let i=$$1(this);t.fireNonEcomEvent("Händlersuche","Detailanzeige: "+i.data("name"),"Details",i.data("id"))}),$$1(".tel-link").off("click").on("click",function(){let i=$$1(this).closest('[role="tabpanel"]');t.fireNonEcomEvent("Händlersuche","Klick auf Telefonnummer: "+i.data("name"),"Kontakt",i.data("id"))}),$$1(".email-link").off("click").on("click",function(){let i=$$1(this).closest('[role="tabpanel"]');t.fireNonEcomEvent("Händlersuche","Klick auf E-Mail Adresse: "+i.data("name"),"Kontakt",i.data("id"))}),$$1(".route-link").off("click").on("click",function(){let i=$$1(this).closest('[role="tabpanel"]');t.fireNonEcomEvent("Händlersuche","Klick auf Anfahrt: "+i.data("name"),"Anfahrt",i.data("id"))})}if($$1("#merchant-info-area").length!==0){let n=$$1("#merchant-map"),i=n.data("name"),a=n.data("id");$$1(".tel-link").off("click").on("click",function(){t.fireNonEcomEvent("Händlerinfoseite","Klick auf Telefonnummer: "+i,"Kontakt",a)}),$$1(".email-link").off("click").on("click",function(){t.fireNonEcomEvent("Händlerinfoseite","Klick auf E-Mail Adresse: "+i,"Kontakt",a)}),$$1(".route-link").off("click").on("click",function(){t.fireNonEcomEvent("Händlerinfoseite","Klick auf Anfahrt: "+i,"Anfahrt",a)})}if($$1(".merchant-details").length!==0){let n=$$1(".merchant-details"),i=n.data("name"),a=n.data("id");$$1(".tel-link").off("click").on("click",function(){t.fireNonEcomEvent("Händlervisitenkarte","Klick auf Telefonnummer: "+i,"Kontakt",a)}),$$1(".email-link").off("click").on("click",function(){t.fireNonEcomEvent("Händlervisitenkarte","Klick auf E-Mail Adresse: "+i,"Kontakt",a)}
107),$$1(".route-link").off("click").on("click",function(){t.fireNonEcomEvent("Händlervisitenkarte","Klick auf Anfahrt: "+i,"Anfahrt",a)})}if($$1(".page-detail-view").length!==0&&($$1(".merchant-info-link").off("click").on("click",function(){let n=$$1(this).data("id"),i=$$1(this).text();t.fireNonEcomEvent("Artikeldetailseite","Klick auf Händlerinfoseite: "+i,"Kontakt",n)}),$$1(".prd-merchant-info .tel-link").off("click").on("click",function(){let n=$$1(this).closest(".prd-merchant-info").find(".merchant-info-link"),i=n.data("id"),a=n.text();t.fireNonEcomEvent("Artikeldetailseite","Klick auf Telefonnummer: "+a,"Kontakt",i)}),$$1(".prd-cutting-request").off("click").on("click",function(){t.fireNonEcomEvent("Artikeldetailseite","Klick auf Zuschnittanfrage: "+$$1(this).data("name"),"Kontakt",$$1(this).data("merchant"))}),$$1(".prd-planning-request").off("click").on("click",function(){t.fireNonEcomEvent("Artikeldetailseite","Klick auf Planungsanfrage: "+$$1(this).data("name"),"Kontakt",$$1(this).data("merchant"))})),$$1(".merchant-shop-tel-link").length!==0){let n=$$1(".merchant-shop-tel-link"),i=n.data("name"),a=n.data("id");n.off("click").on("click",function(){t.fireNonEcomEvent("Header","Klick auf Telefonnummer: "+i,"Kontakt",a)})}if($$1(".basket-summary").length!==0){let n=$$1(".basket-summary");this.trackBasket(n.data("merchants"),n.data("products"),n.data("total"))}},registerContactForm:function(){var e=this;if($$1("#contact-form-overlay").length!==0){let r=$$1("#contact-form-overlay form"),t=r.data("name"),n=r.data("id");$$1(".contact-form-address .tel-link").off("click").on("click",function(){e.fireNonEcomEvent("Kontaktformular","Klick auf Telefonnummer: "+t,"Kontakt",n)}),$$1(".contact-form-address .email-link").off("click").on("click",function(){e.fireNonEcomEvent("Kontaktformular","Klick auf E-Mail Adresse: "+t,"Kontakt",n)})}},onLocationChange:function(e,r,t){this.fireNonEcomEvent("Standort","Standort geändert",e+" > "+r,t)},trackBasket:function(e,r,t){this.fireNonEcomEvent("Warenkorb","Händleranzahl","Händler: "+e+" | Produkte: "+r,"null",t)},nm_et_eC_Wrapper_catch:function(e,r,t,n,i,a,s,c,h,l,p,b,m,A,L,k){try{et_eC_Wrapper(e,r,t,n,i,a,s,c,h,l,p,b,m,A,L,k)}catch{}},clickEvent:function(e,r){if(r!=null&&r!=="")try{ET_Event.eventStart(escape(e),escape(r),"Klick")}catch{}},event:function(e,r,t){if(t!=null&&t!=="")try{e=e!==""?escape(e):et_pagename,ET_Event.eventStart(e,escape(t),escape(r))}catch{}},wrapPageTarget:function(e,r){this.getTrackingCode()!=null&&typeof et_eC_Wrapper=="function"&&this.nm_et_eC_Wrapper_catch(this.getTrackingCode(),e,"","","",r,"","","","","","","","","")},wrapLandingPage:function(e){this.getTrackingCode()!=null&&typeof et_eC_Wrapper=="function"&&this.nm_et_eC_Wrapper_catch(this.getTrackingCode(),et_pagename_wrapper_noescape,"","","","","","","","","",e,"","","")},wrapPage:function(e){this.getTrackingCode()!=null&&typeof et_eC_Wrapper=="function"&&this.nm_et_eC_Wrapper_catch(this.getTrackingCode(),e,"","","","","","","","","","","","","")},wrapperProductList:function(e){if(this.getTrackingCode()!=null&&typeof et_eC_Wrapper=="function"){var r=et_pagename_wrapper_noescape.replace(/Seite \d von/g,"Seite "+e+" von").replace(/ /g,"+");this.nm_et_eC_Wrapper_catch(this.getTrackingCode(),r,et_areas_wrapper_noescape,et_ilevel_noescape,et_url_wrapper_noescape,et_target_wrapper_noescape,et_tval_noescape,et_tonr_noescape,et_tsale_noescape,et_cust_noescape,et_basket_noescape,et_lpage_noescape,et_tag_noescape)}},wrapper:function(e){if(this.getTrackingCode()!=null&&typeof et_eC_Wrapper=="function"){e=e||"";var r=e+"/"+et_pagename_wrapper_noescape;this.nm_et_eC_Wrapper_catch(this.getTrackingCode(),r,et_areas_wrapper_noescape,et_ilevel_noescape,et_url_wrapper_noescape,et_target_wrapper_noescape,et_tval_noescape,et_tonr_noescape,et_tsale_noescape,et_cust_noescape,et_basket_noescape,et_lpage_noescape,et_tag_noescape)}},fireTrackingEventsForVisibleProductBoxes:function(e){let r=jQuery.extend(!0,{},e);try{let t=r.ecommerce.impressions,n=[],i=[],a=$$1(window).scrollTop(),s=a+$$1(window).height();for(let l=0;l<t.length;l++){let p=$$1('.prd-grid-item[data-product-id="'+t[l].id+'"]');if(p.hasClass("tracked"))continue;let b=p.offset().top,m=b+p.height();b<=s&&m>=a&&(p.addClass("tracked"),n.push(t[l]),i.push(t[l].haendlerId+t[l].itemId))}if(n.length===0||(r.ecommerce.impressions=n,r.criteo.prodList=i,window.dataLayer.push(r),r.haendlerId!=="null"||!r.ecommerce||!r.ecommerce||!r.ecommerce.impressions||!r.ecommerce.impressions.length))return;let c=[],h={};for(let l=0;l<n.length;l++){let p=n[l].haendlerId;$$1.isEmptyObject(h[p])&&(c.push(p),h[p]={event:"ecomHaendler",haendlerId:p,ecom:{ecommerce:{currencyCode:r.ecommerce.currencyCode,impressions:[]}}}
107),h[p].ecom.ecommerce.impressions.push(n[l])}for(let l=0;l<c.length;l++)window.dataLayer.push(h[c[l]])}catch{}},fireNonEcomEvent:function(e,r,t,n){let i=arguments.length>4?arguments[4]:0;dataLayer.push({event:"nonEcom",eventCategory:e,eventAction:r,eventLabel:t,eventValue:i,eventNonInteraction:"False",haendlerId:n})},trustagents:{push:function(e){window.dataLayer?window.dataLayer.push(e):window.console.log("TrustedAgents lib not loaded yet?")}}};function Service(){Pubsub.subscribe("core.attach",$$1.proxy(this.attach,this)),this.loading=new Loading}Service.prototype={attach:function(e,r){if(r===document){var t=this;t.openServiceHash(),$$1(window).on("hashchange",function(){t.openServiceHash()})}},openServiceHash:function(){if(document.location.hash){var e=document.location.hash;if($$1(e).length>0){var r=$$1(e).next(".panel-default"),t=$$1(e).parent().find(".panel-group .panel-heading:first").not(".panel-in");r.length>0?r.find(".panel-heading").not(".panel-in").click():t.length>0&&t.click()}}},scrollToElement:function(e,r){$$1("html, body").animate({scrollTop:e.offset().top},r)}};function Localization(){}Localization.prototype={newCoordinates:null,autolocate:function(e,r,t){let n=this;navigator.geolocation?navigator.geolocation.getCurrentPosition(function(i){let a=i.coords.latitude+","+i.coords.longitude;n.submitPositionData(a,e,r,t)},function(i){t(n.getErrorMsg(i))}):t("Geolocation is not supported by this browser.")},getErrorMsg:function(e){switch(e.code){case 1:return"Wir konnten Ihren Standort leider nicht automatisch ermitteln. Bitte geben Sie Ihren Standort in das Feld ein.";case 2:return"Location information is unavailable.";case 3:return"The request to get user location timed out.";default:return"An unknown error occurred."}},submitPositionData:function(e,r,t,n){$$1.ajax({type:"POST",url:"/ajax/location/post/",data:{address:e,_csrf:r}}).done(t).fail(function(i){i.status===403&&window.location.reload(!1),n("Error occurred while searching for location")})}};function LocalizationForm(){}LocalizationForm.prototype={$localizationOverlay:$$1(".modal.location-overlay"),$locationHeaderElem:$$1(".nav-meta .location"),$errorTextElem:$$1(),reloadOnModalClose:!1,newCoordinates:null,localization:void 0,trackinghelper:void 0,init:function(e,r){this.$localizationOverlay.length>0&&(this.$errorTextElem=$$1(".error-message",this.$localizationOverlay),this.trackinghelper=e,this.localization=r,this.addEventListeners())},addEventListeners:function(){let e=this;this.$localizationOverlay.on("show.bs.modal",e.modalOpening.bind(this)),this.$localizationOverlay.on("hide.bs.modal",e.modalClosing.bind(this)),this.$localizationOverlay.on("hidden.bs.modal",e.modalClosed.bind(this)),this.$localizationOverlay.on("shown.bs.modal",function(){$$1("#change-location").focus()}),$$1(".js_autolocate",this.$localizationOverlay).on("click",function(r){r.preventDefault(),e.deleteErrors(),e.localization.autolocate($$1('input[name="_csrf"]').val(),e.positionDataResponseHandler.bind(e),e.showError.bind(e))}),$$1("form",this.$localizationOverlay).on("submit",function(r){r.preventDefault();let t=$$1("#change-location").val(),n=$$1(this).children('input[name="_csrf"]').val();e.localization.submitPositionData(t,n,e.positionDataResponseHandler.bind(e),e.showError.bind(e))})},showError:function(e){this.$errorTextElem.text(e),this.$localizationOverlay.addClass("error")},deleteErrors:function(){this.$localizationOverlay.removeClass("error"),this.$errorTextElem.text("")},positionDataResponseHandler:function(e){e.success==="true"?(this.reloadOnModalClose=!0,this.newCoordinates=e.newCoordinates,this.$localizationOverlay.modal("hide"),this.trackinghelper.onLocationChange(e.oldLocation,e.newLocation,e.haendlerId)):this.showError(e.error)},modalOpening:function(){this.$locationHeaderElem.addClass("changing"),document.getElementById("location-overlay")?.removeAttribute("inert"),this.deleteErrors()},modalClosing:function(){this.$locationHeaderElem.removeClass("changing"),document.getElementById("location-overlay")?.setAttribute("inert","")},modalClosed:function(){if(this.reloadOnModalClose){var e=location.search.replace(/filter\.distance=.*?(&|$)/g,"").replace(/filter\.mzr=.*?(&|$)/g,"");this.newCoordinates&&/filter\.delivery=/.test(e)&&(e=e.replace(/filter\.delivery=.*?(&|$)/,"filter.delivery="+this.newCoordinates+"$1"),e+=(/&$/.test(e)?"":"&")+"locationChanged=true"),location.search=e}}};class ColorService{getSavedValues(){return{primary:localStorage.getItem("merchantPrimaryColor"),secondary:localStorage.getItem("merchantSecondaryColor")}}setColor(r,t){const n=this.hexToHSL(t),i=r?"primary":"secondary";if(n&&(document.documentElement.style.setProperty(`--color-${i}-base`,n.h.toString()),document.documentElement.style.setProperty(`--color-${i}-saturation`,n.s+"%"),document.documentElement.style.setProperty(`--color-${i}-lightness`,n.l+"%")),!r){const a=document.querySelector("header");a&&a.querySelector(".header__notification")&&!a.classList.contains("merchant-secondary-color__header")&&a.classList.add("merchant-secondary-color__header")}}removeSecondaryClasses(){document.querySelectorAll("[class*='merchant-secondary-color']").forEach(r=>{r.classList.remove("merchant-secondary-color","merchant-secondary-color__background-color","merchant-secondary-color__btn","merchant-secondary-color__request-btn","merchant-secondary-color__color","merchant-secondary-color__border","merchant-secondary-color__box-shadow","merchant-secondary-color__header")})}reevaluate(){const r=this.getSavedValues();r?(r.primary!==""&&this.setColor(!0,r.primary),r.secondary!==""?this.setColor(!1,r.secondary):this.removeSecondaryClasses()):this.removeSecondaryClasses()}hexToRGB(r){let t=0,n=0,i=0;return r.length===4?(t="0x"+r[1]+r[1],n="0x"+r[2]+r[2],i="0x"+r[3]+r[3]):r.length===7&&(t="0x"+r[1]+r[2],n="0x"+r[3]+r[4],i="0x"+r[5]+r[6]),{r:t,g:n,b:i}}
107hexToHSL(r){let{r:t,g:n,b:i}=this.hexToRGB(r);t/=255,n/=255,i/=255;let a=Math.min(t,n,i),s=Math.max(t,n,i),c=s-a,h,l,p;return c===0?h=0:s===t?h=(n-i)/c%6:s===n?h=(i-t)/c+2:h=(t-n)/c+4,h=Math.round(h*60),h<0&&(h+=360),p=(s+a)/2,l=c===0?0:c/(1-Math.abs(2*p-1)),l=+(l*100).toFixed(1),p=+(p*100).toFixed(1),{h,s:l,l:p}}}var __awaiter$f=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$f=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function isRecaptchaTokenValid(e){return __awaiter$f(this,void 0,void 0,function(){var r,t;return __generator$f(this,function(n){switch(n.label){case 0:return[4,grecaptcha.enterprise.execute()];case 1:return r=n.sent(),[4,fetch("/recaptcha/validateToken/",{method:"POST",cache:"no-cache",body:r,credentials:"include",headers:{"X-CSRF-TOKEN":e}})];case 2:return t=n.sent(),[2,t.ok]}})})}function ContactForm(){}function getUrlParams(e,r,t){const n=new URLSearchParams;let i="";return e&&e instanceof HTMLElement&&e.dataset&&(e.dataset.merchant&&e.dataset.merchant!==""&&(i=e.dataset.merchant),(t!==null||i!=="")&&r!==null&&(n.set("externalId",i!==""?i:t),n.set("itemId",r)),e.dataset.cuttingRequest&&e.dataset.cuttingRequest!==""&&n.set("cuttingRequest",e.dataset.cuttingRequest),e.dataset.planningRequest&&e.dataset.planningRequest!==""&&n.set("planningRequest",e.dataset.planningRequest),e.dataset.assemblyRequest&&e.dataset.assemblyRequest!==""&&n.set("assemblyRequest",e.dataset.assemblyRequest),typeof e.dataset.allowQuoteAndDeliverySelection<"u"?n.set("quoteAndDeliverySelection",$$1(e).data("allow-quote-and-delivery-selection")):n.set("quoteAndDeliverySelection","true"),e.dataset.profiRegistration&&n.set("isProfiRegistration",e.dataset.profiRegistration),window.location.href.includes("activeTab=profi")&&window.location.href.includes("login")&&n.set("isProfiRegistration",!0),e.hasAttribute("suppress-quote-and-delivery-selection")?n.set("suppressQuoteAndDeliverySelection","true"):n.set("suppressQuoteAndDeliverySelection","false"),e.dataset.subject&&e.dataset.subject!==""&&n.set("subject",e.dataset.subject)),n}ContactForm.prototype={$contactFormOverlay:$$1("#contact-form-overlay"),showPopupInProgress:!1,reloadOnModalClose:!1,trackinghelper:void 0,localization:void 0,init:function(e,r){this.$contactFormOverlay.length>0&&(this.$errorTextElem=$$1(".error-message",this.$contactFormOverlay),this.$errorAlert=$$1(".alert",this.$contactFormOverlay),this.$contactFormContent=$$1(".contact-form-content",this.$contactFormOverlay),this.trackinghelper=e,this.localization=r,this.addEventListeners())},addSubmitEventListener:function(){let e=this;document.querySelector("#contactFormSubmit").addEventListener("click",async function(r){r.preventDefault(),r.stopPropagation(),setTimeout(()=>{const t=document.querySelector("meta[name='csrf']");if(t){const n=t.getAttribute("content");
107if(n){const i=r.target.innerText;r.target.innerText="senden...",r.target.disabled=!0,window.grecaptcha.enterprise.ready(async()=>await e.handleRecaptchaResponse(n).finally(()=>{r.target.innerText=i,r.target.disabled=!1}))}}},10)})},handleRecaptchaResponse:async function(e){return new Promise(async(r,t)=>{await isRecaptchaTokenValid(e)?(this.submitData(this.$contactFormOverlay),r()):(this.$errorAlert.show(),this.$contactFormContent.html(""),this.showPopupInProgress=!1,t())})},addEventListeners:function(){let e=this;this.$contactFormOverlay.on("focusout","#zip",function(r){r.stopPropagation(),e.checkDeliverability.bind(e)()}),this.$contactFormOverlay.on("change","#requestQuoteAndDelivery",r=>{r.stopPropagation(),e.checkDeliverability.bind(e)();const t=r.currentTarget;t&&(t.options[t.selectedIndex].value==="true"?(document.querySelectorAll("label[for='street'] abbr,label[for='houseNumber'] abbr,label[for='city'] abbr,label[for='zip'] abbr").forEach(n=>{n.classList.remove("hidden")}),document.querySelectorAll("#street,#houseNumber,#city,#zip").forEach(n=>{n.required=!0})):(document.querySelectorAll("label[for='street'] abbr,label[for='houseNumber'] abbr,label[for='city'] abbr,label[for='zip'] abbr").forEach(n=>{n.classList.add("hidden")}),document.querySelectorAll("#street,#houseNumber,#city,#zip").forEach(n=>{n.required=!1})))}),this.$contactFormOverlay.on("click","#requestQuoteAndDelivery2",function(r){r.stopPropagation(),$$1('label[for="street"] abbr,label[for="houseNumber"] abbr,label[for="city"] abbr,label[for="zip"] abbr').addClass("hidden"),$$1("#street,#houseNumber,#city,#zip").prop("required",!1)}),this.$contactFormOverlay.on("show.bs.modal",async function(r){if(r.stopPropagation(),e.showPopupInProgress)return;e.showPopupInProgress=!0;const t=e.$contactFormOverlay.data("item-id"),n=e.$contactFormOverlay.data("merchant"),i=r.relatedTarget??r.target,a=getUrlParams(i,t,n),s=new ColorService,c=getMerchantUrlPrefix()+"/contactform/?"+a.toString(),h=await fetch(c);if(h.status===200&&h.ok){const l=await h.text();e.$errorAlert.hide(),e.$contactFormContent.html(l),s.reevaluate(),e.showPopupInProgress=!1,typeof e.trackinghelper=="object"&&e.trackinghelper.registerContactForm(),e.addSubmitEventListener()}else e.$errorAlert.show(),e.$contactFormContent.html(""),e.showPopupInProgress=!1}),this.$contactFormOverlay.on("hidden.bs.modal",function(){e.reloadOnModalClose&&window.location.reload();let r=document.getElementById("contact-form-overlay")?.getAttribute("focusFallback");r?window.trapFocus(r):window.releaseModalFocus()})},checkDeliverability:function(){let e=this.$contactFormOverlay.data("item-id"),r=this.$contactFormOverlay.data("merchant"),t=$$1("#zip"),n=t.val();if($$1("#requestQuoteAndDelivery1").prop("checked")&&n){let i=$$1('input[name="_csrf"]').val(),a=this;$$1.ajax({type:"POST",url:"/ajax/merchants/deliverability/",data:{zip:n,item:e,merchant:r,_csrf:i}}).done(function(s){s.success&&!s.deliveryPossible?(t.addClass("has-warning"),$$1("#deliveryWarning").removeClass("hidden"),a.localization.submitPositionData(n,i,function(){a.reloadOnModalClose=!0},function(){})):s.success&&s.deliveryPossible&&a.hideDeliveryWarning()})}else this.hideDeliveryWarning()},hideDeliveryWarning:function(){$$1("#zip").removeClass("has-warning"),$$1("#deliveryWarning").addClass("hidden")},submitData:function(e){let r=this,t=$$1("form",e),n=e.data("merchant");$$1("input[name=originUrlEncoded]",t).val(btoa(window.location.href));const i=new ColorService;$$1.ajax({type:"POST",url:t.attr("action"),data:t.serialize()}).done(function(a){r.$errorAlert.hide(),r.$contactFormContent.html(a),r.addSubmitEventListener(),i.reevaluate(),r.pushContactFormEvent(n,a)}).error(function(){r.$errorAlert.show(),r.$contactFormContent.html(""),r.pushContactFormEvent(n,"")})},pushContactFormEvent:function(e,r){if(!window.dataLayer)return;let t,n,i;if(r){let a="";$$1(".gtm-error-message",r).each(function(){let s=$$1(this).data("category"),c=$$1("span",this).text();c&&(a&&(a+=", "),a+=s+": "+c)}),a?(t="Fehler bei Anfrage",n=a):(t="Anfrage erfolgreich versendet",n=$$1("#contact-response",r).data("subject")),i=$$1("#contact-response",r).data("email")}else t="Fehler bei Anfrage",n="Allgemeiner Fehler";i&&window.dataLayer.push({event:"setEmail",email:i}),window.dataLayer.push({event:"nonEcom",eventCategory:"Kontaktformular",eventAction:t,eventLabel:n,eventValue:0,eventNonInteraction:"False",haendlerId:e})}};function StoreLocator(){Pubsub.subscribe("res",$$1.proxy(this.bpChangeAction,this)),this.$mapElement.length>0&&this.init()}StoreLocator.prototype={$mapElement:$$1("#merchant-map"),map:null,clientPosition:{lat:parseFloat($$1("#merchant-map").data("lat")),lng:parseFloat($$1("#merchant-map").data("lng"))}
107,countryBounds:$$1("#merchant-map").data("country"),located:!!$$1("#merchant-map").data("located"),hadSearch:!!$$1("#merchant-map").data("had-search"),init:function(){let e=this;this.$mapElement.hasClass("script-loaded")?this.initMap():this.$mapElement.on("mapScriptLoaded",function(){e.initMap()})},initMap:function(){let e=this,r=this.getLocationData(),t=window.google,n;if(typeof t<"u"){if(this.map=new t.maps.Map(e.$mapElement[0],{scrollwheel:!1,zoom:12,center:{lat:e.clientPosition.lat,lng:e.clientPosition.lng}}),!e.located&&!e.hadSearch&&typeof e.countryBounds=="object")e.map.fitBounds(e.countryBounds);else{let i=new t.maps.LatLngBounds,a=0;for(let s=0;s<r.length;s++)if(r[s].position&&r[s].position.lat&&r[s].position.lng&&(i.extend(r[s].position),a++,e.located&&!e.hadSearch)){i.extend(e.clientPosition),a++;break}a>1&&t.maps.event.addListenerOnce(e.map,"idle",function(){e.map.fitBounds(i)})}for(let i=0;i<r.length;i++)new t.maps.Marker({location:r[i],position:r[i].position,map:e.map,label:r[i].label}).addListener("click",function(){let s;s&&s.close(),s=new t.maps.InfoWindow({content:r[i].infoContent}),s.open(e.map,this),t.maps.event.addListener(s,"domready",function(){n&&n.close(),n=this,$$1("a.merchant-detail").on("click",function(c){c.preventDefault();let l=$$1("a.merchant-detail").attr("href").substring(1);if(l!==null){let p=document.getElementById(l);p.setAttribute("open","open"),setTimeout(function(){e.scrollToMerchantDetails(p)},20)}})})})}},bpChangeAction:function(e,r){r&&this.setMapCenter()},getLocationData:function(){let e=[],r=this.extractData;if($$1("#merchant-list details").each(function(t,n){r(e,n,!0)}),e.length===0){let t=!1;r(e,$$1("#merchant-map"),t)}return e},extractData:function(e,r,t){let n={},i=$$1(r).data(),a=window.google;!isNaN(i.lat)&&!isNaN(i.lng)&&(t?n.label=(e.length+1).toString():n.labelOrigin=new a.maps.Point(15,10),n.position={lat:parseFloat(i.lat),lng:parseFloat(i.lng)},n.infoContent=` 108 <p class="text--small no-marge"> 109 <b>${i.name}</b> 110 <span class="block pad-bottom">${i.address}</span>`,typeof i.phone<"u"&&(n.infoContent+=i.phone+"<br/>"),typeof i.distance<"u"&&(n.infoContent+='<b class="block pad-bottom">'+i.distance+"</b>"),t&&(n.infoContent+=`<a class="link-primary merchant-detail no-deco" href="#${r.id}">${i.linklabel}</a>`,n.infoContent+="</p>"),e.push(n),i={},n={})},scrollTo:function(e){$$1("html,body").animate({scrollTop:e.offset().top},300)},scrollToMerchantDetails:function(e){e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},setMapCenter:function(e,r){e=e||this.clientPosition.lat,r=r||this.clientPosition.lng,this.map&&this.map.setCenter({lat:e,lng:r})}};function NearestMerchant(){}NearestMerchant.prototype={init:function(){var e=$$1(".slider-nearest-merchant.swiper-container .swiper-wrapper .swiper-slide .rich-media-teaser");e.length>0&&($$1("a.merchant-link",e).off("mouseup").on("mouseup",function(){var r=$$1(this).data("teaser-id");window.teaser_click(this,{type:"events.teaserclick",id:r})}),$$1(".text-wrapper",e).off("click").on("click",function(){var r=$$1("a.merchant-link",$$1(this).parent());r.length&&(r.mouseup(),r[0].click())}))}};class MerchantTabContactForm{constructor(){this.formWrapper=$$1("#tab-contact-form"),this.loading=new Loading}init(){let r=this.formWrapper.find('button[type="submit"]'),t=this;r.off("click").on("click",n=>{n.preventDefault(),n.stopPropagation();const i=document.querySelector("meta[name='csrf']");if(i!==null){const a=i.getAttribute("content");a&&grecaptcha.enterprise.ready(async()=>t.handleRecaptchaResponse(a))}})}async handleRecaptchaResponse(r){await isRecaptchaTokenValid(r)?this.sendContactForm():this.handleRecaptchaError()}sendContactForm(){const r=document.querySelector("meta[name='csrf']");if(r!==null&&this.validate()){const t=r.getAttribute("content"),n=document.querySelector("#contactForm");this.setOriginUrl(n);const i=new FormData(n),a=n.getAttribute("action");this.loading.load(),fetch(a,{method:"POST",cache:"no-cache",credentials:"include",headers:{"X-CSRF-TOKEN":t},body:i}).then(s=>s.text()).then(s=>this.createResponseModal(s,n)).catch(s=>this.handleErrorDisplay(s))}}handleRecaptchaError(){const r=document.querySelector("#contactForm"),t=document.querySelector("meta[name='csrf']");if(t!==null){const n=t.getAttribute("content");
110n&&fetch("/recaptcha/contactform/error/",{method:"GET",cache:"no-cache",credentials:"include",headers:{"X-CSRF-TOKEN":n}}).then(i=>i.text()).then(i=>this.createResponseModal(i,r)).catch(i=>this.handleErrorDisplay(i))}}setOriginUrl(r){let t=window.location.href,n=t.replace("?contact#tabs","?tab=contact#tabs");console.log(`{Current Location:{original: ${t}, modified: ${n}}}`),$$1("input[name=originUrlEncoded]",r).val(btoa(n))}validate(){let r=!0;const t=document.querySelector('textarea[name="content"]'),n=document.querySelector("input#firstname"),i=document.querySelector("input#lastname"),a=document.querySelector("input#email"),s=document.querySelector("select#salutation"),c=document.querySelector("div#content-errors>span.notBlank"),h=document.querySelector("div#content-errors>span.length"),l=document.querySelector("div#firstname-errors>span.notBlank"),p=document.querySelector("div#firstname-errors>span.length"),b=document.querySelector("div#lastname-errors>span.notBlank"),m=document.querySelector("div#lastname-errors>span.length"),A=document.querySelector("div#email-errors>span.notBlank"),L=document.querySelector("div#email-errors>span.pattern"),k=document.querySelector("div#salutation-errors>span.selection");return this.removeErrors(t,c),this.removeErrors(t,h),this.removeErrors(n,l),this.removeErrors(n,p),this.removeErrors(i,b),this.removeErrors(i,m),this.removeErrors(a,A),this.removeErrors(a,L),this.removeErrors(s,k),r=this.addError(t,c,t.value==="",r),r=this.addError(t,h,t.value!==""&&t.value.length<20,r),r=this.addError(n,l,n.value==="",r),r=this.addError(n,p,n.value!==""&&(n.value.length<2||n.value.length>60),r),r=this.addError(i,b,i.value==="",r),r=this.addError(i,m,i.value!==""&&(i.value.length<2||i.value.length>60),r),r=this.addError(a,A,a.value==="",r),r=this.addError(a,L,a.value!==""&&!RegExp("^\\s*?(.+)@(.+?)\\s*$").test(a.value),r),r=this.addError(s,k,s.value===""||s.value!=="MS"&&s.value!=="MR"&&s.value!=="UNSPECIFIED",r),r}removeErrors(r,t){r.classList.remove("has-error"),t.classList.add("hidden")}addError(r,t,n,i){return n&&(r.classList.add("has-error"),t.classList.remove("hidden")),i&&!n}handleErrorDisplay(r){console.error(r)}createResponseModal(r,t){this.loading.stop();let n=document.createElement("div");n.classList.add("modal","fade","contact-form-overlay"),n.setAttribute("tabindex","-1"),n.setAttribute("role","dialog"),n.innerHTML=` 111 <div class="modal-dialog modal-lg" role="document" style="overflow-y: auto;"> 112 <div class="modal-content"> 113 <div class="modal-header"> 114 <button type="button" class="close" data-dismiss="modal" aria-label="Close" tabindex="0"> 115 <span aria-hidden="true" class="nm-icon nm-icon-cross"></span> 116 </button> 117 <div class="modal-title h1"> 118 Kontaktformular 119 </div> 120 </div> 121 <div class="modal-body"> 122 <div class="row"> 123 <div class="col-xs-12"> 124 <div class="alert alert-danger" role="alert" style="display: none;"> 125 <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> 126 <span class="error-message"></span> 127 </div> 128 </div> 129 </div> 130 <div class="row contact-form-content"> 131 <div class="col-lg-12"> 132 <div style="padding: 4rem 0"><ic:message key="contact.loading" /></div> 133 </div> 134 </div> 135 </div> 136 </div> 137 </div> 138 `,n.querySelector(".contact-form-content").innerHTML=r;const i=n.querySelector("input[name=originUrlEncoded]");i!==null&&(i.value=btoa(window.location.href)),$$1(n).modal("show"),this.deleteFormData(t)}deleteFormData(r){r.querySelectorAll("input").forEach(t=>t.value=""),r.querySelectorAll("textarea").forEach(t=>t.value=""),r.querySelector("select#salutation").value=""}}function FormValidator(e){this.$formControl=e,this.required=!0,this.type="text",this.min=1,this.max=Number.MAX_VALUE,this.ref="";var r=this.$formControl.data("restriction"),t=this;$$1.each(r.split(","),function(n,i){var a=i.split("="),s=a[0].trim(),c=a.length>1?a[1].trim():"";switch(s){case"min":t.min=parseInt(c);break;case"max":t.max=parseInt(c);break;case"type":t.type=c;break;case"required":t.required=c!=="false";break;case"ref":t.ref=c;break}})}FormValidator.prototype={errorMessages:{optional:"Sie können dieses Feld auch leer lassen.","text.empty":"Angabe erforderlich.","text.exact":"Geben Sie genau %1 Zeichen ein.","text.length":"Geben Sie mindestens %1 und höchstens %2 Zeichen ein.","choice.empty":"Bitte wählen Sie.","email.at":'Die Eingabe enthält kein "@".',"email.domain":"Die Eingabe enthält keine Domäne.","phone.illegalchar":"Die Telefonnummer enthält unerlaubte Zeichen. Erlaubt sind: Ziffern, +, / und Leerzeichen.","phone.onlyOne":"Die Telefonnummer darf nur ein %1-Zeichen enthalten.","password.repeat":"Geben Sie hier exakt dieselben Ze
138ichen ein wie im Passwortfeld."},showErrorTip:function(e){if(this.$formControl.addClass("error"),this.$formControl.prop("validatyStatus",!1),!!this.$formControl.is(":focus")){var r=$$1("#"+this.$formControl.attr("id")+"\\.errors");if(!r.length){r=$$1("<div>",{id:this.$formControl.attr("id")+".errors"}).addClass("help-block text-danger").insertAfter(this.$formControl);var t=this.$formControl.position();t.top+=this.$formControl.outerHeight(),t.top+=parseInt(this.$formControl.css("marginTop")),r.css(t)}for(var n=this.errorMessages[e],i=1;i<arguments.length;i++)n=n.replace(new RegExp("%"+i,"g"),arguments[i]);this.required||(n+=" "+this.errorMessages.optional),r.text(n);var a=$$1(window).scrollTop(),s=window.innerHeight,c=r.offset().top+r.outerHeight();if(!(a+s>c)){var h=r.offset().top+r.outerHeight()-window.innerHeight;$$1("html,body").animate({scrollTop:h+"px"},100)}}},hideErrorTip:function(){var e=$$1("#"+this.$formControl.attr("id")+"\\.errors");e.length&&e.remove(),this.$formControl.prop("validatyStatus")&&this.$formControl.removeClass("error"),this.$formControl.removeAttr("validatyStatus")},validate:function(){if(this.type==="choice")return this.validateComboBox();if(this.type==="email")return this.validateEmail();if(this.type==="phone")return this.validatePhone();if(this.type==="text")return this.validateText();if(this.type==="password")return this.validatePassword();if(this.type==="passwordrepeat")return this.validatePasswordRepeat()},validateComboBox:function(){var e=$$1("#"+this.$formControl.attr("id")+" option:selected");if(e.index()>0){this.$formControl.prop("validatyStatus",!0),this.hideErrorTip();return}this.showErrorTip("choice.empty")},validateEmail:function(){var e=this.$formControl.val();if(!this.required&&e.length===0){this.$formControl.prop("validatyStatus",!0),this.hideErrorTip();return}if(e.length<this.min||e.length>this.max){this.showErrorTip("text.length",this.min,this.max);return}var r=e.indexOf("@");if(r===-1){this.showErrorTip("email.at");return}var t=e.indexOf(".",r);if(t===-1){this.showErrorTip("email.domain");return}this.$formControl.prop("validatyStatus",!0),this.hideErrorTip()},validatePhone:function(){var e=this.$formControl.val();if(!this.required&&e.length===0){this.$formControl.prop("validatyStatus",!0),this.hideErrorTip();return}if(e.length<this.min||e.length>this.max){this.showErrorTip("text.length",this.min,this.max);return}for(var r=0;r<e.length;r++){var t="0123456789 +/";if(t.indexOf(e[r])===-1){this.showErrorTip("phone.illegalchar");return}}if((e.match(/\+/g)||[]).length>1){this.showErrorTip("phone.onlyOne","+");return}if((e.match(/\//g)||[]).length>1){this.showErrorTip("phone.onlyOne","/");return}this.$formControl.prop("validatyStatus",!0),this.hideErrorTip()},validateText:function(){var e=this.$formControl.val();if(!this.required&&e.length===0){this.$formControl.prop("validatyStatus",!0),this.hideErrorTip();return}if(e.length>=this.min&&e.length<=this.max){this.$formControl.prop("validatyStatus",!0),this.hideErrorTip();return}if(this.min===this.max){this.showErrorTip("text.exact",this.min);return}this.showErrorTip("text.length",this.min,this.max)},validatePassword:function(){this.validateText()},validatePasswordRepeat:function(){var e=this.$formControl.val(),r=$$1("#"+this.ref).val();if(e===r){this.$formControl.prop("validatyStatus",!0),this.hideErrorTip();return}this.showErrorTip("password.repeat")}};Pubsub.subscribe("core.attach",init);function init(){$$1("form.shop-form").off("submit").on("submit",function(){return validateForm$1(this.id),!1}),$$1("form.shop-form .error-tip").each(function(){var e=$$1(this),r=$$1("#"+e.attr("id").substring(0,e.attr("id").lastIndexOf("."))),t=r.position();t.top+=r.outerHeight(),t.top+=parseInt(r.css("marginTop")),e.css(t)}),$$1("form.shop-form .form-control[type]:not([type=select]):not([placeholder])").each(function(){var e=$$1("label[for="+this.id+"]");$$1(this).attr("placeholder",e.text().trim())}),$$1("form.shop-form .form-control[data-restriction]").each(function(){var e=$$1(this);installValidator(e)}),$$1("form.shop-form .form-control").first().focus()}function hideErrorTip(e){$$1("#"+e+"\\.errors").remove(),$$1("#"+e).removeClass("error")}function validateForm$1(e){var r=$$1("#"+e);$$1.ajax({type:r.attr("method"),url:r.attr("action")+"form/",data:r.serialize(),success:function(t){if(t.errors){$$1("form.shop-form .form-control.error").first().focus();return}actuallySubmit(e)},error:function(t,n,i){window.console.log("Error: "+i)}})}function actuallySubmit(e){var r=$$1("#"+e);$$1.ajax({type:r.attr("method"),url:r.attr("action"),data:r.serialize(),success:function(t){if(t.errors)return $$1("form.shop-form .form-control.error").first().focus(),!1;if(t.resultRedirect!==void 0)return document.location=t.resultRedirect,!1;t.resultStatus==="success"&&($$1("form.shop-form").hide(),$$1(".js-remove-on-form-success").hide());var n=t.resultStatus==="success";$$1("form.shop-form .form-control").each(function(){hideErrorTip(this.id),$$1(this).prop("disabled",n)}),$$1("form.shop-form button[type=submit]").trigger("blur"),$$1("form.shop-form button[type=submit]").prop("disabled",n);var i=$$1("#shopform-alert");i.length||(i=$$1("<div>").attr("id","shopform-alert").insertAfter(r)),i.html(t.resultMessage),i.find(".alert").removeClass("alert-warning").removeClass("alert-danger"),i.find(".alert").addClass("alert-"+(t.resultStatus==="success"?"warning":"danger"));var a=i.offset().top+i.outerHeight()-window.innerHeight;return $$1("html,body").animate({scrollTop:a+"px"},100),$$1("#contactForm .form-control").first().focus(),!1},error:function(t,n,i){window.console.log("Error: "+i)}})}function installValidator(e){e.on("focus",function(){var r=$$1(this);r.prop("tagName")==="SELECT"?r.on("change",inputHandler):r.on("input",inputHandler),r.on("blur",blurHandler),r.prop("validator").validate()}),e.prop("validator",new FormValidator(e)),e.prop("validator").validate()}function inputHandler(){var e=$$1(this);e.prop("validator").validate()}function blurHandler(){var e=$$1(this);e.prop("tagName")==="SELECT"&&e.prop("validator").validate(),e.prop("validator").hideErrorTip(),e.off("blur",inputHandler),e.off("blur",blurHandler)}+function(e){function r(){var t=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in n)if(t.style[i]!==void 0)return{end:n[i]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});var a=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(a,t),this},e(function(){e.support.transition=r(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(e){var r='[data-dismiss="alert"]',t=function(a){e(a).on("click",r,this.close)};t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.close=function(a){var s=e(this),c=s.attr("data-target");c||(c=s.attr("href"),c=c&&c.replace(/.*(?=#[^\s]*$)/,"")),c=c==="#"?[]:c;var h=e(document).find(c);if(a&&a.preventDefault(),h.length||(h=s.closest(".alert")),h.trigger(a=e.Event("close.bs.alert")),a.isDefaultPrevented())return;h.removeClass("in");function l(){h.detach().trigger("closed.bs.alert").remove()}e.support.transition&&h.hasClass("fade")?h.one("bsTransitionEnd",l).emulateTransitionEnd(t.TRANSITION_DURATION):l()};function n(a){return this.each(function(){var s=e(this),c=s.data("bs.alert");
vendor: 4,231 bytes, line 138
138c||s.data("bs.alert",c=new t(this)),typeof a=="string"&&c[a].call(s)})}var i=e.fn.alert;e.fn.alert=n,e.fn.alert.Constructor=t,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",r,t.prototype.close)}(jQuery);+function(e){var r=function(i,a){this.$element=e(i),this.options=e.extend({},r.DEFAULTS,a),this.isLoading=!1};r.VERSION="3.4.1",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(i){var a="disabled",s=this.$element,c=s.is("input")?"val":"html",h=s.data();i+="Text",h.resetText==null&&s.data("resetText",s[c]()),setTimeout(e.proxy(function(){s[c](h[i]==null?this.options[i]:h[i]),i=="loadingText"?(this.isLoading=!0,s.addClass(a).attr(a,a).prop(a,!0)):this.isLoading&&(this.isLoading=!1,s.removeClass(a).removeAttr(a).prop(a,!1))},this),0)},r.prototype.toggle=function(){var i=!0,a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var s=this.$element.find("input");s.prop("type")=="radio"?(s.prop("checked")&&(i=!1),a.find(".active").removeClass("active"),this.$element.addClass("active")):s.prop("type")=="checkbox"&&(s.prop("checked")!==this.$element.hasClass("active")&&(i=!1),this.$element.toggleClass("active")),s.prop("checked",this.$element.hasClass("active")),i&&s.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};function t(i){return this.each(function(){var a=e(this),s=a.data("bs.button"),c=typeof i=="object"&&i;s||a.data("bs.button",s=new r(this,c)),i=="toggle"?s.toggle():i&&s.setState(i)})}var n=e.fn.button;e.fn.button=t,e.fn.button.Constructor=r,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var a=e(i.target).closest(".btn");t.call(a,"toggle"),e(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),a.is("input,button")?a.trigger("focus"):a.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(i){e(i.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(i.type))})}(jQuery);+function(e){var r=function(a,s){this.$element=e(a),this.$indicators=this.$element.find(".carousel-indicators"),this.options=s,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),this.options.pause=="hover"&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};r.VERSION="3.4.1",r.TRANSITION_DURATION=600,r.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},r.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},r.prototype.cycle=function(a){return a||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},r.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},r.prototype.getItemForDirection=function(a,s){var c=this.getItemIndex(s),h=a=="prev"&&c===0||a=="next"&&c==this.$items.length-1;if(h&&!this.options.wrap)return s;var l=a=="prev"?-1:1,p=(c+l)%this.$items.length;return this.$items.eq(p)},r.prototype.to=function(a){var s=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){s.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},r.prototype.pause=function(a){return a||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},r.prototype.next=function(){if(!this.sliding)return this.slide("next")},r.prototype.prev=function(){if(!this.sliding)return this.slide("prev")}
vendor: 5,066 bytes, line 138
138,r.prototype.slide=function(a,s){var c=this.$element.find(".item.active"),h=s||this.getItemForDirection(a,c),l=this.interval,p=a=="next"?"left":"right",b=this;if(h.hasClass("active"))return this.sliding=!1;var m=h[0],A=e.Event("slide.bs.carousel",{relatedTarget:m,direction:p});if(this.$element.trigger(A),!A.isDefaultPrevented()){if(this.sliding=!0,l&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var L=e(this.$indicators.children()[this.getItemIndex(h)]);L&&L.addClass("active")}var k=e.Event("slid.bs.carousel",{relatedTarget:m,direction:p});return e.support.transition&&this.$element.hasClass("slide")?(h.addClass(a),typeof h=="object"&&h.length&&h[0].offsetWidth,c.addClass(p),h.addClass(p),c.one("bsTransitionEnd",function(){h.removeClass([a,p].join(" ")).addClass("active"),c.removeClass(["active",p].join(" ")),b.sliding=!1,setTimeout(function(){b.$element.trigger(k)},0)}).emulateTransitionEnd(r.TRANSITION_DURATION)):(c.removeClass("active"),h.addClass("active"),this.sliding=!1,this.$element.trigger(k)),l&&this.cycle(),this}};function t(a){return this.each(function(){var s=e(this),c=s.data("bs.carousel"),h=e.extend({},r.DEFAULTS,s.data(),typeof a=="object"&&a),l=typeof a=="string"?a:h.slide;c||s.data("bs.carousel",c=new r(this,h)),typeof a=="number"?c.to(a):l?c[l]():h.interval&&c.pause().cycle()})}var n=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=r,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var i=function(a){var s=e(this),c=s.attr("href");c&&(c=c.replace(/.*(?=#[^\s]+$)/,""));var h=s.attr("data-target")||c,l=e(document).find(h);if(l.hasClass("carousel")){var p=e.extend({},l.data(),s.data()),b=s.attr("data-slide-to");b&&(p.interval=!1),t.call(l,p),b&&l.data("bs.carousel").to(b),a.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var a=e(this);t.call(a,a.data())})})}(jQuery);+function(e){var r=function(a,s){this.$element=e(a),this.options=e.extend({},r.DEFAULTS,s),this.$trigger=e('[data-toggle="collapse"][href="#'+a.id+'"],[data-toggle="collapse"][data-target="#'+a.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};r.VERSION="3.4.1",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},r.prototype.show=function(){if(!(this.transitioning||this.$element.hasClass("in"))){var a,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(a=s.data("bs.collapse"),a&&a.transitioning))){var c=e.Event("show.bs.collapse");if(this.$element.trigger(c),!c.isDefaultPrevented()){s&&s.length&&(n.call(s,"hide"),a||s.data("bs.collapse",null));var h=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[h](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var l=function(){this.$element.removeClass("collapsing").addClass("collapse in")[h](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return l.call(this);var p=e.camelCase(["scroll",h].join("-"));this.$element.one("bsTransitionEnd",e.proxy(l,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[h](this.$element[0][p])}}}},r.prototype.hide=function(){if(!(this.transitioning||!this.$element.hasClass("in"))){var a=e.Event("hide.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var s=this.dimension();this.$element[s](this.$element[s]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var c=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return c.call(this);this.$element[s](0).one("bsTransitionEnd",e.proxy(c,this)).emulateTransitionEnd(r.TRANSITION_DURATION)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(a,s){var c=e(s);this.addAriaAndCollapsedClass(t(c),c)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(a,s){var c=a.hasClass("in");a.attr("aria-expanded",c),s.toggleClass("collapsed",!c).attr("aria-expanded",c)};function t(a){var s,c=a.attr("data-target")||(s=a.attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(c)}function n(a){return this.each(function(){var s=e(this),c=s.data("bs.collapse"),h=e.extend({},r.DEFAULTS,s.data(),typeof a=="object"&&a);!c&&h.toggle&&/show|hide/.test(a)&&(h.toggle=!1),c||s.data("bs.collapse",c=new r(this,h)),typeof a=="str
138ing"&&c[a]()})}var i=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=r,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(a){var s=e(this);s.attr("data-target")||a.preventDefault();var c=t(s),h=c.data("bs.collapse"),l=h?"toggle":s.data();n.call(c,l)})}(jQuery);+function(e){var r=".dropdown-backdrop",t='[data-toggle="dropdown"]',n=function(h){e(h).on("click.bs.dropdown",this.toggle)};n.VERSION="3.4.1";function i(h){var l=h.attr("data-target");l||(l=h.attr("href"),l=l&&/#[A-Za-z]/.test(l)&&l.replace(/.*(?=#[^\s]*$)/,""));var p=l!=="#"?e(document).find(l):null;return p&&p.length?p:h.parent()}function a(h){h&&h.which===3||(e(r).remove(),e(t).each(function(){var l=e(this),p=i(l),b={relatedTarget:this};p.hasClass("open")&&(h&&h.type=="click"&&/input|textarea/i.test(h.target.tagName)&&e.contains(p[0],h.target)||(p.trigger(h=e.Event("hide.bs.dropdown",b)),!h.isDefaultPrevented()&&(l.attr("aria-expanded","false"),p.removeClass("open").trigger(e.Event("hidden.bs.dropdown",b)))))}))}n.prototype.toggle=function(h){var l=e(this);if(!l.is(".disabled, :disabled")){var p=i(l),b=p.hasClass("open");if(a(),!b){"ontouchstart"in document.documentElement&&!p.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",a);var m={relatedTarget:this};if(p.trigger(h=e.Event("show.bs.dropdown",m)),h.isDefaultPrevented())return;l.trigger("focus").attr("aria-expanded","true"),p.toggleClass("open").trigger(e.Event("shown.bs.dropdown",m))}return!1}},n.prototype.keydown=function(h){if(!(!/(38|40|27|32)/.test(h.which)||/input|textarea/i.test(h.target.tagName))){var l=e(this);if(h.preventDefault(),h.stopPropagation(),!l.is(".disabled, :disabled")){var p=i(l),b=p.hasClass("open");if(!b&&h.which!=27||b&&h.which==27)return h.which==27&&p.find(t).trigger("focus"),l.trigger("click");var m=" li:not(.disabled):visible a",A=p.find(".dropdown-menu"+m);if(A.length){var L=A.index(h.target);h.which==38&&L>0&&L--,h.which==40&&L<A.length-1&&L++,~L||(L=0),A.eq(L).trigger("focus")}}}};function s(h){return this.each(function(){var l=e(this),p=l.data("bs.dropdown");p||l.data("bs.dropdown",p=new n(this)),typeof h=="string"&&p[h].call(l)})}var c=e.fn.dropdown;e.fn.dropdown=s,e.fn.dropdown.Constructor=n,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=c,this},e(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(h){h.stopPropagation()}).on("click.bs.dropdown.data-api",t,n.prototype.toggle).on("keydown.bs.dropdown.data-api",t,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery);+function(e){var r=function(i,a){this.options=a,this.$body=e(document.body),this.$element=e(i),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};r.VERSION="3.4.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(i){return this.isShown?this.hide():this.show(i)},r.prototype.show=function(i){var a=this,s=e.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(s),!(this.isShown||s.isDefaultPrevented())&&(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){a.$element.one("mouseup.dismiss.bs.modal",function(c){e(c.target).is(a.$element)&&(a.ignoreBackdropClick=!0)})}),this.backdrop(function(){var c=e.support.transition&&a.$element.hasClass("fade");a.$element.parent().length||a.$element.appendTo(a.$body),a.$element.show().scrollTop(0),a.adjustDialog(),c&&a.$element[0].offsetWidth,a.$element.addClass("in"),a.enforceFocus();var h=e.Event("shown.bs.modal",{relatedTarget:i});c?a.$dialog.one("bsTransitionEnd",function(){a.$element.trigger("focus").trigger(h)}).emulateTransitionEnd(r.TRANSITION_DURATION):a.$element.trigger("focus").trigger(h)}))},r.prototype.hide=function(i){i&&i.preventDefault(),i=e.Event("hide.bs.modal"),this.$element.trigger(i),!(!this.isShown||i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("
138click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(i){document!==i.target&&this.$element[0]!==i.target&&!this.$element.has(i.target).length&&this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(i){i.which==27&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var i=this;this.$element.hide(),this.backdrop(function(){i.$body.removeClass("modal-open"),i.resetAdjustments(),i.resetScrollbar(),i.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(i){var a=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var c=e.support.transition&&s;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(l){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}l.target===l.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this)),c&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;c?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var h=function(){a.removeBackdrop(),i&&i()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",h).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):h()}else i&&i()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var i=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&i?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!i?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var i=window.innerWidth;if(!i){var a=document.documentElement.getBoundingClientRect();i=a.right-Math.abs(a.left)}this.bodyIsOverflowing=document.body.clientWidth<i,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var i=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var a=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",i+a),e(this.fixedContent).each(function(s,c){var h=c.style.paddingRight,l=e(c).css("padding-right");e(c).data("padding-right",h).css("padding-right",parseFloat(l)+a+"px")}))},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each(function(i,a){var s=e(a).data("padding-right");e(a).removeData("padding-right"),a.style.paddingRight=s||""})},r.prototype.measureScrollbar=function(){var i=document.createElement("div");i.className="modal-scrollbar-measure",this.$body.append(i);var a=i.offsetWidth-i.clientWidth;return this.$body[0].removeChild(i),a};function t(i,a){return this.each(function(){var s=e(this),c=s.data("bs.modal"),h=e.extend({},r.DEFAULTS,s.data(),typeof i=="object"&&i);c||s.data("bs.modal",c=new r(this,h)),typeof i=="string"?c[i](a):h.show&&c.show(a)})}var n=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=r,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var a=e(this),s=a.attr("href"),c=a.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,""),h=e(document).find(c),l=h.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(s)&&s},h.data(),a.data());a.is("a")&&i.preventDefault(),h.one("show.bs.modal",function(p){p.isDefaultPrevented()||h.one("hidden.bs.modal",function(){a.is(":visible")&&a.trigger("focus")})}),t.call(h,l,this)})}(jQuery);+function(e){var r=["sanitize","whiteList","sanitizeFn"],t=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n=/^aria-[\w-]*$/i,i={"*":["class","dir","id","lang","role",n],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function c(m,A){var L=m.nodeName.toLowerCase();
138if(e.inArray(L,A)!==-1)return e.inArray(L,t)!==-1?!!(m.nodeValue.match(a)||m.nodeValue.match(s)):!0;for(var k=e(A).filter(function(M,H){return H instanceof RegExp}),T=0,S=k.length;T<S;T++)if(L.match(k[T]))return!0;return!1}function h(m,A,L){if(m.length===0)return m;if(L&&typeof L=="function")return L(m);if(!document.implementation||!document.implementation.createHTMLDocument)return m;var k=document.implementation.createHTMLDocument("sanitization");k.body.innerHTML=m;for(var T=e.map(A,function(Ee,Le){return Le}),S=e(k.body).find("*"),M=0,H=S.length;M<H;M++){var te=S[M],Ie=te.nodeName.toLowerCase();if(e.inArray(Ie,T)===-1){te.parentNode.removeChild(te);continue}for(var we=e.map(te.attributes,function(Ee){return Ee}),_=[].concat(A["*"]||[],A[Ie]||[]),oe=0,ee=we.length;oe<ee;oe++)c(we[oe],_)||te.removeAttribute(we[oe].nodeName)}return k.body.innerHTML}var l=function(m,A){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",m,A)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},l.prototype.init=function(m,A,L){if(this.enabled=!0,this.type=m,this.$element=e(A),this.options=this.getOptions(L),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var k=this.options.trigger.split(" "),T=k.length;T--;){var S=k[T];if(S=="click")this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if(S!="manual"){var M=S=="hover"?"mouseenter":"focusin",H=S=="hover"?"mouseleave":"focusout";this.$element.on(M+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(H+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(m){var A=this.$element.data();for(var L in A)A.hasOwnProperty(L)&&e.inArray(L,r)!==-1&&delete A[L];return m=e.extend({},this.getDefaults(),A,m),m.delay&&typeof m.delay=="number"&&(m.delay={show:m.delay,hide:m.delay}),m.sanitize&&(m.template=h(m.template,m.whiteList,m.sanitizeFn)),m},l.prototype.getDelegateOptions=function(){var m={},A=this.getDefaults();return this._options&&e.each(this._options,function(L,k){A[L]!=k&&(m[L]=k)}),m},l.prototype.enter=function(m){var A=m instanceof this.constructor?m:e(m.currentTarget).data("bs."+this.type);if(A||(A=new this.constructor(m.currentTarget,this.getDelegateOptions()),e(m.currentTarget).data("bs."+this.type,A)),m instanceof e.Event&&(A.inState[m.type=="focusin"?"focus":"hover"]=!0),A.tip().hasClass("in")||A.hoverState=="in"){A.hoverState="in";return}if(clearTimeout(A.timeout),A.hoverState="in",!A.options.delay||!A.options.delay.show)return A.show();A.timeout=setTimeout(function(){A.hoverState=="in"&&A.show()},A.options.delay.show)},l.prototype.isInStateTrue=function(){for(var m in this.inState)if(this.inState[m])return!0;return!1},l.prototype.leave=function(m){var A=m instanceof this.constructor?m:e(m.currentTarget).data("bs."+this.type);if(A||(A=new this.constructor(m.currentTarget,this.getDelegateOptions()),e(m.currentTarget).data("bs."+this.type,A)),m instanceof e.Event&&(A.inState[m.type=="focusout"?"focus":"hover"]=!1),!A.isInStateTrue()){if(clearTimeout(A.timeout),A.hoverState="out",!A.options.delay||!A.options.delay.hide)return A.hide();A.timeout=setTimeout(function(){A.hoverState=="out"&&A.hide()},A.options.delay.hide)}},l.prototype.show=function(){var m=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(m);var A=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(m.isDefaultPrevented()||!A)return;var L=this,k=this.tip(),T=this.getUID(this.type);this.setContent(),k.attr("id",T),this.$element.attr("aria-describedby",T),this.options.animation&&k.addClass("fade");var S=typeof this.options.placement=="function"?this.options.placement.call(this,k[0],this.$element[0]):this.options.placement,M=/\s?auto?\s?/i,H=M.test(S);H&&(S=S.replace(M,"")||"top"),k.detach().css({top:0,left:0,display:"block"}).addClass(S).data("bs."+this.type,this),this.options.container?k.appendTo(e(document).find(this.options.container)):k.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var te=this.getPosition(),Ie=k[0].offsetWidth,we=k[0].offsetHeight;if(H){var _=S,oe=this.getPosition(this.$viewport);S=S=="bottom"&&te.bottom+we>oe.bottom?"top":S=="top"&&te.top-we<oe.top?"bottom":S=="right"&&te.right+Ie>oe.width?"left":S=="left"&&te.left-Ie<oe.left?"right":S,k.removeClass(_).addClass(S)}var ee=this.getCalculatedOffset(S,te,Ie,we);this.applyPlacement(ee,S);var Ee=function(){var Le=L.hoverState;L.$element.trigger("shown.bs."+L.type),L.hoverState=null,Le=="out"&&L.leave(L)};
vendor: 10,386 bytes, line 138
138e.support.transition&&this.$tip.hasClass("fade")?k.one("bsTransitionEnd",Ee).emulateTransitionEnd(l.TRANSITION_DURATION):Ee()}},l.prototype.applyPlacement=function(m,A){var L=this.tip(),k=L[0].offsetWidth,T=L[0].offsetHeight,S=parseInt(L.css("margin-top"),10),M=parseInt(L.css("margin-left"),10);isNaN(S)&&(S=0),isNaN(M)&&(M=0),m.top+=S,m.left+=M,e.offset.setOffset(L[0],e.extend({using:function(ee){L.css({top:Math.round(ee.top),left:Math.round(ee.left)})}},m),0),L.addClass("in");var H=L[0].offsetWidth,te=L[0].offsetHeight;A=="top"&&te!=T&&(m.top=m.top+T-te);var Ie=this.getViewportAdjustedDelta(A,m,H,te);Ie.left?m.left+=Ie.left:m.top+=Ie.top;var we=/top|bottom/.test(A),_=we?Ie.left*2-k+H:Ie.top*2-T+te,oe=we?"offsetWidth":"offsetHeight";L.offset(m),this.replaceArrow(_,L[0][oe],we)},l.prototype.replaceArrow=function(m,A,L){this.arrow().css(L?"left":"top",50*(1-m/A)+"%").css(L?"top":"left","")},l.prototype.setContent=function(){var m=this.tip(),A=this.getTitle();this.options.html?(this.options.sanitize&&(A=h(A,this.options.whiteList,this.options.sanitizeFn)),m.find(".tooltip-inner").html(A)):m.find(".tooltip-inner").text(A),m.removeClass("fade in top bottom left right")},l.prototype.hide=function(m){var A=this,L=e(this.$tip),k=e.Event("hide.bs."+this.type);function T(){A.hoverState!="in"&&L.detach(),A.$element&&A.$element.removeAttr("aria-describedby").trigger("hidden.bs."+A.type),m&&m()}if(this.$element.trigger(k),!k.isDefaultPrevented())return L.removeClass("in"),e.support.transition&&L.hasClass("fade")?L.one("bsTransitionEnd",T).emulateTransitionEnd(l.TRANSITION_DURATION):T(),this.hoverState=null,this},l.prototype.fixTitle=function(){var m=this.$element;(m.attr("title")||typeof m.attr("data-original-title")!="string")&&m.attr("data-original-title",m.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(m){m=m||this.$element;var A=m[0],L=A.tagName=="BODY",k=A.getBoundingClientRect();k.width==null&&(k=e.extend({},k,{width:k.right-k.left,height:k.bottom-k.top}));var T=window.SVGElement&&A instanceof window.SVGElement,S=L?{top:0,left:0}:T?null:m.offset(),M={scroll:L?document.documentElement.scrollTop||document.body.scrollTop:m.scrollTop()},H=L?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},k,M,H,S)},l.prototype.getCalculatedOffset=function(m,A,L,k){return m=="bottom"?{top:A.top+A.height,left:A.left+A.width/2-L/2}:m=="top"?{top:A.top-k,left:A.left+A.width/2-L/2}:m=="left"?{top:A.top+A.height/2-k/2,left:A.left-L}:{top:A.top+A.height/2-k/2,left:A.left+A.width}},l.prototype.getViewportAdjustedDelta=function(m,A,L,k){var T={top:0,left:0};if(!this.$viewport)return T;var S=this.options.viewport&&this.options.viewport.padding||0,M=this.getPosition(this.$viewport);if(/right|left/.test(m)){var H=A.top-S-M.scroll,te=A.top+S-M.scroll+k;H<M.top?T.top=M.top-H:te>M.top+M.height&&(T.top=M.top+M.height-te)}else{var Ie=A.left-S,we=A.left+S+L;Ie<M.left?T.left=M.left-Ie:we>M.right&&(T.left=M.left+M.width-we)}return T},l.prototype.getTitle=function(){var m,A=this.$element,L=this.options;return m=A.attr("data-original-title")||(typeof L.title=="function"?L.title.call(A[0]):L.title),m},l.prototype.getUID=function(m){do m+=~~(Math.random()*1e6);while(document.getElementById(m));return m},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(m){var A=this;m&&(A=e(m.currentTarget).data("bs."+this.type),A||(A=new this.constructor(m.currentTarget,this.getDelegateOptions()),e(m.currentTarget).data("bs."+this.type,A))),m?(A.inState.click=!A.inState.click,A.isInStateTrue()?A.enter(A):A.leave(A)):A.tip().hasClass("in")?A.leave(A):A.enter(A)},l.prototype.destroy=function(){var m=this;clearTimeout(this.timeout),this.hide(function(){m.$element.off("."+m.type).removeData("bs."+m.type),m.$tip&&m.$tip.detach(),m.$tip=null,m.$arrow=null,m.$viewport=null,m.$element=null})},l.prototype.sanitizeHtml=function(m){return h(m,this.options.whiteList,this.options.sanitizeFn)};function p(m){return this.each(function(){var A=e(this),L=A.data("bs.tooltip"),k=typeof m=="object"&&m;!L&&/destroy|hide/.test(m)||(L||A.data("bs.tooltip",L=new l(this,k)),typeof m=="string"&&L[m]())})}var b=e.fn.tooltip;e.fn.tooltip=p,e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=b,this}}(jQuery);+function(e){var r=function(i,a){this.init("popover",i,a)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.4.1",r.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),r.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),r.prototype.constructor=r,r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var i=this.tip(),a=this.getTitle(),s=this.getContent();if(this.options.html){var c=typeof s;this.options.sanitize&&(a=this.sanitizeHtml(a),c==="string"&&(s=this.sanitizeHtml(s))),i.find(".popover-title").html(a),i.find(".popover-content").children().detach().end()[c==="string"?"html":"append"](s)}else i.find(".popover-title").text(a),i.find(".popover-content").children().detach().end().text(s);i.removeClass("fade top bottom left right in"),i.find(".popover-title").html()||i.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var i=this.$element,a=this.options;return i.attr("data-content")||(typeof a.content=="function"?a.content.call(i[0]):a.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};function t(i){return this.each(function(){var a=e(this),s=a.data("bs.popover"),c=typeof i=="object"&&i;!s&&/destroy|hide/.test(i)||(s||a.data("bs.popover",s=new r(this,c)),typeof i=="string"&&s[i]())})}var n=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=r,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery);+function(e){function r(i,a){this.$body=e(document.body),this.$scrollElement=e(i).is(document.body)?e(window):e(i),this.options=e.extend({},r.DEFAULTS,a),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}r.VERSION="3.4.1",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var i=this,a="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(a="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var c=e(this),h=c.data("target")||c.attr("href"),l=/^#./.test(h)&&e(h);return l&&l.length&&l.is(":visible")&&[[l[a]().top+s,h]]||null}).sort(function(c,h){return c[0]-h[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},r.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,a=this.getScrollHeight(),s=this.options.offset+a-this.$scrollElement.height(),c=this.offsets,h=this.targets,l=this.activeTarget,p;if(this.scrollHeight!=a&&this.refresh(),i>=s)return l!=(p=h[h.length-1])&&this.activate(p);if(l&&i<c[0])return this.activeTarget=null,this.clear();for(p=c.length;p--;)l!=h[p]&&i>=c[p]&&(c[p+1]===void 0||i<c[p+1])&&this.activate(h[p])},r.prototype.activate=function(i){this.activeTarget=i,this.clear();var a=this.selector+'[data-target="'+i+'"],'+this.selector+'[href="'+i+'"]',s=e(a).parents("li").addClass("active");s.parent(".dropdown-menu").length&&(s=s.closest("li.dropdown").addClass("active")),s.trigger("activate.bs.scrollspy")},r.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};function t(i){return this.each(function(){var a=e(this),s=a.data("bs.scrollspy"),c=typeof i=="object"&&i;s||a.data("bs.scrollspy",s=new r(this,c)),typeof i=="string"&&s[i]()})}var n=e.fn.scrollspy;e.fn.scrollspy=t,e.fn.scrollspy.Constructor=r,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var i=e(this);t.call(i,i.data())})})}(jQuery);+function(e){var r=function(a){this.element=e(a)};r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.show=function(){var a=this.element,s=a.closest("ul:not(.dropdown-menu)"),c=a.data("target");if(c||(c=a.attr("href"),c=c&&c.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var h=s.find(".active:last a"),l=e.Event("hide.bs.tab",{relatedTarget:a[0]}),p=e.Event("show.bs.tab",{relatedTarget:h[0]});if(h.trigger(l),a.trigger(p),!(p.isDefaultPrevented()||l.isDefaultPrevented())){var b=e(document).find(c);this.activate(a.closest("li"),s),this.activate(b,b.parent(),function(){h.trigger({type:"hidden.bs.tab",relatedTarget:a[0]}),a.trigger({type:"shown.bs.tab",relatedTarget:h[0]})})}}},r.prototype.activate=function(a,s,c){var h=s.find("> .active"),l=c&&e.support.transition&&(h.length&&h.hasClass("fade")||!!s.find("> .fade").length);function p(){h.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),l?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),c&&c()}h.length&&l?h.one("bsTransitionEnd",p).emulateTransitionEnd(r.TRANSITION_DURATION):p(),h.removeClass("in")};function t(a){return this.each(function(){var s=e(this),c=s.data("bs.tab");
138c||s.data("bs.tab",c=new r(this)),typeof a=="string"&&c[a]()})}var n=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=r,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(a){a.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(e){var r=function(i,a){this.options=e.extend({},r.DEFAULTS,a);var s=this.options.target===r.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=s.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};r.VERSION="3.4.1",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(i,a,s,c){var h=this.$target.scrollTop(),l=this.$element.offset(),p=this.$target.height();if(s!=null&&this.affixed=="top")return h<s?"top":!1;if(this.affixed=="bottom")return s!=null?h+this.unpin<=l.top?!1:"bottom":h+p<=i-c?!1:"bottom";var b=this.affixed==null,m=b?h:l.top,A=b?p:a;return s!=null&&h<=s?"top":c!=null&&m+A>=i-c?"bottom":!1},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var i=this.$target.scrollTop(),a=this.$element.offset();return this.pinnedOffset=a.top-i},r.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),a=this.options.offset,s=a.top,c=a.bottom,h=Math.max(e(document).height(),e(document.body).height());typeof a!="object"&&(c=s=a),typeof s=="function"&&(s=a.top(this.$element)),typeof c=="function"&&(c=a.bottom(this.$element));var l=this.getState(h,i,s,c);if(this.affixed!=l){this.unpin!=null&&this.$element.css("top","");var p="affix"+(l?"-"+l:""),b=e.Event(p+".bs.affix");if(this.$element.trigger(b),b.isDefaultPrevented())return;this.affixed=l,this.unpin=l=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(p).trigger(p.replace("affix","affixed")+".bs.affix")}l=="bottom"&&this.$element.offset({top:h-i-c})}};function t(i){return this.each(function(){var a=e(this),s=a.data("bs.affix"),c=typeof i=="object"&&i;s||a.data("bs.affix",s=new r(this,c)),typeof i=="string"&&s[i]()})}var n=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=r,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var i=e(this),a=i.data();a.offset=a.offset||{},a.offsetBottom!=null&&(a.offset.bottom=a.offsetBottom),a.offsetTop!=null&&(a.offset.top=a.offsetTop),t.call(i,a)})})}(jQuery);var __awaiter$e=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$e=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};window.dataLayer=window.dataLayer||{};var LandingPageContactForm=function(){function e(r){var t=this;this.merchantUrlPrefix=getMerchantUrlPrefix(),this.merchantId=getMerchantId(),this.loading=new Loading,this.customSubject="",this.customTargetMail=null,r.addEventListener("click",function(n){return t.handleContactFormBtnOpener(n)})}return e.prototype.handleErrorDisplay=function(r){console.error(r)},e.prototype.postContactForm=function(r){var t=this,n=document.querySelector("meta[name='csrf']");if(n!==null){var i=n.getAttribute("content"),a=r.querySelector("#contactForm");if(a&&i){var s=new FormData(a);this.loading.load();var c=this.customTargetMail?"?customMailAddress=".concat(this.customTargetMail):"";fetch("".concat(this.merchantUrlPrefix,"/contactform/").concat(this.merchantId,"/").concat(c),{method:"POST",cac
138he:"no-cache",credentials:"include",headers:{"X-CSRF-TOKEN":i},body:s}).then(function(h){return h.status===201&&window.dataLayer&&window.dataLayer.push({event:"eventHaendler",haendlerId:t.merchantId,eventCategory:"Landingpage",eventAction:"Kontaktanfrage",eventLabel:t.customSubject,eventValue:0,currentUrl:window.location.href}),h.text()}).then(function(h){return t.createModalWithInfo(h,r)}).catch(function(h){return t.handleErrorDisplay(h)})}}},e.prototype.handleContactFormError=function(r){var t=this,n=document.querySelector("meta[name='csrf']");if(n!==null){var i=n.getAttribute("content");i&&fetch("".concat(this.merchantUrlPrefix,"/recaptcha/contactform/error/"),{method:"GET",cache:"no-cache",credentials:"include",headers:{"X-CSRF-TOKEN":i}}).then(function(a){return a.text()}).then(function(a){return t.createModalWithInfo(a,r)}).catch(function(a){return t.handleErrorDisplay(a)})}},e.prototype.getFormFromSubmitBtnEvent=function(r){if(r.target&&r.target instanceof HTMLButtonElement){var t=r.target.closest("form");if(t instanceof HTMLFormElement)return t}return null},e.prototype.validateFormSubmission=function(r){var t=this.getFormFromSubmitBtnEvent(r);return t?t.checkValidity():!1},e.prototype.reportIssuesToUser=function(r){var t=this.getFormFromSubmitBtnEvent(r);t&&t.reportValidity()},e.prototype.listenToSubmit=function(r,t){return __awaiter$e(this,void 0,void 0,function(){var n,i,a=this;return __generator$e(this,function(s){return r.preventDefault(),r.stopImmediatePropagation(),r.stopPropagation(),n=this.validateFormSubmission(r),i=t.querySelector('input[name="_csrf"]'),n&&i instanceof HTMLInputElement?grecaptcha.enterprise.ready(function(){return __awaiter$e(a,void 0,void 0,function(){return __generator$e(this,function(c){return[2,this.handleRecaptchaResponse(i.value,t)]})})}):this.reportIssuesToUser(r),[2]})})},e.prototype.handleRecaptchaResponse=function(r,t){return __awaiter$e(this,void 0,void 0,function(){var n;return __generator$e(this,function(i){switch(i.label){case 0:return[4,isRecaptchaTokenValid(r)];case 1:return n=i.sent(),n?this.postContactForm(t):this.handleContactFormError(t),[2]}})})},e.prototype.createNewModal=function(){var r=document.createElement("div");return r.classList.add("modal","fade","contact-form-overlay"),r.setAttribute("tabindex","-1"),r.setAttribute("role","dialog"),r.innerHTML=` 139 <div class="modal-dialog modal-lg landing-page__contact-form-modal" role="document" style="overflow-y: auto;"> 140 <div class="modal-content"> 141 <div class="modal-header"> 142 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 143 <span aria-hidden="true" class="nm-icon nm-icon-cross"></span> 144 </button> 145 <div class="modal-title h1"> 146 Kontaktformular 147 </div> 148 </div> 149 <div class="modal-body"> 150 <div class="row"> 151 <div class="col-xs-12"> 152 <div class="alert alert-danger" role="alert" style="display: none;"> 153 <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> 154 <span class="error-message"></span> 155 </div> 156 </div> 157 </div> 158 <div class="row contact-form-content"> 159 <div class="col-lg-12"> 160 <div style="padding: 4rem 0"><ic:message key="contact.loading" /></div> 161 </div> 162 </div> 163 </div> 164 </div> 165 </div> 166 `,r},e.prototype.createModalWithInfo=function(r,t){var n=this;this.loading.stop();var i=document.querySelector(".landing-page__contact-form-btn-opener"),a;t?a=t:a=this.createNewModal();var s=a.querySelector(".contact-form-content");
166if(s&&(s.innerHTML=r,i&&i.parentNode)){i.parentNode.insertBefore(a,i);var c=a.querySelector("button[type=submit]"),h=a.querySelector("input[name=originUrlEncoded]");h&&(h.value=btoa(window.location.href)),c?.addEventListener("click",function(p){return n.listenToSubmit(p,a)}),c&&grecaptcha.enterprise.render(c,{sitekey:c.getAttribute("_recaptchaSiteKey")}),document.body.append(a);var l=new ColorService;l.reevaluate(),$$1(a).modal("show")}},e.prototype.fetchContactForm=function(r,t,n,i,a){var s=this;this.loading.load();var c=new URLSearchParams;c.set("externalId",t),c.set("customFurniture","true"),c.set("subject",n),c.set("isProfiRegistration",String(i)),c.set("suppressQuoteAndDeliverySelection",String(a)),fetch("".concat(r,"/contactform/?").concat(c.toString()),{method:"GET",cache:"default"}).then(function(h){return h.text()}).then(function(h){return s.createModalWithInfo(h)}).catch(function(h){return s.handleErrorDisplay(h)})},e.prototype.checkIfProfiRegistration=function(r){var t;return(t=r.dataset.profiRegistration==="true")!==null&&t!==void 0?t:!1},e.prototype.checkIfSuppressesQuoteAndDeliverySelection=function(r){var t=r.attributes.getNamedItem("suppress-quote-and-delivery-selection");return t!=null},e.prototype.getOrUpdateMerchantId=function(r){return r&&r!==""&&(this.merchantId=r),this.merchantId},e.prototype.getOrUpdateCustomSubject=function(r){return r&&r!==""&&(this.customSubject=r),this.customSubject},e.prototype.handleContactFormBtnOpener=function(r){r.preventDefault(),r.stopImmediatePropagation(),r.stopPropagation();var t=r.currentTarget;if(t&&t instanceof HTMLElement){var n=this.getOrUpdateMerchantId(t.dataset.merchantId),i=t.getAttribute("href");i!==null&&i.startsWith("mailto:")&&(this.customTargetMail=i.split("mailto:")[1]);var a=this.getOrUpdateCustomSubject(t.dataset.subject),s=this.checkIfProfiRegistration(t),c=this.checkIfSuppressesQuoteAndDeliverySelection(t);n!==""&&this.fetchContactForm(getMerchantUrlPrefix(),n,a,s,c)}},e}();class PaymentSelection{handlePaymentElementClickEvent(r){const t=r.currentTarget;this.displayAdditionalPaymentInfo(t),this.handleAccessibility(t)}handleAccessibility(r){this.resetAllTabIndices(),r.dataset.available&&r.querySelector(".payment-selection__tooltip").setAttribute("tabindex","0")}resetAllTabIndices(){[...document.querySelectorAll(".payment-selection__tooltip")].forEach(r=>{console.log(r),r.setAttribute("tabindex","-1")})}displayAdditionalPaymentInfo(r){const t=r.querySelector(".payment-selection__additional-info");r.dataset.available&&r.dataset.available==="false"||([...document.querySelectorAll(".payment-selection__additional-info")].forEach(n=>{n.classList.remove("payment-selection__additional-info--active"),this.handlePaymentAdditionalInfoAccessibility(n,"-1"),n!==t&&this.setGridGap(n,!1)}),t!==null&&(t.classList.add("payment-selection__additional-info--active"),this.handlePaymentAdditionalInfoAccessibility(t,"0"),this.setGridGap(t,!0)))}setGridGap(r,t){const n=r.closest(".payment-selection__payment-type");n&&(t?n.style.setProperty("--grid-gap","12px"):n.style.setProperty("--grid-gap","0"))}handlePaymentAdditionalInfoAccessibility(r,t){r?.querySelectorAll(".flatpickr-input").forEach(n=>{n.setAttribute("tabindex",t)})}listenToPaymentSelection(){[...document.querySelectorAll(".payment-selection__payment-type")].forEach(r=>{r.addEventListener("click",t=>this.handlePaymentElementClickEvent(t)),r.addEventListener("focus",t=>this.handlePaymentElementClickEvent(t))})}}var HeaderSearchBoxResizer=function(){function e(r){var t=this;this.collapseClass="collapse",this.checkSearchBox(r),window.addEventListener("resize",function(){return t.checkSearchBox(r)})}return e.prototype.checkSearchBox=function(r){var t=getBrowserWidth();r.classList.contains("-basket")||(t>=768?(r.classList.remove(this.collapseClass),r.style.height="inherit"):r.classList.add(this.collapseClass))},e}(),PromotionTeaserListingResizer=function(){function e(r,t){r===void 0&&(r=".product-box"),t===void 0&&(t=".teaser-promotion-listing");var n=this;this.origin="",this.target="",this.origin=r,this.target=t,window.addEventListener("resize",function(){return n.resize()})}return e.prototype.resize=function(){var r=document.querySelector(this.origin),t=document.querySelectorAll(this.target);if(r&&t.length>0){var n=r.offsetHeight+"px",i=this.checkIfChangeNecessary(n,t);i&&Array.from(t).forEach(function(a){return a.style.height=n})}},e.prototype.checkIfChangeNecessary=function(r,t){return t.length>0?t[0].style.height!==r:!1},e}();function scrollToProductList(){var e=document.querySelector(".prd-filter");e&&e.scrollIntoView({behavior:"smooth"})}function addScrollToFilterBtn(){var e=document.getElementById("go-to-prd-filter-list"),r=document.querySelector(".prd-filter");
166e&&r&&(e.classList.remove("hidden"),e.addEventListener("click",scrollToProductList))}var HeaderNotifications=function(){function e(){var r=this;this.activeIndex=0,this.notificationContainer=document.querySelectorAll(".header-notification-container"),this.init=function(){if(r.notificationContainer.length){var t=r.notificationContainer.item(r.activeIndex);r.handleResizeArrowForElement(t),r.notificationContainer.length>1&&setInterval(function(){r.changeNotification()},5e3)}},this.changeNotification=function(){var t=r.notificationContainer.item(r.activeIndex).querySelector(".js--folded-out")==null;t&&(r.notificationContainer.item(r.activeIndex).classList.add("hidden"),r.increaseIndex(),r.notificationContainer.item(r.activeIndex).classList.remove("hidden"),r.handleResizeArrowForElement(r.notificationContainer.item(r.activeIndex)))},this.increaseIndex=function(){var t=r.notificationContainer.length;r.activeIndex===t-1?r.activeIndex=0:r.activeIndex++},this.handleResizeArrowForElement=function(t){var n,i,a,s;r.headerNotificationTextGetsCompressed(t)?((a=t.querySelector(".header_resize_js"))===null||a===void 0||a.classList.add("nm-icon-arrow-down"),(s=t.querySelector(".header_resize_js"))===null||s===void 0||s.classList.remove("hidden")):((n=t.querySelector(".header_resize_js"))===null||n===void 0||n.classList.remove("nm-icon-arrow-down"),(i=t.querySelector(".header_resize_js"))===null||i===void 0||i.classList.add("hidden"))},this.headerNotificationTextGetsCompressed=function(t){var n=t.querySelector(".less");return n!=null&&t.scrollHeight<n.scrollHeight}}return e}();function removeErrorMsg(e){var r=e.closest(".page-login__form");if(r&&r instanceof HTMLFormElement){var t=r.querySelector(".js--error-msg");t&&t.classList.add("hidden")}}function removeErrorClassEventHandler(e){var r=e.currentTarget;r&&r instanceof HTMLInputElement&&(r.classList.remove("-has-error"),removeErrorMsg(r))}function removeErrorClassOnInput(){document.querySelectorAll(".page-login__form-input.-has-error").forEach(function(e){e instanceof HTMLInputElement&&e.addEventListener("input",removeErrorClassEventHandler)})}function replacePreviousEncodedValueWithDecodedForGivenInput(e){e instanceof HTMLInputElement&&e.dataset.encodedValue&&e.dataset.encodedValue!==""&&(e.value=decodeURIComponent(e.dataset.encodedValue))}function replacePreviousEncodedValueWithDecoded(){document.querySelectorAll(".js--page-login__email-input").forEach(function(e){return replacePreviousEncodedValueWithDecodedForGivenInput(e)})}function createNewFailureUrl(e,r){var t=new URL(decodeURI(window.location.origin+r.value));return e.value&&e.value!==""?t.searchParams.set("prevEmailAddress",e.value):t.searchParams.delete("prevEmailAddress"),encodeURI(t.pathname+t.search)}function loginPageSubmitEvent(e){var r=e.target;if(r instanceof HTMLFormElement){var t=r.querySelector(".js--page-login__email-input"),n=r.querySelector('[name="failureUrl"]');t instanceof HTMLInputElement&&n instanceof HTMLInputElement&&(n.value=createNewFailureUrl(t,n))}}function addActiveToClickedBtnAndDeactiveOthers(e,r){r&&r!==""&&(document.querySelectorAll('[data-tab-selector="'+r+'"]').forEach(function(t){e!==t&&t.classList.remove("active")}),e.classList.add("active"))}function prepareUrlForStatePush(e){var r=new URL(window.location.href);return e?r.searchParams.set("activeTab",e):r.searchParams.delete("activeTab"),r}function addParamToUrl(e){var r=prepareUrlForStatePush(e);window.history.pushState({},"",r)}function removeAllActiveTabsNotEqualToSelected(e){var r=document.getElementById(e);if(r&&r instanceof HTMLElement){var t=r.dataset.tabContent;t&&t!==""&&document.querySelectorAll('[data-tab-content="'+t+'"]').forEach(function(n){n.id!==e?n.classList.remove("active"):n.classList.add("active")})}}function displayTab(e){e&&removeAllActiveTabsNotEqualToSelected(e)}function tabIdExists(e){if(e){var r=document.getElementById(e);return!!r}return!1}function getDefaultBtn(e){return document.querySelector('[data-active-tab="default"][data-tab-selector="'.concat(e,'"]'))}function displayDefaultTab(e){if(e&&e!==""){var r=getDefaultBtn(e);if(r&&r instanceof HTMLElement){var t=getTabProperties(r);tabIdExists(t.targetTab)&&(displayTab(t.targetTab),addParamToUrl(),addActiveToClickedBtnAndDeactiveOthers(r,t.tabSelector))}}}function displayActiveTab(e){if(e&&e instanceof HTMLElement){var r=getTabProperties(e);tabIdExists(r.targetTab)?(displayTab(r.targetTab),addParamToUrl(r.activeTab),addActiveToClickedBtnAndDeactiveOthers(e,r.tabSelector)):displayDefaultTab(r.tabSelector)}}function getTabProperties(e){var r=e.dataset.activeTab!=="default"?e.dataset.activeTab:void 0,t=e.dataset.targetTab?e.dataset.targetTab:void 0,n=e.dataset.tabSelector?e.dataset.tabSelector:void 0;return{activeTab:r,targetTab:t,tabSelector:n}}function tabSelectorEvent(e){e.currentTarget instanceof HTMLElement&&displayActiveTab(e.currentTarget)}function addListenerToAllTabSelectorBtns(){document.querySelectorAll("[data-tab-selector]").forEach(function(e){return e.addEventListener("click",tabSelectorEvent)})}function checkActiveTab(){var e=new URL(window.location.href);if(e){var r=e.searchParams.get("activeTab"),t=document.querySelector('[data-active-tab="'.concat(r,'"]'));displayActiveTab(t)}}function listenToFormSubmitForEmailInput(){document.querySelectorAll(".page-login__form").forEach(function(e){return e.addEventListener("submit",loginPageSubmitEvent)})}function loginServiceListenerInit(){var e=document.querySelector(".js--page-login");e&&(checkActiveTab(),listenToFormSubmitForEmailInput(),replacePreviousEncodedValueWithDecoded(),removeErrorClassOnInput())}var __assign$5=globalThis&&globalThis.__assign||function(){return __assign$5=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$5.apply(this,arguments)},__read$5=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$4=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function modifyExistingOrAddNewEntryToArray(e,r){var t=r.findIndex(function(n){return n.roleName===e.roleName&&n.permissionName===e.permissionName});return t>=0?(r[t].checked=e.checked,__spreadArray$4([],__read$5(r),!1)):__spreadArray$4(__spreadArray$4([],__read$5(r),!1),[e],!1)}function getPreviousRolePermissions(){var e=localStorage.getItem("rolePermissions");if(e&&e!=="")try{return JSON.parse(e)}catch(r){console.error(r)}return[]}function saveRolePermissionCheckedObj(e,r){var t=__assign$5(__assign$5({},e),{checked:r}),n=getPreviousRolePermissions(),i=modifyExistingOrAddNewEntryToArray(t,n);try{localStorage.setItem("rolePermissions",JSON.stringify(i))}catch(a){console.error(a)}}function getRoleAndPermissionFromInputName(e){if(e&&e!==""){var r=e.split(":");if(r&&r.length>0){var t=r[0],n=r[1];return{roleName:t,permissionName:n}}}return null}function listenToUserRolesToggleChange(e){if(e&&e.currentTarget instanceof HTMLInputElement){var r=e.currentTarget;if(r.name){var t=getRoleAndPermissionFromInputName(r.name);t&&saveRolePermissionCheckedObj(t,r.checked)}}}function findAndAddEventListenerToUserRolesToggle(){localStorage.removeItem("rolePermissions"),document.querySelectorAll(".js--user-roles-toggle").forEach(function(e){return e.addEventListener("change",listenToUserRolesToggleChange)})}function addMsgToFeedbackAndShowIt(e,r,t,n){var i=e.querySelector(".js--request-feedback");i&&i instanceof HTMLElement&&(i.innerText=r.trim(),t?i.classList.add("-success"):i.classList.add("-error"),i.classList.remove("hidden"),n&&n!==0&&setTimeout(function(){return removeAndHideFeedback(e)},n))}function removeAndHideFeedback(e){console.log(e),e&&e.getAttribute("_reloadOnClose")&&window.location.reload();var r=e.querySelector(".js--request-feedback");r&&r instanceof HTMLElement&&(r.innerText="",r.classList.add("hidden"),r.classList.remove("-success","-error"))}function showLoadingInsideElement(e){var r=getTemplateClone("js-loading-template");r&&r[0]&&e.append(r[0])}function removeLoadingElement(e){var r=e.querySelector(".js--loading-component-wrapper");r&&r instanceof HTMLElement&&e.removeChild(r)}function addGridAreaToText(e){var r=e.querySelector("span");r&&r.classList.add("loading-component-parent__text")}function disableSubmit(e){e.classList.add("loading-component-parent--active"),showLoadingInsideElement(e),addGridAreaToText(e),e instanceof HTMLButtonElement&&(e.disabled=!0)}function disableAllSubmitsInForm(e){e&&e instanceof HTMLFormElement&&e.querySelectorAll('[type="submit"]').forEach(function(r){return disableSubmit(r)})}function enableSubmit(e){e.classList.remove("loading-component-parent--active"),removeLoadingElement(e),e instanceof HTMLButtonElement&&(e.disabled=!1)}function enableAllSubmitsInForm(e){e&&e instanceof HTMLFormElement&&e.querySelectorAll('[type="submit"]').forEach(function(r){return enableSubmit(r)})}var __assign$4=globalThis&&globalThis.__assign||function(){return __assign$4=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$4.apply(this,arguments)},__awaiter$d=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$d=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function errorHandler(e,r){var t=prepareErrorMsg(e);addMsgToFeedbackAndShowIt(r,t),localStorage.removeItem("rolePermissions")}function successHandler(e){var r=getTemplateInnerText("successfull-update-user-roles-permissions-msg","Everything updated successfully");addMsgToFeedbackAndShowIt(e,r,!0,5e3),localStorage.removeItem("rolePermissions")}function getFetchOptions$2(){try{var e=localStorage.getItem("rolePermissions");if(e&&e!==""){var r=getDefaultFetchOptions(!1);return r.method="POST",r.body=e,r.headers=__assign$4(__assign$4({},r.headers),{"Content-Type":"application/json"}),Object.freeze(r)}return null}catch(t){return console.error(t),null}}function prepareErrorMsg(e){try{var r=JSON.parse(e);if(r&&Array.isArray(r)){var t=r.map(function(n){return n.roleName}).join(", ");return"Leider konnten die Rollen ".concat(t," nicht geändert werden. Bitte probieren Sie es später erneut")}}catch(n){console.error(n)}return getTemplateInnerText("default-error-updating-user-roles-permissions-msg")}function makePostRequest$4(e){return __awaiter$d(this,void 0,void 0,function(){var r,t,n;return __generator$d(this,function(i){switch(i.label){case 0:return r=e.action,t=getFetchOptions$2(),t?(disableAllSubmitsInForm(e),[4,fetch(r,t)]):[3,2];case 1:n=i.sent(),n.ok&&n.status===204?successHandler(e):n.text().then(function(a){return errorHandler(a,e)}),enableAllSubmitsInForm(e),i.label=2;case 2:return[2]}})})}function userRolesOverviewSubmitHandler(e){e&&e.currentTarget instanceof HTMLFormElement&&(e.preventDefault(),makePostRequest$4(e.currentTarget))}function addEventListenerToUserRolesForm(){var e=document.getElementById("user-roles-overview");e&&e.addEventListener("submit",userRolesOverviewSubmitHandler)}function fillDescriptionEditorWithInfo(e,r){r?e.value=r:e.value=""}function fillHiddenInputWithValue(e,r,t){var n=e.querySelector('input[name="'+r+'"]');n&&n instanceof HTMLInputElement&&(n.value=t)}function fillModalFormWithRoleInfo(e,r){var t=e.querySelector("#user-role-modal-description-editor");t&&t instanceof HTMLTextAreaElement&&fillDescriptionEditorWithInfo(t,r.description),fillHiddenInputWithValue(e,"roleName",r.roleName),fillHiddenInputWithValue(e,"displayValue",r.displayValue)}function getDatasetValue(e){return e||""}function getRolePermissionFromIcon(e){var r=getDatasetValue(e.dataset.roleName),t=getDatasetValue(e.dataset.description),n=getDatasetValue(e.dataset.displayValue);return{roleName:r,description:t,displayValue:n}}function editModalHeader$1(e,r){var t=e.querySelector("#user-roles-overview-modal-role-name");t&&t instanceof HTMLElement&&(t.innerText=r.displayValue)}function userRolesDescriptionEditorOpenerHandler(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget,t=getRolePermissionFromIcon(r),n=document.querySelector(".js--custom-modal-backdrop");if(n&&n instanceof HTMLElement){n.classList.remove("hidden"),editModalHeader$1(n,t);var i=n.querySelector("#user-role-update-form");i&&i instanceof HTMLFormElement&&fillModalFormWithRoleInfo(i,t)}}}function addEventListenerToUserRolesDescriptionEditorOpener(){document.querySelectorAll(".js--user-role-description-icon").forEach(function(e){return e.addEventListener("click",userRolesDescriptionEditorOpenerHandler)})}function removeErrorFromTextarea(e){var r=e.querySelector("#user-role-modal-description-editor");r&&r instanceof HTMLElement&&r.classList.remove("-error")}function cleanUpUserRolesDescriptionModal(e){removeAndHideFeedback(e),removeErrorFromTextarea(e)}function hideModal(e){e.classList.add("hidden")}
166function closeFormModal(e){var r=e.closest(".js--custom-modal-backdrop");r&&r instanceof HTMLElement&&(hideModal(r),removeAndHideFeedback(r))}function closeModal(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest(".js--custom-modal-backdrop");r&&r instanceof HTMLElement&&(hideModal(r),removeAndHideFeedback(r))}}function closeBtnHandler(){document.querySelectorAll(".js--custom-modal-close").forEach(function(e){e&&e instanceof HTMLElement&&e.addEventListener("click",closeModal)})}function checkIfEventTargetIsModalContent(e){return e instanceof HTMLElement&&e.classList.contains("js--custom-modal-content")}function closeModalOnOutsideClickHandler(e,r){var t=e.composedPath().some(function(n){return checkIfEventTargetIsModalContent(n)});t||(r.classList.add("hidden"),removeAndHideFeedback(r))}function outsideClickHandler(){document.querySelectorAll(".js--custom-modal-backdrop").forEach(function(e){e&&e instanceof HTMLElement&&e.addEventListener("click",function(r){return closeModalOnOutsideClickHandler(r,e)})})}function modalListeners(){outsideClickHandler(),closeBtnHandler()}function convertFormDataToRoleEntity(e){var r,t,n=e.get("roleName");if(!n||n==="")throw new Error("Can not update role, because roleName is not set");var i=e.get("displayValue");if(!i||i==="")throw new Error("Can not update role, because displayValue is not set");var a=(t=(r=e.get("description"))===null||r===void 0?void 0:r.toString())!==null&&t!==void 0?t:"";return{roleName:n.toString(),description:a.toString(),displayValue:i.toString()}}var __assign$3=globalThis&&globalThis.__assign||function(){return __assign$3=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$3.apply(this,arguments)};function getFetchOptionsForRoleEntityCreationOrChange(e){try{if(e){var r=getDefaultFetchOptions(!1);return r.method="POST",r.body=JSON.stringify(convertFormDataToRoleEntity(e)),r.headers=__assign$3(__assign$3({},r.headers),{"Content-Type":"application/json"}),Object.freeze(r)}return null}catch(t){return console.error(t),null}}var __awaiter$c=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$c=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function handleError$3(e,r){return __awaiter$c(this,void 0,void 0,function(){var t;return __generator$c(this,function(n){return t=e,(!t||t==="")&&(t=getTemplateInnerText("default-error-updating-user-roles-description-msg","There was an error updating the current role description. Please try again later.")),addMsgToFeedbackAndShowIt(r,t),[2]})})}function handleSuccess$3(e){var r=getTemplateInnerText("successfull-update-user-roles-description-msg","Everything updated successfully"),t=2500;addMsgToFeedbackAndShowIt(e,r,!0,t),setTimeout(function(){closeFormModal(e),cleanUpUserRolesDescriptionModal(e)},t)}function updateDescriptionIcon(e){var r=e.get("roleName");if(r){var t=document.getElementById("role-".concat(r.toString(),"-icon"));if(t&&t instanceof HTMLElement){var n=e.get("description");n!==null&&(t.dataset.description=n.toString())}}}function makePostRequest$3(e){return __awaiter$c(this,void 0,void 0,function(){var r,t,n,i;return __generator$c(this,function(a){switch(a.label){case 0:return r=e.action,r&&r!==""?(t=new FormData(e),n=getFetchOptionsForRoleEntityCreationOrChange(t),n?[4,fetch(r,n)]:[3,2]):[3,2];case 1:i=a.sent(),i.ok&&i.status===204?(updateDescriptionIcon(t),handleSuccess$3(e)):i.text().then(function(s){return handleError$3(s,e)}),enableAllSubmitsInForm(e),a.label=2;case 2:return[2]}})})}function handleUserRoleDescriptionSubmitEvent(e){if(e.currentTarget&&e.currentTarget instanceof HTMLFormElement){e.preventDefault();var r=e.currentTarget;disableAllSubmitsInForm(r),makePostRequest$3(r)}}var __awaiter$b=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$b=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function handleError$2(e,r){return __awaiter$b(this,void 0,void 0,function(){var t;return __generator$b(this,function(n){return t=e,(!t||t==="")&&(t=getTemplateInnerText("error-create-user-role-msg","There was an error creating a new role. Please try again later.")),addMsgToFeedbackAndShowIt(r,t),[2]})})}function handleSuccess$2(e){var r=getTemplateInnerText("successfull-create-user-role-msg","Role created successfully."),t=2500;addMsgToFeedbackAndShowIt(e,r,!0,t),setTimeout(function(){return window.location.reload()},t)}function makePostRequest$2(e){return __awaiter$b(this,void 0,void 0,function(){var r,t,n,i;return __generator$b(this,function(a){switch(a.label){case 0:return r=e.action,t=new FormData(e),n=getFetchOptionsForRoleEntityCreationOrChange(t),n?(disableAllSubmitsInForm(e),[4,fetch(r,n)]):[3,2];case 1:i=a.sent(),i.ok&&i.status===204?handleSuccess$2(e):i.text().then(function(s){return handleError$2(s,e)}),enableAllSubmitsInForm(e),a.label=2;case 2:return[2]}})})}function handleNewRoleSubmitEvent(e){e.currentTarget&&e.currentTarget instanceof HTMLFormElement&&(e.preventDefault(),makePostRequest$2(e.currentTarget))}function showNewRoleModalClickHandler(){var e=document.getElementById("create-new-role-modal");e&&e instanceof HTMLElement&&e.classList.remove("hidden")}function addListenerToNewRoleClick(){document.querySelectorAll(".js--show-new-role-modal").forEach(function(e){return e.addEventListener("click",
166showNewRoleModalClickHandler)})}function editModalHeader(e,r){var t=e.querySelector(".js--modal-title");t&&t instanceof HTMLElement&&(t.innerText="Wollen Sie die Rolle ".concat(r," löschen?"))}function addRoleNameToHiddenInput(e,r){var t=e.querySelector("#user-role-remove-role-name");t&&t instanceof HTMLInputElement&&(t.value=r)}function showRemoveRoleModalHandler(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.dataset.roleName,t=e.currentTarget.dataset.displayName;if(r&&r!==""&&t&&t!==""){var n=document.getElementById("remove-role-modal");n&&n instanceof HTMLElement&&(n.classList.remove("hidden"),addRoleNameToHiddenInput(n,r),editModalHeader(n,t))}}}function addListenerToRemoveRoleClick(){document.querySelectorAll(".js--remove-current-role").forEach(function(e){return e.addEventListener("click",showRemoveRoleModalHandler)})}var __assign$2=globalThis&&globalThis.__assign||function(){return __assign$2=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$2.apply(this,arguments)},__awaiter$a=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$a=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function handleError$1(e,r){return __awaiter$a(this,void 0,void 0,function(){var t;return __generator$a(this,function(n){return t=e,(!t||t==="")&&(t=getTemplateInnerText("error-remove-user-role-msg","There was an error deleting the current role. Please try again later.")),addMsgToFeedbackAndShowIt(r,t),[2]})})}function handleSuccess$1(e){var r=getTemplateInnerText("successfull-remove-user-role-msg","Everything updated successfully"),t=2500;addMsgToFeedbackAndShowIt(e,r,!0,t),setTimeout(function(){return window.location.reload()},t)}function getFetchOptions$1(e){var r=getDefaultFetchOptions(!1);return r.method="POST",r.body=e,r.headers=__assign$2({},r.headers),Object.freeze(r)}function getRoleNameFromForm(e){var r,t;return(t=(r=e.get("roleName"))===null||r===void 0?void 0:r.toString())!==null&&t!==void 0?t:""}function makePostRequest$1(e){return __awaiter$a(this,void 0,void 0,function(){var r,t,n,i,a;return __generator$a(this,function(s){switch(s.label){case 0:return r=e.action,t=new FormData(e),n=getRoleNameFromForm(t),n&&n!==""?(i=getFetchOptions$1(n),i?(disableAllSubmitsInForm(e),[4,fetch(r,i)]):[3,2]):[3,2];case 1:a=s.sent(),a.ok&&a.status===204?handleSuccess$1(e):a.text().then(function(c){return handleError$1(c,e)}),enableAllSubmitsInForm(e),s.label=2;case 2:return[2]}})})}function userRolesRemoveSubmitHandler(e){e&&e.currentTarget instanceof HTMLFormElement&&(e.preventDefault(),makePostRequest$1(e.currentTarget))}
166function addEventListenerToUserRolesRemoveForm(){var e=document.getElementById("user-role-remove-role");e&&e.addEventListener("submit",userRolesRemoveSubmitHandler)}function createUserListEntry(e){var r=document.createElement("li");return r.appendChild(document.createTextNode(e)),r.classList.add("user-role-user-list__entry"),r}function addUsersToUserListModal(e,r){var t=r.split(","),n=e.querySelector("#user-roles-user-list");n&&n instanceof HTMLUListElement&&(n.innerHTML="",t.map(function(i){return createUserListEntry(i)}).forEach(function(i){return n.appendChild(i)}))}function showModalWithUsersForRole(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.dataset.users;if(r&&r!==""){var t=document.getElementById("user-role-list-modal");t&&t instanceof HTMLElement&&(addUsersToUserListModal(t,r),t.classList.remove("hidden"))}}}function addListenerToShowUsersClick(){document.querySelectorAll(".js--user-role-user-list").forEach(function(e){return e.addEventListener("click",showModalWithUsersForRole)})}function addUserRolesListener(){findAndAddEventListenerToUserRolesToggle(),addEventListenerToUserRolesForm(),addEventListenerToUserRolesDescriptionEditorOpener(),addListenerToNewRoleClick(),addListenerToRemoveRoleClick(),addEventListenerToUserRolesRemoveForm(),addListenerToShowUsersClick();var e=document.getElementById("user-role-update-form");e&&e instanceof HTMLFormElement&&e.addEventListener("submit",handleUserRoleDescriptionSubmitEvent);var r=document.getElementById("user-role-new-role-form");r&&r instanceof HTMLFormElement&&r.addEventListener("submit",handleNewRoleSubmitEvent)}function addAddressIdToHiddenInput(e,r){var t=e.querySelector("#addresses-remove-addressId");t&&t instanceof HTMLInputElement&&(t.value=r)}function setTextInHtml(e,r,t){var n=e.querySelector(r);t&&t!==""&&n&&n instanceof HTMLElement&&(n.innerText=t+`\r 167`)}function addCompanyName(e,r){setTextInHtml(e,"#addresses-remove-companyName",r.companyname)}function addFirstNameAndLastNameWithSalutation(e,r){var t="",n=r.salutation;n&&n!==""&&(t=n+" ");var i=r.firstname;i&&i!==""&&(t=t+i+" ");var a=r.lastname;a&&a!==""&&(t=t+a),setTextInHtml(e,"#addresses-remove-firstAndLastNameWithSalutation",t)}function addStreetAndNumber(e,r){var t="",n=r.street;n&&n!==""&&(t=n+" ");var i=r.streetnumber;i&&i!==""&&(t=t+i),setTextInHtml(e,"#addresses-remove-streetAndNumber",t)}function addzipCodeAndCity(e,r){var t="",n=r.zipcode;n&&n!==""&&(t=n+" ");var i=r.city;i&&i!==""&&(t=t+i),setTextInHtml(e,"#addresses-remove-zipCodeAndCity",t)}function addAddressAddition(e,r){setTextInHtml(e,"#addresses-remove-addressAddition",r.addressaddition)}function addCountry(e,r){setTextInHtml(e,"#addresses-remove-country",r.country)}function addPhone(e,r){setTextInHtml(e,"#addresses-remove-phone",r.phone)}function addName1Name2Name3(e,r){var t="",n=r.name1;n&&n!==""&&(t=t+" "+n);var i=r.name2;i&&i!==""&&(t=t+" "+i);var a=r.name3;a&&a!==""&&(t=t+" "+a),t!==""&&setTextInHtml(e,"#addresses-remove-name1name2name3",t)}function showRemoveAddressModalHandler(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.dataset.addressid;if(r&&r!==""){var t=document.getElementById("remove-address-modal");t&&t instanceof HTMLElement&&(addAddressIdToHiddenInput(t,r),addCompanyName(t,e.currentTarget.dataset),addName1Name2Name3(t,e.currentTarget.dataset),addFirstNameAndLastNameWithSalutation(t,e.currentTarget.dataset),addStreetAndNumber(t,e.currentTarget.dataset),addAddressAddition(t,e.currentTarget.dataset),addzipCodeAndCity(t,e.currentTarget.dataset),addCountry(t,e.currentTarget.dataset),addPhone(t,e.currentTarget.dataset),t.classList.remove("hidden"))}}}function addListenerToRemoveAddressClick(){document.querySelectorAll(".js--remove-current-address").forEach(function(e){return e.addEventListener("click",showRemoveAddressModalHandler)})}var __assign$1=globalThis&&globalThis.__assign||function(){return __assign$1=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign$1.apply(this,arguments)},__awaiter$9=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$9=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function handleError(e,r){return __awaiter$9(this,void 0,void 0,function(){var t;return __generator$9(this,function(n){return t=e,(!t||t==="")&&(t=getTemplateInnerText("error-remove-address-msg","There was an error deleting the current role. Please try again later.")),addMsgToFeedbackAndShowIt(r,t),[2]})})}function handleSuccess(e){var r=getTemplateInnerText("successfull-remove-address-msg","Everything updated successfully"),t=2500;addMsgToFeedbackAndShowIt(e,r,!0,t),setTimeout(function(){return window.location.reload()},t)}function getFetchOptions(){var e=getDefaultFetchOptions(!1);return e.method="DELETE",e.headers=__assign$1({},e.headers),Object.freeze(e)}function getAddressIdFromForm(e){var r,t;return(t=(r=e.get("addressId"))===null||r===void 0?void 0:r.toString())!==null&&t!==void 0?t:""}function makePostRequest(e){return __awaiter$9(this,void 0,void 0,function(){var r,t,n,i,a;return __generator$9(this,function(s){switch(s.label){case 0:return r=new FormData(e),t=getAddressIdFromForm(r),n=e.action+t,t&&t!==""?(i=getFetchOptions(),i?(disableAllSubmitsInForm(e),[4,fetch(n,i)]):[3,2]):[3,2];case 1:a=s.sent(),a.ok&&a.status===204?handleSuccess(e):a.text().then(function(c){return handleError(c,e)}),enableAllSubmitsInForm(e),s.label=2;case 2:return[2]}})})}function addressRemoveSubmitHandler(e){e&&e.currentTarget instanceof HTMLFormElement&&(e.preventDefault(),makePostRequest(e.currentTarget))}
167function addEventListenerToAddressRemoveForm(){var e=document.getElementById("addresses-remove-address");e&&e.addEventListener("submit",addressRemoveSubmitHandler)}var __values$d=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function toggleDetailSummary(e){var r,t;if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var n=e.currentTarget.getElementsByClassName("detailHeadline");try{for(var i=__values$d(n),a=i.next();!a.done;a=i.next()){var s=a.value;s.classList.toggle("hidden")}}catch(c){r={error:c}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}}}function addListenerDeliveryInstructionDetailOnClick(){document.querySelectorAll(".js--deliveryInstruction").forEach(function(e){return e.addEventListener("click",toggleDetailSummary)})}function addAddressListener(){addListenerToRemoveAddressClick(),addEventListenerToAddressRemoveForm(),addListenerDeliveryInstructionDetailOnClick()}function checkDatalistOptionsForSpecificValue(e,r,t){var n,i;if(e instanceof HTMLDataListElement){for(var a=0;a<e.options.length;a++)if(((n=e.options.item(a))===null||n===void 0?void 0:n.value)===r)return(i=e.options.item(a))===null||i===void 0?void 0:i.dataset[t]}return""}function getDatalistSpecificValue(e,r){if(e instanceof HTMLInputElement){var t=e.getAttribute("list");if(t&&t!==""){var n=document.getElementById(t);return checkDatalistOptionsForSpecificValue(n,e.value,r)}}return null}function getHiddenPageInputElement(){var e=document.querySelector(".js--hidden-page-input");return e&&e instanceof HTMLInputElement?e:null}function handleClickOnPaginationElement(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.dataset.page;if(r){var t=getHiddenPageInputElement();t&&(t.value=r)}}}function listenToPaginationClicks(){document.querySelectorAll(".js--member-overview-pagination-element").forEach(function(e){return e.addEventListener("click",handleClickOnPaginationElement)})}function updateHiddenInputForPage(e){var r=document.querySelector(".js--hidden-page-input");r&&r instanceof HTMLInputElement&&(r.value=e)}function submitClosestFormOnChange(e){if(e.currentTarget&&e.currentTarget instanceof HTMLSelectElement){var r=e.currentTarget.closest("form");r&&r instanceof HTMLFormElement&&(updateHiddenInputForPage("0"),r.submit())}}function listenToSelectPageSizeChange(){document.querySelectorAll(".js--pagination-size-select").forEach(function(e){return e.addEventListener("change",submitClosestFormOnChange)})}function updateHiddenMemberOverviewFilterCompany(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=document.getElementById("memberOverviewFilterCompany");if(r&&r instanceof HTMLInputElement){var t=getDatalistSpecificValue(e.currentTarget,"merchantId");t!=null?r.value=t:r.value=""}}}function submitCompanySearchForm$1(e){var r;e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&((r=e.currentTarget.form)===null||r===void 0||r.submit())}function listenToCompanyFilterSearch(){var e,r;(e=document.getElementById("member-overview-filter-company"))===null||e===void 0||e.addEventListener("change",updateHiddenMemberOverviewFilterCompany),(r=document.getElementById("member-overview-filter-company"))===null||r===void 0||r.addEventListener("focusout",submitCompanySearchForm$1)}function removeUrlSearchParamOnLoad(){var e=new URL(document.location.href);if(e){var r=e.searchParams;r.get("page")&&r.get("page")==="0"&&(r.delete("page"),window.history.replaceState(null,"",e))}}function addMemberOverviewListener(){listenToPaginationClicks(),listenToSelectPageSizeChange(),removeUrlSearchParamOnLoad(),listenToCompanyFilterSearch()}function getPasswordFields(e){var r=e.querySelector("input[name='password']"),t=e.querySelector("input[name='password-repeat']");return r&&r instanceof HTMLInputElement&&t&&t instanceof HTMLInputElement?{password:r,passwordRepeat:t}:null}function checkIfBothPasswordMatch(e,r){var t=getPasswordFields(r);if(t)if(t.password.value!==t.passwordRepeat.value){var n=getTemplateInnerText("password-does-not-match-msg");t.passwordRepeat.setCustomValidity(n),t.passwordRepeat.reportValidity(),enableAllSubmitsInForm(r),e.preventDefault()}else t.passwordRepeat.setCustomValidity("")}function handleMemberEditSubmit(e){if(e.currentTarget&&e.currentTarget instanceof HTMLFormElement){var r=e.currentTarget;disableAllSubmitsInForm(r),checkIfBothPasswordMatch(e,r)}}function addInputListenersToPasswordFields(e){var r=getPasswordFields(e);r&&r.passwordRepeat.addEventListener("change",function(){r.passwordRepeat.setCustomValidity("")})}function updateSelectedMerchantId(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=getDatalistSpecificValue(e.currentTarget,"merchantId");if(r!=null){var t=document.getElementById("merchantId");t&&t instanceof HTMLInputElement&&(t.value=r)}}}function listenForCompanySelection(){var e;(e=document.getElementById("member-edit-company-selector"))===null||e===void 0||e.addEventListener("input",updateSelectedMerchantId)}function addListenerToMemberEditForm(){listenForCompanySelection();var e=document.getElementById("account-member-edit-form");e&&e instanceof HTMLFormElement&&(e.addEventListener("submit",handleMemberEditSubmit),addInputListenersToPasswordFields(e))}function setValueOfTimetable(e,r,t){document.querySelectorAll('input[type="time"][data-mcs="'+t+'"]:not([data-day-of-week="MONDAY"]):not([data-day-of-week="SUNDAY"])[data-timetable="'+e+'"]').forEach(function(n){n instanceof HTMLInputElement&&(n.value=r)})}function getTimetableFromEntry(e){var r=e.querySelector('input[data-timetable="from"]'),t=e.querySelector('input[data-timetable="till"]'),n=e.querySelector('input[data-timetable="add-from"]'),i=e.querySelector('input[data-timetable="add-till"]');return r&&r instanceof HTMLInputElement&&t&&t instanceof HTMLInputElement&&n&&n instanceof HTMLInputElement&&i&&i instanceof HTMLInputElement?{from:r.value,till:t.value,addFrom:n.value,addTill:i.value}:null}function applyTimesToAllOtherTimes(e){if(e.currentTarget&&e.currentTarget instanceof HTMLButtonElement){var r=e.currentTarget.dataset.targetMcs;if(r&&r!==""){var t=e.currentTarget.closest('.js--opening-hour-entry[data-mcs="'.concat(r,'"]'));if(t&&t instanceof HTMLElement){var n=getTimetableFromEntry(t);n&&(setValueOfTimetable("from",n.from,r),setValueOfTimetable("till",n.till,r),setValueOfTimetable("add-from",n.addFrom,r),setValueOfTimetable("add-till",n.addTill,r))}}}}function addListenerToApplyToAllTimesBtn(){document.querySelectorAll(".js--set-all-other-times-same").forEach(function(e){return e.addEventListener("click",applyTimesToAllOtherTimes)})}function addListenerToCountrySelectInput(e){if(e.currentTarget&&e.currentTarget instanceof HTMLSelectElement){var r=e.currentTarget.dataset.target;if(r&&r!=""){var t=document.querySelector(r);if(t&&t instanceof HTMLSelectElement){var n=e.currentTarget.selectedOptions[0].value;t.selectedIndex=0,t.querySelectorAll("option").forEach(function(i){var a=i.dataset.country;a&&a!==""&&a!==n?i.classList.add("hidden"):i.classList.remove("hidden")})}}}}function addListenerToCountrySelector(){document.querySelectorAll(".js--merchant-address-selector").forEach(function(e){return e.addEventListener("change",addListenerToCountrySelectInput)})}function displayDomainOrUrlChange$1(e){var r,t,n,i;if(e.currentTarget&&e.currentTarget instanceof HTMLSelectElement){var a=e.currentTarget.selectedOptions[0].value;a==="true"?((r=document.querySelector('div[data-shop-selector-target="domain"]'))===null||r===void 0||r.classList.remove("hidden"),(t=document.querySelector('div[data-shop-selector-target="url"]'))===null||t===void 0||t.classList.add("hidden")):((n=document.querySelector('div[data-shop-selector-target="domain"]'))===null||n===void 0||n.classList.add("hidden"),(i=document.querySelector('div[data-shop-selector-target="url"]'))===null||i===void 0||i.classList.remove("hidden"))}}function addListenerToShopDomainUrlSelector(){document.querySelectorAll(".js--merchant-settings-domain-url-selector").forEach(function(e){return e.addEventListener("change",displayDomainOrUrlChange$1)})}function updateSelectedExternalReferenceId(){if(this instanceof HTMLInputElement){var e=getDatalistSpecificValue(this,"referenceShopExternalId");if(e!=null){var r=document.getElementById("accountMerchantEditView.referenceShopExternalId");r&&r instanceof HTMLInputElement&&(r.value=e)}}}function handleReferenceShopSelection(){var e;(e=document.getElementById("merchant-edit-company-selector"))===null||e===void 0||e.addEventListener("input",updateSelectedExternalReferenceId)}var __values$c=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);
167if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function enableAssortmentCheckboxes(){var e,r,t=document.getElementById("hq-merchant-assortment");if(t instanceof HTMLElement){var n=t.getElementsByTagName("input");try{for(var i=__values$c(n),a=i.next();!a.done;a=i.next()){var s=a.value;s.removeAttribute("readonly")}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}function disableAssortmentCheckboxes(){var e,r,t=document.getElementById("hq-merchant-assortment");if(t instanceof HTMLElement){var n=t.getElementsByTagName("input");try{for(var i=__values$c(n),a=i.next();!a.done;a=i.next()){var s=a.value;s.setAttribute("readonly","true")}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}function handleHqAssortmentCheckboxes(e){e?enableAssortmentCheckboxes():disableAssortmentCheckboxes()}function handleHqMerchantActivation(){var e=document.getElementById("hq-merchant-activation");e instanceof HTMLInputElement&&handleHqAssortmentCheckboxes(e.checked)}function addListenerToHqMerchantActivation(){var e;(e=document.getElementById("hq-merchant-activation"))===null||e===void 0||e.addEventListener("change",handleHqMerchantActivation)}function updateRequiredFields(){this instanceof HTMLInputElement&&(this.checked?document.querySelectorAll(".js__required-for-import").forEach(function(e){return e.setAttribute("required","required")}):document.querySelectorAll(".js__required-for-import").forEach(function(e){return e.removeAttribute("required")}))}function handleErpImportActiveChange(){var e;(e=document.querySelector(".js__erp-import-schedule__status-check"))===null||e===void 0||e.addEventListener("change",updateRequiredFields)}function initRequiredFieldForErpImports(){var e=document.querySelector(".js__erp-import-schedule__status-check");e instanceof HTMLInputElement&&e.checked&&document.querySelectorAll(".js__required-for-import").forEach(function(r){return r.setAttribute("required","required")})}function addMerchantEditListeners(){addListenerToApplyToAllTimesBtn(),addListenerToCountrySelector(),addListenerToShopDomainUrlSelector(),addListenerToHqMerchantActivation(),handleReferenceShopSelection(),initRequiredFieldForErpImports(),handleErpImportActiveChange()}function closeAllOtherDetailsTags(e,r){var t;(t=document.querySelectorAll('details[data-toggle-group="'.concat(r,'"]')))===null||t===void 0||t.forEach(function(n){n!==e?n.removeAttribute("open"):n.setAttribute("open","open")})}function openOrCloseOtherDetailsTags(e){if(e.currentTarget&&e.currentTarget instanceof HTMLDetailsElement&&e.currentTarget.open){var r=e.currentTarget.dataset.toggleGroup;r&&r!==""&&closeAllOtherDetailsTags(e.currentTarget,r)}}function listenToDetailsTagsWithGroupData(){document.querySelectorAll("details[data-toggle-group]").forEach(function(e){return e.addEventListener("toggle",openOrCloseOtherDetailsTags)})}function addZipcodeDataToParentRow(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=e.currentTarget.closest("tr");r&&r instanceof HTMLElement&&(r.dataset.zipcode=e.currentTarget.value)}}function toggleActiveState(e){e.classList.contains("-to-be-removed")?(e.classList.remove("-to-be-removed"),e.querySelectorAll("input").forEach(function(r){return r.removeAttribute("disabled")})):(e.classList.add("-to-be-removed"),e.querySelectorAll("input").forEach(function(r){return r.disabled=!0}))}function toggleRemoveMarker(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("tr");r&&toggleActiveState(r)}}function addListenerToRemoveIcon(){document.querySelectorAll(".js--remove-zipcode-entry").forEach(function(e){return e.addEventListener("click",toggleRemoveMarker)})}function findCheckBoxAndToggleValue(e,r){if(e&&e instanceof HTMLElement){var t=e.querySelector('input[type="checkbox"]');t&&t instanceof HTMLInputElement&&(t.checked=r)}}function selectUnselectAllInCurrentCol(e){var r,t;if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var n=e.currentTarget.checked,i=e.currentTarget.closest("th");i&&((t=(r=i.closest("table"))===null||r===void 0?void 0:r.querySelector("tbody"))===null||t===void 0||t.querySelectorAll("td:nth-child(".concat(i.cellIndex+1,")")).forEac
167h(function(a){return findCheckBoxAndToggleValue(a,n)}))}}function addListenerToSelectAllCheckbox(){document.querySelectorAll(".delivery-area__filter-all-check").forEach(function(e){return e.addEventListener("change",selectUnselectAllInCurrentCol)})}function unselectAllSelection(e){var r,t;if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&!e.currentTarget.checked){var n=e.currentTarget.closest("td");if(n){var i=(t=(r=n.closest("table"))===null||r===void 0?void 0:r.querySelector("thead th:nth-child(".concat(n.cellIndex+1,")")))===null||t===void 0?void 0:t.querySelector('input[type="checkbox"]');i&&i instanceof HTMLInputElement&&(i.checked=!1)}}}function addListenerToSingleEntryCheckboxToUnselectAll(){document.querySelectorAll(".js--table-entry-checkbox").forEach(function(e){return e.addEventListener("change",unselectAllSelection)})}function deliveryAreaCheckboxListeners(){addListenerToSingleEntryCheckboxToUnselectAll(),addListenerToSelectAllCheckbox()}function addEventListenerToCheckboxUnselectAll(e){e.querySelectorAll(".js--table-entry-checkbox").forEach(function(r){return r.addEventListener("change",unselectAllSelection)})}function addEventListenerToRemoveClick(e){var r;(r=e.querySelector(".js--remove-zipcode-entry"))===null||r===void 0||r.addEventListener("click",toggleRemoveMarker)}function addEventListenerToZipcodeInput(e){var r;(r=e.querySelector(".js--new-zipcode-entry-input"))===null||r===void 0||r.addEventListener("input",addZipcodeDataToParentRow)}function fillSingleInputWithIndex(e,r){var t=e.name.replace("[]","[".concat(r,"]"));e.name=t,e.id=t}function fillInputsWithIndex(e,r){var t=0;r===0&&(t=1),r&&(t=r!=-1?r+1:0),e.querySelectorAll("input").forEach(function(n){return fillSingleInputWithIndex(n,t)})}function createNewRow(e,r,t){var n=getTemplateClone(r==="b2c"?"template-new-zipcode-entry-b2c":"template-new-zipcode-entry-b2b");if(n&&n[0]){var i=e.querySelector("tbody");i&&(fillInputsWithIndex(n[0],t),addEventListenerToZipcodeInput(n[0]),addEventListenerToRemoveClick(n[0]),addEventListenerToCheckboxUnselectAll(n[0]),i.insertBefore(n[0],i.firstChild))}}function getIndexFromInput(e){var r=e.name.match(/\[(\d+?)]/i);return r&&r.length===2?parseInt(r[1]):0}function getLatestIndex(e){var r=Array.from(e.querySelectorAll("tbody td:nth-child(1) input"));if(r.length>0){var t=r.map(function(n){return n instanceof HTMLInputElement?getIndexFromInput(n):-1});return Math.max.apply(Math,t)}return-1}function addNewEntryToTable(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("table"),t=e.currentTarget.dataset.mcs;if(r&&t){var n=getLatestIndex(r);n!=-1?createNewRow(r,t,n):createNewRow(r,t)}}}function addListenerToAddNewEntryBtn(){document.querySelectorAll(".js--add-new-zipcode-entry").forEach(function(e){return e.addEventListener("click",addNewEntryToTable)})}function limitByValue(e,r,t){r.querySelectorAll("tr[data-zipcode]").forEach(function(n){if(n instanceof HTMLTableRowElement){var i=n.dataset.zipcode;i&&i!==""&&(i.includes(e)?t&&tableEntryContainsAllInactiveCheckboxes(n)||n.classList.remove("hidden"):n.classList.add("hidden"))}})}function tableEntryContainsAllInactiveCheckboxes(e){return!Array.from(e.querySelectorAll('input[type="checkbox"]')).some(function(r){return r.checked})}function showAll(e,r){e.querySelectorAll("tr[data-zipcode]").forEach(function(t){if(t instanceof HTMLTableRowElement){var n=t.dataset.zipcode;n&&n!==""&&(r&&tableEntryContainsAllInactiveCheckboxes(t)||t.classList.remove("hidden"))}})}function filterByInput(e,r,t){e&&e!==""?limitByValue(e,r,t):showAll(r,t)}function searchForPlz(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=e.currentTarget,t=e.currentTarget.dataset.filterAllActive?e.currentTarget.dataset.filterAllActive==="true":!1,n=e.currentTarget.dataset.targetTable;if(n&&n!==""){var i=document.querySelector(".js--delivery-area-table-".concat(n));i&&i instanceof HTMLTableElement&&filterByInput(r.value,i,t)}}}function listenToPlzSearchInput(){for(var e=document.getElementsByClassName("js--zip-code-search"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLInputElement&&t.addEventListener("input",searchForPlz)}}var __awaiter$8=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$8=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},__read$4=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$3=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},__values$b=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);
167if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},IMPORT_ERRORS="importErrors";function getDeliveryAreaViews(e){var r,t,n=[],i={};__spreadArray$3([],__read$4(e.keys()),!1).filter(function(p){return!p.startsWith("_")}).forEach(function(p){var b=p.match(/\[(\d+)]/);if(b&&b.length===2){var m=p.split(".");m&&m.length>2&&(typeof i[String(b[1])]>"u"&&(i[String(b[1])]={}),i[String(b[1])][m[2]]=e.get(p))}});try{for(var a=__values$b(Object.entries(i)),s=a.next();!s.done;s=a.next()){var c=__read$4(s.value,2),h=c[0],l=c[1];Object.keys(l).length>1&&n.push(l)}}catch(p){r={error:p}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return n}function createErrorTextForeachError(e){var r=document.createElement("p");return r.classList.add("delivery-area__error-title"),r.textContent=e,r}function findElement(e){return e.fieldName.includes("zipcode")?document.querySelector('[data-error-target="'.concat(e.context,'.zipcode"]')):document.querySelector('[data-error-target="deliveryAreaView'.concat(e.context,".").concat(e.fieldName,'"]'))}function handleSingleErrorDisplay(e){var r=findElement(e);r&&r instanceof HTMLElement&&(r.classList.remove("hidden"),e.error.map(createErrorTextForeachError).forEach(function(t){return r.appendChild(t)}))}function handleErrorDisplay(e){var r;(r=document.getElementById("delivery-area-validation-error-message"))===null||r===void 0||r.classList.remove("validation-error-message__hidden"),e.forEach(handleSingleErrorDisplay)}function reloadAndDisplaySuccessMsg(e){var r=new URL(window.location.href);r.searchParams.delete("b2cSuccess"),r.searchParams.delete("b2bSuccess");var t=e?"b2cSuccess":"b2bSuccess";r.searchParams.append(t,"true"),window.location.assign(r)}function handleDeliveryAreaSubmit(e,r){return __awaiter$8(this,void 0,void 0,function(){var t,n,i,a,s,c,h,l,p,p;return __generator$8(this,function(b){switch(b.label){case 0:return e.preventDefault(),e.stopPropagation(),e.currentTarget&&e.currentTarget instanceof HTMLFormElement?(t=e.currentTarget,n=new FormData(t),i=getDeliveryAreaViews(n),a=new FormData,s=r?"deliveryAreaViewB2C":"deliveryAreaViewB2B",t["".concat(s,".importedCsv")].files[0]?a.append("importedCsv",t["".concat(s,".importedCsv")].files[0]):a.append("importedCsv",new Blob),c={},c[s]={deliveryDistance:String(n.get("".concat(s,".deliveryDistance"))),homeRadius:String(n.get("".concat(s,".homeRadius"))),deliveryAreaViews:i},a.append("deliveryAreaView",new Blob([JSON.stringify(c)],{type:"application/json"})),h=String(n.get("_csrf")),h&&h!==""?[4,fetch(t.action,{method:t.method,headers:{"X-CSRF-TOKEN":h},body:a})]:[3,6]):[3,6];case 1:return l=b.sent(),l.status!==201?[3,2]:(reloadAndDisplaySuccessMsg(r),[3,6]);case 2:return l.status!==207?[3,4]:[4,l.json()];case 3:return p=b.sent(),sessionStorage.setItem(IMPORT_ERRORS,JSON.stringify(p)),reloadAndDisplaySuccessMsg(r),[3,6];case 4:return[4,l.json()];case 5:p=b.sent(),handleErrorDisplay(p),b.label=6;case 6:return[2]}})})}function checkIfErrorsWerePassedAndDisplayThem(){var e=sessionStorage.getItem("importErrors");if(sessionStorage.removeItem("importErrors"),e&&e!=="")try{var r=JSON.parse(e);handleErrorDisplay(r)}catch(t){console.error(t)}}function listenToSubmitOfDeliveryAreas(){var e,r;(e=document.getElementById("delivery-area-b2c-form"))===null||e===void 0||e.addEventListener("submit",function(t){return handleDeliveryAreaSubmit(t,!0)}),(r=document.getElementById("delivery-area-b2b-form"))===null||r===void 0||r.addEventListener("submit",function(t){return handleDeliveryAreaSubmit(t,!1)}),checkIfErrorsWerePassedAndDisplayThem()}function listenToDeliveryAreaEvents(){addListenerToAddNewEntryBtn(),listenToPlzSearchInput(),addListenerToRemoveIcon(),deliveryAreaCheckboxListeners(),listenToSubmitOfDeliveryAreas()}function removeCustomValidity(e){e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&e.currentTarget.setCustomValidity("")}function removeCustomValidityOnInputChange(){for(var e=document.getElementsByClassName("js--remove-custom-validity-on-input"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLInputElement&&t.addEventListener("input",removeCustomValidity)}}function showErrorOnInvalidInput(){var e,r;(r=(e=document.getElementById("deliveryCostViewmodel"))===null||e===void 0?void 0:e.querySelectorAll("input"))===null||r===void 0||r.forEach(function(t){return t.addEventListener("invalid",onInvalidInput)})}function onInvalidInput(){var e;window.scrollTo({top:0,behavior:"smooth"}),(e=document.getElementById("delivery-cost-validation-error-message"))===null||e===void 0||e.classList.remove("validation-error-message__hidden")}var __read$3=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a};function createNewRowAndAppendInputs(e,r,t){var n=document.createElement("tr"),i=document.createElement("td"),a=document.createElement("td");return i.append(t,e),a.appendChild(r),n.append(i,a),n}function cloneInputAndSetValues(e,r,t){return e instanceof HTMLInputElement&&(e.name=r,e.id=r,e.value=t),e}function createNewNameBasedOnPrevName(e){var r=e.split(".");if(r&&r.length===3){var t=r[1].match(/\[(\d+?)]/i);if(t&&t.length===2){var n=parseInt(t[1])+1,i=r[1].match(/^.*\[/i);if(i&&i.length>0){var a=i[0]+n+"]";return"".concat(r[0],".").concat(a,".").concat(r[2])}}}return""}function getNameOfInput(e){return e&&e instanceof HTMLInputElement?e.name:null}function getAllInputs(e){var r=e.querySelector("tr:last-of-type");if(r&&r instanceof HTMLElement){var t=r.querySelectorAll("input");if(t&&t.length===3)return t}return[null]}function createNewHiddenInput(e){var r=document.createElement("input");return r.type="hidden",r.id=e,r.name=e,r.value="",r}function createNewInput(e,r){var t=document.createElement("input");return t.id=e,t.name=e,t.classList.add("form-control"),r&&r!==""&&(t.placeholder=getTemplateInnerText(r)),t.type="number",t.min="0",t.step=".01",t}function makeANewEntry(e,r){var t=e.dataset.deliveryCostModelIndex,n=e.dataset.freightClass,i=r.closest("table");if(t&&t!==""&&n&&n!==""&&i){var a=i.dataset.channel,s="deliveryCostModels[".concat(t,"].").concat(a,"[0].id"),c="deliveryCostModels[".concat(t,"].").concat(a,"[0].minValue"),h="deliveryCostModels[".concat(t,"].").concat(a,"[0].price"),l=createNewHiddenInput(s),p=createNewInput(c,"template-from-cost-placeholder-text-".concat(n)),b=createNewInput(h,"template-freightcost-placeholder-text-".concat(n)),m=createNewRowAndAppendInputs(p,b,l);r.append(m)}}function getAllInputsAndAppendToTableBody(e,r){var t=__read$3(getAllInputs(e),3),n=t[0],i=t[1],a=t[2];if(i&&i instanceof HTMLInputElement&&a&&a instanceof HTMLInputElement&&n&&n instanceof HTMLInputElement){var s=getNameOfInput(i),c=getNameOfInput(a),h=getNameOfInput(n);if(s&&c&&h){var l=createNewNameBasedOnPrevName(s),p=createNewNameBasedOnPrevName(c),b=createNewNameBasedOnPrevName(h),m=cloneInputAndSetValues(i.cloneNode(),l,"0");m.addEventListener("input",removeCustomValidity);var A=cloneInputAndSetValues(a.cloneNode(),p,"0"),L=cloneInputAndSetValues(n.cloneNode(),b,""),k=createNewRowAndAppendInputs(m,A,L);return e.append(k),k}}else makeANewEntry(r,e);return null}function handleNewRowClick(e){var r;if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var t=e.currentTarget.closest("table");if(t){var n=t.querySelector("tbody");n&&((r=getAllInputsAndAppendToTableBody(n,e.currentTarget))===null||r===void 0||r.querySelectorAll("input").forEach(function(i){return i.addEventListener("invalid",onInvalidInput)}))}}}function addHandlerForNewRowClickOnTable(){document.querySelectorAll(".js--add-new-entry").forEach(function(e){return e.addEventListener("click",handleNewRowClick)})}function handleFormSubmitWithTabs(e){if(e.currentTarget&&e.currentTarget instanceof HTMLFormElement){var r=window.location.search;r&&r!==""&&!e.currentTarget.action.includes("activeTab")&&(e.currentTarget.action=e.currentTarget.action+r)}}function handleTabSwitch(){var e;(e=document.getElementById("deliveryCostViewmodel"))===null||e===void 0||e.addEventListener("submit",handleFormSubmitWithTabs)}function checkEachMinValue(e,r){for(var t=r.querySelectorAll('input[name$="minValue"]'),n=new Set,i=0;i<t.length;i++){var a=t.item(i);if(a&&a instanceof HTMLInputElement&&a.value!==""){var s=Number(a.value).toFixed(2);s&&(n.has(s)?(a.setCustomValidity('Die Werte "ab Warenwert" müssen aufsteigend eingegeben werden'),a.reportValidity(),e.preventDefault()):n.add(s))}}}function handleFormSubmitValidation(e){e.currentTarget&&e.currentTarget instanceof HTMLFormElement&&document.querySelectorAll("table tbody").forEach(function(r){return checkEachMinValue(e,r)})}function validateEachMinValueBeforeSubmit(){var e;(e=document.getElementById("deliveryCostViewmodel"))===null||e===void 0||e.addEventListener("submit",handleFormSubmitValidation)}function listenToDeliveryCostEvents(){addHandlerForNewRowClickOnTable(),handleTabSwitch(),validateEachMinValueBeforeSubmit(),removeCustomValidityOnInputChange(),showErrorOnInvalidInput()}function disableAllInputsInRow(e){e.querySelectorAll("input").forEach(function(r){r.classList.contains("js--check-for-single-item")||(r.disabled=!0)})}function enableAllInputsInRow(e){e.querySelectorAll("input").forEach(function(r){r.classList.contains("js--check-for-single-item")||r.removeAttribute("disabled")})}function disableClassOfRow(e){e.classList.add("whitelist__to-be-removed")}function enableClassOfRow(e){e.classList.remove("whitelist__to-be-removed")}function getAllActiveRows(e){var r;return(r=e.closest("table"))===null||r===void 0?void 0:r.querySelectorAll("tbody > tr")}function changeEveryEntryCheckbox(e,r){var t=e.querySelector(".js--check-for-single-item");t&&t instanceof HTMLInputElement&&(t.checked=r)}function checkIfRowIsVisibleAndMark(e,r){e&&e instanceof HTMLTableRowElement&&(r?e.style.display==="none"||e.classList.contains("whitelist__to-be-removed")||(disableAllInputsInRow(e),disableClassOfRow(e),changeEveryEntryCheckbox(e,r)):e.style.display!=="none"&&(en
167ableAllInputsInRow(e),enableClassOfRow(e),changeEveryEntryCheckbox(e,r)))}function handleAllItemsCheckboxChange(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=getAllActiveRows(e.currentTarget),t=e.currentTarget.checked;r&&r.length>0&&r.forEach(function(n){return checkIfRowIsVisibleAndMark(n,t)})}}function addListenerToAllItemsCheckbox(){document.querySelectorAll(".js--check-for-all-whitelist-items").forEach(function(e){return e.addEventListener("change",handleAllItemsCheckboxChange)})}function uncheckMasterCheckbox(e){var r,t=(r=e.closest("table"))===null||r===void 0?void 0:r.id;if(t&&t!==""){var n=document.querySelector("[data-target='#".concat(t,"']"));n&&n instanceof HTMLInputElement&&(n.checked=!1)}}function handleSingleItemCheckboxChange(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=e.currentTarget.closest("tr");r&&(e.currentTarget.checked?(disableAllInputsInRow(r),disableClassOfRow(r)):(enableAllInputsInRow(r),enableClassOfRow(r))),e.currentTarget.checked||uncheckMasterCheckbox(e.currentTarget)}}function addListenerToSingleItemCheckbox(){document.querySelectorAll(".js--check-for-single-item").forEach(function(e){return e.addEventListener("change",handleSingleItemCheckboxChange)})}var __awaiter$7=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$7=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},__read$2=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$2=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},__values$a=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function prepareNewItems(e,r){return __spreadArray$2([],__read$2(String(e.get(r)).split(" ")),!1).filter(function(t){return t&&t!==""}).join("").trim()}function createWhitelistItems(e,r){var t,n,i=[],a={};__spreadArray$2([],__read$2(e.keys()),!1).filter(function(b){return b.includes(r)}).forEach(function(b){var m=b.match(/\d+/);if(m&&m.length===1){var A=b.split(".");A&&A.length>1&&(typeof a[String(m[0])]>"u"&&(a[String(m[0])]={}),a[String(m[0])][A[1]]=e.get(b))}});try{for(var s=__values$a(Object.entries(a)),c=s.next();!c.done;c=s.next()){var h=__read$2(c.value,2),l=h[0],p=h[1];i.push(p)}}catch(b){t={error:b}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return i}function prepareDataForWhitelist(e){var r=createWhitelistItems(e,"exhibitionList"),t=createWhitelistItems(e,"priceDeviationList"),n=createWhitelistItems(e,"homeAreaList"),i=createWhitelistItems(e,"onlyShippingList"),a=createWhitelistItems(e,"onlyPickupList"),s=createWhitelistItems(e,"remainingStockList"),c=prepareNewItems(e,"new-exhibition-items"),h=prepareNewItems(e,"new-priceDeviation-items"),l=prepareNewItems(e,"new-homeArea-items"),p=prepareNewItems(e,"new-onlyShipping-items"),b=prepareNewItems(e,"new-onlyPickup-items"),m=prepareNewItems(e,"new-remainingStock-items");return Object.freeze({newExhibitionItems:c,exhibitionList:r,newPriceDeviationItems:h,priceDeviationList:t,newHomeAreaListItems:l,homeAreaList:n,newOnlyShippingItems:p,onlyShippingList:i,newOnlyPickupItems:b,onlyPickupList:a,newRemainingStockItems:m,remainingStockList:s,addNewEntries:e.get("addNewEntries"),maxPriceDeviationRrp:e.get("maxPriceDeviationRrp"),maxPriceDeviationAvg:e.get("maxPriceDeviationAvg"),saveMaxPriceDeviations:e.get("saveMaxPriceDeviations")})}function displaySuccessMsg(){var e;(e=document.getElementById("price-deviation-success-msg"))===null||e===void 0||e.classList.remove("hidden")}function submitWhitelistsAsJson(e){return __awaiter$7(this,void 0,void 0,function(){var r,t,n,i,a,s,c;return __generator$7(this,function(h){switch(h.label){case 0:return e.preventDefault(),e.stopPropagation(),e.currentTarget&&e.currentTarget instanceof HTMLFormElement?(r=e.currentTarget,disableAllSubmitsInForm(r),t=e.submitter,n=new FormData(r),t?.dataset.name&&t.dataset.nameValue&&n.set(t.dataset.name,t.dataset.nameValue),i=prepareDataForWhitelist(n),a=String(n.get("_csrf")),[4,fetch(r.action,{method:r.method,body:JSON.stringify(i),headers:{"X-CSRF-TOKEN":a,"Content-Type":"application/json; charset=utf-8"}})]):[3,4];case 1:return s=h.sent(),s.ok&&s.status===200?[4,s.json()]:[3,3];case 2:return c=h.sent(),c.maxDeviationSave?(displaySuccessMsg(),enableAllSubmitsInForm(r)):(localStorage.setItem("whitelistPersistenceResponse",JSON.stringify(c)),window.location.reload()),[3,4];case 3:enableAllSubmitsInForm(r),h.label=4;case 4:return[2]}})})}function listenToWhitelistSubmitFormEvent(){var e;(e=document.getElementById("whitelist-submit-form"))===null||e===void 0||e.addEventListener("submit",submitWhitelistsAsJson)}function displayPriorWhitelistPersistenceErrors(){var e=localStorage.getItem("whitelistPersistenceResponse");if(e){var r=JSON.parse(e);r.hasInvalidExhibitionItems&&populateList("invalid_whitelist_items_exhibition",r.invalidExhibitionItems),r.hasInvalidHomeAreaItems&&populateList("invalid_whitelist_items_homeArea",r.invalidHomeAreaItems),r.hasInvalidPickupItems&&populateList("invalid_whitelist_items_onlyPickup",r.invalidPickupItems),r.hasInvalidDeliveryItems&&populateList("invalid_whitelist_items_onlyShipping",r.invalidDeliveryItems),r.hasInvalidPriceDeviationItems&&populateList("invalid_whitelist_items_priceDeviation",r.invalidPriceDeviationItems),r.hasInvalidRemainingStockItems&&populateList("invalid_whitelist_items_remainingStock",r.invalidRemainingStockItems)}}function populateList(e,r){var t,n,i,a,s=document.getElementById(e);if(s){(i=document.getElementById(e+"_wrapper"))===null||i===void 0||i.classList.remove("whitelist__persistence-response-error-hidden"),(a=document.getElementById("whitelist-validation-error-message"))===null||a===void 0||a.classList.remove("validation-error-message__hidden");try{for(var c=__values$a(r),h=c.next();!h.done;h=c.next()){var l=h.value,p=document.createElement("div");p.innerText=l,s.appendChild(p)}}catch(b){t={error:b}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}}}function listenToWhitelistEvents(){addListenerToAllItemsCheckbox(),addListenerToSingleItemCheckbox(),listenToWhitelistSubmitFormEvent(),displayPriorWhitelistPersistenceErrors()}function changeDefaultAvailabilityImportCheckbox(e){var r=document.getElementById("only-csv-default-availability-option");r&&r instanceof HTMLInputElement&&(r.disabled=!e)}function isFileCsv(e){if(e.files&&e.files.length>0){var r=e.files[0];return r.name.match(/.csv$/)}return!1}function handleCsvOptions(e){e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&(isFileCsv(e.currentTarget)?changeDefaultAvailabilityImportCheckbox(!0):changeDefaultAvailabilityImportCheckbox(!1))}function listenToInputFileEvents(){var e;(e=document.getElementById("update-articles-file-input"))===null||e===void 0||e.addEventListener("change",handleCsvOptions)}var __awaiter$6=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$6=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},__values$9=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);
167if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function listenToRemoveAllArticledataBtnEvents(){var e,r;(e=document.getElementById("articledata-removal-btn"))===null||e===void 0||e.addEventListener("click",handleRemoveAllAricledataBtnEvent),(r=document.getElementById("articledata-removal-modal-submit-btn"))===null||r===void 0||r.addEventListener("click",handleRemoveAllArticledataBtnSubmitEvent)}function handleRemoveAllAricledataBtnEvent(){var e=document.getElementById("articledata-removal-modal-success-message");e.classList.add("hidden");var r=document.getElementById("articledata-removal-modal-error-message");r.classList.add("hidden"),r.innerHTML="";var t=document.getElementById("articledata-removal-modal");t.classList.remove("hidden")}function handleRemoveAllArticledataBtnSubmitEvent(){var e,r;return __awaiter$6(this,void 0,void 0,function(){var t,n,i,a;return __generator$6(this,function(s){switch(s.label){case 0:return(e=document.getElementById("articledata-removal-modal-submit-btn"))===null||e===void 0||e.setAttribute("disabled","true"),t=getCsrfTokenFromWebPage(),t?(n="/account/settings/articledata/remove/",[4,fetch(n,{method:"POST",headers:{"X-CSRF-TOKEN":t}})]):[3,5];case 1:return i=s.sent(),i.ok?(a=displayProblemsOrSuccess$1,[4,i.json()]):[3,3];case 2:return a.apply(void 0,[s.sent()]),[3,4];case 3:displayProblemsOrSuccess$1([{severity:1,message:"Ein Netzwerkproblem ist aufgetreten. Bitte kontaktieren Sie den Administrator."}]),s.label=4;case 4:(r=document.getElementById("articledata-removal-modal-submit-btn"))===null||r===void 0||r.removeAttribute("disabled"),s.label=5;case 5:return[2]}})})}function displayProblemsOrSuccess$1(e){var r,t,n,i;(n=document.getElementById("articledata-removal-modal"))===null||n===void 0||n.setAttribute("_reloadOnClose","true");var a=document.getElementById("articledata-removal-modal-submit-btn");if(a?.removeEventListener("click",handleRemoveAllArticledataBtnSubmitEvent),a?.addEventListener("click",handleSecondSubmitEvent$1),e.length==0)(i=document.getElementById("articledata-removal-modal-success-message"))===null||i===void 0||i.classList.remove("hidden");else{var s=document.getElementById("articledata-removal-modal-error-message");s.innerHTML="";try{for(var c=__values$9(e),h=c.next();!h.done;h=c.next()){var l=h.value,p=document.createElement("div");p.innerText=l.message,s.appendChild(p)}}catch(b){r={error:b}}finally{try{h&&!h.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}s?.classList.remove("hidden")}}function handleSecondSubmitEvent$1(e){e.stopPropagation(),window.location.reload()}var __values$8=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function initializeCuttingServiceSettingTable(){var e,r,t,n,i,a=document.getElementById("cutting-service-form");if(a){var s=function(p){var b=p;b.setAttribute("_initialValue",b.value),b.addEventListener("change",function(){b.value===b.getAttribute("_initialValue")?b.classList.remove("_initialValueChanged"):b.classList.add("_initialValueChanged")}),b.addEventListener("change",function(){return removeValidationError(b)})};try{for(var c=__values$8(a.getElementsByClassName("cutting-service-row-persisted")),h=c.next();!h.done;h=c.next()){var l=h.value;s(l)}}catch(p){e={error:p}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}a.addEventListener("submit",validateForm)}(t=document.getElementById("cutting-service-create-btn"))===null||t===void 0||t.addEventListener("click",addElemToCuttingServiceSettingTable),(n=document.getElementById("cutting-service-submit-btn"))===null||n===void 0||n.addEventListener("click",handleSubmitAttempt),(i=document.getElementById("cutting-service-submit-cancel-btn"))===null||i===void 0||i.addEventListener("click",handleCancelSubmitAttempt),checkIfAddButtonShouldBeDisabled()}function addElemToCuttingServiceSettingTable(){var e,r,t=document.getElementsByClassName("cutting-service-row"),n=t.item(t.length-1),i=n?.cloneNode(!0),a=t.length+1,s;a>
1678?s=Math.pow(2,a-2):s=Math.pow(2,a-3),i.setAttribute("_bit",String(s)),i.setAttribute("_index",String(a));var c=i.getElementsByClassName("cutting-service-row-bit").item(0);c.getElementsByTagName("span").item(0).innerHTML="["+s+"]";var h=c.getElementsByTagName("input").item(0);h||(h=document.createElement("input"),h.setAttribute("type","hidden"),c.appendChild(h)),h.setAttribute("id","cuttingServiceView.entries"+a+".bit"),h.setAttribute("name","cuttingServiceView.entries["+a+"].bit"),h.setAttribute("value",String(s));var l=i.getElementsByClassName("cutting-service-row-strategy").item(0),p=l.getElementsByTagName("select").item(0);if(!p){p=document.createElement("select"),p.setAttribute("class","form-control");try{for(var b=__values$8(document.getElementById("cutting-service-row-strategy-options-helper").children),m=b.next();!m.done;m=b.next()){var A=m.value,L=document.createElement("option");L.value=String(A.getAttribute("_value")),L.innerHTML=String(A.getAttribute("_display")),p.append(L)}}catch(H){e={error:H}}finally{try{m&&!m.done&&(r=b.return)&&r.call(b)}finally{if(e)throw e.error}}l.removeChild(l.firstChild),l.appendChild(p)}p.setAttribute("id","cuttingServiceView.entries"+a+".strategy"),p.setAttribute("name","cuttingServiceView.entries["+a+"].strategy");var k=l.getElementsByTagName("select").item(0);k.value="NO_OP";var T=i.getElementsByClassName("cutting-service-row-value").item(0),S=T.getElementsByTagName("input").item(0);S||(S=document.createElement("input"),S.setAttribute("class","form-control"),S.setAttribute("min","0"),S.setAttribute("step","0.01"),S.setAttribute("type","number"),T.appendChild(S)),S.setAttribute("id","cuttingServiceView.entries"+a+".value"),S.setAttribute("name","cuttingServiceView.entries["+a+"].value"),S.addEventListener("change",function(){return removeValidationError(S)});var M=T.getElementsByTagName("input").item(0);M.value="",n.parentElement.appendChild(i),checkIfAddButtonShouldBeDisabled()}function handleSubmitAttempt(){var e=document.getElementById("cutting-service-form");if(validateForm())if(e.getElementsByClassName("_initialValueChanged").length>0){var r=document.getElementById("cutting-service-submit-modal");r.classList.remove("hidden")}else e.submit()}function handleCancelSubmitAttempt(){var e=document.getElementById("cutting-service-submit-modal");e&&e instanceof HTMLElement&&e.classList.add("hidden"),window.location.reload()}function validateForm(){var e,r,t,n,i,a,s,c,h,l,p=!0,b=document.getElementById("cutting-service-form");try{for(var m=__values$8(b.getElementsByClassName("cutting-service-row")),A=m.next();!A.done;A=m.next()){var L=A.value,k=(i=(n=(t=L.getElementsByClassName("cutting-service-row-strategy"))===null||t===void 0?void 0:t.item(0))===null||n===void 0?void 0:n.getElementsByTagName("select"))===null||i===void 0?void 0:i.item(0),T=(c=(s=(a=L.getElementsByClassName("cutting-service-row-value"))===null||a===void 0?void 0:a.item(0))===null||s===void 0?void 0:s.getElementsByTagName("input"))===null||c===void 0?void 0:c.item(0);k&&T&&(T.setCustomValidity(""),T.validity.valid?(k.value==="NO_OP"&&T.value!==""&&(p=!1,T.setCustomValidity((h=document.getElementById("cutting-service-row-strategy-validation-error-obsolete"))===null||h===void 0?void 0:h.innerText),setValidationError(T)),k.value!=="NO_OP"&&T.value===""&&(p=!1,T.setCustomValidity((l=document.getElementById("cutting-service-row-strategy-validation-error-empty"))===null||l===void 0?void 0:l.innerText),setValidationError(T))):(p=!1,setValidationError(T)),T.reportValidity())}}catch(S){e={error:S}}finally{try{A&&!A.done&&(r=m.return)&&r.call(m)}finally{if(e)throw e.error}}return p}function setValidationError(e){e.classList.add("cutting-service-row-value-error")}function removeValidationError(e){e.classList.remove("cutting-service-row-value-error")}function checkIfAddButtonShouldBeDisabled(){var e=document.getElementsByClassName("cutting-service-row"),r=e.item(e.length-1);if(r){var t=Number(r.getAttribute("_bit"));t===536870912&&(document.getElementById("cutting-service-create-btn").style.display="none")}}function checkAmountOfChildrenInMenuAndHideIfNecessary(){var e,r=document.getElementById("account-settings-list");r&&r.childElementCount<=0&&((e=r.closest("li"))===null||e===void 0||e.classList.add("hidden"))}
167function addActiveTabToFormAction(e){var r=new URLSearchParams(window.location.search),t=r.get("activeTab");t&&t!==""&&(e.action.includes("?")?e.action="".concat(e.action,"&activeTab=").concat(t):e.action.endsWith("/")?e.action="".concat(e.action,"?activeTab=").concat(t):e.action="".concat(e.action,"/?activeTab=").concat(t))}function addActiveTabToAnyFormRequest(){for(var e=document.getElementsByTagName("form"),r=function(n){var i=e.item(n);i&&i.addEventListener("submit",function(a){return addActiveTabToFormAction(i)})},t=0;t<e.length;t++)r(t)}function renameObjectKey(e,r,t){if(e!==r){var n=Object.getOwnPropertyDescriptor(t,e);n&&(Object.defineProperty(t,r,n),delete t[e])}}function listenToAccountSettingsEvents(){listenToDeliveryAreaEvents(),listenToDeliveryCostEvents(),listenToWhitelistEvents(),listenToInputFileEvents(),listenToRemoveAllArticledataBtnEvents(),checkAmountOfChildrenInMenuAndHideIfNecessary(),addActiveTabToAnyFormRequest(),initializeCuttingServiceSettingTable()}function displayDomainOrUrlChange(e){var r,t,n,i;if(e.currentTarget&&e.currentTarget instanceof HTMLSelectElement){var a=e.currentTarget.selectedOptions[0].value;a==="true"?((r=document.querySelector('div[data-shop-selector-target="domain"]'))===null||r===void 0||r.classList.remove("hidden"),(t=document.querySelector('div[data-shop-selector-target="url"]'))===null||t===void 0||t.classList.add("hidden")):((n=document.querySelector('div[data-shop-selector-target="domain"]'))===null||n===void 0||n.classList.add("hidden"),(i=document.querySelector('div[data-shop-selector-target="url"]'))===null||i===void 0||i.classList.remove("hidden"))}}function addListenerToShopDomainUrlSelectorMerchantGroup(){document.querySelectorAll(".js--merchant-settings-domain-url-selector").forEach(function(e){return e.addEventListener("change",displayDomainOrUrlChange)})}var __values$7=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function populateSpan(e,r,t){var n=e.querySelector(r);n&&n instanceof HTMLElement&&(n.innerText=t)}function populateNewEntryWithData(e,r,t,n){var i,a=r.replace(t,"");e.dataset.searchString=r,e.dataset.merchantZr=t,e.dataset.merchantCountry=n,populateSpan(e,".js--zr-number",t),populateSpan(e,".js--merchant-name",a),e.addEventListener("click",addClickListenerToMerchantEntry),(i=document.getElementById("existing-associate-merchant-entries"))===null||i===void 0||i.append(e)}function addNewEntryToExistingEntriesSection(e){var r=e.dataset.searchString,t=e.dataset.merchantZr,n=e.dataset.merchantCountry;if(r&&r!==""&&t&&t!==""&&n&&n!==""){var i=getTemplateClone("associated-merchant-new-entry");i?.[0]&&populateNewEntryWithData(i[0],r,t,n)}}function listenToClickOnAddNewEntries(){var e,r,t,n=(t=document.getElementById("all-associate-merchant-entries"))===null||t===void 0?void 0:t.children,i=getHiddenAssociatedMerchantIdsInput();if(n&&i&&i instanceof HTMLInputElement)try{for(var a=__values$7(n),s=a.next();!s.done;s=a.next()){var c=s.value;c instanceof HTMLElement&&c.classList.contains("-active")&&(c.classList.add("-disabled"),c.classList.remove("-active"),i.value=i.value+","+c.dataset.merchantZr,cleanHiddenAssociatedMerchantInput(i),addNewEntryToExistingEntriesSection(c))}}catch(h){e={error:h}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}function readdMerchantToAvailableOption(e){var r;(r=document.querySelector('[data-merchant-zr="'.concat(e,'"]')))===null||r===void 0||r.classList.remove("-disabled")}function cleanHiddenAssociatedMerchantInput(e){e.value=e.value.replace(/(,,)|(,$)|(^,)/gi,"")}function getHiddenAssociatedMerchantIdsInput(){return document.getElementById("associated-merchant-ids")}function listenToClickOnRemoveEntries(){var e,r,t,n=(t=document.getElementById("existing-associate-merchant-entries"))===null||t===void 0?void 0:t.children,i=getHiddenAssociatedMerchantIdsInput(),a=[];if(n&&i&&i instanceof HTMLInputElement)try{for(var s=__values$7(n),c=s.next();!c.done;c=s.next()){var h=c.value;if(h instanceof HTMLElement&&h.classList.contains("-active")){var l=h.dataset.merchantZr;l&&l!==""&&(cleanHiddenAssociatedMerchantInput(i),i.value=i.value.replace(l,""),readdMerchantToAvailableOption(l),a.push(h))}}}catch(p){e={error:p}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}
167a.forEach(function(p){return p.remove()})}function addClickListenerToMerchantEntry(e){e.currentTarget&&e.currentTarget instanceof HTMLElement&&e.currentTarget.classList.toggle("-active")}function checkIfEntryContainsSearchStringAndSetClass(e,r,t){var n;e instanceof HTMLElement&&(!((n=e.dataset.searchString)===null||n===void 0)&&n.toLowerCase().includes(r.toLowerCase())&&(!t||e.dataset.merchantCountry===t)?e.classList.remove("hidden"):e.classList.add("hidden"))}function searchForMerchants(e){var r,t,n,i,a;if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var s=e.currentTarget.dataset.target,c=e.currentTarget.value;if(s&&s!==""){var h=(a=document.getElementById(s))===null||a===void 0?void 0:a.children;if(s==="all-associate-merchant-entries"){var l=document.getElementById("accountMerchantGroupEditView.country");if(h&&l)try{for(var p=__values$7(h),b=p.next();!b.done;b=p.next()){var m=b.value;checkIfEntryContainsSearchStringAndSetClass(m,c,l.value)}}catch(k){r={error:k}}finally{try{b&&!b.done&&(t=p.return)&&t.call(p)}finally{if(r)throw r.error}}}else if(h)try{for(var A=__values$7(h),L=A.next();!L.done;L=A.next()){var m=L.value;checkIfEntryContainsSearchStringAndSetClass(m,c,null)}}catch(k){n={error:k}}finally{try{L&&!L.done&&(i=A.return)&&i.call(A)}finally{if(n)throw n.error}}}}}function addListenerToMerchantEdit(){var e,r,t,n;(e=document.getElementById("all-merchants-search"))===null||e===void 0||e.addEventListener("input",searchForMerchants),(r=document.getElementById("existing-associated-merchants-search"))===null||r===void 0||r.addEventListener("input",searchForMerchants),document.querySelectorAll(".js--associate-merchant-entry").forEach(function(i){return i.addEventListener("click",addClickListenerToMerchantEntry)}),(t=document.getElementById("add-selected-associated-merchant-entry"))===null||t===void 0||t.addEventListener("click",listenToClickOnAddNewEntries),(n=document.getElementById("remove-selected-associated-merchant-entry"))===null||n===void 0||n.addEventListener("click",listenToClickOnRemoveEntries)}function addListenerToCountrySelectorMerchantGroup(){var e=document.querySelector(".js--merchant-settings-country-selector");e&&(e.addEventListener("change",handleCountryChange),filterMerchantSelection(e.value))}function handleCountryChange(e){if(e.currentTarget&&e.currentTarget instanceof HTMLSelectElement){var r=e.currentTarget.selectedOptions[0].value,t=document.getElementById("accountMerchantGroupCurrencyInput");t.value=r==="CH"?"CHF":"EUR",filterMerchantSelection(r)}}function filterMerchantSelection(e){var r,t=document.getElementById("all-merchants-search"),n=(r=t?.value)!==null&&r!==void 0?r:null;document.querySelectorAll(".js--filterable-merchant-entry").forEach(function(i){var a;i.getAttribute("data-merchant-country")===e&&(!((a=i.getAttribute("data-search-string"))===null||a===void 0)&&a.toLowerCase().includes(n.toLowerCase()))?i.classList.remove("hidden"):(i.classList.add("hidden"),i.classList.remove("-active"))}),document.querySelectorAll(".js--selected-merchant-entry").forEach(function(i){var a=i.getAttribute("data-merchant-country");!a||a===e?(i.classList.remove("form-error"),i.classList.remove("alert"),i.classList.remove("alert-danger")):(i.classList.add("form-error"),i.classList.add("alert"),i.classList.add("alert-danger"))})}function addAllMerchantGroupListeners(){addListenerToShopDomainUrlSelectorMerchantGroup(),addListenerToMerchantEdit(),addListenerToCountrySelectorMerchantGroup()}function submitFormOnFilterChange(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=e.currentTarget.closest("form");if(r){var t=r.page;t&&t instanceof HTMLInputElement&&(t.value="0"),r.submit()}}}function listenToFilterSelection(){document.querySelectorAll(".js--submit-on-change").forEach(function(e){return e.addEventListener("change",submitFormOnFilterChange)})}function toggleOtherCheckboxed(e,r){e?(r.disabled=!1,r.removeAttribute("disabled")):r.disabled=!0}function triggerOtherCheckbox(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=e.currentTarget.dataset.targetCheckbox;if(r&&r!==""){var t=e.currentTarget.checked;document.querySelectorAll(r).forEach(function(n){n instanceof HTMLInputElement&&toggleOtherCheckboxed(t,n)})}}}function listenToCheckboxChangesAndActivateDeactivateOthers(){document.querySelectorAll("[data-target-checkbox]").forEach(function(e){return e.addEventListener("change",triggerOtherCheckbox)})}function listenToCheckboxUncheckIfDisabled(){document.querySelectorAll(".js--auto-uncheck-on-disabled").forEach(function(e){e.disabled&&(e.checked=!1)})}function listenToCheckboxHelperEvents(){listenToCheckboxChangesAndActivateDeactivateOthers(),listenToCheckboxUncheckIfDisabled()}function showSelectShippingAddressModalHandler(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var r=document.getElementById("select-shipping-address-modal");if(r&&r instanceof HTMLElement){r.classList.remove("hidden");var t=document.getElementById("default-selected-shipping-address-id");if(t&&t instanceof HTMLInputElement){var n=document.querySelector('input[name=selectedAlternativeShippingAddressId][value="'.concat(t.value,'"]'));n&&n instanceof HTMLInputElement&&$(n).prop("checked",!0)}}}}
167function addListenerToSelectExistingShippingAddressClick(){document.querySelectorAll(".js--select-existing-shipping-address").forEach(function(e){return e.addEventListener("click",showSelectShippingAddressModalHandler)})}function openPaymentInfoDialog(){var e=document.querySelector(".js--payment-transaction-info");e&&e instanceof HTMLDialogElement&&e.showModal()}function listenToPaymentInfoClick(){var e;(e=document.getElementById("advanced-order-show-payment-details"))===null||e===void 0||e.addEventListener("click",openPaymentInfoDialog)}function listenToExpandEvents(){var e=document.querySelector(".js--single-order-overview__customer-remarks-expand-btn");e&&e.addEventListener("click",function(r){return toggleCustomerRemarksVisibility(r)})}function toggleCustomerRemarksVisibility(e){e.stopImmediatePropagation(),e.preventDefault();var r=document.querySelector(".single-order-overview__customer-remarks-text");r?.classList.toggle("fadeout");var t=e.currentTarget;t?.querySelectorAll("span").forEach(function(n){n.classList.contains("content")?handleTextChange(n):handleIconChange(n)})}function handleTextChange(e){e.innerText.trim().includes(e.dataset.reduced)?e.innerText=e.innerText.trim().replace(e.dataset.reduced,e.dataset.open):e.innerText=e.innerText.trim().replace(e.dataset.open,e.dataset.reduced)}function handleIconChange(e){e.classList.contains("nm-icon-arrow-down")?(e.classList.remove("nm-icon-arrow-down"),e.classList.add("nm-icon-arrow-up")):(e.classList.add("nm-icon-arrow-down"),e.classList.remove("nm-icon-arrow-up"))}function listenToOrderEvents(){listenToPaymentInfoClick(),listenToExpandEvents()}function listenToMerchantSearchNavigation(){var e=new URLSearchParams(document.location.search),r=e.get("acc");if(r&&r!==""){var t=document.getElementById(r);if(t&&t instanceof HTMLElement&&(t.scrollIntoView({block:"center",behavior:"smooth"}),t instanceof HTMLDetailsElement)){var n=t.dataset.toggleGroup;n&&n!==""&&closeAllOtherDetailsTags(t,n)}}}function getInputOfForm(e,r){var t=e.querySelector("#".concat(r));return t&&t instanceof HTMLInputElement?t:null}function passwordsMatch(e){var r=getInputOfForm(e,"password"),t=getInputOfForm(e,"passwordRepeat");return r&&t?r.value===t.value:!1}function checkIfPasswordsMatch(e){if(e.currentTarget&&e.currentTarget instanceof HTMLFormElement&&!passwordsMatch(e.currentTarget)){var r=getInputOfForm(e.currentTarget,"password");r&&r instanceof HTMLInputElement&&(r.setCustomValidity("Passwords do not match"),r.reportValidity(),e.preventDefault())}}function removeCustomValidityFromPasswordInput(e){e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&e.currentTarget.setCustomValidity("")}function updateSelectedCompanyId(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=getDatalistSpecificValue(e.currentTarget,"companyId");if(r!=null){var t=document.getElementById("craftsmanEmployeeEditView.companyId");t&&t instanceof HTMLInputElement&&(t.value=r)}}}function checkIfPasswordsMatchForCraftsmanRegistrationForm(){var e,r,t;(e=document.getElementById("craftsmanEmployeeRegistrationView"))===null||e===void 0||e.addEventListener("submit",checkIfPasswordsMatch),(r=document.querySelector("#craftsmanEmployeeRegistrationView #password"))===null||r===void 0||r.addEventListener("input",removeCustomValidityFromPasswordInput),(t=document.getElementById("craftsman-new-filter-company"))===null||t===void 0||t.addEventListener("input",updateSelectedCompanyId)}var __awaiter$5=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$5=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},__values$6=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);
167if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function listenToRemoveAllCraftsmanBtnEvents(){var e,r;(e=document.getElementById("craftsman-removal-btn"))===null||e===void 0||e.addEventListener("click",handleRemoveAllCraftsmanBtnEvent),(r=document.getElementById("craftsman-removal-modal-submit-btn"))===null||r===void 0||r.addEventListener("click",handleRemoveAllCraftsmanBtnSubmitEvent)}function listenToCraftsmanCompanyFilter(){var e,r;(e=document.getElementById("craftsman-overview-filter-company"))===null||e===void 0||e.addEventListener("input",updateSelectedCompany),(r=document.getElementById("craftsman-overview-filter-company"))===null||r===void 0||r.addEventListener("focusout",submitCompanySearchForm)}function updateSelectedCompany(e){if(e.currentTarget&&e.currentTarget instanceof HTMLInputElement){var r=document.getElementById("overviewParams.company");if(r&&r instanceof HTMLInputElement){var t=getDatalistSpecificValue(e.currentTarget,"companyId");t!=null?r.value=t:r.value=""}}}function submitCompanySearchForm(e){var r;e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&((r=e.currentTarget.form)===null||r===void 0||r.submit())}function handleRemoveAllCraftsmanBtnEvent(){var e=document.getElementById("craftsman-removal-modal-success-message");e.classList.add("hidden");var r=document.getElementById("craftsman-removal-modal-error-message");r.classList.add("hidden"),r.innerHTML="";var t=document.getElementById("craftsman-removal-modal");t.classList.remove("hidden")}function handleRemoveAllCraftsmanBtnSubmitEvent(){var e,r;return __awaiter$5(this,void 0,void 0,function(){var t,n,i,a;return __generator$5(this,function(s){switch(s.label){case 0:return(e=document.getElementById("craftsman-removal-modal-submit-btn"))===null||e===void 0||e.setAttribute("disabled","true"),t=getCsrfTokenFromWebPage(),t?(n="/ajax/account/craftsman/remove/",[4,fetch(n,{method:"POST",headers:{"X-CSRF-TOKEN":t}})]):[3,5];case 1:return i=s.sent(),i.ok?(a=displayProblemsOrSuccess,[4,i.json()]):[3,3];case 2:return a.apply(void 0,[s.sent()]),[3,4];case 3:displayProblemsOrSuccess([{severity:1,message:"Ein Netzwerkproblem ist aufgetreten. Bitte kontaktieren Sie den Administrator."}]),s.label=4;case 4:(r=document.getElementById("craftsman-removal-modal-submit-btn"))===null||r===void 0||r.removeAttribute("disabled"),s.label=5;case 5:return[2]}})})}function displayProblemsOrSuccess(e){var r,t,n,i;(n=document.getElementById("craftsman-removal-modal"))===null||n===void 0||n.setAttribute("_reloadOnClose","true");var a=document.getElementById("craftsman-removal-modal-submit-btn");if(a?.removeEventListener("click",handleRemoveAllCraftsmanBtnSubmitEvent),a?.addEventListener("click",handleSecondSubmitEvent),e.length==0)(i=document.getElementById("craftsman-removal-modal-success-message"))===null||i===void 0||i.classList.remove("hidden");else{var s=document.getElementById("craftsman-removal-modal-error-message");s.innerHTML="";try{for(var c=__values$6(e),h=c.next();!h.done;h=c.next()){var l=h.value,p=document.createElement("div");p.innerText=l.message,s.appendChild(p)}}catch(b){r={error:b}}finally{try{h&&!h.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}s?.classList.remove("hidden")}}function handleSecondSubmitEvent(e){e.stopPropagation(),window.location.reload()}function listenToCraftsmanEvents(){listenToCraftsmanCompanyFilter(),listenToRemoveAllCraftsmanBtnEvents(),checkIfPasswordsMatchForCraftsmanRegistrationForm()}function listenToDisclosureIcon(){var e=document.getElementById("searchresults-disclosure-icon");e&&(e.addEventListener("click",function(r){r.preventDefault(),r.stopPropagation(),$("#searchresults-disclosure").modal("show")}),e.addEventListener("mousedown",function(r){r.preventDefault(),r.stopPropagation(),$("#searchresults-disclosure").modal("show")}))}function getUrlRequestValue(e){const r=location.search.match(new RegExp("[?&]"+e+"=([^&]*)(&?)","i"));return r&&r[1]}function listenToAccordionsToAddAddFuntionality(){const e=$$1(".collapse");if(e.on("shown.bs.collapse",function(){const t=$$1(this).parent()[0];t.classList.contains("no-scroll")||t.scrollIntoView({behavior:"smooth",block:"center"})}),e.length>0&&window.location.search.indexOf("acc")){const r=getUrlRequestValue("acc"),t=$$1("#"+r);t.length>0&&t.collapse()}}function listenToHeaderUnfoldArrowClick(){document.querySelectorAll(".header_resize_js").forEach(r=>r.addEventListener("click",triggerArrow))}function triggerArrow(){const e=document.querySelectorAll(".header__notification"),r=document.querySelectorAll(".header_resize_js");e.forEach(t=>{t instanceof HTMLElement&&(t.classList.toggle("less"),t.classList.toggle("js--folded-out"))}),r.forEach(t=>{t instanceof HTMLElement&&(t.classList.toggle("nm-icon-arrow-up"),t.classList.toggle("nm-icon-arrow-down"))})}var DEFAULT_COLOR_BASE="356",DEFAULT_COLOR_SATURATION="95%",DEFAULT_COLOR_LIGHTNESS="46%",DEFAULT_COLOR_ALPHA="1";function modifySingleCircleColor(e,r,t){var n;e.style.fill="hsla(".concat(r.colorBase,",").concat(r.colorSaturation,",").concat(r.colorLightness,",").concat(r.colorAlpha,")");var i=e.parentNode;if(i){var a=new XMLSerializer().serializeToString(i),s=t.dataset.targetImg;if(s&&s!==""){var c=(n=t.parentNode)===null||n===void 0?void 0:n.querySelector(s);c&&c instanceof HTMLImageElement&&(c.src="data:image/svg+xml;
167base64,".concat(window.btoa(a)))}}}function getComputedStyles(){var e=getComputedStyle(document.documentElement).getPropertyValue("--color-primary-base")||DEFAULT_COLOR_BASE,r=getComputedStyle(document.documentElement).getPropertyValue("--color-primary-saturation")||DEFAULT_COLOR_SATURATION,t=getComputedStyle(document.documentElement).getPropertyValue("--color-primary-lightness")||DEFAULT_COLOR_LIGHTNESS,n=DEFAULT_COLOR_ALPHA;return Object.freeze({colorBase:e,colorSaturation:r,colorLightness:t,colorAlpha:n})}function replaceColors(e){var r,t,n;if(e instanceof HTMLObjectElement){var i=getComputedStyles();(r=e.contentDocument)===null||r===void 0||r.querySelectorAll(".custom-merchant-color").forEach(function(a){return modifySingleCircleColor(a,i,e)}),(n=(t=e.parentNode)===null||t===void 0?void 0:t.parentNode)===null||n===void 0||n.querySelectorAll("img").forEach(function(a){$$1(a).tooltip({html:!0,container:"body"})})}}function listenToAllSvgColorChanges(){document.querySelectorAll(".svg-icons-with-custom-color").forEach(function(e){return replaceColors(e)})}function handleCompanyNameToggle(e){var r,t;e.currentTarget&&e.currentTarget instanceof HTMLInputElement&&((t=(r=document.getElementsByClassName("js--company-name-field-to-toggle")[0])===null||r===void 0?void 0:r.parentElement)===null||t===void 0||t.classList.toggle("hidden"))}function listenToCompanyNameToggle(){var e;(e=document.getElementById("show-corporate-customer-entry"))===null||e===void 0||e.addEventListener("input",handleCompanyNameToggle)}function listenToRegistrationEvents(){listenToCompanyNameToggle()}function listenToOpeningProductCinema(){var e=document.querySelectorAll(".js--accessory-cinema");e.forEach(function(r){r.addEventListener("click",function(){var t,n=(t=r.closest(".js--accessory-accordion"))===null||t===void 0?void 0:t.querySelector(".js--recommendation-slides");n!=null&&setTimeout(function(){n.swiper.update()},275)})})}function closeAssemblyHeaderInMobile(){var e=getBrowserWidth();if(e<1025)for(var r=document.getElementsByClassName("js--close-on-mobile"),t=0;t<r.length;t++){var n=r.item(t);n&&n instanceof HTMLDetailsElement&&n.removeAttribute("open")}}function getCsrfTokenFromForm(e){if(e&&e instanceof HTMLFormElement){var r=new FormData(e);return String(r.get("_csrf"))}return null}var __awaiter$4=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$4=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function revertSlider(e){e.checked=!e.checked}function handleLabel(e,r){var t,n;if(e.labels)for(var i=0;i<e.labels.length;i++)r?(t=e.labels.item(i))===null||t===void 0||t.classList.add("assembly-request-checkout__label--checked"):(n=e.labels.item(i))===null||n===void 0||n.classList.remove("assembly-request-checkout__label--checked")}function handleAssemblyPlaningIcon(e){var r="ok",t="not";e.checked||(r="not",t="ok");var n=document.querySelector('span.js--assembly-planing-icon[data-ref="'.concat(e.externalId+"_"+e.sku,'"][data-icon-type="').concat(r,'"]')),i=document.querySelector('span.js--assembly-planing-icon[data-ref="'.concat(e.externalId+"_"+e.sku,'"][data-icon-type="').concat(t,'"]'));n&&n instanceof HTMLElement&&i&&i instanceof HTMLElement&&(i.classList.add("hidden"),n.classList.remove("hidden"))}function getExternalId(){var e=document.querySelector('meta[name="externalId"]');return e&&e instanceof HTMLMetaElement?e.content:null}function getMerchantExternalId(e){return e.dataset.externalId||getExternalId()}function getDataFromInput(e){var r=getMerchantExternalId(e);return r&&r!==""&&e.dataset.sku&&e.dataset.sku!==""?{checked:e.checked,sku:e.dataset.sku,externalId:r}:null}function handleAssemblyRequestResponse(e,r,t){e.ok?(handleAssemblyPlaningIcon(r),handleLabel(t,r.checked)):revertSlider(t)}function postRequestAndHandleResponse(e,r){return __awaiter$4(this,void 0,void 0,function(){var t,n,i,a;return __generator$4(this,function(s){switch(s.label){case 0:if(t=getDataFromInput(r),n=getCsrfTokenFromForm(e),!(t&&n))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e.action,{method:e.method,cache:"no-cache",headers:{"Content-Type":"application/json;charset=UTF-8","X-CSRF-TOKEN":n},body:JSON.stringify(t),signal:AbortSignal.timeout(1e4)})];case 2:return i=s.sent(),handleAssemblyRequestResponse(i,t,r),[3,4];case 3:return a=s.sent(),console.error(a),revertSlider(r),[3,4];case 4:return[2]}})})}function handleAssemblyPlaningRequestSubmit(){if(this instanceof HTMLInputElement){var e=this.form;e&&postRequestAndHandleResponse(e,this)}}function listenToAssemblyAndPlaningRequestInCheckout(){for(var e=document.getElementsByClassName("js--checkout-assembly-service-slider"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLInputElement&&t.addEventListener("change",handleAssemblyPlaningRequestSubmit)}e.length>0&&document.addEventListener("scroll",closeAssemblyHeaderInMobile)}function startSliderConfigurationListener(){var e=document.querySelectorAll(".slider-recommendation");if(e!==null){if(isLandingPage()&&assignSliderConfig(e,"landing-page"),isAdsAccessoryPage()&&assignSliderConfig(e,"ads-accessories"),isProductListingPage()){var r=document.querySelectorAll(".recommendation-row");r.forEach(function(t){var n=t.parentElement;n!==null&&n.classList.contains("prd-grid")&&t.classList.add("product-listing-top")})}new SliderInitializer().multiInit()}}function assignSliderConfig(e,r){e.forEach(function(t){t.setAttribute("data-sli
167der-config",r)})}function isProductListingPage(){var e=document.querySelector(".prd-list");return e!==null}function isAdsAccessoryPage(){var e=document.querySelector("#accessories");return e!==null}function isLandingPage(){var e=document.querySelector(".page-home");return e!==null}function gaListenToCtaLinks(){var e=document.querySelectorAll(".ga__CTALink");e.forEach(function(r){return r.addEventListener("click",function(){var t=r.getAttribute("href")||"",n=r.textContent||"";window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cta",content_name:formatTrackingValue(n),content_type:"internal",target_url:formatTrackingValue(t)})})})}function trackMerchantSearch(e){var r=document.querySelectorAll(".ga__merchant-box"),t=$$1(window).scrollTop()||0,n=t+($$1(window).height()||0),i=[];r.forEach(function(a){var s={haendlerName:formatTrackingValue(a.getAttribute("data-name")||""),index:a.getAttribute("data-index")||0,standort:formatTrackingValue(a.getAttribute("data-city")||"")};if(!a.classList.contains("tracked")){var c=a,h=c.offsetTop,l=h+c.offsetHeight,p=h<=n&&l>=t;p&&(a.classList.add("tracked"),i.push(s))}e&&addClickTracking(a,s)}),i.length>0&&trackImpressions(i)}function gaListenToMerchantSearch(){trackMerchantSearch(!0),document.addEventListener("scroll",function(){trackMerchantSearch(!1)})}function addClickTracking(e,r){Array.from(e.getElementsByTagName("summary")).forEach(function(t){return t.addEventListener("click",function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"click_haendlersuche_detail",index:r.index,haendlerName:r.haendlerName,"standort ":r.standort})})})}function trackImpressions(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"view_haendlersuche",impressions:e})}function gaListenToMerchantMatrixClick(){var e=document.querySelectorAll(".ga__merchant-matrix");e.forEach(function(r){return r.addEventListener("click",function(){var t=r.getAttribute("data-item-id")||"",n=r.getAttribute("data-item-name")||"";window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"click_haendlermatrix",item_id:formatTrackingValue(t),item_name:formatTrackingValue(n),event_location:window.location.href})})})}function gaListenGoToProductListFilter(){var e=document.querySelectorAll(".ga__go-to-prd-filter-list");e.forEach(function(r){return r.addEventListener("click",function(){window.dataLayer.push({event:"click_filter_icon"})})})}function gaListenToProductFeaturesInfoIconClick(){var e=document.querySelectorAll(".ga__prd-features__feature-info-icon");e.forEach(function(r){return r.addEventListener("click",function(){var t=r.getAttribute("data-item-feature-name")||"",n=r.getAttribute("data-item-feature-value")||"",i=r.getAttribute("data-item-id")||"",a=r.getAttribute("data-item-name")||"";window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"click_info_icon_features",item_feature_category:formatTrackingValue(t),item_feature:formatTrackingValue(n),item_id:formatTrackingValue(i),item_name:formatTrackingValue(a)})})})}var __values$5=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function pushFilterToDataLayer(e,r,t,n){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"filter_haendlermatrix",filter_category:formatTrackingValue(e),filter_name:formatTrackingValue(r),item_id:formatTrackingValue(t),item_name:formatTrackingValue(n)})}function listenToSelectListMerchantMatrixFilters(){var e=document.querySelectorAll(".ga__merchant-matrix-filter-option");e.forEach(function(r){var t=r.getElementsByTagName("label")[0].innerText,n=r.getAttribute("data-item-id")||"",i=r.getAttribute("data-item-name")||"",a=r.getElementsByTagName("select")[0];a.addEventListener("change",function(){var s,c,h=a.selectedOptions,l=[];try{for(var p=__values$5(h),b=p.next();!b.done;b=p.next()){var m=b.value;l.push(m.text)}}catch(L){s={error:L}}finally{try{b&&!b.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}var A=l.join(",");pushFilterToDataLayer(t,A,n,i)})})}function listenToMultiSelectMerchantMatrixFilters(){var e=document.querySelectorAll(".ga__merchant-matrix-filter-multiselect");e.forEach(function(r){var t=r.getElementsByTagName("label")[0].innerText,n=r.getAttribute("data-item-id")||"",i=r.getAttribute("data-item-name")||"",a=r.getElementsByTagName("input");
167Array.from(a).forEach(function(s){s.addEventListener("change",function(){var c=[];r.querySelectorAll("li.active label").forEach(function(l){return c.push(l.textContent||"")});var h=c.length===0?"beliebig":c.join(",");pushFilterToDataLayer(t,h,n,i)})})})}function listenToCheckboxMerchantMatrixFilters(){var e=document.querySelectorAll(".ga__merchant-matrix-filter-checkbox");e.forEach(function(r){var t=r.getElementsByTagName("label")[0].innerText,n=r.getAttribute("data-item-id")||"",i=r.getAttribute("data-item-name")||"",a=r.getElementsByTagName("input")[0];a.addEventListener("change",function(){var s=String(a.checked);pushFilterToDataLayer(t,s,n,i)})})}function gaListenToMerchantMatrixFilters(){listenToSelectListMerchantMatrixFilters(),listenToMultiSelectMerchantMatrixFilters(),listenToCheckboxMerchantMatrixFilters()}function getAttributeValue(e,r){return e.getAttribute(r)||""}function gaListenToChooseMerchant(){document.querySelectorAll(".ga__merchant-matrix-merchant-element").forEach(function(e){e.querySelectorAll(".ga__merchant-matrix-choose-merchant").forEach(function(r){r.addEventListener("click",function(){window.dataLayer=window.dataLayer||[];var t=formatTrackingValue(getAttributeValue(r,"data-merchant-distance"));t!==""&&(t=t+" km");var n=e.querySelector(".status-availability"),i=n==null?"":n.textContent||"";window.dataLayer.push({event:"haendler_waehlen_haendlermatrix",haendler_name:formatTrackingValue(getAttributeValue(r,"data-merchant-name")),standort:formatTrackingValue(getAttributeValue(r,"data-merchant-city")),index:formatTrackingValue(getAttributeValue(r,"data-index")),item_id:formatTrackingValue(getAttributeValue(r,"data-item-id")),item_name:formatTrackingValue(getAttributeValue(r,"data-item-name")),availability:formatTrackingValue(i),distance:t,price:formatTrackingValue(getAttributeValue(r,"data-price"))})})})})}function pushCuttingServiceEvent(e,r,t,n,i){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"interactions_zuschnitt",interaction:e,zuschnitt_option:formatTrackingValue(r),zuschnitt_length:formatTrackingValue(t),zuschnitt_width_option:formatTrackingValue(n),zuschnitt_width:formatTrackingValue(i)})}function gaListenToClickCuttingServiceLink(){var e=document.querySelectorAll(".ga__cutting-service-link>*:not(a):not(#prd-info-icon)");e.forEach(function(r){return r.addEventListener("click",function(){pushCuttingServiceEvent("click","","","","")})})}function addCuttingUnit(e,r){return e!==""?e+" "+r:e}function gaListenToAddCutting(){var e=document.getElementById("cuttingServiceForm");e&&e.addEventListener("submit",function(){var r=document.querySelector('select[name="cuttingLengthFreetext"]').selectedOptions[0],t=r.text,n="";r.value==="true"&&(n=document.querySelector('input[name="cuttingLength"]').value);var i=document.querySelector('select[name="cuttingWidthFreetext"]').selectedOptions[0],a=i.text,s="";i.value==="true"&&(s=document.querySelector('input[name="cuttingWidth"]').value);var c=document.querySelector(".ga__cutting-unit").textContent||"";pushCuttingServiceEvent("add",t,addCuttingUnit(n,c),a,addCuttingUnit(s,c))})}function gaListenToCuttingServiceInteractions(){gaListenToClickCuttingServiceLink(),gaListenToAddCutting()}function initiateGaListeners(){gaListenToCtaLinks(),gaListenToMerchantSearch(),gaListenToMerchantMatrixClick(),gaListenGoToProductListFilter(),gaListenToProductFeaturesInfoIconClick(),gaListenToMerchantMatrixFilters(),gaListenToChooseMerchant(),gaListenToProductlistFilters(),gaListenToCuttingServiceInteractions()}function getTarget$1(e){var r=e.dataset.target;if(r&&r!=="")return r;if(e instanceof HTMLAnchorElement){var t=e.href.includes("#");if(t)return e.href.substring(1)}return null}function smoothAnchor(e){var r;if(e.currentTarget&&e.currentTarget instanceof HTMLElement){e.preventDefault(),e.stopPropagation();var t=getTarget$1(e.currentTarget);t&&t!==""&&((r=document.getElementById(t))===null||r===void 0||r.scrollIntoView({block:"center",behavior:"smooth"}))}}function handleAnchorsSmoothly(){for(var e=document.getElementsByClassName("js--smooth-anchor"),r=0;r<e.length;r++){var t=e.item(r);
167t&&t instanceof HTMLElement&&t.addEventListener("click",smoothAnchor)}}function changeIconToOpen(e){e.classList.contains("nm-icon-arrow-down")&&(e.classList.remove("nm-icon-arrow-down"),e.classList.add("nm-icon-arrow-up"))}function changeTextToOpen(e){var r=e.dataset.reduced,t=e.dataset.open;r&&t&&e.innerText.trim().includes(r)&&(e.innerText=e.innerText.trim().replace(r,t))}function showFeatures(e){e.querySelectorAll("span").forEach(function(r){r.classList.contains("content")?changeTextToOpen(r):changeIconToOpen(r)})}function openFeatures(e){var r=document.querySelector(".js-prd-features__feature-list");if(r&&r instanceof HTMLElement){r.classList.add("-visible"),showFeatures(e);var t=document.getElementById("ads_feature_tag_id");t?.scrollIntoView({behavior:"smooth",block:"center"})}}var __values$4=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function getTarget(e){if(e&&e instanceof HTMLElement){var r=e.dataset.target;if(r&&r!==""){var t=document.getElementById(r);if(t&&t instanceof HTMLElement)return t}if(e instanceof HTMLAnchorElement){var n=e.href;if(n&&n!==""){var t=document.getElementById(n.substring(1));if(t&&t instanceof HTMLElement)return t}}}return null}function openAdsTeaserPanel(e){e.preventDefault(),e.stopPropagation();var r=getTarget(e.currentTarget);if(r){var t=r.querySelectorAll('[role="tabpanel"]');t&&t.length>0&&$(t[0]).collapse("show")}}function openAdsFeatures(){var e,r,t,n,i=document.querySelector(".js--features-expand-btn");i&&i instanceof HTMLElement&&openFeatures(i);try{for(var a=__values$4((n=(t=document.getElementById("ads_feature_tag_id"))===null||t===void 0?void 0:t.getElementsByClassName("ga__prd-features__feature-info-icon"))!==null&&n!==void 0?n:[]),s=a.next();!s.done;s=a.next()){var c=s.value;c.getAttribute("tabindex")==="-1"&&c.setAttribute("tabindex","0")}}catch(h){e={error:h}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}function smoothScrollListeners(){var e,r;(e=document.getElementById("open-ads-features"))===null||e===void 0||e.addEventListener("click",openAdsFeatures),(r=document.getElementById("open-ads-accessories"))===null||r===void 0||r.addEventListener("click",openAdsTeaserPanel)}var __read$1=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray$1=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function getBlankFeatures(e){var r=__spreadArray$1([],__read$1(e.children),!1).findIndex(function(n){return n.classList.contains("js-prd-features__feature--blank")}),t=e.children[r];return{blankFeature:t,blankFeatureIndex:r}}function removeFeatureOnMobile(e){var r=document.querySelector(".js-prd-features__feature-list");if(r&&r instanceof HTMLElement){var t=getBlankFeatures(r);t.blankFeatureIndex!==-1&&(e?t.blankFeature=r.removeChild(r.children[t.blankFeatureIndex]):r.insertBefore(t.blankFeature,r.children[t.blankFeatureIndex]))}}function listenToMediaQueryChangesOnAdsPage(){var e=window.matchMedia("(max-width: 1199px)");removeFeatureOnMobile(e.matches),e.addListener(function(r){return removeFeatureOnMobile(r.matches)})}var __values$3=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function handleParentClass(e){e&&e instanceof HTMLElement&&e.classList.toggle("-visible")}function handleParentElementVisibility(e){e&&e!==""&&handleParentClass(document.querySelector(e))}function handleIconTextChange(e){var r=e.querySelector("[data-open][data-reduced]");if(r&&r instanceof HTMLElement){var t=r.dataset.open,n=r.dataset.reduced;t&&t!==""&&n&&n!==""&&(r.innerText.includes(t)?r.innerText=r.innerText.replace(t,n):r.innerText=r.innerText.replace(n,t))}}function handleIconImgChange(e){var r=e.querySelector(".nm-icon");r&&r instanceof HTMLElement&&(r.classList.contains("nm-icon-arrow-up")?(r.classList.remove("nm-icon-arrow-up"),r.classList.add("nm-icon-arrow-down")):(r.classList.remove("nm-icon-arrow-down"),r.classList.add("nm-icon-arrow-up")))}function scrollIntoView(e){if(e&&e!==""){var r=document.getElementById(e);r&&r instanceof HTMLElement&&(r.scrollIntoView({behavior:"smooth",block:"center"}),r.focus())}}function toggleOpenMore(){var e,r,t,n;handleParentElementVisibility(this.dataset.parentTarget),handleIconTextChange(this),handleIconImgChange(this),scrollIntoView(this.dataset.parentScrollInto);try{for(var i=__values$3((n=(t=document.getElementById("ads_feature_tag_id"))===null||t===void 0?void 0:t.getElementsByClassName("ga__prd-features__feature-info-icon"))!==null&&n!==void 0?n:[]),a=i.next();!a.done;a=i.next()){var s=a.value;s.getAttribute("tabindex")==="-1"?s.setAttribute("tabindex","0"):s.getAttribute("tabindex")==="0"&&s.setAttribute("tabindex","-1")}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}function listenToExpandableTextEvent(){for(var e=document.getElementsByClassName("js--expand-for-more-info"),r=0;r<e.length;r++){var t=e.item(r);t&&t instanceof HTMLElement&&t.addEventListener("click",toggleOpenMore)}}function listenToKeydownOnSliders(){var e,r,t;(e=document.getElementById("adsSecondarySwiperWrapper"))===null||e===void 0||e.addEventListener("keydown",handleKeyDownOnSecondary),(r=document.getElementById("adsPrimarySwiperControlLeft"))===null||r===void 0||r.addEventListener("keydown",swipeLeftOnPrimary),(t=document.getElementById("adsPrimarySwiperControlRight"))===null||t===void 0||t.addEventListener("keydown",swipeRightOnPrimary)}function handleKeyDownOnSecondary(e){var r,t=e.code;if(t==="ArrowLeft"||t==="ArrowRight"){for(var n=e.target,i=(r=n.getElementsByClassName("swiper-slide"))!==null&&r!==void 0?r:[],a=i.length,s=0;s<a;s++)if(i[s].classList.contains("active")){t==="ArrowLeft"&&s>0&&i[s-1].click(),t==="ArrowRight"&&s<a-1&&i[s+1].click();return}}}function swipeLeftOnPrimary(e){var r=e.code;if(r==="ArrowRight"){var t=document.getElementById("adsPrimarySwiperControlRight");t?.focus(),t?.click()}else if(r==="ArrowLeft"){var n=document.getElementById("adsPrimarySwiperControlLeft");n?.click()}}function swipeRightOnPrimary(e){var r=e.code;if(r==="ArrowLeft"){var t=document.getElementById("adsPrimarySwiperControlLeft");t?.focus(),t?.click()}else if(r==="ArrowRight"){var n=document.getElementById("adsPrimarySwiperControlRight");n?.click()}}function adsListeners(){smoothScrollListeners(),listenToMediaQueryChangesOnAdsPage(),listenToExpandableTextEvent(),listenToKeydownOnSliders()}function displayErrorFeedback(e){var r=document.getElementById("newsletter-export-feedback");r&&r instanceof HTMLElement&&(r.innerText=e&&e!==""?e:"Something wrong happended. Please try again later!",r.classList.remove("hidden"),setTimeout(function(){return r.classList.add("hidden")},5e3))}function renameNewsletterUserKeys(e){renameObjectKey("salutation","Anrede",e),renameObjectKey("firstname","Vorname",e),renameObjectKey("lastname","Nachname",e),renameObjectKey("birthdate","Geburtstag",e),renameObjectKey("email","verifizierte E-Mail-Adresse",e),renameObjectKey("uuidTime","Zeitstempel der Anmeldung",e)}var __awaiter$3=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$3=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function requestNewsletterUsers(e){return __awaiter$3(this,void 0,void 0,function(){var r,t;return __generator$3(this,function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,fetch(e,{signal:AbortSignal.timeout(2e4)})];case 1:return r=n.sent(),r.ok&&r.status===200?[4,r.json()]:[3,3];case 2:return t=n.sent(),t.forEach(renameNewsletterUserKeys),[2,t];case 3:displayErrorFeedback(),n.label=4;case 4:return[3,6];case 5:return n.sent(),displayErrorFeedback(),[3,6];case 6:return[2,[]]}})})}function changeDownloadButtonState(e,r){e instanceof HTMLButtonElement&&(e.disabled=r)}function getRequiredFormat(){var e=document.getElementById("export-format");return e&&e instanceof HTMLSelectElement?e.options[e.selectedIndex].value:"csv"}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var XLSX={};XLSX.version="0.19.3";var current_codepage=1200,$cptable,set_cp=function(e){current_codepage=e};function reset_cp(){set_cp(1200)}function utf16beread(e){for(var r=[],t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var _getchar=function e(r){return String.fromCharCode(r)},_getansi=function e(r){return String.fromCharCode(r)},Base64_map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
167+/=";function Base64_encode(e){for(var r="",t=0,n=0,i=0,a=0,s=0,c=0,h=0,l=0;l<e.length;)t=e.charCodeAt(l++),a=t>>2,n=e.charCodeAt(l++),s=(t&3)<<4|n>>4,i=e.charCodeAt(l++),c=(n&15)<<2|i>>6,h=i&63,isNaN(n)?c=h=64:isNaN(i)&&(h=64),r+=Base64_map.charAt(a)+Base64_map.charAt(s)+Base64_map.charAt(c)+Base64_map.charAt(h);return r}function Base64_encode_pass(e){for(var r="",t=0,n=0,i=0,a=0,s=0,c=0,h=0,l=0;l<e.length;)t=e.charCodeAt(l++),t>255&&(t=95),a=t>>2,n=e.charCodeAt(l++),n>255&&(n=95),s=(t&3)<<4|n>>4,i=e.charCodeAt(l++),i>255&&(i=95),c=(n&15)<<2|i>>6,h=i&63,isNaN(n)?c=h=64:isNaN(i)&&(h=64),r+=Base64_map.charAt(a)+Base64_map.charAt(s)+Base64_map.charAt(c)+Base64_map.charAt(h);return r}function Base64_decode(e){var r="",t=0,n=0,i=0,a=0,s=0,c=0,h=0;e=e.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)a=Base64_map.indexOf(e.charAt(l++)),s=Base64_map.indexOf(e.charAt(l++)),t=a<<2|s>>4,r+=String.fromCharCode(t),c=Base64_map.indexOf(e.charAt(l++)),n=(s&15)<<4|c>>2,c!==64&&(r+=String.fromCharCode(n)),h=Base64_map.indexOf(e.charAt(l++)),i=(c&3)<<6|h,h!==64&&(r+=String.fromCharCode(i));return r}var has_buf=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Buffer_from=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}(),buf_utf16le=function(){if(typeof Buffer>"u")return!1;var e=Buffer_from([65,0]);if(!e)return!1;var r=e.toString("utf16le");return r.length==1}();function new_raw_buf(e){return has_buf?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function new_unsafe_buf(e){return has_buf?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var s2a=function e(r){return has_buf?Buffer_from(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function s2ab(e){if(typeof ArrayBuffer>"u")return s2a(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),n=0;n!=e.length;++n)t[n]=e.charCodeAt(n)&255;return r}function a2s(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function a2u(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var bconcat=has_buf?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:Buffer_from(r)}))}:function(e){if(typeof Uint8Array<"u"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var n=new Uint8Array(t),i=0;for(r=0,t=0;r<e.length;t+=i,++r)i=e[r].length,e[r]instanceof Uint8Array?n.set(e[r],t):typeof e[r]=="string"?n.set(new Uint8Array(s2a(e[r])),t):n.set(new Uint8Array(e[r]),t);return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function utf8decode(e){for(var r=[],t=0,n=e.length+250,i=new_raw_buf(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[t++]=s;else if(s<2048)i[t++]=192|s>>6&31,i[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var c=e.charCodeAt(++a)&1023;i[t++]=240|s>>8&7,i[t++]=128|s>>2&63,i[t++]=128|c>>6&15|(s&3)<<4,i[t++]=128|c&63}else i[t++]=224|s>>12&15,i[t++]=128|s>>6&63,i[t++]=128|s&63;t>n&&(r.push(i.slice(0,t)),t=0,i=new_raw_buf(65535),n=65530)}return r.push(i.slice(0,t)),bconcat(r)}var chr0=/\u0000/g,chr1=/[\u0001-\u0006]/g;function _strrev(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function pad0(e,r){var t=""+e;return t.length>=r?t:fill("0",r-t.length)+t}function pad_(e,r){var t=""+e;return t.length>=r?t:fill(" ",r-t.length)+t}function rpad_(e,r){var t=""+e;return t.length>=r?t:t+fill(" ",r-t.length)}function pad0r1(e,r){var t=""+Math.round(e);return t.length>=r?t:fill("0",r-t.length)+t}function pad0r2(e,r){var t=""+e;return t.length>=r?t:fill("0",r-t.length)+t}var p2_32=Math.pow(2,32);function pad0r(e,r){if(e>p2_32||e<-p2_32)return pad0r1(e,r);var t=Math.round(e);return pad0r2(t,r)}function SSF_isgeneral(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var days=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],months=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function SSF_init_table(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11
vendor: 8,428 bytes, line 167
167]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"ä¸å/ä¸å "hh"æ"mm"å"ss"ç§ "',e}var table_fmt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"ä¸å/ä¸å "hh"æ"mm"å"ss"ç§ "'},SSF_default_map={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},SSF_default_str={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function SSF_frac(e,r,t){for(var n=e<0?-1:1,i=e*n,a=0,s=1,c=0,h=1,l=0,p=0,b=Math.floor(i);l<r&&(b=Math.floor(i),c=b*s+a,p=b*l+h,!(i-b<5e-8));)i=1/(i-b),a=s,s=c,h=l,l=p;if(p>r&&(l>r?(p=h,c=a):(p=l,c=s)),!t)return[0,n*c,p];var m=Math.floor(n*c/p);return[m,n*c-m*p,p]}function SSF_parse_date_code(e,r,t){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],c={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),r&&r.date1904&&(n+=1462),c.u>.9999&&(c.u=0,++i==86400&&(c.T=i=0,++n,++c.D)),n===60)s=t?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=t?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var h=new Date(1900,0,1);h.setDate(h.getDate()+n-1),s=[h.getFullYear(),h.getMonth()+1,h.getDate()],a=h.getDay(),n<60&&(a=(a+6)%7),t&&(a=SSF_fix_hijri(h,s))}return c.y=s[0],c.m=s[1],c.d=s[2],c.S=i%60,i=Math.floor(i/60),c.M=i%60,i=Math.floor(i/60),c.H=i,c.q=a,c}var SSFbasedate=new Date(1899,11,31,0,0,0),SSFdnthresh=SSFbasedate.getTime(),SSFbase1904=new Date(1900,2,1,0,0,0);function datenum_local(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=SSFbase1904&&(t+=24*60*60*1e3),(t-(SSFdnthresh+(e.getTimezoneOffset()-SSFbasedate.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function SSF_strip_decimal(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function SSF_normalize_exp(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function SSF_small_exp(e){var r=e<0?12:11,t=SSF_strip_decimal(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function SSF_large_exp(e){var r=SSF_strip_decimal(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function SSF_general_num(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=SSF_small_exp(e):r===10?t=e.toFixed(10).substr(0,12):t=SSF_large_exp(e),SSF_strip_decimal(SSF_normalize_exp(t.toUpperCase()))}function SSF_general(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):SSF_general_num(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return SSF_format(14,datenum_local(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function SSF_fix_hijri(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function SSF_write_date(e,r,t,n){var i="",a=0,s=0,c=t.y,h,l=0;switch(e){case 98:c=t.y+543;case 121:switch(r.length){case 1:case 2:h=c%100,l=2;break;default:h=c%1e4,l=4;break}break;case 109:switch(r.length){case 1:case 2:h=t.m,l=r.length;break;case 3:return months[t.m-1][1];case 5:return months[t.m-1][0];default:return months[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:h=t.d,l=r.length;break;case 3:return days[t.q][0];default:return days[t.q][1]}break;case 104:switch(r.length){case 1:case 2:h=1+(t.H+11)%12,l=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:h=t.H,l=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:h=t.M,l=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?pad0(t.S,r.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(t.S+t.u)),a>=60*s&&(a=0),r==="s"?a===0?"0":""+a/s:(i=pad0(a,2+n),r==="ss"?i.substr(0,2):"."+i.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":h=t.D*24+t.H;break;case"[m]":case"[mm]":h=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":h=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}l=r.length===3?1:2;break;case 101:h=c,l=1;break}var p=l>0?pad0(h,l):"";return p}function commaify(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,n=e.substr(0,t);t!=e.length;t+=r)n+=(n.length>0?",":"")+e.substr(t,r);return n}var pct1=/%/g;function write_num_pct(e,r,t){var n=r.replace(pct1,""),i=r.length-n.length;return write_num(e,n,t*Math.pow(10,2*i))+fill("%",i)}function write_num_cm(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return write_num(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function write_num_exp(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+write_num_exp(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,h,l,p){return h+l+p.substr(0,(i+a)%i)+"."+p.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var frac1=/# (\?+)( ?)\/( ?)(\d+)/;function write_num_f1(e,r,t){var n=parseInt(e[4],10),i=Math.round(r*n),a=Math.floor(i/n),s=i-a*n,c=n;return t+(a===0?"":""+a)+" "+(s===0?fill(" ",e[1].length+1+e[4].length):pad_(s,e[1].length)+e[2]+"/"+e[3]+pad0(c,e[4].length))}function write_num_f2(e,r,t){return t+(r===0?"":""+r)+fill(" ",e[1].length+2+e[4].length)}var dec1=/^#*0*\.([0#]+)/,closeparen=/\).*[0#]/,phone=/\(###\) ###\\?-####/;function hashq(e){for(var r="",t,n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function rnd(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function dec(e,r){var t=e-Math.floor(e),n=Math.pow(10,r);return r<(""+Math.round(t*n)).length?0:Math.round(t*n)}function carry(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function flr(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function write_num_flt(e,r,t){if(e.charCodeAt(0)===40&&!r.match(closeparen)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?write_num_flt("n",n,t):"("+write_num_flt("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return write_num_cm(e,r,t);if(r.indexOf("%")!==-1)return write_num_pct(e,r,t);if(r.indexOf("E")!==-1)return write_num_exp(r,t);if(r.charCodeAt(0)===36)return"$"+write_num_flt(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,c,h=Math.abs(t),l=t<0?"-":"";if(r.match(/^00+$/))return l+pad0r(h,r.length);if(r.match(/^[#?]+$/))return i=pad0r(t,0),i==="0"&&(i=""),i.length>
vendor: 18,210 bytes, line 167
167r.length?i:hashq(r.substr(0,r.length-i.length))+i;if(a=r.match(frac1))return write_num_f1(a,h,l);if(r.match(/^#+0+$/))return l+pad0r(h,r.length-r.indexOf("0"));if(a=r.match(dec1))return i=rnd(t,a[1].length).replace(/^([^\.]+)$/,"$1."+hashq(a[1])).replace(/\.$/,"."+hashq(a[1])).replace(/\.(\d*)$/,function(L,k){return"."+k+fill("0",hashq(a[1]).length-k.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return l+rnd(h,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return l+commaify(pad0r(h,0));if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+write_num_flt(e,r,-t):commaify(""+(Math.floor(t)+carry(t,a[1].length)))+"."+pad0(dec(t,a[1].length),a[1].length);if(a=r.match(/^#,#*,#0/))return write_num_flt(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=_strrev(write_num_flt(e,r.replace(/[\\-]/g,""),t)),s=0,_strrev(_strrev(r.replace(/\\/g,"")).replace(/[0#]/g,function(L){return s<i.length?i.charAt(s++):L==="0"?"0":""}));if(r.match(phone))return i=write_num_flt(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var p="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),c=SSF_frac(h,Math.pow(10,s)-1,!1),i=""+l,p=write_num("n",a[1],c[1]),p.charAt(p.length-1)==" "&&(p=p.substr(0,p.length-1)+"0"),i+=p+a[2]+"/"+a[3],p=rpad_(c[2],s),p.length<a[4].length&&(p=hashq(a[4].substr(a[4].length-p.length))+p),i+=p,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),c=SSF_frac(h,Math.pow(10,s)-1,!0),l+(c[0]||(c[1]?"":"0"))+" "+(c[1]?pad_(c[1],s)+a[2]+"/"+a[3]+rpad_(c[2],s):fill(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=pad0r(t,0),r.length<=i.length?i:hashq(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var b=r.indexOf(".")-s,m=r.length-i.length-b;return hashq(r.substr(0,b)+i+r.substr(r.length-m))}if(a=r.match(/^00,000\.([#0]*0)$/))return s=dec(t,a[1].length),t<0?"-"+write_num_flt(e,r,-t):commaify(flr(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(L){return"00,"+(L.length<3?pad0(0,3-L.length):"")+L})+"."+pad0(s,a[1].length);switch(r){case"###,##0.00":return write_num_flt(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var A=commaify(pad0r(h,0));return A!=="0"?l+A:"";case"###,###.00":return write_num_flt(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return write_num_flt(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function write_num_cm2(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return write_num(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function write_num_pct2(e,r,t){var n=r.replace(pct1,""),i=r.length-n.length;return write_num(e,n,t*Math.pow(10,2*i))+fill("%",i)}function write_num_exp2(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+write_num_exp2(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!t.match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,h,l,p){return h+l+p.substr(0,(i+a)%i)+"."+p.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function write_num_int(e,r,t){if(e.charCodeAt(0)===40&&!r.match(closeparen)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?write_num_int("n",n,t):"("+write_num_int("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return write_num_cm2(e,r,t);if(r.indexOf("%")!==-1)return write_num_pct2(e,r,t);if(r.indexOf("E")!==-1)return write_num_exp2(r,t);if(r.charCodeAt(0)===36)return"$"+write_num_int(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,c,h=Math.abs(t),l=t<0?"-":"";if(r.match(/^00+$/))return l+pad0(h,r.length);if(r.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>r.length?i:hashq(r.substr(0,r.length-i.length))+i;if(a=r.match(frac1))return write_num_f2(a,h,l);if(r.match(/^#+0+$/))return l+pad0(h,r.length-r.indexOf("0"));if(a=r.match(dec1))return i=(""+t).replace(/^([^\.]+)$/,"$1."+hashq(a[1])).replace(/\.$/,"."+hashq(a[1])),i=i.replace(/\.(\d*)$/,function(L,k){return"."+k+fill("0",hashq(a[1]).length-k.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return l+(""+h).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return l+commaify(""+h);if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+write_num_int(e,r,-t):commaify(""+t)+"."+fill("0",a[1].length);if(a=r.match(/^#,#*,#0/))return write_num_int(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=_strrev(write_num_int(e,r.replace(/[\\-]/g,""),t)),s=0,_strrev(_strrev(r.replace(/\\/g,"")).replace(/[0#]/g,function(L){return s<i.length?i.charAt(s++):L==="0"?"0":""}));if(r.match(phone))return i=write_num_int(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var p="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),c=SSF_frac(h,Math.pow(10,s)-1,!1),i=""+l,p=write_num("n",a[1],c[1]),p.charAt(p.length-1)==" "&&(p=p.substr(0,p.length-1)+"0"),i+=p+a[2]+"/"+a[3],p=rpad_(c[2],s),p.length<a[4].length&&(p=hashq(a[4].substr(a[4].length-p.length))+p),i+=p,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),c=SSF_frac(h,Math.pow(10,s)-1,!0),l+(c[0]||(c[1]?"":"0"))+" "+(c[1]?pad_(c[1],s)+a[2]+"/"+a[3]+rpad_(c[2],s):fill(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=""+t,r.length<=i.length?i:hashq(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var b=r.indexOf(".")-s,m=r.length-i.length-b;return hashq(r.substr(0,b)+i+r.substr(r.length-m))}if(a=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+write_num_int(e,r,-t):commaify(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(L){return"00,"+(L.length<3?pad0(0,3-L.length):"")+L})+"."+pad0(0,a[1].length);switch(r){case"###,###":case"##,###":case"#,###":var A=commaify(""+h);return A!=="0"?l+A:"";default:if(r.match(/\.[0#?]*$/))return write_num_int(e,r.slice(0,r.lastIndexOf(".")),t)+hashq(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function write_num(e,r,t){return(t|0)===t?write_num_int(e,r,t):write_num_flt(e,r,t)}function SSF_split_fmt(e){for(var r=[],t=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:t=!t;break;case 95:case 42:case 92:++n;break;case 59:r[r.length]=e.substr(i,n-i),i=n+1}if(r[r.length]=e.substr(i),t===!0)throw new Error("Format |"+e+"| unterminated string ");return r}var SSF_abstime=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function fmt_is_date(e){for(var r=0,t="",n="";r<e.length;)switch(t=e.charAt(r)){case"G":SSF_isgeneral(e,r)&&(r+=6),r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;);++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"ä¸":if(e.substr(r,3).toUpperCase()==="A/P"||e.substr(r,5).toUpperCase()==="AM/PM"||e.substr(r,5).toUpperCase()==="ä¸å/ä¸å")return!0;++r;break;case"[":for(n=t;e.charAt(r++)!=="]"&&r<e.length;)n+=e.charAt(r);if(n.match(SSF_abstime))return!0;break;case".":case"0":case"#":for(;r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1;);break;case" ":++r;break;default:++r;break}return!1}function eval_fmt(e,r,t,n){for(var i=[],a="",s=0,c="",h="t",l,p,b,m="H";s<e.length;)switch(c=e.charAt(s)){case"G":if(!SSF_isgeneral(e,s))throw new Error("unrecognized character "+c+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(b=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(b);i[i.length]={t:"t",v:a},++s;break;case"\\":var A=e.charAt(++s),L=A==="("||A===")"?A:"t";i[i.length]={t:L,v:A},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:r},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null&&(l=SSF_parse_date_code(r,t,e.charAt(s+1)==="2"),l==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},h=c,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||l==null&&(l=SSF_parse_date_code(r,t),l==null))return"";for(a=c;++s<e.length&&e.charAt(s).toLowerCase()===c;)a+=c;c==="m"&&h.toLowerCase()==="h"&&(c="M"),c==="h"&&(c=m),i[i.length]={t:c,v:a},h=c;break;case"A":case"a":case"ä¸":var k={t:c,v:c};if(l==null&&(l=SSF_parse_date_code(r,t)),e.substr(s,3).toUpperCase()==="A/P"?(l!=null&&(k.v=l.H>=12?e.charAt(s+2):c),k.t="T",m="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(k.v=l.H>=12?"PM":"AM"),k.t="T",s+=5,m="h"):e.substr(s,5).toUpperCase()==="ä¸å/ä¸å"?(l!=null&&(k.v=l.H>=12?"ä¸å":"ä¸å"),k.t="T",s+=5,m="h"):(k.t="t",++s),l==null&&k.t==="T")return"";i[i.length]=k,h=c;break;case"[":for(a=c;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(SSF_abstime)){if(l==null&&(l=SSF_parse_date_code(r,t),l==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},h=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",fmt_is_date(e)||(i[i.length]={t:"t",v:a}));break;case".":if(l!=null){for(a=c;++s<e.length&&(c=e.charAt(s))==="0";)a+=c;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=c;++s<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(s))>-1;)a+=c;i[i.length]={t:"n",v:a};break;case"?":for(a=c;e.charAt(++s)===c;)a+=c;i[i.length]={t:c,v:a},h=c;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":c,v:c},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=c;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:c,v:c},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=â¬acfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);i[i.length]={t:"t",v:c},++s;break}var T=0,S=0,M;for(s=i.length-1,h="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=m,h="h",T<1&&(T=1);break;case"s":(M=i[s].v.match(/\.0+$/))&&(S=Math.max(S,M[0].length-1)),T<3&&(T=3);case"d":case"y":case"M":case"e":h=i[s].t;break;case"m":h==="s"&&(i[s].t="M",T<2&&(T=2));break;case"X":break;case"Z":T<1&&i[s].v.match(/[Hh]/)&&(T=1),T<2&&i[s].v.match(/[Mm]/)&&(T=2),T<3&&i[s].v.match(/[Ss]/)&&(T=3)}switch(T){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var H="",te;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=SSF_write_date(i[s].t.charCodeAt(0),i[s].v,l,S),i[s].t="t";break;case"n":case"?":for(te=s+1;i[te]!=null&&((c=i[te].t)==="?"||c==="D"||(c===" "||c==="t")&&i[te+1]!=null&&(i[te+1].t==="?"||i[te+1].t==="t"&&i[te+1].v==="/")||i[s].t==="("&&(c===" "||c==="n"||c===")")||c==="t"&&(i[te].v==="/"||i[te].v===" "&&i[te+1]!=null&&i[te+1].t=="?"));)i[s].v+=i[te].v,i[te]={v:"",t:";"},++te;H+=i[s].v,s=te-1;break;case"G":i[s].t="t",i[s].v=SSF_general(r,t);break}var Ie="",we,_;if(H.length>0){H.charCodeAt(0)==40?(we=r<0&&H.charCodeAt(0)===45?-r:r,_=write_num("n",H,we)):(we=r<0&&n>1?-r:r,_=write_num("n",H,we),we<0&&i[0]&&i[0].t=="t"&&(_=_.substr(1),i[0].v="-"+i[0].v)),te=_.length-1;var oe=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){oe=s;break}var ee=i.length;if(oe===i.length&&_.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(te>=i[s].v.length-1?(te-=i[s].v.length,i[s].v=_.substr(te+1,i[s].v.length)):te<0?i[s].v="":(i[s].v=_.substr(0,te+1),te=-1),i[s].t="t",ee=s);te>=0&&ee<i.length&&(i[ee].v=_.substr(0,te+1)+i[ee].v)}else if(oe!==i.length&&_.indexOf("E")===-1){for(te=_.indexOf(".")-1,s=oe;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(p=i[s].v.indexOf(".")>-1&&s===oe?i[s].v.indexOf(".")-1:i[s].v.length-1,Ie=i[s].v.substr(p+1);p>=0;--p)te>=0&&(i[s].v.charAt(p)==="0"||i[s].v.charAt(p)==="#")&&(Ie=_.charAt(te--)+Ie);i[s].v=Ie,i[s].t="t",ee=s}for(te>=0&&ee<i.length&&(i[ee].v=_.substr(0,te+1)+i[ee].v),te=_.indexOf(".")+1,s=oe;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==oe)){for(p=i[s].v.indexOf(".")>-1&&s===oe?i[s].v.indexOf(".")+1:0,Ie=i[s].v.substr(0,p);p<i[s].v.length;++p)te<_.length&&(Ie+=_.charAt(te++));i[s].v=Ie,i[s].t="t",ee=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(we=n>1&&r<0&&s>0&&i[s-1].v==="-"?-r:r,i[s].v=write_num(i[s].t,i[s].v,we),i[s].t="t");var Ee="";for(s=0;s!==i.length;++s)i[s]!=null&&(Ee+=i[s].v);return Ee}var cfregex2=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function chkcond(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e<t)return!0;break;case"<>":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function choose_fmt(e,r){var t=SSF_split_fmt(e),n=t.length,i=t[n-1].indexOf("@");if(n<4&&i>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var a=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,a];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(cfregex2),c=t[1].match(cfregex2);return chkcond(r,s)?[n,t[0]]:chkcond(r,c)?[n,t[1]]:[n,t[s!=null&&c!=null?2:1]]}return[n,a]}function SSF_format(e,r,t){t==null&&(t={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?n=t.dateNF:n=e;break;case"number":e==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:table_fmt)[e],n==null&&(n=t.table&&t.table[SSF_default_map[e]]||table_fmt[SSF_default_map[e]]),n==null&&(n=SSF_default_str[e]||"General");break}if(SSF_isgeneral(n,0))return SSF_general(r,t);r instanceof Date&&(r=datenum_local(r,t.date1904));var i=choose_fmt(n,r);if(SSF_isgeneral(i[1]))return SSF_general(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return eval_fmt(i[1],r,t,i[0])}function SSF_load(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(table_fmt[t]==null){r<0&&(r=t);continue}if(table_fmt[t]==e){r=t;break}}r<0&&(r=391)}return table_fmt[r]=e,r}function SSF_load_table(e){for(var r=0;r!=392;++r)e[r]!==void 0&&SSF_load(e[r],r)}function make_ssf(){table_fmt=SSF_init_table()}var dateNFregex=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function dateNF_regex(e){var r=typeof e=="number"?table_fmt[e]:e;return r=r.replace(dateNFregex,"(\\d+)"),new RegExp("^"+r+"$")}function dateNF_fix(e,r,t){var n=-1,i=-1,a=-1,s=-1,c=-1,h=-1;(r.match(dateNFregex)||[]).forEach(function(b,m){var A=parseInt(t[m+1],10);switch(b.toLowerCase().charAt(0)){case"y":n=A;break;case"d":a=A;break;case"h":s=A;break;case"s":h=A;break;case"m":s>=0?c=A:i=A;break}}),h>=0&&c==-1&&i>=0&&(c=i,i=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var p=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(h>=0?h:0)).slice(-2);return s==-1&&c==-1&&h==-1?l:n==-1&&i==-1&&a==-1?p:l+"T"+p}var bad_formats={"d.m":"d\\.m"};function SSF__load(e,r){return SSF_load(bad_formats[e]||e,r)}var CRC32=function(){var e={};e.version="1.2.0";function r(){for(var _=0,oe=new Array(256),ee=0;ee!=256;++ee)_=ee,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,oe[ee]=_;return typeof Int32Array<"u"?new Int32Array(oe):oe}var t=r();function n(_){var oe=0,ee=0,Ee=0,Le=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(Ee=0;Ee!=256;++Ee)Le[Ee]=_[Ee];for(Ee=0;Ee!=256;++Ee)for(ee=_[Ee],oe=256+Ee;oe<4096;oe+=256)ee=Le[oe]=ee>>>8^_[ee&255];var Pe=[];for(Ee=1;Ee!=16;++Ee)Pe[Ee-1]=typeof Int32Array<"u"&&typeof Le.subarray=="function"?Le.subarray(Ee*256,Ee*256+256):Le.slice(Ee*256,Ee*256+256);return Pe}var i=n(t),a=i[0],s=i[1],c=i[2],h=i[3],l=i[4],p=i[5],b=i[6],m=i[7],A=i[8],L=i[9],k=i[10],T=i[11],S=i[12],M=i[13],H=i[14];function te(_,oe){for(var ee=oe^-1,Ee=0,Le=_.length;Ee<Le;)ee=ee>>>8^t[(ee^_.charCodeAt(Ee++))&255];return~ee}function Ie(_,oe){for(var ee=oe^-1,Ee=_.length-15,Le=0;Le<Ee;)ee=H[_[Le++]^ee&255]^M[_[Le++]^ee>>8&255]^S[_[Le++]^ee>>16&255]^T[_[Le++]^ee>>>24]^k[_[Le++]]^L[_[Le++]]^A[_[Le++]]^m[_[Le++]]^b[_[Le++]]^p[_[Le++]]^l[_[Le++]]^h[_[Le++]]^c[_[Le++]]^s[_[Le++]]^a[_[Le++]]^t[_[Le++]];for(Ee+=15;Le<Ee;)ee=ee>>>8^t[(ee^_[Le++])&255];return~ee}function we(_,oe){for(var ee=oe^-1,Ee=0,Le=_.length,Pe=0,$e=0;Ee<Le;
vendor: 8,925 bytes, line 167
167)Pe=_.charCodeAt(Ee++),Pe<128?ee=ee>>>8^t[(ee^Pe)&255]:Pe<2048?(ee=ee>>>8^t[(ee^(192|Pe>>6&31))&255],ee=ee>>>8^t[(ee^(128|Pe&63))&255]):Pe>=55296&&Pe<57344?(Pe=(Pe&1023)+64,$e=_.charCodeAt(Ee++)&1023,ee=ee>>>8^t[(ee^(240|Pe>>8&7))&255],ee=ee>>>8^t[(ee^(128|Pe>>2&63))&255],ee=ee>>>8^t[(ee^(128|$e>>6&15|(Pe&3)<<4))&255],ee=ee>>>8^t[(ee^(128|$e&63))&255]):(ee=ee>>>8^t[(ee^(224|Pe>>12&15))&255],ee=ee>>>8^t[(ee^(128|Pe>>6&63))&255],ee=ee>>>8^t[(ee^(128|Pe&63))&255]);return~ee}return e.table=t,e.bstr=te,e.buf=Ie,e.str=we,e}(),CFB=function e(){var r={};r.version="1.2.2";function t(P,X){for(var z=P.split("/"),B=X.split("/"),G=0,Q=0,pe=Math.min(z.length,B.length);G<pe;++G){if(Q=z[G].length-B[G].length)return Q;if(z[G]!=B[G])return z[G]<B[G]?-1:1}return z.length-B.length}function n(P){if(P.charAt(P.length-1)=="/")return P.slice(0,-1).indexOf("/")===-1?P:n(P.slice(0,-1));var X=P.lastIndexOf("/");return X===-1?P:P.slice(0,X+1)}function i(P){if(P.charAt(P.length-1)=="/")return i(P.slice(0,-1));var X=P.lastIndexOf("/");return X===-1?P:P.slice(X+1)}function a(P,X){typeof X=="string"&&(X=new Date(X));var z=X.getHours();z=z<<6|X.getMinutes(),z=z<<5|X.getSeconds()>>>1,P.write_shift(2,z);var B=X.getFullYear()-1980;B=B<<4|X.getMonth()+1,B=B<<5|X.getDate(),P.write_shift(2,B)}function s(P){var X=P.read_shift(2)&65535,z=P.read_shift(2)&65535,B=new Date,G=z&31;z>>>=5;var Q=z&15;z>>>=4,B.setMilliseconds(0),B.setFullYear(z+1980),B.setMonth(Q-1),B.setDate(G);var pe=X&31;X>>>=5;var Fe=X&63;return X>>>=6,B.setHours(X),B.setMinutes(Fe),B.setSeconds(pe<<1),B}function c(P){prep_blob(P,0);for(var X={},z=0;P.l<=P.length-4;){var B=P.read_shift(2),G=P.read_shift(2),Q=P.l+G,pe={};switch(B){case 21589:z=P.read_shift(1),z&1&&(pe.mtime=P.read_shift(4)),G>5&&(z&2&&(pe.atime=P.read_shift(4)),z&4&&(pe.ctime=P.read_shift(4))),pe.mtime&&(pe.mt=new Date(pe.mtime*1e3));break;case 1:{var Fe=P.read_shift(4),ve=P.read_shift(4);pe.usz=ve*Math.pow(2,32)+Fe,Fe=P.read_shift(4),ve=P.read_shift(4),pe.csz=ve*Math.pow(2,32)+Fe}break}P.l=Q,X[B]=pe}return X}var h;function l(){return h||(h=_fs)}function p(P,X){if(P[0]==80&&P[1]==75)return or(P,X);if((P[0]|32)==109&&(P[1]|32)==105)return it(P,X);if(P.length<512)throw new Error("CFB file size "+P.length+" < 512");var z=3,B=512,G=0,Q=0,pe=0,Fe=0,ve=0,ge=[],_e=P.slice(0,512);prep_blob(_e,0);var We=b(_e);switch(z=We[0],z){case 3:B=512;break;case 4:B=4096;break;case 0:if(We[1]==0)return or(P,X);default:throw new Error("Major Version: Expected 3 or 4 saw "+z)}B!==512&&(_e=P.slice(0,B),prep_blob(_e,28));var Ye=P.slice(0,B);m(_e,z);var Ne=_e.read_shift(4,"i");if(z===3&&Ne!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Ne);_e.l+=4,pe=_e.read_shift(4,"i"),_e.l+=4,_e.chk("00100000","Mini Stream Cutoff Size: "),Fe=_e.read_shift(4,"i"),G=_e.read_shift(4,"i"),ve=_e.read_shift(4,"i"),Q=_e.read_shift(4,"i");for(var Oe=-1,ze=0;ze<109&&(Oe=_e.read_shift(4,"i"),!(Oe<0));++ze)ge[ze]=Oe;var at=A(P,B);T(ve,Q,at,B,ge);var zt=M(at,pe,ge,B);pe<zt.length&&(zt[pe].name="!Directory"),G>0&&Fe!==$e&&(zt[Fe].name="!MiniFAT"),zt[ge[0]].name="!FAT",zt.fat_addrs=ge,zt.ssz=B;var Nt={},jt=[],tr=[],qt=[];H(pe,zt,at,jt,G,Nt,tr,Fe),L(tr,qt,jt),jt.shift();var cr={FileIndex:tr,FullPaths:qt};return X&&X.raw&&(cr.raw={header:Ye,sectors:at}),cr}function b(P){if(P[P.l]==80&&P[P.l+1]==75)return[0,0];P.chk(Ze,"Header Signature: "),P.l+=16;var X=P.read_shift(2,"u");return[P.read_shift(2,"u"),X]}function m(P,X){var z=9;switch(P.l+=2,z=P.read_shift(2)){case 9:if(X!=3)throw new Error("Sector Shift: Expected 9 saw "+z);break;case 12:if(X!=4)throw new Error("Sector Shift: Expected 12 saw "+z);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+z)}P.chk("0600","Mini Sector Shift: "),P.chk("000000000000","Reserved: ")}function A(P,X){for(var z=Math.ceil(P.length/X)-1,B=[],G=1;G<z;++G)B[G-1]=P.slice(G*X,(G+1)*X);return B[z-1]=P.slice(z*X),B}function L(P,X,z){for(var B=0,G=0,Q=0,pe=0,Fe=0,ve=z.length,ge=[],_e=[];B<ve;++B)ge[B]=_e[B]=B,X[B]=z[B];for(;Fe<_e.length;++Fe)B=_e[Fe],G=P[B].L,Q=P[B].R,pe=P[B].C,ge[B]===B&&(G!==-1&&ge[G]!==G&&(ge[B]=ge[G]),Q!==-1&&ge[Q]!==Q&&(ge[B]=ge[Q])),pe!==-1&&(ge[pe]=B),G!==-1&&B!=ge[B]&&(ge[G]=ge[B],_e.lastIndexOf(G)<Fe&&_e.push(G)),Q!==-1&&B!=ge[B]&&(ge[Q]=ge[B],_e.lastIndexOf(Q)<Fe&&_e.push(Q));for(B=1;B<ve;++B)ge[B]===B&&(Q!==-1&&ge[Q]!==Q?ge[B]=ge[Q]:G!==-1&&ge[G]!==G&&(ge[B]=ge[G]));for(B=1;B<ve;++B)if(P[B].type!==0){if(Fe=B,Fe!=ge[Fe])do Fe=ge[Fe],X[B]=X[Fe]+"/"+X[B];while(Fe!==0&&ge[Fe]!==-1&&Fe!=ge[Fe]);ge[B]=-1}for(X[0]+="/",B=1;B<ve;++B)P[B].type!==2&&(X[B]+="/")}function k(P,X,z){for(var B=P.start,G=P.size,Q=[],pe=B;z&&G>0&&pe>=0;)Q.push(X.slice(pe*Pe,pe*Pe+Pe)),G-=Pe,pe=__readInt32LE(z,pe*4);return Q.length===0?new_buf(0):bconcat(Q).slice(0,P.size)}function T(P,X,z,B,G){var Q=$e;if(P===$e){if(X!==0)throw new Error("DIFAT chain shorter than expected")}else if(P!==-1){var pe=z[P],Fe=(B>>>2)-1;if(!pe)return;for(var ve=0;ve<Fe&&(Q=__readInt32LE(pe,ve*4))!==$e;++ve)G.push(Q);X>=1&&T(__readInt32LE(pe,B-4),X-1,z,B,G)}}function S(P,X,z,B,G){var Q=[],pe=[];G||(G=[]);var Fe=B-1,ve=0,ge=0;for(ve=X;ve>=0;){G[ve]=!0,Q[Q.length]=ve,pe.push(P[ve]);var _e=z[Math.floor(ve*4/B)];if(ge=ve*4&Fe,B<4+ge)throw new Error("FAT boundary crossed: "+ve+" 4 "+B);if(!P[_e])break;ve=__readInt32LE(P[_e],ge)}return{nodes:Q,data:__toBuffer([pe])}}function M(P,X,z,B){var G=P.length,Q=[],pe=[],Fe=[],ve=[],ge=B-1,_e=0,We=0,Ye=0,Ne=0;for(_e=0;_e<G;++_e)if(Fe=[],Ye=_e+X,Ye>=G&&(Ye-=G),!pe[Ye]){ve=[];var Oe=[];for(We=Ye;We>=0;){Oe[We]=!0,pe[We]=!0,Fe[Fe.length]=We,ve.push(P[We]);var ze=z[Math.floor(We*4/B)];if(Ne=We*4&ge,B<4+Ne)throw new Error("FAT boundary crossed: "+We+" 4 "+B);if(!P[ze]||(We=__readInt32LE(P[ze],Ne),Oe[We]))break}Q[Ye]={nodes:Fe,data:__toBuffer([ve])}}return Q}function H(P,X,z,B,G,Q,pe,Fe){for(var ve=0,ge=B.length?2:0,_e=X[P].data,We=0,Ye=0,Ne;We<_e.length;We+=128){var Oe=_e.slice(We,We+128);prep_blob(Oe,64),Ye=Oe.read_shift(2),Ne=__utf16le(Oe,0,Ye-ge),B.push(Ne);var ze={name:Ne,type:Oe.read_shift(1),color:Oe.read_shift(1),L:Oe.read_shift(4,"i"),R:Oe.read_shift(4,"i"),C:Oe.read_shift(4,"i"),clsid:Oe.read_shift(16),state:Oe.read_shift(4,"i"),start:0,size:0},at=Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2);at!==0&&(ze.ct=te(Oe,Oe.l-8));var zt=Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2);zt!==0&&(ze.mt=te(Oe,Oe.l-8)),ze.start=Oe.read_shift(4,"i"),ze.size=Oe.read_shift(4,"i"),ze.size<0&&ze.start<0&&(ze.size=ze.type=0,ze.start=$e,ze.name=""),ze.type===5?(ve=ze.start,G>0&&ve!==$e&&(X[ve].name="!StreamData")):ze.size>=4096?(ze.storage="fat",X[ze.start]===void 0&&(X[ze.start]=S(z,ze.start,X.fat_addrs,X.ssz)),X[ze.start].name=ze.name,ze.content=X[ze.start].data.slice(0,ze.size)):(ze.storage="minifat",ze.size<0?ze.size=0:ve!==$e&&ze.start!==$e&&X[ve]&&(ze.content=k(ze,X[ve].data,(X[Fe]||{}).data))),ze.content&&prep_blob(ze.content,0),Q[Ne]=ze,pe.push(ze)}}function te(P,X){return new Date((__readUInt32LE(P,X+4)/1e7*Math.pow(2,32)+__readUInt32LE(P,X)/1e7-11644473600)*1e3)}function Ie(P,X){return l(),p(h.readFileSync(P),X)}function we(P,X){var z=X&&X.type;switch(z||has_buf&&Buffer.isBuffer(P)&&(z="buffer"),z||"base64"){case"file":return Ie(P,X);case"base64":return p(s2a(Base64_decode(P)),X);case"binary":return p(s2a(P),X)}return p(P,X)}function _(P,X){var z=X||{},B=z.root||"Root Entry";if(P.FullPaths||(P.FullPaths=[]),P.FileIndex||(P.FileIndex=[]),P.FullPaths.length!==P.FileIndex.length)throw new Error("inconsistent CFB structure");P.FullPaths.length===0&&(P.FullPaths[0]=B+"/",P.FileIndex[0]={name:B,type:5}),z.CLSID&&(P.FileIndex[0].clsid=z.CLSID),oe(P)}function oe(P){var X="�Sh33tJ5";if(!CFB.find(P,"/"+X)){var z=new_buf(4);z[0]=55,z[1]=z[3]=50,z[2]=54,P.FileIndex.push({name:X,type:2,content:z,size:4,L:69,R:69,C:69}),P.FullPaths.push(P.FullPaths[0]+X),ee(P)}}function ee(P,X){_(P);for(var z=!1,B=!1,G=P.FullPaths.length-1;G>=0;--G){var Q=P.FileIndex[G];switch(Q.type){case 0:B?z=!0:(P.FileIndex.pop(),P.FullPaths.pop());break;case 1:case 2:case 5:B=!0,isNaN(Q.R*Q.L*Q.C)&&(z=!0),Q.R>-1&&Q.L>-1&&Q.R==Q.L&&(z=!0);break;default:z=!0;break}}if(!(!z&&!X)){var pe=new Date(1987,1,19),Fe=0,ve=Object.create?Object.create(null):{},ge=[];for(G=0;G<P.FullPaths.length;++G)ve[P.FullPaths[G]]=!0,P.FileIndex[G].type!==0&&ge.push([P.FullPaths[G],P.FileIndex[G]]);for(G=0;G<ge.length;++G){var _e=n(ge[G][0]);for(B=ve[_e];!B;){for(;n(_e)&&!ve[n(_e)];)_e=n(_e);ge.push([_e,{name:i(_e).replace("/",""),type:1,clsid:gt,ct:pe,mt:pe,content:null}]),ve[_e]=!0,_e=n(ge[G][0]),B=ve[_e]}}for(ge.sort(function(Ne,Oe){return t(Ne[0],Oe[0])}),P.FullPaths=[],P.FileIndex=[],G=0;G<ge.length;++G)P.FullPaths[G]=ge[G][0],P.FileIndex[G]=ge[G][1];for(G=0;G<ge.length;++G){var We=P.FileIndex[G],Ye=P.FullPaths[G];if(We.name=i(Ye).replace("/",""),We.L=We.R=We.C=-(We.color=1),We.size=We.content?We.content.length:0,We.start=0,We.clsid=We.clsid||gt,G===0)We.C=ge.length>1?1:-1,We.size=0,We.type=5;
vendor: 17,798 bytes, lines 167-175
167else if(Ye.slice(-1)=="/"){for(Fe=G+1;Fe<ge.length&&n(P.FullPaths[Fe])!=Ye;++Fe);for(We.C=Fe>=ge.length?-1:Fe,Fe=G+1;Fe<ge.length&&n(P.FullPaths[Fe])!=n(Ye);++Fe);We.R=Fe>=ge.length?-1:Fe,We.type=1}else n(P.FullPaths[G+1]||"")==n(Ye)&&(We.R=G+1),We.type=2}}}function Ee(P,X){var z=X||{};if(z.fileType=="mad")return bt(P,z);switch(ee(P),z.fileType){case"zip":return lr(P,z)}var B=function(Ne){for(var Oe=0,ze=0,at=0;at<Ne.FileIndex.length;++at){var zt=Ne.FileIndex[at];if(zt.content){var Nt=zt.content.length;Nt>0&&(Nt<4096?Oe+=Nt+63>>6:ze+=Nt+511>>9)}}for(var jt=Ne.FullPaths.length+3>>2,tr=Oe+7>>3,qt=Oe+127>>7,cr=tr+ze+jt+qt,er=cr+127>>7,Se=er<=109?0:Math.ceil((er-109)/127);cr+er+Se+127>>7>er;)Se=++er<=109?0:Math.ceil((er-109)/127);var Ue=[1,Se,er,qt,jt,ze,Oe,0];return Ne.FileIndex[0].size=Oe<<6,Ue[7]=(Ne.FileIndex[0].start=Ue[0]+Ue[1]+Ue[2]+Ue[3]+Ue[4]+Ue[5])+(Ue[6]+7>>3),Ue}(P),G=new_buf(B[7]<<9),Q=0,pe=0;{for(Q=0;Q<8;++Q)G.write_shift(1,je[Q]);for(Q=0;Q<8;++Q)G.write_shift(2,0);for(G.write_shift(2,62),G.write_shift(2,3),G.write_shift(2,65534),G.write_shift(2,9),G.write_shift(2,6),Q=0;Q<3;++Q)G.write_shift(2,0);for(G.write_shift(4,0),G.write_shift(4,B[2]),G.write_shift(4,B[0]+B[1]+B[2]+B[3]-1),G.write_shift(4,0),G.write_shift(4,4096),G.write_shift(4,B[3]?B[0]+B[1]+B[2]-1:$e),G.write_shift(4,B[3]),G.write_shift(-4,B[1]?B[0]-1:$e),G.write_shift(4,B[1]),Q=0;Q<109;++Q)G.write_shift(-4,Q<B[2]?B[1]+Q:-1)}if(B[1])for(pe=0;pe<B[1];++pe){for(;Q<236+pe*127;++Q)G.write_shift(-4,Q<B[2]?B[1]+Q:-1);G.write_shift(-4,pe===B[1]-1?$e:pe+1)}var Fe=function(Ne){for(pe+=Ne;Q<pe-1;++Q)G.write_shift(-4,Q+1);Ne&&(++Q,G.write_shift(-4,$e))};for(pe=Q=0,pe+=B[1];Q<pe;++Q)G.write_shift(-4,Xe.DIFSECT);for(pe+=B[2];Q<pe;++Q)G.write_shift(-4,Xe.FATSECT);Fe(B[3]),Fe(B[4]);for(var ve=0,ge=0,_e=P.FileIndex[0];ve<P.FileIndex.length;++ve)_e=P.FileIndex[ve],_e.content&&(ge=_e.content.length,!(ge<4096)&&(_e.start=pe,Fe(ge+511>>9)));for(Fe(B[6]+7>>3);G.l&511;)G.write_shift(-4,Xe.ENDOFCHAIN);for(pe=Q=0,ve=0;ve<P.FileIndex.length;++ve)_e=P.FileIndex[ve],_e.content&&(ge=_e.content.length,!(!ge||ge>=4096)&&(_e.start=pe,Fe(ge+63>>6)));for(;G.l&511;)G.write_shift(-4,Xe.ENDOFCHAIN);for(Q=0;Q<B[4]<<2;++Q){var We=P.FullPaths[Q];if(!We||We.length===0){for(ve=0;ve<17;++ve)G.write_shift(4,0);for(ve=0;ve<3;++ve)G.write_shift(4,-1);for(ve=0;ve<12;++ve)G.write_shift(4,0);continue}_e=P.FileIndex[Q],Q===0&&(_e.start=_e.size?_e.start-1:$e);var Ye=Q===0&&z.root||_e.name;if(Ye.length>32&&(console.error("Name "+Ye+" will be truncated to "+Ye.slice(0,32)),Ye=Ye.slice(0,32)),ge=2*(Ye.length+1),G.write_shift(64,Ye,"utf16le"),G.write_shift(2,ge),G.write_shift(1,_e.type),G.write_shift(1,_e.color),G.write_shift(-4,_e.L),G.write_shift(-4,_e.R),G.write_shift(-4,_e.C),_e.clsid)G.write_shift(16,_e.clsid,"hex");else for(ve=0;ve<4;++ve)G.write_shift(4,0);G.write_shift(4,_e.state||0),G.write_shift(4,0),G.write_shift(4,0),G.write_shift(4,0),G.write_shift(4,0),G.write_shift(4,_e.start),G.write_shift(4,_e.size),G.write_shift(4,0)}for(Q=1;Q<P.FileIndex.length;++Q)if(_e=P.FileIndex[Q],_e.size>=4096)if(G.l=_e.start+1<<9,has_buf&&Buffer.isBuffer(_e.content))_e.content.copy(G,G.l,0,_e.size),G.l+=_e.size+511&-512;else{for(ve=0;ve<_e.size;++ve)G.write_shift(1,_e.content[ve]);for(;ve&511;++ve)G.write_shift(1,0)}for(Q=1;Q<P.FileIndex.length;++Q)if(_e=P.FileIndex[Q],_e.size>0&&_e.size<4096)if(has_buf&&Buffer.isBuffer(_e.content))_e.content.copy(G,G.l,0,_e.size),G.l+=_e.size+63&-64;else{for(ve=0;ve<_e.size;++ve)G.write_shift(1,_e.content[ve]);for(;ve&63;++ve)G.write_shift(1,0)}if(has_buf)G.l=G.length;else for(;G.l<G.length;)G.write_shift(1,0);return G}function Le(P,X){var z=P.FullPaths.map(function(ve){return ve.toUpperCase()}),B=z.map(function(ve){var ge=ve.split("/");return ge[ge.length-(ve.slice(-1)=="/"?2:1)]}),G=!1;X.charCodeAt(0)===47?(G=!0,X=z[0].slice(0,-1)+X):G=X.indexOf("/")!==-1;var Q=X.toUpperCase(),pe=G===!0?z.indexOf(Q):B.indexOf(Q);if(pe!==-1)return P.FileIndex[pe];var Fe=!Q.match(chr1);for(Q=Q.replace(chr0,""),Fe&&(Q=Q.replace(chr1,"!")),pe=0;pe<z.length;++pe)if((Fe?z[pe].replace(chr1,"!"):z[pe]).replace(chr0,"")==Q||(Fe?B[pe].replace(chr1,"!"):B[pe]).replace(chr0,"")==Q)return P.FileIndex[pe];return null}var Pe=64,$e=-2,Ze="d0cf11e0a1b11ae1",je=[208,207,17,224,161,177,26,225],gt="00000000000000000000000000000000",Xe={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:$e,FREESECT:-1,HEADER_SIGNATURE:Ze,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:gt,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function dt(P,X,z){l();var B=Ee(P,z);h.writeFileSync(X,B)}function yt(P){for(var X=new Array(P.length),z=0;z<P.length;++z)X[z]=String.fromCharCode(P[z]);return X.join("")}function Bt(P,X){var z=Ee(P,X);switch(X&&X.type||"buffer"){case"file":return l(),h.writeFileSync(X.filename,z),z;case"binary":return typeof z=="string"?z:yt(z);case"base64":return Base64_encode(typeof z=="string"?z:yt(z));case"buffer":if(has_buf)return Buffer.isBuffer(z)?z:Buffer_from(z);case"array":return typeof z=="string"?s2a(z):z}return z}var se;function xe(P){try{var X=P.InflateRaw,z=new X;if(z._processChunk(new Uint8Array([3,0]),z._finishFlushFlag),z.bytesRead)se=P;else throw new Error("zlib does not expose bytesRead")}catch(B){console.error("cannot use native zlib: "+(B.message||B))}}function qe(P,X){if(!se)return Sr(P,X);var z=se.InflateRaw,B=new z,G=B._processChunk(P.slice(P.l),B._finishFlushFlag);return P.l+=B.bytesRead,G}function R(P){return se?se.deflateRawSync(P):Er(P)}var re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ne=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function be(P){var X=(P<<1|P<<11)&139536|(P<<5|P<<15)&558144;return(X>>16|X>>8|X)&255}for(var fe=typeof Uint8Array<"u",ye=fe?new Uint8Array(256):[],et=0;et<256;++et)ye[et]=be(et);function Be(P,X){var z=ye[P&255];return X<=8?z>>>8-X:(z=z<<8|ye[P>>8&255],X<=16?z>>>16-X:(z=z<<8|ye[P>>16&255],z>>>24-X))}function ht(P,X){var z=X&7,B=X>>>3;return(P[B]|(z<=6?0:P[B+1]<<8))>>>z&3}function _t(P,X){var z=X&7,B=X>>>3;return(P[B]|(z<=5?0:P[B+1]<<8))>>>z&7}function Et(P,X){var z=X&7,B=X>>>3;return(P[B]|(z<=4?0:P[B+1]<<8))>>>z&15}function Pt(P,X){var z=X&7,B=X>>>3;return(P[B]|(z<=3?0:P[B+1]<<8))>>>z&31}function Ut(P,X){var z=X&7,B=X>>>3;return(P[B]|(z<=1?0:P[B+1]<<8))>>>z&127}function rt(P,X,z){var B=X&7,G=X>>>3,Q=(1<<z)-1,pe=P[G]>>>B;return z<8-B||(pe|=P[G+1]<<8-B,z<16-B)||(pe|=P[G+2]<<16-B,z<24-B)||(pe|=P[G+3]<<24-B),pe&Q}function Vt(P,X,z){var B=X&7,G=X>>>3;return B<=5?P[G]|=(z&7)<<B:(P[G]|=z<<B&255,P[G+1]=(z&7)>>8-B),X+3}function Ke(P,X,z){var B=X&7,G=X>>>3;return z=(z&1)<<B,P[G]|=z,X+1}function At(P,X,z){var B=X&7,G=X>>>3;return z<<=B,P[G]|=z&255,z>>>=8,P[G+1]=z,X+8}function Ve(P,X,z){var B=X&7,G=X>>>3;return z<<=B,P[G]|=z&255,z>>>=8,P[G+1]=z&255,P[G+2]=z>>>8,X+16}function wt(P,X){var z=P.length,B=2*z>X?2*z:X+5,G=0;if(z>=X)return P;if(has_buf){var Q=new_unsafe_buf(B);if(P.copy)P.copy(Q);else for(;G<P.length;++G)Q[G]=P[G];return Q}else if(fe){var pe=new Uint8Array(B);if(pe.set)pe.set(P);else for(;G<z;++G)pe[G]=P[G];return pe}return P.length=B,P}function Ct(P){for(var X=new Array(P),z=0;z<P;++z)X[z]=0;return X}function nt(P,X,z){var B=1,G=0,Q=0,pe=0,Fe=0,ve=P.length,ge=fe?new Uint16Array(32):Ct(32);for(Q=0;Q<32;++Q)ge[Q]=0;for(Q=ve;Q<z;++Q)P[Q]=0;ve=P.length;var _e=fe?new Uint16Array(ve):Ct(ve);for(Q=0;Q<ve;++Q)ge[G=P[Q]]++,B<G&&(B=G),_e[Q]=0;for(ge[0]=0,Q=1;Q<=B;++Q)ge[Q+16]=Fe=Fe+ge[Q-1]<<1;for(Q=0;Q<ve;++Q)Fe=P[Q],Fe!=0&&(_e[Q]=ge[Fe+16]++);var We=0;for(Q=0;Q<ve;++Q)if(We=P[Q],We!=0)for(Fe=Be(_e[Q],B)>>B-We,pe=(1<<B+4-We)-1;pe>=0;--pe)X[Fe|pe<<We]=We&15|Q<<4;return B}var Ht=fe?new Uint16Array(512):Ct(512),Tr=fe?new Uint16Array(32):Ct(32);if(!fe){for(var ar=0;ar<512;++ar)Ht[ar]=0;for(ar=0;ar<32;++ar)Tr[ar]=0}(function(){for(var P=[],X=0;X<32;X++)P.push(5);nt(P,Tr,32);var z=[];for(X=0;X<=143;X++)z.push(8);for(;X<=255;X++)z.push(9);for(;X<=279;X++)z.push(7);for(;X<=287;X++)z.push(8);nt(z,Ht,288)})();var Mr=function(){for(var X=fe?new Uint8Array(32768):[],z=0,B=0;z<ne.length-1;++z)for(;B<ne[z+1];++B)X[B]=z;for(;B<32768;++B)X[B]=29;var G=fe?new Uint8Array(259):[];for(z=0,B=0;z<W.length-1;++z)for(;B<W[z+1];++B)G[B]=z;function Q(Fe,ve){for(var ge=0;ge<Fe.length;){var _e=Math.min(65535,Fe.length-ge),We=ge+_e==Fe.length;for(ve.write_shift(1,+We),ve.write_shift(2,_e),ve.write_shift(2,~_e&65535);_e-- >0;)ve[ve.l++]=Fe[ge++]}return ve.l}function pe(Fe,ve){for(var ge=0,_e=0,We=fe?new Uint16Array(32768):[];_e<Fe.length;){var Ye=Math.min(65535,Fe.length-_e);if(Ye<10){for(ge=Vt(ve,ge,+(_e+Ye==Fe.length)),ge&7&&(ge+=8-(ge&7)),ve.l=ge/8|0,ve.write_shift(2,Ye),ve.write_shift(2,~Ye&65535);Ye-- >0;)ve[ve.l++]=Fe[_e++];ge=ve.l*8;continue}ge=Vt(ve,ge,+(_e+Ye==Fe.length)+2);for(var Ne=0;Ye-- >0;){var Oe=Fe[_e];Ne=(Ne<<5^Oe)&32767;var ze=-1,at=0;if((ze=We[Ne])&&(ze|=_e&-32768,ze>_e&&(ze-=32768),ze<_e))for(;Fe[ze+at]==Fe[_e+at]&&at<250;)++at;if(at>2){Oe=G[at],Oe<=22?ge=At(ve,ge,ye[Oe+1]>>1)-1:(At(ve,ge,3),ge+=5,At(ve,ge,ye[Oe-23]>>5),ge+=3);var zt=Oe<8?0:Oe-4>>2;zt>0&&(Ve(ve,ge,at-W[Oe]),ge+=zt),Oe=X[_e-ze],ge=At(ve,ge,ye[Oe]>>3),ge-=3;var Nt=Oe<4?0:Oe-2>>1;Nt>0&&(Ve(ve,ge,_e-ze-ne[Oe]),ge+=Nt);for(var jt=0;jt<at;++jt)We[Ne]=_e&32767,Ne=(Ne<<5^Fe[_e])&32767,++_e;Ye-=at-1}else Oe<=143?Oe=Oe+48:ge=Ke(ve,ge,1),ge=At(ve,ge,ye[Oe]),We[Ne]=_e&32767,++_e}ge=At(ve,ge,0)-1}return ve.l=(ge+7)/8|0,ve.l}return function(ve,ge){return ve.length<8?Q(ve,ge):pe(ve,ge)}}();function Er(P){var X=new_buf(50+Math.floor(P.length*1.1)),z=Mr(P,X);return X.slice(0,z)}var dr=fe?new Uint16Array(32768):Ct(32768),sr=fe?new Uint16Array(32768):Ct(32768),Jt=fe?new Uint16Array(128):Ct(128),Zt=1,Ft=1;function Lr(P,X){var z=Pt(P,X)+257;X+=5;var B=Pt(P,X)+1;X+=5;var G=Et(P,X)+4;X+=4;for(var Q=0,pe=fe?new Uint8Array(19):Ct(19),Fe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ve=1,ge=fe?new Uint8Array(8):Ct(8),_e=fe?new Uint8Array(8):Ct(8),We=pe.length,Ye=0;Ye<G;++Ye)pe[re[Ye]]=Q=_t(P,X),ve<Q&&(ve=Q),ge[Q]++,X+=3;var Ne=0;for(ge[0]=0,Ye=1;Ye<=ve;++Ye)_e[Ye]=Ne=Ne+ge[Ye-1]<<1;for(Ye=0;Ye<We;++Ye)(Ne=pe[Ye])!=0&&(Fe[Ye]=_e[Ne]++);var Oe=0;for(Ye=0;Ye<We;++Ye)if(Oe=pe[Ye],Oe!=0){Ne=ye[Fe[Ye]]>>8-Oe;for(var ze=(1<<7-Oe)-1;ze>=0;--ze)Jt[Ne|ze<<Oe]=Oe&7|Ye<<3}var at=[];for(ve=1;at.length<z+B;)switch(Ne=Jt[Ut(P,X)],X+=Ne&7,Ne>>>=3){case 16:for(Q=3+ht(P,X),X+=2,Ne=at[at.length-1];Q-- >0;)at.push(Ne);break;case 17:for(Q=3+_t(P,X),X+=3;Q-- >0;)at.push(0);break;case 18:for(Q=11+Ut(P,X),X+=7;Q-- >0;)at.push(0);break;default:at.push(Ne),ve<Ne&&(ve=Ne);break}var zt=at.slice(0,z),Nt=at.slice(z);for(Ye=z;Ye<286;++Ye)zt[Ye]=0;for(Ye=B;Ye<30;++Ye)Nt[Ye]=0;return Zt=nt(zt,dr,286),Ft=nt(Nt,sr,30),X}function hr(P,X){if(P[0]==3&&!(P[1]&3))return[new_raw_buf(X),2];for(var z=0,B=0,G=new_unsafe_buf(X||1<<18),Q=0,pe=G.length>>>0,Fe=0,ve=0;!(B&1);){if(B=_t(P,z),z+=3,B>>>1)B>>1==1?(Fe=9,ve=5):(z=Lr(P,z),Fe=Zt,ve=Ft);else{z&7&&(z+=8-(z&7));var ge=P[z>>>3]|P[(z>>>3)+1]<<8;if(z+=32,ge>0)for(!X&&pe<Q+ge&&(G=wt(G,Q+ge),pe=G.length);ge-- >0;)G[Q++]=P[z>>>3],z+=8;continue}for(;;){!X&&pe<Q+32767&&(G=wt(G,Q+32767),pe=G.length);var _e=rt(P,z,Fe),We=B>>>1==1?Ht[_e]:dr[_e];if(z+=We&15,We>>>=4,!(We>>>8&255))G[Q++]=We;else{if(We==256)break;We-=257;var Ye=We<8?0:We-4>>2;Ye>5&&(Ye=0);var Ne=Q+W[We];Ye>0&&(Ne+=rt(P,z,Ye),z+=Ye),_e=rt(P,z,ve),We=B>>>1==1?Tr[_e]:sr[_e],z+=We&15,We>>>=4;var Oe=We<4?0:We-2>>1,ze=ne[We];for(Oe>0&&(ze+=rt(P,z,Oe),z+=Oe),!X&&pe<Ne&&(G=wt(G,Ne+100),pe=G.length);Q<Ne;)G[Q]=G[Q-ze],++Q}}}return X?[G,z+7>>>3]:[G.slice(0,Q),z+7>>>3]}function Sr(P,X){var z=P.slice(P.l||0),B=hr(z,X);return P.l+=B[1],B[0]}function pr(P,X){if(P)typeof console<"u"&&console.error(X);else throw new Error(X)}function or(P,X){var z=P;prep_blob(z,0);var B=[],G=[],Q={FileIndex:B,FullPaths:G};_(Q,{root:X.root});for(var pe=z.length-4;(z[pe]!=80||z[pe+1]!=75||z[pe+2]!=5||z[pe+3]!=6)&&pe>=0;)--pe;z.l=pe+4,z.l+=4;var Fe=z.read_shift(2);z.l+=6;var ve=z.read_shift(4);for(z.l=ve,pe=0;pe<Fe;++pe){z.l+=20;var ge=z.read_shift(4),_e=z.read_shift(4),We=z.read_shift(2),Ye=z.read_shift(2),Ne=z.read_shift(2);z.l+=8;var Oe=z.read_shift(4),ze=c(z.slice(z.l+We,z.l+We+Ye));z.l+=We+Ye+Ne;var at=z.l;z.l=Oe+4,ze&&ze[1]&&((ze[1]||{}).usz&&(_e=ze[1].usz),(ze[1]||{}).csz&&(ge=ze[1].csz)),Yt(z,ge,_e,Q,ze),z.l=at}return Q}function Yt(P,X,z,B,G){P.l+=2;var Q=P.read_shift(2),pe=P.read_shift(2),Fe=s(P);if(Q&8257)throw new Error("Unsupported ZIP encryption");for(var ve=P.read_shift(4),ge=P.read_shift(4),_e=P.read_shift(4),We=P.read_shift(2),Ye=P.read_shift(2),Ne="",Oe=0;Oe<We;++Oe)Ne+=String.fromCharCode(P[P.l++]);if(Ye){var ze=c(P.slice(P.l,P.l+Ye));(ze[21589]||{}).mt&&(Fe=ze[21589].mt),(ze[1]||{}).usz&&(_e=ze[1].usz),(ze[1]||{}).csz&&(ge=ze[1].csz),G&&((G[21589]||{}).mt&&(Fe=G[21589].mt),(G[1]||{}).usz&&(_e=ze[1].usz),(G[1]||{}).csz&&(ge=ze[1].csz))}P.l+=Ye;var at=P.slice(P.l,P.l+ge);switch(pe){case 8:at=qe(P,_e);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+pe)}var zt=!1;Q&8&&(ve=P.read_shift(4),ve==134695760&&(ve=P.read_shift(4),zt=!0),ge=P.read_shift(4),_e=P.read_shift(4)),ge!=X&&pr(zt,"Bad compressed size: "+X+" != "+ge),_e!=z&&pr(zt,"Bad uncompressed size: "+z+" != "+_e),Ce(B,Ne,at,{unsafe:!0,mt:Fe})}function lr(P,X){var z=X||{},B=[],G=[],Q=new_buf(1),pe=z.compression?8:0,Fe=0,ve=0,ge=0,_e=0,We=0,Ye=P.FullPaths[0],Ne=Ye,Oe=P.FileIndex[0],ze=[],at=0;for(ve=1;ve<P.FullPaths.length;++ve)if(Ne=P.FullPaths[ve].slice(Ye.length),Oe=P.FileIndex[ve],!(!Oe.size||!Oe.content||Ne=="�Sh33tJ5")){var zt=_e,Nt=new_buf(Ne.length);for(ge=0;ge<Ne.length;++ge)Nt.write_shift(1,Ne.charCodeAt(ge)&127);Nt=Nt.slice(0,Nt.l),ze[We]=typeof Oe.content=="string"?CRC32.bstr(Oe.content,0):CRC32.buf(Oe.content,0);var jt=typeof Oe.content=="string"?s2a(Oe.content):Oe.content;pe==8&&(jt=R(jt)),Q=new_buf(30),Q.write_shift(4,67324752),Q.write_shift(2,20),Q.write_shift(2,Fe),Q.write_shift(2,pe),Oe.mt?a(Q,Oe.mt):Q.write_shift(4,0),Q.write_shift(-4,ze[We]),Q.write_shift(4,jt.length),Q.write_shift(4,Oe.content.length),Q.write_shift(2,Nt.length),Q.write_shift(2,0),_e+=Q.length,B.push(Q),_e+=Nt.length,B.push(Nt),_e+=jt.length,B.push(jt),Q=new_buf(46),Q.write_shift(4,33639248),Q.write_shift(2,0),Q.write_shift(2,20),Q.write_shift(2,Fe),Q.write_shift(2,pe),Q.write_shift(4,0),Q.write_shift(-4,ze[We]),Q.write_shift(4,jt.length),Q.write_shift(4,Oe.content.length),Q.write_shift(2,Nt.length),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(4,0),Q.write_shift(4,zt),at+=Q.l,G.push(Q),at+=Nt.length,G.push(Nt),++We}return Q=new_buf(22),Q.write_shift(4,101010256),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,We),Q.write_shift(2,We),Q.write_shift(4,at),Q.write_shift(4,_e),Q.write_shift(2,0),bconcat([bconcat(B),bconcat(G),Q])}var wr={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function U(P,X){if(P.ctype)return P.ctype;var z=P.name||"",B=z.match(/\.([^\.]+)$/);return B&&wr[B[1]]||X&&(B=(z=X).match(/[\.\\]([^\.\\])+$/),B&&wr[B[1]])?wr[B[1]]:"application/octet-stream"}function J(P){for(var X=Base64_encode(P),z=[],B=0;B<X.length;B+=76)z.push(X.slice(B,B+76));return z.join(`\r 168`)+`\r 169`}function ue(P){var X=P.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ge){var _e=ge.charCodeAt(0).toString(16).toUpperCase();return"="+(_e.length==1?"0"+_e:_e)});X=X.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),X.charAt(0)==` 170`&&(X="=0D"+X.slice(1)),X=X.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,` 171=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var z=[],B=X.split(`\r 172`),G=0;G<B.length;++G){var Q=B[G];if(Q.length==0){z.push("");continue}for(var pe=0;pe<Q.length;){var Fe=76,ve=Q.slice(pe,pe+Fe);ve.charAt(Fe-1)=="="?Fe--:ve.charAt(Fe-2)=="="?Fe-=2:ve.charAt(Fe-3)=="="&&(Fe-=3),ve=Q.slice(pe,pe+Fe),pe+=Fe,pe<Q.length&&(ve+="="),z.push(ve)}}return z.join(`\r 173`)}function Me(P){for(var X=[],z=0;z<P.length;++z){for(var B=P[z];z<=P.length&&B.charAt(B.length-1)=="=";)B=B.slice(0,B.length-1)+P[++z];X.push(B)}for(var G=0;G<X.length;++G)X[G]=X[G].replace(/[=][0-9A-Fa-f]{2}/g,function(Q){return String.fromCharCode(parseInt(Q.slice(1),16))});return s2a(X.join(`\r 174`))}function Ge(P,X,z){for(var B="",G="",Q="",pe,Fe=0;Fe<10;++Fe){var ve=X[Fe];if(!ve||ve.match(/^\s*$/))break;var ge=ve.match(/^(.*?):\s*([^\s].*)$/);if(ge)switch(ge[1].toLowerCase()){case"content-location":B=ge[2].trim();break;case"content-type":Q=ge[2].trim();break;case"content-transfer-encoding":G=ge[2].trim();break}}switch(++Fe,G.toLowerCase()){case"base64":pe=s2a(Base64_decode(X.slice(Fe).join("")));break;case"quoted-printable":pe=Me(X.slice(Fe));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+G)}var _e=Ce(P,B.slice(z.length),pe,{unsafe:!0});Q&&(_e.ctype=Q)}function it(P,X){if(yt(P.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var z=X&&X.root||"",B=(has_buf&&Buffer.isBuffer(P)?P.toString("binary"):yt(P)).split(`\r 175`),G=0,Q="";for(G=0;G<B.length;++G)if(Q=B[G],!!/^Content-Location:/i.test(Q)&&(Q=Q.slice(Q.indexOf("file")),z||(z=Q.slice(0,Q.lastIndexOf("/")+1)),Q.slice(0,z.length)!=z))for(;z.length>0&&(z=z.slice(0,z.length-1),z=z.slice(0,z.lastIndexOf("/")+1),Q.slice(0,z.length)!=z););var pe=(B[1]||"").match(/boundary="(.*?)"/);if(!pe)throw new Error("MAD cannot find boundary");var Fe="--"+(pe[1]||""),ve=[],ge=[],_e={FileIndex:ve,FullPaths:ge};_(_e);var We,Ye=0;for(G=0;G<B.length;++G){var Ne=B[G];Ne!==Fe&&Ne!==Fe+"--"||(Ye++&&Ge(_e,B.slice(We,G),z),We=G)}return _e}function bt(P,X){var z=X||{},B=z.boundary||"SheetJS";B="------="+B;for(var G=["MIME-Version: 1.0",'Content-Type: multipart/related;
175 boundary="'+B.slice(2)+'"',"","",""],Q=P.FullPaths[0],pe=Q,Fe=P.FileIndex[0],ve=1;ve<P.FullPaths.length;++ve)if(pe=P.FullPaths[ve].slice(Q.length),Fe=P.FileIndex[ve],!(!Fe.size||!Fe.content||pe=="�Sh33tJ5")){pe=pe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(at){return"_x"+at.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(at){return"_u"+at.charCodeAt(0).toString(16)+"_"});for(var ge=Fe.content,_e=has_buf&&Buffer.isBuffer(ge)?ge.toString("binary"):yt(ge),We=0,Ye=Math.min(1024,_e.length),Ne=0,Oe=0;Oe<=Ye;++Oe)(Ne=_e.charCodeAt(Oe))>=32&&Ne<128&&++We;var ze=We>=Ye*4/5;G.push(B),G.push("Content-Location: "+(z.root||"file:///C:/SheetJS/")+pe),G.push("Content-Transfer-Encoding: "+(ze?"quoted-printable":"base64")),G.push("Content-Type: "+U(Fe,pe)),G.push(""),G.push(ze?ue(_e):J(_e))}return G.push(B+`--\r 176`),G.join(`\r 177`)}function lt(P){var X={};return _(X,P),X}function Ce(P,X,z,B){var G=B&&B.unsafe;G||_(P);var Q=!G&&CFB.find(P,X);if(!Q){var pe=P.FullPaths[0];X.slice(0,pe.length)==pe?pe=X:(pe.slice(-1)!="/"&&(pe+="/"),pe=(pe+X).replace("//","/")),Q={name:i(X),type:2},P.FileIndex.push(Q),P.FullPaths.push(pe),G||CFB.utils.cfb_gc(P)}return Q.content=z,Q.size=z?z.length:0,B&&(B.CLSID&&(Q.clsid=B.CLSID),B.mt&&(Q.mt=B.mt),B.ct&&(Q.ct=B.ct)),Q}function ot(P,X){_(P);var z=CFB.find(P,X);if(z){for(var B=0;B<P.FileIndex.length;++B)if(P.FileIndex[B]==z)return P.FileIndex.splice(B,1),P.FullPaths.splice(B,1),!0}return!1}function st(P,X,z){_(P);var B=CFB.find(P,X);if(B){for(var G=0;G<P.FileIndex.length;++G)if(P.FileIndex[G]==B)return P.FileIndex[G].name=i(z),P.FullPaths[G]=z,!0}return!1}function It(P){ee(P,!0)}return r.find=Le,r.read=we,r.parse=p,r.write=Bt,r.writeFile=dt,r.utils={cfb_new:lt,cfb_add:Ce,cfb_del:ot,cfb_mov:st,cfb_gc:It,ReadShift,CheckField,prep_blob,bconcat,use_zlib:xe,_deflateRaw:Er,_inflateRaw:Sr,consts:Xe},r}(),_fs;function blobify(e){return typeof e=="string"?s2ab(e):Array.isArray(e)?a2u(e):e}function write_dl(e,r,t){if(typeof Deno<"u"){if(t&&typeof r=="string")switch(t){case"utf8":r=new TextEncoder(t).encode(r);break;case"binary":r=s2ab(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var n=t=="utf8"?utf8write(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([blobify(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var c=File(e);return c.open("w"),c.encoding="binary",Array.isArray(r)&&(r=a2s(r)),c.write(r),c.close(),r}catch(h){if(!h.message||!h.message.match(/onstruct/))throw h}throw new Error("cannot save file "+e)}function keys(e){for(var r=Object.keys(e),t=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(e,r[n])&&t.push(r[n]);return t}function evert_key(e,r){for(var t=[],n=keys(e),i=0;i!==n.length;++i)t[e[n[i]][r]]==null&&(t[e[n[i]][r]]=n[i]);return t}function evert(e){for(var r=[],t=keys(e),n=0;n!==t.length;++n)r[e[t[n]]]=t[n];return r}function evert_num(e){for(var r=[],t=keys(e),n=0;n!==t.length;++n)r[e[t[n]]]=parseInt(t[n],10);return r}function evert_arr(e){for(var r=[],t=keys(e),n=0;n!==t.length;++n)r[e[t[n]]]==null&&(r[e[t[n]]]=[]),r[e[t[n]]].push(t[n]);return r}var basedate=new Date(1899,11,30,0,0,0);function datenum(e,r){var t=e.getTime();r&&(t-=1462*24*60*60*1e3);var n=basedate.getTime()+(e.getTimezoneOffset()-basedate.getTimezoneOffset())*6e4;return(t-n)/(24*60*60*1e3)}var refdate=new Date,dnthresh=basedate.getTime()+(refdate.getTimezoneOffset()-basedate.getTimezoneOffset())*6e4,refoffset=refdate.getTimezoneOffset();function numdate(e){var r=new Date;return r.setTime(e*24*60*60*1e3+dnthresh),r.getTimezoneOffset()!==refoffset&&r.setTime(r.getTime()+(r.getTimezoneOffset()-refoffset)*6e4),r}var good_pd_date_1=new Date("2017-02-19T19:06:09.000Z"),good_pd_date=isNaN(good_pd_date_1.getFullYear())?new Date("2/19/17"):good_pd_date_1,good_pd=good_pd_date.getFullYear()==2017;function parseDate(e,r){var t=new Date(e);if(good_pd)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(good_pd_date.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function cc2str(e,r){if(has_buf&&Buffer.isBuffer(e)){if(r&&buf_utf16le){if(e[0]==255&&e[1]==254)return utf8write(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return utf8write(utf16beread(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(e[0]==255&&e[1]==254)return utf8write(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return utf8write(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"â¬":"Â","â":"Â",Æ:"Â","â":"Â","â¦":" ","â ":"Â","â¡":"Â","Ë":"Â","â°":"Â",Å :"Â","â¹":"Â",Å:"Â",Ž:"Â","â":"Â","â":"Â","â":"Â","â":"Â","â¢":"Â","â":"Â","â":"Â","Ë":"Â","â¢":"Â",Å¡:"Â","âº":"Â",Å:"Â",ž:"Â",Ÿ:"Â"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[â¬âÆââ¦â â¡Ëâ°Å â¹ÅŽâââââ¢ââËâ¢Å¡âºÅžŸ]/g,function(a){return t[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function dup(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=dup(e[t]));return r}function fill(e,r){for(var t="";t.length<r;)t+=e;return t}function fuzzynum(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))return r;var t=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(r=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return t=-t,a}),!isNaN(r=Number(n)))?r/t:r}var FDRE1=/^(0?\d|1[0-2])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))\s+([ap])m?$/;function fuzzytime1(e){return e[2]?e[3]?e[4]?new Date(1899,11,30,+e[1]%12+(e[7]=="p"?12:0),+e[2],+e[4],parseFloat(e[3])*1e3):new Date(1899,11,30,e[7]=="p"?12:0,+e[1],+e[2],parseFloat(e[3])*1e3):e[5]?new Date(1899,11,30,+e[1]%12+(e[7]=="p"?12:0),+e[2],+e[5],e[6]?parseFloat(e[6])*1e3:0):new Date(1899,11,30,+e[1]%12+(e[7]=="p"?12:0),+e[2],0,0):new Date(1899,11,30,+e[1]%12+(e[7]=="p"?12:0),0,0,0)}var lower_months=["january","february","march","april","may","june","july","august","september","october","november","december"];function fuzzydate(e){var r=e.toLowerCase(),t=r.replace(/\s+/g," ").trim(),n=t.match(FDRE1);if(n)return fuzzytime1(n);var i=new Date(e),a=new Date(NaN),s=i.getYear();i.getMonth();var c=i.getDate();if(isNaN(c))return a;
177if(r.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(r=r.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),r.length>3&&lower_months.indexOf(r)==-1)return a}else if(r.replace(/[ap]m?/,"").match(/[a-z]/))return a;return s<0||s>8099||e.match(/[^-0-9:,\/\\]/)?a:i}function zip_add_file(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return has_buf?n=Buffer_from(t):n=utf8decode(t),CFB.utils.cfb_add(e,r,n)}CFB.utils.cfb_add(e,r,t)}else e.file(r,t)}function zip_new(){return CFB.utils.cfb_new()}var XML_HEADER=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r 178`,encodings={""":'"',"'":"'",">":">","<":"<","&":"&"},rencoding=evert(encodings),decregex=/[&<>'"]/g,charegex=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function escapexml(e){var r=e+"";return r.replace(decregex,function(t){return rencoding[t]}).replace(charegex,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function escapexmltag(e){return escapexml(e).replace(/ /g,"_x0020_")}var htmlcharegex=/[\u0000-\u001f]/g;function escapehtml(e){var r=e+"";return r.replace(decregex,function(t){return rencoding[t]}).replace(/\n/g,"<br/>").replace(htmlcharegex,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function escapexlml(e){var r=e+"";return r.replace(decregex,function(t){return rencoding[t]}).replace(htmlcharegex,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function xlml_unfixstr(e){return e.replace(/(\r\n|[\r\n])/g," ")}function parsexmlbool(e){switch(e){case 1:case!0:case"1":case"true":return!0;case 0:case!1:case"0":case"false":return!1}return!1}function utf8reada(e){for(var r="",t=0,n=0,i=0,a=0,s=0,c=0;t<e.length;){if(n=e.charCodeAt(t++),n<128){r+=String.fromCharCode(n);continue}if(i=e.charCodeAt(t++),n>191&&n<224){s=(n&31)<<6,s|=i&63,r+=String.fromCharCode(s);continue}if(a=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(t++),c=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(c>>>10&1023)),r+=String.fromCharCode(56320+(c&1023))}return r}function utf8readb(e){var r=new_raw_buf(2*e.length),t,n,i=1,a=0,s=0,c;for(n=0;n<e.length;n+=i)i=1,(c=e.charCodeAt(n))<128?t=c:c<224?(t=(c&31)*64+(e.charCodeAt(n+1)&63),i=2):c<240?(t=(c&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,t=(c&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),t-=65536,s=55296+(t>>>10&1023),t=56320+(t&1023)),s!==0&&(r[a++]=s&255,r[a++]=s>>>8,s=0),r[a++]=t%256,r[a++]=t>>>8;return r.slice(0,a).toString("ucs2")}function utf8readc(e){return Buffer_from(e,"binary").toString("utf8")}var utf8corpus="foo bar bazâÂÂð£",utf8read=has_buf&&(utf8readc(utf8corpus)==utf8reada(utf8corpus)&&utf8readc||utf8readb(utf8corpus)==utf8reada(utf8corpus)&&utf8readb)||utf8reada,utf8write=has_buf?function(e){return Buffer_from(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,i=0;t<e.length;)switch(n=e.charCodeAt(t++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(i&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},htmldecode=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,` 179`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),wtregex=/(^\s|\s$|\n)/;function writetag(e,r){return"<"+e+(r.match(wtregex)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function wxt_helper(e){return keys(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function writextag(e,r,t){return"<"+e+(t!=null?wxt_helper(t):"")+(r!=null?(r.match(wtregex)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function write_w3cdtf(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function write_vt(e,r){switch(typeof e){case"string":var t=writextag("vt:lpwstr",escapexml(e));return r&&(t=t.replace(/"/g,"_x0022_")),t;case"number":return writextag((e|0)==e?"vt:i4":"vt:r8",escapexml(String(e)));case"boolean":return writextag("vt:bool",e?"true":"false")}if(e instanceof Date)return writextag("vt:filetime",write_w3cdtf(e));throw new Error("Unable to serialize "+e)}
vendor: 8,743 bytes, line 179
179var XMLNS={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},XMLNS_main=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],XLMLNS={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function read_double_le(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,a=5;a>=0;--a)i=i*256+e[r+a];return n==2047?i==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),t*Math.pow(2,n-52)*i)}function write_double_le(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,i=0,a=0,s=n?-r:r;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(r)?26985:0);for(var c=0;c<=5;++c,a/=256)e[t+c]=a&255;e[t+6]=(i&15)<<4|a&15,e[t+7]=i>>4|n}var ___toBuffer=function(e){for(var r=[],t=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=t)r.push.apply(r,e[0][n].slice(i,i+t));return r},__toBuffer=has_buf?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:Buffer_from(r)})):___toBuffer(e)}:___toBuffer,___utf16le=function(e,r,t){for(var n=[],i=r;i<t;i+=2)n.push(String.fromCharCode(__readUInt16LE(e,i)));return n.join("").replace(chr0,"")},__utf16le=has_buf?function(e,r,t){return!Buffer.isBuffer(e)||!buf_utf16le?___utf16le(e,r,t):e.toString("utf16le",r,t).replace(chr0,"")}:___utf16le,___hexlify=function(e,r,t){for(var n=[],i=r;i<r+t;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},__hexlify=has_buf?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):___hexlify(e,r,t)}:___hexlify,___utf8=function(e,r,t){for(var n=[],i=r;i<t;i++)n.push(String.fromCharCode(__readUInt8(e,i)));return n.join("")},__utf8=has_buf?function e(r,t,n){return Buffer.isBuffer(r)?r.toString("utf8",t,n):___utf8(r,t,n)}:___utf8,___lpstr=function(e,r){var t=__readUInt32LE(e,r);return t>0?__utf8(e,r+4,r+4+t-1):""},__lpstr=___lpstr,___cpstr=function(e,r){var t=__readUInt32LE(e,r);return t>0?__utf8(e,r+4,r+4+t-1):""},__cpstr=___cpstr,___lpwstr=function(e,r){var t=2*__readUInt32LE(e,r);return t>0?__utf8(e,r+4,r+4+t-1):""},__lpwstr=___lpwstr,___lpp4=function e(r,t){var n=__readUInt32LE(r,t);return n>0?__utf16le(r,t+4,t+4+n):""},__lpp4=___lpp4,___8lpp4=function(e,r){var t=__readUInt32LE(e,r);return t>0?__utf8(e,r+4,r+4+t):""},__8lpp4=___8lpp4,___double=function(e,r){return read_double_le(e,r)},__double=___double,is_buf=function e(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};has_buf&&(__lpstr=function(r,t){if(!Buffer.isBuffer(r))return ___lpstr(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},__cpstr=function(r,t){if(!Buffer.isBuffer(r))return ___cpstr(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},__lpwstr=function(r,t){if(!Buffer.isBuffer(r)||!buf_utf16le)return ___lpwstr(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},__lpp4=function(r,t){if(!Buffer.isBuffer(r)||!buf_utf16le)return ___lpp4(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},__8lpp4=function(r,t){if(!Buffer.isBuffer(r))return ___8lpp4(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},__double=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):___double(r,t)},is_buf=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var __readUInt8=function(e,r){return e[r]},__readUInt16LE=function(e,r){return e[r+1]*256+e[r]},__readInt16LE=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},__readUInt32LE=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},__readInt32LE=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},__readInt32BE=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function ReadShift(e,r){var t="",n,i,a=[],s,c,h,l;switch(r){case"dbcs":if(l=this.l,has_buf&&Buffer.isBuffer(this)&&buf_utf16le)t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(h=0;h<e;++h)t+=String.fromCharCode(__readUInt16LE(this,l)),l+=2;e*=2;break;case"utf8":t=__utf8(this,this.l,this.l+e);break;case"utf16le":e*=2,t=__utf16le(this,this.l,this.l+e);break;case"wstr":return ReadShift.call(this,e,"dbcs");case"lpstr-ansi":t=__lpstr(this,this.l),e=4+__readUInt32LE(this,this.l);break;case"lpstr-cp":t=__cpstr(this,this.l),e=4+__readUInt32LE(this,this.l);break;case"lpwstr":t=__lpwstr(this,this.l),e=4+2*__readUInt32LE(this,this.l);break;case"lpp4":e=4+__readUInt32LE(this,this.l),t=__lpp4(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+__readUInt32LE(this,this.l),t=__8lpp4(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(s=__readUInt8(this,this.l+e++))!==0;)a.push(_getchar(s));t=a.join("");break;case"_wstr":for(e=0,t="";(s=__readUInt16LE(this,this.l+e))!==0;)a.push(_getchar(s)),e+=2;e+=2,t=a.join("");break;case"dbcs-cont":for(t="",l=this.l,h=0;h<e;++h){if(this.lens&&this.lens.indexOf(l)!==-1)return s=__readUInt8(this,l),this.l=l+1,c=ReadShift.call(this,e-h,s?"dbcs-cont":"sbcs-cont"),a.join("")+c;a.push(_getchar(__readUInt16LE(this,l))),l+=2}t=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(t="",l=this.l,h=0;h!=e;++h){if(this.lens&&this.lens.indexOf(l)!==-1)return s=__readUInt8(this,l),this.l=l+1,c=ReadShift.call(this,e-h,s?"dbcs-cont":"sbcs-cont"),a.join("")+c;a.push(_getchar(__readUInt8(this,l))),l+=1}t=a.join("");break;default:switch(e){case 1:return n=__readUInt8(this,this.l),this.l++,n;case 2:return n=(r==="i"?__readInt16LE:__readUInt16LE)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||!(this[this.l+3]&128)?(n=(e>0?__readInt32LE:__readInt32BE)(this,this.l),this.l+=4,n):(i=__readUInt32LE(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return e==8?i=__double(this,this.l):i=__double([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:t=__hexlify(this,this.l,e);break}}return this.l+=e,t}var __writeUInt32LE=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},__writeInt32LE=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},__writeUInt16LE=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function WriteShift(e,r,t){var n=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)__writeUInt16LE(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(t==="sbcs"||t=="cpstr"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255;n=r.length}else if(t==="hex"){for(;i<e;++i)this[this.l++]=parseInt(r.slice(2*i,2*i+2),16)||0;return this}else if(t==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(r.length,e);++i){var s=r.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=r&255;break;case 2:n=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,__writeUInt32LE(this,r,this.l);break;case 8:if(n=8,t==="f"){write_double_le(this,r,this.l);break}case 16:break;case-4:n=4,__writeInt32LE(this,r,this.l);break}return this.l+=n,this}function CheckField(e,r){var t=__hexlify(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function prep_blob(e,r){e.l=r,e.read_shift=ReadShift,e.chk=CheckField,e.write_shift=WriteShift}
179function parsenoop(e,r){e.l+=r}function new_buf(e){var r=new_raw_buf(e);return prep_blob(r,0),r}function buf_array(){var e=[],r=has_buf?256:2048,t=function(l){var p=new_buf(l);return prep_blob(p,0),p},n=t(r),i=function(){n&&(n.l&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n)),n=null)},a=function(l){return n&&l<n.length-n.l?n:(i(),n=t(Math.max(l+1,r)))},s=function(){return i(),bconcat(e)},c=function(l){i(),n=l,n.l==null&&(n.l=n.length),a(r)};return{next:a,push:c,end:s,_bufs:e}}function write_record(e,r,t,n){var i=+r,a;if(!isNaN(i)){n||(n=XLSBRecordEnum[i].p||(t||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var c=0;c!=4;++c)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&is_buf(t)&&e.push(t)}}function shift_cell_xls(e,r,t){var n=dup(e);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function shift_range_xls(e,r,t){var n=dup(e);return n.s=shift_cell_xls(n.s,r.s,t),n.e=shift_cell_xls(n.e,r.s,t),n}function encode_cell_xls(e,r){if(e.cRel&&e.c<0)for(e=dup(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=dup(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=encode_cell(e);return!e.cRel&&e.cRel!=null&&(t=fix_col(t)),!e.rRel&&e.rRel!=null&&(t=fix_row(t)),t}function encode_range_xls(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+encode_col(e.s.c)+":"+(e.e.cRel?"":"$")+encode_col(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+encode_row(e.s.r)+":"+(e.e.rRel?"":"$")+encode_row(e.e.r):encode_cell_xls(e.s,r.biff)+":"+encode_cell_xls(e.e,r.biff)}function decode_row(e){return parseInt(unfix_row(e),10)-1}function encode_row(e){return""+(e+1)}function fix_row(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function unfix_row(e){return e.replace(/\$(\d+)$/,"$1")}function decode_col(e){for(var r=unfix_col(e),t=0,n=0;n!==r.length;++n)t=26*t+r.charCodeAt(n)-64;return t-1}function encode_col(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function fix_col(e){return e.replace(/^([A-Z])/,"$$$1")}function unfix_col(e){return e.replace(/^\$([A-Z])/,"$1")}function split_cell(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function decode_cell(e){for(var r=0,t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?r=10*r+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:r-1}}function encode_cell(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function decode_range(e){var r=e.indexOf(":");return r==-1?{s:decode_cell(e),e:decode_cell(e)}:{s:decode_cell(e.slice(0,r)),e:decode_cell(e.slice(r+1))}}function encode_range(e,r){return typeof r>"u"||typeof r=="number"?encode_range(e.s,e.e):(typeof e!="string"&&(e=encode_cell(e)),typeof r!="string"&&(r=encode_cell(r)),e==r?e:e+":"+r)}function fix_range(e){var r=decode_range(e);return"$"+encode_col(r.s.c)+"$"+encode_row(r.s.r)+":$"+encode_col(r.e.c)+"$"+encode_row(r.e.r)}function formula_quote_sheet_name(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e.replace(/'/g,"''")+"'":e}function safe_decode_range(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,i=0,a=e.length;for(t=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.s.c=--t,t=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;if(r.s.r=--t,n===a||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,t=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.e.c=--t,t=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;return r.e.r=--t,r}function safe_format_cell(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=SSF_format(e.z,t?datenum(r):r)}catch{}try{return e.w=SSF_format((e.XF||{}).numFmtId||(t?14:0),t?datenum(r):r)}catch{return""+r}}function format_cell(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?BErr[e.v]||e.v:r==null?safe_format_cell(e,e.v):safe_format_cell(e,r))}function sheet_to_workbook(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function sheet_add_aoa(e,r,t){var n=t||{},i=e?e["!data"]!=null:n.dense,a=e||{};i&&!a["!data"]&&(a["!data"]=[]);var s=0,c=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;
179else{var h=typeof n.origin=="string"?decode_cell(n.origin):n.origin;s=h.r,c=h.c}a["!ref"]||(a["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var p=safe_decode_range(a["!ref"]);l.s.c=p.s.c,l.s.r=p.s.r,l.e.c=Math.max(l.e.c,p.e.c),l.e.r=Math.max(l.e.r,p.e.r),s==-1&&(l.e.r=s=p.e.r+1)}for(var b=[],m=0;m!=r.length;++m)if(r[m]){if(!Array.isArray(r[m]))throw new Error("aoa_to_sheet expects an array of arrays");var A=s+m,L=""+(A+1);i&&(a["!data"][A]||(a["!data"][A]=[]),b=a["!data"][A]);for(var k=0;k!=r[m].length;++k)if(!(typeof r[m][k]>"u")){var T={v:r[m][k]},S=c+k;if(l.s.r>A&&(l.s.r=A),l.s.c>S&&(l.s.c=S),l.e.r<A&&(l.e.r=A),l.e.c<S&&(l.e.c=S),r[m][k]&&typeof r[m][k]=="object"&&!Array.isArray(r[m][k])&&!(r[m][k]instanceof Date))T=r[m][k];else if(Array.isArray(T.v)&&(T.f=r[m][k][1],T.v=T.v[0]),T.v===null)if(T.f)T.t="n";else if(n.nullError)T.t="e",T.v=0;else if(n.sheetStubs)T.t="z";else continue;else typeof T.v=="number"?T.t="n":typeof T.v=="boolean"?T.t="b":T.v instanceof Date?(T.z=n.dateNF||table_fmt[14],n.cellDates?(T.t="d",T.w=SSF_format(T.z,datenum(T.v,n.date1904))):(T.t="n",T.v=datenum(T.v,n.date1904),T.w=SSF_format(T.z,T.v))):T.t="s";if(i)b[S]&&b[S].z&&(T.z=b[S].z),b[S]=T;else{var M=encode_col(S)+L;a[M]&&a[M].z&&(T.z=a[M].z),a[M]=T}}}return l.s.c<1e7&&(a["!ref"]=encode_range(l)),a}function aoa_to_sheet(e,r){return sheet_add_aoa(null,e,r)}function parse_Int32LE(e){return e.read_shift(4,"i")}function write_UInt32LE(e,r){return r||(r=new_buf(4)),r.write_shift(4,e),r}function parse_XLWideString(e){var r=e.read_shift(4);return r===0?"":e.read_shift(r,"dbcs")}function write_XLWideString(e,r){var t=!1;return r==null&&(t=!0,r=new_buf(4+2*e.length)),r.write_shift(4,e.length),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function parse_StrRun(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function write_StrRun(e,r){return r||(r=new_buf(4)),r.write_shift(2,e.ich||0),r.write_shift(2,e.ifnt||0),r}function parse_RichStr(e,r){var t=e.l,n=e.read_shift(1),i=parse_XLWideString(e),a=[],s={t:i,h:i};if(n&1){for(var c=e.read_shift(4),h=0;h!=c;++h)a.push(parse_StrRun(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function write_RichStr(e,r){var t=!1;return r==null&&(t=!0,r=new_buf(15+4*e.t.length)),r.write_shift(1,0),write_XLWideString(e.t,r),t?r.slice(0,r.l):r}var parse_BrtCommentText=parse_RichStr;function write_BrtCommentText(e,r){var t=!1;return r==null&&(t=!0,r=new_buf(23+4*e.t.length)),r.write_shift(1,1),write_XLWideString(e.t,r),r.write_shift(4,1),write_StrRun({ich:0,ifnt:0},r),t?r.slice(0,r.l):r}function parse_XLSBCell(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function write_XLSBCell(e,r){return r==null&&(r=new_buf(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function parse_XLSBShortCell(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function write_XLSBShortCell(e,r){return r==null&&(r=new_buf(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var parse_XLSBCodeName=parse_XLWideString,write_XLSBCodeName=write_XLWideString;function parse_XLNullableWideString(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function write_XLNullableWideString(e,r){var t=!1;return r==null&&(t=!0,r=new_buf(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var parse_XLNameWideString=parse_XLWideString,parse_RelID=parse_XLNullableWideString,write_RelID=write_XLNullableWideString;function parse_RkNumber(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,n=r[0]&2;e.l+=4;var i=n===0?__double([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):__readInt32LE(r,0)>>2;return t?i/100:i}function write_RkNumber(e,r){r==null&&(r=new_buf(4));var t=0,n=0,i=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,t=1),n)r.write_shift(-4,((t?i:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function parse_RfX(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function write_RfX(e,r){return r||(r=new_buf(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}
vendor: 4,091 bytes, line 179
179var parse_UncheckedRfX=parse_RfX,write_UncheckedRfX=write_RfX;function parse_Xnum(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function write_Xnum(e,r){return(r||new_buf(8)).write_shift(8,e,"f")}function parse_BrtColor(e){var r={},t=e.read_shift(1),n=t>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),c=e.read_shift(1),h=e.read_shift(1);switch(e.l++,n){case 0:r.auto=1;break;case 1:r.index=i;var l=XLSIcv[i];l&&(r.rgb=rgb2Hex(l));break;case 2:r.rgb=rgb2Hex([s,c,h]);break;case 3:r.theme=i;break}return a!=0&&(r.tint=a>0?a/32767:a/32768),r}function write_BrtColor(e,r){if(r||(r=new_buf(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}return r}function parse_FontFlags(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function write_FontFlags(e,r){r||(r=new_buf(2));var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return r.write_shift(1,t),r.write_shift(1,0),r}var VT_I2=2,VT_I4=3,VT_BOOL=11,VT_UI4=19,VT_FILETIME=64,VT_BLOB=65,VT_CF=71,VT_VECTOR_VARIANT=4108,VT_VECTOR_LPSTR=4126,VT_STRING=80,DocSummaryPIDDSI={1:{n:"CodePage",t:VT_I2},2:{n:"Category",t:VT_STRING},3:{n:"PresentationFormat",t:VT_STRING},4:{n:"ByteCount",t:VT_I4},5:{n:"LineCount",t:VT_I4},6:{n:"ParagraphCount",t:VT_I4},7:{n:"SlideCount",t:VT_I4},8:{n:"NoteCount",t:VT_I4},9:{n:"HiddenCount",t:VT_I4},10:{n:"MultimediaClipCount",t:VT_I4},11:{n:"ScaleCrop",t:VT_BOOL},12:{n:"HeadingPairs",t:VT_VECTOR_VARIANT},13:{n:"TitlesOfParts",t:VT_VECTOR_LPSTR},14:{n:"Manager",t:VT_STRING},15:{n:"Company",t:VT_STRING},16:{n:"LinksUpToDate",t:VT_BOOL},17:{n:"CharacterCount",t:VT_I4},19:{n:"SharedDoc",t:VT_BOOL},22:{n:"HyperlinksChanged",t:VT_BOOL},23:{n:"AppVersion",t:VT_I4,p:"version"},24:{n:"DigSig",t:VT_BLOB},26:{n:"ContentType",t:VT_STRING},27:{n:"ContentStatus",t:VT_STRING},28:{n:"Language",t:VT_STRING},29:{n:"Version",t:VT_STRING},255:{},2147483648:{n:"Locale",t:VT_UI4},2147483651:{n:"Behavior",t:VT_UI4},1919054434:{}},SummaryPIDSI={1:{n:"CodePage",t:VT_I2},2:{n:"Title",t:VT_STRING},3:{n:"Subject",t:VT_STRING},4:{n:"Author",t:VT_STRING},5:{n:"Keywords",t:VT_STRING},6:{n:"Comments",t:VT_STRING},7:{n:"Template",t:VT_STRING},8:{n:"LastAuthor",t:VT_STRING},9:{n:"RevNumber",t:VT_STRING},10:{n:"EditTime",t:VT_FILETIME},11:{n:"LastPrinted",t:VT_FILETIME},12:{n:"CreatedDate",t:VT_FILETIME},13:{n:"ModifiedDate",t:VT_FILETIME},14:{n:"PageCount",t:VT_I4},15:{n:"WordCount",t:VT_I4},16:{n:"CharCount",t:VT_I4},17:{n:"Thumbnail",t:VT_CF},18:{n:"Application",t:VT_STRING},19:{n:"DocSecurity",t:VT_I4},255:{},2147483648:{n:"Locale",t:VT_UI4},2147483651:{n:"Behavior",t:VT_UI4},1919054434:{}};function rgbify(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var _XLSIcv=rgbify([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),XLSIcv=dup(_XLSIcv),BErr={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"}
179,RBErr={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},XLSLblBuiltIn=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],ct2type={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},CT_LIST={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"}
179,comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function new_ct(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function write_ct(e,r,t){var n=evert_arr(ct2type),i=[],a;t||(i[i.length]=XML_HEADER,i[i.length]=writextag("Types",null,{xmlns:XMLNS.CT,"xmlns:xsd":XMLNS.xsd,"xmlns:xsi":XMLNS.xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["t
179if","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return writextag("Default",null,{Extension:l[0],ContentType:l[1]})})));var s=function(l){e[l]&&e[l].length>0&&(a=e[l][0],i[i.length]=writextag("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:CT_LIST[l][r.bookType]||CT_LIST[l].xlsx}))},c=function(l){(e[l]||[]).forEach(function(p){i[i.length]=writextag("Override",null,{PartName:(p[0]=="/"?"":"/")+p,ContentType:CT_LIST[l][r.bookType]||CT_LIST[l].xlsx})})},h=function(l){(e[l]||[]).forEach(function(p){i[i.length]=writextag("Override",null,{PartName:(p[0]=="/"?"":"/")+p,ContentType:n[l][0]})})};return s("workbooks"),c("sheets"),c("charts"),h("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(h),h("vba"),h("comments"),h("threadedcomments"),h("drawings"),c("metadata"),h("people"),!t&&i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var RELS
vendor: 2,568 bytes, line 179
179={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function
vendor: 4,631 bytes, lines 179-189
179get_rels_path(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function write_rels(e){var r=[XML_HEADER,writextag("Relationships",null,{xmlns:XMLNS.RELS})];return keys(e["!id"]).forEach(function(t){r[r.length]=writextag("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function add_rels(e,r,t,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,i.Id="rId"+r,i.Type=n,i.Target=t,a?i.TargetMode=a:[RELS.HLINK,RELS.XPATH,RELS.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,r}function write_manifest(e){var r=[XML_HEADER];r.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2"> 180`),r.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/> 181`);for(var t=0;t<e.length;++t)r.push(' <manifest:file-entry manifest:full-path="'+e[t][0]+'" manifest:media-type="'+e[t][1]+`"/> 182`);return r.push("</manifest:manifest>"),r.join("")}function write_rdf_type(e,r,t){return[' <rdf:Description rdf:about="'+e+`"> 183`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+`"/> 184`,` </rdf:Description> 185`].join("")}function write_rdf_has(e,r){return[' <rdf:Description rdf:about="'+e+`"> 186`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+`"/> 187`,` </rdf:Description> 188`].join("")}function write_rdf(e){var r=[XML_HEADER];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 189`);for(var t=0;t!=e.length;++t)r.push(write_rdf_type(e[t][0],e[t][1])),r.push(write_rdf_has("",e[t][0]));return r.push(write_rdf_type("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function write_meta_ods(e,r){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+XLSX.version+"</meta:generator></office:meta></office:document-meta>"}var CORE_PROPS=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function cp_doit(e,r,t,n,i){i[e]!=null||r==null||r===""||(i[e]=r,r=escapexml(r),n[n.length]=t?writextag(e,r,t):writetag(e,r))}function write_core_props(e,r){var t=r||{},n=[XML_HEADER,writextag("cp:coreProperties",null,{"xmlns:cp":XMLNS.CORE_PROPS,"xmlns:dc":XMLNS.dc,"xmlns:dcterms":XMLNS.dcterms,"xmlns:dcmitype":XMLNS.dcmitype,"xmlns:xsi":XMLNS.xsi})],i={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&cp_doit("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:write_w3cdtf(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&cp_doit("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:write_w3cdtf(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=CORE_PROPS.length;++a){var s=CORE_PROPS[a],c=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;c===!0?c="1":c===!1?c="0":typeof c=="number"&&(c=String(c)),c!=null&&cp_doit(s[0],c,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var EXT_PROPS=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],PseudoPropsPairs=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function write_ext_props(e){var r=[],t=writextag;return e||(e={}),e.Application="SheetJS",r[r.length]=XML_HEADER,r[r.length]=writextag("Properties",null,{xmlns:XMLNS.EXT_PROPS,"xmlns:vt":XMLNS.vt}
vendor: 4,198 bytes, line 189
189),EXT_PROPS.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=escapexml(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(r[r.length]=t(n[0],i))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+escapexml(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}function write_cust_props(e){var r=[XML_HEADER,writextag("Properties",null,{xmlns:XMLNS.CUST_PROPS,"xmlns:vt":XMLNS.vt})];if(!e)return r.join("");var t=1;return keys(e).forEach(function(i){++t,r[r.length]=writextag("property",write_vt(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:escapexml(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var XLMLDocPropsMap={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function xlml_write_docprops(e,r){var t=[];return keys(XLMLDocPropsMap).map(function(n){for(var i=0;i<CORE_PROPS.length;++i)if(CORE_PROPS[i][1]==n)return CORE_PROPS[i];for(i=0;i<EXT_PROPS.length;++i)if(EXT_PROPS[i][1]==n)return EXT_PROPS[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=r&&r.Props&&r.Props[n[1]]!=null?r.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),t.push(writetag(XLMLDocPropsMap[n[1]]||n[1],i))}}),writextag("DocumentProperties",t.join(""),{xmlns:XLMLNS.o})}function xlml_write_custprops(e,r){var t=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&keys(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<CORE_PROPS.length;++s)if(a==CORE_PROPS[s][1])return;for(s=0;s<EXT_PROPS.length;++s)if(a==EXT_PROPS[s][1])return;for(s=0;s<t.length;++s)if(a==t[s])return;var c=e[a],h="string";typeof c=="number"?(h="float",c=String(c)):c===!0||c===!1?(h="boolean",c=c?"1":"0"):c=String(c),i.push(writextag(escapexmltag(a),c,{"dt:dt":h}))}}),r&&keys(r).forEach(function(a){if(Object.prototype.hasOwnProperty.call(r,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=r[a],c="string";typeof s=="number"?(c="float",s=String(s)):s===!0||s===!1?(c="boolean",s=s?"1":"0"):s instanceof Date?(c="dateTime.tz",s=s.toISOString()):s=String(s),i.push(writextag(escapexmltag(a),s,{"dt:dt":c}))}}),"<"+n+' xmlns="'+XLMLNS.o+'">'+i.join("")+"</"+n+">"}function write_FILETIME(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,n=t%Math.pow(2,32),i=(t-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=new_buf(8);return s.write_shift(4,n),s.write_shift(4,i),s}function write_TypedPropertyValue(e,r){var t=new_buf(4),n=new_buf(4);switch(t.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,r);break;case 5:n=new_buf(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=write_FILETIME(r);break;case 31:case 80:for(n=new_buf(4+2*(r.length+1)+(r.length%2?0:2)),n.write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return bconcat([t,n])}var XLSPSSkip=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function guess_property_type(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function write_PropertySet(e,r,t){var n=new_buf(8),i=[],a=[],s=8,c=0,h=new_buf(8),l=new_buf(8);
189if(h.write_shift(4,2),h.write_shift(4,1200),l.write_shift(4,1),a.push(h),i.push(l),s+=8+h.length,!r){l=new_buf(8),l.write_shift(4,0),i.unshift(l);var p=[new_buf(4)];for(p[0].write_shift(4,e.length),c=0;c<e.length;++c){var b=e[c][0];for(h=new_buf(4+4+2*(b.length+1)+(b.length%2?0:2)),h.write_shift(4,c+2),h.write_shift(4,b.length+1),h.write_shift(0,b,"dbcs");h.l!=h.length;)h.write_shift(1,0);p.push(h)}h=bconcat(p),a.unshift(h),s+=8+h.length}for(c=0;c<e.length;++c)if(!(r&&!r[e[c][0]])&&!(XLSPSSkip.indexOf(e[c][0])>-1||PseudoPropsPairs.indexOf(e[c][0])>-1)&&e[c][1]!=null){var m=e[c][1],A=0;if(r){A=+r[e[c][0]];var L=t[A];if(L.p=="version"&&typeof m=="string"){var k=m.split(".");m=(+k[0]<<16)+(+k[1]||0)}h=write_TypedPropertyValue(L.t,m)}else{var T=guess_property_type(m);T==-1&&(T=31,m=String(m)),h=write_TypedPropertyValue(T,m)}a.push(h),l=new_buf(8),l.write_shift(4,r?A:2+c),i.push(l),s+=8+h.length}var S=8*(a.length+1);for(c=0;c<a.length;++c)i[c].write_shift(4,S),S+=a[c].length;return n.write_shift(4,s),n.write_shift(4,a.length),bconcat([n].concat(i).concat(a))}function write_PropertySetStream(e,r,t,n,i,a){var s=new_buf(i?68:48),c=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,CFB.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,r,"hex"),s.write_shift(4,i?68:48);var h=write_PropertySet(e,t,n);if(c.push(h),i){var l=write_PropertySet(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+h.length),c.push(l)}return bconcat(c)}function writezeroes(e,r){r||(r=new_buf(e));for(var t=0;t<e;++t)r.write_shift(1,0);return r}function parsebool(e,r){return e.read_shift(r)===1}function writebool(e,r){return r||(r=new_buf(2)),r.write_shift(2,+!!e),r}function parseuint16(e){return e.read_shift(2,"u")}function writeuint16(e,r){return r||(r=new_buf(2)),r.write_shift(2,e),r}function write_Bes(e,r,t){return t||(t=new_buf(2)),t.write_shift(1,r=="e"?+e:+!!e),t.write_shift(1,r=="e"?1:0),t}function parse_ShortXLUnicodeString(e,r,t){var n=e.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont",a=current_codepage;if(t&&t.biff>=8&&(current_codepage=1200),!t||t.biff==8){var s=e.read_shift(1);s&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var c=n?e.read_shift(n,i):"";return current_codepage=a,c}function write_XLUnicodeRichExtendedString(e){var r=e.t||"",t=new_buf(3+0);t.write_shift(2,r.length),t.write_shift(1,1);var n=new_buf(2*r.length);n.write_shift(2*r.length,r,"utf16le");var i=[t,n];return bconcat(i)}function parse_XLUnicodeStringNoCch(e,r,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(r,"sbcs-cont"):n=e.read_shift(r,"dbcs-cont"),n}function parse_XLUnicodeString(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):parse_XLUnicodeStringNoCch(e,n,t)}function parse_XLUnicodeString2(e,r,t){if(t.biff>5)return parse_XLUnicodeString(e,r,t);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function write_XLUnicodeString(e,r,t){return t||(t=new_buf(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function write_HyperlinkString(e,r){r||(r=new_buf(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t<e.length;++t)r.write_shift(2,e.charCodeAt(t));return r.write_shift(2,0),r}function write_Hyperlink(e){var r=new_buf(512),t=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}r.write_shift(4,2),r.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r.write_shift(4,s[t]);if(a==28)n=n.slice(1),write_HyperlinkString(n,r);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));var c=i>-1?n.slice(0,i):n;for(r.write_shift(4,2*(c.length+1)),t=0;t<c.length;++t)r.write_shift(2,c.charCodeAt(t));r.write_shift(2,0),a&8&&write_HyperlinkString(i>-1?n.slice(i+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));for(var h=0;n.slice(h*3,h*3+3)=="../"||n.slice(h*3,h*3+3)=="..\\";)++h;for(r.write_shift(2,h),r.write_shift(4,n.length-3*h+1),t=0;t<n.length-3*h;
189++t)r.write_shift(1,n.charCodeAt(t+3*h)&255);for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),t=0;t<6;++t)r.write_shift(4,0)}return r.slice(0,r.l)}function write_XLSCell(e,r,t,n){return n||(n=new_buf(6)),n.write_shift(2,e),n.write_shift(2,r),n.write_shift(2,t||0),n}function parse_XTI(e,r,t){var n=t.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function parse_Ref8U(e){var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r},e:{c:i,r:t}}}function write_Ref8U(e,r){return r||(r=new_buf(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function write_BOF(e,r,t){var n=1536,i=16;switch(t.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=new_buf(i);return a.write_shift(2,n),a.write_shift(2,r),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function write_WriteAccess(e,r){var t=!r||r.biff==8,n=new_buf(t?112:54);for(n.write_shift(r.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}function write_BoundSheet8(e,r){var t=!r||r.biff>=8?2:1,n=new_buf(8+t*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),r.biff>=8&&n.write_shift(1,1),n.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function write_SST(e,r){var t=new_buf(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=write_XLUnicodeRichExtendedString(e[i]);var a=bconcat([t].concat(n));return a.parts=[t.length].concat(n.map(function(s){return s.length})),a}function write_Window1(){var e=new_buf(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function write_Window2(e){var r=new_buf(18),t=1718;return e&&e.RTL&&(t|=64),r.write_shift(2,t),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}function write_Font(e,r){var t=e.name||"Arial",n=r&&r.biff==5,i=n?15+t.length:16+2*t.length,a=new_buf(i);return a.write_shift(2,(e.sz||12)*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),a}function write_LabelSst(e,r,t,n){var i=new_buf(10);return write_XLSCell(e,r,n,i),i.write_shift(4,t),i}function write_Label(e,r,t,n,i){var a=!i||i.biff==8,s=new_buf(6+2+ +a+(1+a)*t.length);return write_XLSCell(e,r,n,s),s.write_shift(2,t.length),a&&s.write_shift(1,1),s.write_shift((1+a)*t.length,t,a?"utf16le":"sbcs"),s}function write_Format(e,r,t,n){var i=t&&t.biff==5;n||(n=new_buf(i?3+r.length:5+2*r.length)),n.write_shift(2,e),n.write_shift(i?1:2,r.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*r.length,r,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function write_Dimensions(e,r){var t=r.biff==8||!r.biff?4:2,n=new_buf(2*t+6);return n.write_shift(t,e.s.r),n.write_shift(t,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function write_XF(e,r,t,n){var i=t&&t.biff==5;n||(n=new_buf(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,r<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function write_Guts(e){var r=new_buf(8);return r.write_shift(4,0),r.write_shift(2,e[0]?e[0]+1:0),r.write_shift(2,e[1]?e[1]+1:0),r}function write_BoolErr(e,r,t,n,i,a){var s=new_buf(8);return write_XLSCell(e,r,n,s),write_Bes(t,a,s),s}function write_Number(e,r,t,n){var i=new_buf(14);return write_XLSCell(e,r,n,i),write_Xnum(t,i),i}function parse_ExternSheet(e,r,t){if(t.biff<8||!(t.biff>8)&&r==e[e.l]+(e[e.l+1]==3?1:0)+1)return parse_BIFF5ExternSheet(e,r,t);for(var n=[],i=e.l+r,a=e.read_shift(t.biff>8?4:2);a--!==0;)n.push(parse_XTI(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function parse_BIFF5ExternSheet(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=parse_ShortXLUnicodeString(e,r,t);
vendor: 5,356 bytes, line 189
189return n.charCodeAt(0)==3?n.slice(1):n}function write_MergeCells(e){var r=new_buf(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t<e.length;++t)write_Ref8U(e[t],r);return r}function write_HLink(e){var r=new_buf(24),t=decode_cell(e[0]);r.write_shift(2,t.r),r.write_shift(2,t.r),r.write_shift(2,t.c),r.write_shift(2,t.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)r.write_shift(1,parseInt(n[i],16));return bconcat([r,write_Hyperlink(e[1])])}function write_HLinkTooltip(e){var r=e[1].Tooltip,t=new_buf(10+2*(r.length+1));t.write_shift(2,2048);var n=decode_cell(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var i=0;i<r.length;++i)t.write_shift(2,r.charCodeAt(i));return t.write_shift(2,0),t}function write_Country(e){return e||(e=new_buf(4)),e.write_shift(2,1),e.write_shift(2,1),e}function parse_ColInfo(e,r,t){if(!t.cellStyles)return parsenoop(e,r);var n=t&&t.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),c=e.read_shift(n),h=e.read_shift(2);n==2&&(e.l+=2);var l={s:i,e:a,w:s,ixfe:c,flags:h};return(t.biff>=5||!t.biff)&&(l.level=h>>8&7),l}function write_ColInfo(e,r){var t=new_buf(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var n=0;return e.hidden&&(n|=1),t.write_shift(1,n),n=e.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function write_RRTabId(e){for(var r=new_buf(2*e),t=0;t<e;++t)r.write_shift(2,t+1);return r}function write_BIFF2NUM(e,r,t){var n=new_buf(15);return write_BIFF2Cell(n,e,r),n.write_shift(8,t,"f"),n}function write_BIFF2INT(e,r,t){var n=new_buf(9);return write_BIFF2Cell(n,e,r),n.write_shift(2,t),n}var DBF=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=evert({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(c,h){var l=[],p=new_raw_buf(1);switch(h.type){case"base64":p=s2a(Base64_decode(c));break;case"binary":p=s2a(c);break;case"buffer":case"array":p=c;break}prep_blob(p,0);var b=p.read_shift(1),m=!!(b&136),A=!1,L=!1;switch(b){case 2:break;case 3:break;case 48:A=!0,m=!0;break;case 49:A=!0,m=!0;break;case 131:break;case 139:break;case 140:L=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+b.toString(16))}var k=0,T=521;b==2&&(k=p.read_shift(2)),p.l+=3,b!=2&&(k=p.read_shift(4)),k>1048576&&(k=1e6),b!=2&&(T=p.read_shift(2));var S=p.read_shift(2);h.codepage,b!=2&&(p.l+=16,p.read_shift(1),p[p.l]!==0&&e[p[p.l]],p.l+=1,p.l+=2),L&&(p.l+=36);for(var M=[],H={},te=Math.min(p.length,b==2?521:T-10-(A?264:0)),Ie=L?32:11;p.l<te&&p[p.l]!=13;)switch(H={},H.name=a2s(p.slice(p.l,p.l+Ie)).replace(/[\u0000\r\n].*$/g,""),p.l+=Ie,H.type=String.fromCharCode(p.read_shift(1)),b!=2&&!L&&(H.offset=p.read_shift(4)),H.len=p.read_shift(1),b==2&&(H.offset=p.read_shift(2)),H.dec=p.read_shift(1),H.name.length&&M.push(H),b!=2&&(p.l+=L?13:14),H.type){case"B":(!A||H.len!=8)&&h.WTF&&console.log("Skipping "+H.name+":"+H.type);break;case"G":case"P":h.WTF&&console.log("Skipping "+H.name+":"+H.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+H.type)}if(p[p.l]!==13&&(p.l=T-1),p.read_shift(1)!==13)throw new Error("DBF Terminator not found "+p.l+" "+p[p.l]);p.l=T;var we=0,_=0;for(l[0]=[],_=0;_!=M.length;++_)l[0][_]=M[_].name;for(;k-- >0;){if(p[p.l]===42){p.l+=S;continue}for(++p.l,l[++we]=[],_=0,_=0;_!=M.length;++_){var oe=p.slice(p.l,p.l+M[_].len);p.l+=M[_].len,prep_blob(oe,0);var ee=a2s(oe);switch(M[_].type){case"C":ee.trim().length&&(l[we][_]=ee.replace(/\s+$/,""));break;case"D":ee.length===8?l[we][_]=new Date(+ee.slice(0,4),+ee.slice(4,6)-1,+ee.slice(6,8)):l[we][_]=ee;break;case"F":l[we][_]=parseFloat(ee.trim());break;case"+":case"I":l[we][_]=L?oe.read_shift(-4,"i")^2147483648:oe.read_shift(4,"i");break;case"L":switch(ee.trim().toUpperCase()){case"Y":case"T":l[we][_]=!0;break;case"N":case"F":l[we][_]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+ee+"|")}break;case"M":if(!m)throw new Error("DBF Unexpected MEMO for type "+b.toString(16));l[we][_]="##MEMO##"+(L?parseInt(ee.trim(),10):oe.read_shift(4));break;case"N":ee=ee.replace(/\u0000/g,"").trim(),ee&&ee!="."&&(l[we][_]=+ee||0);break;case"@":l[we][_]=new Date(oe.read_shift(-8,"f")-621356832e5);break;case"T":l[we][_]=new Date((oe.read_shift(4)-2440588)*864e5+oe.read_shift(4));break;case"Y":l[we][_]=oe.read_shift(4,"i")/1e4+oe.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[we][_]=-oe.read_shift(-8,"f");break;case"B":if(A&&M[_].len==8){l[we][_]=oe.read_shift(8,"f");break}case"G":case"P":oe.l+=M[_].len;break;case"0":if(M[_].name==="_NullFlags")break;
189default:throw new Error("DBF Unsupported data type "+M[_].type)}}}if(b!=2&&p.l<p.length&&p[p.l++]!=26)throw new Error("DBF EOF Marker missing "+(p.l-1)+" of "+p.length+" "+p[p.l-1].toString(16));return h&&h.sheetRows&&(l=l.slice(0,h.sheetRows)),h.DBF=M,l}function n(c,h){var l=h||{};l.dateNF||(l.dateNF="yyyymmdd");var p=aoa_to_sheet(t(c,l),l);return p["!cols"]=l.DBF.map(function(b){return{wch:b.len,DBF:b}}),delete l.DBF,p}function i(c,h){try{var l=sheet_to_workbook(n(c,h),h);return l.bookType="dbf",l}catch(p){if(h&&h.WTF)throw p}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(c,h){var l=h||{},p=current_codepage;if(+l.codepage>=0&&set_cp(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var b=buf_array(),m=sheet_to_json(c,{header:1,raw:!0,cellDates:!0}),A=m[0],L=m.slice(1),k=c["!cols"]||[],T=0,S=0,M=0,H=1;for(T=0;T<A.length;++T){if(((k[T]||{}).DBF||{}).name){A[T]=k[T].DBF.name,++M;continue}if(A[T]!=null){if(++M,typeof A[T]=="number"&&(A[T]=A[T].toString(10)),typeof A[T]!="string")throw new Error("DBF Invalid column name "+A[T]+" |"+typeof A[T]+"|");if(A.indexOf(A[T])!==T){for(S=0;S<1024;++S)if(A.indexOf(A[T]+"_"+S)==-1){A[T]+="_"+S;break}}}}var te=safe_decode_range(c["!ref"]),Ie=[],we=[],_=[];for(T=0;T<=te.e.c-te.s.c;++T){var oe="",ee="",Ee=0,Le=[];for(S=0;S<L.length;++S)L[S][T]!=null&&Le.push(L[S][T]);if(Le.length==0||A[T]==null){Ie[T]="?";continue}for(S=0;S<Le.length;++S){switch(typeof Le[S]){case"number":ee="B";break;case"string":ee="C";break;case"boolean":ee="L";break;case"object":ee=Le[S]instanceof Date?"D":"C";break;default:ee="C"}Ee=Math.max(Ee,String(Le[S]).length),oe=oe&&oe!=ee?"C":ee}Ee>250&&(Ee=250),ee=((k[T]||{}).DBF||{}).type,ee=="C"&&k[T].DBF.len>Ee&&(Ee=k[T].DBF.len),oe=="B"&&ee=="N"&&(oe="N",_[T]=k[T].DBF.dec,Ee=k[T].DBF.len),we[T]=oe=="C"||ee=="N"?Ee:a[oe]||0,H+=we[T],Ie[T]=oe}var Pe=b.next(32);for(Pe.write_shift(4,318902576),Pe.write_shift(4,L.length),Pe.write_shift(2,296+32*M),Pe.write_shift(2,H),T=0;T<4;++T)Pe.write_shift(4,0);var $e=+r[current_codepage]||3;for(Pe.write_shift(4,0|$e<<8),e[$e]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+current_codepage+", using 1252"),current_codepage=1252),T=0,S=0;T<A.length;++T)if(A[T]!=null){var Ze=b.next(32),je=(A[T].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);Ze.write_shift(1,je,"sbcs"),Ze.write_shift(1,Ie[T]=="?"?"C":Ie[T],"sbcs"),Ze.write_shift(4,S),Ze.write_shift(1,we[T]||a[Ie[T]]||0),Ze.write_shift(1,_[T]||0),Ze.write_shift(1,2),Ze.write_shift(4,0),Ze.write_shift(1,0),Ze.write_shift(4,0),Ze.write_shift(4,0),S+=we[T]||a[Ie[T]]||0}var gt=b.next(264);for(gt.write_shift(4,13),T=0;T<65;++T)gt.write_shift(4,0);for(T=0;T<L.length;++T){var Xe=b.next(H);for(Xe.write_shift(1,0),S=0;S<A.length;++S)if(A[S]!=null)switch(Ie[S]){case"L":Xe.write_shift(1,L[T][S]==null?63:L[T][S]?84:70);break;case"B":Xe.write_shift(8,L[T][S]||0,"f");break;case"N":var dt="0";for(typeof L[T][S]=="number"&&(dt=L[T][S].toFixed(_[S]||0)),dt.length>we[S]&&(dt=dt.slice(0,we[S])),M=0;M<we[S]-dt.length;++M)Xe.write_shift(1,32);Xe.write_shift(1,dt,"sbcs");break;case"D":L[T][S]?(Xe.write_shift(4,("0000"+L[T][S].getFullYear()).slice(-4),"sbcs"),Xe.write_shift(2,("00"+(L[T][S].getMonth()+1)).slice(-2),"sbcs"),Xe.write_shift(2,("00"+L[T][S].getDate()).slice(-2),"sbcs")):Xe.write_shift(8,"00000000","sbcs");break;case"C":var yt=Xe.l,Bt=String(L[T][S]!=null?L[T][S]:"").slice(0,we[S]);for(Xe.write_shift(1,Bt,"cpstr"),yt+=we[S]-Xe.l,M=0;M<yt;++M)Xe.write_shift(1,32);break}}return current_codepage=p,b.next(1).write_shift(1,26),b.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}}(),SYLK=function(){var e={AA:"Ã",BA:"Ã",CA:"Ã",DA:195,HA:"Ã",JA:197,AE:"Ã",BE:"Ã",CE:"Ã",HE:"Ã",AI:"Ã",BI:"Ã",CI:"Ã",HI:"Ã",AO:"Ã",BO:"Ã",CO:"Ã",DO:213,HO:"Ã",AU:"Ã",BU:"Ã",CU:"Ã",HU:"Ã",Aa:"à ",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"Ã",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ã",Kc:"ç",q:"æ",z:"Å",a:"Ã",j:"Å",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+keys(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(b,m){var A=e[m];return typeof A=="number"?_getansi(A):A},n=function(b,m,A){var L=m.charCodeAt(0)-32<<4|A.charCodeAt(0)-48;return L==59?b:_getansi(L)};e["|"]=254;function i(b,m){switch(m.type){case"base64":return a(Base64_decode(b),m);case"binary":return a(b,m);case"buffer":return a(has_buf&&Buffer.isBuffer(b)?b.toString("binary"):a2s(b),m);case"array":return a(cc2str(b),m)}throw new Error("Unrecognized type "+m.type)}function a(b,m){var A=b.split(/[\n\r]+/),L=-1,k=-1,T=0,S=0,M=[],H=[],te=null,Ie={},we=[],_=[],oe=[],ee=0,Ee,Le={Workbook:{WBProps:{},Names:[]}};for(+m.codepage>=0&&set_cp(+m.codepage);T!==A.length;++T){ee=0;
189var Pe=A[T].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),$e=Pe.replace(/;;/g,"\0").split(";").map(function(be){return be.replace(/\u0000/g,";")}),Ze=$e[0],je;if(Pe.length>0)switch(Ze){case"ID":break;case"E":break;case"B":break;case"O":for(S=1;S<$e.length;++S)switch($e[S].charAt(0)){case"V":{var gt=parseInt($e[S].slice(1),10);gt>=1&><=4&&(Le.Workbook.WBProps.date1904=!0)}break}break;case"W":break;case"P":switch($e[1].charAt(0)){case"P":H.push(Pe.slice(3).replace(/;;/g,";"));break}break;case"NN":{var Xe={Sheet:0};for(S=1;S<$e.length;++S)switch($e[S].charAt(0)){case"N":Xe.Name=$e[S].slice(1);break;case"E":Xe.Ref=(m&&m.sheet||"Sheet1")+"!"+rc_to_a1($e[S].slice(1));break}Le.Workbook.Names.push(Xe)}break;case"C":var dt=!1,yt=!1,Bt=!1,se=!1,xe=-1,qe=-1,R="",re="z";for(S=1;S<$e.length;++S)switch($e[S].charAt(0)){case"A":break;case"X":k=parseInt($e[S].slice(1),10)-1,yt=!0;break;case"Y":for(L=parseInt($e[S].slice(1),10)-1,yt||(k=0),Ee=M.length;Ee<=L;++Ee)M[Ee]=[];break;case"K":je=$e[S].slice(1),je.charAt(0)==='"'?(je=je.slice(1,je.length-1),re="s"):je==="TRUE"||je==="FALSE"?(je=je==="TRUE",re="b"):isNaN(fuzzynum(je))?isNaN(fuzzydate(je).getDate())||(je=parseDate(je),re="d",m.cellDates||(re="n",je=datenum(je,Le.Workbook.WBProps.date1904))):(je=fuzzynum(je),re="n",te!==null&&fmt_is_date(te)&&m.cellDates&&(je=numdate(Le.Workbook.WBProps.date1904?je+1462:je),re="d")),dt=!0;break;case"E":se=!0,R=rc_to_a1($e[S].slice(1),{r:L,c:k});break;case"S":Bt=!0;break;case"G":break;case"R":xe=parseInt($e[S].slice(1),10)-1;break;case"C":qe=parseInt($e[S].slice(1),10)-1;break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+Pe)}if(dt&&(M[L][k]?(M[L][k].t=re,M[L][k].v=je):M[L][k]={t:re,v:je},te&&(M[L][k].z=te),m.cellText!==!1&&te&&(M[L][k].w=SSF_format(M[L][k].z,M[L][k].v,{date1904:Le.Workbook.WBProps.date1904})),te=null),Bt){if(se)throw new Error("SYLK shared formula cannot have own formula");var W=xe>-1&&M[xe][qe];if(!W||!W[1])throw new Error("SYLK shared formula cannot find base");R=shift_formula_str(W[1],{r:L-xe,c:k-qe})}R&&(M[L][k]?M[L][k].f=R:M[L][k]={t:"n",f:R});break;case"F":var ne=0;for(S=1;S<$e.length;++S)switch($e[S].charAt(0)){case"X":k=parseInt($e[S].slice(1),10)-1,++ne;break;case"Y":for(L=parseInt($e[S].slice(1),10)-1,Ee=M.length;Ee<=L;++Ee)M[Ee]=[];break;case"M":ee=parseInt($e[S].slice(1),10)/20;break;case"F":break;case"G":break;case"P":te=H[parseInt($e[S].slice(1),10)];break;case"S":break;case"D":break;case"N":break;case"W":for(oe=$e[S].slice(1).split(" "),Ee=parseInt(oe[0],10);Ee<=parseInt(oe[1],10);++Ee)ee=parseInt(oe[2],10),_[Ee-1]=ee===0?{hidden:!0}:{wch:ee};break;case"C":k=parseInt($e[S].slice(1),10)-1,_[k]||(_[k]={});break;case"R":L=parseInt($e[S].slice(1),10)-1,we[L]||(we[L]={}),ee>0?(we[L].hpt=ee,we[L].hpx=pt2px(ee)):ee===0&&(we[L].hidden=!0);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+Pe)}ne<1&&(te=null);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+Pe)}}return we.length>0&&(Ie["!rows"]=we),_.length>0&&(Ie["!cols"]=_),_.forEach(function(be){process_col(be)}),m&&m.sheetRows&&(M=M.slice(0,m.sheetRows)),[M,Ie,Le]}function s(b,m){var A=i(b,m),L=A[0],k=A[1],T=A[2],S=dup(m);S.date1904=(((T||{}).Workbook||{}).WBProps||{}).date1904;var M=aoa_to_sheet(L,S);keys(k).forEach(function(te){M[te]=k[te]});var H=sheet_to_workbook(M,m);return keys(T).forEach(function(te){H[te]=T[te]}),H.bookType="sylk",H}function c(b,m,A,L){var k="C;Y"+(A+1)+";X"+(L+1)+";K";switch(b.t){case"n":k+=b.v||0,b.f&&!b.F&&(k+=";E"+a1_to_rc(b.f,{r:A,c:L}));break;case"b":k+=b.v?"TRUE":"FALSE";break;case"e":k+=b.w||b.v;break;case"d":k+='"'+(b.w||b.v)+'"';break;case"s":k+='"'+(b.v==null?"":String(b.v)).replace(/"/g,"").replace(/;/g,";;")+'"';break}return k}function h(b,m){m.forEach(function(A,L){var k="F;W"+(L+1)+" "+(L+1)+" ";A.hidden?k+="0":(typeof A.width=="number"&&!A.wpx&&(A.wpx=width2px(A.width)),typeof A.wpx=="number"&&!A.wch&&(A.wch=px2char(A.wpx)),typeof A.wch=="number"&&(k+=Math.round(A.wch))),k.charAt(k.length-1)!=" "&&b.push(k)})}function l(b,m){m.forEach(function(A,L){var k="F;";A.hidden?k+="M0;":A.hpt?k+="M"+20*A.hpt+";":A.hpx&&(k+="M"+20*px2pt(A.hpx)+";"),k.length>2&&b.push(k+"R"+(L+1))})}function p(b,m,A){var L=["ID;PSheetJS;N;E"],k=[],T=safe_decode_range(b["!ref"]),S,M=b["!data"]!=null,H=`\r 190`,te=(((A||{}).Workbook||{}).WBProps||{}).date1904;L.push("P;PGeneral"),L.push("F;P0;DG0G8;M255"),b["!cols"]&&h(L,b["!cols"]),b["!rows"]&&l(L,b["!rows"]),L.push("B;Y"+(T.e.r-T.s.r+1)+";X"+(T.e.c-T.s.c+1)+";D"+[T.s.c,T.s.r,T.e.c,T.e.r].join(" ")),L.push("O;L;D;B"+(te?";V4":"")+";K47;G100 0.001");for(var Ie=T.s.r;Ie<=T.e.r;++Ie)if(!(M&&!b["!data"][Ie])){for(var we=[],_=T.s.c;_<=T.e.c;++_)S=M?b["!data"][Ie][_]:b[encode_col(_)+encode_row(Ie)],!(!S||S.v==null&&(!S.f||S.F))&&we.push(c(S,b,Ie,_));k.push(we.join(H))}return L.join(H)+H+k.join(H)+H+"E"+H}return{to_workbook:s,from_sheet:p}}(),DIF=function(){function e(c,h){switch(h.type){case"base64":return r(Base64_decode(c),h);case"binary":return r(c,h);case"buffer":return r(has_buf&&Buffer.isBuffer(c)?c.toString("binary"):a2s(c),h);case"array":return r(cc2str(c),h)}throw new Error("Unrecognized type "+h.type)}function r(c,h){for(var l=c.split(` 191`),p=-1,b=-1,m=0,A=[];m!==l.length;++m){if(l[m].trim()==="BOT"){A[++p]=[],b=0;continue}if(!(p<0)){var L=l[m].trim().split(","),k=L[0],T=L[1];++m;for(var S=l[m]||"";(S.match(/["]/g)||[]).length&1&&m<l.length-1;)S+=` 192`+l[++m];switch(S=S.trim(),+k){case-1:if(S==="BOT"){A[++p]=[],b=0;continue}else if(S!=="EOD")throw new Error("Unrecognized DIF special command "+S);break;case 0:S==="TRUE"?A[p][b]=!0:S==="FALSE"?A[p][b]=!1:isNaN(fuzzynum(T))?isNaN(fuzzydate(T).getDate())?A[p][b]=T:A[p][b]=parseDate(T):A[p][b]=fuzzynum(T),++b;break;case 1:S=S.slice(1,S.length-1),S=S.replace(/""/g,'"'),S&&S.match(/^=".*"$/)&&(S=S.slice(2,-1)),A[p][b++]=S!==""?S:null;break}if(S==="EOD")break}}return h&&h.sheetRows&&(A=A.slice(0,h.sheetRows)),A}function t(c,h){return aoa_to_sheet(e(c,h),h)}function n(c,h){var l=sheet_to_workbook(t(c,h),h);return l.bookType="dif",l}function i(c,h){return"0,"+String(c)+`\r 193`+h}function a(c){return`1,0\r 194"`+c.replace(/"/g,'""')+'"'}function s(c){for(var h=safe_decode_range(c["!ref"]),l=c["!data"]!=null,p=[`TABLE\r 1950,1\r 196"sheetjs"\r 197`,`VECTORS\r
1980,`+(h.e.r-h.s.r+1)+`\r 199""\r 200`,`TUPLES\r 2010,`+(h.e.c-h.s.c+1)+`\r 202""\r 203`,`DATA\r 2040,0\r 205""\r 206`],b=h.s.r;b<=h.e.r;++b){for(var m=l?c["!data"][b]:[],A=`-1,0\r 207BOT\r 208`,L=h.s.c;L<=h.e.c;++L){var k=l?m&&m[L]:c[encode_cell({r:b,c:L})];if(k==null){A+=`1,0\r 209""\r 210`;continue}switch(k.t){case"n":k.w!=null?A+="0,"+k.w+`\r 211V`:k.v!=null?A+=i(k.v,"V"):k.f!=null&&!k.F?A+=a("="+k.f):A+=`1,0\r 212""`;break;case"b":A+=k.v?i(1,"TRUE"):i(0,"FALSE");break;case"s":A+=a(isNaN(+k.v)?k.v:'="'+k.v+'"');break;case"d":k.w||(k.w=SSF_format(k.z||table_fmt[14],datenum(parseDate(k.v)))),A+=i(k.w,"V");break;default:A+=`1,0\r 213""`}A+=`\r 214`}p.push(A)}return p.join("")+`-1,0\r 215EOD`}return{to_workbook:n,to_sheet:t,from_sheet:s}}(),ETH=function(){function e(b){return b.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` 216`)}function r(b){return b.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(b,m){for(var A=b.split(` 217`),L=-1,k=-1,T=0,S=[];T!==A.length;++T){var M=A[T].trim().split(":");if(M[0]==="cell"){var H=decode_cell(M[1]);if(S.length<=H.r)for(L=S.length;L<=H.r;++L)S[L]||(S[L]=[]);switch(L=H.r,k=H.c,M[2]){case"t":S[L][k]=e(M[3]);break;case"v":S[L][k]=+M[3];break;case"vtf":var te=M[M.length-1];case"vtc":switch(M[3]){case"nl":S[L][k]=!!+M[4];break;default:S[L][k]=+M[4];break}M[2]=="vtf"&&(S[L][k]=[S[L][k],te])}}}return m&&m.sheetRows&&(S=S.slice(0,m.sheetRows)),S}function n(b,m){return aoa_to_sheet(t(b,m),m)}function i(b,m){return sheet_to_workbook(n(b,m),m)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` 218`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` 219`)+` 220`,c=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` 221`),h="--SocialCalcSpreadsheetControlSave--";function l(b){if(!b||!b["!ref"])return"";for(var m=[],A=[],L,k="",T=decode_range(b["!ref"]),S=b["!data"]!=null,M=T.s.r;M<=T.e.r;++M)for(var H=T.s.c;H<=T.e.c;++H)if(k=encode_cell({r:M,c:H}
221),L=S?(b["!data"][M]||[])[H]:b[k],!(!L||L.v==null||L.t==="z")){switch(A=["cell",k,"t"],L.t){case"s":case"str":A.push(r(L.v));break;case"n":L.f?(A[2]="vtf",A[3]="n",A[4]=L.v,A[5]=r(L.f)):(A[2]="v",A[3]=L.v);break;case"b":A[2]="vt"+(L.f?"f":"c"),A[3]="nl",A[4]=L.v?"1":"0",A[5]=r(L.f||(L.v?"TRUE":"FALSE"));break;case"d":var te=datenum(parseDate(L.v));A[2]="vtc",A[3]="nd",A[4]=""+te,A[5]=L.w||SSF_format(L.z||table_fmt[14],te);break;case"e":continue}m.push(A.join(":"))}return m.push("sheet:c:"+(T.e.c-T.s.c+1)+":r:"+(T.e.r-T.s.r+1)+":tvf:1"),m.push("valueformat:1:text-wiki"),m.join(` 222`)}function p(b){return[a,s,c,s,l(b),h].join(` 223`)}return{to_workbook:i,to_sheet:n,from_sheet:p}}(),PRN=function(){function e(p,b,m,A,L){L.raw?b[m][A]=p:p===""||(p==="TRUE"?b[m][A]=!0:p==="FALSE"?b[m][A]=!1:isNaN(fuzzynum(p))?isNaN(fuzzydate(p).getDate())?b[m][A]=p:b[m][A]=parseDate(p):b[m][A]=fuzzynum(p))}function r(p,b){var m=b||{},A=[];if(!p||p.length===0)return A;for(var L=p.split(/[\r\n]/),k=L.length-1;k>=0&&L[k].length===0;)--k;for(var T=10,S=0,M=0;M<=k;++M)S=L[M].indexOf(" "),S==-1?S=L[M].length:S++,T=Math.max(T,S);for(M=0;M<=k;++M){A[M]=[];var H=0;for(e(L[M].slice(0,T).trim(),A,M,H,m),H=1;H<=(L[M].length-T)/10+1;++H)e(L[M].slice(T+(H-1)*10,T+H*10).trim(),A,M,H,m)}return m.sheetRows&&(A=A.slice(0,m.sheetRows)),A}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(p){for(var b={},m=!1,A=0,L=0;A<p.length;++A)(L=p.charCodeAt(A))==34?m=!m:!m&&L in t&&(b[L]=(b[L]||0)+1);L=[];for(A in b)Object.prototype.hasOwnProperty.call(b,A)&&L.push([b[A],A]);if(!L.length){b=n;for(A in b)Object.prototype.hasOwnProperty.call(b,A)&&L.push([b[A],A])}return L.sort(function(k,T){return k[0]-T[0]||n[k[1]]-n[T[1]]}),t[L.pop()[1]]||44}function a(p,b){var m=b||{},A="",L={};m.dense&&(L["!data"]=[]);var k={s:{c:0,r:0},e:{c:0,r:0}};p.slice(0,4)=="sep="?p.charCodeAt(5)==13&&p.charCodeAt(6)==10?(A=p.charAt(4),p=p.slice(7)):p.charCodeAt(5)==13||p.charCodeAt(5)==10?(A=p.charAt(4),p=p.slice(6)):A=i(p.slice(0,1024)):m&&m.FS?A=m.FS:A=i(p.slice(0,1024));var T=0,S=0,M=0,H=0,te=0,Ie=A.charCodeAt(0),we=!1,_=0,oe=p.charCodeAt(0),ee=m.dateNF!=null?dateNF_regex(m.dateNF):null;function Ee(){var Le=p.slice(H,te);Le.slice(-1)=="\r"&&(Le=Le.slice(0,-1));var Pe={};if(Le.charAt(0)=='"'&&Le.charAt(Le.length-1)=='"'&&(Le=Le.slice(1,-1).replace(/""/g,'"')),Le.length===0)Pe.t="z";else if(m.raw)Pe.t="s",Pe.v=Le;else if(Le.trim().length===0)Pe.t="s",Pe.v=Le;else if(Le.charCodeAt(0)==61)Le.charCodeAt(1)==34&&Le.charCodeAt(Le.length-1)==34?(Pe.t="s",Pe.v=Le.slice(2,-1).replace(/""/g,'"')):fuzzyfmla(Le)?(Pe.t="n",Pe.f=Le.slice(1)):(Pe.t="s",Pe.v=Le);else if(Le=="TRUE")Pe.t="b",Pe.v=!0;else if(Le=="FALSE")Pe.t="b",Pe.v=!1;else if(!isNaN(M=fuzzynum(Le)))Pe.t="n",m.cellText!==!1&&(Pe.w=Le),Pe.v=M;else if(!isNaN((M=fuzzydate(Le)).getDate())||ee&&Le.match(ee)){Pe.z=m.dateNF||table_fmt[14];var $e=0;ee&&Le.match(ee)&&(Le=dateNF_fix(Le,m.dateNF,Le.match(ee)||[]),$e=1,M=parseDate(Le,$e)),m.cellDates?(Pe.t="d",Pe.v=M):(Pe.t="n",Pe.v=datenum(M)),m.cellText!==!1&&(Pe.w=SSF_format(Pe.z,Pe.v instanceof Date?datenum(Pe.v):Pe.v)),m.cellNF||delete Pe.z}else Pe.t="s",Pe.v=Le;if(Pe.t=="z"||(m.dense?(L["!data"][T]||(L["!data"][T]=[]),L["!data"][T][S]=Pe):L[encode_cell({c:S,r:T})]=Pe),H=te+1,oe=p.charCodeAt(H),k.e.c<S&&(k.e.c=S),k.e.r<T&&(k.e.r=T),_==Ie)++S;else if(S=0,++T,m.sheetRows&&m.sheetRows<=T)return!0}e:for(;te<p.length;++te)switch(_=p.charCodeAt(te)){case 34:oe===34&&(we=!we);break;case 13:if(we)break;p.charCodeAt(te+1)==10&&++te;case Ie:case 10:if(!we&&Ee())break e;break}return te-H>0&&Ee(),L["!ref"]=encode_range(k),L}function s(p,b){return!(b&&b.PRN)||b.FS||p.slice(0,4)=="sep="||p.indexOf(" ")>=0||p.indexOf(",")>=0||p.indexOf(";")>=0?a(p,b):aoa_to_sheet(r(p,b),b)}function c(p,b){var m="",A=b.type=="string"?[0,0,0,0]:firstbyte(p,b);switch(b.type){case"base64":m=Base64_decode(p);break;case"binary":m=p;break;case"buffer":b.codepage==65001?m=p.toString("utf8"):b.codepage&&typeof $cptable<"u"?m=$cptable.utils.decode(b.codepage,p):m=has_buf&&Buffer.isBuffer(p)?p.toString("binary"):a2s(p);break;case"array":m=cc2str(p);break;case"string":m=p;break;default:throw new Error("Unrecognized type "+b.type)}return A[0]==239&&A[1]==187&&A[2]==191?m=utf8read(m.slice(3)):b.type!="string"&&b.type!="buffer"&&b.codepage==65001?m=utf8read(m):b.type=="binary"&&typeof $cptable<"u"&&b.codepage&&(m=$cptable.utils.decode(b.codepage,$cptable.utils.encode(28591,m))),m.slice(0,19)=="socialcalc:version:"?ETH.to_sheet(b.type=="string"?m:utf8read(m),b):s(m,b)}function h(p,b){return sheet_to_workbook(c(p,b),b)}function l(p){for(var b=[],m=safe_decode_range(p["!ref"]),A,L=p["!data"]!=null,k=m.s.r;k<=m.e.r;++k){for(var T=[],S=m.s.c;S<=m.e.c;++S){var M=encode_cell({r:k,c:S});if(A=L?(p["!data"][k]||[])[S]:p[M],!A||A.v==null){T.push(" ");continue}for(var H=(A.w||(format_cell(A),A.w)||"").slice(0,10);H.length<10;)H+=" ";T.push(H+(S===0?" ":""))}b.push(T.join(""))}return b.join(` 224`)}return{to_workbook:h,to_sheet:c,from_sheet:l}}(),WK_=function(){function e(R,re,W){if(R){prep_blob(R,R.l||0);for(var ne=W.Enum||se;R.l<R.length;){var be=R.read_shift(2),fe=ne[be]||ne[65535],ye=R.read_shift(2),et=R.l+ye,Be=fe.f&&fe.f(R,ye,W);if(R.l=et,re(Be,fe,be))return}}}function r(R,re){switch(re.type){case"base64":return t(s2a(Base64_decode(R)),re);case"binary":return t(s2a(R),re);case"buffer":case"array":return t(R,re)}throw"Unsupported type "+re.type}function t(R,re){if(!R)return R;var W=re||{},ne={},be="Sheet1",fe="",ye=0,et={},Be=[],ht=[],_t=[];W.dense&&(_t=ne["!data"]=[]);var Et={s:{r:0,c:0},e:{r:0,c:0}},Pt=W.sheetRows||0;if(R[4]==81&&R[5]==80&&R[6]==87)return qe(R,re);if(R[2]==0&&(R[3]==8||R[3]==9)&&R.length>=16&&R[14]==5&&R[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(R[2]==2)W.Enum=se,e(R,function(Ke,At,Ve){switch(Ve){case 0:W.vers=Ke,
224Ke>=4096&&(W.qpro=!0);break;case 255:W.vers=Ke,W.works=!0;break;case 6:Et=Ke;break;case 204:Ke&&(fe=Ke);break;case 222:fe=Ke;break;case 15:case 51:(!W.qpro&&!W.works||Ve==51)&&Ke[1].v.charCodeAt(0)<48&&(Ke[1].v=Ke[1].v.slice(1)),(W.works||W.works2)&&(Ke[1].v=Ke[1].v.replace(/\r\n/g,` 225`));case 13:case 14:case 16:Ve==14&&(Ke[2]&112)==112&&(Ke[2]&15)>1&&(Ke[2]&15)<15&&(Ke[1].z=W.dateNF||table_fmt[14],W.cellDates&&(Ke[1].t="d",Ke[1].v=numdate(Ke[1].v))),W.qpro&&Ke[3]>ye&&(ne["!ref"]=encode_range(Et),et[be]=ne,Be.push(be),ne={},W.dense&&(_t=ne["!data"]=[]),Et={s:{r:0,c:0},e:{r:0,c:0}},ye=Ke[3],be=fe||"Sheet"+(ye+1),fe="");var wt=W.dense?(_t[Ke[0].r]||[])[Ke[0].c]:ne[encode_cell(Ke[0])];if(wt){wt.t=Ke[1].t,wt.v=Ke[1].v,Ke[1].z!=null&&(wt.z=Ke[1].z),Ke[1].f!=null&&(wt.f=Ke[1].f);break}W.dense?(_t[Ke[0].r]||(_t[Ke[0].r]=[]),_t[Ke[0].r][Ke[0].c]=Ke[1]):ne[encode_cell(Ke[0])]=Ke[1];break;case 21509:W.works2=!0;break}},W);else if(R[2]==26||R[2]==14)W.Enum=xe,R[2]==14&&(W.qpro=!0,R.l=0),e(R,function(Ke,At,Ve){switch(Ve){case 204:be=Ke;break;case 22:Ke[1].v.charCodeAt(0)<48&&(Ke[1].v=Ke[1].v.slice(1)),Ke[1].v=Ke[1].v.replace(/\x0F./g,function(wt){return String.fromCharCode(wt.charCodeAt(1)-32)}).replace(/\r\n/g,` 226`);case 23:case 24:case 25:case 37:case 39:case 40:if(Ke[3]>ye&&(ne["!ref"]=encode_range(Et),et[be]=ne,Be.push(be),ne={},W.dense&&(_t=ne["!data"]=[]),Et={s:{r:0,c:0},e:{r:0,c:0}},ye=Ke[3],be="Sheet"+(ye+1)),Pt>0&&Ke[0].r>=Pt)break;W.dense?(_t[Ke[0].r]||(_t[Ke[0].r]=[]),_t[Ke[0].r][Ke[0].c]=Ke[1]):ne[encode_cell(Ke[0])]=Ke[1],Et.e.c<Ke[0].c&&(Et.e.c=Ke[0].c),Et.e.r<Ke[0].r&&(Et.e.r=Ke[0].r);break;case 27:Ke[14e3]&&(ht[Ke[14e3][0]]=Ke[14e3][1]);break;case 1537:ht[Ke[0]]=Ke[1],Ke[0]==ye&&(be=Ke[1]);break}},W);else throw new Error("Unrecognized LOTUS BOF "+R[2]);if(ne["!ref"]=encode_range(Et),et[fe||be]=ne,Be.push(fe||be),!ht.length)return{SheetNames:Be,Sheets:et};for(var Ut={},rt=[],Vt=0;Vt<ht.length;++Vt)et[Be[Vt]]?(rt.push(ht[Vt]||Be[Vt]),Ut[ht[Vt]]=et[ht[Vt]]||et[Be[Vt]]):(rt.push(ht[Vt]),Ut[ht[Vt]]={"!ref":"A1"});return{SheetNames:rt,Sheets:Ut}}function n(R,re){var W=re||{};if(+W.codepage>=0&&set_cp(+W.codepage),W.type=="string")throw new Error("Cannot write WK1 to JS string");var ne=buf_array(),be=safe_decode_range(R["!ref"]),fe=R["!data"]!=null,ye=[];write_biff_rec(ne,0,a(1030)),write_biff_rec(ne,6,h(be));for(var et=Math.min(be.e.r,8191),Be=be.s.c;Be<=be.e.c;++Be)ye[Be]=encode_col(Be);for(var ht=be.s.r;ht<=et;++ht){var _t=encode_row(ht);for(Be=be.s.c;Be<=be.e.c;++Be){var Et=fe?(R["!data"][ht]||[])[Be]:R[ye[Be]+_t];if(!(!Et||Et.t=="z"))if(Et.t=="n")(Et.v|0)==Et.v&&Et.v>=-32768&&Et.v<=32767?write_biff_rec(ne,13,L(ht,Be,Et.v)):write_biff_rec(ne,14,T(ht,Be,Et.v));else{var Pt=format_cell(Et);write_biff_rec(ne,15,b(ht,Be,Pt.slice(0,239)))}}}return write_biff_rec(ne,1),ne.end()}function i(R,re){var W=re||{};if(+W.codepage>=0&&set_cp(+W.codepage),W.type=="string")throw new Error("Cannot write WK3 to JS string");var ne=buf_array();write_biff_rec(ne,0,s(R));for(var be=0,fe=0;be<R.SheetNames.length;++be)(R.Sheets[R.SheetNames[be]]||{})["!ref"]&&write_biff_rec(ne,27,Bt(R.SheetNames[be],fe++));var ye=0;for(be=0;be<R.SheetNames.length;++be){var et=R.Sheets[R.SheetNames[be]];if(!(!et||!et["!ref"])){for(var Be=safe_decode_range(et["!ref"]),ht=et["!data"]!=null,_t=[],Et=Math.min(Be.e.r,8191),Pt=Be.s.r;Pt<=Et;++Pt)for(var Ut=encode_row(Pt),rt=Be.s.c;rt<=Be.e.c;++rt){Pt===Be.s.r&&(_t[rt]=encode_col(rt));var Vt=_t[rt]+Ut,Ke=ht?(et["!data"][Pt]||[])[rt]:et[Vt];if(!(!Ke||Ke.t=="z"))if(Ke.t=="n")write_biff_rec(ne,23,Le(Pt,rt,ye,Ke.v));else{var At=format_cell(Ke);write_biff_rec(ne,22,oe(Pt,rt,ye,At.slice(0,239)))}}++ye}}return write_biff_rec(ne,1),ne.end()}function a(R){var re=new_buf(2);return re.write_shift(2,R),re}function s(R){var re=new_buf(26);re.write_shift(2,4096),re.write_shift(2,4),re.write_shift(4,0);for(var W=0,ne=0,be=0,fe=0;fe<R.SheetNames.length;++fe){var ye=R.SheetNames[fe],et=R.Sheets[ye];if(!(!et||!et["!ref"])){++be;var Be=decode_range(et["!ref"]);W<Be.e.r&&(W=Be.e.r),ne<Be.e.c&&(ne=Be.e.c)}}return W>8191&&(W=8191),re.write_shift(2,W),re.write_shift(1,be),re.write_shift(1,ne),re.write_shift(2,0),re.write_shift(2,0),re.write_shift(1,1),re.write_shift(1,2),re.write_shift(4,0),re.write_shift(4,0),re}function c(R,re,W){var ne={s:{c:0,r:0},e:{c:0,r:0}};return re==8&&W.qpro?(ne.s.c=R.read_shift(1),R.l++,ne.s.r=R.read_shift(2),ne.e.c=R.read_shift(1),R.l++,ne.e.r=R.read_shift(2),ne):(ne.s.c=R.read_shift(2),ne.s.r=R.read_shift(2),re==12&&W.qpro&&(R.l+=2),ne.e.c=R.read_shift(2),ne.e.r=R.read_shift(2),re==12&&W.qpro&&(R.l+=2),ne.s.c==65535&&(ne.s.c=ne.e.c=ne.s.r=ne.e.r=0),ne)}function h(R){var re=new_buf(8);return re.write_shift(2,R.s.c),re.write_shift(2,R.s.r),re.write_shift(2,R.e.c),re.write_shift(2,R.e.r),re}function l(R,re,W){var ne=[{c:0,r:0},{t:"n",v:0},0,0];return W.qpro&&W.vers!=20768?(ne[0].c=R.read_shift(1),ne[3]=R.read_shift(1),ne[0].r=R.read_shift(2),R.l+=2):W.works?(ne[0].c=R.read_shift(2),ne[0].r=R.read_shift(2),ne[2]=R.read_shift(2)):(ne[2]=R.read_shift(1),ne[0].c=R.read_shift(2),ne[0].r=R.read_shift(2)),ne}function p(R,re,W){var ne=R.l+re,be=l(R,re,W);if(be[1].t="s",W.vers==20768){R.l++;var fe=R.read_shift(1);return be[1].v=R.read_shift(fe,"utf8"),be}return W.qpro&&R.l++,be[1].v=R.read_shift(ne-R.l,"cstr"),be}function b(R,re,W){var ne=new_buf(7+W.length);ne.write_shift(1,255),ne.write_shift(2,re),ne.write_shift(2,R),ne.write_shift(1,39);for(var be=0;be<ne.length;++be){var fe=W.charCodeAt(be);ne.write_shift(1,fe>=128?95:fe)}return ne.write_shift(1,0),ne}function m(R,re,W){var ne=R.l+re,be=l(R,re,W);if(be[1].t="s",W.vers==20768){var fe=R.read_shift(1);return be[1].v=R.read_shift(fe,"utf8"),be}return be[1].v=R.read_shift(ne-R.l,"cstr"),be}function A(R,re,W){var ne=l(R,re,W);return ne[1].v=R.read_shift(2,"i"),ne}function L(R,re,W){var ne=new_buf(7);return ne.write_shift(1,255),ne.write_shift(2,re),ne.write_shift(2,R),ne.write_shift(2,W,"i"),ne}function k(R,re,W){var ne=l(R,re,W);return ne[1].v=R.read_shift(8,"f"),ne}function T(R,re,W){var ne=new_buf(13);return ne.write_shift(1,255),ne.write_shift(2,re),ne.write_shift(2,R),ne.write_shift(8,W,"f"),ne}function S(R,re,W){var ne=R.l+re,be=l(R,re,W);if(be[1].v=R.read_shift(8,"f"),W.qpro)R.l=ne;else{var fe=R.read_shift(2);Ie(R.slice(R.l,R.l+fe),be),R.l+=fe}return be}function M(R,re,W){var ne=re&32768;return re&=-32769,re=(ne?R:0)+(re>=8192?re-16384:re),(ne?"":"$")+(W?encode_col(re):encode_row(re))}var H={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["AS
226IN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],63:["ROUND",2],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},te=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function Ie(R,re){prep_blob(R,0);for(var W=[],ne=0,be="",fe="",ye="",et="";R.l<R.length;){var Be=R[R.l++];switch(Be){case 0:W.push(R.read_shift(8,"f"));break;case 1:fe=M(re[0].c,R.read_shift(2),!0),be=M(re[0].r,R.read_shift(2),!1),W.push(fe+be);break;case 2:{var ht=M(re[0].c,R.read_shift(2),!0),_t=M(re[0].r,R.read_shift(2),!1);fe=M(re[0].c,R.read_shift(2),!0),be=M(re[0].r,R.read_shift(2),!1),W.push(ht+_t+":"+fe+be)}break;case 3:if(R.l<R.length){console.error("WK1 premature formula end");return}break;case 4:W.push("("+W.pop()+")");break;case 5:W.push(R.read_shift(2));break;case 6:{for(var Et="";Be=R[R.l++];)Et+=String.fromCharCode(Be);W.push('"'+Et.replace(/"/g,'""')+'"')}break;case 8:W.push("-"+W.pop());break;case 23:W.push("+"+W.pop());break;case 22:W.push("NOT("+W.pop()+")");break;case 20:case 21:et=W.pop(),ye=W.pop(),W.push(["AND","OR"][Be-20]+"("+ye+","+et+")");break;default:if(Be<32&&te[Be])et=W.pop(),ye=W.pop(),W.push(ye+te[Be]+et);else if(H[Be]){if(ne=H[Be][1],ne==69&&(ne=R[R.l++]),ne>W.length){console.error("WK1 bad formula parse 0x"+Be.toString(16)+":|"+W.join("|")+"|");return}var Pt=W.slice(-ne);W.length-=ne,W.push(H[Be][0]+"("+Pt.join(",")+")")}else return Be<=7?console.error("WK1 invalid opcode "+Be.toString(16)):Be<=24?console.error("WK1 unsupported op "+Be.toString(16)):Be<=30?console.error("WK1 invalid opcode "+Be.toString(16)):Be<=115?console.error("WK1 unsupported function opcode "+Be.toString(16)):console.error("WK1 unrecognized opcode "+Be.toString(16))}}W.length==1?re[1].f=""+W[0]:console.error("WK1 bad formula parse |"+W.join("|")+"|")}function we(R){var re=[{c:0,r:0},{t:"n",v:0},0];return re[0].r=R.read_shift(2),re[3]=R[R.l++],re[0].c=R[R.l++],re}function _(R,re){var W=we(R);return W[1].t="s",W[1].v=R.read_shift(re-4,"cstr"),W}function oe(R,re,W,ne){var be=new_buf(6+ne.length);be.write_shift(2,R),be.write_shift(1,W),be.write_shift(1,re),be.write_shift(1,39);for(var fe=0;fe<ne.length;++fe){var ye=ne.charCodeAt(fe);be.write_shift(1,ye>=128?95:ye)}return be.write_shift(1,0),be}function ee(R,re){var W=we(R);W[1].v=R.read_shift(2);var ne=W[1].v>>1;if(W[1].v&1)switch(ne&7){case 0:ne=(ne>>3)*5e3;break;case 1:ne=(ne>>3)*500;break;case 2:ne=(ne>>3)/20;break;case 3:ne=(ne>>3)/200;break;case 4:ne=(ne>>3)/2e3;break;case 5:ne=(ne>>3)/2e4;break;case 6:ne=(ne>>3)/16;break;case 7:ne=(ne>>3)/64;break}return W[1].v=ne,W}function Ee(R,re){var W=we(R),ne=R.read_shift(4),be=R.read_shift(4),fe=R.read_shift(2);if(fe==65535)return ne===0&&be===3221225472?(W[1].t="e",W[1].v=15):ne===0&&be===3489660928?(W[1].t="e",W[1].v=42):W[1].v=0,W;var ye=fe&32768;return fe=(fe&32767)-16446,W[1].v=(1-ye*2)*(be*Math.pow(2,fe+32)+ne*Math.pow(2,fe)),W}function Le(R,re,W,ne){var be=new_buf(14);if(be.write_shift(2,R),be.write_shift(1,W),be.write_shift(1,re),ne==0)return be.write_shift(4,0),be.write_shift(4,0),be.write_shift(2,65535),be;var fe=0,ye=0,et=0,Be=0;return ne<0&&(fe=1,ne=-ne),ye=Math.log2(ne)|0,ne/=Math.pow(2,ye-31),Be=ne>>>0,Be&2147483648||(ne/=2,++ye,Be=ne>>>0),ne-=Be,Be|=2147483648,Be>>>=0,ne*=Math.pow(2,32),et=ne>>>0,be.write_shift(4,et),be.write_shift(4,Be),ye+=16383+(fe?32768:0),be.write_shift(2,ye),be}function Pe(R,re){var W=Ee(R);return R.l+=re-14,W}function $e(R,re){var W=we(R),ne=R.read_shift(4);return W[1].v=ne>>6,W}function Ze(R,re){var W=we(R),ne=R.read_shift(8,"f");return W[1].v=ne,W}function je(R,re){var W=Ze(R);return R.l+=re-12,W}function gt(R,re){return R[R.l+re-1]==0?R.read_shift(re,"cstr"):""}function Xe(R,re){var W=R[R.l++];W>re-1&&(W=re-1);for(var ne="";ne.length<W;)ne+=String.fromCharCode(R[R.l++]);return ne}function dt(R,re,W){if(!(!W.qpro||re<21)){var ne=R.read_shift(1);R.l+=17,R.l+=1,R.l+=2;var be=R.read_shift(re-21,"cstr");return[ne,be]}}function yt(R,re){for(var W={},ne=R.l+re;R.l<ne;){var be=R.read_shift(2);if(be==14e3){for(W[be]=[0,""],W[be][0]=R.read_shift(2);R[R.l];)W[be][1]+=String.fromCharCode(R[R.l]),R.l++;R.l++}}return W}function Bt(R,re){var W=new_buf(5+R.length);W.write_shift(2,14e3),W.write_shift(2,re);for(var ne=0;ne<R.length;
226++ne){var be=R.charCodeAt(ne);W[W.l++]=be>127?95:be}return W[W.l++]=0,W}var se={0:{n:"BOF",f:parseuint16},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:A},14:{n:"NUMBER",f:k},15:{n:"LABEL",f:p},16:{n:"FORMULA",f:S},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:m},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:gt},222:{n:"SHEETNAMELP",f:Xe},255:{n:"BOF",f:parseuint16},65535:{n:""}},xe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:_},23:{n:"NUMBER17",f:Ee},24:{n:"NUMBER18",f:ee},25:{n:"FORMULA19",f:Pe},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:yt},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:$e},38:{n:"??"},39:{n:"NUMBER27",f:Ze},40:{n:"FORMULA28",f:je},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:gt},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:dt},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};function qe(R,re){prep_blob(R,0);var W=re||{},ne={};W.dense&&(ne["!data"]=[]);var be=[],fe="",ye={s:{r:-1,c:-1},e:{r:-1,c:-1}},et=0,Be=0,ht=0,_t=0,Et={SheetNames:[],Sheets:{}};e:for(;R.l<R.length;){var Pt=R.read_shift(2),Ut=R.read_shift(2),rt=R.slice(R.l,R.l+Ut);switch(prep_blob(rt,0),Pt){case 1:if(rt.read_shift(4)!=962023505)throw"Bad QPW9 BOF!";break;case 2:break e;case 1025:break;case 1026:break;case 1031:for(rt.l+=12;rt.l<rt.length;)et=rt.read_shift(2),Be=rt.read_shift(1),be.push(rt.read_shift(et,"cstr"));break;case 1032:break;case 1537:{var Vt=rt.read_shift(2);ne={},W.dense&&(ne["!data"]=[]),ye.s.c=rt.read_shift(2),ye.e.c=rt.read_shift(2),ye.s.r=rt.read_shift(4),ye.e.r=rt.read_shift(4),rt.l+=4,rt.l+2<rt.length&&(et=rt.read_shift(2),Be=rt.read_shift(1),fe=et==0?"":rt.read_shift(et,"cstr")),fe||(fe=encode_col(Vt))}break;case 1538:{if(ye.s.c>255||ye.s.r>999999)break;ye.e.c<ye.s.c&&(ye.e.c=ye.s.c),ye.e.r<ye.s.r&&(ye.e.r=ye.s.r),ne["!ref"]=encode_range(ye),book_append_sheet(Et,ne,fe)}break;case 2561:ht=rt.read_shift(2),ye.e.c<ht&&(ye.e.c=ht),ye.s.c>ht&&(ye.s.c=ht),_t=rt.read_shift(4),ye.s.r>_t&&(ye.s.r=_t),_t=rt.read_shift(4),ye.e.r<_t&&(ye.e.r=_t);break;case 3073:{_t=rt.read_shift(4),et=rt.read_shift(4),ye.s.r>_t&&(ye.s.r=_t),ye.e.r<_t+et-1&&(ye.e.r=_t+et-1);
226for(var Ke=encode_col(ht);rt.l<rt.length;){var At={t:"z"},Ve=rt.read_shift(1);Ve&128&&(rt.l+=2);var wt=Ve&64?rt.read_shift(2)-1:0;switch(Ve&31){case 1:break;case 2:At={t:"n",v:rt.read_shift(2)};break;case 3:At={t:"n",v:rt.read_shift(2,"i")};break;case 5:At={t:"n",v:rt.read_shift(8,"f")};break;case 7:At={t:"s",v:be[Be=rt.read_shift(4)-1]};break;case 8:At={t:"n",v:rt.read_shift(8,"f")},rt.l+=2,rt.l+=4;break;default:throw"Unrecognized QPW cell type "+(Ve&31)}var Ct=0;if(Ve&32)switch(Ve&31){case 2:Ct=rt.read_shift(2);break;case 3:Ct=rt.read_shift(2,"i");break;case 7:Ct=rt.read_shift(2);break;default:throw"Unsupported delta for QPW cell type "+(Ve&31)}for(!W.sheetStubs&&At.t=="z"||(ne["!data"]!=null?(ne["!data"][_t]||(ne["!data"][_t]=[]),ne["!data"][_t][ht]=At):ne[Ke+encode_row(_t)]=At),++_t,--et;wt-- >0&&et>=0;){if(Ve&32)switch(Ve&31){case 2:At={t:"n",v:At.v+Ct&65535};break;case 3:At={t:"n",v:At.v+Ct&65535},At.v>32767&&(At.v-=65536);break;case 7:At={t:"s",v:be[Be=Be+Ct>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(Ve&31)}else switch(Ve&31){case 1:At={t:"z"};break;case 2:At={t:"n",v:rt.read_shift(2)};break;case 7:At={t:"s",v:be[Be=rt.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(Ve&31)}!W.sheetStubs&&At.t=="z"||(ne["!data"]!=null?(ne["!data"][_t]||(ne["!data"][_t]=[]),ne["!data"][_t][ht]=At):ne[Ke+encode_row(_t)]=At),++_t,--et}}}break}R.l+=Ut}return Et}return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:r}}(),straywsregex=/^\s|\s$|[\t\n\r]/;function write_sst_xml(e,r){if(!r.bookSST)return"";var t=[XML_HEADER];t[t.length]=writextag("sst",null,{xmlns:XMLNS_main[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),typeof i.t!="string"&&(i.t=String(i.t)),i.t.match(straywsregex)&&(a+=' xml:space="preserve"'),a+=">"+escapexml(i.t)+"</t>"),a+="</si>",t[t.length]=a}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function parse_BrtBeginSst(e){return[e.read_shift(4),e.read_shift(4)]}function write_BrtBeginSst(e,r){return r||(r=new_buf(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var write_BrtSSTItem=write_RichStr;function write_sst_bin(e){var r=buf_array();write_record(r,159,write_BrtBeginSst(e));for(var t=0;t<e.length;++t)write_record(r,19,write_BrtSSTItem(e[t]));return write_record(r,160),r.end()}function _JS2ANSI(e){for(var r=[],t=e.split(""),n=0;n<t.length;++n)r[n]=t[n].charCodeAt(0);return r}function crypto_CreatePasswordVerifier_Method1(e){var r=0,t,n=_JS2ANSI(e),i=n.length+1,a,s,c,h,l;for(t=new_raw_buf(i),t[0]=n.length,a=1;a!=i;++a)t[a]=n[a-1];for(a=i-1;a>=0;--a)s=t[a],c=r&16384?1:0,h=r<<1&32767,l=c|h,r=l^s;return r^52811}function sheet_to_rtf(e,r){var t=["{\\rtf1\\ansi"];if(!e["!ref"])return t[0]+"}";for(var n=safe_decode_range(e["!ref"]),i,a=e["!data"]!=null,s=[],c=n.s.r;c<=n.e.r;++c){t.push("\\trowd\\trautofit1");for(var h=n.s.c;h<=n.e.c;++h)t.push("\\cellx"+(h+1));for(t.push("\\pard\\intbl"),a&&(s=e["!data"][c]||[]),h=n.s.c;h<=n.e.c;++h){var l=encode_cell({r:c,c:h});if(i=a?s[h]:e[l],!i||i.v==null&&(!i.f||i.F)){t.push(" \\cell");continue}t.push(" "+(i.w||(format_cell(i),i.w)||"").replace(/[\r\n]/g,"\\par ")),t.push("\\cell")}t.push("\\pard\\intbl\\row")}return t.join("")+"}"}function rgb2Hex(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}var DEF_MDW=6,MDW=DEF_MDW;function width2px(e){return Math.floor((e+Math.round(128/MDW)/256)*MDW)}function px2char(e){return Math.floor((e-5)/MDW*100+.5)/100}function char2width(e){return Math.round((e*MDW+5)/MDW*256)/256}function process_col(e){e.width?(e.wpx=width2px(e.width),e.wch=px2char(e.wpx),e.MDW=MDW):e.wpx?(e.wch=px2char(e.wpx),e.width=char2width(e.wch),e.MDW=MDW):typeof e.wch=="number"&&(e.width=char2width(e.wch),e.wpx=width2px(e.width),e.MDW=MDW),e.customWidth&&delete e.customWidth}var DEF_PPI=96,PPI=DEF_PPI;function px2pt(e){return e*96/PPI}function pt2px(e){return e*PPI/96}function write_numFmts(e){var r=["<numFmts>"];
vendor: 4,932 bytes, line 226
226return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)e[n]!=null&&(r[r.length]=writextag("numFmt",null,{numFmtId:n,formatCode:escapexml(e[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=writextag("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function write_cellXfs(e){var r=[];return r[r.length]=writextag("cellXfs",null),e.forEach(function(t){r[r.length]=writextag("xf",null,t)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=writextag("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function write_sty_xml(e,r){var t=[XML_HEADER,writextag("styleSheet",null,{xmlns:XMLNS_main[0],"xmlns:vt":XMLNS.vt})],n;return e.SSF&&(n=write_numFmts(e.SSF))!=null&&(t[t.length]=n),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=write_cellXfs(r.cellXfs))&&(t[t.length]=n),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function parse_BrtFmt(e,r){var t=e.read_shift(2),n=parse_XLWideString(e);return[t,n]}function write_BrtFmt(e,r,t){t||(t=new_buf(6+4*r.length)),t.write_shift(2,e),write_XLWideString(r,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function parse_BrtFont(e,r,t){var n={};n.sz=e.read_shift(2)/20;var i=parse_FontFlags(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var c=e.read_shift(1);c>0&&(n.family=c);var h=e.read_shift(1);switch(h>0&&(n.charset=h),e.l++,n.color=parse_BrtColor(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=parse_XLWideString(e),n}function write_BrtFont(e,r){r||(r=new_buf(25+4*32)),r.write_shift(2,e.sz*20),write_FontFlags(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),write_BrtColor(e.color,r);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),r.write_shift(1,n),write_XLWideString(e.name,r),r.length>r.l?r.slice(0,r.l):r}var XLSBFillPTNames=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],rev_XLSBFillPTNames,parse_BrtFill=parsenoop;function write_BrtFill(e,r){r||(r=new_buf(4*3+8*7+16*1)),rev_XLSBFillPTNames||(rev_XLSBFillPTNames=evert(XLSBFillPTNames));var t=rev_XLSBFillPTNames[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(write_BrtColor({auto:1},r),write_BrtColor({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function parse_BrtXF(e,r){var t=e.l+r,n=e.read_shift(2),i=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:i}}function write_BrtXF(e,r,t){t||(t=new_buf(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function write_Blxf(e,r){return r||(r=new_buf(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var parse_BrtBorder=parsenoop;function write_BrtBorder(e,r){return r||(r=new_buf(51)),r.write_shift(1,0),write_Blxf(null,r),write_Blxf(null,r),write_Blxf(null,r),write_Blxf(null,r),write_Blxf(null,r),r.length>r.l?r.slice(0,r.l):r}function write_BrtStyle(e,r){return r||(r=new_buf(12+4*10)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,+e.builtinId),r.write_shift(1,0),write_XLNullableWideString(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function write_BrtBeginTableStyles(e,r,t){var n=new_buf(2052);return n.write_shift(4,e),write_XLNullableWideString(r,n),write_XLNullableWideString(t,n),n.length>n.l?n.slice(0,n.l):n}function write_FMTS_bin(e,r){if(r){var t=0;
226[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&++t}),t!=0&&(write_record(e,615,write_UInt32LE(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&write_record(e,44,write_BrtFmt(i,r[i]))}),write_record(e,616))}}function write_FONTS_bin(e){var r=1;write_record(e,611,write_UInt32LE(r)),write_record(e,43,write_BrtFont({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),write_record(e,612)}function write_FILLS_bin(e){var r=2;write_record(e,603,write_UInt32LE(r)),write_record(e,45,write_BrtFill({patternType:"none"})),write_record(e,45,write_BrtFill({patternType:"gray125"})),write_record(e,604)}function write_BORDERS_bin(e){var r=1;write_record(e,613,write_UInt32LE(r)),write_record(e,46,write_BrtBorder()),write_record(e,614)}function write_CELLSTYLEXFS_bin(e){var r=1;write_record(e,626,write_UInt32LE(r)),write_record(e,47,write_BrtXF({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),write_record(e,627)}function write_CELLXFS_bin(e,r){write_record(e,617,write_UInt32LE(r.length)),r.forEach(function(t){write_record(e,47,write_BrtXF(t,0))}),write_record(e,618)}function write_STYLES_bin(e){var r=1;write_record(e,619,write_UInt32LE(r)),write_record(e,48,write_BrtStyle({xfId:0,builtinId:0,name:"Normal"})),write_record(e,620)}function write_DXFS_bin(e){var r=0;write_record(e,505,write_UInt32LE(r)),write_record(e,506)}function write_TABLESTYLES_bin(e){var r=0;write_record(e,508,write_BrtBeginTableStyles(r,"TableStyleMedium9","PivotStyleMedium4")),write_record(e,509)}function write_sty_bin(e,r){var t=buf_array();return write_record(t,278),write_FMTS_bin(t,e.SSF),write_FONTS_bin(t),write_FILLS_bin(t),write_BORDERS_bin(t),write_CELLSTYLEXFS_bin(t),write_CELLXFS_bin(t,r.cellXfs),write_STYLES_bin(t),write_DXFS_bin(t),write_TABLESTYLES_bin(t),write_record(t,279),t.end()}function write_theme(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[XML_HEADER];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="ï¼ï¼³ ï¼°ã´ã·ãã¯"/>',t[t.length]='<a:font script="Hang" typeface="ë§ì ê³ ë"/>',t[t.length]='<a:font script="Hans" typeface="å®ä½"/>',t[t.length]='<a:font script="Hant" typeface="æ°ç´°æé«"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
226',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="ï¼ï¼³ ï¼°ã´ã·ãã¯"/>',t[t.length]='<a:font script="Hang" typeface="ë§ì ê³ ë"/>',t[t.length]='<a:font script="Hans" typeface="å®ä½"/>',t[t.length]='<a:font script="Hant" typeface="æ°ç´°æé«"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>
226',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function parse_BrtMdtinfo(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:parse_XLWideString(e)}}function write_BrtMdtinfo(e){var r=new_buf(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),write_XLWideString(e.name,r),r.slice(0,r.l)}function parse_BrtMdb(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function write_BrtMdb(e){var r=new_buf(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t<e.length;++t)r.write_shift(4,e[t][0]),r.write_shift(4,e[t][1]);return r}function write_BrtBeginEsfmd(e,r){var t=new_buf(8+2*r.length);return t.write_shift(4,e),write_XLWideString(r,t),t.slice(0,t.l)}function parse_BrtBeginEsmdb(e){return e.l+=4,e.read_shift(4)!=0}function write_BrtBeginEsmdb(e,r){var t=new_buf(8);return t.write_shift(4,e),t.write_shift(4,r?1:0),t}function write_xlmeta_bin(){var e=buf_array();return write_record(e,332),write_record(e,334,write_UInt32LE(1)),write_record(e,335,write_BrtMdtinfo({name:"XLDAPR",version:12e4,flags:3496657072})),write_record(e,336),write_record(e,339,write_BrtBeginEsfmd(1,"XLDAPR")),write_record(e,52),write_record(e,35,write_UInt32LE(514)),write_record(e,4096,write_UInt32LE(0)),write_record(e,4097,writeuint16(1)),write_record(e,36),write_record(e,53),write_record(e,340),write_record(e,337,write_BrtBeginEsmdb(1,!0)),write_record(e,51,write_BrtMdb([[1,0]])
226),write_record(e,338),write_record(e,333),e.end()}function write_xlmeta_xml(){var e=[XML_HEADER];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"> 227 <metadataTypes count="1"> 228 <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/> 229 </metadataTypes> 230 <futureMetadata name="XLDAPR" count="1"> 231 <bk> 232 <extLst> 233 <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> 234 <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> 235 </ext> 236 </extLst> 237 </bk> 238 </futureMetadata> 239 <cellMetadata count="1"> 240 <bk> 241 <rc t="1" v="0"/> 242 </bk> 243 </cellMetadata> 244</metadata>`),e.join("")}function parse_BrtCalcChainItem$(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=encode_cell(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}function write_vml(e,r){var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[writextag("xml",null,{"xmlns:v":XLMLNS.v,"xmlns:o":XLMLNS.o,"xmlns:x":XLMLNS.x,"xmlns:mv":XLMLNS.mv}).replace(/\/>/,">"),writextag("o:shapelayout",writextag("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"})],a=65536*e,s=r||[];return s.length>0&&i.push(writextag("v:shapetype",[writextag("v:stroke",null,{joinstyle:"miter"}),writextag("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:t.join(","),"o:spt":202,path:n})),s.forEach(function(c){++a,i.push(write_vml_comment(c,a))}),i.push("</xml>"),i.join("")}function write_vml_comment(e,r){var t=decode_cell(e[0]),n={color2:"#BEFF82",type:"gradient"};n.type=="gradient"&&(n.angle="-180");var i=n.type=="gradient"?writextag("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=writextag("v:fill",i,n),s={on:"t",obscured:"t"};return["<v:shape"+wxt_helper({id:"_x0000_s"+r,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",a,writextag("v:shadow",null,s),writextag("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",writetag("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),writetag("x:AutoFill","False"),writetag("x:Row",String(t.r)),writetag("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"].join("")}function write_comments_xml(e){var r=[XML_HEADER,writextag("comments",null,{xmlns:XMLNS_main[0]})],t=[];return r.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=escapexml(i.a);t.indexOf(a)==-1&&(t.push(a),r.push("<author>"+a+"</author>")),i.T&&i.ID&&t.indexOf("tc="+i.ID)==-1&&(t.push("tc="+i.ID),r.push("<author>tc="+i.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),e.forEach(function(n){var i=0,a=[],s=0;if(n[1][0]&&n[1][0].T&&n[1][0].ID&&(i=t.indexOf("tc="+n[1][0].ID)),n[1].forEach(function(l){l.a&&(i=t.indexOf(escapexml(l.a))),l.T&&++s,a.push(l.t==null?"":escapexml(l.t))}),s===0)n[1].forEach(function(l){r.push('<comment ref="'+n[0]+'" authorId="'+t.indexOf(escapexml(l.a))+'"><text>'),r.push(writetag("t",l.t==null?"":escapexml(l.t))),r.push("</text></comment>")});else{r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>');for(var c=`Comment: 245 `+a[0]+` 246`,h=1;h<a.length;++h)c+=`Reply: 247 `+a[h]+` 248`;r.push(writetag("t",escapexml(c))),r.push("</text></comment>")}}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function write_tcmnt_xml(e,r,t){var n=[XML_HEADER,writextag("ThreadedComments",null,{xmlns:XMLNS.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";
248(i[1]||[]).forEach(function(s,c){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var h={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};c==0?a=h.id:h.parentId=a,s.ID=h.id,s.a&&(h.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(writextag("threadedComment",writetag("text",s.t||""),h))})}),n.push("</ThreadedComments>"),n.join("")}function write_people_xml(e){var r=[XML_HEADER,writextag("personList",null,{xmlns:XMLNS.TCMNT,"xmlns:x":XMLNS_main[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(writextag("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function parse_BrtBeginComment(e){var r={};r.iauthor=e.read_shift(4);var t=parse_UncheckedRfX(e);return r.rfx=t.s,r.ref=encode_cell(t.s),e.l+=16,r}function write_BrtBeginComment(e,r){return r==null&&(r=new_buf(36)),r.write_shift(4,e[1].iauthor),write_UncheckedRfX(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var parse_BrtCommentAuthor=parse_XLWideString;function write_BrtCommentAuthor(e){return write_XLWideString(e.slice(0,54))}function write_comments_bin(e){var r=buf_array(),t=[];return write_record(r,628),write_record(r,630),e.forEach(function(n){n[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),write_record(r,632,write_BrtCommentAuthor(i.a)))})}),write_record(r,631),write_record(r,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var a={s:decode_cell(n[0]),e:decode_cell(n[0])};write_record(r,635,write_BrtBeginComment([a,i])),i.t&&i.t.length>0&&write_record(r,637,write_BrtCommentText(i)),write_record(r,636),delete i.iauthor})}),write_record(r,634),write_record(r,629),r.end()}function fill_vba_xls(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&CFB.utils.cfb_add(e,i,r.FileIndex[n].content)}})}var VBAFMTS=["xlsb","xlsm","xlam","biff8","xla"],rc_to_a1=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,i,a,s){var c=!1,h=!1;a.length==0?h=!0:a.charAt(0)=="["&&(h=!0,a=a.slice(1,-1)),s.length==0?c=!0:s.charAt(0)=="["&&(c=!0,s=s.slice(1,-1));var l=a.length>0?parseInt(a,10)|0:0,p=s.length>0?parseInt(s,10)|0:0;return c?p+=r.c:--p,h?l+=r.r:--l,i+(c?"":"$")+encode_col(p)+(h?"":"$")+encode_row(l)}return function(i,a){return r=a,i.replace(e,t)}}(),crefregex=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,a1_to_rc=function(){return function(r,t){return r.replace(crefregex,function(n,i,a,s,c,h){var l=decode_col(s)-(a?0:t.c),p=decode_row(h)-(c?0:t.r),b=c=="$"?p+1:p==0?"":"["+p+"]",m=a=="$"?l+1:l==0?"":"["+l+"]";return i+"R"+b+"C"+m})}}();function shift_formula_str(e,r){return e.replace(crefregex,function(t,n,i,a,s,c){return n+(i=="$"?i+a:encode_col(decode_col(a)+r.c))+(s=="$"?s+c:encode_row(decode_row(c)+r.r))})}function fuzzyfmla(e){return e.length!=1}function parseread1(e){e.l+=1}function parse_ColRelU(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function parse_RgceArea(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return parse_RgceArea_BIFF2(e);t.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=parse_ColRelU(e,2),c=parse_ColRelU(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:c[0],cRel:c[1],rRel:c[2]}}}function parse_RgceArea_BIFF2(e){var r=parse_ColRelU(e,2),t=parse_ColRelU(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function parse_RgceAreaRel(e,r,t){if(t.biff<8)return parse_RgceArea_BIFF2(e);var n=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),a=parse_ColRelU(e,2),s=parse_ColRelU(e,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function parse_RgceLoc(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return parse_RgceLoc_BIFF2(e);var n=e.read_shift(t&&t.biff==12?4:2),i=parse_ColRelU(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function parse_RgceLoc_BIFF2(e){var r=parse_ColRelU(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function parse_RgceElfLoc(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function parse_RgceLocRel(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return parse_RgceLocRel_BIFF2(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,c=(a&32768)>>15;if(a&=16383,c==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:c}}function parse_RgceLocRel_BIFF2(e){var r=e.read_shift(2),t=e.read_shift(1),n=(r&32768)>>15,i=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),i==1&&t>=128&&(t=t-256),{r,c:t,cRel:i,rRel:n}}function parse_PtgArea(e,r,t){var n=(e[e.l++]&96)>>5,i=parse_RgceArea(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,i]}function parse_PtgArea3d(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=parse_RgceArea(e,a,t);return[n,i,s]}function parse_PtgAreaErr(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function parse_PtgAreaErr3d(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function parse_PtgAreaN(e,r,t){var n=(e[e.l++]&96)>>5,i=parse_RgceAreaRel(e,r-1,t);return[n,i]}function parse_PtgArray(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function parse_PtgAttrBaxcel(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function parse_PtgAttrChoose(e,r,t){e.l+=2;for(var n=e.read_shift(t&&t.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(t&&t.biff==2?1:2));return i}function parse_PtgAttrGoto(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function parse_PtgAttrIf(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function parse_PtgAttrIfError(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function parse_PtgAttrSemi(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function parse_PtgAttrSpaceType(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function parse_PtgAttrSpace(e){return e.read_shift(2),parse_PtgAttrSpaceType(e)}function parse_PtgAttrSpaceSemi(e){return e.read_shift(2),parse_PtgAttrSpaceType(e)}function parse_PtgRef(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=parse_RgceLoc(e,0,t);return[n,i]}function parse_PtgRefN(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=parse_RgceLocRel(e,0,t);return[n,i]}function parse_PtgRef3d(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);
248t&&t.biff==5&&(e.l+=12);var a=parse_RgceLoc(e,0,t);return[n,i,a]}function parse_PtgFunc(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(t&&t.biff<=3?1:2);return[FtabArgc[i],Ftab[i],n]}function parse_PtgFuncVar(e,r,t){var n=e[e.l++],i=e.read_shift(1),a=t&&t.biff<=3?[n==88?-1:0,e.read_shift(1)]:parsetab(e);return[i,(a[0]===0?Ftab:Cetab)[a[1]]]}function parsetab(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function parse_PtgAttrSum(e,r,t){e.l+=t&&t.biff==2?3:4}function parse_PtgExp(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function parse_PtgErr(e){return e.l++,BErr[e.read_shift(1)]}function parse_PtgInt(e){return e.l++,e.read_shift(2)}function parse_PtgBool(e){return e.l++,e.read_shift(1)!==0}function parse_PtgNum(e){return e.l++,parse_Xnum(e)}function parse_PtgStr(e,r,t){return e.l++,parse_ShortXLUnicodeString(e,r-1,t)}function parse_SerAr(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=parsebool(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=BErr[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=parse_Xnum(e);break;case 2:t[1]=parse_XLUnicodeString2(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function parse_PtgExtraMem(e,r,t){for(var n=e.read_shift(t.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((t.biff==12?parse_UncheckedRfX:parse_Ref8U)(e));return i}function parse_PtgExtraArray(e,r,t){var n=0,i=0;t.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var c=0;c!=i;++c)s[a][c]=parse_SerAr(e,t.biff);return s}function parse_PtgName(e,r,t){var n=e.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,a=e.read_shift(i);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function parse_PtgNameX(e,r,t){if(t.biff==5)return parse_PtgNameX_BIFF5(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function parse_PtgNameX_BIFF5(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[r,t,n]}function parse_PtgMemArea(e,r,t){var n=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function parse_PtgMemFunc(e,r,t){var n=e.read_shift(1)>>>5&3,i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function parse_PtgRefErr(e,r,t){var n=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[n]}function parse_PtgRefErr3d(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(t)switch(t.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var parse_PtgMemErr=parsenoop,parse_PtgMemNoMem=parsenoop,parse_PtgTbl=parsenoop;function parse_PtgElfLoc(e,r,t){return e.l+=2,[parse_RgceElfLoc(e)]}function parse_PtgElfNoop(e){return e.l+=6,[]}var parse_PtgElfCol=parse_PtgElfLoc,parse_PtgElfColS=parse_PtgElfNoop,parse_PtgElfColSV=parse_PtgElfNoop,parse_PtgElfColV=parse_PtgElfLoc;function parse_PtgElfLel(e){return e.l+=2,[parseuint16(e),e.read_shift(2)&1]}var parse_PtgElfRadical=parse_PtgElfLoc,parse_PtgElfRadicalLel=parse_PtgElfLel,parse_PtgElfRadicalS=parse_PtgElfNoop,parse_PtgElfRw=parse_PtgElfLoc,parse_PtgElfRwV=parse_PtgElfLoc,PtgListRT=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function parse_PtgList(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=PtgListRT[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:i,C:a}}function parse_PtgSxName(e){return e.l+=2,[e.read_shift(4)]}function parse_PtgSheet(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function parse_PtgEndSheet(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function parse_PtgMemAreaN(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function parse_PtgMemNoMemN(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function parse_PtgAttrNoop(e){return e.l+=4,[0,0]}var PtgTypes={1:{n:"PtgExp",f:parse_PtgExp},2:{n:"PtgTbl",f:parse_PtgTbl},3:{n:"PtgAdd",f:parseread1},4:{n:"PtgSub",f:parseread1},5:{n:"PtgMul",f:parseread1},6:{n:"PtgDiv",f:parseread1},7:{n:"PtgPower",f:parseread1},8:{n:"PtgConcat",f:parseread1},9:{n:"PtgLt",f:parseread1},10:{n:"PtgLe",f:parseread1},11:{n:"PtgEq",f:parseread1},12:{n:"PtgGe",f:parseread1},13:{n:"PtgGt",f:parseread1},14:{n:"PtgNe",f:parseread1},15:{n:"PtgIsect",f:parseread1},16:{n:"PtgUnion",f:parseread1},17:{n:"PtgRange",f:parseread1},18:{n:"PtgUplus",f:parseread1},19:{n:"PtgUminus",f:parseread1},20:{n:"PtgPercent",f:parseread1},21:{n:"PtgParen",f:parseread1}
vendor: 8,012 bytes, line 248
248,22:{n:"PtgMissArg",f:parseread1},23:{n:"PtgStr",f:parse_PtgStr},26:{n:"PtgSheet",f:parse_PtgSheet},27:{n:"PtgEndSheet",f:parse_PtgEndSheet},28:{n:"PtgErr",f:parse_PtgErr},29:{n:"PtgBool",f:parse_PtgBool},30:{n:"PtgInt",f:parse_PtgInt},31:{n:"PtgNum",f:parse_PtgNum},32:{n:"PtgArray",f:parse_PtgArray},33:{n:"PtgFunc",f:parse_PtgFunc},34:{n:"PtgFuncVar",f:parse_PtgFuncVar},35:{n:"PtgName",f:parse_PtgName},36:{n:"PtgRef",f:parse_PtgRef},37:{n:"PtgArea",f:parse_PtgArea},38:{n:"PtgMemArea",f:parse_PtgMemArea},39:{n:"PtgMemErr",f:parse_PtgMemErr},40:{n:"PtgMemNoMem",f:parse_PtgMemNoMem},41:{n:"PtgMemFunc",f:parse_PtgMemFunc},42:{n:"PtgRefErr",f:parse_PtgRefErr},43:{n:"PtgAreaErr",f:parse_PtgAreaErr},44:{n:"PtgRefN",f:parse_PtgRefN},45:{n:"PtgAreaN",f:parse_PtgAreaN},46:{n:"PtgMemAreaN",f:parse_PtgMemAreaN},47:{n:"PtgMemNoMemN",f:parse_PtgMemNoMemN},57:{n:"PtgNameX",f:parse_PtgNameX},58:{n:"PtgRef3d",f:parse_PtgRef3d},59:{n:"PtgArea3d",f:parse_PtgArea3d},60:{n:"PtgRefErr3d",f:parse_PtgRefErr3d},61:{n:"PtgAreaErr3d",f:parse_PtgAreaErr3d},255:{}},PtgDupes={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Ptg18={1:{n:"PtgElfLel",f:parse_PtgElfLel},2:{n:"PtgElfRw",f:parse_PtgElfRw},3:{n:"PtgElfCol",f:parse_PtgElfCol},6:{n:"PtgElfRwV",f:parse_PtgElfRwV},7:{n:"PtgElfColV",f:parse_PtgElfColV},10:{n:"PtgElfRadical",f:parse_PtgElfRadical},11:{n:"PtgElfRadicalS",f:parse_PtgElfRadicalS},13:{n:"PtgElfColS",f:parse_PtgElfColS},15:{n:"PtgElfColSV",f:parse_PtgElfColSV},16:{n:"PtgElfRadicalLel",f:parse_PtgElfRadicalLel},25:{n:"PtgList",f:parse_PtgList},29:{n:"PtgSxName",f:parse_PtgSxName},255:{}},Ptg19={0:{n:"PtgAttrNoop",f:parse_PtgAttrNoop},1:{n:"PtgAttrSemi",f:parse_PtgAttrSemi},2:{n:"PtgAttrIf",f:parse_PtgAttrIf},4:{n:"PtgAttrChoose",f:parse_PtgAttrChoose},8:{n:"PtgAttrGoto",f:parse_PtgAttrGoto},16:{n:"PtgAttrSum",f:parse_PtgAttrSum},32:{n:"PtgAttrBaxcel",f:parse_PtgAttrBaxcel},33:{n:"PtgAttrBaxcel",f:parse_PtgAttrBaxcel},64:{n:"PtgAttrSpace",f:parse_PtgAttrSpace},65:{n:"PtgAttrSpaceSemi",f:parse_PtgAttrSpaceSemi},128:{n:"PtgAttrIfError",f:parse_PtgAttrIfError},255:{}};function parse_RgbExtra(e,r,t,n){if(n.biff<8)return parsenoop(e,r);for(var i=e.l+r,a=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=parse_PtgExtraArray(e,0,n),a.push(t[s][1]);break;case"PtgMemArea":t[s][2]=parse_PtgExtraMem(e,t[s][1],n),a.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=e.read_shift(4),a.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0]}return r=i-e.l,r!==0&&a.push(parsenoop(e,r)),a}function parse_Rgce(e,r,t){for(var n=e.l+r,i,a,s=[];n!=e.l;)r=n-e.l,a=e[e.l],i=PtgTypes[a]||PtgTypes[PtgDupes[a]],(a===24||a===25)&&(i=(a===24?Ptg18:Ptg19)[e[e.l+1]]),!i||!i.f?parsenoop(e,r):s.push([i.n,i.f(e,r,t)]);return s}function stringify_array(e){for(var r=[],t=0;t<e.length;++t){for(var n=e[t],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}r.push(i.join(","))}return r.join(";")}var PtgBinOp={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function make_3d_range(e,r){var t=e.lastIndexOf("!"),n=r.lastIndexOf("!");return t==-1&&n==-1?e+":"+r:t>0&&n>0&&e.slice(0,t).toLowerCase()==r.slice(0,n).toLowerCase()?e+":"+r.slice(n+1):(console.error("Cannot hydrate range",e,r),e+":"+r)}function get_ixti_raw(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!n)return"SH33TJSERR1";var i="";if(t.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return t.SID!=null?e.SheetNames[t.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function get_ixti(e,r,t){var n=get_ixti_raw(e,r,t);return n=="#REF"?n:formula_quote_sheet_name(n,t)}function stringify_formula(e,r,t,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},c=[],h,l,p,b=0,m=0,A,L="";if(!e[0]||!e[0][0])return"";for(var k=-1,T="",S=0,M=e[0].length;S<M;++S){var H=e[0][S];switch(H[0]){case"PtgUminus":c.push("-"+c.pop());break;case"PtgUplus":c.push("+"+c.pop());break;case"PtgPercent":c.push(c.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(h=c.pop(),l=c.pop(),k>=0){switch(e[0][k][1][0]){case 0:T=fill(" ",e[0][k][1][1]);break;case 1:T=fill("\r",e[0][k][1][1]);break;default:if(T="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][k][1][0])}l=l+T,k=-1}c.push(l+PtgBinOp[H[0]]+h);break;case"PtgIsect":h=c.pop(),l=c.pop(),c.push(l+" "+h);break;case"PtgUnion":h=c.pop(),l=c.pop(),c.push(l+","+h);break;case"PtgRange":h=c.pop(),l=c.pop(),c.push(make_3d_range(l,h));break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":p=shift_cell_xls(H[1][1],s,i),c.push(encode_cell_xls(p,a));break;case"PtgRefN":p=t?shift_cell_xls(H[1][1],t,i):H[1][1],c.push(encode_cell_xls(p,a));break;case"PtgRef3d":b=H[1][1],p=shift_cell_xls(H[1][2],s,i),L=get_ixti(n,b,i),c.push(L+"!"+encode_cell_xls(p,a));break;case"PtgFunc":case"PtgFuncVar":var te=H[1][0],Ie=H[1][1];te||(te=0),te&=127;var we=te==0?[]:c.slice(-te);c.length-=te,Ie==="User"&&(Ie=we.shift()),c.push(Ie+"("+we.join(",")+")");break;case"PtgBool":c.push(H[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(H[1]);break;case"PtgNum":c.push(String(H[1]));break;case"PtgStr":c.push('"'+H[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(H[1]);break;case"PtgAreaN":A=shift_range_xls(H[1][1],t?{s:t}:s,i),c.push(encode_range_xls(A,i));break;case"PtgArea":A=shift_range_xls(H[1][1],s,i),c.push(encode_range_xls(A,i));break;case"PtgArea3d":b=H[1][1],A=H[1][2],L=get_ixti(n,b,i),c.push(L+"!"+encode_range_xls(A,i));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":m=H[1][2];var _=(n.names||[])[m-1]||(n[0]||[])[m],oe=_?_.Name:"SH33TJSNAME"+String(m);oe&&oe.slice(0,6)=="_xlfn."&&!i.xlfn&&(oe=oe.slice(6)),c.push(oe);break;case"PtgNameX":var ee=H[1][1];m=H[1][2];var Ee;if(i.biff<=5)ee<0&&(ee=-ee),n[ee]&&(Ee=n[ee][m]);else{var Le="";if(((n[ee]||[])[0]||[])[0]==14849||(((n[ee]||[])[0]||[])[0]==1025?n[ee][m]&&n[ee][m].itab>0&&(Le=n.SheetNames[n[ee][m].itab-1]+"!"):Le=n.SheetNames[m-1]+"!"),n[ee]&&n[ee][m])Le+=n[ee][m].Name;else if(n[0]&&n[0][m])Le+=n[0][m].Name;else{var Pe=(get_ixti_raw(n,ee,i)||"").split(";;");Pe[m-1]?Le=Pe[m-1]:Le+="SH33TJSERRX"}c.push(Le);break}Ee||(Ee={Name:"SH33TJSERRY"}),c.push(Ee.Name);break;case"PtgParen":var $e="(",Ze=")";if(k>=0){switch(T="",e[0][k][1][0]){case 2:$e=fill(" ",e[0][k][1][1])+$e;break;case 3:$e=fill("\r",e[0][k][1][1])+$e;break;case 4:Ze=fill(" ",e[0][k][1][1])+Ze;break;case 5:Ze=fill("\r",e[0][k][1][1])+Ze;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][k][1][0])}k=-1}c.push($e+c.pop()+Ze);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":p={c:H[1][1],r:H[1][0]};var je={c:t.c,r:t.r};if(n.sharedf[encode_cell(p)]){var gt=n.sharedf[encode_cell(p)];c.push(stringify_formula(gt,s,je,n,i))}else{var Xe=!1;for(h=0;h!=n.arrayf.length;
248++h)if(l=n.arrayf[h],!(p.c<l[0].s.c||p.c>l[0].e.c)&&!(p.r<l[0].s.r||p.r>l[0].e.r)){c.push(stringify_formula(l[1],s,je,n,i)),Xe=!0;break}Xe||c.push(H[1])}break;case"PtgArray":c.push("{"+stringify_array(H[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":k=S;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":c.push("#REF!");break;case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+H[1].idx+"[#"+H[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(H));default:throw new Error("Unrecognized Formula Token: "+String(H))}var dt=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&k>=0&&dt.indexOf(e[0][S][0])==-1){H=e[0][k];var yt=!0;switch(H[1][0]){case 4:yt=!1;case 0:T=fill(" ",H[1][1]);break;case 5:yt=!1;case 1:T=fill("\r",H[1][1]);break;default:if(T="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+H[1][0])}c.push((yt?T:"")+c.pop()+(yt?"":T)),k=-1}}if(c.length>1&&i.WTF)throw new Error("bad formula stack");return c[0]=="TRUE"?!0:c[0]=="FALSE"?!1:c[0]}function write_FormulaValue(e){if(e==null){var r=new_buf(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return write_Xnum(e);return write_Xnum(0)}function write_Formula(e,r,t,n,i){var a=write_XLSCell(r,t,i),s=write_FormulaValue(e.v),c=new_buf(6),h=33;c.write_shift(2,h),c.write_shift(4,0);for(var l=new_buf(e.bf.length),p=0;p<e.bf.length;++p)l[p]=e.bf[p];var b=bconcat([a,s,c,l]);return b}function parse_XLSBParsedFormula(e,r,t){var n=e.read_shift(4),i=parse_Rgce(e,n,t),a=e.read_shift(4),s=a>0?parse_RgbExtra(e,a,i,t):null;return[i,s]}var parse_XLSBArrayParsedFormula=parse_XLSBParsedFormula,parse_XLSBCellParsedFormula=parse_XLSBParsedFormula,parse_XLSBNameParsedFormula=parse_XLSBParsedFormula,parse_XLSBSharedParsedFormula=parse_XLSBParsedFormula;function write_XLSBFormulaNum(e){if((e|0)==e&&e<Math.pow(2,16)&&e>=0){var r=new_buf(11);return r.write_shift(4,3),r.write_shift(1,30),r.write_shift(2,e),r.write_shift(4,0),r}var t=new_buf(17);return t.write_shift(4,11),t.write_shift(1,31),t.write_shift(8,e),t.write_shift(4,0),t}function write_XLSBFormulaErr(e){var r=new_buf(10);return r.write_shift(4,2),r.write_shift(1,28),r.write_shift(1,e),r.write_shift(4,0),r}function write_XLSBFormulaBool(e){var r=new_buf(10);return r.write_shift(4,2),r.write_shift(1,29),r.write_shift(1,e?1:0),r.write_shift(4,0),r}function write_XLSBFormulaStr(e){var r=new_buf(7);r.write_shift(4,3+2*e.length),r.write_shift(1,23),r.write_shift(2,e.length);var t=new_buf(2*e.length);t.write_shift(2*e.length,e,"utf16le");var n=new_buf(4);return n.write_shift(4,0),bconcat([r,t,n])}function write_XLSBFormulaRef(e){var r=decode_cell(e),t=new_buf(15);return t.write_shift(4,7),t.write_shift(1,36),t.write_shift(4,r.r),t.write_shift(2,r.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),t.write_shift(4,0),t}function write_XLSBFormulaRef3D(e,r){var t=e.lastIndexOf("!"),n=e.slice(0,t);e=e.slice(t+1);var i=decode_cell(e);n.charAt(0)=="'"&&(n=n.slice(1,-1).replace(/''/g,"'"));var a=new_buf(17);return a.write_shift(4,9),a.write_shift(1,58),a.write_shift(2,2+r.SheetNames.map(function(s){return s.toLowerCase()}).indexOf(n.toLowerCase())),a.write_shift(4,i.r),a.write_shift(2,i.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),a.write_shift(4,0),a}function write_XLSBFormulaRefErr3D(e,r){var t=e.lastIndexOf("!"),n=e.slice(0,t);e=e.slice(t+1),n.charAt(0)=="'"&&(n=n.slice(1,-1).replace(/''/g,"'"));var i=new_buf(17);return i.write_shift(4,9),i.write_shift(1,60),i.write_shift(2,2+r.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.toLowerCase())),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(4,0),i}function write_XLSBFormulaRange(e){var r=e.split(":"),t=r[0],n=new_buf(23);n.write_shift(4,15),t=r[0];var i=decode_cell(t);return n.write_shift(1,36),n.write_shift(4,i.r),n.write_shift(2,i.c|(t.charAt(0)=="$"?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),t=r[1],i=decode_cell(t),n.write_shift(1,36),n.write_shift(4,i.r),n.write_shift(2,i.c|(t.charAt(0)=="$"?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),n.write_shift(1,17),n.write_shift(4,0),n}function write_XLSBFormulaRangeWS(e,r){var t=e.lastIndexOf("!"),n=e.slice(0,t);e=e.slice(t+1),n.charAt(0)=="'"&&(n=n.slice(1,-1).replace(/''/g,"'"));var i=e.split(":");s=i[0];var a=new_buf(27);a.write_shift(4,19);var s=i[0],c=decode_cell(s);return a.write_shift(1,58),a.write_shift(2,2+r.SheetNames.map(function(h){return h.toLowerCase()}).indexOf(n.toLowerCase())),a.write_shift(4,c.r),a.write_shift(2,c.c|(s.charAt(0)=="$"?0:1)<<14|(s.match(/\$\d/)?0:1)<<15),s=i[1],c=decode_cell(s),a.write_shift(1,58),a.write_shift(2,2+r.SheetNames.map(function(h){return h.toLowerCase()}).indexOf(n.toLowerCase())),a.write_shift(4,c.r),a.write_shift(2,c.c|(s.charAt(0)=="$"?0:1)<<14|(s.match(/\$\d/)?0:1)<<15),a.write_shift(1,17),a.write_shift(4,0),a}function write_XLSBFormulaArea3D(e,r){var t=e.lastIndexOf("!"),n=e.slice(0,t);e=e.slice(t+1),n.charAt(0)=="'"&&(n=n.slice(1,-1).replace(/''/g,"'"));var i=decode_range(e),a=new_buf(23);return a.write_shift(4,15),a.write_shift(1,59),a.write_shift(2,2+r.SheetNames.map(function(s){return s.toLowerCase()}).indexOf(n.toLowerCase())),a.write_shift(4,i.s.r),a.write_shift(4,i.e.r),a.write_shift(2,i.s.c),a.write_shift(2,i.e.c),a.write_shift(4,0),a}function write_XLSBFormula(e,r){if(typeof e=="number")return write_XLSBFormulaNum(e);
248if(typeof e=="boolean")return write_XLSBFormulaBool(e);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(e))return write_XLSBFormulaErr(+RBErr[e]);if(e.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return write_XLSBFormulaRef(e);if(e.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return write_XLSBFormulaRange(e);if(e.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return write_XLSBFormulaArea3D(e,r);if(e.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return write_XLSBFormulaRef3D(e,r);if(e.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return write_XLSBFormulaRangeWS(e,r);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(e))return write_XLSBFormulaRefErr3D(e,r);if(/^".*"$/.test(e))return write_XLSBFormulaStr(e);if(/^[+-]\d+$/.test(e))return write_XLSBFormulaNum(parseInt(e,10));throw"Formula |"+e+"| not supported for XLSB"}var write_XLSBNameParsedFormula=write_XLSBFormula,Cetab={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.
248NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ftab={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDI
248RECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"}
vendor: 10,902 bytes, line 248
248,FtabArgc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function csf_to_ods_formula(e){var r="of:="+e.replace(crefregex,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function csf_to_ods_3D(e){return e.replace(/!/,".")}var browser_has_Map=typeof Map<"u";function get_sst_id(e,r,t){var n=0,i=e.length;if(t){if(browser_has_Map?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var a=browser_has_Map?t.get(r):t[r];n<a.length;++n)if(e[a[n]].t===r)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===r)return e.Count++,n;return e[i]={t:r},e.Count++,e.Unique++,t&&(browser_has_Map?(t.has(r)||t.set(r,[]),t.get(r).push(i)):(Object.prototype.hasOwnProperty.call(t,r)||(t[r]=[]),t[r].push(i))),i}function col_obj_w(e,r){var t={min:e+1,max:e+1},n=-1;return r.MDW&&(MDW=r.MDW),r.width!=null?t.customWidth=1:r.wpx!=null?n=px2char(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(t.width=char2width(n),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function default_margins(e,r){if(e){var t=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(t=[1,1,1,1,.5,.5]),e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function get_cell_style(e,r,t){var n=t.revssf[r.z!=null?r.z:"General"],i=60,a=e.length;if(n==null&&t.ssf){for(;i<392;++i)if(t.ssf[i]==null){SSF__load(r.z,i),t.ssf[i]=r.z,t.revssf[r.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function check_ws(e,r,t){if(e&&e["!ref"]){var n=safe_decode_range(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+t+"): "+e["!ref"])}}function write_ws_xml_merges(e){if(e.length===0)return"";for(var r='<mergeCells count="'+e.length+'">',t=0;t!=e.length;++t)r+='<mergeCell ref="'+encode_range(e[t])+'"/>';return r+"</mergeCells>"}function write_ws_xml_sheetpr(e,r,t,n,i){var a=!1,s={},c=null;if(n.bookType!=="xlsx"&&r.vbaraw){var h=r.SheetNames[t];try{r.Workbook&&(h=r.Workbook.Sheets[t].CodeName||h)}catch{}a=!0,s.codeName=utf8write(escapexml(h))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),c=(c||"")+writextag("outlinePr",null,l)}!a&&!c||(i[i.length]=writextag("sheetPr",c,s))}var sheetprot_deffalse=["objects","scenarios","selectLockedCells","selectUnlockedCells"],sheetprot_deftrue=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function write_ws_xml_protection(e){var r={sheet:1};return sheetprot_deffalse.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),sheetprot_deftrue.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=crypto_CreatePasswordVerifier_Method1(e.password).toString(16).toUpperCase()),writextag("sheetProtection",null,r)}function write_ws_xml_margins(e){return default_margins(e),writextag("pageMargins",null,e)}function write_ws_xml_cols(e,r){for(var t=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(t[t.length]=writextag("col",null,col_obj_w(i,n)));return t[t.length]="</cols>",t.join("")}function write_ws_xml_autofilter(e,r,t,n){var i=typeof e.ref=="string"?e.ref:encode_range(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var a=t.Workbook.Names,s=decode_range(i);s.s.r==s.e.r&&(s.e.r=decode_range(r["!ref"]).e.r,i=encode_range(s));for(var c=0;c<a.length;++c){var h=a[c];if(h.Name=="_xlnm._FilterDatabase"&&h.Sheet==n){h.Ref=formula_quote_sheet_name(t.SheetNames[n])+"!"+fix_range(i);break}}return c==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+i}),writextag("autoFilter",null,{ref:i})}function write_ws_xml_sheetviews(e,r,t,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),writextag("sheetViews",writextag("sheetView",null,i),{})}function write_ws_xml_cell(e,r,t,n){if(e.c&&t["!comments"].push([r,e.c]),(e.v===void 0||e.t==="z"&&!(n||{}).sheetStubs)&&typeof e.f!="string"&&typeof e.z>"u")return"";var i="",a=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=BErr[e.v];break;case"d":n&&n.cellDates?i=parseDate(e.v,-1).toISOString():(e=dup(e),e.t="n",i=""+(e.v=datenum(parseDate(e.v)))),typeof e.z>"u"&&(e.z=table_fmt[14]);break;default:i=e.v;break}var c=e.t=="z"||e.v==null?"":writetag("v",escapexml(i)),h={r},l=get_cell_style(n.cellXfs,e,n);switch(l!==0&&(h.s=l),e.t){case"n":break;case"d":h.t="d";break;case"b":h.t="b";break;case"e":h.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){c=writetag("v",""+get_sst_id(n.Strings,e.v,n.revStrings)),h.t="s";break}else h.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var p=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;c=writextag("f",escapexml(e.f),p)+(e.v!=null?c:"")}return e.l&&(e.l.display=escapexml(i),t["!links"].push([r,e.l])),e.D&&(h.cm=1),writextag("c",c,h)}function write_ws_xml_data(e,r,t,n){var i=[],a=[],s=safe_decode_range(e["!ref"]),c="",h,l="",p=[],b=0,m=0,A=e["!rows"],L=e["!data"]!=null,k={r:l},T,S=-1;for(m=s.s.c;m<=s.e.c;++m)p[m]=encode_col(m);for(b=s.s.r;b<=s.e.r;++b){for(a=[],l=encode_row(b),m=s.s.c;m<=s.e.c;++m){h=p[m]+l;var M=L?(e["!data"][b]||[])[m]:e[h];M!==void 0&&(c=write_ws_xml_cell(M,h,e,r))!=null&&a.push(c)}(a.length>0||A&&A[b])&&(k={r:l},A&&A[b]&&(T=A[b],T.hidden&&(k.hidden=1),S=-1,T.hpx?S=px2pt(T.hpx):T.hpt&&(S=T.hpt),S>-1&&(k.ht=S,k.customHeight=1),T.level&&(k.outlineLevel=T.level)),i[i.length]=writextag("row",a.join(""),k))}if(A)for(;b<A.length;++b)A&&A[b]&&(k={r:b+1},T=A[b],T.hidden&&(k.hidden=1),S=-1,T.hpx?S=px2pt(T.hpx):T.hpt&&(S=T.hpt),S>-1&&(k.ht=S,k.customHeight=1),T.level&&(k.outlineLevel=T.level),i[i.length]=writextag("row","",k));return i.join("")}function write_ws_xml(e,r,t,n){var i=[XML_HEADER,writextag("worksheet",null,{xmlns:XMLNS_main[0],"xmlns:r":XMLNS.r})],a=t.SheetNames[e],s=0,c="",h=t.Sheets[a];h==null&&(h={});var l=h["!ref"]||"A1",p=safe_decode_range(l);if(p.e.c>16383||p.e.r>1048575){if(r.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");p.e.c=Math.min(p.e.c,16383),p.e.r=Math.min(p.e.c,1048575),l=encode_range(p)}n||(n={}),h["!comments"]=[];var b=[];write_ws_xml_sheetpr(h,t,e,r,i),i[i.length]=writextag("dimension",null,{ref:l}),i[i.length]=write_ws_xml_sheetviews(h,r,e,t),r.sheetFormat&&(i[i.length]=writextag("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),h["!cols"]!=null&&h["!cols"].length>0&&(i[i.length]=write_ws_xml_cols(h,h["!cols"])),i[s=i.length]="<sheetData/>",h["!links"]=[],h["!ref"]!=null&&(c=write_ws_xml_data(h,r),c.length>0&&(i[i.length]=c)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),h["!protect"]&&(i[i.length]=write_ws_xml_protection(h["!protect"])),h["!autofilter"]!=null&&(i[i.length]=write_ws_xml_autofilter(h["!autofilter"],h,t,e)),h["!merges"]!=null&&h["!merges"].length>0&&(i[i.length]=write_ws_xml_merges(h["!merges"]));var m=-1,A,L=-1;return h["!links"].length>0&&(i[i.length]="<hyperlinks>",h["!links"].forEach(function(k){k[1].Target&&(A={ref:k[0]},k[1].Target.charAt(0)!="#"&&(L=add_rels(n,-1,escapexml(k[1].Target).replace(/#.*$/,""),RELS.HLINK),A["r:id"]="rId"+L),(m=k[1].Target.indexOf("#"))>-1&&(A.location=escapexml(k[1].Target.slice(m+1))),k[1].Tooltip&&(A.tooltip=escapexml(k[1].Tooltip)),A.display=k[1].display,i[i.length]=writextag("hyperlink",null,A))}),i[i.length]="</hyperlinks>"),delete h["!links"],h["!margins"]!=null&&(i[i.length]=write_ws_xml_margins(h["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=writetag("ignoredErrors",writextag("ignoredError",null,{numberStoredAsText:1,sqref:l}))),b.length>0&&(L=add_rels(n,-1,"../drawings/drawing"+(e+1)+".xml",RELS.DRAW),i[i.length]=writextag("drawing",null,{"r:id":"rId"+L}),h["!drawing"]=b),h["!comments"].length>0&&(L=add_rels(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",RELS.VML),i[i.length]=writextag("legacyDrawing",null,{"r:id":"rId"+L}),h["!legacy"]=L),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function parse_BrtRowHdr(e,r){var t={},n=e.l+r;t.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(t.level=a&7),a&16&&(t.hidden=!0),a&32&&(t.hpt=i/20),t}function write_BrtRowHdr(e,r,t){var n=new_buf(145),i=(t["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=px2pt(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var c=0,h=n.l;n.l+=4;for(var l={r:e,c:0},p=t["!data"]!=null,b=0;b<16;++b)if(!(r.s.c>b+1<<10||r.e.c<b<<10)){for(var m=-1,A=-1,L=b<<10;L<b+1<<10;++L){l.c=L;var k=p?(t["!data"][l.r]||[])[l.c]:t[encode_cell(l)];k&&(m<0&&(m=L),A=L)}m<0||(++c,n.write_shift(4,m),n.write_shift(4,A))}var T=n.l;return n.l=h,n.write_shift(4,c),n.l=T,n.length>n.l?n.slice(0,n.l):n}function write_row_header(e,r,t,n){var i=write_BrtRowHdr(n,t,r);(i.length>17||(r["!rows"]||[])[n])&&write_record(e,0,i)}
248var parse_BrtWsDim=parse_UncheckedRfX,write_BrtWsDim=write_UncheckedRfX;function parse_BrtWsFmtInfo(){}function parse_BrtWsProp(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=parse_XLSBCodeName(e),t}function write_BrtWsProp(e,r,t){t==null&&(t=new_buf(84+4*e.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),t.write_shift(1,n);for(var i=1;i<3;++i)t.write_shift(1,0);return write_BrtColor({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),write_XLSBCodeName(e,t),t.slice(0,t.l)}function parse_BrtCellBlank(e){var r=parse_XLSBCell(e);return[r]}function write_BrtCellBlank(e,r,t){return t==null&&(t=new_buf(8)),write_XLSBCell(r,t)}function parse_BrtShortBlank(e){var r=parse_XLSBShortCell(e);return[r]}function write_BrtShortBlank(e,r,t){return t==null&&(t=new_buf(4)),write_XLSBShortCell(r,t)}function parse_BrtCellBool(e){var r=parse_XLSBCell(e),t=e.read_shift(1);return[r,t,"b"]}function write_BrtCellBool(e,r,t){return t==null&&(t=new_buf(9)),write_XLSBCell(r,t),t.write_shift(1,e.v?1:0),t}function parse_BrtShortBool(e){var r=parse_XLSBShortCell(e),t=e.read_shift(1);return[r,t,"b"]}function write_BrtShortBool(e,r,t){return t==null&&(t=new_buf(5)),write_XLSBShortCell(r,t),t.write_shift(1,e.v?1:0),t}function parse_BrtCellError(e){var r=parse_XLSBCell(e),t=e.read_shift(1);return[r,t,"e"]}function write_BrtCellError(e,r,t){return t==null&&(t=new_buf(9)),write_XLSBCell(r,t),t.write_shift(1,e.v),t}function parse_BrtShortError(e){var r=parse_XLSBShortCell(e),t=e.read_shift(1);return[r,t,"e"]}function write_BrtShortError(e,r,t){return t==null&&(t=new_buf(8)),write_XLSBShortCell(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function parse_BrtCellIsst(e){var r=parse_XLSBCell(e),t=e.read_shift(4);return[r,t,"s"]}function write_BrtCellIsst(e,r,t){return t==null&&(t=new_buf(12)),write_XLSBCell(r,t),t.write_shift(4,r.v),t}function parse_BrtShortIsst(e){var r=parse_XLSBShortCell(e),t=e.read_shift(4);return[r,t,"s"]}function write_BrtShortIsst(e,r,t){return t==null&&(t=new_buf(8)),write_XLSBShortCell(r,t),t.write_shift(4,r.v),t}function parse_BrtCellReal(e){var r=parse_XLSBCell(e),t=parse_Xnum(e);return[r,t,"n"]}function write_BrtCellReal(e,r,t){return t==null&&(t=new_buf(16)),write_XLSBCell(r,t),write_Xnum(e.v,t),t}function parse_BrtShortReal(e){var r=parse_XLSBShortCell(e),t=parse_Xnum(e);return[r,t,"n"]}function write_BrtShortReal(e,r,t){return t==null&&(t=new_buf(12)),write_XLSBShortCell(r,t),write_Xnum(e.v,t),t}function parse_BrtCellRk(e){var r=parse_XLSBCell(e),t=parse_RkNumber(e);return[r,t,"n"]}function write_BrtCellRk(e,r,t){return t==null&&(t=new_buf(12)),write_XLSBCell(r,t),write_RkNumber(e.v,t),t}function parse_BrtShortRk(e){var r=parse_XLSBShortCell(e),t=parse_RkNumber(e);return[r,t,"n"]}function write_BrtShortRk(e,r,t){return t==null&&(t=new_buf(8)),write_XLSBShortCell(r,t),write_RkNumber(e.v,t),t}function parse_BrtCellRString(e){var r=parse_XLSBCell(e),t=parse_RichStr(e);return[r,t,"is"]}function parse_BrtCellSt(e){var r=parse_XLSBCell(e),t=parse_XLWideString(e);return[r,t,"str"]}function write_BrtCellSt(e,r,t){var n=e.v==null?"":String(e.v);return t==null&&(t=new_buf(12+4*e.v.length)),write_XLSBCell(r,t),write_XLWideString(n,t),t.length>t.l?t.slice(0,t.l):t}function parse_BrtShortSt(e){var r=parse_XLSBShortCell(e),t=parse_XLWideString(e);return[r,t,"str"]}function write_BrtShortSt(e,r,t){var n=e.v==null?"":String(e.v);return t==null&&(t=new_buf(8+4*n.length)),write_XLSBShortCell(r,t),write_XLWideString(n,t),t.length>t.l?t.slice(0,t.l):t}function parse_BrtFmlaBool(e,r,t){var n=e.l+r,i=parse_XLSBCell(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(t.cellFormula){e.l+=2;var c=parse_XLSBCellParsedFormula(e,n-e.l,t);s[3]=stringify_formula(c,null,i,t.supbooks,t)}else e.l=n;return s}function parse_BrtFmlaError(e,r,t){var n=e.l+r,i=parse_XLSBCell(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(t.cellFormula){e.l+=2;var c=parse_XLSBCellParsedFormula(e,n-e.l,t);s[3]=stringify_formula(c,null,i,t.supbooks,t)}else e.l=n;return s}function parse_BrtFmlaNum(e,r,t){var n=e.l+r,i=parse_XLSBCell(e);i.r=t["!row"];var a=parse_Xnum(e),s=[i,a,"n"];
vendor: 6,574 bytes, line 248
248if(t.cellFormula){e.l+=2;var c=parse_XLSBCellParsedFormula(e,n-e.l,t);s[3]=stringify_formula(c,null,i,t.supbooks,t)}else e.l=n;return s}function parse_BrtFmlaString(e,r,t){var n=e.l+r,i=parse_XLSBCell(e);i.r=t["!row"];var a=parse_XLWideString(e),s=[i,a,"str"];if(t.cellFormula){e.l+=2;var c=parse_XLSBCellParsedFormula(e,n-e.l,t);s[3]=stringify_formula(c,null,i,t.supbooks,t)}else e.l=n;return s}var parse_BrtMergeCell=parse_UncheckedRfX,write_BrtMergeCell=write_UncheckedRfX;function write_BrtBeginMergeCells(e,r){return r==null&&(r=new_buf(4)),r.write_shift(4,e),r}function parse_BrtHLink(e,r){var t=e.l+r,n=parse_UncheckedRfX(e),i=parse_XLNullableWideString(e),a=parse_XLWideString(e),s=parse_XLWideString(e),c=parse_XLWideString(e);e.l=t;var h={rfx:n,relId:i,loc:a,display:c};return s&&(h.Tooltip=s),h}function write_BrtHLink(e,r){var t=new_buf(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));write_UncheckedRfX({s:decode_cell(e[0]),e:decode_cell(e[0])},t),write_RelID("rId"+r,t);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return write_XLWideString(i||"",t),write_XLWideString(e[1].Tooltip||"",t),write_XLWideString("",t),t.slice(0,t.l)}function parse_BrtPane(){}function parse_BrtArrFmla(e,r,t){var n=e.l+r,i=parse_RfX(e),a=e.read_shift(1),s=[i];if(s[2]=a,t.cellFormula){var c=parse_XLSBArrayParsedFormula(e,n-e.l,t);s[1]=c}else e.l=n;return s}function parse_BrtShrFmla(e,r,t){var n=e.l+r,i=parse_UncheckedRfX(e),a=[i];if(t.cellFormula){var s=parse_XLSBSharedParsedFormula(e,n-e.l,t);a[1]=s,e.l=n}else e.l=n;return a}function write_BrtColInfo(e,r,t){t==null&&(t=new_buf(18));var n=col_obj_w(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var i=0;return r.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),r.level&&(i|=r.level<<8),t.write_shift(2,i),t}var BrtMarginKeys=["left","right","top","bottom","header","footer"];function parse_BrtMargins(e){var r={};return BrtMarginKeys.forEach(function(t){r[t]=parse_Xnum(e)}),r}function write_BrtMargins(e,r){return r==null&&(r=new_buf(6*8)),default_margins(e),BrtMarginKeys.forEach(function(t){write_Xnum(e[t],r)}),r}function parse_BrtBeginWsView(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function write_BrtBeginWsView(e,r,t){t==null&&(t=new_buf(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function write_BrtCellIgnoreEC(e){var r=new_buf(24);return r.write_shift(4,4),r.write_shift(4,1),write_UncheckedRfX(e,r),r}function write_BrtSheetProtection(e,r){return r==null&&(r=new_buf(16*4+2)),r.write_shift(2,e.password?crypto_CreatePasswordVerifier_Method1(e.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function parse_BrtDVal(){}function parse_BrtDVal14(){}function write_ws_bin_cell(e,r,t,n,i,a,s){var c={r:t,c:n};if(r.c&&a["!comments"].push([encode_cell(c),r.c]),r.v===void 0)return!1;var h="";switch(r.t){case"b":h=r.v?"1":"0";break;case"d":r=dup(r),r.z=r.z||table_fmt[14],r.v=datenum(parseDate(r.v)),r.t="n";break;case"n":case"e":h=""+r.v;break;default:h=r.v;break}switch(c.s=get_cell_style(i.cellXfs,r,i),r.l&&a["!links"].push([encode_cell(c),r.l]),r.t){case"s":case"str":return i.bookSST?(h=get_sst_id(i.Strings,r.v==null?"":String(r.v),i.revStrings),c.t="s",c.v=h,s?write_record(e,18,write_BrtShortIsst(r,c)):write_record(e,7,write_BrtCellIsst(r,c))):(c.t="str",s?write_record(e,17,write_BrtShortSt(r,c)):write_record(e,6,write_BrtCellSt(r,c))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?write_record(e,13,write_BrtShortRk(r,c)):write_record(e,2,write_BrtCellRk(r,c)):s?write_record(e,16,write_BrtShortReal(r,c)):write_record(e,5,write_BrtCellReal(r,c)),!0;case"b":return c.t="b",s?write_record(e,15,write_BrtShortBool(r,c)):write_record(e,4,write_BrtCellBool(r,c)),!0;case"e":return c.t="e",s?write_record(e,14,write_BrtShortError(r,c)):write_record(e,3,write_BrtCellError(r,c)),!0}return s?write_record(e,12,write_BrtShortBlank(r,c)):write_record(e,1,write_BrtCellBlank(r,c)),!0}function write_CELLTABLE(e,r,t,n){var i=safe_decode_range(r["!ref"]||"A1"),a,s="",c=[];write_record(e,145);var h=r["!data"]!=null,l=i.e.r;r["!rows"]&&(l=Math.max(i.e.r,r["!rows"].length-1));for(var p=i.s.r;p<=l;++p){s=encode_row(p),write_row_header(e,r,i,p);var b=!1;if(p<=i.e.r)for(var m=i.s.c;m<=i.e.c;++m){p===i.s.r&&(c[m]=encode_col(m)),a=c[m]+s;var A=h?(r["!data"][p]||[])[m]:r[a];if(!A){b=!1;continue}b=write_ws_bin_cell(e,A,p,m,n,r,b)}}write_record(e,146)}function write_MERGECELLS(e,r){!r||!r["!merges"]||(write_record(e,177,write_BrtBeginMergeCells(r["!merges"].length)),r["!merges"].forEach(function(t){write_record(e,176,write_BrtMergeCell(t))}),write_record(e,178))}function write_COLINFOS(e,r){!r||!r["!cols"]||(write_record(e,390),r["!cols"].forEach(function(t,n){t&&write_record(e,60,write_BrtColInfo(n,t))}),write_record(e,391))}function write_IGNOREECS(e,r){!r||!r["!ref"]||(write_record(e,648),write_record(e,649,write_BrtCellIgnoreEC(safe_decode_range(r["!ref"]))),write_record(e,650))}function write_HLINKS(e,r,t){r["!links"].forEach(function(n){if(n[1].Target){var i=add_rels(t,-1,n[1].Target.replace(/#.*$/,""),RELS.HLINK);write_record(e,494,write_BrtHLink(n,i))}}),delete r["!links"]}function write_LEGACYDRAWING(e,r,t,n){if(r["!comments"].length>0){var i=add_rels(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",RELS.VML);write_record(e,551,write_RelID("rId"+i)),r["!legacy"]=i}}function write_AUTOFILTER(e,r,t,n){if(r["!autofilter"]){var i=r["!autofilter"],a=typeof i.ref=="string"?i.ref:encode_range(i.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,c=decode_range(a);c.s.r==c.e.r&&(c.e.r=decode_range(r["!ref"]).e.r,a=encode_range(c));for(var h=0;h<s.length;++h){var l=s[h];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref=formula_quote_sheet_name(t.SheetNames[n])+"!"+fix_range(a);break}}h==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:formula_quote_sheet_name(t.SheetNames[n])+"!"+fix_range(a)}
248),write_record(e,161,write_UncheckedRfX(safe_decode_range(a))),write_record(e,162)}}function write_WSVIEWS2(e,r,t){write_record(e,133),write_record(e,137,write_BrtBeginWsView(r,t)),write_record(e,138),write_record(e,134)}function write_SHEETPROTECT(e,r){r["!protect"]&&write_record(e,535,write_BrtSheetProtection(r["!protect"]))}function write_ws_bin(e,r,t,n){var i=buf_array(),a=t.SheetNames[e],s=t.Sheets[a]||{},c=a;try{t&&t.Workbook&&(c=t.Workbook.Sheets[e].CodeName||c)}catch{}var h=safe_decode_range(s["!ref"]||"A1");if(h.e.c>16383||h.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");h.e.c=Math.min(h.e.c,16383),h.e.r=Math.min(h.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],write_record(i,129),(t.vbaraw||s["!outline"])&&write_record(i,147,write_BrtWsProp(c,s["!outline"])),write_record(i,148,write_BrtWsDim(h)),write_WSVIEWS2(i,s,t.Workbook),write_COLINFOS(i,s),write_CELLTABLE(i,s,e,r),write_SHEETPROTECT(i,s),write_AUTOFILTER(i,s,t,e),write_MERGECELLS(i,s),write_HLINKS(i,s,n),s["!margins"]&&write_record(i,476,write_BrtMargins(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&write_IGNOREECS(i,s),write_LEGACYDRAWING(i,s,e,n),write_record(i,130),i.end()}function parse_BrtCsProp(e,r){e.l+=10;var t=parse_XLWideString(e);return{name:t}}var WBPropsDef=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function safe1904(e){return!e.Workbook||!e.Workbook.WBProps?"false":parsexmlbool(e.Workbook.WBProps.date1904)?"true":"false"}var badchars=":][*?/\\".split("");function check_ws_name(e,r){try{if(e=="")throw new Error("Sheet name cannot be blank");if(e.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(e.charCodeAt(0)==39||e.charCodeAt(e.length-1)==39)throw new Error("Sheet name cannot start or end with apostrophe (')");if(e.toLowerCase()=="history")throw new Error("Sheet name cannot be 'History'");badchars.forEach(function(t){if(e.indexOf(t)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(t){if(r)return!1;throw t}return!0}function check_wb_names(e,r,t){e.forEach(function(n,i){check_ws_name(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(t){var s=r&&r[i]&&r[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function check_wb(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];check_wb_names(e.SheetNames,r,!!e.vbaraw);for(var t=0;t<e.SheetNames.length;++t)check_ws(e.Sheets[e.SheetNames[t]],e.SheetNames[t],t);e.SheetNames.forEach(function(n,i){var a=e.Sheets[n];if(!(!a||!a["!autofilter"])){var s;e.Workbook||(e.Workbook={}),e.Workbook.Names||(e.Workbook.Names=[]),e.Workbook.Names.forEach(function(h){h.Name=="_xlnm._FilterDatabase"&&h.Sheet==i&&(s=h)});var c=formula_quote_sheet_name(n)+"!"+fix_range(a["!autofilter"].ref);s?s.Ref=c:e.Workbook.Names.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:c})}})}function write_wb_xml(e){var r=[XML_HEADER];r[r.length]=writextag("workbook",null,{xmlns:XMLNS_main[0],"xmlns:r":XMLNS.r});var t=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(WBPropsDef.forEach(function(c){e.Workbook.WBProps[c[0]]!=null&&e.Workbook.WBProps[c[0]]!=c[1]&&(n[c[0]]=e.Workbook.WBProps[c[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=writextag("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(r[r.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),r[r.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:escapexml(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}r[r.length]=writextag("sheet",null,s)}return r[r.length]="</sheets>",t&&(r[r.length]="<definedNames>
248",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(c){var h={name:c.Name};c.Comment&&(h.comment=c.Comment),c.Sheet!=null&&(h.localSheetId=""+c.Sheet),c.Hidden&&(h.hidden="1"),c.Ref&&(r[r.length]=writextag("definedName",escapexml(c.Ref),h))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function parse_BrtBundleSh(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=parse_RelID(e),t.name=parse_XLWideString(e),t}function write_BrtBundleSh(e,r){return r||(r=new_buf(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),write_RelID(e.strRelID,r),write_XLWideString(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function parse_BrtWbProp(e,r){var t={},n=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var i=r>8?parse_XLWideString(e):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function write_BrtWbProp(e,r){r||(r=new_buf(72));var t=0;return e&&(e.date1904&&(t|=1),e.filterPrivacy&&(t|=8)),r.write_shift(4,t),r.write_shift(4,0),write_XLSBCodeName(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function parse_BrtName(e,r,t){var n=e.l+r,i=e.read_shift(4);e.l+=1;var a=e.read_shift(4),s=parse_XLNameWideString(e),c=parse_XLSBNameParsedFormula(e,0,t),h=parse_XLNullableWideString(e);i&32&&(s="_xlnm."+s),e.l=n;var l={Name:s,Ptg:c,Flags:i};return a<268435455&&(l.Sheet=a),h&&(l.Comment=h),l}function write_BrtName(e,r){var t=new_buf(9),n=0,i=e.Name;XLSLblBuiltIn.indexOf(i)>-1&&(n|=32,i=i.slice(6)),t.write_shift(4,n),t.write_shift(1,0),t.write_shift(4,e.Sheet==null?4294967295:e.Sheet);var a=[t,write_XLWideString(i),write_XLSBNameParsedFormula(e.Ref,r)];if(e.Comment)a.push(write_XLNullableWideString(e.Comment));else{var s=new_buf(4);s.write_shift(4,4294967295),a.push(s)}return bconcat(a)}function write_BUNDLESHS(e,r){write_record(e,143);for(var t=0;t!=r.SheetNames.length;++t){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,i={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};write_record(e,156,write_BrtBundleSh(i))}write_record(e,144)}function write_BrtFileVersion(e,r){r||(r=new_buf(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return write_XLWideString("SheetJS",r),write_XLWideString(XLSX.version,r),write_XLWideString(XLSX.version,r),write_XLWideString("7262",r),r.length>r.l?r.slice(0,r.l):r}function write_BrtBookView(e,r){r||(r=new_buf(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function write_BOOKVIEWS(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,n=0,i=-1,a=-1;n<t.length;++n)!t[n]||!t[n].Hidden&&i==-1?i=n:t[n].Hidden==1&&a==-1&&(a=n);a>i||(write_record(e,135),write_record(e,158,write_BrtBookView(i)),write_record(e,136))}}function write_BRTNAMES(e,r){!r.Workbook||!r.Workbook.Names||r.Workbook.Names.forEach(function(t){try{if(t.Flags&14)return;write_record(e,39,write_BrtName(t,r))}catch{console.error("Could not serialize defined name "+JSON.stringify(t))}})}function write_SELF_EXTERNS_xlsb(e){var r=e.SheetNames.length,t=new_buf(12*r+28);t.write_shift(4,r+2),t.write_shift(4,0),t.write_shift(4,-2),t.write_shift(4,-2),t.write_shift(4,0),t.write_shift(4,-1),t.write_shift(4,-1);for(var n=0;n<r;++n)t.write_shift(4,0),t.write_shift(4,n),t.write_shift(4,n);return t}function write_EXTERNALS_xlsb(e,r){write_record(e,353),write_record(e,357),write_record(e,362,write_SELF_EXTERNS_xlsb(r)),write_record(e,354)}function write_wb_bin(e,r){var t=buf_array();return write_record(t,131),write_record(t,128,write_BrtFileVersion()),write_record(t,153,write_BrtWbProp(e.Workbook&&e.Workbook.WBProps||null)),write_BOOKVIEWS(t,e),write_BUNDLESHS(t,e),write_EXTERNALS_xlsb(t,e),(e.Workbook||{}).Names&&write_BRTNAMES(t,e),write_record(t,132),t.end()}function write_props_xlml(e,r){var t=[];return e.Props&&t.push(xlml_write_docprops(e.Props,r)),e.Custprops&&t.push(xlml_write_custprops(e.Props,e.Custprops)),t.join("")}function write_wb_xlml(e){return(((e||{}).Workbook||{}).WBProps||{}).date1904?'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"><Date1904/></ExcelWorkbook>':""}function write_sty_xlml(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];
vendor: 5,049 bytes, line 248
248return r.cellXfs.forEach(function(n,i){var a=[];a.push(writextag("NumberFormat",null,{"ss:Format":escapexml(table_fmt[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};t.push(writextag("Style",a.join(""),s))}),writextag("Styles",t.join(""))}function write_name_xlml(e){return writextag("NamedRange",null,{"ss:Name":e.Name.slice(0,6)=="_xlnm."?e.Name.slice(6):e.Name,"ss:RefersTo":"="+a1_to_rc(e.Ref,{r:0,c:0})})}function write_names_xlml(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],n=0;n<r.length;++n){var i=r[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||t.push(write_name_xlml(i)))}return writextag("Names",t.join(""))}function write_ws_xlml_names(e,r,t,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var c=i[s];c.Sheet==t&&(c.Name.match(/^_xlfn\./)||a.push(write_name_xlml(c)))}return a.join("")}function write_ws_xlml_wsopts(e,r,t,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(writextag("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(writextag("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(writextag("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[t])if(n.Workbook.Sheets[t].Hidden)i.push(writextag("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<t&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==t&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(writetag("ProtectContents","True")),e["!protect"].objects&&i.push(writetag("ProtectObjects","True")),e["!protect"].scenarios&&i.push(writetag("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(writetag("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(writetag("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":writextag("WorksheetOptions",i.join(""),{xmlns:XLMLNS.x})}function write_ws_xlml_comment(e){return e.map(function(r){var t=xlml_unfixstr(r.t||""),n=writextag("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return writextag("Comment",n,{"ss:Author":r.a})}).join("")}function write_ws_xlml_cell(e,r,t,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var c={};if(e.f&&(c["ss:Formula"]="="+escapexml(a1_to_rc(e.f,s))),e.F&&e.F.slice(0,r.length)==r){var h=decode_cell(e.F.slice(r.length+1));c["ss:ArrayRange"]="RC:R"+(h.r==s.r?"":"["+(h.r-s.r)+"]")+"C"+(h.c==s.c?"":"["+(h.c-s.c)+"]")}if(e.l&&e.l.Target&&(c["ss:HRef"]=escapexml(e.l.Target),e.l.Tooltip&&(c["x:HRefScreenTip"]=escapexml(e.l.Tooltip))),t["!merges"])for(var l=t["!merges"],p=0;p!=l.length;++p)l[p].s.c!=s.c||l[p].s.r!=s.r||(l[p].e.c>l[p].s.c&&(c["ss:MergeAcross"]=l[p].e.c-l[p].s.c),l[p].e.r>l[p].s.r&&(c["ss:MergeDown"]=l[p].e.r-l[p].s.r));var b="",m="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":b="Number",m=String(e.v);break;case"b":b="Boolean",m=e.v?"1":"0";break;case"e":b="Error",m=BErr[e.v];break;case"d":b="DateTime",m=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||table_fmt[14]);break;case"s":b="String",m=escapexlml(e.v||"");break}var A=get_cell_style(n.cellXfs,e,n);c["ss:StyleID"]="s"+(21+A),c["ss:Index"]=s.c+1;var L=e.v!=null?m:"",k=e.t=="z"?"":'<Data ss:Type="'+b+'">'+L+"</Data>";return(e.c||[]).length>0&&(k+=write_ws_xlml_comment(e.c)),writextag("Cell",k,c)}function write_ws_xlml_row(e,r){var t='<Row ss:Index="'+(e+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=pt2px(r.hpt)),r.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(t+=' ss:Hidden="1"')),t+">"}function write_ws_xlml_table(e,r,t,n){if(!e["!ref"])return"";var i=safe_decode_range(e["!ref"]),a=e["!merges"]||[],s=0,c=[];e["!cols"]&&e["!cols"].forEach(function(T,S){process_col(T);var M=!!T.width,H=col_obj_w(S,T),te={"ss:Index":S+1};M&&(te["ss:Width"]=width2px(H.width)),T.hidden&&(te["ss:Hidden"]="1"),c.push(writextag("Column",null,te))});for(var h=e["!data"]!=null,l=i.s.r;l<=i.e.r;++l){for(var p=[write_ws_xlml_row(l,(e["!rows"]||[])[l])],b=i.s.c;b<=i.e.c;++b){var m=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>b)&&!(a[s].s.r>l)&&!(a[s].e.c<b)&&!(a[s].e.r<l)){(a[s].s.c!=b||a[s].s.r!=l)&&(m=!0);break}if(!m){var A={r:l,c:b},L=encode_col(b)+encode_row(l),k=h?(e["!data"][l]||[])[b]:e[L];p.push(write_ws_xlml_cell(k,L,e,r,t,n,A))}}
vendor: 4,142 bytes, line 248
248p.push("</Row>"),p.length>2&&c.push(p.join(""))}return c.join("")}function write_ws_xlml(e,r,t){var n=[],i=t.SheetNames[e],a=t.Sheets[i],s=a?write_ws_xlml_names(a,r,e,t):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?write_ws_xlml_table(a,r,e,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(write_ws_xlml_wsopts(a,r,e,t)),a["!autofilter"]&&n.push('<AutoFilter x:Range="'+a1_to_rc(fix_range(a["!autofilter"].ref),{r:0,c:0})+'" xmlns="urn:schemas-microsoft-com:office:excel"></AutoFilter>'),n.join("")}function write_xlml(e,r){r||(r={}),e.SSF||(e.SSF=dup(table_fmt)),e.SSF&&(make_ssf(),SSF_load_table(e.SSF),r.revssf=evert_num(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],get_cell_style(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(write_props_xlml(e,r)),t.push(write_wb_xlml(e)),t.push(""),t.push("");for(var n=0;n<e.SheetNames.length;++n)t.push(writextag("Worksheet",write_ws_xlml(n,r,e),{"ss:Name":escapexml(e.SheetNames[n])}));return t[2]=write_sty_xlml(e,r),t[3]=write_names_xlml(e),XML_HEADER+writextag("Workbook",t.join(""),{xmlns:XLMLNS.ss,"xmlns:o":XLMLNS.o,"xmlns:x":XLMLNS.x,"xmlns:ss":XLMLNS.ss,"xmlns:dt":XLMLNS.dt,"xmlns:html":XLMLNS.html})}var PSCLSID={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function write_xls_props(e,r){var t=[],n=[],i=[],a=0,s,c=evert_key(DocSummaryPIDDSI,"n"),h=evert_key(SummaryPIDSI,"n");if(e.Props)for(s=keys(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(c,s[a])?t:Object.prototype.hasOwnProperty.call(h,s[a])?n:i).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=keys(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(c,s[a])?t:Object.prototype.hasOwnProperty.call(h,s[a])?n:i).push([s[a],e.Custprops[s[a]]]);var l=[];for(a=0;a<i.length;++a)XLSPSSkip.indexOf(i[a][0])>-1||PseudoPropsPairs.indexOf(i[a][0])>-1||i[a][1]!=null&&l.push(i[a]);n.length&&CFB.utils.cfb_add(r,"/�SummaryInformation",write_PropertySetStream(n,PSCLSID.SI,h,SummaryPIDSI)),(t.length||l.length)&&CFB.utils.cfb_add(r,"/�DocumentSummaryInformation",write_PropertySetStream(t,PSCLSID.DSI,c,DocSummaryPIDDSI,l.length?l:null,PSCLSID.UDI))}function write_xlscfb(e,r){var t=r||{},n=CFB.utils.cfb_new({root:"R"}),i="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":i="/Workbook",t.biff=8;break;case"biff5":i="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return CFB.utils.cfb_add(n,i,write_biff_buf(e,t)),t.biff==8&&(e.Props||e.Custprops)&&write_xls_props(e,n),t.biff==8&&e.vbaraw&&fill_vba_xls(n,CFB.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var XLSBRecordEnum={0:{f:parse_BrtRowHdr},1:{f:parse_BrtCellBlank},2:{f:parse_BrtCellRk},3:{f:parse_BrtCellError},4:{f:parse_BrtCellBool},5:{f:parse_BrtCellReal},6:{f:parse_BrtCellSt},7:{f:parse_BrtCellIsst},8:{f:parse_BrtFmlaString},9:{f:parse_BrtFmlaNum},10:{f:parse_BrtFmlaBool},11:{f:parse_BrtFmlaError},12:{f:parse_BrtShortBlank},13:{f:parse_BrtShortRk},14:{f:parse_BrtShortError},15:{f:parse_BrtShortBool},16:{f:parse_BrtShortReal},17:{f:parse_BrtShortSt},18:{f:parse_BrtShortIsst},19:{f:parse_RichStr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:parse_BrtName},40:{},42:{},43:{f:parse_BrtFont},44:{f:parse_BrtFmt},45:{f:parse_BrtFill},46:{f:parse_BrtBorder},47:{f:parse_BrtXF},48:{},49:{f:parse_Int32LE},50:{},51:{f:parse_BrtMdb},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:parse_ColInfo},62:{f:parse_BrtCellRString},63:{f:parse_BrtCalcChainItem$},64:{f:parse_BrtDVal},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:parsenoop,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:parse_BrtBeginWsView},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:parse_BrtWsProp},148:{f:parse_BrtWsDim,p:16},151:{f:parse_BrtPane},152:{}
vendor: 10,281 bytes, line 248
248,153:{f:parse_BrtWbProp},154:{},155:{},156:{f:parse_BrtBundleSh},157:{},158:{},159:{T:1,f:parse_BrtBeginSst},160:{T:-1},161:{T:1,f:parse_UncheckedRfX},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:parse_BrtMergeCell},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:parse_BrtMdtinfo},336:{T:-1},337:{f:parse_BrtBeginEsmdb,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:parse_RelID},357:{},358:{},359:{},360:{T:1},361:{},362:{f:parse_ExternSheet},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:parse_BrtArrFmla},427:{f:parse_BrtShrFmla},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:parse_BrtMargins},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:parse_BrtWsFmtInfo},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:parse_BrtHLink},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:parse_RelID},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:parse_BrtCommentAuthor},633:{T:1},634:{T:-1},635:{T:1,f:parse_BrtBeginComment},636:{T:-1},637:{f:parse_BrtCommentText},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:parse_BrtCsProp},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:parse_BrtDVal14},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function write_biff_rec(e,r,t,n){var i=r;if(!isNaN(i)){var a=n||(t||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&is_buf(t)&&e.push(t)}}function write_biff_continue(e,r,t,n){var i=n||(t||[]).length||0;if(i<=8224)return write_biff_rec(e,r,t,i);var a=r;if(!isNaN(a)){for(var s=t.parts||[],c=0,h=0,l=0;l+(s[c]||8224)<=8224;)l+=s[c]||8224,c++;var p=e.next(4);for(p.write_shift(2,a),p.write_shift(2,l),e.push(t.slice(h,h+l)),h+=l;h<i;){for(p=e.next(4),p.write_shift(2,60),l=0;l+(s[c]||8224)<=8224;)l+=s[c]||8224,c++;p.write_shift(2,l),e.push(t.slice(h,h+l)),h+=l}}}function write_BIFF2Cell(e,r,t){return e||(e=new_buf(7)),e.write_shift(2,r),e.write_shift(2,t),e.write_shift(2,0),e.write_shift(1,0),e}function write_BIFF2BERR(e,r,t,n){var i=new_buf(9);return write_BIFF2Cell(i,e,r),write_Bes(t,n||"b",i),i}function write_BIFF2LABEL(e,r,t){var n=new_buf(8+2*t.length);return write_BIFF2Cell(n,e,r),n.write_shift(1,t.length),n.write_shift(t.length,t,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function write_ws_biff2_cell(e,r,t,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?datenum(parseDate(r.v)):r.v;i==(i|0)&&i>=0&&i<65536?write_biff_rec(e,2,write_BIFF2INT(t,n,i)):write_biff_rec(e,3,write_BIFF2NUM(t,n,i));return;case"b":case"e":write_biff_rec(e,5,write_BIFF2BERR(t,n,r.v,r.t));return;case"s":case"str":write_biff_rec(e,4,write_BIFF2LABEL(t,n,r.v==null?"":String(r.v).slice(0,255)));return}write_biff_rec(e,1,write_BIFF2Cell(null,t,n))}function write_ws_biff2(e,r,t,n){var i=r["!data"]!=null,a=safe_decode_range(r["!ref"]||"A1"),s="",c=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383)}for(var h=[],l=a.s.c;l<=a.e.c;++l)c[l]=encode_col(l);for(var p=a.s.r;p<=a.e.r;++p)for(i&&(h=r["!data"][p]||[]),s=encode_row(p),l=a.s.c;l<=a.e.c;++l){var b=i?h[l]:r[c[l]+s];b&&write_ws_biff2_cell(e,b,p,l)}}function write_biff2_buf(e,r){for(var t=r||{},n=buf_array(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==t.sheet&&(i=a);if(i==0&&t.sheet&&e.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return write_biff_rec(n,t.biff==4?1033:t.biff==3?521:9,write_BOF(e,16,t)),write_ws_biff2(n,e.Sheets[e.SheetNames[i]],i,t),write_biff_rec(n,10),n.end()}
248function write_FONTS_biff8(e,r,t){write_biff_rec(e,49,write_Font({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}function write_FMTS_biff8(e,r,t){r&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&write_biff_rec(e,1054,write_Format(i,r[i],t))})}function write_FEAT(e,r){var t=new_buf(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),write_biff_rec(e,2151,t),t=new_buf(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),write_Ref8U(safe_decode_range(r["!ref"]||"A1"),t),t.write_shift(4,4),write_biff_rec(e,2152,t)}function write_CELLXFS_biff8(e,r){for(var t=0;t<16;++t)write_biff_rec(e,224,write_XF({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){write_biff_rec(e,224,write_XF(n,0,r))})}function write_ws_biff8_hlinks(e,r){for(var t=0;t<r["!links"].length;++t){var n=r["!links"][t];write_biff_rec(e,440,write_HLink(n)),n[1].Tooltip&&write_biff_rec(e,2048,write_HLinkTooltip(n))}delete r["!links"]}function write_ws_cols_biff8(e,r){if(r){var t=0;r.forEach(function(n,i){++t<=256&&n&&write_biff_rec(e,125,write_ColInfo(col_obj_w(i,n),i))})}}function write_ws_biff8_cell(e,r,t,n,i){var a=16+get_cell_style(i.cellXfs,r,i);if(r.v==null&&!r.bf){write_biff_rec(e,513,write_XLSCell(t,n,a));return}if(r.bf)write_biff_rec(e,6,write_Formula(r,t,n,i,a));else switch(r.t){case"d":case"n":var s=r.t=="d"?datenum(parseDate(r.v)):r.v;write_biff_rec(e,515,write_Number(t,n,s,a));break;case"b":case"e":write_biff_rec(e,517,write_BoolErr(t,n,r.v,a,i,r.t));break;case"s":case"str":if(i.bookSST){var c=get_sst_id(i.Strings,r.v==null?"":String(r.v),i.revStrings);write_biff_rec(e,253,write_LabelSst(t,n,c,a))}else write_biff_rec(e,516,write_Label(t,n,(r.v==null?"":String(r.v)).slice(0,255),a,i));break;default:write_biff_rec(e,513,write_XLSCell(t,n,a))}}function write_ws_biff8(e,r,t){var n=buf_array(),i=t.SheetNames[e],a=t.Sheets[i]||{},s=(t||{}).Workbook||{},c=(s.Sheets||[])[e]||{},h=a["!data"]!=null,l=r.biff==8,p,b="",m=[],A=safe_decode_range(a["!ref"]||"A1"),L=l?65536:16384;if(A.e.c>255||A.e.r>=L){if(r.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");A.e.c=Math.min(A.e.c,255),A.e.r=Math.min(A.e.c,L-1)}write_biff_rec(n,2057,write_BOF(t,16,r)),write_biff_rec(n,13,writeuint16(1)),write_biff_rec(n,12,writeuint16(100)),write_biff_rec(n,15,writebool(!0)),write_biff_rec(n,17,writebool(!1)),write_biff_rec(n,16,write_Xnum(.001)),write_biff_rec(n,95,writebool(!0)),write_biff_rec(n,42,writebool(!1)),write_biff_rec(n,43,writebool(!1)),write_biff_rec(n,130,writeuint16(1)),write_biff_rec(n,128,write_Guts([0,0])),write_biff_rec(n,131,writebool(!1)),write_biff_rec(n,132,writebool(!1)),l&&write_ws_cols_biff8(n,a["!cols"]),write_biff_rec(n,512,write_Dimensions(A,r)),l&&(a["!links"]=[]);for(var k=[],T=[],S=A.s.c;S<=A.e.c;++S)m[S]=encode_col(S);for(var M=A.s.r;M<=A.e.r;++M)for(h&&(T=a["!data"][M]||[]),b=encode_row(M),S=A.s.c;S<=A.e.c;++S){p=m[S]+b;var H=h?T[S]:a[p];H&&(write_ws_biff8_cell(n,H,M,S,r),l&&H.l&&a["!links"].push([p,H.l]),l&&H.c&&k.push([p,H.c]))}var te=c.CodeName||c.name||i;return l&&write_biff_rec(n,574,write_Window2((s.Views||[])[0])),l&&(a["!merges"]||[]).length&&write_biff_rec(n,229,write_MergeCells(a["!merges"])),l&&write_ws_biff8_hlinks(n,a),write_biff_rec(n,442,write_XLUnicodeString(te)),l&&write_FEAT(n,a),write_biff_rec(n,10),n.end()}function write_biff8_global(e,r,t){var n=buf_array(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},c=t.biff==8,h=t.biff==5;if(write_biff_rec(n,2057,write_BOF(e,5,t)),t.bookType=="xla"&&write_biff_rec(n,135),write_biff_rec(n,225,c?writeuint16(1200):null),write_biff_rec(n,193,writezeroes(2)),h&&write_biff_rec(n,191),h&&write_biff_rec(n,192),write_biff_rec(n,226),write_biff_rec(n,92,write_WriteAccess("SheetJS",t)),write_biff_rec(n,66,writeuint16(c?1200:1252)),c&&write_biff_rec(n,353,writeuint16(0)),c&&write_biff_rec(n,448),write_biff_rec(n,317,write_RRTabId(e.SheetNames.length)),c&&e.vbaraw&&write_biff_rec(n,211),c&&e.vbaraw){var l=s.CodeName||"ThisWorkbook";write_biff_rec(n,442,write_XLUnicodeString(l))}write_biff_rec(n,156,writeuint16(17)),write_biff_rec(n,25,writebool(!1)),write_biff_rec(n,18,writebool(!1)),write_biff_rec(n,19,writeuint16(0)),c&&write_biff_rec(n,431,writebool(!1)),c&&write_biff_rec(n,444,writeuint16(0)),write_biff_rec(n,61,write_Window1()),write_biff_rec(n,64,writebool(!1)),write_biff_rec(n,141,writeuint16(0)),write_biff_rec(n,34,writebool(safe1904(e)=="true")),write_biff_rec(n,14,writebool(!0)),c&&write_biff_rec(n,439,writebool(!1)),write_biff_rec(n,218,writeuint16(0)),write_FONTS_biff8
vendor: 4,494 bytes, line 248
248(n,e,t),write_FMTS_biff8(n,e.SSF,t),write_CELLXFS_biff8(n,t),c&&write_biff_rec(n,352,writebool(!1));var p=n.end(),b=buf_array();c&&write_biff_rec(b,140,write_Country()),c&&t.Strings&&write_biff_continue(b,252,write_SST(t.Strings)),write_biff_rec(b,10);var m=b.end(),A=buf_array(),L=0,k=0;for(k=0;k<e.SheetNames.length;++k)L+=(c?12:11)+(c?2:1)*e.SheetNames[k].length;var T=p.length+L+m.length;for(k=0;k<e.SheetNames.length;++k){var S=a[k]||{};write_biff_rec(A,133,write_BoundSheet8({pos:T,hs:S.Hidden||0,dt:0,name:e.SheetNames[k]},t)),T+=r[k].length}var M=A.end();if(L!=M.length)throw new Error("BS8 "+L+" != "+M.length);var H=[];return p.length&&H.push(p),M.length&&H.push(M),m.length&&H.push(m),bconcat(H)}function write_biff8_buf(e,r){var t=r||{},n=[];e&&!e.SSF&&(e.SSF=dup(table_fmt)),e&&e.SSF&&(make_ssf(),SSF_load_table(e.SSF),t.revssf=evert_num(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,fix_write_opts(t),t.cellXfs=[],get_cell_style(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=write_ws_biff8(i,t,e);return n.unshift(write_biff8_global(e,n,t)),bconcat(n)}function write_biff_buf(e,r){for(var t=0;t<=e.SheetNames.length;++t){var n=e.Sheets[e.SheetNames[t]];if(!(!n||!n["!ref"])){var i=decode_range(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var a=r||{};switch(a.biff||2){case 8:case 5:return write_biff8_buf(e,r);case 4:case 3:case 2:return write_biff2_buf(e,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function make_html_row(e,r,t,n){for(var i=e["!merges"]||[],a=[],s={},c=e["!data"]!=null,h=r.s.c;h<=r.e.c;++h){for(var l=0,p=0,b=0;b<i.length;++b)if(!(i[b].s.r>t||i[b].s.c>h)&&!(i[b].e.r<t||i[b].e.c<h)){if(i[b].s.r<t||i[b].s.c<h){l=-1;break}l=i[b].e.r-i[b].s.r+1,p=i[b].e.c-i[b].s.c+1;break}if(!(l<0)){var m=encode_col(h)+encode_row(t),A=c?(e["!data"][t]||[])[h]:e[m],L=A&&A.v!=null&&(A.h||escapehtml(A.w||(format_cell(A),A.w)||""))||"";s={},l>1&&(s.rowspan=l),p>1&&(s.colspan=p),n.editable?L='<span contenteditable="true">'+L+"</span>":A&&(s["data-t"]=A&&A.t||"z",A.v!=null&&(s["data-v"]=A.v),A.z!=null&&(s["data-z"]=A.z),A.l&&(A.l.Target||"#").charAt(0)!="#"&&(L='<a href="'+escapehtml(A.l.Target)+'">'+L+"</a>")),s.id=(n.id||"sjs")+"-"+m,a.push(writextag("td",L,s))}}var k="<tr>";return k+a.join("")+"</tr>"}var HTML_BEGIN='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',HTML_END="</body></html>";function make_html_preamble(e,r,t){var n=[];return n.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function sheet_to_html(e,r){var t=r||{},n=t.header!=null?t.header:HTML_BEGIN,i=t.footer!=null?t.footer:HTML_END,a=[n],s=decode_range(e["!ref"]);a.push(make_html_preamble(e,s,t));for(var c=s.s.r;c<=s.e.r;++c)a.push(make_html_row(e,s,c,t));return a.push("</table>"+i),a.join("")}function sheet_add_dom(e,r,t){var n=r.rows;if(!n)throw"Unsupported origin when "+r.tagName+" is not a TABLE";var i=t||{},a=e["!data"]!=null,s=0,c=0;if(i.origin!=null)if(typeof i.origin=="number")s=i.origin;else{var h=typeof i.origin=="string"?decode_cell(i.origin):i.origin;s=h.r,c=h.c}var l=Math.min(i.sheetRows||1e7,n.length),p={s:{r:0,c:0},e:{r:s,c}};if(e["!ref"]){var b=decode_range(e["!ref"]);p.s.r=Math.min(p.s.r,b.s.r),p.s.c=Math.min(p.s.c,b.s.c),p.e.r=Math.max(p.e.r,b.e.r),p.e.c=Math.max(p.e.c,b.e.c),s==-1&&(p.e.r=s=b.e.r+1)}var m=[],A=0,L=e["!rows"]||(e["!rows"]=[]),k=0,T=0,S=0,M=0,H=0,te=0;for(e["!cols"]||(e["!cols"]=[]);k<n.length&&T<l;++k){var Ie=n[k];if(is_dom_element_hidden(Ie)){if(i.display)continue;L[T]={hidden:!0}}var we=Ie.cells;for(S=M=0;S<we.length;++S){var _=we[S];if(!(i.display&&is_dom_element_hidden(_))){var oe=_.hasAttribute("data-v")?_.getAttribute("data-v"):_.hasAttribute("v")?_.getAttribute("v"):htmldecode(_.innerHTML),ee=_.getAttribute("data-z")||_.getAttribute("z");for(A=0;A<m.length;++A){var Ee=m[A];Ee.s.c==M+c&&Ee.s.r<T+s&&T+s<=Ee.e.r&&(M=Ee.e.c+1-c,A=-1)}te=+_.getAttribute("colspan")||1,((H=+_.getAttribute("rowspan")||1)>1||te>1)&&m.push({s:{r:T+s,c:M+c},e:{r:T+s+(H||1)-1,c:M+c+(te||1)-1}});var Le={t:"s",v:oe},Pe=_.getAttribute("data-t")||_.getAttribute("t")||"";oe!=null&&(oe.length==0?Le.t=Pe||"z":i.raw||oe.trim().length==0||Pe=="s"||(oe==="TRUE"?Le={t:"b",v:!0}:oe==="FALSE"?Le={t:"b",v:!1}:isNaN(fuzzynum(oe))?isNaN(fuzzydate(oe).getDate())||(Le={t:"d",v:parseDate(oe)}
248,i.cellDates||(Le={t:"n",v:datenum(Le.v)}),Le.z=i.dateNF||table_fmt[14]):Le={t:"n",v:fuzzynum(oe)})),Le.z===void 0&&ee!=null&&(Le.z=ee);var $e="",Ze=_.getElementsByTagName("A");if(Ze&&Ze.length)for(var je=0;je<Ze.length&&!(Ze[je].hasAttribute("href")&&($e=Ze[je].getAttribute("href"),$e.charAt(0)!="#"));++je);$e&&$e.charAt(0)!="#"&&$e.slice(0,11).toLowerCase()!="javascript:"&&(Le.l={Target:$e}),a?(e["!data"][T+s]||(e["!data"][T+s]=[]),e["!data"][T+s][M+c]=Le):e[encode_cell({c:M+c,r:T+s})]=Le,p.e.c<M+c&&(p.e.c=M+c),M+=te}}++T}return m.length&&(e["!merges"]=(e["!merges"]||[]).concat(m)),p.e.r=Math.max(p.e.r,T-1+s),e["!ref"]=encode_range(p),T>=l&&(e["!fullref"]=encode_range((p.e.r=n.length-k+T-1+s,p))),e}function parse_dom_table(e,r){var t=r||{},n={};return t.dense&&(n["!data"]=[]),sheet_add_dom(n,e,r)}function table_to_book(e,r){var t=sheet_to_workbook(parse_dom_table(e,r),r);return t}function is_dom_element_hidden(e){var r="",t=get_get_computed_style_function(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function get_get_computed_style_function(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var write_styles_ods=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+wxt_helper({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return XML_HEADER+r}}();function write_number_format_ods(e,r){var t="number",n="",i={"style:name":r},a="",s=0;e=e.replace(/"[$]"/g,"$");e:{if(e.indexOf(";")>-1&&(console.error("Unsupported ODS Style Map exported. Using first branch of "+e),e=e.slice(0,e.indexOf(";"))),e=="@"){t="text",n="<number:text-content/>";break e}if(e.indexOf(/\$/)>-1&&(t="currency"),e[s]=='"'){for(a="";e[++s]!='"'||e[++s]=='"';)a+=e[s];--s,e[s+1]=="*"?(s++,n+="<number:fill-character>"+escapexml(a.replace(/""/g,'"'))+"</number:fill-character>"):n+="<number:text>"+escapexml(a.replace(/""/g,'"'))+"</number:text>",e=e.slice(s+1),s=0}var c=e.match(/# (\?+)\/(\?+)/);if(c){n+=writextag("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":c[1].length,"number:max-denominator-value":Math.max(+c[1].replace(/./g,"9"),+c[2].replace(/./g,"9"))});break e}if(c=e.match(/# (\?+)\/(\d+)/)){n+=writextag("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":c[1].length,"number:denominator-value":+c[2]});break e}if(c=e.match(/(\d+)(|\.\d+)%/)){t="percentage",n+=writextag("number:number",null,{"number:decimal-places":c[2]&&c.length-1||0,"number:min-decimal-places":c[2]&&c.length-1||0,"number:min-integer-digits":c[1].length})+"<number:text>%</number:text>";break e}var h=!1;if(["y","m","d"].indexOf(e[0])>-1){t="date";t:for(;s<e.length;++s)switch(a=e[s].toLowerCase()){case"h":case"s":h=!0,--s;break t;case"m":r:for(var l=s+1;l<e.length;++l)switch(e[l]){case"y":case"d":break r;case"h":case"s":h=!0,--s;break t}case"y":case"d":for(;(e[++s]||"").toLowerCase()==a[0];)a+=a[0];switch(--s,a){case"y":case"yy":n+="<number:year/>";break;case"yyy":case"yyyy":n+='<number:year number:style="long"/>';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":n+='<number:month number:style="'+(a.length%2?"short":"long")+'" number:textual="'+(a.length>=3?"true":"false")+'"/>';break;case"d":case"dd":n+='<number:day number:style="'+(a.length%2?"short":"long")+'"/>';break;case"ddd":case"dddd":n+='<number:day-of-week number:style="'+(a.length%2?"short":"long")+'"/>';break}break;case'"':for(;e[++s]!='"'||e[++s]=='"';)a+=e[s];--s,n+="<number:text>"+escapexml(a.slice(1).replace(/""/g,'"'))+"</number:text>";break;case"/":n+="<number:text>"+escapexml(a)+"</number:text>";break;default:console.error("unrecognized character "+a+" in ODF format "+e)}if(!h)break e;e=e.slice(s+1),s=0}if(e.match(/^\[?[hms]/)){for(t=="number"&&(t="time"),e.match(/\[/)&&(e=e.replace(/[\[\]]/g,""),i["number:truncate-on-overflow"]="false");s<e.length;++s)switch(a=e[s].toLowerCase()){case"h":case"m":case"s":for(;(e[++s]||"").toLowerCase()==a[0];)a+=a[0];switch(--s,a){case"h":case"hh":n+='<number:hours number:style="'+(a.length%2?"short":"long")+'"/>';break;case"m":case"mm":n+='<number:minutes number:style="'+(a.length%2?"short":"long")+'"/>';break;case"s":case"ss":if(e[s+1]==".")do a+=e[s+1],++s;while(e[s+1]=="0");n+='<number:seconds number:style="'+(a.match("ss")?"long":"short")+'"'+(a.match(/\./)?' number:decimal-places="'+(a.match(/0+/)||[""])[0].length+'"':"")+"/>";break}break;case'"':for(;e[++s]!='"'||e[++s]=='"';)a+=e[s];--s,n+="<number:text>"+escapexml(a.slice(1).replace(/""/g,'"'))+"</number:text>";break;case"/":n+="<number:text>"+escapexml(a)+"</number:text>";break;case"a":if(e.slice(s,s+3).toLowerCase()=="a/p"){n+="<number:am-pm/>",s+=2;break}
248if(e.slice(s,s+5).toLowerCase()=="am/pm"){n+="<number:am-pm/>",s+=4;break}default:console.error("unrecognized character "+a+" in ODF format "+e)}break e}if(e.indexOf(/\$/)>-1&&(t="currency"),e[0]=="$"&&(n+='<number:currency-symbol number:language="en" number:country="US">$</number:currency-symbol>',e=e.slice(1),s=0),s=0,e[s]=='"'){for(;e[++s]!='"'||e[++s]=='"';)a+=e[s];--s,e[s+1]=="*"?(s++,n+="<number:fill-character>"+escapexml(a.replace(/""/g,'"'))+"</number:fill-character>"):n+="<number:text>"+escapexml(a.replace(/""/g,'"'))+"</number:text>",e=e.slice(s+1),s=0}var p=e.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(!p||!p[0])console.error("Could not find numeric part of "+e);else{var b=p[1].replace(/,/g,"");n+="<number:"+(p[3]?"scientific-":"")+'number number:min-integer-digits="'+(b.indexOf("0")==-1?"0":b.length-b.indexOf("0"))+'"'+(p[0].indexOf(",")>-1?' number:grouping="true"':"")+(p[2]&&' number:decimal-places="'+(p[2].length-1)+'"'||' number:decimal-places="0"')+(p[3]&&p[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(p[3]?' number:min-exponent-digits="'+p[3].match(/0+/)[0].length+'"':"")+"></number:"+(p[3]?"scientific-":"")+"number>",s=p.index+p[0].length}if(e[s]=='"'){for(a="";e[++s]!='"'||e[++s]=='"';)a+=e[s];--s,n+="<number:text>"+escapexml(a.replace(/""/g,'"'))+"</number:text>"}}return n?writextag("number:"+t+"-style",n,i):(console.error("Could not generate ODS number format for |"+e+"|"),"")}function write_names_ods(e,r,t){var n=e.filter(function(i){return i.Sheet==(t==-1?null:t)});return n.length?` <table:named-expressions> 249`+n.map(function(i){var a=csf_to_ods_3D(i.Ref);return" "+writextag("table:named-range",null,{"table:name":i.Name,"table:cell-range-address":a,"table:base-cell-address":a.replace(/[\.]?[^\.]*$/,".$A$1")})}).join(` 250`)+` 251 </table:named-expressions> 252`:""}var write_content_ods=function(){var e=function(a){return escapexml(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r=` <table:table-cell /> 253`,t=` <table:covered-table-cell/> 254`,n=function(a,s,c,h,l){var p=[];p.push(' <table:table table:name="'+escapexml(s.SheetNames[c])+`" table:style-name="ta1"> 255`);var b=0,m=0,A=decode_range(a["!ref"]||"A1"),L=a["!merges"]||[],k=0,T=a["!data"]!=null;if(a["!cols"])for(m=0;m<=A.e.c;++m)p.push(" <table:table-column"+(a["!cols"][m]?' table:style-name="co'+a["!cols"][m].ods+'"':"")+`></table:table-column> 256`);var S="",M=a["!rows"]||[];for(b=0;b<A.s.r;++b)S=M[b]?' table:style-name="ro'+M[b].ods+'"':"",p.push(" <table:table-row"+S+`></table:table-row> 257`);for(;b<=A.e.r;++b){for(S=M[b]?' table:style-name="ro'+M[b].ods+'"':"",p.push(" <table:table-row"+S+`> 258`),m=0;m<A.s.c;++m)p.push(r);for(;m<=A.e.c;++m){var H=!1,te={},Ie="";for(k=0;k!=L.length;++k)if(!(L[k].s.c>m)&&!(L[k].s.r>b)&&!(L[k].e.c<m)&&!(L[k].e.r<b)){(L[k].s.c!=m||L[k].s.r!=b)&&(H=!0),te["table:number-columns-spanned"]=L[k].e.c-L[k].s.c+1,te["table:number-rows-spanned"]=L[k].e.r-L[k].s.r+1;break}if(H){p.push(t);continue}var we=encode_cell({r:b,c:m}),_=T?(a["!data"][b]||[])[m]:a[we];if(_&&_.f&&(te["table:formula"]=escapexml(csf_to_ods_formula(_.f)),_.F&&_.F.slice(0,we.length)==we)){var oe=decode_range(_.F);te["table:number-matrix-columns-spanned"]=oe.e.c-oe.s.c+1,te["table:number-matrix-rows-spanned"]=oe.e.r-oe.s.r+1}if(!_){p.push(r);continue}switch(_.t){case"b":Ie=_.v?"TRUE":"FALSE",te["office:value-type"]="boolean",te["office:boolean-value"]=_.v?"true":"false";break;case"n":Ie=_.w||String(_.v||0),te["office:value-type"]="float",te["office:value"]=_.v||0;break;case"s":case"str":Ie=_.v==null?"":_.v,te["office:value-type"]="string";break;case"d":Ie=_.w||parseDate(_.v).toISOString(),te["office:value-type"]="date",te["office:date-value"]=parseDate(_.v).toISOString(),te["table:style-name"]="ce1";break;default:p.push(r);continue}var ee=e(Ie);if(_.l&&_.l.Target){var Ee=_.l.Target;Ee=Ee.charAt(0)=="#"?"#"+csf_to_ods_3D(Ee.slice(1)):Ee,Ee.charAt(0)!="#"&&!Ee.match(/^\w+:/)&&(Ee="../"+Ee),ee=writextag("text:a",ee,{"xlink:href":Ee.replace(/&/g,"&")})}l[_.z]&&(te["table:style-name"]="ce"+l[_.z].slice(1)),p.push(" "+writextag("table:table-cell",writextag("text:p",ee,{}),te)+` 259`)}p.push(` </table:table-row> 260`)}return(s.Workbook||{}).Names&&p.push(write_names_ods(s.Workbook.Names,s.SheetNames,c)),p.push(` </table:table> 261`),p.join("")},i=function(a,s){a.push(` <office:automatic-styles> 262`);var c=0;s.SheetNames.map(function(b){return s.Sheets[b]}
262).forEach(function(b){if(b&&b["!cols"]){for(var m=0;m<b["!cols"].length;++m)if(b["!cols"][m]){var A=b["!cols"][m];if(A.width==null&&A.wpx==null&&A.wch==null)continue;process_col(A),A.ods=c;var L=b["!cols"][m].wpx+"px";a.push(' <style:style style:name="co'+c+`" style:family="table-column"> 263`),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+L+`"/> 264`),a.push(` </style:style> 265`),++c}}});var h=0;s.SheetNames.map(function(b){return s.Sheets[b]}).forEach(function(b){if(b&&b["!rows"]){for(var m=0;m<b["!rows"].length;++m)if(b["!rows"][m]){b["!rows"][m].ods=h;var A=b["!rows"][m].hpx+"px";a.push(' <style:style style:name="ro'+h+`" style:family="table-row"> 266`),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+A+`"/> 267`),a.push(` </style:style> 268`),++h}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1"> 269`),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/> 270`),a.push(` </style:style> 271`),a.push(` <number:date-style style:name="N37" number:automatic-order="true"> 272`),a.push(` <number:month number:style="long"/> 273`),a.push(` <number:text>/</number:text> 274`),a.push(` <number:day number:style="long"/> 275`),a.push(` <number:text>/</number:text> 276`),a.push(` <number:year/> 277`),a.push(` </number:date-style> 278`);var l={},p=69;return s.SheetNames.map(function(b){return s.Sheets[b]}).forEach(function(b){if(b)for(var m=b["!data"]!=null,A=decode_range(b["!ref"]),L=0;L<=A.e.r;++L)for(var k=0;k<=A.e.c;++k){var T=m?(b["!data"][L]||[])[k]:b[encode_cell({r:L,c:k})];if(!(!T||!T.z||T.z.toLowerCase()=="general")&&!l[T.z]){var S=write_number_format_ods(T.z,"N"+p);S&&(l[T.z]="N"+p,++p,a.push(S+` 279`))}}}),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/> 280`),keys(l).forEach(function(b){a.push('<style:style style:name="ce'+l[b].slice(1)+'" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="'+l[b]+`"/> 281`)}),a.push(` </office:automatic-styles> 282`),l};return function(s,c){var h=[XML_HEADER],l=wxt_helper({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),p=wxt_helper({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(h.push("<office:document"+l+p+`>
283`),h.push(write_meta_ods().replace(/<office:document-meta.*?>/,"").replace(/<\/office:document-meta>/,"")+` 284`)):h.push("<office:document-content"+l+`> 285`);var b=i(h,s);h.push(` <office:body> 286`),h.push(` <office:spreadsheet> 287`),((s.Workbook||{}).WBProps||{}).date1904&&h.push(` <table:calculation-settings table:case-sensitive="false" table:search-criteria-must-apply-to-whole-cell="true" table:use-wildcards="true" table:use-regular-expressions="false" table:automatic-find-labels="false"> 288 <table:null-date table:date-value="1904-01-01"/> 289 </table:calculation-settings> 290`);for(var m=0;m!=s.SheetNames.length;++m)h.push(n(s.Sheets[s.SheetNames[m]],s,m,c,b));return(s.Workbook||{}).Names&&h.push(write_names_ods(s.Workbook.Names,s.SheetNames,-1)),h.push(` </office:spreadsheet> 291`),h.push(` </office:body> 292`),c.bookType=="fods"?h.push("</office:document>"):h.push("</office:document-content>"),h.join("")}}();function write_ods(e,r){if(r.bookType=="fods")return write_content_ods(e,r);var t=zip_new(),n="",i=[],a=[];return n="mimetype",zip_add_file(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",zip_add_file(t,n,write_content_ods(e,r)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",zip_add_file(t,n,write_styles_ods(e,r)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",zip_add_file(t,n,XML_HEADER+write_meta_ods()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",zip_add_file(t,n,write_rdf(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",zip_add_file(t,n,write_manifest(i)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */var subarray=function(){try{return typeof Uint8Array>"u"||typeof Uint8Array.prototype.subarray>"u"?"slice":typeof Buffer<"u"?typeof Buffer.prototype.subarray>"u"?"slice":(typeof Buffer.from=="function"?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch{return"slice"}}();function u8_to_dataview(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function u8str(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):utf8read(a2s(e))}function stru8(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):s2a(utf8write(e))}function u8concat(e){for(var r=0,t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0;t<e.length;++t){var a=e[t],s=a.length;if(s<250)for(var c=0;c<s;++c)n[i++]=a[c];else n.set(a,i),i+=s}return n}function writeDecimal128LE(e,r,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-16,i=t/Math.pow(10,n-6176);e[r+15]|=n>>7,e[r+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[r+a]=i&255;e[r+15]|=t>=0?0:128}function parse_varint49(e,r){var t=r.l,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r.l=t,n}function write_varint49(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r[subarray](0,t)}function parse_packed_varints(e){for(var r={l:0},t=[];r.l<e.length;)t.push(parse_varint49(e,r));return t}function write_packed_varints(e){return u8concat(e.map(function(r){return write_varint49(r)}))}function varint_to_i32(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function parse_shallow(e){for(var r=[],t={l:0};t.l<e.length;){var n=t.l,i=parse_varint49(e,t),a=i&7;i=i/8|0;var s,c=t.l;switch(a){case 0:{for(;e[c++]>=128;);s=e[subarray](t.l,c),t.l=c}break;case 1:s=e[subarray](c,c+8),t.l=c+8;break;case 2:{var h=parse_varint49(e,t);s=e[subarray](t.l,t.l+h),t.l+=h}break;case 5:s=e[subarray](c,c+4),t.l=c+4;break;default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var l={data:s,type:a};r[i]==null&&(r[i]=[]),r[i].push(l)}return r}function write_shallow(e){var r=[];return e.forEach(function(t,n){n!=0&&t.forEach(function(i){i.data&&(r.push(write_varint49(n*8+i.type)),i.type==2&&r.push(write_varint49(i.data.length)),r.push(i.data))})}),u8concat(r)}function mappa(e,r){return e?.map(function(t){return r(t.data)})||[]}function parse_iwa_file(e){for(var r,t=[],n={l:0};n.l<e.length;){var i=parse_varint49(e,n),a=parse_shallow(e[subarray](n.l,n.l+i));n.l+=i;var s={id:varint_to_i32(a[1][0].data),messages:[]};a[2].forEach(function(c){var h=parse_shallow(c.data),l=varint_to_i32(h[3][0].data);s.messages.push({meta:h,data:e[subarray](n.l,n.l+l)}),n.l+=l}),(r=a[3])!=null&&r[0]&&(s.merge=varint_to_i32(a[3][0].data)>>>0>0),t.push(s)}return t}function write_iwa_file(e){var r=[];return e.forEach(function(t){var n=[[],[{data:write_varint49(t.id),type:0}],[]];t.merge!=null&&(n[3]=[{data:write_varint49(+!!t.merge),type:0}]);var i=[];
292t.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:write_varint49(s.data.length)}],n[2].push({data:write_shallow(s.meta),type:2})});var a=write_shallow(n);r.push(write_varint49(a.length)),r.push(a),i.forEach(function(s){return r.push(s)})}),u8concat(r)}function parse_snappy_chunk(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t={l:0},n=parse_varint49(r,t),i=[],a=t.l;a<r.length;){var s=r[a]&3;if(s==0){var c=r[a++]>>2;if(c<60)++c;else{var h=c-59;c=r[a],h>1&&(c|=r[a+1]<<8),h>2&&(c|=r[a+2]<<16),h>3&&(c|=r[a+3]<<24),c>>>=0,c++,a+=h}i.push(r[subarray](a,a+c)),a+=c;continue}else{var l=0,p=0;if(s==1?(p=(r[a]>>2&7)+4,l=(r[a++]&224)<<3,l|=r[a++]):(p=(r[a++]>>2)+1,s==2?(l=r[a]|r[a+1]<<8,a+=2):(l=(r[a]|r[a+1]<<8|r[a+2]<<16|r[a+3]<<24)>>>0,a+=4)),l==0)throw new Error("Invalid offset 0");for(var b=i.length-1,m=l;b>=0&&m>=i[b].length;)m-=i[b].length,--b;if(b<0)if(m==0)m=i[b=0].length;else throw new Error("Invalid offset beyond length");if(p<m)i.push(i[b][subarray](i[b].length-m,i[b].length-m+p));else{for(m>0&&(i.push(i[b][subarray](i[b].length-m)),p-=m),++b;p>=i[b].length;)i.push(i[b]),p-=i[b].length,++b;p&&i.push(i[b][subarray](0,p))}i.length>25&&(i=[u8concat(i)])}}for(var A=0,L=0;L<i.length;++L)A+=i[L].length;if(A!=n)throw new Error("Unexpected length: ".concat(A," != ").concat(n));return i}function decompress_iwa_file(e){Array.isArray(e)&&(e=new Uint8Array(e));for(var r=[],t=0;t<e.length;){var n=e[t++],i=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,r.push.apply(r,parse_snappy_chunk(n,e[subarray](t,t+i))),t+=i}if(t!==e.length)throw new Error("data is not a valid framed stream!");return r.length==1?r[0]:u8concat(r)}function compress_iwa_file(e){for(var r=[],t=0;t<e.length;){var n=Math.min(e.length-t,268435455),i=new Uint8Array(4);r.push(i);var a=write_varint49(n),s=a.length;r.push(a),n<=60?(s++,r.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(e[subarray](t,t+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,t+=n}return u8concat(r)}function write_new_storage(e,r){var t=new Uint8Array(32),n=u8_to_dataview(t),i=12,a=0;switch(t[0]=5,e.t){case"n":t[1]=2,writeDecimal128LE(t,i,e.v),a|=1,i+=16;break;case"b":t[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":var s=e.v==null?"":String(e.v),c=r.indexOf(s);c==-1&&(r[c=r.length]=s),t[1]=3,n.setUint32(i,c,!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),t[subarray](0,i)}function write_old_storage(e,r){var t=new Uint8Array(32),n=u8_to_dataview(t),i=12,a=0;switch(t[0]=4,e.t){case"n":t[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":t[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":var s=e.v==null?"":String(e.v),c=r.indexOf(s);c==-1&&(r[c=r.length]=s),t[2]=3,n.setUint32(i,c,!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),t[subarray](0,i)}function parse_TSP_Reference(e){var r=parse_shallow(e);return varint_to_i32(r[1][0].data)}function write_TSP_Reference(e){return write_shallow([[],[{type:0,data:write_varint49(e)}]])}function numbers_add_oref(e,r){var t,n=(t=e.messages[0].meta[5])!=null&&t[0]?parse_packed_varints(e.messages[0].meta[5][0].data):[],i=n.indexOf(r);i==-1&&(n.push(r),e.messages[0].meta[5]=[{type:2,data:write_packed_varints(n)}])}function numbers_del_oref(e,r){var t,n=(t=e.messages[0].meta[5])!=null&&t[0]?parse_packed_varints(e.messages[0].meta[5][0].data):[];e.messages[0].meta[5]=[{type:2,data:write_packed_varints(n.filter(function(i){return i!=r}))}]}function write_TST_TileRowInfo(e,r,t){var n,i,a=[[],[{type:0,data:write_varint49(0)}],[{type:0,data:write_varint49(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:write_varint49(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:write_varint49(1)}]];if(!((n=a[6])!=null&&n[0])||!((i=a[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=0;if(a[7][0].data.length<2*e.length){var c=new Uint8Array(2*e.length);c.set(a[7][0].data),a[7][0].data=c}if(a[4][0].data.length<2*e.length){var h=new Uint8Array(2*e.length);h.set(a[4][0].data),a[4][0].data=h}for(var l=u8_to_dataview(a[7][0].data),p=0,b=[],m=u8_to_dataview(a[4][0].data),A=0,L=[],k=t?4:1,T=0;T<e.length;++T){if(e[T]==null){l.setUint16(T*2,65535,!0),m.setUint16(T*2,65535);continue}
292l.setUint16(T*2,p/k,!0),m.setUint16(T*2,A/k,!0);var S,M;switch(typeof e[T]){case"string":S=write_new_storage({t:"s",v:e[T]},r),M=write_old_storage({t:"s",v:e[T]},r);break;case"number":S=write_new_storage({t:"n",v:e[T]},r),M=write_old_storage({t:"n",v:e[T]},r);break;case"boolean":S=write_new_storage({t:"b",v:e[T]},r),M=write_old_storage({t:"b",v:e[T]},r);break;default:if(e[T]instanceof Date){S=write_new_storage({t:"s",v:e[T].toISOString()},r),M=write_old_storage({t:"s",v:e[T].toISOString()},r);break}throw new Error("Unsupported value "+e[T])}b.push(S),p+=S.length,L.push(M),A+=M.length,++s}for(a[2][0].data=write_varint49(s),a[5][0].data=write_varint49(5);T<a[7][0].data.length/2;++T)l.setUint16(T*2,65535,!0),m.setUint16(T*2,65535,!0);return a[6][0].data=u8concat(b),a[3][0].data=u8concat(L),a[8]=[{type:0,data:write_varint49(t?1:0)}],a}function write_iwam(e,r){return{meta:[[],[{type:0,data:write_varint49(e)}]],data:r}}function get_unique_msgid(e,r){r.last||(r.last=927262);for(var t=r.last;t<2e6;++t)if(!r[t])return r[r.last=t]=e,t;throw new Error("Too many messages")}function build_numbers_deps(e){var r={},t=[];return e.FileIndex.map(function(n,i){return[n,e.FullPaths[i]]}).forEach(function(n){var i=n[0],a=n[1];i.type==2&&i.name.match(/\.iwa/)&&i.content[0]==0&&parse_iwa_file(decompress_iwa_file(i.content)).forEach(function(s){t.push(s.id),r[s.id]={deps:[],location:a,type:varint_to_i32(s.messages[0].meta[1][0].data)}})}),e.FileIndex.forEach(function(n){n.name.match(/\.iwa/)&&n.content[0]==0&&parse_iwa_file(decompress_iwa_file(n.content)).forEach(function(i){i.messages.forEach(function(a){[5,6].forEach(function(s){a.meta[s]&&a.meta[s].forEach(function(c){r[i.id].deps.push(varint_to_i32(c.data))})})})})}),r}function write_numbers_iwa(e,r){if(!r||!r.numbers)throw new Error("Mu
292st pass a `numbers` option -- check the README");var t=CFB.read(r.numbers,{type:"base64"}),n=build_numbers_deps(t),i=numbers_iwa_find(t,n,1);if(i==null)throw"Could not find message ".concat(1," in Numbers template");var a=mappa(parse_shallow(i.messages[0].data)[1],parse_TSP_Reference);if(a.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return e.SheetNames.forEach(function(s,c){c>=1&&(numbers_add_ws(t,n,c+1),i=numbers_iwa_find(t,n,1),a=mappa(parse_shallow(i.messages[0].data)[1],parse_TSP_Reference)),write_numbers_ws(t,n,e.Sheets[s],s,c,a[c])}),t}function numbers_iwa_doit(e,r,t,n){var i=CFB.find(e,r[t].location);if(!i)throw"Could not find ".concat(r[t].location," in Numbers template");var a=parse_iwa_file(decompress_iwa_file(i.content)),s=a.find(function(c){return c.id==t});n(s,a),i.content=compress_iwa_file(write_iwa_file(a)),i.size=i.content.length}function numbers_iwa_find(e,r,t){var n=CFB.find(e,r[t].location);if(!n)throw"Could not find ".concat(r[t].location," in Numbers template");var i=parse_iwa_file(decompress_iwa_file(n.content)),a=i.find(function(s){return s.id==t});return a}function numbers_add_ws(e,r,t){var n=-1,i=-1,a={};numbers_iwa_doit(e,r,1,function(l,p){var b=parse_shallow(l.messages[0].data);n=parse_TSP_Reference(parse_shallow(l.messages[0].data)[1][0].data),i=get_unique_msgid({deps:[1],location:r[n].location,type:2},r),a[n]=i,numbers_add_oref(l,i),b[1].push({type:2,data:write_TSP_Reference(i)});var m=numbers_iwa_find(e,r,n);m.id=i,r[1].location==r[i].location?p.push(m):numbers_iwa_doit(e,r,i,function(A,L){return L.push(m)}),l.messages[0].data=write_shallow(b)});var s=-1;numbers_iwa_doit(e,r,i,function(l,p){for(var b=parse_shallow(l.messages[0].data),m=3;m<=69;++m)delete b[m];var A=mappa(b[2],parse_TSP_Reference);A.forEach(function(T){return numbers_del_oref(l,T)}),s=get_unique_msgid({deps:[i],location:r[A[0]].location,type:r[A[0]].type},r),numbers_add_oref(l,s),a[A[0]]=s,b[2]=[{type:2,data:write_TSP_Reference(s)}];var L=numbers_iwa_find(e,r,A[0]);if(L.id=s,r[A[0]].location==r[i].location)p.push(L);else{var k=r[i].location;k=k.replace(/^Root Entry\//,""),k=k.replace(/^Index\//,"").replace(/\.iwa$/,""),numbers_iwa_doit(e,r,2,function(T){var S=parse_shallow(T.messages[0].data),M=S[3].findIndex(function(te){var Ie,we,_=parse_shallow(te.data);return(Ie=_[3])!=null&&Ie[0]?u8str(_[3][0].data)==k:!!((we=_[2])!=null&&we[0]&&u8str(_[2][0].data)==k)}),H=parse_shallow(S[3][M].data);H[6]||(H[6]=[]),H[6].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(s)}]])}),S[3][M].data=write_shallow(H),T.messages[0].data=write_shallow(S)}),numbers_iwa_doit(e,r,s,function(T,S){return S.push(L)})}l.messages[0].data=write_shallow(b)});var c=-1;numbers_iwa_doit(e,r,s,function(l,p){for(var b=parse_shallow(l.messages[0].data),m=parse_shallow(b[1][0].data),A=3;A<=69;++A)delete m[A];var L=parse_TSP_Reference(m[2][0].data);m[2][0].data=write_TSP_Reference(a[L]),b[1][0].data=write_shallow(m);var k=parse_TSP_Reference(b[2][0].data);numbers_del_oref(l,k),c=get_unique_msgid({deps:[s],location:r[k].location,type:r[k].type},r),numbers_add_oref(l,c),a[k]=c,b[2][0].data=write_TSP_Reference(c);var T=numbers_iwa_find(e,r,k);T.id=c,r[s].location==r[c].location?p.push(T):numbers_iwa_doit(e,r,c,function(S,M){return M.push(T)}),l.messages[0].data=write_shallow(b)});var h=r[c].location;h=h.replace(/^Root Entry\//,""),h=h.replace(/^Index\//,"").replace(/\.iwa$/,""),numbers_iwa_doit(e,r,c,function(l,p){var b,m,A=parse_shallow(l.messages[0].data),L=u8str(A[1][0].data),k=L.replace(/-[A-Z0-9]*/,"-".concat(t.toString(16).padStart(4,"0")));if(A[1][0].data=stru8(k),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(we){return delete A[we]}),A[45]){var T=parse_shallow(A[45][0].data),S=parse_TSP_Reference(T[1][0].data);numbers_del_oref(l,S),delete A[45]}if(A[70]){var M=parse_shallow(A[70][0].data);(b=M[2])==null||b.forEach(function(we){var _=parse_shallow(we.data);[2,3].map(function(oe){return _[oe][0]}).forEach(function(oe){var ee=parse_shallow(oe.data);if(ee[8]){var Ee=parse_TSP_Reference(ee[8][0].data);numbers_del_oref(l,Ee)}})}),delete A[70]}
292[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach(function(we){if(A[we]){var _=parse_TSP_Reference(A[we][0].data);delete A[we],numbers_del_oref(l,_)}});var H=parse_shallow(A[4][0].data);{[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(we){var _;if((_=H[we])!=null&&_[0]){var oe=parse_TSP_Reference(H[we][0].data),ee=get_unique_msgid({deps:[c],location:r[oe].location,type:r[oe].type},r);numbers_del_oref(l,oe),numbers_add_oref(l,ee),a[oe]=ee;var Ee=numbers_iwa_find(e,r,oe);if(Ee.id=ee,r[oe].location==r[c].location)p.push(Ee);else{r[ee].location=r[oe].location.replace(oe.toString(),ee.toString()),r[ee].location==r[oe].location&&(r[ee].location=r[ee].location.replace(/\.iwa/,"-".concat(ee,".iwa"))),CFB.utils.cfb_add(e,r[ee].location,compress_iwa_file(write_iwa_file([Ee])));var Le=r[ee].location;Le=Le.replace(/^Root Entry\//,""),Le=Le.replace(/^Index\//,"").replace(/\.iwa$/,""),numbers_iwa_doit(e,r,2,function(Pe){var $e=parse_shallow(Pe.messages[0].data);$e[3].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(ee)}],[{type:2,data:stru8(Le.replace(/-.*$/,""))}],[{type:2,data:stru8(Le)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:write_varint49(0)}],[],[{type:0,data:write_varint49(0)}]])}),$e[1]=[{type:0,data:write_varint49(Math.max(ee+1,varint_to_i32($e[1][0].data)))}];var Ze=$e[3].findIndex(function(gt){var Xe,dt,yt=parse_shallow(gt.data);return(Xe=yt[3])!=null&&Xe[0]?u8str(yt[3][0].data)==h:!!((dt=yt[2])!=null&&dt[0]&&u8str(yt[2][0].data)==h)}),je=parse_shallow($e[3][Ze].data);je[6]||(je[6]=[]),je[6].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(ee)}]])}),$e[3][Ze].data=write_shallow(je),Pe.messages[0].data=write_shallow($e)})}H[we][0].data=write_TSP_Reference(ee)}});var te=parse_shallow(H[1][0].data);(m=te[2])==null||m.forEach(function(we){var _=parse_TSP_Reference(we.data),oe=get_unique_msgid({deps:[c],location:r[_].location,type:r[_].type},r);numbers_del_oref(l,_),numbers_add_oref(l,oe),a[_]=oe;var ee=numbers_iwa_find(e,r,_);if(ee.id=oe,r[_].location==r[c].location)p.push(ee);else{r[oe].location=r[_].location.replace(_.toString(),oe.toString()),r[oe].location==r[_].location&&(r[oe].location=r[oe].location.replace(/\.iwa/,"-".concat(oe,".iwa"))),CFB.utils.cfb_add(e,r[oe].location,compress_iwa_file(write_iwa_file([ee])));var Ee=r[oe].location;Ee=Ee.replace(/^Root Entry\//,""),Ee=Ee.replace(/^Index\//,"").replace(/\.iwa$/,""),numbers_iwa_doit(e,r,2,function(Le){var Pe=parse_shallow(Le.messages[0].data);Pe[3].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(oe)}],[{type:2,data:stru8(Ee.replace(/-.*$/,""))}],[{type:2,data:stru8(Ee)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:write_varint49(0)}],[],[{type:0,data:write_varint49(0)}]])}),Pe[1]=[{type:0,data:write_varint49(Math.max(oe+1,varint_to_i32(Pe[1][0].data)))}];var $e=Pe[3].findIndex(function(je){var gt,Xe,dt=parse_shallow(je.data);return(gt=dt[3])!=null&>[0]?u8str(dt[3][0].data)==h:!!((Xe=dt[2])!=null&&Xe[0]&&u8str(dt[2][0].data)==h)}),Ze=parse_shallow(Pe[3][$e].data);Ze[6]||(Ze[6]=[]),Ze[6].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(oe)}]])}),Pe[3][$e].data=write_shallow(Ze),Le.messages[0].data=write_shallow(Pe)})}we.data=write_TSP_Reference(oe)}),H[1][0].data=write_shallow(te);var Ie=parse_shallow(H[3][0].data);Ie[1].forEach(function(we){var _=parse_shallow(we.data),oe=parse_TSP_Reference(_[2][0].data),ee=a[oe];if(!a[oe]){ee=get_unique_msgid({deps:[c],location:"",type:r[oe].type},r),r[ee].location="Root Entry/Index/Tables/Tile-".concat(ee,".iwa"),a[oe]=ee;var Ee=numbers_iwa_find(e,r,oe);Ee.id=ee,numbers_del_oref(l,oe),numbers_add_oref(l,ee),CFB.utils.cfb_add(e,"/Index/Tables/Tile-".concat(ee,".iwa"),compress_iwa_file(write_iwa_file([Ee]))),numbers_iwa_doit(e,r,2,function(Le){var Pe=parse_shallow(Le.messages[0].data);Pe[3].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(ee)}],[{type:2,data:stru8("Tables/Tile")}],[{type:2,data:stru8("Tables/Tile-".concat(ee))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:write_varint49(0)}],[],[{type:0,data:write_varint49(0)}]])}),Pe[1]=[{type:0,data:write_varint49(Math.max(ee+1,varint_to_i32(Pe[1][0].data)))}];var $e=Pe[3].findIndex(function(je){var gt,Xe,dt=parse_shallow(je.data);return(gt=dt[3])!=null&>[0]?u8str(dt[3][0].data)==h:!!((Xe=dt[2])!=null&&Xe[0]&&u8str(dt[2][0].data)==h)}),Ze=parse_shallow(Pe[3][$e].data);Ze[6]||(Ze[6]=[]),Ze[6].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(ee)}]])}),Pe[3][$e].data=write_shallow(Ze),Le.messages[0].data=write_shallow(Pe)})}_[2][0].data=write_TSP_Reference(ee),we.data=write_shallow(_)}),H[3][0].data=write_shallow(Ie)}A[4][0].data=write_shallow(H),l.messages[0].data=write_shallow(A)})}function write_numbers_ws(e,r,t,n,i,a){var s=[];numbers_iwa_doit(e,r,a,function(l){var p=parse_shallow(l.messages[0].data);p[1]=[{type:2,data:stru8(n)}],s=mappa(p[2],parse_TSP_Reference),l.messages[0].data=write_shallow(p)});var c=numbers_iwa_find(e,r,s[0]),h=parse_TSP_Reference(parse_shallow(c.messages[0].data)[2][0].data);numbers_iwa_doit(e,r,h,function(l,p){return write_numbers_tma(e,r,t,l,p,h)})}var USE_WIDE_ROWS=!0;function write_numbers_tma(e,r,t,n,i,a){var s=decode_range(t["!ref"]);s.s.r=s.s.c=0;var c=!1;s.e.c>999&&(c=!0,s.e.c=999),s.e.r>999999&&(c=!0,s.e.r=999999),c&&console.error("Truncating to ".concat(encode_range(s)));var h=sheet_to_json(t,{range:s,header:1}),l=["~Sh33tJ5~"],p=r[a].location;p=p.replace(/^Root Entry\//,""),p=p.replace(/^Index\//,"").replace(/\.iwa$/,"");var b=parse_shallow(n.messages[0].data);{b[6][0].data=write_varint49(s.e.r+1),b[7][0].data=write_varint49(s.e.c+1),delete b[46];var m=parse_shallow(b[4][0].data);{var A=parse_TSP_Reference(parse_shallow(m[1][0].data)[2][0].data);numbers_iwa_doit(e,r,A,function(Ze,je){var gt,Xe=parse_shallow(Ze.messages[0].data);if((gt=Xe?.[2])!=null&>[0])for(var dt=0;dt<h.length;++dt){var yt=parse_shallow(Xe[2][0].data);yt[1][0].data=write_varint49(dt),yt[4][0].data=write_varint49(h[dt].length),Xe[2][dt]={type:Xe[2][0].type,data:write_shallow(yt)}}Ze.messages[0].data=write_shallow(Xe)});var L=parse_TSP_Reference(m[2][0].data);numbers_iwa_doit(e,r,L,function(Ze,je){for(var gt=parse_shallow(Ze.messages[0].data),Xe=0;Xe<=s.e.c;++Xe){var dt=parse_shallow(gt[2][0].data);dt[1][0].data=write_varint49(Xe),dt[4][0].data=write_varint49(s.e.r+1),gt[2][Xe]={type:gt[2][0].type,data:write_shallow(dt)}}Ze.messages[0].data=write_shallow(gt)}
292);var k=parse_shallow(m[9][0].data);k[1]=[];var T=parse_shallow(m[3][0].data);{var S=256;T[2]=[{type:0,data:write_varint49(S)}];var M=parse_TSP_Reference(parse_shallow(T[1][0].data)[2][0].data),H=function(){var Ze=numbers_iwa_find(e,r,2),je=parse_shallow(Ze.messages[0].data),gt=je[3].filter(function(Xe){return varint_to_i32(parse_shallow(Xe.data)[1][0].data)==M});return gt?.length?varint_to_i32(parse_shallow(gt[0].data)[12][0].data):0}();CFB.utils.cfb_del(e,r[M].location),numbers_iwa_doit(e,r,2,function(Ze){var je=parse_shallow(Ze.messages[0].data);je[3]=je[3].filter(function(dt){return varint_to_i32(parse_shallow(dt.data)[1][0].data)!=M});var gt=je[3].findIndex(function(dt){var yt,Bt,se=parse_shallow(dt.data);return(yt=se[3])!=null&&yt[0]?u8str(se[3][0].data)==p:!!((Bt=se[2])!=null&&Bt[0]&&u8str(se[2][0].data)==p)}),Xe=parse_shallow(je[3][gt].data);Xe[6]||(Xe[6]=[]),Xe[6]=Xe[6].filter(function(dt){return varint_to_i32(parse_shallow(dt.data)[1][0].data)!=M}),je[3][gt].data=write_shallow(Xe),Ze.messages[0].data=write_shallow(je)}),numbers_del_oref(n,M),T[1]=[];for(var te=Math.ceil((s.e.r+1)/S),Ie=0;Ie<te;++Ie){var we=get_unique_msgid({deps:[],location:"",type:6002},r);r[we].location="Root Entry/Index/Tables/Tile-".concat(we,".iwa");for(var _=[[],[{type:0,data:write_varint49(0)}],[{type:0,data:write_varint49(Math.min(s.e.r+1,(Ie+1)*S))}],[{type:0,data:write_varint49(0)}],[{type:0,data:write_varint49(Math.min((Ie+1)*S,s.e.r+1)-Ie*S)}],[],[{type:0,data:write_varint49(5)}],[{type:0,data:write_varint49(1)}],[{type:0,data:write_varint49(1)}]],oe=Ie*S;oe<=Math.min(s.e.r,(Ie+1)*S-1);++oe){var ee=write_TST_TileRowInfo(h[oe],l,USE_WIDE_ROWS);ee[1][0].data=write_varint49(oe-Ie*S),_[5].push({data:write_shallow(ee),type:2})}T[1].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(Ie)}],[{type:2,data:write_TSP_Reference(we)}]])});var Ee={id:we,messages:[write_iwam(6002,write_shallow(_))]},Le=compress_iwa_file(write_iwa_file([Ee]));CFB.utils.cfb_add(e,"/Index/Tables/Tile-".concat(we,".iwa"),Le),numbers_iwa_doit(e,r,2,function(Ze){var je=parse_shallow(Ze.messages[0].data);je[3].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(we)}],[{type:2,data:stru8("Tables/Tile")}],[{type:2,data:stru8("Tables/Tile-".concat(we))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:write_varint49(0)}],[],[{type:0,data:write_varint49(H)}]])}),je[1]=[{type:0,data:write_varint49(Math.max(we+1,varint_to_i32(je[1][0].data)))}];var gt=je[3].findIndex(function(dt){var yt,Bt,se=parse_shallow(dt.data);return(yt=se[3])!=null&&yt[0]?u8str(se[3][0].data)==p:!!((Bt=se[2])!=null&&Bt[0]&&u8str(se[2][0].data)==p)}),Xe=parse_shallow(je[3][gt].data);Xe[6]||(Xe[6]=[]),Xe[6].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(we)}]])}),je[3][gt].data=write_shallow(Xe),Ze.messages[0].data=write_shallow(je)}),numbers_add_oref(n,we),k[1].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(Ie*S)}],[{type:0,data:write_varint49(Ie)}]])})}}if(m[3][0].data=write_shallow(T),m[9][0].data=write_shallow(k),m[10]=[{type:2,data:new Uint8Array([])}],t["!merges"]){var Pe=get_unique_msgid({type:6144,deps:[a],location:r[a].location},r);i.push({id:Pe,messages:[write_iwam(6144,write_shallow([[],t["!merges"].map(function(Ze){return{type:2,data:write_shallow([[],[{type:2,data:write_shallow([[],[{type:5,data:new Uint8Array(new Uint16Array([Ze.s.r,Ze.s.c]).buffer)}]])}],[{type:2,data:write_shallow([[],[{type:5,data:new Uint8Array(new Uint16Array([Ze.e.r-Ze.s.r+1,Ze.e.c-Ze.s.c+1]).buffer)}]])}]])}})]))]}),m[13]=[{type:2,data:write_TSP_Reference(Pe)}],numbers_iwa_doit(e,r,2,function(Ze){var je=parse_shallow(Ze.messages[0].data),gt=je[3].findIndex(function(dt){var yt,Bt,se=parse_shallow(dt.data);return(yt=se[3])!=null&&yt[0]?u8str(se[3][0].data)==p:!!((Bt=se[2])!=null&&Bt[0]&&u8str(se[2][0].data)==p)}),Xe=parse_shallow(je[3][gt].data);Xe[6]||(Xe[6]=[]),Xe[6].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(Pe)}]])}),je[3][gt].data=write_shallow(Xe),Ze.messages[0].data=write_shallow(je)}),numbers_add_oref(n,Pe)}else delete m[13];var $e=parse_TSP_Reference(m[4][0].data);numbers_iwa_doit(e,r,$e,function(Ze){var je=parse_shallow(Ze.messages[0].data);je[3]=[],l.forEach(function(gt,Xe){Xe!=0&&je[3].push({type:2,data:write_shallow([[],[{type:0,data:write_varint49(Xe)}],[{type:0,data:write_varint49(1)}],[{type:2,data:stru8(gt)}]])})}),Ze.messages[0].data=write_shallow(je)})}b[4][0].data=write_shallow(m)}n.messages[0].data=write_shallow(b)}function fix_opts_func(e){return function(t){for(var n=0;n!=e.length;++n){var i=e[n];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function fix_write_opts(e){fix_opts_func([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function write_zip_xlsb(e,r){e&&!e.SSF&&(e.SSF=dup(table_fmt)),e&&e.SSF&&
vendor: 4,426 bytes, line 292
292(make_ssf(),SSF_load_table(e.SSF),r.revssf=evert_num(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,browser_has_Map?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="bin",n=!0,i=new_ct();fix_write_opts(r=r||{});var a=zip_new(),s="",c=0;if(r.cellXfs=[],get_cell_style(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",zip_add_file(a,s,write_core_props(e.Props,r)),i.coreprops.push(s),add_rels(r.rels,2,s,RELS.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var h=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&h.push(e.SheetNames[l]);e.Props.SheetNames=h}for(e.Props.Worksheets=e.Props.SheetNames.length,zip_add_file(a,s,write_ext_props(e.Props)),i.extprops.push(s),add_rels(r.rels,3,s,RELS.EXT_PROPS),e.Custprops!==e.Props&&keys(e.Custprops||{}).length>0&&(s="docProps/custom.xml",zip_add_file(a,s,write_cust_props(e.Custprops)),i.custprops.push(s),add_rels(r.rels,4,s,RELS.CUST_PROPS)),c=1;c<=e.SheetNames.length;++c){var p={"!id":{}},b=e.Sheets[e.SheetNames[c-1]],m=(b||{})["!type"]||"sheet";switch(m){case"chart":default:s="xl/worksheets/sheet"+c+"."+t,zip_add_file(a,s,write_ws_bin(c-1,r,e,p)),i.sheets.push(s),add_rels(r.wbrels,-1,"worksheets/sheet"+c+"."+t,RELS.WS[0])}if(b){var A=b["!comments"],L=!1,k="";A&&A.length>0&&(k="xl/comments"+c+"."+t,zip_add_file(a,k,write_comments_bin(A)),i.comments.push(k),add_rels(p,-1,"../comments"+c+"."+t,RELS.CMNT),L=!0),b["!legacy"]&&L&&zip_add_file(a,"xl/drawings/vmlDrawing"+c+".vml",write_vml(c,b["!comments"])),delete b["!comments"],delete b["!legacy"]}p["!id"].rId1&&zip_add_file(a,get_rels_path(s),write_rels(p))}r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,zip_add_file(a,s,write_sst_bin(r.Strings)),i.strs.push(s),add_rels(r.wbrels,-1,"sharedStrings."+t,RELS.SST)),s="xl/workbook."+t,zip_add_file(a,s,write_wb_bin(e)),i.workbooks.push(s),add_rels(r.rels,1,s,RELS.WB),s="xl/theme/theme1.xml";var T=write_theme(e.Themes,r);return zip_add_file(a,s,T),i.themes.push(s),add_rels(r.wbrels,-1,"theme/theme1.xml",RELS.THEME),s="xl/styles."+t,zip_add_file(a,s,write_sty_bin(e,r)),i.styles.push(s),add_rels(r.wbrels,-1,"styles."+t,RELS.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",zip_add_file(a,s,e.vbaraw),i.vba.push(s),add_rels(r.wbrels,-1,"vbaProject.bin",RELS.VBA)),s="xl/metadata."+t,zip_add_file(a,s,write_xlmeta_bin()),i.metadata.push(s),add_rels(r.wbrels,-1,"metadata."+t,RELS.XLMETA),zip_add_file(a,"[Content_Types].xml",write_ct(i,r)),zip_add_file(a,"_rels/.rels",write_rels(r.rels)),zip_add_file(a,"xl/_rels/workbook."+t+".rels",write_rels(r.wbrels)),delete r.revssf,delete r.ssf,a}function write_zip_xlsx(e,r){e&&!e.SSF&&(e.SSF=dup(table_fmt)),e&&e.SSF&&(make_ssf(),SSF_load_table(e.SSF),r.revssf=evert_num(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,browser_has_Map?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=VBAFMTS.indexOf(r.bookType)>-1,i=new_ct();fix_write_opts(r=r||{});var a=zip_new(),s="",c=0;if(r.cellXfs=[],get_cell_style(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",zip_add_file(a,s,write_core_props(e.Props,r)),i.coreprops.push(s),add_rels(r.rels,2,s,RELS.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var h=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&h.push(e.SheetNames[l]);e.Props.SheetNames=h}e.Props.Worksheets=e.Props.SheetNames.length,zip_add_file(a,s,write_ext_props(e.Props)),i.extprops.push(s),add_rels(r.rels,3,s,RELS.EXT_PROPS),e.Custprops!==e.Props&&keys(e.Custprops||{}).length>0&&(s="docProps/custom.xml",zip_add_file(a,s,write_cust_props(e.Custprops)),i.custprops.push(s),add_rels(r.rels,4,s,RELS.CUST_PROPS));var p=["SheetJ5"];for(r.tcid=0,c=1;c<=e.SheetNames.length;++c){var b={"!id":{}},m=e.Sheets[e.SheetNames[c-1]],A=(m||{})["!type"]||"sheet";switch(A){case"chart":default:s="xl/worksheets/sheet"+c+"."+t,zip_add_file(a,s,write_ws_xml(c-1,r,e,b)),i.sheets.push(s),add_rels(r.wbrels,-1,"worksheets/sheet"+c+"."+t,RELS.WS[0])}if(m){var L=m["!comments"],k=!1,T="";if(L&&L.length>0){var S=!1;
292L.forEach(function(M){M[1].forEach(function(H){H.T==!0&&(S=!0)})}),S&&(T="xl/threadedComments/threadedComment"+c+".xml",zip_add_file(a,T,write_tcmnt_xml(L,p,r)),i.threadedcomments.push(T),add_rels(b,-1,"../threadedComments/threadedComment"+c+".xml",RELS.TCMNT)),T="xl/comments"+c+"."+t,zip_add_file(a,T,write_comments_xml(L)),i.comments.push(T),add_rels(b,-1,"../comments"+c+"."+t,RELS.CMNT),k=!0}m["!legacy"]&&k&&zip_add_file(a,"xl/drawings/vmlDrawing"+c+".vml",write_vml(c,m["!comments"])),delete m["!comments"],delete m["!legacy"]}b["!id"].rId1&&zip_add_file(a,get_rels_path(s),write_rels(b))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,zip_add_file(a,s,write_sst_xml(r.Strings,r)),i.strs.push(s),add_rels(r.wbrels,-1,"sharedStrings."+t,RELS.SST)),s="xl/workbook."+t,zip_add_file(a,s,write_wb_xml(e)),i.workbooks.push(s),add_rels(r.rels,1,s,RELS.WB),s="xl/theme/theme1.xml",zip_add_file(a,s,write_theme(e.Themes,r)),i.themes.push(s),add_rels(r.wbrels,-1,"theme/theme1.xml",RELS.THEME),s="xl/styles."+t,zip_add_file(a,s,write_sty_xml(e,r)),i.styles.push(s),add_rels(r.wbrels,-1,"styles."+t,RELS.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",zip_add_file(a,s,e.vbaraw),i.vba.push(s),add_rels(r.wbrels,-1,"vbaProject.bin",RELS.VBA)),s="xl/metadata."+t,zip_add_file(a,s,write_xlmeta_xml()),i.metadata.push(s),add_rels(r.wbrels,-1,"metadata."+t,RELS.XLMETA),p.length>1&&(s="xl/persons/person.xml",zip_add_file(a,s,write_people_xml(p)),i.people.push(s),add_rels(r.wbrels,-1,"persons/person.xml",RELS.PEOPLE)),zip_add_file(a,"[Content_Types].xml",write_ct(i,r)),zip_add_file(a,"_rels/.rels",write_rels(r.rels)),zip_add_file(a,"xl/_rels/workbook."+t+".rels",write_rels(r.wbrels)),delete r.revssf,delete r.ssf,a}function firstbyte(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=Base64_decode(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function write_cfb_ctr(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return write_dl(r.file,CFB.write(e,{type:has_buf?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return CFB.write(e,r)}function write_zip(e,r){switch(r.bookType){case"ods":return write_ods(e,r);case"numbers":return write_numbers_iwa(e,r);case"xlsb":return write_zip_xlsb(e,r);default:return write_zip_xlsx(e,r)}}function write_zip_type(e,r){var t=dup(r||{}),n=write_zip(e,t);return write_zip_denouement(n,t)}function write_zip_denouement(e,r){var t={},n=has_buf?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=n;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var i=e.FullPaths?CFB.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno<"u"&&typeof i=="string"){if(r.type=="binary"||r.type=="base64")return i;i=new Uint8Array(s2ab(i))}return r.password&&typeof encrypt_agile<"u"?write_cfb_ctr(encrypt_agile(i,r.password),r):r.type==="file"?write_dl(r.file,i):r.type=="string"?utf8read(i):i}function write_cfb_type(e,r){var t=r||{},n=write_xlscfb(e,t);return write_cfb_ctr(n,t)}function write_string_type(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return Base64_encode(utf8write(n));case"binary":return utf8write(n);case"string":return e;case"file":return write_dl(r.file,n,"utf8");case"buffer":return has_buf?Buffer_from(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):write_string_type(n,{type:"binary"}
vendor: 1,653 bytes, line 292
292).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function write_stxt_type(e,r){switch(r.type){case"base64":return Base64_encode_pass(e);case"binary":return e;case"string":return e;case"file":return write_dl(r.file,e,"binary");case"buffer":return has_buf?Buffer_from(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function write_binary_type(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return r.type=="base64"?Base64_encode(t):r.type=="string"?utf8read(t):t;case"file":return write_dl(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type)}}function writeSync(e,r){reset_cp(),check_wb(e);var t=dup(r||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=writeSync(e,t);return t.type="array",s2ab(n)}var i=0;if(t.sheet&&(typeof t.sheet=="number"?i=t.sheet:i=e.SheetNames.indexOf(t.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return write_string_type(write_xlml(e,t),t);case"slk":case"sylk":return write_string_type(SYLK.from_sheet(e.Sheets[e.SheetNames[i]],t,e),t);case"htm":case"html":return write_string_type(sheet_to_html(e.Sheets[e.SheetNames[i]],t),t);case"txt":return write_stxt_type(sheet_to_txt(e.Sheets[e.SheetNames[i]],t),t);case"csv":return write_string_type(sheet_to_csv(e.Sheets[e.SheetNames[i]],t),t,"\uFEFF");case"dif":return write_string_type(DIF.from_sheet(e.Sheets[e.SheetNames[i]],t),t);
292case"dbf":return write_binary_type(DBF.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"prn":return write_string_type(PRN.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"rtf":return write_string_type(sheet_to_rtf(e.Sheets[e.SheetNames[i]]),t);case"eth":return write_string_type(ETH.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"fods":return write_string_type(write_ods(e,t),t);case"wk1":return write_binary_type(WK_.sheet_to_wk1(e.Sheets[e.SheetNames[i]],t),t);case"wk3":return write_binary_type(WK_.book_to_wk3(e,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),write_binary_type(write_biff_buf(e,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),write_cfb_type(e,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return write_zip_type(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function resolve_book_type(e){if(!e.bookType){var r={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType=r[e.bookType]||e.bookType}}function writeFileSync(e,r,t){var n=t||{};return n.type="file",n.file=r,resolve_book_type(n),writeSync(e,n)}function make_json_row(e,r,t,n,i,a,s){var c=encode_row(t),h=s.defval,l=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),p=!0,b=e["!data"]!=null,m=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(m,"__rowNum__",{value:t,enumerable:!1})}catch{m.__rowNum__=t}else m.__rowNum__=t;if(!b||e["!data"][t])for(var A=r.s.c;A<=r.e.c;++A){var L=b?(e["!data"][t]||[])[A]:e[n[A]+c];if(L===void 0||L.t===void 0){if(h===void 0)continue;a[A]!=null&&(m[a[A]]=h);continue}var k=L.v;switch(L.t){case"z":if(k==null)break;continue;case"e":k=k==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+L.t)}if(a[A]!=null){if(k==null)if(L.t=="e"&&k===null)m[a[A]]=null;else if(h!==void 0)m[a[A]]=h;else if(l&&k===null)m[a[A]]=null;else continue;else m[a[A]]=l&&(L.t!=="n"||L.t==="n"&&s.rawNumbers!==!1)?k:format_cell(L,k,s);k!=null&&(p=!1)}}return{row:m,isempty:p}}function sheet_to_json(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},n=0,i=1,a=[],s=0,c="",h={s:{r:0,c:0},e:{r:0,c:0}},l=r||{},p=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof p){case"string":h=safe_decode_range(p);break;case"number":h=safe_decode_range(e["!ref"]),h.s.r=p;break;default:h=p}n>0&&(i=0);var b=encode_row(h.s.r),m=[],A=[],L=0,k=0,T=e["!data"]!=null,S=h.s.r,M=0,H={};T&&!e["!data"][S]&&(e["!data"][S]=[]);var te=l.skipHidden&&e["!cols"]||[],Ie=l.skipHidden&&e["!rows"]||[];for(M=h.s.c;M<=h.e.c;++M)if(!(te[M]||{}).hidden)switch(m[M]=encode_col(M),t=T?e["!data"][S][M]:e[m[M]+b],n){case 1:a[M]=M-h.s.c;break;case 2:a[M]=m[M];break;case 3:a[M]=l.header[M-h.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),c=s=format_cell(t,null,l),k=H[s]||0,!k)H[s]=1;else{do c=s+"_"+k++;while(H[c]);H[s]=k,H[c]=1}a[M]=c}for(S=h.s.r+i;S<=h.e.r;++S)if(!(Ie[S]||{}).hidden){var we=make_json_row(e,h,S,m,n,a,l);(we.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(A[L++]=we.row)}return A.length=L,A}var qreg=/"/g;function make_csv_row(e,r,t,n,i,a,s,c){for(var h=!0,l=[],p="",b=encode_row(t),m=e["!data"]!=null,A=m&&e["!data"][t]||[],L=r.s.c;L<=r.e.c;++L)if(n[L]){var k=m?A[L]:e[n[L]+b];if(k==null)p="";else if(k.v!=null){h=!1,p=""+(c.rawNumbers&&k.t=="n"?k.v:format_cell(k,null,c));for(var T=0,S=0;T!==p.length;++T)if((S=p.charCodeAt(T))===i||S===a||S===34||c.forceQuotes){p='"'+p.replace(qreg,'""')+'"';break}p=="ID"&&(p='"ID"')}else k.f!=null&&!k.F?(h=!1,p="="+k.f,p.indexOf(",")>=0&&(p='"'+p.replace(qreg,'""')+'"')):p="";l.push(p)}return c.blankrows===!1&&h?null:l.join(s)}function sheet_to_csv(e,r){var t=[],n=r??{};if(e==null||e["!ref"]==null)return"";for(var i=safe_decode_range(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),c=n.RS!==void 0?n.RS:` 293`,h=c.charCodeAt(0),l=new RegExp((a=="|"?"\\|":a)+"+$"),p="",b=[],m=n.skipHidden&&e["!cols"]||[],A=n.skipHidden&&e["!rows"]||[],L=i.s.c;L<=i.e.c;++L)(m[L]||{}).hidden||(b[L]=encode_col(L));for(var k=0,T=i.s.r;T<=i.e.r;++T)(A[T]||{}).hidden||(p=make_csv_row(e,i,T,b,s,h,a,n),p!=null&&(n.strip&&(p=p.replace(l,"")),(p||n.blankrows!==!1)&&t.push((k++?c:"")+p)));return t.join("")}function sheet_to_txt(e,r){r||(r={}),r.FS=" ",r.RS=` 294`;var t=sheet_to_csv(e,r);return t}function sheet_to_formulae(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var i=safe_decode_range(e["!ref"]),a="",s=[],c,h=[],l=e["!data"]!=null;for(c=i.s.c;c<=i.e.c;++c)s[c]=encode_col(c);for(var p=i.s.r;p<=i.e.r;++p)for(a=encode_row(p),c=i.s.c;c<=i.e.c;++c)if(r=s[c]+a,t=l?(e["!data"][p]||[])[c]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}h[h.length]=r+"="+n}return h}function sheet_add_json(e,r,t){var n=t||{},i=e?e["!data"]!=null:n.dense,a=+!n.skipHeader,s=e||{};!e&&i&&(s["!data"]=[]);var c=0,h=0;if(s&&n.origin!=null)if(typeof n.origin=="number")c=n.origin;
294else{var l=typeof n.origin=="string"?decode_cell(n.origin):n.origin;c=l.r,h=l.c}var p={s:{c:0,r:0},e:{c:h,r:c+r.length-1+a}};if(s["!ref"]){var b=safe_decode_range(s["!ref"]);p.e.c=Math.max(p.e.c,b.e.c),p.e.r=Math.max(p.e.r,b.e.r),c==-1&&(c=b.e.r+1,p.e.r=c+r.length-1+a)}else c==-1&&(c=0,p.e.r=r.length-1+a);var m=n.header||[],A=0,L=[];r.forEach(function(T,S){i&&!s["!data"][c+S+a]&&(s["!data"][c+S+a]=[]),i&&(L=s["!data"][c+S+a]),keys(T).forEach(function(M){(A=m.indexOf(M))==-1&&(m[A=m.length]=M);var H=T[M],te="z",Ie="",we=i?"":encode_col(h+A)+encode_row(c+S+a),_=i?L[h+A]:s[we];H&&typeof H=="object"&&!(H instanceof Date)?i?L[h+A]=H:s[we]=H:(typeof H=="number"?te="n":typeof H=="boolean"?te="b":typeof H=="string"?te="s":H instanceof Date?(te="d",n.cellDates||(te="n",H=datenum(H)),Ie=_!=null&&_.z&&fmt_is_date(_.z)?_.z:n.dateNF||table_fmt[14]):H===null&&n.nullError&&(te="e",H=0),_?(_.t=te,_.v=H,delete _.w,delete _.R,Ie&&(_.z=Ie)):i?L[h+A]=_={t:te,v:H}:s[we]=_={t:te,v:H},Ie&&(_.z=Ie))})}),p.e.c=Math.max(p.e.c,h+m.length-1);var k=encode_row(c);if(i&&!s["!data"][c]&&(s["!data"][c]=[]),a)for(A=0;A<m.length;++A)i?s["!data"][c][A+h]={t:"s",v:m[A]}:s[encode_col(A+h)+k]={t:"s",v:m[A]};return s["!ref"]=encode_range(p),s}function json_to_sheet(e,r){return sheet_add_json(null,e,r)}function ws_get_cell_stub(e,r,t){if(typeof r=="string"){if(e["!data"]!=null){var n=decode_cell(r);return e["!data"][n.r]||(e["!data"][n.r]=[]),e["!data"][n.r][n.c]||(e["!data"][n.r][n.c]={t:"z"})}return e[r]||(e[r]={t:"z"})}return typeof r!="number"?ws_get_cell_stub(e,encode_cell(r)):ws_get_cell_stub(e,encode_col(t||0)+encode_row(r))}function wb_sheet_idx(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function book_new(){return{SheetNames:[],Sheets:{}}}function book_append_sheet(e,r,t,n){var i=1;if(!t)for(;i<=65535&&e.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&e.SheetNames.indexOf(t=s+i)!=-1;++i);}if(check_ws_name(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function book_set_sheet_visibility(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=wb_sheet_idx(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function cell_set_number_format(e,r){return e.z=r,e}function cell_set_hyperlink(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function cell_set_internal_link(e,r,t){return cell_set_hyperlink(e,"#"+r,t)}function cell_add_comment(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function sheet_set_array_formula(e,r,t,n){for(var i=typeof r!="string"?r:safe_decode_range(r),a=typeof r=="string"?r:encode_range(r),s=i.s.r;s<=i.e.r;++s)for(var c=i.s.c;c<=i.e.c;++c){var h=ws_get_cell_stub(e,s,c);h.t="n",h.F=a,delete h.v,s==i.s.r&&c==i.s.c&&(h.f=t,n&&(h.D=!0))}var l=decode_range(e["!ref"]);return l.s.r>i.s.r&&(l.s.r=i.s.r),l.s.c>i.s.c&&(l.s.c=i.s.c),l.e.r<i.e.r&&(l.e.r=i.e.r),l.e.c<i.e.c&&(l.e.c=i.e.c),e["!ref"]=encode_range(l),e}var utils={encode_col,encode_row,encode_cell,encode_range,decode_col,decode_row,split_cell,decode_cell,decode_range,format_cell,sheet_add_aoa,sheet_add_json,sheet_add_dom,aoa_to_sheet,json_to_sheet,table_to_sheet:parse_dom_table,table_to_book,sheet_to_csv,sheet_to_txt,sheet_to_json,sheet_to_html,sheet_to_formulae,sheet_to_row_object_array:sheet_to_json,sheet_get_cell:ws_get_cell_stub,book_new,book_append_sheet,book_set_sheet_visibility,cell_set_number_format,cell_set_hyperlink,cell_set_internal_link,cell_add_comment,sheet_set_array_formula,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function createNewsletterUsersFileAndStartUserDownload(e){var r=getRequiredFormat(),t=utils.json_to_sheet(e),n=utils.book_new();utils.book_append_sheet(n,t);var i=new Date;writeFileSync(n,"Newsletter Users (".concat(i.toLocaleDateString(),").").concat(r),{compression:!0})}var __awaiter$2=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$2=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function downloadNewsletterUsers(){return __awaiter$2(this,void 0,void 0,function(){var e,r,t;return __generator$2(this,function(n){switch(n.label){case 0:return changeDownloadButtonState(this,!0),e=this.dataset.exportUrl,e&&e!==""?[4,requestNewsletterUsers(e)]:[3,2];case 1:r=n.sent(),r.length>0?createNewsletterUsersFileAndStartUserDownload(r):(t=getTemplateInnerText("no-newsletter-export-feedback"),displayErrorFeedback(t)),changeDownloadButtonState(this,!1),n.label=2;case 2:return[2]}})})}function listenToDownloadNewsletterUsers(){var e=document.getElementById("download-newsletter-users");e&&e instanceof HTMLElement&&e.addEventListener("click",downloadNewsletterUsers)}var __awaiter$1=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator$1=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};function listenToDownloadDeliveryAreas(){var e=document.getElementById("download-deliveryareas");e&&e instanceof HTMLElement&&e.addEventListener("click",downloadDeliveryAreaFile)}function listenToUpdateDeliveryAreasCache(){var e=document.getElementById("update-deliveryareas");e&&e instanceof HTMLElement&&e.addEventListener("click",updateDeliveryAreaCache)}function downloadDeliveryAreaFile(){var e=this,r=this.dataset.exportUrl;this.setAttribute("disabled","disabled"),this.innerText="downloading...",r&&r!==""&&generateDeliveryAreaFile(r).then(function(t){downloadFile(t.url),e.removeAttribute("disabled"),e.innerText="Download"}).catch(function(){e.removeAttribute("disabled"),e.innerText="Download"})}function updateDeliveryAreaCache(){var e=this,r=this.dataset.exportUrl;this.setAttribute("disabled","disabled"),this.innerText="Cache wird aktualsiert...",r&&r!==""&&refreshDeliveryAreaCache(r).then(function(){e.removeAttribute("disabled"),e.innerText="Cache aktualisieren"}).catch(function(){e.removeAttribute("disabled"),e.innerText="Cache aktualisieren"})}function downloadFile(e){var r=document.createElement("a");r.href=e,r.download="zipCodeMerchantDeliveryArea.csv",document.body.appendChild(r),r.click(),document.body.removeChild(r)}function generateDeliveryAreaFile(e){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(r){switch(r.label){case 0:return[4,fetch(e,{method:"GET"})];case 1:return[2,r.sent()]}})})}function refreshDeliveryAreaCache(e){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(r){switch(r.label){case 0:return[4,fetch(e,{method:"GET"})];case 1:return[2,r.sent()]}})})}function listenToAccountExportEvents(){listenToDownloadNewsletterUsers(),listenToDownloadDeliveryAreas(),listenToUpdateDeliveryAreasCache()}function removeBirthdateIfItIsToday(){var e,r,t,n=document.getElementById("newsletter-birthdate");if(n&&n instanceof HTMLInputElement){var i=new Date;((e=n.valueAsDate)===null||e===void 0?void 0:e.getDate())===i.getDate()&&((r=n.valueAsDate)===null||r===void 0?void 0:r.getMonth())===i.getMonth()&&((t=n.valueAsDate)===null||t===void 0?void 0:t.getFullYear())===i.getFullYear()&&(n.value="")}}function toggleNewsletterDetails(e){var r=document.getElementById("newsletter-checkout-details");r&&r instanceof HTMLElement&&(e?r.classList.remove("hidden"):r.classList.add("hidden"))}function toggleCheckboxLabelUnBoldness(e){var r,t;e.checked?(r=e.closest("label"))===null||r===void 0||r.classList.remove("checkout-newsletter__checkbox--unselected"):(t=e.closest("label"))===null||t===void 0||t.classList.add("checkout-newsletter__checkbox--unselected")}function toggleNewsletterCheckoutForm(){this instanceof HTMLInputElement&&(toggleNewsletterDetails(this.checked),toggleCheckboxLabelUnBoldness(this))}function listenToNewsletterCheckoutCheckbox(){var e;(e=document.getElementById("newsletter-checkout-display-form-input"))===null||e===void 0||e.addEventListener("input",toggleNewsletterCheckoutForm),removeBirthdateIfItIsToday()}var __awaiter=globalThis&&globalThis.__awaiter||function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(p){try{l(n.next(p))}catch(b){s(b)}}function h(p){try{l(n.throw(p))}catch(b){s(b)}}function l(p){p.done?a(p.value):i(p.value).then(c,h)}l((n=n.apply(e,r||[])).next())})},__generator=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(t=0)),t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(e,t)}catch(p){l=[6,p],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},__values$2=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);
294if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=globalThis&&globalThis.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],s;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return a},__spreadArray=globalThis&&globalThis.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function changeCraftsmanEmployeeStatus(e){return __awaiter(this,void 0,void 0,function(){var r,t,n,i;return __generator(this,function(a){switch(a.label){case 0:return r=getCheckedEmployeeIds(e),t=getCsrfTokenFromWebPage(),t?(n="/account/craftsman-employee/status-change/",[4,fetch(n,{method:"POST",headers:{"X-CSRF-TOKEN":t,"Content-Type":"application/json; charset=utf-8"},body:r})]):[3,2];case 1:i=a.sent(),i.ok?window.location.reload():i.text().then(function(s){return showErrorSection(s)}),a.label=2;case 2:return[2]}})})}function showErrorSection(e){return __awaiter(this,void 0,void 0,function(){var r,t,n,i,a,s,c,h;return __generator(this,function(l){try{for(r=__values$2(document.querySelectorAll(".craftsman-employee-overview__activation-hints:not(.hidden)")),t=r.next();!t.done;t=r.next())n=t.value,n.classList.add("hidden")}catch(p){c={error:p}}finally{try{t&&!t.done&&(h=r.return)&&h.call(r)}finally{if(c)throw c.error}}return i=document.querySelector(".craftsman-employee-overview__activation-refused"),a=document.querySelector(".craftsman-employee-overview__activation-no-employee"),s=document.querySelector(".craftsman-employee-overview__activation-employee-active"),e==="error.refused"&&i?i.classList.remove("hidden"):e==="error.employee-active"&&s?s.classList.remove("hidden"):e==="error.no-employee"&&a&&a.classList.remove("hidden"),[2]})})}function getCheckedEmployeeIds(e){return JSON.stringify({employeeIds:__spreadArray([],__read(document.querySelectorAll('input[type="checkbox"].craftsman-employee-checkbox:checked')),!1).map(function(r){return r.getAttribute("data-craftsman-employee-id")}),toActivate:e})}function activateCraftsmanEmployee(){changeCraftsmanEmployeeStatus(!0)}function deactivateCraftsmanEmployee(){changeCraftsmanEmployeeStatus(!1)}function listenToCraftsmanEmployeeStatusChange(){var e=document.getElementById("employee-activation");e&&e.addEventListener("click",activateCraftsmanEmployee);var r=document.getElementById("employee-deactivation");r&&r.addEventListener("click",deactivateCraftsmanEmployee)}function listenToCraftsmanEmployeeEvents(){listenToCraftsmanEmployeeStatusChange()}var ValidationGroups=function(){function e(){this.withDelivery=!1,this.withClickAndCollect=!1,this.country="",this.corporate=!1,this.requirePhone=!0,this.withHwContext=!1,this.handleNewAddressRadioButton=!1}return e.prototype.init=function(){var r=document.getElementById("channel"),t=r&&r.value==="b2c";this.withHwContext=r&&r.value==="hw";var n=document.getElementById("withDelivery");this.withDelivery=n&&n.value==="true"||!t;var i=document.getElementById("withClickAndCollect");this.withClickAndCollect=i&&i.value==="true"||!t;var a=document.getElementById("countryCode");this.country=a?a.value:"";var s=document.getElementById("checkbox1");this.corporate=s&&(s.checked||s.type==="hidden"),this.requirePhone=t,this.handleNewAddressRadioButton=document.getElementById("radioNewAddress")!==null},e}(),groups=new ValidationGroups,validationStatusMap={companyName:!0,firstname:!0,lastname:!0,street:!0,streetNumber:!0,addressAddition:!0,zipCode:!0,city:!0,phone:!0,email:!0,name1:!0,name2:!0,name3:!0};function initRequiredFields(){for(var e in inputFieldIDs)validationStatusMap[e]=document.getElementById(inputFieldIDs[e])===null}function validateEmail(e){return isValid(e)&&checkCustomEmail(e)}function isValid(e){if(e==null||e==="")return!1;if(e.endsWith("."))return!1;
294var r=/^(.+)@(\S+)$/;return r.test(e)}function checkCustomEmail(e){var r=/^\s*[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+$/;return r.test(e)}function validateForNotBlank(e,r,t){var n=e.value,i=isInputEmpty(n);return t&&(i?showErrorMessage(e,r,errorIDs.notBlank):removeErrorMessage(e,r,errorIDs.notBlank)),!i}function validateLength(e,r,t){return validateSize(e,r,MIN_LENGTH,MAX_LENGTH,errorIDs.validSize1To60,t)}function validateStreetnumberLength(e,r,t){return validateSize(e,r,MIN_STREETNUMBER_LENGTH,MAX_STREETNUMBER_LENGTH,errorIDs.validSize1To10,t)}function validateAddressAdditionLength(e,r,t){return validateSize(e,r,MIN_LENGTH_ADDRESS_ADDITION,MAX_LENGTH_ADDRESS_ADDITION,errorIDs.validSize0To60,t)}function validateZipCodeGermanyLength(e,r,t){return validateSize(e,r,ZIP_GERMANY_LENGTH,ZIP_GERMANY_LENGTH,errorIDs.validSize5To5,t)}function validateZipCodeAustriaSwitzerlandLength(e,r,t){return validateSize(e,r,ZIP_AUSTRIA_SWISS_LENGTH,ZIP_AUSTRIA_SWISS_LENGTH,errorIDs.validSize4To4,t)}function validatePhoneNumberLength(e,r,t){return validateSize(e,r,MIN_PHONENUMBER_LENGTH,MAX_PHONENUMBER_LENGTH,errorIDs.validSize1To25,t)}function validateEmailLength(e,r,t){return validateSize(e,r,MIN_EMAIL_LENGTH,MAX_EMAIL_LENGTH,errorIDs.validSize5To100,t)}function validatePhoneNumber(e,r,t){return validatePattern(e,r,isValidPhoneNumberOrIsEmpty,errorIDs.validPhoneNumber,t)}function validateForValidEmail(e,r,t){var n=e.value,i=validateEmail(n);return t&&(i?removeErrorMessage(e,r,errorIDs.validEmail):showErrorMessage(e,r,errorIDs.validEmail)),i}function validateForOnlyDigits(e,r,t){return validatePattern(e,r,isOnlyDigitsOrIsEmpty,errorIDs.onlyDigitsZip,t)}function validateSize(e,r,t,n,i,a){var s=e.value,c=hasValidSizeOrIsEmpty(s,t,n);return a&&(c?removeErrorMessage(e,r,i):showErrorMessage(e,r,i)),c}function validatePattern(e,r,t,n,i){var a=e.value.trim(),s=t(a);return i&&(s?removeErrorMessage(e,r,n):showErrorMessage(e,r,n)),s}function isInputEmpty(e){return e.trim().length===0}function hasValidSizeOrIsEmpty(e,r,t){return e=e.trim(),e===""||e.length>=r&&e.length<=t}function isOnlyDigitsOrIsEmpty(e){var r=/^\d+$/;return e=e.trim(),e===""||r.test(e)}function isValidPhoneNumberOrIsEmpty(e){var r=/^(?=.*[0-9])[\s-+/0-9]+$/;return e=e.trim(),e===""||r.test(e)}function validateForAtLeastOneFieldNotBlank(e,r,t,n,i,a){var s,c,h=hasAtLeastOneFieldNotBlank(e,r,t);return a&&(h?removeErrorMessage(n,i,errorIDs.atLeast1Name):(showErrorMessage(n,i,errorIDs.atLeast1Name),(c=(s=n.parentElement)===null||s===void 0?void 0:s.parentElement)===null||c===void 0||c.classList.add("has-error"))),h}function hasAtLeastOneFieldNotBlank(e,r,t){return!!(e.value.trim()||r.value.trim()||t.value.trim())}var validationMethods={companyName:validateCompanyNameField,firstname:validateNameField,lastname:validateNameField,street:validateStreetField,streetNumber:validateStreetNumberField,addressAddition:validateAddressAdditionField,zipCode:validateZipField,city:validateCityField,phone:validatePhoneNumberField,email:validateEmailField,datePicker:validateDatePicker,name1:validateHwNameFields,name2:validateHwNameFields,name3:validateHwNameFields};function validateHwNameFields(e,r,t){var n=!0;if(groups.withHwContext){var i=document.getElementById(inputFieldIDs.name1),a=document.getElementById(inputFieldIDs.name2),s=document.getElementById(inputFieldIDs.name3);n=validateForAtLeastOneFieldNotBlank(i,a,s,e,r,t)}return t&&(n?(e.value&&showValidCheckmark(e),removeErrorClass(e)):removeValidCheckmark(e)),n}function validateDatePicker(e,r,t){return validateForNotBlank(e,r,t)}function validateNameField(e,r,t){var n=validateLength(e,r,t),i=validateForNotBlank(e,r,t);return n&&i}function validateStreetField(e,r,t){var n=!0;(groups.withDelivery||groups.withClickAndCollect)&&(n=validateForNotBlank(e,r,t));var i=!0;return groups.withDelivery&&(i=validateLength(e,r,t)),n&&i}function validateStreetNumberField(e,r,t){var n=!0;(groups.withDelivery||groups.withClickAndCollect)&&(n=validateForNotBlank(e,r,t));var i=!0;return groups.withDelivery&&(i=validateStreetnumberLength(e,r,t)),n&&i}function validateAddressAdditionField(e,r,t){var n=!0;return groups.withDelivery&&(n=validateAddressAdditionLength(e,r,t)),n}function validateZipField(e,r,t){var n=!0;(groups.withDelivery||groups.withClickAndCollect)&&(n=validateForNotBlank(e,r,t));var i=!0,a=!0;return groups.country&&(i=validateForOnlyDigits(e,r,t),isCountryDe()?a=validateZipCodeGermanyLength(e,r,t):(isCountryAt()||isCountryCh())&&(a=vali
294dateZipCodeAustriaSwitzerlandLength(e,r,t))),n&&i&&a}function validateCityField(e,r,t){var n=!0;(groups.withDelivery||groups.withClickAndCollect)&&(n=validateForNotBlank(e,r,t));var i=!0;return groups.withDelivery&&(i=validateLength(e,r,t)),n&&i}function validateCompanyNameField(e,r,t){var n=!0,i=!0;return groups.corporate&&(n=validateForNotBlank(e,r,t),i=validateLength(e,r,t)),n&&i}function validatePhoneNumberField(e,r,t){var n=validatePhoneNumberLength(e,r,t);groups.requirePhone&&n&&(n=validateForNotBlank(e,r,t));var i=validatePhoneNumber(e,r,t);return n&&i}function validateEmailField(e,r,t){var n=validateForNotBlank(e,r,t),i=validateForValidEmail(e,r,t),a=validateEmailLength(e,r,t);return n&&i&&a}function isCountryDe(){return groups.country==="de"||groups.country==="DEU"||groups.country==="DE"}function isCountryAt(){return groups.country==="at"||groups.country==="AUT"||groups.country==="AT"}function isCountryCh(){return groups.country==="ch"||groups.country==="CHE"||groups.country==="CH"}function validateField(e,r,t){t&&resetInputField(e);var n=validationMethods[r];n?.(e,r,t)?(validationStatusMap[r]=!0,t&&showValidCheckmark(e)):validationStatusMap[r]=!1}function validateFields(e){for(var r in inputFieldIDs){var t=document.getElementById(inputFieldIDs[r]);t&&validateField(t,r,e)}}function resetFields(){for(var e in inputFieldIDs){var r=document.getElementById(inputFieldIDs[e]);r&&resetInputField(r)}}var __assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},__assign.apply(this,arguments)},__values$1=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function bindValidatorEvents(){var e,r,t,n,i=function(b){var m=document.getElementById(inputFieldIDs[b]);m&&m.addEventListener("blur",function(){validateField(m,b,!0),updateSubmitButtonState()})};for(var a in inputFieldIDs)i(a);try{for(var s=__values$1(document.getElementsByClassName("validation-dependent")),c=s.next();!c.done;c=s.next()){var h=c.value;h.addEventListener("click",function(b){validateFields(!0),updateSubmitButtonState()||(window.scrollTo({top:0,behavior:"smooth"}),b.preventDefault())})}}catch(b){e={error:b}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}try{for(var l=__values$1(document.getElementsByClassName("reset-validation")),p=l.next();!p.done;p=l.next()){var h=p.value;h.addEventListener("click",function(){resetFields(),updateSubmitButtonState()})}}catch(b){t={error:b}}finally{try{p&&!p.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}function bindCorporateCustomerCheckboxEvent(){var e=document.getElementById("checkout-corporate-checkbox");e&&e.addEventListener("change",function(){groups.corporate=e.checked})}function bindPickUpDateEvents(){var e=document.querySelectorAll(".flatpickr-input[data-flatpickr-type]"),r=document.querySelectorAll('input[type="text"].flatpickr-input');e.forEach(function(t){var n=t,i=n._flatpickr;i&&i.config.onChange.push(function(){resetInputField(t),removeErrorMessage(t,"datePicker",errorIDs.notBlank),showValidCheckmark(t)})}),r.forEach(function(t){t.addEventListener("blur",function(){setTimeout(function(){validateField(t,"datePicker",!0)},100)})})}function initialValidation(){validateFields(!1),updateSubmitButtonState()}function updateSubmitButtonState(){var e;groups.handleNewAddressRadioButton&&(e=checkoutElementNewAddressVisible());var r;return groups.handleNewAddressRadioButton?e?r=validationStatusMapIsValid():r=!0:r=validationStatusMapIsValid(),updateValidationDependentElements(!r),r}function validationStatusMapIsValid(){var e=__assign({},validationStatusMap);return groups.corporate||(e.companyName=!0),Object.values(e).every(function(r){return r})}function checkoutElementNewAddressVisible(){var e=document.getElementById("radioNewAddress"),r=document.getElementById("radioDifferentShippingAddress");return!(e instanceof HTMLInputElement&&r instanceof HTMLInputElement&&(!e.checked||!r.checked))}function updateValidationDependentElements(e){var r,t,n=document.getElementsByClassName("validation-dependent"),i;try{for(var a=__values$1(n),s=a.next();!s.done;s=a.next())i=s.value,i instanceof HTMLButtonElement&&(i.disabled=e)}catch(c){r={error:c}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}}function validateCheckoutRegistrationForm(){document.addEventListener("DOMContentLoaded",function(){groups.init(),initRequiredFields(),initialValidation(),bindValidatorEvents(),bindCorporateCustomerCheckboxEvent(),bindPickUpDateEvents()})}var __values=globalThis&&globalThis.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);
294if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function initAccessibilityFeatures(){document.addEventListener("focusin",function(e){e.target instanceof HTMLElement&&e.target.tooltip&&e.target.tooltip("show")}),window.clickOnEnter=clickOnEnter,window.focusNextAfter=focusNextAfter,window.trapFocus=trapFocus,window.trapModalFocus=trapModalFocus,window.releaseFocus=releaseFocus,window.releaseModalFocus=releaseModalFocus}var focusNextAfter=function(e){var r,t,n=document.querySelector(e);if(n){var i=document.querySelectorAll('[tabindex="0"]');try{for(var a=__values(i),s=a.next();!s.done;s=a.next()){var c=s.value;if(bitwiseAnd(n.compareDocumentPosition(c),Node.DOCUMENT_POSITION_FOLLOWING)){c.focus();return}}}catch(h){r={error:h}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}}},clickOnEnter=function(){if(event&&event.target){var e=event.code;(e==="Enter"||e==="NumpadEnter"||e==="Space")&&event.target.click()}},bitwiseAnd=function(e,r){for(var t=0,n=1;e>0||r>0;)e%2===1&&r%2===1&&(t+=n),e=Math.floor(e/2),r=Math.floor(r/2),n*=2;return t},trapFocus=function(e){var r,t,n=typeof e=="string"?document.querySelector(e):e;if(n){releaseFocus(),n.parentNode!==document.body&&document.body.appendChild(n);try{for(var i=__values(document.body.children),a=i.next();!a.done;a=i.next()){var s=a.value;s.id!==n.id&&s.setAttribute("inert","")}}catch(c){r={error:c}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}}},trapModalFocus=function(e){trapFocus(e),document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("padding-right",getScrollbarWidth())},releaseFocus=function(){var e,r;try{for(var t=__values(document.body.children),n=t.next();!n.done;n=t.next()){var i=n.value;i.removeAttribute("inert")}}catch(a){e={error:a}}finally{try{n&&!n.done&&(r=t.return)&&r.call(t)}finally{if(e)throw e.error}}},releaseModalFocus=function(){releaseFocus(),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("padding-right")},getScrollbarWidth=function(){var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",e.style.position="absolute",document.body.appendChild(e);var r=50-e.clientWidth;return document.body.removeChild(e),r+"px"};function App(){}App.prototype.initialize=function(){function e(L){return/^(GET|HEAD|OPTIONS|TRACE)$/.test(L)}this.fso=new Fso,this.fso.init(),this.fso.addEventListener();const r=".page-detail-view",t=".page-prd-list";$$1(t).length!==0?this.fso.addEventListener(t):$$1(r).length!==0&&this.fso.addEventListener(r),$$1.ajaxSetup({beforeSend:function(L,k){!e(k.type)&&!this.crossDomain&&L.setRequestHeader($$1('meta[name="csrf-header"]').attr("content"),$$1('meta[name="csrf"]').attr("content"))}}),new Content,this.tracking=new Trackinghelper,this.localization=new Localization;const n=new ExpertAdvice;$$1(r).length!==0?(new Ads().init(this.tracking),n.makeAllAdvicesVisible()):$$1(".account").length!==0?new Account:$$1(".basket-layout").length!==0?new Cart().init():$$1(".page-checkout").length!==0?(new Checkout,addListenerToSelectExistingShippingAddressClick()):$$1(t).length!==0?(new Product,new PromotionTeaserListingResizer().resize()):$$1(".no-search-result").length!==0?new Product:$$1("#tab-contact-form").length!==0&&new MerchantTabContactForm().init(),$$1(".accordion-teaser").length!==0&&new Service,new General,new Navi().init(),new SliderInitializer().multiInit(),new Captcha,new LocalizationForm().init(this.tracking,this.localization),new ContactForm().init(this.tracking,this.localization),new StoreLocator,new NearestMerchant().init(),new HeaderNotifications().init();const i=new ColorService;n.initAllListeners(),i.reevaluate(),[...document.querySelectorAll(".landing-page__contact-form-btn-opener")].forEach(L=>new LandingPageContactForm(L)),new PaymentSelection().listenToPaymentSelection();const s=".header__search",c=document.querySelector(s);c&&new HeaderSearchBoxResizer(c),flatpickrRadioSwitcher(),flatpickrRadioRequiredChecker(),listenToBackdropScroll(),dialogModalListeners(),addScrollToFilterBtn(),listenToAccordionsToAddAddFuntionality(),loginServiceListenerInit(),addAddressListener(),addUserRolesListener(),addMemberOverviewListener(),modalListeners(),addListenerToMemberEditForm(),addListenerToAllTabSelectorBtns(),addMerchantEditListeners(),listenToDetailsTagsWithGroupData(),dialogModalListeners(),listenToAccountSettingsEvents(),addAllMerchantGroupListeners(),listenToFilterSelection(),listenToCheckboxHelperEvents(),listenToCraftsmanEvents(),listenToOrderEvents(),listenToMerchantSearchNavigation(),listenToHeaderUnfoldArrowClick(),listenToDisclosureIcon(),listenToRegistrationEvents(),listenToOpeningProductCinema(),startSliderConfigurationListener(),listenToAccountExportEvents(),window.addEventListener("load",()=>{listenToAllSvgColorChanges()}),listenToAssemblyAndPlaningRequestInCheckout(),initiateGaListeners(),handleAnchorsSmoothly(),adsListeners(),listenToNewsletterCheckoutCheckbox(),listenToCraftsmanEmployeeEvents(),validateCheckoutRegistrationForm(),initAccessibilityFeatures(),Pubsub.publish("core.attach",document),enquire.register("screen and (max-width:767px)",{match:function(){Pubsub.publish("res.xs",!0)},unmatch:function(){Pubsub.publish("res.xs",!1)}}),enquire.register("screen and (min-width:768px) and (max-width:1024px)",{match:function(){Pubsub.publish("res.sm",!0)},unmatch:function(){Pubsub.publish("res.sm",!1)}}),enquire.register("screen and (min-width:1025px) and (max-width:1199px)",{match:function(){Pubsub.publish("res.md",!0)},unmatch:function(){Pubsub.publish("res.md",!1)}}),enquire.register("screen and (min-width:1200px)",{match:function(){Pubsub.publish("res.lg",!0)},unmatch:function(){Pubsub.publish("res.lg",!1)}}),enquire.register("screen and (min-width:1025px)",{match:function(){Pubsub.publish("bp.desktop",!0)},unmatch:function(){Pubsub.publish("bp.desktop",!1)}});let h=$$1(".go-top");h.length>0&&($$1(window).off("scroll.gotop").on("scroll.gotop",function(){$$1(this).scrollTop()>600?document.body.classList.add("scrolled"):document.body.classList.remove("scrolled")}),h.on("click",function(L){L.preventDefault(),$$1("html, body").animate({scrollTop:0},300)}));let l=$$1(".js_toggle-content");
294if(l.length>0){var p=$$1(),b=$$1();l.each(function(L,k){$$1(k).on("click.toggleHandler",".folded .js_toggle-trigger",m)})}function m(L){L.preventDefault(),p=$$1(L.delegateTarget),b=$$1(".js_toggle-item",p),$$1(p).off("click.toggleHandler"),b.each(function(k,T){$$1(T).slideToggle(200,function(){k===b.length-1&&(p.children().toggleClass("folded"),p.on("click.toggleHandler",".folded .js_toggle-trigger",m))})})}let A=$$1(".modal.show-on-ready");A.length>0&&A.each(function(){$$1(this).modal("show")})};class PluginLoader{constructor(r){this.resolved=r}enqueue(...r){const t=r.pop();this.define(r,t)}define(r,t){const n=r.map(i=>this.resolve(i));Promise.all(n).then(i=>t(...i))}resolve(r){const t=c=>this.loadDependency(c),n=c=>this.resolved[c],i=(c,h)=>this.resolved[c]=h,a=c=>console&&console.log&&console.log(c),s=n(r);if(typeof s>"u"){const c=t(r).catch(h=>a("Plugin dependency failed to load: "+r+" Reason: "+h));return i(r,c),c}else return s}loadDependency(r){return new Promise(function(n,i){$$1.ajax({url:r,dataType:"script",success:function(){n()},error:function(a,s,c){i(c)}})})}}const env={jquery:Promise.resolve($$1)},loader=new PluginLoader(env);window._is_plugin=window._is_plugin||function(){(_is_plugin.q=_is_plugin.q||[]).push(arguments)};const q=window._is_plugin.q||[];window._is_plugin=loader.enqueue.bind(loader);window.define=loader.define.bind(loader);q.forEach(e=>loader.enqueue(...e));window.jQuery=$$1;window.$=$$1;const app=new App;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{app.initialize()}):app.initialize();
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.