diff --git a/assets/index-BG1PhAAJ.js b/assets/index-DW9FtRAs.js similarity index 62% rename from assets/index-BG1PhAAJ.js rename to assets/index-DW9FtRAs.js index d1ba391..9ec06b1 100644 --- a/assets/index-BG1PhAAJ.js +++ b/assets/index-DW9FtRAs.js @@ -1,4 +1,4 @@ -var W$=Object.defineProperty;var q$=(n,o,i)=>o in n?W$(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i;var li=(n,o,i)=>q$(n,typeof o!="symbol"?o+"":o,i);function _$(n,o){for(var i=0;is[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();var Fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Pu(n){if(n.__esModule)return n;var o=n.default;if(typeof o=="function"){var i=function s(){return this instanceof s?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};i.prototype=o.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var l=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(i,s,l.get?l:{enumerable:!0,get:function(){return n[s]}})}),i}var bM={exports:{}},k3={},wM={exports:{}},Vn={};/** +var aL=Object.defineProperty;var sL=(n,o,i)=>o in n?aL(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i;var ui=(n,o,i)=>sL(n,typeof o!="symbol"?o+"":o,i);function lL(n,o){for(var i=0;is[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();var Fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Pu(n){if(n.__esModule)return n;var o=n.default;if(typeof o=="function"){var i=function s(){return this instanceof s?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};i.prototype=o.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var l=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(i,s,l.get?l:{enumerable:!0,get:function(){return n[s]}})}),i}var MM={exports:{}},k3={},PM={exports:{}},Vn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var W$=Object.defineProperty;var q$=(n,o,i)=>o in n?W$(n,o,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var om=Symbol.for("react.element"),Y$=Symbol.for("react.portal"),K$=Symbol.for("react.fragment"),X$=Symbol.for("react.strict_mode"),J$=Symbol.for("react.profiler"),Z$=Symbol.for("react.provider"),eL=Symbol.for("react.context"),tL=Symbol.for("react.forward_ref"),rL=Symbol.for("react.suspense"),nL=Symbol.for("react.memo"),oL=Symbol.for("react.lazy"),E7=Symbol.iterator;function iL(n){return n===null||typeof n!="object"?null:(n=E7&&n[E7]||n["@@iterator"],typeof n=="function"?n:null)}var xM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yM=Object.assign,AM={};function vp(n,o,i){this.props=n,this.context=o,this.refs=AM,this.updater=i||xM}vp.prototype.isReactComponent={};vp.prototype.setState=function(n,o){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,o,"setState")};vp.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function CM(){}CM.prototype=vp.prototype;function S6(n,o,i){this.props=n,this.context=o,this.refs=AM,this.updater=i||xM}var I6=S6.prototype=new CM;I6.constructor=S6;yM(I6,vp.prototype);I6.isPureReactComponent=!0;var M7=Array.isArray,kM=Object.prototype.hasOwnProperty,E6={current:null},SM={key:!0,ref:!0,__self:!0,__source:!0};function IM(n,o,i){var s,l={},c=null,d=null;if(o!=null)for(s in o.ref!==void 0&&(d=o.ref),o.key!==void 0&&(c=""+o.key),o)kM.call(o,s)&&!SM.hasOwnProperty(s)&&(l[s]=o[s]);var f=arguments.length-2;if(f===1)l.children=i;else if(1o in n?W$(n,o,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var uL=x,dL=Symbol.for("react.element"),fL=Symbol.for("react.fragment"),pL=Object.prototype.hasOwnProperty,hL=uL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mL={key:!0,ref:!0,__self:!0,__source:!0};function MM(n,o,i){var s,l={},c=null,d=null;i!==void 0&&(c=""+i),o.key!==void 0&&(c=""+o.key),o.ref!==void 0&&(d=o.ref);for(s in o)pL.call(o,s)&&!mL.hasOwnProperty(s)&&(l[s]=o[s]);if(n&&n.defaultProps)for(s in o=n.defaultProps,o)l[s]===void 0&&(l[s]=o[s]);return{$$typeof:dL,type:n,key:c,ref:d,props:l,_owner:hL.current}}k3.Fragment=fL;k3.jsx=MM;k3.jsxs=MM;bM.exports=k3;var b=bM.exports;function P(){return P=Object.assign?Object.assign.bind():function(n){for(var o=1;o{if(s.toString().match(/^(components|slots)$/))i[s]=P({},n[s],i[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const l=n[s]||{},c=o[s];i[s]={},!c||!Object.keys(c)?i[s]=l:!l||!Object.keys(l)?i[s]=c:(i[s]=P({},c),Object.keys(l).forEach(d=>{i[s][d]=gh(l[d],c[d])}))}else i[s]===void 0&&(i[s]=n[s])}),i}const RM=x.createContext(void 0);function yL({value:n,children:o}){return b.jsx(RM.Provider,{value:n,children:o})}function AL(n){const{theme:o,name:i,props:s}=n;if(!o||!o.components||!o.components[i])return s;const l=o.components[i];return l.defaultProps?gh(l.defaultProps,s):!l.styleOverrides&&!l.variants?gh(l,s):s}function CL({props:n,name:o}){const i=x.useContext(RM);return AL({props:n,name:o,theme:{components:i}})}function Zt(n){return CL(n)}function bu(n){let o="https://mui.com/production-error/?code="+n;for(let i=1;i0?ds(bp,--wl):0,W2--,wa===10&&(W2=1,I3--),wa}function $l(){return wa=wl2||bh(wa)>3?"":" "}function HL(n,o){for(;--o&&$l()&&!(wa<48||wa>102||wa>57&&wa<65||wa>70&&wa<97););return im(n,zg()+(o<6&&Oc()==32&&$l()==32))}function Mx(n){for(;$l();)switch(wa){case n:return wl;case 34:case 39:n!==34&&n!==39&&Mx(wa);break;case 40:n===41&&Mx(n);break;case 92:$l();break}return wl}function UL(n,o){for(;$l()&&n+wa!==57;)if(n+wa===84&&Oc()===47)break;return"/*"+im(o,wl-1)+"*"+S3(n===47?n:$l())}function GL(n){for(;!bh(Oc());)$l();return im(n,wl)}function VL(n){return LM(Ug("",null,null,null,[""],n=$M(n),0,[0],n))}function Ug(n,o,i,s,l,c,d,f,p){for(var m=0,g=0,v=d,w=0,A=0,k=0,C=1,M=1,S=1,I=0,E="",j=l,B=c,F=s,O=E;M;)switch(k=I,I=$l()){case 40:if(k!=108&&ds(O,v-1)==58){Ex(O+=wo(Hg(I),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:O+=Hg(I);break;case 9:case 10:case 13:case 32:O+=zL(k);break;case 92:O+=HL(zg()-1,7);continue;case 47:switch(Oc()){case 42:case 47:Zm(QL(UL($l(),zg()),o,i),p);break;default:O+="/"}break;case 123*C:f[m++]=kc(O)*S;case 125*C:case 59:case 0:switch(I){case 0:case 125:M=0;case 59+g:S==-1&&(O=wo(O,/\f/g,"")),A>0&&kc(O)-v&&Zm(A>32?O7(O+";",s,i,v-1):O7(wo(O," ","")+";",s,i,v-2),p);break;case 59:O+=";";default:if(Zm(F=j7(O,o,i,m,g,l,f,E,j=[],B=[],v),c),I===123)if(g===0)Ug(O,o,F,F,j,c,v,f,B);else switch(w===99&&ds(O,3)===110?100:w){case 100:case 108:case 109:case 115:Ug(n,F,F,s&&Zm(j7(n,F,F,0,0,l,f,E,l,j=[],v),B),l,B,v,f,s?j:B);break;default:Ug(O,F,F,F,[""],B,0,f,B)}}m=g=A=0,C=S=1,E=O="",v=d;break;case 58:v=1+kc(O),A=k;default:if(C<1){if(I==123)--C;else if(I==125&&C++==0&&LL()==125)continue}switch(O+=S3(I),I*C){case 38:S=g>0?1:(O+="\f",-1);break;case 44:f[m++]=(kc(O)-1)*S,S=1;break;case 64:Oc()===45&&(O+=Hg($l())),w=Oc(),g=v=kc(E=O+=GL(zg())),I++;break;case 45:k===45&&kc(O)==2&&(C=0)}}return c}function j7(n,o,i,s,l,c,d,f,p,m,g){for(var v=l-1,w=l===0?c:[""],A=O6(w),k=0,C=0,M=0;k0?w[S]+" "+I:wo(I,/&\f/g,w[S])))&&(p[M++]=E);return E3(n,o,i,l===0?P6:f,p,m,g)}function QL(n,o,i){return E3(n,o,i,TM,S3($L()),vh(n,2,-2),0)}function O7(n,o,i,s){return E3(n,o,i,j6,vh(n,0,s),vh(n,s+1,-1),s)}function B2(n,o){for(var i="",s=O6(n),l=0;l6)switch(ds(n,o+1)){case 109:if(ds(n,o+4)!==45)break;case 102:return wo(n,/(.+:)(.+)-([^]+)/,"$1"+bo+"$2-$3$1"+wv+(ds(n,o+3)==108?"$3":"$2-$3"))+n;case 115:return~Ex(n,"stretch")?zM(wo(n,"stretch","fill-available"),o)+n:n}break;case 4949:if(ds(n,o+1)!==115)break;case 6444:switch(ds(n,kc(n)-3-(~Ex(n,"!important")&&10))){case 107:return wo(n,":",":"+bo)+n;case 101:return wo(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bo+(ds(n,14)===45?"inline-":"")+"box$3$1"+bo+"$2$3$1"+js+"$2box$3")+n}break;case 5936:switch(ds(n,o+11)){case 114:return bo+n+js+wo(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return bo+n+js+wo(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return bo+n+js+wo(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return bo+n+js+n+n}return n}var ez=function(o,i,s,l){if(o.length>-1&&!o.return)switch(o.type){case j6:o.return=zM(o.value,o.length);break;case FM:return B2([Kp(o,{value:wo(o.value,"@","@"+bo)})],l);case P6:if(o.length)return NL(o.props,function(c){switch(DL(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return B2([Kp(o,{props:[wo(c,/:(read-\w+)/,":"+wv+"$1")]})],l);case"::placeholder":return B2([Kp(o,{props:[wo(c,/:(plac\w+)/,":"+bo+"input-$1")]}),Kp(o,{props:[wo(c,/:(plac\w+)/,":"+wv+"$1")]}),Kp(o,{props:[wo(c,/:(plac\w+)/,js+"input-$1")]})],l)}return""})}},tz=[ez],R6=function(o){var i=o.key;if(i==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(C){var M=C.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var l=o.stylisPlugins||tz,c={},d,f=[];d=o.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(C){for(var M=C.getAttribute("data-emotion").split(" "),S=1;S{if(s.toString().match(/^(components|slots)$/))i[s]=P({},n[s],i[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const l=n[s]||{},c=o[s];i[s]={},!c||!Object.keys(c)?i[s]=l:!l||!Object.keys(l)?i[s]=c:(i[s]=P({},c),Object.keys(l).forEach(d=>{i[s][d]=mh(l[d],c[d])}))}else i[s]===void 0&&(i[s]=n[s])}),i}const UM=x.createContext(void 0);function FL({value:n,children:o}){return b.jsx(UM.Provider,{value:n,children:o})}function DL(n){const{theme:o,name:i,props:s}=n;if(!o||!o.components||!o.components[i])return s;const l=o.components[i];return l.defaultProps?mh(l.defaultProps,s):!l.styleOverrides&&!l.variants?mh(l,s):s}function NL({props:n,name:o}){const i=x.useContext(UM);return DL({props:n,name:o,theme:{components:i}})}function Zt(n){return NL(n)}function vu(n){let o="https://mui.com/production-error/?code="+n;for(let i=1;i0?fs(bp,--wl):0,Q2--,wa===10&&(Q2=1,I3--),wa}function Nl(){return wa=wl2||vh(wa)>3?"":" "}function tz(n,o){for(;--o&&Nl()&&!(wa<48||wa>102||wa>57&&wa<65||wa>70&&wa<97););return om(n,zg()+(o<6&&Pc()==32&&Nl()==32))}function jx(n){for(;Nl();)switch(wa){case n:return wl;case 34:case 39:n!==34&&n!==39&&jx(wa);break;case 40:n===41&&jx(n);break;case 92:Nl();break}return wl}function rz(n,o){for(;Nl()&&n+wa!==57;)if(n+wa===84&&Pc()===47)break;return"/*"+om(o,wl-1)+"*"+S3(n===47?n:Nl())}function nz(n){for(;!vh(Pc());)Nl();return om(n,wl)}function oz(n){return YM(Ug("",null,null,null,[""],n=_M(n),0,[0],n))}function Ug(n,o,i,s,l,c,d,f,p){for(var m=0,g=0,v=d,w=0,A=0,k=0,C=1,M=1,S=1,I=0,E="",j=l,B=c,D=s,R=E;M;)switch(k=I,I=Nl()){case 40:if(k!=108&&fs(R,v-1)==58){Px(R+=Ao(Hg(I),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=Hg(I);break;case 9:case 10:case 13:case 32:R+=ez(k);break;case 92:R+=tz(zg()-1,7);continue;case 47:switch(Pc()){case 42:case 47:Zm(iz(rz(Nl(),zg()),o,i),p);break;default:R+="/"}break;case 123*C:f[m++]=Cc(R)*S;case 125*C:case 59:case 0:switch(I){case 0:case 125:M=0;case 59+g:S==-1&&(R=Ao(R,/\f/g,"")),A>0&&Cc(R)-v&&Zm(A>32?z7(R+";",s,i,v-1):z7(Ao(R," ","")+";",s,i,v-2),p);break;case 59:R+=";";default:if(Zm(D=L7(R,o,i,m,g,l,f,E,j=[],B=[],v),c),I===123)if(g===0)Ug(R,o,D,D,j,c,v,f,B);else switch(w===99&&fs(R,3)===110?100:w){case 100:case 108:case 109:case 115:Ug(n,D,D,s&&Zm(L7(n,D,D,0,0,l,f,E,l,j=[],v),B),l,B,v,f,s?j:B);break;default:Ug(R,D,D,D,[""],B,0,f,B)}}m=g=A=0,C=S=1,E=R="",v=d;break;case 58:v=1+Cc(R),A=k;default:if(C<1){if(I==123)--C;else if(I==125&&C++==0&&ZL()==125)continue}switch(R+=S3(I),I*C){case 38:S=g>0?1:(R+="\f",-1);break;case 44:f[m++]=(Cc(R)-1)*S,S=1;break;case 64:Pc()===45&&(R+=Hg(Nl())),w=Pc(),g=v=Cc(E=R+=nz(zg())),I++;break;case 45:k===45&&Cc(R)==2&&(C=0)}}return c}function L7(n,o,i,s,l,c,d,f,p,m,g){for(var v=l-1,w=l===0?c:[""],A=R6(w),k=0,C=0,M=0;k0?w[S]+" "+I:Ao(I,/&\f/g,w[S])))&&(p[M++]=E);return E3(n,o,i,l===0?j6:f,p,m,g)}function iz(n,o,i){return E3(n,o,i,VM,S3(JL()),gh(n,2,-2),0)}function z7(n,o,i,s){return E3(n,o,i,O6,gh(n,0,s),gh(n,s+1,-1),s)}function R2(n,o){for(var i="",s=R6(n),l=0;l6)switch(fs(n,o+1)){case 109:if(fs(n,o+4)!==45)break;case 102:return Ao(n,/(.+:)(.+)-([^]+)/,"$1"+yo+"$2-$3$1"+wv+(fs(n,o+3)==108?"$3":"$2-$3"))+n;case 115:return~Px(n,"stretch")?KM(Ao(n,"stretch","fill-available"),o)+n:n}break;case 4949:if(fs(n,o+1)!==115)break;case 6444:switch(fs(n,Cc(n)-3-(~Px(n,"!important")&&10))){case 107:return Ao(n,":",":"+yo)+n;case 101:return Ao(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yo+(fs(n,14)===45?"inline-":"")+"box$3$1"+yo+"$2$3$1"+js+"$2box$3")+n}break;case 5936:switch(fs(n,o+11)){case 114:return yo+n+js+Ao(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return yo+n+js+Ao(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return yo+n+js+Ao(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return yo+n+js+n+n}return n}var hz=function(o,i,s,l){if(o.length>-1&&!o.return)switch(o.type){case O6:o.return=KM(o.value,o.length);break;case QM:return R2([Yp(o,{value:Ao(o.value,"@","@"+yo)})],l);case j6:if(o.length)return XL(o.props,function(c){switch(KL(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return R2([Yp(o,{props:[Ao(c,/:(read-\w+)/,":"+wv+"$1")]})],l);case"::placeholder":return R2([Yp(o,{props:[Ao(c,/:(plac\w+)/,":"+yo+"input-$1")]}),Yp(o,{props:[Ao(c,/:(plac\w+)/,":"+wv+"$1")]}),Yp(o,{props:[Ao(c,/:(plac\w+)/,js+"input-$1")]})],l)}return""})}},mz=[hz],B6=function(o){var i=o.key;if(i==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(C){var M=C.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var l=o.stylisPlugins||mz,c={},d,f=[];d=o.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(C){for(var M=C.getAttribute("data-emotion").split(" "),S=1;S=4;++s,l-=4)i=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,o=(i&65535)*1540483477+((i>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(l){case 3:o^=(n.charCodeAt(s+2)&255)<<16;case 2:o^=(n.charCodeAt(s+1)&255)<<8;case 1:o^=n.charCodeAt(s)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}var pz={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hz=!1,mz=/[A-Z]|^ms/g,gz=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qM=function(o){return o.charCodeAt(1)===45},B7=function(o){return o!=null&&typeof o!="boolean"},uw=BM(function(n){return qM(n)?n:n.replace(mz,"-$&").toLowerCase()}),T7=function(o,i){switch(o){case"animation":case"animationName":if(typeof i=="string")return i.replace(gz,function(s,l,c){return Sc={name:l,styles:c,next:Sc},l})}return pz[o]!==1&&!qM(o)&&typeof i=="number"&&i!==0?i+"px":i},vz="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wh(n,o,i){if(i==null)return"";var s=i;if(s.__emotion_styles!==void 0)return s;switch(typeof i){case"boolean":return"";case"object":{var l=i;if(l.anim===1)return Sc={name:l.name,styles:l.styles,next:Sc},l.name;var c=i;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)Sc={name:d.name,styles:d.styles,next:Sc},d=d.next;var f=c.styles+";";return f}return bz(n,o,i)}case"function":{if(n!==void 0){var p=Sc,m=i(n);return Sc=p,wh(n,o,m)}break}}var g=i;if(o==null)return g;var v=o[g];return v!==void 0?v:g}function bz(n,o,i){var s="";if(Array.isArray(i))for(var l=0;l96?Az:Cz},L7=function(o,i,s){var l;if(i){var c=i.shouldForwardProp;l=o.__emotion_forwardProp&&c?function(d){return o.__emotion_forwardProp(d)&&c(d)}:c}return typeof l!="function"&&s&&(l=o.__emotion_forwardProp),l},kz=!1,Sz=function(o){var i=o.cache,s=o.serialized,l=o.isStringTag;return QM(i,s,l),xz(function(){return WM(i,s,l)}),null},Iz=function n(o,i){var s=o.__emotion_real===o,l=s&&o.__emotion_base||o,c,d;i!==void 0&&(c=i.label,d=i.target);var f=L7(o,i,s),p=f||$7(l),m=!p("as");return function(){var g=arguments,v=s&&o.__emotion_styles!==void 0?o.__emotion_styles.slice(0):[];if(c!==void 0&&v.push("label:"+c+";"),g[0]==null||g[0].raw===void 0)v.push.apply(v,g);else{v.push(g[0][0]);for(var w=g.length,A=1;Ao(Pz(l)?i:l):o;return b.jsx(yz,{styles:s})}function N6(n,o){return Px(n,o)}const ZM=(n,o)=>{Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=o(n.__emotion_styles))},jz=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:JM,StyledEngineProvider:Mz,ThemeContext:am,css:wu,default:N6,internal_processStyles:ZM,keyframes:cc},Symbol.toStringTag,{value:"Module"}));function Qe(n,o){if(n==null)return{};var i={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.includes(s))continue;i[s]=n[s]}return i}function eu(n){if(typeof n!="object"||n===null)return!1;const o=Object.getPrototypeOf(n);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function eP(n){if(!eu(n))return n;const o={};return Object.keys(n).forEach(i=>{o[i]=eP(n[i])}),o}function Ks(n,o,i={clone:!0}){const s=i.clone?P({},n):n;return eu(n)&&eu(o)&&Object.keys(o).forEach(l=>{eu(o[l])&&Object.prototype.hasOwnProperty.call(n,l)&&eu(n[l])?s[l]=Ks(n[l],o[l],i):i.clone?s[l]=eu(o[l])?eP(o[l]):o[l]:s[l]=o[l]}),s}const Oz=Object.freeze(Object.defineProperty({__proto__:null,default:Ks,isPlainObject:eu},Symbol.toStringTag,{value:"Module"})),Rz=["values","unit","step"],Bz=n=>{const o=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return o.sort((i,s)=>i.val-s.val),o.reduce((i,s)=>P({},i,{[s.key]:s.val}),{})};function tP(n){const{values:o={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5}=n,l=Qe(n,Rz),c=Bz(o),d=Object.keys(c);function f(w){return`@media (min-width:${typeof o[w]=="number"?o[w]:w}${i})`}function p(w){return`@media (max-width:${(typeof o[w]=="number"?o[w]:w)-s/100}${i})`}function m(w,A){const k=d.indexOf(A);return`@media (min-width:${typeof o[w]=="number"?o[w]:w}${i}) and (max-width:${(k!==-1&&typeof o[d[k]]=="number"?o[d[k]]:A)-s/100}${i})`}function g(w){return d.indexOf(w)+1`@media (min-width:${$6[n]}px)`};function xl(n,o,i){const s=n.theme||{};if(Array.isArray(o)){const c=s.breakpoints||z7;return o.reduce((d,f,p)=>(d[c.up(c.keys[p])]=i(o[p]),d),{})}if(typeof o=="object"){const c=s.breakpoints||z7;return Object.keys(o).reduce((d,f)=>{if(Object.keys(c.values||$6).indexOf(f)!==-1){const p=c.up(f);d[p]=i(o[f],f)}else{const p=f;d[p]=o[p]}return d},{})}return i(o)}function rP(n={}){var o;return((o=n.keys)==null?void 0:o.reduce((s,l)=>{const c=n.up(l);return s[c]={},s},{}))||{}}function nP(n,o){return n.reduce((i,s)=>{const l=i[s];return(!l||Object.keys(l).length===0)&&delete i[s],i},o)}function Fz(n,...o){const i=rP(n),s=[i,...o].reduce((l,c)=>Ks(l,c),{});return nP(Object.keys(i),s)}function Dz(n,o){if(typeof n!="object")return{};const i={},s=Object.keys(o);return Array.isArray(n)?s.forEach((l,c)=>{c{n[l]!=null&&(i[l]=!0)}),i}function ef({values:n,breakpoints:o,base:i}){const s=i||Dz(n,o),l=Object.keys(s);if(l.length===0)return n;let c;return l.reduce((d,f,p)=>(Array.isArray(n)?(d[f]=n[p]!=null?n[p]:n[c],c=p):typeof n=="object"?(d[f]=n[f]!=null?n[f]:n[c],c=f):d[f]=n,d),{})}function Ke(n){if(typeof n!="string")throw new Error(bu(7));return n.charAt(0).toUpperCase()+n.slice(1)}const Nz=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));function q2(n,o,i=!0){if(!o||typeof o!="string")return null;if(n&&n.vars&&i){const s=`vars.${o}`.split(".").reduce((l,c)=>l&&l[c]?l[c]:null,n);if(s!=null)return s}return o.split(".").reduce((s,l)=>s&&s[l]!=null?s[l]:null,n)}function xv(n,o,i,s=i){let l;return typeof n=="function"?l=n(i):Array.isArray(n)?l=n[i]||s:l=q2(n,i)||s,o&&(l=o(l,s,n)),l}function sa(n){const{prop:o,cssProperty:i=n.prop,themeKey:s,transform:l}=n,c=d=>{if(d[o]==null)return null;const f=d[o],p=d.theme,m=q2(p,s)||{};return xl(d,f,v=>{let w=xv(m,l,v);return v===w&&typeof v=="string"&&(w=xv(m,l,`${o}${v==="default"?"":Ke(v)}`,v)),i===!1?w:{[i]:w}})};return c.propTypes={},c.filterProps=[o],c}function $z(n){const o={};return i=>(o[i]===void 0&&(o[i]=n(i)),o[i])}const Lz={m:"margin",p:"padding"},zz={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},H7={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hz=$z(n=>{if(n.length>2)if(H7[n])n=H7[n];else return[n];const[o,i]=n.split(""),s=Lz[o],l=zz[i]||"";return Array.isArray(l)?l.map(c=>s+c):[s+l]}),L6=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],z6=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...L6,...z6];function sm(n,o,i,s){var l;const c=(l=q2(n,o,!1))!=null?l:i;return typeof c=="number"?d=>typeof d=="string"?d:c*d:Array.isArray(c)?d=>typeof d=="string"?d:c[d]:typeof c=="function"?c:()=>{}}function H6(n){return sm(n,"spacing",8)}function cf(n,o){if(typeof o=="string"||o==null)return o;const i=Math.abs(o),s=n(i);return o>=0?s:typeof s=="number"?-s:`-${s}`}function Uz(n,o){return i=>n.reduce((s,l)=>(s[l]=cf(o,i),s),{})}function Gz(n,o,i,s){if(o.indexOf(i)===-1)return null;const l=Hz(i),c=Uz(l,s),d=n[i];return xl(n,d,c)}function oP(n,o){const i=H6(n.theme);return Object.keys(n).map(s=>Gz(n,o,s,i)).reduce(X0,{})}function qi(n){return oP(n,L6)}qi.propTypes={};qi.filterProps=L6;function _i(n){return oP(n,z6)}_i.propTypes={};_i.filterProps=z6;function Vz(n=8){if(n.mui)return n;const o=H6({spacing:n}),i=(...s)=>(s.length===0?[1]:s).map(c=>{const d=o(c);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function L3(...n){const o=n.reduce((s,l)=>(l.filterProps.forEach(c=>{s[c]=l}),s),{}),i=s=>Object.keys(s).reduce((l,c)=>o[c]?X0(l,o[c](s)):l,{});return i.propTypes={},i.filterProps=n.reduce((s,l)=>s.concat(l.filterProps),[]),i}function d1(n){return typeof n!="number"?n:`${n}px solid`}function j1(n,o){return sa({prop:n,themeKey:"borders",transform:o})}const Qz=j1("border",d1),Wz=j1("borderTop",d1),qz=j1("borderRight",d1),_z=j1("borderBottom",d1),Yz=j1("borderLeft",d1),Kz=j1("borderColor"),Xz=j1("borderTopColor"),Jz=j1("borderRightColor"),Zz=j1("borderBottomColor"),eH=j1("borderLeftColor"),tH=j1("outline",d1),rH=j1("outlineColor"),z3=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const o=sm(n.theme,"shape.borderRadius",4),i=s=>({borderRadius:cf(o,s)});return xl(n,n.borderRadius,i)}return null};z3.propTypes={};z3.filterProps=["borderRadius"];L3(Qz,Wz,qz,_z,Yz,Kz,Xz,Jz,Zz,eH,z3,tH,rH);const H3=n=>{if(n.gap!==void 0&&n.gap!==null){const o=sm(n.theme,"spacing",8),i=s=>({gap:cf(o,s)});return xl(n,n.gap,i)}return null};H3.propTypes={};H3.filterProps=["gap"];const U3=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const o=sm(n.theme,"spacing",8),i=s=>({columnGap:cf(o,s)});return xl(n,n.columnGap,i)}return null};U3.propTypes={};U3.filterProps=["columnGap"];const G3=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const o=sm(n.theme,"spacing",8),i=s=>({rowGap:cf(o,s)});return xl(n,n.rowGap,i)}return null};G3.propTypes={};G3.filterProps=["rowGap"];const nH=sa({prop:"gridColumn"}),oH=sa({prop:"gridRow"}),iH=sa({prop:"gridAutoFlow"}),aH=sa({prop:"gridAutoColumns"}),sH=sa({prop:"gridAutoRows"}),lH=sa({prop:"gridTemplateColumns"}),cH=sa({prop:"gridTemplateRows"}),uH=sa({prop:"gridTemplateAreas"}),dH=sa({prop:"gridArea"});L3(H3,U3,G3,nH,oH,iH,aH,sH,lH,cH,uH,dH);function T2(n,o){return o==="grey"?o:n}const fH=sa({prop:"color",themeKey:"palette",transform:T2}),pH=sa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:T2}),hH=sa({prop:"backgroundColor",themeKey:"palette",transform:T2});L3(fH,pH,hH);function Bl(n){return n<=1&&n!==0?`${n*100}%`:n}const mH=sa({prop:"width",transform:Bl}),U6=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const o=i=>{var s,l;const c=((s=n.theme)==null||(s=s.breakpoints)==null||(s=s.values)==null?void 0:s[i])||$6[i];return c?((l=n.theme)==null||(l=l.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${c}${n.theme.breakpoints.unit}`}:{maxWidth:c}:{maxWidth:Bl(i)}};return xl(n,n.maxWidth,o)}return null};U6.filterProps=["maxWidth"];const gH=sa({prop:"minWidth",transform:Bl}),vH=sa({prop:"height",transform:Bl}),bH=sa({prop:"maxHeight",transform:Bl}),wH=sa({prop:"minHeight",transform:Bl});sa({prop:"size",cssProperty:"width",transform:Bl});sa({prop:"size",cssProperty:"height",transform:Bl});const xH=sa({prop:"boxSizing"});L3(mH,U6,gH,vH,bH,wH,xH);const lm={border:{themeKey:"borders",transform:d1},borderTop:{themeKey:"borders",transform:d1},borderRight:{themeKey:"borders",transform:d1},borderBottom:{themeKey:"borders",transform:d1},borderLeft:{themeKey:"borders",transform:d1},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:d1},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:z3},color:{themeKey:"palette",transform:T2},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:T2},backgroundColor:{themeKey:"palette",transform:T2},p:{style:_i},pt:{style:_i},pr:{style:_i},pb:{style:_i},pl:{style:_i},px:{style:_i},py:{style:_i},padding:{style:_i},paddingTop:{style:_i},paddingRight:{style:_i},paddingBottom:{style:_i},paddingLeft:{style:_i},paddingX:{style:_i},paddingY:{style:_i},paddingInline:{style:_i},paddingInlineStart:{style:_i},paddingInlineEnd:{style:_i},paddingBlock:{style:_i},paddingBlockStart:{style:_i},paddingBlockEnd:{style:_i},m:{style:qi},mt:{style:qi},mr:{style:qi},mb:{style:qi},ml:{style:qi},mx:{style:qi},my:{style:qi},margin:{style:qi},marginTop:{style:qi},marginRight:{style:qi},marginBottom:{style:qi},marginLeft:{style:qi},marginX:{style:qi},marginY:{style:qi},marginInline:{style:qi},marginInlineStart:{style:qi},marginInlineEnd:{style:qi},marginBlock:{style:qi},marginBlockStart:{style:qi},marginBlockEnd:{style:qi},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:H3},rowGap:{style:G3},columnGap:{style:U3},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bl},maxWidth:{style:U6},minWidth:{transform:Bl},height:{transform:Bl},maxHeight:{transform:Bl},minHeight:{transform:Bl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yH(...n){const o=n.reduce((s,l)=>s.concat(Object.keys(l)),[]),i=new Set(o);return n.every(s=>i.size===Object.keys(s).length)}function AH(n,o){return typeof n=="function"?n(o):n}function iP(){function n(i,s,l,c){const d={[i]:s,theme:l},f=c[i];if(!f)return{[i]:s};const{cssProperty:p=i,themeKey:m,transform:g,style:v}=f;if(s==null)return null;if(m==="typography"&&s==="inherit")return{[i]:s};const w=q2(l,m)||{};return v?v(d):xl(d,s,k=>{let C=xv(w,g,k);return k===C&&typeof k=="string"&&(C=xv(w,g,`${i}${k==="default"?"":Ke(k)}`,k)),p===!1?C:{[p]:C}})}function o(i){var s;const{sx:l,theme:c={}}=i||{};if(!l)return null;const d=(s=c.unstable_sxConfig)!=null?s:lm;function f(p){let m=p;if(typeof p=="function")m=p(c);else if(typeof p!="object")return p;if(!m)return null;const g=rP(c.breakpoints),v=Object.keys(g);let w=g;return Object.keys(m).forEach(A=>{const k=AH(m[A],c);if(k!=null)if(typeof k=="object")if(d[A])w=X0(w,n(A,k,c,d));else{const C=xl({theme:c},k,M=>({[A]:M}));yH(C,k)?w[A]=o({sx:k,theme:c}):w=X0(w,C)}else w=X0(w,n(A,k,c,d))}),nP(v,w)}return Array.isArray(l)?l.map(f):f(l)}return o}const wp=iP();wp.filterProps=["sx"];function aP(n,o){const i=this;return i.vars&&typeof i.getColorSchemeSelector=="function"?{[i.getColorSchemeSelector(n).replace(/(\[[^\]]+\])/,"*:where($1)")]:o}:i.palette.mode===n?o:{}}const CH=["breakpoints","palette","spacing","shape"];function xp(n={},...o){const{breakpoints:i={},palette:s={},spacing:l,shape:c={}}=n,d=Qe(n,CH),f=tP(i),p=Vz(l);let m=Ks({breakpoints:f,direction:"ltr",components:{},palette:P({mode:"light"},s),spacing:p,shape:P({},Tz,c)},d);return m.applyStyles=aP,m=o.reduce((g,v)=>Ks(g,v),m),m.unstable_sxConfig=P({},lm,d==null?void 0:d.unstable_sxConfig),m.unstable_sx=function(v){return wp({sx:v,theme:this})},m}const kH=Object.freeze(Object.defineProperty({__proto__:null,default:xp,private_createBreakpoints:tP,unstable_applyStyles:aP},Symbol.toStringTag,{value:"Module"}));function SH(n){return Object.keys(n).length===0}function G6(n=null){const o=x.useContext(am);return!o||SH(o)?n:o}const IH=xp();function V3(n=IH){return G6(n)}function EH({styles:n,themeId:o,defaultTheme:i={}}){const s=V3(i),l=typeof n=="function"?n(o&&s[o]||s):n;return b.jsx(JM,{styles:l})}const MH=["sx"],PH=n=>{var o,i;const s={systemProps:{},otherProps:{}},l=(o=n==null||(i=n.theme)==null?void 0:i.unstable_sxConfig)!=null?o:lm;return Object.keys(n).forEach(c=>{l[c]?s.systemProps[c]=n[c]:s.otherProps[c]=n[c]}),s};function cm(n){const{sx:o}=n,i=Qe(n,MH),{systemProps:s,otherProps:l}=PH(i);let c;return Array.isArray(o)?c=[s,...o]:typeof o=="function"?c=(...d)=>{const f=o(...d);return eu(f)?P({},s,f):s}:c=P({},s,o),P({},l,{sx:c})}const jH=Object.freeze(Object.defineProperty({__proto__:null,default:wp,extendSxProp:cm,unstable_createStyleFunctionSx:iP,unstable_defaultSxConfig:lm},Symbol.toStringTag,{value:"Module"})),U7=n=>n,OH=()=>{let n=U7;return{configure(o){n=o},generate(o){return n(o)},reset(){n=U7}}},Q3=OH();function sP(n){var o,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(o=0;of!=="theme"&&f!=="sx"&&f!=="as"})(wp);return x.forwardRef(function(p,m){const g=V3(i),v=cm(p),{className:w,component:A="div"}=v,k=Qe(v,RH);return b.jsx(c,P({as:A,ref:m,className:nt(w,l?l(s):s),theme:o&&g[o]||g},k))})}const BH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Kt(n,o,i="Mui"){const s=BH[o];return s?`${i}-${s}`:`${Q3.generate(n)}-${o}`}function Yt(n,o,i="Mui"){const s={};return o.forEach(l=>{s[l]=Kt(n,l,i)}),s}const TH=Yt("MuiBox",["root"]),cP=lP({defaultClassName:TH.root,generateClassName:Q3.generate});var uP={exports:{}},Do={};/** + */var es=typeof Symbol=="function"&&Symbol.for,T6=es?Symbol.for("react.element"):60103,F6=es?Symbol.for("react.portal"):60106,M3=es?Symbol.for("react.fragment"):60107,P3=es?Symbol.for("react.strict_mode"):60108,j3=es?Symbol.for("react.profiler"):60114,O3=es?Symbol.for("react.provider"):60109,R3=es?Symbol.for("react.context"):60110,D6=es?Symbol.for("react.async_mode"):60111,B3=es?Symbol.for("react.concurrent_mode"):60111,T3=es?Symbol.for("react.forward_ref"):60112,F3=es?Symbol.for("react.suspense"):60113,gz=es?Symbol.for("react.suspense_list"):60120,D3=es?Symbol.for("react.memo"):60115,N3=es?Symbol.for("react.lazy"):60116,vz=es?Symbol.for("react.block"):60121,bz=es?Symbol.for("react.fundamental"):60117,wz=es?Symbol.for("react.responder"):60118,xz=es?Symbol.for("react.scope"):60119;function Vl(n){if(typeof n=="object"&&n!==null){var o=n.$$typeof;switch(o){case T6:switch(n=n.type,n){case D6:case B3:case M3:case j3:case P3:case F3:return n;default:switch(n=n&&n.$$typeof,n){case R3:case T3:case N3:case D3:case O3:return n;default:return o}}case F6:return o}}}function JM(n){return Vl(n)===B3}$o.AsyncMode=D6;$o.ConcurrentMode=B3;$o.ContextConsumer=R3;$o.ContextProvider=O3;$o.Element=T6;$o.ForwardRef=T3;$o.Fragment=M3;$o.Lazy=N3;$o.Memo=D3;$o.Portal=F6;$o.Profiler=j3;$o.StrictMode=P3;$o.Suspense=F3;$o.isAsyncMode=function(n){return JM(n)||Vl(n)===D6};$o.isConcurrentMode=JM;$o.isContextConsumer=function(n){return Vl(n)===R3};$o.isContextProvider=function(n){return Vl(n)===O3};$o.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===T6};$o.isForwardRef=function(n){return Vl(n)===T3};$o.isFragment=function(n){return Vl(n)===M3};$o.isLazy=function(n){return Vl(n)===N3};$o.isMemo=function(n){return Vl(n)===D3};$o.isPortal=function(n){return Vl(n)===F6};$o.isProfiler=function(n){return Vl(n)===j3};$o.isStrictMode=function(n){return Vl(n)===P3};$o.isSuspense=function(n){return Vl(n)===F3};$o.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===M3||n===B3||n===j3||n===P3||n===F3||n===gz||typeof n=="object"&&n!==null&&(n.$$typeof===N3||n.$$typeof===D3||n.$$typeof===O3||n.$$typeof===R3||n.$$typeof===T3||n.$$typeof===bz||n.$$typeof===wz||n.$$typeof===xz||n.$$typeof===vz)};$o.typeOf=Vl;XM.exports=$o;var yz=XM.exports,ZM=yz,Az={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eP={};eP[ZM.ForwardRef]=Az;eP[ZM.Memo]=Cz;var kz=!0;function Sz(n,o,i){var s="";return i.split(" ").forEach(function(l){n[l]!==void 0?o.push(n[l]+";"):s+=l+" "}),s}var tP=function(o,i,s){var l=o.key+"-"+i.name;(s===!1||kz===!1)&&o.registered[l]===void 0&&(o.registered[l]=i.styles)},rP=function(o,i,s){tP(o,i,s);var l=o.key+"-"+i.name;if(o.inserted[i.name]===void 0){var c=i;do o.insert(i===c?"."+l:"",c,o.sheet,!0),c=c.next;while(c!==void 0)}};function Iz(n){for(var o=0,i,s=0,l=n.length;l>=4;++s,l-=4)i=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,o=(i&65535)*1540483477+((i>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(l){case 3:o^=(n.charCodeAt(s+2)&255)<<16;case 2:o^=(n.charCodeAt(s+1)&255)<<8;case 1:o^=n.charCodeAt(s)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}var Ez={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mz=!1,Pz=/[A-Z]|^ms/g,jz=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nP=function(o){return o.charCodeAt(1)===45},U7=function(o){return o!=null&&typeof o!="boolean"},fw=GM(function(n){return nP(n)?n:n.replace(Pz,"-$&").toLowerCase()}),G7=function(o,i){switch(o){case"animation":case"animationName":if(typeof i=="string")return i.replace(jz,function(s,l,c){return kc={name:l,styles:c,next:kc},l})}return Ez[o]!==1&&!nP(o)&&typeof i=="number"&&i!==0?i+"px":i},Oz="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bh(n,o,i){if(i==null)return"";var s=i;if(s.__emotion_styles!==void 0)return s;switch(typeof i){case"boolean":return"";case"object":{var l=i;if(l.anim===1)return kc={name:l.name,styles:l.styles,next:kc},l.name;var c=i;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)kc={name:d.name,styles:d.styles,next:kc},d=d.next;var f=c.styles+";";return f}return Rz(n,o,i)}case"function":{if(n!==void 0){var p=kc,m=i(n);return kc=p,bh(n,o,m)}break}}var g=i;if(o==null)return g;var v=o[g];return v!==void 0?v:g}function Rz(n,o,i){var s="";if(Array.isArray(i))for(var l=0;l96?Dz:Nz},_7=function(o,i,s){var l;if(i){var c=i.shouldForwardProp;l=o.__emotion_forwardProp&&c?function(d){return o.__emotion_forwardProp(d)&&c(d)}:c}return typeof l!="function"&&s&&(l=o.__emotion_forwardProp),l},$z=!1,Lz=function(o){var i=o.cache,s=o.serialized,l=o.isStringTag;return tP(i,s,l),Tz(function(){return rP(i,s,l)}),null},zz=function n(o,i){var s=o.__emotion_real===o,l=s&&o.__emotion_base||o,c,d;i!==void 0&&(c=i.label,d=i.target);var f=_7(o,i,s),p=f||q7(l),m=!p("as");return function(){var g=arguments,v=s&&o.__emotion_styles!==void 0?o.__emotion_styles.slice(0):[];if(c!==void 0&&v.push("label:"+c+";"),g[0]==null||g[0].raw===void 0)v.push.apply(v,g);else{v.push(g[0][0]);for(var w=g.length,A=1;Ao(Gz(l)?i:l):o;return b.jsx(Fz,{styles:s})}function $6(n,o){return Ox(n,o)}const cP=(n,o)=>{Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=o(n.__emotion_styles))},Vz=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:lP,StyledEngineProvider:Uz,ThemeContext:im,css:bu,default:$6,internal_processStyles:cP,keyframes:lc},Symbol.toStringTag,{value:"Module"}));function Qe(n,o){if(n==null)return{};var i={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.includes(s))continue;i[s]=n[s]}return i}function Jc(n){if(typeof n!="object"||n===null)return!1;const o=Object.getPrototypeOf(n);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function uP(n){if(!Jc(n))return n;const o={};return Object.keys(n).forEach(i=>{o[i]=uP(n[i])}),o}function Ks(n,o,i={clone:!0}){const s=i.clone?P({},n):n;return Jc(n)&&Jc(o)&&Object.keys(o).forEach(l=>{Jc(o[l])&&Object.prototype.hasOwnProperty.call(n,l)&&Jc(n[l])?s[l]=Ks(n[l],o[l],i):i.clone?s[l]=Jc(o[l])?uP(o[l]):o[l]:s[l]=o[l]}),s}const Qz=Object.freeze(Object.defineProperty({__proto__:null,default:Ks,isPlainObject:Jc},Symbol.toStringTag,{value:"Module"})),Wz=["values","unit","step"],qz=n=>{const o=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return o.sort((i,s)=>i.val-s.val),o.reduce((i,s)=>P({},i,{[s.key]:s.val}),{})};function dP(n){const{values:o={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5}=n,l=Qe(n,Wz),c=qz(o),d=Object.keys(c);function f(w){return`@media (min-width:${typeof o[w]=="number"?o[w]:w}${i})`}function p(w){return`@media (max-width:${(typeof o[w]=="number"?o[w]:w)-s/100}${i})`}function m(w,A){const k=d.indexOf(A);return`@media (min-width:${typeof o[w]=="number"?o[w]:w}${i}) and (max-width:${(k!==-1&&typeof o[d[k]]=="number"?o[d[k]]:A)-s/100}${i})`}function g(w){return d.indexOf(w)+1`@media (min-width:${L6[n]}px)`};function xl(n,o,i){const s=n.theme||{};if(Array.isArray(o)){const c=s.breakpoints||Y7;return o.reduce((d,f,p)=>(d[c.up(c.keys[p])]=i(o[p]),d),{})}if(typeof o=="object"){const c=s.breakpoints||Y7;return Object.keys(o).reduce((d,f)=>{if(Object.keys(c.values||L6).indexOf(f)!==-1){const p=c.up(f);d[p]=i(o[f],f)}else{const p=f;d[p]=o[p]}return d},{})}return i(o)}function fP(n={}){var o;return((o=n.keys)==null?void 0:o.reduce((s,l)=>{const c=n.up(l);return s[c]={},s},{}))||{}}function pP(n,o){return n.reduce((i,s)=>{const l=i[s];return(!l||Object.keys(l).length===0)&&delete i[s],i},o)}function Yz(n,...o){const i=fP(n),s=[i,...o].reduce((l,c)=>Ks(l,c),{});return pP(Object.keys(i),s)}function Kz(n,o){if(typeof n!="object")return{};const i={},s=Object.keys(o);return Array.isArray(n)?s.forEach((l,c)=>{c{n[l]!=null&&(i[l]=!0)}),i}function Zd({values:n,breakpoints:o,base:i}){const s=i||Kz(n,o),l=Object.keys(s);if(l.length===0)return n;let c;return l.reduce((d,f,p)=>(Array.isArray(n)?(d[f]=n[p]!=null?n[p]:n[c],c=p):typeof n=="object"?(d[f]=n[f]!=null?n[f]:n[c],c=f):d[f]=n,d),{})}function Ke(n){if(typeof n!="string")throw new Error(vu(7));return n.charAt(0).toUpperCase()+n.slice(1)}const Xz=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));function W2(n,o,i=!0){if(!o||typeof o!="string")return null;if(n&&n.vars&&i){const s=`vars.${o}`.split(".").reduce((l,c)=>l&&l[c]?l[c]:null,n);if(s!=null)return s}return o.split(".").reduce((s,l)=>s&&s[l]!=null?s[l]:null,n)}function xv(n,o,i,s=i){let l;return typeof n=="function"?l=n(i):Array.isArray(n)?l=n[i]||s:l=W2(n,i)||s,o&&(l=o(l,s,n)),l}function sa(n){const{prop:o,cssProperty:i=n.prop,themeKey:s,transform:l}=n,c=d=>{if(d[o]==null)return null;const f=d[o],p=d.theme,m=W2(p,s)||{};return xl(d,f,v=>{let w=xv(m,l,v);return v===w&&typeof v=="string"&&(w=xv(m,l,`${o}${v==="default"?"":Ke(v)}`,v)),i===!1?w:{[i]:w}})};return c.propTypes={},c.filterProps=[o],c}function Jz(n){const o={};return i=>(o[i]===void 0&&(o[i]=n(i)),o[i])}const Zz={m:"margin",p:"padding"},eH={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},K7={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tH=Jz(n=>{if(n.length>2)if(K7[n])n=K7[n];else return[n];const[o,i]=n.split(""),s=Zz[o],l=eH[i]||"";return Array.isArray(l)?l.map(c=>s+c):[s+l]}),z6=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],H6=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...z6,...H6];function am(n,o,i,s){var l;const c=(l=W2(n,o,!1))!=null?l:i;return typeof c=="number"?d=>typeof d=="string"?d:c*d:Array.isArray(c)?d=>typeof d=="string"?d:c[d]:typeof c=="function"?c:()=>{}}function U6(n){return am(n,"spacing",8)}function lf(n,o){if(typeof o=="string"||o==null)return o;const i=Math.abs(o),s=n(i);return o>=0?s:typeof s=="number"?-s:`-${s}`}function rH(n,o){return i=>n.reduce((s,l)=>(s[l]=lf(o,i),s),{})}function nH(n,o,i,s){if(o.indexOf(i)===-1)return null;const l=tH(i),c=rH(l,s),d=n[i];return xl(n,d,c)}function hP(n,o){const i=U6(n.theme);return Object.keys(n).map(s=>nH(n,o,s,i)).reduce(K0,{})}function qi(n){return hP(n,z6)}qi.propTypes={};qi.filterProps=z6;function _i(n){return hP(n,H6)}_i.propTypes={};_i.filterProps=H6;function oH(n=8){if(n.mui)return n;const o=U6({spacing:n}),i=(...s)=>(s.length===0?[1]:s).map(c=>{const d=o(c);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function L3(...n){const o=n.reduce((s,l)=>(l.filterProps.forEach(c=>{s[c]=l}),s),{}),i=s=>Object.keys(s).reduce((l,c)=>o[c]?K0(l,o[c](s)):l,{});return i.propTypes={},i.filterProps=n.reduce((s,l)=>s.concat(l.filterProps),[]),i}function u1(n){return typeof n!="number"?n:`${n}px solid`}function P1(n,o){return sa({prop:n,themeKey:"borders",transform:o})}const iH=P1("border",u1),aH=P1("borderTop",u1),sH=P1("borderRight",u1),lH=P1("borderBottom",u1),cH=P1("borderLeft",u1),uH=P1("borderColor"),dH=P1("borderTopColor"),fH=P1("borderRightColor"),pH=P1("borderBottomColor"),hH=P1("borderLeftColor"),mH=P1("outline",u1),gH=P1("outlineColor"),z3=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const o=am(n.theme,"shape.borderRadius",4),i=s=>({borderRadius:lf(o,s)});return xl(n,n.borderRadius,i)}return null};z3.propTypes={};z3.filterProps=["borderRadius"];L3(iH,aH,sH,lH,cH,uH,dH,fH,pH,hH,z3,mH,gH);const H3=n=>{if(n.gap!==void 0&&n.gap!==null){const o=am(n.theme,"spacing",8),i=s=>({gap:lf(o,s)});return xl(n,n.gap,i)}return null};H3.propTypes={};H3.filterProps=["gap"];const U3=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const o=am(n.theme,"spacing",8),i=s=>({columnGap:lf(o,s)});return xl(n,n.columnGap,i)}return null};U3.propTypes={};U3.filterProps=["columnGap"];const G3=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const o=am(n.theme,"spacing",8),i=s=>({rowGap:lf(o,s)});return xl(n,n.rowGap,i)}return null};G3.propTypes={};G3.filterProps=["rowGap"];const vH=sa({prop:"gridColumn"}),bH=sa({prop:"gridRow"}),wH=sa({prop:"gridAutoFlow"}),xH=sa({prop:"gridAutoColumns"}),yH=sa({prop:"gridAutoRows"}),AH=sa({prop:"gridTemplateColumns"}),CH=sa({prop:"gridTemplateRows"}),kH=sa({prop:"gridTemplateAreas"}),SH=sa({prop:"gridArea"});L3(H3,U3,G3,vH,bH,wH,xH,yH,AH,CH,kH,SH);function B2(n,o){return o==="grey"?o:n}const IH=sa({prop:"color",themeKey:"palette",transform:B2}),EH=sa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:B2}),MH=sa({prop:"backgroundColor",themeKey:"palette",transform:B2});L3(IH,EH,MH);function Rl(n){return n<=1&&n!==0?`${n*100}%`:n}const PH=sa({prop:"width",transform:Rl}),G6=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const o=i=>{var s,l;const c=((s=n.theme)==null||(s=s.breakpoints)==null||(s=s.values)==null?void 0:s[i])||L6[i];return c?((l=n.theme)==null||(l=l.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${c}${n.theme.breakpoints.unit}`}:{maxWidth:c}:{maxWidth:Rl(i)}};return xl(n,n.maxWidth,o)}return null};G6.filterProps=["maxWidth"];const jH=sa({prop:"minWidth",transform:Rl}),OH=sa({prop:"height",transform:Rl}),RH=sa({prop:"maxHeight",transform:Rl}),BH=sa({prop:"minHeight",transform:Rl});sa({prop:"size",cssProperty:"width",transform:Rl});sa({prop:"size",cssProperty:"height",transform:Rl});const TH=sa({prop:"boxSizing"});L3(PH,G6,jH,OH,RH,BH,TH);const sm={border:{themeKey:"borders",transform:u1},borderTop:{themeKey:"borders",transform:u1},borderRight:{themeKey:"borders",transform:u1},borderBottom:{themeKey:"borders",transform:u1},borderLeft:{themeKey:"borders",transform:u1},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:u1},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:z3},color:{themeKey:"palette",transform:B2},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:B2},backgroundColor:{themeKey:"palette",transform:B2},p:{style:_i},pt:{style:_i},pr:{style:_i},pb:{style:_i},pl:{style:_i},px:{style:_i},py:{style:_i},padding:{style:_i},paddingTop:{style:_i},paddingRight:{style:_i},paddingBottom:{style:_i},paddingLeft:{style:_i},paddingX:{style:_i},paddingY:{style:_i},paddingInline:{style:_i},paddingInlineStart:{style:_i},paddingInlineEnd:{style:_i},paddingBlock:{style:_i},paddingBlockStart:{style:_i},paddingBlockEnd:{style:_i},m:{style:qi},mt:{style:qi},mr:{style:qi},mb:{style:qi},ml:{style:qi},mx:{style:qi},my:{style:qi},margin:{style:qi},marginTop:{style:qi},marginRight:{style:qi},marginBottom:{style:qi},marginLeft:{style:qi},marginX:{style:qi},marginY:{style:qi},marginInline:{style:qi},marginInlineStart:{style:qi},marginInlineEnd:{style:qi},marginBlock:{style:qi},marginBlockStart:{style:qi},marginBlockEnd:{style:qi},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:H3},rowGap:{style:G3},columnGap:{style:U3},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rl},maxWidth:{style:G6},minWidth:{transform:Rl},height:{transform:Rl},maxHeight:{transform:Rl},minHeight:{transform:Rl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function FH(...n){const o=n.reduce((s,l)=>s.concat(Object.keys(l)),[]),i=new Set(o);return n.every(s=>i.size===Object.keys(s).length)}function DH(n,o){return typeof n=="function"?n(o):n}function mP(){function n(i,s,l,c){const d={[i]:s,theme:l},f=c[i];if(!f)return{[i]:s};const{cssProperty:p=i,themeKey:m,transform:g,style:v}=f;if(s==null)return null;if(m==="typography"&&s==="inherit")return{[i]:s};const w=W2(l,m)||{};return v?v(d):xl(d,s,k=>{let C=xv(w,g,k);return k===C&&typeof k=="string"&&(C=xv(w,g,`${i}${k==="default"?"":Ke(k)}`,k)),p===!1?C:{[p]:C}})}function o(i){var s;const{sx:l,theme:c={}}=i||{};if(!l)return null;const d=(s=c.unstable_sxConfig)!=null?s:sm;function f(p){let m=p;if(typeof p=="function")m=p(c);else if(typeof p!="object")return p;if(!m)return null;const g=fP(c.breakpoints),v=Object.keys(g);let w=g;return Object.keys(m).forEach(A=>{const k=DH(m[A],c);if(k!=null)if(typeof k=="object")if(d[A])w=K0(w,n(A,k,c,d));else{const C=xl({theme:c},k,M=>({[A]:M}));FH(C,k)?w[A]=o({sx:k,theme:c}):w=K0(w,C)}else w=K0(w,n(A,k,c,d))}),pP(v,w)}return Array.isArray(l)?l.map(f):f(l)}return o}const wp=mP();wp.filterProps=["sx"];function gP(n,o){const i=this;return i.vars&&typeof i.getColorSchemeSelector=="function"?{[i.getColorSchemeSelector(n).replace(/(\[[^\]]+\])/,"*:where($1)")]:o}:i.palette.mode===n?o:{}}const NH=["breakpoints","palette","spacing","shape"];function xp(n={},...o){const{breakpoints:i={},palette:s={},spacing:l,shape:c={}}=n,d=Qe(n,NH),f=dP(i),p=oH(l);let m=Ks({breakpoints:f,direction:"ltr",components:{},palette:P({mode:"light"},s),spacing:p,shape:P({},_z,c)},d);return m.applyStyles=gP,m=o.reduce((g,v)=>Ks(g,v),m),m.unstable_sxConfig=P({},sm,d==null?void 0:d.unstable_sxConfig),m.unstable_sx=function(v){return wp({sx:v,theme:this})},m}const $H=Object.freeze(Object.defineProperty({__proto__:null,default:xp,private_createBreakpoints:dP,unstable_applyStyles:gP},Symbol.toStringTag,{value:"Module"}));function LH(n){return Object.keys(n).length===0}function V6(n=null){const o=x.useContext(im);return!o||LH(o)?n:o}const zH=xp();function V3(n=zH){return V6(n)}function HH({styles:n,themeId:o,defaultTheme:i={}}){const s=V3(i),l=typeof n=="function"?n(o&&s[o]||s):n;return b.jsx(lP,{styles:l})}const UH=["sx"],GH=n=>{var o,i;const s={systemProps:{},otherProps:{}},l=(o=n==null||(i=n.theme)==null?void 0:i.unstable_sxConfig)!=null?o:sm;return Object.keys(n).forEach(c=>{l[c]?s.systemProps[c]=n[c]:s.otherProps[c]=n[c]}),s};function lm(n){const{sx:o}=n,i=Qe(n,UH),{systemProps:s,otherProps:l}=GH(i);let c;return Array.isArray(o)?c=[s,...o]:typeof o=="function"?c=(...d)=>{const f=o(...d);return Jc(f)?P({},s,f):s}:c=P({},s,o),P({},l,{sx:c})}const VH=Object.freeze(Object.defineProperty({__proto__:null,default:wp,extendSxProp:lm,unstable_createStyleFunctionSx:mP,unstable_defaultSxConfig:sm},Symbol.toStringTag,{value:"Module"})),X7=n=>n,QH=()=>{let n=X7;return{configure(o){n=o},generate(o){return n(o)},reset(){n=X7}}},Q6=QH();function vP(n){var o,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(o=0;of!=="theme"&&f!=="sx"&&f!=="as"})(wp);return x.forwardRef(function(p,m){const g=V3(i),v=lm(p),{className:w,component:A="div"}=v,k=Qe(v,WH);return b.jsx(c,P({as:A,ref:m,className:nt(w,l?l(s):s),theme:o&&g[o]||g},k))})}const _H={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Kt(n,o,i="Mui"){const s=_H[o];return s?`${i}-${s}`:`${Q6.generate(n)}-${o}`}function Yt(n,o,i="Mui"){const s={};return o.forEach(l=>{s[l]=Kt(n,l,i)}),s}var bP={exports:{}},Lo={};/** * @license React * react-is.production.min.js * @@ -29,7 +29,7 @@ var W$=Object.defineProperty;var q$=(n,o,i)=>o in n?W$(n,o,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var V6=Symbol.for("react.element"),Q6=Symbol.for("react.portal"),W3=Symbol.for("react.fragment"),q3=Symbol.for("react.strict_mode"),_3=Symbol.for("react.profiler"),Y3=Symbol.for("react.provider"),K3=Symbol.for("react.context"),FH=Symbol.for("react.server_context"),X3=Symbol.for("react.forward_ref"),J3=Symbol.for("react.suspense"),Z3=Symbol.for("react.suspense_list"),eb=Symbol.for("react.memo"),tb=Symbol.for("react.lazy"),DH=Symbol.for("react.offscreen"),dP;dP=Symbol.for("react.module.reference");function O1(n){if(typeof n=="object"&&n!==null){var o=n.$$typeof;switch(o){case V6:switch(n=n.type,n){case W3:case _3:case q3:case J3:case Z3:return n;default:switch(n=n&&n.$$typeof,n){case FH:case K3:case X3:case tb:case eb:case Y3:return n;default:return o}}case Q6:return o}}}Do.ContextConsumer=K3;Do.ContextProvider=Y3;Do.Element=V6;Do.ForwardRef=X3;Do.Fragment=W3;Do.Lazy=tb;Do.Memo=eb;Do.Portal=Q6;Do.Profiler=_3;Do.StrictMode=q3;Do.Suspense=J3;Do.SuspenseList=Z3;Do.isAsyncMode=function(){return!1};Do.isConcurrentMode=function(){return!1};Do.isContextConsumer=function(n){return O1(n)===K3};Do.isContextProvider=function(n){return O1(n)===Y3};Do.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===V6};Do.isForwardRef=function(n){return O1(n)===X3};Do.isFragment=function(n){return O1(n)===W3};Do.isLazy=function(n){return O1(n)===tb};Do.isMemo=function(n){return O1(n)===eb};Do.isPortal=function(n){return O1(n)===Q6};Do.isProfiler=function(n){return O1(n)===_3};Do.isStrictMode=function(n){return O1(n)===q3};Do.isSuspense=function(n){return O1(n)===J3};Do.isSuspenseList=function(n){return O1(n)===Z3};Do.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===W3||n===_3||n===q3||n===J3||n===Z3||n===DH||typeof n=="object"&&n!==null&&(n.$$typeof===tb||n.$$typeof===eb||n.$$typeof===Y3||n.$$typeof===K3||n.$$typeof===X3||n.$$typeof===dP||n.getModuleId!==void 0)};Do.typeOf=O1;uP.exports=Do;var G7=uP.exports;const NH=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fP(n){const o=`${n}`.match(NH);return o&&o[1]||""}function pP(n,o=""){return n.displayName||n.name||fP(n)||o}function V7(n,o,i){const s=pP(o);return n.displayName||(s!==""?`${i}(${s})`:i)}function $H(n){if(n!=null){if(typeof n=="string")return n;if(typeof n=="function")return pP(n,"Component");if(typeof n=="object")switch(n.$$typeof){case G7.ForwardRef:return V7(n,n.render,"ForwardRef");case G7.Memo:return V7(n,n.type,"memo");default:return}}}const LH=Object.freeze(Object.defineProperty({__proto__:null,default:$H,getFunctionName:fP},Symbol.toStringTag,{value:"Module"})),zH=["ownerState"],HH=["variants"],UH=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function GH(n){return Object.keys(n).length===0}function VH(n){return typeof n=="string"&&n.charCodeAt(0)>96}function fw(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const QH=xp(),WH=n=>n&&n.charAt(0).toLowerCase()+n.slice(1);function eg({defaultTheme:n,theme:o,themeId:i}){return GH(o)?n:o[i]||o}function qH(n){return n?(o,i)=>i[n]:null}function Gg(n,o){let{ownerState:i}=o,s=Qe(o,zH);const l=typeof n=="function"?n(P({ownerState:i},s)):n;if(Array.isArray(l))return l.flatMap(c=>Gg(c,P({ownerState:i},s)));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:c=[]}=l;let f=Qe(l,HH);return c.forEach(p=>{let m=!0;typeof p.props=="function"?m=p.props(P({ownerState:i},s,i)):Object.keys(p.props).forEach(g=>{(i==null?void 0:i[g])!==p.props[g]&&s[g]!==p.props[g]&&(m=!1)}),m&&(Array.isArray(f)||(f=[f]),f.push(typeof p.style=="function"?p.style(P({ownerState:i},s,i)):p.style))}),f}return l}function _H(n={}){const{themeId:o,defaultTheme:i=QH,rootShouldForwardProp:s=fw,slotShouldForwardProp:l=fw}=n,c=d=>wp(P({},d,{theme:eg(P({},d,{defaultTheme:i,themeId:o}))}));return c.__mui_systemSx=!0,(d,f={})=>{ZM(d,B=>B.filter(F=>!(F!=null&&F.__mui_systemSx)));const{name:p,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:w=qH(WH(m))}=f,A=Qe(f,UH),k=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,C=v||!1;let M,S=fw;m==="Root"||m==="root"?S=s:m?S=l:VH(d)&&(S=void 0);const I=N6(d,P({shouldForwardProp:S,label:M},A)),E=B=>typeof B=="function"&&B.__emotion_real!==B||eu(B)?F=>Gg(B,P({},F,{theme:eg({theme:F.theme,defaultTheme:i,themeId:o})})):B,j=(B,...F)=>{let O=E(B);const N=F?F.map(E):[];p&&w&&N.push(_=>{const V=eg(P({},_,{defaultTheme:i,themeId:o}));if(!V.components||!V.components[p]||!V.components[p].styleOverrides)return null;const $=V.components[p].styleOverrides,z={};return Object.entries($).forEach(([Q,G])=>{z[Q]=Gg(G,P({},_,{theme:V}))}),w(_,z)}),p&&!k&&N.push(_=>{var V;const $=eg(P({},_,{defaultTheme:i,themeId:o})),z=$==null||(V=$.components)==null||(V=V[p])==null?void 0:V.variants;return Gg({variants:z},P({},_,{theme:$}))}),C||N.push(c);const H=N.length-F.length;if(Array.isArray(B)&&H>0){const _=new Array(H).fill("");O=[...B,..._],O.raw=[...B.raw,..._]}const L=I(O,...N);return d.muiName&&(L.muiName=d.muiName),L};return I.withConfig&&(j.withConfig=I.withConfig),j}}const zr=_H();function hP(n){const{theme:o,name:i,props:s}=n;return!o||!o.components||!o.components[i]||!o.components[i].defaultProps?s:gh(o.components[i].defaultProps,s)}function W6({props:n,name:o,defaultTheme:i,themeId:s}){let l=V3(i);return s&&(l=l[s]||l),hP({theme:l,name:o,props:n})}const yo=typeof window<"u"?x.useLayoutEffect:x.useEffect;function YH(n,o,i,s,l){const[c,d]=x.useState(()=>l&&i?i(n).matches:s?s(n).matches:o);return yo(()=>{let f=!0;if(!i)return;const p=i(n),m=()=>{f&&d(p.matches)};return m(),p.addListener(m),()=>{f=!1,p.removeListener(m)}},[n,i]),c}const mP=x.useSyncExternalStore;function KH(n,o,i,s,l){const c=x.useCallback(()=>o,[o]),d=x.useMemo(()=>{if(l&&i)return()=>i(n).matches;if(s!==null){const{matches:g}=s(n);return()=>g}return c},[c,n,s,l,i]),[f,p]=x.useMemo(()=>{if(i===null)return[c,()=>()=>{}];const g=i(n);return[()=>g.matches,v=>(g.addListener(v),()=>{g.removeListener(v)})]},[c,i,n]);return mP(p,f,d)}function q6(n,o={}){const i=G6(),s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=s?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:f=!1}=hP({name:"MuiUseMediaQuery",props:o,theme:i});let p=typeof n=="function"?n(i):n;return p=p.replace(/^@media( ?)/m,""),(mP!==void 0?KH:YH)(p,l,c,d,f)}function gP(n,o=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(o,Math.min(n,i))}const XH=Object.freeze(Object.defineProperty({__proto__:null,default:gP},Symbol.toStringTag,{value:"Module"}));function _6(n,o=0,i=1){return gP(n,o,i)}function JH(n){n=n.slice(1);const o=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(o);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,l)=>l<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function _2(n){if(n.type)return n;if(n.charAt(0)==="#")return _2(JH(n));const o=n.indexOf("("),i=n.substring(0,o);if(["rgb","rgba","hsl","hsla","color"].indexOf(i)===-1)throw new Error(bu(9,n));let s=n.substring(o+1,n.length-1),l;if(i==="color"){if(s=s.split(" "),l=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error(bu(10,l))}else s=s.split(",");return s=s.map(c=>parseFloat(c)),{type:i,values:s,colorSpace:l}}function rb(n){const{type:o,colorSpace:i}=n;let{values:s}=n;return o.indexOf("rgb")!==-1?s=s.map((l,c)=>c<3?parseInt(l,10):l):o.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),o.indexOf("color")!==-1?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${o}(${s})`}function _d(n,o){return n=_2(n),o=_6(o),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${o}`:n.values[3]=o,rb(n)}function ZH(n,o){if(n=_2(n),o=_6(o),n.type.indexOf("hsl")!==-1)n.values[2]*=1-o;else if(n.type.indexOf("rgb")!==-1||n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]*=1-o;return rb(n)}function eU(n,o){if(n=_2(n),o=_6(o),n.type.indexOf("hsl")!==-1)n.values[2]+=(100-n.values[2])*o;else if(n.type.indexOf("rgb")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*o;else if(n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*o;return rb(n)}function yv(...n){return n.reduce((o,i)=>i==null?o:function(...l){o.apply(this,l),i.apply(this,l)},()=>{})}function Mf(n,o=166){let i;function s(...l){const c=()=>{n.apply(this,l)};clearTimeout(i),i=setTimeout(c,o)}return s.clear=()=>{clearTimeout(i)},s}function tU(n,o){return()=>null}function J0(n,o){var i,s;return x.isValidElement(n)&&o.indexOf((i=n.type.muiName)!=null?i:(s=n.type)==null||(s=s._payload)==null||(s=s.value)==null?void 0:s.muiName)!==-1}function ei(n){return n&&n.ownerDocument||document}function zl(n){return ei(n).defaultView||window}function rU(n,o){return()=>null}function xh(n,o){typeof n=="function"?n(o):n&&(n.current=o)}let Q7=0;function nU(n){const[o,i]=x.useState(n),s=n||o;return x.useEffect(()=>{o==null&&(Q7+=1,i(`mui-${Q7}`))},[o]),s}const W7=bv.useId;function Ro(n){if(W7!==void 0){const o=W7();return n??o}return nU(n)}function oU(n,o,i,s,l){return null}function Rc({controlled:n,default:o,name:i,state:s="value"}){const{current:l}=x.useRef(n!==void 0),[c,d]=x.useState(o),f=l?n:c,p=x.useCallback(m=>{l||d(m)},[]);return[f,p]}function ln(n){const o=x.useRef(n);return yo(()=>{o.current=n}),x.useRef((...i)=>(0,o.current)(...i)).current}function Xn(...n){return x.useMemo(()=>n.every(o=>o==null)?null:o=>{n.forEach(i=>{xh(i,o)})},n)}const q7={};function Pf(n,o){const i=x.useRef(q7);return i.current===q7&&(i.current=n(o)),i}const iU=[];function nb(n){x.useEffect(n,iU)}class um{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new um}start(o,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},o)}}function Dl(){const n=Pf(um.create).current;return nb(n.disposeEffect),n}let ob=!0,Ox=!1;const aU=new um,sU={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function lU(n){const{type:o,tagName:i}=n;return!!(i==="INPUT"&&sU[o]&&!n.readOnly||i==="TEXTAREA"&&!n.readOnly||n.isContentEditable)}function cU(n){n.metaKey||n.altKey||n.ctrlKey||(ob=!0)}function pw(){ob=!1}function uU(){this.visibilityState==="hidden"&&Ox&&(ob=!0)}function dU(n){n.addEventListener("keydown",cU,!0),n.addEventListener("mousedown",pw,!0),n.addEventListener("pointerdown",pw,!0),n.addEventListener("touchstart",pw,!0),n.addEventListener("visibilitychange",uU,!0)}function fU(n){const{target:o}=n;try{return o.matches(":focus-visible")}catch{}return ob||lU(o)}function ib(){const n=x.useCallback(l=>{l!=null&&dU(l.ownerDocument)},[]),o=x.useRef(!1);function i(){return o.current?(Ox=!0,aU.start(100,()=>{Ox=!1}),o.current=!1,!0):!1}function s(l){return fU(l)?(o.current=!0,!0):!1}return{isFocusVisibleRef:o,onFocus:s,onBlur:i,ref:n}}function vP(n){const o=n.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}let Vf;function bP(){if(Vf)return Vf;const n=document.createElement("div"),o=document.createElement("div");return o.style.width="10px",o.style.height="1px",n.appendChild(o),n.dir="rtl",n.style.fontSize="14px",n.style.width="4px",n.style.height="1px",n.style.position="absolute",n.style.top="-1000px",n.style.overflow="scroll",document.body.appendChild(n),Vf="reverse",n.scrollLeft>0?Vf="default":(n.scrollLeft=1,n.scrollLeft===0&&(Vf="negative")),document.body.removeChild(n),Vf}function pU(n,o){const i=n.scrollLeft;if(o!=="rtl")return i;switch(bP()){case"negative":return n.scrollWidth-n.clientWidth+i;case"reverse":return n.scrollWidth-n.clientWidth-i;default:return i}}const Y6=n=>{const o=x.useRef({});return x.useEffect(()=>{o.current=n}),o.current};function hU(n){return x.Children.toArray(n).filter(o=>x.isValidElement(o))}function Rt(n,o,i=void 0){const s={};return Object.keys(n).forEach(l=>{s[l]=n[l].reduce((c,d)=>{if(d){const f=o(d);f!==""&&c.push(f),i&&i[d]&&c.push(i[d])}return c},[]).join(" ")}),s}function uf(n){return typeof n=="string"}function f2(n,o,i){return n===void 0||uf(n)?o:P({},o,{ownerState:P({},o.ownerState,i)})}function wP(n,o=[]){if(n===void 0)return{};const i={};return Object.keys(n).filter(s=>s.match(/^on[A-Z]/)&&typeof n[s]=="function"&&!o.includes(s)).forEach(s=>{i[s]=n[s]}),i}function _7(n){if(n===void 0)return{};const o={};return Object.keys(n).filter(i=>!(i.match(/^on[A-Z]/)&&typeof n[i]=="function")).forEach(i=>{o[i]=n[i]}),o}function xP(n){const{getSlotProps:o,additionalProps:i,externalSlotProps:s,externalForwardedProps:l,className:c}=n;if(!o){const A=nt(i==null?void 0:i.className,c,l==null?void 0:l.className,s==null?void 0:s.className),k=P({},i==null?void 0:i.style,l==null?void 0:l.style,s==null?void 0:s.style),C=P({},i,l,s);return A.length>0&&(C.className=A),Object.keys(k).length>0&&(C.style=k),{props:C,internalRef:void 0}}const d=wP(P({},l,s)),f=_7(s),p=_7(l),m=o(d),g=nt(m==null?void 0:m.className,i==null?void 0:i.className,c,l==null?void 0:l.className,s==null?void 0:s.className),v=P({},m==null?void 0:m.style,i==null?void 0:i.style,l==null?void 0:l.style,s==null?void 0:s.style),w=P({},m,i,p,f);return g.length>0&&(w.className=g),Object.keys(v).length>0&&(w.style=v),{props:w,internalRef:m.ref}}function yP(n,o,i){return typeof n=="function"?n(o,i):n}const mU=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Hl(n){var o;const{elementType:i,externalSlotProps:s,ownerState:l,skipResolvingSlotProps:c=!1}=n,d=Qe(n,mU),f=c?{}:yP(s,l),{props:p,internalRef:m}=xP(P({},d,{externalSlotProps:f})),g=Xn(m,f==null?void 0:f.ref,(o=n.additionalProps)==null?void 0:o.ref);return f2(i,P({},p,{ref:g}),l)}const AP=x.createContext(null);function CP(){return x.useContext(AP)}const gU=typeof Symbol=="function"&&Symbol.for,vU=gU?Symbol.for("mui.nested"):"__THEME_NESTED__";function bU(n,o){return typeof o=="function"?o(n):P({},n,o)}function wU(n){const{children:o,theme:i}=n,s=CP(),l=x.useMemo(()=>{const c=s===null?i:bU(s,i);return c!=null&&(c[vU]=s!==null),c},[i,s]);return b.jsx(AP.Provider,{value:l,children:o})}const xU=["value"],kP=x.createContext();function yU(n){let{value:o}=n,i=Qe(n,xU);return b.jsx(kP.Provider,P({value:o??!0},i))}const Md=()=>{const n=x.useContext(kP);return n??!1},Y7={};function K7(n,o,i,s=!1){return x.useMemo(()=>{const l=n&&o[n]||o;if(typeof i=="function"){const c=i(l),d=n?P({},o,{[n]:c}):c;return s?()=>d:d}return n?P({},o,{[n]:i}):P({},o,i)},[n,o,i,s])}function SP(n){const{children:o,theme:i,themeId:s}=n,l=G6(Y7),c=CP()||Y7,d=K7(s,l,i),f=K7(s,c,i,!0),p=d.direction==="rtl";return b.jsx(wU,{theme:f,children:b.jsx(am.Provider,{value:d,children:b.jsx(yU,{value:p,children:b.jsx(yL,{value:d==null?void 0:d.components,children:o})})})})}function yh(n){"@babel/helpers - typeof";return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},yh(n)}function AU(n,o){if(yh(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var s=i.call(n,o);if(yh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function Ah(n){var o=AU(n,"string");return yh(o)=="symbol"?o:o+""}const CU=["className","component","disableGutters","fixed","maxWidth","classes"],kU=xp(),SU=zr("div",{name:"MuiContainer",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`maxWidth${Ke(String(i.maxWidth))}`],i.fixed&&o.fixed,i.disableGutters&&o.disableGutters]}}),IU=n=>W6({props:n,name:"MuiContainer",defaultTheme:kU}),EU=(n,o)=>{const i=p=>Kt(o,p),{classes:s,fixed:l,disableGutters:c,maxWidth:d}=n,f={root:["root",d&&`maxWidth${Ke(String(d))}`,l&&"fixed",c&&"disableGutters"]};return Rt(f,i,s)};function MU(n={}){const{createStyledComponent:o=SU,useThemeProps:i=IU,componentName:s="MuiContainer"}=n,l=o(({theme:d,ownerState:f})=>P({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!f.disableGutters&&{paddingLeft:d.spacing(2),paddingRight:d.spacing(2),[d.breakpoints.up("sm")]:{paddingLeft:d.spacing(3),paddingRight:d.spacing(3)}}),({theme:d,ownerState:f})=>f.fixed&&Object.keys(d.breakpoints.values).reduce((p,m)=>{const g=m,v=d.breakpoints.values[g];return v!==0&&(p[d.breakpoints.up(g)]={maxWidth:`${v}${d.breakpoints.unit}`}),p},{}),({theme:d,ownerState:f})=>P({},f.maxWidth==="xs"&&{[d.breakpoints.up("xs")]:{maxWidth:Math.max(d.breakpoints.values.xs,444)}},f.maxWidth&&f.maxWidth!=="xs"&&{[d.breakpoints.up(f.maxWidth)]:{maxWidth:`${d.breakpoints.values[f.maxWidth]}${d.breakpoints.unit}`}}));return x.forwardRef(function(f,p){const m=i(f),{className:g,component:v="div",disableGutters:w=!1,fixed:A=!1,maxWidth:k="lg"}=m,C=Qe(m,CU),M=P({},m,{component:v,disableGutters:w,fixed:A,maxWidth:k}),S=EU(M,s);return b.jsx(l,P({as:v,ownerState:M,className:nt(S.root,g),ref:p},C))})}const PU=["component","direction","spacing","divider","children","className","useFlexGap"],jU=xp(),OU=zr("div",{name:"MuiStack",slot:"Root",overridesResolver:(n,o)=>o.root});function RU(n){return W6({props:n,name:"MuiStack",defaultTheme:jU})}function BU(n,o){const i=x.Children.toArray(n).filter(Boolean);return i.reduce((s,l,c)=>(s.push(l),c({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[n],FU=({ownerState:n,theme:o})=>{let i=P({display:"flex",flexDirection:"column"},xl({theme:o},ef({values:n.direction,breakpoints:o.breakpoints.values}),s=>({flexDirection:s})));if(n.spacing){const s=H6(o),l=Object.keys(o.breakpoints.values).reduce((p,m)=>((typeof n.spacing=="object"&&n.spacing[m]!=null||typeof n.direction=="object"&&n.direction[m]!=null)&&(p[m]=!0),p),{}),c=ef({values:n.direction,base:l}),d=ef({values:n.spacing,base:l});typeof c=="object"&&Object.keys(c).forEach((p,m,g)=>{if(!c[p]){const w=m>0?c[g[m-1]]:"column";c[p]=w}}),i=Ks(i,xl({theme:o},d,(p,m)=>n.useFlexGap?{gap:cf(s,p)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${TU(m?c[m]:n.direction)}`]:cf(s,p)}}))}return i=Fz(o.breakpoints,i),i};function DU(n={}){const{createStyledComponent:o=OU,useThemeProps:i=RU,componentName:s="MuiStack"}=n,l=()=>Rt({root:["root"]},p=>Kt(s,p),{}),c=o(FU);return x.forwardRef(function(p,m){const g=i(p),v=cm(g),{component:w="div",direction:A="column",spacing:k=0,divider:C,children:M,className:S,useFlexGap:I=!1}=v,E=Qe(v,PU),j={direction:A,spacing:k,useFlexGap:I},B=l();return b.jsx(c,P({as:w,ownerState:j,ref:m,className:nt(B.root,S)},E,{children:C?BU(M,C):M}))})}function NU(n,o){return P({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},o)}var la={},IP={exports:{}};(function(n){function o(i){return i&&i.__esModule?i:{default:i}}n.exports=o,n.exports.__esModule=!0,n.exports.default=n.exports})(IP);var Uo=IP.exports;const $U=Pu(kL),LU=Pu(XH);var EP=Uo;Object.defineProperty(la,"__esModule",{value:!0});var Lr=la.alpha=OP;la.blend=KU;la.colorChannel=void 0;var ab=la.darken=X6;la.decomposeColor=k1;la.emphasize=RP;var zU=la.getContrastRatio=QU;la.getLuminance=Av;la.hexToRgb=MP;la.hslToRgb=jP;var sb=la.lighten=J6;la.private_safeAlpha=WU;la.private_safeColorChannel=void 0;la.private_safeDarken=qU;la.private_safeEmphasize=YU;la.private_safeLighten=_U;la.recomposeColor=yp;la.rgbToHex=VU;var X7=EP($U),HU=EP(LU);function K6(n,o=0,i=1){return(0,HU.default)(n,o,i)}function MP(n){n=n.slice(1);const o=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(o);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,l)=>l<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function UU(n){const o=n.toString(16);return o.length===1?`0${o}`:o}function k1(n){if(n.type)return n;if(n.charAt(0)==="#")return k1(MP(n));const o=n.indexOf("("),i=n.substring(0,o);if(["rgb","rgba","hsl","hsla","color"].indexOf(i)===-1)throw new Error((0,X7.default)(9,n));let s=n.substring(o+1,n.length-1),l;if(i==="color"){if(s=s.split(" "),l=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error((0,X7.default)(10,l))}else s=s.split(",");return s=s.map(c=>parseFloat(c)),{type:i,values:s,colorSpace:l}}const PP=n=>{const o=k1(n);return o.values.slice(0,3).map((i,s)=>o.type.indexOf("hsl")!==-1&&s!==0?`${i}%`:i).join(" ")};la.colorChannel=PP;const GU=(n,o)=>{try{return PP(n)}catch{return n}};la.private_safeColorChannel=GU;function yp(n){const{type:o,colorSpace:i}=n;let{values:s}=n;return o.indexOf("rgb")!==-1?s=s.map((l,c)=>c<3?parseInt(l,10):l):o.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),o.indexOf("color")!==-1?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${o}(${s})`}function VU(n){if(n.indexOf("#")===0)return n;const{values:o}=k1(n);return`#${o.map((i,s)=>UU(s===3?Math.round(255*i):i)).join("")}`}function jP(n){n=k1(n);const{values:o}=n,i=o[0],s=o[1]/100,l=o[2]/100,c=s*Math.min(l,1-l),d=(m,g=(m+i/30)%12)=>l-c*Math.max(Math.min(g-3,9-g,1),-1);let f="rgb";const p=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(f+="a",p.push(o[3])),yp({type:f,values:p})}function Av(n){n=k1(n);let o=n.type==="hsl"||n.type==="hsla"?k1(jP(n)).values:n.values;return o=o.map(i=>(n.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*o[0]+.7152*o[1]+.0722*o[2]).toFixed(3))}function QU(n,o){const i=Av(n),s=Av(o);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}function OP(n,o){return n=k1(n),o=K6(o),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${o}`:n.values[3]=o,yp(n)}function WU(n,o,i){try{return OP(n,o)}catch{return n}}function X6(n,o){if(n=k1(n),o=K6(o),n.type.indexOf("hsl")!==-1)n.values[2]*=1-o;else if(n.type.indexOf("rgb")!==-1||n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]*=1-o;return yp(n)}function qU(n,o,i){try{return X6(n,o)}catch{return n}}function J6(n,o){if(n=k1(n),o=K6(o),n.type.indexOf("hsl")!==-1)n.values[2]+=(100-n.values[2])*o;else if(n.type.indexOf("rgb")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*o;else if(n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*o;return yp(n)}function _U(n,o,i){try{return J6(n,o)}catch{return n}}function RP(n,o=.15){return Av(n)>.5?X6(n,o):J6(n,o)}function YU(n,o,i){try{return RP(n,o)}catch{return n}}function KU(n,o,i,s=1){const l=(p,m)=>Math.round((p**(1/s)*(1-i)+m**(1/s)*i)**s),c=k1(n),d=k1(o),f=[l(c.values[0],d.values[0]),l(c.values[1],d.values[1]),l(c.values[2],d.values[2])];return yp({type:"rgb",values:f})}const Ch={black:"#000",white:"#fff"},XU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Qf={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wf={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Xp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},qf={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},_f={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yf={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},JU=["mode","contrastThreshold","tonalOffset"],J7={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ch.white,default:Ch.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},hw={text:{primary:Ch.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ch.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Z7(n,o,i,s){const l=s.light||s,c=s.dark||s*1.5;n[o]||(n.hasOwnProperty(i)?n[o]=n[i]:o==="light"?n.light=sb(n.main,l):o==="dark"&&(n.dark=ab(n.main,c)))}function ZU(n="light"){return n==="dark"?{main:qf[200],light:qf[50],dark:qf[400]}:{main:qf[700],light:qf[400],dark:qf[800]}}function eG(n="light"){return n==="dark"?{main:Qf[200],light:Qf[50],dark:Qf[400]}:{main:Qf[500],light:Qf[300],dark:Qf[700]}}function tG(n="light"){return n==="dark"?{main:Wf[500],light:Wf[300],dark:Wf[700]}:{main:Wf[700],light:Wf[400],dark:Wf[800]}}function rG(n="light"){return n==="dark"?{main:_f[400],light:_f[300],dark:_f[700]}:{main:_f[700],light:_f[500],dark:_f[900]}}function nG(n="light"){return n==="dark"?{main:Yf[400],light:Yf[300],dark:Yf[700]}:{main:Yf[800],light:Yf[500],dark:Yf[900]}}function oG(n="light"){return n==="dark"?{main:Xp[400],light:Xp[300],dark:Xp[700]}:{main:"#ed6c02",light:Xp[500],dark:Xp[900]}}function iG(n){const{mode:o="light",contrastThreshold:i=3,tonalOffset:s=.2}=n,l=Qe(n,JU),c=n.primary||ZU(o),d=n.secondary||eG(o),f=n.error||tG(o),p=n.info||rG(o),m=n.success||nG(o),g=n.warning||oG(o);function v(C){return zU(C,hw.text.primary)>=i?hw.text.primary:J7.text.primary}const w=({color:C,name:M,mainShade:S=500,lightShade:I=300,darkShade:E=700})=>{if(C=P({},C),!C.main&&C[S]&&(C.main=C[S]),!C.hasOwnProperty("main"))throw new Error(bu(11,M?` (${M})`:"",S));if(typeof C.main!="string")throw new Error(bu(12,M?` (${M})`:"",JSON.stringify(C.main)));return Z7(C,"light",I,s),Z7(C,"dark",E,s),C.contrastText||(C.contrastText=v(C.main)),C},A={dark:hw,light:J7};return Ks(P({common:P({},Ch),mode:o,primary:w({color:c,name:"primary"}),secondary:w({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:f,name:"error"}),warning:w({color:g,name:"warning"}),info:w({color:p,name:"info"}),success:w({color:m,name:"success"}),grey:XU,contrastThreshold:i,getContrastText:v,augmentColor:w,tonalOffset:s},A[o]),l)}const aG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function sG(n){return Math.round(n*1e5)/1e5}const ek={textTransform:"uppercase"},tk='"Roboto", "Helvetica", "Arial", sans-serif';function lG(n,o){const i=typeof o=="function"?o(n):o,{fontFamily:s=tk,fontSize:l=14,fontWeightLight:c=300,fontWeightRegular:d=400,fontWeightMedium:f=500,fontWeightBold:p=700,htmlFontSize:m=16,allVariants:g,pxToRem:v}=i,w=Qe(i,aG),A=l/14,k=v||(S=>`${S/m*A}rem`),C=(S,I,E,j,B)=>P({fontFamily:s,fontWeight:S,fontSize:k(I),lineHeight:E},s===tk?{letterSpacing:`${sG(j/I)}em`}:{},B,g),M={h1:C(c,96,1.167,-1.5),h2:C(c,60,1.2,-.5),h3:C(d,48,1.167,0),h4:C(d,34,1.235,.25),h5:C(d,24,1.334,0),h6:C(f,20,1.6,.15),subtitle1:C(d,16,1.75,.15),subtitle2:C(f,14,1.57,.1),body1:C(d,16,1.5,.15),body2:C(d,14,1.43,.15),button:C(f,14,1.75,.4,ek),caption:C(d,12,1.66,.4),overline:C(d,12,2.66,1,ek),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ks(P({htmlFontSize:m,pxToRem:k,fontFamily:s,fontSize:l,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:f,fontWeightBold:p},M),w,{clone:!1})}const cG=.2,uG=.14,dG=.12;function Bi(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${cG})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${uG})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${dG})`].join(",")}const fG=["none",Bi(0,2,1,-1,0,1,1,0,0,1,3,0),Bi(0,3,1,-2,0,2,2,0,0,1,5,0),Bi(0,3,3,-2,0,3,4,0,0,1,8,0),Bi(0,2,4,-1,0,4,5,0,0,1,10,0),Bi(0,3,5,-1,0,5,8,0,0,1,14,0),Bi(0,3,5,-1,0,6,10,0,0,1,18,0),Bi(0,4,5,-2,0,7,10,1,0,2,16,1),Bi(0,5,5,-3,0,8,10,1,0,3,14,2),Bi(0,5,6,-3,0,9,12,1,0,3,16,2),Bi(0,6,6,-3,0,10,14,1,0,4,18,3),Bi(0,6,7,-4,0,11,15,1,0,4,20,3),Bi(0,7,8,-4,0,12,17,2,0,5,22,4),Bi(0,7,8,-4,0,13,19,2,0,5,24,4),Bi(0,7,9,-4,0,14,21,2,0,5,26,4),Bi(0,8,9,-5,0,15,22,2,0,6,28,5),Bi(0,8,10,-5,0,16,24,2,0,6,30,5),Bi(0,8,11,-5,0,17,26,2,0,6,32,5),Bi(0,9,11,-5,0,18,28,2,0,7,34,6),Bi(0,9,12,-6,0,19,29,2,0,7,36,6),Bi(0,10,13,-6,0,20,31,3,0,8,38,7),Bi(0,10,13,-6,0,21,33,3,0,8,40,7),Bi(0,10,14,-6,0,22,35,3,0,8,42,7),Bi(0,11,14,-7,0,23,36,3,0,9,44,8),Bi(0,11,15,-7,0,24,38,3,0,9,46,8)],pG=["duration","easing","delay"],hG={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},BP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rk(n){return`${Math.round(n)}ms`}function mG(n){if(!n)return 0;const o=n/36;return Math.round((4+15*o**.25+o/5)*10)}function gG(n){const o=P({},hG,n.easing),i=P({},BP,n.duration);return P({getAutoHeightDuration:mG,create:(l=["all"],c={})=>{const{duration:d=i.standard,easing:f=o.easeInOut,delay:p=0}=c;return Qe(c,pG),(Array.isArray(l)?l:[l]).map(m=>`${m} ${typeof d=="string"?d:rk(d)} ${f} ${typeof p=="string"?p:rk(p)}`).join(",")}},n,{easing:o,duration:i})}const vG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},bG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ap(n={},...o){const{mixins:i={},palette:s={},transitions:l={},typography:c={}}=n,d=Qe(n,bG);if(n.vars)throw new Error(bu(18));const f=iG(s),p=xp(n);let m=Ks(p,{mixins:NU(p.breakpoints,i),palette:f,shadows:fG.slice(),typography:lG(f,c),transitions:gG(l),zIndex:P({},vG)});return m=Ks(m,d),m=o.reduce((g,v)=>Ks(g,v),m),m.unstable_sxConfig=P({},lm,d==null?void 0:d.unstable_sxConfig),m.unstable_sx=function(v){return wp({sx:v,theme:this})},m}const lb=Ap(),df="$$material";function TP(n){return b.jsx(EH,P({},n,{defaultTheme:lb,themeId:df}))}const wG=(n,o)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},o&&!n.vars&&{colorScheme:n.palette.mode}),xG=n=>P({color:(n.vars||n).palette.text.primary},n.typography.body1,{backgroundColor:(n.vars||n).palette.background.default,"@media print":{backgroundColor:(n.vars||n).palette.common.white}}),yG=(n,o=!1)=>{var i;const s={};o&&n.colorSchemes&&Object.entries(n.colorSchemes).forEach(([d,f])=>{var p;s[n.getColorSchemeSelector(d).replace(/\s*&/,"")]={colorScheme:(p=f.palette)==null?void 0:p.mode}});let l=P({html:wG(n,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:n.typography.fontWeightBold},body:P({margin:0},xG(n),{"&::backdrop":{backgroundColor:(n.vars||n).palette.background.default}})},s);const c=(i=n.components)==null||(i=i.MuiCssBaseline)==null?void 0:i.styleOverrides;return c&&(l=[l,c]),l};function FP(n){const o=Zt({props:n,name:"MuiCssBaseline"}),{children:i,enableColorScheme:s=!1}=o;return b.jsxs(x.Fragment,{children:[b.jsx(TP,{styles:l=>yG(l,s)}),i]})}var Rx={},DP={exports:{}},Wl={},NP={exports:{}},$P={};/** + */var W6=Symbol.for("react.element"),q6=Symbol.for("react.portal"),Q3=Symbol.for("react.fragment"),W3=Symbol.for("react.strict_mode"),q3=Symbol.for("react.profiler"),_3=Symbol.for("react.provider"),Y3=Symbol.for("react.context"),YH=Symbol.for("react.server_context"),K3=Symbol.for("react.forward_ref"),X3=Symbol.for("react.suspense"),J3=Symbol.for("react.suspense_list"),Z3=Symbol.for("react.memo"),eb=Symbol.for("react.lazy"),KH=Symbol.for("react.offscreen"),wP;wP=Symbol.for("react.module.reference");function j1(n){if(typeof n=="object"&&n!==null){var o=n.$$typeof;switch(o){case W6:switch(n=n.type,n){case Q3:case q3:case W3:case X3:case J3:return n;default:switch(n=n&&n.$$typeof,n){case YH:case Y3:case K3:case eb:case Z3:case _3:return n;default:return o}}case q6:return o}}}Lo.ContextConsumer=Y3;Lo.ContextProvider=_3;Lo.Element=W6;Lo.ForwardRef=K3;Lo.Fragment=Q3;Lo.Lazy=eb;Lo.Memo=Z3;Lo.Portal=q6;Lo.Profiler=q3;Lo.StrictMode=W3;Lo.Suspense=X3;Lo.SuspenseList=J3;Lo.isAsyncMode=function(){return!1};Lo.isConcurrentMode=function(){return!1};Lo.isContextConsumer=function(n){return j1(n)===Y3};Lo.isContextProvider=function(n){return j1(n)===_3};Lo.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===W6};Lo.isForwardRef=function(n){return j1(n)===K3};Lo.isFragment=function(n){return j1(n)===Q3};Lo.isLazy=function(n){return j1(n)===eb};Lo.isMemo=function(n){return j1(n)===Z3};Lo.isPortal=function(n){return j1(n)===q6};Lo.isProfiler=function(n){return j1(n)===q3};Lo.isStrictMode=function(n){return j1(n)===W3};Lo.isSuspense=function(n){return j1(n)===X3};Lo.isSuspenseList=function(n){return j1(n)===J3};Lo.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===Q3||n===q3||n===W3||n===X3||n===J3||n===KH||typeof n=="object"&&n!==null&&(n.$$typeof===eb||n.$$typeof===Z3||n.$$typeof===_3||n.$$typeof===Y3||n.$$typeof===K3||n.$$typeof===wP||n.getModuleId!==void 0)};Lo.typeOf=j1;bP.exports=Lo;var J7=bP.exports;const XH=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function xP(n){const o=`${n}`.match(XH);return o&&o[1]||""}function yP(n,o=""){return n.displayName||n.name||xP(n)||o}function Z7(n,o,i){const s=yP(o);return n.displayName||(s!==""?`${i}(${s})`:i)}function JH(n){if(n!=null){if(typeof n=="string")return n;if(typeof n=="function")return yP(n,"Component");if(typeof n=="object")switch(n.$$typeof){case J7.ForwardRef:return Z7(n,n.render,"ForwardRef");case J7.Memo:return Z7(n,n.type,"memo");default:return}}}const ZH=Object.freeze(Object.defineProperty({__proto__:null,default:JH,getFunctionName:xP},Symbol.toStringTag,{value:"Module"})),eU=["ownerState"],tU=["variants"],rU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nU(n){return Object.keys(n).length===0}function oU(n){return typeof n=="string"&&n.charCodeAt(0)>96}function hw(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const iU=xp(),aU=n=>n&&n.charAt(0).toLowerCase()+n.slice(1);function eg({defaultTheme:n,theme:o,themeId:i}){return nU(o)?n:o[i]||o}function sU(n){return n?(o,i)=>i[n]:null}function Gg(n,o){let{ownerState:i}=o,s=Qe(o,eU);const l=typeof n=="function"?n(P({ownerState:i},s)):n;if(Array.isArray(l))return l.flatMap(c=>Gg(c,P({ownerState:i},s)));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:c=[]}=l;let f=Qe(l,tU);return c.forEach(p=>{let m=!0;typeof p.props=="function"?m=p.props(P({ownerState:i},s,i)):Object.keys(p.props).forEach(g=>{(i==null?void 0:i[g])!==p.props[g]&&s[g]!==p.props[g]&&(m=!1)}),m&&(Array.isArray(f)||(f=[f]),f.push(typeof p.style=="function"?p.style(P({ownerState:i},s,i)):p.style))}),f}return l}function lU(n={}){const{themeId:o,defaultTheme:i=iU,rootShouldForwardProp:s=hw,slotShouldForwardProp:l=hw}=n,c=d=>wp(P({},d,{theme:eg(P({},d,{defaultTheme:i,themeId:o}))}));return c.__mui_systemSx=!0,(d,f={})=>{cP(d,B=>B.filter(D=>!(D!=null&&D.__mui_systemSx)));const{name:p,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:w=sU(aU(m))}=f,A=Qe(f,rU),k=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,C=v||!1;let M,S=hw;m==="Root"||m==="root"?S=s:m?S=l:oU(d)&&(S=void 0);const I=$6(d,P({shouldForwardProp:S,label:M},A)),E=B=>typeof B=="function"&&B.__emotion_real!==B||Jc(B)?D=>Gg(B,P({},D,{theme:eg({theme:D.theme,defaultTheme:i,themeId:o})})):B,j=(B,...D)=>{let R=E(B);const N=D?D.map(E):[];p&&w&&N.push(_=>{const V=eg(P({},_,{defaultTheme:i,themeId:o}));if(!V.components||!V.components[p]||!V.components[p].styleOverrides)return null;const $=V.components[p].styleOverrides,z={};return Object.entries($).forEach(([Q,G])=>{z[Q]=Gg(G,P({},_,{theme:V}))}),w(_,z)}),p&&!k&&N.push(_=>{var V;const $=eg(P({},_,{defaultTheme:i,themeId:o})),z=$==null||(V=$.components)==null||(V=V[p])==null?void 0:V.variants;return Gg({variants:z},P({},_,{theme:$}))}),C||N.push(c);const U=N.length-D.length;if(Array.isArray(B)&&U>0){const _=new Array(U).fill("");R=[...B,..._],R.raw=[...B.raw,..._]}const L=I(R,...N);return d.muiName&&(L.muiName=d.muiName),L};return I.withConfig&&(j.withConfig=I.withConfig),j}}const zr=lU();function AP(n){const{theme:o,name:i,props:s}=n;return!o||!o.components||!o.components[i]||!o.components[i].defaultProps?s:mh(o.components[i].defaultProps,s)}function _6({props:n,name:o,defaultTheme:i,themeId:s}){let l=V3(i);return s&&(l=l[s]||l),AP({theme:l,name:o,props:n})}const ko=typeof window<"u"?x.useLayoutEffect:x.useEffect;function cU(n,o,i,s,l){const[c,d]=x.useState(()=>l&&i?i(n).matches:s?s(n).matches:o);return ko(()=>{let f=!0;if(!i)return;const p=i(n),m=()=>{f&&d(p.matches)};return m(),p.addListener(m),()=>{f=!1,p.removeListener(m)}},[n,i]),c}const CP=x.useSyncExternalStore;function uU(n,o,i,s,l){const c=x.useCallback(()=>o,[o]),d=x.useMemo(()=>{if(l&&i)return()=>i(n).matches;if(s!==null){const{matches:g}=s(n);return()=>g}return c},[c,n,s,l,i]),[f,p]=x.useMemo(()=>{if(i===null)return[c,()=>()=>{}];const g=i(n);return[()=>g.matches,v=>(g.addListener(v),()=>{g.removeListener(v)})]},[c,i,n]);return CP(p,f,d)}function Y6(n,o={}){const i=V6(),s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=s?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:f=!1}=AP({name:"MuiUseMediaQuery",props:o,theme:i});let p=typeof n=="function"?n(i):n;return p=p.replace(/^@media( ?)/m,""),(CP!==void 0?uU:cU)(p,l,c,d,f)}function kP(n,o=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(o,Math.min(n,i))}const dU=Object.freeze(Object.defineProperty({__proto__:null,default:kP},Symbol.toStringTag,{value:"Module"}));function K6(n,o=0,i=1){return kP(n,o,i)}function fU(n){n=n.slice(1);const o=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(o);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,l)=>l<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function q2(n){if(n.type)return n;if(n.charAt(0)==="#")return q2(fU(n));const o=n.indexOf("("),i=n.substring(0,o);if(["rgb","rgba","hsl","hsla","color"].indexOf(i)===-1)throw new Error(vu(9,n));let s=n.substring(o+1,n.length-1),l;if(i==="color"){if(s=s.split(" "),l=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error(vu(10,l))}else s=s.split(",");return s=s.map(c=>parseFloat(c)),{type:i,values:s,colorSpace:l}}function tb(n){const{type:o,colorSpace:i}=n;let{values:s}=n;return o.indexOf("rgb")!==-1?s=s.map((l,c)=>c<3?parseInt(l,10):l):o.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),o.indexOf("color")!==-1?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${o}(${s})`}function Wd(n,o){return n=q2(n),o=K6(o),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${o}`:n.values[3]=o,tb(n)}function pU(n,o){if(n=q2(n),o=K6(o),n.type.indexOf("hsl")!==-1)n.values[2]*=1-o;else if(n.type.indexOf("rgb")!==-1||n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]*=1-o;return tb(n)}function hU(n,o){if(n=q2(n),o=K6(o),n.type.indexOf("hsl")!==-1)n.values[2]+=(100-n.values[2])*o;else if(n.type.indexOf("rgb")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*o;else if(n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*o;return tb(n)}function yv(...n){return n.reduce((o,i)=>i==null?o:function(...l){o.apply(this,l),i.apply(this,l)},()=>{})}function Ef(n,o=166){let i;function s(...l){const c=()=>{n.apply(this,l)};clearTimeout(i),i=setTimeout(c,o)}return s.clear=()=>{clearTimeout(i)},s}function mU(n,o){return()=>null}function X0(n,o){var i,s;return x.isValidElement(n)&&o.indexOf((i=n.type.muiName)!=null?i:(s=n.type)==null||(s=s._payload)==null||(s=s.value)==null?void 0:s.muiName)!==-1}function ri(n){return n&&n.ownerDocument||document}function Ll(n){return ri(n).defaultView||window}function gU(n,o){return()=>null}function wh(n,o){typeof n=="function"?n(o):n&&(n.current=o)}let ek=0;function vU(n){const[o,i]=x.useState(n),s=n||o;return x.useEffect(()=>{o==null&&(ek+=1,i(`mui-${ek}`))},[o]),s}const tk=bv.useId;function Fo(n){if(tk!==void 0){const o=tk();return n??o}return vU(n)}function bU(n,o,i,s,l){return null}function jc({controlled:n,default:o,name:i,state:s="value"}){const{current:l}=x.useRef(n!==void 0),[c,d]=x.useState(o),f=l?n:c,p=x.useCallback(m=>{l||d(m)},[]);return[f,p]}function ln(n){const o=x.useRef(n);return ko(()=>{o.current=n}),x.useRef((...i)=>(0,o.current)(...i)).current}function Xn(...n){return x.useMemo(()=>n.every(o=>o==null)?null:o=>{n.forEach(i=>{wh(i,o)})},n)}const rk={};function Mf(n,o){const i=x.useRef(rk);return i.current===rk&&(i.current=n(o)),i}const wU=[];function rb(n){x.useEffect(n,wU)}class cm{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new cm}start(o,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},o)}}function Fl(){const n=Mf(cm.create).current;return rb(n.disposeEffect),n}let nb=!0,Bx=!1;const xU=new cm,yU={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function AU(n){const{type:o,tagName:i}=n;return!!(i==="INPUT"&&yU[o]&&!n.readOnly||i==="TEXTAREA"&&!n.readOnly||n.isContentEditable)}function CU(n){n.metaKey||n.altKey||n.ctrlKey||(nb=!0)}function mw(){nb=!1}function kU(){this.visibilityState==="hidden"&&Bx&&(nb=!0)}function SU(n){n.addEventListener("keydown",CU,!0),n.addEventListener("mousedown",mw,!0),n.addEventListener("pointerdown",mw,!0),n.addEventListener("touchstart",mw,!0),n.addEventListener("visibilitychange",kU,!0)}function IU(n){const{target:o}=n;try{return o.matches(":focus-visible")}catch{}return nb||AU(o)}function ob(){const n=x.useCallback(l=>{l!=null&&SU(l.ownerDocument)},[]),o=x.useRef(!1);function i(){return o.current?(Bx=!0,xU.start(100,()=>{Bx=!1}),o.current=!1,!0):!1}function s(l){return IU(l)?(o.current=!0,!0):!1}return{isFocusVisibleRef:o,onFocus:s,onBlur:i,ref:n}}function SP(n){const o=n.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}let Gf;function IP(){if(Gf)return Gf;const n=document.createElement("div"),o=document.createElement("div");return o.style.width="10px",o.style.height="1px",n.appendChild(o),n.dir="rtl",n.style.fontSize="14px",n.style.width="4px",n.style.height="1px",n.style.position="absolute",n.style.top="-1000px",n.style.overflow="scroll",document.body.appendChild(n),Gf="reverse",n.scrollLeft>0?Gf="default":(n.scrollLeft=1,n.scrollLeft===0&&(Gf="negative")),document.body.removeChild(n),Gf}function EU(n,o){const i=n.scrollLeft;if(o!=="rtl")return i;switch(IP()){case"negative":return n.scrollWidth-n.clientWidth+i;case"reverse":return n.scrollWidth-n.clientWidth-i;default:return i}}const X6=n=>{const o=x.useRef({});return x.useEffect(()=>{o.current=n}),o.current};function MU(n){return x.Children.toArray(n).filter(o=>x.isValidElement(o))}function Bt(n,o,i=void 0){const s={};return Object.keys(n).forEach(l=>{s[l]=n[l].reduce((c,d)=>{if(d){const f=o(d);f!==""&&c.push(f),i&&i[d]&&c.push(i[d])}return c},[]).join(" ")}),s}function cf(n){return typeof n=="string"}function d2(n,o,i){return n===void 0||cf(n)?o:P({},o,{ownerState:P({},o.ownerState,i)})}function EP(n,o=[]){if(n===void 0)return{};const i={};return Object.keys(n).filter(s=>s.match(/^on[A-Z]/)&&typeof n[s]=="function"&&!o.includes(s)).forEach(s=>{i[s]=n[s]}),i}function nk(n){if(n===void 0)return{};const o={};return Object.keys(n).filter(i=>!(i.match(/^on[A-Z]/)&&typeof n[i]=="function")).forEach(i=>{o[i]=n[i]}),o}function MP(n){const{getSlotProps:o,additionalProps:i,externalSlotProps:s,externalForwardedProps:l,className:c}=n;if(!o){const A=nt(i==null?void 0:i.className,c,l==null?void 0:l.className,s==null?void 0:s.className),k=P({},i==null?void 0:i.style,l==null?void 0:l.style,s==null?void 0:s.style),C=P({},i,l,s);return A.length>0&&(C.className=A),Object.keys(k).length>0&&(C.style=k),{props:C,internalRef:void 0}}const d=EP(P({},l,s)),f=nk(s),p=nk(l),m=o(d),g=nt(m==null?void 0:m.className,i==null?void 0:i.className,c,l==null?void 0:l.className,s==null?void 0:s.className),v=P({},m==null?void 0:m.style,i==null?void 0:i.style,l==null?void 0:l.style,s==null?void 0:s.style),w=P({},m,i,p,f);return g.length>0&&(w.className=g),Object.keys(v).length>0&&(w.style=v),{props:w,internalRef:m.ref}}function PP(n,o,i){return typeof n=="function"?n(o,i):n}const PU=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zl(n){var o;const{elementType:i,externalSlotProps:s,ownerState:l,skipResolvingSlotProps:c=!1}=n,d=Qe(n,PU),f=c?{}:PP(s,l),{props:p,internalRef:m}=MP(P({},d,{externalSlotProps:f})),g=Xn(m,f==null?void 0:f.ref,(o=n.additionalProps)==null?void 0:o.ref);return d2(i,P({},p,{ref:g}),l)}const jP=x.createContext(null);function OP(){return x.useContext(jP)}const jU=typeof Symbol=="function"&&Symbol.for,OU=jU?Symbol.for("mui.nested"):"__THEME_NESTED__";function RU(n,o){return typeof o=="function"?o(n):P({},n,o)}function BU(n){const{children:o,theme:i}=n,s=OP(),l=x.useMemo(()=>{const c=s===null?i:RU(s,i);return c!=null&&(c[OU]=s!==null),c},[i,s]);return b.jsx(jP.Provider,{value:l,children:o})}const TU=["value"],RP=x.createContext();function FU(n){let{value:o}=n,i=Qe(n,TU);return b.jsx(RP.Provider,P({value:o??!0},i))}const Id=()=>{const n=x.useContext(RP);return n??!1},ok={};function ik(n,o,i,s=!1){return x.useMemo(()=>{const l=n&&o[n]||o;if(typeof i=="function"){const c=i(l),d=n?P({},o,{[n]:c}):c;return s?()=>d:d}return n?P({},o,{[n]:i}):P({},o,i)},[n,o,i,s])}function BP(n){const{children:o,theme:i,themeId:s}=n,l=V6(ok),c=OP()||ok,d=ik(s,l,i),f=ik(s,c,i,!0),p=d.direction==="rtl";return b.jsx(BU,{theme:f,children:b.jsx(im.Provider,{value:d,children:b.jsx(FU,{value:p,children:b.jsx(FL,{value:d==null?void 0:d.components,children:o})})})})}function xh(n){"@babel/helpers - typeof";return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},xh(n)}function DU(n,o){if(xh(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var s=i.call(n,o);if(xh(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function yh(n){var o=DU(n,"string");return xh(o)=="symbol"?o:o+""}const NU=["className","component","disableGutters","fixed","maxWidth","classes"],$U=xp(),LU=zr("div",{name:"MuiContainer",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`maxWidth${Ke(String(i.maxWidth))}`],i.fixed&&o.fixed,i.disableGutters&&o.disableGutters]}}),zU=n=>_6({props:n,name:"MuiContainer",defaultTheme:$U}),HU=(n,o)=>{const i=p=>Kt(o,p),{classes:s,fixed:l,disableGutters:c,maxWidth:d}=n,f={root:["root",d&&`maxWidth${Ke(String(d))}`,l&&"fixed",c&&"disableGutters"]};return Bt(f,i,s)};function UU(n={}){const{createStyledComponent:o=LU,useThemeProps:i=zU,componentName:s="MuiContainer"}=n,l=o(({theme:d,ownerState:f})=>P({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!f.disableGutters&&{paddingLeft:d.spacing(2),paddingRight:d.spacing(2),[d.breakpoints.up("sm")]:{paddingLeft:d.spacing(3),paddingRight:d.spacing(3)}}),({theme:d,ownerState:f})=>f.fixed&&Object.keys(d.breakpoints.values).reduce((p,m)=>{const g=m,v=d.breakpoints.values[g];return v!==0&&(p[d.breakpoints.up(g)]={maxWidth:`${v}${d.breakpoints.unit}`}),p},{}),({theme:d,ownerState:f})=>P({},f.maxWidth==="xs"&&{[d.breakpoints.up("xs")]:{maxWidth:Math.max(d.breakpoints.values.xs,444)}},f.maxWidth&&f.maxWidth!=="xs"&&{[d.breakpoints.up(f.maxWidth)]:{maxWidth:`${d.breakpoints.values[f.maxWidth]}${d.breakpoints.unit}`}}));return x.forwardRef(function(f,p){const m=i(f),{className:g,component:v="div",disableGutters:w=!1,fixed:A=!1,maxWidth:k="lg"}=m,C=Qe(m,NU),M=P({},m,{component:v,disableGutters:w,fixed:A,maxWidth:k}),S=HU(M,s);return b.jsx(l,P({as:v,ownerState:M,className:nt(S.root,g),ref:p},C))})}const GU=["component","direction","spacing","divider","children","className","useFlexGap"],VU=xp(),QU=zr("div",{name:"MuiStack",slot:"Root",overridesResolver:(n,o)=>o.root});function WU(n){return _6({props:n,name:"MuiStack",defaultTheme:VU})}function qU(n,o){const i=x.Children.toArray(n).filter(Boolean);return i.reduce((s,l,c)=>(s.push(l),c({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[n],YU=({ownerState:n,theme:o})=>{let i=P({display:"flex",flexDirection:"column"},xl({theme:o},Zd({values:n.direction,breakpoints:o.breakpoints.values}),s=>({flexDirection:s})));if(n.spacing){const s=U6(o),l=Object.keys(o.breakpoints.values).reduce((p,m)=>((typeof n.spacing=="object"&&n.spacing[m]!=null||typeof n.direction=="object"&&n.direction[m]!=null)&&(p[m]=!0),p),{}),c=Zd({values:n.direction,base:l}),d=Zd({values:n.spacing,base:l});typeof c=="object"&&Object.keys(c).forEach((p,m,g)=>{if(!c[p]){const w=m>0?c[g[m-1]]:"column";c[p]=w}}),i=Ks(i,xl({theme:o},d,(p,m)=>n.useFlexGap?{gap:lf(s,p)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_U(m?c[m]:n.direction)}`]:lf(s,p)}}))}return i=Yz(o.breakpoints,i),i};function KU(n={}){const{createStyledComponent:o=QU,useThemeProps:i=WU,componentName:s="MuiStack"}=n,l=()=>Bt({root:["root"]},p=>Kt(s,p),{}),c=o(YU);return x.forwardRef(function(p,m){const g=i(p),v=lm(g),{component:w="div",direction:A="column",spacing:k=0,divider:C,children:M,className:S,useFlexGap:I=!1}=v,E=Qe(v,GU),j={direction:A,spacing:k,useFlexGap:I},B=l();return b.jsx(c,P({as:w,ownerState:j,ref:m,className:nt(B.root,S)},E,{children:C?qU(M,C):M}))})}function XU(n,o){return P({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},o)}var la={},TP={exports:{}};(function(n){function o(i){return i&&i.__esModule?i:{default:i}}n.exports=o,n.exports.__esModule=!0,n.exports.default=n.exports})(TP);var Jn=TP.exports;const JU=Pu($L),ZU=Pu(dU);var FP=Jn;Object.defineProperty(la,"__esModule",{value:!0});var Lr=la.alpha=LP;la.blend=uG;la.colorChannel=void 0;var ib=la.darken=Z6;la.decomposeColor=C1;la.emphasize=zP;var eG=la.getContrastRatio=iG;la.getLuminance=Av;la.hexToRgb=DP;la.hslToRgb=$P;var ab=la.lighten=e5;la.private_safeAlpha=aG;la.private_safeColorChannel=void 0;la.private_safeDarken=sG;la.private_safeEmphasize=cG;la.private_safeLighten=lG;la.recomposeColor=yp;la.rgbToHex=oG;var ak=FP(JU),tG=FP(ZU);function J6(n,o=0,i=1){return(0,tG.default)(n,o,i)}function DP(n){n=n.slice(1);const o=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(o);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,l)=>l<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function rG(n){const o=n.toString(16);return o.length===1?`0${o}`:o}function C1(n){if(n.type)return n;if(n.charAt(0)==="#")return C1(DP(n));const o=n.indexOf("("),i=n.substring(0,o);if(["rgb","rgba","hsl","hsla","color"].indexOf(i)===-1)throw new Error((0,ak.default)(9,n));let s=n.substring(o+1,n.length-1),l;if(i==="color"){if(s=s.split(" "),l=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error((0,ak.default)(10,l))}else s=s.split(",");return s=s.map(c=>parseFloat(c)),{type:i,values:s,colorSpace:l}}const NP=n=>{const o=C1(n);return o.values.slice(0,3).map((i,s)=>o.type.indexOf("hsl")!==-1&&s!==0?`${i}%`:i).join(" ")};la.colorChannel=NP;const nG=(n,o)=>{try{return NP(n)}catch{return n}};la.private_safeColorChannel=nG;function yp(n){const{type:o,colorSpace:i}=n;let{values:s}=n;return o.indexOf("rgb")!==-1?s=s.map((l,c)=>c<3?parseInt(l,10):l):o.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),o.indexOf("color")!==-1?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${o}(${s})`}function oG(n){if(n.indexOf("#")===0)return n;const{values:o}=C1(n);return`#${o.map((i,s)=>rG(s===3?Math.round(255*i):i)).join("")}`}function $P(n){n=C1(n);const{values:o}=n,i=o[0],s=o[1]/100,l=o[2]/100,c=s*Math.min(l,1-l),d=(m,g=(m+i/30)%12)=>l-c*Math.max(Math.min(g-3,9-g,1),-1);let f="rgb";const p=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(f+="a",p.push(o[3])),yp({type:f,values:p})}function Av(n){n=C1(n);let o=n.type==="hsl"||n.type==="hsla"?C1($P(n)).values:n.values;return o=o.map(i=>(n.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*o[0]+.7152*o[1]+.0722*o[2]).toFixed(3))}function iG(n,o){const i=Av(n),s=Av(o);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}function LP(n,o){return n=C1(n),o=J6(o),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${o}`:n.values[3]=o,yp(n)}function aG(n,o,i){try{return LP(n,o)}catch{return n}}function Z6(n,o){if(n=C1(n),o=J6(o),n.type.indexOf("hsl")!==-1)n.values[2]*=1-o;else if(n.type.indexOf("rgb")!==-1||n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]*=1-o;return yp(n)}function sG(n,o,i){try{return Z6(n,o)}catch{return n}}function e5(n,o){if(n=C1(n),o=J6(o),n.type.indexOf("hsl")!==-1)n.values[2]+=(100-n.values[2])*o;else if(n.type.indexOf("rgb")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*o;else if(n.type.indexOf("color")!==-1)for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*o;return yp(n)}function lG(n,o,i){try{return e5(n,o)}catch{return n}}function zP(n,o=.15){return Av(n)>.5?Z6(n,o):e5(n,o)}function cG(n,o,i){try{return zP(n,o)}catch{return n}}function uG(n,o,i,s=1){const l=(p,m)=>Math.round((p**(1/s)*(1-i)+m**(1/s)*i)**s),c=C1(n),d=C1(o),f=[l(c.values[0],d.values[0]),l(c.values[1],d.values[1]),l(c.values[2],d.values[2])];return yp({type:"rgb",values:f})}const Ah={black:"#000",white:"#fff"},dG={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Vf={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Qf={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Wf={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qf={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_f={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},fG=["mode","contrastThreshold","tonalOffset"],sk={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ah.white,default:Ah.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},gw={text:{primary:Ah.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ah.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function lk(n,o,i,s){const l=s.light||s,c=s.dark||s*1.5;n[o]||(n.hasOwnProperty(i)?n[o]=n[i]:o==="light"?n.light=ab(n.main,l):o==="dark"&&(n.dark=ib(n.main,c)))}function pG(n="light"){return n==="dark"?{main:Wf[200],light:Wf[50],dark:Wf[400]}:{main:Wf[700],light:Wf[400],dark:Wf[800]}}function hG(n="light"){return n==="dark"?{main:Vf[200],light:Vf[50],dark:Vf[400]}:{main:Vf[500],light:Vf[300],dark:Vf[700]}}function mG(n="light"){return n==="dark"?{main:Qf[500],light:Qf[300],dark:Qf[700]}:{main:Qf[700],light:Qf[400],dark:Qf[800]}}function gG(n="light"){return n==="dark"?{main:qf[400],light:qf[300],dark:qf[700]}:{main:qf[700],light:qf[500],dark:qf[900]}}function vG(n="light"){return n==="dark"?{main:_f[400],light:_f[300],dark:_f[700]}:{main:_f[800],light:_f[500],dark:_f[900]}}function bG(n="light"){return n==="dark"?{main:Kp[400],light:Kp[300],dark:Kp[700]}:{main:"#ed6c02",light:Kp[500],dark:Kp[900]}}function wG(n){const{mode:o="light",contrastThreshold:i=3,tonalOffset:s=.2}=n,l=Qe(n,fG),c=n.primary||pG(o),d=n.secondary||hG(o),f=n.error||mG(o),p=n.info||gG(o),m=n.success||vG(o),g=n.warning||bG(o);function v(C){return eG(C,gw.text.primary)>=i?gw.text.primary:sk.text.primary}const w=({color:C,name:M,mainShade:S=500,lightShade:I=300,darkShade:E=700})=>{if(C=P({},C),!C.main&&C[S]&&(C.main=C[S]),!C.hasOwnProperty("main"))throw new Error(vu(11,M?` (${M})`:"",S));if(typeof C.main!="string")throw new Error(vu(12,M?` (${M})`:"",JSON.stringify(C.main)));return lk(C,"light",I,s),lk(C,"dark",E,s),C.contrastText||(C.contrastText=v(C.main)),C},A={dark:gw,light:sk};return Ks(P({common:P({},Ah),mode:o,primary:w({color:c,name:"primary"}),secondary:w({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:f,name:"error"}),warning:w({color:g,name:"warning"}),info:w({color:p,name:"info"}),success:w({color:m,name:"success"}),grey:dG,contrastThreshold:i,getContrastText:v,augmentColor:w,tonalOffset:s},A[o]),l)}const xG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function yG(n){return Math.round(n*1e5)/1e5}const ck={textTransform:"uppercase"},uk='"Roboto", "Helvetica", "Arial", sans-serif';function AG(n,o){const i=typeof o=="function"?o(n):o,{fontFamily:s=uk,fontSize:l=14,fontWeightLight:c=300,fontWeightRegular:d=400,fontWeightMedium:f=500,fontWeightBold:p=700,htmlFontSize:m=16,allVariants:g,pxToRem:v}=i,w=Qe(i,xG),A=l/14,k=v||(S=>`${S/m*A}rem`),C=(S,I,E,j,B)=>P({fontFamily:s,fontWeight:S,fontSize:k(I),lineHeight:E},s===uk?{letterSpacing:`${yG(j/I)}em`}:{},B,g),M={h1:C(c,96,1.167,-1.5),h2:C(c,60,1.2,-.5),h3:C(d,48,1.167,0),h4:C(d,34,1.235,.25),h5:C(d,24,1.334,0),h6:C(f,20,1.6,.15),subtitle1:C(d,16,1.75,.15),subtitle2:C(f,14,1.57,.1),body1:C(d,16,1.5,.15),body2:C(d,14,1.43,.15),button:C(f,14,1.75,.4,ck),caption:C(d,12,1.66,.4),overline:C(d,12,2.66,1,ck),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ks(P({htmlFontSize:m,pxToRem:k,fontFamily:s,fontSize:l,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:f,fontWeightBold:p},M),w,{clone:!1})}const CG=.2,kG=.14,SG=.12;function Ti(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${CG})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${kG})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${SG})`].join(",")}const IG=["none",Ti(0,2,1,-1,0,1,1,0,0,1,3,0),Ti(0,3,1,-2,0,2,2,0,0,1,5,0),Ti(0,3,3,-2,0,3,4,0,0,1,8,0),Ti(0,2,4,-1,0,4,5,0,0,1,10,0),Ti(0,3,5,-1,0,5,8,0,0,1,14,0),Ti(0,3,5,-1,0,6,10,0,0,1,18,0),Ti(0,4,5,-2,0,7,10,1,0,2,16,1),Ti(0,5,5,-3,0,8,10,1,0,3,14,2),Ti(0,5,6,-3,0,9,12,1,0,3,16,2),Ti(0,6,6,-3,0,10,14,1,0,4,18,3),Ti(0,6,7,-4,0,11,15,1,0,4,20,3),Ti(0,7,8,-4,0,12,17,2,0,5,22,4),Ti(0,7,8,-4,0,13,19,2,0,5,24,4),Ti(0,7,9,-4,0,14,21,2,0,5,26,4),Ti(0,8,9,-5,0,15,22,2,0,6,28,5),Ti(0,8,10,-5,0,16,24,2,0,6,30,5),Ti(0,8,11,-5,0,17,26,2,0,6,32,5),Ti(0,9,11,-5,0,18,28,2,0,7,34,6),Ti(0,9,12,-6,0,19,29,2,0,7,36,6),Ti(0,10,13,-6,0,20,31,3,0,8,38,7),Ti(0,10,13,-6,0,21,33,3,0,8,40,7),Ti(0,10,14,-6,0,22,35,3,0,8,42,7),Ti(0,11,14,-7,0,23,36,3,0,9,44,8),Ti(0,11,15,-7,0,24,38,3,0,9,46,8)],EG=["duration","easing","delay"],MG={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},HP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dk(n){return`${Math.round(n)}ms`}function PG(n){if(!n)return 0;const o=n/36;return Math.round((4+15*o**.25+o/5)*10)}function jG(n){const o=P({},MG,n.easing),i=P({},HP,n.duration);return P({getAutoHeightDuration:PG,create:(l=["all"],c={})=>{const{duration:d=i.standard,easing:f=o.easeInOut,delay:p=0}=c;return Qe(c,EG),(Array.isArray(l)?l:[l]).map(m=>`${m} ${typeof d=="string"?d:dk(d)} ${f} ${typeof p=="string"?p:dk(p)}`).join(",")}},n,{easing:o,duration:i})}const OG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},RG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ap(n={},...o){const{mixins:i={},palette:s={},transitions:l={},typography:c={}}=n,d=Qe(n,RG);if(n.vars)throw new Error(vu(18));const f=wG(s),p=xp(n);let m=Ks(p,{mixins:XU(p.breakpoints,i),palette:f,shadows:IG.slice(),typography:AG(f,c),transitions:jG(l),zIndex:P({},OG)});return m=Ks(m,d),m=o.reduce((g,v)=>Ks(g,v),m),m.unstable_sxConfig=P({},sm,d==null?void 0:d.unstable_sxConfig),m.unstable_sx=function(v){return wp({sx:v,theme:this})},m}const sb=Ap(),uf="$$material";function UP(n){return b.jsx(HH,P({},n,{defaultTheme:sb,themeId:uf}))}const BG=(n,o)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},o&&!n.vars&&{colorScheme:n.palette.mode}),TG=n=>P({color:(n.vars||n).palette.text.primary},n.typography.body1,{backgroundColor:(n.vars||n).palette.background.default,"@media print":{backgroundColor:(n.vars||n).palette.common.white}}),FG=(n,o=!1)=>{var i;const s={};o&&n.colorSchemes&&Object.entries(n.colorSchemes).forEach(([d,f])=>{var p;s[n.getColorSchemeSelector(d).replace(/\s*&/,"")]={colorScheme:(p=f.palette)==null?void 0:p.mode}});let l=P({html:BG(n,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:n.typography.fontWeightBold},body:P({margin:0},TG(n),{"&::backdrop":{backgroundColor:(n.vars||n).palette.background.default}})},s);const c=(i=n.components)==null||(i=i.MuiCssBaseline)==null?void 0:i.styleOverrides;return c&&(l=[l,c]),l};function GP(n){const o=Zt({props:n,name:"MuiCssBaseline"}),{children:i,enableColorScheme:s=!1}=o;return b.jsxs(x.Fragment,{children:[b.jsx(UP,{styles:l=>FG(l,s)}),i]})}var Tx={},VP={exports:{}},Ql={},QP={exports:{}},WP={};/** * @license React * scheduler.production.min.js * @@ -37,7 +37,7 @@ var W$=Object.defineProperty;var q$=(n,o,i)=>o in n?W$(n,o,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(n){function o(q,W){var X=q.length;q.push(W);e:for(;0>>1,se=q[te];if(0>>1;tel(fe,X))hel(Ie,fe)?(q[te]=Ie,q[he]=X,te=he):(q[te]=fe,q[ee]=X,te=ee);else if(hel(Ie,X))q[te]=Ie,q[he]=X,te=he;else break e}}return W}function l(q,W){var X=q.sortIndex-W.sortIndex;return X!==0?X:q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var p=[],m=[],g=1,v=null,w=3,A=!1,k=!1,C=!1,M=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(q){for(var W=i(m);W!==null;){if(W.callback===null)s(m);else if(W.startTime<=q)s(m),W.sortIndex=W.expirationTime,o(p,W);else break;W=i(m)}}function j(q){if(C=!1,E(q),!k)if(i(p)!==null)k=!0,G(B);else{var W=i(m);W!==null&&D(j,W.startTime-q)}}function B(q,W){k=!1,C&&(C=!1,S(N),N=-1),A=!0;var X=w;try{for(E(W),v=i(p);v!==null&&(!(v.expirationTime>W)||q&&!_());){var te=v.callback;if(typeof te=="function"){v.callback=null,w=v.priorityLevel;var se=te(v.expirationTime<=W);W=n.unstable_now(),typeof se=="function"?v.callback=se:v===i(p)&&s(p),E(W)}else s(p);v=i(p)}if(v!==null)var de=!0;else{var ee=i(m);ee!==null&&D(j,ee.startTime-W),de=!1}return de}finally{v=null,w=X,A=!1}}var F=!1,O=null,N=-1,H=5,L=-1;function _(){return!(n.unstable_now()-Lq||125te?(q.sortIndex=X,o(m,q),i(p)===null&&q===i(m)&&(C?(S(N),N=-1):C=!0,D(j,X-te))):(q.sortIndex=se,o(p,q),k||A||(k=!0,G(B))),q},n.unstable_shouldYield=_,n.unstable_wrapCallback=function(q){var W=w;return function(){var X=w;w=W;try{return q.apply(this,arguments)}finally{w=X}}}})($P);NP.exports=$P;var AG=NP.exports;/** + */(function(n){function o(q,W){var X=q.length;q.push(W);e:for(;0>>1,se=q[te];if(0>>1;tel(fe,X))hel(Ie,fe)?(q[te]=Ie,q[he]=X,te=he):(q[te]=fe,q[ee]=X,te=ee);else if(hel(Ie,X))q[te]=Ie,q[he]=X,te=he;else break e}}return W}function l(q,W){var X=q.sortIndex-W.sortIndex;return X!==0?X:q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var p=[],m=[],g=1,v=null,w=3,A=!1,k=!1,C=!1,M=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(q){for(var W=i(m);W!==null;){if(W.callback===null)s(m);else if(W.startTime<=q)s(m),W.sortIndex=W.expirationTime,o(p,W);else break;W=i(m)}}function j(q){if(C=!1,E(q),!k)if(i(p)!==null)k=!0,G(B);else{var W=i(m);W!==null&&F(j,W.startTime-q)}}function B(q,W){k=!1,C&&(C=!1,S(N),N=-1),A=!0;var X=w;try{for(E(W),v=i(p);v!==null&&(!(v.expirationTime>W)||q&&!_());){var te=v.callback;if(typeof te=="function"){v.callback=null,w=v.priorityLevel;var se=te(v.expirationTime<=W);W=n.unstable_now(),typeof se=="function"?v.callback=se:v===i(p)&&s(p),E(W)}else s(p);v=i(p)}if(v!==null)var de=!0;else{var ee=i(m);ee!==null&&F(j,ee.startTime-W),de=!1}return de}finally{v=null,w=X,A=!1}}var D=!1,R=null,N=-1,U=5,L=-1;function _(){return!(n.unstable_now()-Lq||125te?(q.sortIndex=X,o(m,q),i(p)===null&&q===i(m)&&(C?(S(N),N=-1):C=!0,F(j,X-te))):(q.sortIndex=se,o(p,q),k||A||(k=!0,G(B))),q},n.unstable_shouldYield=_,n.unstable_wrapCallback=function(q){var W=w;return function(){var X=w;w=W;try{return q.apply(this,arguments)}finally{w=X}}}})(WP);QP.exports=WP;var DG=QP.exports;/** * @license React * react-dom.production.min.js * @@ -45,14 +45,14 @@ var W$=Object.defineProperty;var q$=(n,o,i)=>o in n?W$(n,o,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var CG=x,Ul=AG;function Lt(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bx=Object.prototype.hasOwnProperty,kG=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nk={},ok={};function SG(n){return Bx.call(ok,n)?!0:Bx.call(nk,n)?!1:kG.test(n)?ok[n]=!0:(nk[n]=!0,!1)}function IG(n,o,i,s){if(i!==null&&i.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return s?!1:i!==null?!i.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function EG(n,o,i,s){if(o===null||typeof o>"u"||IG(n,o,i,s))return!0;if(s)return!1;if(i!==null)switch(i.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function el(n,o,i,s,l,c,d){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=i,this.propertyName=n,this.type=o,this.sanitizeURL=c,this.removeEmptyString=d}var hs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){hs[n]=new el(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];hs[o]=new el(o,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){hs[n]=new el(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){hs[n]=new el(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){hs[n]=new el(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){hs[n]=new el(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){hs[n]=new el(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){hs[n]=new el(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){hs[n]=new el(n,5,!1,n.toLowerCase(),null,!1,!1)});var Z6=/[\-:]([a-z])/g;function e5(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(Z6,e5);hs[o]=new el(o,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(Z6,e5);hs[o]=new el(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(Z6,e5);hs[o]=new el(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){hs[n]=new el(n,1,!1,n.toLowerCase(),null,!1,!1)});hs.xlinkHref=new el("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){hs[n]=new el(n,1,!1,n.toLowerCase(),null,!0,!0)});function t5(n,o,i,s){var l=hs.hasOwnProperty(o)?hs[o]:null;(l!==null?l.type!==0:s||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fx=Object.prototype.hasOwnProperty,$G=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fk={},pk={};function LG(n){return Fx.call(pk,n)?!0:Fx.call(fk,n)?!1:$G.test(n)?pk[n]=!0:(fk[n]=!0,!1)}function zG(n,o,i,s){if(i!==null&&i.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return s?!1:i!==null?!i.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function HG(n,o,i,s){if(o===null||typeof o>"u"||zG(n,o,i,s))return!0;if(s)return!1;if(i!==null)switch(i.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function tl(n,o,i,s,l,c,d){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=i,this.propertyName=n,this.type=o,this.sanitizeURL=c,this.removeEmptyString=d}var hs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){hs[n]=new tl(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];hs[o]=new tl(o,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){hs[n]=new tl(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){hs[n]=new tl(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){hs[n]=new tl(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){hs[n]=new tl(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){hs[n]=new tl(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){hs[n]=new tl(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){hs[n]=new tl(n,5,!1,n.toLowerCase(),null,!1,!1)});var t5=/[\-:]([a-z])/g;function r5(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(t5,r5);hs[o]=new tl(o,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(t5,r5);hs[o]=new tl(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(t5,r5);hs[o]=new tl(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){hs[n]=new tl(n,1,!1,n.toLowerCase(),null,!1,!1)});hs.xlinkHref=new tl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){hs[n]=new tl(n,1,!1,n.toLowerCase(),null,!0,!0)});function n5(n,o,i,s){var l=hs.hasOwnProperty(o)?hs[o]:null;(l!==null?l.type!==0:s||!(2f||l[d]!==c[f]){var p=` -`+l[d].replace(" at new "," at ");return n.displayName&&p.includes("")&&(p=p.replace("",n.displayName)),p}while(1<=d&&0<=f);break}}}finally{gw=!1,Error.prepareStackTrace=i}return(n=n?n.displayName||n.name:"")?v0(n):""}function MG(n){switch(n.tag){case 5:return v0(n.type);case 16:return v0("Lazy");case 13:return v0("Suspense");case 19:return v0("SuspenseList");case 0:case 2:case 15:return n=vw(n.type,!1),n;case 11:return n=vw(n.type.render,!1),n;case 1:return n=vw(n.type,!0),n;default:return""}}function Nx(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case h2:return"Fragment";case p2:return"Portal";case Tx:return"Profiler";case r5:return"StrictMode";case Fx:return"Suspense";case Dx:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case HP:return(n.displayName||"Context")+".Consumer";case zP:return(n._context.displayName||"Context")+".Provider";case n5:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case o5:return o=n.displayName||null,o!==null?o:Nx(n.type)||"Memo";case Xu:o=n._payload,n=n._init;try{return Nx(n(o))}catch{}}return null}function PG(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nx(o);case 8:return o===r5?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ad(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function GP(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function jG(n){var o=GP(n)?"checked":"value",i=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),s=""+n[o];if(!n.hasOwnProperty(o)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,c=i.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return l.call(this)},set:function(d){s=""+d,c.call(this,d)}}),Object.defineProperty(n,o,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(d){s=""+d},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function rg(n){n._valueTracker||(n._valueTracker=jG(n))}function VP(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var i=o.getValue(),s="";return n&&(s=GP(n)?n.checked?"true":"false":n.value),n=s,n!==i?(o.setValue(n),!0):!1}function Cv(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function $x(n,o){var i=o.checked;return Gi({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??n._wrapperState.initialChecked})}function ak(n,o){var i=o.defaultValue==null?"":o.defaultValue,s=o.checked!=null?o.checked:o.defaultChecked;i=Ad(o.value!=null?o.value:i),n._wrapperState={initialChecked:s,initialValue:i,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function QP(n,o){o=o.checked,o!=null&&t5(n,"checked",o,!1)}function Lx(n,o){QP(n,o);var i=Ad(o.value),s=o.type;if(i!=null)s==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+i):n.value!==""+i&&(n.value=""+i);else if(s==="submit"||s==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?zx(n,o.type,i):o.hasOwnProperty("defaultValue")&&zx(n,o.type,Ad(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function sk(n,o,i){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var s=o.type;if(!(s!=="submit"&&s!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,i||o===n.value||(n.value=o),n.defaultValue=o}i=n.name,i!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,i!==""&&(n.name=i)}function zx(n,o,i){(o!=="number"||Cv(n.ownerDocument)!==n)&&(i==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+i&&(n.defaultValue=""+i))}var b0=Array.isArray;function F2(n,o,i,s){if(n=n.options,o){o={};for(var l=0;l"+o.valueOf().toString()+"",o=ng.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function Sh(n,o){if(o){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=o;return}}n.textContent=o}var Z0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},OG=["Webkit","ms","Moz","O"];Object.keys(Z0).forEach(function(n){OG.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),Z0[o]=Z0[n]})});function YP(n,o,i){return o==null||typeof o=="boolean"||o===""?"":i||typeof o!="number"||o===0||Z0.hasOwnProperty(n)&&Z0[n]?(""+o).trim():o+"px"}function KP(n,o){n=n.style;for(var i in o)if(o.hasOwnProperty(i)){var s=i.indexOf("--")===0,l=YP(i,o[i],s);i==="float"&&(i="cssFloat"),s?n.setProperty(i,l):n[i]=l}}var RG=Gi({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gx(n,o){if(o){if(RG[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(Lt(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(Lt(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(Lt(61))}if(o.style!=null&&typeof o.style!="object")throw Error(Lt(62))}}function Vx(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qx=null;function i5(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Wx=null,D2=null,N2=null;function uk(n){if(n=pm(n)){if(typeof Wx!="function")throw Error(Lt(280));var o=n.stateNode;o&&(o=pb(o),Wx(n.stateNode,n.type,o))}}function XP(n){D2?N2?N2.push(n):N2=[n]:D2=n}function JP(){if(D2){var n=D2,o=N2;if(N2=D2=null,uk(n),o)for(n=0;n>>=0,n===0?32:31-(GG(n)/VG|0)|0}var og=64,ig=4194304;function w0(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ev(n,o){var i=n.pendingLanes;if(i===0)return 0;var s=0,l=n.suspendedLanes,c=n.pingedLanes,d=i&268435455;if(d!==0){var f=d&~l;f!==0?s=w0(f):(c&=d,c!==0&&(s=w0(c)))}else d=i&~l,d!==0?s=w0(d):c!==0&&(s=w0(c));if(s===0)return 0;if(o!==0&&o!==s&&!(o&l)&&(l=s&-s,c=o&-o,l>=c||l===16&&(c&4194240)!==0))return o;if(s&4&&(s|=i&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=s;0i;i++)o.push(n);return o}function dm(n,o,i){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-X1(o),n[o]=i}function _G(n,o){var i=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var s=n.eventTimes;for(n=n.expirationTimes;0=th),wk=" ",xk=!1;function bj(n,o){switch(n){case"keyup":return AV.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wj(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var m2=!1;function kV(n,o){switch(n){case"compositionend":return wj(o);case"keypress":return o.which!==32?null:(xk=!0,wk);case"textInput":return n=o.data,n===wk&&xk?null:n;default:return null}}function SV(n,o){if(m2)return n==="compositionend"||!p5&&bj(n,o)?(n=gj(),Qg=u5=nd=null,m2=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:i,offset:o-n};n=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=kk(i)}}function Cj(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?Cj(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function kj(){for(var n=window,o=Cv();o instanceof n.HTMLIFrameElement;){try{var i=typeof o.contentWindow.location.href=="string"}catch{i=!1}if(i)n=o.contentWindow;else break;o=Cv(n.document)}return o}function h5(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function TV(n){var o=kj(),i=n.focusedElem,s=n.selectionRange;if(o!==i&&i&&i.ownerDocument&&Cj(i.ownerDocument.documentElement,i)){if(s!==null&&h5(i)){if(o=s.start,n=s.end,n===void 0&&(n=o),"selectionStart"in i)i.selectionStart=o,i.selectionEnd=Math.min(n,i.value.length);else if(n=(o=i.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var l=i.textContent.length,c=Math.min(s.start,l);s=s.end===void 0?c:Math.min(s.end,l),!n.extend&&c>s&&(l=s,s=c,c=l),l=Sk(i,c);var d=Sk(i,s);l&&d&&(n.rangeCount!==1||n.anchorNode!==l.node||n.anchorOffset!==l.offset||n.focusNode!==d.node||n.focusOffset!==d.offset)&&(o=o.createRange(),o.setStart(l.node,l.offset),n.removeAllRanges(),c>s?(n.addRange(o),n.extend(d.node,d.offset)):(o.setEnd(d.node,d.offset),n.addRange(o)))}}for(o=[],n=i;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,g2=null,Jx=null,nh=null,Zx=!1;function Ik(n,o,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Zx||g2==null||g2!==Cv(s)||(s=g2,"selectionStart"in s&&h5(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),nh&&Oh(nh,s)||(nh=s,s=jv(Jx,"onSelect"),0w2||(n.current=iy[w2],iy[w2]=null,w2--)}function ci(n,o){w2++,iy[w2]=n.current,n.current=o}var Cd={},Ts=jd(Cd),pl=jd(!1),ff=Cd;function K2(n,o){var i=n.type.contextTypes;if(!i)return Cd;var s=n.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===o)return s.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in i)l[c]=o[c];return s&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=l),l}function hl(n){return n=n.childContextTypes,n!=null}function Rv(){Si(pl),Si(Ts)}function Bk(n,o,i){if(Ts.current!==Cd)throw Error(Lt(168));ci(Ts,o),ci(pl,i)}function Bj(n,o,i){var s=n.stateNode;if(o=o.childContextTypes,typeof s.getChildContext!="function")return i;s=s.getChildContext();for(var l in s)if(!(l in o))throw Error(Lt(108,PG(n)||"Unknown",l));return Gi({},i,s)}function Bv(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Cd,ff=Ts.current,ci(Ts,n),ci(pl,pl.current),!0}function Tk(n,o,i){var s=n.stateNode;if(!s)throw Error(Lt(169));i?(n=Bj(n,o,ff),s.__reactInternalMemoizedMergedChildContext=n,Si(pl),Si(Ts),ci(Ts,n)):Si(pl),ci(pl,i)}var Jc=null,hb=!1,Ow=!1;function Tj(n){Jc===null?Jc=[n]:Jc.push(n)}function WV(n){hb=!0,Tj(n)}function Od(){if(!Ow&&Jc!==null){Ow=!0;var n=0,o=To;try{var i=Jc;for(To=1;n>=d,l-=d,nu=1<<32-X1(o)+l|i<N?(H=O,O=null):H=O.sibling;var L=w(S,O,E[N],j);if(L===null){O===null&&(O=H);break}n&&O&&L.alternate===null&&o(S,O),I=c(L,I,N),F===null?B=L:F.sibling=L,F=L,O=H}if(N===E.length)return i(S,O),Ti&&Vd(S,N),B;if(O===null){for(;NN?(H=O,O=null):H=O.sibling;var _=w(S,O,L.value,j);if(_===null){O===null&&(O=H);break}n&&O&&_.alternate===null&&o(S,O),I=c(_,I,N),F===null?B=_:F.sibling=_,F=_,O=H}if(L.done)return i(S,O),Ti&&Vd(S,N),B;if(O===null){for(;!L.done;N++,L=E.next())L=v(S,L.value,j),L!==null&&(I=c(L,I,N),F===null?B=L:F.sibling=L,F=L);return Ti&&Vd(S,N),B}for(O=s(S,O);!L.done;N++,L=E.next())L=A(O,S,N,L.value,j),L!==null&&(n&&L.alternate!==null&&O.delete(L.key===null?N:L.key),I=c(L,I,N),F===null?B=L:F.sibling=L,F=L);return n&&O.forEach(function(V){return o(S,V)}),Ti&&Vd(S,N),B}function M(S,I,E,j){if(typeof E=="object"&&E!==null&&E.type===h2&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case tg:e:{for(var B=E.key,F=I;F!==null;){if(F.key===B){if(B=E.type,B===h2){if(F.tag===7){i(S,F.sibling),I=l(F,E.props.children),I.return=S,S=I;break e}}else if(F.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Xu&&Nk(B)===F.type){i(S,F.sibling),I=l(F,E.props),I.ref=n0(S,F,E),I.return=S,S=I;break e}i(S,F);break}else o(S,F);F=F.sibling}E.type===h2?(I=rf(E.props.children,S.mode,j,E.key),I.return=S,S=I):(j=Zg(E.type,E.key,E.props,null,S.mode,j),j.ref=n0(S,I,E),j.return=S,S=j)}return d(S);case p2:e:{for(F=E.key;I!==null;){if(I.key===F)if(I.tag===4&&I.stateNode.containerInfo===E.containerInfo&&I.stateNode.implementation===E.implementation){i(S,I.sibling),I=l(I,E.children||[]),I.return=S,S=I;break e}else{i(S,I);break}else o(S,I);I=I.sibling}I=Lw(E,S.mode,j),I.return=S,S=I}return d(S);case Xu:return F=E._init,M(S,I,F(E._payload),j)}if(b0(E))return k(S,I,E,j);if(Jp(E))return C(S,I,E,j);fg(S,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,I!==null&&I.tag===6?(i(S,I.sibling),I=l(I,E),I.return=S,S=I):(i(S,I),I=$w(E,S.mode,j),I.return=S,S=I),d(S)):i(S,I)}return M}var J2=$j(!0),Lj=$j(!1),Dv=jd(null),Nv=null,A2=null,b5=null;function w5(){b5=A2=Nv=null}function x5(n){var o=Dv.current;Si(Dv),n._currentValue=o}function ly(n,o,i){for(;n!==null;){var s=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,s!==null&&(s.childLanes|=o)):s!==null&&(s.childLanes&o)!==o&&(s.childLanes|=o),n===i)break;n=n.return}}function L2(n,o){Nv=n,b5=A2=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&o&&(fl=!0),n.firstContext=null)}function S1(n){var o=n._currentValue;if(b5!==n)if(n={context:n,memoizedValue:o,next:null},A2===null){if(Nv===null)throw Error(Lt(308));A2=n,Nv.dependencies={lanes:0,firstContext:n}}else A2=A2.next=n;return o}var Kd=null;function y5(n){Kd===null?Kd=[n]:Kd.push(n)}function zj(n,o,i,s){var l=o.interleaved;return l===null?(i.next=i,y5(o)):(i.next=l.next,l.next=i),o.interleaved=i,Au(n,s)}function Au(n,o){n.lanes|=o;var i=n.alternate;for(i!==null&&(i.lanes|=o),i=n,n=n.return;n!==null;)n.childLanes|=o,i=n.alternate,i!==null&&(i.childLanes|=o),i=n,n=n.return;return i.tag===3?i.stateNode:null}var Ju=!1;function A5(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hj(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function cu(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function md(n,o,i){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,no&2){var l=s.pending;return l===null?o.next=o:(o.next=l.next,l.next=o),s.pending=o,Au(n,i)}return l=s.interleaved,l===null?(o.next=o,y5(s)):(o.next=l.next,l.next=o),s.interleaved=o,Au(n,i)}function qg(n,o,i){if(o=o.updateQueue,o!==null&&(o=o.shared,(i&4194240)!==0)){var s=o.lanes;s&=n.pendingLanes,i|=s,o.lanes=i,s5(n,i)}}function $k(n,o){var i=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var l=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var d={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?l=c=d:c=c.next=d,i=i.next}while(i!==null);c===null?l=c=o:c=c.next=o}else l=c=o;i={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:s.shared,effects:s.effects},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=o:n.next=o,i.lastBaseUpdate=o}function $v(n,o,i,s){var l=n.updateQueue;Ju=!1;var c=l.firstBaseUpdate,d=l.lastBaseUpdate,f=l.shared.pending;if(f!==null){l.shared.pending=null;var p=f,m=p.next;p.next=null,d===null?c=m:d.next=m,d=p;var g=n.alternate;g!==null&&(g=g.updateQueue,f=g.lastBaseUpdate,f!==d&&(f===null?g.firstBaseUpdate=m:f.next=m,g.lastBaseUpdate=p))}if(c!==null){var v=l.baseState;d=0,g=m=p=null,f=c;do{var w=f.lane,A=f.eventTime;if((s&w)===w){g!==null&&(g=g.next={eventTime:A,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var k=n,C=f;switch(w=o,A=i,C.tag){case 1:if(k=C.payload,typeof k=="function"){v=k.call(A,v,w);break e}v=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=C.payload,w=typeof k=="function"?k.call(A,v,w):k,w==null)break e;v=Gi({},v,w);break e;case 2:Ju=!0}}f.callback!==null&&f.lane!==0&&(n.flags|=64,w=l.effects,w===null?l.effects=[f]:w.push(f))}else A={eventTime:A,lane:w,tag:f.tag,payload:f.payload,callback:f.callback,next:null},g===null?(m=g=A,p=v):g=g.next=A,d|=w;if(f=f.next,f===null){if(f=l.shared.pending,f===null)break;w=f,f=w.next,w.next=null,l.lastBaseUpdate=w,l.shared.pending=null}}while(!0);if(g===null&&(p=v),l.baseState=p,l.firstBaseUpdate=m,l.lastBaseUpdate=g,o=l.shared.interleaved,o!==null){l=o;do d|=l.lane,l=l.next;while(l!==o)}else c===null&&(l.shared.lanes=0);mf|=d,n.lanes=d,n.memoizedState=v}}function Lk(n,o,i){if(n=o.effects,o.effects=null,n!==null)for(o=0;oi?i:4,n(!0);var s=Bw.transition;Bw.transition={};try{n(!1),o()}finally{To=i,Bw.transition=s}}function oO(){return I1().memoizedState}function KV(n,o,i){var s=vd(n);if(i={lane:s,action:i,hasEagerState:!1,eagerState:null,next:null},iO(n))aO(o,i);else if(i=zj(n,o,i,s),i!==null){var l=Xs();J1(i,n,s,l),sO(i,o,s)}}function XV(n,o,i){var s=vd(n),l={lane:s,action:i,hasEagerState:!1,eagerState:null,next:null};if(iO(n))aO(o,l);else{var c=n.alternate;if(n.lanes===0&&(c===null||c.lanes===0)&&(c=o.lastRenderedReducer,c!==null))try{var d=o.lastRenderedState,f=c(d,i);if(l.hasEagerState=!0,l.eagerState=f,ac(f,d)){var p=o.interleaved;p===null?(l.next=l,y5(o)):(l.next=p.next,p.next=l),o.interleaved=l;return}}catch{}finally{}i=zj(n,o,l,s),i!==null&&(l=Xs(),J1(i,n,s,l),sO(i,o,s))}}function iO(n){var o=n.alternate;return n===Ui||o!==null&&o===Ui}function aO(n,o){oh=zv=!0;var i=n.pending;i===null?o.next=o:(o.next=i.next,i.next=o),n.pending=o}function sO(n,o,i){if(i&4194240){var s=o.lanes;s&=n.pendingLanes,i|=s,o.lanes=i,s5(n,i)}}var Hv={readContext:S1,useCallback:Es,useContext:Es,useEffect:Es,useImperativeHandle:Es,useInsertionEffect:Es,useLayoutEffect:Es,useMemo:Es,useReducer:Es,useRef:Es,useState:Es,useDebugValue:Es,useDeferredValue:Es,useTransition:Es,useMutableSource:Es,useSyncExternalStore:Es,useId:Es,unstable_isNewReconciler:!1},JV={readContext:S1,useCallback:function(n,o){return Ac().memoizedState=[n,o===void 0?null:o],n},useContext:S1,useEffect:Hk,useImperativeHandle:function(n,o,i){return i=i!=null?i.concat([n]):null,Yg(4194308,4,Zj.bind(null,o,n),i)},useLayoutEffect:function(n,o){return Yg(4194308,4,n,o)},useInsertionEffect:function(n,o){return Yg(4,2,n,o)},useMemo:function(n,o){var i=Ac();return o=o===void 0?null:o,n=n(),i.memoizedState=[n,o],n},useReducer:function(n,o,i){var s=Ac();return o=i!==void 0?i(o):o,s.memoizedState=s.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},s.queue=n,n=n.dispatch=KV.bind(null,Ui,n),[s.memoizedState,n]},useRef:function(n){var o=Ac();return n={current:n},o.memoizedState=n},useState:zk,useDebugValue:j5,useDeferredValue:function(n){return Ac().memoizedState=n},useTransition:function(){var n=zk(!1),o=n[0];return n=YV.bind(null,n[1]),Ac().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,i){var s=Ui,l=Ac();if(Ti){if(i===void 0)throw Error(Lt(407));i=i()}else{if(i=o(),Ja===null)throw Error(Lt(349));hf&30||Qj(s,o,i)}l.memoizedState=i;var c={value:i,getSnapshot:o};return l.queue=c,Hk(qj.bind(null,s,c,n),[n]),s.flags|=2048,Lh(9,Wj.bind(null,s,c,i,o),void 0,null),i},useId:function(){var n=Ac(),o=Ja.identifierPrefix;if(Ti){var i=ou,s=nu;i=(s&~(1<<32-X1(s)-1)).toString(32)+i,o=":"+o+"R"+i,i=Nh++,0")&&(p=p.replace("",n.displayName)),p}while(1<=d&&0<=f);break}}}finally{bw=!1,Error.prepareStackTrace=i}return(n=n?n.displayName||n.name:"")?g0(n):""}function UG(n){switch(n.tag){case 5:return g0(n.type);case 16:return g0("Lazy");case 13:return g0("Suspense");case 19:return g0("SuspenseList");case 0:case 2:case 15:return n=ww(n.type,!1),n;case 11:return n=ww(n.type.render,!1),n;case 1:return n=ww(n.type,!0),n;default:return""}}function Lx(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case p2:return"Fragment";case f2:return"Portal";case Dx:return"Profiler";case o5:return"StrictMode";case Nx:return"Suspense";case $x:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case YP:return(n.displayName||"Context")+".Consumer";case _P:return(n._context.displayName||"Context")+".Provider";case i5:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case a5:return o=n.displayName||null,o!==null?o:Lx(n.type)||"Memo";case Xu:o=n._payload,n=n._init;try{return Lx(n(o))}catch{}}return null}function GG(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lx(o);case 8:return o===o5?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function yd(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function XP(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function VG(n){var o=XP(n)?"checked":"value",i=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),s=""+n[o];if(!n.hasOwnProperty(o)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,c=i.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return l.call(this)},set:function(d){s=""+d,c.call(this,d)}}),Object.defineProperty(n,o,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(d){s=""+d},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function rg(n){n._valueTracker||(n._valueTracker=VG(n))}function JP(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var i=o.getValue(),s="";return n&&(s=XP(n)?n.checked?"true":"false":n.value),n=s,n!==i?(o.setValue(n),!0):!1}function Cv(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function zx(n,o){var i=o.checked;return Gi({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??n._wrapperState.initialChecked})}function mk(n,o){var i=o.defaultValue==null?"":o.defaultValue,s=o.checked!=null?o.checked:o.defaultChecked;i=yd(o.value!=null?o.value:i),n._wrapperState={initialChecked:s,initialValue:i,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function ZP(n,o){o=o.checked,o!=null&&n5(n,"checked",o,!1)}function Hx(n,o){ZP(n,o);var i=yd(o.value),s=o.type;if(i!=null)s==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+i):n.value!==""+i&&(n.value=""+i);else if(s==="submit"||s==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?Ux(n,o.type,i):o.hasOwnProperty("defaultValue")&&Ux(n,o.type,yd(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function gk(n,o,i){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var s=o.type;if(!(s!=="submit"&&s!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,i||o===n.value||(n.value=o),n.defaultValue=o}i=n.name,i!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,i!==""&&(n.name=i)}function Ux(n,o,i){(o!=="number"||Cv(n.ownerDocument)!==n)&&(i==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+i&&(n.defaultValue=""+i))}var v0=Array.isArray;function T2(n,o,i,s){if(n=n.options,o){o={};for(var l=0;l"+o.valueOf().toString()+"",o=ng.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function kh(n,o){if(o){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=o;return}}n.textContent=o}var J0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},QG=["Webkit","ms","Moz","O"];Object.keys(J0).forEach(function(n){QG.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),J0[o]=J0[n]})});function nj(n,o,i){return o==null||typeof o=="boolean"||o===""?"":i||typeof o!="number"||o===0||J0.hasOwnProperty(n)&&J0[n]?(""+o).trim():o+"px"}function oj(n,o){n=n.style;for(var i in o)if(o.hasOwnProperty(i)){var s=i.indexOf("--")===0,l=nj(i,o[i],s);i==="float"&&(i="cssFloat"),s?n.setProperty(i,l):n[i]=l}}var WG=Gi({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qx(n,o){if(o){if(WG[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(Lt(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(Lt(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(Lt(61))}if(o.style!=null&&typeof o.style!="object")throw Error(Lt(62))}}function Wx(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qx=null;function s5(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var _x=null,F2=null,D2=null;function wk(n){if(n=fm(n)){if(typeof _x!="function")throw Error(Lt(280));var o=n.stateNode;o&&(o=fb(o),_x(n.stateNode,n.type,o))}}function ij(n){F2?D2?D2.push(n):D2=[n]:F2=n}function aj(){if(F2){var n=F2,o=D2;if(D2=F2=null,wk(n),o)for(n=0;n>>=0,n===0?32:31-(nV(n)/oV|0)|0}var og=64,ig=4194304;function b0(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ev(n,o){var i=n.pendingLanes;if(i===0)return 0;var s=0,l=n.suspendedLanes,c=n.pingedLanes,d=i&268435455;if(d!==0){var f=d&~l;f!==0?s=b0(f):(c&=d,c!==0&&(s=b0(c)))}else d=i&~l,d!==0?s=b0(d):c!==0&&(s=b0(c));if(s===0)return 0;if(o!==0&&o!==s&&!(o&l)&&(l=s&-s,c=o&-o,l>=c||l===16&&(c&4194240)!==0))return o;if(s&4&&(s|=i&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=s;0i;i++)o.push(n);return o}function um(n,o,i){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-K1(o),n[o]=i}function lV(n,o){var i=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var s=n.eventTimes;for(n=n.expirationTimes;0=eh),Mk=" ",Pk=!1;function Ij(n,o){switch(n){case"keyup":return DV.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ej(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var h2=!1;function $V(n,o){switch(n){case"compositionend":return Ej(o);case"keypress":return o.which!==32?null:(Pk=!0,Mk);case"textInput":return n=o.data,n===Mk&&Pk?null:n;default:return null}}function LV(n,o){if(h2)return n==="compositionend"||!m5&&Ij(n,o)?(n=kj(),Qg=f5=nd=null,h2=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:i,offset:o-n};n=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Bk(i)}}function Oj(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?Oj(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function Rj(){for(var n=window,o=Cv();o instanceof n.HTMLIFrameElement;){try{var i=typeof o.contentWindow.location.href=="string"}catch{i=!1}if(i)n=o.contentWindow;else break;o=Cv(n.document)}return o}function g5(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function _V(n){var o=Rj(),i=n.focusedElem,s=n.selectionRange;if(o!==i&&i&&i.ownerDocument&&Oj(i.ownerDocument.documentElement,i)){if(s!==null&&g5(i)){if(o=s.start,n=s.end,n===void 0&&(n=o),"selectionStart"in i)i.selectionStart=o,i.selectionEnd=Math.min(n,i.value.length);else if(n=(o=i.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var l=i.textContent.length,c=Math.min(s.start,l);s=s.end===void 0?c:Math.min(s.end,l),!n.extend&&c>s&&(l=s,s=c,c=l),l=Tk(i,c);var d=Tk(i,s);l&&d&&(n.rangeCount!==1||n.anchorNode!==l.node||n.anchorOffset!==l.offset||n.focusNode!==d.node||n.focusOffset!==d.offset)&&(o=o.createRange(),o.setStart(l.node,l.offset),n.removeAllRanges(),c>s?(n.addRange(o),n.extend(d.node,d.offset)):(o.setEnd(d.node,d.offset),n.addRange(o)))}}for(o=[],n=i;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,m2=null,ey=null,rh=null,ty=!1;function Fk(n,o,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ty||m2==null||m2!==Cv(s)||(s=m2,"selectionStart"in s&&g5(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),rh&&jh(rh,s)||(rh=s,s=jv(ey,"onSelect"),0b2||(n.current=sy[b2],sy[b2]=null,b2--)}function di(n,o){b2++,sy[b2]=n.current,n.current=o}var Ad={},Ts=Md(Ad),pl=Md(!1),df=Ad;function Y2(n,o){var i=n.type.contextTypes;if(!i)return Ad;var s=n.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===o)return s.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in i)l[c]=o[c];return s&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=l),l}function hl(n){return n=n.childContextTypes,n!=null}function Rv(){Ii(pl),Ii(Ts)}function Uk(n,o,i){if(Ts.current!==Ad)throw Error(Lt(168));di(Ts,o),di(pl,i)}function Hj(n,o,i){var s=n.stateNode;if(o=o.childContextTypes,typeof s.getChildContext!="function")return i;s=s.getChildContext();for(var l in s)if(!(l in o))throw Error(Lt(108,GG(n)||"Unknown",l));return Gi({},i,s)}function Bv(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Ad,df=Ts.current,di(Ts,n),di(pl,pl.current),!0}function Gk(n,o,i){var s=n.stateNode;if(!s)throw Error(Lt(169));i?(n=Hj(n,o,df),s.__reactInternalMemoizedMergedChildContext=n,Ii(pl),Ii(Ts),di(Ts,n)):Ii(pl),di(pl,i)}var Kc=null,pb=!1,Bw=!1;function Uj(n){Kc===null?Kc=[n]:Kc.push(n)}function aQ(n){pb=!0,Uj(n)}function Pd(){if(!Bw&&Kc!==null){Bw=!0;var n=0,o=No;try{var i=Kc;for(No=1;n>=d,l-=d,tu=1<<32-K1(o)+l|i<N?(U=R,R=null):U=R.sibling;var L=w(S,R,E[N],j);if(L===null){R===null&&(R=U);break}n&&R&&L.alternate===null&&o(S,R),I=c(L,I,N),D===null?B=L:D.sibling=L,D=L,R=U}if(N===E.length)return i(S,R),Fi&&Ud(S,N),B;if(R===null){for(;NN?(U=R,R=null):U=R.sibling;var _=w(S,R,L.value,j);if(_===null){R===null&&(R=U);break}n&&R&&_.alternate===null&&o(S,R),I=c(_,I,N),D===null?B=_:D.sibling=_,D=_,R=U}if(L.done)return i(S,R),Fi&&Ud(S,N),B;if(R===null){for(;!L.done;N++,L=E.next())L=v(S,L.value,j),L!==null&&(I=c(L,I,N),D===null?B=L:D.sibling=L,D=L);return Fi&&Ud(S,N),B}for(R=s(S,R);!L.done;N++,L=E.next())L=A(R,S,N,L.value,j),L!==null&&(n&&L.alternate!==null&&R.delete(L.key===null?N:L.key),I=c(L,I,N),D===null?B=L:D.sibling=L,D=L);return n&&R.forEach(function(V){return o(S,V)}),Fi&&Ud(S,N),B}function M(S,I,E,j){if(typeof E=="object"&&E!==null&&E.type===p2&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case tg:e:{for(var B=E.key,D=I;D!==null;){if(D.key===B){if(B=E.type,B===p2){if(D.tag===7){i(S,D.sibling),I=l(D,E.props.children),I.return=S,S=I;break e}}else if(D.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Xu&&Wk(B)===D.type){i(S,D.sibling),I=l(D,E.props),I.ref=r0(S,D,E),I.return=S,S=I;break e}i(S,D);break}else o(S,D);D=D.sibling}E.type===p2?(I=tf(E.props.children,S.mode,j,E.key),I.return=S,S=I):(j=Zg(E.type,E.key,E.props,null,S.mode,j),j.ref=r0(S,I,E),j.return=S,S=j)}return d(S);case f2:e:{for(D=E.key;I!==null;){if(I.key===D)if(I.tag===4&&I.stateNode.containerInfo===E.containerInfo&&I.stateNode.implementation===E.implementation){i(S,I.sibling),I=l(I,E.children||[]),I.return=S,S=I;break e}else{i(S,I);break}else o(S,I);I=I.sibling}I=Hw(E,S.mode,j),I.return=S,S=I}return d(S);case Xu:return D=E._init,M(S,I,D(E._payload),j)}if(v0(E))return k(S,I,E,j);if(Xp(E))return C(S,I,E,j);fg(S,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,I!==null&&I.tag===6?(i(S,I.sibling),I=l(I,E),I.return=S,S=I):(i(S,I),I=zw(E,S.mode,j),I.return=S,S=I),d(S)):i(S,I)}return M}var X2=Wj(!0),qj=Wj(!1),Dv=Md(null),Nv=null,y2=null,x5=null;function y5(){x5=y2=Nv=null}function A5(n){var o=Dv.current;Ii(Dv),n._currentValue=o}function uy(n,o,i){for(;n!==null;){var s=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,s!==null&&(s.childLanes|=o)):s!==null&&(s.childLanes&o)!==o&&(s.childLanes|=o),n===i)break;n=n.return}}function $2(n,o){Nv=n,x5=y2=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&o&&(fl=!0),n.firstContext=null)}function k1(n){var o=n._currentValue;if(x5!==n)if(n={context:n,memoizedValue:o,next:null},y2===null){if(Nv===null)throw Error(Lt(308));y2=n,Nv.dependencies={lanes:0,firstContext:n}}else y2=y2.next=n;return o}var _d=null;function C5(n){_d===null?_d=[n]:_d.push(n)}function _j(n,o,i,s){var l=o.interleaved;return l===null?(i.next=i,C5(o)):(i.next=l.next,l.next=i),o.interleaved=i,yu(n,s)}function yu(n,o){n.lanes|=o;var i=n.alternate;for(i!==null&&(i.lanes|=o),i=n,n=n.return;n!==null;)n.childLanes|=o,i=n.alternate,i!==null&&(i.childLanes|=o),i=n,n=n.return;return i.tag===3?i.stateNode:null}var Ju=!1;function k5(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yj(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function lu(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function hd(n,o,i){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,io&2){var l=s.pending;return l===null?o.next=o:(o.next=l.next,l.next=o),s.pending=o,yu(n,i)}return l=s.interleaved,l===null?(o.next=o,C5(s)):(o.next=l.next,l.next=o),s.interleaved=o,yu(n,i)}function qg(n,o,i){if(o=o.updateQueue,o!==null&&(o=o.shared,(i&4194240)!==0)){var s=o.lanes;s&=n.pendingLanes,i|=s,o.lanes=i,c5(n,i)}}function qk(n,o){var i=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var l=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var d={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?l=c=d:c=c.next=d,i=i.next}while(i!==null);c===null?l=c=o:c=c.next=o}else l=c=o;i={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:s.shared,effects:s.effects},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=o:n.next=o,i.lastBaseUpdate=o}function $v(n,o,i,s){var l=n.updateQueue;Ju=!1;var c=l.firstBaseUpdate,d=l.lastBaseUpdate,f=l.shared.pending;if(f!==null){l.shared.pending=null;var p=f,m=p.next;p.next=null,d===null?c=m:d.next=m,d=p;var g=n.alternate;g!==null&&(g=g.updateQueue,f=g.lastBaseUpdate,f!==d&&(f===null?g.firstBaseUpdate=m:f.next=m,g.lastBaseUpdate=p))}if(c!==null){var v=l.baseState;d=0,g=m=p=null,f=c;do{var w=f.lane,A=f.eventTime;if((s&w)===w){g!==null&&(g=g.next={eventTime:A,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var k=n,C=f;switch(w=o,A=i,C.tag){case 1:if(k=C.payload,typeof k=="function"){v=k.call(A,v,w);break e}v=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=C.payload,w=typeof k=="function"?k.call(A,v,w):k,w==null)break e;v=Gi({},v,w);break e;case 2:Ju=!0}}f.callback!==null&&f.lane!==0&&(n.flags|=64,w=l.effects,w===null?l.effects=[f]:w.push(f))}else A={eventTime:A,lane:w,tag:f.tag,payload:f.payload,callback:f.callback,next:null},g===null?(m=g=A,p=v):g=g.next=A,d|=w;if(f=f.next,f===null){if(f=l.shared.pending,f===null)break;w=f,f=w.next,w.next=null,l.lastBaseUpdate=w,l.shared.pending=null}}while(!0);if(g===null&&(p=v),l.baseState=p,l.firstBaseUpdate=m,l.lastBaseUpdate=g,o=l.shared.interleaved,o!==null){l=o;do d|=l.lane,l=l.next;while(l!==o)}else c===null&&(l.shared.lanes=0);hf|=d,n.lanes=d,n.memoizedState=v}}function _k(n,o,i){if(n=o.effects,o.effects=null,n!==null)for(o=0;oi?i:4,n(!0);var s=Fw.transition;Fw.transition={};try{n(!1),o()}finally{No=i,Fw.transition=s}}function fO(){return S1().memoizedState}function uQ(n,o,i){var s=gd(n);if(i={lane:s,action:i,hasEagerState:!1,eagerState:null,next:null},pO(n))hO(o,i);else if(i=_j(n,o,i,s),i!==null){var l=Xs();X1(i,n,s,l),mO(i,o,s)}}function dQ(n,o,i){var s=gd(n),l={lane:s,action:i,hasEagerState:!1,eagerState:null,next:null};if(pO(n))hO(o,l);else{var c=n.alternate;if(n.lanes===0&&(c===null||c.lanes===0)&&(c=o.lastRenderedReducer,c!==null))try{var d=o.lastRenderedState,f=c(d,i);if(l.hasEagerState=!0,l.eagerState=f,ic(f,d)){var p=o.interleaved;p===null?(l.next=l,C5(o)):(l.next=p.next,p.next=l),o.interleaved=l;return}}catch{}finally{}i=_j(n,o,l,s),i!==null&&(l=Xs(),X1(i,n,s,l),mO(i,o,s))}}function pO(n){var o=n.alternate;return n===Ui||o!==null&&o===Ui}function hO(n,o){nh=zv=!0;var i=n.pending;i===null?o.next=o:(o.next=i.next,i.next=o),n.pending=o}function mO(n,o,i){if(i&4194240){var s=o.lanes;s&=n.pendingLanes,i|=s,o.lanes=i,c5(n,i)}}var Hv={readContext:k1,useCallback:Es,useContext:Es,useEffect:Es,useImperativeHandle:Es,useInsertionEffect:Es,useLayoutEffect:Es,useMemo:Es,useReducer:Es,useRef:Es,useState:Es,useDebugValue:Es,useDeferredValue:Es,useTransition:Es,useMutableSource:Es,useSyncExternalStore:Es,useId:Es,unstable_isNewReconciler:!1},fQ={readContext:k1,useCallback:function(n,o){return yc().memoizedState=[n,o===void 0?null:o],n},useContext:k1,useEffect:Kk,useImperativeHandle:function(n,o,i){return i=i!=null?i.concat([n]):null,Yg(4194308,4,sO.bind(null,o,n),i)},useLayoutEffect:function(n,o){return Yg(4194308,4,n,o)},useInsertionEffect:function(n,o){return Yg(4,2,n,o)},useMemo:function(n,o){var i=yc();return o=o===void 0?null:o,n=n(),i.memoizedState=[n,o],n},useReducer:function(n,o,i){var s=yc();return o=i!==void 0?i(o):o,s.memoizedState=s.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},s.queue=n,n=n.dispatch=uQ.bind(null,Ui,n),[s.memoizedState,n]},useRef:function(n){var o=yc();return n={current:n},o.memoizedState=n},useState:Yk,useDebugValue:R5,useDeferredValue:function(n){return yc().memoizedState=n},useTransition:function(){var n=Yk(!1),o=n[0];return n=cQ.bind(null,n[1]),yc().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,i){var s=Ui,l=yc();if(Fi){if(i===void 0)throw Error(Lt(407));i=i()}else{if(i=o(),Za===null)throw Error(Lt(349));pf&30||Zj(s,o,i)}l.memoizedState=i;var c={value:i,getSnapshot:o};return l.queue=c,Kk(tO.bind(null,s,c,n),[n]),s.flags|=2048,$h(9,eO.bind(null,s,c,i,o),void 0,null),i},useId:function(){var n=yc(),o=Za.identifierPrefix;if(Fi){var i=ru,s=tu;i=(s&~(1<<32-K1(s)-1)).toString(32)+i,o=":"+o+"R"+i,i=Dh++,0<\/script>",n=n.removeChild(n.firstChild)):typeof s.is=="string"?n=d.createElement(i,{is:s.is}):(n=d.createElement(i),i==="select"&&(d=n,s.multiple?d.multiple=!0:s.size&&(d.size=s.size))):n=d.createElementNS(n,i),n[Ec]=o,n[Th]=s,vO(n,o,!1,!1),o.stateNode=n;e:{switch(d=Vx(i,s),i){case"dialog":yi("cancel",n),yi("close",n),l=s;break;case"iframe":case"object":case"embed":yi("load",n),l=s;break;case"video":case"audio":for(l=0;ltp&&(o.flags|=128,s=!0,o0(c,!1),o.lanes=4194304)}else{if(!s)if(n=Lv(d),n!==null){if(o.flags|=128,s=!0,i=n.updateQueue,i!==null&&(o.updateQueue=i,o.flags|=4),o0(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Ti)return Ms(o),null}else 2*aa()-c.renderingStartTime>tp&&i!==1073741824&&(o.flags|=128,s=!0,o0(c,!1),o.lanes=4194304);c.isBackwards?(d.sibling=o.child,o.child=d):(i=c.last,i!==null?i.sibling=d:o.child=d,c.last=d)}return c.tail!==null?(o=c.tail,c.rendering=o,c.tail=o.sibling,c.renderingStartTime=aa(),o.sibling=null,i=zi.current,ci(zi,s?i&1|2:i&1),o):(Ms(o),null);case 22:case 23:return D5(),s=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==s&&(o.flags|=8192),s&&o.mode&1?Ml&1073741824&&(Ms(o),o.subtreeFlags&6&&(o.flags|=8192)):Ms(o),null;case 24:return null;case 25:return null}throw Error(Lt(156,o.tag))}function aQ(n,o){switch(g5(o),o.tag){case 1:return hl(o.type)&&Rv(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return Z2(),Si(pl),Si(Ts),S5(),n=o.flags,n&65536&&!(n&128)?(o.flags=n&-65537|128,o):null;case 5:return k5(o),null;case 13:if(Si(zi),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(Lt(340));X2()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Si(zi),null;case 4:return Z2(),null;case 10:return x5(o.type._context),null;case 22:case 23:return D5(),null;case 24:return null;default:return null}}var hg=!1,Bs=!1,sQ=typeof WeakSet=="function"?WeakSet:Set,or=null;function C2(n,o){var i=n.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(s){Yi(n,o,s)}else i.current=null}function vy(n,o,i){try{i()}catch(s){Yi(n,o,s)}}var Jk=!1;function lQ(n,o){if(ey=Mv,n=kj(),h5(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var l=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var d=0,f=-1,p=-1,m=0,g=0,v=n,w=null;t:for(;;){for(var A;v!==i||l!==0&&v.nodeType!==3||(f=d+l),v!==c||s!==0&&v.nodeType!==3||(p=d+s),v.nodeType===3&&(d+=v.nodeValue.length),(A=v.firstChild)!==null;)w=v,v=A;for(;;){if(v===n)break t;if(w===i&&++m===l&&(f=d),w===c&&++g===s&&(p=d),(A=v.nextSibling)!==null)break;v=w,w=v.parentNode}v=A}i=f===-1||p===-1?null:{start:f,end:p}}else i=null}i=i||{start:0,end:0}}else i=null;for(ty={focusedElem:n,selectionRange:i},Mv=!1,or=o;or!==null;)if(o=or,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,or=n;else for(;or!==null;){o=or;try{var k=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var C=k.memoizedProps,M=k.memoizedState,S=o.stateNode,I=S.getSnapshotBeforeUpdate(o.elementType===o.type?C:q1(o.type,C),M);S.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var E=o.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Lt(163))}}catch(j){Yi(o,o.return,j)}if(n=o.sibling,n!==null){n.return=o.return,or=n;break}or=o.return}return k=Jk,Jk=!1,k}function ih(n,o,i){var s=o.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&n)===n){var c=l.destroy;l.destroy=void 0,c!==void 0&&vy(o,i,c)}l=l.next}while(l!==s)}}function vb(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&n)===n){var s=i.create;i.destroy=s()}i=i.next}while(i!==o)}}function by(n){var o=n.ref;if(o!==null){var i=n.stateNode;switch(n.tag){case 5:n=i;break;default:n=i}typeof o=="function"?o(n):o.current=n}}function xO(n){var o=n.alternate;o!==null&&(n.alternate=null,xO(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[Ec],delete o[Th],delete o[oy],delete o[VV],delete o[QV])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function yO(n){return n.tag===5||n.tag===3||n.tag===4}function Zk(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||yO(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function wy(n,o,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,o?i.nodeType===8?i.parentNode.insertBefore(n,o):i.insertBefore(n,o):(i.nodeType===8?(o=i.parentNode,o.insertBefore(n,i)):(o=i,o.appendChild(n)),i=i._reactRootContainer,i!=null||o.onclick!==null||(o.onclick=Ov));else if(s!==4&&(n=n.child,n!==null))for(wy(n,o,i),n=n.sibling;n!==null;)wy(n,o,i),n=n.sibling}function xy(n,o,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,o?i.insertBefore(n,o):i.appendChild(n);else if(s!==4&&(n=n.child,n!==null))for(xy(n,o,i),n=n.sibling;n!==null;)xy(n,o,i),n=n.sibling}var cs=null,Y1=!1;function Du(n,o,i){for(i=i.child;i!==null;)AO(n,o,i),i=i.sibling}function AO(n,o,i){if(Bc&&typeof Bc.onCommitFiberUnmount=="function")try{Bc.onCommitFiberUnmount(cb,i)}catch{}switch(i.tag){case 5:Bs||C2(i,o);case 6:var s=cs,l=Y1;cs=null,Du(n,o,i),cs=s,Y1=l,cs!==null&&(Y1?(n=cs,i=i.stateNode,n.nodeType===8?n.parentNode.removeChild(i):n.removeChild(i)):cs.removeChild(i.stateNode));break;case 18:cs!==null&&(Y1?(n=cs,i=i.stateNode,n.nodeType===8?jw(n.parentNode,i):n.nodeType===1&&jw(n,i),Ph(n)):jw(cs,i.stateNode));break;case 4:s=cs,l=Y1,cs=i.stateNode.containerInfo,Y1=!0,Du(n,o,i),cs=s,Y1=l;break;case 0:case 11:case 14:case 15:if(!Bs&&(s=i.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var c=l,d=c.destroy;c=c.tag,d!==void 0&&(c&2||c&4)&&vy(i,o,d),l=l.next}while(l!==s)}Du(n,o,i);break;case 1:if(!Bs&&(C2(i,o),s=i.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=i.memoizedProps,s.state=i.memoizedState,s.componentWillUnmount()}catch(f){Yi(i,o,f)}Du(n,o,i);break;case 21:Du(n,o,i);break;case 22:i.mode&1?(Bs=(s=Bs)||i.memoizedState!==null,Du(n,o,i),Bs=s):Du(n,o,i);break;default:Du(n,o,i)}}function eS(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var i=n.stateNode;i===null&&(i=n.stateNode=new sQ),o.forEach(function(s){var l=vQ.bind(null,n,s);i.has(s)||(i.add(s),s.then(l,l))})}}function H1(n,o){var i=o.deletions;if(i!==null)for(var s=0;sl&&(l=d),s&=~c}if(s=l,s=aa()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*uQ(s/1960))-s,10n?16:n,od===null)var s=!1;else{if(n=od,od=null,Vv=0,no&6)throw Error(Lt(331));var l=no;for(no|=4,or=n.current;or!==null;){var c=or,d=c.child;if(or.flags&16){var f=c.deletions;if(f!==null){for(var p=0;paa()-T5?tf(n,0):B5|=i),ml(n,o)}function jO(n,o){o===0&&(n.mode&1?(o=ig,ig<<=1,!(ig&130023424)&&(ig=4194304)):o=1);var i=Xs();n=Au(n,o),n!==null&&(dm(n,o,i),ml(n,i))}function gQ(n){var o=n.memoizedState,i=0;o!==null&&(i=o.retryLane),jO(n,i)}function vQ(n,o){var i=0;switch(n.tag){case 13:var s=n.stateNode,l=n.memoizedState;l!==null&&(i=l.retryLane);break;case 19:s=n.stateNode;break;default:throw Error(Lt(314))}s!==null&&s.delete(o),jO(n,i)}var OO;OO=function(n,o,i){if(n!==null)if(n.memoizedProps!==o.pendingProps||pl.current)fl=!0;else{if(!(n.lanes&i)&&!(o.flags&128))return fl=!1,oQ(n,o,i);fl=!!(n.flags&131072)}else fl=!1,Ti&&o.flags&1048576&&Fj(o,Fv,o.index);switch(o.lanes=0,o.tag){case 2:var s=o.type;Kg(n,o),n=o.pendingProps;var l=K2(o,Ts.current);L2(o,i),l=E5(null,o,s,n,l,i);var c=M5();return o.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,hl(s)?(c=!0,Bv(o)):c=!1,o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,A5(o),l.updater=gb,o.stateNode=l,l._reactInternals=o,uy(o,s,n,i),o=py(null,o,s,!0,c,i)):(o.tag=0,Ti&&c&&m5(o),Qs(null,o,l,i),o=o.child),o;case 16:s=o.elementType;e:{switch(Kg(n,o),n=o.pendingProps,l=s._init,s=l(s._payload),o.type=s,l=o.tag=wQ(s),n=q1(s,n),l){case 0:o=fy(null,o,s,n,i);break e;case 1:o=Yk(null,o,s,n,i);break e;case 11:o=qk(null,o,s,n,i);break e;case 14:o=_k(null,o,s,q1(s.type,n),i);break e}throw Error(Lt(306,s,""))}return o;case 0:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:q1(s,l),fy(n,o,s,l,i);case 1:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:q1(s,l),Yk(n,o,s,l,i);case 3:e:{if(hO(o),n===null)throw Error(Lt(387));s=o.pendingProps,c=o.memoizedState,l=c.element,Hj(n,o),$v(o,s,null,i);var d=o.memoizedState;if(s=d.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},o.updateQueue.baseState=c,o.memoizedState=c,o.flags&256){l=ep(Error(Lt(423)),o),o=Kk(n,o,s,i,l);break e}else if(s!==l){l=ep(Error(Lt(424)),o),o=Kk(n,o,s,i,l);break e}else for(Nl=hd(o.stateNode.containerInfo.firstChild),Ll=o,Ti=!0,K1=null,i=Lj(o,null,s,i),o.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(X2(),s===l){o=Cu(n,o,i);break e}Qs(n,o,s,i)}o=o.child}return o;case 5:return Uj(o),n===null&&sy(o),s=o.type,l=o.pendingProps,c=n!==null?n.memoizedProps:null,d=l.children,ry(s,l)?d=null:c!==null&&ry(s,c)&&(o.flags|=32),pO(n,o),Qs(n,o,d,i),o.child;case 6:return n===null&&sy(o),null;case 13:return mO(n,o,i);case 4:return C5(o,o.stateNode.containerInfo),s=o.pendingProps,n===null?o.child=J2(o,null,s,i):Qs(n,o,s,i),o.child;case 11:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:q1(s,l),qk(n,o,s,l,i);case 7:return Qs(n,o,o.pendingProps,i),o.child;case 8:return Qs(n,o,o.pendingProps.children,i),o.child;case 12:return Qs(n,o,o.pendingProps.children,i),o.child;case 10:e:{if(s=o.type._context,l=o.pendingProps,c=o.memoizedProps,d=l.value,ci(Dv,s._currentValue),s._currentValue=d,c!==null)if(ac(c.value,d)){if(c.children===l.children&&!pl.current){o=Cu(n,o,i);break e}}else for(c=o.child,c!==null&&(c.return=o);c!==null;){var f=c.dependencies;if(f!==null){d=c.child;for(var p=f.firstContext;p!==null;){if(p.context===s){if(c.tag===1){p=cu(-1,i&-i),p.tag=2;var m=c.updateQueue;if(m!==null){m=m.shared;var g=m.pending;g===null?p.next=p:(p.next=g.next,g.next=p),m.pending=p}}c.lanes|=i,p=c.alternate,p!==null&&(p.lanes|=i),ly(c.return,i,o),f.lanes|=i;break}p=p.next}}else if(c.tag===10)d=c.type===o.type?null:c.child;else if(c.tag===18){if(d=c.return,d===null)throw Error(Lt(341));d.lanes|=i,f=d.alternate,f!==null&&(f.lanes|=i),ly(d,i,o),d=c.sibling}else d=c.child;if(d!==null)d.return=c;else for(d=c;d!==null;){if(d===o){d=null;break}if(c=d.sibling,c!==null){c.return=d.return,d=c;break}d=d.return}c=d}Qs(n,o,l.children,i),o=o.child}return o;case 9:return l=o.type,s=o.pendingProps.children,L2(o,i),l=S1(l),s=s(l),o.flags|=1,Qs(n,o,s,i),o.child;case 14:return s=o.type,l=q1(s,o.pendingProps),l=q1(s.type,l),_k(n,o,s,l,i);case 15:return dO(n,o,o.type,o.pendingProps,i);case 17:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:q1(s,l),Kg(n,o),o.tag=1,hl(s)?(n=!0,Bv(o)):n=!1,L2(o,i),lO(o,s,l),uy(o,s,l,i),py(null,o,s,!0,n,i);case 19:return gO(n,o,i);case 22:return fO(n,o,i)}throw Error(Lt(156,o.tag))};function RO(n,o){return ij(n,o)}function bQ(n,o,i,s){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function v1(n,o,i,s){return new bQ(n,o,i,s)}function $5(n){return n=n.prototype,!(!n||!n.isReactComponent)}function wQ(n){if(typeof n=="function")return $5(n)?1:0;if(n!=null){if(n=n.$$typeof,n===n5)return 11;if(n===o5)return 14}return 2}function bd(n,o){var i=n.alternate;return i===null?(i=v1(n.tag,o,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=o,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&14680064,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,o=n.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i}function Zg(n,o,i,s,l,c){var d=2;if(s=n,typeof n=="function")$5(n)&&(d=1);else if(typeof n=="string")d=5;else e:switch(n){case h2:return rf(i.children,l,c,o);case r5:d=8,l|=8;break;case Tx:return n=v1(12,i,o,l|2),n.elementType=Tx,n.lanes=c,n;case Fx:return n=v1(13,i,o,l),n.elementType=Fx,n.lanes=c,n;case Dx:return n=v1(19,i,o,l),n.elementType=Dx,n.lanes=c,n;case UP:return wb(i,l,c,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case zP:d=10;break e;case HP:d=9;break e;case n5:d=11;break e;case o5:d=14;break e;case Xu:d=16,s=null;break e}throw Error(Lt(130,n==null?n:typeof n,""))}return o=v1(d,i,o,l),o.elementType=n,o.type=s,o.lanes=c,o}function rf(n,o,i,s){return n=v1(7,n,s,o),n.lanes=i,n}function wb(n,o,i,s){return n=v1(22,n,s,o),n.elementType=UP,n.lanes=i,n.stateNode={isHidden:!1},n}function $w(n,o,i){return n=v1(6,n,null,o),n.lanes=i,n}function Lw(n,o,i){return o=v1(4,n.children!==null?n.children:[],n.key,o),o.lanes=i,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function xQ(n,o,i,s,l){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ww(0),this.expirationTimes=ww(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ww(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function L5(n,o,i,s,l,c,d,f,p){return n=new xQ(n,o,i,f,p),o===1?(o=1,c===!0&&(o|=8)):o=0,c=v1(3,null,null,o),n.current=c,c.stateNode=n,c.memoizedState={element:s,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},A5(c),n}function yQ(n,o,i){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(DO)}catch(n){console.error(n)}}DO(),DP.exports=Wl;var mm=DP.exports;const vg=nm(mm);var lS=mm;Rx.createRoot=lS.createRoot,Rx.hydrateRoot=lS.hydrateRoot;/** +`+c.stack}return{value:n,source:o,stack:l,digest:null}}function $w(n,o,i){return{value:n,source:null,stack:i??null,digest:o??null}}function py(n,o){try{console.error(o.value)}catch(i){setTimeout(function(){throw i})}}var mQ=typeof WeakMap=="function"?WeakMap:Map;function vO(n,o,i){i=lu(-1,i),i.tag=3,i.payload={element:null};var s=o.value;return i.callback=function(){Gv||(Gv=!0,Cy=s),py(n,o)},i}function bO(n,o,i){i=lu(-1,i),i.tag=3;var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var l=o.value;i.payload=function(){return s(l)},i.callback=function(){py(n,o)}}var c=n.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){py(n,o),typeof s!="function"&&(md===null?md=new Set([this]):md.add(this));var d=o.stack;this.componentDidCatch(o.value,{componentStack:d!==null?d:""})}),i}function Zk(n,o,i){var s=n.pingCache;if(s===null){s=n.pingCache=new mQ;var l=new Set;s.set(o,l)}else l=s.get(o),l===void 0&&(l=new Set,s.set(o,l));l.has(i)||(l.add(i),n=PQ.bind(null,n,o,i),o.then(n,n))}function eS(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function tS(n,o,i,s,l){return n.mode&1?(n.flags|=65536,n.lanes=l,n):(n===o?n.flags|=65536:(n.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(o=lu(-1,1),o.tag=2,hd(i,o,1))),i.lanes|=1),n)}var gQ=ju.ReactCurrentOwner,fl=!1;function Qs(n,o,i,s){o.child=n===null?qj(o,null,i,s):X2(o,n.child,i,s)}function rS(n,o,i,s,l){i=i.render;var c=o.ref;return $2(o,l),s=P5(n,o,i,s,c,l),i=j5(),n!==null&&!fl?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~l,Au(n,o,l)):(Fi&&i&&v5(o),o.flags|=1,Qs(n,o,s,l),o.child)}function nS(n,o,i,s,l){if(n===null){var c=i.type;return typeof c=="function"&&!z5(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(o.tag=15,o.type=c,wO(n,o,c,s,l)):(n=Zg(i.type,null,s,o,o.mode,l),n.ref=o.ref,n.return=o,o.child=n)}if(c=n.child,!(n.lanes&l)){var d=c.memoizedProps;if(i=i.compare,i=i!==null?i:jh,i(d,s)&&n.ref===o.ref)return Au(n,o,l)}return o.flags|=1,n=vd(c,s),n.ref=o.ref,n.return=o,o.child=n}function wO(n,o,i,s,l){if(n!==null){var c=n.memoizedProps;if(jh(c,s)&&n.ref===o.ref)if(fl=!1,o.pendingProps=s=c,(n.lanes&l)!==0)n.flags&131072&&(fl=!0);else return o.lanes=n.lanes,Au(n,o,l)}return hy(n,o,i,s,l)}function xO(n,o,i){var s=o.pendingProps,l=s.children,c=n!==null?n.memoizedState:null;if(s.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},di(C2,El),El|=i;else{if(!(i&1073741824))return n=c!==null?c.baseLanes|i:i,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,di(C2,El),El|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=c!==null?c.baseLanes:i,di(C2,El),El|=s}else c!==null?(s=c.baseLanes|i,o.memoizedState=null):s=i,di(C2,El),El|=s;return Qs(n,o,l,i),o.child}function yO(n,o){var i=o.ref;(n===null&&i!==null||n!==null&&n.ref!==i)&&(o.flags|=512,o.flags|=2097152)}function hy(n,o,i,s,l){var c=hl(i)?df:Ts.current;return c=Y2(o,c),$2(o,l),i=P5(n,o,i,s,c,l),s=j5(),n!==null&&!fl?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~l,Au(n,o,l)):(Fi&&s&&v5(o),o.flags|=1,Qs(n,o,i,l),o.child)}function oS(n,o,i,s,l){if(hl(i)){var c=!0;Bv(o)}else c=!1;if($2(o,l),o.stateNode===null)Kg(n,o),gO(o,i,s),fy(o,i,s,l),s=!0;else if(n===null){var d=o.stateNode,f=o.memoizedProps;d.props=f;var p=d.context,m=i.contextType;typeof m=="object"&&m!==null?m=k1(m):(m=hl(i)?df:Ts.current,m=Y2(o,m));var g=i.getDerivedStateFromProps,v=typeof g=="function"||typeof d.getSnapshotBeforeUpdate=="function";v||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(f!==s||p!==m)&&Jk(o,d,s,m),Ju=!1;var w=o.memoizedState;d.state=w,$v(o,s,d,l),p=o.memoizedState,f!==s||w!==p||pl.current||Ju?(typeof g=="function"&&(dy(o,i,g,s),p=o.memoizedState),(f=Ju||Xk(o,i,f,s,w,p,m))?(v||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(o.flags|=4194308)):(typeof d.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=s,o.memoizedState=p),d.props=s,d.state=p,d.context=m,s=f):(typeof d.componentDidMount=="function"&&(o.flags|=4194308),s=!1)}else{d=o.stateNode,Yj(n,o),f=o.memoizedProps,m=o.type===o.elementType?f:W1(o.type,f),d.props=m,v=o.pendingProps,w=d.context,p=i.contextType,typeof p=="object"&&p!==null?p=k1(p):(p=hl(i)?df:Ts.current,p=Y2(o,p));var A=i.getDerivedStateFromProps;(g=typeof A=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(f!==v||w!==p)&&Jk(o,d,s,p),Ju=!1,w=o.memoizedState,d.state=w,$v(o,s,d,l);var k=o.memoizedState;f!==v||w!==k||pl.current||Ju?(typeof A=="function"&&(dy(o,i,A,s),k=o.memoizedState),(m=Ju||Xk(o,i,m,s,w,k,p)||!1)?(g||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,k,p),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,k,p)),typeof d.componentDidUpdate=="function"&&(o.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof d.componentDidUpdate!="function"||f===n.memoizedProps&&w===n.memoizedState||(o.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||f===n.memoizedProps&&w===n.memoizedState||(o.flags|=1024),o.memoizedProps=s,o.memoizedState=k),d.props=s,d.state=k,d.context=p,s=m):(typeof d.componentDidUpdate!="function"||f===n.memoizedProps&&w===n.memoizedState||(o.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||f===n.memoizedProps&&w===n.memoizedState||(o.flags|=1024),s=!1)}return my(n,o,i,s,c,l)}function my(n,o,i,s,l,c){yO(n,o);var d=(o.flags&128)!==0;if(!s&&!d)return l&&Gk(o,i,!1),Au(n,o,c);s=o.stateNode,gQ.current=o;var f=d&&typeof i.getDerivedStateFromError!="function"?null:s.render();return o.flags|=1,n!==null&&d?(o.child=X2(o,n.child,null,c),o.child=X2(o,null,f,c)):Qs(n,o,f,c),o.memoizedState=s.state,l&&Gk(o,i,!0),o.child}function AO(n){var o=n.stateNode;o.pendingContext?Uk(n,o.pendingContext,o.pendingContext!==o.context):o.context&&Uk(n,o.context,!1),S5(n,o.containerInfo)}function iS(n,o,i,s,l){return K2(),w5(l),o.flags|=256,Qs(n,o,i,s),o.child}var gy={dehydrated:null,treeContext:null,retryLane:0};function vy(n){return{baseLanes:n,cachePool:null,transitions:null}}function CO(n,o,i){var s=o.pendingProps,l=Hi.current,c=!1,d=(o.flags&128)!==0,f;if((f=d)||(f=n!==null&&n.memoizedState===null?!1:(l&2)!==0),f?(c=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(l|=1),di(Hi,l&1),n===null)return cy(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(o.mode&1?n.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(d=s.children,n=s.fallback,c?(s=o.mode,c=o.child,d={mode:"hidden",children:d},!(s&1)&&c!==null?(c.childLanes=0,c.pendingProps=d):c=bb(d,s,0,null),n=tf(n,s,i,null),c.return=o,n.return=o,c.sibling=n,o.child=c,o.child.memoizedState=vy(i),o.memoizedState=gy,n):B5(o,d));if(l=n.memoizedState,l!==null&&(f=l.dehydrated,f!==null))return vQ(n,o,d,s,f,l,i);if(c){c=s.fallback,d=o.mode,l=n.child,f=l.sibling;var p={mode:"hidden",children:s.children};return!(d&1)&&o.child!==l?(s=o.child,s.childLanes=0,s.pendingProps=p,o.deletions=null):(s=vd(l,p),s.subtreeFlags=l.subtreeFlags&14680064),f!==null?c=vd(f,c):(c=tf(c,d,i,null),c.flags|=2),c.return=o,s.return=o,s.sibling=c,o.child=s,s=c,c=o.child,d=n.child.memoizedState,d=d===null?vy(i):{baseLanes:d.baseLanes|i,cachePool:null,transitions:d.transitions},c.memoizedState=d,c.childLanes=n.childLanes&~i,o.memoizedState=gy,s}return c=n.child,n=c.sibling,s=vd(c,{mode:"visible",children:s.children}),!(o.mode&1)&&(s.lanes=i),s.return=o,s.sibling=null,n!==null&&(i=o.deletions,i===null?(o.deletions=[n],o.flags|=16):i.push(n)),o.child=s,o.memoizedState=null,s}function B5(n,o){return o=bb({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function pg(n,o,i,s){return s!==null&&w5(s),X2(o,n.child,null,i),n=B5(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function vQ(n,o,i,s,l,c,d){if(i)return o.flags&256?(o.flags&=-257,s=$w(Error(Lt(422))),pg(n,o,d,s)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(c=s.fallback,l=o.mode,s=bb({mode:"visible",children:s.children},l,0,null),c=tf(c,l,d,null),c.flags|=2,s.return=o,c.return=o,s.sibling=c,o.child=s,o.mode&1&&X2(o,n.child,null,d),o.child.memoizedState=vy(d),o.memoizedState=gy,c);if(!(o.mode&1))return pg(n,o,d,null);if(l.data==="$!"){if(s=l.nextSibling&&l.nextSibling.dataset,s)var f=s.dgst;return s=f,c=Error(Lt(419)),s=$w(c,s,void 0),pg(n,o,d,s)}if(f=(d&n.childLanes)!==0,fl||f){if(s=Za,s!==null){switch(d&-d){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(s.suspendedLanes|d)?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,yu(n,l),X1(s,n,l,-1))}return L5(),s=$w(Error(Lt(421))),pg(n,o,d,s)}return l.data==="$?"?(o.flags|=128,o.child=n.child,o=jQ.bind(null,n),l._reactRetry=o,null):(n=c.treeContext,Dl=pd(l.nextSibling),$l=o,Fi=!0,Y1=null,n!==null&&(d1[f1++]=tu,d1[f1++]=ru,d1[f1++]=ff,tu=n.id,ru=n.overflow,ff=o),o=B5(o,s.children),o.flags|=4096,o)}function aS(n,o,i){n.lanes|=o;var s=n.alternate;s!==null&&(s.lanes|=o),uy(n.return,o,i)}function Lw(n,o,i,s,l){var c=n.memoizedState;c===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:l}:(c.isBackwards=o,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=i,c.tailMode=l)}function kO(n,o,i){var s=o.pendingProps,l=s.revealOrder,c=s.tail;if(Qs(n,o,s.children,i),s=Hi.current,s&2)s=s&1|2,o.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&aS(n,i,o);else if(n.tag===19)aS(n,i,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}s&=1}if(di(Hi,s),!(o.mode&1))o.memoizedState=null;else switch(l){case"forwards":for(i=o.child,l=null;i!==null;)n=i.alternate,n!==null&&Lv(n)===null&&(l=i),i=i.sibling;i=l,i===null?(l=o.child,o.child=null):(l=i.sibling,i.sibling=null),Lw(o,!1,l,i,c);break;case"backwards":for(i=null,l=o.child,o.child=null;l!==null;){if(n=l.alternate,n!==null&&Lv(n)===null){o.child=l;break}n=l.sibling,l.sibling=i,i=l,l=n}Lw(o,!0,i,null,c);break;case"together":Lw(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Kg(n,o){!(o.mode&1)&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function Au(n,o,i){if(n!==null&&(o.dependencies=n.dependencies),hf|=o.lanes,!(i&o.childLanes))return null;if(n!==null&&o.child!==n.child)throw Error(Lt(153));if(o.child!==null){for(n=o.child,i=vd(n,n.pendingProps),o.child=i,i.return=o;n.sibling!==null;)n=n.sibling,i=i.sibling=vd(n,n.pendingProps),i.return=o;i.sibling=null}return o.child}function bQ(n,o,i){switch(o.tag){case 3:AO(o),K2();break;case 5:Kj(o);break;case 1:hl(o.type)&&Bv(o);break;case 4:S5(o,o.stateNode.containerInfo);break;case 10:var s=o.type._context,l=o.memoizedProps.value;di(Dv,s._currentValue),s._currentValue=l;break;case 13:if(s=o.memoizedState,s!==null)return s.dehydrated!==null?(di(Hi,Hi.current&1),o.flags|=128,null):i&o.child.childLanes?CO(n,o,i):(di(Hi,Hi.current&1),n=Au(n,o,i),n!==null?n.sibling:null);di(Hi,Hi.current&1);break;case 19:if(s=(i&o.childLanes)!==0,n.flags&128){if(s)return kO(n,o,i);o.flags|=128}if(l=o.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),di(Hi,Hi.current),s)break;return null;case 22:case 23:return o.lanes=0,xO(n,o,i)}return Au(n,o,i)}var SO,by,IO,EO;SO=function(n,o){for(var i=o.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};by=function(){};IO=function(n,o,i,s){var l=n.memoizedProps;if(l!==s){n=o.stateNode,Yd(Rc.current);var c=null;switch(i){case"input":l=zx(n,l),s=zx(n,s),c=[];break;case"select":l=Gi({},l,{value:void 0}),s=Gi({},s,{value:void 0}),c=[];break;case"textarea":l=Gx(n,l),s=Gx(n,s),c=[];break;default:typeof l.onClick!="function"&&typeof s.onClick=="function"&&(n.onclick=Ov)}Qx(i,s);var d;i=null;for(m in l)if(!s.hasOwnProperty(m)&&l.hasOwnProperty(m)&&l[m]!=null)if(m==="style"){var f=l[m];for(d in f)f.hasOwnProperty(d)&&(i||(i={}),i[d]="")}else m!=="dangerouslySetInnerHTML"&&m!=="children"&&m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(Ch.hasOwnProperty(m)?c||(c=[]):(c=c||[]).push(m,null));for(m in s){var p=s[m];if(f=l!=null?l[m]:void 0,s.hasOwnProperty(m)&&p!==f&&(p!=null||f!=null))if(m==="style")if(f){for(d in f)!f.hasOwnProperty(d)||p&&p.hasOwnProperty(d)||(i||(i={}),i[d]="");for(d in p)p.hasOwnProperty(d)&&f[d]!==p[d]&&(i||(i={}),i[d]=p[d])}else i||(c||(c=[]),c.push(m,i)),i=p;else m==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,f=f?f.__html:void 0,p!=null&&f!==p&&(c=c||[]).push(m,p)):m==="children"?typeof p!="string"&&typeof p!="number"||(c=c||[]).push(m,""+p):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&(Ch.hasOwnProperty(m)?(p!=null&&m==="onScroll"&&Ai("scroll",n),c||f===p||(c=[])):(c=c||[]).push(m,p))}i&&(c=c||[]).push("style",i);var m=c;(o.updateQueue=m)&&(o.flags|=4)}};EO=function(n,o,i,s){i!==s&&(o.flags|=4)};function n0(n,o){if(!Fi)switch(n.tailMode){case"hidden":o=n.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function Ms(n){var o=n.alternate!==null&&n.alternate.child===n.child,i=0,s=0;if(o)for(var l=n.child;l!==null;)i|=l.lanes|l.childLanes,s|=l.subtreeFlags&14680064,s|=l.flags&14680064,l.return=n,l=l.sibling;else for(l=n.child;l!==null;)i|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=n,l=l.sibling;return n.subtreeFlags|=s,n.childLanes=i,o}function wQ(n,o,i){var s=o.pendingProps;switch(b5(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ms(o),null;case 1:return hl(o.type)&&Rv(),Ms(o),null;case 3:return s=o.stateNode,J2(),Ii(pl),Ii(Ts),E5(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(dg(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,Y1!==null&&(Iy(Y1),Y1=null))),by(n,o),Ms(o),null;case 5:I5(o);var l=Yd(Fh.current);if(i=o.type,n!==null&&o.stateNode!=null)IO(n,o,i,s,l),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!s){if(o.stateNode===null)throw Error(Lt(166));return Ms(o),null}if(n=Yd(Rc.current),dg(o)){s=o.stateNode,i=o.type;var c=o.memoizedProps;switch(s[Ic]=o,s[Bh]=c,n=(o.mode&1)!==0,i){case"dialog":Ai("cancel",s),Ai("close",s);break;case"iframe":case"object":case"embed":Ai("load",s);break;case"video":case"audio":for(l=0;l<\/script>",n=n.removeChild(n.firstChild)):typeof s.is=="string"?n=d.createElement(i,{is:s.is}):(n=d.createElement(i),i==="select"&&(d=n,s.multiple?d.multiple=!0:s.size&&(d.size=s.size))):n=d.createElementNS(n,i),n[Ic]=o,n[Bh]=s,SO(n,o,!1,!1),o.stateNode=n;e:{switch(d=Wx(i,s),i){case"dialog":Ai("cancel",n),Ai("close",n),l=s;break;case"iframe":case"object":case"embed":Ai("load",n),l=s;break;case"video":case"audio":for(l=0;lep&&(o.flags|=128,s=!0,n0(c,!1),o.lanes=4194304)}else{if(!s)if(n=Lv(d),n!==null){if(o.flags|=128,s=!0,i=n.updateQueue,i!==null&&(o.updateQueue=i,o.flags|=4),n0(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Fi)return Ms(o),null}else 2*aa()-c.renderingStartTime>ep&&i!==1073741824&&(o.flags|=128,s=!0,n0(c,!1),o.lanes=4194304);c.isBackwards?(d.sibling=o.child,o.child=d):(i=c.last,i!==null?i.sibling=d:o.child=d,c.last=d)}return c.tail!==null?(o=c.tail,c.rendering=o,c.tail=o.sibling,c.renderingStartTime=aa(),o.sibling=null,i=Hi.current,di(Hi,s?i&1|2:i&1),o):(Ms(o),null);case 22:case 23:return $5(),s=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==s&&(o.flags|=8192),s&&o.mode&1?El&1073741824&&(Ms(o),o.subtreeFlags&6&&(o.flags|=8192)):Ms(o),null;case 24:return null;case 25:return null}throw Error(Lt(156,o.tag))}function xQ(n,o){switch(b5(o),o.tag){case 1:return hl(o.type)&&Rv(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return J2(),Ii(pl),Ii(Ts),E5(),n=o.flags,n&65536&&!(n&128)?(o.flags=n&-65537|128,o):null;case 5:return I5(o),null;case 13:if(Ii(Hi),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(Lt(340));K2()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Ii(Hi),null;case 4:return J2(),null;case 10:return A5(o.type._context),null;case 22:case 23:return $5(),null;case 24:return null;default:return null}}var hg=!1,Bs=!1,yQ=typeof WeakSet=="function"?WeakSet:Set,or=null;function A2(n,o){var i=n.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(s){Yi(n,o,s)}else i.current=null}function wy(n,o,i){try{i()}catch(s){Yi(n,o,s)}}var sS=!1;function AQ(n,o){if(ry=Mv,n=Rj(),g5(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var l=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var d=0,f=-1,p=-1,m=0,g=0,v=n,w=null;t:for(;;){for(var A;v!==i||l!==0&&v.nodeType!==3||(f=d+l),v!==c||s!==0&&v.nodeType!==3||(p=d+s),v.nodeType===3&&(d+=v.nodeValue.length),(A=v.firstChild)!==null;)w=v,v=A;for(;;){if(v===n)break t;if(w===i&&++m===l&&(f=d),w===c&&++g===s&&(p=d),(A=v.nextSibling)!==null)break;v=w,w=v.parentNode}v=A}i=f===-1||p===-1?null:{start:f,end:p}}else i=null}i=i||{start:0,end:0}}else i=null;for(ny={focusedElem:n,selectionRange:i},Mv=!1,or=o;or!==null;)if(o=or,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,or=n;else for(;or!==null;){o=or;try{var k=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var C=k.memoizedProps,M=k.memoizedState,S=o.stateNode,I=S.getSnapshotBeforeUpdate(o.elementType===o.type?C:W1(o.type,C),M);S.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var E=o.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Lt(163))}}catch(j){Yi(o,o.return,j)}if(n=o.sibling,n!==null){n.return=o.return,or=n;break}or=o.return}return k=sS,sS=!1,k}function oh(n,o,i){var s=o.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&n)===n){var c=l.destroy;l.destroy=void 0,c!==void 0&&wy(o,i,c)}l=l.next}while(l!==s)}}function gb(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&n)===n){var s=i.create;i.destroy=s()}i=i.next}while(i!==o)}}function xy(n){var o=n.ref;if(o!==null){var i=n.stateNode;switch(n.tag){case 5:n=i;break;default:n=i}typeof o=="function"?o(n):o.current=n}}function MO(n){var o=n.alternate;o!==null&&(n.alternate=null,MO(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[Ic],delete o[Bh],delete o[ay],delete o[oQ],delete o[iQ])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function PO(n){return n.tag===5||n.tag===3||n.tag===4}function lS(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||PO(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function yy(n,o,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,o?i.nodeType===8?i.parentNode.insertBefore(n,o):i.insertBefore(n,o):(i.nodeType===8?(o=i.parentNode,o.insertBefore(n,i)):(o=i,o.appendChild(n)),i=i._reactRootContainer,i!=null||o.onclick!==null||(o.onclick=Ov));else if(s!==4&&(n=n.child,n!==null))for(yy(n,o,i),n=n.sibling;n!==null;)yy(n,o,i),n=n.sibling}function Ay(n,o,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,o?i.insertBefore(n,o):i.appendChild(n);else if(s!==4&&(n=n.child,n!==null))for(Ay(n,o,i),n=n.sibling;n!==null;)Ay(n,o,i),n=n.sibling}var us=null,_1=!1;function Du(n,o,i){for(i=i.child;i!==null;)jO(n,o,i),i=i.sibling}function jO(n,o,i){if(Oc&&typeof Oc.onCommitFiberUnmount=="function")try{Oc.onCommitFiberUnmount(lb,i)}catch{}switch(i.tag){case 5:Bs||A2(i,o);case 6:var s=us,l=_1;us=null,Du(n,o,i),us=s,_1=l,us!==null&&(_1?(n=us,i=i.stateNode,n.nodeType===8?n.parentNode.removeChild(i):n.removeChild(i)):us.removeChild(i.stateNode));break;case 18:us!==null&&(_1?(n=us,i=i.stateNode,n.nodeType===8?Rw(n.parentNode,i):n.nodeType===1&&Rw(n,i),Mh(n)):Rw(us,i.stateNode));break;case 4:s=us,l=_1,us=i.stateNode.containerInfo,_1=!0,Du(n,o,i),us=s,_1=l;break;case 0:case 11:case 14:case 15:if(!Bs&&(s=i.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var c=l,d=c.destroy;c=c.tag,d!==void 0&&(c&2||c&4)&&wy(i,o,d),l=l.next}while(l!==s)}Du(n,o,i);break;case 1:if(!Bs&&(A2(i,o),s=i.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=i.memoizedProps,s.state=i.memoizedState,s.componentWillUnmount()}catch(f){Yi(i,o,f)}Du(n,o,i);break;case 21:Du(n,o,i);break;case 22:i.mode&1?(Bs=(s=Bs)||i.memoizedState!==null,Du(n,o,i),Bs=s):Du(n,o,i);break;default:Du(n,o,i)}}function cS(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var i=n.stateNode;i===null&&(i=n.stateNode=new yQ),o.forEach(function(s){var l=OQ.bind(null,n,s);i.has(s)||(i.add(s),s.then(l,l))})}}function z1(n,o){var i=o.deletions;if(i!==null)for(var s=0;sl&&(l=d),s&=~c}if(s=l,s=aa()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*kQ(s/1960))-s,10n?16:n,od===null)var s=!1;else{if(n=od,od=null,Vv=0,io&6)throw Error(Lt(331));var l=io;for(io|=4,or=n.current;or!==null;){var c=or,d=c.child;if(or.flags&16){var f=c.deletions;if(f!==null){for(var p=0;paa()-D5?ef(n,0):F5|=i),ml(n,o)}function $O(n,o){o===0&&(n.mode&1?(o=ig,ig<<=1,!(ig&130023424)&&(ig=4194304)):o=1);var i=Xs();n=yu(n,o),n!==null&&(um(n,o,i),ml(n,i))}function jQ(n){var o=n.memoizedState,i=0;o!==null&&(i=o.retryLane),$O(n,i)}function OQ(n,o){var i=0;switch(n.tag){case 13:var s=n.stateNode,l=n.memoizedState;l!==null&&(i=l.retryLane);break;case 19:s=n.stateNode;break;default:throw Error(Lt(314))}s!==null&&s.delete(o),$O(n,i)}var LO;LO=function(n,o,i){if(n!==null)if(n.memoizedProps!==o.pendingProps||pl.current)fl=!0;else{if(!(n.lanes&i)&&!(o.flags&128))return fl=!1,bQ(n,o,i);fl=!!(n.flags&131072)}else fl=!1,Fi&&o.flags&1048576&&Gj(o,Fv,o.index);switch(o.lanes=0,o.tag){case 2:var s=o.type;Kg(n,o),n=o.pendingProps;var l=Y2(o,Ts.current);$2(o,i),l=P5(null,o,s,n,l,i);var c=j5();return o.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,hl(s)?(c=!0,Bv(o)):c=!1,o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,k5(o),l.updater=mb,o.stateNode=l,l._reactInternals=o,fy(o,s,n,i),o=my(null,o,s,!0,c,i)):(o.tag=0,Fi&&c&&v5(o),Qs(null,o,l,i),o=o.child),o;case 16:s=o.elementType;e:{switch(Kg(n,o),n=o.pendingProps,l=s._init,s=l(s._payload),o.type=s,l=o.tag=BQ(s),n=W1(s,n),l){case 0:o=hy(null,o,s,n,i);break e;case 1:o=oS(null,o,s,n,i);break e;case 11:o=rS(null,o,s,n,i);break e;case 14:o=nS(null,o,s,W1(s.type,n),i);break e}throw Error(Lt(306,s,""))}return o;case 0:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:W1(s,l),hy(n,o,s,l,i);case 1:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:W1(s,l),oS(n,o,s,l,i);case 3:e:{if(AO(o),n===null)throw Error(Lt(387));s=o.pendingProps,c=o.memoizedState,l=c.element,Yj(n,o),$v(o,s,null,i);var d=o.memoizedState;if(s=d.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},o.updateQueue.baseState=c,o.memoizedState=c,o.flags&256){l=Z2(Error(Lt(423)),o),o=iS(n,o,s,i,l);break e}else if(s!==l){l=Z2(Error(Lt(424)),o),o=iS(n,o,s,i,l);break e}else for(Dl=pd(o.stateNode.containerInfo.firstChild),$l=o,Fi=!0,Y1=null,i=qj(o,null,s,i),o.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(K2(),s===l){o=Au(n,o,i);break e}Qs(n,o,s,i)}o=o.child}return o;case 5:return Kj(o),n===null&&cy(o),s=o.type,l=o.pendingProps,c=n!==null?n.memoizedProps:null,d=l.children,oy(s,l)?d=null:c!==null&&oy(s,c)&&(o.flags|=32),yO(n,o),Qs(n,o,d,i),o.child;case 6:return n===null&&cy(o),null;case 13:return CO(n,o,i);case 4:return S5(o,o.stateNode.containerInfo),s=o.pendingProps,n===null?o.child=X2(o,null,s,i):Qs(n,o,s,i),o.child;case 11:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:W1(s,l),rS(n,o,s,l,i);case 7:return Qs(n,o,o.pendingProps,i),o.child;case 8:return Qs(n,o,o.pendingProps.children,i),o.child;case 12:return Qs(n,o,o.pendingProps.children,i),o.child;case 10:e:{if(s=o.type._context,l=o.pendingProps,c=o.memoizedProps,d=l.value,di(Dv,s._currentValue),s._currentValue=d,c!==null)if(ic(c.value,d)){if(c.children===l.children&&!pl.current){o=Au(n,o,i);break e}}else for(c=o.child,c!==null&&(c.return=o);c!==null;){var f=c.dependencies;if(f!==null){d=c.child;for(var p=f.firstContext;p!==null;){if(p.context===s){if(c.tag===1){p=lu(-1,i&-i),p.tag=2;var m=c.updateQueue;if(m!==null){m=m.shared;var g=m.pending;g===null?p.next=p:(p.next=g.next,g.next=p),m.pending=p}}c.lanes|=i,p=c.alternate,p!==null&&(p.lanes|=i),uy(c.return,i,o),f.lanes|=i;break}p=p.next}}else if(c.tag===10)d=c.type===o.type?null:c.child;else if(c.tag===18){if(d=c.return,d===null)throw Error(Lt(341));d.lanes|=i,f=d.alternate,f!==null&&(f.lanes|=i),uy(d,i,o),d=c.sibling}else d=c.child;if(d!==null)d.return=c;else for(d=c;d!==null;){if(d===o){d=null;break}if(c=d.sibling,c!==null){c.return=d.return,d=c;break}d=d.return}c=d}Qs(n,o,l.children,i),o=o.child}return o;case 9:return l=o.type,s=o.pendingProps.children,$2(o,i),l=k1(l),s=s(l),o.flags|=1,Qs(n,o,s,i),o.child;case 14:return s=o.type,l=W1(s,o.pendingProps),l=W1(s.type,l),nS(n,o,s,l,i);case 15:return wO(n,o,o.type,o.pendingProps,i);case 17:return s=o.type,l=o.pendingProps,l=o.elementType===s?l:W1(s,l),Kg(n,o),o.tag=1,hl(s)?(n=!0,Bv(o)):n=!1,$2(o,i),gO(o,s,l),fy(o,s,l,i),my(null,o,s,!0,n,i);case 19:return kO(n,o,i);case 22:return xO(n,o,i)}throw Error(Lt(156,o.tag))};function zO(n,o){return pj(n,o)}function RQ(n,o,i,s){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function g1(n,o,i,s){return new RQ(n,o,i,s)}function z5(n){return n=n.prototype,!(!n||!n.isReactComponent)}function BQ(n){if(typeof n=="function")return z5(n)?1:0;if(n!=null){if(n=n.$$typeof,n===i5)return 11;if(n===a5)return 14}return 2}function vd(n,o){var i=n.alternate;return i===null?(i=g1(n.tag,o,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=o,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&14680064,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,o=n.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i}function Zg(n,o,i,s,l,c){var d=2;if(s=n,typeof n=="function")z5(n)&&(d=1);else if(typeof n=="string")d=5;else e:switch(n){case p2:return tf(i.children,l,c,o);case o5:d=8,l|=8;break;case Dx:return n=g1(12,i,o,l|2),n.elementType=Dx,n.lanes=c,n;case Nx:return n=g1(13,i,o,l),n.elementType=Nx,n.lanes=c,n;case $x:return n=g1(19,i,o,l),n.elementType=$x,n.lanes=c,n;case KP:return bb(i,l,c,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case _P:d=10;break e;case YP:d=9;break e;case i5:d=11;break e;case a5:d=14;break e;case Xu:d=16,s=null;break e}throw Error(Lt(130,n==null?n:typeof n,""))}return o=g1(d,i,o,l),o.elementType=n,o.type=s,o.lanes=c,o}function tf(n,o,i,s){return n=g1(7,n,s,o),n.lanes=i,n}function bb(n,o,i,s){return n=g1(22,n,s,o),n.elementType=KP,n.lanes=i,n.stateNode={isHidden:!1},n}function zw(n,o,i){return n=g1(6,n,null,o),n.lanes=i,n}function Hw(n,o,i){return o=g1(4,n.children!==null?n.children:[],n.key,o),o.lanes=i,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function TQ(n,o,i,s,l){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yw(0),this.expirationTimes=yw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yw(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function H5(n,o,i,s,l,c,d,f,p){return n=new TQ(n,o,i,f,p),o===1?(o=1,c===!0&&(o|=8)):o=0,c=g1(3,null,null,o),n.current=c,c.stateNode=n,c.memoizedState={element:s,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},k5(c),n}function FQ(n,o,i){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VO)}catch(n){console.error(n)}}VO(),VP.exports=Ql;var hm=VP.exports;const vg=rm(hm);var vS=hm;Tx.createRoot=vS.createRoot,Tx.hydrateRoot=vS.hydrateRoot;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. @@ -61,7 +61,7 @@ Error generating stack: `+c.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Hh(){return Hh=Object.assign?Object.assign.bind():function(n){for(var o=1;o"u")throw new Error(o)}function G5(n,o){if(!n){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function EQ(){return Math.random().toString(36).substr(2,8)}function uS(n,o){return{usr:n.state,key:n.key,idx:o}}function Sy(n,o,i,s){return i===void 0&&(i=null),Hh({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof o=="string"?Rf(o):o,{state:i,key:o&&o.key||s||EQ()})}function qv(n){let{pathname:o="/",search:i="",hash:s=""}=n;return i&&i!=="?"&&(o+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(o+=s.charAt(0)==="#"?s:"#"+s),o}function Rf(n){let o={};if(n){let i=n.indexOf("#");i>=0&&(o.hash=n.substr(i),n=n.substr(0,i));let s=n.indexOf("?");s>=0&&(o.search=n.substr(s),n=n.substr(0,s)),n&&(o.pathname=n)}return o}function MQ(n,o,i,s){s===void 0&&(s={});let{window:l=document.defaultView,v5Compat:c=!1}=s,d=l.history,f=id.Pop,p=null,m=g();m==null&&(m=0,d.replaceState(Hh({},d.state,{idx:m}),""));function g(){return(d.state||{idx:null}).idx}function v(){f=id.Pop;let M=g(),S=M==null?null:M-m;m=M,p&&p({action:f,location:C.location,delta:S})}function w(M,S){f=id.Push;let I=Sy(C.location,M,S);i&&i(I,M),m=g()+1;let E=uS(I,m),j=C.createHref(I);try{d.pushState(E,"",j)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;l.location.assign(j)}c&&p&&p({action:f,location:C.location,delta:1})}function A(M,S){f=id.Replace;let I=Sy(C.location,M,S);i&&i(I,M),m=g();let E=uS(I,m),j=C.createHref(I);d.replaceState(E,"",j),c&&p&&p({action:f,location:C.location,delta:0})}function k(M){let S=l.location.origin!=="null"?l.location.origin:l.location.href,I=typeof M=="string"?M:qv(M);return I=I.replace(/ $/,"%20"),Aa(S,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,S)}let C={get action(){return f},get location(){return n(l,d)},listen(M){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(cS,v),p=M,()=>{l.removeEventListener(cS,v),p=null}},createHref(M){return o(l,M)},createURL:k,encodeLocation(M){let S=k(M);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:w,replace:A,go(M){return d.go(M)}};return C}var dS;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dS||(dS={}));function PQ(n,o,i){return i===void 0&&(i="/"),jQ(n,o,i,!1)}function jQ(n,o,i,s){let l=typeof o=="string"?Rf(o):o,c=V5(l.pathname||"/",i);if(c==null)return null;let d=NO(n);OQ(d);let f=null;for(let p=0;f==null&&p{let p={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};p.relativePath.startsWith("/")&&(Aa(p.relativePath.startsWith(s),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(s.length));let m=wd([s,p.relativePath]),g=i.concat(p);c.children&&c.children.length>0&&(Aa(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),NO(c.children,o,g,m)),!(c.path==null&&!c.index)&&o.push({path:m,score:$Q(m,c.index),routesMeta:g})};return n.forEach((c,d)=>{var f;if(c.path===""||!((f=c.path)!=null&&f.includes("?")))l(c,d);else for(let p of $O(c.path))l(c,d,p)}),o}function $O(n){let o=n.split("/");if(o.length===0)return[];let[i,...s]=o,l=i.endsWith("?"),c=i.replace(/\?$/,"");if(s.length===0)return l?[c,""]:[c];let d=$O(s.join("/")),f=[];return f.push(...d.map(p=>p===""?c:[c,p].join("/"))),l&&f.push(...d),f.map(p=>n.startsWith("/")&&p===""?"/":p)}function OQ(n){n.sort((o,i)=>o.score!==i.score?i.score-o.score:LQ(o.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}const RQ=/^:[\w-]+$/,BQ=3,TQ=2,FQ=1,DQ=10,NQ=-2,fS=n=>n==="*";function $Q(n,o){let i=n.split("/"),s=i.length;return i.some(fS)&&(s+=NQ),o&&(s+=TQ),i.filter(l=>!fS(l)).reduce((l,c)=>l+(RQ.test(c)?BQ:c===""?FQ:DQ),s)}function LQ(n,o){return n.length===o.length&&n.slice(0,-1).every((s,l)=>s===o[l])?n[n.length-1]-o[o.length-1]:0}function zQ(n,o,i){let{routesMeta:s}=n,l={},c="/",d=[];for(let f=0;f{let{paramName:w,isOptional:A}=g;if(w==="*"){let C=f[v]||"";d=c.slice(0,c.length-C.length).replace(/(.)\/+$/,"$1")}const k=f[v];return A&&!k?m[w]=void 0:m[w]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function HQ(n,o,i){o===void 0&&(o=!1),i===void 0&&(i=!0),G5(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let s=[],l="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,p)=>(s.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(s.push({paramName:"*"}),l+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":n!==""&&n!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,o?void 0:"i"),s]}function UQ(n){try{return n.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return G5(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+o+").")),n}}function V5(n,o){if(o==="/")return n;if(!n.toLowerCase().startsWith(o.toLowerCase()))return null;let i=o.endsWith("/")?o.length-1:o.length,s=n.charAt(i);return s&&s!=="/"?null:n.slice(i)||"/"}function GQ(n,o){o===void 0&&(o="/");let{pathname:i,search:s="",hash:l=""}=typeof n=="string"?Rf(n):n;return{pathname:i?i.startsWith("/")?i:VQ(i,o):o,search:qQ(s),hash:_Q(l)}}function VQ(n,o){let i=o.replace(/\/+$/,"").split("/");return n.split("/").forEach(l=>{l===".."?i.length>1&&i.pop():l!=="."&&i.push(l)}),i.length>1?i.join("/"):"/"}function zw(n,o,i,s){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+o+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function QQ(n){return n.filter((o,i)=>i===0||o.route.path&&o.route.path.length>0)}function LO(n,o){let i=QQ(n);return o?i.map((s,l)=>l===i.length-1?s.pathname:s.pathnameBase):i.map(s=>s.pathnameBase)}function zO(n,o,i,s){s===void 0&&(s=!1);let l;typeof n=="string"?l=Rf(n):(l=Hh({},n),Aa(!l.pathname||!l.pathname.includes("?"),zw("?","pathname","search",l)),Aa(!l.pathname||!l.pathname.includes("#"),zw("#","pathname","hash",l)),Aa(!l.search||!l.search.includes("#"),zw("#","search","hash",l)));let c=n===""||l.pathname==="",d=c?"/":l.pathname,f;if(d==null)f=i;else{let v=o.length-1;if(!s&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),v-=1;l.pathname=w.join("/")}f=v>=0?o[v]:"/"}let p=GQ(l,f),m=d&&d!=="/"&&d.endsWith("/"),g=(c||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}const wd=n=>n.join("/").replace(/\/\/+/g,"/"),WQ=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),qQ=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,_Q=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function YQ(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const HO=["post","put","patch","delete"];new Set(HO);const KQ=["get",...HO];new Set(KQ);/** + */function zh(){return zh=Object.assign?Object.assign.bind():function(n){for(var o=1;o"u")throw new Error(o)}function Q5(n,o){if(!n){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function HQ(){return Math.random().toString(36).substr(2,8)}function wS(n,o){return{usr:n.state,key:n.key,idx:o}}function Ey(n,o,i,s){return i===void 0&&(i=null),zh({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof o=="string"?Of(o):o,{state:i,key:o&&o.key||s||HQ()})}function qv(n){let{pathname:o="/",search:i="",hash:s=""}=n;return i&&i!=="?"&&(o+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(o+=s.charAt(0)==="#"?s:"#"+s),o}function Of(n){let o={};if(n){let i=n.indexOf("#");i>=0&&(o.hash=n.substr(i),n=n.substr(0,i));let s=n.indexOf("?");s>=0&&(o.search=n.substr(s),n=n.substr(0,s)),n&&(o.pathname=n)}return o}function UQ(n,o,i,s){s===void 0&&(s={});let{window:l=document.defaultView,v5Compat:c=!1}=s,d=l.history,f=id.Pop,p=null,m=g();m==null&&(m=0,d.replaceState(zh({},d.state,{idx:m}),""));function g(){return(d.state||{idx:null}).idx}function v(){f=id.Pop;let M=g(),S=M==null?null:M-m;m=M,p&&p({action:f,location:C.location,delta:S})}function w(M,S){f=id.Push;let I=Ey(C.location,M,S);i&&i(I,M),m=g()+1;let E=wS(I,m),j=C.createHref(I);try{d.pushState(E,"",j)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;l.location.assign(j)}c&&p&&p({action:f,location:C.location,delta:1})}function A(M,S){f=id.Replace;let I=Ey(C.location,M,S);i&&i(I,M),m=g();let E=wS(I,m),j=C.createHref(I);d.replaceState(E,"",j),c&&p&&p({action:f,location:C.location,delta:0})}function k(M){let S=l.location.origin!=="null"?l.location.origin:l.location.href,I=typeof M=="string"?M:qv(M);return I=I.replace(/ $/,"%20"),Aa(S,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,S)}let C={get action(){return f},get location(){return n(l,d)},listen(M){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(bS,v),p=M,()=>{l.removeEventListener(bS,v),p=null}},createHref(M){return o(l,M)},createURL:k,encodeLocation(M){let S=k(M);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:w,replace:A,go(M){return d.go(M)}};return C}var xS;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(xS||(xS={}));function GQ(n,o,i){return i===void 0&&(i="/"),VQ(n,o,i,!1)}function VQ(n,o,i,s){let l=typeof o=="string"?Of(o):o,c=W5(l.pathname||"/",i);if(c==null)return null;let d=QO(n);QQ(d);let f=null;for(let p=0;f==null&&p{let p={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};p.relativePath.startsWith("/")&&(Aa(p.relativePath.startsWith(s),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(s.length));let m=bd([s,p.relativePath]),g=i.concat(p);c.children&&c.children.length>0&&(Aa(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),QO(c.children,o,g,m)),!(c.path==null&&!c.index)&&o.push({path:m,score:JQ(m,c.index),routesMeta:g})};return n.forEach((c,d)=>{var f;if(c.path===""||!((f=c.path)!=null&&f.includes("?")))l(c,d);else for(let p of WO(c.path))l(c,d,p)}),o}function WO(n){let o=n.split("/");if(o.length===0)return[];let[i,...s]=o,l=i.endsWith("?"),c=i.replace(/\?$/,"");if(s.length===0)return l?[c,""]:[c];let d=WO(s.join("/")),f=[];return f.push(...d.map(p=>p===""?c:[c,p].join("/"))),l&&f.push(...d),f.map(p=>n.startsWith("/")&&p===""?"/":p)}function QQ(n){n.sort((o,i)=>o.score!==i.score?i.score-o.score:ZQ(o.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}const WQ=/^:[\w-]+$/,qQ=3,_Q=2,YQ=1,KQ=10,XQ=-2,yS=n=>n==="*";function JQ(n,o){let i=n.split("/"),s=i.length;return i.some(yS)&&(s+=XQ),o&&(s+=_Q),i.filter(l=>!yS(l)).reduce((l,c)=>l+(WQ.test(c)?qQ:c===""?YQ:KQ),s)}function ZQ(n,o){return n.length===o.length&&n.slice(0,-1).every((s,l)=>s===o[l])?n[n.length-1]-o[o.length-1]:0}function eW(n,o,i){let{routesMeta:s}=n,l={},c="/",d=[];for(let f=0;f{let{paramName:w,isOptional:A}=g;if(w==="*"){let C=f[v]||"";d=c.slice(0,c.length-C.length).replace(/(.)\/+$/,"$1")}const k=f[v];return A&&!k?m[w]=void 0:m[w]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function tW(n,o,i){o===void 0&&(o=!1),i===void 0&&(i=!0),Q5(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let s=[],l="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,p)=>(s.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(s.push({paramName:"*"}),l+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":n!==""&&n!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,o?void 0:"i"),s]}function rW(n){try{return n.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Q5(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+o+").")),n}}function W5(n,o){if(o==="/")return n;if(!n.toLowerCase().startsWith(o.toLowerCase()))return null;let i=o.endsWith("/")?o.length-1:o.length,s=n.charAt(i);return s&&s!=="/"?null:n.slice(i)||"/"}function nW(n,o){o===void 0&&(o="/");let{pathname:i,search:s="",hash:l=""}=typeof n=="string"?Of(n):n;return{pathname:i?i.startsWith("/")?i:oW(i,o):o,search:sW(s),hash:lW(l)}}function oW(n,o){let i=o.replace(/\/+$/,"").split("/");return n.split("/").forEach(l=>{l===".."?i.length>1&&i.pop():l!=="."&&i.push(l)}),i.length>1?i.join("/"):"/"}function Uw(n,o,i,s){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+o+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function iW(n){return n.filter((o,i)=>i===0||o.route.path&&o.route.path.length>0)}function qO(n,o){let i=iW(n);return o?i.map((s,l)=>l===i.length-1?s.pathname:s.pathnameBase):i.map(s=>s.pathnameBase)}function _O(n,o,i,s){s===void 0&&(s=!1);let l;typeof n=="string"?l=Of(n):(l=zh({},n),Aa(!l.pathname||!l.pathname.includes("?"),Uw("?","pathname","search",l)),Aa(!l.pathname||!l.pathname.includes("#"),Uw("#","pathname","hash",l)),Aa(!l.search||!l.search.includes("#"),Uw("#","search","hash",l)));let c=n===""||l.pathname==="",d=c?"/":l.pathname,f;if(d==null)f=i;else{let v=o.length-1;if(!s&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),v-=1;l.pathname=w.join("/")}f=v>=0?o[v]:"/"}let p=nW(l,f),m=d&&d!=="/"&&d.endsWith("/"),g=(c||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}const bd=n=>n.join("/").replace(/\/\/+/g,"/"),aW=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),sW=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,lW=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function cW(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const YO=["post","put","patch","delete"];new Set(YO);const uW=["get",...YO];new Set(uW);/** * React Router v6.25.1 * * Copyright (c) Remix Software Inc. @@ -70,7 +70,7 @@ Error generating stack: `+c.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Uh(){return Uh=Object.assign?Object.assign.bind():function(n){for(var o=1;o{f.current=!0}),x.useCallback(function(m,g){if(g===void 0&&(g={}),!f.current)return;if(typeof m=="number"){s.go(m);return}let v=zO(m,JSON.parse(d),c,g.relative==="path");n==null&&o!=="/"&&(v.pathname=v.pathname==="/"?o:wd([o,v.pathname])),(g.replace?s.replace:s.push)(v,g.state,g)},[o,s,d,c,n])}function QO(n,o){let{relative:i}=o===void 0?{}:o,{future:s}=x.useContext(Bf),{matches:l}=x.useContext(Tf),{pathname:c}=vm(),d=JSON.stringify(LO(l,s.v7_relativeSplatPath));return x.useMemo(()=>zO(n,JSON.parse(d),c,i==="path"),[n,d,c,i])}function eW(n,o){return tW(n,o)}function tW(n,o,i,s){gm()||Aa(!1);let{navigator:l}=x.useContext(Bf),{matches:c}=x.useContext(Tf),d=c[c.length-1],f=d?d.params:{};d&&d.pathname;let p=d?d.pathnameBase:"/";d&&d.route;let m=vm(),g;if(o){var v;let M=typeof o=="string"?Rf(o):o;p==="/"||(v=M.pathname)!=null&&v.startsWith(p)||Aa(!1),g=M}else g=m;let w=g.pathname||"/",A=w;if(p!=="/"){let M=p.replace(/^\//,"").split("/");A="/"+w.replace(/^\//,"").split("/").slice(M.length).join("/")}let k=PQ(n,{pathname:A}),C=aW(k&&k.map(M=>Object.assign({},M,{params:Object.assign({},f,M.params),pathname:wd([p,l.encodeLocation?l.encodeLocation(M.pathname).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?p:wd([p,l.encodeLocation?l.encodeLocation(M.pathnameBase).pathname:M.pathnameBase])})),c,i,s);return o&&C?x.createElement(kb.Provider,{value:{location:Uh({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:id.Pop}},C):C}function rW(){let n=uW(),o=YQ(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},o),i?x.createElement("pre",{style:l},i):null,null)}const nW=x.createElement(rW,null);class oW extends x.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,i){return i.location!==o.location||i.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:i.error,location:i.location,revalidation:o.revalidation||i.revalidation}}componentDidCatch(o,i){console.error("React Router caught the following error during render",o,i)}render(){return this.state.error!==void 0?x.createElement(Tf.Provider,{value:this.props.routeContext},x.createElement(UO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iW(n){let{routeContext:o,match:i,children:s}=n,l=x.useContext(Q5);return l&&l.static&&l.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=i.route.id),x.createElement(Tf.Provider,{value:o},s)}function aW(n,o,i,s){var l;if(o===void 0&&(o=[]),i===void 0&&(i=null),s===void 0&&(s=null),n==null){var c;if((c=i)!=null&&c.errors)n=i.matches;else return null}let d=n,f=(l=i)==null?void 0:l.errors;if(f!=null){let g=d.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);g>=0||Aa(!1),d=d.slice(0,Math.min(d.length,g+1))}let p=!1,m=-1;if(i&&s&&s.v7_partialHydration)for(let g=0;g=0?d=d.slice(0,m+1):d=[d[0]];break}}}return d.reduceRight((g,v,w)=>{let A,k=!1,C=null,M=null;i&&(A=f&&v.route.id?f[v.route.id]:void 0,C=v.route.errorElement||nW,p&&(m<0&&w===0?(k=!0,M=null):m===w&&(k=!0,M=v.route.hydrateFallbackElement||null)));let S=o.concat(d.slice(0,w+1)),I=()=>{let E;return A?E=C:k?E=M:v.route.Component?E=x.createElement(v.route.Component,null):v.route.element?E=v.route.element:E=g,x.createElement(iW,{match:v,routeContext:{outlet:g,matches:S,isDataRoute:i!=null},children:E})};return i&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?x.createElement(oW,{location:i.location,revalidation:i.revalidation,component:C,error:A,children:I(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):I()},null)}var WO=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(WO||{}),_v=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(_v||{});function sW(n){let o=x.useContext(Q5);return o||Aa(!1),o}function lW(n){let o=x.useContext(XQ);return o||Aa(!1),o}function cW(n){let o=x.useContext(Tf);return o||Aa(!1),o}function qO(n){let o=cW(),i=o.matches[o.matches.length-1];return i.route.id||Aa(!1),i.route.id}function uW(){var n;let o=x.useContext(UO),i=lW(_v.UseRouteError),s=qO(_v.UseRouteError);return o!==void 0?o:(n=i.errors)==null?void 0:n[s]}function dW(){let{router:n}=sW(WO.UseNavigateStable),o=qO(_v.UseNavigateStable),i=x.useRef(!1);return GO(()=>{i.current=!0}),x.useCallback(function(l,c){c===void 0&&(c={}),i.current&&(typeof l=="number"?n.navigate(l):n.navigate(l,Uh({fromRouteId:o},c)))},[n,o])}function qn(n){Aa(!1)}function fW(n){let{basename:o="/",children:i=null,location:s,navigationType:l=id.Pop,navigator:c,static:d=!1,future:f}=n;gm()&&Aa(!1);let p=o.replace(/^\/*/,"/"),m=x.useMemo(()=>({basename:p,navigator:c,static:d,future:Uh({v7_relativeSplatPath:!1},f)}),[p,f,c,d]);typeof s=="string"&&(s=Rf(s));let{pathname:g="/",search:v="",hash:w="",state:A=null,key:k="default"}=s,C=x.useMemo(()=>{let M=V5(g,p);return M==null?null:{location:{pathname:M,search:v,hash:w,state:A,key:k},navigationType:l}},[p,g,v,w,A,k,l]);return C==null?null:x.createElement(Bf.Provider,{value:m},x.createElement(kb.Provider,{children:i,value:C}))}function pW(n){let{children:o,location:i}=n;return eW(Iy(o),i)}new Promise(()=>{});function Iy(n,o){o===void 0&&(o=[]);let i=[];return x.Children.forEach(n,(s,l)=>{if(!x.isValidElement(s))return;let c=[...o,l];if(s.type===x.Fragment){i.push.apply(i,Iy(s.props.children,c));return}s.type!==qn&&Aa(!1),!s.props.index||!s.props.children||Aa(!1);let d={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=Iy(s.props.children,c)),i.push(d)}),i}/** + */function Hh(){return Hh=Object.assign?Object.assign.bind():function(n){for(var o=1;o{f.current=!0}),x.useCallback(function(m,g){if(g===void 0&&(g={}),!f.current)return;if(typeof m=="number"){s.go(m);return}let v=_O(m,JSON.parse(d),c,g.relative==="path");n==null&&o!=="/"&&(v.pathname=v.pathname==="/"?o:bd([o,v.pathname])),(g.replace?s.replace:s.push)(v,g.state,g)},[o,s,d,c,n])}function ZO(n,o){let{relative:i}=o===void 0?{}:o,{future:s}=x.useContext(Rf),{matches:l}=x.useContext(Bf),{pathname:c}=gm(),d=JSON.stringify(qO(l,s.v7_relativeSplatPath));return x.useMemo(()=>_O(n,JSON.parse(d),c,i==="path"),[n,d,c,i])}function hW(n,o){return mW(n,o)}function mW(n,o,i,s){mm()||Aa(!1);let{navigator:l}=x.useContext(Rf),{matches:c}=x.useContext(Bf),d=c[c.length-1],f=d?d.params:{};d&&d.pathname;let p=d?d.pathnameBase:"/";d&&d.route;let m=gm(),g;if(o){var v;let M=typeof o=="string"?Of(o):o;p==="/"||(v=M.pathname)!=null&&v.startsWith(p)||Aa(!1),g=M}else g=m;let w=g.pathname||"/",A=w;if(p!=="/"){let M=p.replace(/^\//,"").split("/");A="/"+w.replace(/^\//,"").split("/").slice(M.length).join("/")}let k=GQ(n,{pathname:A}),C=xW(k&&k.map(M=>Object.assign({},M,{params:Object.assign({},f,M.params),pathname:bd([p,l.encodeLocation?l.encodeLocation(M.pathname).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?p:bd([p,l.encodeLocation?l.encodeLocation(M.pathnameBase).pathname:M.pathnameBase])})),c,i,s);return o&&C?x.createElement(Cb.Provider,{value:{location:Hh({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:id.Pop}},C):C}function gW(){let n=kW(),o=cW(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},o),i?x.createElement("pre",{style:l},i):null,null)}const vW=x.createElement(gW,null);class bW extends x.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,i){return i.location!==o.location||i.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:i.error,location:i.location,revalidation:o.revalidation||i.revalidation}}componentDidCatch(o,i){console.error("React Router caught the following error during render",o,i)}render(){return this.state.error!==void 0?x.createElement(Bf.Provider,{value:this.props.routeContext},x.createElement(KO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wW(n){let{routeContext:o,match:i,children:s}=n,l=x.useContext(q5);return l&&l.static&&l.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=i.route.id),x.createElement(Bf.Provider,{value:o},s)}function xW(n,o,i,s){var l;if(o===void 0&&(o=[]),i===void 0&&(i=null),s===void 0&&(s=null),n==null){var c;if((c=i)!=null&&c.errors)n=i.matches;else return null}let d=n,f=(l=i)==null?void 0:l.errors;if(f!=null){let g=d.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);g>=0||Aa(!1),d=d.slice(0,Math.min(d.length,g+1))}let p=!1,m=-1;if(i&&s&&s.v7_partialHydration)for(let g=0;g=0?d=d.slice(0,m+1):d=[d[0]];break}}}return d.reduceRight((g,v,w)=>{let A,k=!1,C=null,M=null;i&&(A=f&&v.route.id?f[v.route.id]:void 0,C=v.route.errorElement||vW,p&&(m<0&&w===0?(k=!0,M=null):m===w&&(k=!0,M=v.route.hydrateFallbackElement||null)));let S=o.concat(d.slice(0,w+1)),I=()=>{let E;return A?E=C:k?E=M:v.route.Component?E=x.createElement(v.route.Component,null):v.route.element?E=v.route.element:E=g,x.createElement(wW,{match:v,routeContext:{outlet:g,matches:S,isDataRoute:i!=null},children:E})};return i&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?x.createElement(bW,{location:i.location,revalidation:i.revalidation,component:C,error:A,children:I(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):I()},null)}var eR=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(eR||{}),_v=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(_v||{});function yW(n){let o=x.useContext(q5);return o||Aa(!1),o}function AW(n){let o=x.useContext(dW);return o||Aa(!1),o}function CW(n){let o=x.useContext(Bf);return o||Aa(!1),o}function tR(n){let o=CW(),i=o.matches[o.matches.length-1];return i.route.id||Aa(!1),i.route.id}function kW(){var n;let o=x.useContext(KO),i=AW(_v.UseRouteError),s=tR(_v.UseRouteError);return o!==void 0?o:(n=i.errors)==null?void 0:n[s]}function SW(){let{router:n}=yW(eR.UseNavigateStable),o=tR(_v.UseNavigateStable),i=x.useRef(!1);return XO(()=>{i.current=!0}),x.useCallback(function(l,c){c===void 0&&(c={}),i.current&&(typeof l=="number"?n.navigate(l):n.navigate(l,Hh({fromRouteId:o},c)))},[n,o])}function qn(n){Aa(!1)}function IW(n){let{basename:o="/",children:i=null,location:s,navigationType:l=id.Pop,navigator:c,static:d=!1,future:f}=n;mm()&&Aa(!1);let p=o.replace(/^\/*/,"/"),m=x.useMemo(()=>({basename:p,navigator:c,static:d,future:Hh({v7_relativeSplatPath:!1},f)}),[p,f,c,d]);typeof s=="string"&&(s=Of(s));let{pathname:g="/",search:v="",hash:w="",state:A=null,key:k="default"}=s,C=x.useMemo(()=>{let M=W5(g,p);return M==null?null:{location:{pathname:M,search:v,hash:w,state:A,key:k},navigationType:l}},[p,g,v,w,A,k,l]);return C==null?null:x.createElement(Rf.Provider,{value:m},x.createElement(Cb.Provider,{children:i,value:C}))}function EW(n){let{children:o,location:i}=n;return hW(My(o),i)}new Promise(()=>{});function My(n,o){o===void 0&&(o=[]);let i=[];return x.Children.forEach(n,(s,l)=>{if(!x.isValidElement(s))return;let c=[...o,l];if(s.type===x.Fragment){i.push.apply(i,My(s.props.children,c));return}s.type!==qn&&Aa(!1),!s.props.index||!s.props.children||Aa(!1);let d={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=My(s.props.children,c)),i.push(d)}),i}/** * React Router DOM v6.25.1 * * Copyright (c) Remix Software Inc. @@ -79,13 +79,13 @@ Error generating stack: `+c.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ey(){return Ey=Object.assign?Object.assign.bind():function(n){for(var o=1;o=0)&&(i[l]=n[l]);return i}function mW(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function gW(n,o){return n.button===0&&(!o||o==="_self")&&!mW(n)}const vW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],bW="6";try{window.__reactRouterVersion=bW}catch{}const wW="startTransition",hS=bv[wW];function xW(n){let{basename:o,children:i,future:s,window:l}=n,c=x.useRef();c.current==null&&(c.current=IQ({window:l,v5Compat:!0}));let d=c.current,[f,p]=x.useState({action:d.action,location:d.location}),{v7_startTransition:m}=s||{},g=x.useCallback(v=>{m&&hS?hS(()=>p(v)):p(v)},[p,m]);return x.useLayoutEffect(()=>d.listen(g),[d,g]),x.createElement(fW,{basename:o,children:i,location:f.location,navigationType:f.action,navigator:d,future:s})}const yW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ev=x.forwardRef(function(o,i){let{onClick:s,relative:l,reloadDocument:c,replace:d,state:f,target:p,to:m,preventScrollReset:g,unstable_viewTransition:v}=o,w=hW(o,vW),{basename:A}=x.useContext(Bf),k,C=!1;if(typeof m=="string"&&AW.test(m)&&(k=m,yW))try{let E=new URL(window.location.href),j=m.startsWith("//")?new URL(E.protocol+m):new URL(m),B=V5(j.pathname,A);j.origin===E.origin&&B!=null?m=B+j.search+j.hash:C=!0}catch{}let M=JQ(m,{relative:l}),S=CW(m,{replace:d,state:f,target:p,preventScrollReset:g,relative:l,unstable_viewTransition:v});function I(E){s&&s(E),E.defaultPrevented||S(E)}return x.createElement("a",Ey({},w,{href:k||M,onClick:C||c?s:I,ref:i,target:p}))});var mS;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(mS||(mS={}));var gS;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gS||(gS={}));function CW(n,o){let{target:i,replace:s,state:l,preventScrollReset:c,relative:d,unstable_viewTransition:f}=o===void 0?{}:o,p=VO(),m=vm(),g=QO(n,{relative:d});return x.useCallback(v=>{if(gW(v,i)){v.preventDefault();let w=s!==void 0?s:qv(m)===qv(g);p(n,{replace:w,state:l,preventScrollReset:c,relative:d,unstable_viewTransition:f})}},[m,p,g,s,l,i,n,c,d,f])}var _O={exports:{}};/*! + */function Py(){return Py=Object.assign?Object.assign.bind():function(n){for(var o=1;o=0)&&(i[l]=n[l]);return i}function PW(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function jW(n,o){return n.button===0&&(!o||o==="_self")&&!PW(n)}const OW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],RW="6";try{window.__reactRouterVersion=RW}catch{}const BW="startTransition",CS=bv[BW];function TW(n){let{basename:o,children:i,future:s,window:l}=n,c=x.useRef();c.current==null&&(c.current=zQ({window:l,v5Compat:!0}));let d=c.current,[f,p]=x.useState({action:d.action,location:d.location}),{v7_startTransition:m}=s||{},g=x.useCallback(v=>{m&&CS?CS(()=>p(v)):p(v)},[p,m]);return x.useLayoutEffect(()=>d.listen(g),[d,g]),x.createElement(IW,{basename:o,children:i,location:f.location,navigationType:f.action,navigator:d,future:s})}const FW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",DW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ev=x.forwardRef(function(o,i){let{onClick:s,relative:l,reloadDocument:c,replace:d,state:f,target:p,to:m,preventScrollReset:g,unstable_viewTransition:v}=o,w=MW(o,OW),{basename:A}=x.useContext(Rf),k,C=!1;if(typeof m=="string"&&DW.test(m)&&(k=m,FW))try{let E=new URL(window.location.href),j=m.startsWith("//")?new URL(E.protocol+m):new URL(m),B=W5(j.pathname,A);j.origin===E.origin&&B!=null?m=B+j.search+j.hash:C=!0}catch{}let M=fW(m,{relative:l}),S=NW(m,{replace:d,state:f,target:p,preventScrollReset:g,relative:l,unstable_viewTransition:v});function I(E){s&&s(E),E.defaultPrevented||S(E)}return x.createElement("a",Py({},w,{href:k||M,onClick:C||c?s:I,ref:i,target:p}))});var kS;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(kS||(kS={}));var SS;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(SS||(SS={}));function NW(n,o){let{target:i,replace:s,state:l,preventScrollReset:c,relative:d,unstable_viewTransition:f}=o===void 0?{}:o,p=JO(),m=gm(),g=ZO(n,{relative:d});return x.useCallback(v=>{if(jW(v,i)){v.preventDefault();let w=s!==void 0?s:qv(m)===qv(g);p(n,{replace:w,state:l,preventScrollReset:c,relative:d,unstable_viewTransition:f})}},[m,p,g,s,l,i,n,c,d,f])}var rR={exports:{}};/*! * sweetalert2 v11.12.3 * Released under the MIT License. -*/(function(n,o){(function(i,s){n.exports=s()})(Fu,function(){function i(Z,R){(R==null||R>Z.length)&&(R=Z.length);for(var U=0,J=Array(R);U=Z.length?{done:!0}:{done:!1,value:Z[J++]}},e:function(jr){throw jr},f:xe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ct,Gt=!0,$r=!1;return{s:function(){U=U.call(Z)},n:function(){var jr=U.next();return Gt=jr.done,jr},e:function(jr){$r=!0,ct=jr},f:function(){try{Gt||U.return==null||U.return()}finally{if($r)throw ct}}}}function S(){return S=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Z,R,U){var J=V(Z,R);if(J){var xe=Object.getOwnPropertyDescriptor(J,R);return xe.get?xe.get.call(arguments.length<3?Z:U):xe.value}},S.apply(null,arguments)}function I(Z){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},I(Z)}function E(Z,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(R&&R.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),R&&L(Z,R)}function j(){try{var Z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j=function(){return!!Z})()}function B(Z){if(typeof Symbol<"u"&&Z[Symbol.iterator]!=null||Z["@@iterator"]!=null)return Array.from(Z)}function F(Z,R){var U=Z==null?null:typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(U!=null){var J,xe,ct,Gt,$r=[],jr=!0,ro=!1;try{if(ct=(U=U.call(Z)).next,R!==0)for(;!(jr=(J=ct.call(U)).done)&&($r.push(J.value),$r.length!==R);jr=!0);}catch(L1){ro=!0,xe=L1}finally{try{if(!jr&&U.return!=null&&(Gt=U.return(),Object(Gt)!==Gt))return}finally{if(ro)throw xe}}return $r}}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +*/(function(n,o){(function(i,s){n.exports=s()})(Fu,function(){function i(Z,O){(O==null||O>Z.length)&&(O=Z.length);for(var H=0,J=Array(O);H=Z.length?{done:!0}:{done:!1,value:Z[J++]}},e:function(jr){throw jr},f:xe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ct,Gt=!0,$r=!1;return{s:function(){H=H.call(Z)},n:function(){var jr=H.next();return Gt=jr.done,jr},e:function(jr){$r=!0,ct=jr},f:function(){try{Gt||H.return==null||H.return()}finally{if($r)throw ct}}}}function S(){return S=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Z,O,H){var J=V(Z,O);if(J){var xe=Object.getOwnPropertyDescriptor(J,O);return xe.get?xe.get.call(arguments.length<3?Z:H):xe.value}},S.apply(null,arguments)}function I(Z){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)},I(Z)}function E(Z,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(O&&O.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),O&&L(Z,O)}function j(){try{var Z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j=function(){return!!Z})()}function B(Z){if(typeof Symbol<"u"&&Z[Symbol.iterator]!=null||Z["@@iterator"]!=null)return Array.from(Z)}function D(Z,O){var H=Z==null?null:typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(H!=null){var J,xe,ct,Gt,$r=[],jr=!0,no=!1;try{if(ct=(H=H.call(Z)).next,O!==0)for(;!(jr=(J=ct.call(H)).done)&&($r.push(J.value),$r.length!==O);jr=!0);}catch($1){no=!0,xe=$1}finally{try{if(!jr&&H.return!=null&&(Gt=H.return(),Object(Gt)!==Gt))return}finally{if(no)throw xe}}return $r}}function R(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(Z,R){if(R&&(typeof R=="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(Z)}function L(Z,R){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,J){return U.__proto__=J,U},L(Z,R)}function _(Z,R){return s(Z)||F(Z,R)||D(Z,R)||O()}function V(Z,R){for(;!{}.hasOwnProperty.call(Z,R)&&(Z=I(Z))!==null;);return Z}function $(Z){return l(Z)||B(Z)||D(Z)||N()}function z(Z,R){if(typeof Z!="object"||!Z)return Z;var U=Z[Symbol.toPrimitive];if(U!==void 0){var J=U.call(Z,R);if(typeof J!="object")return J;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}function Q(Z){var R=z(Z,"string");return typeof R=="symbol"?R:R+""}function G(Z){"@babel/helpers - typeof";return G=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},G(Z)}function D(Z,R){if(Z){if(typeof Z=="string")return i(Z,R);var U={}.toString.call(Z).slice(8,-1);return U==="Object"&&Z.constructor&&(U=Z.constructor.name),U==="Map"||U==="Set"?Array.from(Z):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?i(Z,R):void 0}}var q=100,W={},X=function(){W.previousActiveElement instanceof HTMLElement?(W.previousActiveElement.focus(),W.previousActiveElement=null):document.body&&document.body.focus()},te=function(R){return new Promise(function(U){if(!R)return U();var J=window.scrollX,xe=window.scrollY;W.restoreFocusTimeout=setTimeout(function(){X(),U()},q),window.scrollTo(J,xe)})},se="swal2-",de=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],ee=de.reduce(function(Z,R){return Z[R]=se+R,Z},{}),fe=["success","warning","info","question","error"],he=fe.reduce(function(Z,R){return Z[R]=se+R,Z},{}),Ie="SweetAlert2:",ve=function(R){return R.charAt(0).toUpperCase()+R.slice(1)},be=function(R){console.warn("".concat(Ie," ").concat(G(R)==="object"?R.join(" "):R))},ke=function(R){console.error("".concat(Ie," ").concat(R))},ze=[],Ge=function(R){ze.includes(R)||(ze.push(R),be(R))},Ve=function(R){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ge('"'.concat(R,'" is deprecated and will be removed in the next major release.').concat(U?' Use "'.concat(U,'" instead.'):""))},at=function(R){return typeof R=="function"?R():R},We=function(R){return R&&typeof R.toPromise=="function"},ue=function(R){return We(R)?R.toPromise():Promise.resolve(R)},Le=function(R){return R&&Promise.resolve(R)===R},$e=function(){return document.body.querySelector(".".concat(ee.container))},bt=function(R){var U=$e();return U?U.querySelector(R):null},ot=function(R){return bt(".".concat(R))},st=function(){return ot(ee.popup)},Ze=function(){return ot(ee.icon)},dt=function(){return ot(ee["icon-content"])},Xe=function(){return ot(ee.title)},Pt=function(){return ot(ee["html-container"])},mt=function(){return ot(ee.image)},pt=function(){return ot(ee["progress-steps"])},Te=function(){return ot(ee["validation-message"])},Re=function(){return bt(".".concat(ee.actions," .").concat(ee.confirm))},Je=function(){return bt(".".concat(ee.actions," .").concat(ee.cancel))},It=function(){return bt(".".concat(ee.actions," .").concat(ee.deny))},Nt=function(){return ot(ee["input-label"])},ht=function(){return bt(".".concat(ee.loader))},xt=function(){return ot(ee.actions)},tt=function(){return ot(ee.footer)},Y=function(){return ot(ee["timer-progress-bar"])},re=function(){return ot(ee.close)},ie=` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(Z,O){if(O&&(typeof O=="object"||typeof O=="function"))return O;if(O!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(Z)}function L(Z,O){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,J){return H.__proto__=J,H},L(Z,O)}function _(Z,O){return s(Z)||D(Z,O)||F(Z,O)||R()}function V(Z,O){for(;!{}.hasOwnProperty.call(Z,O)&&(Z=I(Z))!==null;);return Z}function $(Z){return l(Z)||B(Z)||F(Z)||N()}function z(Z,O){if(typeof Z!="object"||!Z)return Z;var H=Z[Symbol.toPrimitive];if(H!==void 0){var J=H.call(Z,O);if(typeof J!="object")return J;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}function Q(Z){var O=z(Z,"string");return typeof O=="symbol"?O:O+""}function G(Z){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},G(Z)}function F(Z,O){if(Z){if(typeof Z=="string")return i(Z,O);var H={}.toString.call(Z).slice(8,-1);return H==="Object"&&Z.constructor&&(H=Z.constructor.name),H==="Map"||H==="Set"?Array.from(Z):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?i(Z,O):void 0}}var q=100,W={},X=function(){W.previousActiveElement instanceof HTMLElement?(W.previousActiveElement.focus(),W.previousActiveElement=null):document.body&&document.body.focus()},te=function(O){return new Promise(function(H){if(!O)return H();var J=window.scrollX,xe=window.scrollY;W.restoreFocusTimeout=setTimeout(function(){X(),H()},q),window.scrollTo(J,xe)})},se="swal2-",de=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],ee=de.reduce(function(Z,O){return Z[O]=se+O,Z},{}),fe=["success","warning","info","question","error"],he=fe.reduce(function(Z,O){return Z[O]=se+O,Z},{}),Ie="SweetAlert2:",ve=function(O){return O.charAt(0).toUpperCase()+O.slice(1)},be=function(O){console.warn("".concat(Ie," ").concat(G(O)==="object"?O.join(" "):O))},ke=function(O){console.error("".concat(Ie," ").concat(O))},ze=[],Ge=function(O){ze.includes(O)||(ze.push(O),be(O))},Ve=function(O){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ge('"'.concat(O,'" is deprecated and will be removed in the next major release.').concat(H?' Use "'.concat(H,'" instead.'):""))},at=function(O){return typeof O=="function"?O():O},We=function(O){return O&&typeof O.toPromise=="function"},ue=function(O){return We(O)?O.toPromise():Promise.resolve(O)},Le=function(O){return O&&Promise.resolve(O)===O},$e=function(){return document.body.querySelector(".".concat(ee.container))},bt=function(O){var H=$e();return H?H.querySelector(O):null},ot=function(O){return bt(".".concat(O))},st=function(){return ot(ee.popup)},Ze=function(){return ot(ee.icon)},dt=function(){return ot(ee["icon-content"])},Xe=function(){return ot(ee.title)},Pt=function(){return ot(ee["html-container"])},mt=function(){return ot(ee.image)},pt=function(){return ot(ee["progress-steps"])},Fe=function(){return ot(ee["validation-message"])},Be=function(){return bt(".".concat(ee.actions," .").concat(ee.confirm))},Je=function(){return bt(".".concat(ee.actions," .").concat(ee.cancel))},It=function(){return bt(".".concat(ee.actions," .").concat(ee.deny))},Nt=function(){return ot(ee["input-label"])},ht=function(){return bt(".".concat(ee.loader))},xt=function(){return ot(ee.actions)},tt=function(){return ot(ee.footer)},Y=function(){return ot(ee["timer-progress-bar"])},re=function(){return ot(ee.close)},ie=` a[href], area[href], input:not([disabled]), @@ -100,7 +100,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho audio[controls], video[controls], summary -`,le=function(){var R=st();if(!R)return[];var U=R.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),J=Array.from(U).sort(function(Gt,$r){var jr=parseInt(Gt.getAttribute("tabindex")||"0"),ro=parseInt($r.getAttribute("tabindex")||"0");return jr>ro?1:jr .").concat(ee[U]));case"checkbox":return R.querySelector(".".concat(ee.popup," > .").concat(ee.checkbox," input"));case"radio":return R.querySelector(".".concat(ee.popup," > .").concat(ee.radio," input:checked"))||R.querySelector(".".concat(ee.popup," > .").concat(ee.radio," input:first-child"));case"range":return R.querySelector(".".concat(ee.popup," > .").concat(ee.range," input"));default:return R.querySelector(".".concat(ee.popup," > .").concat(ee.input))}},ye=function(R){if(R.focus(),R.type!=="file"){var U=R.value;R.value="",R.value=U}},rt=function(R,U,J){!R||!U||(typeof U=="string"&&(U=U.split(/\s+/).filter(Boolean)),U.forEach(function(xe){Array.isArray(R)?R.forEach(function(ct){J?ct.classList.add(xe):ct.classList.remove(xe)}):J?R.classList.add(xe):R.classList.remove(xe)}))},Be=function(R,U){rt(R,U,!0)},Ae=function(R,U){rt(R,U,!1)},Ue=function(R,U){for(var J=Array.from(R.children),xe=0;xe1&&arguments[1]!==void 0?arguments[1]:"flex";R&&(R.style.display=U)},lt=function(R){R&&(R.style.display="none")},gt=function(R){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";R&&new MutationObserver(function(){St(R,R.innerHTML,U)}).observe(R,{childList:!0,subtree:!0})},At=function(R,U,J,xe){var ct=R.querySelector(U);ct&&ct.style.setProperty(J,xe)},St=function(R,U){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";U?Fe(R,J):lt(R)},yt=function(R){return!!(R&&(R.offsetWidth||R.offsetHeight||R.getClientRects().length))},Ct=function(){return!yt(Re())&&!yt(It())&&!yt(Je())},Oe=function(R){return R.scrollHeight>R.clientHeight},Ce=function(R){var U=window.getComputedStyle(R),J=parseFloat(U.getPropertyValue("animation-duration")||"0"),xe=parseFloat(U.getPropertyValue("transition-duration")||"0");return J>0||xe>0},Ye=function(R){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=Y();J&&yt(J)&&(U&&(J.style.transition="none",J.style.width="100%"),setTimeout(function(){J.style.transition="width ".concat(R/1e3,"s linear"),J.style.width="0%"},10))},et=function(){var R=Y();if(R){var U=parseInt(window.getComputedStyle(R).width);R.style.removeProperty("transition"),R.style.width="100%";var J=parseInt(window.getComputedStyle(R).width),xe=U/J*100;R.style.width="".concat(xe,"%")}},Et=function(){return typeof window>"u"||typeof document>"u"},ut=` +`,le=function(){var O=st();if(!O)return[];var H=O.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),J=Array.from(H).sort(function(Gt,$r){var jr=parseInt(Gt.getAttribute("tabindex")||"0"),no=parseInt($r.getAttribute("tabindex")||"0");return jr>no?1:jr .").concat(ee[H]));case"checkbox":return O.querySelector(".".concat(ee.popup," > .").concat(ee.checkbox," input"));case"radio":return O.querySelector(".".concat(ee.popup," > .").concat(ee.radio," input:checked"))||O.querySelector(".".concat(ee.popup," > .").concat(ee.radio," input:first-child"));case"range":return O.querySelector(".".concat(ee.popup," > .").concat(ee.range," input"));default:return O.querySelector(".".concat(ee.popup," > .").concat(ee.input))}},ye=function(O){if(O.focus(),O.type!=="file"){var H=O.value;O.value="",O.value=H}},rt=function(O,H,J){!O||!H||(typeof H=="string"&&(H=H.split(/\s+/).filter(Boolean)),H.forEach(function(xe){Array.isArray(O)?O.forEach(function(ct){J?ct.classList.add(xe):ct.classList.remove(xe)}):J?O.classList.add(xe):O.classList.remove(xe)}))},Te=function(O,H){rt(O,H,!0)},Ae=function(O,H){rt(O,H,!1)},Ue=function(O,H){for(var J=Array.from(O.children),xe=0;xe1&&arguments[1]!==void 0?arguments[1]:"flex";O&&(O.style.display=H)},lt=function(O){O&&(O.style.display="none")},gt=function(O){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";O&&new MutationObserver(function(){St(O,O.innerHTML,H)}).observe(O,{childList:!0,subtree:!0})},At=function(O,H,J,xe){var ct=O.querySelector(H);ct&&ct.style.setProperty(J,xe)},St=function(O,H){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";H?De(O,J):lt(O)},yt=function(O){return!!(O&&(O.offsetWidth||O.offsetHeight||O.getClientRects().length))},Ct=function(){return!yt(Be())&&!yt(It())&&!yt(Je())},Re=function(O){return O.scrollHeight>O.clientHeight},Ce=function(O){var H=window.getComputedStyle(O),J=parseFloat(H.getPropertyValue("animation-duration")||"0"),xe=parseFloat(H.getPropertyValue("transition-duration")||"0");return J>0||xe>0},Ye=function(O){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=Y();J&&yt(J)&&(H&&(J.style.transition="none",J.style.width="100%"),setTimeout(function(){J.style.transition="width ".concat(O/1e3,"s linear"),J.style.width="0%"},10))},et=function(){var O=Y();if(O){var H=parseInt(window.getComputedStyle(O).width);O.style.removeProperty("transition"),O.style.width="100%";var J=parseInt(window.getComputedStyle(O).width),xe=H/J*100;O.style.width="".concat(xe,"%")}},Et=function(){return typeof window>"u"||typeof document>"u"},ut=`
    @@ -133,20 +133,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    -`).replace(/(^|\n)\s*/g,""),Dt=function(){var R=$e();return R?(R.remove(),Ae([document.documentElement,document.body],[ee["no-backdrop"],ee["toast-shown"],ee["has-column"]]),!0):!1},jt=function(){W.currentInstance.resetValidationMessage()},nr=function(){var R=st(),U=Ue(R,ee.input),J=Ue(R,ee.file),xe=R.querySelector(".".concat(ee.range," input")),ct=R.querySelector(".".concat(ee.range," output")),Gt=Ue(R,ee.select),$r=R.querySelector(".".concat(ee.checkbox," input")),jr=Ue(R,ee.textarea);U.oninput=jt,J.onchange=jt,Gt.onchange=jt,$r.onchange=jt,jr.oninput=jt,xe.oninput=function(){jt(),ct.value=xe.value},xe.onchange=function(){jt(),ct.value=xe.value}},Ft=function(R){return typeof R=="string"?document.querySelector(R):R},cr=function(R){var U=st();U.setAttribute("role",R.toast?"alert":"dialog"),U.setAttribute("aria-live",R.toast?"polite":"assertive"),R.toast||U.setAttribute("aria-modal","true")},sr=function(R){window.getComputedStyle(R).direction==="rtl"&&Be($e(),ee.rtl)},lr=function(R){var U=Dt();if(Et()){ke("SweetAlert2 requires document to initialize");return}var J=document.createElement("div");J.className=ee.container,U&&Be(J,ee["no-transition"]),Ee(J,ut);var xe=Ft(R.target);xe.appendChild(J),cr(R),sr(xe),nr()},yr=function(R,U){R instanceof HTMLElement?U.appendChild(R):G(R)==="object"?Qr(R,U):R&&Ee(U,R)},Qr=function(R,U){R.jquery?Er(U,R):Ee(U,R.toString())},Er=function(R,U){if(R.textContent="",0 in U)for(var J=0;J in U;J++)R.appendChild(U[J].cloneNode(!0));else R.appendChild(U.cloneNode(!0))},Pr=function(){if(Et())return!1;var Z=document.createElement("div");return typeof Z.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof Z.style.animation<"u"?"animationend":!1}(),Wr=function(R,U){var J=xt(),xe=ht();!J||!xe||(!U.showConfirmButton&&!U.showDenyButton&&!U.showCancelButton?lt(J):Fe(J),He(J,U,"actions"),cn(J,xe,U),Ee(xe,U.loaderHtml||""),He(xe,U,"loader"))};function cn(Z,R,U){var J=Re(),xe=It(),ct=Je();!J||!xe||!ct||(Hr(J,"confirm",U),Hr(xe,"deny",U),Hr(ct,"cancel",U),Cr(J,xe,ct,U),U.reverseButtons&&(U.toast?(Z.insertBefore(ct,J),Z.insertBefore(xe,J)):(Z.insertBefore(ct,R),Z.insertBefore(xe,R),Z.insertBefore(J,R))))}function Cr(Z,R,U,J){if(!J.buttonsStyling){Ae([Z,R,U],ee.styled);return}Be([Z,R,U],ee.styled),J.confirmButtonColor&&(Z.style.backgroundColor=J.confirmButtonColor,Be(Z,ee["default-outline"])),J.denyButtonColor&&(R.style.backgroundColor=J.denyButtonColor,Be(R,ee["default-outline"])),J.cancelButtonColor&&(U.style.backgroundColor=J.cancelButtonColor,Be(U,ee["default-outline"]))}function Hr(Z,R,U){var J=ve(R);St(Z,U["show".concat(J,"Button")],"inline-block"),Ee(Z,U["".concat(R,"ButtonText")]||""),Z.setAttribute("aria-label",U["".concat(R,"ButtonAriaLabel")]||""),Z.className=ee[R],He(Z,U,"".concat(R,"Button"))}var un=function(R,U){var J=re();J&&(Ee(J,U.closeButtonHtml||""),He(J,U,"closeButton"),St(J,U.showCloseButton),J.setAttribute("aria-label",U.closeButtonAriaLabel||""))},Pn=function(R,U){var J=$e();J&&(Br(J,U.backdrop),vn(J,U.position),bn(J,U.grow),He(J,U,"container"))};function Br(Z,R){typeof R=="string"?Z.style.background=R:R||Be([document.documentElement,document.body],ee["no-backdrop"])}function vn(Z,R){R&&(R in ee?Be(Z,ee[R]):(be('The "position" parameter is not valid, defaulting to "center"'),Be(Z,ee.center)))}function bn(Z,R){R&&Be(Z,ee["grow-".concat(R)])}var zt={innerParams:new WeakMap,domCache:new WeakMap},ar=["input","file","range","select","radio","checkbox","textarea"],hr=function(R,U){var J=st();if(J){var xe=zt.innerParams.get(R),ct=!xe||U.input!==xe.input;ar.forEach(function(Gt){var $r=Ue(J,ee[Gt]);$r&&(Xt(Gt,U.inputAttributes),$r.className=ee[Gt],ct&<($r))}),U.input&&(ct&&Ar(U),en(U))}},Ar=function(R){if(R.input){if(!er[R.input]){ke("Unexpected type of input! Expected ".concat(Object.keys(er).join(" | "),', got "').concat(R.input,'"'));return}var U=pr(R.input);if(U){var J=er[R.input](U,R);Fe(U),R.inputAutoFocus&&setTimeout(function(){ye(J)})}}},Yr=function(R){for(var U=0;UJ?st().style.width="".concat(Gt,"px"):qe(st(),"width",R.width)}};new MutationObserver(xe).observe(Z,{attributes:!0,attributeFilter:["style"]})}}),Z};var jn=function(R,U){var J=Pt();J&&(gt(J),He(J,U,"htmlContainer"),U.html?(yr(U.html,J),Fe(J,"block")):U.text?(J.textContent=U.text,Fe(J,"block")):lt(J),hr(R,U))},qr=function(R,U){var J=tt();J&&(gt(J),St(J,U.footer,"block"),U.footer&&yr(U.footer,J),He(J,U,"footer"))},ho=function(R,U){var J=zt.innerParams.get(R),xe=Ze();if(xe){if(J&&U.icon===J.icon){nn(xe,U),Rr(xe,U);return}if(!U.icon&&!U.iconHtml){lt(xe);return}if(U.icon&&Object.keys(he).indexOf(U.icon)===-1){ke('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(U.icon,'"')),lt(xe);return}Fe(xe),nn(xe,U),Rr(xe,U),Be(xe,U.showClass&&U.showClass.icon)}},Rr=function(R,U){for(var J=0,xe=Object.entries(he);JJ?st().style.width="".concat(Gt,"px"):qe(st(),"width",O.width)}};new MutationObserver(xe).observe(Z,{attributes:!0,attributeFilter:["style"]})}}),Z};var jn=function(O,H){var J=Pt();J&&(gt(J),He(J,H,"htmlContainer"),H.html?(Ar(H.html,J),De(J,"block")):H.text?(J.textContent=H.text,De(J,"block")):lt(J),mr(O,H))},qr=function(O,H){var J=tt();J&&(gt(J),St(J,H.footer,"block"),H.footer&&Ar(H.footer,J),He(J,H,"footer"))},vo=function(O,H){var J=zt.innerParams.get(O),xe=Ze();if(xe){if(J&&H.icon===J.icon){nn(xe,H),Or(xe,H);return}if(!H.icon&&!H.iconHtml){lt(xe);return}if(H.icon&&Object.keys(he).indexOf(H.icon)===-1){ke('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(H.icon,'"')),lt(xe);return}De(xe),nn(xe,H),Or(xe,H),Te(xe,H.showClass&&H.showClass.icon)}},Or=function(O,H){for(var J=0,xe=Object.entries(he);J
    -`,Eo=` +`,jo=` -`,nn=function(R,U){if(!(!U.icon&&!U.iconHtml)){var J=R.innerHTML,xe="";if(U.iconHtml)xe=wn(U.iconHtml);else if(U.icon==="success")xe=Nr,J=J.replace(/ style=".*?"/g,"");else if(U.icon==="error")xe=Eo;else if(U.icon){var ct={question:"?",warning:"!",info:"i"};xe=wn(ct[U.icon])}J.trim()!==xe.trim()&&Ee(R,xe)}},No=function(R,U){if(U.iconColor){R.style.color=U.iconColor,R.style.borderColor=U.iconColor;for(var J=0,xe=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];J').concat(R,"")},ti=function(R,U){var J=mt();if(J){if(!U.imageUrl){lt(J);return}Fe(J,""),J.setAttribute("src",U.imageUrl),J.setAttribute("alt",U.imageAlt||""),qe(J,"width",U.imageWidth),qe(J,"height",U.imageHeight),J.className=ee.image,He(J,U,"image")}},oo=function(R,U){var J=$e(),xe=st();if(!(!J||!xe)){if(U.toast){qe(J,"width",U.width),xe.style.width="100%";var ct=ht();ct&&xe.insertBefore(ct,Ze())}else qe(xe,"width",U.width);qe(xe,"padding",U.padding),U.color&&(xe.style.color=U.color),U.background&&(xe.style.background=U.background),lt(Te()),ri(xe,U)}},ri=function(R,U){var J=U.showClass||{};R.className="".concat(ee.popup," ").concat(yt(R)?J.popup:""),U.toast?(Be([document.documentElement,document.body],ee["toast-shown"]),Be(R,ee.toast)):Be(R,ee.modal),He(R,U,"popup"),typeof U.customClass=="string"&&Be(R,U.customClass),U.icon&&Be(R,ee["icon-".concat(U.icon)])},Jn=function(R,U){var J=pt();if(J){var xe=U.progressSteps,ct=U.currentProgressStep;if(!xe||xe.length===0||ct===void 0){lt(J);return}Fe(J),J.textContent="",ct>=xe.length&&be("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),xe.forEach(function(Gt,$r){var jr=Ei(Gt);if(J.appendChild(jr),$r===ct&&Be(jr,ee["active-progress-step"]),$r!==xe.length-1){var ro=mo(U);J.appendChild(ro)}})}},Ei=function(R){var U=document.createElement("li");return Be(U,ee["progress-step"]),Ee(U,R),U},mo=function(R){var U=document.createElement("li");return Be(U,ee["progress-step-line"]),R.progressStepsDistance&&qe(U,"width",R.progressStepsDistance),U},pi=function(R,U){var J=Xe();J&&(gt(J),St(J,U.title||U.titleText,"block"),U.title&&yr(U.title,J),U.titleText&&(J.innerText=U.titleText),He(J,U,"title"))},Mo=function(R,U){oo(R,U),Pn(R,U),Jn(R,U),ho(R,U),ti(R,U),pi(R,U),un(R,U),jn(R,U),Wr(R,U),qr(R,U);var J=st();typeof U.didRender=="function"&&J&&U.didRender(J)},Gr=function(){return yt(st())},go=function(){var R;return(R=Re())===null||R===void 0?void 0:R.click()},ni=function(){var R;return(R=It())===null||R===void 0?void 0:R.click()},Mi=function(){var R;return(R=Je())===null||R===void 0?void 0:R.click()},$o=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Pi=function(R){R.keydownTarget&&R.keydownHandlerAdded&&(R.keydownTarget.removeEventListener("keydown",R.keydownHandler,{capture:R.keydownListenerCapture}),R.keydownHandlerAdded=!1)},ts=function(R,U,J){Pi(R),U.toast||(R.keydownHandler=function(xe){return Sa(U,xe,J)},R.keydownTarget=U.keydownListenerCapture?window:st(),R.keydownListenerCapture=U.keydownListenerCapture,R.keydownTarget.addEventListener("keydown",R.keydownHandler,{capture:R.keydownListenerCapture}),R.keydownHandlerAdded=!0)},hi=function(R,U){var J,xe=le();if(xe.length){R=R+U,R===xe.length?R=0:R===-1&&(R=xe.length-1),xe[R].focus();return}(J=st())===null||J===void 0||J.focus()},Vi=["ArrowRight","ArrowDown"],ji=["ArrowLeft","ArrowUp"],Sa=function(R,U,J){R&&(U.isComposing||U.keyCode===229||(R.stopKeydownPropagation&&U.stopPropagation(),U.key==="Enter"?mi(U,R):U.key==="Tab"?Ia(U):[].concat(Vi,ji).includes(U.key)?Di(U.key):U.key==="Escape"&&Ki(U,R,J)))},mi=function(R,U){if(at(U.allowEnterKey)){var J=Ne(st(),U.input);if(R.target&&J&&R.target instanceof HTMLElement&&R.target.outerHTML===J.outerHTML){if(["textarea","file"].includes(U.input))return;go(),R.preventDefault()}}},Ia=function(R){for(var U=R.target,J=le(),xe=-1,ct=0;ct1},Ao=function(){if(ce(document.body,ee.iosfix)){var R=parseInt(document.body.style.top,10);Ae(document.body,ee.iosfix),document.body.style.top="",document.body.scrollTop=R*-1}},Sr=function(){var R=document.createElement("div");R.className=ee["scrollbar-measure"],document.body.appendChild(R);var U=R.getBoundingClientRect().width-R.clientWidth;return document.body.removeChild(R),U},vo=null,Ln=function(R){vo===null&&(document.body.scrollHeight>window.innerHeight||R==="scroll")&&(vo=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(vo+Sr(),"px"))},Ni=function(){vo!==null&&(document.body.style.paddingRight="".concat(vo,"px"),vo=null)};function jo(Z,R,U,J){Me()?ms(Z,J):(te(U).then(function(){return ms(Z,J)}),Pi(W)),Ji?(R.setAttribute("style","display:none !important"),R.removeAttribute("class"),R.innerHTML=""):R.remove(),ge()&&(Ni(),Ao(),Xi()),$i()}function $i(){Ae([document.documentElement,document.body],[ee.shown,ee["height-auto"],ee["no-backdrop"],ee["toast-shown"]])}function io(Z){Z=rs(Z);var R=Vo.swalPromiseResolve.get(this),U=Ha(this);this.isAwaitingPromise?Z.isDismissed||(ta(this),R(Z)):U&&R(Z)}var Ha=function(R){var U=st();if(!U)return!1;var J=zt.innerParams.get(R);if(!J||ce(U,J.hideClass.popup))return!1;Ae(U,J.showClass.popup),Be(U,J.hideClass.popup);var xe=$e();return Ae(xe,J.showClass.backdrop),Be(xe,J.hideClass.backdrop),Ua(R,U,J),!0};function Qi(Z){var R=Vo.swalPromiseReject.get(this);ta(this),R&&R(Z)}var ta=function(R){R.isAwaitingPromise&&(delete R.isAwaitingPromise,zt.innerParams.get(R)||R._destroy())},rs=function(R){return typeof R>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},R)},Ua=function(R,U,J){var xe=$e(),ct=Pr&&Ce(U);typeof J.willClose=="function"&&J.willClose(U),ct?ns(R,U,xe,J.returnFocus,J.didClose):jo(R,xe,J.returnFocus,J.didClose)},ns=function(R,U,J,xe,ct){Pr&&(W.swalCloseEventFinishedCallback=jo.bind(null,R,J,xe,ct),U.addEventListener(Pr,function(Gt){Gt.target===U&&(W.swalCloseEventFinishedCallback(),delete W.swalCloseEventFinishedCallback)}))},ms=function(R,U){setTimeout(function(){typeof U=="function"&&U.bind(R.params)(),R._destroy&&R._destroy()})},Wi=function(R){var U=st();if(U||new Sl,U=st(),!!U){var J=ht();Me()?lt(Ze()):Ds(U,R),Fe(J),U.setAttribute("data-loading","true"),U.setAttribute("aria-busy","true"),U.focus()}},Ds=function(R,U){var J=xt(),xe=ht();!J||!xe||(!U&&yt(Re())&&(U=Re()),Fe(J),U&&(lt(U),xe.setAttribute("data-button-to-replace",U.className),J.insertBefore(xe,U)),Be([R,J],ee.loading))},da=function(R,U){U.input==="select"||U.input==="radio"?on(R,U):["text","email","number","tel","textarea"].some(function(J){return J===U.input})&&(We(U.inputValue)||Le(U.inputValue))&&(Wi(Re()),Xr(R,U))},gs=function(R,U){var J=R.getInput();if(!J)return null;switch(U.input){case"checkbox":return Ht(J);case"radio":return tr(J);case"file":return Tr(J);default:return U.inputAutoTrim?J.value.trim():J.value}},Ht=function(R){return R.checked?1:0},tr=function(R){return R.checked?R.value:null},Tr=function(R){return R.files&&R.files.length?R.getAttribute("multiple")!==null?R.files:R.files[0]:null},on=function(R,U){var J=st();if(J){var xe=function(Gt){U.input==="select"?fn(J,Yn(Gt),U):U.input==="radio"&&Vr(J,Yn(Gt),U)};We(U.inputOptions)||Le(U.inputOptions)?(Wi(Re()),ue(U.inputOptions).then(function(ct){R.hideLoading(),xe(ct)})):G(U.inputOptions)==="object"?xe(U.inputOptions):ke("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(G(U.inputOptions)))}},Xr=function(R,U){var J=R.getInput();J&&(lt(J),ue(U.inputValue).then(function(xe){J.value=U.input==="number"?"".concat(parseFloat(xe)||0):"".concat(xe),Fe(J),J.focus(),R.hideLoading()}).catch(function(xe){ke("Error in inputValue promise: ".concat(xe)),J.value="",Fe(J),J.focus(),R.hideLoading()}))};function fn(Z,R,U){var J=Ue(Z,ee.select);if(J){var xe=function(Gt,$r,jr){var ro=document.createElement("option");ro.value=jr,Ee(ro,$r),ro.selected=xn(jr,U.inputValue),Gt.appendChild(ro)};R.forEach(function(ct){var Gt=ct[0],$r=ct[1];if(Array.isArray($r)){var jr=document.createElement("optgroup");jr.label=Gt,jr.disabled=!1,J.appendChild(jr),$r.forEach(function(ro){return xe(jr,ro[1],ro[0])})}else xe(J,$r,Gt)}),J.focus()}}function Vr(Z,R,U){var J=Ue(Z,ee.radio);if(J){R.forEach(function(ct){var Gt=ct[0],$r=ct[1],jr=document.createElement("input"),ro=document.createElement("label");jr.type="radio",jr.name=ee.radio,jr.value=Gt,xn(Gt,U.inputValue)&&(jr.checked=!0);var L1=document.createElement("span");Ee(L1,$r),L1.className=ee.label,ro.appendChild(jr),ro.appendChild(L1),J.appendChild(ro)});var xe=J.querySelectorAll("input");xe.length&&xe[0].focus()}}var Yn=function Z(R){var U=[];return R instanceof Map?R.forEach(function(J,xe){var ct=J;G(ct)==="object"&&(ct=Z(ct)),U.push([xe,ct])}):Object.keys(R).forEach(function(J){var xe=R[J];G(xe)==="object"&&(xe=Z(xe)),U.push([J,xe])}),U},xn=function(R,U){return!!U&&U.toString()===R.toString()},On=void 0,pn=function(R){var U=zt.innerParams.get(R);R.disableButtons(),U.input?Fn(R,"confirm"):Qn(R,!0)},yn=function(R){var U=zt.innerParams.get(R);R.disableButtons(),U.returnInputValueOnDeny?Fn(R,"deny"):An(R,!1)},zn=function(R,U){R.disableButtons(),U($o.cancel)},Fn=function(R,U){var J=zt.innerParams.get(R);if(!J.input){ke('The "input" parameter is needed to be set when using returnInputValueOn'.concat(ve(U)));return}var xe=R.getInput(),ct=gs(R,J);J.inputValidator?tn(R,ct,U):xe&&!xe.checkValidity()?(R.enableButtons(),R.showValidationMessage(J.validationMessage||xe.validationMessage)):U==="deny"?An(R,ct):Qn(R,ct)},tn=function(R,U,J){var xe=zt.innerParams.get(R);R.disableInput();var ct=Promise.resolve().then(function(){return ue(xe.inputValidator(U,xe.validationMessage))});ct.then(function(Gt){R.enableButtons(),R.enableInput(),Gt?R.showValidationMessage(Gt):J==="deny"?An(R,U):Qn(R,U)})},An=function(R,U){var J=zt.innerParams.get(R||On);if(J.showLoaderOnDeny&&Wi(It()),J.preDeny){R.isAwaitingPromise=!0;var xe=Promise.resolve().then(function(){return ue(J.preDeny(U,J.validationMessage))});xe.then(function(ct){ct===!1?(R.hideLoading(),ta(R)):R.close({isDenied:!0,value:typeof ct>"u"?U:ct})}).catch(function(ct){return hn(R||On,ct)})}else R.close({isDenied:!0,value:U})},rn=function(R,U){R.close({isConfirmed:!0,value:U})},hn=function(R,U){R.rejectPromise(U)},Qn=function(R,U){var J=zt.innerParams.get(R||On);if(J.showLoaderOnConfirm&&Wi(),J.preConfirm){R.resetValidationMessage(),R.isAwaitingPromise=!0;var xe=Promise.resolve().then(function(){return ue(J.preConfirm(U,J.validationMessage))});xe.then(function(ct){yt(Te())||ct===!1?(R.hideLoading(),ta(R)):rn(R,typeof ct>"u"?U:ct)}).catch(function(ct){return hn(R||On,ct)})}else rn(R,U)};function ao(){var Z=zt.innerParams.get(this);if(Z){var R=zt.domCache.get(this);lt(R.loader),Me()?Z.icon&&Fe(Ze()):Co(R),Ae([R.popup,R.actions],ee.loading),R.popup.removeAttribute("aria-busy"),R.popup.removeAttribute("data-loading"),R.confirmButton.disabled=!1,R.denyButton.disabled=!1,R.cancelButton.disabled=!1}}var Co=function(R){var U=R.popup.getElementsByClassName(R.loader.getAttribute("data-button-to-replace"));U.length?Fe(U[0],"inline-block"):Ct()&<(R.actions)};function gi(){var Z=zt.innerParams.get(this),R=zt.domCache.get(this);return R?Ne(R.popup,Z.input):null}function Wo(Z,R,U){var J=zt.domCache.get(Z);R.forEach(function(xe){J[xe].disabled=U})}function vi(Z,R){var U=st();if(!(!U||!Z))if(Z.type==="radio")for(var J=U.querySelectorAll('[name="'.concat(ee.radio,'"]')),xe=0;xe0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";vr[Z]=this,Ut||(document.body.addEventListener("click",Rn),Ut=!0)}var Rn=function(R){for(var U=R.target;U&&U!==document;U=U.parentNode)for(var J in vr){var xe=U.getAttribute(J);if(xe){vr[J].fire({template:xe});return}}},Dn=Object.freeze({__proto__:null,argsToParams:T1,bindClickHandler:br,clickCancel:Mi,clickConfirm:go,clickDeny:ni,enableLoading:Wi,fire:F1,getActions:xt,getCancelButton:Je,getCloseButton:re,getConfirmButton:Re,getContainer:$e,getDenyButton:It,getFocusableElements:le,getFooter:tt,getHtmlContainer:Pt,getIcon:Ze,getIconContent:dt,getImage:mt,getInputLabel:Nt,getLoader:ht,getPopup:st,getProgressSteps:pt,getTimerLeft:Yl,getTimerProgressBar:Y,getTitle:Xe,getValidationMessage:Te,increaseTimer:Wt,isDeprecatedParameter:Wn,isLoading:me,isTimerRunning:wt,isUpdatableParameter:to,isValidParameter:mn,isVisible:Gr,mixin:fc,resumeTimer:Al,showLoading:Wi,stopTimer:D1,toggleTimer:Mt}),ko=function(){function Z(R,U){m(this,Z),this.callback=R,this.remaining=U,this.running=!1,this.start()}return C(Z,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(U){var J=this.running;return J&&this.stop(),this.remaining+=U,J&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}])}(),zo=["swal-title","swal-html","swal-footer"],Li=function(R){var U=typeof R.template=="string"?document.querySelector(R.template):R.template;if(!U)return{};var J=U.content;qt(J);var xe=Object.assign(pa(J),na(J),ha(J),ys(J),_a(J),pc(J),N1(J,zo));return xe},pa=function(R){var U={},J=Array.from(R.querySelectorAll("swal-param"));return J.forEach(function(xe){ur(xe,["name","value"]);var ct=xe.getAttribute("name"),Gt=xe.getAttribute("value");!ct||!Gt||(typeof so[ct]=="boolean"?U[ct]=Gt!=="false":G(so[ct])==="object"?U[ct]=JSON.parse(Gt):U[ct]=Gt)}),U},na=function(R){var U={},J=Array.from(R.querySelectorAll("swal-function-param"));return J.forEach(function(xe){var ct=xe.getAttribute("name"),Gt=xe.getAttribute("value");!ct||!Gt||(U[ct]=new Function("return ".concat(Gt))())}),U},ha=function(R){var U={},J=Array.from(R.querySelectorAll("swal-button"));return J.forEach(function(xe){ur(xe,["type","color","aria-label"]);var ct=xe.getAttribute("type");!ct||!["confirm","cancel","deny"].includes(ct)||(U["".concat(ct,"ButtonText")]=xe.innerHTML,U["show".concat(ve(ct),"Button")]=!0,xe.hasAttribute("color")&&(U["".concat(ct,"ButtonColor")]=xe.getAttribute("color")),xe.hasAttribute("aria-label")&&(U["".concat(ct,"ButtonAriaLabel")]=xe.getAttribute("aria-label")))}),U},ys=function(R){var U={},J=R.querySelector("swal-image");return J&&(ur(J,["src","width","height","alt"]),J.hasAttribute("src")&&(U.imageUrl=J.getAttribute("src")||void 0),J.hasAttribute("width")&&(U.imageWidth=J.getAttribute("width")||void 0),J.hasAttribute("height")&&(U.imageHeight=J.getAttribute("height")||void 0),J.hasAttribute("alt")&&(U.imageAlt=J.getAttribute("alt")||void 0)),U},_a=function(R){var U={},J=R.querySelector("swal-icon");return J&&(ur(J,["type","color"]),J.hasAttribute("type")&&(U.icon=J.getAttribute("type")),J.hasAttribute("color")&&(U.iconColor=J.getAttribute("color")),U.iconHtml=J.innerHTML),U},pc=function(R){var U={},J=R.querySelector("swal-input");J&&(ur(J,["type","label","placeholder","value"]),U.input=J.getAttribute("type")||"text",J.hasAttribute("label")&&(U.inputLabel=J.getAttribute("label")),J.hasAttribute("placeholder")&&(U.inputPlaceholder=J.getAttribute("placeholder")),J.hasAttribute("value")&&(U.inputValue=J.getAttribute("value")));var xe=Array.from(R.querySelectorAll("swal-input-option"));return xe.length&&(U.inputOptions={},xe.forEach(function(ct){ur(ct,["value"]);var Gt=ct.getAttribute("value");if(Gt){var $r=ct.innerHTML;U.inputOptions[Gt]=$r}})),U},N1=function(R,U){var J={};for(var xe in U){var ct=U[xe],Gt=R.querySelector(ct);Gt&&(ur(Gt,[]),J[ct.replace(/^swal-/,"")]=Gt.innerHTML.trim())}return J},qt=function(R){var U=zo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(R.children).forEach(function(J){var xe=J.tagName.toLowerCase();U.includes(xe)||be("Unrecognized element <".concat(xe,">"))})},ur=function(R,U){Array.from(R.attributes).forEach(function(J){U.indexOf(J.name)===-1&&be(['Unrecognized attribute "'.concat(J.name,'" on <').concat(R.tagName.toLowerCase(),">."),"".concat(U.length?"Allowed attributes are: ".concat(U.join(", ")):"To set the value, use HTML within the element.")])})},kn=10,Sn=function(R){var U=$e(),J=st();typeof R.willOpen=="function"&&R.willOpen(J);var xe=window.getComputedStyle(document.body),ct=xe.overflowY;Pa(U,J,R),setTimeout(function(){xi(U,J)},kn),ge()&&(Ho(U,R.scrollbarPadding,ct),ca()),!Me()&&!W.previousActiveElement&&(W.previousActiveElement=document.activeElement),typeof R.didOpen=="function"&&setTimeout(function(){return R.didOpen(J)}),Ae(U,ee["no-transition"])},wi=function Z(R){var U=st();if(!(R.target!==U||!Pr)){var J=$e();U.removeEventListener(Pr,Z),J.style.overflowY="auto"}},xi=function(R,U){Pr&&Ce(U)?(R.style.overflowY="hidden",U.addEventListener(Pr,wi)):R.style.overflowY="auto"},Ho=function(R,U,J){Po(),U&&J!=="hidden"&&Ln(J),setTimeout(function(){R.scrollTop=0})},Pa=function(R,U,J){Be(R,J.showClass.backdrop),J.animation?(U.style.setProperty("opacity","0","important"),Fe(U,"grid"),setTimeout(function(){Be(U,J.showClass.popup),U.style.removeProperty("opacity")},kn)):Fe(U,"grid"),Be([document.documentElement,document.body],ee.shown),J.heightAuto&&J.backdrop&&!J.toast&&Be([document.documentElement,document.body],ee["height-auto"])},ja={email:function(R,U){return/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(R)?Promise.resolve():Promise.resolve(U||"Invalid email address")},url:function(R,U){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(R)?Promise.resolve():Promise.resolve(U||"Invalid URL")}};function As(Z){Z.inputValidator||(Z.input==="email"&&(Z.inputValidator=ja.email),Z.input==="url"&&(Z.inputValidator=ja.url))}function Ls(Z){(!Z.target||typeof Z.target=="string"&&!document.querySelector(Z.target)||typeof Z.target!="string"&&!Z.target.appendChild)&&(be('Target parameter is not valid, defaulting to "body"'),Z.target="body")}function is(Z){As(Z),Z.showLoaderOnConfirm&&!Z.preConfirm&&be(`showLoaderOnConfirm is set to true, but preConfirm is not defined. +`,nn=function(O,H){if(!(!H.icon&&!H.iconHtml)){var J=O.innerHTML,xe="";if(H.iconHtml)xe=xn(H.iconHtml);else if(H.icon==="success")xe=Nr,J=J.replace(/ style=".*?"/g,"");else if(H.icon==="error")xe=jo;else if(H.icon){var ct={question:"?",warning:"!",info:"i"};xe=xn(ct[H.icon])}J.trim()!==xe.trim()&&Ee(O,xe)}},zo=function(O,H){if(H.iconColor){O.style.color=H.iconColor,O.style.borderColor=H.iconColor;for(var J=0,xe=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];J').concat(O,"")},ni=function(O,H){var J=mt();if(J){if(!H.imageUrl){lt(J);return}De(J,""),J.setAttribute("src",H.imageUrl),J.setAttribute("alt",H.imageAlt||""),qe(J,"width",H.imageWidth),qe(J,"height",H.imageHeight),J.className=ee.image,He(J,H,"image")}},so=function(O,H){var J=$e(),xe=st();if(!(!J||!xe)){if(H.toast){qe(J,"width",H.width),xe.style.width="100%";var ct=ht();ct&&xe.insertBefore(ct,Ze())}else qe(xe,"width",H.width);qe(xe,"padding",H.padding),H.color&&(xe.style.color=H.color),H.background&&(xe.style.background=H.background),lt(Fe()),oi(xe,H)}},oi=function(O,H){var J=H.showClass||{};O.className="".concat(ee.popup," ").concat(yt(O)?J.popup:""),H.toast?(Te([document.documentElement,document.body],ee["toast-shown"]),Te(O,ee.toast)):Te(O,ee.modal),He(O,H,"popup"),typeof H.customClass=="string"&&Te(O,H.customClass),H.icon&&Te(O,ee["icon-".concat(H.icon)])},Zn=function(O,H){var J=pt();if(J){var xe=H.progressSteps,ct=H.currentProgressStep;if(!xe||xe.length===0||ct===void 0){lt(J);return}De(J),J.textContent="",ct>=xe.length&&be("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),xe.forEach(function(Gt,$r){var jr=Mi(Gt);if(J.appendChild(jr),$r===ct&&Te(jr,ee["active-progress-step"]),$r!==xe.length-1){var no=bo(H);J.appendChild(no)}})}},Mi=function(O){var H=document.createElement("li");return Te(H,ee["progress-step"]),Ee(H,O),H},bo=function(O){var H=document.createElement("li");return Te(H,ee["progress-step-line"]),O.progressStepsDistance&&qe(H,"width",O.progressStepsDistance),H},hi=function(O,H){var J=Xe();J&&(gt(J),St(J,H.title||H.titleText,"block"),H.title&&Ar(H.title,J),H.titleText&&(J.innerText=H.titleText),He(J,H,"title"))},Oo=function(O,H){so(O,H),Pn(O,H),Zn(O,H),vo(O,H),ni(O,H),hi(O,H),un(O,H),jn(O,H),Wr(O,H),qr(O,H);var J=st();typeof H.didRender=="function"&&J&&H.didRender(J)},Gr=function(){return yt(st())},wo=function(){var O;return(O=Be())===null||O===void 0?void 0:O.click()},ii=function(){var O;return(O=It())===null||O===void 0?void 0:O.click()},Pi=function(){var O;return(O=Je())===null||O===void 0?void 0:O.click()},Ho=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),ji=function(O){O.keydownTarget&&O.keydownHandlerAdded&&(O.keydownTarget.removeEventListener("keydown",O.keydownHandler,{capture:O.keydownListenerCapture}),O.keydownHandlerAdded=!1)},rs=function(O,H,J){ji(O),H.toast||(O.keydownHandler=function(xe){return Sa(H,xe,J)},O.keydownTarget=H.keydownListenerCapture?window:st(),O.keydownListenerCapture=H.keydownListenerCapture,O.keydownTarget.addEventListener("keydown",O.keydownHandler,{capture:O.keydownListenerCapture}),O.keydownHandlerAdded=!0)},mi=function(O,H){var J,xe=le();if(xe.length){O=O+H,O===xe.length?O=0:O===-1&&(O=xe.length-1),xe[O].focus();return}(J=st())===null||J===void 0||J.focus()},Vi=["ArrowRight","ArrowDown"],Oi=["ArrowLeft","ArrowUp"],Sa=function(O,H,J){O&&(H.isComposing||H.keyCode===229||(O.stopKeydownPropagation&&H.stopPropagation(),H.key==="Enter"?gi(H,O):H.key==="Tab"?Ia(H):[].concat(Vi,Oi).includes(H.key)?Ni(H.key):H.key==="Escape"&&Ki(H,O,J)))},gi=function(O,H){if(at(H.allowEnterKey)){var J=Ne(st(),H.input);if(O.target&&J&&O.target instanceof HTMLElement&&O.target.outerHTML===J.outerHTML){if(["textarea","file"].includes(H.input))return;wo(),O.preventDefault()}}},Ia=function(O){for(var H=O.target,J=le(),xe=-1,ct=0;ct1},So=function(){if(ce(document.body,ee.iosfix)){var O=parseInt(document.body.style.top,10);Ae(document.body,ee.iosfix),document.body.style.top="",document.body.scrollTop=O*-1}},Ir=function(){var O=document.createElement("div");O.className=ee["scrollbar-measure"],document.body.appendChild(O);var H=O.getBoundingClientRect().width-O.clientWidth;return document.body.removeChild(O),H},xo=null,Ln=function(O){xo===null&&(document.body.scrollHeight>window.innerHeight||O==="scroll")&&(xo=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(xo+Ir(),"px"))},$i=function(){xo!==null&&(document.body.style.paddingRight="".concat(xo,"px"),xo=null)};function Bo(Z,O,H,J){Pe()?ms(Z,J):(te(H).then(function(){return ms(Z,J)}),ji(W)),Ji?(O.setAttribute("style","display:none !important"),O.removeAttribute("class"),O.innerHTML=""):O.remove(),ge()&&($i(),So(),Xi()),Li()}function Li(){Ae([document.documentElement,document.body],[ee.shown,ee["height-auto"],ee["no-backdrop"],ee["toast-shown"]])}function lo(Z){Z=ns(Z);var O=Wo.swalPromiseResolve.get(this),H=Ua(this);this.isAwaitingPromise?Z.isDismissed||(ta(this),O(Z)):H&&O(Z)}var Ua=function(O){var H=st();if(!H)return!1;var J=zt.innerParams.get(O);if(!J||ce(H,J.hideClass.popup))return!1;Ae(H,J.showClass.popup),Te(H,J.hideClass.popup);var xe=$e();return Ae(xe,J.showClass.backdrop),Te(xe,J.hideClass.backdrop),Ga(O,H,J),!0};function Qi(Z){var O=Wo.swalPromiseReject.get(this);ta(this),O&&O(Z)}var ta=function(O){O.isAwaitingPromise&&(delete O.isAwaitingPromise,zt.innerParams.get(O)||O._destroy())},ns=function(O){return typeof O>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},O)},Ga=function(O,H,J){var xe=$e(),ct=Pr&&Ce(H);typeof J.willClose=="function"&&J.willClose(H),ct?os(O,H,xe,J.returnFocus,J.didClose):Bo(O,xe,J.returnFocus,J.didClose)},os=function(O,H,J,xe,ct){Pr&&(W.swalCloseEventFinishedCallback=Bo.bind(null,O,J,xe,ct),H.addEventListener(Pr,function(Gt){Gt.target===H&&(W.swalCloseEventFinishedCallback(),delete W.swalCloseEventFinishedCallback)}))},ms=function(O,H){setTimeout(function(){typeof H=="function"&&H.bind(O.params)(),O._destroy&&O._destroy()})},Wi=function(O){var H=st();if(H||new kl,H=st(),!!H){var J=ht();Pe()?lt(Ze()):Ds(H,O),De(J),H.setAttribute("data-loading","true"),H.setAttribute("aria-busy","true"),H.focus()}},Ds=function(O,H){var J=xt(),xe=ht();!J||!xe||(!H&&yt(Be())&&(H=Be()),De(J),H&&(lt(H),xe.setAttribute("data-button-to-replace",H.className),J.insertBefore(xe,H)),Te([O,J],ee.loading))},da=function(O,H){H.input==="select"||H.input==="radio"?on(O,H):["text","email","number","tel","textarea"].some(function(J){return J===H.input})&&(We(H.inputValue)||Le(H.inputValue))&&(Wi(Be()),Xr(O,H))},gs=function(O,H){var J=O.getInput();if(!J)return null;switch(H.input){case"checkbox":return Ht(J);case"radio":return tr(J);case"file":return Tr(J);default:return H.inputAutoTrim?J.value.trim():J.value}},Ht=function(O){return O.checked?1:0},tr=function(O){return O.checked?O.value:null},Tr=function(O){return O.files&&O.files.length?O.getAttribute("multiple")!==null?O.files:O.files[0]:null},on=function(O,H){var J=st();if(J){var xe=function(Gt){H.input==="select"?fn(J,Yn(Gt),H):H.input==="radio"&&Vr(J,Yn(Gt),H)};We(H.inputOptions)||Le(H.inputOptions)?(Wi(Be()),ue(H.inputOptions).then(function(ct){O.hideLoading(),xe(ct)})):G(H.inputOptions)==="object"?xe(H.inputOptions):ke("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(G(H.inputOptions)))}},Xr=function(O,H){var J=O.getInput();J&&(lt(J),ue(H.inputValue).then(function(xe){J.value=H.input==="number"?"".concat(parseFloat(xe)||0):"".concat(xe),De(J),J.focus(),O.hideLoading()}).catch(function(xe){ke("Error in inputValue promise: ".concat(xe)),J.value="",De(J),J.focus(),O.hideLoading()}))};function fn(Z,O,H){var J=Ue(Z,ee.select);if(J){var xe=function(Gt,$r,jr){var no=document.createElement("option");no.value=jr,Ee(no,$r),no.selected=yn(jr,H.inputValue),Gt.appendChild(no)};O.forEach(function(ct){var Gt=ct[0],$r=ct[1];if(Array.isArray($r)){var jr=document.createElement("optgroup");jr.label=Gt,jr.disabled=!1,J.appendChild(jr),$r.forEach(function(no){return xe(jr,no[1],no[0])})}else xe(J,$r,Gt)}),J.focus()}}function Vr(Z,O,H){var J=Ue(Z,ee.radio);if(J){O.forEach(function(ct){var Gt=ct[0],$r=ct[1],jr=document.createElement("input"),no=document.createElement("label");jr.type="radio",jr.name=ee.radio,jr.value=Gt,yn(Gt,H.inputValue)&&(jr.checked=!0);var $1=document.createElement("span");Ee($1,$r),$1.className=ee.label,no.appendChild(jr),no.appendChild($1),J.appendChild(no)});var xe=J.querySelectorAll("input");xe.length&&xe[0].focus()}}var Yn=function Z(O){var H=[];return O instanceof Map?O.forEach(function(J,xe){var ct=J;G(ct)==="object"&&(ct=Z(ct)),H.push([xe,ct])}):Object.keys(O).forEach(function(J){var xe=O[J];G(xe)==="object"&&(xe=Z(xe)),H.push([J,xe])}),H},yn=function(O,H){return!!H&&H.toString()===O.toString()},On=void 0,pn=function(O){var H=zt.innerParams.get(O);O.disableButtons(),H.input?Fn(O,"confirm"):Qn(O,!0)},An=function(O){var H=zt.innerParams.get(O);O.disableButtons(),H.returnInputValueOnDeny?Fn(O,"deny"):Cn(O,!1)},zn=function(O,H){O.disableButtons(),H(Ho.cancel)},Fn=function(O,H){var J=zt.innerParams.get(O);if(!J.input){ke('The "input" parameter is needed to be set when using returnInputValueOn'.concat(ve(H)));return}var xe=O.getInput(),ct=gs(O,J);J.inputValidator?tn(O,ct,H):xe&&!xe.checkValidity()?(O.enableButtons(),O.showValidationMessage(J.validationMessage||xe.validationMessage)):H==="deny"?Cn(O,ct):Qn(O,ct)},tn=function(O,H,J){var xe=zt.innerParams.get(O);O.disableInput();var ct=Promise.resolve().then(function(){return ue(xe.inputValidator(H,xe.validationMessage))});ct.then(function(Gt){O.enableButtons(),O.enableInput(),Gt?O.showValidationMessage(Gt):J==="deny"?Cn(O,H):Qn(O,H)})},Cn=function(O,H){var J=zt.innerParams.get(O||On);if(J.showLoaderOnDeny&&Wi(It()),J.preDeny){O.isAwaitingPromise=!0;var xe=Promise.resolve().then(function(){return ue(J.preDeny(H,J.validationMessage))});xe.then(function(ct){ct===!1?(O.hideLoading(),ta(O)):O.close({isDenied:!0,value:typeof ct>"u"?H:ct})}).catch(function(ct){return hn(O||On,ct)})}else O.close({isDenied:!0,value:H})},rn=function(O,H){O.close({isConfirmed:!0,value:H})},hn=function(O,H){O.rejectPromise(H)},Qn=function(O,H){var J=zt.innerParams.get(O||On);if(J.showLoaderOnConfirm&&Wi(),J.preConfirm){O.resetValidationMessage(),O.isAwaitingPromise=!0;var xe=Promise.resolve().then(function(){return ue(J.preConfirm(H,J.validationMessage))});xe.then(function(ct){yt(Fe())||ct===!1?(O.hideLoading(),ta(O)):rn(O,typeof ct>"u"?H:ct)}).catch(function(ct){return hn(O||On,ct)})}else rn(O,H)};function co(){var Z=zt.innerParams.get(this);if(Z){var O=zt.domCache.get(this);lt(O.loader),Pe()?Z.icon&&De(Ze()):Io(O),Ae([O.popup,O.actions],ee.loading),O.popup.removeAttribute("aria-busy"),O.popup.removeAttribute("data-loading"),O.confirmButton.disabled=!1,O.denyButton.disabled=!1,O.cancelButton.disabled=!1}}var Io=function(O){var H=O.popup.getElementsByClassName(O.loader.getAttribute("data-button-to-replace"));H.length?De(H[0],"inline-block"):Ct()&<(O.actions)};function vi(){var Z=zt.innerParams.get(this),O=zt.domCache.get(this);return O?Ne(O.popup,Z.input):null}function _o(Z,O,H){var J=zt.domCache.get(Z);O.forEach(function(xe){J[xe].disabled=H})}function bi(Z,O){var H=st();if(!(!H||!Z))if(Z.type==="radio")for(var J=H.querySelectorAll('[name="'.concat(ee.radio,'"]')),xe=0;xe0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";br[Z]=this,Ut||(document.body.addEventListener("click",Rn),Ut=!0)}var Rn=function(O){for(var H=O.target;H&&H!==document;H=H.parentNode)for(var J in br){var xe=H.getAttribute(J);if(xe){br[J].fire({template:xe});return}}},Dn=Object.freeze({__proto__:null,argsToParams:B1,bindClickHandler:wr,clickCancel:Pi,clickConfirm:wo,clickDeny:ii,enableLoading:Wi,fire:T1,getActions:xt,getCancelButton:Je,getCloseButton:re,getConfirmButton:Be,getContainer:$e,getDenyButton:It,getFocusableElements:le,getFooter:tt,getHtmlContainer:Pt,getIcon:Ze,getIconContent:dt,getImage:mt,getInputLabel:Nt,getLoader:ht,getPopup:st,getProgressSteps:pt,getTimerLeft:_l,getTimerProgressBar:Y,getTitle:Xe,getValidationMessage:Fe,increaseTimer:Wt,isDeprecatedParameter:Wn,isLoading:me,isTimerRunning:wt,isUpdatableParameter:ro,isValidParameter:mn,isVisible:Gr,mixin:dc,resumeTimer:yl,showLoading:Wi,stopTimer:F1,toggleTimer:Mt}),Eo=function(){function Z(O,H){m(this,Z),this.callback=O,this.remaining=H,this.running=!1,this.start()}return C(Z,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(H){var J=this.running;return J&&this.stop(),this.remaining+=H,J&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}])}(),Go=["swal-title","swal-html","swal-footer"],zi=function(O){var H=typeof O.template=="string"?document.querySelector(O.template):O.template;if(!H)return{};var J=H.content;qt(J);var xe=Object.assign(pa(J),na(J),ha(J),ys(J),Ya(J),fc(J),D1(J,Go));return xe},pa=function(O){var H={},J=Array.from(O.querySelectorAll("swal-param"));return J.forEach(function(xe){dr(xe,["name","value"]);var ct=xe.getAttribute("name"),Gt=xe.getAttribute("value");!ct||!Gt||(typeof uo[ct]=="boolean"?H[ct]=Gt!=="false":G(uo[ct])==="object"?H[ct]=JSON.parse(Gt):H[ct]=Gt)}),H},na=function(O){var H={},J=Array.from(O.querySelectorAll("swal-function-param"));return J.forEach(function(xe){var ct=xe.getAttribute("name"),Gt=xe.getAttribute("value");!ct||!Gt||(H[ct]=new Function("return ".concat(Gt))())}),H},ha=function(O){var H={},J=Array.from(O.querySelectorAll("swal-button"));return J.forEach(function(xe){dr(xe,["type","color","aria-label"]);var ct=xe.getAttribute("type");!ct||!["confirm","cancel","deny"].includes(ct)||(H["".concat(ct,"ButtonText")]=xe.innerHTML,H["show".concat(ve(ct),"Button")]=!0,xe.hasAttribute("color")&&(H["".concat(ct,"ButtonColor")]=xe.getAttribute("color")),xe.hasAttribute("aria-label")&&(H["".concat(ct,"ButtonAriaLabel")]=xe.getAttribute("aria-label")))}),H},ys=function(O){var H={},J=O.querySelector("swal-image");return J&&(dr(J,["src","width","height","alt"]),J.hasAttribute("src")&&(H.imageUrl=J.getAttribute("src")||void 0),J.hasAttribute("width")&&(H.imageWidth=J.getAttribute("width")||void 0),J.hasAttribute("height")&&(H.imageHeight=J.getAttribute("height")||void 0),J.hasAttribute("alt")&&(H.imageAlt=J.getAttribute("alt")||void 0)),H},Ya=function(O){var H={},J=O.querySelector("swal-icon");return J&&(dr(J,["type","color"]),J.hasAttribute("type")&&(H.icon=J.getAttribute("type")),J.hasAttribute("color")&&(H.iconColor=J.getAttribute("color")),H.iconHtml=J.innerHTML),H},fc=function(O){var H={},J=O.querySelector("swal-input");J&&(dr(J,["type","label","placeholder","value"]),H.input=J.getAttribute("type")||"text",J.hasAttribute("label")&&(H.inputLabel=J.getAttribute("label")),J.hasAttribute("placeholder")&&(H.inputPlaceholder=J.getAttribute("placeholder")),J.hasAttribute("value")&&(H.inputValue=J.getAttribute("value")));var xe=Array.from(O.querySelectorAll("swal-input-option"));return xe.length&&(H.inputOptions={},xe.forEach(function(ct){dr(ct,["value"]);var Gt=ct.getAttribute("value");if(Gt){var $r=ct.innerHTML;H.inputOptions[Gt]=$r}})),H},D1=function(O,H){var J={};for(var xe in H){var ct=H[xe],Gt=O.querySelector(ct);Gt&&(dr(Gt,[]),J[ct.replace(/^swal-/,"")]=Gt.innerHTML.trim())}return J},qt=function(O){var H=Go.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(O.children).forEach(function(J){var xe=J.tagName.toLowerCase();H.includes(xe)||be("Unrecognized element <".concat(xe,">"))})},dr=function(O,H){Array.from(O.attributes).forEach(function(J){H.indexOf(J.name)===-1&&be(['Unrecognized attribute "'.concat(J.name,'" on <').concat(O.tagName.toLowerCase(),">."),"".concat(H.length?"Allowed attributes are: ".concat(H.join(", ")):"To set the value, use HTML within the element.")])})},Sn=10,In=function(O){var H=$e(),J=st();typeof O.willOpen=="function"&&O.willOpen(J);var xe=window.getComputedStyle(document.body),ct=xe.overflowY;Pa(H,J,O),setTimeout(function(){yi(H,J)},Sn),ge()&&(Vo(H,O.scrollbarPadding,ct),ca()),!Pe()&&!W.previousActiveElement&&(W.previousActiveElement=document.activeElement),typeof O.didOpen=="function"&&setTimeout(function(){return O.didOpen(J)}),Ae(H,ee["no-transition"])},xi=function Z(O){var H=st();if(!(O.target!==H||!Pr)){var J=$e();H.removeEventListener(Pr,Z),J.style.overflowY="auto"}},yi=function(O,H){Pr&&Ce(H)?(O.style.overflowY="hidden",H.addEventListener(Pr,xi)):O.style.overflowY="auto"},Vo=function(O,H,J){Ro(),H&&J!=="hidden"&&Ln(J),setTimeout(function(){O.scrollTop=0})},Pa=function(O,H,J){Te(O,J.showClass.backdrop),J.animation?(H.style.setProperty("opacity","0","important"),De(H,"grid"),setTimeout(function(){Te(H,J.showClass.popup),H.style.removeProperty("opacity")},Sn)):De(H,"grid"),Te([document.documentElement,document.body],ee.shown),J.heightAuto&&J.backdrop&&!J.toast&&Te([document.documentElement,document.body],ee["height-auto"])},ja={email:function(O,H){return/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(O)?Promise.resolve():Promise.resolve(H||"Invalid email address")},url:function(O,H){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(O)?Promise.resolve():Promise.resolve(H||"Invalid URL")}};function As(Z){Z.inputValidator||(Z.input==="email"&&(Z.inputValidator=ja.email),Z.input==="url"&&(Z.inputValidator=ja.url))}function Ls(Z){(!Z.target||typeof Z.target=="string"&&!document.querySelector(Z.target)||typeof Z.target!="string"&&!Z.target.appendChild)&&(be('Target parameter is not valid, defaulting to "body"'),Z.target="body")}function as(Z){As(Z),Z.showLoaderOnConfirm&&!Z.preConfirm&&be(`showLoaderOnConfirm is set to true, but preConfirm is not defined. showLoaderOnConfirm should be used together with preConfirm, see usage example: https://sweetalert2.github.io/#ajax-request`),Ls(Z),typeof Z.title=="string"&&(Z.title=Z.title.split(` -`).join("
    ")),lr(Z)}var ma,nl=new WeakMap,lo=function(){function Z(){if(m(this,Z),v(this,nl,void 0),!(typeof window>"u")){ma=this;for(var R=arguments.length,U=new Array(R),J=0;J1&&arguments[1]!==void 0?arguments[1]:{};if(ii(Object.assign({},J,U)),W.currentInstance){var xe=Vo.swalPromiseResolve.get(W.currentInstance),ct=W.currentInstance.isAwaitingPromise;W.currentInstance._destroy(),ct||xe({isDismissed:!0}),ge()&&Xi()}W.currentInstance=ma;var Gt=$1(U,J);is(Gt),Object.freeze(Gt),W.timeout&&(W.timeout.stop(),delete W.timeout),clearTimeout(W.restoreFocusTimeout);var $r=Kl(ma);return Mo(ma,Gt),zt.innerParams.set(ma,Gt),Cl(ma,$r,Gt)}},{key:"then",value:function(U){return g(nl,this).then(U)}},{key:"finally",value:function(U){return g(nl,this).finally(U)}}])}(),Cl=function(R,U,J){return new Promise(function(xe,ct){var Gt=function(jr){R.close({isDismissed:!0,dismiss:jr})};Vo.swalPromiseResolve.set(R,xe),Vo.swalPromiseReject.set(R,ct),U.confirmButton.onclick=function(){pn(R)},U.denyButton.onclick=function(){yn(R)},U.cancelButton.onclick=function(){zn(R,Gt)},U.closeButton.onclick=function(){Gt($o.close)},Ns(J,U,Gt),ts(W,J,Gt),da(R,J),Sn(J),Xl(W,J,Gt),ol(U,J),setTimeout(function(){U.container.scrollTop=0})})},$1=function(R,U){var J=Li(R),xe=Object.assign({},so,U,J,R);return xe.showClass=Object.assign({},so.showClass,xe.showClass),xe.hideClass=Object.assign({},so.hideClass,xe.hideClass),xe.animation===!1&&(xe.showClass={backdrop:"swal2-noanimation"},xe.hideClass={}),xe},Kl=function(R){var U={popup:st(),container:$e(),actions:xt(),confirmButton:Re(),denyButton:It(),cancelButton:Je(),loader:ht(),closeButton:re(),validationMessage:Te(),progressSteps:pt()};return zt.domCache.set(R,U),U},Xl=function(R,U,J){var xe=Y();lt(xe),U.timer&&(R.timeout=new ko(function(){J("timer"),delete R.timeout},U.timer),U.timerProgressBar&&(Fe(xe),He(xe,U,"timerProgressBar"),setTimeout(function(){R.timeout&&R.timeout.running&&Ye(U.timer)})))},ol=function(R,U){if(!U.toast){if(!at(U.allowEnterKey)){Ve("allowEnterKey"),kl();return}qc(R)||hc(R,U)||hi(-1,1)}},qc=function(R){var U=R.popup.querySelectorAll("[autofocus]"),J=M(U),xe;try{for(J.s();!(xe=J.n()).done;){var ct=xe.value;if(ct instanceof HTMLElement&&yt(ct))return ct.focus(),!0}}catch(Gt){J.e(Gt)}finally{J.f()}return!1},hc=function(R,U){return U.focusDeny&&yt(R.denyButton)?(R.denyButton.focus(),!0):U.focusCancel&&yt(R.cancelButton)?(R.cancelButton.focus(),!0):U.focusConfirm&&yt(R.confirmButton)?(R.confirmButton.focus(),!0):!1},kl=function(){document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var Jl=new Date,mc=localStorage.getItem("swal-initiation");mc?(Jl.getTime()-Date.parse(mc))/(1e3*60*60*24)>3&&setTimeout(function(){document.body.style.pointerEvents="none";var Z=document.createElement("audio");Z.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",Z.loop=!0,document.body.appendChild(Z),setTimeout(function(){Z.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(Jl))}lo.prototype.disableButtons=bi,lo.prototype.enableButtons=qo,lo.prototype.getInput=gi,lo.prototype.disableInput=_o,lo.prototype.enableInput=Oi,lo.prototype.hideLoading=ao,lo.prototype.disableLoading=ao,lo.prototype.showValidationMessage=oi,lo.prototype.resetValidationMessage=Yo,lo.prototype.close=io,lo.prototype.closePopup=io,lo.prototype.closeModal=io,lo.prototype.closeToast=io,lo.prototype.rejectPromise=Qi,lo.prototype.update=vs,lo.prototype._destroy=Ga,Object.assign(lo,Dn),Object.keys(bs).forEach(function(Z){lo[Z]=function(){if(ma&&ma[Z]){var R;return(R=ma)[Z].apply(R,arguments)}return null}}),lo.DismissReason=$o,lo.version="11.12.3";var Sl=lo;return Sl.default=Sl,Sl}),typeof Fu<"u"&&Fu.Sweetalert2&&(Fu.swal=Fu.sweetAlert=Fu.Swal=Fu.SweetAlert=Fu.Sweetalert2),typeof document<"u"&&function(i,s){var l=i.createElement("style");if(i.getElementsByTagName("head")[0].appendChild(l),l.styleSheet)l.styleSheet.disabled||(l.styleSheet.cssText=s);else try{l.innerHTML=s}catch{l.innerText=s}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')})(_O);var kW=_O.exports;const Mn=nm(kW);function SW(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function IW(n){return parseFloat(n)}function ka(){const n=V3(lb);return n[df]||n}function EW({props:n,name:o}){return W6({props:n,name:o,defaultTheme:lb,themeId:df})}var bm={},Hw={exports:{}},vS;function MW(){return vS||(vS=1,function(n){function o(i,s){if(i==null)return{};var l={};for(var c in i)if({}.hasOwnProperty.call(i,c)){if(s.includes(c))continue;l[c]=i[c]}return l}n.exports=o,n.exports.__esModule=!0,n.exports.default=n.exports}(Hw)),Hw.exports}const YO=Pu(jz),PW=Pu(Oz),jW=Pu(Nz),OW=Pu(LH),RW=Pu(kH),BW=Pu(jH);var Sp=Uo;Object.defineProperty(bm,"__esModule",{value:!0});var TW=bm.default=qW;bm.shouldForwardProp=tv;bm.systemDefaultTheme=void 0;var i1=Sp(XM()),My=Sp(MW()),bS=HW(YO),FW=PW;Sp(jW);Sp(OW);var DW=Sp(RW),NW=Sp(BW);const $W=["ownerState"],LW=["variants"],zW=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function KO(n){if(typeof WeakMap!="function")return null;var o=new WeakMap,i=new WeakMap;return(KO=function(s){return s?i:o})(n)}function HW(n,o){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=KO(o);if(i&&i.has(n))return i.get(n);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if(c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)){var d=l?Object.getOwnPropertyDescriptor(n,c):null;d&&(d.get||d.set)?Object.defineProperty(s,c,d):s[c]=n[c]}return s.default=n,i&&i.set(n,s),s}function UW(n){return Object.keys(n).length===0}function GW(n){return typeof n=="string"&&n.charCodeAt(0)>96}function tv(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const VW=bm.systemDefaultTheme=(0,DW.default)(),QW=n=>n&&n.charAt(0).toLowerCase()+n.slice(1);function bg({defaultTheme:n,theme:o,themeId:i}){return UW(o)?n:o[i]||o}function WW(n){return n?(o,i)=>i[n]:null}function rv(n,o){let{ownerState:i}=o,s=(0,My.default)(o,$W);const l=typeof n=="function"?n((0,i1.default)({ownerState:i},s)):n;if(Array.isArray(l))return l.flatMap(c=>rv(c,(0,i1.default)({ownerState:i},s)));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:c=[]}=l;let f=(0,My.default)(l,LW);return c.forEach(p=>{let m=!0;typeof p.props=="function"?m=p.props((0,i1.default)({ownerState:i},s,i)):Object.keys(p.props).forEach(g=>{(i==null?void 0:i[g])!==p.props[g]&&s[g]!==p.props[g]&&(m=!1)}),m&&(Array.isArray(f)||(f=[f]),f.push(typeof p.style=="function"?p.style((0,i1.default)({ownerState:i},s,i)):p.style))}),f}return l}function qW(n={}){const{themeId:o,defaultTheme:i=VW,rootShouldForwardProp:s=tv,slotShouldForwardProp:l=tv}=n,c=d=>(0,NW.default)((0,i1.default)({},d,{theme:bg((0,i1.default)({},d,{defaultTheme:i,themeId:o}))}));return c.__mui_systemSx=!0,(d,f={})=>{(0,bS.internal_processStyles)(d,B=>B.filter(F=>!(F!=null&&F.__mui_systemSx)));const{name:p,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:w=WW(QW(m))}=f,A=(0,My.default)(f,zW),k=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,C=v||!1;let M,S=tv;m==="Root"||m==="root"?S=s:m?S=l:GW(d)&&(S=void 0);const I=(0,bS.default)(d,(0,i1.default)({shouldForwardProp:S,label:M},A)),E=B=>typeof B=="function"&&B.__emotion_real!==B||(0,FW.isPlainObject)(B)?F=>rv(B,(0,i1.default)({},F,{theme:bg({theme:F.theme,defaultTheme:i,themeId:o})})):B,j=(B,...F)=>{let O=E(B);const N=F?F.map(E):[];p&&w&&N.push(_=>{const V=bg((0,i1.default)({},_,{defaultTheme:i,themeId:o}));if(!V.components||!V.components[p]||!V.components[p].styleOverrides)return null;const $=V.components[p].styleOverrides,z={};return Object.entries($).forEach(([Q,G])=>{z[Q]=rv(G,(0,i1.default)({},_,{theme:V}))}),w(_,z)}),p&&!k&&N.push(_=>{var V;const $=bg((0,i1.default)({},_,{defaultTheme:i,themeId:o})),z=$==null||(V=$.components)==null||(V=V[p])==null?void 0:V.variants;return rv({variants:z},(0,i1.default)({},_,{theme:$}))}),C||N.push(c);const H=N.length-F.length;if(Array.isArray(B)&&H>0){const _=new Array(H).fill("");O=[...B,..._],O.raw=[...B.raw,..._]}const L=I(O,...N);return d.muiName&&(L.muiName=d.muiName),L};return I.withConfig&&(j.withConfig=I.withConfig),j}}function XO(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const es=n=>XO(n)&&n!=="classes",_e=TW({themeId:df,defaultTheme:lb,rootShouldForwardProp:es}),_W=["theme"];function W5(n){let{theme:o}=n,i=Qe(n,_W);const s=o[df];return b.jsx(SP,P({},i,{themeId:s?df:void 0,theme:s||o}))}const wS=n=>{let o;return n<1?o=5.11916*n**2:o=4.5*Math.log(n+1)+2,(o/100).toFixed(2)},YW=Yt("MuiBox",["root"]),KW=Ap(),Or=lP({themeId:df,defaultTheme:KW,defaultClassName:YW.root,generateClassName:Q3.generate});function Py(n,o){return Py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Py(n,o)}function JO(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n,Py(n,o)}const xS={disabled:!1},Yv=fs.createContext(null);var XW=function(o){return o.scrollTop},y0="unmounted",Wd="exited",qd="entering",i2="entered",jy="exiting",R1=function(n){JO(o,n);function o(s,l){var c;c=n.call(this,s,l)||this;var d=l,f=d&&!d.isMounting?s.enter:s.appear,p;return c.appearStatus=null,s.in?f?(p=Wd,c.appearStatus=qd):p=i2:s.unmountOnExit||s.mountOnEnter?p=y0:p=Wd,c.state={status:p},c.nextCallback=null,c}o.getDerivedStateFromProps=function(l,c){var d=l.in;return d&&c.status===y0?{status:Wd}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(l){var c=null;if(l!==this.props){var d=this.state.status;this.props.in?d!==qd&&d!==i2&&(c=qd):(d===qd||d===i2)&&(c=jy)}this.updateStatus(!1,c)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var l=this.props.timeout,c,d,f;return c=d=f=l,l!=null&&typeof l!="number"&&(c=l.exit,d=l.enter,f=l.appear!==void 0?l.appear:d),{exit:c,enter:d,appear:f}},i.updateStatus=function(l,c){if(l===void 0&&(l=!1),c!==null)if(this.cancelNextCallback(),c===qd){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:vg.findDOMNode(this);d&&XW(d)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wd&&this.setState({status:y0})},i.performEnter=function(l){var c=this,d=this.props.enter,f=this.context?this.context.isMounting:l,p=this.props.nodeRef?[f]:[vg.findDOMNode(this),f],m=p[0],g=p[1],v=this.getTimeouts(),w=f?v.appear:v.enter;if(!l&&!d||xS.disabled){this.safeSetState({status:i2},function(){c.props.onEntered(m)});return}this.props.onEnter(m,g),this.safeSetState({status:qd},function(){c.props.onEntering(m,g),c.onTransitionEnd(w,function(){c.safeSetState({status:i2},function(){c.props.onEntered(m,g)})})})},i.performExit=function(){var l=this,c=this.props.exit,d=this.getTimeouts(),f=this.props.nodeRef?void 0:vg.findDOMNode(this);if(!c||xS.disabled){this.safeSetState({status:Wd},function(){l.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:jy},function(){l.props.onExiting(f),l.onTransitionEnd(d.exit,function(){l.safeSetState({status:Wd},function(){l.props.onExited(f)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(l,c){c=this.setNextCallback(c),this.setState(l,c)},i.setNextCallback=function(l){var c=this,d=!0;return this.nextCallback=function(f){d&&(d=!1,c.nextCallback=null,l(f))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},i.onTransitionEnd=function(l,c){this.setNextCallback(c);var d=this.props.nodeRef?this.props.nodeRef.current:vg.findDOMNode(this),f=l==null&&!this.props.addEndListener;if(!d||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],m=p[0],g=p[1];this.props.addEndListener(m,g)}l!=null&&setTimeout(this.nextCallback,l)},i.render=function(){var l=this.state.status;if(l===y0)return null;var c=this.props,d=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var f=Qe(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return fs.createElement(Yv.Provider,{value:null},typeof d=="function"?d(l,f):fs.cloneElement(fs.Children.only(d),f))},o}(fs.Component);R1.contextType=Yv;R1.propTypes={};function Xf(){}R1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xf,onEntering:Xf,onEntered:Xf,onExit:Xf,onExiting:Xf,onExited:Xf};R1.UNMOUNTED=y0;R1.EXITED=Wd;R1.ENTERING=qd;R1.ENTERED=i2;R1.EXITING=jy;function JW(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function q5(n,o){var i=function(c){return o&&x.isValidElement(c)?o(c):c},s=Object.create(null);return n&&x.Children.map(n,function(l){return l}).forEach(function(l){s[l.key]=i(l)}),s}function ZW(n,o){n=n||{},o=o||{};function i(g){return g in o?o[g]:n[g]}var s=Object.create(null),l=[];for(var c in n)c in o?l.length&&(s[c]=l,l=[]):l.push(c);var d,f={};for(var p in o){if(s[p])for(d=0;dn.scrollTop;function kd(n,o){var i,s;const{timeout:l,easing:c,style:d={}}=n;return{duration:(i=d.transitionDuration)!=null?i:typeof l=="number"?l:l[o.mode]||0,easing:(s=d.transitionTimingFunction)!=null?s:typeof c=="object"?c[o.mode]:c,delay:d.transitionDelay}}function oq(n){return Kt("MuiSvgIcon",n)}Yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iq=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],aq=n=>{const{color:o,fontSize:i,classes:s}=n,l={root:["root",o!=="inherit"&&`color${Ke(o)}`,`fontSize${Ke(i)}`]};return Rt(l,oq,s)},sq=_e("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.color!=="inherit"&&o[`color${Ke(i.color)}`],o[`fontSize${Ke(i.fontSize)}`]]}})(({theme:n,ownerState:o})=>{var i,s,l,c,d,f,p,m,g,v,w,A,k;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:o.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(i=n.transitions)==null||(s=i.create)==null?void 0:s.call(i,"fill",{duration:(l=n.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((c=n.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,20))||"1.25rem",medium:((f=n.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,24))||"1.5rem",large:((m=n.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,35))||"2.1875rem"}[o.fontSize],color:(v=(w=(n.vars||n).palette)==null||(w=w[o.color])==null?void 0:w.main)!=null?v:{action:(A=(n.vars||n).palette)==null||(A=A.action)==null?void 0:A.active,disabled:(k=(n.vars||n).palette)==null||(k=k.action)==null?void 0:k.disabled,inherit:void 0}[o.color]}}),Oy=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiSvgIcon"}),{children:l,className:c,color:d="inherit",component:f="svg",fontSize:p="medium",htmlColor:m,inheritViewBox:g=!1,titleAccess:v,viewBox:w="0 0 24 24"}=s,A=Qe(s,iq),k=x.isValidElement(l)&&l.type==="svg",C=P({},s,{color:d,component:f,fontSize:p,instanceFontSize:o.fontSize,inheritViewBox:g,viewBox:w,hasSvgAsChild:k}),M={};g||(M.viewBox=w);const S=aq(C);return b.jsxs(sq,P({as:f,className:nt(S.root,c),focusable:"false",color:m,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:i},M,A,k&&l.props,{ownerState:C,children:[k?l.props.children:l,v?b.jsx("title",{children:v}):null]}))});Oy.muiName="SvgIcon";function _r(n,o){function i(s,l){return b.jsx(Oy,P({"data-testid":`${o}Icon`,ref:l},s,{children:n}))}return i.muiName=Oy.muiName,x.memo(x.forwardRef(i))}const lq={configure:n=>{Q3.configure(n)}},cq=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ke,createChainedFunction:yv,createSvgIcon:_r,debounce:Mf,deprecatedPropType:tU,isMuiElement:J0,ownerDocument:ei,ownerWindow:zl,requirePropFactory:rU,setRef:xh,unstable_ClassNameGenerator:lq,unstable_useEnhancedEffect:yo,unstable_useId:Ro,unsupportedProp:oU,useControlled:Rc,useEventCallback:ln,useForkRef:Xn,useIsFocusVisible:ib},Symbol.toStringTag,{value:"Module"}));function uq(n){return Kt("MuiCollapse",n)}Yt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const dq=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],fq=n=>{const{orientation:o,classes:i}=n,s={root:["root",`${o}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${o}`],wrapperInner:["wrapperInner",`${o}`]};return Rt(s,uq,i)},pq=_e("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.orientation],i.state==="entered"&&o.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&o.hidden]}})(({theme:n,ownerState:o})=>P({height:0,overflow:"hidden",transition:n.transitions.create("height")},o.orientation==="horizontal"&&{height:"auto",width:0,transition:n.transitions.create("width")},o.state==="entered"&&P({height:"auto",overflow:"visible"},o.orientation==="horizontal"&&{width:"auto"}),o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&{visibility:"hidden"})),hq=_e("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(n,o)=>o.wrapper})(({ownerState:n})=>P({display:"flex",width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),mq=_e("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(n,o)=>o.wrapperInner})(({ownerState:n})=>P({width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),K5=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiCollapse"}),{addEndListener:l,children:c,className:d,collapsedSize:f="0px",component:p,easing:m,in:g,onEnter:v,onEntered:w,onEntering:A,onExit:k,onExited:C,onExiting:M,orientation:S="vertical",style:I,timeout:E=BP.standard,TransitionComponent:j=R1}=s,B=Qe(s,dq),F=P({},s,{orientation:S,collapsedSize:f}),O=fq(F),N=ka(),H=Dl(),L=x.useRef(null),_=x.useRef(),V=typeof f=="number"?`${f}px`:f,$=S==="horizontal",z=$?"width":"height",Q=x.useRef(null),G=Xn(i,Q),D=he=>Ie=>{if(he){const ve=Q.current;Ie===void 0?he(ve):he(ve,Ie)}},q=()=>L.current?L.current[$?"clientWidth":"clientHeight"]:0,W=D((he,Ie)=>{L.current&&$&&(L.current.style.position="absolute"),he.style[z]=V,v&&v(he,Ie)}),X=D((he,Ie)=>{const ve=q();L.current&&$&&(L.current.style.position="");const{duration:be,easing:ke}=kd({style:I,timeout:E,easing:m},{mode:"enter"});if(E==="auto"){const ze=N.transitions.getAutoHeightDuration(ve);he.style.transitionDuration=`${ze}ms`,_.current=ze}else he.style.transitionDuration=typeof be=="string"?be:`${be}ms`;he.style[z]=`${ve}px`,he.style.transitionTimingFunction=ke,A&&A(he,Ie)}),te=D((he,Ie)=>{he.style[z]="auto",w&&w(he,Ie)}),se=D(he=>{he.style[z]=`${q()}px`,k&&k(he)}),de=D(C),ee=D(he=>{const Ie=q(),{duration:ve,easing:be}=kd({style:I,timeout:E,easing:m},{mode:"exit"});if(E==="auto"){const ke=N.transitions.getAutoHeightDuration(Ie);he.style.transitionDuration=`${ke}ms`,_.current=ke}else he.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;he.style[z]=V,he.style.transitionTimingFunction=be,M&&M(he)}),fe=he=>{E==="auto"&&H.start(_.current||0,he),l&&l(Q.current,he)};return b.jsx(j,P({in:g,onEnter:W,onEntered:te,onEntering:X,onExit:se,onExited:de,onExiting:ee,addEndListener:fe,nodeRef:Q,timeout:E==="auto"?null:E},B,{children:(he,Ie)=>b.jsx(pq,P({as:p,className:nt(O.root,d,{entered:O.entered,exited:!g&&V==="0px"&&O.hidden}[he]),style:P({[$?"minWidth":"minHeight"]:V},I),ref:G},Ie,{ownerState:P({},F,{state:he}),children:b.jsx(hq,{ownerState:P({},F,{state:he}),className:O.wrapper,ref:L,children:b.jsx(mq,{ownerState:P({},F,{state:he}),className:O.wrapperInner,children:c})})}))}))});K5.muiSupportAuto=!0;function gq(n){const{className:o,classes:i,pulsate:s=!1,rippleX:l,rippleY:c,rippleSize:d,in:f,onExited:p,timeout:m}=n,[g,v]=x.useState(!1),w=nt(o,i.ripple,i.rippleVisible,s&&i.ripplePulsate),A={width:d,height:d,top:-(d/2)+c,left:-(d/2)+l},k=nt(i.child,g&&i.childLeaving,s&&i.childPulsate);return!f&&!g&&v(!0),x.useEffect(()=>{if(!f&&p!=null){const C=setTimeout(p,m);return()=>{clearTimeout(C)}}},[p,f,m]),b.jsx("span",{className:w,style:A,children:b.jsx("span",{className:k})})}const c1=Yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vq=["center","classes","className"];let Sb=n=>n,yS,AS,CS,kS;const Ry=550,bq=80,wq=cc(yS||(yS=Sb` +`).join("
    ")),lr(Z)}var ma,ol=new WeakMap,fo=function(){function Z(){if(m(this,Z),v(this,ol,void 0),!(typeof window>"u")){ma=this;for(var O=arguments.length,H=new Array(O),J=0;J1&&arguments[1]!==void 0?arguments[1]:{};if(si(Object.assign({},J,H)),W.currentInstance){var xe=Wo.swalPromiseResolve.get(W.currentInstance),ct=W.currentInstance.isAwaitingPromise;W.currentInstance._destroy(),ct||xe({isDismissed:!0}),ge()&&Xi()}W.currentInstance=ma;var Gt=N1(H,J);as(Gt),Object.freeze(Gt),W.timeout&&(W.timeout.stop(),delete W.timeout),clearTimeout(W.restoreFocusTimeout);var $r=Yl(ma);return Oo(ma,Gt),zt.innerParams.set(ma,Gt),Al(ma,$r,Gt)}},{key:"then",value:function(H){return g(ol,this).then(H)}},{key:"finally",value:function(H){return g(ol,this).finally(H)}}])}(),Al=function(O,H,J){return new Promise(function(xe,ct){var Gt=function(jr){O.close({isDismissed:!0,dismiss:jr})};Wo.swalPromiseResolve.set(O,xe),Wo.swalPromiseReject.set(O,ct),H.confirmButton.onclick=function(){pn(O)},H.denyButton.onclick=function(){An(O)},H.cancelButton.onclick=function(){zn(O,Gt)},H.closeButton.onclick=function(){Gt(Ho.close)},Ns(J,H,Gt),rs(W,J,Gt),da(O,J),In(J),Kl(W,J,Gt),il(H,J),setTimeout(function(){H.container.scrollTop=0})})},N1=function(O,H){var J=zi(O),xe=Object.assign({},uo,H,J,O);return xe.showClass=Object.assign({},uo.showClass,xe.showClass),xe.hideClass=Object.assign({},uo.hideClass,xe.hideClass),xe.animation===!1&&(xe.showClass={backdrop:"swal2-noanimation"},xe.hideClass={}),xe},Yl=function(O){var H={popup:st(),container:$e(),actions:xt(),confirmButton:Be(),denyButton:It(),cancelButton:Je(),loader:ht(),closeButton:re(),validationMessage:Fe(),progressSteps:pt()};return zt.domCache.set(O,H),H},Kl=function(O,H,J){var xe=Y();lt(xe),H.timer&&(O.timeout=new Eo(function(){J("timer"),delete O.timeout},H.timer),H.timerProgressBar&&(De(xe),He(xe,H,"timerProgressBar"),setTimeout(function(){O.timeout&&O.timeout.running&&Ye(H.timer)})))},il=function(O,H){if(!H.toast){if(!at(H.allowEnterKey)){Ve("allowEnterKey"),Cl();return}Qc(O)||pc(O,H)||mi(-1,1)}},Qc=function(O){var H=O.popup.querySelectorAll("[autofocus]"),J=M(H),xe;try{for(J.s();!(xe=J.n()).done;){var ct=xe.value;if(ct instanceof HTMLElement&&yt(ct))return ct.focus(),!0}}catch(Gt){J.e(Gt)}finally{J.f()}return!1},pc=function(O,H){return H.focusDeny&&yt(O.denyButton)?(O.denyButton.focus(),!0):H.focusCancel&&yt(O.cancelButton)?(O.cancelButton.focus(),!0):H.focusConfirm&&yt(O.confirmButton)?(O.confirmButton.focus(),!0):!1},Cl=function(){document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var Xl=new Date,hc=localStorage.getItem("swal-initiation");hc?(Xl.getTime()-Date.parse(hc))/(1e3*60*60*24)>3&&setTimeout(function(){document.body.style.pointerEvents="none";var Z=document.createElement("audio");Z.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",Z.loop=!0,document.body.appendChild(Z),setTimeout(function(){Z.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(Xl))}fo.prototype.disableButtons=wi,fo.prototype.enableButtons=Yo,fo.prototype.getInput=vi,fo.prototype.disableInput=Ko,fo.prototype.enableInput=Ri,fo.prototype.hideLoading=co,fo.prototype.disableLoading=co,fo.prototype.showValidationMessage=ai,fo.prototype.resetValidationMessage=Xo,fo.prototype.close=lo,fo.prototype.closePopup=lo,fo.prototype.closeModal=lo,fo.prototype.closeToast=lo,fo.prototype.rejectPromise=Qi,fo.prototype.update=vs,fo.prototype._destroy=Va,Object.assign(fo,Dn),Object.keys(bs).forEach(function(Z){fo[Z]=function(){if(ma&&ma[Z]){var O;return(O=ma)[Z].apply(O,arguments)}return null}}),fo.DismissReason=Ho,fo.version="11.12.3";var kl=fo;return kl.default=kl,kl}),typeof Fu<"u"&&Fu.Sweetalert2&&(Fu.swal=Fu.sweetAlert=Fu.Swal=Fu.SweetAlert=Fu.Sweetalert2),typeof document<"u"&&function(i,s){var l=i.createElement("style");if(i.getElementsByTagName("head")[0].appendChild(l),l.styleSheet)l.styleSheet.disabled||(l.styleSheet.cssText=s);else try{l.innerHTML=s}catch{l.innerText=s}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')})(rR);var $W=rR.exports;const gn=rm($W);function LW(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function zW(n){return parseFloat(n)}function ka(){const n=V3(sb);return n[uf]||n}function HW({props:n,name:o}){return _6({props:n,name:o,defaultTheme:sb,themeId:uf})}var vm={},Gw={exports:{}},IS;function UW(){return IS||(IS=1,function(n){function o(i,s){if(i==null)return{};var l={};for(var c in i)if({}.hasOwnProperty.call(i,c)){if(s.includes(c))continue;l[c]=i[c]}return l}n.exports=o,n.exports.__esModule=!0,n.exports.default=n.exports}(Gw)),Gw.exports}const nR=Pu(Vz),GW=Pu(Qz),VW=Pu(Xz),QW=Pu(ZH),WW=Pu($H),qW=Pu(VH);var Sp=Jn;Object.defineProperty(vm,"__esModule",{value:!0});var _W=vm.default=sq;vm.shouldForwardProp=tv;vm.systemDefaultTheme=void 0;var o1=Sp(sP()),jy=Sp(UW()),ES=tq(nR),YW=GW;Sp(VW);Sp(QW);var KW=Sp(WW),XW=Sp(qW);const JW=["ownerState"],ZW=["variants"],eq=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oR(n){if(typeof WeakMap!="function")return null;var o=new WeakMap,i=new WeakMap;return(oR=function(s){return s?i:o})(n)}function tq(n,o){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=oR(o);if(i&&i.has(n))return i.get(n);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if(c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)){var d=l?Object.getOwnPropertyDescriptor(n,c):null;d&&(d.get||d.set)?Object.defineProperty(s,c,d):s[c]=n[c]}return s.default=n,i&&i.set(n,s),s}function rq(n){return Object.keys(n).length===0}function nq(n){return typeof n=="string"&&n.charCodeAt(0)>96}function tv(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const oq=vm.systemDefaultTheme=(0,KW.default)(),iq=n=>n&&n.charAt(0).toLowerCase()+n.slice(1);function bg({defaultTheme:n,theme:o,themeId:i}){return rq(o)?n:o[i]||o}function aq(n){return n?(o,i)=>i[n]:null}function rv(n,o){let{ownerState:i}=o,s=(0,jy.default)(o,JW);const l=typeof n=="function"?n((0,o1.default)({ownerState:i},s)):n;if(Array.isArray(l))return l.flatMap(c=>rv(c,(0,o1.default)({ownerState:i},s)));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:c=[]}=l;let f=(0,jy.default)(l,ZW);return c.forEach(p=>{let m=!0;typeof p.props=="function"?m=p.props((0,o1.default)({ownerState:i},s,i)):Object.keys(p.props).forEach(g=>{(i==null?void 0:i[g])!==p.props[g]&&s[g]!==p.props[g]&&(m=!1)}),m&&(Array.isArray(f)||(f=[f]),f.push(typeof p.style=="function"?p.style((0,o1.default)({ownerState:i},s,i)):p.style))}),f}return l}function sq(n={}){const{themeId:o,defaultTheme:i=oq,rootShouldForwardProp:s=tv,slotShouldForwardProp:l=tv}=n,c=d=>(0,XW.default)((0,o1.default)({},d,{theme:bg((0,o1.default)({},d,{defaultTheme:i,themeId:o}))}));return c.__mui_systemSx=!0,(d,f={})=>{(0,ES.internal_processStyles)(d,B=>B.filter(D=>!(D!=null&&D.__mui_systemSx)));const{name:p,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:w=aq(iq(m))}=f,A=(0,jy.default)(f,eq),k=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,C=v||!1;let M,S=tv;m==="Root"||m==="root"?S=s:m?S=l:nq(d)&&(S=void 0);const I=(0,ES.default)(d,(0,o1.default)({shouldForwardProp:S,label:M},A)),E=B=>typeof B=="function"&&B.__emotion_real!==B||(0,YW.isPlainObject)(B)?D=>rv(B,(0,o1.default)({},D,{theme:bg({theme:D.theme,defaultTheme:i,themeId:o})})):B,j=(B,...D)=>{let R=E(B);const N=D?D.map(E):[];p&&w&&N.push(_=>{const V=bg((0,o1.default)({},_,{defaultTheme:i,themeId:o}));if(!V.components||!V.components[p]||!V.components[p].styleOverrides)return null;const $=V.components[p].styleOverrides,z={};return Object.entries($).forEach(([Q,G])=>{z[Q]=rv(G,(0,o1.default)({},_,{theme:V}))}),w(_,z)}),p&&!k&&N.push(_=>{var V;const $=bg((0,o1.default)({},_,{defaultTheme:i,themeId:o})),z=$==null||(V=$.components)==null||(V=V[p])==null?void 0:V.variants;return rv({variants:z},(0,o1.default)({},_,{theme:$}))}),C||N.push(c);const U=N.length-D.length;if(Array.isArray(B)&&U>0){const _=new Array(U).fill("");R=[...B,..._],R.raw=[...B.raw,..._]}const L=I(R,...N);return d.muiName&&(L.muiName=d.muiName),L};return I.withConfig&&(j.withConfig=I.withConfig),j}}function iR(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const ts=n=>iR(n)&&n!=="classes",_e=_W({themeId:uf,defaultTheme:sb,rootShouldForwardProp:ts}),lq=["theme"];function _5(n){let{theme:o}=n,i=Qe(n,lq);const s=o[uf];return b.jsx(BP,P({},i,{themeId:s?uf:void 0,theme:s||o}))}const MS=n=>{let o;return n<1?o=5.11916*n**2:o=4.5*Math.log(n+1)+2,(o/100).toFixed(2)},cq=Yt("MuiBox",["root"]),uq=Ap(),ur=qH({themeId:uf,defaultTheme:uq,defaultClassName:cq.root,generateClassName:Q6.generate});function Oy(n,o){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Oy(n,o)}function aR(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n,Oy(n,o)}const PS={disabled:!1},Yv=Na.createContext(null);var dq=function(o){return o.scrollTop},x0="unmounted",Vd="exited",Qd="entering",o2="entered",Ry="exiting",O1=function(n){aR(o,n);function o(s,l){var c;c=n.call(this,s,l)||this;var d=l,f=d&&!d.isMounting?s.enter:s.appear,p;return c.appearStatus=null,s.in?f?(p=Vd,c.appearStatus=Qd):p=o2:s.unmountOnExit||s.mountOnEnter?p=x0:p=Vd,c.state={status:p},c.nextCallback=null,c}o.getDerivedStateFromProps=function(l,c){var d=l.in;return d&&c.status===x0?{status:Vd}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(l){var c=null;if(l!==this.props){var d=this.state.status;this.props.in?d!==Qd&&d!==o2&&(c=Qd):(d===Qd||d===o2)&&(c=Ry)}this.updateStatus(!1,c)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var l=this.props.timeout,c,d,f;return c=d=f=l,l!=null&&typeof l!="number"&&(c=l.exit,d=l.enter,f=l.appear!==void 0?l.appear:d),{exit:c,enter:d,appear:f}},i.updateStatus=function(l,c){if(l===void 0&&(l=!1),c!==null)if(this.cancelNextCallback(),c===Qd){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:vg.findDOMNode(this);d&&dq(d)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vd&&this.setState({status:x0})},i.performEnter=function(l){var c=this,d=this.props.enter,f=this.context?this.context.isMounting:l,p=this.props.nodeRef?[f]:[vg.findDOMNode(this),f],m=p[0],g=p[1],v=this.getTimeouts(),w=f?v.appear:v.enter;if(!l&&!d||PS.disabled){this.safeSetState({status:o2},function(){c.props.onEntered(m)});return}this.props.onEnter(m,g),this.safeSetState({status:Qd},function(){c.props.onEntering(m,g),c.onTransitionEnd(w,function(){c.safeSetState({status:o2},function(){c.props.onEntered(m,g)})})})},i.performExit=function(){var l=this,c=this.props.exit,d=this.getTimeouts(),f=this.props.nodeRef?void 0:vg.findDOMNode(this);if(!c||PS.disabled){this.safeSetState({status:Vd},function(){l.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:Ry},function(){l.props.onExiting(f),l.onTransitionEnd(d.exit,function(){l.safeSetState({status:Vd},function(){l.props.onExited(f)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(l,c){c=this.setNextCallback(c),this.setState(l,c)},i.setNextCallback=function(l){var c=this,d=!0;return this.nextCallback=function(f){d&&(d=!1,c.nextCallback=null,l(f))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},i.onTransitionEnd=function(l,c){this.setNextCallback(c);var d=this.props.nodeRef?this.props.nodeRef.current:vg.findDOMNode(this),f=l==null&&!this.props.addEndListener;if(!d||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],m=p[0],g=p[1];this.props.addEndListener(m,g)}l!=null&&setTimeout(this.nextCallback,l)},i.render=function(){var l=this.state.status;if(l===x0)return null;var c=this.props,d=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var f=Qe(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Na.createElement(Yv.Provider,{value:null},typeof d=="function"?d(l,f):Na.cloneElement(Na.Children.only(d),f))},o}(Na.Component);O1.contextType=Yv;O1.propTypes={};function Kf(){}O1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kf,onEntering:Kf,onEntered:Kf,onExit:Kf,onExiting:Kf,onExited:Kf};O1.UNMOUNTED=x0;O1.EXITED=Vd;O1.ENTERING=Qd;O1.ENTERED=o2;O1.EXITING=Ry;function fq(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Y5(n,o){var i=function(c){return o&&x.isValidElement(c)?o(c):c},s=Object.create(null);return n&&x.Children.map(n,function(l){return l}).forEach(function(l){s[l.key]=i(l)}),s}function pq(n,o){n=n||{},o=o||{};function i(g){return g in o?o[g]:n[g]}var s=Object.create(null),l=[];for(var c in n)c in o?l.length&&(s[c]=l,l=[]):l.push(c);var d,f={};for(var p in o){if(s[p])for(d=0;dn.scrollTop;function Cd(n,o){var i,s;const{timeout:l,easing:c,style:d={}}=n;return{duration:(i=d.transitionDuration)!=null?i:typeof l=="number"?l:l[o.mode]||0,easing:(s=d.transitionTimingFunction)!=null?s:typeof c=="object"?c[o.mode]:c,delay:d.transitionDelay}}function bq(n){return Kt("MuiSvgIcon",n)}Yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wq=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xq=n=>{const{color:o,fontSize:i,classes:s}=n,l={root:["root",o!=="inherit"&&`color${Ke(o)}`,`fontSize${Ke(i)}`]};return Bt(l,bq,s)},yq=_e("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.color!=="inherit"&&o[`color${Ke(i.color)}`],o[`fontSize${Ke(i.fontSize)}`]]}})(({theme:n,ownerState:o})=>{var i,s,l,c,d,f,p,m,g,v,w,A,k;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:o.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(i=n.transitions)==null||(s=i.create)==null?void 0:s.call(i,"fill",{duration:(l=n.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((c=n.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,20))||"1.25rem",medium:((f=n.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,24))||"1.5rem",large:((m=n.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,35))||"2.1875rem"}[o.fontSize],color:(v=(w=(n.vars||n).palette)==null||(w=w[o.color])==null?void 0:w.main)!=null?v:{action:(A=(n.vars||n).palette)==null||(A=A.action)==null?void 0:A.active,disabled:(k=(n.vars||n).palette)==null||(k=k.action)==null?void 0:k.disabled,inherit:void 0}[o.color]}}),By=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiSvgIcon"}),{children:l,className:c,color:d="inherit",component:f="svg",fontSize:p="medium",htmlColor:m,inheritViewBox:g=!1,titleAccess:v,viewBox:w="0 0 24 24"}=s,A=Qe(s,wq),k=x.isValidElement(l)&&l.type==="svg",C=P({},s,{color:d,component:f,fontSize:p,instanceFontSize:o.fontSize,inheritViewBox:g,viewBox:w,hasSvgAsChild:k}),M={};g||(M.viewBox=w);const S=xq(C);return b.jsxs(yq,P({as:f,className:nt(S.root,c),focusable:"false",color:m,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:i},M,A,k&&l.props,{ownerState:C,children:[k?l.props.children:l,v?b.jsx("title",{children:v}):null]}))});By.muiName="SvgIcon";function _r(n,o){function i(s,l){return b.jsx(By,P({"data-testid":`${o}Icon`,ref:l},s,{children:n}))}return i.muiName=By.muiName,x.memo(x.forwardRef(i))}const Aq={configure:n=>{Q6.configure(n)}},Cq=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ke,createChainedFunction:yv,createSvgIcon:_r,debounce:Ef,deprecatedPropType:mU,isMuiElement:X0,ownerDocument:ri,ownerWindow:Ll,requirePropFactory:gU,setRef:wh,unstable_ClassNameGenerator:Aq,unstable_useEnhancedEffect:ko,unstable_useId:Fo,unsupportedProp:bU,useControlled:jc,useEventCallback:ln,useForkRef:Xn,useIsFocusVisible:ob},Symbol.toStringTag,{value:"Module"}));function kq(n){return Kt("MuiCollapse",n)}Yt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Sq=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Iq=n=>{const{orientation:o,classes:i}=n,s={root:["root",`${o}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${o}`],wrapperInner:["wrapperInner",`${o}`]};return Bt(s,kq,i)},Eq=_e("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.orientation],i.state==="entered"&&o.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&o.hidden]}})(({theme:n,ownerState:o})=>P({height:0,overflow:"hidden",transition:n.transitions.create("height")},o.orientation==="horizontal"&&{height:"auto",width:0,transition:n.transitions.create("width")},o.state==="entered"&&P({height:"auto",overflow:"visible"},o.orientation==="horizontal"&&{width:"auto"}),o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&{visibility:"hidden"})),Mq=_e("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(n,o)=>o.wrapper})(({ownerState:n})=>P({display:"flex",width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),Pq=_e("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(n,o)=>o.wrapperInner})(({ownerState:n})=>P({width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),kb=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiCollapse"}),{addEndListener:l,children:c,className:d,collapsedSize:f="0px",component:p,easing:m,in:g,onEnter:v,onEntered:w,onEntering:A,onExit:k,onExited:C,onExiting:M,orientation:S="vertical",style:I,timeout:E=HP.standard,TransitionComponent:j=O1}=s,B=Qe(s,Sq),D=P({},s,{orientation:S,collapsedSize:f}),R=Iq(D),N=ka(),U=Fl(),L=x.useRef(null),_=x.useRef(),V=typeof f=="number"?`${f}px`:f,$=S==="horizontal",z=$?"width":"height",Q=x.useRef(null),G=Xn(i,Q),F=he=>Ie=>{if(he){const ve=Q.current;Ie===void 0?he(ve):he(ve,Ie)}},q=()=>L.current?L.current[$?"clientWidth":"clientHeight"]:0,W=F((he,Ie)=>{L.current&&$&&(L.current.style.position="absolute"),he.style[z]=V,v&&v(he,Ie)}),X=F((he,Ie)=>{const ve=q();L.current&&$&&(L.current.style.position="");const{duration:be,easing:ke}=Cd({style:I,timeout:E,easing:m},{mode:"enter"});if(E==="auto"){const ze=N.transitions.getAutoHeightDuration(ve);he.style.transitionDuration=`${ze}ms`,_.current=ze}else he.style.transitionDuration=typeof be=="string"?be:`${be}ms`;he.style[z]=`${ve}px`,he.style.transitionTimingFunction=ke,A&&A(he,Ie)}),te=F((he,Ie)=>{he.style[z]="auto",w&&w(he,Ie)}),se=F(he=>{he.style[z]=`${q()}px`,k&&k(he)}),de=F(C),ee=F(he=>{const Ie=q(),{duration:ve,easing:be}=Cd({style:I,timeout:E,easing:m},{mode:"exit"});if(E==="auto"){const ke=N.transitions.getAutoHeightDuration(Ie);he.style.transitionDuration=`${ke}ms`,_.current=ke}else he.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;he.style[z]=V,he.style.transitionTimingFunction=be,M&&M(he)}),fe=he=>{E==="auto"&&U.start(_.current||0,he),l&&l(Q.current,he)};return b.jsx(j,P({in:g,onEnter:W,onEntered:te,onEntering:X,onExit:se,onExited:de,onExiting:ee,addEndListener:fe,nodeRef:Q,timeout:E==="auto"?null:E},B,{children:(he,Ie)=>b.jsx(Eq,P({as:p,className:nt(R.root,d,{entered:R.entered,exited:!g&&V==="0px"&&R.hidden}[he]),style:P({[$?"minWidth":"minHeight"]:V},I),ref:G},Ie,{ownerState:P({},D,{state:he}),children:b.jsx(Mq,{ownerState:P({},D,{state:he}),className:R.wrapper,ref:L,children:b.jsx(Pq,{ownerState:P({},D,{state:he}),className:R.wrapperInner,children:c})})}))}))});kb.muiSupportAuto=!0;function jq(n){const{className:o,classes:i,pulsate:s=!1,rippleX:l,rippleY:c,rippleSize:d,in:f,onExited:p,timeout:m}=n,[g,v]=x.useState(!1),w=nt(o,i.ripple,i.rippleVisible,s&&i.ripplePulsate),A={width:d,height:d,top:-(d/2)+c,left:-(d/2)+l},k=nt(i.child,g&&i.childLeaving,s&&i.childPulsate);return!f&&!g&&v(!0),x.useEffect(()=>{if(!f&&p!=null){const C=setTimeout(p,m);return()=>{clearTimeout(C)}}},[p,f,m]),b.jsx("span",{className:w,style:A,children:b.jsx("span",{className:k})})}const l1=Yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Oq=["center","classes","className"];let Sb=n=>n,jS,OS,RS,BS;const Ty=550,Rq=80,Bq=lc(jS||(jS=Sb` 0% { transform: scale(0); opacity: 0.1; @@ -156,7 +156,7 @@ https://sweetalert2.github.io/#ajax-request`),Ls(Z),typeof Z.title=="string"&&(Z transform: scale(1); opacity: 0.3; } -`)),xq=cc(AS||(AS=Sb` +`)),Tq=lc(OS||(OS=Sb` 0% { opacity: 1; } @@ -164,7 +164,7 @@ https://sweetalert2.github.io/#ajax-request`),Ls(Z),typeof Z.title=="string"&&(Z 100% { opacity: 0; } -`)),yq=cc(CS||(CS=Sb` +`)),Fq=lc(RS||(RS=Sb` 0% { transform: scale(1); } @@ -176,7 +176,7 @@ https://sweetalert2.github.io/#ajax-request`),Ls(Z),typeof Z.title=="string"&&(Z 100% { transform: scale(1); } -`)),Aq=_e("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cq=_e(gq,{name:"MuiTouchRipple",slot:"Ripple"})(kS||(kS=Sb` +`)),Dq=_e("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nq=_e(jq,{name:"MuiTouchRipple",slot:"Ripple"})(BS||(BS=Sb` opacity: 0; position: absolute; @@ -219,10 +219,10 @@ https://sweetalert2.github.io/#ajax-request`),Ls(Z),typeof Z.title=="string"&&(Z animation-iteration-count: infinite; animation-delay: 200ms; } -`),c1.rippleVisible,wq,Ry,({theme:n})=>n.transitions.easing.easeInOut,c1.ripplePulsate,({theme:n})=>n.transitions.duration.shorter,c1.child,c1.childLeaving,xq,Ry,({theme:n})=>n.transitions.easing.easeInOut,c1.childPulsate,yq,({theme:n})=>n.transitions.easing.easeInOut),kq=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTouchRipple"}),{center:l=!1,classes:c={},className:d}=s,f=Qe(s,vq),[p,m]=x.useState([]),g=x.useRef(0),v=x.useRef(null);x.useEffect(()=>{v.current&&(v.current(),v.current=null)},[p]);const w=x.useRef(!1),A=Dl(),k=x.useRef(null),C=x.useRef(null),M=x.useCallback(j=>{const{pulsate:B,rippleX:F,rippleY:O,rippleSize:N,cb:H}=j;m(L=>[...L,b.jsx(Cq,{classes:{ripple:nt(c.ripple,c1.ripple),rippleVisible:nt(c.rippleVisible,c1.rippleVisible),ripplePulsate:nt(c.ripplePulsate,c1.ripplePulsate),child:nt(c.child,c1.child),childLeaving:nt(c.childLeaving,c1.childLeaving),childPulsate:nt(c.childPulsate,c1.childPulsate)},timeout:Ry,pulsate:B,rippleX:F,rippleY:O,rippleSize:N},g.current)]),g.current+=1,v.current=H},[c]),S=x.useCallback((j={},B={},F=()=>{})=>{const{pulsate:O=!1,center:N=l||B.pulsate,fakeElement:H=!1}=B;if((j==null?void 0:j.type)==="mousedown"&&w.current){w.current=!1;return}(j==null?void 0:j.type)==="touchstart"&&(w.current=!0);const L=H?null:C.current,_=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,$,z;if(N||j===void 0||j.clientX===0&&j.clientY===0||!j.clientX&&!j.touches)V=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:Q,clientY:G}=j.touches&&j.touches.length>0?j.touches[0]:j;V=Math.round(Q-_.left),$=Math.round(G-_.top)}if(N)z=Math.sqrt((2*_.width**2+_.height**2)/3),z%2===0&&(z+=1);else{const Q=Math.max(Math.abs((L?L.clientWidth:0)-V),V)*2+2,G=Math.max(Math.abs((L?L.clientHeight:0)-$),$)*2+2;z=Math.sqrt(Q**2+G**2)}j!=null&&j.touches?k.current===null&&(k.current=()=>{M({pulsate:O,rippleX:V,rippleY:$,rippleSize:z,cb:F})},A.start(bq,()=>{k.current&&(k.current(),k.current=null)})):M({pulsate:O,rippleX:V,rippleY:$,rippleSize:z,cb:F})},[l,M,A]),I=x.useCallback(()=>{S({},{pulsate:!0})},[S]),E=x.useCallback((j,B)=>{if(A.clear(),(j==null?void 0:j.type)==="touchend"&&k.current){k.current(),k.current=null,A.start(0,()=>{E(j,B)});return}k.current=null,m(F=>F.length>0?F.slice(1):F),v.current=B},[A]);return x.useImperativeHandle(i,()=>({pulsate:I,start:S,stop:E}),[I,S,E]),b.jsx(Aq,P({className:nt(c1.root,c.root,d),ref:C},f,{children:b.jsx(_5,{component:null,exit:!0,children:p})}))});function Sq(n){return Kt("MuiButtonBase",n)}const Iq=Yt("MuiButtonBase",["root","disabled","focusVisible"]),Eq=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Mq=n=>{const{disabled:o,focusVisible:i,focusVisibleClassName:s,classes:l}=n,d=Rt({root:["root",o&&"disabled",i&&"focusVisible"]},Sq,l);return i&&s&&(d.root+=` ${s}`),d},Pq=_e("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,o)=>o.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Iq.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Gc=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiButtonBase"}),{action:l,centerRipple:c=!1,children:d,className:f,component:p="button",disabled:m=!1,disableRipple:g=!1,disableTouchRipple:v=!1,focusRipple:w=!1,LinkComponent:A="a",onBlur:k,onClick:C,onContextMenu:M,onDragLeave:S,onFocus:I,onFocusVisible:E,onKeyDown:j,onKeyUp:B,onMouseDown:F,onMouseLeave:O,onMouseUp:N,onTouchEnd:H,onTouchMove:L,onTouchStart:_,tabIndex:V=0,TouchRippleProps:$,touchRippleRef:z,type:Q}=s,G=Qe(s,Eq),D=x.useRef(null),q=x.useRef(null),W=Xn(q,z),{isFocusVisibleRef:X,onFocus:te,onBlur:se,ref:de}=ib(),[ee,fe]=x.useState(!1);m&&ee&&fe(!1),x.useImperativeHandle(l,()=>({focusVisible:()=>{fe(!0),D.current.focus()}}),[]);const[he,Ie]=x.useState(!1);x.useEffect(()=>{Ie(!0)},[]);const ve=he&&!g&&!m;x.useEffect(()=>{ee&&w&&!g&&he&&q.current.pulsate()},[g,w,ee,he]);function be(Re,Je,It=v){return ln(Nt=>(Je&&Je(Nt),!It&&q.current&&q.current[Re](Nt),!0))}const ke=be("start",F),ze=be("stop",M),Ge=be("stop",S),Ve=be("stop",N),at=be("stop",Re=>{ee&&Re.preventDefault(),O&&O(Re)}),We=be("start",_),ue=be("stop",H),Le=be("stop",L),$e=be("stop",Re=>{se(Re),X.current===!1&&fe(!1),k&&k(Re)},!1),bt=ln(Re=>{D.current||(D.current=Re.currentTarget),te(Re),X.current===!0&&(fe(!0),E&&E(Re)),I&&I(Re)}),ot=()=>{const Re=D.current;return p&&p!=="button"&&!(Re.tagName==="A"&&Re.href)},st=x.useRef(!1),Ze=ln(Re=>{w&&!st.current&&ee&&q.current&&Re.key===" "&&(st.current=!0,q.current.stop(Re,()=>{q.current.start(Re)})),Re.target===Re.currentTarget&&ot()&&Re.key===" "&&Re.preventDefault(),j&&j(Re),Re.target===Re.currentTarget&&ot()&&Re.key==="Enter"&&!m&&(Re.preventDefault(),C&&C(Re))}),dt=ln(Re=>{w&&Re.key===" "&&q.current&&ee&&!Re.defaultPrevented&&(st.current=!1,q.current.stop(Re,()=>{q.current.pulsate(Re)})),B&&B(Re),C&&Re.target===Re.currentTarget&&ot()&&Re.key===" "&&!Re.defaultPrevented&&C(Re)});let Xe=p;Xe==="button"&&(G.href||G.to)&&(Xe=A);const Pt={};Xe==="button"?(Pt.type=Q===void 0?"button":Q,Pt.disabled=m):(!G.href&&!G.to&&(Pt.role="button"),m&&(Pt["aria-disabled"]=m));const mt=Xn(i,de,D),pt=P({},s,{centerRipple:c,component:p,disabled:m,disableRipple:g,disableTouchRipple:v,focusRipple:w,tabIndex:V,focusVisible:ee}),Te=Mq(pt);return b.jsxs(Pq,P({as:Xe,className:nt(Te.root,f),ownerState:pt,onBlur:$e,onClick:C,onContextMenu:ze,onFocus:bt,onKeyDown:Ze,onKeyUp:dt,onMouseDown:ke,onMouseLeave:at,onMouseUp:Ve,onDragLeave:Ge,onTouchEnd:ue,onTouchMove:Le,onTouchStart:We,ref:mt,tabIndex:m?-1:V,type:Q},Pt,G,{children:[d,ve?b.jsx(kq,P({ref:W,center:c},$)):null]}))});function jq(n){return Kt("MuiIconButton",n)}const Oq=Yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Rq=["edge","children","className","color","disabled","disableFocusRipple","size"],Bq=n=>{const{classes:o,disabled:i,color:s,edge:l,size:c}=n,d={root:["root",i&&"disabled",s!=="default"&&`color${Ke(s)}`,l&&`edge${Ke(l)}`,`size${Ke(c)}`]};return Rt(d,jq,o)},Tq=_e(Gc,{name:"MuiIconButton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.color!=="default"&&o[`color${Ke(i.color)}`],i.edge&&o[`edge${Ke(i.edge)}`],o[`size${Ke(i.size)}`]]}})(({theme:n,ownerState:o})=>P({textAlign:"center",flex:"0 0 auto",fontSize:n.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(n.vars||n).palette.action.active,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest})},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.activeChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.edge==="start"&&{marginLeft:o.size==="small"?-3:-12},o.edge==="end"&&{marginRight:o.size==="small"?-3:-12}),({theme:n,ownerState:o})=>{var i;const s=(i=(n.vars||n).palette)==null?void 0:i[o.color];return P({},o.color==="inherit"&&{color:"inherit"},o.color!=="inherit"&&o.color!=="default"&&P({color:s==null?void 0:s.main},!o.disableRipple&&{"&:hover":P({},s&&{backgroundColor:n.vars?`rgba(${s.mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(s.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),o.size==="small"&&{padding:5,fontSize:n.typography.pxToRem(18)},o.size==="large"&&{padding:12,fontSize:n.typography.pxToRem(28)},{[`&.${Oq.disabled}`]:{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}})}),ui=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiIconButton"}),{edge:l=!1,children:c,className:d,color:f="default",disabled:p=!1,disableFocusRipple:m=!1,size:g="medium"}=s,v=Qe(s,Rq),w=P({},s,{edge:l,color:f,disabled:p,disableFocusRipple:m,size:g}),A=Bq(w);return b.jsx(Tq,P({className:nt(A.root,d),centerRipple:!0,focusRipple:!m,disabled:p,ref:i},v,{ownerState:w,children:c}))}),ZO=x.createContext();function Fq(n){return Kt("MuiTable",n)}Yt("MuiTable",["root","stickyHeader"]);const Dq=["className","component","padding","size","stickyHeader"],Nq=n=>{const{classes:o,stickyHeader:i}=n;return Rt({root:["root",i&&"stickyHeader"]},Fq,o)},$q=_e("table",{name:"MuiTable",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.stickyHeader&&o.stickyHeader]}})(({theme:n,ownerState:o})=>P({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":P({},n.typography.body2,{padding:n.spacing(2),color:(n.vars||n).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},o.stickyHeader&&{borderCollapse:"separate"})),SS="table",eR=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTable"}),{className:l,component:c=SS,padding:d="normal",size:f="medium",stickyHeader:p=!1}=s,m=Qe(s,Dq),g=P({},s,{component:c,padding:d,size:f,stickyHeader:p}),v=Nq(g),w=x.useMemo(()=>({padding:d,size:f,stickyHeader:p}),[d,f,p]);return b.jsx(ZO.Provider,{value:w,children:b.jsx($q,P({as:c,role:c===SS?null:"table",ref:i,className:nt(v.root,l),ownerState:g},m))})}),Ib=x.createContext();function Lq(n){return Kt("MuiTableBody",n)}Yt("MuiTableBody",["root"]);const zq=["className","component"],Hq=n=>{const{classes:o}=n;return Rt({root:["root"]},Lq,o)},Uq=_e("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(n,o)=>o.root})({display:"table-row-group"}),Gq={variant:"body"},IS="tbody",tR=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableBody"}),{className:l,component:c=IS}=s,d=Qe(s,zq),f=P({},s,{component:c}),p=Hq(f);return b.jsx(Ib.Provider,{value:Gq,children:b.jsx(Uq,P({className:nt(p.root,l),as:c,ref:i,role:c===IS?null:"rowgroup",ownerState:f},d))})});function Vq(n){return Kt("MuiTableCell",n)}const Qq=Yt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Wq=["align","className","component","padding","scope","size","sortDirection","variant"],qq=n=>{const{classes:o,variant:i,align:s,padding:l,size:c,stickyHeader:d}=n,f={root:["root",i,d&&"stickyHeader",s!=="inherit"&&`align${Ke(s)}`,l!=="normal"&&`padding${Ke(l)}`,`size${Ke(c)}`]};return Rt(f,Vq,o)},_q=_e("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`size${Ke(i.size)}`],i.padding!=="normal"&&o[`padding${Ke(i.padding)}`],i.align!=="inherit"&&o[`align${Ke(i.align)}`],i.stickyHeader&&o.stickyHeader]}})(({theme:n,ownerState:o})=>P({},n.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:n.vars?`1px solid ${n.vars.palette.TableCell.border}`:`1px solid - ${n.palette.mode==="light"?sb(Lr(n.palette.divider,1),.88):ab(Lr(n.palette.divider,1),.68)}`,textAlign:"left",padding:16},o.variant==="head"&&{color:(n.vars||n).palette.text.primary,lineHeight:n.typography.pxToRem(24),fontWeight:n.typography.fontWeightMedium},o.variant==="body"&&{color:(n.vars||n).palette.text.primary},o.variant==="footer"&&{color:(n.vars||n).palette.text.secondary,lineHeight:n.typography.pxToRem(21),fontSize:n.typography.pxToRem(12)},o.size==="small"&&{padding:"6px 16px",[`&.${Qq.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},o.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},o.padding==="none"&&{padding:0},o.align==="left"&&{textAlign:"left"},o.align==="center"&&{textAlign:"center"},o.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},o.align==="justify"&&{textAlign:"justify"},o.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(n.vars||n).palette.background.default})),Da=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableCell"}),{align:l="inherit",className:c,component:d,padding:f,scope:p,size:m,sortDirection:g,variant:v}=s,w=Qe(s,Wq),A=x.useContext(ZO),k=x.useContext(Ib),C=k&&k.variant==="head";let M;d?M=d:M=C?"th":"td";let S=p;M==="td"?S=void 0:!S&&C&&(S="col");const I=v||k&&k.variant,E=P({},s,{align:l,component:M,padding:f||(A&&A.padding?A.padding:"normal"),size:m||(A&&A.size?A.size:"medium"),sortDirection:g,stickyHeader:I==="head"&&A&&A.stickyHeader,variant:I}),j=qq(E);let B=null;return g&&(B=g==="asc"?"ascending":"descending"),b.jsx(_q,P({as:M,ref:i,className:nt(j.root,c),"aria-sort":B,scope:S,ownerState:E},w))});function Yq(n){return Kt("MuiTableContainer",n)}Yt("MuiTableContainer",["root"]);const Kq=["className","component"],Xq=n=>{const{classes:o}=n;return Rt({root:["root"]},Yq,o)},Jq=_e("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(n,o)=>o.root})({width:"100%",overflowX:"auto"}),rR=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableContainer"}),{className:l,component:c="div"}=s,d=Qe(s,Kq),f=P({},s,{component:c}),p=Xq(f);return b.jsx(Jq,P({ref:i,as:c,className:nt(p.root,l),ownerState:f},d))});function Zq(n){return Kt("MuiTableHead",n)}Yt("MuiTableHead",["root"]);const e_=["className","component"],t_=n=>{const{classes:o}=n;return Rt({root:["root"]},Zq,o)},r_=_e("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(n,o)=>o.root})({display:"table-header-group"}),n_={variant:"head"},ES="thead",o_=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableHead"}),{className:l,component:c=ES}=s,d=Qe(s,e_),f=P({},s,{component:c}),p=t_(f);return b.jsx(Ib.Provider,{value:n_,children:b.jsx(r_,P({as:c,className:nt(p.root,l),ref:i,role:c===ES?null:"rowgroup",ownerState:f},d))})});function i_(n){return Kt("MuiTableRow",n)}const MS=Yt("MuiTableRow",["root","selected","hover","head","footer"]),a_=["className","component","hover","selected"],s_=n=>{const{classes:o,selected:i,hover:s,head:l,footer:c}=n;return Rt({root:["root",i&&"selected",s&&"hover",l&&"head",c&&"footer"]},i_,o)},l_=_e("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.head&&o.head,i.footer&&o.footer]}})(({theme:n})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${MS.hover}:hover`]:{backgroundColor:(n.vars||n).palette.action.hover},[`&.${MS.selected}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}}})),PS="tr",rp=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableRow"}),{className:l,component:c=PS,hover:d=!1,selected:f=!1}=s,p=Qe(s,a_),m=x.useContext(Ib),g=P({},s,{component:c,hover:d,selected:f,head:m&&m.variant==="head",footer:m&&m.variant==="footer"}),v=s_(g);return b.jsx(l_,P({as:c,ref:i,className:nt(v.root,l),role:c===PS?null:"row",ownerState:g},p))});function c_(n){return Kt("MuiTypography",n)}Yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const u_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],d_=n=>{const{align:o,gutterBottom:i,noWrap:s,paragraph:l,variant:c,classes:d}=n,f={root:["root",c,n.align!=="inherit"&&`align${Ke(o)}`,i&&"gutterBottom",s&&"noWrap",l&&"paragraph"]};return Rt(f,c_,d)},f_=_e("span",{name:"MuiTypography",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.variant&&o[i.variant],i.align!=="inherit"&&o[`align${Ke(i.align)}`],i.noWrap&&o.noWrap,i.gutterBottom&&o.gutterBottom,i.paragraph&&o.paragraph]}})(({theme:n,ownerState:o})=>P({margin:0},o.variant==="inherit"&&{font:"inherit"},o.variant!=="inherit"&&n.typography[o.variant],o.align!=="inherit"&&{textAlign:o.align},o.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},o.gutterBottom&&{marginBottom:"0.35em"},o.paragraph&&{marginBottom:16})),jS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},p_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},h_=n=>p_[n]||n,Tt=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTypography"}),l=h_(s.color),c=cm(P({},s,{color:l})),{align:d="inherit",className:f,component:p,gutterBottom:m=!1,noWrap:g=!1,paragraph:v=!1,variant:w="body1",variantMapping:A=jS}=c,k=Qe(c,u_),C=P({},c,{align:d,color:l,className:f,component:p,gutterBottom:m,noWrap:g,paragraph:v,variant:w,variantMapping:A}),M=p||(v?"p":A[w]||jS[w])||"span",S=d_(C);return b.jsx(f_,P({as:M,ref:i,ownerState:C,className:nt(S.root,f)},k))});function m_(n){return Kt("MuiPaper",n)}Yt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const g_=["className","component","elevation","square","variant"],v_=n=>{const{square:o,elevation:i,variant:s,classes:l}=n,c={root:["root",s,!o&&"rounded",s==="elevation"&&`elevation${i}`]};return Rt(c,m_,l)},b_=_e("div",{name:"MuiPaper",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],!i.square&&o.rounded,i.variant==="elevation"&&o[`elevation${i.elevation}`]]}})(({theme:n,ownerState:o})=>{var i;return P({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!o.square&&{borderRadius:n.shape.borderRadius},o.variant==="outlined"&&{border:`1px solid ${(n.vars||n).palette.divider}`},o.variant==="elevation"&&P({boxShadow:(n.vars||n).shadows[o.elevation]},!n.vars&&n.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Lr("#fff",wS(o.elevation))}, ${Lr("#fff",wS(o.elevation))})`},n.vars&&{backgroundImage:(i=n.vars.overlays)==null?void 0:i[o.elevation]}))}),yl=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiPaper"}),{className:l,component:c="div",elevation:d=1,square:f=!1,variant:p="elevation"}=s,m=Qe(s,g_),g=P({},s,{component:c,elevation:d,square:f,variant:p}),v=v_(g);return b.jsx(b_,P({as:c,ownerState:g,className:nt(v.root,l),ref:i},m))});var X5={},Uw={};const w_=Pu(cq);var OS;function di(){return OS||(OS=1,function(n){"use client";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=w_}(Uw)),Uw}var x_=Uo;Object.defineProperty(X5,"__esModule",{value:!0});var J5=X5.default=void 0,y_=x_(di()),A_=b;J5=X5.default=(0,y_.default)((0,A_.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var Z5={},C_=Uo;Object.defineProperty(Z5,"__esModule",{value:!0});var eA=Z5.default=void 0,k_=C_(di()),S_=b;eA=Z5.default=(0,k_.default)((0,S_.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");function I_(n){return Kt("MuiLink",n)}const E_=Yt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),nR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},M_=n=>nR[n]||n,P_=({theme:n,ownerState:o})=>{const i=M_(o.color),s=q2(n,`palette.${i}`,!1)||o.color,l=q2(n,`palette.${i}Channel`);return"vars"in n&&l?`rgba(${l} / 0.4)`:Lr(s,.4)},j_=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],O_=n=>{const{classes:o,component:i,focusVisible:s,underline:l}=n,c={root:["root",`underline${Ke(l)}`,i==="button"&&"button",s&&"focusVisible"]};return Rt(c,I_,o)},R_=_e(Tt,{name:"MuiLink",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`underline${Ke(i.underline)}`],i.component==="button"&&o.button]}})(({theme:n,ownerState:o})=>P({},o.underline==="none"&&{textDecoration:"none"},o.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},o.underline==="always"&&P({textDecoration:"underline"},o.color!=="inherit"&&{textDecorationColor:P_({theme:n,ownerState:o})},{"&:hover":{textDecorationColor:"inherit"}}),o.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${E_.focusVisible}`]:{outline:"auto"}})),A0=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiLink"}),{className:l,color:c="primary",component:d="a",onBlur:f,onFocus:p,TypographyClasses:m,underline:g="always",variant:v="inherit",sx:w}=s,A=Qe(s,j_),{isFocusVisibleRef:k,onBlur:C,onFocus:M,ref:S}=ib(),[I,E]=x.useState(!1),j=Xn(i,S),B=H=>{C(H),k.current===!1&&E(!1),f&&f(H)},F=H=>{M(H),k.current===!0&&E(!0),p&&p(H)},O=P({},s,{color:c,component:d,focusVisible:I,underline:g,variant:v}),N=O_(O);return b.jsx(R_,P({color:c,className:nt(N.root,l),classes:m,component:d,onBlur:B,onFocus:F,ref:j,ownerState:O,variant:v,sx:[...Object.keys(nR).includes(c)?[]:[{color:c}],...Array.isArray(w)?w:[w]]},A))});var tA={},B_=Uo;Object.defineProperty(tA,"__esModule",{value:!0});var oR=tA.default=void 0,T_=B_(di()),F_=b;oR=tA.default=(0,T_.default)((0,F_.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");var rA={},D_=Uo;Object.defineProperty(rA,"__esModule",{value:!0});var iR=rA.default=void 0,N_=D_(di()),$_=b;iR=rA.default=(0,N_.default)((0,$_.jsx)("path",{d:"M3 5v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2m13.3 11.29c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41L10.59 12 7.7 9.11a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41L13.41 12l2.89 2.88c.38.39.38 1.03 0 1.41"}),"DisabledByDefaultRounded");function eo(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;sn.length)&&(o=n.length);for(var i=0,s=Array(o);i=n.length?{done:!0}:{done:!1,value:n[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bf(){return bf=Object.assign?Object.assign.bind():function(n){for(var o=1;os&&(s=f.dependenciesState_)}for(i.length=l,n.newObserving_=null,c=o.length;c--;){var p=o[c];p.diffValue===0&&PR(p,n),p.diffValue=0}for(;l--;){var m=i[l];m.diffValue===1&&(m.diffValue=0,VY(m,n))}s!==po.UP_TO_DATE_&&(n.dependenciesState_=s,n.onBecomeStale_())}function $y(n){var o=n.observing_;n.observing_=[];for(var i=o.length;i--;)PR(o[i],n);n.dependenciesState_=po.NOT_TRACKING_}function IR(n){var o=Ff();try{return n()}finally{du(o)}}function Ff(){var n=_t.trackingDerivation;return _t.trackingDerivation=null,n}function du(n){_t.trackingDerivation=n}function lA(n){var o=_t.allowStateReads;return _t.allowStateReads=n,o}function lh(n){_t.allowStateReads=n}function ER(n){if(n.dependenciesState_!==po.UP_TO_DATE_){n.dependenciesState_=po.UP_TO_DATE_;for(var o=n.observing_,i=o.length;i--;)o[i].lowestObserverState_=po.UP_TO_DATE_}}var ov=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},iv=!0,MR=!1,_t=function(){var n=nA();return n.__mobxInstanceCount>0&&!n.__mobxGlobals&&(iv=!1),n.__mobxGlobals&&n.__mobxGlobals.version!==new ov().version&&(iv=!1),iv?n.__mobxGlobals?(n.__mobxInstanceCount+=1,n.__mobxGlobals.UNCHANGED||(n.__mobxGlobals.UNCHANGED={}),n.__mobxGlobals):(n.__mobxInstanceCount=1,n.__mobxGlobals=new ov):(setTimeout(function(){MR||eo(35)},1),new ov)}();function GY(){if((_t.pendingReactions.length||_t.inBatch||_t.isRunningReactions)&&eo(36),MR=!0,iv){var n=nA();--n.__mobxInstanceCount===0&&(n.__mobxGlobals=void 0),_t=new ov}}function VY(n,o){n.observers_.add(o),n.lowestObserverState_>o.dependenciesState_&&(n.lowestObserverState_=o.dependenciesState_)}function PR(n,o){n.observers_.delete(o),n.observers_.size===0&&jR(n)}function jR(n){n.isPendingUnobservation===!1&&(n.isPendingUnobservation=!0,_t.pendingUnobservations.push(n))}function b1(){_t.inBatch++}function w1(){if(--_t.inBatch===0){BR();for(var n=_t.pendingUnobservations,o=0;o0&&jR(n),!1)}function RR(n){n.lowestObserverState_!==po.STALE_&&(n.lowestObserverState_=po.STALE_,n.observers_.forEach(function(o){o.dependenciesState_===po.UP_TO_DATE_&&o.onBecomeStale_(),o.dependenciesState_=po.STALE_}))}function QY(n){n.lowestObserverState_!==po.STALE_&&(n.lowestObserverState_=po.STALE_,n.observers_.forEach(function(o){o.dependenciesState_===po.POSSIBLY_STALE_?o.dependenciesState_=po.STALE_:o.dependenciesState_===po.UP_TO_DATE_&&(n.lowestObserverState_=po.UP_TO_DATE_)}))}function WY(n){n.lowestObserverState_===po.UP_TO_DATE_&&(n.lowestObserverState_=po.POSSIBLY_STALE_,n.observers_.forEach(function(o){o.dependenciesState_===po.UP_TO_DATE_&&(o.dependenciesState_=po.POSSIBLY_STALE_,o.onBecomeStale_())}))}var Su=function(){function n(i,s,l,c){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=po.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Zv.NONE,this.name_=i,this.onInvalidate_=s,this.errorHandler_=l,this.requiresObservable_=c}var o=n.prototype;return o.onBecomeStale_=function(){this.schedule_()},o.schedule_=function(){this.isScheduled||(this.isScheduled=!0,_t.pendingReactions.push(this),BR())},o.runReaction_=function(){if(!this.isDisposed){b1(),this.isScheduled=!1;var s=_t.trackingContext;if(_t.trackingContext=this,Ny(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(l){this.reportExceptionInDerivation_(l)}}_t.trackingContext=s,w1()}},o.track=function(s){if(!this.isDisposed){b1(),this.isRunning=!0;var l=_t.trackingContext;_t.trackingContext=this;var c=SR(this,s,void 0);_t.trackingContext=l,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&$y(this),nv(c)&&this.reportExceptionInDerivation_(c.cause),w1()}},o.reportExceptionInDerivation_=function(s){var l=this;if(this.errorHandler_){this.errorHandler_(s,this);return}if(_t.disableErrorBoundaries)throw s;var c="[mobx] uncaught error in '"+this+"'";_t.suppressReactionErrors||console.error(c,s),_t.globalReactionErrorHandlers.forEach(function(d){return d(s,l)})},o.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(b1(),$y(this),w1()))},o.getDisposer_=function(s){var l=this,c=function d(){l.dispose(),s==null||s.removeEventListener==null||s.removeEventListener("abort",d)};return s==null||s.addEventListener==null||s.addEventListener("abort",c),c[Fr]=this,c},o.toString=function(){return"Reaction["+this.name_+"]"},o.trace=function(s){},Ep(n,[{key:"isDisposed",get:function(){return Tl(this.flags_,n.isDisposedMask_)},set:function(s){this.flags_=Fl(this.flags_,n.isDisposedMask_,s)}},{key:"isScheduled",get:function(){return Tl(this.flags_,n.isScheduledMask_)},set:function(s){this.flags_=Fl(this.flags_,n.isScheduledMask_,s)}},{key:"isTrackPending",get:function(){return Tl(this.flags_,n.isTrackPendingMask_)},set:function(s){this.flags_=Fl(this.flags_,n.isTrackPendingMask_,s)}},{key:"isRunning",get:function(){return Tl(this.flags_,n.isRunningMask_)},set:function(s){this.flags_=Fl(this.flags_,n.isRunningMask_,s)}},{key:"diffValue",get:function(){return Tl(this.flags_,n.diffValueMask_)?1:0},set:function(s){this.flags_=Fl(this.flags_,n.diffValueMask_,s===1)}}])}();Su.isDisposedMask_=1;Su.isScheduledMask_=2;Su.isTrackPendingMask_=4;Su.isRunningMask_=8;Su.diffValueMask_=16;var qY=100,Ly=function(o){return o()};function BR(){_t.inBatch>0||_t.isRunningReactions||Ly(_Y)}function _Y(){_t.isRunningReactions=!0;for(var n=_t.pendingReactions,o=0;n.length>0;){++o===qY&&(console.error("[mobx] cycle in reaction: "+n[0]),n.splice(0));for(var i=n.splice(0),s=0,l=i.length;s0&&(o.dependencies=dK(n.observing_).map(HR)),o}function dK(n){return Array.from(new Set(n))}var fK=0;function UR(){this.message="FLOW_CANCELLED"}UR.prototype=Object.create(Error.prototype);var Gw=vR("flow"),pK=vR("flow.bound",{bound:!0}),op=Object.assign(function(o,i){if(ym(i))return Gw.decorate_20223_(o,i);if(vf(i))return Mp(o,i,Gw);var s=o,l=s.name||"",c=function(){var f=this,p=arguments,m=++fK,g=xo(l+" - runid: "+m+" - init",s).apply(f,p),v,w=void 0,A=new Promise(function(k,C){var M=0;v=C;function S(j){w=void 0;var B;try{B=xo(l+" - runid: "+m+" - yield "+M++,g.next).call(g,j)}catch(F){return C(F)}E(B)}function I(j){w=void 0;var B;try{B=xo(l+" - runid: "+m+" - yield "+M++,g.throw).call(g,j)}catch(F){return C(F)}E(B)}function E(j){if(sc(j==null?void 0:j.then)){j.then(E,C);return}return j.done?k(j.value):(w=Promise.resolve(j.value),w.then(S,I))}S(void 0)});return A.cancel=xo(l+" - runid: "+m+" - cancel",function(){try{w&&DS(w);var k=g.return(void 0),C=Promise.resolve(k.value);C.then(S2,S2),DS(C),v(new UR)}catch(M){v(M)}}),A};return c.isMobXFlow=!0,c},Gw);op.bound=Dc(pK);function DS(n){sc(n.cancel)&&n.cancel()}function Vh(n){return(n==null?void 0:n.isMobXFlow)===!0}function hK(n,o){return n?Pm(n)||!!n[Fr]||oA(n)||t3(n)||km(n):!1}function cA(n){return hK(n)}function mK(n){if(Pm(n))return n[Fr].ownKeys_();eo(38)}function Ag(n,o,i){return n.set(o,i),i}function a2(n,o){if(n==null||typeof n!="object"||n instanceof Date||!cA(n))return n;if(HY(n)||km(n))return a2(n.get(),o);if(o.has(n))return o.get(n);if(Mm(n)){var i=Ag(o,n,new Array(n.length));return n.forEach(function(d,f){i[f]=a2(d,o)}),i}if(Df(n)){var s=Ag(o,n,new Set);return n.forEach(function(d){s.add(a2(d,o))}),s}if(Td(n)){var l=Ag(o,n,new Map);return n.forEach(function(d,f){l.set(f,a2(d,o))}),l}else{var c=Ag(o,n,{});return mK(n).forEach(function(d){wm.propertyIsEnumerable.call(n,d)&&(c[d]=a2(n[d],o))}),c}}function yf(n,o){return a2(n,new Map)}function ru(n,o){o===void 0&&(o=void 0),b1();try{return n.apply(o)}finally{w1()}}function Jf(n){return n[Fr]}var gK={has:function(o,i){return Jf(o).has_(i)},get:function(o,i){return Jf(o).get_(i)},set:function(o,i,s){var l;return vf(i)?(l=Jf(o).set_(i,s,!0))!=null?l:!0:!1},deleteProperty:function(o,i){var s;return vf(i)?(s=Jf(o).delete_(i,!0))!=null?s:!0:!1},defineProperty:function(o,i,s){var l;return(l=Jf(o).defineProperty_(i,s))!=null?l:!0},ownKeys:function(o){return Jf(o).ownKeys_()},preventExtensions:function(o){eo(13)}};function vK(n,o){var i,s;return lR(),n=Nf(n,o),(s=(i=n[Fr]).proxy_)!=null?s:i.proxy_=new Proxy(n,gK)}function m1(n){return n.interceptors_!==void 0&&n.interceptors_.length>0}function Sm(n,o){var i=n.interceptors_||(n.interceptors_=[]);return i.push(o),cR(function(){var s=i.indexOf(o);s!==-1&&i.splice(s,1)})}function g1(n,o){var i=Ff();try{for(var s=[].concat(n.interceptors_||[]),l=0,c=s.length;l0}function Im(n,o){var i=n.changeListeners_||(n.changeListeners_=[]);return i.push(o),cR(function(){var s=i.indexOf(o);s!==-1&&i.splice(s,1)})}function ec(n,o){var i=Ff(),s=n.changeListeners_;if(s){s=s.slice();for(var l=0,c=s.length;l0?s.map(this.dehancer):s},o.intercept_=function(s){return Sm(this,s)},o.observe_=function(s,l){return l===void 0&&(l=!1),l&&s({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Im(this,s)},o.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},o.setArrayLength_=function(s){(typeof s!="number"||isNaN(s)||s<0)&&eo("Out of range: "+s);var l=this.values_.length;if(s!==l)if(s>l){for(var c=new Array(s-l),d=0;d0&&YR(s+l+1)},o.spliceWithArray_=function(s,l,c){var d=this;this.atom_;var f=this.values_.length;if(s===void 0?s=0:s>f?s=f:s<0&&(s=Math.max(0,f+s)),arguments.length===1?l=f-s:l==null?l=0:l=Math.max(0,Math.min(l,f-s)),c===void 0&&(c=By),m1(this)){var p=g1(this,{object:this.proxy_,type:NS,index:s,removedCount:l,added:c});if(!p)return By;l=p.removedCount,c=p.added}if(c=c.length===0?c:c.map(function(v){return d.enhancer_(v,void 0)}),this.legacyMode_){var m=c.length-l;this.updateArrayLength_(f,m)}var g=this.spliceItemsIntoValues_(s,l,c);return(l!==0||c.length!==0)&&this.notifyArraySplice_(s,c,g),this.dehanceValues_(g)},o.spliceItemsIntoValues_=function(s,l,c){if(c.length=this.values_.length){console.warn("[mobx] Out of bounds read: "+s);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[s])},o.set_=function(s,l){var c=this.values_;if(this.legacyMode_&&s>c.length&&eo(17,s,c.length),s2?s-2:0),c=2;c-1?(this.splice(s,1),!0):!1}};fi("at",_l);fi("concat",_l);fi("flat",_l);fi("includes",_l);fi("indexOf",_l);fi("join",_l);fi("lastIndexOf",_l);fi("slice",_l);fi("toString",_l);fi("toLocaleString",_l);fi("toSorted",_l);fi("toSpliced",_l);fi("with",_l);fi("every",uc);fi("filter",uc);fi("find",uc);fi("findIndex",uc);fi("findLast",uc);fi("findLastIndex",uc);fi("flatMap",uc);fi("forEach",uc);fi("map",uc);fi("some",uc);fi("toReversed",uc);fi("reduce",GR);fi("reduceRight",GR);function fi(n,o){typeof Array.prototype[n]=="function"&&(r3[n]=o(n))}function _l(n){return function(){var o=this[Fr];o.atom_.reportObserved();var i=o.dehanceValues_(o.values_);return i[n].apply(i,arguments)}}function uc(n){return function(o,i){var s=this,l=this[Fr];l.atom_.reportObserved();var c=l.dehanceValues_(l.values_);return c[n](function(d,f){return o.call(i,d,f,s)})}}function GR(n){return function(){var o=this,i=this[Fr];i.atom_.reportObserved();var s=i.dehanceValues_(i.values_),l=arguments[0];return arguments[0]=function(c,d,f){return l(c,d,f,o)},s[n].apply(s,arguments)}}var AK=Rd("ObservableArrayAdministration",uA);function Mm(n){return Eb(n)&&AK(n[Fr])}var CK={},ad="add",n3="delete",VR=function(){function n(i,s,l){var c=this;s===void 0&&(s=wf),l===void 0&&(l="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Fr]=CK,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=s,this.name_=l,sc(Map)||eo(18),Fd(function(){c.keysAtom_=mR("ObservableMap.keys()"),c.data_=new Map,c.hasMap_=new Map,i&&c.merge(i)})}var o=n.prototype;return o.has_=function(s){return this.data_.has(s)},o.has=function(s){var l=this;if(!_t.trackingDerivation)return this.has_(s);var c=this.hasMap_.get(s);if(!c){var d=c=new xd(this.has_(s),Mb,"ObservableMap.key?",!1);this.hasMap_.set(s,d),$R(d,function(){return l.hasMap_.delete(s)})}return c.get()},o.set=function(s,l){var c=this.has_(s);if(m1(this)){var d=g1(this,{type:c?Nc:ad,object:this,newValue:l,name:s});if(!d)return this;l=d.newValue}return c?this.updateValue_(s,l):this.addValue_(s,l),this},o.delete=function(s){var l=this;if(this.keysAtom_,m1(this)){var c=g1(this,{type:n3,object:this,name:s});if(!c)return!1}if(this.has_(s)){var d=ch(),f=Z1(this),p=f||d?{observableKind:"map",debugObjectName:this.name_,type:n3,object:this,oldValue:this.data_.get(s).value_,name:s}:null;return ru(function(){var m;l.keysAtom_.reportChanged(),(m=l.hasMap_.get(s))==null||m.setNewValue_(!1);var g=l.data_.get(s);g.setNewValue_(void 0),l.data_.delete(s)}),f&&ec(this,p),!0}return!1},o.updateValue_=function(s,l){var c=this.data_.get(s);if(l=c.prepareNewValue_(l),l!==_t.UNCHANGED){var d=ch(),f=Z1(this),p=f||d?{observableKind:"map",debugObjectName:this.name_,type:Nc,object:this,oldValue:c.value_,name:s,newValue:l}:null;c.setNewValue_(l),f&&ec(this,p)}},o.addValue_=function(s,l){var c=this;this.keysAtom_,ru(function(){var m,g=new xd(l,c.enhancer_,"ObservableMap.key",!1);c.data_.set(s,g),l=g.value_,(m=c.hasMap_.get(s))==null||m.setNewValue_(!0),c.keysAtom_.reportChanged()});var d=ch(),f=Z1(this),p=f||d?{observableKind:"map",debugObjectName:this.name_,type:ad,object:this,name:s,newValue:l}:null;f&&ec(this,p)},o.get=function(s){return this.has(s)?this.dehanceValue_(this.data_.get(s).get()):this.dehanceValue_(void 0)},o.dehanceValue_=function(s){return this.dehancer!==void 0?this.dehancer(s):s},o.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},o.values=function(){var s=this,l=this.keys();return Qh({next:function(){var d=l.next(),f=d.done,p=d.value;return{done:f,value:f?void 0:s.get(p)}}})},o.entries=function(){var s=this,l=this.keys();return Qh({next:function(){var d=l.next(),f=d.done,p=d.value;return{done:f,value:f?void 0:[p,s.get(p)]}}})},o[Symbol.iterator]=function(){return this.entries()},o.forEach=function(s,l){for(var c=I2(this),d;!(d=c()).done;){var f=d.value,p=f[0],m=f[1];s.call(l,m,p,this)}},o.merge=function(s){var l=this;return Td(s)&&(s=new Map(s)),ru(function(){ku(s)?G_(s).forEach(function(c){return l.set(c,s[c])}):Array.isArray(s)?s.forEach(function(c){var d=c[0],f=c[1];return l.set(d,f)}):Ip(s)?(U_(s)||eo(19,s),s.forEach(function(c,d){return l.set(d,c)})):s!=null&&eo(20,s)}),this},o.clear=function(){var s=this;ru(function(){IR(function(){for(var l=I2(s.keys()),c;!(c=l()).done;){var d=c.value;s.delete(d)}})})},o.replace=function(s){var l=this;return ru(function(){for(var c=kK(s),d=new Map,f=!1,p=I2(l.data_.keys()),m;!(m=p()).done;){var g=m.value;if(!c.has(g)){var v=l.delete(g);if(v)f=!0;else{var w=l.data_.get(g);d.set(g,w)}}}for(var A=I2(c.entries()),k;!(k=A()).done;){var C=k.value,M=C[0],S=C[1],I=l.data_.has(M);if(l.set(M,S),l.data_.has(M)){var E=l.data_.get(M);d.set(M,E),I||(f=!0)}}if(!f)if(l.data_.size!==d.size)l.keysAtom_.reportChanged();else for(var j=l.data_.keys(),B=d.keys(),F=j.next(),O=B.next();!F.done;){if(F.value!==O.value){l.keysAtom_.reportChanged();break}F=j.next(),O=B.next()}l.data_=d}),this},o.toString=function(){return"[object ObservableMap]"},o.toJSON=function(){return Array.from(this)},o.observe_=function(s,l){return Im(this,s)},o.intercept_=function(s){return Sm(this,s)},Ep(n,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Td=Rd("ObservableMap",VR);function kK(n){if(Ip(n)||Td(n))return n;if(Array.isArray(n))return new Map(n);if(ku(n)){var o=new Map;for(var i in n)o.set(i,n[i]);return o}else return eo(21,n)}var SK={},QR=function(){function n(i,s,l){var c=this;s===void 0&&(s=wf),l===void 0&&(l="ObservableSet"),this.name_=void 0,this[Fr]=SK,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=l,sc(Set)||eo(22),this.enhancer_=function(d,f){return s(d,f,l)},Fd(function(){c.atom_=mR(c.name_),i&&c.replace(i)})}var o=n.prototype;return o.dehanceValue_=function(s){return this.dehancer!==void 0?this.dehancer(s):s},o.clear=function(){var s=this;ru(function(){IR(function(){for(var l=I2(s.data_.values()),c;!(c=l()).done;){var d=c.value;s.delete(d)}})})},o.forEach=function(s,l){for(var c=I2(this),d;!(d=c()).done;){var f=d.value;s.call(l,f,f,this)}},o.add=function(s){var l=this;if(this.atom_,m1(this)){var c=g1(this,{type:ad,object:this,newValue:s});if(!c)return this}if(!this.has(s)){ru(function(){l.data_.add(l.enhancer_(s,void 0)),l.atom_.reportChanged()});var d=!1,f=Z1(this),p=f||d?{observableKind:"set",debugObjectName:this.name_,type:ad,object:this,newValue:s}:null;f&&ec(this,p)}return this},o.delete=function(s){var l=this;if(m1(this)){var c=g1(this,{type:n3,object:this,oldValue:s});if(!c)return!1}if(this.has(s)){var d=!1,f=Z1(this),p=f||d?{observableKind:"set",debugObjectName:this.name_,type:n3,object:this,oldValue:s}:null;return ru(function(){l.atom_.reportChanged(),l.data_.delete(s)}),f&&ec(this,p),!0}return!1},o.has=function(s){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(s))},o.entries=function(){var s=0,l=Array.from(this.keys()),c=Array.from(this.values());return Qh({next:function(){var f=s;return s+=1,fQw){for(var o=Qw;o=0&&i++;break}n=GS(n),o=GS(o);var f=d==="[object Array]";if(!f){if(typeof n!="object"||typeof o!="object")return!1;var p=n.constructor,m=o.constructor;if(p!==m&&!(sc(p)&&p instanceof p&&sc(m)&&m instanceof m)&&"constructor"in n&&"constructor"in o)return!1}if(i===0)return!1;i<0&&(i=-1),s=s||[],l=l||[];for(var g=s.length;g--;)if(s[g]===n)return l[g]===o;if(s.push(n),l.push(o),f){if(g=n.length,g!==o.length)return!1;for(;g--;)if(!Gy(n[g],o[g],i-1,s,l))return!1}else{var v=Object.keys(n),w;if(g=v.length,Object.keys(o).length!==g)return!1;for(;g--;)if(w=v[g],!(uu(o,w)&&Gy(n[w],o[w],i-1,s,l)))return!1}return s.pop(),l.pop(),!0}function GS(n){return Mm(n)?n.slice():Ip(n)||Td(n)||tu(n)||Df(n)?Array.from(n.entries()):n}function Qh(n){return n[Symbol.iterator]=BK,n}function BK(){return this}["Symbol","Map","Set"].forEach(function(n){var o=nA();typeof o[n]>"u"&&eo("MobX requires global '"+n+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:KY,extras:{getDebugName:Uy},$mobx:Fr});const El="https://libererisas-backend.onrender.com/api/Item";class TK{constructor(){li(this,"pendingItemsList",[]);li(this,"mediaList",[]);li(this,"mediaList2",[]);li(this,"add",!1);li(this,"isUpdate");li(this,"isDeleteItem");li(this,"isDeleteTag");li(this,"isError");li(this,"isApprov",!1);li(this,"uploadedProduct",null);li(this,"setUploadedProduct",o=>{Pc(()=>{console.log("Setting uploadedProduct in store:",o),this.uploadedProduct=o})});li(this,"validateToken",async()=>{const o=sessionStorage.getItem("jwt");if(!o)return!1;try{const i=await axios.post("https://foirstein-1-back.onrender.com/api/validate-token",{token:o});return console.log("token::::::",i),i}catch(i){return console.error("Error validating token:",i),!1}});bK(this,{isDeleteItem:Kn,uploadedProduct:Kn,isDeleteTag:Kn,mediaList:Kn,isAdd:Kn,isUpdate:Kn,isDelete:Kn,isError:Kn,setAdd:xo,add:Kn,fetchMedia:xo,updateMedia:xo,isApprov:Kn,pendingItemsList:Kn,fetchPendingItems:xo,approvalItem:xo,deniedItem:xo,deleteMedia:xo,isAddItemTag:Kn,addItemTag:xo,uploadMediaObject:xo,setUploadedProduct:xo,fetchMedia:xo,uploadMediaFile:xo,uploadMediaBook:xo}),this.fetchPendingItems(),this.fetchMedia()}async deleteTag(o,i){console.log("hiiDeleteTag");try{const s=await fetch(`${El}/${o}/${i}`,{method:"DELETE"});console.log("delete tag:"),s.status===200?this.isDeleteTag=!0:this.isDeleteTag=!1,this.fetchMedia()}catch(s){console.error("Failed to delete media:",s)}}get getPendingList(){return this.pendingItemsList}async fetchPendingItems(){try{const i=await(await fetch(`${El}/Pending`)).json();let s=yf(i);this.pendingItemsList=s,console.log(s),console.log(yf(i))}catch(o){console.error("Failed to fetch media:",o)}}async approvalItem(o){console.log(o);try{const i=await fetch(`${El}/approvItem/${o}`,{method:"PUT"});console.log("status:"+i.status),i.status===200&&(this.isApprov=!0,await Ur.fetchPendingItems()),this.fetchPendingItems()}catch(i){console.error("Failed to approv the item:",i)}}async deniedItem(o){console.log(o),this.isDeind=!1;try{(await fetch(`${El}/deny/${o}`,{method:"PUT"})).status===200?this.isDeind=!0:this.isUpdate=!1,this.fetchPendingItems()}catch(i){console.error("Failed to approv the item:",i)}}async fetchMedia(){try{const i=await(await fetch(El)).json();this.mediaList=i.data}catch(o){console.error("Failed to fetch media:",o)}}async uploadMediaFile(o){try{(await fetch(`${El}/file`,{method:"POST",body:o})).status===200?this.isError=!1:this.isError=!0,this.fetchMedia()}catch(i){console.error("Failed to upload media:",i),this.isError=!0}}async uploadMediaBook(o){try{(await fetch(`${El}/book`,{method:"POST",body:o})).status===200?this.isError=!1:this.isError=!0,this.fetchMedia()}catch(i){console.error("Failed to upload media:",i),this.isError=!0}}async deleteMedia(o){console.log("hiiDeleteMedia!!!!!!!!");try{(await fetch(`${El}/${o}`,{method:"DELETE"})).status===200?this.isDeleteItem=!0:this.isDeleteItem=!1,this.fetchMedia()}catch(i){console.error("Failed to delete media:",i)}}async uploadMediaObject(o){try{const i=await fetch(`${El}/physicalItem`,{method:"POST",body:o}),s=await i.json();return console.log("Response from server:",s),i.status===200?(Pc(()=>{this.isError=!1,this.setUploadedProduct({id:s.data.id,title:s.data.title,location:s.data.filePath}),this.fetchMedia()}),s):(Pc(()=>{this.isError=!0,console.log("isError",this.isError)}),null)}catch(i){return console.error("Failed to upload media:",i),Pc(()=>{this.isError=!0}),null}}async updateMediaObject(o,i){try{console.log("formData: ",i,"beforeFetch");const s=await fetch(`${El}/physicalItem/${o}`,{method:"PUT",body:i});console.log("formData: ",i,"afterFetch"),this.fetchMedia(),s.status===200?this.isUpdateObject=!0:this.isUpdateObject=!1}catch(s){console.error("Failed to update media:",s)}}async updateMediaBook(o,i){try{console.log("formData: ",i,"beforeFetch");const s=await fetch(`${El}/book/${o}`,{method:"PUT",body:i});console.log("formData: ",i,"afterFetch"),this.fetchMedia(),s.status===200?this.isUpdate=!0:this.isUpdate=!1}catch(s){console.error("Failed to update media:",s)}}async updateMediaFile(o,i){try{console.log("formData: ",i,"beforeFetch");const s=await fetch(`${El}/file/${o}`,{method:"PUT",body:i});console.log("formData: ",i,"afterFetch"),this.fetchMedia(),s.status===200?this.isUpdate=!0:this.isUpdate=!1}catch(s){console.error("Failed to update media:",s)}}async addItemTag(o,i){try{const s=await fetch(`${El}/${o}/${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({itemId:o,tagId:i})});console.log("add item tag:"+s.status),s.status===200?this.isAddItemTag=!0:this.isAddItemTag=!1,this.fetchMedia()}catch(s){console.error("Failed to add item tag:",s)}}updateItem(o){const i=this.mediaList.findIndex(s=>s.id===o.id);i>-1&&(this.mediaList[i]={...this.mediaList[i],...o})}}const Ur=new TK;if(!x.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Em)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function FK(n){n()}function DK(n){n||(n=FK),cK({reactionScheduler:n})}function NK(n){return uK(n)}var $K=1e4,LK=1e4,zK=function(){function n(o){var i=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(s){s===void 0&&(s=$K),clearTimeout(i.sweepTimeout),i.sweepTimeout=void 0;var l=Date.now();i.registrations.forEach(function(c,d){l-c.registeredAt>=s&&(i.finalize(c.value),i.registrations.delete(d))}),i.registrations.size>0&&i.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){i.sweep(0)}})}return Object.defineProperty(n.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(o,i,s){this.registrations.set(s,{value:i,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(n.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(o){this.registrations.delete(o)}}),Object.defineProperty(n.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,LK))}}),n}(),HK=typeof FinalizationRegistry<"u"?FinalizationRegistry:zK,Vy=new HK(function(n){var o;(o=n.reaction)===null||o===void 0||o.dispose(),n.reaction=null}),KR={exports:{}},XR={};/** +`),l1.rippleVisible,Bq,Ty,({theme:n})=>n.transitions.easing.easeInOut,l1.ripplePulsate,({theme:n})=>n.transitions.duration.shorter,l1.child,l1.childLeaving,Tq,Ty,({theme:n})=>n.transitions.easing.easeInOut,l1.childPulsate,Fq,({theme:n})=>n.transitions.easing.easeInOut),$q=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTouchRipple"}),{center:l=!1,classes:c={},className:d}=s,f=Qe(s,Oq),[p,m]=x.useState([]),g=x.useRef(0),v=x.useRef(null);x.useEffect(()=>{v.current&&(v.current(),v.current=null)},[p]);const w=x.useRef(!1),A=Fl(),k=x.useRef(null),C=x.useRef(null),M=x.useCallback(j=>{const{pulsate:B,rippleX:D,rippleY:R,rippleSize:N,cb:U}=j;m(L=>[...L,b.jsx(Nq,{classes:{ripple:nt(c.ripple,l1.ripple),rippleVisible:nt(c.rippleVisible,l1.rippleVisible),ripplePulsate:nt(c.ripplePulsate,l1.ripplePulsate),child:nt(c.child,l1.child),childLeaving:nt(c.childLeaving,l1.childLeaving),childPulsate:nt(c.childPulsate,l1.childPulsate)},timeout:Ty,pulsate:B,rippleX:D,rippleY:R,rippleSize:N},g.current)]),g.current+=1,v.current=U},[c]),S=x.useCallback((j={},B={},D=()=>{})=>{const{pulsate:R=!1,center:N=l||B.pulsate,fakeElement:U=!1}=B;if((j==null?void 0:j.type)==="mousedown"&&w.current){w.current=!1;return}(j==null?void 0:j.type)==="touchstart"&&(w.current=!0);const L=U?null:C.current,_=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,$,z;if(N||j===void 0||j.clientX===0&&j.clientY===0||!j.clientX&&!j.touches)V=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:Q,clientY:G}=j.touches&&j.touches.length>0?j.touches[0]:j;V=Math.round(Q-_.left),$=Math.round(G-_.top)}if(N)z=Math.sqrt((2*_.width**2+_.height**2)/3),z%2===0&&(z+=1);else{const Q=Math.max(Math.abs((L?L.clientWidth:0)-V),V)*2+2,G=Math.max(Math.abs((L?L.clientHeight:0)-$),$)*2+2;z=Math.sqrt(Q**2+G**2)}j!=null&&j.touches?k.current===null&&(k.current=()=>{M({pulsate:R,rippleX:V,rippleY:$,rippleSize:z,cb:D})},A.start(Rq,()=>{k.current&&(k.current(),k.current=null)})):M({pulsate:R,rippleX:V,rippleY:$,rippleSize:z,cb:D})},[l,M,A]),I=x.useCallback(()=>{S({},{pulsate:!0})},[S]),E=x.useCallback((j,B)=>{if(A.clear(),(j==null?void 0:j.type)==="touchend"&&k.current){k.current(),k.current=null,A.start(0,()=>{E(j,B)});return}k.current=null,m(D=>D.length>0?D.slice(1):D),v.current=B},[A]);return x.useImperativeHandle(i,()=>({pulsate:I,start:S,stop:E}),[I,S,E]),b.jsx(Dq,P({className:nt(l1.root,c.root,d),ref:C},f,{children:b.jsx(K5,{component:null,exit:!0,children:p})}))});function Lq(n){return Kt("MuiButtonBase",n)}const zq=Yt("MuiButtonBase",["root","disabled","focusVisible"]),Hq=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Uq=n=>{const{disabled:o,focusVisible:i,focusVisibleClassName:s,classes:l}=n,d=Bt({root:["root",o&&"disabled",i&&"focusVisible"]},Lq,l);return i&&s&&(d.root+=` ${s}`),d},Gq=_e("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,o)=>o.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zq.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hc=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiButtonBase"}),{action:l,centerRipple:c=!1,children:d,className:f,component:p="button",disabled:m=!1,disableRipple:g=!1,disableTouchRipple:v=!1,focusRipple:w=!1,LinkComponent:A="a",onBlur:k,onClick:C,onContextMenu:M,onDragLeave:S,onFocus:I,onFocusVisible:E,onKeyDown:j,onKeyUp:B,onMouseDown:D,onMouseLeave:R,onMouseUp:N,onTouchEnd:U,onTouchMove:L,onTouchStart:_,tabIndex:V=0,TouchRippleProps:$,touchRippleRef:z,type:Q}=s,G=Qe(s,Hq),F=x.useRef(null),q=x.useRef(null),W=Xn(q,z),{isFocusVisibleRef:X,onFocus:te,onBlur:se,ref:de}=ob(),[ee,fe]=x.useState(!1);m&&ee&&fe(!1),x.useImperativeHandle(l,()=>({focusVisible:()=>{fe(!0),F.current.focus()}}),[]);const[he,Ie]=x.useState(!1);x.useEffect(()=>{Ie(!0)},[]);const ve=he&&!g&&!m;x.useEffect(()=>{ee&&w&&!g&&he&&q.current.pulsate()},[g,w,ee,he]);function be(Be,Je,It=v){return ln(Nt=>(Je&&Je(Nt),!It&&q.current&&q.current[Be](Nt),!0))}const ke=be("start",D),ze=be("stop",M),Ge=be("stop",S),Ve=be("stop",N),at=be("stop",Be=>{ee&&Be.preventDefault(),R&&R(Be)}),We=be("start",_),ue=be("stop",U),Le=be("stop",L),$e=be("stop",Be=>{se(Be),X.current===!1&&fe(!1),k&&k(Be)},!1),bt=ln(Be=>{F.current||(F.current=Be.currentTarget),te(Be),X.current===!0&&(fe(!0),E&&E(Be)),I&&I(Be)}),ot=()=>{const Be=F.current;return p&&p!=="button"&&!(Be.tagName==="A"&&Be.href)},st=x.useRef(!1),Ze=ln(Be=>{w&&!st.current&&ee&&q.current&&Be.key===" "&&(st.current=!0,q.current.stop(Be,()=>{q.current.start(Be)})),Be.target===Be.currentTarget&&ot()&&Be.key===" "&&Be.preventDefault(),j&&j(Be),Be.target===Be.currentTarget&&ot()&&Be.key==="Enter"&&!m&&(Be.preventDefault(),C&&C(Be))}),dt=ln(Be=>{w&&Be.key===" "&&q.current&&ee&&!Be.defaultPrevented&&(st.current=!1,q.current.stop(Be,()=>{q.current.pulsate(Be)})),B&&B(Be),C&&Be.target===Be.currentTarget&&ot()&&Be.key===" "&&!Be.defaultPrevented&&C(Be)});let Xe=p;Xe==="button"&&(G.href||G.to)&&(Xe=A);const Pt={};Xe==="button"?(Pt.type=Q===void 0?"button":Q,Pt.disabled=m):(!G.href&&!G.to&&(Pt.role="button"),m&&(Pt["aria-disabled"]=m));const mt=Xn(i,de,F),pt=P({},s,{centerRipple:c,component:p,disabled:m,disableRipple:g,disableTouchRipple:v,focusRipple:w,tabIndex:V,focusVisible:ee}),Fe=Uq(pt);return b.jsxs(Gq,P({as:Xe,className:nt(Fe.root,f),ownerState:pt,onBlur:$e,onClick:C,onContextMenu:ze,onFocus:bt,onKeyDown:Ze,onKeyUp:dt,onMouseDown:ke,onMouseLeave:at,onMouseUp:Ve,onDragLeave:Ge,onTouchEnd:ue,onTouchMove:Le,onTouchStart:We,ref:mt,tabIndex:m?-1:V,type:Q},Pt,G,{children:[d,ve?b.jsx($q,P({ref:W,center:c},$)):null]}))});function Vq(n){return Kt("MuiIconButton",n)}const Qq=Yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Wq=["edge","children","className","color","disabled","disableFocusRipple","size"],qq=n=>{const{classes:o,disabled:i,color:s,edge:l,size:c}=n,d={root:["root",i&&"disabled",s!=="default"&&`color${Ke(s)}`,l&&`edge${Ke(l)}`,`size${Ke(c)}`]};return Bt(d,Vq,o)},_q=_e(Hc,{name:"MuiIconButton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.color!=="default"&&o[`color${Ke(i.color)}`],i.edge&&o[`edge${Ke(i.edge)}`],o[`size${Ke(i.size)}`]]}})(({theme:n,ownerState:o})=>P({textAlign:"center",flex:"0 0 auto",fontSize:n.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(n.vars||n).palette.action.active,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest})},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.activeChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.edge==="start"&&{marginLeft:o.size==="small"?-3:-12},o.edge==="end"&&{marginRight:o.size==="small"?-3:-12}),({theme:n,ownerState:o})=>{var i;const s=(i=(n.vars||n).palette)==null?void 0:i[o.color];return P({},o.color==="inherit"&&{color:"inherit"},o.color!=="inherit"&&o.color!=="default"&&P({color:s==null?void 0:s.main},!o.disableRipple&&{"&:hover":P({},s&&{backgroundColor:n.vars?`rgba(${s.mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(s.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),o.size==="small"&&{padding:5,fontSize:n.typography.pxToRem(18)},o.size==="large"&&{padding:12,fontSize:n.typography.pxToRem(28)},{[`&.${Qq.disabled}`]:{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}})}),fi=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiIconButton"}),{edge:l=!1,children:c,className:d,color:f="default",disabled:p=!1,disableFocusRipple:m=!1,size:g="medium"}=s,v=Qe(s,Wq),w=P({},s,{edge:l,color:f,disabled:p,disableFocusRipple:m,size:g}),A=qq(w);return b.jsx(_q,P({className:nt(A.root,d),centerRipple:!0,focusRipple:!m,disabled:p,ref:i},v,{ownerState:w,children:c}))}),sR=x.createContext();function Yq(n){return Kt("MuiTable",n)}Yt("MuiTable",["root","stickyHeader"]);const Kq=["className","component","padding","size","stickyHeader"],Xq=n=>{const{classes:o,stickyHeader:i}=n;return Bt({root:["root",i&&"stickyHeader"]},Yq,o)},Jq=_e("table",{name:"MuiTable",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.stickyHeader&&o.stickyHeader]}})(({theme:n,ownerState:o})=>P({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":P({},n.typography.body2,{padding:n.spacing(2),color:(n.vars||n).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},o.stickyHeader&&{borderCollapse:"separate"})),TS="table",J5=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTable"}),{className:l,component:c=TS,padding:d="normal",size:f="medium",stickyHeader:p=!1}=s,m=Qe(s,Kq),g=P({},s,{component:c,padding:d,size:f,stickyHeader:p}),v=Xq(g),w=x.useMemo(()=>({padding:d,size:f,stickyHeader:p}),[d,f,p]);return b.jsx(sR.Provider,{value:w,children:b.jsx(Jq,P({as:c,role:c===TS?null:"table",ref:i,className:nt(v.root,l),ownerState:g},m))})}),Ib=x.createContext();function Zq(n){return Kt("MuiTableBody",n)}Yt("MuiTableBody",["root"]);const e_=["className","component"],t_=n=>{const{classes:o}=n;return Bt({root:["root"]},Zq,o)},r_=_e("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(n,o)=>o.root})({display:"table-row-group"}),n_={variant:"body"},FS="tbody",Z5=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableBody"}),{className:l,component:c=FS}=s,d=Qe(s,e_),f=P({},s,{component:c}),p=t_(f);return b.jsx(Ib.Provider,{value:n_,children:b.jsx(r_,P({className:nt(p.root,l),as:c,ref:i,role:c===FS?null:"rowgroup",ownerState:f},d))})});function o_(n){return Kt("MuiTableCell",n)}const i_=Yt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),a_=["align","className","component","padding","scope","size","sortDirection","variant"],s_=n=>{const{classes:o,variant:i,align:s,padding:l,size:c,stickyHeader:d}=n,f={root:["root",i,d&&"stickyHeader",s!=="inherit"&&`align${Ke(s)}`,l!=="normal"&&`padding${Ke(l)}`,`size${Ke(c)}`]};return Bt(f,o_,o)},l_=_e("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`size${Ke(i.size)}`],i.padding!=="normal"&&o[`padding${Ke(i.padding)}`],i.align!=="inherit"&&o[`align${Ke(i.align)}`],i.stickyHeader&&o.stickyHeader]}})(({theme:n,ownerState:o})=>P({},n.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:n.vars?`1px solid ${n.vars.palette.TableCell.border}`:`1px solid + ${n.palette.mode==="light"?ab(Lr(n.palette.divider,1),.88):ib(Lr(n.palette.divider,1),.68)}`,textAlign:"left",padding:16},o.variant==="head"&&{color:(n.vars||n).palette.text.primary,lineHeight:n.typography.pxToRem(24),fontWeight:n.typography.fontWeightMedium},o.variant==="body"&&{color:(n.vars||n).palette.text.primary},o.variant==="footer"&&{color:(n.vars||n).palette.text.secondary,lineHeight:n.typography.pxToRem(21),fontSize:n.typography.pxToRem(12)},o.size==="small"&&{padding:"6px 16px",[`&.${i_.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},o.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},o.padding==="none"&&{padding:0},o.align==="left"&&{textAlign:"left"},o.align==="center"&&{textAlign:"center"},o.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},o.align==="justify"&&{textAlign:"justify"},o.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(n.vars||n).palette.background.default})),eo=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableCell"}),{align:l="inherit",className:c,component:d,padding:f,scope:p,size:m,sortDirection:g,variant:v}=s,w=Qe(s,a_),A=x.useContext(sR),k=x.useContext(Ib),C=k&&k.variant==="head";let M;d?M=d:M=C?"th":"td";let S=p;M==="td"?S=void 0:!S&&C&&(S="col");const I=v||k&&k.variant,E=P({},s,{align:l,component:M,padding:f||(A&&A.padding?A.padding:"normal"),size:m||(A&&A.size?A.size:"medium"),sortDirection:g,stickyHeader:I==="head"&&A&&A.stickyHeader,variant:I}),j=s_(E);let B=null;return g&&(B=g==="asc"?"ascending":"descending"),b.jsx(l_,P({as:M,ref:i,className:nt(j.root,c),"aria-sort":B,scope:S,ownerState:E},w))});function c_(n){return Kt("MuiTableContainer",n)}Yt("MuiTableContainer",["root"]);const u_=["className","component"],d_=n=>{const{classes:o}=n;return Bt({root:["root"]},c_,o)},f_=_e("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(n,o)=>o.root})({width:"100%",overflowX:"auto"}),eA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableContainer"}),{className:l,component:c="div"}=s,d=Qe(s,u_),f=P({},s,{component:c}),p=d_(f);return b.jsx(f_,P({ref:i,as:c,className:nt(p.root,l),ownerState:f},d))});function p_(n){return Kt("MuiTableHead",n)}Yt("MuiTableHead",["root"]);const h_=["className","component"],m_=n=>{const{classes:o}=n;return Bt({root:["root"]},p_,o)},g_=_e("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(n,o)=>o.root})({display:"table-header-group"}),v_={variant:"head"},DS="thead",lR=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableHead"}),{className:l,component:c=DS}=s,d=Qe(s,h_),f=P({},s,{component:c}),p=m_(f);return b.jsx(Ib.Provider,{value:v_,children:b.jsx(g_,P({as:c,className:nt(p.root,l),ref:i,role:c===DS?null:"rowgroup",ownerState:f},d))})});function b_(n){return Kt("MuiTableRow",n)}const NS=Yt("MuiTableRow",["root","selected","hover","head","footer"]),w_=["className","component","hover","selected"],x_=n=>{const{classes:o,selected:i,hover:s,head:l,footer:c}=n;return Bt({root:["root",i&&"selected",s&&"hover",l&&"head",c&&"footer"]},b_,o)},y_=_e("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.head&&o.head,i.footer&&o.footer]}})(({theme:n})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NS.hover}:hover`]:{backgroundColor:(n.vars||n).palette.action.hover},[`&.${NS.selected}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}}})),$S="tr",Cu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTableRow"}),{className:l,component:c=$S,hover:d=!1,selected:f=!1}=s,p=Qe(s,w_),m=x.useContext(Ib),g=P({},s,{component:c,hover:d,selected:f,head:m&&m.variant==="head",footer:m&&m.variant==="footer"}),v=x_(g);return b.jsx(y_,P({as:c,ref:i,className:nt(v.root,l),role:c===$S?null:"row",ownerState:g},p))});function A_(n){return Kt("MuiTypography",n)}Yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const C_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],k_=n=>{const{align:o,gutterBottom:i,noWrap:s,paragraph:l,variant:c,classes:d}=n,f={root:["root",c,n.align!=="inherit"&&`align${Ke(o)}`,i&&"gutterBottom",s&&"noWrap",l&&"paragraph"]};return Bt(f,A_,d)},S_=_e("span",{name:"MuiTypography",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.variant&&o[i.variant],i.align!=="inherit"&&o[`align${Ke(i.align)}`],i.noWrap&&o.noWrap,i.gutterBottom&&o.gutterBottom,i.paragraph&&o.paragraph]}})(({theme:n,ownerState:o})=>P({margin:0},o.variant==="inherit"&&{font:"inherit"},o.variant!=="inherit"&&n.typography[o.variant],o.align!=="inherit"&&{textAlign:o.align},o.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},o.gutterBottom&&{marginBottom:"0.35em"},o.paragraph&&{marginBottom:16})),LS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},I_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},E_=n=>I_[n]||n,Rt=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTypography"}),l=E_(s.color),c=lm(P({},s,{color:l})),{align:d="inherit",className:f,component:p,gutterBottom:m=!1,noWrap:g=!1,paragraph:v=!1,variant:w="body1",variantMapping:A=LS}=c,k=Qe(c,C_),C=P({},c,{align:d,color:l,className:f,component:p,gutterBottom:m,noWrap:g,paragraph:v,variant:w,variantMapping:A}),M=p||(v?"p":A[w]||LS[w])||"span",S=k_(C);return b.jsx(S_,P({as:M,ref:i,ownerState:C,className:nt(S.root,f)},k))});function M_(n){return Kt("MuiPaper",n)}Yt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const P_=["className","component","elevation","square","variant"],j_=n=>{const{square:o,elevation:i,variant:s,classes:l}=n,c={root:["root",s,!o&&"rounded",s==="elevation"&&`elevation${i}`]};return Bt(c,M_,l)},O_=_e("div",{name:"MuiPaper",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],!i.square&&o.rounded,i.variant==="elevation"&&o[`elevation${i.elevation}`]]}})(({theme:n,ownerState:o})=>{var i;return P({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!o.square&&{borderRadius:n.shape.borderRadius},o.variant==="outlined"&&{border:`1px solid ${(n.vars||n).palette.divider}`},o.variant==="elevation"&&P({boxShadow:(n.vars||n).shadows[o.elevation]},!n.vars&&n.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Lr("#fff",MS(o.elevation))}, ${Lr("#fff",MS(o.elevation))})`},n.vars&&{backgroundImage:(i=n.vars.overlays)==null?void 0:i[o.elevation]}))}),Js=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiPaper"}),{className:l,component:c="div",elevation:d=1,square:f=!1,variant:p="elevation"}=s,m=Qe(s,P_),g=P({},s,{component:c,elevation:d,square:f,variant:p}),v=j_(g);return b.jsx(O_,P({as:c,ownerState:g,className:nt(v.root,l),ref:i},m))});var tA={},Vw={};const R_=Pu(Cq);var zS;function ao(){return zS||(zS=1,function(n){"use client";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=R_}(Vw)),Vw}var B_=Jn;Object.defineProperty(tA,"__esModule",{value:!0});var Eb=tA.default=void 0,T_=B_(ao()),F_=b;Eb=tA.default=(0,T_.default)((0,F_.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var rA={},D_=Jn;Object.defineProperty(rA,"__esModule",{value:!0});var Mb=rA.default=void 0,N_=D_(ao()),$_=b;Mb=rA.default=(0,N_.default)((0,$_.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");function L_(n){return Kt("MuiLink",n)}const z_=Yt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),cR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},H_=n=>cR[n]||n,U_=({theme:n,ownerState:o})=>{const i=H_(o.color),s=W2(n,`palette.${i}`,!1)||o.color,l=W2(n,`palette.${i}Channel`);return"vars"in n&&l?`rgba(${l} / 0.4)`:Lr(s,.4)},G_=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],V_=n=>{const{classes:o,component:i,focusVisible:s,underline:l}=n,c={root:["root",`underline${Ke(l)}`,i==="button"&&"button",s&&"focusVisible"]};return Bt(c,L_,o)},Q_=_e(Rt,{name:"MuiLink",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`underline${Ke(i.underline)}`],i.component==="button"&&o.button]}})(({theme:n,ownerState:o})=>P({},o.underline==="none"&&{textDecoration:"none"},o.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},o.underline==="always"&&P({textDecoration:"underline"},o.color!=="inherit"&&{textDecorationColor:U_({theme:n,ownerState:o})},{"&:hover":{textDecorationColor:"inherit"}}),o.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${z_.focusVisible}`]:{outline:"auto"}})),y0=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiLink"}),{className:l,color:c="primary",component:d="a",onBlur:f,onFocus:p,TypographyClasses:m,underline:g="always",variant:v="inherit",sx:w}=s,A=Qe(s,G_),{isFocusVisibleRef:k,onBlur:C,onFocus:M,ref:S}=ob(),[I,E]=x.useState(!1),j=Xn(i,S),B=U=>{C(U),k.current===!1&&E(!1),f&&f(U)},D=U=>{M(U),k.current===!0&&E(!0),p&&p(U)},R=P({},s,{color:c,component:d,focusVisible:I,underline:g,variant:v}),N=V_(R);return b.jsx(Q_,P({color:c,className:nt(N.root,l),classes:m,component:d,onBlur:B,onFocus:D,ref:j,ownerState:R,variant:v,sx:[...Object.keys(cR).includes(c)?[]:[{color:c}],...Array.isArray(w)?w:[w]]},A))});var nA={},W_=Jn;Object.defineProperty(nA,"__esModule",{value:!0});var uR=nA.default=void 0,q_=W_(ao()),__=b;uR=nA.default=(0,q_.default)((0,__.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");var oA={},Y_=Jn;Object.defineProperty(oA,"__esModule",{value:!0});var dR=oA.default=void 0,K_=Y_(ao()),X_=b;dR=oA.default=(0,K_.default)((0,X_.jsx)("path",{d:"M3 5v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2m13.3 11.29c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41L10.59 12 7.7 9.11a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41L13.41 12l2.89 2.88c.38.39.38 1.03 0 1.41"}),"DisabledByDefaultRounded");function to(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;sn.length)&&(o=n.length);for(var i=0,s=Array(o);i=n.length?{done:!0}:{done:!1,value:n[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vf(){return vf=Object.assign?Object.assign.bind():function(n){for(var o=1;os&&(s=f.dependenciesState_)}for(i.length=l,n.newObserving_=null,c=o.length;c--;){var p=o[c];p.diffValue===0&&FR(p,n),p.diffValue=0}for(;l--;){var m=i[l];m.diffValue===1&&(m.diffValue=0,nK(m,n))}s!==go.UP_TO_DATE_&&(n.dependenciesState_=s,n.onBecomeStale_())}function zy(n){var o=n.observing_;n.observing_=[];for(var i=o.length;i--;)FR(o[i],n);n.dependenciesState_=go.NOT_TRACKING_}function RR(n){var o=Tf();try{return n()}finally{uu(o)}}function Tf(){var n=_t.trackingDerivation;return _t.trackingDerivation=null,n}function uu(n){_t.trackingDerivation=n}function uA(n){var o=_t.allowStateReads;return _t.allowStateReads=n,o}function sh(n){_t.allowStateReads=n}function BR(n){if(n.dependenciesState_!==go.UP_TO_DATE_){n.dependenciesState_=go.UP_TO_DATE_;for(var o=n.observing_,i=o.length;i--;)o[i].lowestObserverState_=go.UP_TO_DATE_}}var ov=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},iv=!0,TR=!1,_t=function(){var n=iA();return n.__mobxInstanceCount>0&&!n.__mobxGlobals&&(iv=!1),n.__mobxGlobals&&n.__mobxGlobals.version!==new ov().version&&(iv=!1),iv?n.__mobxGlobals?(n.__mobxInstanceCount+=1,n.__mobxGlobals.UNCHANGED||(n.__mobxGlobals.UNCHANGED={}),n.__mobxGlobals):(n.__mobxInstanceCount=1,n.__mobxGlobals=new ov):(setTimeout(function(){TR||to(35)},1),new ov)}();function rK(){if((_t.pendingReactions.length||_t.inBatch||_t.isRunningReactions)&&to(36),TR=!0,iv){var n=iA();--n.__mobxInstanceCount===0&&(n.__mobxGlobals=void 0),_t=new ov}}function nK(n,o){n.observers_.add(o),n.lowestObserverState_>o.dependenciesState_&&(n.lowestObserverState_=o.dependenciesState_)}function FR(n,o){n.observers_.delete(o),n.observers_.size===0&&DR(n)}function DR(n){n.isPendingUnobservation===!1&&(n.isPendingUnobservation=!0,_t.pendingUnobservations.push(n))}function v1(){_t.inBatch++}function b1(){if(--_t.inBatch===0){LR();for(var n=_t.pendingUnobservations,o=0;o0&&DR(n),!1)}function $R(n){n.lowestObserverState_!==go.STALE_&&(n.lowestObserverState_=go.STALE_,n.observers_.forEach(function(o){o.dependenciesState_===go.UP_TO_DATE_&&o.onBecomeStale_(),o.dependenciesState_=go.STALE_}))}function oK(n){n.lowestObserverState_!==go.STALE_&&(n.lowestObserverState_=go.STALE_,n.observers_.forEach(function(o){o.dependenciesState_===go.POSSIBLY_STALE_?o.dependenciesState_=go.STALE_:o.dependenciesState_===go.UP_TO_DATE_&&(n.lowestObserverState_=go.UP_TO_DATE_)}))}function iK(n){n.lowestObserverState_===go.UP_TO_DATE_&&(n.lowestObserverState_=go.POSSIBLY_STALE_,n.observers_.forEach(function(o){o.dependenciesState_===go.UP_TO_DATE_&&(o.dependenciesState_=go.POSSIBLY_STALE_,o.onBecomeStale_())}))}var Su=function(){function n(i,s,l,c){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=go.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Zv.NONE,this.name_=i,this.onInvalidate_=s,this.errorHandler_=l,this.requiresObservable_=c}var o=n.prototype;return o.onBecomeStale_=function(){this.schedule_()},o.schedule_=function(){this.isScheduled||(this.isScheduled=!0,_t.pendingReactions.push(this),LR())},o.runReaction_=function(){if(!this.isDisposed){v1(),this.isScheduled=!1;var s=_t.trackingContext;if(_t.trackingContext=this,Ly(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(l){this.reportExceptionInDerivation_(l)}}_t.trackingContext=s,b1()}},o.track=function(s){if(!this.isDisposed){v1(),this.isRunning=!0;var l=_t.trackingContext;_t.trackingContext=this;var c=OR(this,s,void 0);_t.trackingContext=l,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&zy(this),nv(c)&&this.reportExceptionInDerivation_(c.cause),b1()}},o.reportExceptionInDerivation_=function(s){var l=this;if(this.errorHandler_){this.errorHandler_(s,this);return}if(_t.disableErrorBoundaries)throw s;var c="[mobx] uncaught error in '"+this+"'";_t.suppressReactionErrors||console.error(c,s),_t.globalReactionErrorHandlers.forEach(function(d){return d(s,l)})},o.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(v1(),zy(this),b1()))},o.getDisposer_=function(s){var l=this,c=function d(){l.dispose(),s==null||s.removeEventListener==null||s.removeEventListener("abort",d)};return s==null||s.addEventListener==null||s.addEventListener("abort",c),c[Fr]=this,c},o.toString=function(){return"Reaction["+this.name_+"]"},o.trace=function(s){},Ep(n,[{key:"isDisposed",get:function(){return Bl(this.flags_,n.isDisposedMask_)},set:function(s){this.flags_=Tl(this.flags_,n.isDisposedMask_,s)}},{key:"isScheduled",get:function(){return Bl(this.flags_,n.isScheduledMask_)},set:function(s){this.flags_=Tl(this.flags_,n.isScheduledMask_,s)}},{key:"isTrackPending",get:function(){return Bl(this.flags_,n.isTrackPendingMask_)},set:function(s){this.flags_=Tl(this.flags_,n.isTrackPendingMask_,s)}},{key:"isRunning",get:function(){return Bl(this.flags_,n.isRunningMask_)},set:function(s){this.flags_=Tl(this.flags_,n.isRunningMask_,s)}},{key:"diffValue",get:function(){return Bl(this.flags_,n.diffValueMask_)?1:0},set:function(s){this.flags_=Tl(this.flags_,n.diffValueMask_,s===1)}}])}();Su.isDisposedMask_=1;Su.isScheduledMask_=2;Su.isTrackPendingMask_=4;Su.isRunningMask_=8;Su.diffValueMask_=16;var aK=100,Hy=function(o){return o()};function LR(){_t.inBatch>0||_t.isRunningReactions||Hy(sK)}function sK(){_t.isRunningReactions=!0;for(var n=_t.pendingReactions,o=0;n.length>0;){++o===aK&&(console.error("[mobx] cycle in reaction: "+n[0]),n.splice(0));for(var i=n.splice(0),s=0,l=i.length;s0&&(o.dependencies=kK(n.observing_).map(qR)),o}function kK(n){return Array.from(new Set(n))}var SK=0;function _R(){this.message="FLOW_CANCELLED"}_R.prototype=Object.create(Error.prototype);var Qw=CR("flow"),IK=CR("flow.bound",{bound:!0}),rp=Object.assign(function(o,i){if(xm(i))return Qw.decorate_20223_(o,i);if(gf(i))return Mp(o,i,Qw);var s=o,l=s.name||"",c=function(){var f=this,p=arguments,m=++SK,g=Co(l+" - runid: "+m+" - init",s).apply(f,p),v,w=void 0,A=new Promise(function(k,C){var M=0;v=C;function S(j){w=void 0;var B;try{B=Co(l+" - runid: "+m+" - yield "+M++,g.next).call(g,j)}catch(D){return C(D)}E(B)}function I(j){w=void 0;var B;try{B=Co(l+" - runid: "+m+" - yield "+M++,g.throw).call(g,j)}catch(D){return C(D)}E(B)}function E(j){if(ac(j==null?void 0:j.then)){j.then(E,C);return}return j.done?k(j.value):(w=Promise.resolve(j.value),w.then(S,I))}S(void 0)});return A.cancel=Co(l+" - runid: "+m+" - cancel",function(){try{w&&QS(w);var k=g.return(void 0),C=Promise.resolve(k.value);C.then(k2,k2),QS(C),v(new _R)}catch(M){v(M)}}),A};return c.isMobXFlow=!0,c},Qw);rp.bound=Tc(IK);function QS(n){ac(n.cancel)&&n.cancel()}function Gh(n){return(n==null?void 0:n.isMobXFlow)===!0}function EK(n,o){return n?Mm(n)||!!n[Fr]||aA(n)||t3(n)||Cm(n):!1}function dA(n){return EK(n)}function MK(n){if(Mm(n))return n[Fr].ownKeys_();to(38)}function Ag(n,o,i){return n.set(o,i),i}function i2(n,o){if(n==null||typeof n!="object"||n instanceof Date||!dA(n))return n;if(eK(n)||Cm(n))return i2(n.get(),o);if(o.has(n))return o.get(n);if(Em(n)){var i=Ag(o,n,new Array(n.length));return n.forEach(function(d,f){i[f]=i2(d,o)}),i}if(Ff(n)){var s=Ag(o,n,new Set);return n.forEach(function(d){s.add(i2(d,o))}),s}if(Rd(n)){var l=Ag(o,n,new Map);return n.forEach(function(d,f){l.set(f,i2(d,o))}),l}else{var c=Ag(o,n,{});return MK(n).forEach(function(d){bm.propertyIsEnumerable.call(n,d)&&(c[d]=i2(n[d],o))}),c}}function xf(n,o){return i2(n,new Map)}function eu(n,o){o===void 0&&(o=void 0),v1();try{return n.apply(o)}finally{b1()}}function Xf(n){return n[Fr]}var PK={has:function(o,i){return Xf(o).has_(i)},get:function(o,i){return Xf(o).get_(i)},set:function(o,i,s){var l;return gf(i)?(l=Xf(o).set_(i,s,!0))!=null?l:!0:!1},deleteProperty:function(o,i){var s;return gf(i)?(s=Xf(o).delete_(i,!0))!=null?s:!0:!1},defineProperty:function(o,i,s){var l;return(l=Xf(o).defineProperty_(i,s))!=null?l:!0},ownKeys:function(o){return Xf(o).ownKeys_()},preventExtensions:function(o){to(13)}};function jK(n,o){var i,s;return hR(),n=Df(n,o),(s=(i=n[Fr]).proxy_)!=null?s:i.proxy_=new Proxy(n,PK)}function h1(n){return n.interceptors_!==void 0&&n.interceptors_.length>0}function km(n,o){var i=n.interceptors_||(n.interceptors_=[]);return i.push(o),mR(function(){var s=i.indexOf(o);s!==-1&&i.splice(s,1)})}function m1(n,o){var i=Tf();try{for(var s=[].concat(n.interceptors_||[]),l=0,c=s.length;l0}function Sm(n,o){var i=n.changeListeners_||(n.changeListeners_=[]);return i.push(o),mR(function(){var s=i.indexOf(o);s!==-1&&i.splice(s,1)})}function Z1(n,o){var i=Tf(),s=n.changeListeners_;if(s){s=s.slice();for(var l=0,c=s.length;l0?s.map(this.dehancer):s},o.intercept_=function(s){return km(this,s)},o.observe_=function(s,l){return l===void 0&&(l=!1),l&&s({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Sm(this,s)},o.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},o.setArrayLength_=function(s){(typeof s!="number"||isNaN(s)||s<0)&&to("Out of range: "+s);var l=this.values_.length;if(s!==l)if(s>l){for(var c=new Array(s-l),d=0;d0&&tB(s+l+1)},o.spliceWithArray_=function(s,l,c){var d=this;this.atom_;var f=this.values_.length;if(s===void 0?s=0:s>f?s=f:s<0&&(s=Math.max(0,f+s)),arguments.length===1?l=f-s:l==null?l=0:l=Math.max(0,Math.min(l,f-s)),c===void 0&&(c=Fy),h1(this)){var p=m1(this,{object:this.proxy_,type:WS,index:s,removedCount:l,added:c});if(!p)return Fy;l=p.removedCount,c=p.added}if(c=c.length===0?c:c.map(function(v){return d.enhancer_(v,void 0)}),this.legacyMode_){var m=c.length-l;this.updateArrayLength_(f,m)}var g=this.spliceItemsIntoValues_(s,l,c);return(l!==0||c.length!==0)&&this.notifyArraySplice_(s,c,g),this.dehanceValues_(g)},o.spliceItemsIntoValues_=function(s,l,c){if(c.length=this.values_.length){console.warn("[mobx] Out of bounds read: "+s);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[s])},o.set_=function(s,l){var c=this.values_;if(this.legacyMode_&&s>c.length&&to(17,s,c.length),s2?s-2:0),c=2;c-1?(this.splice(s,1),!0):!1}};pi("at",ql);pi("concat",ql);pi("flat",ql);pi("includes",ql);pi("indexOf",ql);pi("join",ql);pi("lastIndexOf",ql);pi("slice",ql);pi("toString",ql);pi("toLocaleString",ql);pi("toSorted",ql);pi("toSpliced",ql);pi("with",ql);pi("every",cc);pi("filter",cc);pi("find",cc);pi("findIndex",cc);pi("findLast",cc);pi("findLastIndex",cc);pi("flatMap",cc);pi("forEach",cc);pi("map",cc);pi("some",cc);pi("toReversed",cc);pi("reduce",YR);pi("reduceRight",YR);function pi(n,o){typeof Array.prototype[n]=="function"&&(r3[n]=o(n))}function ql(n){return function(){var o=this[Fr];o.atom_.reportObserved();var i=o.dehanceValues_(o.values_);return i[n].apply(i,arguments)}}function cc(n){return function(o,i){var s=this,l=this[Fr];l.atom_.reportObserved();var c=l.dehanceValues_(l.values_);return c[n](function(d,f){return o.call(i,d,f,s)})}}function YR(n){return function(){var o=this,i=this[Fr];i.atom_.reportObserved();var s=i.dehanceValues_(i.values_),l=arguments[0];return arguments[0]=function(c,d,f){return l(c,d,f,o)},s[n].apply(s,arguments)}}var FK=jd("ObservableArrayAdministration",fA);function Em(n){return Pb(n)&&FK(n[Fr])}var DK={},ad="add",n3="delete",KR=function(){function n(i,s,l){var c=this;s===void 0&&(s=bf),l===void 0&&(l="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Fr]=DK,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=s,this.name_=l,ac(Map)||to(18),Bd(function(){c.keysAtom_=yR("ObservableMap.keys()"),c.data_=new Map,c.hasMap_=new Map,i&&c.merge(i)})}var o=n.prototype;return o.has_=function(s){return this.data_.has(s)},o.has=function(s){var l=this;if(!_t.trackingDerivation)return this.has_(s);var c=this.hasMap_.get(s);if(!c){var d=c=new wd(this.has_(s),jb,"ObservableMap.key?",!1);this.hasMap_.set(s,d),VR(d,function(){return l.hasMap_.delete(s)})}return c.get()},o.set=function(s,l){var c=this.has_(s);if(h1(this)){var d=m1(this,{type:c?Fc:ad,object:this,newValue:l,name:s});if(!d)return this;l=d.newValue}return c?this.updateValue_(s,l):this.addValue_(s,l),this},o.delete=function(s){var l=this;if(this.keysAtom_,h1(this)){var c=m1(this,{type:n3,object:this,name:s});if(!c)return!1}if(this.has_(s)){var d=lh(),f=J1(this),p=f||d?{observableKind:"map",debugObjectName:this.name_,type:n3,object:this,oldValue:this.data_.get(s).value_,name:s}:null;return eu(function(){var m;l.keysAtom_.reportChanged(),(m=l.hasMap_.get(s))==null||m.setNewValue_(!1);var g=l.data_.get(s);g.setNewValue_(void 0),l.data_.delete(s)}),f&&Z1(this,p),!0}return!1},o.updateValue_=function(s,l){var c=this.data_.get(s);if(l=c.prepareNewValue_(l),l!==_t.UNCHANGED){var d=lh(),f=J1(this),p=f||d?{observableKind:"map",debugObjectName:this.name_,type:Fc,object:this,oldValue:c.value_,name:s,newValue:l}:null;c.setNewValue_(l),f&&Z1(this,p)}},o.addValue_=function(s,l){var c=this;this.keysAtom_,eu(function(){var m,g=new wd(l,c.enhancer_,"ObservableMap.key",!1);c.data_.set(s,g),l=g.value_,(m=c.hasMap_.get(s))==null||m.setNewValue_(!0),c.keysAtom_.reportChanged()});var d=lh(),f=J1(this),p=f||d?{observableKind:"map",debugObjectName:this.name_,type:ad,object:this,name:s,newValue:l}:null;f&&Z1(this,p)},o.get=function(s){return this.has(s)?this.dehanceValue_(this.data_.get(s).get()):this.dehanceValue_(void 0)},o.dehanceValue_=function(s){return this.dehancer!==void 0?this.dehancer(s):s},o.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},o.values=function(){var s=this,l=this.keys();return Vh({next:function(){var d=l.next(),f=d.done,p=d.value;return{done:f,value:f?void 0:s.get(p)}}})},o.entries=function(){var s=this,l=this.keys();return Vh({next:function(){var d=l.next(),f=d.done,p=d.value;return{done:f,value:f?void 0:[p,s.get(p)]}}})},o[Symbol.iterator]=function(){return this.entries()},o.forEach=function(s,l){for(var c=S2(this),d;!(d=c()).done;){var f=d.value,p=f[0],m=f[1];s.call(l,m,p,this)}},o.merge=function(s){var l=this;return Rd(s)&&(s=new Map(s)),eu(function(){ku(s)?rY(s).forEach(function(c){return l.set(c,s[c])}):Array.isArray(s)?s.forEach(function(c){var d=c[0],f=c[1];return l.set(d,f)}):Ip(s)?(tY(s)||to(19,s),s.forEach(function(c,d){return l.set(d,c)})):s!=null&&to(20,s)}),this},o.clear=function(){var s=this;eu(function(){RR(function(){for(var l=S2(s.keys()),c;!(c=l()).done;){var d=c.value;s.delete(d)}})})},o.replace=function(s){var l=this;return eu(function(){for(var c=NK(s),d=new Map,f=!1,p=S2(l.data_.keys()),m;!(m=p()).done;){var g=m.value;if(!c.has(g)){var v=l.delete(g);if(v)f=!0;else{var w=l.data_.get(g);d.set(g,w)}}}for(var A=S2(c.entries()),k;!(k=A()).done;){var C=k.value,M=C[0],S=C[1],I=l.data_.has(M);if(l.set(M,S),l.data_.has(M)){var E=l.data_.get(M);d.set(M,E),I||(f=!0)}}if(!f)if(l.data_.size!==d.size)l.keysAtom_.reportChanged();else for(var j=l.data_.keys(),B=d.keys(),D=j.next(),R=B.next();!D.done;){if(D.value!==R.value){l.keysAtom_.reportChanged();break}D=j.next(),R=B.next()}l.data_=d}),this},o.toString=function(){return"[object ObservableMap]"},o.toJSON=function(){return Array.from(this)},o.observe_=function(s,l){return Sm(this,s)},o.intercept_=function(s){return km(this,s)},Ep(n,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Rd=jd("ObservableMap",KR);function NK(n){if(Ip(n)||Rd(n))return n;if(Array.isArray(n))return new Map(n);if(ku(n)){var o=new Map;for(var i in n)o.set(i,n[i]);return o}else return to(21,n)}var $K={},XR=function(){function n(i,s,l){var c=this;s===void 0&&(s=bf),l===void 0&&(l="ObservableSet"),this.name_=void 0,this[Fr]=$K,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=l,ac(Set)||to(22),this.enhancer_=function(d,f){return s(d,f,l)},Bd(function(){c.atom_=yR(c.name_),i&&c.replace(i)})}var o=n.prototype;return o.dehanceValue_=function(s){return this.dehancer!==void 0?this.dehancer(s):s},o.clear=function(){var s=this;eu(function(){RR(function(){for(var l=S2(s.data_.values()),c;!(c=l()).done;){var d=c.value;s.delete(d)}})})},o.forEach=function(s,l){for(var c=S2(this),d;!(d=c()).done;){var f=d.value;s.call(l,f,f,this)}},o.add=function(s){var l=this;if(this.atom_,h1(this)){var c=m1(this,{type:ad,object:this,newValue:s});if(!c)return this}if(!this.has(s)){eu(function(){l.data_.add(l.enhancer_(s,void 0)),l.atom_.reportChanged()});var d=!1,f=J1(this),p=f||d?{observableKind:"set",debugObjectName:this.name_,type:ad,object:this,newValue:s}:null;f&&Z1(this,p)}return this},o.delete=function(s){var l=this;if(h1(this)){var c=m1(this,{type:n3,object:this,oldValue:s});if(!c)return!1}if(this.has(s)){var d=!1,f=J1(this),p=f||d?{observableKind:"set",debugObjectName:this.name_,type:n3,object:this,oldValue:s}:null;return eu(function(){l.atom_.reportChanged(),l.data_.delete(s)}),f&&Z1(this,p),!0}return!1},o.has=function(s){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(s))},o.entries=function(){var s=0,l=Array.from(this.keys()),c=Array.from(this.values());return Vh({next:function(){var f=s;return s+=1,fqw){for(var o=qw;o=0&&i++;break}n=JS(n),o=JS(o);var f=d==="[object Array]";if(!f){if(typeof n!="object"||typeof o!="object")return!1;var p=n.constructor,m=o.constructor;if(p!==m&&!(ac(p)&&p instanceof p&&ac(m)&&m instanceof m)&&"constructor"in n&&"constructor"in o)return!1}if(i===0)return!1;i<0&&(i=-1),s=s||[],l=l||[];for(var g=s.length;g--;)if(s[g]===n)return l[g]===o;if(s.push(n),l.push(o),f){if(g=n.length,g!==o.length)return!1;for(;g--;)if(!Qy(n[g],o[g],i-1,s,l))return!1}else{var v=Object.keys(n),w;if(g=v.length,Object.keys(o).length!==g)return!1;for(;g--;)if(w=v[g],!(cu(o,w)&&Qy(n[w],o[w],i-1,s,l)))return!1}return s.pop(),l.pop(),!0}function JS(n){return Em(n)?n.slice():Ip(n)||Rd(n)||Zc(n)||Ff(n)?Array.from(n.entries()):n}function Vh(n){return n[Symbol.iterator]=WK,n}function WK(){return this}["Symbol","Map","Set"].forEach(function(n){var o=iA();typeof o[n]>"u"&&to("MobX requires global '"+n+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:cK,extras:{getDebugName:Vy},$mobx:Fr});const Il="https://libererisas-backend.onrender.com/api/Item";class qK{constructor(){ui(this,"pendingItemsList",[]);ui(this,"mediaList",[]);ui(this,"mediaList2",[]);ui(this,"add",!1);ui(this,"isUpdate");ui(this,"isDeleteItem");ui(this,"isDeleteTag");ui(this,"isError");ui(this,"isApprov",!1);ui(this,"uploadedProduct",null);ui(this,"setUploadedProduct",o=>{nu(()=>{console.log("Setting uploadedProduct in store:",o),this.uploadedProduct=o})});ui(this,"validateToken",async()=>{const o=sessionStorage.getItem("jwt");if(!o)return!1;try{const i=await axios.post("https://foirstein-1-back.onrender.com/api/validate-token",{token:o});return console.log("token::::::",i),i}catch(i){return console.error("Error validating token:",i),!1}});OK(this,{isDeleteItem:Kn,uploadedProduct:Kn,isDeleteTag:Kn,mediaList:Kn,isAdd:Kn,isUpdate:Kn,isDelete:Kn,isError:Kn,setAdd:Co,add:Kn,fetchMedia:Co,updateMedia:Co,isApprov:Kn,pendingItemsList:Kn,fetchPendingItems:Co,approvalItem:Co,deniedItem:Co,deleteMedia:Co,isAddItemTag:Kn,addItemTag:Co,uploadMediaObject:Co,setUploadedProduct:Co,fetchMedia:Co,uploadMediaFile:Co,uploadMediaBook:Co}),this.fetchPendingItems(),this.fetchMedia()}async deleteTag(o,i){console.log("hiiDeleteTag");try{const s=await fetch(`${Il}/${o}/${i}`,{method:"DELETE"});console.log("delete tag:"),s.status===200?this.isDeleteTag=!0:this.isDeleteTag=!1,this.fetchMedia()}catch(s){console.error("Failed to delete media:",s)}}get getPendingList(){return this.pendingItemsList}async fetchPendingItems(){try{const i=await(await fetch(`${Il}/Pending`)).json();let s=xf(i);this.pendingItemsList=s,console.log(s),console.log(xf(i))}catch(o){console.error("Failed to fetch media:",o)}}async approvalItem(o){console.log(o);try{const i=await fetch(`${Il}/approvItem/${o}`,{method:"PUT"});console.log("status:"+i.status),i.status===200&&(this.isApprov=!0,await Ur.fetchPendingItems()),this.fetchPendingItems()}catch(i){console.error("Failed to approv the item:",i)}}async deniedItem(o){console.log(o),this.isDeind=!1;try{(await fetch(`${Il}/deny/${o}`,{method:"PUT"})).status===200?this.isDeind=!0:this.isUpdate=!1,this.fetchPendingItems()}catch(i){console.error("Failed to approv the item:",i)}}async fetchMedia(){try{const i=await(await fetch(Il)).json();this.mediaList=i.data}catch(o){console.error("Failed to fetch media:",o)}}async uploadMediaFile(o){try{(await fetch(`${Il}/file`,{method:"POST",body:o})).status===200?this.isError=!1:this.isError=!0,this.fetchMedia()}catch(i){console.error("Failed to upload media:",i),this.isError=!0}}async uploadMediaBook(o){try{(await fetch(`${Il}/book`,{method:"POST",body:o})).status===200?this.isError=!1:this.isError=!0,this.fetchMedia()}catch(i){console.error("Failed to upload media:",i),this.isError=!0}}async deleteMedia(o){console.log("hiiDeleteMedia!!!!!!!!");try{(await fetch(`${Il}/${o}`,{method:"DELETE"})).status===200?this.isDeleteItem=!0:this.isDeleteItem=!1,this.fetchMedia()}catch(i){console.error("Failed to delete media:",i)}}async uploadMediaObject(o){try{const i=await fetch(`${Il}/physicalItem`,{method:"POST",body:o}),s=await i.json();return console.log("Response from server:",s),i.status===200?(nu(()=>{this.isError=!1,this.setUploadedProduct({id:s.data.id,title:s.data.title,location:s.data.filePath}),this.fetchMedia()}),s):(nu(()=>{this.isError=!0,console.log("isError",this.isError)}),null)}catch(i){return console.error("Failed to upload media:",i),nu(()=>{this.isError=!0}),null}}async updateMediaObject(o,i){try{console.log("formData: ",i,"beforeFetch");const s=await fetch(`${Il}/physicalItem/${o}`,{method:"PUT",body:i});console.log("formData: ",i,"afterFetch"),this.fetchMedia(),s.status===200?this.isUpdateObject=!0:this.isUpdateObject=!1}catch(s){console.error("Failed to update media:",s)}}async updateMediaBook(o,i){try{console.log("formData: ",i,"beforeFetch");const s=await fetch(`${Il}/book/${o}`,{method:"PUT",body:i});console.log("formData: ",i,"afterFetch"),this.fetchMedia(),s.status===200?this.isUpdate=!0:this.isUpdate=!1}catch(s){console.error("Failed to update media:",s)}}async updateMediaFile(o,i){try{console.log("formData: ",i,"beforeFetch");const s=await fetch(`${Il}/file/${o}`,{method:"PUT",body:i});console.log("formData: ",i,"afterFetch"),this.fetchMedia(),s.status===200?this.isUpdate=!0:this.isUpdate=!1}catch(s){console.error("Failed to update media:",s)}}async addItemTag(o,i){try{const s=await fetch(`${Il}/${o}/${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({itemId:o,tagId:i})});console.log("add item tag:"+s.status),s.status===200?this.isAddItemTag=!0:this.isAddItemTag=!1,this.fetchMedia()}catch(s){console.error("Failed to add item tag:",s)}}updateItem(o){const i=this.mediaList.findIndex(s=>s.id===o.id);i>-1&&(this.mediaList[i]={...this.mediaList[i],...o})}}const Ur=new qK;if(!x.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Im)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function _K(n){n()}function YK(n){n||(n=_K),AK({reactionScheduler:n})}function KK(n){return CK(n)}var XK=1e4,JK=1e4,ZK=function(){function n(o){var i=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(s){s===void 0&&(s=XK),clearTimeout(i.sweepTimeout),i.sweepTimeout=void 0;var l=Date.now();i.registrations.forEach(function(c,d){l-c.registeredAt>=s&&(i.finalize(c.value),i.registrations.delete(d))}),i.registrations.size>0&&i.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){i.sweep(0)}})}return Object.defineProperty(n.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(o,i,s){this.registrations.set(s,{value:i,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(n.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(o){this.registrations.delete(o)}}),Object.defineProperty(n.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,JK))}}),n}(),eX=typeof FinalizationRegistry<"u"?FinalizationRegistry:ZK,Wy=new eX(function(n){var o;(o=n.reaction)===null||o===void 0||o.dispose(),n.reaction=null}),rB={exports:{}},nB={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -230,8 +230,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ip=x;function UK(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var GK=typeof Object.is=="function"?Object.is:UK,VK=ip.useState,QK=ip.useEffect,WK=ip.useLayoutEffect,qK=ip.useDebugValue;function _K(n,o){var i=o(),s=VK({inst:{value:i,getSnapshot:o}}),l=s[0].inst,c=s[1];return WK(function(){l.value=i,l.getSnapshot=o,Ww(l)&&c({inst:l})},[n,i,o]),QK(function(){return Ww(l)&&c({inst:l}),n(function(){Ww(l)&&c({inst:l})})},[n]),qK(i),i}function Ww(n){var o=n.getSnapshot;n=n.value;try{var i=o();return!GK(n,i)}catch{return!0}}function YK(n,o){return o()}var KK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?YK:_K;XR.useSyncExternalStore=ip.useSyncExternalStore!==void 0?ip.useSyncExternalStore:KK;KR.exports=XR;var XK=KR.exports;function VS(n){n.reaction=new Su("observer".concat(n.name),function(){var o;n.stateVersion=Symbol(),(o=n.onStoreChange)===null||o===void 0||o.call(n)})}function JK(n,o){o===void 0&&(o="observed");var i=fs.useRef(null);if(!i.current){var s={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:o,subscribe:function(f){return Vy.unregister(s),s.onStoreChange=f,s.reaction||(VS(s),s.stateVersion=Symbol()),function(){var p;s.onStoreChange=null,(p=s.reaction)===null||p===void 0||p.dispose(),s.reaction=null}},getSnapshot:function(){return s.stateVersion}};i.current=s}var l=i.current;l.reaction||(VS(l),Vy.register(i,l,l)),fs.useDebugValue(l.reaction,NK),XK.useSyncExternalStore(l.subscribe,l.getSnapshot,l.getSnapshot);var c,d;if(l.reaction.track(function(){try{c=n()}catch(f){d=f}}),d)throw d;return c}var qw,_w,JR=typeof Symbol=="function"&&Symbol.for,ZK=(_w=(qw=Object.getOwnPropertyDescriptor(function(){},"name"))===null||qw===void 0?void 0:qw.configurable)!==null&&_w!==void 0?_w:!1,QS=JR?Symbol.for("react.forward_ref"):typeof x.forwardRef=="function"&&x.forwardRef(function(n){return null}).$$typeof,WS=JR?Symbol.for("react.memo"):typeof x.memo=="function"&&x.memo(function(n){return null}).$$typeof;function Ou(n,o){var i;if(WS&&n.$$typeof===WS)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var s=(i=void 0)!==null&&i!==void 0?i:!1,l=n,c=n.displayName||n.name;if(QS&&n.$$typeof===QS&&(s=!0,l=n.render,typeof l!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var d=function(f,p){return JK(function(){return l(f,p)},c)};return d.displayName=n.displayName,ZK&&Object.defineProperty(d,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(d.contextTypes=n.contextTypes),s&&(d=x.forwardRef(d)),d=x.memo(d),tX(n,d),d}var eX={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function tX(n,o){Object.keys(n).forEach(function(i){eX[i]||Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(n,i))})}var Yw;DK(mm.unstable_batchedUpdates);Yw=Vy.finalizeAllImmediately;const a0="https://libererisas-backend.onrender.com/api/Tag";class rX{constructor(){li(this,"tagList",[]);li(this,"isMessage",!1);li(this,"message","");Em(this,{tagList:Kn,fetchTag:xo,updateTag:xo,deleteTag:xo,addTag:xo}),this.fetchTag()}async fetchTag(){try{console.log("in fetch");let i=await(await fetch(a0)).json();Pc(()=>{this.tagList=this.extractRawData(i),console.log("Processed data:",this.tagList)})}catch(o){console.error("Failed to fetch tag:",o)}}extractRawData(o){return o!=null&&o.data!=null?(console.log("Extracting data from proxy object:",o.data),o.data):(console.log("Returning original object as it's not a proxy:",o),o)}async checkItemsUsingTag(o){return await(await fetch(a0+`/${o}/items`)).json()}async deleteTag(o){try{console.log("in delete"),(await fetch(a0+"/"+o,{method:"DELETE"})).status===200?this.success("!נמחק בהצלחה"):this.failure("!המחיקה נכשלה"),this.fetchTag()}catch(i){console.error("Failed to delete tag:",i)}}async addTag(o){try{console.log("tagData: "+JSON.stringify(o)),this.tagList.find(s=>s.name===o.name)?this.isMessage?this.message="❌תג עם שם זהה כבר קיים!":this.failure("!תג עם שם זהה כבר קיים"):(await fetch(a0+"/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})).status===200?this.isMessage?this.message="✅נוסף בהצלחה!":this.success("!נוסף בהצלחה"):this.isMessage?this.message="❌ההוספה נכשלה!":this.failure("!ההוספה נכשלה"),this.fetchTag()}catch(i){console.error("Failed to update tag:",i)}}async updateTag(o,i){try{console.log("tagData: "+JSON.stringify(i)),this.tagList.find(l=>l.name===i.name)?this.failure("!תג עם שם זהה כבר קיים"):((await fetch(a0+"/"+o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).status===200?this.success("!עודכן בהצלחה"):this.failure("!העדכון נכשל"),this.fetchTag())}catch(s){console.error("Failed to update tag:",s)}}success(o){Mn.fire({text:o,icon:"success",timer:1700})}failure(o){Mn.fire({icon:"error",title:"...אופס",text:o,timer:1700})}get getTagsList(){return this.tagList}}const Fi=new rX,Ba=Object.freeze({PRESCHOOL:"גיל הרך",LOW:"נמוכה",HIGH:"גבוהה",CLASS:"כיתה"}),Io=Object.freeze({FILE:0,BOOK:1,PHYSICALITEM:2}),nX=_r(b.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),oX=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],iX=["component","slots","slotProps"],aX=["component"];function sX(n,o){const{className:i,elementType:s,ownerState:l,externalForwardedProps:c,getSlotOwnerState:d,internalForwardedProps:f}=o,p=Qe(o,oX),{component:m,slots:g={[n]:void 0},slotProps:v={[n]:void 0}}=c;Qe(c,iX);const w=g[n]||s,A=yP(v[n],l),k=xP(P({className:i},p,{externalForwardedProps:void 0,externalSlotProps:A})),{props:{component:C},internalRef:M}=k,S=Qe(k.props,aX),I=Xn(M,A==null?void 0:A.ref,o.ref),E=d?d(S):{},j=P({},l,E),B=C,F=f2(w,P({},n==="root",!g[n]&&f,S,B&&{as:B},{ref:I}),j);return Object.keys(E).forEach(O=>{delete F[O]}),[w,F]}const lX=_r(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function cX(n){return Kt("MuiAppBar",n)}Yt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const uX=["className","color","enableColorOnDark","position"],dX=n=>{const{color:o,position:i,classes:s}=n,l={root:["root",`color${Ke(o)}`,`position${Ke(i)}`]};return Rt(l,cX,s)},Cg=(n,o)=>n?`${n==null?void 0:n.replace(")","")}, ${o})`:o,fX=_e(yl,{name:"MuiAppBar",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`position${Ke(i.position)}`],o[`color${Ke(i.color)}`]]}})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light"?n.palette.grey[100]:n.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},o.position==="fixed"&&{position:"fixed",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},o.position==="absolute"&&{position:"absolute",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0},o.position==="sticky"&&{position:"sticky",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0},o.position==="static"&&{position:"static"},o.position==="relative"&&{position:"relative"},!n.vars&&P({},o.color==="default"&&{backgroundColor:i,color:n.palette.getContrastText(i)},o.color&&o.color!=="default"&&o.color!=="inherit"&&o.color!=="transparent"&&{backgroundColor:n.palette[o.color].main,color:n.palette[o.color].contrastText},o.color==="inherit"&&{color:"inherit"},n.palette.mode==="dark"&&!o.enableColorOnDark&&{backgroundColor:null,color:null},o.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},n.palette.mode==="dark"&&{backgroundImage:"none"})),n.vars&&P({},o.color==="default"&&{"--AppBar-background":o.enableColorOnDark?n.vars.palette.AppBar.defaultBg:Cg(n.vars.palette.AppBar.darkBg,n.vars.palette.AppBar.defaultBg),"--AppBar-color":o.enableColorOnDark?n.vars.palette.text.primary:Cg(n.vars.palette.AppBar.darkColor,n.vars.palette.text.primary)},o.color&&!o.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":o.enableColorOnDark?n.vars.palette[o.color].main:Cg(n.vars.palette.AppBar.darkBg,n.vars.palette[o.color].main),"--AppBar-color":o.enableColorOnDark?n.vars.palette[o.color].contrastText:Cg(n.vars.palette.AppBar.darkColor,n.vars.palette[o.color].contrastText)},!["inherit","transparent"].includes(o.color)&&{backgroundColor:"var(--AppBar-background)"},{color:o.color==="inherit"?"inherit":"var(--AppBar-color)"},o.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),pX=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiAppBar"}),{className:l,color:c="primary",enableColorOnDark:d=!1,position:f="fixed"}=s,p=Qe(s,uX),m=P({},s,{color:c,position:f,enableColorOnDark:d}),g=dX(m);return b.jsx(fX,P({square:!0,component:"header",ownerState:m,elevation:4,className:nt(g.root,l,f==="fixed"&&"mui-fixed"),ref:i},p))});function qS(n){return typeof n.normalize<"u"?n.normalize("NFD").replace(/[\u0300-\u036f]/g,""):n}function ZR(n={}){const{ignoreAccents:o=!0,ignoreCase:i=!0,limit:s,matchFrom:l="any",stringify:c,trim:d=!1}=n;return(f,{inputValue:p,getOptionLabel:m})=>{let g=d?p.trim():p;i&&(g=g.toLowerCase()),o&&(g=qS(g));const v=g?f.filter(w=>{let A=(c||m)(w);return i&&(A=A.toLowerCase()),o&&(A=qS(A)),l==="start"?A.indexOf(g)===0:A.indexOf(g)>-1}):f;return typeof s=="number"?v.slice(0,s):v}}function kg(n,o){for(let i=0;i{var o;return n.current!==null&&((o=n.current.parentElement)==null?void 0:o.contains(document.activeElement))};function gX(n){const{unstable_isActiveElementInListbox:o=mX,unstable_classNamePrefix:i="Mui",autoComplete:s=!1,autoHighlight:l=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:f=!n.freeSolo,clearOnEscape:p=!1,componentName:m="useAutocomplete",defaultValue:g=n.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:w=!1,disabled:A,disabledItemsFocusable:k=!1,disableListWrap:C=!1,filterOptions:M=hX,filterSelectedOptions:S=!1,freeSolo:I=!1,getOptionDisabled:E,getOptionKey:j,getOptionLabel:B=Oe=>{var Ce;return(Ce=Oe.label)!=null?Ce:Oe},groupBy:F,handleHomeEndKeys:O=!n.freeSolo,id:N,includeInputInList:H=!1,inputValue:L,isOptionEqualToValue:_=(Oe,Ce)=>Oe===Ce,multiple:V=!1,onChange:$,onClose:z,onHighlightChange:Q,onInputChange:G,onOpen:D,open:q,openOnFocus:W=!1,options:X,readOnly:te=!1,selectOnFocus:se=!n.freeSolo,value:de}=n,ee=Ro(N);let fe=B;fe=Oe=>{const Ce=B(Oe);return typeof Ce!="string"?String(Ce):Ce};const he=x.useRef(!1),Ie=x.useRef(!0),ve=x.useRef(null),be=x.useRef(null),[ke,ze]=x.useState(null),[Ge,Ve]=x.useState(-1),at=l?0:-1,We=x.useRef(at),[ue,Le]=Rc({controlled:de,default:g,name:m}),[$e,bt]=Rc({controlled:L,default:"",name:m,state:"inputValue"}),[ot,st]=x.useState(!1),Ze=x.useCallback((Oe,Ce)=>{if(!(V?ue.length!(S&&(V?ue:[ue]).some(Ce=>Ce!==null&&_(Oe,Ce)))),{inputValue:pt&&Pt?"":$e,getOptionLabel:fe}):[],Je=Y6({filteredOptions:Re,value:ue,inputValue:$e});x.useEffect(()=>{const Oe=ue!==Je.value;ot&&!Oe||I&&!Oe||Ze(null,ue)},[ue,Ze,ot,Je.value,I]);const It=dt&&Re.length>0&&!te,Nt=ln(Oe=>{Oe===-1?ve.current.focus():ke.querySelector(`[data-tag-index="${Oe}"]`).focus()});x.useEffect(()=>{V&&Ge>ue.length-1&&(Ve(-1),Nt(-1))},[ue,V,Ge,Nt]);function ht(Oe,Ce){if(!be.current||Oe<0||Oe>=Re.length)return-1;let Ye=Oe;for(;;){const et=be.current.querySelector(`[data-option-index="${Ye}"]`),Et=k?!1:!et||et.disabled||et.getAttribute("aria-disabled")==="true";if(et&&et.hasAttribute("tabindex")&&!Et)return Ye;if(Ce==="next"?Ye=(Ye+1)%Re.length:Ye=(Ye-1+Re.length)%Re.length,Ye===Oe)return-1}}const xt=ln(({event:Oe,index:Ce,reason:Ye="auto"})=>{if(We.current=Ce,Ce===-1?ve.current.removeAttribute("aria-activedescendant"):ve.current.setAttribute("aria-activedescendant",`${ee}-option-${Ce}`),Q&&Q(Oe,Ce===-1?null:Re[Ce],Ye),!be.current)return;const et=be.current.querySelector(`[role="option"].${i}-focused`);et&&(et.classList.remove(`${i}-focused`),et.classList.remove(`${i}-focusVisible`));let Et=be.current;if(be.current.getAttribute("role")!=="listbox"&&(Et=be.current.parentElement.querySelector('[role="listbox"]')),!Et)return;if(Ce===-1){Et.scrollTop=0;return}const ut=be.current.querySelector(`[data-option-index="${Ce}"]`);if(ut&&(ut.classList.add(`${i}-focused`),Ye==="keyboard"&&ut.classList.add(`${i}-focusVisible`),Et.scrollHeight>Et.clientHeight&&Ye!=="mouse"&&Ye!=="touch")){const Dt=ut,jt=Et.clientHeight+Et.scrollTop,nr=Dt.offsetTop+Dt.offsetHeight;nr>jt?Et.scrollTop=nr-Et.clientHeight:Dt.offsetTop-Dt.offsetHeight*(F?1.3:0){if(!Te)return;const ut=ht((()=>{const Dt=Re.length-1;if(Ce==="reset")return at;if(Ce==="start")return 0;if(Ce==="end")return Dt;const jt=We.current+Ce;return jt<0?jt===-1&&H?-1:C&&We.current!==-1||Math.abs(Ce)>1?0:Dt:jt>Dt?jt===Dt+1&&H?-1:C||Math.abs(Ce)>1?Dt:0:jt})(),Ye);if(xt({index:ut,reason:et,event:Oe}),s&&Ce!=="reset")if(ut===-1)ve.current.value=$e;else{const Dt=fe(Re[ut]);ve.current.value=Dt,Dt.toLowerCase().indexOf($e.toLowerCase())===0&&$e.length>0&&ve.current.setSelectionRange($e.length,Dt.length)}}),Y=()=>{const Oe=(Ce,Ye)=>{const et=Ce?fe(Ce):"",Et=Ye?fe(Ye):"";return et===Et};if(We.current!==-1&&Je.filteredOptions&&Je.filteredOptions.length!==Re.length&&Je.inputValue===$e&&(V?ue.length===Je.value.length&&Je.value.every((Ce,Ye)=>fe(ue[Ye])===fe(Ce)):Oe(Je.value,ue))){const Ce=Je.filteredOptions[We.current];if(Ce)return kg(Re,Ye=>fe(Ye)===fe(Ce))}return-1},re=x.useCallback(()=>{if(!Te)return;const Oe=Y();if(Oe!==-1){We.current=Oe;return}const Ce=V?ue[0]:ue;if(Re.length===0||Ce==null){tt({diff:"reset"});return}if(be.current){if(Ce!=null){const Ye=Re[We.current];if(V&&Ye&&kg(ue,Et=>_(Ye,Et))!==-1)return;const et=kg(Re,Et=>_(Et,Ce));et===-1?tt({diff:"reset"}):xt({index:et});return}if(We.current>=Re.length-1){xt({index:Re.length-1});return}xt({index:We.current})}},[Re.length,V?!1:ue,S,tt,xt,Te,$e,V]),ie=ln(Oe=>{xh(be,Oe),Oe&&re()});x.useEffect(()=>{re()},[re]);const le=Oe=>{dt||(Xe(!0),mt(!0),D&&D(Oe))},ge=(Oe,Ce)=>{dt&&(Xe(!1),z&&z(Oe,Ce))},Me=(Oe,Ce,Ye,et)=>{if(V){if(ue.length===Ce.length&&ue.every((Et,ut)=>Et===Ce[ut]))return}else if(ue===Ce)return;$&&$(Oe,Ce,Ye,et),Le(Ce)},me=x.useRef(!1),Ee=(Oe,Ce,Ye="selectOption",et="options")=>{let Et=Ye,ut=Ce;if(V){ut=Array.isArray(ue)?ue.slice():[];const Dt=kg(ut,jt=>_(Ce,jt));Dt===-1?ut.push(Ce):et!=="freeSolo"&&(ut.splice(Dt,1),Et="removeOption")}Ze(Oe,ut),Me(Oe,ut,Et,{option:Ce}),!w&&(!Oe||!Oe.ctrlKey&&!Oe.metaKey)&&ge(Oe,Et),(d===!0||d==="touch"&&me.current||d==="mouse"&&!me.current)&&ve.current.blur()};function ce(Oe,Ce){if(Oe===-1)return-1;let Ye=Oe;for(;;){if(Ce==="next"&&Ye===ue.length||Ce==="previous"&&Ye===-1)return-1;const et=ke.querySelector(`[data-tag-index="${Ye}"]`);if(!et||!et.hasAttribute("tabindex")||et.disabled||et.getAttribute("aria-disabled")==="true")Ye+=Ce==="next"?1:-1;else return Ye}}const Pe=(Oe,Ce)=>{if(!V)return;$e===""&&ge(Oe,"toggleInput");let Ye=Ge;Ge===-1?$e===""&&Ce==="previous"&&(Ye=ue.length-1):(Ye+=Ce==="next"?1:-1,Ye<0&&(Ye=0),Ye===ue.length&&(Ye=-1)),Ye=ce(Ye,Ce),Ve(Ye),Nt(Ye)},He=Oe=>{he.current=!0,bt(""),G&&G(Oe,"","clear"),Me(Oe,V?[]:null,"clear")},Ne=Oe=>Ce=>{if(Oe.onKeyDown&&Oe.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ge!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(Ve(-1),Nt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Te&&O&&(Ce.preventDefault(),tt({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Te&&O&&(Ce.preventDefault(),tt({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),tt({diff:-_S,direction:"previous",reason:"keyboard",event:Ce}),le(Ce);break;case"PageDown":Ce.preventDefault(),tt({diff:_S,direction:"next",reason:"keyboard",event:Ce}),le(Ce);break;case"ArrowDown":Ce.preventDefault(),tt({diff:1,direction:"next",reason:"keyboard",event:Ce}),le(Ce);break;case"ArrowUp":Ce.preventDefault(),tt({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),le(Ce);break;case"ArrowLeft":Pe(Ce,"previous");break;case"ArrowRight":Pe(Ce,"next");break;case"Enter":if(We.current!==-1&&Te){const Ye=Re[We.current],et=E?E(Ye):!1;if(Ce.preventDefault(),et)return;Ee(Ce,Ye,"selectOption"),s&&ve.current.setSelectionRange(ve.current.value.length,ve.current.value.length)}else I&&$e!==""&&pt===!1&&(V&&Ce.preventDefault(),Ee(Ce,$e,"createOption","freeSolo"));break;case"Escape":Te?(Ce.preventDefault(),Ce.stopPropagation(),ge(Ce,"escape")):p&&($e!==""||V&&ue.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),He(Ce));break;case"Backspace":if(V&&!te&&$e===""&&ue.length>0){const Ye=Ge===-1?ue.length-1:Ge,et=ue.slice();et.splice(Ye,1),Me(Ce,et,"removeOption",{option:ue[Ye]})}break;case"Delete":if(V&&!te&&$e===""&&ue.length>0&&Ge!==-1){const Ye=Ge,et=ue.slice();et.splice(Ye,1),Me(Ce,et,"removeOption",{option:ue[Ye]})}break}},ye=Oe=>{st(!0),W&&!he.current&&le(Oe)},rt=Oe=>{if(o(be)){ve.current.focus();return}st(!1),Ie.current=!0,he.current=!1,c&&We.current!==-1&&Te?Ee(Oe,Re[We.current],"blur"):c&&I&&$e!==""?Ee(Oe,$e,"blur","freeSolo"):f&&Ze(Oe,ue),ge(Oe,"blur")},Be=Oe=>{const Ce=Oe.target.value;$e!==Ce&&(bt(Ce),mt(!1),G&&G(Oe,Ce,"input")),Ce===""?!v&&!V&&Me(Oe,null,"clear"):le(Oe)},Ae=Oe=>{const Ce=Number(Oe.currentTarget.getAttribute("data-option-index"));We.current!==Ce&&xt({event:Oe,index:Ce,reason:"mouse"})},Ue=Oe=>{xt({event:Oe,index:Number(Oe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),me.current=!0},qe=Oe=>{const Ce=Number(Oe.currentTarget.getAttribute("data-option-index"));Ee(Oe,Re[Ce],"selectOption"),me.current=!1},Fe=Oe=>Ce=>{const Ye=ue.slice();Ye.splice(Oe,1),Me(Ce,Ye,"removeOption",{option:ue[Oe]})},lt=Oe=>{dt?ge(Oe,"toggleInput"):le(Oe)},gt=Oe=>{Oe.currentTarget.contains(Oe.target)&&Oe.target.getAttribute("id")!==ee&&Oe.preventDefault()},At=Oe=>{Oe.currentTarget.contains(Oe.target)&&(ve.current.focus(),se&&Ie.current&&ve.current.selectionEnd-ve.current.selectionStart===0&&ve.current.select(),Ie.current=!1)},St=Oe=>{!A&&($e===""||!dt)&<(Oe)};let yt=I&&$e.length>0;yt=yt||(V?ue.length>0:ue!==null);let Ct=Re;return F&&(Ct=Re.reduce((Oe,Ce,Ye)=>{const et=F(Ce);return Oe.length>0&&Oe[Oe.length-1].group===et?Oe[Oe.length-1].options.push(Ce):Oe.push({key:Ye,index:Ye,group:et,options:[Ce]}),Oe},[])),A&&ot&&rt(),{getRootProps:(Oe={})=>P({"aria-owns":It?`${ee}-listbox`:null},Oe,{onKeyDown:Ne(Oe),onMouseDown:gt,onClick:At}),getInputLabelProps:()=>({id:`${ee}-label`,htmlFor:ee}),getInputProps:()=>({id:ee,value:$e,onBlur:rt,onFocus:ye,onChange:Be,onMouseDown:St,"aria-activedescendant":Te?"":null,"aria-autocomplete":s?"both":"list","aria-controls":It?`${ee}-listbox`:void 0,"aria-expanded":It,autoComplete:"off",ref:ve,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:A}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:He}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getTagProps:({index:Oe})=>P({key:Oe,"data-tag-index":Oe,tabIndex:-1},!te&&{onDelete:Fe(Oe)}),getListboxProps:()=>({role:"listbox",id:`${ee}-listbox`,"aria-labelledby":`${ee}-label`,ref:ie,onMouseDown:Oe=>{Oe.preventDefault()}}),getOptionProps:({index:Oe,option:Ce})=>{var Ye;const et=(V?ue:[ue]).some(ut=>ut!=null&&_(Ce,ut)),Et=E?E(Ce):!1;return{key:(Ye=j==null?void 0:j(Ce))!=null?Ye:fe(Ce),tabIndex:-1,role:"option",id:`${ee}-option-${Oe}`,onMouseMove:Ae,onClick:qe,onTouchStart:Ue,"data-option-index":Oe,"aria-disabled":Et,"aria-selected":et}},id:ee,inputValue:$e,value:ue,dirty:yt,expanded:Te&&ke,popupOpen:Te,focused:ot||Ge!==-1,anchorEl:ke,setAnchorEl:ze,focusedTag:Ge,groupedOptions:Ct}}var pA={};Object.defineProperty(pA,"__esModule",{value:!0});var eB=pA.default=void 0,vX=wX(x),bX=YO;function tB(n){if(typeof WeakMap!="function")return null;var o=new WeakMap,i=new WeakMap;return(tB=function(s){return s?i:o})(n)}function wX(n,o){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=tB(o);if(i&&i.has(n))return i.get(n);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if(c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)){var d=l?Object.getOwnPropertyDescriptor(n,c):null;d&&(d.get||d.set)?Object.defineProperty(s,c,d):s[c]=n[c]}return s.default=n,i&&i.set(n,s),s}function xX(n){return Object.keys(n).length===0}function yX(n=null){const o=vX.useContext(bX.ThemeContext);return!o||xX(o)?n:o}eB=pA.default=yX;var gl="top",E1="bottom",M1="right",vl="left",hA="auto",jm=[gl,E1,M1,vl],ap="start",Wh="end",AX="clippingParents",rB="viewport",s0="popper",CX="reference",YS=jm.reduce(function(n,o){return n.concat([o+"-"+ap,o+"-"+Wh])},[]),nB=[].concat(jm,[hA]).reduce(function(n,o){return n.concat([o,o+"-"+ap,o+"-"+Wh])},[]),kX="beforeRead",SX="read",IX="afterRead",EX="beforeMain",MX="main",PX="afterMain",jX="beforeWrite",OX="write",RX="afterWrite",BX=[kX,SX,IX,EX,MX,PX,jX,OX,RX];function Vc(n){return n?(n.nodeName||"").toLowerCase():null}function Gl(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var o=n.ownerDocument;return o&&o.defaultView||window}return n}function Af(n){var o=Gl(n).Element;return n instanceof o||n instanceof Element}function A1(n){var o=Gl(n).HTMLElement;return n instanceof o||n instanceof HTMLElement}function mA(n){if(typeof ShadowRoot>"u")return!1;var o=Gl(n).ShadowRoot;return n instanceof o||n instanceof ShadowRoot}function TX(n){var o=n.state;Object.keys(o.elements).forEach(function(i){var s=o.styles[i]||{},l=o.attributes[i]||{},c=o.elements[i];!A1(c)||!Vc(c)||(Object.assign(c.style,s),Object.keys(l).forEach(function(d){var f=l[d];f===!1?c.removeAttribute(d):c.setAttribute(d,f===!0?"":f)}))})}function FX(n){var o=n.state,i={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,i.popper),o.styles=i,o.elements.arrow&&Object.assign(o.elements.arrow.style,i.arrow),function(){Object.keys(o.elements).forEach(function(s){var l=o.elements[s],c=o.attributes[s]||{},d=Object.keys(o.styles.hasOwnProperty(s)?o.styles[s]:i[s]),f=d.reduce(function(p,m){return p[m]="",p},{});!A1(l)||!Vc(l)||(Object.assign(l.style,f),Object.keys(c).forEach(function(p){l.removeAttribute(p)}))})}}const DX={name:"applyStyles",enabled:!0,phase:"write",fn:TX,effect:FX,requires:["computeStyles"]};function $c(n){return n.split("-")[0]}var nf=Math.max,i3=Math.min,sp=Math.round;function Qy(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function oB(){return!/^((?!chrome|android).)*safari/i.test(Qy())}function lp(n,o,i){o===void 0&&(o=!1),i===void 0&&(i=!1);var s=n.getBoundingClientRect(),l=1,c=1;o&&A1(n)&&(l=n.offsetWidth>0&&sp(s.width)/n.offsetWidth||1,c=n.offsetHeight>0&&sp(s.height)/n.offsetHeight||1);var d=Af(n)?Gl(n):window,f=d.visualViewport,p=!oB()&&i,m=(s.left+(p&&f?f.offsetLeft:0))/l,g=(s.top+(p&&f?f.offsetTop:0))/c,v=s.width/l,w=s.height/c;return{width:v,height:w,top:g,right:m+v,bottom:g+w,left:m,x:m,y:g}}function gA(n){var o=lp(n),i=n.offsetWidth,s=n.offsetHeight;return Math.abs(o.width-i)<=1&&(i=o.width),Math.abs(o.height-s)<=1&&(s=o.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:s}}function iB(n,o){var i=o.getRootNode&&o.getRootNode();if(n.contains(o))return!0;if(i&&mA(i)){var s=o;do{if(s&&n.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Iu(n){return Gl(n).getComputedStyle(n)}function NX(n){return["table","td","th"].indexOf(Vc(n))>=0}function Dd(n){return((Af(n)?n.ownerDocument:n.document)||window.document).documentElement}function Ob(n){return Vc(n)==="html"?n:n.assignedSlot||n.parentNode||(mA(n)?n.host:null)||Dd(n)}function KS(n){return!A1(n)||Iu(n).position==="fixed"?null:n.offsetParent}function $X(n){var o=/firefox/i.test(Qy()),i=/Trident/i.test(Qy());if(i&&A1(n)){var s=Iu(n);if(s.position==="fixed")return null}var l=Ob(n);for(mA(l)&&(l=l.host);A1(l)&&["html","body"].indexOf(Vc(l))<0;){var c=Iu(l);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||o&&c.willChange==="filter"||o&&c.filter&&c.filter!=="none")return l;l=l.parentNode}return null}function Om(n){for(var o=Gl(n),i=KS(n);i&&NX(i)&&Iu(i).position==="static";)i=KS(i);return i&&(Vc(i)==="html"||Vc(i)==="body"&&Iu(i).position==="static")?o:i||$X(n)||o}function vA(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function uh(n,o,i){return nf(n,i3(o,i))}function LX(n,o,i){var s=uh(n,o,i);return s>i?i:s}function aB(){return{top:0,right:0,bottom:0,left:0}}function sB(n){return Object.assign({},aB(),n)}function lB(n,o){return o.reduce(function(i,s){return i[s]=n,i},{})}var zX=function(o,i){return o=typeof o=="function"?o(Object.assign({},i.rects,{placement:i.placement})):o,sB(typeof o!="number"?o:lB(o,jm))};function HX(n){var o,i=n.state,s=n.name,l=n.options,c=i.elements.arrow,d=i.modifiersData.popperOffsets,f=$c(i.placement),p=vA(f),m=[vl,M1].indexOf(f)>=0,g=m?"height":"width";if(!(!c||!d)){var v=zX(l.padding,i),w=gA(c),A=p==="y"?gl:vl,k=p==="y"?E1:M1,C=i.rects.reference[g]+i.rects.reference[p]-d[p]-i.rects.popper[g],M=d[p]-i.rects.reference[p],S=Om(c),I=S?p==="y"?S.clientHeight||0:S.clientWidth||0:0,E=C/2-M/2,j=v[A],B=I-w[g]-v[k],F=I/2-w[g]/2+E,O=uh(j,F,B),N=p;i.modifiersData[s]=(o={},o[N]=O,o.centerOffset=O-F,o)}}function UX(n){var o=n.state,i=n.options,s=i.element,l=s===void 0?"[data-popper-arrow]":s;l!=null&&(typeof l=="string"&&(l=o.elements.popper.querySelector(l),!l)||iB(o.elements.popper,l)&&(o.elements.arrow=l))}const GX={name:"arrow",enabled:!0,phase:"main",fn:HX,effect:UX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cp(n){return n.split("-")[1]}var VX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QX(n,o){var i=n.x,s=n.y,l=o.devicePixelRatio||1;return{x:sp(i*l)/l||0,y:sp(s*l)/l||0}}function XS(n){var o,i=n.popper,s=n.popperRect,l=n.placement,c=n.variation,d=n.offsets,f=n.position,p=n.gpuAcceleration,m=n.adaptive,g=n.roundOffsets,v=n.isFixed,w=d.x,A=w===void 0?0:w,k=d.y,C=k===void 0?0:k,M=typeof g=="function"?g({x:A,y:C}):{x:A,y:C};A=M.x,C=M.y;var S=d.hasOwnProperty("x"),I=d.hasOwnProperty("y"),E=vl,j=gl,B=window;if(m){var F=Om(i),O="clientHeight",N="clientWidth";if(F===Gl(i)&&(F=Dd(i),Iu(F).position!=="static"&&f==="absolute"&&(O="scrollHeight",N="scrollWidth")),F=F,l===gl||(l===vl||l===M1)&&c===Wh){j=E1;var H=v&&F===B&&B.visualViewport?B.visualViewport.height:F[O];C-=H-s.height,C*=p?1:-1}if(l===vl||(l===gl||l===E1)&&c===Wh){E=M1;var L=v&&F===B&&B.visualViewport?B.visualViewport.width:F[N];A-=L-s.width,A*=p?1:-1}}var _=Object.assign({position:f},m&&VX),V=g===!0?QX({x:A,y:C},Gl(i)):{x:A,y:C};if(A=V.x,C=V.y,p){var $;return Object.assign({},_,($={},$[j]=I?"0":"",$[E]=S?"0":"",$.transform=(B.devicePixelRatio||1)<=1?"translate("+A+"px, "+C+"px)":"translate3d("+A+"px, "+C+"px, 0)",$))}return Object.assign({},_,(o={},o[j]=I?C+"px":"",o[E]=S?A+"px":"",o.transform="",o))}function WX(n){var o=n.state,i=n.options,s=i.gpuAcceleration,l=s===void 0?!0:s,c=i.adaptive,d=c===void 0?!0:c,f=i.roundOffsets,p=f===void 0?!0:f,m={placement:$c(o.placement),variation:cp(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:l,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,XS(Object.assign({},m,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:d,roundOffsets:p})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,XS(Object.assign({},m,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const qX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:WX,data:{}};var Sg={passive:!0};function _X(n){var o=n.state,i=n.instance,s=n.options,l=s.scroll,c=l===void 0?!0:l,d=s.resize,f=d===void 0?!0:d,p=Gl(o.elements.popper),m=[].concat(o.scrollParents.reference,o.scrollParents.popper);return c&&m.forEach(function(g){g.addEventListener("scroll",i.update,Sg)}),f&&p.addEventListener("resize",i.update,Sg),function(){c&&m.forEach(function(g){g.removeEventListener("scroll",i.update,Sg)}),f&&p.removeEventListener("resize",i.update,Sg)}}const YX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_X,data:{}};var KX={left:"right",right:"left",bottom:"top",top:"bottom"};function av(n){return n.replace(/left|right|bottom|top/g,function(o){return KX[o]})}var XX={start:"end",end:"start"};function JS(n){return n.replace(/start|end/g,function(o){return XX[o]})}function bA(n){var o=Gl(n),i=o.pageXOffset,s=o.pageYOffset;return{scrollLeft:i,scrollTop:s}}function wA(n){return lp(Dd(n)).left+bA(n).scrollLeft}function JX(n,o){var i=Gl(n),s=Dd(n),l=i.visualViewport,c=s.clientWidth,d=s.clientHeight,f=0,p=0;if(l){c=l.width,d=l.height;var m=oB();(m||!m&&o==="fixed")&&(f=l.offsetLeft,p=l.offsetTop)}return{width:c,height:d,x:f+wA(n),y:p}}function ZX(n){var o,i=Dd(n),s=bA(n),l=(o=n.ownerDocument)==null?void 0:o.body,c=nf(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=nf(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),f=-s.scrollLeft+wA(n),p=-s.scrollTop;return Iu(l||i).direction==="rtl"&&(f+=nf(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:f,y:p}}function xA(n){var o=Iu(n),i=o.overflow,s=o.overflowX,l=o.overflowY;return/auto|scroll|overlay|hidden/.test(i+l+s)}function cB(n){return["html","body","#document"].indexOf(Vc(n))>=0?n.ownerDocument.body:A1(n)&&xA(n)?n:cB(Ob(n))}function dh(n,o){var i;o===void 0&&(o=[]);var s=cB(n),l=s===((i=n.ownerDocument)==null?void 0:i.body),c=Gl(s),d=l?[c].concat(c.visualViewport||[],xA(s)?s:[]):s,f=o.concat(d);return l?f:f.concat(dh(Ob(d)))}function Wy(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function eJ(n,o){var i=lp(n,!1,o==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function ZS(n,o,i){return o===rB?Wy(JX(n,i)):Af(o)?eJ(o,i):Wy(ZX(Dd(n)))}function tJ(n){var o=dh(Ob(n)),i=["absolute","fixed"].indexOf(Iu(n).position)>=0,s=i&&A1(n)?Om(n):n;return Af(s)?o.filter(function(l){return Af(l)&&iB(l,s)&&Vc(l)!=="body"}):[]}function rJ(n,o,i,s){var l=o==="clippingParents"?tJ(n):[].concat(o),c=[].concat(l,[i]),d=c[0],f=c.reduce(function(p,m){var g=ZS(n,m,s);return p.top=nf(g.top,p.top),p.right=i3(g.right,p.right),p.bottom=i3(g.bottom,p.bottom),p.left=nf(g.left,p.left),p},ZS(n,d,s));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function uB(n){var o=n.reference,i=n.element,s=n.placement,l=s?$c(s):null,c=s?cp(s):null,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p;switch(l){case gl:p={x:d,y:o.y-i.height};break;case E1:p={x:d,y:o.y+o.height};break;case M1:p={x:o.x+o.width,y:f};break;case vl:p={x:o.x-i.width,y:f};break;default:p={x:o.x,y:o.y}}var m=l?vA(l):null;if(m!=null){var g=m==="y"?"height":"width";switch(c){case ap:p[m]=p[m]-(o[g]/2-i[g]/2);break;case Wh:p[m]=p[m]+(o[g]/2-i[g]/2);break}}return p}function qh(n,o){o===void 0&&(o={});var i=o,s=i.placement,l=s===void 0?n.placement:s,c=i.strategy,d=c===void 0?n.strategy:c,f=i.boundary,p=f===void 0?AX:f,m=i.rootBoundary,g=m===void 0?rB:m,v=i.elementContext,w=v===void 0?s0:v,A=i.altBoundary,k=A===void 0?!1:A,C=i.padding,M=C===void 0?0:C,S=sB(typeof M!="number"?M:lB(M,jm)),I=w===s0?CX:s0,E=n.rects.popper,j=n.elements[k?I:w],B=rJ(Af(j)?j:j.contextElement||Dd(n.elements.popper),p,g,d),F=lp(n.elements.reference),O=uB({reference:F,element:E,strategy:"absolute",placement:l}),N=Wy(Object.assign({},E,O)),H=w===s0?N:F,L={top:B.top-H.top+S.top,bottom:H.bottom-B.bottom+S.bottom,left:B.left-H.left+S.left,right:H.right-B.right+S.right},_=n.modifiersData.offset;if(w===s0&&_){var V=_[l];Object.keys(L).forEach(function($){var z=[M1,E1].indexOf($)>=0?1:-1,Q=[gl,E1].indexOf($)>=0?"y":"x";L[$]+=V[Q]*z})}return L}function nJ(n,o){o===void 0&&(o={});var i=o,s=i.placement,l=i.boundary,c=i.rootBoundary,d=i.padding,f=i.flipVariations,p=i.allowedAutoPlacements,m=p===void 0?nB:p,g=cp(s),v=g?f?YS:YS.filter(function(k){return cp(k)===g}):jm,w=v.filter(function(k){return m.indexOf(k)>=0});w.length===0&&(w=v);var A=w.reduce(function(k,C){return k[C]=qh(n,{placement:C,boundary:l,rootBoundary:c,padding:d})[$c(C)],k},{});return Object.keys(A).sort(function(k,C){return A[k]-A[C]})}function oJ(n){if($c(n)===hA)return[];var o=av(n);return[JS(n),o,JS(o)]}function iJ(n){var o=n.state,i=n.options,s=n.name;if(!o.modifiersData[s]._skip){for(var l=i.mainAxis,c=l===void 0?!0:l,d=i.altAxis,f=d===void 0?!0:d,p=i.fallbackPlacements,m=i.padding,g=i.boundary,v=i.rootBoundary,w=i.altBoundary,A=i.flipVariations,k=A===void 0?!0:A,C=i.allowedAutoPlacements,M=o.options.placement,S=$c(M),I=S===M,E=p||(I||!k?[av(M)]:oJ(M)),j=[M].concat(E).reduce(function(ee,fe){return ee.concat($c(fe)===hA?nJ(o,{placement:fe,boundary:g,rootBoundary:v,padding:m,flipVariations:k,allowedAutoPlacements:C}):fe)},[]),B=o.rects.reference,F=o.rects.popper,O=new Map,N=!0,H=j[0],L=0;L=0,Q=z?"width":"height",G=qh(o,{placement:_,boundary:g,rootBoundary:v,altBoundary:w,padding:m}),D=z?$?M1:vl:$?E1:gl;B[Q]>F[Q]&&(D=av(D));var q=av(D),W=[];if(c&&W.push(G[V]<=0),f&&W.push(G[D]<=0,G[q]<=0),W.every(function(ee){return ee})){H=_,N=!1;break}O.set(_,W)}if(N)for(var X=k?3:1,te=function(fe){var he=j.find(function(Ie){var ve=O.get(Ie);if(ve)return ve.slice(0,fe).every(function(be){return be})});if(he)return H=he,"break"},se=X;se>0;se--){var de=te(se);if(de==="break")break}o.placement!==H&&(o.modifiersData[s]._skip=!0,o.placement=H,o.reset=!0)}}const aJ={name:"flip",enabled:!0,phase:"main",fn:iJ,requiresIfExists:["offset"],data:{_skip:!1}};function eI(n,o,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-o.height-i.y,right:n.right-o.width+i.x,bottom:n.bottom-o.height+i.y,left:n.left-o.width-i.x}}function tI(n){return[gl,M1,E1,vl].some(function(o){return n[o]>=0})}function sJ(n){var o=n.state,i=n.name,s=o.rects.reference,l=o.rects.popper,c=o.modifiersData.preventOverflow,d=qh(o,{elementContext:"reference"}),f=qh(o,{altBoundary:!0}),p=eI(d,s),m=eI(f,l,c),g=tI(p),v=tI(m);o.modifiersData[i]={referenceClippingOffsets:p,popperEscapeOffsets:m,isReferenceHidden:g,hasPopperEscaped:v},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":v})}const lJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sJ};function cJ(n,o,i){var s=$c(n),l=[vl,gl].indexOf(s)>=0?-1:1,c=typeof i=="function"?i(Object.assign({},o,{placement:n})):i,d=c[0],f=c[1];return d=d||0,f=(f||0)*l,[vl,M1].indexOf(s)>=0?{x:f,y:d}:{x:d,y:f}}function uJ(n){var o=n.state,i=n.options,s=n.name,l=i.offset,c=l===void 0?[0,0]:l,d=nB.reduce(function(g,v){return g[v]=cJ(v,o.rects,c),g},{}),f=d[o.placement],p=f.x,m=f.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=p,o.modifiersData.popperOffsets.y+=m),o.modifiersData[s]=d}const dJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uJ};function fJ(n){var o=n.state,i=n.name;o.modifiersData[i]=uB({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const pJ={name:"popperOffsets",enabled:!0,phase:"read",fn:fJ,data:{}};function hJ(n){return n==="x"?"y":"x"}function mJ(n){var o=n.state,i=n.options,s=n.name,l=i.mainAxis,c=l===void 0?!0:l,d=i.altAxis,f=d===void 0?!1:d,p=i.boundary,m=i.rootBoundary,g=i.altBoundary,v=i.padding,w=i.tether,A=w===void 0?!0:w,k=i.tetherOffset,C=k===void 0?0:k,M=qh(o,{boundary:p,rootBoundary:m,padding:v,altBoundary:g}),S=$c(o.placement),I=cp(o.placement),E=!I,j=vA(S),B=hJ(j),F=o.modifiersData.popperOffsets,O=o.rects.reference,N=o.rects.popper,H=typeof C=="function"?C(Object.assign({},o.rects,{placement:o.placement})):C,L=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),_=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,V={x:0,y:0};if(F){if(c){var $,z=j==="y"?gl:vl,Q=j==="y"?E1:M1,G=j==="y"?"height":"width",D=F[j],q=D+M[z],W=D-M[Q],X=A?-N[G]/2:0,te=I===ap?O[G]:N[G],se=I===ap?-N[G]:-O[G],de=o.elements.arrow,ee=A&&de?gA(de):{width:0,height:0},fe=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:aB(),he=fe[z],Ie=fe[Q],ve=uh(0,O[G],ee[G]),be=E?O[G]/2-X-ve-he-L.mainAxis:te-ve-he-L.mainAxis,ke=E?-O[G]/2+X+ve+Ie+L.mainAxis:se+ve+Ie+L.mainAxis,ze=o.elements.arrow&&Om(o.elements.arrow),Ge=ze?j==="y"?ze.clientTop||0:ze.clientLeft||0:0,Ve=($=_==null?void 0:_[j])!=null?$:0,at=D+be-Ve-Ge,We=D+ke-Ve,ue=uh(A?i3(q,at):q,D,A?nf(W,We):W);F[j]=ue,V[j]=ue-D}if(f){var Le,$e=j==="x"?gl:vl,bt=j==="x"?E1:M1,ot=F[B],st=B==="y"?"height":"width",Ze=ot+M[$e],dt=ot-M[bt],Xe=[gl,vl].indexOf(S)!==-1,Pt=(Le=_==null?void 0:_[B])!=null?Le:0,mt=Xe?Ze:ot-O[st]-N[st]-Pt+L.altAxis,pt=Xe?ot+O[st]+N[st]-Pt-L.altAxis:dt,Te=A&&Xe?LX(mt,ot,pt):uh(A?mt:Ze,ot,A?pt:dt);F[B]=Te,V[B]=Te-ot}o.modifiersData[s]=V}}const gJ={name:"preventOverflow",enabled:!0,phase:"main",fn:mJ,requiresIfExists:["offset"]};function vJ(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function bJ(n){return n===Gl(n)||!A1(n)?bA(n):vJ(n)}function wJ(n){var o=n.getBoundingClientRect(),i=sp(o.width)/n.offsetWidth||1,s=sp(o.height)/n.offsetHeight||1;return i!==1||s!==1}function xJ(n,o,i){i===void 0&&(i=!1);var s=A1(o),l=A1(o)&&wJ(o),c=Dd(o),d=lp(n,l,i),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(s||!s&&!i)&&((Vc(o)!=="body"||xA(c))&&(f=bJ(o)),A1(o)?(p=lp(o,!0),p.x+=o.clientLeft,p.y+=o.clientTop):c&&(p.x=wA(c))),{x:d.left+f.scrollLeft-p.x,y:d.top+f.scrollTop-p.y,width:d.width,height:d.height}}function yJ(n){var o=new Map,i=new Set,s=[];n.forEach(function(c){o.set(c.name,c)});function l(c){i.add(c.name);var d=[].concat(c.requires||[],c.requiresIfExists||[]);d.forEach(function(f){if(!i.has(f)){var p=o.get(f);p&&l(p)}}),s.push(c)}return n.forEach(function(c){i.has(c.name)||l(c)}),s}function AJ(n){var o=yJ(n);return BX.reduce(function(i,s){return i.concat(o.filter(function(l){return l.phase===s}))},[])}function CJ(n){var o;return function(){return o||(o=new Promise(function(i){Promise.resolve().then(function(){o=void 0,i(n())})})),o}}function kJ(n){var o=n.reduce(function(i,s){var l=i[s.name];return i[s.name]=l?Object.assign({},l,s,{options:Object.assign({},l.options,s.options),data:Object.assign({},l.data,s.data)}):s,i},{});return Object.keys(o).map(function(i){return o[i]})}var rI={placement:"bottom",modifiers:[],strategy:"absolute"};function nI(){for(var n=arguments.length,o=new Array(n),i=0;i{c||f(MJ(l)||document.body)},[l,c]),yo(()=>{if(d&&!c)return xh(i,d),()=>{xh(i,null)}},[i,d,c]),c){if(x.isValidElement(s)){const m={ref:p};return x.cloneElement(s,m)}return b.jsx(x.Fragment,{children:s})}return b.jsx(x.Fragment,{children:d&&mm.createPortal(s,d)})});function PJ(n){return Kt("MuiPopper",n)}Yt("MuiPopper",["root"]);const jJ=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],OJ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function RJ(n,o){if(o==="ltr")return n;switch(n){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return n}}function qy(n){return typeof n=="function"?n():n}function BJ(n){return n.nodeType!==void 0}const TJ=n=>{const{classes:o}=n;return Rt({root:["root"]},PJ,o)},FJ={},DJ=x.forwardRef(function(o,i){var s;const{anchorEl:l,children:c,direction:d,disablePortal:f,modifiers:p,open:m,placement:g,popperOptions:v,popperRef:w,slotProps:A={},slots:k={},TransitionProps:C}=o,M=Qe(o,jJ),S=x.useRef(null),I=Xn(S,i),E=x.useRef(null),j=Xn(E,w),B=x.useRef(j);yo(()=>{B.current=j},[j]),x.useImperativeHandle(w,()=>E.current,[]);const F=RJ(g,d),[O,N]=x.useState(F),[H,L]=x.useState(qy(l));x.useEffect(()=>{E.current&&E.current.forceUpdate()}),x.useEffect(()=>{l&&L(qy(l))},[l]),yo(()=>{if(!H||!m)return;const Q=q=>{N(q.placement)};let G=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{Q(q)}}];p!=null&&(G=G.concat(p)),v&&v.modifiers!=null&&(G=G.concat(v.modifiers));const D=EJ(H,S.current,P({placement:F},v,{modifiers:G}));return B.current(D),()=>{D.destroy(),B.current(null)}},[H,f,p,m,v,F]);const _={placement:O};C!==null&&(_.TransitionProps=C);const V=TJ(o),$=(s=k.root)!=null?s:"div",z=Hl({elementType:$,externalSlotProps:A.root,externalForwardedProps:M,additionalProps:{role:"tooltip",ref:I},ownerState:o,className:V.root});return b.jsx($,P({},z,{children:typeof c=="function"?c(_):c}))}),NJ=x.forwardRef(function(o,i){const{anchorEl:s,children:l,container:c,direction:d="ltr",disablePortal:f=!1,keepMounted:p=!1,modifiers:m,open:g,placement:v="bottom",popperOptions:w=FJ,popperRef:A,style:k,transition:C=!1,slotProps:M={},slots:S={}}=o,I=Qe(o,OJ),[E,j]=x.useState(!0),B=()=>{j(!1)},F=()=>{j(!0)};if(!p&&!g&&(!C||E))return null;let O;if(c)O=c;else if(s){const L=qy(s);O=L&&BJ(L)?ei(L).body:ei(null).body}const N=!g&&p&&(!C||E)?"none":void 0,H=C?{in:g,onEnter:B,onExited:F}:void 0;return b.jsx(dB,{disablePortal:f,container:O,children:b.jsx(DJ,P({anchorEl:s,direction:d,disablePortal:f,modifiers:m,ref:i,open:C?!E:g,placement:v,popperOptions:w,popperRef:A,slotProps:M,slots:S},I,{style:P({position:"fixed",top:0,left:0,display:N},k),TransitionProps:H,children:l}))})}),$J=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],LJ=_e(NJ,{name:"MuiPopper",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Eu=x.forwardRef(function(o,i){var s;const l=eB(),c=Zt({props:o,name:"MuiPopper"}),{anchorEl:d,component:f,components:p,componentsProps:m,container:g,disablePortal:v,keepMounted:w,modifiers:A,open:k,placement:C,popperOptions:M,popperRef:S,transition:I,slots:E,slotProps:j}=c,B=Qe(c,$J),F=(s=E==null?void 0:E.root)!=null?s:p==null?void 0:p.Root,O=P({anchorEl:d,container:g,disablePortal:v,keepMounted:w,modifiers:A,open:k,placement:C,popperOptions:M,popperRef:S,transition:I},B);return b.jsx(LJ,P({as:f,direction:l==null?void 0:l.direction,slots:{root:F},slotProps:j??m},O,{ref:i}))});function zJ(n){return Kt("MuiListSubheader",n)}Yt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const HJ=["className","color","component","disableGutters","disableSticky","inset"],UJ=n=>{const{classes:o,color:i,disableGutters:s,inset:l,disableSticky:c}=n,d={root:["root",i!=="default"&&`color${Ke(i)}`,!s&&"gutters",l&&"inset",!c&&"sticky"]};return Rt(d,zJ,o)},GJ=_e("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.color!=="default"&&o[`color${Ke(i.color)}`],!i.disableGutters&&o.gutters,i.inset&&o.inset,!i.disableSticky&&o.sticky]}})(({theme:n,ownerState:o})=>P({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(n.vars||n).palette.text.secondary,fontFamily:n.typography.fontFamily,fontWeight:n.typography.fontWeightMedium,fontSize:n.typography.pxToRem(14)},o.color==="primary"&&{color:(n.vars||n).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(n.vars||n).palette.background.paper})),fB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListSubheader"}),{className:l,color:c="default",component:d="li",disableGutters:f=!1,disableSticky:p=!1,inset:m=!1}=s,g=Qe(s,HJ),v=P({},s,{color:c,component:d,disableGutters:f,disableSticky:p,inset:m}),w=UJ(v);return b.jsx(GJ,P({as:d,className:nt(w.root,l),ref:i,ownerState:v},g))});fB.muiSkipListHighlight=!0;const VJ=_r(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function QJ(n){return Kt("MuiChip",n)}const co=Yt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),WJ=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qJ=n=>{const{classes:o,disabled:i,size:s,color:l,iconColor:c,onDelete:d,clickable:f,variant:p}=n,m={root:["root",p,i&&"disabled",`size${Ke(s)}`,`color${Ke(l)}`,f&&"clickable",f&&`clickableColor${Ke(l)}`,d&&"deletable",d&&`deletableColor${Ke(l)}`,`${p}${Ke(l)}`],label:["label",`label${Ke(s)}`],avatar:["avatar",`avatar${Ke(s)}`,`avatarColor${Ke(l)}`],icon:["icon",`icon${Ke(s)}`,`iconColor${Ke(c)}`],deleteIcon:["deleteIcon",`deleteIcon${Ke(s)}`,`deleteIconColor${Ke(l)}`,`deleteIcon${Ke(p)}Color${Ke(l)}`]};return Rt(m,QJ,o)},_J=_e("div",{name:"MuiChip",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n,{color:s,iconColor:l,clickable:c,onDelete:d,size:f,variant:p}=i;return[{[`& .${co.avatar}`]:o.avatar},{[`& .${co.avatar}`]:o[`avatar${Ke(f)}`]},{[`& .${co.avatar}`]:o[`avatarColor${Ke(s)}`]},{[`& .${co.icon}`]:o.icon},{[`& .${co.icon}`]:o[`icon${Ke(f)}`]},{[`& .${co.icon}`]:o[`iconColor${Ke(l)}`]},{[`& .${co.deleteIcon}`]:o.deleteIcon},{[`& .${co.deleteIcon}`]:o[`deleteIcon${Ke(f)}`]},{[`& .${co.deleteIcon}`]:o[`deleteIconColor${Ke(s)}`]},{[`& .${co.deleteIcon}`]:o[`deleteIcon${Ke(p)}Color${Ke(s)}`]},o.root,o[`size${Ke(f)}`],o[`color${Ke(s)}`],c&&o.clickable,c&&s!=="default"&&o[`clickableColor${Ke(s)})`],d&&o.deletable,d&&s!=="default"&&o[`deletableColor${Ke(s)}`],o[p],o[`${p}${Ke(s)}`]]}})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light"?n.palette.grey[700]:n.palette.grey[300];return P({maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${co.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${co.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:i,fontSize:n.typography.pxToRem(12)},[`& .${co.avatarColorPrimary}`]:{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark},[`& .${co.avatarColorSecondary}`]:{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark},[`& .${co.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)},[`& .${co.icon}`]:P({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&P({color:n.vars?n.vars.palette.Chip.defaultIconColor:i},o.color!=="default"&&{color:"inherit"})),[`& .${co.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:n.vars?`rgba(${n.vars.palette.text.primaryChannel} / 0.26)`:Lr(n.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?`rgba(${n.vars.palette.text.primaryChannel} / 0.4)`:Lr(n.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:n.vars?`rgba(${n.vars.palette[o.color].contrastTextChannel} / 0.7)`:Lr(n.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(n.vars||n).palette[o.color].main,color:(n.vars||n).palette[o.color].contrastText},o.onDelete&&{[`&.${co.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${co.focusVisible}`]:{backgroundColor:(n.vars||n).palette[o.color].dark}})},({theme:n,ownerState:o})=>P({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)},[`&.${co.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)},"&:active":{boxShadow:(n.vars||n).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${co.focusVisible}`]:{backgroundColor:(n.vars||n).palette[o.color].dark}}),({theme:n,ownerState:o})=>P({},o.variant==="outlined"&&{backgroundColor:"transparent",border:n.vars?`1px solid ${n.vars.palette.Chip.defaultBorder}`:`1px solid ${n.palette.mode==="light"?n.palette.grey[400]:n.palette.grey[700]}`,[`&.${co.clickable}:hover`]:{backgroundColor:(n.vars||n).palette.action.hover},[`&.${co.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`& .${co.avatar}`]:{marginLeft:4},[`& .${co.avatarSmall}`]:{marginLeft:2},[`& .${co.icon}`]:{marginLeft:4},[`& .${co.iconSmall}`]:{marginLeft:2},[`& .${co.deleteIcon}`]:{marginRight:5},[`& .${co.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(n.vars||n).palette[o.color].main,border:`1px solid ${n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.7)`:Lr(n.palette[o.color].main,.7)}`,[`&.${co.clickable}:hover`]:{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o.color].main,n.palette.action.hoverOpacity)},[`&.${co.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.focusOpacity})`:Lr(n.palette[o.color].main,n.palette.action.focusOpacity)},[`& .${co.deleteIcon}`]:{color:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.7)`:Lr(n.palette[o.color].main,.7),"&:hover, &:active":{color:(n.vars||n).palette[o.color].main}}})),YJ=_e("span",{name:"MuiChip",slot:"Label",overridesResolver:(n,o)=>{const{ownerState:i}=n,{size:s}=i;return[o.label,o[`label${Ke(s)}`]]}})(({ownerState:n})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},n.variant==="outlined"&&{paddingLeft:11,paddingRight:11},n.size==="small"&&{paddingLeft:8,paddingRight:8},n.size==="small"&&n.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function oI(n){return n.key==="Backspace"||n.key==="Delete"}const Pp=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiChip"}),{avatar:l,className:c,clickable:d,color:f="default",component:p,deleteIcon:m,disabled:g=!1,icon:v,label:w,onClick:A,onDelete:k,onKeyDown:C,onKeyUp:M,size:S="medium",variant:I="filled",tabIndex:E,skipFocusWhenDisabled:j=!1}=s,B=Qe(s,WJ),F=x.useRef(null),O=Xn(F,i),N=W=>{W.stopPropagation(),k&&k(W)},H=W=>{W.currentTarget===W.target&&oI(W)&&W.preventDefault(),C&&C(W)},L=W=>{W.currentTarget===W.target&&(k&&oI(W)?k(W):W.key==="Escape"&&F.current&&F.current.blur()),M&&M(W)},_=d!==!1&&A?!0:d,V=_||k?Gc:p||"div",$=P({},s,{component:V,disabled:g,size:S,color:f,iconColor:x.isValidElement(v)&&v.props.color||f,onDelete:!!k,clickable:_,variant:I}),z=qJ($),Q=V===Gc?P({component:p||"div",focusVisibleClassName:z.focusVisible},k&&{disableRipple:!0}):{};let G=null;k&&(G=m&&x.isValidElement(m)?x.cloneElement(m,{className:nt(m.props.className,z.deleteIcon),onClick:N}):b.jsx(VJ,{className:nt(z.deleteIcon),onClick:N}));let D=null;l&&x.isValidElement(l)&&(D=x.cloneElement(l,{className:nt(z.avatar,l.props.className)}));let q=null;return v&&x.isValidElement(v)&&(q=x.cloneElement(v,{className:nt(z.icon,v.props.className)})),b.jsxs(_J,P({as:V,className:nt(z.root,c),disabled:_&&g?!0:void 0,onClick:A,onKeyDown:H,onKeyUp:L,ref:O,tabIndex:j&&g?-1:E,ownerState:$},Q,B,{children:[D||q,b.jsx(YJ,{className:nt(z.label),ownerState:$,children:w}),G]}))}),KJ=["onChange","maxRows","minRows","style","value"];function Ig(n){return parseInt(n,10)||0}const XJ={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function JJ(n){return n==null||Object.keys(n).length===0||n.outerHeightStyle===0&&!n.overflowing}const ZJ=x.forwardRef(function(o,i){const{onChange:s,maxRows:l,minRows:c=1,style:d,value:f}=o,p=Qe(o,KJ),{current:m}=x.useRef(f!=null),g=x.useRef(null),v=Xn(i,g),w=x.useRef(null),A=x.useRef(null),k=x.useCallback(()=>{const S=g.current,E=zl(S).getComputedStyle(S);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};const j=A.current;j.style.width=E.width,j.value=S.value||o.placeholder||"x",j.value.slice(-1)===` -`&&(j.value+=" ");const B=E.boxSizing,F=Ig(E.paddingBottom)+Ig(E.paddingTop),O=Ig(E.borderBottomWidth)+Ig(E.borderTopWidth),N=j.scrollHeight;j.value="x";const H=j.scrollHeight;let L=N;c&&(L=Math.max(Number(c)*H,L)),l&&(L=Math.min(Number(l)*H,L)),L=Math.max(L,H);const _=L+(B==="border-box"?F+O:0),V=Math.abs(L-N)<=1;return{outerHeightStyle:_,overflowing:V}},[l,c,o.placeholder]),C=x.useCallback(()=>{const S=k();if(JJ(S))return;const I=S.outerHeightStyle,E=g.current;w.current!==I&&(w.current=I,E.style.height=`${I}px`),E.style.overflow=S.overflowing?"hidden":""},[k]);yo(()=>{const S=()=>{C()};let I;const E=Mf(S),j=g.current,B=zl(j);B.addEventListener("resize",E);let F;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(S),F.observe(j)),()=>{E.clear(),cancelAnimationFrame(I),B.removeEventListener("resize",E),F&&F.disconnect()}},[k,C]),yo(()=>{C()});const M=S=>{m||C(),s&&s(S)};return b.jsxs(x.Fragment,{children:[b.jsx("textarea",P({value:f,onChange:M,ref:v,rows:c,style:d},p)),b.jsx("textarea",{"aria-hidden":!0,className:o.className,readOnly:!0,ref:A,tabIndex:-1,style:P({},XJ.shadow,d,{paddingTop:0,paddingBottom:0})})]})});function Nd({props:n,states:o,muiFormControl:i}){return o.reduce((s,l)=>(s[l]=n[l],i&&typeof n[l]>"u"&&(s[l]=i[l]),s),{})}const Rb=x.createContext(void 0);function Wc(){return x.useContext(Rb)}function iI(n){return n!=null&&!(Array.isArray(n)&&n.length===0)}function a3(n,o=!1){return n&&(iI(n.value)&&n.value!==""||o&&iI(n.defaultValue)&&n.defaultValue!=="")}function eZ(n){return n.startAdornment}function tZ(n){return Kt("MuiInputBase",n)}const Pl=Yt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),rZ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Bb=(n,o)=>{const{ownerState:i}=n;return[o.root,i.formControl&&o.formControl,i.startAdornment&&o.adornedStart,i.endAdornment&&o.adornedEnd,i.error&&o.error,i.size==="small"&&o.sizeSmall,i.multiline&&o.multiline,i.color&&o[`color${Ke(i.color)}`],i.fullWidth&&o.fullWidth,i.hiddenLabel&&o.hiddenLabel]},Tb=(n,o)=>{const{ownerState:i}=n;return[o.input,i.size==="small"&&o.inputSizeSmall,i.multiline&&o.inputMultiline,i.type==="search"&&o.inputTypeSearch,i.startAdornment&&o.inputAdornedStart,i.endAdornment&&o.inputAdornedEnd,i.hiddenLabel&&o.inputHiddenLabel]},nZ=n=>{const{classes:o,color:i,disabled:s,error:l,endAdornment:c,focused:d,formControl:f,fullWidth:p,hiddenLabel:m,multiline:g,readOnly:v,size:w,startAdornment:A,type:k}=n,C={root:["root",`color${Ke(i)}`,s&&"disabled",l&&"error",p&&"fullWidth",d&&"focused",f&&"formControl",w&&w!=="medium"&&`size${Ke(w)}`,g&&"multiline",A&&"adornedStart",c&&"adornedEnd",m&&"hiddenLabel",v&&"readOnly"],input:["input",s&&"disabled",k==="search"&&"inputTypeSearch",g&&"inputMultiline",w==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",A&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return Rt(C,tZ,o)},Fb=_e("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bb})(({theme:n,ownerState:o})=>P({},n.typography.body1,{color:(n.vars||n).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Pl.disabled}`]:{color:(n.vars||n).palette.text.disabled,cursor:"default"}},o.multiline&&P({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Db=_e("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tb})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light",s=P({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),l={opacity:"0 !important"},c=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Pl.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Pl.disabled}`]:{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),oZ=b.jsx(TP,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),iZ=x.forwardRef(function(o,i){var s;const l=Zt({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:f,className:p,components:m={},componentsProps:g={},defaultValue:v,disabled:w,disableInjectingGlobalStyles:A,endAdornment:k,fullWidth:C=!1,id:M,inputComponent:S="input",inputProps:I={},inputRef:E,maxRows:j,minRows:B,multiline:F=!1,name:O,onBlur:N,onChange:H,onClick:L,onFocus:_,onKeyDown:V,onKeyUp:$,placeholder:z,readOnly:Q,renderSuffix:G,rows:D,slotProps:q={},slots:W={},startAdornment:X,type:te="text",value:se}=l,de=Qe(l,rZ),ee=I.value!=null?I.value:se,{current:fe}=x.useRef(ee!=null),he=x.useRef(),Ie=x.useCallback(Te=>{},[]),ve=Xn(he,E,I.ref,Ie),[be,ke]=x.useState(!1),ze=Wc(),Ge=Nd({props:l,muiFormControl:ze,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ge.focused=ze?ze.focused:be,x.useEffect(()=>{!ze&&w&&be&&(ke(!1),N&&N())},[ze,w,be,N]);const Ve=ze&&ze.onFilled,at=ze&&ze.onEmpty,We=x.useCallback(Te=>{a3(Te)?Ve&&Ve():at&&at()},[Ve,at]);yo(()=>{fe&&We({value:ee})},[ee,We,fe]);const ue=Te=>{if(Ge.disabled){Te.stopPropagation();return}_&&_(Te),I.onFocus&&I.onFocus(Te),ze&&ze.onFocus?ze.onFocus(Te):ke(!0)},Le=Te=>{N&&N(Te),I.onBlur&&I.onBlur(Te),ze&&ze.onBlur?ze.onBlur(Te):ke(!1)},$e=(Te,...Re)=>{if(!fe){const Je=Te.target||he.current;if(Je==null)throw new Error(bu(1));We({value:Je.value})}I.onChange&&I.onChange(Te,...Re),H&&H(Te,...Re)};x.useEffect(()=>{We(he.current)},[]);const bt=Te=>{he.current&&Te.currentTarget===Te.target&&he.current.focus(),L&&L(Te)};let ot=S,st=I;F&&ot==="input"&&(D?st=P({type:void 0,minRows:D,maxRows:D},st):st=P({type:void 0,maxRows:j,minRows:B},st),ot=ZJ);const Ze=Te=>{We(Te.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};x.useEffect(()=>{ze&&ze.setAdornedStart(!!X)},[ze,X]);const dt=P({},l,{color:Ge.color||"primary",disabled:Ge.disabled,endAdornment:k,error:Ge.error,focused:Ge.focused,formControl:ze,fullWidth:C,hiddenLabel:Ge.hiddenLabel,multiline:F,size:Ge.size,startAdornment:X,type:te}),Xe=nZ(dt),Pt=W.root||m.Root||Fb,mt=q.root||g.root||{},pt=W.input||m.Input||Db;return st=P({},st,(s=q.input)!=null?s:g.input),b.jsxs(x.Fragment,{children:[!A&&oZ,b.jsxs(Pt,P({},mt,!uf(Pt)&&{ownerState:P({},dt,mt.ownerState)},{ref:i,onClick:bt},de,{className:nt(Xe.root,mt.className,p,Q&&"MuiInputBase-readOnly"),children:[X,b.jsx(Rb.Provider,{value:null,children:b.jsx(pt,P({ownerState:dt,"aria-invalid":Ge.error,"aria-describedby":c,autoComplete:d,autoFocus:f,defaultValue:v,disabled:Ge.disabled,id:M,onAnimationStart:Ze,name:O,placeholder:z,readOnly:Q,required:Ge.required,rows:D,value:ee,onKeyDown:V,onKeyUp:$,type:te},st,!uf(pt)&&{as:ot,ownerState:P({},dt,st.ownerState)},{ref:ve,className:nt(Xe.input,st.className,Q&&"MuiInputBase-readOnly"),onBlur:Le,onChange:$e,onFocus:ue}))}),k,G?G(P({},Ge,{startAdornment:X})):null]}))]})}),jp=iZ;function aZ(n){return Kt("MuiInput",n)}const rd=P({},Pl,Yt("MuiInput",["root","underline","input"]));function sZ(n){return Kt("MuiOutlinedInput",n)}const Cc=P({},Pl,Yt("MuiOutlinedInput",["root","notchedOutline","input"]));function lZ(n){return Kt("MuiFilledInput",n)}const jl=P({},Pl,Yt("MuiFilledInput",["root","underline","input"])),pB=_r(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function cZ(n){return Kt("MuiAutocomplete",n)}const In=Yt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var aI,sI;const uZ=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],dZ=["ref"],fZ=["key"],pZ=["key"],hZ=n=>{const{classes:o,disablePortal:i,expanded:s,focused:l,fullWidth:c,hasClearIcon:d,hasPopupIcon:f,inputFocused:p,popupOpen:m,size:g}=n,v={root:["root",s&&"expanded",l&&"focused",c&&"fullWidth",d&&"hasClearIcon",f&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",p&&"inputFocused"],tag:["tag",`tagSize${Ke(g)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",m&&"popupIndicatorOpen"],popper:["popper",i&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Rt(v,cZ,o)},mZ=_e("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n,{fullWidth:s,hasClearIcon:l,hasPopupIcon:c,inputFocused:d,size:f}=i;return[{[`& .${In.tag}`]:o.tag},{[`& .${In.tag}`]:o[`tagSize${Ke(f)}`]},{[`& .${In.inputRoot}`]:o.inputRoot},{[`& .${In.input}`]:o.input},{[`& .${In.input}`]:d&&o.inputFocused},o.root,s&&o.fullWidth,c&&o.hasPopupIcon,l&&o.hasClearIcon]}})({[`&.${In.focused} .${In.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${In.clearIndicator}`]:{visibility:"visible"}},[`& .${In.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${In.inputRoot}`]:{[`.${In.hasPopupIcon}&, .${In.hasClearIcon}&`]:{paddingRight:30},[`.${In.hasPopupIcon}.${In.hasClearIcon}&`]:{paddingRight:56},[`& .${In.input}`]:{width:0,minWidth:30}},[`& .${rd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${rd.root}.${Pl.sizeSmall}`]:{[`& .${rd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Cc.root}`]:{padding:9,[`.${In.hasPopupIcon}&, .${In.hasClearIcon}&`]:{paddingRight:39},[`.${In.hasPopupIcon}.${In.hasClearIcon}&`]:{paddingRight:65},[`& .${In.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${In.endAdornment}`]:{right:9}},[`& .${Cc.root}.${Pl.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${In.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${jl.root}`]:{paddingTop:19,paddingLeft:8,[`.${In.hasPopupIcon}&, .${In.hasClearIcon}&`]:{paddingRight:39},[`.${In.hasPopupIcon}.${In.hasClearIcon}&`]:{paddingRight:65},[`& .${jl.input}`]:{padding:"7px 4px"},[`& .${In.endAdornment}`]:{right:9}},[`& .${jl.root}.${Pl.sizeSmall}`]:{paddingBottom:1,[`& .${jl.input}`]:{padding:"2.5px 4px"}},[`& .${Pl.hiddenLabel}`]:{paddingTop:8},[`& .${jl.root}.${Pl.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${In.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${jl.root}.${Pl.hiddenLabel}.${Pl.sizeSmall}`]:{[`& .${In.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${In.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${In.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${In.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${In.inputRoot}`]:{flexWrap:"wrap"}}}]}),gZ=_e("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(n,o)=>o.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),vZ=_e(ui,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(n,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),bZ=_e(ui,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:n},o)=>P({},o.popupIndicator,n.popupOpen&&o.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),wZ=_e(Eu,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${In.option}`]:o.option},o.popper,i.disablePortal&&o.popperDisablePortal]}})(({theme:n})=>({zIndex:(n.vars||n).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),xZ=_e(yl,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(n,o)=>o.paper})(({theme:n})=>P({},n.typography.body1,{overflow:"auto"})),yZ=_e("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(n,o)=>o.loading})(({theme:n})=>({color:(n.vars||n).palette.text.secondary,padding:"14px 16px"})),AZ=_e("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(n,o)=>o.noOptions})(({theme:n})=>({color:(n.vars||n).palette.text.secondary,padding:"14px 16px"})),CZ=_e("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(n,o)=>o.listbox})(({theme:n})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${In.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[n.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${In.focused}`]:{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${In.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),[`&.${In.focused}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}},[`&.${In.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}}}})),kZ=_e(fB,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(n,o)=>o.groupLabel})(({theme:n})=>({backgroundColor:(n.vars||n).palette.background.paper,top:-8})),SZ=_e("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(n,o)=>o.groupUl})({padding:0,[`& .${In.option}`]:{paddingLeft:24}}),up=x.forwardRef(function(o,i){var s,l,c,d;const f=Zt({props:o,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:m=!1,autoSelect:g=!1,blurOnSelect:v=!1,ChipProps:w,className:A,clearIcon:k=aI||(aI=b.jsx(lX,{fontSize:"small"})),clearOnBlur:C=!f.freeSolo,clearOnEscape:M=!1,clearText:S="Clear",closeText:I="Close",componentsProps:E={},defaultValue:j=f.multiple?[]:null,disableClearable:B=!1,disableCloseOnSelect:F=!1,disabled:O=!1,disabledItemsFocusable:N=!1,disableListWrap:H=!1,disablePortal:L=!1,filterSelectedOptions:_=!1,forcePopupIcon:V="auto",freeSolo:$=!1,fullWidth:z=!1,getLimitTagsText:Q=et=>`+${et}`,getOptionLabel:G,groupBy:D,handleHomeEndKeys:q=!f.freeSolo,includeInputInList:W=!1,limitTags:X=-1,ListboxComponent:te="ul",ListboxProps:se,loading:de=!1,loadingText:ee="Loading…",multiple:fe=!1,noOptionsText:he="No options",openOnFocus:Ie=!1,openText:ve="Open",PaperComponent:be=yl,PopperComponent:ke=Eu,popupIcon:ze=sI||(sI=b.jsx(pB,{})),readOnly:Ge=!1,renderGroup:Ve,renderInput:at,renderOption:We,renderTags:ue,selectOnFocus:Le=!f.freeSolo,size:$e="medium",slotProps:bt={}}=f,ot=Qe(f,uZ),{getRootProps:st,getInputProps:Ze,getInputLabelProps:dt,getPopupIndicatorProps:Xe,getClearProps:Pt,getTagProps:mt,getListboxProps:pt,getOptionProps:Te,value:Re,dirty:Je,expanded:It,id:Nt,popupOpen:ht,focused:xt,focusedTag:tt,anchorEl:Y,setAnchorEl:re,inputValue:ie,groupedOptions:le}=gX(P({},f,{componentName:"Autocomplete"})),ge=!B&&!O&&Je&&!Ge,Me=(!$||V===!0)&&V!==!1,{onMouseDown:me}=Ze(),{ref:Ee}=se??{},ce=pt(),{ref:Pe}=ce,He=Qe(ce,dZ),Ne=Xn(Pe,Ee),rt=G||(et=>{var Et;return(Et=et.label)!=null?Et:et}),Be=P({},f,{disablePortal:L,expanded:It,focused:xt,fullWidth:z,getOptionLabel:rt,hasClearIcon:ge,hasPopupIcon:Me,inputFocused:tt===-1,popupOpen:ht,size:$e}),Ae=hZ(Be);let Ue;if(fe&&Re.length>0){const et=Et=>P({className:Ae.tag,disabled:O},mt(Et));ue?Ue=ue(Re,et,Be):Ue=Re.map((Et,ut)=>{const Dt=et({index:ut}),{key:jt}=Dt,nr=Qe(Dt,fZ);return b.jsx(Pp,P({label:rt(Et),size:$e},nr,w),jt)})}if(X>-1&&Array.isArray(Ue)){const et=Ue.length-X;!xt&&et>0&&(Ue=Ue.splice(0,X),Ue.push(b.jsx("span",{className:Ae.tag,children:Q(et)},Ue.length)))}const Fe=Ve||(et=>b.jsxs("li",{children:[b.jsx(kZ,{className:Ae.groupLabel,ownerState:Be,component:"div",children:et.group}),b.jsx(SZ,{className:Ae.groupUl,ownerState:Be,children:et.children})]},et.key)),gt=We||((et,Et)=>{const{key:ut}=et,Dt=Qe(et,pZ);return b.jsx("li",P({},Dt,{children:rt(Et)}),ut)}),At=(et,Et)=>{const ut=Te({option:et,index:Et});return gt(P({},ut,{className:Ae.option}),et,{selected:ut["aria-selected"],index:Et,inputValue:ie},Be)},St=(s=bt.clearIndicator)!=null?s:E.clearIndicator,yt=(l=bt.paper)!=null?l:E.paper,Ct=(c=bt.popper)!=null?c:E.popper,Oe=(d=bt.popupIndicator)!=null?d:E.popupIndicator,Ce=et=>b.jsx(wZ,P({as:ke,disablePortal:L,style:{width:Y?Y.clientWidth:null},ownerState:Be,role:"presentation",anchorEl:Y,open:ht},Ct,{className:nt(Ae.popper,Ct==null?void 0:Ct.className),children:b.jsx(xZ,P({ownerState:Be,as:be},yt,{className:nt(Ae.paper,yt==null?void 0:yt.className),children:et}))}));let Ye=null;return le.length>0?Ye=Ce(b.jsx(CZ,P({as:te,className:Ae.listbox,ownerState:Be},He,se,{ref:Ne,children:le.map((et,Et)=>D?Fe({key:et.key,group:et.group,children:et.options.map((ut,Dt)=>At(ut,et.index+Dt))}):At(et,Et))}))):de&&le.length===0?Ye=Ce(b.jsx(yZ,{className:Ae.loading,ownerState:Be,children:ee})):le.length===0&&!$&&!de&&(Ye=Ce(b.jsx(AZ,{className:Ae.noOptions,ownerState:Be,role:"presentation",onMouseDown:et=>{et.preventDefault()},children:he}))),b.jsxs(x.Fragment,{children:[b.jsx(mZ,P({ref:i,className:nt(Ae.root,A),ownerState:Be},st(ot),{children:at({id:Nt,disabled:O,fullWidth:!0,size:$e==="small"?"small":void 0,InputLabelProps:dt(),InputProps:P({ref:re,className:Ae.inputRoot,startAdornment:Ue,onClick:et=>{et.target===et.currentTarget&&me(et)}},(ge||Me)&&{endAdornment:b.jsxs(gZ,{className:Ae.endAdornment,ownerState:Be,children:[ge?b.jsx(vZ,P({},Pt(),{"aria-label":S,title:S,ownerState:Be},St,{className:nt(Ae.clearIndicator,St==null?void 0:St.className),children:k})):null,Me?b.jsx(bZ,P({},Xe(),{disabled:O,"aria-label":ht?I:ve,title:ht?I:ve,ownerState:Be},Oe,{className:nt(Ae.popupIndicator,Oe==null?void 0:Oe.className),children:ze})):null]})}),inputProps:P({className:Ae.input,disabled:O,readOnly:Ge},Ze())})})),Y?Ye:null]})}),IZ=_r(b.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function EZ(n){return Kt("MuiAvatar",n)}Yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const MZ=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],PZ=n=>{const{classes:o,variant:i,colorDefault:s}=n;return Rt({root:["root",i,s&&"colorDefault"],img:["img"],fallback:["fallback"]},EZ,o)},jZ=_e("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],i.colorDefault&&o.colorDefault]}})(({theme:n})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:P({color:(n.vars||n).palette.background.default},n.vars?{backgroundColor:n.vars.palette.Avatar.defaultBg}:P({backgroundColor:n.palette.grey[400]},n.applyStyles("dark",{backgroundColor:n.palette.grey[600]})))}]})),OZ=_e("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(n,o)=>o.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),RZ=_e(IZ,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(n,o)=>o.fallback})({width:"75%",height:"75%"});function BZ({crossOrigin:n,referrerPolicy:o,src:i,srcSet:s}){const[l,c]=x.useState(!1);return x.useEffect(()=>{if(!i&&!s)return;c(!1);let d=!0;const f=new Image;return f.onload=()=>{d&&c("loaded")},f.onerror=()=>{d&&c("error")},f.crossOrigin=n,f.referrerPolicy=o,f.src=i,s&&(f.srcset=s),()=>{d=!1}},[n,o,i,s]),l}const TZ=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiAvatar"}),{alt:l,children:c,className:d,component:f="div",slots:p={},slotProps:m={},imgProps:g,sizes:v,src:w,srcSet:A,variant:k="circular"}=s,C=Qe(s,MZ);let M=null;const S=BZ(P({},g,{src:w,srcSet:A})),I=w||A,E=I&&S!=="error",j=P({},s,{colorDefault:!E,component:f,variant:k}),B=PZ(j),[F,O]=sX("img",{className:B.img,elementType:OZ,externalForwardedProps:{slots:p,slotProps:{img:P({},g,m.img)}},additionalProps:{alt:l,src:w,srcSet:A,sizes:v},ownerState:j});return E?M=b.jsx(F,P({},O)):c||c===0?M=c:I&&l?M=l[0]:M=b.jsx(RZ,{ownerState:j,className:B.fallback}),b.jsx(jZ,P({as:f,ownerState:j,className:nt(B.root,d),ref:i},C,{children:M}))}),FZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],DZ={entering:{opacity:1},entered:{opacity:1}},hB=x.forwardRef(function(o,i){const s=ka(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:f,easing:p,in:m,onEnter:g,onEntered:v,onEntering:w,onExit:A,onExited:k,onExiting:C,style:M,timeout:S=l,TransitionComponent:I=R1}=o,E=Qe(o,FZ),j=x.useRef(null),B=Xn(j,f.ref,i),F=z=>Q=>{if(z){const G=j.current;Q===void 0?z(G):z(G,Q)}},O=F(w),N=F((z,Q)=>{Y5(z);const G=kd({style:M,timeout:S,easing:p},{mode:"enter"});z.style.webkitTransition=s.transitions.create("opacity",G),z.style.transition=s.transitions.create("opacity",G),g&&g(z,Q)}),H=F(v),L=F(C),_=F(z=>{const Q=kd({style:M,timeout:S,easing:p},{mode:"exit"});z.style.webkitTransition=s.transitions.create("opacity",Q),z.style.transition=s.transitions.create("opacity",Q),A&&A(z)}),V=F(k),$=z=>{c&&c(j.current,z)};return b.jsx(I,P({appear:d,in:m,nodeRef:j,onEnter:N,onEntered:H,onEntering:O,onExit:_,onExited:V,onExiting:L,addEndListener:$,timeout:S},E,{children:(z,Q)=>x.cloneElement(f,P({style:P({opacity:0,visibility:z==="exited"&&!m?"hidden":void 0},DZ[z],M,f.props.style),ref:B},Q))}))});function NZ(n){return Kt("MuiBackdrop",n)}Yt("MuiBackdrop",["root","invisible"]);const $Z=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],LZ=n=>{const{classes:o,invisible:i}=n;return Rt({root:["root",i&&"invisible"]},NZ,o)},zZ=_e("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.invisible&&o.invisible]}})(({ownerState:n})=>P({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},n.invisible&&{backgroundColor:"transparent"})),mB=x.forwardRef(function(o,i){var s,l,c;const d=Zt({props:o,name:"MuiBackdrop"}),{children:f,className:p,component:m="div",components:g={},componentsProps:v={},invisible:w=!1,open:A,slotProps:k={},slots:C={},TransitionComponent:M=hB,transitionDuration:S}=d,I=Qe(d,$Z),E=P({},d,{component:m,invisible:w}),j=LZ(E),B=(s=k.root)!=null?s:v.root;return b.jsx(M,P({in:A,timeout:S},I,{children:b.jsx(zZ,P({"aria-hidden":!0},B,{as:(l=(c=C.root)!=null?c:g.Root)!=null?l:m,className:nt(j.root,p,B==null?void 0:B.className),ownerState:P({},E,B==null?void 0:B.ownerState),classes:j,ref:i,children:f}))}))});function HZ(n){const{badgeContent:o,invisible:i=!1,max:s=99,showZero:l=!1}=n,c=Y6({badgeContent:o,max:s});let d=i;i===!1&&o===0&&!l&&(d=!0);const{badgeContent:f,max:p=s}=d?c:n,m=f&&Number(f)>p?`${p}+`:f;return{badgeContent:f,invisible:d,max:p,displayValue:m}}function UZ(n){return Kt("MuiBadge",n)}const Nu=Yt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),GZ=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Kw=10,Xw=4,VZ=n=>{const{color:o,anchorOrigin:i,invisible:s,overlap:l,variant:c,classes:d={}}=n,f={root:["root"],badge:["badge",c,s&&"invisible",`anchorOrigin${Ke(i.vertical)}${Ke(i.horizontal)}`,`anchorOrigin${Ke(i.vertical)}${Ke(i.horizontal)}${Ke(l)}`,`overlap${Ke(l)}`,o!=="default"&&`color${Ke(o)}`]};return Rt(f,UZ,d)},QZ=_e("span",{name:"MuiBadge",slot:"Root",overridesResolver:(n,o)=>o.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),WZ=_e("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.badge,o[i.variant],o[`anchorOrigin${Ke(i.anchorOrigin.vertical)}${Ke(i.anchorOrigin.horizontal)}${Ke(i.overlap)}`],i.color!=="default"&&o[`color${Ke(i.color)}`],i.invisible&&o.invisible]}})(({theme:n})=>{var o;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:n.typography.fontFamily,fontWeight:n.typography.fontWeightMedium,fontSize:n.typography.pxToRem(12),minWidth:Kw*2,lineHeight:1,padding:"0 6px",height:Kw*2,borderRadius:Kw,zIndex:1,transition:n.transitions.create("transform",{easing:n.transitions.easing.easeInOut,duration:n.transitions.duration.enteringScreen}),variants:[...Object.keys(((o=n.vars)!=null?o:n).palette).filter(i=>{var s,l;return((s=n.vars)!=null?s:n).palette[i].main&&((l=n.vars)!=null?l:n).palette[i].contrastText}).map(i=>({props:{color:i},style:{backgroundColor:(n.vars||n).palette[i].main,color:(n.vars||n).palette[i].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Xw,height:Xw*2,minWidth:Xw*2,padding:0}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:n.transitions.create("transform",{easing:n.transitions.easing.easeInOut,duration:n.transitions.duration.leavingScreen})}}]}}),s3=x.forwardRef(function(o,i){var s,l,c,d,f,p;const m=Zt({props:o,name:"MuiBadge"}),{anchorOrigin:g={vertical:"top",horizontal:"right"},className:v,component:w,components:A={},componentsProps:k={},children:C,overlap:M="rectangular",color:S="default",invisible:I=!1,max:E=99,badgeContent:j,slots:B,slotProps:F,showZero:O=!1,variant:N="standard"}=m,H=Qe(m,GZ),{badgeContent:L,invisible:_,max:V,displayValue:$}=HZ({max:E,invisible:I,badgeContent:j,showZero:O}),z=Y6({anchorOrigin:g,color:S,overlap:M,variant:N,badgeContent:j}),Q=_||L==null&&N!=="dot",{color:G=S,overlap:D=M,anchorOrigin:q=g,variant:W=N}=Q?z:m,X=W!=="dot"?$:void 0,te=P({},m,{badgeContent:L,invisible:Q,max:V,displayValue:X,showZero:O,anchorOrigin:q,color:G,overlap:D,variant:W}),se=VZ(te),de=(s=(l=B==null?void 0:B.root)!=null?l:A.Root)!=null?s:QZ,ee=(c=(d=B==null?void 0:B.badge)!=null?d:A.Badge)!=null?c:WZ,fe=(f=F==null?void 0:F.root)!=null?f:k.root,he=(p=F==null?void 0:F.badge)!=null?p:k.badge,Ie=Hl({elementType:de,externalSlotProps:fe,externalForwardedProps:H,additionalProps:{ref:i,as:w},ownerState:te,className:nt(fe==null?void 0:fe.className,se.root,v)}),ve=Hl({elementType:ee,externalSlotProps:he,ownerState:te,className:nt(se.badge,he==null?void 0:he.className)});return b.jsxs(de,P({},Ie,{children:[C,b.jsx(ee,P({},ve,{children:X}))]}))});function qZ(n){return Kt("MuiButton",n)}const Eg=Yt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),gB=x.createContext({}),vB=x.createContext(void 0),_Z=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],YZ=n=>{const{color:o,disableElevation:i,fullWidth:s,size:l,variant:c,classes:d}=n,f={root:["root",c,`${c}${Ke(o)}`,`size${Ke(l)}`,`${c}Size${Ke(l)}`,`color${Ke(o)}`,i&&"disableElevation",s&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ke(l)}`],endIcon:["icon","endIcon",`iconSize${Ke(l)}`]},p=Rt(f,qZ,d);return P({},d,p)},bB=n=>P({},n.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},n.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},n.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),KZ=_e(Gc,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiButton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`${i.variant}${Ke(i.color)}`],o[`size${Ke(i.size)}`],o[`${i.variant}Size${Ke(i.size)}`],i.color==="inherit"&&o.colorInherit,i.disableElevation&&o.disableElevation,i.fullWidth&&o.fullWidth]}})(({theme:n,ownerState:o})=>{var i,s;const l=n.palette.mode==="light"?n.palette.grey[300]:n.palette.grey[800],c=n.palette.mode==="light"?n.palette.grey.A100:n.palette.grey[700];return P({},n.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create(["background-color","box-shadow","border-color","color"],{duration:n.transitions.duration.short}),"&:hover":P({textDecoration:"none",backgroundColor:n.vars?`rgba(${n.vars.palette.text.primaryChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="text"&&o.color!=="inherit"&&{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="outlined"&&o.color!=="inherit"&&{border:`1px solid ${(n.vars||n).palette[o.color].main}`,backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="contained"&&{backgroundColor:n.vars?n.vars.palette.Button.inheritContainedHoverBg:c,boxShadow:(n.vars||n).shadows[4],"@media (hover: none)":{boxShadow:(n.vars||n).shadows[2],backgroundColor:(n.vars||n).palette.grey[300]}},o.variant==="contained"&&o.color!=="inherit"&&{backgroundColor:(n.vars||n).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[o.color].main}}),"&:active":P({},o.variant==="contained"&&{boxShadow:(n.vars||n).shadows[8]}),[`&.${Eg.focusVisible}`]:P({},o.variant==="contained"&&{boxShadow:(n.vars||n).shadows[6]}),[`&.${Eg.disabled}`]:P({color:(n.vars||n).palette.action.disabled},o.variant==="outlined"&&{border:`1px solid ${(n.vars||n).palette.action.disabledBackground}`},o.variant==="contained"&&{color:(n.vars||n).palette.action.disabled,boxShadow:(n.vars||n).shadows[0],backgroundColor:(n.vars||n).palette.action.disabledBackground})},o.variant==="text"&&{padding:"6px 8px"},o.variant==="text"&&o.color!=="inherit"&&{color:(n.vars||n).palette[o.color].main},o.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},o.variant==="outlined"&&o.color!=="inherit"&&{color:(n.vars||n).palette[o.color].main,border:n.vars?`1px solid rgba(${n.vars.palette[o.color].mainChannel} / 0.5)`:`1px solid ${Lr(n.palette[o.color].main,.5)}`},o.variant==="contained"&&{color:n.vars?n.vars.palette.text.primary:(i=(s=n.palette).getContrastText)==null?void 0:i.call(s,n.palette.grey[300]),backgroundColor:n.vars?n.vars.palette.Button.inheritContainedBg:l,boxShadow:(n.vars||n).shadows[2]},o.variant==="contained"&&o.color!=="inherit"&&{color:(n.vars||n).palette[o.color].contrastText,backgroundColor:(n.vars||n).palette[o.color].main},o.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},o.size==="small"&&o.variant==="text"&&{padding:"4px 5px",fontSize:n.typography.pxToRem(13)},o.size==="large"&&o.variant==="text"&&{padding:"8px 11px",fontSize:n.typography.pxToRem(15)},o.size==="small"&&o.variant==="outlined"&&{padding:"3px 9px",fontSize:n.typography.pxToRem(13)},o.size==="large"&&o.variant==="outlined"&&{padding:"7px 21px",fontSize:n.typography.pxToRem(15)},o.size==="small"&&o.variant==="contained"&&{padding:"4px 10px",fontSize:n.typography.pxToRem(13)},o.size==="large"&&o.variant==="contained"&&{padding:"8px 22px",fontSize:n.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})},({ownerState:n})=>n.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Eg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eg.disabled}`]:{boxShadow:"none"}}),XZ=_e("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.startIcon,o[`iconSize${Ke(i.size)}`]]}})(({ownerState:n})=>P({display:"inherit",marginRight:8,marginLeft:-4},n.size==="small"&&{marginLeft:-2},bB(n))),JZ=_e("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.endIcon,o[`iconSize${Ke(i.size)}`]]}})(({ownerState:n})=>P({display:"inherit",marginRight:-4,marginLeft:8},n.size==="small"&&{marginRight:-2},bB(n))),Zn=x.forwardRef(function(o,i){const s=x.useContext(gB),l=x.useContext(vB),c=gh(s,o),d=Zt({props:c,name:"MuiButton"}),{children:f,color:p="primary",component:m="button",className:g,disabled:v=!1,disableElevation:w=!1,disableFocusRipple:A=!1,endIcon:k,focusVisibleClassName:C,fullWidth:M=!1,size:S="medium",startIcon:I,type:E,variant:j="text"}=d,B=Qe(d,_Z),F=P({},d,{color:p,component:m,disabled:v,disableElevation:w,disableFocusRipple:A,fullWidth:M,size:S,type:E,variant:j}),O=YZ(F),N=I&&b.jsx(XZ,{className:O.startIcon,ownerState:F,children:I}),H=k&&b.jsx(JZ,{className:O.endIcon,ownerState:F,children:k}),L=l||"";return b.jsxs(KZ,P({ownerState:F,className:nt(s.className,O.root,g,L),component:m,disabled:v,focusRipple:!A,focusVisibleClassName:nt(O.focusVisible,C),ref:i,type:E},B,{classes:O,children:[N,f,H]}))});function ZZ(n){return Kt("MuiButtonGroup",n)}const us=Yt("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),eee=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],tee=(n,o)=>{const{ownerState:i}=n;return[{[`& .${us.grouped}`]:o.grouped},{[`& .${us.grouped}`]:o[`grouped${Ke(i.orientation)}`]},{[`& .${us.grouped}`]:o[`grouped${Ke(i.variant)}`]},{[`& .${us.grouped}`]:o[`grouped${Ke(i.variant)}${Ke(i.orientation)}`]},{[`& .${us.grouped}`]:o[`grouped${Ke(i.variant)}${Ke(i.color)}`]},{[`& .${us.firstButton}`]:o.firstButton},{[`& .${us.lastButton}`]:o.lastButton},{[`& .${us.middleButton}`]:o.middleButton},o.root,o[i.variant],i.disableElevation===!0&&o.disableElevation,i.fullWidth&&o.fullWidth,i.orientation==="vertical"&&o.vertical]},ree=n=>{const{classes:o,color:i,disabled:s,disableElevation:l,fullWidth:c,orientation:d,variant:f}=n,p={root:["root",f,d==="vertical"&&"vertical",c&&"fullWidth",l&&"disableElevation"],grouped:["grouped",`grouped${Ke(d)}`,`grouped${Ke(f)}`,`grouped${Ke(f)}${Ke(d)}`,`grouped${Ke(f)}${Ke(i)}`,s&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Rt(p,ZZ,o)},nee=_e("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:tee})(({theme:n,ownerState:o})=>P({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},o.variant==="contained"&&{boxShadow:(n.vars||n).shadows[2]},o.disableElevation&&{boxShadow:"none"},o.fullWidth&&{width:"100%"},o.orientation==="vertical"&&{flexDirection:"column"},{[`& .${us.grouped}`]:P({minWidth:40,"&:hover":P({},o.variant==="contained"&&{boxShadow:"none"})},o.variant==="contained"&&{boxShadow:"none"}),[`& .${us.firstButton},& .${us.middleButton}`]:P({},o.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},o.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},o.variant==="text"&&o.orientation==="horizontal"&&{borderRight:n.vars?`1px solid rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${us.disabled}`]:{borderRight:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="text"&&o.orientation==="vertical"&&{borderBottom:n.vars?`1px solid rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${us.disabled}`]:{borderBottom:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="text"&&o.color!=="inherit"&&{borderColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.5)`:Lr(n.palette[o.color].main,.5)},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"transparent"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"transparent"},o.variant==="contained"&&o.orientation==="horizontal"&&{borderRight:`1px solid ${(n.vars||n).palette.grey[400]}`,[`&.${us.disabled}`]:{borderRight:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="contained"&&o.orientation==="vertical"&&{borderBottom:`1px solid ${(n.vars||n).palette.grey[400]}`,[`&.${us.disabled}`]:{borderBottom:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="contained"&&o.color!=="inherit"&&{borderColor:(n.vars||n).palette[o.color].dark},{"&:hover":P({},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"currentColor"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${us.lastButton},& .${us.middleButton}`]:P({},o.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},o.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},o.variant==="outlined"&&o.orientation==="horizontal"&&{marginLeft:-1},o.variant==="outlined"&&o.orientation==="vertical"&&{marginTop:-1})})),oee=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiButtonGroup"}),{children:l,className:c,color:d="primary",component:f="div",disabled:p=!1,disableElevation:m=!1,disableFocusRipple:g=!1,disableRipple:v=!1,fullWidth:w=!1,orientation:A="horizontal",size:k="medium",variant:C="outlined"}=s,M=Qe(s,eee),S=P({},s,{color:d,component:f,disabled:p,disableElevation:m,disableFocusRipple:g,disableRipple:v,fullWidth:w,orientation:A,size:k,variant:C}),I=ree(S),E=x.useMemo(()=>({className:I.grouped,color:d,disabled:p,disableElevation:m,disableFocusRipple:g,disableRipple:v,fullWidth:w,size:k,variant:C}),[d,p,m,g,v,w,k,C,I.grouped]),j=hU(l),B=j.length,F=O=>{const N=O===0,H=O===B-1;return N&&H?"":N?I.firstButton:H?I.lastButton:I.middleButton};return b.jsx(nee,P({as:f,role:"group",className:nt(I.root,c),ref:i,ownerState:S},M,{children:b.jsx(gB.Provider,{value:E,children:j.map((O,N)=>b.jsx(vB.Provider,{value:F(N),children:O},N))})}))});function iee(n){return Kt("PrivateSwitchBase",n)}Yt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const aee=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],see=n=>{const{classes:o,checked:i,disabled:s,edge:l}=n,c={root:["root",i&&"checked",s&&"disabled",l&&`edge${Ke(l)}`],input:["input"]};return Rt(c,iee,o)},lee=_e(Gc)(({ownerState:n})=>P({padding:9,borderRadius:"50%"},n.edge==="start"&&{marginLeft:n.size==="small"?-3:-12},n.edge==="end"&&{marginRight:n.size==="small"?-3:-12})),cee=_e("input",{shouldForwardProp:es})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yA=x.forwardRef(function(o,i){const{autoFocus:s,checked:l,checkedIcon:c,className:d,defaultChecked:f,disabled:p,disableFocusRipple:m=!1,edge:g=!1,icon:v,id:w,inputProps:A,inputRef:k,name:C,onBlur:M,onChange:S,onFocus:I,readOnly:E,required:j=!1,tabIndex:B,type:F,value:O}=o,N=Qe(o,aee),[H,L]=Rc({controlled:l,default:!!f,name:"SwitchBase",state:"checked"}),_=Wc(),V=W=>{I&&I(W),_&&_.onFocus&&_.onFocus(W)},$=W=>{M&&M(W),_&&_.onBlur&&_.onBlur(W)},z=W=>{if(W.nativeEvent.defaultPrevented)return;const X=W.target.checked;L(X),S&&S(W,X)};let Q=p;_&&typeof Q>"u"&&(Q=_.disabled);const G=F==="checkbox"||F==="radio",D=P({},o,{checked:H,disabled:Q,disableFocusRipple:m,edge:g}),q=see(D);return b.jsxs(lee,P({component:"span",className:nt(q.root,d),centerRipple:!0,focusRipple:!m,disabled:Q,tabIndex:null,role:void 0,onFocus:V,onBlur:$,ownerState:D,ref:i},N,{children:[b.jsx(cee,P({autoFocus:s,checked:l,defaultChecked:f,className:q.input,disabled:Q,id:G?w:void 0,name:C,onChange:z,readOnly:E,ref:k,required:j,ownerState:D,tabIndex:B,type:F},F==="checkbox"&&O===void 0?{}:{value:O},A)),H?c:v]}))}),uee=_r(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),dee=_r(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),fee=_r(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function pee(n){return Kt("MuiCheckbox",n)}const Jw=Yt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hee=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],mee=n=>{const{classes:o,indeterminate:i,color:s,size:l}=n,c={root:["root",i&&"indeterminate",`color${Ke(s)}`,`size${Ke(l)}`]},d=Rt(c,pee,o);return P({},o,d)},gee=_e(yA,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.indeterminate&&o.indeterminate,o[`size${Ke(i.size)}`],i.color!=="default"&&o[`color${Ke(i.color)}`]]}})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?`rgba(${o.color==="default"?n.vars.palette.action.activeChannel:n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(o.color==="default"?n.palette.action.active:n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${Jw.checked}, &.${Jw.indeterminate}`]:{color:(n.vars||n).palette[o.color].main},[`&.${Jw.disabled}`]:{color:(n.vars||n).palette.action.disabled}})),vee=b.jsx(dee,{}),bee=b.jsx(uee,{}),wee=b.jsx(fee,{}),Sd=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiCheckbox"}),{checkedIcon:d=vee,color:f="primary",icon:p=bee,indeterminate:m=!1,indeterminateIcon:g=wee,inputProps:v,size:w="medium",className:A}=c,k=Qe(c,hee),C=m?g:p,M=m?g:d,S=P({},c,{color:f,indeterminate:m,size:w}),I=mee(S);return b.jsx(gee,P({type:"checkbox",inputProps:P({"data-indeterminate":m},v),icon:x.cloneElement(C,{fontSize:(s=C.props.fontSize)!=null?s:w}),checkedIcon:x.cloneElement(M,{fontSize:(l=M.props.fontSize)!=null?l:w}),ownerState:S,ref:i,className:nt(I.root,A)},k,{classes:I}))});function xee(n){return Kt("MuiCircularProgress",n)}Yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const yee=["className","color","disableShrink","size","style","thickness","value","variant"];let Nb=n=>n,lI,cI,uI,dI;const $u=44,Aee=cc(lI||(lI=Nb` + */var np=x;function tX(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var rX=typeof Object.is=="function"?Object.is:tX,nX=np.useState,oX=np.useEffect,iX=np.useLayoutEffect,aX=np.useDebugValue;function sX(n,o){var i=o(),s=nX({inst:{value:i,getSnapshot:o}}),l=s[0].inst,c=s[1];return iX(function(){l.value=i,l.getSnapshot=o,_w(l)&&c({inst:l})},[n,i,o]),oX(function(){return _w(l)&&c({inst:l}),n(function(){_w(l)&&c({inst:l})})},[n]),aX(i),i}function _w(n){var o=n.getSnapshot;n=n.value;try{var i=o();return!rX(n,i)}catch{return!0}}function lX(n,o){return o()}var cX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lX:sX;nB.useSyncExternalStore=np.useSyncExternalStore!==void 0?np.useSyncExternalStore:cX;rB.exports=nB;var uX=rB.exports;function ZS(n){n.reaction=new Su("observer".concat(n.name),function(){var o;n.stateVersion=Symbol(),(o=n.onStoreChange)===null||o===void 0||o.call(n)})}function dX(n,o){o===void 0&&(o="observed");var i=Na.useRef(null);if(!i.current){var s={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:o,subscribe:function(f){return Wy.unregister(s),s.onStoreChange=f,s.reaction||(ZS(s),s.stateVersion=Symbol()),function(){var p;s.onStoreChange=null,(p=s.reaction)===null||p===void 0||p.dispose(),s.reaction=null}},getSnapshot:function(){return s.stateVersion}};i.current=s}var l=i.current;l.reaction||(ZS(l),Wy.register(i,l,l)),Na.useDebugValue(l.reaction,KK),uX.useSyncExternalStore(l.subscribe,l.getSnapshot,l.getSnapshot);var c,d;if(l.reaction.track(function(){try{c=n()}catch(f){d=f}}),d)throw d;return c}var Yw,Kw,oB=typeof Symbol=="function"&&Symbol.for,fX=(Kw=(Yw=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Yw===void 0?void 0:Yw.configurable)!==null&&Kw!==void 0?Kw:!1,eI=oB?Symbol.for("react.forward_ref"):typeof x.forwardRef=="function"&&x.forwardRef(function(n){return null}).$$typeof,tI=oB?Symbol.for("react.memo"):typeof x.memo=="function"&&x.memo(function(n){return null}).$$typeof;function Ou(n,o){var i;if(tI&&n.$$typeof===tI)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var s=(i=void 0)!==null&&i!==void 0?i:!1,l=n,c=n.displayName||n.name;if(eI&&n.$$typeof===eI&&(s=!0,l=n.render,typeof l!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var d=function(f,p){return dX(function(){return l(f,p)},c)};return d.displayName=n.displayName,fX&&Object.defineProperty(d,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(d.contextTypes=n.contextTypes),s&&(d=x.forwardRef(d)),d=x.memo(d),hX(n,d),d}var pX={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function hX(n,o){Object.keys(n).forEach(function(i){pX[i]||Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(n,i))})}var Xw;YK(hm.unstable_batchedUpdates);Xw=Wy.finalizeAllImmediately;const i0="https://libererisas-backend.onrender.com/api/Tag";class mX{constructor(){ui(this,"tagList",[]);ui(this,"isMessage",!1);ui(this,"message","");Im(this,{tagList:Kn,fetchTag:Co,updateTag:Co,deleteTag:Co,addTag:Co}),this.fetchTag()}async fetchTag(){try{console.log("in fetch");let i=await(await fetch(i0)).json();nu(()=>{this.tagList=this.extractRawData(i),console.log("Processed data:",this.tagList)})}catch(o){console.error("Failed to fetch tag:",o)}}extractRawData(o){return o!=null&&o.data!=null?(console.log("Extracting data from proxy object:",o.data),o.data):(console.log("Returning original object as it's not a proxy:",o),o)}async checkItemsUsingTag(o){return await(await fetch(i0+`/${o}/items`)).json()}async deleteTag(o){try{console.log("in delete"),(await fetch(i0+"/"+o,{method:"DELETE"})).status===200?this.success("!נמחק בהצלחה"):this.failure("!המחיקה נכשלה"),this.fetchTag()}catch(i){console.error("Failed to delete tag:",i)}}async addTag(o){try{console.log("tagData: "+JSON.stringify(o)),this.tagList.find(s=>s.name===o.name)?this.isMessage?this.message="❌תג עם שם זהה כבר קיים!":this.failure("!תג עם שם זהה כבר קיים"):(await fetch(i0+"/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})).status===200?this.isMessage?this.message="✅נוסף בהצלחה!":this.success("!נוסף בהצלחה"):this.isMessage?this.message="❌ההוספה נכשלה!":this.failure("!ההוספה נכשלה"),this.fetchTag()}catch(i){console.error("Failed to update tag:",i)}}async updateTag(o,i){try{console.log("tagData: "+JSON.stringify(i)),this.tagList.find(l=>l.name===i.name)?this.failure("!תג עם שם זהה כבר קיים"):((await fetch(i0+"/"+o,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).status===200?this.success("!עודכן בהצלחה"):this.failure("!העדכון נכשל"),this.fetchTag())}catch(s){console.error("Failed to update tag:",s)}}success(o){gn.fire({text:o,icon:"success",timer:1700})}failure(o){gn.fire({icon:"error",title:"...אופס",text:o,timer:1700})}get getTagsList(){return this.tagList}}const Di=new mX,Ba=Object.freeze({PRESCHOOL:"גיל הרך",LOW:"נמוכה",HIGH:"גבוהה",CLASS:"כיתה"}),Po=Object.freeze({FILE:0,BOOK:1,PHYSICALITEM:2}),gX=_r(b.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),vX=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],bX=["component","slots","slotProps"],wX=["component"];function xX(n,o){const{className:i,elementType:s,ownerState:l,externalForwardedProps:c,getSlotOwnerState:d,internalForwardedProps:f}=o,p=Qe(o,vX),{component:m,slots:g={[n]:void 0},slotProps:v={[n]:void 0}}=c;Qe(c,bX);const w=g[n]||s,A=PP(v[n],l),k=MP(P({className:i},p,{externalForwardedProps:void 0,externalSlotProps:A})),{props:{component:C},internalRef:M}=k,S=Qe(k.props,wX),I=Xn(M,A==null?void 0:A.ref,o.ref),E=d?d(S):{},j=P({},l,E),B=C,D=d2(w,P({},n==="root",!g[n]&&f,S,B&&{as:B},{ref:I}),j);return Object.keys(E).forEach(R=>{delete D[R]}),[w,D]}const yX=_r(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function AX(n){return Kt("MuiAppBar",n)}Yt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const CX=["className","color","enableColorOnDark","position"],kX=n=>{const{color:o,position:i,classes:s}=n,l={root:["root",`color${Ke(o)}`,`position${Ke(i)}`]};return Bt(l,AX,s)},Cg=(n,o)=>n?`${n==null?void 0:n.replace(")","")}, ${o})`:o,SX=_e(Js,{name:"MuiAppBar",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`position${Ke(i.position)}`],o[`color${Ke(i.color)}`]]}})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light"?n.palette.grey[100]:n.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},o.position==="fixed"&&{position:"fixed",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},o.position==="absolute"&&{position:"absolute",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0},o.position==="sticky"&&{position:"sticky",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0},o.position==="static"&&{position:"static"},o.position==="relative"&&{position:"relative"},!n.vars&&P({},o.color==="default"&&{backgroundColor:i,color:n.palette.getContrastText(i)},o.color&&o.color!=="default"&&o.color!=="inherit"&&o.color!=="transparent"&&{backgroundColor:n.palette[o.color].main,color:n.palette[o.color].contrastText},o.color==="inherit"&&{color:"inherit"},n.palette.mode==="dark"&&!o.enableColorOnDark&&{backgroundColor:null,color:null},o.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},n.palette.mode==="dark"&&{backgroundImage:"none"})),n.vars&&P({},o.color==="default"&&{"--AppBar-background":o.enableColorOnDark?n.vars.palette.AppBar.defaultBg:Cg(n.vars.palette.AppBar.darkBg,n.vars.palette.AppBar.defaultBg),"--AppBar-color":o.enableColorOnDark?n.vars.palette.text.primary:Cg(n.vars.palette.AppBar.darkColor,n.vars.palette.text.primary)},o.color&&!o.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":o.enableColorOnDark?n.vars.palette[o.color].main:Cg(n.vars.palette.AppBar.darkBg,n.vars.palette[o.color].main),"--AppBar-color":o.enableColorOnDark?n.vars.palette[o.color].contrastText:Cg(n.vars.palette.AppBar.darkColor,n.vars.palette[o.color].contrastText)},!["inherit","transparent"].includes(o.color)&&{backgroundColor:"var(--AppBar-background)"},{color:o.color==="inherit"?"inherit":"var(--AppBar-color)"},o.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),IX=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiAppBar"}),{className:l,color:c="primary",enableColorOnDark:d=!1,position:f="fixed"}=s,p=Qe(s,CX),m=P({},s,{color:c,position:f,enableColorOnDark:d}),g=kX(m);return b.jsx(SX,P({square:!0,component:"header",ownerState:m,elevation:4,className:nt(g.root,l,f==="fixed"&&"mui-fixed"),ref:i},p))});function rI(n){return typeof n.normalize<"u"?n.normalize("NFD").replace(/[\u0300-\u036f]/g,""):n}function iB(n={}){const{ignoreAccents:o=!0,ignoreCase:i=!0,limit:s,matchFrom:l="any",stringify:c,trim:d=!1}=n;return(f,{inputValue:p,getOptionLabel:m})=>{let g=d?p.trim():p;i&&(g=g.toLowerCase()),o&&(g=rI(g));const v=g?f.filter(w=>{let A=(c||m)(w);return i&&(A=A.toLowerCase()),o&&(A=rI(A)),l==="start"?A.indexOf(g)===0:A.indexOf(g)>-1}):f;return typeof s=="number"?v.slice(0,s):v}}function kg(n,o){for(let i=0;i{var o;return n.current!==null&&((o=n.current.parentElement)==null?void 0:o.contains(document.activeElement))};function PX(n){const{unstable_isActiveElementInListbox:o=MX,unstable_classNamePrefix:i="Mui",autoComplete:s=!1,autoHighlight:l=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:f=!n.freeSolo,clearOnEscape:p=!1,componentName:m="useAutocomplete",defaultValue:g=n.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:w=!1,disabled:A,disabledItemsFocusable:k=!1,disableListWrap:C=!1,filterOptions:M=EX,filterSelectedOptions:S=!1,freeSolo:I=!1,getOptionDisabled:E,getOptionKey:j,getOptionLabel:B=Re=>{var Ce;return(Ce=Re.label)!=null?Ce:Re},groupBy:D,handleHomeEndKeys:R=!n.freeSolo,id:N,includeInputInList:U=!1,inputValue:L,isOptionEqualToValue:_=(Re,Ce)=>Re===Ce,multiple:V=!1,onChange:$,onClose:z,onHighlightChange:Q,onInputChange:G,onOpen:F,open:q,openOnFocus:W=!1,options:X,readOnly:te=!1,selectOnFocus:se=!n.freeSolo,value:de}=n,ee=Fo(N);let fe=B;fe=Re=>{const Ce=B(Re);return typeof Ce!="string"?String(Ce):Ce};const he=x.useRef(!1),Ie=x.useRef(!0),ve=x.useRef(null),be=x.useRef(null),[ke,ze]=x.useState(null),[Ge,Ve]=x.useState(-1),at=l?0:-1,We=x.useRef(at),[ue,Le]=jc({controlled:de,default:g,name:m}),[$e,bt]=jc({controlled:L,default:"",name:m,state:"inputValue"}),[ot,st]=x.useState(!1),Ze=x.useCallback((Re,Ce)=>{if(!(V?ue.length!(S&&(V?ue:[ue]).some(Ce=>Ce!==null&&_(Re,Ce)))),{inputValue:pt&&Pt?"":$e,getOptionLabel:fe}):[],Je=X6({filteredOptions:Be,value:ue,inputValue:$e});x.useEffect(()=>{const Re=ue!==Je.value;ot&&!Re||I&&!Re||Ze(null,ue)},[ue,Ze,ot,Je.value,I]);const It=dt&&Be.length>0&&!te,Nt=ln(Re=>{Re===-1?ve.current.focus():ke.querySelector(`[data-tag-index="${Re}"]`).focus()});x.useEffect(()=>{V&&Ge>ue.length-1&&(Ve(-1),Nt(-1))},[ue,V,Ge,Nt]);function ht(Re,Ce){if(!be.current||Re<0||Re>=Be.length)return-1;let Ye=Re;for(;;){const et=be.current.querySelector(`[data-option-index="${Ye}"]`),Et=k?!1:!et||et.disabled||et.getAttribute("aria-disabled")==="true";if(et&&et.hasAttribute("tabindex")&&!Et)return Ye;if(Ce==="next"?Ye=(Ye+1)%Be.length:Ye=(Ye-1+Be.length)%Be.length,Ye===Re)return-1}}const xt=ln(({event:Re,index:Ce,reason:Ye="auto"})=>{if(We.current=Ce,Ce===-1?ve.current.removeAttribute("aria-activedescendant"):ve.current.setAttribute("aria-activedescendant",`${ee}-option-${Ce}`),Q&&Q(Re,Ce===-1?null:Be[Ce],Ye),!be.current)return;const et=be.current.querySelector(`[role="option"].${i}-focused`);et&&(et.classList.remove(`${i}-focused`),et.classList.remove(`${i}-focusVisible`));let Et=be.current;if(be.current.getAttribute("role")!=="listbox"&&(Et=be.current.parentElement.querySelector('[role="listbox"]')),!Et)return;if(Ce===-1){Et.scrollTop=0;return}const ut=be.current.querySelector(`[data-option-index="${Ce}"]`);if(ut&&(ut.classList.add(`${i}-focused`),Ye==="keyboard"&&ut.classList.add(`${i}-focusVisible`),Et.scrollHeight>Et.clientHeight&&Ye!=="mouse"&&Ye!=="touch")){const Dt=ut,jt=Et.clientHeight+Et.scrollTop,nr=Dt.offsetTop+Dt.offsetHeight;nr>jt?Et.scrollTop=nr-Et.clientHeight:Dt.offsetTop-Dt.offsetHeight*(D?1.3:0){if(!Fe)return;const ut=ht((()=>{const Dt=Be.length-1;if(Ce==="reset")return at;if(Ce==="start")return 0;if(Ce==="end")return Dt;const jt=We.current+Ce;return jt<0?jt===-1&&U?-1:C&&We.current!==-1||Math.abs(Ce)>1?0:Dt:jt>Dt?jt===Dt+1&&U?-1:C||Math.abs(Ce)>1?Dt:0:jt})(),Ye);if(xt({index:ut,reason:et,event:Re}),s&&Ce!=="reset")if(ut===-1)ve.current.value=$e;else{const Dt=fe(Be[ut]);ve.current.value=Dt,Dt.toLowerCase().indexOf($e.toLowerCase())===0&&$e.length>0&&ve.current.setSelectionRange($e.length,Dt.length)}}),Y=()=>{const Re=(Ce,Ye)=>{const et=Ce?fe(Ce):"",Et=Ye?fe(Ye):"";return et===Et};if(We.current!==-1&&Je.filteredOptions&&Je.filteredOptions.length!==Be.length&&Je.inputValue===$e&&(V?ue.length===Je.value.length&&Je.value.every((Ce,Ye)=>fe(ue[Ye])===fe(Ce)):Re(Je.value,ue))){const Ce=Je.filteredOptions[We.current];if(Ce)return kg(Be,Ye=>fe(Ye)===fe(Ce))}return-1},re=x.useCallback(()=>{if(!Fe)return;const Re=Y();if(Re!==-1){We.current=Re;return}const Ce=V?ue[0]:ue;if(Be.length===0||Ce==null){tt({diff:"reset"});return}if(be.current){if(Ce!=null){const Ye=Be[We.current];if(V&&Ye&&kg(ue,Et=>_(Ye,Et))!==-1)return;const et=kg(Be,Et=>_(Et,Ce));et===-1?tt({diff:"reset"}):xt({index:et});return}if(We.current>=Be.length-1){xt({index:Be.length-1});return}xt({index:We.current})}},[Be.length,V?!1:ue,S,tt,xt,Fe,$e,V]),ie=ln(Re=>{wh(be,Re),Re&&re()});x.useEffect(()=>{re()},[re]);const le=Re=>{dt||(Xe(!0),mt(!0),F&&F(Re))},ge=(Re,Ce)=>{dt&&(Xe(!1),z&&z(Re,Ce))},Pe=(Re,Ce,Ye,et)=>{if(V){if(ue.length===Ce.length&&ue.every((Et,ut)=>Et===Ce[ut]))return}else if(ue===Ce)return;$&&$(Re,Ce,Ye,et),Le(Ce)},me=x.useRef(!1),Ee=(Re,Ce,Ye="selectOption",et="options")=>{let Et=Ye,ut=Ce;if(V){ut=Array.isArray(ue)?ue.slice():[];const Dt=kg(ut,jt=>_(Ce,jt));Dt===-1?ut.push(Ce):et!=="freeSolo"&&(ut.splice(Dt,1),Et="removeOption")}Ze(Re,ut),Pe(Re,ut,Et,{option:Ce}),!w&&(!Re||!Re.ctrlKey&&!Re.metaKey)&&ge(Re,Et),(d===!0||d==="touch"&&me.current||d==="mouse"&&!me.current)&&ve.current.blur()};function ce(Re,Ce){if(Re===-1)return-1;let Ye=Re;for(;;){if(Ce==="next"&&Ye===ue.length||Ce==="previous"&&Ye===-1)return-1;const et=ke.querySelector(`[data-tag-index="${Ye}"]`);if(!et||!et.hasAttribute("tabindex")||et.disabled||et.getAttribute("aria-disabled")==="true")Ye+=Ce==="next"?1:-1;else return Ye}}const je=(Re,Ce)=>{if(!V)return;$e===""&&ge(Re,"toggleInput");let Ye=Ge;Ge===-1?$e===""&&Ce==="previous"&&(Ye=ue.length-1):(Ye+=Ce==="next"?1:-1,Ye<0&&(Ye=0),Ye===ue.length&&(Ye=-1)),Ye=ce(Ye,Ce),Ve(Ye),Nt(Ye)},He=Re=>{he.current=!0,bt(""),G&&G(Re,"","clear"),Pe(Re,V?[]:null,"clear")},Ne=Re=>Ce=>{if(Re.onKeyDown&&Re.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ge!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(Ve(-1),Nt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Fe&&R&&(Ce.preventDefault(),tt({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Fe&&R&&(Ce.preventDefault(),tt({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),tt({diff:-nI,direction:"previous",reason:"keyboard",event:Ce}),le(Ce);break;case"PageDown":Ce.preventDefault(),tt({diff:nI,direction:"next",reason:"keyboard",event:Ce}),le(Ce);break;case"ArrowDown":Ce.preventDefault(),tt({diff:1,direction:"next",reason:"keyboard",event:Ce}),le(Ce);break;case"ArrowUp":Ce.preventDefault(),tt({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),le(Ce);break;case"ArrowLeft":je(Ce,"previous");break;case"ArrowRight":je(Ce,"next");break;case"Enter":if(We.current!==-1&&Fe){const Ye=Be[We.current],et=E?E(Ye):!1;if(Ce.preventDefault(),et)return;Ee(Ce,Ye,"selectOption"),s&&ve.current.setSelectionRange(ve.current.value.length,ve.current.value.length)}else I&&$e!==""&&pt===!1&&(V&&Ce.preventDefault(),Ee(Ce,$e,"createOption","freeSolo"));break;case"Escape":Fe?(Ce.preventDefault(),Ce.stopPropagation(),ge(Ce,"escape")):p&&($e!==""||V&&ue.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),He(Ce));break;case"Backspace":if(V&&!te&&$e===""&&ue.length>0){const Ye=Ge===-1?ue.length-1:Ge,et=ue.slice();et.splice(Ye,1),Pe(Ce,et,"removeOption",{option:ue[Ye]})}break;case"Delete":if(V&&!te&&$e===""&&ue.length>0&&Ge!==-1){const Ye=Ge,et=ue.slice();et.splice(Ye,1),Pe(Ce,et,"removeOption",{option:ue[Ye]})}break}},ye=Re=>{st(!0),W&&!he.current&&le(Re)},rt=Re=>{if(o(be)){ve.current.focus();return}st(!1),Ie.current=!0,he.current=!1,c&&We.current!==-1&&Fe?Ee(Re,Be[We.current],"blur"):c&&I&&$e!==""?Ee(Re,$e,"blur","freeSolo"):f&&Ze(Re,ue),ge(Re,"blur")},Te=Re=>{const Ce=Re.target.value;$e!==Ce&&(bt(Ce),mt(!1),G&&G(Re,Ce,"input")),Ce===""?!v&&!V&&Pe(Re,null,"clear"):le(Re)},Ae=Re=>{const Ce=Number(Re.currentTarget.getAttribute("data-option-index"));We.current!==Ce&&xt({event:Re,index:Ce,reason:"mouse"})},Ue=Re=>{xt({event:Re,index:Number(Re.currentTarget.getAttribute("data-option-index")),reason:"touch"}),me.current=!0},qe=Re=>{const Ce=Number(Re.currentTarget.getAttribute("data-option-index"));Ee(Re,Be[Ce],"selectOption"),me.current=!1},De=Re=>Ce=>{const Ye=ue.slice();Ye.splice(Re,1),Pe(Ce,Ye,"removeOption",{option:ue[Re]})},lt=Re=>{dt?ge(Re,"toggleInput"):le(Re)},gt=Re=>{Re.currentTarget.contains(Re.target)&&Re.target.getAttribute("id")!==ee&&Re.preventDefault()},At=Re=>{Re.currentTarget.contains(Re.target)&&(ve.current.focus(),se&&Ie.current&&ve.current.selectionEnd-ve.current.selectionStart===0&&ve.current.select(),Ie.current=!1)},St=Re=>{!A&&($e===""||!dt)&<(Re)};let yt=I&&$e.length>0;yt=yt||(V?ue.length>0:ue!==null);let Ct=Be;return D&&(Ct=Be.reduce((Re,Ce,Ye)=>{const et=D(Ce);return Re.length>0&&Re[Re.length-1].group===et?Re[Re.length-1].options.push(Ce):Re.push({key:Ye,index:Ye,group:et,options:[Ce]}),Re},[])),A&&ot&&rt(),{getRootProps:(Re={})=>P({"aria-owns":It?`${ee}-listbox`:null},Re,{onKeyDown:Ne(Re),onMouseDown:gt,onClick:At}),getInputLabelProps:()=>({id:`${ee}-label`,htmlFor:ee}),getInputProps:()=>({id:ee,value:$e,onBlur:rt,onFocus:ye,onChange:Te,onMouseDown:St,"aria-activedescendant":Fe?"":null,"aria-autocomplete":s?"both":"list","aria-controls":It?`${ee}-listbox`:void 0,"aria-expanded":It,autoComplete:"off",ref:ve,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:A}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:He}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getTagProps:({index:Re})=>P({key:Re,"data-tag-index":Re,tabIndex:-1},!te&&{onDelete:De(Re)}),getListboxProps:()=>({role:"listbox",id:`${ee}-listbox`,"aria-labelledby":`${ee}-label`,ref:ie,onMouseDown:Re=>{Re.preventDefault()}}),getOptionProps:({index:Re,option:Ce})=>{var Ye;const et=(V?ue:[ue]).some(ut=>ut!=null&&_(Ce,ut)),Et=E?E(Ce):!1;return{key:(Ye=j==null?void 0:j(Ce))!=null?Ye:fe(Ce),tabIndex:-1,role:"option",id:`${ee}-option-${Re}`,onMouseMove:Ae,onClick:qe,onTouchStart:Ue,"data-option-index":Re,"aria-disabled":Et,"aria-selected":et}},id:ee,inputValue:$e,value:ue,dirty:yt,expanded:Fe&&ke,popupOpen:Fe,focused:ot||Ge!==-1,anchorEl:ke,setAnchorEl:ze,focusedTag:Ge,groupedOptions:Ct}}var mA={};Object.defineProperty(mA,"__esModule",{value:!0});var aB=mA.default=void 0,jX=RX(x),OX=nR;function sB(n){if(typeof WeakMap!="function")return null;var o=new WeakMap,i=new WeakMap;return(sB=function(s){return s?i:o})(n)}function RX(n,o){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=sB(o);if(i&&i.has(n))return i.get(n);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if(c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)){var d=l?Object.getOwnPropertyDescriptor(n,c):null;d&&(d.get||d.set)?Object.defineProperty(s,c,d):s[c]=n[c]}return s.default=n,i&&i.set(n,s),s}function BX(n){return Object.keys(n).length===0}function TX(n=null){const o=jX.useContext(OX.ThemeContext);return!o||BX(o)?n:o}aB=mA.default=TX;var gl="top",I1="bottom",E1="right",vl="left",gA="auto",Pm=[gl,I1,E1,vl],op="start",Qh="end",FX="clippingParents",lB="viewport",a0="popper",DX="reference",oI=Pm.reduce(function(n,o){return n.concat([o+"-"+op,o+"-"+Qh])},[]),cB=[].concat(Pm,[gA]).reduce(function(n,o){return n.concat([o,o+"-"+op,o+"-"+Qh])},[]),NX="beforeRead",$X="read",LX="afterRead",zX="beforeMain",HX="main",UX="afterMain",GX="beforeWrite",VX="write",QX="afterWrite",WX=[NX,$X,LX,zX,HX,UX,GX,VX,QX];function Uc(n){return n?(n.nodeName||"").toLowerCase():null}function Ul(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var o=n.ownerDocument;return o&&o.defaultView||window}return n}function yf(n){var o=Ul(n).Element;return n instanceof o||n instanceof Element}function y1(n){var o=Ul(n).HTMLElement;return n instanceof o||n instanceof HTMLElement}function vA(n){if(typeof ShadowRoot>"u")return!1;var o=Ul(n).ShadowRoot;return n instanceof o||n instanceof ShadowRoot}function qX(n){var o=n.state;Object.keys(o.elements).forEach(function(i){var s=o.styles[i]||{},l=o.attributes[i]||{},c=o.elements[i];!y1(c)||!Uc(c)||(Object.assign(c.style,s),Object.keys(l).forEach(function(d){var f=l[d];f===!1?c.removeAttribute(d):c.setAttribute(d,f===!0?"":f)}))})}function _X(n){var o=n.state,i={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,i.popper),o.styles=i,o.elements.arrow&&Object.assign(o.elements.arrow.style,i.arrow),function(){Object.keys(o.elements).forEach(function(s){var l=o.elements[s],c=o.attributes[s]||{},d=Object.keys(o.styles.hasOwnProperty(s)?o.styles[s]:i[s]),f=d.reduce(function(p,m){return p[m]="",p},{});!y1(l)||!Uc(l)||(Object.assign(l.style,f),Object.keys(c).forEach(function(p){l.removeAttribute(p)}))})}}const YX={name:"applyStyles",enabled:!0,phase:"write",fn:qX,effect:_X,requires:["computeStyles"]};function Dc(n){return n.split("-")[0]}var rf=Math.max,i3=Math.min,ip=Math.round;function qy(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function uB(){return!/^((?!chrome|android).)*safari/i.test(qy())}function ap(n,o,i){o===void 0&&(o=!1),i===void 0&&(i=!1);var s=n.getBoundingClientRect(),l=1,c=1;o&&y1(n)&&(l=n.offsetWidth>0&&ip(s.width)/n.offsetWidth||1,c=n.offsetHeight>0&&ip(s.height)/n.offsetHeight||1);var d=yf(n)?Ul(n):window,f=d.visualViewport,p=!uB()&&i,m=(s.left+(p&&f?f.offsetLeft:0))/l,g=(s.top+(p&&f?f.offsetTop:0))/c,v=s.width/l,w=s.height/c;return{width:v,height:w,top:g,right:m+v,bottom:g+w,left:m,x:m,y:g}}function bA(n){var o=ap(n),i=n.offsetWidth,s=n.offsetHeight;return Math.abs(o.width-i)<=1&&(i=o.width),Math.abs(o.height-s)<=1&&(s=o.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:s}}function dB(n,o){var i=o.getRootNode&&o.getRootNode();if(n.contains(o))return!0;if(i&&vA(i)){var s=o;do{if(s&&n.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Iu(n){return Ul(n).getComputedStyle(n)}function KX(n){return["table","td","th"].indexOf(Uc(n))>=0}function Td(n){return((yf(n)?n.ownerDocument:n.document)||window.document).documentElement}function Bb(n){return Uc(n)==="html"?n:n.assignedSlot||n.parentNode||(vA(n)?n.host:null)||Td(n)}function iI(n){return!y1(n)||Iu(n).position==="fixed"?null:n.offsetParent}function XX(n){var o=/firefox/i.test(qy()),i=/Trident/i.test(qy());if(i&&y1(n)){var s=Iu(n);if(s.position==="fixed")return null}var l=Bb(n);for(vA(l)&&(l=l.host);y1(l)&&["html","body"].indexOf(Uc(l))<0;){var c=Iu(l);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||o&&c.willChange==="filter"||o&&c.filter&&c.filter!=="none")return l;l=l.parentNode}return null}function jm(n){for(var o=Ul(n),i=iI(n);i&&KX(i)&&Iu(i).position==="static";)i=iI(i);return i&&(Uc(i)==="html"||Uc(i)==="body"&&Iu(i).position==="static")?o:i||XX(n)||o}function wA(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function ch(n,o,i){return rf(n,i3(o,i))}function JX(n,o,i){var s=ch(n,o,i);return s>i?i:s}function fB(){return{top:0,right:0,bottom:0,left:0}}function pB(n){return Object.assign({},fB(),n)}function hB(n,o){return o.reduce(function(i,s){return i[s]=n,i},{})}var ZX=function(o,i){return o=typeof o=="function"?o(Object.assign({},i.rects,{placement:i.placement})):o,pB(typeof o!="number"?o:hB(o,Pm))};function eJ(n){var o,i=n.state,s=n.name,l=n.options,c=i.elements.arrow,d=i.modifiersData.popperOffsets,f=Dc(i.placement),p=wA(f),m=[vl,E1].indexOf(f)>=0,g=m?"height":"width";if(!(!c||!d)){var v=ZX(l.padding,i),w=bA(c),A=p==="y"?gl:vl,k=p==="y"?I1:E1,C=i.rects.reference[g]+i.rects.reference[p]-d[p]-i.rects.popper[g],M=d[p]-i.rects.reference[p],S=jm(c),I=S?p==="y"?S.clientHeight||0:S.clientWidth||0:0,E=C/2-M/2,j=v[A],B=I-w[g]-v[k],D=I/2-w[g]/2+E,R=ch(j,D,B),N=p;i.modifiersData[s]=(o={},o[N]=R,o.centerOffset=R-D,o)}}function tJ(n){var o=n.state,i=n.options,s=i.element,l=s===void 0?"[data-popper-arrow]":s;l!=null&&(typeof l=="string"&&(l=o.elements.popper.querySelector(l),!l)||dB(o.elements.popper,l)&&(o.elements.arrow=l))}const rJ={name:"arrow",enabled:!0,phase:"main",fn:eJ,effect:tJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sp(n){return n.split("-")[1]}var nJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oJ(n,o){var i=n.x,s=n.y,l=o.devicePixelRatio||1;return{x:ip(i*l)/l||0,y:ip(s*l)/l||0}}function aI(n){var o,i=n.popper,s=n.popperRect,l=n.placement,c=n.variation,d=n.offsets,f=n.position,p=n.gpuAcceleration,m=n.adaptive,g=n.roundOffsets,v=n.isFixed,w=d.x,A=w===void 0?0:w,k=d.y,C=k===void 0?0:k,M=typeof g=="function"?g({x:A,y:C}):{x:A,y:C};A=M.x,C=M.y;var S=d.hasOwnProperty("x"),I=d.hasOwnProperty("y"),E=vl,j=gl,B=window;if(m){var D=jm(i),R="clientHeight",N="clientWidth";if(D===Ul(i)&&(D=Td(i),Iu(D).position!=="static"&&f==="absolute"&&(R="scrollHeight",N="scrollWidth")),D=D,l===gl||(l===vl||l===E1)&&c===Qh){j=I1;var U=v&&D===B&&B.visualViewport?B.visualViewport.height:D[R];C-=U-s.height,C*=p?1:-1}if(l===vl||(l===gl||l===I1)&&c===Qh){E=E1;var L=v&&D===B&&B.visualViewport?B.visualViewport.width:D[N];A-=L-s.width,A*=p?1:-1}}var _=Object.assign({position:f},m&&nJ),V=g===!0?oJ({x:A,y:C},Ul(i)):{x:A,y:C};if(A=V.x,C=V.y,p){var $;return Object.assign({},_,($={},$[j]=I?"0":"",$[E]=S?"0":"",$.transform=(B.devicePixelRatio||1)<=1?"translate("+A+"px, "+C+"px)":"translate3d("+A+"px, "+C+"px, 0)",$))}return Object.assign({},_,(o={},o[j]=I?C+"px":"",o[E]=S?A+"px":"",o.transform="",o))}function iJ(n){var o=n.state,i=n.options,s=i.gpuAcceleration,l=s===void 0?!0:s,c=i.adaptive,d=c===void 0?!0:c,f=i.roundOffsets,p=f===void 0?!0:f,m={placement:Dc(o.placement),variation:sp(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:l,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,aI(Object.assign({},m,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:d,roundOffsets:p})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,aI(Object.assign({},m,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const aJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iJ,data:{}};var Sg={passive:!0};function sJ(n){var o=n.state,i=n.instance,s=n.options,l=s.scroll,c=l===void 0?!0:l,d=s.resize,f=d===void 0?!0:d,p=Ul(o.elements.popper),m=[].concat(o.scrollParents.reference,o.scrollParents.popper);return c&&m.forEach(function(g){g.addEventListener("scroll",i.update,Sg)}),f&&p.addEventListener("resize",i.update,Sg),function(){c&&m.forEach(function(g){g.removeEventListener("scroll",i.update,Sg)}),f&&p.removeEventListener("resize",i.update,Sg)}}const lJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sJ,data:{}};var cJ={left:"right",right:"left",bottom:"top",top:"bottom"};function av(n){return n.replace(/left|right|bottom|top/g,function(o){return cJ[o]})}var uJ={start:"end",end:"start"};function sI(n){return n.replace(/start|end/g,function(o){return uJ[o]})}function xA(n){var o=Ul(n),i=o.pageXOffset,s=o.pageYOffset;return{scrollLeft:i,scrollTop:s}}function yA(n){return ap(Td(n)).left+xA(n).scrollLeft}function dJ(n,o){var i=Ul(n),s=Td(n),l=i.visualViewport,c=s.clientWidth,d=s.clientHeight,f=0,p=0;if(l){c=l.width,d=l.height;var m=uB();(m||!m&&o==="fixed")&&(f=l.offsetLeft,p=l.offsetTop)}return{width:c,height:d,x:f+yA(n),y:p}}function fJ(n){var o,i=Td(n),s=xA(n),l=(o=n.ownerDocument)==null?void 0:o.body,c=rf(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=rf(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),f=-s.scrollLeft+yA(n),p=-s.scrollTop;return Iu(l||i).direction==="rtl"&&(f+=rf(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:f,y:p}}function AA(n){var o=Iu(n),i=o.overflow,s=o.overflowX,l=o.overflowY;return/auto|scroll|overlay|hidden/.test(i+l+s)}function mB(n){return["html","body","#document"].indexOf(Uc(n))>=0?n.ownerDocument.body:y1(n)&&AA(n)?n:mB(Bb(n))}function uh(n,o){var i;o===void 0&&(o=[]);var s=mB(n),l=s===((i=n.ownerDocument)==null?void 0:i.body),c=Ul(s),d=l?[c].concat(c.visualViewport||[],AA(s)?s:[]):s,f=o.concat(d);return l?f:f.concat(uh(Bb(d)))}function _y(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function pJ(n,o){var i=ap(n,!1,o==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function lI(n,o,i){return o===lB?_y(dJ(n,i)):yf(o)?pJ(o,i):_y(fJ(Td(n)))}function hJ(n){var o=uh(Bb(n)),i=["absolute","fixed"].indexOf(Iu(n).position)>=0,s=i&&y1(n)?jm(n):n;return yf(s)?o.filter(function(l){return yf(l)&&dB(l,s)&&Uc(l)!=="body"}):[]}function mJ(n,o,i,s){var l=o==="clippingParents"?hJ(n):[].concat(o),c=[].concat(l,[i]),d=c[0],f=c.reduce(function(p,m){var g=lI(n,m,s);return p.top=rf(g.top,p.top),p.right=i3(g.right,p.right),p.bottom=i3(g.bottom,p.bottom),p.left=rf(g.left,p.left),p},lI(n,d,s));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function gB(n){var o=n.reference,i=n.element,s=n.placement,l=s?Dc(s):null,c=s?sp(s):null,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p;switch(l){case gl:p={x:d,y:o.y-i.height};break;case I1:p={x:d,y:o.y+o.height};break;case E1:p={x:o.x+o.width,y:f};break;case vl:p={x:o.x-i.width,y:f};break;default:p={x:o.x,y:o.y}}var m=l?wA(l):null;if(m!=null){var g=m==="y"?"height":"width";switch(c){case op:p[m]=p[m]-(o[g]/2-i[g]/2);break;case Qh:p[m]=p[m]+(o[g]/2-i[g]/2);break}}return p}function Wh(n,o){o===void 0&&(o={});var i=o,s=i.placement,l=s===void 0?n.placement:s,c=i.strategy,d=c===void 0?n.strategy:c,f=i.boundary,p=f===void 0?FX:f,m=i.rootBoundary,g=m===void 0?lB:m,v=i.elementContext,w=v===void 0?a0:v,A=i.altBoundary,k=A===void 0?!1:A,C=i.padding,M=C===void 0?0:C,S=pB(typeof M!="number"?M:hB(M,Pm)),I=w===a0?DX:a0,E=n.rects.popper,j=n.elements[k?I:w],B=mJ(yf(j)?j:j.contextElement||Td(n.elements.popper),p,g,d),D=ap(n.elements.reference),R=gB({reference:D,element:E,strategy:"absolute",placement:l}),N=_y(Object.assign({},E,R)),U=w===a0?N:D,L={top:B.top-U.top+S.top,bottom:U.bottom-B.bottom+S.bottom,left:B.left-U.left+S.left,right:U.right-B.right+S.right},_=n.modifiersData.offset;if(w===a0&&_){var V=_[l];Object.keys(L).forEach(function($){var z=[E1,I1].indexOf($)>=0?1:-1,Q=[gl,I1].indexOf($)>=0?"y":"x";L[$]+=V[Q]*z})}return L}function gJ(n,o){o===void 0&&(o={});var i=o,s=i.placement,l=i.boundary,c=i.rootBoundary,d=i.padding,f=i.flipVariations,p=i.allowedAutoPlacements,m=p===void 0?cB:p,g=sp(s),v=g?f?oI:oI.filter(function(k){return sp(k)===g}):Pm,w=v.filter(function(k){return m.indexOf(k)>=0});w.length===0&&(w=v);var A=w.reduce(function(k,C){return k[C]=Wh(n,{placement:C,boundary:l,rootBoundary:c,padding:d})[Dc(C)],k},{});return Object.keys(A).sort(function(k,C){return A[k]-A[C]})}function vJ(n){if(Dc(n)===gA)return[];var o=av(n);return[sI(n),o,sI(o)]}function bJ(n){var o=n.state,i=n.options,s=n.name;if(!o.modifiersData[s]._skip){for(var l=i.mainAxis,c=l===void 0?!0:l,d=i.altAxis,f=d===void 0?!0:d,p=i.fallbackPlacements,m=i.padding,g=i.boundary,v=i.rootBoundary,w=i.altBoundary,A=i.flipVariations,k=A===void 0?!0:A,C=i.allowedAutoPlacements,M=o.options.placement,S=Dc(M),I=S===M,E=p||(I||!k?[av(M)]:vJ(M)),j=[M].concat(E).reduce(function(ee,fe){return ee.concat(Dc(fe)===gA?gJ(o,{placement:fe,boundary:g,rootBoundary:v,padding:m,flipVariations:k,allowedAutoPlacements:C}):fe)},[]),B=o.rects.reference,D=o.rects.popper,R=new Map,N=!0,U=j[0],L=0;L=0,Q=z?"width":"height",G=Wh(o,{placement:_,boundary:g,rootBoundary:v,altBoundary:w,padding:m}),F=z?$?E1:vl:$?I1:gl;B[Q]>D[Q]&&(F=av(F));var q=av(F),W=[];if(c&&W.push(G[V]<=0),f&&W.push(G[F]<=0,G[q]<=0),W.every(function(ee){return ee})){U=_,N=!1;break}R.set(_,W)}if(N)for(var X=k?3:1,te=function(fe){var he=j.find(function(Ie){var ve=R.get(Ie);if(ve)return ve.slice(0,fe).every(function(be){return be})});if(he)return U=he,"break"},se=X;se>0;se--){var de=te(se);if(de==="break")break}o.placement!==U&&(o.modifiersData[s]._skip=!0,o.placement=U,o.reset=!0)}}const wJ={name:"flip",enabled:!0,phase:"main",fn:bJ,requiresIfExists:["offset"],data:{_skip:!1}};function cI(n,o,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-o.height-i.y,right:n.right-o.width+i.x,bottom:n.bottom-o.height+i.y,left:n.left-o.width-i.x}}function uI(n){return[gl,E1,I1,vl].some(function(o){return n[o]>=0})}function xJ(n){var o=n.state,i=n.name,s=o.rects.reference,l=o.rects.popper,c=o.modifiersData.preventOverflow,d=Wh(o,{elementContext:"reference"}),f=Wh(o,{altBoundary:!0}),p=cI(d,s),m=cI(f,l,c),g=uI(p),v=uI(m);o.modifiersData[i]={referenceClippingOffsets:p,popperEscapeOffsets:m,isReferenceHidden:g,hasPopperEscaped:v},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":v})}const yJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xJ};function AJ(n,o,i){var s=Dc(n),l=[vl,gl].indexOf(s)>=0?-1:1,c=typeof i=="function"?i(Object.assign({},o,{placement:n})):i,d=c[0],f=c[1];return d=d||0,f=(f||0)*l,[vl,E1].indexOf(s)>=0?{x:f,y:d}:{x:d,y:f}}function CJ(n){var o=n.state,i=n.options,s=n.name,l=i.offset,c=l===void 0?[0,0]:l,d=cB.reduce(function(g,v){return g[v]=AJ(v,o.rects,c),g},{}),f=d[o.placement],p=f.x,m=f.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=p,o.modifiersData.popperOffsets.y+=m),o.modifiersData[s]=d}const kJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CJ};function SJ(n){var o=n.state,i=n.name;o.modifiersData[i]=gB({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const IJ={name:"popperOffsets",enabled:!0,phase:"read",fn:SJ,data:{}};function EJ(n){return n==="x"?"y":"x"}function MJ(n){var o=n.state,i=n.options,s=n.name,l=i.mainAxis,c=l===void 0?!0:l,d=i.altAxis,f=d===void 0?!1:d,p=i.boundary,m=i.rootBoundary,g=i.altBoundary,v=i.padding,w=i.tether,A=w===void 0?!0:w,k=i.tetherOffset,C=k===void 0?0:k,M=Wh(o,{boundary:p,rootBoundary:m,padding:v,altBoundary:g}),S=Dc(o.placement),I=sp(o.placement),E=!I,j=wA(S),B=EJ(j),D=o.modifiersData.popperOffsets,R=o.rects.reference,N=o.rects.popper,U=typeof C=="function"?C(Object.assign({},o.rects,{placement:o.placement})):C,L=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),_=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,V={x:0,y:0};if(D){if(c){var $,z=j==="y"?gl:vl,Q=j==="y"?I1:E1,G=j==="y"?"height":"width",F=D[j],q=F+M[z],W=F-M[Q],X=A?-N[G]/2:0,te=I===op?R[G]:N[G],se=I===op?-N[G]:-R[G],de=o.elements.arrow,ee=A&&de?bA(de):{width:0,height:0},fe=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:fB(),he=fe[z],Ie=fe[Q],ve=ch(0,R[G],ee[G]),be=E?R[G]/2-X-ve-he-L.mainAxis:te-ve-he-L.mainAxis,ke=E?-R[G]/2+X+ve+Ie+L.mainAxis:se+ve+Ie+L.mainAxis,ze=o.elements.arrow&&jm(o.elements.arrow),Ge=ze?j==="y"?ze.clientTop||0:ze.clientLeft||0:0,Ve=($=_==null?void 0:_[j])!=null?$:0,at=F+be-Ve-Ge,We=F+ke-Ve,ue=ch(A?i3(q,at):q,F,A?rf(W,We):W);D[j]=ue,V[j]=ue-F}if(f){var Le,$e=j==="x"?gl:vl,bt=j==="x"?I1:E1,ot=D[B],st=B==="y"?"height":"width",Ze=ot+M[$e],dt=ot-M[bt],Xe=[gl,vl].indexOf(S)!==-1,Pt=(Le=_==null?void 0:_[B])!=null?Le:0,mt=Xe?Ze:ot-R[st]-N[st]-Pt+L.altAxis,pt=Xe?ot+R[st]+N[st]-Pt-L.altAxis:dt,Fe=A&&Xe?JX(mt,ot,pt):ch(A?mt:Ze,ot,A?pt:dt);D[B]=Fe,V[B]=Fe-ot}o.modifiersData[s]=V}}const PJ={name:"preventOverflow",enabled:!0,phase:"main",fn:MJ,requiresIfExists:["offset"]};function jJ(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function OJ(n){return n===Ul(n)||!y1(n)?xA(n):jJ(n)}function RJ(n){var o=n.getBoundingClientRect(),i=ip(o.width)/n.offsetWidth||1,s=ip(o.height)/n.offsetHeight||1;return i!==1||s!==1}function BJ(n,o,i){i===void 0&&(i=!1);var s=y1(o),l=y1(o)&&RJ(o),c=Td(o),d=ap(n,l,i),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(s||!s&&!i)&&((Uc(o)!=="body"||AA(c))&&(f=OJ(o)),y1(o)?(p=ap(o,!0),p.x+=o.clientLeft,p.y+=o.clientTop):c&&(p.x=yA(c))),{x:d.left+f.scrollLeft-p.x,y:d.top+f.scrollTop-p.y,width:d.width,height:d.height}}function TJ(n){var o=new Map,i=new Set,s=[];n.forEach(function(c){o.set(c.name,c)});function l(c){i.add(c.name);var d=[].concat(c.requires||[],c.requiresIfExists||[]);d.forEach(function(f){if(!i.has(f)){var p=o.get(f);p&&l(p)}}),s.push(c)}return n.forEach(function(c){i.has(c.name)||l(c)}),s}function FJ(n){var o=TJ(n);return WX.reduce(function(i,s){return i.concat(o.filter(function(l){return l.phase===s}))},[])}function DJ(n){var o;return function(){return o||(o=new Promise(function(i){Promise.resolve().then(function(){o=void 0,i(n())})})),o}}function NJ(n){var o=n.reduce(function(i,s){var l=i[s.name];return i[s.name]=l?Object.assign({},l,s,{options:Object.assign({},l.options,s.options),data:Object.assign({},l.data,s.data)}):s,i},{});return Object.keys(o).map(function(i){return o[i]})}var dI={placement:"bottom",modifiers:[],strategy:"absolute"};function fI(){for(var n=arguments.length,o=new Array(n),i=0;i{c||f(HJ(l)||document.body)},[l,c]),ko(()=>{if(d&&!c)return wh(i,d),()=>{wh(i,null)}},[i,d,c]),c){if(x.isValidElement(s)){const m={ref:p};return x.cloneElement(s,m)}return b.jsx(x.Fragment,{children:s})}return b.jsx(x.Fragment,{children:d&&hm.createPortal(s,d)})});function UJ(n){return Kt("MuiPopper",n)}Yt("MuiPopper",["root"]);const GJ=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],VJ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function QJ(n,o){if(o==="ltr")return n;switch(n){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return n}}function Yy(n){return typeof n=="function"?n():n}function WJ(n){return n.nodeType!==void 0}const qJ=n=>{const{classes:o}=n;return Bt({root:["root"]},UJ,o)},_J={},YJ=x.forwardRef(function(o,i){var s;const{anchorEl:l,children:c,direction:d,disablePortal:f,modifiers:p,open:m,placement:g,popperOptions:v,popperRef:w,slotProps:A={},slots:k={},TransitionProps:C}=o,M=Qe(o,GJ),S=x.useRef(null),I=Xn(S,i),E=x.useRef(null),j=Xn(E,w),B=x.useRef(j);ko(()=>{B.current=j},[j]),x.useImperativeHandle(w,()=>E.current,[]);const D=QJ(g,d),[R,N]=x.useState(D),[U,L]=x.useState(Yy(l));x.useEffect(()=>{E.current&&E.current.forceUpdate()}),x.useEffect(()=>{l&&L(Yy(l))},[l]),ko(()=>{if(!U||!m)return;const Q=q=>{N(q.placement)};let G=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{Q(q)}}];p!=null&&(G=G.concat(p)),v&&v.modifiers!=null&&(G=G.concat(v.modifiers));const F=zJ(U,S.current,P({placement:D},v,{modifiers:G}));return B.current(F),()=>{F.destroy(),B.current(null)}},[U,f,p,m,v,D]);const _={placement:R};C!==null&&(_.TransitionProps=C);const V=qJ(o),$=(s=k.root)!=null?s:"div",z=zl({elementType:$,externalSlotProps:A.root,externalForwardedProps:M,additionalProps:{role:"tooltip",ref:I},ownerState:o,className:V.root});return b.jsx($,P({},z,{children:typeof c=="function"?c(_):c}))}),KJ=x.forwardRef(function(o,i){const{anchorEl:s,children:l,container:c,direction:d="ltr",disablePortal:f=!1,keepMounted:p=!1,modifiers:m,open:g,placement:v="bottom",popperOptions:w=_J,popperRef:A,style:k,transition:C=!1,slotProps:M={},slots:S={}}=o,I=Qe(o,VJ),[E,j]=x.useState(!0),B=()=>{j(!1)},D=()=>{j(!0)};if(!p&&!g&&(!C||E))return null;let R;if(c)R=c;else if(s){const L=Yy(s);R=L&&WJ(L)?ri(L).body:ri(null).body}const N=!g&&p&&(!C||E)?"none":void 0,U=C?{in:g,onEnter:B,onExited:D}:void 0;return b.jsx(vB,{disablePortal:f,container:R,children:b.jsx(YJ,P({anchorEl:s,direction:d,disablePortal:f,modifiers:m,ref:i,open:C?!E:g,placement:v,popperOptions:w,popperRef:A,slotProps:M,slots:S},I,{style:P({position:"fixed",top:0,left:0,display:N},k),TransitionProps:U,children:l}))})}),XJ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],JJ=_e(KJ,{name:"MuiPopper",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Eu=x.forwardRef(function(o,i){var s;const l=aB(),c=Zt({props:o,name:"MuiPopper"}),{anchorEl:d,component:f,components:p,componentsProps:m,container:g,disablePortal:v,keepMounted:w,modifiers:A,open:k,placement:C,popperOptions:M,popperRef:S,transition:I,slots:E,slotProps:j}=c,B=Qe(c,XJ),D=(s=E==null?void 0:E.root)!=null?s:p==null?void 0:p.Root,R=P({anchorEl:d,container:g,disablePortal:v,keepMounted:w,modifiers:A,open:k,placement:C,popperOptions:M,popperRef:S,transition:I},B);return b.jsx(JJ,P({as:f,direction:l==null?void 0:l.direction,slots:{root:D},slotProps:j??m},R,{ref:i}))});function ZJ(n){return Kt("MuiListSubheader",n)}Yt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const eZ=["className","color","component","disableGutters","disableSticky","inset"],tZ=n=>{const{classes:o,color:i,disableGutters:s,inset:l,disableSticky:c}=n,d={root:["root",i!=="default"&&`color${Ke(i)}`,!s&&"gutters",l&&"inset",!c&&"sticky"]};return Bt(d,ZJ,o)},rZ=_e("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.color!=="default"&&o[`color${Ke(i.color)}`],!i.disableGutters&&o.gutters,i.inset&&o.inset,!i.disableSticky&&o.sticky]}})(({theme:n,ownerState:o})=>P({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(n.vars||n).palette.text.secondary,fontFamily:n.typography.fontFamily,fontWeight:n.typography.fontWeightMedium,fontSize:n.typography.pxToRem(14)},o.color==="primary"&&{color:(n.vars||n).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(n.vars||n).palette.background.paper})),bB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListSubheader"}),{className:l,color:c="default",component:d="li",disableGutters:f=!1,disableSticky:p=!1,inset:m=!1}=s,g=Qe(s,eZ),v=P({},s,{color:c,component:d,disableGutters:f,disableSticky:p,inset:m}),w=tZ(v);return b.jsx(rZ,P({as:d,className:nt(w.root,l),ref:i,ownerState:v},g))});bB.muiSkipListHighlight=!0;const nZ=_r(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function oZ(n){return Kt("MuiChip",n)}const po=Yt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),iZ=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],aZ=n=>{const{classes:o,disabled:i,size:s,color:l,iconColor:c,onDelete:d,clickable:f,variant:p}=n,m={root:["root",p,i&&"disabled",`size${Ke(s)}`,`color${Ke(l)}`,f&&"clickable",f&&`clickableColor${Ke(l)}`,d&&"deletable",d&&`deletableColor${Ke(l)}`,`${p}${Ke(l)}`],label:["label",`label${Ke(s)}`],avatar:["avatar",`avatar${Ke(s)}`,`avatarColor${Ke(l)}`],icon:["icon",`icon${Ke(s)}`,`iconColor${Ke(c)}`],deleteIcon:["deleteIcon",`deleteIcon${Ke(s)}`,`deleteIconColor${Ke(l)}`,`deleteIcon${Ke(p)}Color${Ke(l)}`]};return Bt(m,oZ,o)},sZ=_e("div",{name:"MuiChip",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n,{color:s,iconColor:l,clickable:c,onDelete:d,size:f,variant:p}=i;return[{[`& .${po.avatar}`]:o.avatar},{[`& .${po.avatar}`]:o[`avatar${Ke(f)}`]},{[`& .${po.avatar}`]:o[`avatarColor${Ke(s)}`]},{[`& .${po.icon}`]:o.icon},{[`& .${po.icon}`]:o[`icon${Ke(f)}`]},{[`& .${po.icon}`]:o[`iconColor${Ke(l)}`]},{[`& .${po.deleteIcon}`]:o.deleteIcon},{[`& .${po.deleteIcon}`]:o[`deleteIcon${Ke(f)}`]},{[`& .${po.deleteIcon}`]:o[`deleteIconColor${Ke(s)}`]},{[`& .${po.deleteIcon}`]:o[`deleteIcon${Ke(p)}Color${Ke(s)}`]},o.root,o[`size${Ke(f)}`],o[`color${Ke(s)}`],c&&o.clickable,c&&s!=="default"&&o[`clickableColor${Ke(s)})`],d&&o.deletable,d&&s!=="default"&&o[`deletableColor${Ke(s)}`],o[p],o[`${p}${Ke(s)}`]]}})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light"?n.palette.grey[700]:n.palette.grey[300];return P({maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${po.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${po.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:i,fontSize:n.typography.pxToRem(12)},[`& .${po.avatarColorPrimary}`]:{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark},[`& .${po.avatarColorSecondary}`]:{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark},[`& .${po.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)},[`& .${po.icon}`]:P({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&P({color:n.vars?n.vars.palette.Chip.defaultIconColor:i},o.color!=="default"&&{color:"inherit"})),[`& .${po.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:n.vars?`rgba(${n.vars.palette.text.primaryChannel} / 0.26)`:Lr(n.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?`rgba(${n.vars.palette.text.primaryChannel} / 0.4)`:Lr(n.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:n.vars?`rgba(${n.vars.palette[o.color].contrastTextChannel} / 0.7)`:Lr(n.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(n.vars||n).palette[o.color].main,color:(n.vars||n).palette[o.color].contrastText},o.onDelete&&{[`&.${po.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${po.focusVisible}`]:{backgroundColor:(n.vars||n).palette[o.color].dark}})},({theme:n,ownerState:o})=>P({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)},[`&.${po.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)},"&:active":{boxShadow:(n.vars||n).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${po.focusVisible}`]:{backgroundColor:(n.vars||n).palette[o.color].dark}}),({theme:n,ownerState:o})=>P({},o.variant==="outlined"&&{backgroundColor:"transparent",border:n.vars?`1px solid ${n.vars.palette.Chip.defaultBorder}`:`1px solid ${n.palette.mode==="light"?n.palette.grey[400]:n.palette.grey[700]}`,[`&.${po.clickable}:hover`]:{backgroundColor:(n.vars||n).palette.action.hover},[`&.${po.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`& .${po.avatar}`]:{marginLeft:4},[`& .${po.avatarSmall}`]:{marginLeft:2},[`& .${po.icon}`]:{marginLeft:4},[`& .${po.iconSmall}`]:{marginLeft:2},[`& .${po.deleteIcon}`]:{marginRight:5},[`& .${po.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(n.vars||n).palette[o.color].main,border:`1px solid ${n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.7)`:Lr(n.palette[o.color].main,.7)}`,[`&.${po.clickable}:hover`]:{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o.color].main,n.palette.action.hoverOpacity)},[`&.${po.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.focusOpacity})`:Lr(n.palette[o.color].main,n.palette.action.focusOpacity)},[`& .${po.deleteIcon}`]:{color:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.7)`:Lr(n.palette[o.color].main,.7),"&:hover, &:active":{color:(n.vars||n).palette[o.color].main}}})),lZ=_e("span",{name:"MuiChip",slot:"Label",overridesResolver:(n,o)=>{const{ownerState:i}=n,{size:s}=i;return[o.label,o[`label${Ke(s)}`]]}})(({ownerState:n})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},n.variant==="outlined"&&{paddingLeft:11,paddingRight:11},n.size==="small"&&{paddingLeft:8,paddingRight:8},n.size==="small"&&n.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function pI(n){return n.key==="Backspace"||n.key==="Delete"}const Pp=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiChip"}),{avatar:l,className:c,clickable:d,color:f="default",component:p,deleteIcon:m,disabled:g=!1,icon:v,label:w,onClick:A,onDelete:k,onKeyDown:C,onKeyUp:M,size:S="medium",variant:I="filled",tabIndex:E,skipFocusWhenDisabled:j=!1}=s,B=Qe(s,iZ),D=x.useRef(null),R=Xn(D,i),N=W=>{W.stopPropagation(),k&&k(W)},U=W=>{W.currentTarget===W.target&&pI(W)&&W.preventDefault(),C&&C(W)},L=W=>{W.currentTarget===W.target&&(k&&pI(W)?k(W):W.key==="Escape"&&D.current&&D.current.blur()),M&&M(W)},_=d!==!1&&A?!0:d,V=_||k?Hc:p||"div",$=P({},s,{component:V,disabled:g,size:S,color:f,iconColor:x.isValidElement(v)&&v.props.color||f,onDelete:!!k,clickable:_,variant:I}),z=aZ($),Q=V===Hc?P({component:p||"div",focusVisibleClassName:z.focusVisible},k&&{disableRipple:!0}):{};let G=null;k&&(G=m&&x.isValidElement(m)?x.cloneElement(m,{className:nt(m.props.className,z.deleteIcon),onClick:N}):b.jsx(nZ,{className:nt(z.deleteIcon),onClick:N}));let F=null;l&&x.isValidElement(l)&&(F=x.cloneElement(l,{className:nt(z.avatar,l.props.className)}));let q=null;return v&&x.isValidElement(v)&&(q=x.cloneElement(v,{className:nt(z.icon,v.props.className)})),b.jsxs(sZ,P({as:V,className:nt(z.root,c),disabled:_&&g?!0:void 0,onClick:A,onKeyDown:U,onKeyUp:L,ref:R,tabIndex:j&&g?-1:E,ownerState:$},Q,B,{children:[F||q,b.jsx(lZ,{className:nt(z.label),ownerState:$,children:w}),G]}))}),cZ=["onChange","maxRows","minRows","style","value"];function Ig(n){return parseInt(n,10)||0}const uZ={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function dZ(n){return n==null||Object.keys(n).length===0||n.outerHeightStyle===0&&!n.overflowing}const fZ=x.forwardRef(function(o,i){const{onChange:s,maxRows:l,minRows:c=1,style:d,value:f}=o,p=Qe(o,cZ),{current:m}=x.useRef(f!=null),g=x.useRef(null),v=Xn(i,g),w=x.useRef(null),A=x.useRef(null),k=x.useCallback(()=>{const S=g.current,E=Ll(S).getComputedStyle(S);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};const j=A.current;j.style.width=E.width,j.value=S.value||o.placeholder||"x",j.value.slice(-1)===` +`&&(j.value+=" ");const B=E.boxSizing,D=Ig(E.paddingBottom)+Ig(E.paddingTop),R=Ig(E.borderBottomWidth)+Ig(E.borderTopWidth),N=j.scrollHeight;j.value="x";const U=j.scrollHeight;let L=N;c&&(L=Math.max(Number(c)*U,L)),l&&(L=Math.min(Number(l)*U,L)),L=Math.max(L,U);const _=L+(B==="border-box"?D+R:0),V=Math.abs(L-N)<=1;return{outerHeightStyle:_,overflowing:V}},[l,c,o.placeholder]),C=x.useCallback(()=>{const S=k();if(dZ(S))return;const I=S.outerHeightStyle,E=g.current;w.current!==I&&(w.current=I,E.style.height=`${I}px`),E.style.overflow=S.overflowing?"hidden":""},[k]);ko(()=>{const S=()=>{C()};let I;const E=Ef(S),j=g.current,B=Ll(j);B.addEventListener("resize",E);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(S),D.observe(j)),()=>{E.clear(),cancelAnimationFrame(I),B.removeEventListener("resize",E),D&&D.disconnect()}},[k,C]),ko(()=>{C()});const M=S=>{m||C(),s&&s(S)};return b.jsxs(x.Fragment,{children:[b.jsx("textarea",P({value:f,onChange:M,ref:v,rows:c,style:d},p)),b.jsx("textarea",{"aria-hidden":!0,className:o.className,readOnly:!0,ref:A,tabIndex:-1,style:P({},uZ.shadow,d,{paddingTop:0,paddingBottom:0})})]})});function Fd({props:n,states:o,muiFormControl:i}){return o.reduce((s,l)=>(s[l]=n[l],i&&typeof n[l]>"u"&&(s[l]=i[l]),s),{})}const Tb=x.createContext(void 0);function Vc(){return x.useContext(Tb)}function hI(n){return n!=null&&!(Array.isArray(n)&&n.length===0)}function a3(n,o=!1){return n&&(hI(n.value)&&n.value!==""||o&&hI(n.defaultValue)&&n.defaultValue!=="")}function pZ(n){return n.startAdornment}function hZ(n){return Kt("MuiInputBase",n)}const Ml=Yt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),mZ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Fb=(n,o)=>{const{ownerState:i}=n;return[o.root,i.formControl&&o.formControl,i.startAdornment&&o.adornedStart,i.endAdornment&&o.adornedEnd,i.error&&o.error,i.size==="small"&&o.sizeSmall,i.multiline&&o.multiline,i.color&&o[`color${Ke(i.color)}`],i.fullWidth&&o.fullWidth,i.hiddenLabel&&o.hiddenLabel]},Db=(n,o)=>{const{ownerState:i}=n;return[o.input,i.size==="small"&&o.inputSizeSmall,i.multiline&&o.inputMultiline,i.type==="search"&&o.inputTypeSearch,i.startAdornment&&o.inputAdornedStart,i.endAdornment&&o.inputAdornedEnd,i.hiddenLabel&&o.inputHiddenLabel]},gZ=n=>{const{classes:o,color:i,disabled:s,error:l,endAdornment:c,focused:d,formControl:f,fullWidth:p,hiddenLabel:m,multiline:g,readOnly:v,size:w,startAdornment:A,type:k}=n,C={root:["root",`color${Ke(i)}`,s&&"disabled",l&&"error",p&&"fullWidth",d&&"focused",f&&"formControl",w&&w!=="medium"&&`size${Ke(w)}`,g&&"multiline",A&&"adornedStart",c&&"adornedEnd",m&&"hiddenLabel",v&&"readOnly"],input:["input",s&&"disabled",k==="search"&&"inputTypeSearch",g&&"inputMultiline",w==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",A&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return Bt(C,hZ,o)},Nb=_e("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fb})(({theme:n,ownerState:o})=>P({},n.typography.body1,{color:(n.vars||n).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ml.disabled}`]:{color:(n.vars||n).palette.text.disabled,cursor:"default"}},o.multiline&&P({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),$b=_e("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Db})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light",s=P({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),l={opacity:"0 !important"},c=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ml.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Ml.disabled}`]:{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),vZ=b.jsx(UP,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),bZ=x.forwardRef(function(o,i){var s;const l=Zt({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:f,className:p,components:m={},componentsProps:g={},defaultValue:v,disabled:w,disableInjectingGlobalStyles:A,endAdornment:k,fullWidth:C=!1,id:M,inputComponent:S="input",inputProps:I={},inputRef:E,maxRows:j,minRows:B,multiline:D=!1,name:R,onBlur:N,onChange:U,onClick:L,onFocus:_,onKeyDown:V,onKeyUp:$,placeholder:z,readOnly:Q,renderSuffix:G,rows:F,slotProps:q={},slots:W={},startAdornment:X,type:te="text",value:se}=l,de=Qe(l,mZ),ee=I.value!=null?I.value:se,{current:fe}=x.useRef(ee!=null),he=x.useRef(),Ie=x.useCallback(Fe=>{},[]),ve=Xn(he,E,I.ref,Ie),[be,ke]=x.useState(!1),ze=Vc(),Ge=Fd({props:l,muiFormControl:ze,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ge.focused=ze?ze.focused:be,x.useEffect(()=>{!ze&&w&&be&&(ke(!1),N&&N())},[ze,w,be,N]);const Ve=ze&&ze.onFilled,at=ze&&ze.onEmpty,We=x.useCallback(Fe=>{a3(Fe)?Ve&&Ve():at&&at()},[Ve,at]);ko(()=>{fe&&We({value:ee})},[ee,We,fe]);const ue=Fe=>{if(Ge.disabled){Fe.stopPropagation();return}_&&_(Fe),I.onFocus&&I.onFocus(Fe),ze&&ze.onFocus?ze.onFocus(Fe):ke(!0)},Le=Fe=>{N&&N(Fe),I.onBlur&&I.onBlur(Fe),ze&&ze.onBlur?ze.onBlur(Fe):ke(!1)},$e=(Fe,...Be)=>{if(!fe){const Je=Fe.target||he.current;if(Je==null)throw new Error(vu(1));We({value:Je.value})}I.onChange&&I.onChange(Fe,...Be),U&&U(Fe,...Be)};x.useEffect(()=>{We(he.current)},[]);const bt=Fe=>{he.current&&Fe.currentTarget===Fe.target&&he.current.focus(),L&&L(Fe)};let ot=S,st=I;D&&ot==="input"&&(F?st=P({type:void 0,minRows:F,maxRows:F},st):st=P({type:void 0,maxRows:j,minRows:B},st),ot=fZ);const Ze=Fe=>{We(Fe.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};x.useEffect(()=>{ze&&ze.setAdornedStart(!!X)},[ze,X]);const dt=P({},l,{color:Ge.color||"primary",disabled:Ge.disabled,endAdornment:k,error:Ge.error,focused:Ge.focused,formControl:ze,fullWidth:C,hiddenLabel:Ge.hiddenLabel,multiline:D,size:Ge.size,startAdornment:X,type:te}),Xe=gZ(dt),Pt=W.root||m.Root||Nb,mt=q.root||g.root||{},pt=W.input||m.Input||$b;return st=P({},st,(s=q.input)!=null?s:g.input),b.jsxs(x.Fragment,{children:[!A&&vZ,b.jsxs(Pt,P({},mt,!cf(Pt)&&{ownerState:P({},dt,mt.ownerState)},{ref:i,onClick:bt},de,{className:nt(Xe.root,mt.className,p,Q&&"MuiInputBase-readOnly"),children:[X,b.jsx(Tb.Provider,{value:null,children:b.jsx(pt,P({ownerState:dt,"aria-invalid":Ge.error,"aria-describedby":c,autoComplete:d,autoFocus:f,defaultValue:v,disabled:Ge.disabled,id:M,onAnimationStart:Ze,name:R,placeholder:z,readOnly:Q,required:Ge.required,rows:F,value:ee,onKeyDown:V,onKeyUp:$,type:te},st,!cf(pt)&&{as:ot,ownerState:P({},dt,st.ownerState)},{ref:ve,className:nt(Xe.input,st.className,Q&&"MuiInputBase-readOnly"),onBlur:Le,onChange:$e,onFocus:ue}))}),k,G?G(P({},Ge,{startAdornment:X})):null]}))]})}),jp=bZ;function wZ(n){return Kt("MuiInput",n)}const rd=P({},Ml,Yt("MuiInput",["root","underline","input"]));function xZ(n){return Kt("MuiOutlinedInput",n)}const Ac=P({},Ml,Yt("MuiOutlinedInput",["root","notchedOutline","input"]));function yZ(n){return Kt("MuiFilledInput",n)}const Pl=P({},Ml,Yt("MuiFilledInput",["root","underline","input"])),wB=_r(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function AZ(n){return Kt("MuiAutocomplete",n)}const En=Yt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var mI,gI;const CZ=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],kZ=["ref"],SZ=["key"],IZ=["key"],EZ=n=>{const{classes:o,disablePortal:i,expanded:s,focused:l,fullWidth:c,hasClearIcon:d,hasPopupIcon:f,inputFocused:p,popupOpen:m,size:g}=n,v={root:["root",s&&"expanded",l&&"focused",c&&"fullWidth",d&&"hasClearIcon",f&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",p&&"inputFocused"],tag:["tag",`tagSize${Ke(g)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",m&&"popupIndicatorOpen"],popper:["popper",i&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Bt(v,AZ,o)},MZ=_e("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n,{fullWidth:s,hasClearIcon:l,hasPopupIcon:c,inputFocused:d,size:f}=i;return[{[`& .${En.tag}`]:o.tag},{[`& .${En.tag}`]:o[`tagSize${Ke(f)}`]},{[`& .${En.inputRoot}`]:o.inputRoot},{[`& .${En.input}`]:o.input},{[`& .${En.input}`]:d&&o.inputFocused},o.root,s&&o.fullWidth,c&&o.hasPopupIcon,l&&o.hasClearIcon]}})({[`&.${En.focused} .${En.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${En.clearIndicator}`]:{visibility:"visible"}},[`& .${En.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${En.inputRoot}`]:{[`.${En.hasPopupIcon}&, .${En.hasClearIcon}&`]:{paddingRight:30},[`.${En.hasPopupIcon}.${En.hasClearIcon}&`]:{paddingRight:56},[`& .${En.input}`]:{width:0,minWidth:30}},[`& .${rd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${rd.root}.${Ml.sizeSmall}`]:{[`& .${rd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ac.root}`]:{padding:9,[`.${En.hasPopupIcon}&, .${En.hasClearIcon}&`]:{paddingRight:39},[`.${En.hasPopupIcon}.${En.hasClearIcon}&`]:{paddingRight:65},[`& .${En.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${En.endAdornment}`]:{right:9}},[`& .${Ac.root}.${Ml.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${En.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Pl.root}`]:{paddingTop:19,paddingLeft:8,[`.${En.hasPopupIcon}&, .${En.hasClearIcon}&`]:{paddingRight:39},[`.${En.hasPopupIcon}.${En.hasClearIcon}&`]:{paddingRight:65},[`& .${Pl.input}`]:{padding:"7px 4px"},[`& .${En.endAdornment}`]:{right:9}},[`& .${Pl.root}.${Ml.sizeSmall}`]:{paddingBottom:1,[`& .${Pl.input}`]:{padding:"2.5px 4px"}},[`& .${Ml.hiddenLabel}`]:{paddingTop:8},[`& .${Pl.root}.${Ml.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${En.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Pl.root}.${Ml.hiddenLabel}.${Ml.sizeSmall}`]:{[`& .${En.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${En.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${En.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${En.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${En.inputRoot}`]:{flexWrap:"wrap"}}}]}),PZ=_e("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(n,o)=>o.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),jZ=_e(fi,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(n,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),OZ=_e(fi,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:n},o)=>P({},o.popupIndicator,n.popupOpen&&o.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),RZ=_e(Eu,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${En.option}`]:o.option},o.popper,i.disablePortal&&o.popperDisablePortal]}})(({theme:n})=>({zIndex:(n.vars||n).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),BZ=_e(Js,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(n,o)=>o.paper})(({theme:n})=>P({},n.typography.body1,{overflow:"auto"})),TZ=_e("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(n,o)=>o.loading})(({theme:n})=>({color:(n.vars||n).palette.text.secondary,padding:"14px 16px"})),FZ=_e("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(n,o)=>o.noOptions})(({theme:n})=>({color:(n.vars||n).palette.text.secondary,padding:"14px 16px"})),DZ=_e("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(n,o)=>o.listbox})(({theme:n})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${En.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[n.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${En.focused}`]:{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${En.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),[`&.${En.focused}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}},[`&.${En.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}}}})),NZ=_e(bB,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(n,o)=>o.groupLabel})(({theme:n})=>({backgroundColor:(n.vars||n).palette.background.paper,top:-8})),$Z=_e("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(n,o)=>o.groupUl})({padding:0,[`& .${En.option}`]:{paddingLeft:24}}),lp=x.forwardRef(function(o,i){var s,l,c,d;const f=Zt({props:o,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:m=!1,autoSelect:g=!1,blurOnSelect:v=!1,ChipProps:w,className:A,clearIcon:k=mI||(mI=b.jsx(yX,{fontSize:"small"})),clearOnBlur:C=!f.freeSolo,clearOnEscape:M=!1,clearText:S="Clear",closeText:I="Close",componentsProps:E={},defaultValue:j=f.multiple?[]:null,disableClearable:B=!1,disableCloseOnSelect:D=!1,disabled:R=!1,disabledItemsFocusable:N=!1,disableListWrap:U=!1,disablePortal:L=!1,filterSelectedOptions:_=!1,forcePopupIcon:V="auto",freeSolo:$=!1,fullWidth:z=!1,getLimitTagsText:Q=et=>`+${et}`,getOptionLabel:G,groupBy:F,handleHomeEndKeys:q=!f.freeSolo,includeInputInList:W=!1,limitTags:X=-1,ListboxComponent:te="ul",ListboxProps:se,loading:de=!1,loadingText:ee="Loading…",multiple:fe=!1,noOptionsText:he="No options",openOnFocus:Ie=!1,openText:ve="Open",PaperComponent:be=Js,PopperComponent:ke=Eu,popupIcon:ze=gI||(gI=b.jsx(wB,{})),readOnly:Ge=!1,renderGroup:Ve,renderInput:at,renderOption:We,renderTags:ue,selectOnFocus:Le=!f.freeSolo,size:$e="medium",slotProps:bt={}}=f,ot=Qe(f,CZ),{getRootProps:st,getInputProps:Ze,getInputLabelProps:dt,getPopupIndicatorProps:Xe,getClearProps:Pt,getTagProps:mt,getListboxProps:pt,getOptionProps:Fe,value:Be,dirty:Je,expanded:It,id:Nt,popupOpen:ht,focused:xt,focusedTag:tt,anchorEl:Y,setAnchorEl:re,inputValue:ie,groupedOptions:le}=PX(P({},f,{componentName:"Autocomplete"})),ge=!B&&!R&&Je&&!Ge,Pe=(!$||V===!0)&&V!==!1,{onMouseDown:me}=Ze(),{ref:Ee}=se??{},ce=pt(),{ref:je}=ce,He=Qe(ce,kZ),Ne=Xn(je,Ee),rt=G||(et=>{var Et;return(Et=et.label)!=null?Et:et}),Te=P({},f,{disablePortal:L,expanded:It,focused:xt,fullWidth:z,getOptionLabel:rt,hasClearIcon:ge,hasPopupIcon:Pe,inputFocused:tt===-1,popupOpen:ht,size:$e}),Ae=EZ(Te);let Ue;if(fe&&Be.length>0){const et=Et=>P({className:Ae.tag,disabled:R},mt(Et));ue?Ue=ue(Be,et,Te):Ue=Be.map((Et,ut)=>{const Dt=et({index:ut}),{key:jt}=Dt,nr=Qe(Dt,SZ);return b.jsx(Pp,P({label:rt(Et),size:$e},nr,w),jt)})}if(X>-1&&Array.isArray(Ue)){const et=Ue.length-X;!xt&&et>0&&(Ue=Ue.splice(0,X),Ue.push(b.jsx("span",{className:Ae.tag,children:Q(et)},Ue.length)))}const De=Ve||(et=>b.jsxs("li",{children:[b.jsx(NZ,{className:Ae.groupLabel,ownerState:Te,component:"div",children:et.group}),b.jsx($Z,{className:Ae.groupUl,ownerState:Te,children:et.children})]},et.key)),gt=We||((et,Et)=>{const{key:ut}=et,Dt=Qe(et,IZ);return b.jsx("li",P({},Dt,{children:rt(Et)}),ut)}),At=(et,Et)=>{const ut=Fe({option:et,index:Et});return gt(P({},ut,{className:Ae.option}),et,{selected:ut["aria-selected"],index:Et,inputValue:ie},Te)},St=(s=bt.clearIndicator)!=null?s:E.clearIndicator,yt=(l=bt.paper)!=null?l:E.paper,Ct=(c=bt.popper)!=null?c:E.popper,Re=(d=bt.popupIndicator)!=null?d:E.popupIndicator,Ce=et=>b.jsx(RZ,P({as:ke,disablePortal:L,style:{width:Y?Y.clientWidth:null},ownerState:Te,role:"presentation",anchorEl:Y,open:ht},Ct,{className:nt(Ae.popper,Ct==null?void 0:Ct.className),children:b.jsx(BZ,P({ownerState:Te,as:be},yt,{className:nt(Ae.paper,yt==null?void 0:yt.className),children:et}))}));let Ye=null;return le.length>0?Ye=Ce(b.jsx(DZ,P({as:te,className:Ae.listbox,ownerState:Te},He,se,{ref:Ne,children:le.map((et,Et)=>F?De({key:et.key,group:et.group,children:et.options.map((ut,Dt)=>At(ut,et.index+Dt))}):At(et,Et))}))):de&&le.length===0?Ye=Ce(b.jsx(TZ,{className:Ae.loading,ownerState:Te,children:ee})):le.length===0&&!$&&!de&&(Ye=Ce(b.jsx(FZ,{className:Ae.noOptions,ownerState:Te,role:"presentation",onMouseDown:et=>{et.preventDefault()},children:he}))),b.jsxs(x.Fragment,{children:[b.jsx(MZ,P({ref:i,className:nt(Ae.root,A),ownerState:Te},st(ot),{children:at({id:Nt,disabled:R,fullWidth:!0,size:$e==="small"?"small":void 0,InputLabelProps:dt(),InputProps:P({ref:re,className:Ae.inputRoot,startAdornment:Ue,onClick:et=>{et.target===et.currentTarget&&me(et)}},(ge||Pe)&&{endAdornment:b.jsxs(PZ,{className:Ae.endAdornment,ownerState:Te,children:[ge?b.jsx(jZ,P({},Pt(),{"aria-label":S,title:S,ownerState:Te},St,{className:nt(Ae.clearIndicator,St==null?void 0:St.className),children:k})):null,Pe?b.jsx(OZ,P({},Xe(),{disabled:R,"aria-label":ht?I:ve,title:ht?I:ve,ownerState:Te},Re,{className:nt(Ae.popupIndicator,Re==null?void 0:Re.className),children:ze})):null]})}),inputProps:P({className:Ae.input,disabled:R,readOnly:Ge},Ze())})})),Y?Ye:null]})}),LZ=_r(b.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function zZ(n){return Kt("MuiAvatar",n)}Yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const HZ=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UZ=n=>{const{classes:o,variant:i,colorDefault:s}=n;return Bt({root:["root",i,s&&"colorDefault"],img:["img"],fallback:["fallback"]},zZ,o)},GZ=_e("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],i.colorDefault&&o.colorDefault]}})(({theme:n})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:P({color:(n.vars||n).palette.background.default},n.vars?{backgroundColor:n.vars.palette.Avatar.defaultBg}:P({backgroundColor:n.palette.grey[400]},n.applyStyles("dark",{backgroundColor:n.palette.grey[600]})))}]})),VZ=_e("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(n,o)=>o.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),QZ=_e(LZ,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(n,o)=>o.fallback})({width:"75%",height:"75%"});function WZ({crossOrigin:n,referrerPolicy:o,src:i,srcSet:s}){const[l,c]=x.useState(!1);return x.useEffect(()=>{if(!i&&!s)return;c(!1);let d=!0;const f=new Image;return f.onload=()=>{d&&c("loaded")},f.onerror=()=>{d&&c("error")},f.crossOrigin=n,f.referrerPolicy=o,f.src=i,s&&(f.srcset=s),()=>{d=!1}},[n,o,i,s]),l}const qZ=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiAvatar"}),{alt:l,children:c,className:d,component:f="div",slots:p={},slotProps:m={},imgProps:g,sizes:v,src:w,srcSet:A,variant:k="circular"}=s,C=Qe(s,HZ);let M=null;const S=WZ(P({},g,{src:w,srcSet:A})),I=w||A,E=I&&S!=="error",j=P({},s,{colorDefault:!E,component:f,variant:k}),B=UZ(j),[D,R]=xX("img",{className:B.img,elementType:VZ,externalForwardedProps:{slots:p,slotProps:{img:P({},g,m.img)}},additionalProps:{alt:l,src:w,srcSet:A,sizes:v},ownerState:j});return E?M=b.jsx(D,P({},R)):c||c===0?M=c:I&&l?M=l[0]:M=b.jsx(QZ,{ownerState:j,className:B.fallback}),b.jsx(GZ,P({as:f,ownerState:j,className:nt(B.root,d),ref:i},C,{children:M}))}),_Z=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YZ={entering:{opacity:1},entered:{opacity:1}},xB=x.forwardRef(function(o,i){const s=ka(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:f,easing:p,in:m,onEnter:g,onEntered:v,onEntering:w,onExit:A,onExited:k,onExiting:C,style:M,timeout:S=l,TransitionComponent:I=O1}=o,E=Qe(o,_Z),j=x.useRef(null),B=Xn(j,f.ref,i),D=z=>Q=>{if(z){const G=j.current;Q===void 0?z(G):z(G,Q)}},R=D(w),N=D((z,Q)=>{X5(z);const G=Cd({style:M,timeout:S,easing:p},{mode:"enter"});z.style.webkitTransition=s.transitions.create("opacity",G),z.style.transition=s.transitions.create("opacity",G),g&&g(z,Q)}),U=D(v),L=D(C),_=D(z=>{const Q=Cd({style:M,timeout:S,easing:p},{mode:"exit"});z.style.webkitTransition=s.transitions.create("opacity",Q),z.style.transition=s.transitions.create("opacity",Q),A&&A(z)}),V=D(k),$=z=>{c&&c(j.current,z)};return b.jsx(I,P({appear:d,in:m,nodeRef:j,onEnter:N,onEntered:U,onEntering:R,onExit:_,onExited:V,onExiting:L,addEndListener:$,timeout:S},E,{children:(z,Q)=>x.cloneElement(f,P({style:P({opacity:0,visibility:z==="exited"&&!m?"hidden":void 0},YZ[z],M,f.props.style),ref:B},Q))}))});function KZ(n){return Kt("MuiBackdrop",n)}Yt("MuiBackdrop",["root","invisible"]);const XZ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JZ=n=>{const{classes:o,invisible:i}=n;return Bt({root:["root",i&&"invisible"]},KZ,o)},ZZ=_e("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.invisible&&o.invisible]}})(({ownerState:n})=>P({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},n.invisible&&{backgroundColor:"transparent"})),yB=x.forwardRef(function(o,i){var s,l,c;const d=Zt({props:o,name:"MuiBackdrop"}),{children:f,className:p,component:m="div",components:g={},componentsProps:v={},invisible:w=!1,open:A,slotProps:k={},slots:C={},TransitionComponent:M=xB,transitionDuration:S}=d,I=Qe(d,XZ),E=P({},d,{component:m,invisible:w}),j=JZ(E),B=(s=k.root)!=null?s:v.root;return b.jsx(M,P({in:A,timeout:S},I,{children:b.jsx(ZZ,P({"aria-hidden":!0},B,{as:(l=(c=C.root)!=null?c:g.Root)!=null?l:m,className:nt(j.root,p,B==null?void 0:B.className),ownerState:P({},E,B==null?void 0:B.ownerState),classes:j,ref:i,children:f}))}))});function eee(n){const{badgeContent:o,invisible:i=!1,max:s=99,showZero:l=!1}=n,c=X6({badgeContent:o,max:s});let d=i;i===!1&&o===0&&!l&&(d=!0);const{badgeContent:f,max:p=s}=d?c:n,m=f&&Number(f)>p?`${p}+`:f;return{badgeContent:f,invisible:d,max:p,displayValue:m}}function tee(n){return Kt("MuiBadge",n)}const Nu=Yt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ree=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Jw=10,Zw=4,nee=n=>{const{color:o,anchorOrigin:i,invisible:s,overlap:l,variant:c,classes:d={}}=n,f={root:["root"],badge:["badge",c,s&&"invisible",`anchorOrigin${Ke(i.vertical)}${Ke(i.horizontal)}`,`anchorOrigin${Ke(i.vertical)}${Ke(i.horizontal)}${Ke(l)}`,`overlap${Ke(l)}`,o!=="default"&&`color${Ke(o)}`]};return Bt(f,tee,d)},oee=_e("span",{name:"MuiBadge",slot:"Root",overridesResolver:(n,o)=>o.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),iee=_e("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.badge,o[i.variant],o[`anchorOrigin${Ke(i.anchorOrigin.vertical)}${Ke(i.anchorOrigin.horizontal)}${Ke(i.overlap)}`],i.color!=="default"&&o[`color${Ke(i.color)}`],i.invisible&&o.invisible]}})(({theme:n})=>{var o;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:n.typography.fontFamily,fontWeight:n.typography.fontWeightMedium,fontSize:n.typography.pxToRem(12),minWidth:Jw*2,lineHeight:1,padding:"0 6px",height:Jw*2,borderRadius:Jw,zIndex:1,transition:n.transitions.create("transform",{easing:n.transitions.easing.easeInOut,duration:n.transitions.duration.enteringScreen}),variants:[...Object.keys(((o=n.vars)!=null?o:n).palette).filter(i=>{var s,l;return((s=n.vars)!=null?s:n).palette[i].main&&((l=n.vars)!=null?l:n).palette[i].contrastText}).map(i=>({props:{color:i},style:{backgroundColor:(n.vars||n).palette[i].main,color:(n.vars||n).palette[i].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zw,height:Zw*2,minWidth:Zw*2,padding:0}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="right"&&i.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="top"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:i})=>i.anchorOrigin.vertical==="bottom"&&i.anchorOrigin.horizontal==="left"&&i.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:n.transitions.create("transform",{easing:n.transitions.easing.easeInOut,duration:n.transitions.duration.leavingScreen})}}]}}),s3=x.forwardRef(function(o,i){var s,l,c,d,f,p;const m=Zt({props:o,name:"MuiBadge"}),{anchorOrigin:g={vertical:"top",horizontal:"right"},className:v,component:w,components:A={},componentsProps:k={},children:C,overlap:M="rectangular",color:S="default",invisible:I=!1,max:E=99,badgeContent:j,slots:B,slotProps:D,showZero:R=!1,variant:N="standard"}=m,U=Qe(m,ree),{badgeContent:L,invisible:_,max:V,displayValue:$}=eee({max:E,invisible:I,badgeContent:j,showZero:R}),z=X6({anchorOrigin:g,color:S,overlap:M,variant:N,badgeContent:j}),Q=_||L==null&&N!=="dot",{color:G=S,overlap:F=M,anchorOrigin:q=g,variant:W=N}=Q?z:m,X=W!=="dot"?$:void 0,te=P({},m,{badgeContent:L,invisible:Q,max:V,displayValue:X,showZero:R,anchorOrigin:q,color:G,overlap:F,variant:W}),se=nee(te),de=(s=(l=B==null?void 0:B.root)!=null?l:A.Root)!=null?s:oee,ee=(c=(d=B==null?void 0:B.badge)!=null?d:A.Badge)!=null?c:iee,fe=(f=D==null?void 0:D.root)!=null?f:k.root,he=(p=D==null?void 0:D.badge)!=null?p:k.badge,Ie=zl({elementType:de,externalSlotProps:fe,externalForwardedProps:U,additionalProps:{ref:i,as:w},ownerState:te,className:nt(fe==null?void 0:fe.className,se.root,v)}),ve=zl({elementType:ee,externalSlotProps:he,ownerState:te,className:nt(se.badge,he==null?void 0:he.className)});return b.jsxs(de,P({},Ie,{children:[C,b.jsx(ee,P({},ve,{children:X}))]}))});function aee(n){return Kt("MuiButton",n)}const Eg=Yt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),AB=x.createContext({}),CB=x.createContext(void 0),see=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lee=n=>{const{color:o,disableElevation:i,fullWidth:s,size:l,variant:c,classes:d}=n,f={root:["root",c,`${c}${Ke(o)}`,`size${Ke(l)}`,`${c}Size${Ke(l)}`,`color${Ke(o)}`,i&&"disableElevation",s&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ke(l)}`],endIcon:["icon","endIcon",`iconSize${Ke(l)}`]},p=Bt(f,aee,d);return P({},d,p)},kB=n=>P({},n.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},n.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},n.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),cee=_e(Hc,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiButton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`${i.variant}${Ke(i.color)}`],o[`size${Ke(i.size)}`],o[`${i.variant}Size${Ke(i.size)}`],i.color==="inherit"&&o.colorInherit,i.disableElevation&&o.disableElevation,i.fullWidth&&o.fullWidth]}})(({theme:n,ownerState:o})=>{var i,s;const l=n.palette.mode==="light"?n.palette.grey[300]:n.palette.grey[800],c=n.palette.mode==="light"?n.palette.grey.A100:n.palette.grey[700];return P({},n.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create(["background-color","box-shadow","border-color","color"],{duration:n.transitions.duration.short}),"&:hover":P({textDecoration:"none",backgroundColor:n.vars?`rgba(${n.vars.palette.text.primaryChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="text"&&o.color!=="inherit"&&{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="outlined"&&o.color!=="inherit"&&{border:`1px solid ${(n.vars||n).palette[o.color].main}`,backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="contained"&&{backgroundColor:n.vars?n.vars.palette.Button.inheritContainedHoverBg:c,boxShadow:(n.vars||n).shadows[4],"@media (hover: none)":{boxShadow:(n.vars||n).shadows[2],backgroundColor:(n.vars||n).palette.grey[300]}},o.variant==="contained"&&o.color!=="inherit"&&{backgroundColor:(n.vars||n).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[o.color].main}}),"&:active":P({},o.variant==="contained"&&{boxShadow:(n.vars||n).shadows[8]}),[`&.${Eg.focusVisible}`]:P({},o.variant==="contained"&&{boxShadow:(n.vars||n).shadows[6]}),[`&.${Eg.disabled}`]:P({color:(n.vars||n).palette.action.disabled},o.variant==="outlined"&&{border:`1px solid ${(n.vars||n).palette.action.disabledBackground}`},o.variant==="contained"&&{color:(n.vars||n).palette.action.disabled,boxShadow:(n.vars||n).shadows[0],backgroundColor:(n.vars||n).palette.action.disabledBackground})},o.variant==="text"&&{padding:"6px 8px"},o.variant==="text"&&o.color!=="inherit"&&{color:(n.vars||n).palette[o.color].main},o.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},o.variant==="outlined"&&o.color!=="inherit"&&{color:(n.vars||n).palette[o.color].main,border:n.vars?`1px solid rgba(${n.vars.palette[o.color].mainChannel} / 0.5)`:`1px solid ${Lr(n.palette[o.color].main,.5)}`},o.variant==="contained"&&{color:n.vars?n.vars.palette.text.primary:(i=(s=n.palette).getContrastText)==null?void 0:i.call(s,n.palette.grey[300]),backgroundColor:n.vars?n.vars.palette.Button.inheritContainedBg:l,boxShadow:(n.vars||n).shadows[2]},o.variant==="contained"&&o.color!=="inherit"&&{color:(n.vars||n).palette[o.color].contrastText,backgroundColor:(n.vars||n).palette[o.color].main},o.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},o.size==="small"&&o.variant==="text"&&{padding:"4px 5px",fontSize:n.typography.pxToRem(13)},o.size==="large"&&o.variant==="text"&&{padding:"8px 11px",fontSize:n.typography.pxToRem(15)},o.size==="small"&&o.variant==="outlined"&&{padding:"3px 9px",fontSize:n.typography.pxToRem(13)},o.size==="large"&&o.variant==="outlined"&&{padding:"7px 21px",fontSize:n.typography.pxToRem(15)},o.size==="small"&&o.variant==="contained"&&{padding:"4px 10px",fontSize:n.typography.pxToRem(13)},o.size==="large"&&o.variant==="contained"&&{padding:"8px 22px",fontSize:n.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})},({ownerState:n})=>n.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Eg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eg.disabled}`]:{boxShadow:"none"}}),uee=_e("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.startIcon,o[`iconSize${Ke(i.size)}`]]}})(({ownerState:n})=>P({display:"inherit",marginRight:8,marginLeft:-4},n.size==="small"&&{marginLeft:-2},kB(n))),dee=_e("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.endIcon,o[`iconSize${Ke(i.size)}`]]}})(({ownerState:n})=>P({display:"inherit",marginRight:-4,marginLeft:8},n.size==="small"&&{marginRight:-2},kB(n))),oo=x.forwardRef(function(o,i){const s=x.useContext(AB),l=x.useContext(CB),c=mh(s,o),d=Zt({props:c,name:"MuiButton"}),{children:f,color:p="primary",component:m="button",className:g,disabled:v=!1,disableElevation:w=!1,disableFocusRipple:A=!1,endIcon:k,focusVisibleClassName:C,fullWidth:M=!1,size:S="medium",startIcon:I,type:E,variant:j="text"}=d,B=Qe(d,see),D=P({},d,{color:p,component:m,disabled:v,disableElevation:w,disableFocusRipple:A,fullWidth:M,size:S,type:E,variant:j}),R=lee(D),N=I&&b.jsx(uee,{className:R.startIcon,ownerState:D,children:I}),U=k&&b.jsx(dee,{className:R.endIcon,ownerState:D,children:k}),L=l||"";return b.jsxs(cee,P({ownerState:D,className:nt(s.className,R.root,g,L),component:m,disabled:v,focusRipple:!A,focusVisibleClassName:nt(R.focusVisible,C),ref:i,type:E},B,{classes:R,children:[N,f,U]}))});function fee(n){return Kt("MuiButtonGroup",n)}const ds=Yt("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),pee=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],hee=(n,o)=>{const{ownerState:i}=n;return[{[`& .${ds.grouped}`]:o.grouped},{[`& .${ds.grouped}`]:o[`grouped${Ke(i.orientation)}`]},{[`& .${ds.grouped}`]:o[`grouped${Ke(i.variant)}`]},{[`& .${ds.grouped}`]:o[`grouped${Ke(i.variant)}${Ke(i.orientation)}`]},{[`& .${ds.grouped}`]:o[`grouped${Ke(i.variant)}${Ke(i.color)}`]},{[`& .${ds.firstButton}`]:o.firstButton},{[`& .${ds.lastButton}`]:o.lastButton},{[`& .${ds.middleButton}`]:o.middleButton},o.root,o[i.variant],i.disableElevation===!0&&o.disableElevation,i.fullWidth&&o.fullWidth,i.orientation==="vertical"&&o.vertical]},mee=n=>{const{classes:o,color:i,disabled:s,disableElevation:l,fullWidth:c,orientation:d,variant:f}=n,p={root:["root",f,d==="vertical"&&"vertical",c&&"fullWidth",l&&"disableElevation"],grouped:["grouped",`grouped${Ke(d)}`,`grouped${Ke(f)}`,`grouped${Ke(f)}${Ke(d)}`,`grouped${Ke(f)}${Ke(i)}`,s&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Bt(p,fee,o)},gee=_e("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:hee})(({theme:n,ownerState:o})=>P({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},o.variant==="contained"&&{boxShadow:(n.vars||n).shadows[2]},o.disableElevation&&{boxShadow:"none"},o.fullWidth&&{width:"100%"},o.orientation==="vertical"&&{flexDirection:"column"},{[`& .${ds.grouped}`]:P({minWidth:40,"&:hover":P({},o.variant==="contained"&&{boxShadow:"none"})},o.variant==="contained"&&{boxShadow:"none"}),[`& .${ds.firstButton},& .${ds.middleButton}`]:P({},o.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},o.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},o.variant==="text"&&o.orientation==="horizontal"&&{borderRight:n.vars?`1px solid rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${ds.disabled}`]:{borderRight:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="text"&&o.orientation==="vertical"&&{borderBottom:n.vars?`1px solid rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${ds.disabled}`]:{borderBottom:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="text"&&o.color!=="inherit"&&{borderColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.5)`:Lr(n.palette[o.color].main,.5)},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"transparent"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"transparent"},o.variant==="contained"&&o.orientation==="horizontal"&&{borderRight:`1px solid ${(n.vars||n).palette.grey[400]}`,[`&.${ds.disabled}`]:{borderRight:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="contained"&&o.orientation==="vertical"&&{borderBottom:`1px solid ${(n.vars||n).palette.grey[400]}`,[`&.${ds.disabled}`]:{borderBottom:`1px solid ${(n.vars||n).palette.action.disabled}`}},o.variant==="contained"&&o.color!=="inherit"&&{borderColor:(n.vars||n).palette[o.color].dark},{"&:hover":P({},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"currentColor"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${ds.lastButton},& .${ds.middleButton}`]:P({},o.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},o.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},o.variant==="outlined"&&o.orientation==="horizontal"&&{marginLeft:-1},o.variant==="outlined"&&o.orientation==="vertical"&&{marginTop:-1})})),vee=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiButtonGroup"}),{children:l,className:c,color:d="primary",component:f="div",disabled:p=!1,disableElevation:m=!1,disableFocusRipple:g=!1,disableRipple:v=!1,fullWidth:w=!1,orientation:A="horizontal",size:k="medium",variant:C="outlined"}=s,M=Qe(s,pee),S=P({},s,{color:d,component:f,disabled:p,disableElevation:m,disableFocusRipple:g,disableRipple:v,fullWidth:w,orientation:A,size:k,variant:C}),I=mee(S),E=x.useMemo(()=>({className:I.grouped,color:d,disabled:p,disableElevation:m,disableFocusRipple:g,disableRipple:v,fullWidth:w,size:k,variant:C}),[d,p,m,g,v,w,k,C,I.grouped]),j=MU(l),B=j.length,D=R=>{const N=R===0,U=R===B-1;return N&&U?"":N?I.firstButton:U?I.lastButton:I.middleButton};return b.jsx(gee,P({as:f,role:"group",className:nt(I.root,c),ref:i,ownerState:S},M,{children:b.jsx(AB.Provider,{value:E,children:j.map((R,N)=>b.jsx(CB.Provider,{value:D(N),children:R},N))})}))});function bee(n){return Kt("PrivateSwitchBase",n)}Yt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const wee=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],xee=n=>{const{classes:o,checked:i,disabled:s,edge:l}=n,c={root:["root",i&&"checked",s&&"disabled",l&&`edge${Ke(l)}`],input:["input"]};return Bt(c,bee,o)},yee=_e(Hc)(({ownerState:n})=>P({padding:9,borderRadius:"50%"},n.edge==="start"&&{marginLeft:n.size==="small"?-3:-12},n.edge==="end"&&{marginRight:n.size==="small"?-3:-12})),Aee=_e("input",{shouldForwardProp:ts})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),CA=x.forwardRef(function(o,i){const{autoFocus:s,checked:l,checkedIcon:c,className:d,defaultChecked:f,disabled:p,disableFocusRipple:m=!1,edge:g=!1,icon:v,id:w,inputProps:A,inputRef:k,name:C,onBlur:M,onChange:S,onFocus:I,readOnly:E,required:j=!1,tabIndex:B,type:D,value:R}=o,N=Qe(o,wee),[U,L]=jc({controlled:l,default:!!f,name:"SwitchBase",state:"checked"}),_=Vc(),V=W=>{I&&I(W),_&&_.onFocus&&_.onFocus(W)},$=W=>{M&&M(W),_&&_.onBlur&&_.onBlur(W)},z=W=>{if(W.nativeEvent.defaultPrevented)return;const X=W.target.checked;L(X),S&&S(W,X)};let Q=p;_&&typeof Q>"u"&&(Q=_.disabled);const G=D==="checkbox"||D==="radio",F=P({},o,{checked:U,disabled:Q,disableFocusRipple:m,edge:g}),q=xee(F);return b.jsxs(yee,P({component:"span",className:nt(q.root,d),centerRipple:!0,focusRipple:!m,disabled:Q,tabIndex:null,role:void 0,onFocus:V,onBlur:$,ownerState:F,ref:i},N,{children:[b.jsx(Aee,P({autoFocus:s,checked:l,defaultChecked:f,className:q.input,disabled:Q,id:G?w:void 0,name:C,onChange:z,readOnly:E,ref:k,required:j,ownerState:F,tabIndex:B,type:D},D==="checkbox"&&R===void 0?{}:{value:R},A)),U?c:v]}))}),Cee=_r(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),kee=_r(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),See=_r(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Iee(n){return Kt("MuiCheckbox",n)}const ex=Yt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Eee=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Mee=n=>{const{classes:o,indeterminate:i,color:s,size:l}=n,c={root:["root",i&&"indeterminate",`color${Ke(s)}`,`size${Ke(l)}`]},d=Bt(c,Iee,o);return P({},o,d)},Pee=_e(CA,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.indeterminate&&o.indeterminate,o[`size${Ke(i.size)}`],i.color!=="default"&&o[`color${Ke(i.color)}`]]}})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?`rgba(${o.color==="default"?n.vars.palette.action.activeChannel:n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(o.color==="default"?n.palette.action.active:n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${ex.checked}, &.${ex.indeterminate}`]:{color:(n.vars||n).palette[o.color].main},[`&.${ex.disabled}`]:{color:(n.vars||n).palette.action.disabled}})),jee=b.jsx(kee,{}),Oee=b.jsx(Cee,{}),Ree=b.jsx(See,{}),cp=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiCheckbox"}),{checkedIcon:d=jee,color:f="primary",icon:p=Oee,indeterminate:m=!1,indeterminateIcon:g=Ree,inputProps:v,size:w="medium",className:A}=c,k=Qe(c,Eee),C=m?g:p,M=m?g:d,S=P({},c,{color:f,indeterminate:m,size:w}),I=Mee(S);return b.jsx(Pee,P({type:"checkbox",inputProps:P({"data-indeterminate":m},v),icon:x.cloneElement(C,{fontSize:(s=C.props.fontSize)!=null?s:w}),checkedIcon:x.cloneElement(M,{fontSize:(l=M.props.fontSize)!=null?l:w}),ownerState:S,ref:i,className:nt(I.root,A)},k,{classes:I}))});function Bee(n){return Kt("MuiCircularProgress",n)}Yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Tee=["className","color","disableShrink","size","style","thickness","value","variant"];let Lb=n=>n,vI,bI,wI,xI;const $u=44,Fee=lc(vI||(vI=Lb` 0% { transform: rotate(0deg); } @@ -239,7 +239,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 100% { transform: rotate(360deg); } -`)),Cee=cc(cI||(cI=Nb` +`)),Dee=lc(bI||(bI=Lb` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -254,11 +254,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),kee=n=>{const{classes:o,variant:i,color:s,disableShrink:l}=n,c={root:["root",i,`color${Ke(s)}`],svg:["svg"],circle:["circle",`circle${Ke(i)}`,l&&"circleDisableShrink"]};return Rt(c,xee,o)},See=_e("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`color${Ke(i.color)}`]]}})(({ownerState:n,theme:o})=>P({display:"inline-block"},n.variant==="determinate"&&{transition:o.transitions.create("transform")},n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].main}),({ownerState:n})=>n.variant==="indeterminate"&&wu(uI||(uI=Nb` +`)),Nee=n=>{const{classes:o,variant:i,color:s,disableShrink:l}=n,c={root:["root",i,`color${Ke(s)}`],svg:["svg"],circle:["circle",`circle${Ke(i)}`,l&&"circleDisableShrink"]};return Bt(c,Bee,o)},$ee=_e("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`color${Ke(i.color)}`]]}})(({ownerState:n,theme:o})=>P({display:"inline-block"},n.variant==="determinate"&&{transition:o.transitions.create("transform")},n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].main}),({ownerState:n})=>n.variant==="indeterminate"&&bu(wI||(wI=Lb` animation: ${0} 1.4s linear infinite; - `),Aee)),Iee=_e("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(n,o)=>o.svg})({display:"block"}),Eee=_e("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.circle,o[`circle${Ke(i.variant)}`],i.disableShrink&&o.circleDisableShrink]}})(({ownerState:n,theme:o})=>P({stroke:"currentColor"},n.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},n.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:n})=>n.variant==="indeterminate"&&!n.disableShrink&&wu(dI||(dI=Nb` + `),Fee)),Lee=_e("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(n,o)=>o.svg})({display:"block"}),zee=_e("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.circle,o[`circle${Ke(i.variant)}`],i.disableShrink&&o.circleDisableShrink]}})(({ownerState:n,theme:o})=>P({stroke:"currentColor"},n.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},n.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:n})=>n.variant==="indeterminate"&&!n.disableShrink&&bu(xI||(xI=Lb` animation: ${0} 1.4s ease-in-out infinite; - `),Cee)),AA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiCircularProgress"}),{className:l,color:c="primary",disableShrink:d=!1,size:f=40,style:p,thickness:m=3.6,value:g=0,variant:v="indeterminate"}=s,w=Qe(s,yee),A=P({},s,{color:c,disableShrink:d,size:f,thickness:m,value:g,variant:v}),k=kee(A),C={},M={},S={};if(v==="determinate"){const I=2*Math.PI*(($u-m)/2);C.strokeDasharray=I.toFixed(3),S["aria-valuenow"]=Math.round(g),C.strokeDashoffset=`${((100-g)/100*I).toFixed(3)}px`,M.transform="rotate(-90deg)"}return b.jsx(See,P({className:nt(k.root,l),style:P({width:f,height:f},M,p),ownerState:A,ref:i,role:"progressbar"},S,w,{children:b.jsx(Iee,{className:k.svg,ownerState:A,viewBox:`${$u/2} ${$u/2} ${$u} ${$u}`,children:b.jsx(Eee,{className:k.circle,style:C,ownerState:A,cx:$u,cy:$u,r:($u-m)/2,fill:"none",strokeWidth:m})})}))});function fI(n){return n.substring(2).toLowerCase()}function Mee(n,o){return o.documentElement.clientWidth(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);const g=Xn(o.ref,f),v=ln(k=>{const C=m.current;m.current=!1;const M=ei(f.current);if(!p.current||!f.current||"clientX"in k&&Mee(k,M))return;if(d.current){d.current=!1;return}let S;k.composedPath?S=k.composedPath().indexOf(f.current)>-1:S=!M.documentElement.contains(k.target)||f.current.contains(k.target),!S&&(i||!C)&&l(k)}),w=k=>C=>{m.current=!0;const M=o.props[k];M&&M(C)},A={ref:g};return c!==!1&&(A[c]=w(c)),x.useEffect(()=>{if(c!==!1){const k=fI(c),C=ei(f.current),M=()=>{d.current=!0};return C.addEventListener(k,v),C.addEventListener("touchmove",M),()=>{C.removeEventListener(k,v),C.removeEventListener("touchmove",M)}}},[v,c]),s!==!1&&(A[s]=w(s)),x.useEffect(()=>{if(s!==!1){const k=fI(s),C=ei(f.current);return C.addEventListener(k,v),()=>{C.removeEventListener(k,v)}}},[v,s]),b.jsx(x.Fragment,{children:x.cloneElement(o,A)})}const CA=MU({createStyledComponent:_e("div",{name:"MuiContainer",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`maxWidth${Ke(String(i.maxWidth))}`],i.fixed&&o.fixed,i.disableGutters&&o.disableGutters]}}),useThemeProps:n=>Zt({props:n,name:"MuiContainer"})});function Pee(n){const o=ei(n);return o.body===n?zl(n).innerWidth>o.documentElement.clientWidth:n.scrollHeight>n.clientHeight}function fh(n,o){o?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden")}function pI(n){return parseInt(zl(n).getComputedStyle(n).paddingRight,10)||0}function jee(n){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(n.tagName)!==-1,s=n.tagName==="INPUT"&&n.getAttribute("type")==="hidden";return i||s}function hI(n,o,i,s,l){const c=[o,i,...s];[].forEach.call(n.children,d=>{const f=c.indexOf(d)===-1,p=!jee(d);f&&p&&fh(d,l)})}function Zw(n,o){let i=-1;return n.some((s,l)=>o(s)?(i=l,!0):!1),i}function Oee(n,o){const i=[],s=n.container;if(!o.disableScrollLock){if(Pee(s)){const d=vP(ei(s));i.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${pI(s)+d}px`;const f=ei(s).querySelectorAll(".mui-fixed");[].forEach.call(f,p=>{i.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${pI(p)+d}px`})}let c;if(s.parentNode instanceof DocumentFragment)c=ei(s).body;else{const d=s.parentElement,f=zl(s);c=(d==null?void 0:d.nodeName)==="HTML"&&f.getComputedStyle(d).overflowY==="scroll"?d:s}i.push({value:c.style.overflow,property:"overflow",el:c},{value:c.style.overflowX,property:"overflow-x",el:c},{value:c.style.overflowY,property:"overflow-y",el:c}),c.style.overflow="hidden"}return()=>{i.forEach(({value:c,el:d,property:f})=>{c?d.style.setProperty(f,c):d.style.removeProperty(f)})}}function Ree(n){const o=[];return[].forEach.call(n.children,i=>{i.getAttribute("aria-hidden")==="true"&&o.push(i)}),o}class Bee{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(o,i){let s=this.modals.indexOf(o);if(s!==-1)return s;s=this.modals.length,this.modals.push(o),o.modalRef&&fh(o.modalRef,!1);const l=Ree(i);hI(i,o.mount,o.modalRef,l,!0);const c=Zw(this.containers,d=>d.container===i);return c!==-1?(this.containers[c].modals.push(o),s):(this.containers.push({modals:[o],container:i,restore:null,hiddenSiblings:l}),s)}mount(o,i){const s=Zw(this.containers,c=>c.modals.indexOf(o)!==-1),l=this.containers[s];l.restore||(l.restore=Oee(l,i))}remove(o,i=!0){const s=this.modals.indexOf(o);if(s===-1)return s;const l=Zw(this.containers,d=>d.modals.indexOf(o)!==-1),c=this.containers[l];if(c.modals.splice(c.modals.indexOf(o),1),this.modals.splice(s,1),c.modals.length===0)c.restore&&c.restore(),o.modalRef&&fh(o.modalRef,i),hI(c.container,o.mount,o.modalRef,c.hiddenSiblings,!1),this.containers.splice(l,1);else{const d=c.modals[c.modals.length-1];d.modalRef&&fh(d.modalRef,!1)}return s}isTopModal(o){return this.modals.length>0&&this.modals[this.modals.length-1]===o}}const Tee=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fee(n){const o=parseInt(n.getAttribute("tabindex")||"",10);return Number.isNaN(o)?n.contentEditable==="true"||(n.nodeName==="AUDIO"||n.nodeName==="VIDEO"||n.nodeName==="DETAILS")&&n.getAttribute("tabindex")===null?0:n.tabIndex:o}function Dee(n){if(n.tagName!=="INPUT"||n.type!=="radio"||!n.name)return!1;const o=s=>n.ownerDocument.querySelector(`input[type="radio"]${s}`);let i=o(`[name="${n.name}"]:checked`);return i||(i=o(`[name="${n.name}"]`)),i!==n}function Nee(n){return!(n.disabled||n.tagName==="INPUT"&&n.type==="hidden"||Dee(n))}function $ee(n){const o=[],i=[];return Array.from(n.querySelectorAll(Tee)).forEach((s,l)=>{const c=Fee(s);c===-1||!Nee(s)||(c===0?o.push(s):i.push({documentOrder:l,tabIndex:c,node:s}))}),i.sort((s,l)=>s.tabIndex===l.tabIndex?s.documentOrder-l.documentOrder:s.tabIndex-l.tabIndex).map(s=>s.node).concat(o)}function Lee(){return!0}function wB(n){const{children:o,disableAutoFocus:i=!1,disableEnforceFocus:s=!1,disableRestoreFocus:l=!1,getTabbable:c=$ee,isEnabled:d=Lee,open:f}=n,p=x.useRef(!1),m=x.useRef(null),g=x.useRef(null),v=x.useRef(null),w=x.useRef(null),A=x.useRef(!1),k=x.useRef(null),C=Xn(o.ref,k),M=x.useRef(null);x.useEffect(()=>{!f||!k.current||(A.current=!i)},[i,f]),x.useEffect(()=>{if(!f||!k.current)return;const E=ei(k.current);return k.current.contains(E.activeElement)||(k.current.hasAttribute("tabIndex")||k.current.setAttribute("tabIndex","-1"),A.current&&k.current.focus()),()=>{l||(v.current&&v.current.focus&&(p.current=!0,v.current.focus()),v.current=null)}},[f]),x.useEffect(()=>{if(!f||!k.current)return;const E=ei(k.current),j=O=>{M.current=O,!(s||!d()||O.key!=="Tab")&&E.activeElement===k.current&&O.shiftKey&&(p.current=!0,g.current&&g.current.focus())},B=()=>{const O=k.current;if(O===null)return;if(!E.hasFocus()||!d()||p.current){p.current=!1;return}if(O.contains(E.activeElement)||s&&E.activeElement!==m.current&&E.activeElement!==g.current)return;if(E.activeElement!==w.current)w.current=null;else if(w.current!==null)return;if(!A.current)return;let N=[];if((E.activeElement===m.current||E.activeElement===g.current)&&(N=c(k.current)),N.length>0){var H,L;const _=!!((H=M.current)!=null&&H.shiftKey&&((L=M.current)==null?void 0:L.key)==="Tab"),V=N[0],$=N[N.length-1];typeof V!="string"&&typeof $!="string"&&(_?$.focus():V.focus())}else O.focus()};E.addEventListener("focusin",B),E.addEventListener("keydown",j,!0);const F=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&B()},50);return()=>{clearInterval(F),E.removeEventListener("focusin",B),E.removeEventListener("keydown",j,!0)}},[i,s,l,d,f,c]);const S=E=>{v.current===null&&(v.current=E.relatedTarget),A.current=!0,w.current=E.target;const j=o.props.onFocus;j&&j(E)},I=E=>{v.current===null&&(v.current=E.relatedTarget),A.current=!0};return b.jsxs(x.Fragment,{children:[b.jsx("div",{tabIndex:f?0:-1,onFocus:I,ref:m,"data-testid":"sentinelStart"}),x.cloneElement(o,{ref:C,onFocus:S}),b.jsx("div",{tabIndex:f?0:-1,onFocus:I,ref:g,"data-testid":"sentinelEnd"})]})}function zee(n){return typeof n=="function"?n():n}function Hee(n){return n?n.props.hasOwnProperty("in"):!1}const Uee=new Bee;function Gee(n){const{container:o,disableEscapeKeyDown:i=!1,disableScrollLock:s=!1,manager:l=Uee,closeAfterTransition:c=!1,onTransitionEnter:d,onTransitionExited:f,children:p,onClose:m,open:g,rootRef:v}=n,w=x.useRef({}),A=x.useRef(null),k=x.useRef(null),C=Xn(k,v),[M,S]=x.useState(!g),I=Hee(p);let E=!0;(n["aria-hidden"]==="false"||n["aria-hidden"]===!1)&&(E=!1);const j=()=>ei(A.current),B=()=>(w.current.modalRef=k.current,w.current.mount=A.current,w.current),F=()=>{l.mount(B(),{disableScrollLock:s}),k.current&&(k.current.scrollTop=0)},O=ln(()=>{const G=zee(o)||j().body;l.add(B(),G),k.current&&F()}),N=x.useCallback(()=>l.isTopModal(B()),[l]),H=ln(G=>{A.current=G,G&&(g&&N()?F():k.current&&fh(k.current,E))}),L=x.useCallback(()=>{l.remove(B(),E)},[E,l]);x.useEffect(()=>()=>{L()},[L]),x.useEffect(()=>{g?O():(!I||!c)&&L()},[g,L,I,c,O]);const _=G=>D=>{var q;(q=G.onKeyDown)==null||q.call(G,D),!(D.key!=="Escape"||D.which===229||!N())&&(i||(D.stopPropagation(),m&&m(D,"escapeKeyDown")))},V=G=>D=>{var q;(q=G.onClick)==null||q.call(G,D),D.target===D.currentTarget&&m&&m(D,"backdropClick")};return{getRootProps:(G={})=>{const D=wP(n);delete D.onTransitionEnter,delete D.onTransitionExited;const q=P({},D,G);return P({role:"presentation"},q,{onKeyDown:_(q),ref:C})},getBackdropProps:(G={})=>{const D=G;return P({"aria-hidden":!0},D,{onClick:V(D),open:g})},getTransitionProps:()=>{const G=()=>{S(!1),d&&d()},D=()=>{S(!0),f&&f(),c&&L()};return{onEnter:yv(G,p==null?void 0:p.props.onEnter),onExited:yv(D,p==null?void 0:p.props.onExited)}},rootRef:C,portalRef:H,isTopModal:N,exited:M,hasTransition:I}}function Vee(n){return Kt("MuiModal",n)}Yt("MuiModal",["root","hidden","backdrop"]);const Qee=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wee=n=>{const{open:o,exited:i,classes:s}=n;return Rt({root:["root",!o&&i&&"hidden"],backdrop:["backdrop"]},Vee,s)},qee=_e("div",{name:"MuiModal",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.open&&i.exited&&o.hidden]}})(({theme:n,ownerState:o})=>P({position:"fixed",zIndex:(n.vars||n).zIndex.modal,right:0,bottom:0,top:0,left:0},!o.open&&o.exited&&{visibility:"hidden"})),_ee=_e(mB,{name:"MuiModal",slot:"Backdrop",overridesResolver:(n,o)=>o.backdrop})({zIndex:-1}),Op=x.forwardRef(function(o,i){var s,l,c,d,f,p;const m=Zt({name:"MuiModal",props:o}),{BackdropComponent:g=_ee,BackdropProps:v,className:w,closeAfterTransition:A=!1,children:k,container:C,component:M,components:S={},componentsProps:I={},disableAutoFocus:E=!1,disableEnforceFocus:j=!1,disableEscapeKeyDown:B=!1,disablePortal:F=!1,disableRestoreFocus:O=!1,disableScrollLock:N=!1,hideBackdrop:H=!1,keepMounted:L=!1,onBackdropClick:_,open:V,slotProps:$,slots:z}=m,Q=Qe(m,Qee),G=P({},m,{closeAfterTransition:A,disableAutoFocus:E,disableEnforceFocus:j,disableEscapeKeyDown:B,disablePortal:F,disableRestoreFocus:O,disableScrollLock:N,hideBackdrop:H,keepMounted:L}),{getRootProps:D,getBackdropProps:q,getTransitionProps:W,portalRef:X,isTopModal:te,exited:se,hasTransition:de}=Gee(P({},G,{rootRef:i})),ee=P({},G,{exited:se}),fe=Wee(ee),he={};if(k.props.tabIndex===void 0&&(he.tabIndex="-1"),de){const{onEnter:Ve,onExited:at}=W();he.onEnter=Ve,he.onExited=at}const Ie=(s=(l=z==null?void 0:z.root)!=null?l:S.Root)!=null?s:qee,ve=(c=(d=z==null?void 0:z.backdrop)!=null?d:S.Backdrop)!=null?c:g,be=(f=$==null?void 0:$.root)!=null?f:I.root,ke=(p=$==null?void 0:$.backdrop)!=null?p:I.backdrop,ze=Hl({elementType:Ie,externalSlotProps:be,externalForwardedProps:Q,getSlotProps:D,additionalProps:{ref:i,as:M},ownerState:ee,className:nt(w,be==null?void 0:be.className,fe==null?void 0:fe.root,!ee.open&&ee.exited&&(fe==null?void 0:fe.hidden))}),Ge=Hl({elementType:ve,externalSlotProps:ke,additionalProps:v,getSlotProps:Ve=>q(P({},Ve,{onClick:at=>{_&&_(at),Ve!=null&&Ve.onClick&&Ve.onClick(at)}})),className:nt(ke==null?void 0:ke.className,v==null?void 0:v.className,fe==null?void 0:fe.backdrop),ownerState:ee});return!L&&!V&&(!de||se)?null:b.jsx(dB,{ref:X,container:C,disablePortal:F,children:b.jsxs(Ie,P({},ze,{children:[!H&&g?b.jsx(ve,P({},Ge)):null,b.jsx(wB,{disableEnforceFocus:j,disableAutoFocus:E,disableRestoreFocus:O,isEnabled:te,open:V,children:x.cloneElement(k,he)})]}))})});function Yee(n){return Kt("MuiDialog",n)}const ex=Yt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xB=x.createContext({}),Kee=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Xee=_e(mB,{name:"MuiDialog",slot:"Backdrop",overrides:(n,o)=>o.backdrop})({zIndex:-1}),Jee=n=>{const{classes:o,scroll:i,maxWidth:s,fullWidth:l,fullScreen:c}=n,d={root:["root"],container:["container",`scroll${Ke(i)}`],paper:["paper",`paperScroll${Ke(i)}`,`paperWidth${Ke(String(s))}`,l&&"paperFullWidth",c&&"paperFullScreen"]};return Rt(d,Yee,o)},Zee=_e(Op,{name:"MuiDialog",slot:"Root",overridesResolver:(n,o)=>o.root})({"@media print":{position:"absolute !important"}}),ete=_e("div",{name:"MuiDialog",slot:"Container",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.container,o[`scroll${Ke(i.scroll)}`]]}})(({ownerState:n})=>P({height:"100%","@media print":{height:"auto"},outline:0},n.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},n.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),tte=_e(yl,{name:"MuiDialog",slot:"Paper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.paper,o[`scrollPaper${Ke(i.scroll)}`],o[`paperWidth${Ke(String(i.maxWidth))}`],i.fullWidth&&o.paperFullWidth,i.fullScreen&&o.paperFullScreen]}})(({theme:n,ownerState:o})=>P({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},o.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},o.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!o.maxWidth&&{maxWidth:"calc(100% - 64px)"},o.maxWidth==="xs"&&{maxWidth:n.breakpoints.unit==="px"?Math.max(n.breakpoints.values.xs,444):`max(${n.breakpoints.values.xs}${n.breakpoints.unit}, 444px)`,[`&.${ex.paperScrollBody}`]:{[n.breakpoints.down(Math.max(n.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},o.maxWidth&&o.maxWidth!=="xs"&&{maxWidth:`${n.breakpoints.values[o.maxWidth]}${n.breakpoints.unit}`,[`&.${ex.paperScrollBody}`]:{[n.breakpoints.down(n.breakpoints.values[o.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},o.fullWidth&&{width:"calc(100% - 64px)"},o.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ex.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),fu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialog"}),l=ka(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":d,"aria-labelledby":f,BackdropComponent:p,BackdropProps:m,children:g,className:v,disableEscapeKeyDown:w=!1,fullScreen:A=!1,fullWidth:k=!1,maxWidth:C="sm",onBackdropClick:M,onClick:S,onClose:I,open:E,PaperComponent:j=yl,PaperProps:B={},scroll:F="paper",TransitionComponent:O=hB,transitionDuration:N=c,TransitionProps:H}=s,L=Qe(s,Kee),_=P({},s,{disableEscapeKeyDown:w,fullScreen:A,fullWidth:k,maxWidth:C,scroll:F}),V=Jee(_),$=x.useRef(),z=q=>{$.current=q.target===q.currentTarget},Q=q=>{S&&S(q),$.current&&($.current=null,M&&M(q),I&&I(q,"backdropClick"))},G=Ro(f),D=x.useMemo(()=>({titleId:G}),[G]);return b.jsx(Zee,P({className:nt(V.root,v),closeAfterTransition:!0,components:{Backdrop:Xee},componentsProps:{backdrop:P({transitionDuration:N,as:p},m)},disableEscapeKeyDown:w,onClose:I,open:E,ref:i,onClick:Q,ownerState:_},L,{children:b.jsx(O,P({appear:!0,in:E,timeout:N,role:"presentation"},H,{children:b.jsx(ete,{className:nt(V.container),onMouseDown:z,ownerState:_,children:b.jsx(tte,P({as:j,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":G},B,{className:nt(V.paper,B.className),ownerState:_,children:b.jsx(xB.Provider,{value:D,children:g})}))})}))}))});function rte(n){return Kt("MuiDialogActions",n)}Yt("MuiDialogActions",["root","spacing"]);const nte=["className","disableSpacing"],ote=n=>{const{classes:o,disableSpacing:i}=n;return Rt({root:["root",!i&&"spacing"]},rte,o)},ite=_e("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.disableSpacing&&o.spacing]}})(({ownerState:n})=>P({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!n.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Lc=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogActions"}),{className:l,disableSpacing:c=!1}=s,d=Qe(s,nte),f=P({},s,{disableSpacing:c}),p=ote(f);return b.jsx(ite,P({className:nt(p.root,l),ownerState:f,ref:i},d))});function ate(n){return Kt("MuiDialogContent",n)}Yt("MuiDialogContent",["root","dividers"]);function ste(n){return Kt("MuiDialogTitle",n)}const lte=Yt("MuiDialogTitle",["root"]),cte=["className","dividers"],ute=n=>{const{classes:o,dividers:i}=n;return Rt({root:["root",i&&"dividers"]},ate,o)},dte=_e("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.dividers&&o.dividers]}})(({theme:n,ownerState:o})=>P({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},o.dividers?{padding:"16px 24px",borderTop:`1px solid ${(n.vars||n).palette.divider}`,borderBottom:`1px solid ${(n.vars||n).palette.divider}`}:{[`.${lte.root} + &`]:{paddingTop:0}})),pu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogContent"}),{className:l,dividers:c=!1}=s,d=Qe(s,cte),f=P({},s,{dividers:c}),p=ute(f);return b.jsx(dte,P({className:nt(p.root,l),ownerState:f,ref:i},d))});function fte(n){return Kt("MuiDialogContentText",n)}Yt("MuiDialogContentText",["root"]);const pte=["children","className"],hte=n=>{const{classes:o}=n,s=Rt({root:["root"]},fte,o);return P({},o,s)},mte=_e(Tt,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(n,o)=>o.root})({}),gte=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogContentText"}),{className:l}=s,c=Qe(s,pte),d=hte(c);return b.jsx(mte,P({component:"p",variant:"body1",color:"text.secondary",ref:i,ownerState:c,className:nt(d.root,l)},s,{classes:d}))}),vte=["className","id"],bte=n=>{const{classes:o}=n;return Rt({root:["root"]},ste,o)},wte=_e(Tt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(n,o)=>o.root})({padding:"16px 24px",flex:"0 0 auto"}),hu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogTitle"}),{className:l,id:c}=s,d=Qe(s,vte),f=s,p=bte(f),{titleId:m=c}=x.useContext(xB);return b.jsx(wte,P({component:"h2",className:nt(p.root,l),ownerState:f,ref:i,variant:"h6",id:c??m},d))});function xte(n){return Kt("MuiDivider",n)}const mI=Yt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),yte=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ate=n=>{const{absolute:o,children:i,classes:s,flexItem:l,light:c,orientation:d,textAlign:f,variant:p}=n;return Rt({root:["root",o&&"absolute",p,c&&"light",d==="vertical"&&"vertical",l&&"flexItem",i&&"withChildren",i&&d==="vertical"&&"withChildrenVertical",f==="right"&&d!=="vertical"&&"textAlignRight",f==="left"&&d!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",d==="vertical"&&"wrapperVertical"]},xte,s)},Cte=_e("div",{name:"MuiDivider",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.absolute&&o.absolute,o[i.variant],i.light&&o.light,i.orientation==="vertical"&&o.vertical,i.flexItem&&o.flexItem,i.children&&o.withChildren,i.children&&i.orientation==="vertical"&&o.withChildrenVertical,i.textAlign==="right"&&i.orientation!=="vertical"&&o.textAlignRight,i.textAlign==="left"&&i.orientation!=="vertical"&&o.textAlignLeft]}})(({theme:n,ownerState:o})=>P({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(n.vars||n).palette.divider,borderBottomWidth:"thin"},o.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},o.light&&{borderColor:n.vars?`rgba(${n.vars.palette.dividerChannel} / 0.08)`:Lr(n.palette.divider,.08)},o.variant==="inset"&&{marginLeft:72},o.variant==="middle"&&o.orientation==="horizontal"&&{marginLeft:n.spacing(2),marginRight:n.spacing(2)},o.variant==="middle"&&o.orientation==="vertical"&&{marginTop:n.spacing(1),marginBottom:n.spacing(1)},o.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},o.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:n})=>P({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:n,ownerState:o})=>P({},o.children&&o.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(n.vars||n).palette.divider}`}}),({theme:n,ownerState:o})=>P({},o.children&&o.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(n.vars||n).palette.divider}`}}),({ownerState:n})=>P({},n.textAlign==="right"&&n.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},n.textAlign==="left"&&n.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),kte=_e("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.wrapper,i.orientation==="vertical"&&o.wrapperVertical]}})(({theme:n,ownerState:o})=>P({display:"inline-block",paddingLeft:`calc(${n.spacing(1)} * 1.2)`,paddingRight:`calc(${n.spacing(1)} * 1.2)`},o.orientation==="vertical"&&{paddingTop:`calc(${n.spacing(1)} * 1.2)`,paddingBottom:`calc(${n.spacing(1)} * 1.2)`})),kA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDivider"}),{absolute:l=!1,children:c,className:d,component:f=c?"div":"hr",flexItem:p=!1,light:m=!1,orientation:g="horizontal",role:v=f!=="hr"?"separator":void 0,textAlign:w="center",variant:A="fullWidth"}=s,k=Qe(s,yte),C=P({},s,{absolute:l,component:f,flexItem:p,light:m,orientation:g,role:v,textAlign:w,variant:A}),M=Ate(C);return b.jsx(Cte,P({as:f,className:nt(M.root,d),role:v,ref:i,ownerState:C},k,{children:c?b.jsx(kte,{className:M.wrapper,ownerState:C,children:c}):null}))});kA.muiSkipListHighlight=!0;const Ste=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ite(n,o,i){const s=o.getBoundingClientRect(),l=i&&i.getBoundingClientRect(),c=zl(o);let d;if(o.fakeTransform)d=o.fakeTransform;else{const m=c.getComputedStyle(o);d=m.getPropertyValue("-webkit-transform")||m.getPropertyValue("transform")}let f=0,p=0;if(d&&d!=="none"&&typeof d=="string"){const m=d.split("(")[1].split(")")[0].split(",");f=parseInt(m[4],10),p=parseInt(m[5],10)}return n==="left"?l?`translateX(${l.right+f-s.left}px)`:`translateX(${c.innerWidth+f-s.left}px)`:n==="right"?l?`translateX(-${s.right-l.left-f}px)`:`translateX(-${s.left+s.width-f}px)`:n==="up"?l?`translateY(${l.bottom+p-s.top}px)`:`translateY(${c.innerHeight+p-s.top}px)`:l?`translateY(-${s.top-l.top+s.height-p}px)`:`translateY(-${s.top+s.height-p}px)`}function Ete(n){return typeof n=="function"?n():n}function Mg(n,o,i){const s=Ete(i),l=Ite(n,o,s);l&&(o.style.webkitTransform=l,o.style.transform=l)}const Mte=x.forwardRef(function(o,i){const s=ka(),l={enter:s.transitions.easing.easeOut,exit:s.transitions.easing.sharp},c={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:d,appear:f=!0,children:p,container:m,direction:g="down",easing:v=l,in:w,onEnter:A,onEntered:k,onEntering:C,onExit:M,onExited:S,onExiting:I,style:E,timeout:j=c,TransitionComponent:B=R1}=o,F=Qe(o,Ste),O=x.useRef(null),N=Xn(p.ref,O,i),H=q=>W=>{q&&(W===void 0?q(O.current):q(O.current,W))},L=H((q,W)=>{Mg(g,q,m),Y5(q),A&&A(q,W)}),_=H((q,W)=>{const X=kd({timeout:j,style:E,easing:v},{mode:"enter"});q.style.webkitTransition=s.transitions.create("-webkit-transform",P({},X)),q.style.transition=s.transitions.create("transform",P({},X)),q.style.webkitTransform="none",q.style.transform="none",C&&C(q,W)}),V=H(k),$=H(I),z=H(q=>{const W=kd({timeout:j,style:E,easing:v},{mode:"exit"});q.style.webkitTransition=s.transitions.create("-webkit-transform",W),q.style.transition=s.transitions.create("transform",W),Mg(g,q,m),M&&M(q)}),Q=H(q=>{q.style.webkitTransition="",q.style.transition="",S&&S(q)}),G=q=>{d&&d(O.current,q)},D=x.useCallback(()=>{O.current&&Mg(g,O.current,m)},[g,m]);return x.useEffect(()=>{if(w||g==="down"||g==="right")return;const q=Mf(()=>{O.current&&Mg(g,O.current,m)}),W=zl(O.current);return W.addEventListener("resize",q),()=>{q.clear(),W.removeEventListener("resize",q)}},[g,w,m]),x.useEffect(()=>{w||D()},[w,D]),b.jsx(B,P({nodeRef:O,onEnter:L,onEntered:V,onEntering:_,onExit:z,onExited:Q,onExiting:$,addEndListener:G,appear:f,in:w,timeout:j},F,{children:(q,W)=>x.cloneElement(p,P({ref:N,style:P({visibility:q==="exited"&&!w?"hidden":void 0},E,p.props.style)},W))}))});function Pte(n){return Kt("MuiDrawer",n)}Yt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const jte=["BackdropProps"],Ote=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],yB=(n,o)=>{const{ownerState:i}=n;return[o.root,(i.variant==="permanent"||i.variant==="persistent")&&o.docked,o.modal]},Rte=n=>{const{classes:o,anchor:i,variant:s}=n,l={root:["root"],docked:[(s==="permanent"||s==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ke(i)}`,s!=="temporary"&&`paperAnchorDocked${Ke(i)}`]};return Rt(l,Pte,o)},Bte=_e(Op,{name:"MuiDrawer",slot:"Root",overridesResolver:yB})(({theme:n})=>({zIndex:(n.vars||n).zIndex.drawer})),gI=_e("div",{shouldForwardProp:es,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:yB})({flex:"0 0 auto"}),Tte=_e(yl,{name:"MuiDrawer",slot:"Paper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.paper,o[`paperAnchor${Ke(i.anchor)}`],i.variant!=="temporary"&&o[`paperAnchorDocked${Ke(i.anchor)}`]]}})(({theme:n,ownerState:o})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(n.vars||n).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},o.anchor==="left"&&{left:0},o.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="right"&&{right:0},o.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="left"&&o.variant!=="temporary"&&{borderRight:`1px solid ${(n.vars||n).palette.divider}`},o.anchor==="top"&&o.variant!=="temporary"&&{borderBottom:`1px solid ${(n.vars||n).palette.divider}`},o.anchor==="right"&&o.variant!=="temporary"&&{borderLeft:`1px solid ${(n.vars||n).palette.divider}`},o.anchor==="bottom"&&o.variant!=="temporary"&&{borderTop:`1px solid ${(n.vars||n).palette.divider}`})),AB={left:"right",right:"left",top:"down",bottom:"up"};function Fte(n){return["left","right"].indexOf(n)!==-1}function Dte({direction:n},o){return n==="rtl"&&Fte(o)?AB[o]:o}const Nte=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDrawer"}),l=ka(),c=Md(),d={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:p,children:m,className:g,elevation:v=16,hideBackdrop:w=!1,ModalProps:{BackdropProps:A}={},onClose:k,open:C=!1,PaperProps:M={},SlideProps:S,TransitionComponent:I=Mte,transitionDuration:E=d,variant:j="temporary"}=s,B=Qe(s.ModalProps,jte),F=Qe(s,Ote),O=x.useRef(!1);x.useEffect(()=>{O.current=!0},[]);const N=Dte({direction:c?"rtl":"ltr"},f),L=P({},s,{anchor:f,elevation:v,open:C,variant:j},F),_=Rte(L),V=b.jsx(Tte,P({elevation:j==="temporary"?v:0,square:!0},M,{className:nt(_.paper,M.className),ownerState:L,children:m}));if(j==="permanent")return b.jsx(gI,P({className:nt(_.root,_.docked,g),ownerState:L,ref:i},F,{children:V}));const $=b.jsx(I,P({in:C,direction:AB[N],timeout:E,appear:O.current},S,{children:V}));return j==="persistent"?b.jsx(gI,P({className:nt(_.root,_.docked,g),ownerState:L,ref:i},F,{children:$})):b.jsx(Bte,P({BackdropProps:P({},p,A,{transitionDuration:E}),className:nt(_.root,_.modal,g),open:C,ownerState:L,onClose:k,hideBackdrop:w,ref:i},F,B,{children:$}))}),$te=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Lte=n=>{const{classes:o,disableUnderline:i}=n,l=Rt({root:["root",!i&&"underline"],input:["input"]},lZ,o);return P({},o,l)},zte=_e(Fb,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[...Bb(n,o),!i.disableUnderline&&o.underline]}})(({theme:n,ownerState:o})=>{var i;const s=n.palette.mode==="light",l=s?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=s?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=s?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",f=s?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({position:"relative",backgroundColor:n.vars?n.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(n.vars||n).shape.borderRadius,borderTopRightRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),"&:hover":{backgroundColor:n.vars?n.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:c}},[`&.${jl.focused}`]:{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:c},[`&.${jl.disabled}`]:{backgroundColor:n.vars?n.vars.palette.FilledInput.disabledBg:f}},!o.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(i=(n.vars||n).palette[o.color||"primary"])==null?void 0:i.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jl.error}`]:{"&::before, &::after":{borderBottomColor:(n.vars||n).palette.error.main}},"&::before":{borderBottom:`1px solid ${n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})`:l}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jl.disabled}, .${jl.error}):before`]:{borderBottom:`1px solid ${(n.vars||n).palette.text.primary}`},[`&.${jl.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&P({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Hte=_e(Db,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tb})(({theme:n,ownerState:o})=>P({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:n.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:n.palette.mode==="light"?null:"#fff",caretColor:n.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},n.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[n.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),SA=x.forwardRef(function(o,i){var s,l,c,d;const f=Zt({props:o,name:"MuiFilledInput"}),{components:p={},componentsProps:m,fullWidth:g=!1,inputComponent:v="input",multiline:w=!1,slotProps:A,slots:k={},type:C="text"}=f,M=Qe(f,$te),S=P({},f,{fullWidth:g,inputComponent:v,multiline:w,type:C}),I=Lte(f),E={root:{ownerState:S},input:{ownerState:S}},j=A??m?Ks(E,A??m):E,B=(s=(l=k.root)!=null?l:p.Root)!=null?s:zte,F=(c=(d=k.input)!=null?d:p.Input)!=null?c:Hte;return b.jsx(jp,P({slots:{root:B,input:F},componentsProps:j,fullWidth:g,inputComponent:v,multiline:w,ref:i,type:C},M,{classes:I}))});SA.muiName="Input";function Ute(n){return Kt("MuiFormControl",n)}Yt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Gte=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Vte=n=>{const{classes:o,margin:i,fullWidth:s}=n,l={root:["root",i!=="none"&&`margin${Ke(i)}`,s&&"fullWidth"]};return Rt(l,Ute,o)},Qte=_e("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:n},o)=>P({},o.root,o[`margin${Ke(n.margin)}`],n.fullWidth&&o.fullWidth)})(({ownerState:n})=>P({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},n.margin==="normal"&&{marginTop:16,marginBottom:8},n.margin==="dense"&&{marginTop:8,marginBottom:4},n.fullWidth&&{width:"100%"})),Ci=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormControl"}),{children:l,className:c,color:d="primary",component:f="div",disabled:p=!1,error:m=!1,focused:g,fullWidth:v=!1,hiddenLabel:w=!1,margin:A="none",required:k=!1,size:C="medium",variant:M="outlined"}=s,S=Qe(s,Gte),I=P({},s,{color:d,component:f,disabled:p,error:m,fullWidth:v,hiddenLabel:w,margin:A,required:k,size:C,variant:M}),E=Vte(I),[j,B]=x.useState(()=>{let $=!1;return l&&x.Children.forEach(l,z=>{if(!J0(z,["Input","Select"]))return;const Q=J0(z,["Select"])?z.props.input:z;Q&&eZ(Q.props)&&($=!0)}),$}),[F,O]=x.useState(()=>{let $=!1;return l&&x.Children.forEach(l,z=>{J0(z,["Input","Select"])&&(a3(z.props,!0)||a3(z.props.inputProps,!0))&&($=!0)}),$}),[N,H]=x.useState(!1);p&&N&&H(!1);const L=g!==void 0&&!p?g:N;let _;const V=x.useMemo(()=>({adornedStart:j,setAdornedStart:B,color:d,disabled:p,error:m,filled:F,focused:L,fullWidth:v,hiddenLabel:w,size:C,onBlur:()=>{H(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{H(!0)},registerEffect:_,required:k,variant:M}),[j,d,p,m,F,L,v,w,_,k,C,M]);return b.jsx(Rb.Provider,{value:V,children:b.jsx(Qte,P({as:f,ownerState:I,className:nt(E.root,c),ref:i},S,{children:l}))})}),_h=DU({createStyledComponent:_e("div",{name:"MuiStack",slot:"Root",overridesResolver:(n,o)=>o.root}),useThemeProps:n=>Zt({props:n,name:"MuiStack"})});function Wte(n){return Kt("MuiFormControlLabel",n)}const C0=Yt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qte=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],_te=n=>{const{classes:o,disabled:i,labelPlacement:s,error:l,required:c}=n,d={root:["root",i&&"disabled",`labelPlacement${Ke(s)}`,l&&"error",c&&"required"],label:["label",i&&"disabled"],asterisk:["asterisk",l&&"error"]};return Rt(d,Wte,o)},Yte=_e("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${C0.label}`]:o.label},o.root,o[`labelPlacement${Ke(i.labelPlacement)}`]]}})(({theme:n,ownerState:o})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${C0.disabled}`]:{cursor:"default"}},o.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},o.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},o.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${C0.label}`]:{[`&.${C0.disabled}`]:{color:(n.vars||n).palette.text.disabled}}})),Kte=_e("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(n,o)=>o.asterisk})(({theme:n})=>({[`&.${C0.error}`]:{color:(n.vars||n).palette.error.main}})),H2=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiFormControlLabel"}),{className:d,componentsProps:f={},control:p,disabled:m,disableTypography:g,label:v,labelPlacement:w="end",required:A,slotProps:k={}}=c,C=Qe(c,qte),M=Wc(),S=(s=m??p.props.disabled)!=null?s:M==null?void 0:M.disabled,I=A??p.props.required,E={disabled:S,required:I};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof p.props[H]>"u"&&typeof c[H]<"u"&&(E[H]=c[H])});const j=Nd({props:c,muiFormControl:M,states:["error"]}),B=P({},c,{disabled:S,labelPlacement:w,required:I,error:j.error}),F=_te(B),O=(l=k.typography)!=null?l:f.typography;let N=v;return N!=null&&N.type!==Tt&&!g&&(N=b.jsx(Tt,P({component:"span"},O,{className:nt(F.label,O==null?void 0:O.className),children:N}))),b.jsxs(Yte,P({className:nt(F.root,d),ownerState:B,ref:i},C,{children:[x.cloneElement(p,E),I?b.jsxs(_h,{display:"block",children:[N,b.jsxs(Kte,{ownerState:B,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]}):N]}))});function Xte(n){return Kt("MuiFormGroup",n)}Yt("MuiFormGroup",["root","row","error"]);const Jte=["className","row"],Zte=n=>{const{classes:o,row:i,error:s}=n;return Rt({root:["root",i&&"row",s&&"error"]},Xte,o)},ere=_e("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.row&&o.row]}})(({ownerState:n})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},n.row&&{flexDirection:"row"})),tre=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormGroup"}),{className:l,row:c=!1}=s,d=Qe(s,Jte),f=Wc(),p=Nd({props:s,muiFormControl:f,states:["error"]}),m=P({},s,{row:c,error:p.error}),g=Zte(m);return b.jsx(ere,P({className:nt(g.root,l),ownerState:m,ref:i},d))});function rre(n){return Kt("MuiFormHelperText",n)}const vI=Yt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bI;const nre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ore=n=>{const{classes:o,contained:i,size:s,disabled:l,error:c,filled:d,focused:f,required:p}=n,m={root:["root",l&&"disabled",c&&"error",s&&`size${Ke(s)}`,i&&"contained",f&&"focused",d&&"filled",p&&"required"]};return Rt(m,rre,o)},ire=_e("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.size&&o[`size${Ke(i.size)}`],i.contained&&o.contained,i.filled&&o.filled]}})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},n.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vI.disabled}`]:{color:(n.vars||n).palette.text.disabled},[`&.${vI.error}`]:{color:(n.vars||n).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),are=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormHelperText"}),{children:l,className:c,component:d="p"}=s,f=Qe(s,nre),p=Wc(),m=Nd({props:s,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),g=P({},s,{component:d,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),v=ore(g);return b.jsx(ire,P({as:d,ownerState:g,className:nt(v.root,c),ref:i},f,{children:l===" "?bI||(bI=b.jsx("span",{className:"notranslate",children:"​"})):l}))});function sre(n){return Kt("MuiFormLabel",n)}const ph=Yt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lre=["children","className","color","component","disabled","error","filled","focused","required"],cre=n=>{const{classes:o,color:i,focused:s,disabled:l,error:c,filled:d,required:f}=n,p={root:["root",`color${Ke(i)}`,l&&"disabled",c&&"error",d&&"filled",s&&"focused",f&&"required"],asterisk:["asterisk",c&&"error"]};return Rt(p,sre,o)},ure=_e("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:n},o)=>P({},o.root,n.color==="secondary"&&o.colorSecondary,n.filled&&o.filled)})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},n.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ph.focused}`]:{color:(n.vars||n).palette[o.color].main},[`&.${ph.disabled}`]:{color:(n.vars||n).palette.text.disabled},[`&.${ph.error}`]:{color:(n.vars||n).palette.error.main}})),dre=_e("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(n,o)=>o.asterisk})(({theme:n})=>({[`&.${ph.error}`]:{color:(n.vars||n).palette.error.main}})),fre=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormLabel"}),{children:l,className:c,component:d="label"}=s,f=Qe(s,lre),p=Wc(),m=Nd({props:s,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),g=P({},s,{color:m.color||"primary",component:d,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),v=cre(g);return b.jsxs(ure,P({as:d,ownerState:g,className:nt(v.root,c),ref:i},f,{children:[l,m.required&&b.jsxs(dre,{ownerState:g,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),wI=x.createContext();function pre(n){return Kt("MuiGrid",n)}const hre=[0,1,2,3,4,5,6,7,8,9,10],mre=["column-reverse","column","row-reverse","row"],gre=["nowrap","wrap-reverse","wrap"],l0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Yh=Yt("MuiGrid",["root","container","item","zeroMinWidth",...hre.map(n=>`spacing-xs-${n}`),...mre.map(n=>`direction-xs-${n}`),...gre.map(n=>`wrap-xs-${n}`),...l0.map(n=>`grid-xs-${n}`),...l0.map(n=>`grid-sm-${n}`),...l0.map(n=>`grid-md-${n}`),...l0.map(n=>`grid-lg-${n}`),...l0.map(n=>`grid-xl-${n}`)]),vre=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function U2(n){const o=parseFloat(n);return`${o}${String(n).replace(String(o),"")||"px"}`}function bre({theme:n,ownerState:o}){let i;return n.breakpoints.keys.reduce((s,l)=>{let c={};if(o[l]&&(i=o[l]),!i)return s;if(i===!0)c={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(i==="auto")c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=ef({values:o.columns,breakpoints:n.breakpoints.values}),f=typeof d=="object"?d[l]:d;if(f==null)return s;const p=`${Math.round(i/f*1e8)/1e6}%`;let m={};if(o.container&&o.item&&o.columnSpacing!==0){const g=n.spacing(o.columnSpacing);if(g!=="0px"){const v=`calc(${p} + ${U2(g)})`;m={flexBasis:v,maxWidth:v}}}c=P({flexBasis:p,flexGrow:0,maxWidth:p},m)}return n.breakpoints.values[l]===0?Object.assign(s,c):s[n.breakpoints.up(l)]=c,s},{})}function wre({theme:n,ownerState:o}){const i=ef({values:o.direction,breakpoints:n.breakpoints.values});return xl({theme:n},i,s=>{const l={flexDirection:s};return s.indexOf("column")===0&&(l[`& > .${Yh.item}`]={maxWidth:"none"}),l})}function CB({breakpoints:n,values:o}){let i="";Object.keys(o).forEach(l=>{i===""&&o[l]!==0&&(i=l)});const s=Object.keys(n).sort((l,c)=>n[l]-n[c]);return s.slice(0,s.indexOf(i))}function xre({theme:n,ownerState:o}){const{container:i,rowSpacing:s}=o;let l={};if(i&&s!==0){const c=ef({values:s,breakpoints:n.breakpoints.values});let d;typeof c=="object"&&(d=CB({breakpoints:n.breakpoints.values,values:c})),l=xl({theme:n},c,(f,p)=>{var m;const g=n.spacing(f);return g!=="0px"?{marginTop:`-${U2(g)}`,[`& > .${Yh.item}`]:{paddingTop:U2(g)}}:(m=d)!=null&&m.includes(p)?{}:{marginTop:0,[`& > .${Yh.item}`]:{paddingTop:0}}})}return l}function yre({theme:n,ownerState:o}){const{container:i,columnSpacing:s}=o;let l={};if(i&&s!==0){const c=ef({values:s,breakpoints:n.breakpoints.values});let d;typeof c=="object"&&(d=CB({breakpoints:n.breakpoints.values,values:c})),l=xl({theme:n},c,(f,p)=>{var m;const g=n.spacing(f);return g!=="0px"?{width:`calc(100% + ${U2(g)})`,marginLeft:`-${U2(g)}`,[`& > .${Yh.item}`]:{paddingLeft:U2(g)}}:(m=d)!=null&&m.includes(p)?{}:{width:"100%",marginLeft:0,[`& > .${Yh.item}`]:{paddingLeft:0}}})}return l}function Are(n,o,i={}){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[i[`spacing-xs-${String(n)}`]];const s=[];return o.forEach(l=>{const c=n[l];Number(c)>0&&s.push(i[`spacing-${l}-${String(c)}`])}),s}const Cre=_e("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n,{container:s,direction:l,item:c,spacing:d,wrap:f,zeroMinWidth:p,breakpoints:m}=i;let g=[];s&&(g=Are(d,m,o));const v=[];return m.forEach(w=>{const A=i[w];A&&v.push(o[`grid-${w}-${String(A)}`])}),[o.root,s&&o.container,c&&o.item,p&&o.zeroMinWidth,...g,l!=="row"&&o[`direction-xs-${String(l)}`],f!=="wrap"&&o[`wrap-xs-${String(f)}`],...v]}})(({ownerState:n})=>P({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},n.wrap!=="wrap"&&{flexWrap:n.wrap}),wre,xre,yre,bre);function kre(n,o){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[`spacing-xs-${String(n)}`];const i=[];return o.forEach(s=>{const l=n[s];if(Number(l)>0){const c=`spacing-${s}-${String(l)}`;i.push(c)}}),i}const Sre=n=>{const{classes:o,container:i,direction:s,item:l,spacing:c,wrap:d,zeroMinWidth:f,breakpoints:p}=n;let m=[];i&&(m=kre(c,p));const g=[];p.forEach(w=>{const A=n[w];A&&g.push(`grid-${w}-${String(A)}`)});const v={root:["root",i&&"container",l&&"item",f&&"zeroMinWidth",...m,s!=="row"&&`direction-xs-${String(s)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...g]};return Rt(v,pre,o)},Ir=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiGrid"}),{breakpoints:l}=ka(),c=cm(s),{className:d,columns:f,columnSpacing:p,component:m="div",container:g=!1,direction:v="row",item:w=!1,rowSpacing:A,spacing:k=0,wrap:C="wrap",zeroMinWidth:M=!1}=c,S=Qe(c,vre),I=A||k,E=p||k,j=x.useContext(wI),B=g?f||12:j,F={},O=P({},S);l.keys.forEach(L=>{S[L]!=null&&(F[L]=S[L],delete O[L])});const N=P({},c,{columns:B,container:g,direction:v,item:w,rowSpacing:I,columnSpacing:E,wrap:C,zeroMinWidth:M,spacing:k},F,{breakpoints:l.keys}),H=Sre(N);return b.jsx(wI.Provider,{value:B,children:b.jsx(Cre,P({ownerState:N,className:nt(H.root,d),as:m,ref:i},O))})}),Ire=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _y(n){return`scale(${n}, ${n**2})`}const Ere={entering:{opacity:1,transform:_y(1)},entered:{opacity:1,transform:"none"}},tx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cf=x.forwardRef(function(o,i){const{addEndListener:s,appear:l=!0,children:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:v,onExited:w,onExiting:A,style:k,timeout:C="auto",TransitionComponent:M=R1}=o,S=Qe(o,Ire),I=Dl(),E=x.useRef(),j=ka(),B=x.useRef(null),F=Xn(B,c.ref,i),O=Q=>G=>{if(Q){const D=B.current;G===void 0?Q(D):Q(D,G)}},N=O(g),H=O((Q,G)=>{Y5(Q);const{duration:D,delay:q,easing:W}=kd({style:k,timeout:C,easing:d},{mode:"enter"});let X;C==="auto"?(X=j.transitions.getAutoHeightDuration(Q.clientHeight),E.current=X):X=D,Q.style.transition=[j.transitions.create("opacity",{duration:X,delay:q}),j.transitions.create("transform",{duration:tx?X:X*.666,delay:q,easing:W})].join(","),p&&p(Q,G)}),L=O(m),_=O(A),V=O(Q=>{const{duration:G,delay:D,easing:q}=kd({style:k,timeout:C,easing:d},{mode:"exit"});let W;C==="auto"?(W=j.transitions.getAutoHeightDuration(Q.clientHeight),E.current=W):W=G,Q.style.transition=[j.transitions.create("opacity",{duration:W,delay:D}),j.transitions.create("transform",{duration:tx?W:W*.666,delay:tx?D:D||W*.333,easing:q})].join(","),Q.style.opacity=0,Q.style.transform=_y(.75),v&&v(Q)}),$=O(w),z=Q=>{C==="auto"&&I.start(E.current||0,Q),s&&s(B.current,Q)};return b.jsx(M,P({appear:l,in:f,nodeRef:B,onEnter:H,onEntered:L,onEntering:N,onExit:V,onExited:$,onExiting:_,addEndListener:z,timeout:C==="auto"?null:C},S,{children:(Q,G)=>x.cloneElement(c,P({style:P({opacity:0,transform:_y(.75),visibility:Q==="exited"&&!f?"hidden":void 0},Ere[Q],k,c.props.style),ref:F},G))}))});Cf.muiSupportAuto=!0;const Mre=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Pre=n=>{const{classes:o,disableUnderline:i}=n,l=Rt({root:["root",!i&&"underline"],input:["input"]},aZ,o);return P({},o,l)},jre=_e(Fb,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiInput",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[...Bb(n,o),!i.disableUnderline&&o.underline]}})(({theme:n,ownerState:o})=>{let s=n.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(s=`rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})`),P({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n.vars||n).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rd.error}`]:{"&::before, &::after":{borderBottomColor:(n.vars||n).palette.error.main}},"&::before":{borderBottom:`1px solid ${s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rd.disabled}, .${rd.error}):before`]:{borderBottom:`2px solid ${(n.vars||n).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${s}`}},[`&.${rd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Ore=_e(Db,{name:"MuiInput",slot:"Input",overridesResolver:Tb})({}),IA=x.forwardRef(function(o,i){var s,l,c,d;const f=Zt({props:o,name:"MuiInput"}),{disableUnderline:p,components:m={},componentsProps:g,fullWidth:v=!1,inputComponent:w="input",multiline:A=!1,slotProps:k,slots:C={},type:M="text"}=f,S=Qe(f,Mre),I=Pre(f),j={root:{ownerState:{disableUnderline:p}}},B=k??g?Ks(k??g,j):j,F=(s=(l=C.root)!=null?l:m.Root)!=null?s:jre,O=(c=(d=C.input)!=null?d:m.Input)!=null?c:Ore;return b.jsx(jp,P({slots:{root:F,input:O},slotProps:B,fullWidth:v,inputComponent:w,multiline:A,ref:i,type:M},S,{classes:I}))});IA.muiName="Input";function Rre(n){return Kt("MuiInputAdornment",n)}const xI=Yt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var yI;const Bre=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Tre=(n,o)=>{const{ownerState:i}=n;return[o.root,o[`position${Ke(i.position)}`],i.disablePointerEvents===!0&&o.disablePointerEvents,o[i.variant]]},Fre=n=>{const{classes:o,disablePointerEvents:i,hiddenLabel:s,position:l,size:c,variant:d}=n,f={root:["root",i&&"disablePointerEvents",l&&`position${Ke(l)}`,d,s&&"hiddenLabel",c&&`size${Ke(c)}`]};return Rt(f,Rre,o)},Dre=_e("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Tre})(({theme:n,ownerState:o})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},o.variant==="filled"&&{[`&.${xI.positionStart}&:not(.${xI.hiddenLabel})`]:{marginTop:16}},o.position==="start"&&{marginRight:8},o.position==="end"&&{marginLeft:8},o.disablePointerEvents===!0&&{pointerEvents:"none"})),kB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiInputAdornment"}),{children:l,className:c,component:d="div",disablePointerEvents:f=!1,disableTypography:p=!1,position:m,variant:g}=s,v=Qe(s,Bre),w=Wc()||{};let A=g;g&&w.variant,w&&!A&&(A=w.variant);const k=P({},s,{hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:f,position:m,variant:A}),C=Fre(k);return b.jsx(Rb.Provider,{value:null,children:b.jsx(Dre,P({as:d,ownerState:k,className:nt(C.root,c),ref:i},v,{children:typeof l=="string"&&!p?b.jsx(Tt,{color:"text.secondary",children:l}):b.jsxs(x.Fragment,{children:[m==="start"?yI||(yI=b.jsx("span",{className:"notranslate",children:"​"})):null,l]})}))})});function Nre(n){return Kt("MuiInputLabel",n)}Yt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $re=["disableAnimation","margin","shrink","variant","className"],Lre=n=>{const{classes:o,formControl:i,size:s,shrink:l,disableAnimation:c,variant:d,required:f}=n,p={root:["root",i&&"formControl",!c&&"animated",l&&"shrink",s&&s!=="normal"&&`size${Ke(s)}`,d],asterisk:[f&&"asterisk"]},m=Rt(p,Nre,o);return P({},o,m)},zre=_e(fre,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${ph.asterisk}`]:o.asterisk},o.root,i.formControl&&o.formControl,i.size==="small"&&o.sizeSmall,i.shrink&&o.shrink,!i.disableAnimation&&o.animated,i.focused&&o.focused,o[i.variant]]}})(({theme:n,ownerState:o})=>P({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:n.transitions.create(["color","transform","max-width"],{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut})},o.variant==="filled"&&P({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&P({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&P({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),yd=x.forwardRef(function(o,i){const s=Zt({name:"MuiInputLabel",props:o}),{disableAnimation:l=!1,shrink:c,className:d}=s,f=Qe(s,$re),p=Wc();let m=c;typeof m>"u"&&p&&(m=p.filled||p.focused||p.adornedStart);const g=Nd({props:s,muiFormControl:p,states:["size","variant","required","focused"]}),v=P({},s,{disableAnimation:l,formControl:p,shrink:m,size:g.size,variant:g.variant,required:g.required,focused:g.focused}),w=Lre(v);return b.jsx(zre,P({"data-shrink":m,ownerState:v,ref:i,className:nt(w.root,d)},f,{classes:w}))});function Hre(n){return Kt("MuiLinearProgress",n)}Yt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Ure=["className","color","value","valueBuffer","variant"];let Rp=n=>n,AI,CI,kI,SI,II,EI;const Yy=4,Gre=cc(AI||(AI=Rp` + `),Dee)),zb=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiCircularProgress"}),{className:l,color:c="primary",disableShrink:d=!1,size:f=40,style:p,thickness:m=3.6,value:g=0,variant:v="indeterminate"}=s,w=Qe(s,Tee),A=P({},s,{color:c,disableShrink:d,size:f,thickness:m,value:g,variant:v}),k=Nee(A),C={},M={},S={};if(v==="determinate"){const I=2*Math.PI*(($u-m)/2);C.strokeDasharray=I.toFixed(3),S["aria-valuenow"]=Math.round(g),C.strokeDashoffset=`${((100-g)/100*I).toFixed(3)}px`,M.transform="rotate(-90deg)"}return b.jsx($ee,P({className:nt(k.root,l),style:P({width:f,height:f},M,p),ownerState:A,ref:i,role:"progressbar"},S,w,{children:b.jsx(Lee,{className:k.svg,ownerState:A,viewBox:`${$u/2} ${$u/2} ${$u} ${$u}`,children:b.jsx(zee,{className:k.circle,style:C,ownerState:A,cx:$u,cy:$u,r:($u-m)/2,fill:"none",strokeWidth:m})})}))});function yI(n){return n.substring(2).toLowerCase()}function Hee(n,o){return o.documentElement.clientWidth(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);const g=Xn(o.ref,f),v=ln(k=>{const C=m.current;m.current=!1;const M=ri(f.current);if(!p.current||!f.current||"clientX"in k&&Hee(k,M))return;if(d.current){d.current=!1;return}let S;k.composedPath?S=k.composedPath().indexOf(f.current)>-1:S=!M.documentElement.contains(k.target)||f.current.contains(k.target),!S&&(i||!C)&&l(k)}),w=k=>C=>{m.current=!0;const M=o.props[k];M&&M(C)},A={ref:g};return c!==!1&&(A[c]=w(c)),x.useEffect(()=>{if(c!==!1){const k=yI(c),C=ri(f.current),M=()=>{d.current=!0};return C.addEventListener(k,v),C.addEventListener("touchmove",M),()=>{C.removeEventListener(k,v),C.removeEventListener("touchmove",M)}}},[v,c]),s!==!1&&(A[s]=w(s)),x.useEffect(()=>{if(s!==!1){const k=yI(s),C=ri(f.current);return C.addEventListener(k,v),()=>{C.removeEventListener(k,v)}}},[v,s]),b.jsx(x.Fragment,{children:x.cloneElement(o,A)})}const kA=UU({createStyledComponent:_e("div",{name:"MuiContainer",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`maxWidth${Ke(String(i.maxWidth))}`],i.fixed&&o.fixed,i.disableGutters&&o.disableGutters]}}),useThemeProps:n=>Zt({props:n,name:"MuiContainer"})});function Uee(n){const o=ri(n);return o.body===n?Ll(n).innerWidth>o.documentElement.clientWidth:n.scrollHeight>n.clientHeight}function dh(n,o){o?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden")}function AI(n){return parseInt(Ll(n).getComputedStyle(n).paddingRight,10)||0}function Gee(n){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(n.tagName)!==-1,s=n.tagName==="INPUT"&&n.getAttribute("type")==="hidden";return i||s}function CI(n,o,i,s,l){const c=[o,i,...s];[].forEach.call(n.children,d=>{const f=c.indexOf(d)===-1,p=!Gee(d);f&&p&&dh(d,l)})}function tx(n,o){let i=-1;return n.some((s,l)=>o(s)?(i=l,!0):!1),i}function Vee(n,o){const i=[],s=n.container;if(!o.disableScrollLock){if(Uee(s)){const d=SP(ri(s));i.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${AI(s)+d}px`;const f=ri(s).querySelectorAll(".mui-fixed");[].forEach.call(f,p=>{i.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${AI(p)+d}px`})}let c;if(s.parentNode instanceof DocumentFragment)c=ri(s).body;else{const d=s.parentElement,f=Ll(s);c=(d==null?void 0:d.nodeName)==="HTML"&&f.getComputedStyle(d).overflowY==="scroll"?d:s}i.push({value:c.style.overflow,property:"overflow",el:c},{value:c.style.overflowX,property:"overflow-x",el:c},{value:c.style.overflowY,property:"overflow-y",el:c}),c.style.overflow="hidden"}return()=>{i.forEach(({value:c,el:d,property:f})=>{c?d.style.setProperty(f,c):d.style.removeProperty(f)})}}function Qee(n){const o=[];return[].forEach.call(n.children,i=>{i.getAttribute("aria-hidden")==="true"&&o.push(i)}),o}class Wee{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(o,i){let s=this.modals.indexOf(o);if(s!==-1)return s;s=this.modals.length,this.modals.push(o),o.modalRef&&dh(o.modalRef,!1);const l=Qee(i);CI(i,o.mount,o.modalRef,l,!0);const c=tx(this.containers,d=>d.container===i);return c!==-1?(this.containers[c].modals.push(o),s):(this.containers.push({modals:[o],container:i,restore:null,hiddenSiblings:l}),s)}mount(o,i){const s=tx(this.containers,c=>c.modals.indexOf(o)!==-1),l=this.containers[s];l.restore||(l.restore=Vee(l,i))}remove(o,i=!0){const s=this.modals.indexOf(o);if(s===-1)return s;const l=tx(this.containers,d=>d.modals.indexOf(o)!==-1),c=this.containers[l];if(c.modals.splice(c.modals.indexOf(o),1),this.modals.splice(s,1),c.modals.length===0)c.restore&&c.restore(),o.modalRef&&dh(o.modalRef,i),CI(c.container,o.mount,o.modalRef,c.hiddenSiblings,!1),this.containers.splice(l,1);else{const d=c.modals[c.modals.length-1];d.modalRef&&dh(d.modalRef,!1)}return s}isTopModal(o){return this.modals.length>0&&this.modals[this.modals.length-1]===o}}const qee=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _ee(n){const o=parseInt(n.getAttribute("tabindex")||"",10);return Number.isNaN(o)?n.contentEditable==="true"||(n.nodeName==="AUDIO"||n.nodeName==="VIDEO"||n.nodeName==="DETAILS")&&n.getAttribute("tabindex")===null?0:n.tabIndex:o}function Yee(n){if(n.tagName!=="INPUT"||n.type!=="radio"||!n.name)return!1;const o=s=>n.ownerDocument.querySelector(`input[type="radio"]${s}`);let i=o(`[name="${n.name}"]:checked`);return i||(i=o(`[name="${n.name}"]`)),i!==n}function Kee(n){return!(n.disabled||n.tagName==="INPUT"&&n.type==="hidden"||Yee(n))}function Xee(n){const o=[],i=[];return Array.from(n.querySelectorAll(qee)).forEach((s,l)=>{const c=_ee(s);c===-1||!Kee(s)||(c===0?o.push(s):i.push({documentOrder:l,tabIndex:c,node:s}))}),i.sort((s,l)=>s.tabIndex===l.tabIndex?s.documentOrder-l.documentOrder:s.tabIndex-l.tabIndex).map(s=>s.node).concat(o)}function Jee(){return!0}function SB(n){const{children:o,disableAutoFocus:i=!1,disableEnforceFocus:s=!1,disableRestoreFocus:l=!1,getTabbable:c=Xee,isEnabled:d=Jee,open:f}=n,p=x.useRef(!1),m=x.useRef(null),g=x.useRef(null),v=x.useRef(null),w=x.useRef(null),A=x.useRef(!1),k=x.useRef(null),C=Xn(o.ref,k),M=x.useRef(null);x.useEffect(()=>{!f||!k.current||(A.current=!i)},[i,f]),x.useEffect(()=>{if(!f||!k.current)return;const E=ri(k.current);return k.current.contains(E.activeElement)||(k.current.hasAttribute("tabIndex")||k.current.setAttribute("tabIndex","-1"),A.current&&k.current.focus()),()=>{l||(v.current&&v.current.focus&&(p.current=!0,v.current.focus()),v.current=null)}},[f]),x.useEffect(()=>{if(!f||!k.current)return;const E=ri(k.current),j=R=>{M.current=R,!(s||!d()||R.key!=="Tab")&&E.activeElement===k.current&&R.shiftKey&&(p.current=!0,g.current&&g.current.focus())},B=()=>{const R=k.current;if(R===null)return;if(!E.hasFocus()||!d()||p.current){p.current=!1;return}if(R.contains(E.activeElement)||s&&E.activeElement!==m.current&&E.activeElement!==g.current)return;if(E.activeElement!==w.current)w.current=null;else if(w.current!==null)return;if(!A.current)return;let N=[];if((E.activeElement===m.current||E.activeElement===g.current)&&(N=c(k.current)),N.length>0){var U,L;const _=!!((U=M.current)!=null&&U.shiftKey&&((L=M.current)==null?void 0:L.key)==="Tab"),V=N[0],$=N[N.length-1];typeof V!="string"&&typeof $!="string"&&(_?$.focus():V.focus())}else R.focus()};E.addEventListener("focusin",B),E.addEventListener("keydown",j,!0);const D=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&B()},50);return()=>{clearInterval(D),E.removeEventListener("focusin",B),E.removeEventListener("keydown",j,!0)}},[i,s,l,d,f,c]);const S=E=>{v.current===null&&(v.current=E.relatedTarget),A.current=!0,w.current=E.target;const j=o.props.onFocus;j&&j(E)},I=E=>{v.current===null&&(v.current=E.relatedTarget),A.current=!0};return b.jsxs(x.Fragment,{children:[b.jsx("div",{tabIndex:f?0:-1,onFocus:I,ref:m,"data-testid":"sentinelStart"}),x.cloneElement(o,{ref:C,onFocus:S}),b.jsx("div",{tabIndex:f?0:-1,onFocus:I,ref:g,"data-testid":"sentinelEnd"})]})}function Zee(n){return typeof n=="function"?n():n}function ete(n){return n?n.props.hasOwnProperty("in"):!1}const tte=new Wee;function rte(n){const{container:o,disableEscapeKeyDown:i=!1,disableScrollLock:s=!1,manager:l=tte,closeAfterTransition:c=!1,onTransitionEnter:d,onTransitionExited:f,children:p,onClose:m,open:g,rootRef:v}=n,w=x.useRef({}),A=x.useRef(null),k=x.useRef(null),C=Xn(k,v),[M,S]=x.useState(!g),I=ete(p);let E=!0;(n["aria-hidden"]==="false"||n["aria-hidden"]===!1)&&(E=!1);const j=()=>ri(A.current),B=()=>(w.current.modalRef=k.current,w.current.mount=A.current,w.current),D=()=>{l.mount(B(),{disableScrollLock:s}),k.current&&(k.current.scrollTop=0)},R=ln(()=>{const G=Zee(o)||j().body;l.add(B(),G),k.current&&D()}),N=x.useCallback(()=>l.isTopModal(B()),[l]),U=ln(G=>{A.current=G,G&&(g&&N()?D():k.current&&dh(k.current,E))}),L=x.useCallback(()=>{l.remove(B(),E)},[E,l]);x.useEffect(()=>()=>{L()},[L]),x.useEffect(()=>{g?R():(!I||!c)&&L()},[g,L,I,c,R]);const _=G=>F=>{var q;(q=G.onKeyDown)==null||q.call(G,F),!(F.key!=="Escape"||F.which===229||!N())&&(i||(F.stopPropagation(),m&&m(F,"escapeKeyDown")))},V=G=>F=>{var q;(q=G.onClick)==null||q.call(G,F),F.target===F.currentTarget&&m&&m(F,"backdropClick")};return{getRootProps:(G={})=>{const F=EP(n);delete F.onTransitionEnter,delete F.onTransitionExited;const q=P({},F,G);return P({role:"presentation"},q,{onKeyDown:_(q),ref:C})},getBackdropProps:(G={})=>{const F=G;return P({"aria-hidden":!0},F,{onClick:V(F),open:g})},getTransitionProps:()=>{const G=()=>{S(!1),d&&d()},F=()=>{S(!0),f&&f(),c&&L()};return{onEnter:yv(G,p==null?void 0:p.props.onEnter),onExited:yv(F,p==null?void 0:p.props.onExited)}},rootRef:C,portalRef:U,isTopModal:N,exited:M,hasTransition:I}}function nte(n){return Kt("MuiModal",n)}Yt("MuiModal",["root","hidden","backdrop"]);const ote=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ite=n=>{const{open:o,exited:i,classes:s}=n;return Bt({root:["root",!o&&i&&"hidden"],backdrop:["backdrop"]},nte,s)},ate=_e("div",{name:"MuiModal",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.open&&i.exited&&o.hidden]}})(({theme:n,ownerState:o})=>P({position:"fixed",zIndex:(n.vars||n).zIndex.modal,right:0,bottom:0,top:0,left:0},!o.open&&o.exited&&{visibility:"hidden"})),ste=_e(yB,{name:"MuiModal",slot:"Backdrop",overridesResolver:(n,o)=>o.backdrop})({zIndex:-1}),Om=x.forwardRef(function(o,i){var s,l,c,d,f,p;const m=Zt({name:"MuiModal",props:o}),{BackdropComponent:g=ste,BackdropProps:v,className:w,closeAfterTransition:A=!1,children:k,container:C,component:M,components:S={},componentsProps:I={},disableAutoFocus:E=!1,disableEnforceFocus:j=!1,disableEscapeKeyDown:B=!1,disablePortal:D=!1,disableRestoreFocus:R=!1,disableScrollLock:N=!1,hideBackdrop:U=!1,keepMounted:L=!1,onBackdropClick:_,open:V,slotProps:$,slots:z}=m,Q=Qe(m,ote),G=P({},m,{closeAfterTransition:A,disableAutoFocus:E,disableEnforceFocus:j,disableEscapeKeyDown:B,disablePortal:D,disableRestoreFocus:R,disableScrollLock:N,hideBackdrop:U,keepMounted:L}),{getRootProps:F,getBackdropProps:q,getTransitionProps:W,portalRef:X,isTopModal:te,exited:se,hasTransition:de}=rte(P({},G,{rootRef:i})),ee=P({},G,{exited:se}),fe=ite(ee),he={};if(k.props.tabIndex===void 0&&(he.tabIndex="-1"),de){const{onEnter:Ve,onExited:at}=W();he.onEnter=Ve,he.onExited=at}const Ie=(s=(l=z==null?void 0:z.root)!=null?l:S.Root)!=null?s:ate,ve=(c=(d=z==null?void 0:z.backdrop)!=null?d:S.Backdrop)!=null?c:g,be=(f=$==null?void 0:$.root)!=null?f:I.root,ke=(p=$==null?void 0:$.backdrop)!=null?p:I.backdrop,ze=zl({elementType:Ie,externalSlotProps:be,externalForwardedProps:Q,getSlotProps:F,additionalProps:{ref:i,as:M},ownerState:ee,className:nt(w,be==null?void 0:be.className,fe==null?void 0:fe.root,!ee.open&&ee.exited&&(fe==null?void 0:fe.hidden))}),Ge=zl({elementType:ve,externalSlotProps:ke,additionalProps:v,getSlotProps:Ve=>q(P({},Ve,{onClick:at=>{_&&_(at),Ve!=null&&Ve.onClick&&Ve.onClick(at)}})),className:nt(ke==null?void 0:ke.className,v==null?void 0:v.className,fe==null?void 0:fe.backdrop),ownerState:ee});return!L&&!V&&(!de||se)?null:b.jsx(vB,{ref:X,container:C,disablePortal:D,children:b.jsxs(Ie,P({},ze,{children:[!U&&g?b.jsx(ve,P({},Ge)):null,b.jsx(SB,{disableEnforceFocus:j,disableAutoFocus:E,disableRestoreFocus:R,isEnabled:te,open:V,children:x.cloneElement(k,he)})]}))})});function lte(n){return Kt("MuiDialog",n)}const rx=Yt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),IB=x.createContext({}),cte=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ute=_e(yB,{name:"MuiDialog",slot:"Backdrop",overrides:(n,o)=>o.backdrop})({zIndex:-1}),dte=n=>{const{classes:o,scroll:i,maxWidth:s,fullWidth:l,fullScreen:c}=n,d={root:["root"],container:["container",`scroll${Ke(i)}`],paper:["paper",`paperScroll${Ke(i)}`,`paperWidth${Ke(String(s))}`,l&&"paperFullWidth",c&&"paperFullScreen"]};return Bt(d,lte,o)},fte=_e(Om,{name:"MuiDialog",slot:"Root",overridesResolver:(n,o)=>o.root})({"@media print":{position:"absolute !important"}}),pte=_e("div",{name:"MuiDialog",slot:"Container",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.container,o[`scroll${Ke(i.scroll)}`]]}})(({ownerState:n})=>P({height:"100%","@media print":{height:"auto"},outline:0},n.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},n.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),hte=_e(Js,{name:"MuiDialog",slot:"Paper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.paper,o[`scrollPaper${Ke(i.scroll)}`],o[`paperWidth${Ke(String(i.maxWidth))}`],i.fullWidth&&o.paperFullWidth,i.fullScreen&&o.paperFullScreen]}})(({theme:n,ownerState:o})=>P({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},o.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},o.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!o.maxWidth&&{maxWidth:"calc(100% - 64px)"},o.maxWidth==="xs"&&{maxWidth:n.breakpoints.unit==="px"?Math.max(n.breakpoints.values.xs,444):`max(${n.breakpoints.values.xs}${n.breakpoints.unit}, 444px)`,[`&.${rx.paperScrollBody}`]:{[n.breakpoints.down(Math.max(n.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},o.maxWidth&&o.maxWidth!=="xs"&&{maxWidth:`${n.breakpoints.values[o.maxWidth]}${n.breakpoints.unit}`,[`&.${rx.paperScrollBody}`]:{[n.breakpoints.down(n.breakpoints.values[o.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},o.fullWidth&&{width:"calc(100% - 64px)"},o.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${rx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),du=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialog"}),l=ka(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":d,"aria-labelledby":f,BackdropComponent:p,BackdropProps:m,children:g,className:v,disableEscapeKeyDown:w=!1,fullScreen:A=!1,fullWidth:k=!1,maxWidth:C="sm",onBackdropClick:M,onClick:S,onClose:I,open:E,PaperComponent:j=Js,PaperProps:B={},scroll:D="paper",TransitionComponent:R=xB,transitionDuration:N=c,TransitionProps:U}=s,L=Qe(s,cte),_=P({},s,{disableEscapeKeyDown:w,fullScreen:A,fullWidth:k,maxWidth:C,scroll:D}),V=dte(_),$=x.useRef(),z=q=>{$.current=q.target===q.currentTarget},Q=q=>{S&&S(q),$.current&&($.current=null,M&&M(q),I&&I(q,"backdropClick"))},G=Fo(f),F=x.useMemo(()=>({titleId:G}),[G]);return b.jsx(fte,P({className:nt(V.root,v),closeAfterTransition:!0,components:{Backdrop:ute},componentsProps:{backdrop:P({transitionDuration:N,as:p},m)},disableEscapeKeyDown:w,onClose:I,open:E,ref:i,onClick:Q,ownerState:_},L,{children:b.jsx(R,P({appear:!0,in:E,timeout:N,role:"presentation"},U,{children:b.jsx(pte,{className:nt(V.container),onMouseDown:z,ownerState:_,children:b.jsx(hte,P({as:j,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":G},B,{className:nt(V.paper,B.className),ownerState:_,children:b.jsx(IB.Provider,{value:F,children:g})}))})}))}))});function mte(n){return Kt("MuiDialogActions",n)}Yt("MuiDialogActions",["root","spacing"]);const gte=["className","disableSpacing"],vte=n=>{const{classes:o,disableSpacing:i}=n;return Bt({root:["root",!i&&"spacing"]},mte,o)},bte=_e("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.disableSpacing&&o.spacing]}})(({ownerState:n})=>P({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!n.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Nc=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogActions"}),{className:l,disableSpacing:c=!1}=s,d=Qe(s,gte),f=P({},s,{disableSpacing:c}),p=vte(f);return b.jsx(bte,P({className:nt(p.root,l),ownerState:f,ref:i},d))});function wte(n){return Kt("MuiDialogContent",n)}Yt("MuiDialogContent",["root","dividers"]);function xte(n){return Kt("MuiDialogTitle",n)}const yte=Yt("MuiDialogTitle",["root"]),Ate=["className","dividers"],Cte=n=>{const{classes:o,dividers:i}=n;return Bt({root:["root",i&&"dividers"]},wte,o)},kte=_e("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.dividers&&o.dividers]}})(({theme:n,ownerState:o})=>P({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},o.dividers?{padding:"16px 24px",borderTop:`1px solid ${(n.vars||n).palette.divider}`,borderBottom:`1px solid ${(n.vars||n).palette.divider}`}:{[`.${yte.root} + &`]:{paddingTop:0}})),fu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogContent"}),{className:l,dividers:c=!1}=s,d=Qe(s,Ate),f=P({},s,{dividers:c}),p=Cte(f);return b.jsx(kte,P({className:nt(p.root,l),ownerState:f,ref:i},d))});function Ste(n){return Kt("MuiDialogContentText",n)}Yt("MuiDialogContentText",["root"]);const Ite=["children","className"],Ete=n=>{const{classes:o}=n,s=Bt({root:["root"]},Ste,o);return P({},o,s)},Mte=_e(Rt,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Pte=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogContentText"}),{className:l}=s,c=Qe(s,Ite),d=Ete(c);return b.jsx(Mte,P({component:"p",variant:"body1",color:"text.secondary",ref:i,ownerState:c,className:nt(d.root,l)},s,{classes:d}))}),jte=["className","id"],Ote=n=>{const{classes:o}=n;return Bt({root:["root"]},xte,o)},Rte=_e(Rt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(n,o)=>o.root})({padding:"16px 24px",flex:"0 0 auto"}),pu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDialogTitle"}),{className:l,id:c}=s,d=Qe(s,jte),f=s,p=Ote(f),{titleId:m=c}=x.useContext(IB);return b.jsx(Rte,P({component:"h2",className:nt(p.root,l),ownerState:f,ref:i,variant:"h6",id:c??m},d))});function Bte(n){return Kt("MuiDivider",n)}const kI=Yt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Tte=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Fte=n=>{const{absolute:o,children:i,classes:s,flexItem:l,light:c,orientation:d,textAlign:f,variant:p}=n;return Bt({root:["root",o&&"absolute",p,c&&"light",d==="vertical"&&"vertical",l&&"flexItem",i&&"withChildren",i&&d==="vertical"&&"withChildrenVertical",f==="right"&&d!=="vertical"&&"textAlignRight",f==="left"&&d!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",d==="vertical"&&"wrapperVertical"]},Bte,s)},Dte=_e("div",{name:"MuiDivider",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.absolute&&o.absolute,o[i.variant],i.light&&o.light,i.orientation==="vertical"&&o.vertical,i.flexItem&&o.flexItem,i.children&&o.withChildren,i.children&&i.orientation==="vertical"&&o.withChildrenVertical,i.textAlign==="right"&&i.orientation!=="vertical"&&o.textAlignRight,i.textAlign==="left"&&i.orientation!=="vertical"&&o.textAlignLeft]}})(({theme:n,ownerState:o})=>P({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(n.vars||n).palette.divider,borderBottomWidth:"thin"},o.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},o.light&&{borderColor:n.vars?`rgba(${n.vars.palette.dividerChannel} / 0.08)`:Lr(n.palette.divider,.08)},o.variant==="inset"&&{marginLeft:72},o.variant==="middle"&&o.orientation==="horizontal"&&{marginLeft:n.spacing(2),marginRight:n.spacing(2)},o.variant==="middle"&&o.orientation==="vertical"&&{marginTop:n.spacing(1),marginBottom:n.spacing(1)},o.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},o.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:n})=>P({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:n,ownerState:o})=>P({},o.children&&o.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(n.vars||n).palette.divider}`}}),({theme:n,ownerState:o})=>P({},o.children&&o.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(n.vars||n).palette.divider}`}}),({ownerState:n})=>P({},n.textAlign==="right"&&n.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},n.textAlign==="left"&&n.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Nte=_e("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.wrapper,i.orientation==="vertical"&&o.wrapperVertical]}})(({theme:n,ownerState:o})=>P({display:"inline-block",paddingLeft:`calc(${n.spacing(1)} * 1.2)`,paddingRight:`calc(${n.spacing(1)} * 1.2)`},o.orientation==="vertical"&&{paddingTop:`calc(${n.spacing(1)} * 1.2)`,paddingBottom:`calc(${n.spacing(1)} * 1.2)`})),SA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDivider"}),{absolute:l=!1,children:c,className:d,component:f=c?"div":"hr",flexItem:p=!1,light:m=!1,orientation:g="horizontal",role:v=f!=="hr"?"separator":void 0,textAlign:w="center",variant:A="fullWidth"}=s,k=Qe(s,Tte),C=P({},s,{absolute:l,component:f,flexItem:p,light:m,orientation:g,role:v,textAlign:w,variant:A}),M=Fte(C);return b.jsx(Dte,P({as:f,className:nt(M.root,d),role:v,ref:i,ownerState:C},k,{children:c?b.jsx(Nte,{className:M.wrapper,ownerState:C,children:c}):null}))});SA.muiSkipListHighlight=!0;const $te=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Lte(n,o,i){const s=o.getBoundingClientRect(),l=i&&i.getBoundingClientRect(),c=Ll(o);let d;if(o.fakeTransform)d=o.fakeTransform;else{const m=c.getComputedStyle(o);d=m.getPropertyValue("-webkit-transform")||m.getPropertyValue("transform")}let f=0,p=0;if(d&&d!=="none"&&typeof d=="string"){const m=d.split("(")[1].split(")")[0].split(",");f=parseInt(m[4],10),p=parseInt(m[5],10)}return n==="left"?l?`translateX(${l.right+f-s.left}px)`:`translateX(${c.innerWidth+f-s.left}px)`:n==="right"?l?`translateX(-${s.right-l.left-f}px)`:`translateX(-${s.left+s.width-f}px)`:n==="up"?l?`translateY(${l.bottom+p-s.top}px)`:`translateY(${c.innerHeight+p-s.top}px)`:l?`translateY(-${s.top-l.top+s.height-p}px)`:`translateY(-${s.top+s.height-p}px)`}function zte(n){return typeof n=="function"?n():n}function Mg(n,o,i){const s=zte(i),l=Lte(n,o,s);l&&(o.style.webkitTransform=l,o.style.transform=l)}const Hte=x.forwardRef(function(o,i){const s=ka(),l={enter:s.transitions.easing.easeOut,exit:s.transitions.easing.sharp},c={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:d,appear:f=!0,children:p,container:m,direction:g="down",easing:v=l,in:w,onEnter:A,onEntered:k,onEntering:C,onExit:M,onExited:S,onExiting:I,style:E,timeout:j=c,TransitionComponent:B=O1}=o,D=Qe(o,$te),R=x.useRef(null),N=Xn(p.ref,R,i),U=q=>W=>{q&&(W===void 0?q(R.current):q(R.current,W))},L=U((q,W)=>{Mg(g,q,m),X5(q),A&&A(q,W)}),_=U((q,W)=>{const X=Cd({timeout:j,style:E,easing:v},{mode:"enter"});q.style.webkitTransition=s.transitions.create("-webkit-transform",P({},X)),q.style.transition=s.transitions.create("transform",P({},X)),q.style.webkitTransform="none",q.style.transform="none",C&&C(q,W)}),V=U(k),$=U(I),z=U(q=>{const W=Cd({timeout:j,style:E,easing:v},{mode:"exit"});q.style.webkitTransition=s.transitions.create("-webkit-transform",W),q.style.transition=s.transitions.create("transform",W),Mg(g,q,m),M&&M(q)}),Q=U(q=>{q.style.webkitTransition="",q.style.transition="",S&&S(q)}),G=q=>{d&&d(R.current,q)},F=x.useCallback(()=>{R.current&&Mg(g,R.current,m)},[g,m]);return x.useEffect(()=>{if(w||g==="down"||g==="right")return;const q=Ef(()=>{R.current&&Mg(g,R.current,m)}),W=Ll(R.current);return W.addEventListener("resize",q),()=>{q.clear(),W.removeEventListener("resize",q)}},[g,w,m]),x.useEffect(()=>{w||F()},[w,F]),b.jsx(B,P({nodeRef:R,onEnter:L,onEntered:V,onEntering:_,onExit:z,onExited:Q,onExiting:$,addEndListener:G,appear:f,in:w,timeout:j},D,{children:(q,W)=>x.cloneElement(p,P({ref:N,style:P({visibility:q==="exited"&&!w?"hidden":void 0},E,p.props.style)},W))}))});function Ute(n){return Kt("MuiDrawer",n)}Yt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Gte=["BackdropProps"],Vte=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],EB=(n,o)=>{const{ownerState:i}=n;return[o.root,(i.variant==="permanent"||i.variant==="persistent")&&o.docked,o.modal]},Qte=n=>{const{classes:o,anchor:i,variant:s}=n,l={root:["root"],docked:[(s==="permanent"||s==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ke(i)}`,s!=="temporary"&&`paperAnchorDocked${Ke(i)}`]};return Bt(l,Ute,o)},Wte=_e(Om,{name:"MuiDrawer",slot:"Root",overridesResolver:EB})(({theme:n})=>({zIndex:(n.vars||n).zIndex.drawer})),SI=_e("div",{shouldForwardProp:ts,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:EB})({flex:"0 0 auto"}),qte=_e(Js,{name:"MuiDrawer",slot:"Paper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.paper,o[`paperAnchor${Ke(i.anchor)}`],i.variant!=="temporary"&&o[`paperAnchorDocked${Ke(i.anchor)}`]]}})(({theme:n,ownerState:o})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(n.vars||n).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},o.anchor==="left"&&{left:0},o.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="right"&&{right:0},o.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="left"&&o.variant!=="temporary"&&{borderRight:`1px solid ${(n.vars||n).palette.divider}`},o.anchor==="top"&&o.variant!=="temporary"&&{borderBottom:`1px solid ${(n.vars||n).palette.divider}`},o.anchor==="right"&&o.variant!=="temporary"&&{borderLeft:`1px solid ${(n.vars||n).palette.divider}`},o.anchor==="bottom"&&o.variant!=="temporary"&&{borderTop:`1px solid ${(n.vars||n).palette.divider}`})),MB={left:"right",right:"left",top:"down",bottom:"up"};function _te(n){return["left","right"].indexOf(n)!==-1}function Yte({direction:n},o){return n==="rtl"&&_te(o)?MB[o]:o}const Kte=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiDrawer"}),l=ka(),c=Id(),d={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:p,children:m,className:g,elevation:v=16,hideBackdrop:w=!1,ModalProps:{BackdropProps:A}={},onClose:k,open:C=!1,PaperProps:M={},SlideProps:S,TransitionComponent:I=Hte,transitionDuration:E=d,variant:j="temporary"}=s,B=Qe(s.ModalProps,Gte),D=Qe(s,Vte),R=x.useRef(!1);x.useEffect(()=>{R.current=!0},[]);const N=Yte({direction:c?"rtl":"ltr"},f),L=P({},s,{anchor:f,elevation:v,open:C,variant:j},D),_=Qte(L),V=b.jsx(qte,P({elevation:j==="temporary"?v:0,square:!0},M,{className:nt(_.paper,M.className),ownerState:L,children:m}));if(j==="permanent")return b.jsx(SI,P({className:nt(_.root,_.docked,g),ownerState:L,ref:i},D,{children:V}));const $=b.jsx(I,P({in:C,direction:MB[N],timeout:E,appear:R.current},S,{children:V}));return j==="persistent"?b.jsx(SI,P({className:nt(_.root,_.docked,g),ownerState:L,ref:i},D,{children:$})):b.jsx(Wte,P({BackdropProps:P({},p,A,{transitionDuration:E}),className:nt(_.root,_.modal,g),open:C,ownerState:L,onClose:k,hideBackdrop:w,ref:i},D,B,{children:$}))}),Xte=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Jte=n=>{const{classes:o,disableUnderline:i}=n,l=Bt({root:["root",!i&&"underline"],input:["input"]},yZ,o);return P({},o,l)},Zte=_e(Nb,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[...Fb(n,o),!i.disableUnderline&&o.underline]}})(({theme:n,ownerState:o})=>{var i;const s=n.palette.mode==="light",l=s?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=s?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=s?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",f=s?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({position:"relative",backgroundColor:n.vars?n.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(n.vars||n).shape.borderRadius,borderTopRightRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),"&:hover":{backgroundColor:n.vars?n.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:c}},[`&.${Pl.focused}`]:{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:c},[`&.${Pl.disabled}`]:{backgroundColor:n.vars?n.vars.palette.FilledInput.disabledBg:f}},!o.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(i=(n.vars||n).palette[o.color||"primary"])==null?void 0:i.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Pl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pl.error}`]:{"&::before, &::after":{borderBottomColor:(n.vars||n).palette.error.main}},"&::before":{borderBottom:`1px solid ${n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})`:l}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Pl.disabled}, .${Pl.error}):before`]:{borderBottom:`1px solid ${(n.vars||n).palette.text.primary}`},[`&.${Pl.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&P({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ere=_e($b,{name:"MuiFilledInput",slot:"Input",overridesResolver:Db})(({theme:n,ownerState:o})=>P({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:n.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:n.palette.mode==="light"?null:"#fff",caretColor:n.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},n.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[n.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),IA=x.forwardRef(function(o,i){var s,l,c,d;const f=Zt({props:o,name:"MuiFilledInput"}),{components:p={},componentsProps:m,fullWidth:g=!1,inputComponent:v="input",multiline:w=!1,slotProps:A,slots:k={},type:C="text"}=f,M=Qe(f,Xte),S=P({},f,{fullWidth:g,inputComponent:v,multiline:w,type:C}),I=Jte(f),E={root:{ownerState:S},input:{ownerState:S}},j=A??m?Ks(E,A??m):E,B=(s=(l=k.root)!=null?l:p.Root)!=null?s:Zte,D=(c=(d=k.input)!=null?d:p.Input)!=null?c:ere;return b.jsx(jp,P({slots:{root:B,input:D},componentsProps:j,fullWidth:g,inputComponent:v,multiline:w,ref:i,type:C},M,{classes:I}))});IA.muiName="Input";function tre(n){return Kt("MuiFormControl",n)}Yt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rre=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],nre=n=>{const{classes:o,margin:i,fullWidth:s}=n,l={root:["root",i!=="none"&&`margin${Ke(i)}`,s&&"fullWidth"]};return Bt(l,tre,o)},ore=_e("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:n},o)=>P({},o.root,o[`margin${Ke(n.margin)}`],n.fullWidth&&o.fullWidth)})(({ownerState:n})=>P({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},n.margin==="normal"&&{marginTop:16,marginBottom:8},n.margin==="dense"&&{marginTop:8,marginBottom:4},n.fullWidth&&{width:"100%"})),ki=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormControl"}),{children:l,className:c,color:d="primary",component:f="div",disabled:p=!1,error:m=!1,focused:g,fullWidth:v=!1,hiddenLabel:w=!1,margin:A="none",required:k=!1,size:C="medium",variant:M="outlined"}=s,S=Qe(s,rre),I=P({},s,{color:d,component:f,disabled:p,error:m,fullWidth:v,hiddenLabel:w,margin:A,required:k,size:C,variant:M}),E=nre(I),[j,B]=x.useState(()=>{let $=!1;return l&&x.Children.forEach(l,z=>{if(!X0(z,["Input","Select"]))return;const Q=X0(z,["Select"])?z.props.input:z;Q&&pZ(Q.props)&&($=!0)}),$}),[D,R]=x.useState(()=>{let $=!1;return l&&x.Children.forEach(l,z=>{X0(z,["Input","Select"])&&(a3(z.props,!0)||a3(z.props.inputProps,!0))&&($=!0)}),$}),[N,U]=x.useState(!1);p&&N&&U(!1);const L=g!==void 0&&!p?g:N;let _;const V=x.useMemo(()=>({adornedStart:j,setAdornedStart:B,color:d,disabled:p,error:m,filled:D,focused:L,fullWidth:v,hiddenLabel:w,size:C,onBlur:()=>{U(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{U(!0)},registerEffect:_,required:k,variant:M}),[j,d,p,m,D,L,v,w,_,k,C,M]);return b.jsx(Tb.Provider,{value:V,children:b.jsx(ore,P({as:f,ownerState:I,className:nt(E.root,c),ref:i},S,{children:l}))})}),c3=KU({createStyledComponent:_e("div",{name:"MuiStack",slot:"Root",overridesResolver:(n,o)=>o.root}),useThemeProps:n=>Zt({props:n,name:"MuiStack"})});function ire(n){return Kt("MuiFormControlLabel",n)}const A0=Yt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),are=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],sre=n=>{const{classes:o,disabled:i,labelPlacement:s,error:l,required:c}=n,d={root:["root",i&&"disabled",`labelPlacement${Ke(s)}`,l&&"error",c&&"required"],label:["label",i&&"disabled"],asterisk:["asterisk",l&&"error"]};return Bt(d,ire,o)},lre=_e("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${A0.label}`]:o.label},o.root,o[`labelPlacement${Ke(i.labelPlacement)}`]]}})(({theme:n,ownerState:o})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${A0.disabled}`]:{cursor:"default"}},o.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},o.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},o.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${A0.label}`]:{[`&.${A0.disabled}`]:{color:(n.vars||n).palette.text.disabled}}})),cre=_e("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(n,o)=>o.asterisk})(({theme:n})=>({[`&.${A0.error}`]:{color:(n.vars||n).palette.error.main}})),z2=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiFormControlLabel"}),{className:d,componentsProps:f={},control:p,disabled:m,disableTypography:g,label:v,labelPlacement:w="end",required:A,slotProps:k={}}=c,C=Qe(c,are),M=Vc(),S=(s=m??p.props.disabled)!=null?s:M==null?void 0:M.disabled,I=A??p.props.required,E={disabled:S,required:I};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof p.props[U]>"u"&&typeof c[U]<"u"&&(E[U]=c[U])});const j=Fd({props:c,muiFormControl:M,states:["error"]}),B=P({},c,{disabled:S,labelPlacement:w,required:I,error:j.error}),D=sre(B),R=(l=k.typography)!=null?l:f.typography;let N=v;return N!=null&&N.type!==Rt&&!g&&(N=b.jsx(Rt,P({component:"span"},R,{className:nt(D.label,R==null?void 0:R.className),children:N}))),b.jsxs(lre,P({className:nt(D.root,d),ownerState:B,ref:i},C,{children:[x.cloneElement(p,E),I?b.jsxs(c3,{display:"block",children:[N,b.jsxs(cre,{ownerState:B,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]}):N]}))});function ure(n){return Kt("MuiFormGroup",n)}Yt("MuiFormGroup",["root","row","error"]);const dre=["className","row"],fre=n=>{const{classes:o,row:i,error:s}=n;return Bt({root:["root",i&&"row",s&&"error"]},ure,o)},pre=_e("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.row&&o.row]}})(({ownerState:n})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},n.row&&{flexDirection:"row"})),hre=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormGroup"}),{className:l,row:c=!1}=s,d=Qe(s,dre),f=Vc(),p=Fd({props:s,muiFormControl:f,states:["error"]}),m=P({},s,{row:c,error:p.error}),g=fre(m);return b.jsx(pre,P({className:nt(g.root,l),ownerState:m,ref:i},d))});function mre(n){return Kt("MuiFormHelperText",n)}const II=Yt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var EI;const gre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],vre=n=>{const{classes:o,contained:i,size:s,disabled:l,error:c,filled:d,focused:f,required:p}=n,m={root:["root",l&&"disabled",c&&"error",s&&`size${Ke(s)}`,i&&"contained",f&&"focused",d&&"filled",p&&"required"]};return Bt(m,mre,o)},bre=_e("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.size&&o[`size${Ke(i.size)}`],i.contained&&o.contained,i.filled&&o.filled]}})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},n.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${II.disabled}`]:{color:(n.vars||n).palette.text.disabled},[`&.${II.error}`]:{color:(n.vars||n).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),wre=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormHelperText"}),{children:l,className:c,component:d="p"}=s,f=Qe(s,gre),p=Vc(),m=Fd({props:s,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),g=P({},s,{component:d,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),v=vre(g);return b.jsx(bre,P({as:d,ownerState:g,className:nt(v.root,c),ref:i},f,{children:l===" "?EI||(EI=b.jsx("span",{className:"notranslate",children:"​"})):l}))});function xre(n){return Kt("MuiFormLabel",n)}const fh=Yt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yre=["children","className","color","component","disabled","error","filled","focused","required"],Are=n=>{const{classes:o,color:i,focused:s,disabled:l,error:c,filled:d,required:f}=n,p={root:["root",`color${Ke(i)}`,l&&"disabled",c&&"error",d&&"filled",s&&"focused",f&&"required"],asterisk:["asterisk",c&&"error"]};return Bt(p,xre,o)},Cre=_e("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:n},o)=>P({},o.root,n.color==="secondary"&&o.colorSecondary,n.filled&&o.filled)})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},n.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${fh.focused}`]:{color:(n.vars||n).palette[o.color].main},[`&.${fh.disabled}`]:{color:(n.vars||n).palette.text.disabled},[`&.${fh.error}`]:{color:(n.vars||n).palette.error.main}})),kre=_e("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(n,o)=>o.asterisk})(({theme:n})=>({[`&.${fh.error}`]:{color:(n.vars||n).palette.error.main}})),Sre=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiFormLabel"}),{children:l,className:c,component:d="label"}=s,f=Qe(s,yre),p=Vc(),m=Fd({props:s,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),g=P({},s,{color:m.color||"primary",component:d,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),v=Are(g);return b.jsxs(Cre,P({as:d,ownerState:g,className:nt(v.root,c),ref:i},f,{children:[l,m.required&&b.jsxs(kre,{ownerState:g,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),MI=x.createContext();function Ire(n){return Kt("MuiGrid",n)}const Ere=[0,1,2,3,4,5,6,7,8,9,10],Mre=["column-reverse","column","row-reverse","row"],Pre=["nowrap","wrap-reverse","wrap"],s0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],qh=Yt("MuiGrid",["root","container","item","zeroMinWidth",...Ere.map(n=>`spacing-xs-${n}`),...Mre.map(n=>`direction-xs-${n}`),...Pre.map(n=>`wrap-xs-${n}`),...s0.map(n=>`grid-xs-${n}`),...s0.map(n=>`grid-sm-${n}`),...s0.map(n=>`grid-md-${n}`),...s0.map(n=>`grid-lg-${n}`),...s0.map(n=>`grid-xl-${n}`)]),jre=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function H2(n){const o=parseFloat(n);return`${o}${String(n).replace(String(o),"")||"px"}`}function Ore({theme:n,ownerState:o}){let i;return n.breakpoints.keys.reduce((s,l)=>{let c={};if(o[l]&&(i=o[l]),!i)return s;if(i===!0)c={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(i==="auto")c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Zd({values:o.columns,breakpoints:n.breakpoints.values}),f=typeof d=="object"?d[l]:d;if(f==null)return s;const p=`${Math.round(i/f*1e8)/1e6}%`;let m={};if(o.container&&o.item&&o.columnSpacing!==0){const g=n.spacing(o.columnSpacing);if(g!=="0px"){const v=`calc(${p} + ${H2(g)})`;m={flexBasis:v,maxWidth:v}}}c=P({flexBasis:p,flexGrow:0,maxWidth:p},m)}return n.breakpoints.values[l]===0?Object.assign(s,c):s[n.breakpoints.up(l)]=c,s},{})}function Rre({theme:n,ownerState:o}){const i=Zd({values:o.direction,breakpoints:n.breakpoints.values});return xl({theme:n},i,s=>{const l={flexDirection:s};return s.indexOf("column")===0&&(l[`& > .${qh.item}`]={maxWidth:"none"}),l})}function PB({breakpoints:n,values:o}){let i="";Object.keys(o).forEach(l=>{i===""&&o[l]!==0&&(i=l)});const s=Object.keys(n).sort((l,c)=>n[l]-n[c]);return s.slice(0,s.indexOf(i))}function Bre({theme:n,ownerState:o}){const{container:i,rowSpacing:s}=o;let l={};if(i&&s!==0){const c=Zd({values:s,breakpoints:n.breakpoints.values});let d;typeof c=="object"&&(d=PB({breakpoints:n.breakpoints.values,values:c})),l=xl({theme:n},c,(f,p)=>{var m;const g=n.spacing(f);return g!=="0px"?{marginTop:`-${H2(g)}`,[`& > .${qh.item}`]:{paddingTop:H2(g)}}:(m=d)!=null&&m.includes(p)?{}:{marginTop:0,[`& > .${qh.item}`]:{paddingTop:0}}})}return l}function Tre({theme:n,ownerState:o}){const{container:i,columnSpacing:s}=o;let l={};if(i&&s!==0){const c=Zd({values:s,breakpoints:n.breakpoints.values});let d;typeof c=="object"&&(d=PB({breakpoints:n.breakpoints.values,values:c})),l=xl({theme:n},c,(f,p)=>{var m;const g=n.spacing(f);return g!=="0px"?{width:`calc(100% + ${H2(g)})`,marginLeft:`-${H2(g)}`,[`& > .${qh.item}`]:{paddingLeft:H2(g)}}:(m=d)!=null&&m.includes(p)?{}:{width:"100%",marginLeft:0,[`& > .${qh.item}`]:{paddingLeft:0}}})}return l}function Fre(n,o,i={}){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[i[`spacing-xs-${String(n)}`]];const s=[];return o.forEach(l=>{const c=n[l];Number(c)>0&&s.push(i[`spacing-${l}-${String(c)}`])}),s}const Dre=_e("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n,{container:s,direction:l,item:c,spacing:d,wrap:f,zeroMinWidth:p,breakpoints:m}=i;let g=[];s&&(g=Fre(d,m,o));const v=[];return m.forEach(w=>{const A=i[w];A&&v.push(o[`grid-${w}-${String(A)}`])}),[o.root,s&&o.container,c&&o.item,p&&o.zeroMinWidth,...g,l!=="row"&&o[`direction-xs-${String(l)}`],f!=="wrap"&&o[`wrap-xs-${String(f)}`],...v]}})(({ownerState:n})=>P({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},n.wrap!=="wrap"&&{flexWrap:n.wrap}),Rre,Bre,Tre,Ore);function Nre(n,o){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[`spacing-xs-${String(n)}`];const i=[];return o.forEach(s=>{const l=n[s];if(Number(l)>0){const c=`spacing-${s}-${String(l)}`;i.push(c)}}),i}const $re=n=>{const{classes:o,container:i,direction:s,item:l,spacing:c,wrap:d,zeroMinWidth:f,breakpoints:p}=n;let m=[];i&&(m=Nre(c,p));const g=[];p.forEach(w=>{const A=n[w];A&&g.push(`grid-${w}-${String(A)}`)});const v={root:["root",i&&"container",l&&"item",f&&"zeroMinWidth",...m,s!=="row"&&`direction-xs-${String(s)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...g]};return Bt(v,Ire,o)},Rr=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiGrid"}),{breakpoints:l}=ka(),c=lm(s),{className:d,columns:f,columnSpacing:p,component:m="div",container:g=!1,direction:v="row",item:w=!1,rowSpacing:A,spacing:k=0,wrap:C="wrap",zeroMinWidth:M=!1}=c,S=Qe(c,jre),I=A||k,E=p||k,j=x.useContext(MI),B=g?f||12:j,D={},R=P({},S);l.keys.forEach(L=>{S[L]!=null&&(D[L]=S[L],delete R[L])});const N=P({},c,{columns:B,container:g,direction:v,item:w,rowSpacing:I,columnSpacing:E,wrap:C,zeroMinWidth:M,spacing:k},D,{breakpoints:l.keys}),U=$re(N);return b.jsx(MI.Provider,{value:B,children:b.jsx(Dre,P({ownerState:N,className:nt(U.root,d),as:m,ref:i},R))})}),Lre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ky(n){return`scale(${n}, ${n**2})`}const zre={entering:{opacity:1,transform:Ky(1)},entered:{opacity:1,transform:"none"}},nx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Af=x.forwardRef(function(o,i){const{addEndListener:s,appear:l=!0,children:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:v,onExited:w,onExiting:A,style:k,timeout:C="auto",TransitionComponent:M=O1}=o,S=Qe(o,Lre),I=Fl(),E=x.useRef(),j=ka(),B=x.useRef(null),D=Xn(B,c.ref,i),R=Q=>G=>{if(Q){const F=B.current;G===void 0?Q(F):Q(F,G)}},N=R(g),U=R((Q,G)=>{X5(Q);const{duration:F,delay:q,easing:W}=Cd({style:k,timeout:C,easing:d},{mode:"enter"});let X;C==="auto"?(X=j.transitions.getAutoHeightDuration(Q.clientHeight),E.current=X):X=F,Q.style.transition=[j.transitions.create("opacity",{duration:X,delay:q}),j.transitions.create("transform",{duration:nx?X:X*.666,delay:q,easing:W})].join(","),p&&p(Q,G)}),L=R(m),_=R(A),V=R(Q=>{const{duration:G,delay:F,easing:q}=Cd({style:k,timeout:C,easing:d},{mode:"exit"});let W;C==="auto"?(W=j.transitions.getAutoHeightDuration(Q.clientHeight),E.current=W):W=G,Q.style.transition=[j.transitions.create("opacity",{duration:W,delay:F}),j.transitions.create("transform",{duration:nx?W:W*.666,delay:nx?F:F||W*.333,easing:q})].join(","),Q.style.opacity=0,Q.style.transform=Ky(.75),v&&v(Q)}),$=R(w),z=Q=>{C==="auto"&&I.start(E.current||0,Q),s&&s(B.current,Q)};return b.jsx(M,P({appear:l,in:f,nodeRef:B,onEnter:U,onEntered:L,onEntering:N,onExit:V,onExited:$,onExiting:_,addEndListener:z,timeout:C==="auto"?null:C},S,{children:(Q,G)=>x.cloneElement(c,P({style:P({opacity:0,transform:Ky(.75),visibility:Q==="exited"&&!f?"hidden":void 0},zre[Q],k,c.props.style),ref:D},G))}))});Af.muiSupportAuto=!0;const Hre=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Ure=n=>{const{classes:o,disableUnderline:i}=n,l=Bt({root:["root",!i&&"underline"],input:["input"]},wZ,o);return P({},o,l)},Gre=_e(Nb,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiInput",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[...Fb(n,o),!i.disableUnderline&&o.underline]}})(({theme:n,ownerState:o})=>{let s=n.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(s=`rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})`),P({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n.vars||n).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rd.error}`]:{"&::before, &::after":{borderBottomColor:(n.vars||n).palette.error.main}},"&::before":{borderBottom:`1px solid ${s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rd.disabled}, .${rd.error}):before`]:{borderBottom:`2px solid ${(n.vars||n).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${s}`}},[`&.${rd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Vre=_e($b,{name:"MuiInput",slot:"Input",overridesResolver:Db})({}),EA=x.forwardRef(function(o,i){var s,l,c,d;const f=Zt({props:o,name:"MuiInput"}),{disableUnderline:p,components:m={},componentsProps:g,fullWidth:v=!1,inputComponent:w="input",multiline:A=!1,slotProps:k,slots:C={},type:M="text"}=f,S=Qe(f,Hre),I=Ure(f),j={root:{ownerState:{disableUnderline:p}}},B=k??g?Ks(k??g,j):j,D=(s=(l=C.root)!=null?l:m.Root)!=null?s:Gre,R=(c=(d=C.input)!=null?d:m.Input)!=null?c:Vre;return b.jsx(jp,P({slots:{root:D,input:R},slotProps:B,fullWidth:v,inputComponent:w,multiline:A,ref:i,type:M},S,{classes:I}))});EA.muiName="Input";function Qre(n){return Kt("MuiInputAdornment",n)}const PI=Yt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var jI;const Wre=["children","className","component","disablePointerEvents","disableTypography","position","variant"],qre=(n,o)=>{const{ownerState:i}=n;return[o.root,o[`position${Ke(i.position)}`],i.disablePointerEvents===!0&&o.disablePointerEvents,o[i.variant]]},_re=n=>{const{classes:o,disablePointerEvents:i,hiddenLabel:s,position:l,size:c,variant:d}=n,f={root:["root",i&&"disablePointerEvents",l&&`position${Ke(l)}`,d,s&&"hiddenLabel",c&&`size${Ke(c)}`]};return Bt(f,Qre,o)},Yre=_e("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:qre})(({theme:n,ownerState:o})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},o.variant==="filled"&&{[`&.${PI.positionStart}&:not(.${PI.hiddenLabel})`]:{marginTop:16}},o.position==="start"&&{marginRight:8},o.position==="end"&&{marginLeft:8},o.disablePointerEvents===!0&&{pointerEvents:"none"})),jB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiInputAdornment"}),{children:l,className:c,component:d="div",disablePointerEvents:f=!1,disableTypography:p=!1,position:m,variant:g}=s,v=Qe(s,Wre),w=Vc()||{};let A=g;g&&w.variant,w&&!A&&(A=w.variant);const k=P({},s,{hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:f,position:m,variant:A}),C=_re(k);return b.jsx(Tb.Provider,{value:null,children:b.jsx(Yre,P({as:d,ownerState:k,className:nt(C.root,c),ref:i},v,{children:typeof l=="string"&&!p?b.jsx(Rt,{color:"text.secondary",children:l}):b.jsxs(x.Fragment,{children:[m==="start"?jI||(jI=b.jsx("span",{className:"notranslate",children:"​"})):null,l]})}))})});function Kre(n){return Kt("MuiInputLabel",n)}Yt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Xre=["disableAnimation","margin","shrink","variant","className"],Jre=n=>{const{classes:o,formControl:i,size:s,shrink:l,disableAnimation:c,variant:d,required:f}=n,p={root:["root",i&&"formControl",!c&&"animated",l&&"shrink",s&&s!=="normal"&&`size${Ke(s)}`,d],asterisk:[f&&"asterisk"]},m=Bt(p,Kre,o);return P({},o,m)},Zre=_e(Sre,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${fh.asterisk}`]:o.asterisk},o.root,i.formControl&&o.formControl,i.size==="small"&&o.sizeSmall,i.shrink&&o.shrink,!i.disableAnimation&&o.animated,i.focused&&o.focused,o[i.variant]]}})(({theme:n,ownerState:o})=>P({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:n.transitions.create(["color","transform","max-width"],{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut})},o.variant==="filled"&&P({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&P({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&P({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),xd=x.forwardRef(function(o,i){const s=Zt({name:"MuiInputLabel",props:o}),{disableAnimation:l=!1,shrink:c,className:d}=s,f=Qe(s,Xre),p=Vc();let m=c;typeof m>"u"&&p&&(m=p.filled||p.focused||p.adornedStart);const g=Fd({props:s,muiFormControl:p,states:["size","variant","required","focused"]}),v=P({},s,{disableAnimation:l,formControl:p,shrink:m,size:g.size,variant:g.variant,required:g.required,focused:g.focused}),w=Jre(v);return b.jsx(Zre,P({"data-shrink":m,ownerState:v,ref:i,className:nt(w.root,d)},f,{classes:w}))});function ene(n){return Kt("MuiLinearProgress",n)}Yt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const tne=["className","color","value","valueBuffer","variant"];let Op=n=>n,OI,RI,BI,TI,FI,DI;const Xy=4,rne=lc(OI||(OI=Op` 0% { left: -35%; right: 100%; @@ -273,7 +273,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho left: 100%; right: -90%; } -`)),Vre=cc(CI||(CI=Rp` +`)),nne=lc(RI||(RI=Op` 0% { left: -200%; right: 100%; @@ -288,7 +288,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho left: 107%; right: -8%; } -`)),Qre=cc(kI||(kI=Rp` +`)),one=lc(BI||(BI=Op` 0% { opacity: 1; background-position: 0 -23px; @@ -303,15 +303,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 1; background-position: -200px -23px; } -`)),Wre=n=>{const{classes:o,variant:i,color:s}=n,l={root:["root",`color${Ke(s)}`,i],dashed:["dashed",`dashedColor${Ke(s)}`],bar1:["bar",`barColor${Ke(s)}`,(i==="indeterminate"||i==="query")&&"bar1Indeterminate",i==="determinate"&&"bar1Determinate",i==="buffer"&&"bar1Buffer"],bar2:["bar",i!=="buffer"&&`barColor${Ke(s)}`,i==="buffer"&&`color${Ke(s)}`,(i==="indeterminate"||i==="query")&&"bar2Indeterminate",i==="buffer"&&"bar2Buffer"]};return Rt(l,Hre,o)},EA=(n,o)=>o==="inherit"?"currentColor":n.vars?n.vars.palette.LinearProgress[`${o}Bg`]:n.palette.mode==="light"?sb(n.palette[o].main,.62):ab(n.palette[o].main,.5),qre=_e("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`color${Ke(i.color)}`],o[i.variant]]}})(({ownerState:n,theme:o})=>P({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:EA(o,n.color)},n.color==="inherit"&&n.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},n.variant==="buffer"&&{backgroundColor:"transparent"},n.variant==="query"&&{transform:"rotate(180deg)"})),_re=_e("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.dashed,o[`dashedColor${Ke(i.color)}`]]}})(({ownerState:n,theme:o})=>{const i=EA(o,n.color);return P({position:"absolute",marginTop:0,height:"100%",width:"100%"},n.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${i} 0%, ${i} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},wu(SI||(SI=Rp` +`)),ine=n=>{const{classes:o,variant:i,color:s}=n,l={root:["root",`color${Ke(s)}`,i],dashed:["dashed",`dashedColor${Ke(s)}`],bar1:["bar",`barColor${Ke(s)}`,(i==="indeterminate"||i==="query")&&"bar1Indeterminate",i==="determinate"&&"bar1Determinate",i==="buffer"&&"bar1Buffer"],bar2:["bar",i!=="buffer"&&`barColor${Ke(s)}`,i==="buffer"&&`color${Ke(s)}`,(i==="indeterminate"||i==="query")&&"bar2Indeterminate",i==="buffer"&&"bar2Buffer"]};return Bt(l,ene,o)},MA=(n,o)=>o==="inherit"?"currentColor":n.vars?n.vars.palette.LinearProgress[`${o}Bg`]:n.palette.mode==="light"?ab(n.palette[o].main,.62):ib(n.palette[o].main,.5),ane=_e("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[`color${Ke(i.color)}`],o[i.variant]]}})(({ownerState:n,theme:o})=>P({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:MA(o,n.color)},n.color==="inherit"&&n.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},n.variant==="buffer"&&{backgroundColor:"transparent"},n.variant==="query"&&{transform:"rotate(180deg)"})),sne=_e("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.dashed,o[`dashedColor${Ke(i.color)}`]]}})(({ownerState:n,theme:o})=>{const i=MA(o,n.color);return P({position:"absolute",marginTop:0,height:"100%",width:"100%"},n.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${i} 0%, ${i} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},bu(TI||(TI=Op` animation: ${0} 3s infinite linear; - `),Qre)),Yre=_e("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.bar,o[`barColor${Ke(i.color)}`],(i.variant==="indeterminate"||i.variant==="query")&&o.bar1Indeterminate,i.variant==="determinate"&&o.bar1Determinate,i.variant==="buffer"&&o.bar1Buffer]}})(({ownerState:n,theme:o})=>P({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:n.color==="inherit"?"currentColor":(o.vars||o).palette[n.color].main},n.variant==="determinate"&&{transition:`transform .${Yy}s linear`},n.variant==="buffer"&&{zIndex:1,transition:`transform .${Yy}s linear`}),({ownerState:n})=>(n.variant==="indeterminate"||n.variant==="query")&&wu(II||(II=Rp` + `),one)),lne=_e("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.bar,o[`barColor${Ke(i.color)}`],(i.variant==="indeterminate"||i.variant==="query")&&o.bar1Indeterminate,i.variant==="determinate"&&o.bar1Determinate,i.variant==="buffer"&&o.bar1Buffer]}})(({ownerState:n,theme:o})=>P({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:n.color==="inherit"?"currentColor":(o.vars||o).palette[n.color].main},n.variant==="determinate"&&{transition:`transform .${Xy}s linear`},n.variant==="buffer"&&{zIndex:1,transition:`transform .${Xy}s linear`}),({ownerState:n})=>(n.variant==="indeterminate"||n.variant==="query")&&bu(FI||(FI=Op` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Gre)),Kre=_e("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.bar,o[`barColor${Ke(i.color)}`],(i.variant==="indeterminate"||i.variant==="query")&&o.bar2Indeterminate,i.variant==="buffer"&&o.bar2Buffer]}})(({ownerState:n,theme:o})=>P({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},n.variant!=="buffer"&&{backgroundColor:n.color==="inherit"?"currentColor":(o.vars||o).palette[n.color].main},n.color==="inherit"&&{opacity:.3},n.variant==="buffer"&&{backgroundColor:EA(o,n.color),transition:`transform .${Yy}s linear`}),({ownerState:n})=>(n.variant==="indeterminate"||n.variant==="query")&&wu(EI||(EI=Rp` + `),rne)),cne=_e("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.bar,o[`barColor${Ke(i.color)}`],(i.variant==="indeterminate"||i.variant==="query")&&o.bar2Indeterminate,i.variant==="buffer"&&o.bar2Buffer]}})(({ownerState:n,theme:o})=>P({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},n.variant!=="buffer"&&{backgroundColor:n.color==="inherit"?"currentColor":(o.vars||o).palette[n.color].main},n.color==="inherit"&&{opacity:.3},n.variant==="buffer"&&{backgroundColor:MA(o,n.color),transition:`transform .${Xy}s linear`}),({ownerState:n})=>(n.variant==="indeterminate"||n.variant==="query")&&bu(DI||(DI=Op` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Vre)),Xre=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiLinearProgress"}),{className:l,color:c="primary",value:d,valueBuffer:f,variant:p="indeterminate"}=s,m=Qe(s,Ure),g=P({},s,{color:c,variant:p}),v=Wre(g),w=Md(),A={},k={bar1:{},bar2:{}};if((p==="determinate"||p==="buffer")&&d!==void 0){A["aria-valuenow"]=Math.round(d),A["aria-valuemin"]=0,A["aria-valuemax"]=100;let C=d-100;w&&(C=-C),k.bar1.transform=`translateX(${C}%)`}if(p==="buffer"&&f!==void 0){let C=(f||0)-100;w&&(C=-C),k.bar2.transform=`translateX(${C}%)`}return b.jsxs(qre,P({className:nt(v.root,l),ownerState:g,role:"progressbar"},A,{ref:i},m,{children:[p==="buffer"?b.jsx(_re,{className:v.dashed,ownerState:g}):null,b.jsx(Yre,{className:v.bar1,ownerState:g,style:k.bar1}),p==="determinate"?null:b.jsx(Kre,{className:v.bar2,ownerState:g,style:k.bar2})]}))}),mu=x.createContext({});function Jre(n){return Kt("MuiList",n)}Yt("MuiList",["root","padding","dense","subheader"]);const Zre=["children","className","component","dense","disablePadding","subheader"],ene=n=>{const{classes:o,disablePadding:i,dense:s,subheader:l}=n;return Rt({root:["root",!i&&"padding",s&&"dense",l&&"subheader"]},Jre,o)},tne=_e("ul",{name:"MuiList",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.disablePadding&&o.padding,i.dense&&o.dense,i.subheader&&o.subheader]}})(({ownerState:n})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!n.disablePadding&&{paddingTop:8,paddingBottom:8},n.subheader&&{paddingTop:0})),MA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiList"}),{children:l,className:c,component:d="ul",dense:f=!1,disablePadding:p=!1,subheader:m}=s,g=Qe(s,Zre),v=x.useMemo(()=>({dense:f}),[f]),w=P({},s,{component:d,dense:f,disablePadding:p}),A=ene(w);return b.jsx(mu.Provider,{value:v,children:b.jsxs(tne,P({as:d,className:nt(A.root,c),ref:i,ownerState:w},g,{children:[m,l]}))})});function rne(n){return Kt("MuiListItem",n)}const s2=Yt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),nne=Yt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function one(n){return Kt("MuiListItemSecondaryAction",n)}Yt("MuiListItemSecondaryAction",["root","disableGutters"]);const ine=["className"],ane=n=>{const{disableGutters:o,classes:i}=n;return Rt({root:["root",o&&"disableGutters"]},one,i)},sne=_e("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.disableGutters&&o.disableGutters]}})(({ownerState:n})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},n.disableGutters&&{right:0})),SB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItemSecondaryAction"}),{className:l}=s,c=Qe(s,ine),d=x.useContext(mu),f=P({},s,{disableGutters:d.disableGutters}),p=ane(f);return b.jsx(sne,P({className:nt(p.root,l),ownerState:f,ref:i},c))});SB.muiName="ListItemSecondaryAction";const lne=["className"],cne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],une=(n,o)=>{const{ownerState:i}=n;return[o.root,i.dense&&o.dense,i.alignItems==="flex-start"&&o.alignItemsFlexStart,i.divider&&o.divider,!i.disableGutters&&o.gutters,!i.disablePadding&&o.padding,i.button&&o.button,i.hasSecondaryAction&&o.secondaryAction]},dne=n=>{const{alignItems:o,button:i,classes:s,dense:l,disabled:c,disableGutters:d,disablePadding:f,divider:p,hasSecondaryAction:m,selected:g}=n;return Rt({root:["root",l&&"dense",!d&&"gutters",!f&&"padding",p&&"divider",c&&"disabled",i&&"button",o==="flex-start"&&"alignItemsFlexStart",m&&"secondaryAction",g&&"selected"],container:["container"]},rne,s)},fne=_e("div",{name:"MuiListItem",slot:"Root",overridesResolver:une})(({theme:n,ownerState:o})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!o.disablePadding&&P({paddingTop:8,paddingBottom:8},o.dense&&{paddingTop:4,paddingBottom:4},!o.disableGutters&&{paddingLeft:16,paddingRight:16},!!o.secondaryAction&&{paddingRight:48}),!!o.secondaryAction&&{[`& > .${nne.root}`]:{paddingRight:48}},{[`&.${s2.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`&.${s2.selected}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),[`&.${s2.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}},[`&.${s2.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity}},o.alignItems==="flex-start"&&{alignItems:"flex-start"},o.divider&&{borderBottom:`1px solid ${(n.vars||n).palette.divider}`,backgroundClip:"padding-box"},o.button&&{transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${s2.selected}:hover`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity)}}},o.hasSecondaryAction&&{paddingRight:48})),pne=_e("li",{name:"MuiListItem",slot:"Container",overridesResolver:(n,o)=>o.container})({position:"relative"}),Gu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItem"}),{alignItems:l="center",autoFocus:c=!1,button:d=!1,children:f,className:p,component:m,components:g={},componentsProps:v={},ContainerComponent:w="li",ContainerProps:{className:A}={},dense:k=!1,disabled:C=!1,disableGutters:M=!1,disablePadding:S=!1,divider:I=!1,focusVisibleClassName:E,secondaryAction:j,selected:B=!1,slotProps:F={},slots:O={}}=s,N=Qe(s.ContainerProps,lne),H=Qe(s,cne),L=x.useContext(mu),_=x.useMemo(()=>({dense:k||L.dense||!1,alignItems:l,disableGutters:M}),[l,L.dense,k,M]),V=x.useRef(null);yo(()=>{c&&V.current&&V.current.focus()},[c]);const $=x.Children.toArray(f),z=$.length&&J0($[$.length-1],["ListItemSecondaryAction"]),Q=P({},s,{alignItems:l,autoFocus:c,button:d,dense:_.dense,disabled:C,disableGutters:M,disablePadding:S,divider:I,hasSecondaryAction:z,selected:B}),G=dne(Q),D=Xn(V,i),q=O.root||g.Root||fne,W=F.root||v.root||{},X=P({className:nt(G.root,W.className,p),disabled:C},H);let te=m||"li";return d&&(X.component=m||"div",X.focusVisibleClassName=nt(s2.focusVisible,E),te=Gc),z?(te=!X.component&&!m?"div":te,w==="li"&&(te==="li"?te="div":X.component==="li"&&(X.component="div")),b.jsx(mu.Provider,{value:_,children:b.jsxs(pne,P({as:w,className:nt(G.container,A),ref:D,ownerState:Q},N,{children:[b.jsx(q,P({},W,!uf(q)&&{as:te,ownerState:P({},Q,W.ownerState)},X,{children:$})),$.pop()]}))})):b.jsx(mu.Provider,{value:_,children:b.jsxs(q,P({},W,{as:te,ref:D},!uf(q)&&{ownerState:P({},Q,W.ownerState)},X,{children:[$,j&&b.jsx(SB,{children:j})]}))})});function hne(n){return Kt("MuiListItemIcon",n)}const MI=Yt("MuiListItemIcon",["root","alignItemsFlexStart"]),mne=["className"],gne=n=>{const{alignItems:o,classes:i}=n;return Rt({root:["root",o==="flex-start"&&"alignItemsFlexStart"]},hne,i)},vne=_e("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.alignItems==="flex-start"&&o.alignItemsFlexStart]}})(({theme:n,ownerState:o})=>P({minWidth:56,color:(n.vars||n).palette.action.active,flexShrink:0,display:"inline-flex"},o.alignItems==="flex-start"&&{marginTop:8})),G2=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItemIcon"}),{className:l}=s,c=Qe(s,mne),d=x.useContext(mu),f=P({},s,{alignItems:d.alignItems}),p=gne(f);return b.jsx(vne,P({className:nt(p.root,l),ownerState:f,ref:i},c))});function bne(n){return Kt("MuiListItemText",n)}const c3=Yt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),wne=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],xne=n=>{const{classes:o,inset:i,primary:s,secondary:l,dense:c}=n;return Rt({root:["root",i&&"inset",c&&"dense",s&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},bne,o)},yne=_e("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${c3.primary}`]:o.primary},{[`& .${c3.secondary}`]:o.secondary},o.root,i.inset&&o.inset,i.primary&&i.secondary&&o.multiline,i.dense&&o.dense]}})(({ownerState:n})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},n.primary&&n.secondary&&{marginTop:6,marginBottom:6},n.inset&&{paddingLeft:56})),qs=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItemText"}),{children:l,className:c,disableTypography:d=!1,inset:f=!1,primary:p,primaryTypographyProps:m,secondary:g,secondaryTypographyProps:v}=s,w=Qe(s,wne),{dense:A}=x.useContext(mu);let k=p??l,C=g;const M=P({},s,{disableTypography:d,inset:f,primary:!!k,secondary:!!C,dense:A}),S=xne(M);return k!=null&&k.type!==Tt&&!d&&(k=b.jsx(Tt,P({variant:A?"body2":"body1",className:S.primary,component:m!=null&&m.variant?void 0:"span",display:"block"},m,{children:k}))),C!=null&&C.type!==Tt&&!d&&(C=b.jsx(Tt,P({variant:"body2",className:S.secondary,color:"text.secondary",display:"block"},v,{children:C}))),b.jsxs(yne,P({className:nt(S.root,c),ownerState:M,ref:i},w,{children:[k,C]}))}),Ane=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rx(n,o,i){return n===o?n.firstChild:o&&o.nextElementSibling?o.nextElementSibling:i?null:n.firstChild}function PI(n,o,i){return n===o?i?n.firstChild:n.lastChild:o&&o.previousElementSibling?o.previousElementSibling:i?null:n.lastChild}function IB(n,o){if(o===void 0)return!0;let i=n.innerText;return i===void 0&&(i=n.textContent),i=i.trim().toLowerCase(),i.length===0?!1:o.repeating?i[0]===o.keys[0]:i.indexOf(o.keys.join(""))===0}function c0(n,o,i,s,l,c){let d=!1,f=l(n,o,o?i:!1);for(;f;){if(f===n.firstChild){if(d)return!1;d=!0}const p=s?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!IB(f,c)||p)f=l(n,f,i);else return f.focus(),!0}return!1}const Kh=x.forwardRef(function(o,i){const{actions:s,autoFocus:l=!1,autoFocusItem:c=!1,children:d,className:f,disabledItemsFocusable:p=!1,disableListWrap:m=!1,onKeyDown:g,variant:v="selectedMenu"}=o,w=Qe(o,Ane),A=x.useRef(null),k=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yo(()=>{l&&A.current.focus()},[l]),x.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(E,{direction:j})=>{const B=!A.current.style.width;if(E.clientHeight{const j=A.current,B=E.key,F=ei(j).activeElement;if(B==="ArrowDown")E.preventDefault(),c0(j,F,m,p,rx);else if(B==="ArrowUp")E.preventDefault(),c0(j,F,m,p,PI);else if(B==="Home")E.preventDefault(),c0(j,null,m,p,rx);else if(B==="End")E.preventDefault(),c0(j,null,m,p,PI);else if(B.length===1){const O=k.current,N=B.toLowerCase(),H=performance.now();O.keys.length>0&&(H-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&N!==O.keys[0]&&(O.repeating=!1)),O.lastTime=H,O.keys.push(N);const L=F&&!O.repeating&&IB(F,O);O.previousKeyMatched&&(L||c0(j,F,!1,p,rx,O))?E.preventDefault():O.previousKeyMatched=!1}g&&g(E)},M=Xn(A,i);let S=-1;x.Children.forEach(d,(E,j)=>{if(!x.isValidElement(E)){S===j&&(S+=1,S>=d.length&&(S=-1));return}E.props.disabled||(v==="selectedMenu"&&E.props.selected||S===-1)&&(S=j),S===j&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(S+=1,S>=d.length&&(S=-1))});const I=x.Children.map(d,(E,j)=>{if(j===S){const B={};return c&&(B.autoFocus=!0),E.props.tabIndex===void 0&&v==="selectedMenu"&&(B.tabIndex=0),x.cloneElement(E,B)}return E});return b.jsx(MA,P({role:"menu",ref:M,className:f,onKeyDown:C,tabIndex:l?0:-1},w,{children:I}))});function Cne(n){return Kt("MuiPopover",n)}Yt("MuiPopover",["root","paper"]);const kne=["onEntering"],Sne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ine=["slotProps"];function jI(n,o){let i=0;return typeof o=="number"?i=o:o==="center"?i=n.height/2:o==="bottom"&&(i=n.height),i}function OI(n,o){let i=0;return typeof o=="number"?i=o:o==="center"?i=n.width/2:o==="right"&&(i=n.width),i}function RI(n){return[n.horizontal,n.vertical].map(o=>typeof o=="number"?`${o}px`:o).join(" ")}function nx(n){return typeof n=="function"?n():n}const Ene=n=>{const{classes:o}=n;return Rt({root:["root"],paper:["paper"]},Cne,o)},Mne=_e(Op,{name:"MuiPopover",slot:"Root",overridesResolver:(n,o)=>o.root})({}),EB=_e(yl,{name:"MuiPopover",slot:"Paper",overridesResolver:(n,o)=>o.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Pne=x.forwardRef(function(o,i){var s,l,c;const d=Zt({props:o,name:"MuiPopover"}),{action:f,anchorEl:p,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:v="anchorEl",children:w,className:A,container:k,elevation:C=8,marginThreshold:M=16,open:S,PaperProps:I={},slots:E,slotProps:j,transformOrigin:B={vertical:"top",horizontal:"left"},TransitionComponent:F=Cf,transitionDuration:O="auto",TransitionProps:{onEntering:N}={},disableScrollLock:H=!1}=d,L=Qe(d.TransitionProps,kne),_=Qe(d,Sne),V=(s=j==null?void 0:j.paper)!=null?s:I,$=x.useRef(),z=Xn($,V.ref),Q=P({},d,{anchorOrigin:m,anchorReference:v,elevation:C,marginThreshold:M,externalPaperSlotProps:V,transformOrigin:B,TransitionComponent:F,transitionDuration:O,TransitionProps:L}),G=Ene(Q),D=x.useCallback(()=>{if(v==="anchorPosition")return g;const Ve=nx(p),We=(Ve&&Ve.nodeType===1?Ve:ei($.current).body).getBoundingClientRect();return{top:We.top+jI(We,m.vertical),left:We.left+OI(We,m.horizontal)}},[p,m.horizontal,m.vertical,g,v]),q=x.useCallback(Ve=>({vertical:jI(Ve,B.vertical),horizontal:OI(Ve,B.horizontal)}),[B.horizontal,B.vertical]),W=x.useCallback(Ve=>{const at={width:Ve.offsetWidth,height:Ve.offsetHeight},We=q(at);if(v==="none")return{top:null,left:null,transformOrigin:RI(We)};const ue=D();let Le=ue.top-We.vertical,$e=ue.left-We.horizontal;const bt=Le+at.height,ot=$e+at.width,st=zl(nx(p)),Ze=st.innerHeight-M,dt=st.innerWidth-M;if(M!==null&&LeZe){const Xe=bt-Ze;Le-=Xe,We.vertical+=Xe}if(M!==null&&$edt){const Xe=ot-dt;$e-=Xe,We.horizontal+=Xe}return{top:`${Math.round(Le)}px`,left:`${Math.round($e)}px`,transformOrigin:RI(We)}},[p,v,D,q,M]),[X,te]=x.useState(S),se=x.useCallback(()=>{const Ve=$.current;if(!Ve)return;const at=W(Ve);at.top!==null&&(Ve.style.top=at.top),at.left!==null&&(Ve.style.left=at.left),Ve.style.transformOrigin=at.transformOrigin,te(!0)},[W]);x.useEffect(()=>(H&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se)),[p,H,se]);const de=(Ve,at)=>{N&&N(Ve,at),se()},ee=()=>{te(!1)};x.useEffect(()=>{S&&se()}),x.useImperativeHandle(f,()=>S?{updatePosition:()=>{se()}}:null,[S,se]),x.useEffect(()=>{if(!S)return;const Ve=Mf(()=>{se()}),at=zl(p);return at.addEventListener("resize",Ve),()=>{Ve.clear(),at.removeEventListener("resize",Ve)}},[p,S,se]);let fe=O;O==="auto"&&!F.muiSupportAuto&&(fe=void 0);const he=k||(p?ei(nx(p)).body:void 0),Ie=(l=E==null?void 0:E.root)!=null?l:Mne,ve=(c=E==null?void 0:E.paper)!=null?c:EB,be=Hl({elementType:ve,externalSlotProps:P({},V,{style:X?V.style:P({},V.style,{opacity:0})}),additionalProps:{elevation:C,ref:z},ownerState:Q,className:nt(G.paper,V==null?void 0:V.className)}),ke=Hl({elementType:Ie,externalSlotProps:(j==null?void 0:j.root)||{},externalForwardedProps:_,additionalProps:{ref:i,slotProps:{backdrop:{invisible:!0}},container:he,open:S},ownerState:Q,className:nt(G.root,A)}),{slotProps:ze}=ke,Ge=Qe(ke,Ine);return b.jsx(Ie,P({},Ge,!uf(Ie)&&{slotProps:ze,disableScrollLock:H},{children:b.jsx(F,P({appear:!0,in:S,onEntering:de,onExited:ee,timeout:fe},L,{children:b.jsx(ve,P({},be,{children:w}))}))}))});function jne(n){return Kt("MuiMenu",n)}Yt("MuiMenu",["root","paper","list"]);const One=["onEntering"],Rne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Bne={vertical:"top",horizontal:"right"},Tne={vertical:"top",horizontal:"left"},Fne=n=>{const{classes:o}=n;return Rt({root:["root"],paper:["paper"],list:["list"]},jne,o)},Dne=_e(Pne,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Nne=_e(EB,{name:"MuiMenu",slot:"Paper",overridesResolver:(n,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$ne=_e(Kh,{name:"MuiMenu",slot:"List",overridesResolver:(n,o)=>o.list})({outline:0}),PA=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:f,className:p,disableAutoFocusItem:m=!1,MenuListProps:g={},onClose:v,open:w,PaperProps:A={},PopoverClasses:k,transitionDuration:C="auto",TransitionProps:{onEntering:M}={},variant:S="selectedMenu",slots:I={},slotProps:E={}}=c,j=Qe(c.TransitionProps,One),B=Qe(c,Rne),F=Md(),O=P({},c,{autoFocus:d,disableAutoFocusItem:m,MenuListProps:g,onEntering:M,PaperProps:A,transitionDuration:C,TransitionProps:j,variant:S}),N=Fne(O),H=d&&!m&&w,L=x.useRef(null),_=(q,W)=>{L.current&&L.current.adjustStyleForScrollbar(q,{direction:F?"rtl":"ltr"}),M&&M(q,W)},V=q=>{q.key==="Tab"&&(q.preventDefault(),v&&v(q,"tabKeyDown"))};let $=-1;x.Children.map(f,(q,W)=>{x.isValidElement(q)&&(q.props.disabled||(S==="selectedMenu"&&q.props.selected||$===-1)&&($=W))});const z=(s=I.paper)!=null?s:Nne,Q=(l=E.paper)!=null?l:A,G=Hl({elementType:I.root,externalSlotProps:E.root,ownerState:O,className:[N.root,p]}),D=Hl({elementType:z,externalSlotProps:Q,ownerState:O,className:N.paper});return b.jsx(Dne,P({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Bne:Tne,slots:{paper:z,root:I.root},slotProps:{root:G,paper:D},open:w,ref:i,transitionDuration:C,TransitionProps:P({onEntering:_},j),ownerState:O},B,{classes:k,children:b.jsx($ne,P({onKeyDown:V,actions:L,autoFocus:d&&($===-1||m),autoFocusItem:H,variant:S},g,{className:nt(N.list,g.className),children:f}))}))});function Lne(n){return Kt("MuiMenuItem",n)}const u0=Yt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zne=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hne=(n,o)=>{const{ownerState:i}=n;return[o.root,i.dense&&o.dense,i.divider&&o.divider,!i.disableGutters&&o.gutters]},Une=n=>{const{disabled:o,dense:i,divider:s,disableGutters:l,selected:c,classes:d}=n,p=Rt({root:["root",i&&"dense",o&&"disabled",!l&&"gutters",s&&"divider",c&&"selected"]},Lne,d);return P({},d,p)},Gne=_e(Gc,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Hne})(({theme:n,ownerState:o})=>P({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.divider&&{borderBottom:`1px solid ${(n.vars||n).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${u0.selected}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),[`&.${u0.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}},[`&.${u0.selected}:hover`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity)}},[`&.${u0.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`&.${u0.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity},[`& + .${mI.root}`]:{marginTop:n.spacing(1),marginBottom:n.spacing(1)},[`& + .${mI.inset}`]:{marginLeft:52},[`& .${c3.root}`]:{marginTop:0,marginBottom:0},[`& .${c3.inset}`]:{paddingLeft:36},[`& .${MI.root}`]:{minWidth:36}},!o.dense&&{[n.breakpoints.up("sm")]:{minHeight:"auto"}},o.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,{[`& .${MI.root} svg`]:{fontSize:"1.25rem"}}))),uo=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:d=!1,divider:f=!1,disableGutters:p=!1,focusVisibleClassName:m,role:g="menuitem",tabIndex:v,className:w}=s,A=Qe(s,zne),k=x.useContext(mu),C=x.useMemo(()=>({dense:d||k.dense||!1,disableGutters:p}),[k.dense,d,p]),M=x.useRef(null);yo(()=>{l&&M.current&&M.current.focus()},[l]);const S=P({},s,{dense:C.dense,divider:f,disableGutters:p}),I=Une(s),E=Xn(M,i);let j;return s.disabled||(j=v!==void 0?v:-1),b.jsx(mu.Provider,{value:C,children:b.jsx(Gne,P({ref:E,role:g,tabIndex:j,component:c,focusVisibleClassName:nt(I.focusVisible,m),className:nt(I.root,w)},A,{ownerState:S,classes:I}))})});function Vne(n){return Kt("MuiNativeSelect",n)}const jA=Yt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Qne=["className","disabled","error","IconComponent","inputRef","variant"],Wne=n=>{const{classes:o,variant:i,disabled:s,multiple:l,open:c,error:d}=n,f={select:["select",i,s&&"disabled",l&&"multiple",d&&"error"],icon:["icon",`icon${Ke(i)}`,c&&"iconOpen",s&&"disabled"]};return Rt(f,Vne,o)},MB=({ownerState:n,theme:o})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${jA.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},n.variant==="filled"&&{"&&&":{paddingRight:32}},n.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),qne=_e("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:es,overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.select,o[i.variant],i.error&&o.error,{[`&.${jA.multiple}`]:o.multiple}]}})(MB),PB=({ownerState:n,theme:o})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${jA.disabled}`]:{color:(o.vars||o).palette.action.disabled}},n.open&&{transform:"rotate(180deg)"},n.variant==="filled"&&{right:7},n.variant==="outlined"&&{right:7}),_ne=_e("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.icon,i.variant&&o[`icon${Ke(i.variant)}`],i.open&&o.iconOpen]}})(PB),Yne=x.forwardRef(function(o,i){const{className:s,disabled:l,error:c,IconComponent:d,inputRef:f,variant:p="standard"}=o,m=Qe(o,Qne),g=P({},o,{disabled:l,variant:p,error:c}),v=Wne(g);return b.jsxs(x.Fragment,{children:[b.jsx(qne,P({ownerState:g,className:nt(v.select,s),disabled:l,ref:f||i},m)),o.multiple?null:b.jsx(_ne,{as:d,ownerState:g,className:v.icon})]})});var BI;const Kne=["children","classes","className","label","notched"],Xne=_e("fieldset",{shouldForwardProp:es})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Jne=_e("legend",{shouldForwardProp:es})(({ownerState:n,theme:o})=>P({float:"unset",width:"auto",overflow:"hidden"},!n.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},n.withLabel&&P({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},n.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function Zne(n){const{className:o,label:i,notched:s}=n,l=Qe(n,Kne),c=i!=null&&i!=="",d=P({},n,{notched:s,withLabel:c});return b.jsx(Xne,P({"aria-hidden":!0,className:o,ownerState:d},l,{children:b.jsx(Jne,{ownerState:d,children:c?b.jsx("span",{children:i}):BI||(BI=b.jsx("span",{className:"notranslate",children:"​"}))})}))}const eoe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],toe=n=>{const{classes:o}=n,s=Rt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sZ,o);return P({},o,s)},roe=_e(Fb,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bb})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(n.vars||n).shape.borderRadius,[`&:hover .${Cc.notchedOutline}`]:{borderColor:(n.vars||n).palette.text.primary},"@media (hover: none)":{[`&:hover .${Cc.notchedOutline}`]:{borderColor:n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:i}},[`&.${Cc.focused} .${Cc.notchedOutline}`]:{borderColor:(n.vars||n).palette[o.color].main,borderWidth:2},[`&.${Cc.error} .${Cc.notchedOutline}`]:{borderColor:(n.vars||n).palette.error.main},[`&.${Cc.disabled} .${Cc.notchedOutline}`]:{borderColor:(n.vars||n).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&P({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),noe=_e(Zne,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(n,o)=>o.notchedOutline})(({theme:n})=>{const o=n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),ooe=_e(Db,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tb})(({theme:n,ownerState:o})=>P({padding:"16.5px 14px"},!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:n.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:n.palette.mode==="light"?null:"#fff",caretColor:n.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},n.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[n.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),Id=x.forwardRef(function(o,i){var s,l,c,d,f;const p=Zt({props:o,name:"MuiOutlinedInput"}),{components:m={},fullWidth:g=!1,inputComponent:v="input",label:w,multiline:A=!1,notched:k,slots:C={},type:M="text"}=p,S=Qe(p,eoe),I=toe(p),E=Wc(),j=Nd({props:p,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B=P({},p,{color:j.color||"primary",disabled:j.disabled,error:j.error,focused:j.focused,formControl:E,fullWidth:g,hiddenLabel:j.hiddenLabel,multiline:A,size:j.size,type:M}),F=(s=(l=C.root)!=null?l:m.Root)!=null?s:roe,O=(c=(d=C.input)!=null?d:m.Input)!=null?c:ooe;return b.jsx(jp,P({slots:{root:F,input:O},renderSuffix:N=>b.jsx(noe,{ownerState:B,className:I.notchedOutline,label:w!=null&&w!==""&&j.required?f||(f=b.jsxs(x.Fragment,{children:[w," ","*"]})):w,notched:typeof k<"u"?k:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:g,inputComponent:v,multiline:A,ref:i,type:M},S,{classes:P({},I,{notchedOutline:null})}))});Id.muiName="Input";function ioe(n){return Kt("MuiPagination",n)}Yt("MuiPagination",["root","ul","outlined","text"]);const aoe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function soe(n={}){const{boundaryCount:o=1,componentName:i="usePagination",count:s=1,defaultPage:l=1,disabled:c=!1,hideNextButton:d=!1,hidePrevButton:f=!1,onChange:p,page:m,showFirstButton:g=!1,showLastButton:v=!1,siblingCount:w=1}=n,A=Qe(n,aoe),[k,C]=Rc({controlled:m,default:l,name:i,state:"page"}),M=(H,L)=>{m||C(L),p&&p(H,L)},S=(H,L)=>{const _=L-H+1;return Array.from({length:_},(V,$)=>H+$)},I=S(1,Math.min(o,s)),E=S(Math.max(s-o+1,o+1),s),j=Math.max(Math.min(k-w,s-o-w*2-1),o+2),B=Math.min(Math.max(k+w,o+w*2+2),E.length>0?E[0]-2:s-1),F=[...g?["first"]:[],...f?[]:["previous"],...I,...j>o+2?["start-ellipsis"]:o+1o?[s-o]:[],...E,...d?[]:["next"],...v?["last"]:[]],O=H=>{switch(H){case"first":return 1;case"previous":return k-1;case"next":return k+1;case"last":return s;default:return null}},N=F.map(H=>typeof H=="number"?{onClick:L=>{M(L,H)},type:"page",page:H,selected:H===k,disabled:c,"aria-current":H===k?"true":void 0}:{onClick:L=>{M(L,O(H))},type:H,page:O(H),selected:!1,disabled:c||H.indexOf("ellipsis")===-1&&(H==="next"||H==="last"?k>=s:k<=1)});return P({items:N},A)}function loe(n){return Kt("MuiPaginationItem",n)}const r1=Yt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Ky=_r(b.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Xy=_r(b.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),TI=_r(b.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),FI=_r(b.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),coe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],jB=(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`size${Ke(i.size)}`],i.variant==="text"&&o[`text${Ke(i.color)}`],i.variant==="outlined"&&o[`outlined${Ke(i.color)}`],i.shape==="rounded"&&o.rounded,i.type==="page"&&o.page,(i.type==="start-ellipsis"||i.type==="end-ellipsis")&&o.ellipsis,(i.type==="previous"||i.type==="next")&&o.previousNext,(i.type==="first"||i.type==="last")&&o.firstLast]},uoe=n=>{const{classes:o,color:i,disabled:s,selected:l,size:c,shape:d,type:f,variant:p}=n,m={root:["root",`size${Ke(c)}`,p,d,i!=="standard"&&`color${Ke(i)}`,i!=="standard"&&`${p}${Ke(i)}`,s&&"disabled",l&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[f]],icon:["icon"]};return Rt(m,loe,o)},doe=_e("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:jB})(({theme:n,ownerState:o})=>P({},n.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(n.vars||n).palette.text.primary,height:"auto",[`&.${r1.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity}},o.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},o.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:n.typography.pxToRem(15)})),foe=_e(Gc,{name:"MuiPaginationItem",slot:"Root",overridesResolver:jB})(({theme:n,ownerState:o})=>P({},n.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(n.vars||n).palette.text.primary,[`&.${r1.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`&.${r1.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity},transition:n.transitions.create(["color","background-color"],{duration:n.transitions.duration.short}),"&:hover":{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r1.selected}`]:{backgroundColor:(n.vars||n).palette.action.selected,"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}},[`&.${r1.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)},[`&.${r1.disabled}`]:{opacity:1,color:(n.vars||n).palette.action.disabled,backgroundColor:(n.vars||n).palette.action.selected}}},o.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},o.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:n.typography.pxToRem(15)},o.shape==="rounded"&&{borderRadius:(n.vars||n).shape.borderRadius}),({theme:n,ownerState:o})=>P({},o.variant==="text"&&{[`&.${r1.selected}`]:P({},o.color!=="standard"&&{color:(n.vars||n).palette[o.color].contrastText,backgroundColor:(n.vars||n).palette[o.color].main,"&:hover":{backgroundColor:(n.vars||n).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[o.color].main}},[`&.${r1.focusVisible}`]:{backgroundColor:(n.vars||n).palette[o.color].dark}},{[`&.${r1.disabled}`]:{color:(n.vars||n).palette.action.disabled}})},o.variant==="outlined"&&{border:n.vars?`1px solid rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${r1.selected}`]:P({},o.color!=="standard"&&{color:(n.vars||n).palette[o.color].main,border:`1px solid ${n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.5)`:Lr(n.palette[o.color].main,.5)}`,backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.activatedOpacity})`:Lr(n.palette[o.color].main,n.palette.action.activatedOpacity),"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / calc(${n.vars.palette.action.activatedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette[o.color].main,n.palette.action.activatedOpacity+n.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r1.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / calc(${n.vars.palette.action.activatedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette[o.color].main,n.palette.action.activatedOpacity+n.palette.action.focusOpacity)}},{[`&.${r1.disabled}`]:{borderColor:(n.vars||n).palette.action.disabledBackground,color:(n.vars||n).palette.action.disabled}})})),poe=_e("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(n,o)=>o.icon})(({theme:n,ownerState:o})=>P({fontSize:n.typography.pxToRem(20),margin:"0 -8px"},o.size==="small"&&{fontSize:n.typography.pxToRem(18)},o.size==="large"&&{fontSize:n.typography.pxToRem(22)})),OA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiPaginationItem"}),{className:l,color:c="standard",component:d,components:f={},disabled:p=!1,page:m,selected:g=!1,shape:v="circular",size:w="medium",slots:A={},type:k="page",variant:C="text"}=s,M=Qe(s,coe),S=P({},s,{color:c,disabled:p,selected:g,shape:v,size:w,type:k,variant:C}),I=Md(),E=uoe(S),B=(I?{previous:A.next||f.next||FI,next:A.previous||f.previous||TI,last:A.first||f.first||Ky,first:A.last||f.last||Xy}:{previous:A.previous||f.previous||TI,next:A.next||f.next||FI,first:A.first||f.first||Ky,last:A.last||f.last||Xy})[k];return k==="start-ellipsis"||k==="end-ellipsis"?b.jsx(doe,{ref:i,ownerState:S,className:nt(E.root,l),children:"…"}):b.jsxs(foe,P({ref:i,ownerState:S,component:d,disabled:p,className:nt(E.root,l)},M,{children:[k==="page"&&m,B?b.jsx(poe,{as:B,ownerState:S,className:E.icon}):null]}))}),hoe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],moe=n=>{const{classes:o,variant:i}=n;return Rt({root:["root",i],ul:["ul"]},ioe,o)},goe=_e("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant]]}})({}),voe=_e("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(n,o)=>o.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function boe(n,o,i){return n==="page"?`${i?"":"Go to "}page ${o}`:`Go to ${n} page`}const RA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiPagination"}),{boundaryCount:l=1,className:c,color:d="standard",count:f=1,defaultPage:p=1,disabled:m=!1,getItemAriaLabel:g=boe,hideNextButton:v=!1,hidePrevButton:w=!1,renderItem:A=N=>b.jsx(OA,P({},N)),shape:k="circular",showFirstButton:C=!1,showLastButton:M=!1,siblingCount:S=1,size:I="medium",variant:E="text"}=s,j=Qe(s,hoe),{items:B}=soe(P({},s,{componentName:"Pagination"})),F=P({},s,{boundaryCount:l,color:d,count:f,defaultPage:p,disabled:m,getItemAriaLabel:g,hideNextButton:v,hidePrevButton:w,renderItem:A,shape:k,showFirstButton:C,showLastButton:M,siblingCount:S,size:I,variant:E}),O=moe(F);return b.jsx(goe,P({"aria-label":"pagination navigation",className:nt(O.root,c),ownerState:F,ref:i},j,{children:b.jsx(voe,{className:O.ul,ownerState:F,children:B.map((N,H)=>b.jsx("li",{children:A(P({},N,{color:d,"aria-label":g(N.type,N.page,N.selected),shape:k,size:I,variant:E}))},H))})}))}),woe=_r(b.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),xoe=_r(b.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),yoe=_e("span",{shouldForwardProp:es})({position:"relative",display:"flex"}),Aoe=_e(woe)({transform:"scale(1)"}),Coe=_e(xoe)(({theme:n,ownerState:o})=>P({left:0,position:"absolute",transform:"scale(0)",transition:n.transitions.create("transform",{easing:n.transitions.easing.easeIn,duration:n.transitions.duration.shortest})},o.checked&&{transform:"scale(1)",transition:n.transitions.create("transform",{easing:n.transitions.easing.easeOut,duration:n.transitions.duration.shortest})}));function OB(n){const{checked:o=!1,classes:i={},fontSize:s}=n,l=P({},n,{checked:o});return b.jsxs(yoe,{className:i.root,ownerState:l,children:[b.jsx(Aoe,{fontSize:s,className:i.background,ownerState:l}),b.jsx(Coe,{fontSize:s,className:i.dot,ownerState:l})]})}const RB=x.createContext(void 0);function koe(){return x.useContext(RB)}function Soe(n){return Kt("MuiRadio",n)}const DI=Yt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Ioe=["checked","checkedIcon","color","icon","name","onChange","size","className"],Eoe=n=>{const{classes:o,color:i,size:s}=n,l={root:["root",`color${Ke(i)}`,s!=="medium"&&`size${Ke(s)}`]};return P({},o,Rt(l,Soe,o))},Moe=_e(yA,{shouldForwardProp:n=>es(n)||n==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.size!=="medium"&&o[`size${Ke(i.size)}`],o[`color${Ke(i.color)}`]]}})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?`rgba(${o.color==="default"?n.vars.palette.action.activeChannel:n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(o.color==="default"?n.palette.action.active:n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${DI.checked}`]:{color:(n.vars||n).palette[o.color].main}},{[`&.${DI.disabled}`]:{color:(n.vars||n).palette.action.disabled}}));function Poe(n,o){return typeof o=="object"&&o!==null?n===o:String(n)===String(o)}const NI=b.jsx(OB,{checked:!0}),$I=b.jsx(OB,{}),ox=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiRadio"}),{checked:d,checkedIcon:f=NI,color:p="primary",icon:m=$I,name:g,onChange:v,size:w="medium",className:A}=c,k=Qe(c,Ioe),C=P({},c,{color:p,size:w}),M=Eoe(C),S=koe();let I=d;const E=yv(v,S&&S.onChange);let j=g;return S&&(typeof I>"u"&&(I=Poe(S.value,c.value)),typeof j>"u"&&(j=S.name)),b.jsx(Moe,P({type:"radio",icon:x.cloneElement(m,{fontSize:(s=$I.props.fontSize)!=null?s:w}),checkedIcon:x.cloneElement(f,{fontSize:(l=NI.props.fontSize)!=null?l:w}),ownerState:C,classes:M,name:j,checked:I,onChange:E,ref:i,className:nt(M.root,A)},k))});function joe(n){return Kt("MuiRadioGroup",n)}Yt("MuiRadioGroup",["root","row","error"]);const Ooe=["actions","children","className","defaultValue","name","onChange","value"],Roe=n=>{const{classes:o,row:i,error:s}=n;return Rt({root:["root",i&&"row",s&&"error"]},joe,o)},Boe=x.forwardRef(function(o,i){const{actions:s,children:l,className:c,defaultValue:d,name:f,onChange:p,value:m}=o,g=Qe(o,Ooe),v=x.useRef(null),w=Roe(o),[A,k]=Rc({controlled:m,default:d,name:"RadioGroup"});x.useImperativeHandle(s,()=>({focus:()=>{let I=v.current.querySelector("input:not(:disabled):checked");I||(I=v.current.querySelector("input:not(:disabled)")),I&&I.focus()}}),[]);const C=Xn(i,v),M=Ro(f),S=x.useMemo(()=>({name:M,onChange(I){k(I.target.value),p&&p(I,I.target.value)},value:A}),[M,p,k,A]);return b.jsx(RB.Provider,{value:S,children:b.jsx(tre,P({role:"radiogroup",ref:C,className:nt(w.root,c)},g,{children:l}))})});function Toe(n){return Kt("MuiSelect",n)}const d0=Yt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var LI;const Foe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Doe=_e("div",{name:"MuiSelect",slot:"Select",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`&.${d0.select}`]:o.select},{[`&.${d0.select}`]:o[i.variant]},{[`&.${d0.error}`]:o.error},{[`&.${d0.multiple}`]:o.multiple}]}})(MB,{[`&.${d0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Noe=_e("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.icon,i.variant&&o[`icon${Ke(i.variant)}`],i.open&&o.iconOpen]}})(PB),$oe=_e("input",{shouldForwardProp:n=>XO(n)&&n!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(n,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zI(n,o){return typeof o=="object"&&o!==null?n===o:String(n)===String(o)}function Loe(n){return n==null||typeof n=="string"&&!n.trim()}const zoe=n=>{const{classes:o,variant:i,disabled:s,multiple:l,open:c,error:d}=n,f={select:["select",i,s&&"disabled",l&&"multiple",d&&"error"],icon:["icon",`icon${Ke(i)}`,c&&"iconOpen",s&&"disabled"],nativeInput:["nativeInput"]};return Rt(f,Toe,o)},Hoe=x.forwardRef(function(o,i){var s;const{"aria-describedby":l,"aria-label":c,autoFocus:d,autoWidth:f,children:p,className:m,defaultOpen:g,defaultValue:v,disabled:w,displayEmpty:A,error:k=!1,IconComponent:C,inputRef:M,labelId:S,MenuProps:I={},multiple:E,name:j,onBlur:B,onChange:F,onClose:O,onFocus:N,onOpen:H,open:L,readOnly:_,renderValue:V,SelectDisplayProps:$={},tabIndex:z,value:Q,variant:G="standard"}=o,D=Qe(o,Foe),[q,W]=Rc({controlled:Q,default:v,name:"Select"}),[X,te]=Rc({controlled:L,default:g,name:"Select"}),se=x.useRef(null),de=x.useRef(null),[ee,fe]=x.useState(null),{current:he}=x.useRef(L!=null),[Ie,ve]=x.useState(),be=Xn(i,M),ke=x.useCallback(ht=>{de.current=ht,ht&&fe(ht)},[]),ze=ee==null?void 0:ee.parentNode;x.useImperativeHandle(be,()=>({focus:()=>{de.current.focus()},node:se.current,value:q}),[q]),x.useEffect(()=>{g&&X&&ee&&!he&&(ve(f?null:ze.clientWidth),de.current.focus())},[ee,f]),x.useEffect(()=>{d&&de.current.focus()},[d]),x.useEffect(()=>{if(!S)return;const ht=ei(de.current).getElementById(S);if(ht){const xt=()=>{getSelection().isCollapsed&&de.current.focus()};return ht.addEventListener("click",xt),()=>{ht.removeEventListener("click",xt)}}},[S]);const Ge=(ht,xt)=>{ht?H&&H(xt):O&&O(xt),he||(ve(f?null:ze.clientWidth),te(ht))},Ve=ht=>{ht.button===0&&(ht.preventDefault(),de.current.focus(),Ge(!0,ht))},at=ht=>{Ge(!1,ht)},We=x.Children.toArray(p),ue=ht=>{const xt=We.find(tt=>tt.props.value===ht.target.value);xt!==void 0&&(W(xt.props.value),F&&F(ht,xt))},Le=ht=>xt=>{let tt;if(xt.currentTarget.hasAttribute("tabindex")){if(E){tt=Array.isArray(q)?q.slice():[];const Y=q.indexOf(ht.props.value);Y===-1?tt.push(ht.props.value):tt.splice(Y,1)}else tt=ht.props.value;if(ht.props.onClick&&ht.props.onClick(xt),q!==tt&&(W(tt),F)){const Y=xt.nativeEvent||xt,re=new Y.constructor(Y.type,Y);Object.defineProperty(re,"target",{writable:!0,value:{value:tt,name:j}}),F(re,ht)}E||Ge(!1,xt)}},$e=ht=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ht.key)!==-1&&(ht.preventDefault(),Ge(!0,ht))},bt=ee!==null&&X,ot=ht=>{!bt&&B&&(Object.defineProperty(ht,"target",{writable:!0,value:{value:q,name:j}}),B(ht))};delete D["aria-invalid"];let st,Ze;const dt=[];let Xe=!1;(a3({value:q})||A)&&(V?st=V(q):Xe=!0);const Pt=We.map(ht=>{if(!x.isValidElement(ht))return null;let xt;if(E){if(!Array.isArray(q))throw new Error(bu(2));xt=q.some(tt=>zI(tt,ht.props.value)),xt&&Xe&&dt.push(ht.props.children)}else xt=zI(q,ht.props.value),xt&&Xe&&(Ze=ht.props.children);return x.cloneElement(ht,{"aria-selected":xt?"true":"false",onClick:Le(ht),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),ht.props.onKeyUp&&ht.props.onKeyUp(tt)},role:"option",selected:xt,value:void 0,"data-value":ht.props.value})});Xe&&(E?dt.length===0?st=null:st=dt.reduce((ht,xt,tt)=>(ht.push(xt),tt{const{classes:o}=n;return o},BA={name:"MuiSelect",overridesResolver:(n,o)=>o.root,shouldForwardProp:n=>es(n)&&n!=="variant",slot:"Root"},Qoe=_e(IA,BA)(""),Woe=_e(Id,BA)(""),qoe=_e(SA,BA)(""),zc=x.forwardRef(function(o,i){const s=Zt({name:"MuiSelect",props:o}),{autoWidth:l=!1,children:c,classes:d={},className:f,defaultOpen:p=!1,displayEmpty:m=!1,IconComponent:g=pB,id:v,input:w,inputProps:A,label:k,labelId:C,MenuProps:M,multiple:S=!1,native:I=!1,onClose:E,onOpen:j,open:B,renderValue:F,SelectDisplayProps:O,variant:N="outlined"}=s,H=Qe(s,Uoe),L=I?Yne:Hoe,_=Wc(),V=Nd({props:s,muiFormControl:_,states:["variant","error"]}),$=V.variant||N,z=P({},s,{variant:$,classes:d}),Q=Voe(z),G=Qe(Q,Goe),D=w||{standard:b.jsx(Qoe,{ownerState:z}),outlined:b.jsx(Woe,{label:k,ownerState:z}),filled:b.jsx(qoe,{ownerState:z})}[$],q=Xn(i,D.ref);return b.jsx(x.Fragment,{children:x.cloneElement(D,P({inputComponent:L,inputProps:P({children:c,error:V.error,IconComponent:g,variant:$,type:void 0,multiple:S},I?{id:v}:{autoWidth:l,defaultOpen:p,displayEmpty:m,labelId:C,MenuProps:M,onClose:E,onOpen:j,open:B,renderValue:F,SelectDisplayProps:P({id:v},O)},A,{classes:A?Ks(G,A.classes):G},w?w.props.inputProps:{})},(S&&I||m)&&$==="outlined"?{notched:!0}:{},{ref:q,className:nt(D.props.className,f,Q.root)},!w&&{variant:$},H))})});zc.muiName="Select";function _oe(n){return Kt("MuiSkeleton",n)}Yt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Yoe=["animation","className","component","height","style","variant","width"];let u3=n=>n,HI,UI,GI,VI;const Koe=n=>{const{classes:o,variant:i,animation:s,hasChildren:l,width:c,height:d}=n;return Rt({root:["root",i,s,l&&"withChildren",l&&!c&&"fitContent",l&&!d&&"heightAuto"]},_oe,o)},Xoe=cc(HI||(HI=u3` + `),nne)),une=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiLinearProgress"}),{className:l,color:c="primary",value:d,valueBuffer:f,variant:p="indeterminate"}=s,m=Qe(s,tne),g=P({},s,{color:c,variant:p}),v=ine(g),w=Id(),A={},k={bar1:{},bar2:{}};if((p==="determinate"||p==="buffer")&&d!==void 0){A["aria-valuenow"]=Math.round(d),A["aria-valuemin"]=0,A["aria-valuemax"]=100;let C=d-100;w&&(C=-C),k.bar1.transform=`translateX(${C}%)`}if(p==="buffer"&&f!==void 0){let C=(f||0)-100;w&&(C=-C),k.bar2.transform=`translateX(${C}%)`}return b.jsxs(ane,P({className:nt(v.root,l),ownerState:g,role:"progressbar"},A,{ref:i},m,{children:[p==="buffer"?b.jsx(sne,{className:v.dashed,ownerState:g}):null,b.jsx(lne,{className:v.bar1,ownerState:g,style:k.bar1}),p==="determinate"?null:b.jsx(cne,{className:v.bar2,ownerState:g,style:k.bar2})]}))}),hu=x.createContext({});function dne(n){return Kt("MuiList",n)}Yt("MuiList",["root","padding","dense","subheader"]);const fne=["children","className","component","dense","disablePadding","subheader"],pne=n=>{const{classes:o,disablePadding:i,dense:s,subheader:l}=n;return Bt({root:["root",!i&&"padding",s&&"dense",l&&"subheader"]},dne,o)},hne=_e("ul",{name:"MuiList",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.disablePadding&&o.padding,i.dense&&o.dense,i.subheader&&o.subheader]}})(({ownerState:n})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!n.disablePadding&&{paddingTop:8,paddingBottom:8},n.subheader&&{paddingTop:0})),PA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiList"}),{children:l,className:c,component:d="ul",dense:f=!1,disablePadding:p=!1,subheader:m}=s,g=Qe(s,fne),v=x.useMemo(()=>({dense:f}),[f]),w=P({},s,{component:d,dense:f,disablePadding:p}),A=pne(w);return b.jsx(hu.Provider,{value:v,children:b.jsxs(hne,P({as:d,className:nt(A.root,c),ref:i,ownerState:w},g,{children:[m,l]}))})});function mne(n){return Kt("MuiListItem",n)}const a2=Yt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gne=Yt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function vne(n){return Kt("MuiListItemSecondaryAction",n)}Yt("MuiListItemSecondaryAction",["root","disableGutters"]);const bne=["className"],wne=n=>{const{disableGutters:o,classes:i}=n;return Bt({root:["root",o&&"disableGutters"]},vne,i)},xne=_e("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.disableGutters&&o.disableGutters]}})(({ownerState:n})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},n.disableGutters&&{right:0})),OB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItemSecondaryAction"}),{className:l}=s,c=Qe(s,bne),d=x.useContext(hu),f=P({},s,{disableGutters:d.disableGutters}),p=wne(f);return b.jsx(xne,P({className:nt(p.root,l),ownerState:f,ref:i},c))});OB.muiName="ListItemSecondaryAction";const yne=["className"],Ane=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Cne=(n,o)=>{const{ownerState:i}=n;return[o.root,i.dense&&o.dense,i.alignItems==="flex-start"&&o.alignItemsFlexStart,i.divider&&o.divider,!i.disableGutters&&o.gutters,!i.disablePadding&&o.padding,i.button&&o.button,i.hasSecondaryAction&&o.secondaryAction]},kne=n=>{const{alignItems:o,button:i,classes:s,dense:l,disabled:c,disableGutters:d,disablePadding:f,divider:p,hasSecondaryAction:m,selected:g}=n;return Bt({root:["root",l&&"dense",!d&&"gutters",!f&&"padding",p&&"divider",c&&"disabled",i&&"button",o==="flex-start"&&"alignItemsFlexStart",m&&"secondaryAction",g&&"selected"],container:["container"]},mne,s)},Sne=_e("div",{name:"MuiListItem",slot:"Root",overridesResolver:Cne})(({theme:n,ownerState:o})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!o.disablePadding&&P({paddingTop:8,paddingBottom:8},o.dense&&{paddingTop:4,paddingBottom:4},!o.disableGutters&&{paddingLeft:16,paddingRight:16},!!o.secondaryAction&&{paddingRight:48}),!!o.secondaryAction&&{[`& > .${gne.root}`]:{paddingRight:48}},{[`&.${a2.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`&.${a2.selected}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),[`&.${a2.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}},[`&.${a2.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity}},o.alignItems==="flex-start"&&{alignItems:"flex-start"},o.divider&&{borderBottom:`1px solid ${(n.vars||n).palette.divider}`,backgroundClip:"padding-box"},o.button&&{transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${a2.selected}:hover`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity)}}},o.hasSecondaryAction&&{paddingRight:48})),Ine=_e("li",{name:"MuiListItem",slot:"Container",overridesResolver:(n,o)=>o.container})({position:"relative"}),Gu=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItem"}),{alignItems:l="center",autoFocus:c=!1,button:d=!1,children:f,className:p,component:m,components:g={},componentsProps:v={},ContainerComponent:w="li",ContainerProps:{className:A}={},dense:k=!1,disabled:C=!1,disableGutters:M=!1,disablePadding:S=!1,divider:I=!1,focusVisibleClassName:E,secondaryAction:j,selected:B=!1,slotProps:D={},slots:R={}}=s,N=Qe(s.ContainerProps,yne),U=Qe(s,Ane),L=x.useContext(hu),_=x.useMemo(()=>({dense:k||L.dense||!1,alignItems:l,disableGutters:M}),[l,L.dense,k,M]),V=x.useRef(null);ko(()=>{c&&V.current&&V.current.focus()},[c]);const $=x.Children.toArray(f),z=$.length&&X0($[$.length-1],["ListItemSecondaryAction"]),Q=P({},s,{alignItems:l,autoFocus:c,button:d,dense:_.dense,disabled:C,disableGutters:M,disablePadding:S,divider:I,hasSecondaryAction:z,selected:B}),G=kne(Q),F=Xn(V,i),q=R.root||g.Root||Sne,W=D.root||v.root||{},X=P({className:nt(G.root,W.className,p),disabled:C},U);let te=m||"li";return d&&(X.component=m||"div",X.focusVisibleClassName=nt(a2.focusVisible,E),te=Hc),z?(te=!X.component&&!m?"div":te,w==="li"&&(te==="li"?te="div":X.component==="li"&&(X.component="div")),b.jsx(hu.Provider,{value:_,children:b.jsxs(Ine,P({as:w,className:nt(G.container,A),ref:F,ownerState:Q},N,{children:[b.jsx(q,P({},W,!cf(q)&&{as:te,ownerState:P({},Q,W.ownerState)},X,{children:$})),$.pop()]}))})):b.jsx(hu.Provider,{value:_,children:b.jsxs(q,P({},W,{as:te,ref:F},!cf(q)&&{ownerState:P({},Q,W.ownerState)},X,{children:[$,j&&b.jsx(OB,{children:j})]}))})});function Ene(n){return Kt("MuiListItemIcon",n)}const NI=Yt("MuiListItemIcon",["root","alignItemsFlexStart"]),Mne=["className"],Pne=n=>{const{alignItems:o,classes:i}=n;return Bt({root:["root",o==="flex-start"&&"alignItemsFlexStart"]},Ene,i)},jne=_e("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.alignItems==="flex-start"&&o.alignItemsFlexStart]}})(({theme:n,ownerState:o})=>P({minWidth:56,color:(n.vars||n).palette.action.active,flexShrink:0,display:"inline-flex"},o.alignItems==="flex-start"&&{marginTop:8})),U2=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItemIcon"}),{className:l}=s,c=Qe(s,Mne),d=x.useContext(hu),f=P({},s,{alignItems:d.alignItems}),p=Pne(f);return b.jsx(jne,P({className:nt(p.root,l),ownerState:f,ref:i},c))});function One(n){return Kt("MuiListItemText",n)}const u3=Yt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Rne=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Bne=n=>{const{classes:o,inset:i,primary:s,secondary:l,dense:c}=n;return Bt({root:["root",i&&"inset",c&&"dense",s&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},One,o)},Tne=_e("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${u3.primary}`]:o.primary},{[`& .${u3.secondary}`]:o.secondary},o.root,i.inset&&o.inset,i.primary&&i.secondary&&o.multiline,i.dense&&o.dense]}})(({ownerState:n})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},n.primary&&n.secondary&&{marginTop:6,marginBottom:6},n.inset&&{paddingLeft:56})),qs=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiListItemText"}),{children:l,className:c,disableTypography:d=!1,inset:f=!1,primary:p,primaryTypographyProps:m,secondary:g,secondaryTypographyProps:v}=s,w=Qe(s,Rne),{dense:A}=x.useContext(hu);let k=p??l,C=g;const M=P({},s,{disableTypography:d,inset:f,primary:!!k,secondary:!!C,dense:A}),S=Bne(M);return k!=null&&k.type!==Rt&&!d&&(k=b.jsx(Rt,P({variant:A?"body2":"body1",className:S.primary,component:m!=null&&m.variant?void 0:"span",display:"block"},m,{children:k}))),C!=null&&C.type!==Rt&&!d&&(C=b.jsx(Rt,P({variant:"body2",className:S.secondary,color:"text.secondary",display:"block"},v,{children:C}))),b.jsxs(Tne,P({className:nt(S.root,c),ownerState:M,ref:i},w,{children:[k,C]}))}),Fne=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ox(n,o,i){return n===o?n.firstChild:o&&o.nextElementSibling?o.nextElementSibling:i?null:n.firstChild}function $I(n,o,i){return n===o?i?n.firstChild:n.lastChild:o&&o.previousElementSibling?o.previousElementSibling:i?null:n.lastChild}function RB(n,o){if(o===void 0)return!0;let i=n.innerText;return i===void 0&&(i=n.textContent),i=i.trim().toLowerCase(),i.length===0?!1:o.repeating?i[0]===o.keys[0]:i.indexOf(o.keys.join(""))===0}function l0(n,o,i,s,l,c){let d=!1,f=l(n,o,o?i:!1);for(;f;){if(f===n.firstChild){if(d)return!1;d=!0}const p=s?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!RB(f,c)||p)f=l(n,f,i);else return f.focus(),!0}return!1}const _h=x.forwardRef(function(o,i){const{actions:s,autoFocus:l=!1,autoFocusItem:c=!1,children:d,className:f,disabledItemsFocusable:p=!1,disableListWrap:m=!1,onKeyDown:g,variant:v="selectedMenu"}=o,w=Qe(o,Fne),A=x.useRef(null),k=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ko(()=>{l&&A.current.focus()},[l]),x.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(E,{direction:j})=>{const B=!A.current.style.width;if(E.clientHeight{const j=A.current,B=E.key,D=ri(j).activeElement;if(B==="ArrowDown")E.preventDefault(),l0(j,D,m,p,ox);else if(B==="ArrowUp")E.preventDefault(),l0(j,D,m,p,$I);else if(B==="Home")E.preventDefault(),l0(j,null,m,p,ox);else if(B==="End")E.preventDefault(),l0(j,null,m,p,$I);else if(B.length===1){const R=k.current,N=B.toLowerCase(),U=performance.now();R.keys.length>0&&(U-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&N!==R.keys[0]&&(R.repeating=!1)),R.lastTime=U,R.keys.push(N);const L=D&&!R.repeating&&RB(D,R);R.previousKeyMatched&&(L||l0(j,D,!1,p,ox,R))?E.preventDefault():R.previousKeyMatched=!1}g&&g(E)},M=Xn(A,i);let S=-1;x.Children.forEach(d,(E,j)=>{if(!x.isValidElement(E)){S===j&&(S+=1,S>=d.length&&(S=-1));return}E.props.disabled||(v==="selectedMenu"&&E.props.selected||S===-1)&&(S=j),S===j&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(S+=1,S>=d.length&&(S=-1))});const I=x.Children.map(d,(E,j)=>{if(j===S){const B={};return c&&(B.autoFocus=!0),E.props.tabIndex===void 0&&v==="selectedMenu"&&(B.tabIndex=0),x.cloneElement(E,B)}return E});return b.jsx(PA,P({role:"menu",ref:M,className:f,onKeyDown:C,tabIndex:l?0:-1},w,{children:I}))});function Dne(n){return Kt("MuiPopover",n)}Yt("MuiPopover",["root","paper"]);const Nne=["onEntering"],$ne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Lne=["slotProps"];function LI(n,o){let i=0;return typeof o=="number"?i=o:o==="center"?i=n.height/2:o==="bottom"&&(i=n.height),i}function zI(n,o){let i=0;return typeof o=="number"?i=o:o==="center"?i=n.width/2:o==="right"&&(i=n.width),i}function HI(n){return[n.horizontal,n.vertical].map(o=>typeof o=="number"?`${o}px`:o).join(" ")}function ix(n){return typeof n=="function"?n():n}const zne=n=>{const{classes:o}=n;return Bt({root:["root"],paper:["paper"]},Dne,o)},Hne=_e(Om,{name:"MuiPopover",slot:"Root",overridesResolver:(n,o)=>o.root})({}),BB=_e(Js,{name:"MuiPopover",slot:"Paper",overridesResolver:(n,o)=>o.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Une=x.forwardRef(function(o,i){var s,l,c;const d=Zt({props:o,name:"MuiPopover"}),{action:f,anchorEl:p,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:v="anchorEl",children:w,className:A,container:k,elevation:C=8,marginThreshold:M=16,open:S,PaperProps:I={},slots:E,slotProps:j,transformOrigin:B={vertical:"top",horizontal:"left"},TransitionComponent:D=Af,transitionDuration:R="auto",TransitionProps:{onEntering:N}={},disableScrollLock:U=!1}=d,L=Qe(d.TransitionProps,Nne),_=Qe(d,$ne),V=(s=j==null?void 0:j.paper)!=null?s:I,$=x.useRef(),z=Xn($,V.ref),Q=P({},d,{anchorOrigin:m,anchorReference:v,elevation:C,marginThreshold:M,externalPaperSlotProps:V,transformOrigin:B,TransitionComponent:D,transitionDuration:R,TransitionProps:L}),G=zne(Q),F=x.useCallback(()=>{if(v==="anchorPosition")return g;const Ve=ix(p),We=(Ve&&Ve.nodeType===1?Ve:ri($.current).body).getBoundingClientRect();return{top:We.top+LI(We,m.vertical),left:We.left+zI(We,m.horizontal)}},[p,m.horizontal,m.vertical,g,v]),q=x.useCallback(Ve=>({vertical:LI(Ve,B.vertical),horizontal:zI(Ve,B.horizontal)}),[B.horizontal,B.vertical]),W=x.useCallback(Ve=>{const at={width:Ve.offsetWidth,height:Ve.offsetHeight},We=q(at);if(v==="none")return{top:null,left:null,transformOrigin:HI(We)};const ue=F();let Le=ue.top-We.vertical,$e=ue.left-We.horizontal;const bt=Le+at.height,ot=$e+at.width,st=Ll(ix(p)),Ze=st.innerHeight-M,dt=st.innerWidth-M;if(M!==null&&LeZe){const Xe=bt-Ze;Le-=Xe,We.vertical+=Xe}if(M!==null&&$edt){const Xe=ot-dt;$e-=Xe,We.horizontal+=Xe}return{top:`${Math.round(Le)}px`,left:`${Math.round($e)}px`,transformOrigin:HI(We)}},[p,v,F,q,M]),[X,te]=x.useState(S),se=x.useCallback(()=>{const Ve=$.current;if(!Ve)return;const at=W(Ve);at.top!==null&&(Ve.style.top=at.top),at.left!==null&&(Ve.style.left=at.left),Ve.style.transformOrigin=at.transformOrigin,te(!0)},[W]);x.useEffect(()=>(U&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se)),[p,U,se]);const de=(Ve,at)=>{N&&N(Ve,at),se()},ee=()=>{te(!1)};x.useEffect(()=>{S&&se()}),x.useImperativeHandle(f,()=>S?{updatePosition:()=>{se()}}:null,[S,se]),x.useEffect(()=>{if(!S)return;const Ve=Ef(()=>{se()}),at=Ll(p);return at.addEventListener("resize",Ve),()=>{Ve.clear(),at.removeEventListener("resize",Ve)}},[p,S,se]);let fe=R;R==="auto"&&!D.muiSupportAuto&&(fe=void 0);const he=k||(p?ri(ix(p)).body:void 0),Ie=(l=E==null?void 0:E.root)!=null?l:Hne,ve=(c=E==null?void 0:E.paper)!=null?c:BB,be=zl({elementType:ve,externalSlotProps:P({},V,{style:X?V.style:P({},V.style,{opacity:0})}),additionalProps:{elevation:C,ref:z},ownerState:Q,className:nt(G.paper,V==null?void 0:V.className)}),ke=zl({elementType:Ie,externalSlotProps:(j==null?void 0:j.root)||{},externalForwardedProps:_,additionalProps:{ref:i,slotProps:{backdrop:{invisible:!0}},container:he,open:S},ownerState:Q,className:nt(G.root,A)}),{slotProps:ze}=ke,Ge=Qe(ke,Lne);return b.jsx(Ie,P({},Ge,!cf(Ie)&&{slotProps:ze,disableScrollLock:U},{children:b.jsx(D,P({appear:!0,in:S,onEntering:de,onExited:ee,timeout:fe},L,{children:b.jsx(ve,P({},be,{children:w}))}))}))});function Gne(n){return Kt("MuiMenu",n)}Yt("MuiMenu",["root","paper","list"]);const Vne=["onEntering"],Qne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Wne={vertical:"top",horizontal:"right"},qne={vertical:"top",horizontal:"left"},_ne=n=>{const{classes:o}=n;return Bt({root:["root"],paper:["paper"],list:["list"]},Gne,o)},Yne=_e(Une,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Kne=_e(BB,{name:"MuiMenu",slot:"Paper",overridesResolver:(n,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xne=_e(_h,{name:"MuiMenu",slot:"List",overridesResolver:(n,o)=>o.list})({outline:0}),jA=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:f,className:p,disableAutoFocusItem:m=!1,MenuListProps:g={},onClose:v,open:w,PaperProps:A={},PopoverClasses:k,transitionDuration:C="auto",TransitionProps:{onEntering:M}={},variant:S="selectedMenu",slots:I={},slotProps:E={}}=c,j=Qe(c.TransitionProps,Vne),B=Qe(c,Qne),D=Id(),R=P({},c,{autoFocus:d,disableAutoFocusItem:m,MenuListProps:g,onEntering:M,PaperProps:A,transitionDuration:C,TransitionProps:j,variant:S}),N=_ne(R),U=d&&!m&&w,L=x.useRef(null),_=(q,W)=>{L.current&&L.current.adjustStyleForScrollbar(q,{direction:D?"rtl":"ltr"}),M&&M(q,W)},V=q=>{q.key==="Tab"&&(q.preventDefault(),v&&v(q,"tabKeyDown"))};let $=-1;x.Children.map(f,(q,W)=>{x.isValidElement(q)&&(q.props.disabled||(S==="selectedMenu"&&q.props.selected||$===-1)&&($=W))});const z=(s=I.paper)!=null?s:Kne,Q=(l=E.paper)!=null?l:A,G=zl({elementType:I.root,externalSlotProps:E.root,ownerState:R,className:[N.root,p]}),F=zl({elementType:z,externalSlotProps:Q,ownerState:R,className:N.paper});return b.jsx(Yne,P({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?Wne:qne,slots:{paper:z,root:I.root},slotProps:{root:G,paper:F},open:w,ref:i,transitionDuration:C,TransitionProps:P({onEntering:_},j),ownerState:R},B,{classes:k,children:b.jsx(Xne,P({onKeyDown:V,actions:L,autoFocus:d&&($===-1||m),autoFocusItem:U,variant:S},g,{className:nt(N.list,g.className),children:f}))}))});function Jne(n){return Kt("MuiMenuItem",n)}const c0=Yt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Zne=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],eoe=(n,o)=>{const{ownerState:i}=n;return[o.root,i.dense&&o.dense,i.divider&&o.divider,!i.disableGutters&&o.gutters]},toe=n=>{const{disabled:o,dense:i,divider:s,disableGutters:l,selected:c,classes:d}=n,p=Bt({root:["root",i&&"dense",o&&"disabled",!l&&"gutters",s&&"divider",c&&"selected"]},Jne,d);return P({},d,p)},roe=_e(Hc,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eoe})(({theme:n,ownerState:o})=>P({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.divider&&{borderBottom:`1px solid ${(n.vars||n).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${c0.selected}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity),[`&.${c0.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}},[`&.${c0.selected}:hover`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:Lr(n.palette.primary.main,n.palette.action.selectedOpacity)}},[`&.${c0.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`&.${c0.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity},[`& + .${kI.root}`]:{marginTop:n.spacing(1),marginBottom:n.spacing(1)},[`& + .${kI.inset}`]:{marginLeft:52},[`& .${u3.root}`]:{marginTop:0,marginBottom:0},[`& .${u3.inset}`]:{paddingLeft:36},[`& .${NI.root}`]:{minWidth:36}},!o.dense&&{[n.breakpoints.up("sm")]:{minHeight:"auto"}},o.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,{[`& .${NI.root} svg`]:{fontSize:"1.25rem"}}))),ho=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:d=!1,divider:f=!1,disableGutters:p=!1,focusVisibleClassName:m,role:g="menuitem",tabIndex:v,className:w}=s,A=Qe(s,Zne),k=x.useContext(hu),C=x.useMemo(()=>({dense:d||k.dense||!1,disableGutters:p}),[k.dense,d,p]),M=x.useRef(null);ko(()=>{l&&M.current&&M.current.focus()},[l]);const S=P({},s,{dense:C.dense,divider:f,disableGutters:p}),I=toe(s),E=Xn(M,i);let j;return s.disabled||(j=v!==void 0?v:-1),b.jsx(hu.Provider,{value:C,children:b.jsx(roe,P({ref:E,role:g,tabIndex:j,component:c,focusVisibleClassName:nt(I.focusVisible,m),className:nt(I.root,w)},A,{ownerState:S,classes:I}))})});function noe(n){return Kt("MuiNativeSelect",n)}const OA=Yt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ooe=["className","disabled","error","IconComponent","inputRef","variant"],ioe=n=>{const{classes:o,variant:i,disabled:s,multiple:l,open:c,error:d}=n,f={select:["select",i,s&&"disabled",l&&"multiple",d&&"error"],icon:["icon",`icon${Ke(i)}`,c&&"iconOpen",s&&"disabled"]};return Bt(f,noe,o)},TB=({ownerState:n,theme:o})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${OA.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},n.variant==="filled"&&{"&&&":{paddingRight:32}},n.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),aoe=_e("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ts,overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.select,o[i.variant],i.error&&o.error,{[`&.${OA.multiple}`]:o.multiple}]}})(TB),FB=({ownerState:n,theme:o})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${OA.disabled}`]:{color:(o.vars||o).palette.action.disabled}},n.open&&{transform:"rotate(180deg)"},n.variant==="filled"&&{right:7},n.variant==="outlined"&&{right:7}),soe=_e("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.icon,i.variant&&o[`icon${Ke(i.variant)}`],i.open&&o.iconOpen]}})(FB),loe=x.forwardRef(function(o,i){const{className:s,disabled:l,error:c,IconComponent:d,inputRef:f,variant:p="standard"}=o,m=Qe(o,ooe),g=P({},o,{disabled:l,variant:p,error:c}),v=ioe(g);return b.jsxs(x.Fragment,{children:[b.jsx(aoe,P({ownerState:g,className:nt(v.select,s),disabled:l,ref:f||i},m)),o.multiple?null:b.jsx(soe,{as:d,ownerState:g,className:v.icon})]})});var UI;const coe=["children","classes","className","label","notched"],uoe=_e("fieldset",{shouldForwardProp:ts})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),doe=_e("legend",{shouldForwardProp:ts})(({ownerState:n,theme:o})=>P({float:"unset",width:"auto",overflow:"hidden"},!n.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},n.withLabel&&P({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},n.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function foe(n){const{className:o,label:i,notched:s}=n,l=Qe(n,coe),c=i!=null&&i!=="",d=P({},n,{notched:s,withLabel:c});return b.jsx(uoe,P({"aria-hidden":!0,className:o,ownerState:d},l,{children:b.jsx(doe,{ownerState:d,children:c?b.jsx("span",{children:i}):UI||(UI=b.jsx("span",{className:"notranslate",children:"​"}))})}))}const poe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hoe=n=>{const{classes:o}=n,s=Bt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xZ,o);return P({},o,s)},moe=_e(Nb,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fb})(({theme:n,ownerState:o})=>{const i=n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(n.vars||n).shape.borderRadius,[`&:hover .${Ac.notchedOutline}`]:{borderColor:(n.vars||n).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ac.notchedOutline}`]:{borderColor:n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:i}},[`&.${Ac.focused} .${Ac.notchedOutline}`]:{borderColor:(n.vars||n).palette[o.color].main,borderWidth:2},[`&.${Ac.error} .${Ac.notchedOutline}`]:{borderColor:(n.vars||n).palette.error.main},[`&.${Ac.disabled} .${Ac.notchedOutline}`]:{borderColor:(n.vars||n).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&P({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),goe=_e(foe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(n,o)=>o.notchedOutline})(({theme:n})=>{const o=n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),voe=_e($b,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Db})(({theme:n,ownerState:o})=>P({padding:"16.5px 14px"},!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:n.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:n.palette.mode==="light"?null:"#fff",caretColor:n.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},n.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[n.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),kd=x.forwardRef(function(o,i){var s,l,c,d,f;const p=Zt({props:o,name:"MuiOutlinedInput"}),{components:m={},fullWidth:g=!1,inputComponent:v="input",label:w,multiline:A=!1,notched:k,slots:C={},type:M="text"}=p,S=Qe(p,poe),I=hoe(p),E=Vc(),j=Fd({props:p,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B=P({},p,{color:j.color||"primary",disabled:j.disabled,error:j.error,focused:j.focused,formControl:E,fullWidth:g,hiddenLabel:j.hiddenLabel,multiline:A,size:j.size,type:M}),D=(s=(l=C.root)!=null?l:m.Root)!=null?s:moe,R=(c=(d=C.input)!=null?d:m.Input)!=null?c:voe;return b.jsx(jp,P({slots:{root:D,input:R},renderSuffix:N=>b.jsx(goe,{ownerState:B,className:I.notchedOutline,label:w!=null&&w!==""&&j.required?f||(f=b.jsxs(x.Fragment,{children:[w," ","*"]})):w,notched:typeof k<"u"?k:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:g,inputComponent:v,multiline:A,ref:i,type:M},S,{classes:P({},I,{notchedOutline:null})}))});kd.muiName="Input";function boe(n){return Kt("MuiPagination",n)}Yt("MuiPagination",["root","ul","outlined","text"]);const woe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function xoe(n={}){const{boundaryCount:o=1,componentName:i="usePagination",count:s=1,defaultPage:l=1,disabled:c=!1,hideNextButton:d=!1,hidePrevButton:f=!1,onChange:p,page:m,showFirstButton:g=!1,showLastButton:v=!1,siblingCount:w=1}=n,A=Qe(n,woe),[k,C]=jc({controlled:m,default:l,name:i,state:"page"}),M=(U,L)=>{m||C(L),p&&p(U,L)},S=(U,L)=>{const _=L-U+1;return Array.from({length:_},(V,$)=>U+$)},I=S(1,Math.min(o,s)),E=S(Math.max(s-o+1,o+1),s),j=Math.max(Math.min(k-w,s-o-w*2-1),o+2),B=Math.min(Math.max(k+w,o+w*2+2),E.length>0?E[0]-2:s-1),D=[...g?["first"]:[],...f?[]:["previous"],...I,...j>o+2?["start-ellipsis"]:o+1o?[s-o]:[],...E,...d?[]:["next"],...v?["last"]:[]],R=U=>{switch(U){case"first":return 1;case"previous":return k-1;case"next":return k+1;case"last":return s;default:return null}},N=D.map(U=>typeof U=="number"?{onClick:L=>{M(L,U)},type:"page",page:U,selected:U===k,disabled:c,"aria-current":U===k?"true":void 0}:{onClick:L=>{M(L,R(U))},type:U,page:R(U),selected:!1,disabled:c||U.indexOf("ellipsis")===-1&&(U==="next"||U==="last"?k>=s:k<=1)});return P({items:N},A)}function yoe(n){return Kt("MuiPaginationItem",n)}const t1=Yt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Jy=_r(b.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Zy=_r(b.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),GI=_r(b.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),VI=_r(b.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Aoe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],DB=(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],o[`size${Ke(i.size)}`],i.variant==="text"&&o[`text${Ke(i.color)}`],i.variant==="outlined"&&o[`outlined${Ke(i.color)}`],i.shape==="rounded"&&o.rounded,i.type==="page"&&o.page,(i.type==="start-ellipsis"||i.type==="end-ellipsis")&&o.ellipsis,(i.type==="previous"||i.type==="next")&&o.previousNext,(i.type==="first"||i.type==="last")&&o.firstLast]},Coe=n=>{const{classes:o,color:i,disabled:s,selected:l,size:c,shape:d,type:f,variant:p}=n,m={root:["root",`size${Ke(c)}`,p,d,i!=="standard"&&`color${Ke(i)}`,i!=="standard"&&`${p}${Ke(i)}`,s&&"disabled",l&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[f]],icon:["icon"]};return Bt(m,yoe,o)},koe=_e("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:DB})(({theme:n,ownerState:o})=>P({},n.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(n.vars||n).palette.text.primary,height:"auto",[`&.${t1.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity}},o.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},o.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:n.typography.pxToRem(15)})),Soe=_e(Hc,{name:"MuiPaginationItem",slot:"Root",overridesResolver:DB})(({theme:n,ownerState:o})=>P({},n.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(n.vars||n).palette.text.primary,[`&.${t1.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`&.${t1.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity},transition:n.transitions.create(["color","background-color"],{duration:n.transitions.duration.short}),"&:hover":{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t1.selected}`]:{backgroundColor:(n.vars||n).palette.action.selected,"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}},[`&.${t1.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.action.selectedChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)},[`&.${t1.disabled}`]:{opacity:1,color:(n.vars||n).palette.action.disabled,backgroundColor:(n.vars||n).palette.action.selected}}},o.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},o.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:n.typography.pxToRem(15)},o.shape==="rounded"&&{borderRadius:(n.vars||n).shape.borderRadius}),({theme:n,ownerState:o})=>P({},o.variant==="text"&&{[`&.${t1.selected}`]:P({},o.color!=="standard"&&{color:(n.vars||n).palette[o.color].contrastText,backgroundColor:(n.vars||n).palette[o.color].main,"&:hover":{backgroundColor:(n.vars||n).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(n.vars||n).palette[o.color].main}},[`&.${t1.focusVisible}`]:{backgroundColor:(n.vars||n).palette[o.color].dark}},{[`&.${t1.disabled}`]:{color:(n.vars||n).palette.action.disabled}})},o.variant==="outlined"&&{border:n.vars?`1px solid rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${t1.selected}`]:P({},o.color!=="standard"&&{color:(n.vars||n).palette[o.color].main,border:`1px solid ${n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / 0.5)`:Lr(n.palette[o.color].main,.5)}`,backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.activatedOpacity})`:Lr(n.palette[o.color].main,n.palette.action.activatedOpacity),"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / calc(${n.vars.palette.action.activatedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette[o.color].main,n.palette.action.activatedOpacity+n.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t1.focusVisible}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette[o.color].mainChannel} / calc(${n.vars.palette.action.activatedOpacity} + ${n.vars.palette.action.focusOpacity}))`:Lr(n.palette[o.color].main,n.palette.action.activatedOpacity+n.palette.action.focusOpacity)}},{[`&.${t1.disabled}`]:{borderColor:(n.vars||n).palette.action.disabledBackground,color:(n.vars||n).palette.action.disabled}})})),Ioe=_e("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(n,o)=>o.icon})(({theme:n,ownerState:o})=>P({fontSize:n.typography.pxToRem(20),margin:"0 -8px"},o.size==="small"&&{fontSize:n.typography.pxToRem(18)},o.size==="large"&&{fontSize:n.typography.pxToRem(22)})),RA=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiPaginationItem"}),{className:l,color:c="standard",component:d,components:f={},disabled:p=!1,page:m,selected:g=!1,shape:v="circular",size:w="medium",slots:A={},type:k="page",variant:C="text"}=s,M=Qe(s,Aoe),S=P({},s,{color:c,disabled:p,selected:g,shape:v,size:w,type:k,variant:C}),I=Id(),E=Coe(S),B=(I?{previous:A.next||f.next||VI,next:A.previous||f.previous||GI,last:A.first||f.first||Jy,first:A.last||f.last||Zy}:{previous:A.previous||f.previous||GI,next:A.next||f.next||VI,first:A.first||f.first||Jy,last:A.last||f.last||Zy})[k];return k==="start-ellipsis"||k==="end-ellipsis"?b.jsx(koe,{ref:i,ownerState:S,className:nt(E.root,l),children:"…"}):b.jsxs(Soe,P({ref:i,ownerState:S,component:d,disabled:p,className:nt(E.root,l)},M,{children:[k==="page"&&m,B?b.jsx(Ioe,{as:B,ownerState:S,className:E.icon}):null]}))}),Eoe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Moe=n=>{const{classes:o,variant:i}=n;return Bt({root:["root",i],ul:["ul"]},boe,o)},Poe=_e("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant]]}})({}),joe=_e("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(n,o)=>o.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Ooe(n,o,i){return n==="page"?`${i?"":"Go to "}page ${o}`:`Go to ${n} page`}const NB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiPagination"}),{boundaryCount:l=1,className:c,color:d="standard",count:f=1,defaultPage:p=1,disabled:m=!1,getItemAriaLabel:g=Ooe,hideNextButton:v=!1,hidePrevButton:w=!1,renderItem:A=N=>b.jsx(RA,P({},N)),shape:k="circular",showFirstButton:C=!1,showLastButton:M=!1,siblingCount:S=1,size:I="medium",variant:E="text"}=s,j=Qe(s,Eoe),{items:B}=xoe(P({},s,{componentName:"Pagination"})),D=P({},s,{boundaryCount:l,color:d,count:f,defaultPage:p,disabled:m,getItemAriaLabel:g,hideNextButton:v,hidePrevButton:w,renderItem:A,shape:k,showFirstButton:C,showLastButton:M,siblingCount:S,size:I,variant:E}),R=Moe(D);return b.jsx(Poe,P({"aria-label":"pagination navigation",className:nt(R.root,c),ownerState:D,ref:i},j,{children:b.jsx(joe,{className:R.ul,ownerState:D,children:B.map((N,U)=>b.jsx("li",{children:A(P({},N,{color:d,"aria-label":g(N.type,N.page,N.selected),shape:k,size:I,variant:E}))},U))})}))}),Roe=_r(b.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Boe=_r(b.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Toe=_e("span",{shouldForwardProp:ts})({position:"relative",display:"flex"}),Foe=_e(Roe)({transform:"scale(1)"}),Doe=_e(Boe)(({theme:n,ownerState:o})=>P({left:0,position:"absolute",transform:"scale(0)",transition:n.transitions.create("transform",{easing:n.transitions.easing.easeIn,duration:n.transitions.duration.shortest})},o.checked&&{transform:"scale(1)",transition:n.transitions.create("transform",{easing:n.transitions.easing.easeOut,duration:n.transitions.duration.shortest})}));function $B(n){const{checked:o=!1,classes:i={},fontSize:s}=n,l=P({},n,{checked:o});return b.jsxs(Toe,{className:i.root,ownerState:l,children:[b.jsx(Foe,{fontSize:s,className:i.background,ownerState:l}),b.jsx(Doe,{fontSize:s,className:i.dot,ownerState:l})]})}const LB=x.createContext(void 0);function Noe(){return x.useContext(LB)}function $oe(n){return Kt("MuiRadio",n)}const QI=Yt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Loe=["checked","checkedIcon","color","icon","name","onChange","size","className"],zoe=n=>{const{classes:o,color:i,size:s}=n,l={root:["root",`color${Ke(i)}`,s!=="medium"&&`size${Ke(s)}`]};return P({},o,Bt(l,$oe,o))},Hoe=_e(CA,{shouldForwardProp:n=>ts(n)||n==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.size!=="medium"&&o[`size${Ke(i.size)}`],o[`color${Ke(i.color)}`]]}})(({theme:n,ownerState:o})=>P({color:(n.vars||n).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:n.vars?`rgba(${o.color==="default"?n.vars.palette.action.activeChannel:n.vars.palette[o.color].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(o.color==="default"?n.palette.action.active:n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${QI.checked}`]:{color:(n.vars||n).palette[o.color].main}},{[`&.${QI.disabled}`]:{color:(n.vars||n).palette.action.disabled}}));function Uoe(n,o){return typeof o=="object"&&o!==null?n===o:String(n)===String(o)}const WI=b.jsx($B,{checked:!0}),qI=b.jsx($B,{}),ax=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiRadio"}),{checked:d,checkedIcon:f=WI,color:p="primary",icon:m=qI,name:g,onChange:v,size:w="medium",className:A}=c,k=Qe(c,Loe),C=P({},c,{color:p,size:w}),M=zoe(C),S=Noe();let I=d;const E=yv(v,S&&S.onChange);let j=g;return S&&(typeof I>"u"&&(I=Uoe(S.value,c.value)),typeof j>"u"&&(j=S.name)),b.jsx(Hoe,P({type:"radio",icon:x.cloneElement(m,{fontSize:(s=qI.props.fontSize)!=null?s:w}),checkedIcon:x.cloneElement(f,{fontSize:(l=WI.props.fontSize)!=null?l:w}),ownerState:C,classes:M,name:j,checked:I,onChange:E,ref:i,className:nt(M.root,A)},k))});function Goe(n){return Kt("MuiRadioGroup",n)}Yt("MuiRadioGroup",["root","row","error"]);const Voe=["actions","children","className","defaultValue","name","onChange","value"],Qoe=n=>{const{classes:o,row:i,error:s}=n;return Bt({root:["root",i&&"row",s&&"error"]},Goe,o)},Woe=x.forwardRef(function(o,i){const{actions:s,children:l,className:c,defaultValue:d,name:f,onChange:p,value:m}=o,g=Qe(o,Voe),v=x.useRef(null),w=Qoe(o),[A,k]=jc({controlled:m,default:d,name:"RadioGroup"});x.useImperativeHandle(s,()=>({focus:()=>{let I=v.current.querySelector("input:not(:disabled):checked");I||(I=v.current.querySelector("input:not(:disabled)")),I&&I.focus()}}),[]);const C=Xn(i,v),M=Fo(f),S=x.useMemo(()=>({name:M,onChange(I){k(I.target.value),p&&p(I,I.target.value)},value:A}),[M,p,k,A]);return b.jsx(LB.Provider,{value:S,children:b.jsx(hre,P({role:"radiogroup",ref:C,className:nt(w.root,c)},g,{children:l}))})});function qoe(n){return Kt("MuiSelect",n)}const u0=Yt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _I;const _oe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Yoe=_e("div",{name:"MuiSelect",slot:"Select",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`&.${u0.select}`]:o.select},{[`&.${u0.select}`]:o[i.variant]},{[`&.${u0.error}`]:o.error},{[`&.${u0.multiple}`]:o.multiple}]}})(TB,{[`&.${u0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Koe=_e("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.icon,i.variant&&o[`icon${Ke(i.variant)}`],i.open&&o.iconOpen]}})(FB),Xoe=_e("input",{shouldForwardProp:n=>iR(n)&&n!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(n,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function YI(n,o){return typeof o=="object"&&o!==null?n===o:String(n)===String(o)}function Joe(n){return n==null||typeof n=="string"&&!n.trim()}const Zoe=n=>{const{classes:o,variant:i,disabled:s,multiple:l,open:c,error:d}=n,f={select:["select",i,s&&"disabled",l&&"multiple",d&&"error"],icon:["icon",`icon${Ke(i)}`,c&&"iconOpen",s&&"disabled"],nativeInput:["nativeInput"]};return Bt(f,qoe,o)},eie=x.forwardRef(function(o,i){var s;const{"aria-describedby":l,"aria-label":c,autoFocus:d,autoWidth:f,children:p,className:m,defaultOpen:g,defaultValue:v,disabled:w,displayEmpty:A,error:k=!1,IconComponent:C,inputRef:M,labelId:S,MenuProps:I={},multiple:E,name:j,onBlur:B,onChange:D,onClose:R,onFocus:N,onOpen:U,open:L,readOnly:_,renderValue:V,SelectDisplayProps:$={},tabIndex:z,value:Q,variant:G="standard"}=o,F=Qe(o,_oe),[q,W]=jc({controlled:Q,default:v,name:"Select"}),[X,te]=jc({controlled:L,default:g,name:"Select"}),se=x.useRef(null),de=x.useRef(null),[ee,fe]=x.useState(null),{current:he}=x.useRef(L!=null),[Ie,ve]=x.useState(),be=Xn(i,M),ke=x.useCallback(ht=>{de.current=ht,ht&&fe(ht)},[]),ze=ee==null?void 0:ee.parentNode;x.useImperativeHandle(be,()=>({focus:()=>{de.current.focus()},node:se.current,value:q}),[q]),x.useEffect(()=>{g&&X&&ee&&!he&&(ve(f?null:ze.clientWidth),de.current.focus())},[ee,f]),x.useEffect(()=>{d&&de.current.focus()},[d]),x.useEffect(()=>{if(!S)return;const ht=ri(de.current).getElementById(S);if(ht){const xt=()=>{getSelection().isCollapsed&&de.current.focus()};return ht.addEventListener("click",xt),()=>{ht.removeEventListener("click",xt)}}},[S]);const Ge=(ht,xt)=>{ht?U&&U(xt):R&&R(xt),he||(ve(f?null:ze.clientWidth),te(ht))},Ve=ht=>{ht.button===0&&(ht.preventDefault(),de.current.focus(),Ge(!0,ht))},at=ht=>{Ge(!1,ht)},We=x.Children.toArray(p),ue=ht=>{const xt=We.find(tt=>tt.props.value===ht.target.value);xt!==void 0&&(W(xt.props.value),D&&D(ht,xt))},Le=ht=>xt=>{let tt;if(xt.currentTarget.hasAttribute("tabindex")){if(E){tt=Array.isArray(q)?q.slice():[];const Y=q.indexOf(ht.props.value);Y===-1?tt.push(ht.props.value):tt.splice(Y,1)}else tt=ht.props.value;if(ht.props.onClick&&ht.props.onClick(xt),q!==tt&&(W(tt),D)){const Y=xt.nativeEvent||xt,re=new Y.constructor(Y.type,Y);Object.defineProperty(re,"target",{writable:!0,value:{value:tt,name:j}}),D(re,ht)}E||Ge(!1,xt)}},$e=ht=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ht.key)!==-1&&(ht.preventDefault(),Ge(!0,ht))},bt=ee!==null&&X,ot=ht=>{!bt&&B&&(Object.defineProperty(ht,"target",{writable:!0,value:{value:q,name:j}}),B(ht))};delete F["aria-invalid"];let st,Ze;const dt=[];let Xe=!1;(a3({value:q})||A)&&(V?st=V(q):Xe=!0);const Pt=We.map(ht=>{if(!x.isValidElement(ht))return null;let xt;if(E){if(!Array.isArray(q))throw new Error(vu(2));xt=q.some(tt=>YI(tt,ht.props.value)),xt&&Xe&&dt.push(ht.props.children)}else xt=YI(q,ht.props.value),xt&&Xe&&(Ze=ht.props.children);return x.cloneElement(ht,{"aria-selected":xt?"true":"false",onClick:Le(ht),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),ht.props.onKeyUp&&ht.props.onKeyUp(tt)},role:"option",selected:xt,value:void 0,"data-value":ht.props.value})});Xe&&(E?dt.length===0?st=null:st=dt.reduce((ht,xt,tt)=>(ht.push(xt),tt{const{classes:o}=n;return o},BA={name:"MuiSelect",overridesResolver:(n,o)=>o.root,shouldForwardProp:n=>ts(n)&&n!=="variant",slot:"Root"},oie=_e(EA,BA)(""),iie=_e(kd,BA)(""),aie=_e(IA,BA)(""),$c=x.forwardRef(function(o,i){const s=Zt({name:"MuiSelect",props:o}),{autoWidth:l=!1,children:c,classes:d={},className:f,defaultOpen:p=!1,displayEmpty:m=!1,IconComponent:g=wB,id:v,input:w,inputProps:A,label:k,labelId:C,MenuProps:M,multiple:S=!1,native:I=!1,onClose:E,onOpen:j,open:B,renderValue:D,SelectDisplayProps:R,variant:N="outlined"}=s,U=Qe(s,tie),L=I?loe:eie,_=Vc(),V=Fd({props:s,muiFormControl:_,states:["variant","error"]}),$=V.variant||N,z=P({},s,{variant:$,classes:d}),Q=nie(z),G=Qe(Q,rie),F=w||{standard:b.jsx(oie,{ownerState:z}),outlined:b.jsx(iie,{label:k,ownerState:z}),filled:b.jsx(aie,{ownerState:z})}[$],q=Xn(i,F.ref);return b.jsx(x.Fragment,{children:x.cloneElement(F,P({inputComponent:L,inputProps:P({children:c,error:V.error,IconComponent:g,variant:$,type:void 0,multiple:S},I?{id:v}:{autoWidth:l,defaultOpen:p,displayEmpty:m,labelId:C,MenuProps:M,onClose:E,onOpen:j,open:B,renderValue:D,SelectDisplayProps:P({id:v},R)},A,{classes:A?Ks(G,A.classes):G},w?w.props.inputProps:{})},(S&&I||m)&&$==="outlined"?{notched:!0}:{},{ref:q,className:nt(F.props.className,f,Q.root)},!w&&{variant:$},U))})});$c.muiName="Select";function sie(n){return Kt("MuiSkeleton",n)}Yt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const lie=["animation","className","component","height","style","variant","width"];let d3=n=>n,KI,XI,JI,ZI;const cie=n=>{const{classes:o,variant:i,animation:s,hasChildren:l,width:c,height:d}=n;return Bt({root:["root",i,s,l&&"withChildren",l&&!c&&"fitContent",l&&!d&&"heightAuto"]},sie,o)},uie=lc(KI||(KI=d3` 0% { opacity: 1; } @@ -323,7 +323,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 100% { opacity: 1; } -`)),Joe=cc(UI||(UI=u3` +`)),die=lc(XI||(XI=d3` 0% { transform: translateX(-100%); } @@ -336,9 +336,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 100% { transform: translateX(100%); } -`)),Zoe=_e("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],i.animation!==!1&&o[i.animation],i.hasChildren&&o.withChildren,i.hasChildren&&!i.width&&o.fitContent,i.hasChildren&&!i.height&&o.heightAuto]}})(({theme:n,ownerState:o})=>{const i=SW(n.shape.borderRadius)||"px",s=IW(n.shape.borderRadius);return P({display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:_d(n.palette.text.primary,n.palette.mode==="light"?.11:.13),height:"1.2em"},o.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${s}${i}/${Math.round(s/.6*10)/10}${i}`,"&:empty:before":{content:'"\\00a0"'}},o.variant==="circular"&&{borderRadius:"50%"},o.variant==="rounded"&&{borderRadius:(n.vars||n).shape.borderRadius},o.hasChildren&&{"& > *":{visibility:"hidden"}},o.hasChildren&&!o.width&&{maxWidth:"fit-content"},o.hasChildren&&!o.height&&{height:"auto"})},({ownerState:n})=>n.animation==="pulse"&&wu(GI||(GI=u3` +`)),fie=_e("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,o[i.variant],i.animation!==!1&&o[i.animation],i.hasChildren&&o.withChildren,i.hasChildren&&!i.width&&o.fitContent,i.hasChildren&&!i.height&&o.heightAuto]}})(({theme:n,ownerState:o})=>{const i=LW(n.shape.borderRadius)||"px",s=zW(n.shape.borderRadius);return P({display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:Wd(n.palette.text.primary,n.palette.mode==="light"?.11:.13),height:"1.2em"},o.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${s}${i}/${Math.round(s/.6*10)/10}${i}`,"&:empty:before":{content:'"\\00a0"'}},o.variant==="circular"&&{borderRadius:"50%"},o.variant==="rounded"&&{borderRadius:(n.vars||n).shape.borderRadius},o.hasChildren&&{"& > *":{visibility:"hidden"}},o.hasChildren&&!o.width&&{maxWidth:"fit-content"},o.hasChildren&&!o.height&&{height:"auto"})},({ownerState:n})=>n.animation==="pulse"&&bu(JI||(JI=d3` animation: ${0} 2s ease-in-out 0.5s infinite; - `),Xoe),({ownerState:n,theme:o})=>n.animation==="wave"&&wu(VI||(VI=u3` + `),uie),({ownerState:n,theme:o})=>n.animation==="wave"&&bu(ZI||(ZI=d3` position: relative; overflow: hidden; @@ -361,8 +361,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho right: 0; top: 0; } - `),Joe,(o.vars||o).palette.action.hover)),eie=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiSkeleton"}),{animation:l="pulse",className:c,component:d="span",height:f,style:p,variant:m="text",width:g}=s,v=Qe(s,Yoe),w=P({},s,{animation:l,component:d,variant:m,hasChildren:!!v.children}),A=Koe(w);return b.jsx(Zoe,P({as:d,ref:i,className:nt(A.root,c),ownerState:w},v,{style:P({width:g,height:f},p)}))});function tie(n){return Kt("MuiTooltip",n)}const sd=Yt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),rie=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function nie(n){return Math.round(n*1e5)/1e5}const oie=n=>{const{classes:o,disableInteractive:i,arrow:s,touch:l,placement:c}=n,d={popper:["popper",!i&&"popperInteractive",s&&"popperArrow"],tooltip:["tooltip",s&&"tooltipArrow",l&&"touch",`tooltipPlacement${Ke(c.split("-")[0])}`],arrow:["arrow"]};return Rt(d,tie,o)},iie=_e(Eu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.popper,!i.disableInteractive&&o.popperInteractive,i.arrow&&o.popperArrow,!i.open&&o.popperClose]}})(({theme:n,ownerState:o,open:i})=>P({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!o.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},o.arrow&&{[`&[data-popper-placement*="bottom"] .${sd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${sd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${sd.arrow}`]:P({},o.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${sd.arrow}`]:P({},o.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),aie=_e("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.tooltip,i.touch&&o.touch,i.arrow&&o.tooltipArrow,o[`tooltipPlacement${Ke(i.placement.split("-")[0])}`]]}})(({theme:n,ownerState:o})=>P({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:Lr(n.palette.grey[700],.92),borderRadius:(n.vars||n).shape.borderRadius,color:(n.vars||n).palette.common.white,fontFamily:n.typography.fontFamily,padding:"4px 8px",fontSize:n.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:n.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:n.typography.pxToRem(14),lineHeight:`${nie(16/14)}em`,fontWeight:n.typography.fontWeightRegular},{[`.${sd.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},o.isRtl?P({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},o.touch&&{marginRight:"24px"})),[`.${sd.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},o.isRtl?P({marginRight:"14px"},o.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},o.touch&&{marginLeft:"24px"})),[`.${sd.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"}),[`.${sd.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})})),sie=_e("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(n,o)=>o.arrow})(({theme:n})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:n.vars?n.vars.palette.Tooltip.bg:Lr(n.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Pg=!1;const QI=new um;let f0={x:0,y:0};function jg(n,o){return(i,...s)=>{o&&o(i,...s),n(i,...s)}}const Rl=x.forwardRef(function(o,i){var s,l,c,d,f,p,m,g,v,w,A,k,C,M,S,I,E,j,B;const F=Zt({props:o,name:"MuiTooltip"}),{arrow:O=!1,children:N,components:H={},componentsProps:L={},describeChild:_=!1,disableFocusListener:V=!1,disableHoverListener:$=!1,disableInteractive:z=!1,disableTouchListener:Q=!1,enterDelay:G=100,enterNextDelay:D=0,enterTouchDelay:q=700,followCursor:W=!1,id:X,leaveDelay:te=0,leaveTouchDelay:se=1500,onClose:de,onOpen:ee,open:fe,placement:he="bottom",PopperComponent:Ie,PopperProps:ve={},slotProps:be={},slots:ke={},title:ze,TransitionComponent:Ge=Cf,TransitionProps:Ve}=F,at=Qe(F,rie),We=x.isValidElement(N)?N:b.jsx("span",{children:N}),ue=ka(),Le=Md(),[$e,bt]=x.useState(),[ot,st]=x.useState(null),Ze=x.useRef(!1),dt=z||W,Xe=Dl(),Pt=Dl(),mt=Dl(),pt=Dl(),[Te,Re]=Rc({controlled:fe,default:!1,name:"Tooltip",state:"open"});let Je=Te;const It=Ro(X),Nt=x.useRef(),ht=ln(()=>{Nt.current!==void 0&&(document.body.style.WebkitUserSelect=Nt.current,Nt.current=void 0),pt.clear()});x.useEffect(()=>ht,[ht]);const xt=ut=>{QI.clear(),Pg=!0,Re(!0),ee&&!Je&&ee(ut)},tt=ln(ut=>{QI.start(800+te,()=>{Pg=!1}),Re(!1),de&&Je&&de(ut),Xe.start(ue.transitions.duration.shortest,()=>{Ze.current=!1})}),Y=ut=>{Ze.current&&ut.type!=="touchstart"||($e&&$e.removeAttribute("title"),Pt.clear(),mt.clear(),G||Pg&&D?Pt.start(Pg?D:G,()=>{xt(ut)}):xt(ut))},re=ut=>{Pt.clear(),mt.start(te,()=>{tt(ut)})},{isFocusVisibleRef:ie,onBlur:le,onFocus:ge,ref:Me}=ib(),[,me]=x.useState(!1),Ee=ut=>{le(ut),ie.current===!1&&(me(!1),re(ut))},ce=ut=>{$e||bt(ut.currentTarget),ge(ut),ie.current===!0&&(me(!0),Y(ut))},Pe=ut=>{Ze.current=!0;const Dt=We.props;Dt.onTouchStart&&Dt.onTouchStart(ut)},He=ut=>{Pe(ut),mt.clear(),Xe.clear(),ht(),Nt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",pt.start(q,()=>{document.body.style.WebkitUserSelect=Nt.current,Y(ut)})},Ne=ut=>{We.props.onTouchEnd&&We.props.onTouchEnd(ut),ht(),mt.start(se,()=>{tt(ut)})};x.useEffect(()=>{if(!Je)return;function ut(Dt){(Dt.key==="Escape"||Dt.key==="Esc")&&tt(Dt)}return document.addEventListener("keydown",ut),()=>{document.removeEventListener("keydown",ut)}},[tt,Je]);const ye=Xn(We.ref,Me,bt,i);!ze&&ze!==0&&(Je=!1);const rt=x.useRef(),Be=ut=>{const Dt=We.props;Dt.onMouseMove&&Dt.onMouseMove(ut),f0={x:ut.clientX,y:ut.clientY},rt.current&&rt.current.update()},Ae={},Ue=typeof ze=="string";_?(Ae.title=!Je&&Ue&&!$?ze:null,Ae["aria-describedby"]=Je?It:null):(Ae["aria-label"]=Ue?ze:null,Ae["aria-labelledby"]=Je&&!Ue?It:null);const qe=P({},Ae,at,We.props,{className:nt(at.className,We.props.className),onTouchStart:Pe,ref:ye},W?{onMouseMove:Be}:{}),Fe={};Q||(qe.onTouchStart=He,qe.onTouchEnd=Ne),$||(qe.onMouseOver=jg(Y,qe.onMouseOver),qe.onMouseLeave=jg(re,qe.onMouseLeave),dt||(Fe.onMouseOver=Y,Fe.onMouseLeave=re)),V||(qe.onFocus=jg(ce,qe.onFocus),qe.onBlur=jg(Ee,qe.onBlur),dt||(Fe.onFocus=ce,Fe.onBlur=Ee));const lt=x.useMemo(()=>{var ut;let Dt=[{name:"arrow",enabled:!!ot,options:{element:ot,padding:4}}];return(ut=ve.popperOptions)!=null&&ut.modifiers&&(Dt=Dt.concat(ve.popperOptions.modifiers)),P({},ve.popperOptions,{modifiers:Dt})},[ot,ve]),gt=P({},F,{isRtl:Le,arrow:O,disableInteractive:dt,placement:he,PopperComponentProp:Ie,touch:Ze.current}),At=oie(gt),St=(s=(l=ke.popper)!=null?l:H.Popper)!=null?s:iie,yt=(c=(d=(f=ke.transition)!=null?f:H.Transition)!=null?d:Ge)!=null?c:Cf,Ct=(p=(m=ke.tooltip)!=null?m:H.Tooltip)!=null?p:aie,Oe=(g=(v=ke.arrow)!=null?v:H.Arrow)!=null?g:sie,Ce=f2(St,P({},ve,(w=be.popper)!=null?w:L.popper,{className:nt(At.popper,ve==null?void 0:ve.className,(A=(k=be.popper)!=null?k:L.popper)==null?void 0:A.className)}),gt),Ye=f2(yt,P({},Ve,(C=be.transition)!=null?C:L.transition),gt),et=f2(Ct,P({},(M=be.tooltip)!=null?M:L.tooltip,{className:nt(At.tooltip,(S=(I=be.tooltip)!=null?I:L.tooltip)==null?void 0:S.className)}),gt),Et=f2(Oe,P({},(E=be.arrow)!=null?E:L.arrow,{className:nt(At.arrow,(j=(B=be.arrow)!=null?B:L.arrow)==null?void 0:j.className)}),gt);return b.jsxs(x.Fragment,{children:[x.cloneElement(We,qe),b.jsx(St,P({as:Ie??Eu,placement:he,anchorEl:W?{getBoundingClientRect:()=>({top:f0.y,left:f0.x,right:f0.x,bottom:f0.y,width:0,height:0})}:$e,popperRef:rt,open:$e?Je:!1,id:It,transition:!0},Fe,Ce,{popperOptions:lt,children:({TransitionProps:ut})=>b.jsx(yt,P({timeout:ue.transitions.duration.shorter},ut,Ye,{children:b.jsxs(Ct,P({},et,{children:[ze,O?b.jsx(Oe,P({},Et,{ref:st})):null]}))}))}))]})});function lie(n){return Kt("MuiSwitch",n)}const Gs=Yt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),cie=["className","color","edge","size","sx"],uie=n=>{const{classes:o,edge:i,size:s,color:l,checked:c,disabled:d}=n,f={root:["root",i&&`edge${Ke(i)}`,`size${Ke(s)}`],switchBase:["switchBase",`color${Ke(l)}`,c&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},p=Rt(f,lie,o);return P({},o,p)},die=_e("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.edge&&o[`edge${Ke(i.edge)}`],o[`size${Ke(i.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gs.thumb}`]:{width:16,height:16},[`& .${Gs.switchBase}`]:{padding:4,[`&.${Gs.checked}`]:{transform:"translateX(16px)"}}}}]}),fie=_e(yA,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.switchBase,{[`& .${Gs.input}`]:o.input},i.color!=="default"&&o[`color${Ke(i.color)}`]]}})(({theme:n})=>({position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:`${n.palette.mode==="light"?n.palette.common.white:n.palette.grey[300]}`,transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest}),[`&.${Gs.checked}`]:{transform:"translateX(20px)"},[`&.${Gs.disabled}`]:{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:`${n.palette.mode==="light"?n.palette.grey[100]:n.palette.grey[600]}`},[`&.${Gs.checked} + .${Gs.track}`]:{opacity:.5},[`&.${Gs.disabled} + .${Gs.track}`]:{opacity:n.vars?n.vars.opacity.switchTrackDisabled:`${n.palette.mode==="light"?.12:.2}`},[`& .${Gs.input}`]:{left:"-100%",width:"300%"}}),({theme:n})=>({"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.activeChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(n.palette).filter(([,o])=>o.main&&o.light).map(([o])=>({props:{color:o},style:{[`&.${Gs.checked}`]:{color:(n.vars||n).palette[o].main,"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette[o].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gs.disabled}`]:{color:n.vars?n.vars.palette.Switch[`${o}DisabledColor`]:`${n.palette.mode==="light"?sb(n.palette[o].main,.62):ab(n.palette[o].main,.55)}`}},[`&.${Gs.checked} + .${Gs.track}`]:{backgroundColor:(n.vars||n).palette[o].main}}}))]})),pie=_e("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(n,o)=>o.track})(({theme:n})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:n.transitions.create(["opacity","background-color"],{duration:n.transitions.duration.shortest}),backgroundColor:n.vars?n.vars.palette.common.onBackground:`${n.palette.mode==="light"?n.palette.common.black:n.palette.common.white}`,opacity:n.vars?n.vars.opacity.switchTrack:`${n.palette.mode==="light"?.38:.3}`})),hie=_e("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(n,o)=>o.thumb})(({theme:n})=>({boxShadow:(n.vars||n).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Gd=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiSwitch"}),{className:l,color:c="primary",edge:d=!1,size:f="medium",sx:p}=s,m=Qe(s,cie),g=P({},s,{color:c,edge:d,size:f}),v=uie(g),w=b.jsx(hie,{className:v.thumb,ownerState:g});return b.jsxs(die,{className:nt(v.root,l),sx:p,ownerState:g,children:[b.jsx(fie,P({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:g},m,{classes:P({},v,{root:v.switchBase})})),b.jsx(pie,{className:v.track,ownerState:g})]})});function mie(n){return Kt("MuiTab",n)}const Lu=Yt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),gie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],vie=n=>{const{classes:o,textColor:i,fullWidth:s,wrapped:l,icon:c,label:d,selected:f,disabled:p}=n,m={root:["root",c&&d&&"labelIcon",`textColor${Ke(i)}`,s&&"fullWidth",l&&"wrapped",f&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return Rt(m,mie,o)},bie=_e(Gc,{name:"MuiTab",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.label&&i.icon&&o.labelIcon,o[`textColor${Ke(i.textColor)}`],i.fullWidth&&o.fullWidth,i.wrapped&&o.wrapped,{[`& .${Lu.iconWrapper}`]:o.iconWrapper}]}})(({theme:n,ownerState:o})=>P({},n.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},o.label&&{flexDirection:o.iconPosition==="top"||o.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},o.icon&&o.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Lu.iconWrapper}`]:P({},o.iconPosition==="top"&&{marginBottom:6},o.iconPosition==="bottom"&&{marginTop:6},o.iconPosition==="start"&&{marginRight:n.spacing(1)},o.iconPosition==="end"&&{marginLeft:n.spacing(1)})},o.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Lu.selected}`]:{opacity:1},[`&.${Lu.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity}},o.textColor==="primary"&&{color:(n.vars||n).palette.text.secondary,[`&.${Lu.selected}`]:{color:(n.vars||n).palette.primary.main},[`&.${Lu.disabled}`]:{color:(n.vars||n).palette.text.disabled}},o.textColor==="secondary"&&{color:(n.vars||n).palette.text.secondary,[`&.${Lu.selected}`]:{color:(n.vars||n).palette.secondary.main},[`&.${Lu.disabled}`]:{color:(n.vars||n).palette.text.disabled}},o.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},o.wrapped&&{fontSize:n.typography.pxToRem(12)})),Hi=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTab"}),{className:l,disabled:c=!1,disableFocusRipple:d=!1,fullWidth:f,icon:p,iconPosition:m="top",indicator:g,label:v,onChange:w,onClick:A,onFocus:k,selected:C,selectionFollowsFocus:M,textColor:S="inherit",value:I,wrapped:E=!1}=s,j=Qe(s,gie),B=P({},s,{disabled:c,disableFocusRipple:d,selected:C,icon:!!p,iconPosition:m,label:!!v,fullWidth:f,textColor:S,wrapped:E}),F=vie(B),O=p&&v&&x.isValidElement(p)?x.cloneElement(p,{className:nt(F.iconWrapper,p.props.className)}):p,N=L=>{!C&&w&&w(L,I),A&&A(L)},H=L=>{M&&!C&&w&&w(L,I),k&&k(L)};return b.jsxs(bie,P({focusRipple:!d,className:nt(F.root,l),ref:i,role:"tab","aria-selected":C,disabled:c,onClick:N,onFocus:H,ownerState:B,tabIndex:C?0:-1},j,{children:[m==="top"||m==="start"?b.jsxs(x.Fragment,{children:[O,v]}):b.jsxs(x.Fragment,{children:[v,O]}),g]}))});function wie(n){return Kt("MuiToolbar",n)}Yt("MuiToolbar",["root","gutters","regular","dense"]);const xie=["className","component","disableGutters","variant"],yie=n=>{const{classes:o,disableGutters:i,variant:s}=n;return Rt({root:["root",!i&&"gutters",s]},wie,o)},Aie=_e("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.disableGutters&&o.gutters,o[i.variant]]}})(({theme:n,ownerState:o})=>P({position:"relative",display:"flex",alignItems:"center"},!o.disableGutters&&{paddingLeft:n.spacing(2),paddingRight:n.spacing(2),[n.breakpoints.up("sm")]:{paddingLeft:n.spacing(3),paddingRight:n.spacing(3)}},o.variant==="dense"&&{minHeight:48}),({theme:n,ownerState:o})=>o.variant==="regular"&&n.mixins.toolbar),BB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiToolbar"}),{className:l,component:c="div",disableGutters:d=!1,variant:f="regular"}=s,p=Qe(s,xie),m=P({},s,{component:c,disableGutters:d,variant:f}),g=yie(m);return b.jsx(Aie,P({as:c,className:nt(g.root,l),ref:i,ownerState:m},p))}),TB=_r(b.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),FB=_r(b.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Cie=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],kie=x.forwardRef(function(o,i){var s,l,c,d,f,p,m,g;const{backIconButtonProps:v,count:w,disabled:A=!1,getItemAriaLabel:k,nextIconButtonProps:C,onPageChange:M,page:S,rowsPerPage:I,showFirstButton:E,showLastButton:j,slots:B={},slotProps:F={}}=o,O=Qe(o,Cie),N=Md(),H=be=>{M(be,0)},L=be=>{M(be,S-1)},_=be=>{M(be,S+1)},V=be=>{M(be,Math.max(0,Math.ceil(w/I)-1))},$=(s=B.firstButton)!=null?s:ui,z=(l=B.lastButton)!=null?l:ui,Q=(c=B.nextButton)!=null?c:ui,G=(d=B.previousButton)!=null?d:ui,D=(f=B.firstButtonIcon)!=null?f:Ky,q=(p=B.lastButtonIcon)!=null?p:Xy,W=(m=B.nextButtonIcon)!=null?m:FB,X=(g=B.previousButtonIcon)!=null?g:TB,te=N?z:$,se=N?Q:G,de=N?G:Q,ee=N?$:z,fe=N?F.lastButton:F.firstButton,he=N?F.nextButton:F.previousButton,Ie=N?F.previousButton:F.nextButton,ve=N?F.firstButton:F.lastButton;return b.jsxs("div",P({ref:i},O,{children:[E&&b.jsx(te,P({onClick:H,disabled:A||S===0,"aria-label":k("first",S),title:k("first",S)},fe,{children:N?b.jsx(q,P({},F.lastButtonIcon)):b.jsx(D,P({},F.firstButtonIcon))})),b.jsx(se,P({onClick:L,disabled:A||S===0,color:"inherit","aria-label":k("previous",S),title:k("previous",S)},he??v,{children:N?b.jsx(W,P({},F.nextButtonIcon)):b.jsx(X,P({},F.previousButtonIcon))})),b.jsx(de,P({onClick:_,disabled:A||(w!==-1?S>=Math.ceil(w/I)-1:!1),color:"inherit","aria-label":k("next",S),title:k("next",S)},Ie??C,{children:N?b.jsx(X,P({},F.previousButtonIcon)):b.jsx(W,P({},F.nextButtonIcon))})),j&&b.jsx(ee,P({onClick:V,disabled:A||S>=Math.ceil(w/I)-1,"aria-label":k("last",S),title:k("last",S)},ve,{children:N?b.jsx(D,P({},F.firstButtonIcon)):b.jsx(q,P({},F.lastButtonIcon))}))]}))});function Sie(n){return Kt("MuiTablePagination",n)}const of=Yt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var WI;const Iie=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Eie=_e(Da,{name:"MuiTablePagination",slot:"Root",overridesResolver:(n,o)=>o.root})(({theme:n})=>({overflow:"auto",color:(n.vars||n).palette.text.primary,fontSize:n.typography.pxToRem(14),"&:last-child":{padding:0}})),Mie=_e(BB,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(n,o)=>P({[`& .${of.actions}`]:o.actions},o.toolbar)})(({theme:n})=>({minHeight:52,paddingRight:2,[`${n.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[n.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${of.actions}`]:{flexShrink:0,marginLeft:20}})),Pie=_e("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(n,o)=>o.spacer})({flex:"1 1 100%"}),jie=_e("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(n,o)=>o.selectLabel})(({theme:n})=>P({},n.typography.body2,{flexShrink:0})),Oie=_e(zc,{name:"MuiTablePagination",slot:"Select",overridesResolver:(n,o)=>P({[`& .${of.selectIcon}`]:o.selectIcon,[`& .${of.select}`]:o.select},o.input,o.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${of.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Rie=_e(uo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(n,o)=>o.menuItem})({}),Bie=_e("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(n,o)=>o.displayedRows})(({theme:n})=>P({},n.typography.body2,{flexShrink:0}));function Tie({from:n,to:o,count:i}){return`${n}–${o} of ${i!==-1?i:`more than ${o}`}`}function Fie(n){return`Go to ${n} page`}const Die=n=>{const{classes:o}=n;return Rt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Sie,o)},Nie=x.forwardRef(function(o,i){var s;const l=Zt({props:o,name:"MuiTablePagination"}),{ActionsComponent:c=kie,backIconButtonProps:d,className:f,colSpan:p,component:m=Da,count:g,disabled:v=!1,getItemAriaLabel:w=Fie,labelDisplayedRows:A=Tie,labelRowsPerPage:k="Rows per page:",nextIconButtonProps:C,onPageChange:M,onRowsPerPageChange:S,page:I,rowsPerPage:E,rowsPerPageOptions:j=[10,25,50,100],SelectProps:B={},showFirstButton:F=!1,showLastButton:O=!1,slotProps:N={},slots:H={}}=l,L=Qe(l,Iie),_=l,V=Die(_),$=(s=N==null?void 0:N.select)!=null?s:B,z=$.native?"option":Rie;let Q;(m===Da||m==="td")&&(Q=p||1e3);const G=Ro($.id),D=Ro($.labelId),q=()=>g===-1?(I+1)*E:E===-1?g:Math.min(g,(I+1)*E);return b.jsx(Eie,P({colSpan:Q,ref:i,as:m,ownerState:_,className:nt(V.root,f)},L,{children:b.jsxs(Mie,{className:V.toolbar,children:[b.jsx(Pie,{className:V.spacer}),j.length>1&&b.jsx(jie,{className:V.selectLabel,id:D,children:k}),j.length>1&&b.jsx(Oie,P({variant:"standard"},!$.variant&&{input:WI||(WI=b.jsx(jp,{}))},{value:E,onChange:S,id:G,labelId:D},$,{classes:P({},$.classes,{root:nt(V.input,V.selectRoot,($.classes||{}).root),select:nt(V.select,($.classes||{}).select),icon:nt(V.selectIcon,($.classes||{}).icon)}),disabled:v,children:j.map(W=>x.createElement(z,P({},!uf(z)&&{ownerState:_},{className:V.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),b.jsx(Bie,{className:V.displayedRows,children:A({from:g===0?0:I*E+1,to:q(),count:g===-1?-1:g,page:I})}),b.jsx(c,{className:V.actions,backIconButtonProps:d,count:g,nextIconButtonProps:C,onPageChange:M,page:I,rowsPerPage:E,showFirstButton:F,showLastButton:O,slotProps:N.actions,slots:H.actions,getItemAriaLabel:w,disabled:v})]})}))});function $ie(n){return(1+Math.sin(Math.PI*n-Math.PI/2))/2}function Lie(n,o,i,s={},l=()=>{}){const{ease:c=$ie,duration:d=300}=s;let f=null;const p=o[n];let m=!1;const g=()=>{m=!0},v=w=>{if(m){l(new Error("Animation cancelled"));return}f===null&&(f=w);const A=Math.min(1,(w-f)/d);if(o[n]=c(A)*(i-p)+p,A>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(v)};return p===i?(l(new Error("Element already at target position")),g):(requestAnimationFrame(v),g)}const zie=["onChange"],Hie={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Uie(n){const{onChange:o}=n,i=Qe(n,zie),s=x.useRef(),l=x.useRef(null),c=()=>{s.current=l.current.offsetHeight-l.current.clientHeight};return yo(()=>{const d=Mf(()=>{const p=s.current;c(),p!==s.current&&o(s.current)}),f=zl(l.current);return f.addEventListener("resize",d),()=>{d.clear(),f.removeEventListener("resize",d)}},[o]),x.useEffect(()=>{c(),o(s.current)},[o]),b.jsx("div",P({style:Hie,ref:l},i))}function Gie(n){return Kt("MuiTabScrollButton",n)}const Vie=Yt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qie=["className","slots","slotProps","direction","orientation","disabled"],Wie=n=>{const{classes:o,orientation:i,disabled:s}=n;return Rt({root:["root",i,s&&"disabled"]},Gie,o)},qie=_e(Gc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.orientation&&o[i.orientation]]}})(({ownerState:n})=>P({width:40,flexShrink:0,opacity:.8,[`&.${Vie.disabled}`]:{opacity:0}},n.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${n.isRtl?-90:90}deg)`}})),_ie=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiTabScrollButton"}),{className:d,slots:f={},slotProps:p={},direction:m}=c,g=Qe(c,Qie),v=Md(),w=P({isRtl:v},c),A=Wie(w),k=(s=f.StartScrollButtonIcon)!=null?s:TB,C=(l=f.EndScrollButtonIcon)!=null?l:FB,M=Hl({elementType:k,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:w}),S=Hl({elementType:C,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:w});return b.jsx(qie,P({component:"div",className:nt(A.root,d),ref:i,role:null,ownerState:w,tabIndex:null},g,{children:m==="left"?b.jsx(k,P({},M)):b.jsx(C,P({},S))}))});function Yie(n){return Kt("MuiTabs",n)}const ix=Yt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Kie=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qI=(n,o)=>n===o?n.firstChild:o&&o.nextElementSibling?o.nextElementSibling:n.firstChild,_I=(n,o)=>n===o?n.lastChild:o&&o.previousElementSibling?o.previousElementSibling:n.lastChild,Og=(n,o,i)=>{let s=!1,l=i(n,o);for(;l;){if(l===n.firstChild){if(s)return;s=!0}const c=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||c)l=i(n,l);else{l.focus();return}}},Xie=n=>{const{vertical:o,fixed:i,hideScrollbar:s,scrollableX:l,scrollableY:c,centered:d,scrollButtonsHideMobile:f,classes:p}=n;return Rt({root:["root",o&&"vertical"],scroller:["scroller",i&&"fixed",s&&"hideScrollbar",l&&"scrollableX",c&&"scrollableY"],flexContainer:["flexContainer",o&&"flexContainerVertical",d&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Yie,p)},Jie=_e("div",{name:"MuiTabs",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${ix.scrollButtons}`]:o.scrollButtons},{[`& .${ix.scrollButtons}`]:i.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,i.vertical&&o.vertical]}})(({ownerState:n,theme:o})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},n.vertical&&{flexDirection:"column"},n.scrollButtonsHideMobile&&{[`& .${ix.scrollButtons}`]:{[o.breakpoints.down("sm")]:{display:"none"}}})),Zie=_e("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.scroller,i.fixed&&o.fixed,i.hideScrollbar&&o.hideScrollbar,i.scrollableX&&o.scrollableX,i.scrollableY&&o.scrollableY]}})(({ownerState:n})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},n.fixed&&{overflowX:"hidden",width:"100%"},n.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},n.scrollableX&&{overflowX:"auto",overflowY:"hidden"},n.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),eae=_e("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.flexContainer,i.vertical&&o.flexContainerVertical,i.centered&&o.centered]}})(({ownerState:n})=>P({display:"flex"},n.vertical&&{flexDirection:"column"},n.centered&&{justifyContent:"center"})),tae=_e("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(n,o)=>o.indicator})(({ownerState:n,theme:o})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create()},n.indicatorColor==="primary"&&{backgroundColor:(o.vars||o).palette.primary.main},n.indicatorColor==="secondary"&&{backgroundColor:(o.vars||o).palette.secondary.main},n.vertical&&{height:"100%",width:2,right:0})),rae=_e(Uie)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),YI={},ld=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTabs"}),l=ka(),c=Md(),{"aria-label":d,"aria-labelledby":f,action:p,centered:m=!1,children:g,className:v,component:w="div",allowScrollButtonsMobile:A=!1,indicatorColor:k="primary",onChange:C,orientation:M="horizontal",ScrollButtonComponent:S=_ie,scrollButtons:I="auto",selectionFollowsFocus:E,slots:j={},slotProps:B={},TabIndicatorProps:F={},TabScrollButtonProps:O={},textColor:N="primary",value:H,variant:L="standard",visibleScrollbar:_=!1}=s,V=Qe(s,Kie),$=L==="scrollable",z=M==="vertical",Q=z?"scrollTop":"scrollLeft",G=z?"top":"left",D=z?"bottom":"right",q=z?"clientHeight":"clientWidth",W=z?"height":"width",X=P({},s,{component:w,allowScrollButtonsMobile:A,indicatorColor:k,orientation:M,vertical:z,scrollButtons:I,textColor:N,variant:L,visibleScrollbar:_,fixed:!$,hideScrollbar:$&&!_,scrollableX:$&&!z,scrollableY:$&&z,centered:m&&!$,scrollButtonsHideMobile:!A}),te=Xie(X),se=Hl({elementType:j.StartScrollButtonIcon,externalSlotProps:B.startScrollButtonIcon,ownerState:X}),de=Hl({elementType:j.EndScrollButtonIcon,externalSlotProps:B.endScrollButtonIcon,ownerState:X}),[ee,fe]=x.useState(!1),[he,Ie]=x.useState(YI),[ve,be]=x.useState(!1),[ke,ze]=x.useState(!1),[Ge,Ve]=x.useState(!1),[at,We]=x.useState({overflow:"hidden",scrollbarWidth:0}),ue=new Map,Le=x.useRef(null),$e=x.useRef(null),bt=()=>{const tt=Le.current;let Y;if(tt){const ie=tt.getBoundingClientRect();Y={clientWidth:tt.clientWidth,scrollLeft:tt.scrollLeft,scrollTop:tt.scrollTop,scrollLeftNormalized:pU(tt,c?"rtl":"ltr"),scrollWidth:tt.scrollWidth,top:ie.top,bottom:ie.bottom,left:ie.left,right:ie.right}}let re;if(tt&&H!==!1){const ie=$e.current.children;if(ie.length>0){const le=ie[ue.get(H)];re=le?le.getBoundingClientRect():null}}return{tabsMeta:Y,tabMeta:re}},ot=ln(()=>{const{tabsMeta:tt,tabMeta:Y}=bt();let re=0,ie;if(z)ie="top",Y&&tt&&(re=Y.top-tt.top+tt.scrollTop);else if(ie=c?"right":"left",Y&&tt){const ge=c?tt.scrollLeftNormalized+tt.clientWidth-tt.scrollWidth:tt.scrollLeft;re=(c?-1:1)*(Y[ie]-tt[ie]+ge)}const le={[ie]:re,[W]:Y?Y[W]:0};if(isNaN(he[ie])||isNaN(he[W]))Ie(le);else{const ge=Math.abs(he[ie]-le[ie]),Me=Math.abs(he[W]-le[W]);(ge>=1||Me>=1)&&Ie(le)}}),st=(tt,{animation:Y=!0}={})=>{Y?Lie(Q,Le.current,tt,{duration:l.transitions.duration.standard}):Le.current[Q]=tt},Ze=tt=>{let Y=Le.current[Q];z?Y+=tt:(Y+=tt*(c?-1:1),Y*=c&&bP()==="reverse"?-1:1),st(Y)},dt=()=>{const tt=Le.current[q];let Y=0;const re=Array.from($e.current.children);for(let ie=0;iett){ie===0&&(Y=tt);break}Y+=le[q]}return Y},Xe=()=>{Ze(-1*dt())},Pt=()=>{Ze(dt())},mt=x.useCallback(tt=>{We({overflow:null,scrollbarWidth:tt})},[]),pt=()=>{const tt={};tt.scrollbarSizeListener=$?b.jsx(rae,{onChange:mt,className:nt(te.scrollableX,te.hideScrollbar)}):null;const re=$&&(I==="auto"&&(ve||ke)||I===!0);return tt.scrollButtonStart=re?b.jsx(S,P({slots:{StartScrollButtonIcon:j.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:se},orientation:M,direction:c?"right":"left",onClick:Xe,disabled:!ve},O,{className:nt(te.scrollButtons,O.className)})):null,tt.scrollButtonEnd=re?b.jsx(S,P({slots:{EndScrollButtonIcon:j.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:de},orientation:M,direction:c?"left":"right",onClick:Pt,disabled:!ke},O,{className:nt(te.scrollButtons,O.className)})):null,tt},Te=ln(tt=>{const{tabsMeta:Y,tabMeta:re}=bt();if(!(!re||!Y)){if(re[G]Y[D]){const ie=Y[Q]+(re[D]-Y[D]);st(ie,{animation:tt})}}}),Re=ln(()=>{$&&I!==!1&&Ve(!Ge)});x.useEffect(()=>{const tt=Mf(()=>{Le.current&&ot()});let Y;const re=ge=>{ge.forEach(Me=>{Me.removedNodes.forEach(me=>{var Ee;(Ee=Y)==null||Ee.unobserve(me)}),Me.addedNodes.forEach(me=>{var Ee;(Ee=Y)==null||Ee.observe(me)})}),tt(),Re()},ie=zl(Le.current);ie.addEventListener("resize",tt);let le;return typeof ResizeObserver<"u"&&(Y=new ResizeObserver(tt),Array.from($e.current.children).forEach(ge=>{Y.observe(ge)})),typeof MutationObserver<"u"&&(le=new MutationObserver(re),le.observe($e.current,{childList:!0})),()=>{var ge,Me;tt.clear(),ie.removeEventListener("resize",tt),(ge=le)==null||ge.disconnect(),(Me=Y)==null||Me.disconnect()}},[ot,Re]),x.useEffect(()=>{const tt=Array.from($e.current.children),Y=tt.length;if(typeof IntersectionObserver<"u"&&Y>0&&$&&I!==!1){const re=tt[0],ie=tt[Y-1],le={root:Le.current,threshold:.99},ge=ce=>{be(!ce[0].isIntersecting)},Me=new IntersectionObserver(ge,le);Me.observe(re);const me=ce=>{ze(!ce[0].isIntersecting)},Ee=new IntersectionObserver(me,le);return Ee.observe(ie),()=>{Me.disconnect(),Ee.disconnect()}}},[$,I,Ge,g==null?void 0:g.length]),x.useEffect(()=>{fe(!0)},[]),x.useEffect(()=>{ot()}),x.useEffect(()=>{Te(YI!==he)},[Te,he]),x.useImperativeHandle(p,()=>({updateIndicator:ot,updateScrollButtons:Re}),[ot,Re]);const Je=b.jsx(tae,P({},F,{className:nt(te.indicator,F.className),ownerState:X,style:P({},he,F.style)}));let It=0;const Nt=x.Children.map(g,tt=>{if(!x.isValidElement(tt))return null;const Y=tt.props.value===void 0?It:tt.props.value;ue.set(Y,It);const re=Y===H;return It+=1,x.cloneElement(tt,P({fullWidth:L==="fullWidth",indicator:re&&!ee&&Je,selected:re,selectionFollowsFocus:E,onChange:C,textColor:N,value:Y},It===1&&H===!1&&!tt.props.tabIndex?{tabIndex:0}:{}))}),ht=tt=>{const Y=$e.current,re=ei(Y).activeElement;if(re.getAttribute("role")!=="tab")return;let le=M==="horizontal"?"ArrowLeft":"ArrowUp",ge=M==="horizontal"?"ArrowRight":"ArrowDown";switch(M==="horizontal"&&c&&(le="ArrowRight",ge="ArrowLeft"),tt.key){case le:tt.preventDefault(),Og(Y,re,_I);break;case ge:tt.preventDefault(),Og(Y,re,qI);break;case"Home":tt.preventDefault(),Og(Y,null,qI);break;case"End":tt.preventDefault(),Og(Y,null,_I);break}},xt=pt();return b.jsxs(Jie,P({className:nt(te.root,v),ownerState:X,ref:i,as:w},V,{children:[xt.scrollButtonStart,xt.scrollbarSizeListener,b.jsxs(Zie,{className:te.scroller,ownerState:X,style:{overflow:at.overflow,[z?`margin${c?"Left":"Right"}`:"marginBottom"]:_?void 0:-at.scrollbarWidth},ref:Le,children:[b.jsx(eae,{"aria-label":d,"aria-labelledby":f,"aria-orientation":M==="vertical"?"vertical":null,className:te.flexContainer,ownerState:X,onKeyDown:ht,ref:$e,role:"tablist",children:Nt}),ee&&Je]}),xt.scrollButtonEnd]}))});function nae(n){return Kt("MuiTextField",n)}Yt("MuiTextField",["root"]);const oae=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],iae={standard:IA,filled:SA,outlined:Id},aae=n=>{const{classes:o}=n;return Rt({root:["root"]},nae,o)},sae=_e(Ci,{name:"MuiTextField",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Hn=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTextField"}),{autoComplete:l,autoFocus:c=!1,children:d,className:f,color:p="primary",defaultValue:m,disabled:g=!1,error:v=!1,FormHelperTextProps:w,fullWidth:A=!1,helperText:k,id:C,InputLabelProps:M,inputProps:S,InputProps:I,inputRef:E,label:j,maxRows:B,minRows:F,multiline:O=!1,name:N,onBlur:H,onChange:L,onFocus:_,placeholder:V,required:$=!1,rows:z,select:Q=!1,SelectProps:G,type:D,value:q,variant:W="outlined"}=s,X=Qe(s,oae),te=P({},s,{autoFocus:c,color:p,disabled:g,error:v,fullWidth:A,multiline:O,required:$,select:Q,variant:W}),se=aae(te),de={};W==="outlined"&&(M&&typeof M.shrink<"u"&&(de.notched=M.shrink),de.label=j),Q&&((!G||!G.native)&&(de.id=void 0),de["aria-describedby"]=void 0);const ee=Ro(C),fe=k&&ee?`${ee}-helper-text`:void 0,he=j&&ee?`${ee}-label`:void 0,Ie=iae[W],ve=b.jsx(Ie,P({"aria-describedby":fe,autoComplete:l,autoFocus:c,defaultValue:m,fullWidth:A,multiline:O,name:N,rows:z,maxRows:B,minRows:F,type:D,value:q,id:ee,inputRef:E,onBlur:H,onChange:L,onFocus:_,placeholder:V,inputProps:S},de,I));return b.jsxs(sae,P({className:nt(se.root,f),disabled:g,error:v,fullWidth:A,ref:i,required:$,color:p,variant:W,ownerState:te},X,{children:[j!=null&&j!==""&&b.jsx(yd,P({htmlFor:ee,id:he},M,{children:j})),Q?b.jsx(zc,P({"aria-describedby":fe,id:ee,labelId:he,value:q,input:ve},G,{children:d})):ve,k&&b.jsx(are,P({id:fe},w,{children:k}))]}))});var TA={},lae=Uo;Object.defineProperty(TA,"__esModule",{value:!0});var $b=TA.default=void 0,cae=lae(di()),uae=b;$b=TA.default=(0,cae.default)((0,uae.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");var FA={},dae=Uo;Object.defineProperty(FA,"__esModule",{value:!0});var Lb=FA.default=void 0,fae=dae(di()),pae=b;Lb=FA.default=(0,fae.default)((0,pae.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarBorder");function DB({mediaItem:n,onClose:o}){const i=Fi.tagList.reduce(($,z)=>($[z.id]=z.name,$),{}),s=Array.isArray(n.tags)?n.tags.map($=>$):[],[l,c]=x.useState({id:n.id,title:n.title,description:n.description,category:n.category,amount:n.amount,author:n.author,publishingYear:n.publishingYear,isApproved:n.isApproved,tags:s,filePath:n.filePath||"",recommended:n.recommended,itemType:n.itemType,numberOfDaysOfQuestion:n.numberOfDaysOfQuestion,edition:n.edition,series:n.series,numOfSeries:n.numOfSeries,language:n.language,note:n.note,accompanyingMaterial:n.accompanyingMaterial,itemLevel:n.itemLevel,hebrewPublicationYear:n.hebrewPublicationYear});x.useState(!1);const[d,f]=x.useState(!1);x.useState(null),x.useState(!0);const[p,m]=x.useState(!0);x.useState(!1),x.useState(l.available);const[g,v]=x.useState("");x.useEffect(()=>{V(),Ur.fetchMedia()},[l.filePath]);const k={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},C=ka(),M=q6(C.breakpoints.down("sm")),S=$=>{const{name:z,value:Q}=$.target;(z==="category"||z==="author")&&!/^[א-תA-Za-z\s]*$/.test(Q)||c(G=>({...G,[z]:Q}))},I=$=>{const{target:{value:z}}=$;c(Q=>({...Q,tags:typeof z=="string"?z.split(","):z}))},E=$=>{const z=$.target.files[0];c(Q=>({...Q,filePath:z?z.name:Q.filePath,file:z||null}))},[j,B]=x.useState(l.itemLevel),F=$=>{B($.target.value);const{target:{value:z}}=$;z==="גיל הרך"&&c(Q=>({...Q,itemLevel:0})),z==="נמוכה"&&c(Q=>({...Q,itemLevel:1})),z==="גבוהה"&&c(Q=>({...Q,itemLevel:2})),z==="כיתה"&&c(Q=>({...Q,itemLevel:3}))},O={[Ba.PRESCHOOL]:"גיל הרך",[Ba.LOW]:"נמוכה",[Ba.HIGH]:"גבוהה",[Ba.CLASS]:"כיתה"},N=async $=>{$.preventDefault();const z=new FormData;z.append("id",l.id),z.append("title",l.title),z.append("description",l.description),z.append("category",l.category),z.append("numberOfDaysOfQuestion",l.numberOfDaysOfQuestion),z.append("itemType",l.itemType),z.append("recommended",l.recommended),z.append("itemLevel",l.itemLevel),z.append("note",l.note),l.tags.forEach(Q=>z.append("tags[]",Q)),l.author||z.append("amount",l.amount),l.author?(z.append("author",l.author),z.append("edition",l.edition),z.append("series",l.series),z.append("available",l.available),z.append("numOfSeries",l.numOfSeries),z.append("language",l.language),z.append("accompanyingMaterial",l.accompanyingMaterial),z.append("hebrewPublicationYear",l.hebrewPublicationYear),z.append("publishingYear",l.publishingYear),z.append("isApproved",l.isApproved),l.file?z.append("filePath",l.file):z.append("filePath",l.filePath)):(z.append("author",null),z.append("edition",null),z.append("series",null),z.append("numOfSeries",0),z.append("language",null),z.append("note",null),z.append("accompanyingMaterial",null),z.append("hebrewPublicationYear",null),z.append("publishingYear",null),z.append("isApproved",null),l.tags.forEach(Q=>z.append("tags[]",Q)),l.file,z.append("filePath",null)),o(),Mn.fire({title:"?האם ברצונך לעדכן את הנתונים",showDenyButton:!0,confirmButtonText:"אישור",denyButtonText:"ביטול"}).then(async Q=>{if(Q.isConfirmed)try{d?(await Ur.updateMediaFile(l.id,z),console.log("id: ",l.id)):l.author?(await Ur.updateMediaBook(l.id,z),console.log("id: ",l.id)):await Ur.updateMediaObject(l.id,z),Mn.fire({icon:"success",title:"השינויים נשמרו בהצלחה",showConfirmButton:!1,timer:1500})}catch(G){Mn.fire({icon:"error",title:"שגיאה",text:"העדכון נכשל, נסה שוב מאוחר יותר",showConfirmButton:!0}),console.error("Error updating item:",G)}else Q.isDenied&&Mn.fire({icon:"info",title:"לא נשמרו שינויים",showConfirmButton:!1,timer:1500})})},H=$=>{switch($){case"book":return"האם הספר מומלץ?";case"file":return"האם הקובץ מומלץ?";case"object":return"האם המוצר מומלץ?";default:return"האם פריט זה מומלץ?"}},L=$=>{if($===0)return"קובץ דיגיטלי";if($===1)return"ספר";if($===2)return"חפץ"},_=()=>{c($=>({...$,recommended:!$.recommended,userID:$.userID+1}))},V=()=>{const $=l.filePath;f($.includes("https")||/\.(pdf|jpg|jpeg|png|zip|mp3|mp4|docx)$/.test($))};return b.jsx(fu,{open:p,onClose:o,fullScreen:M,maxWidth:"sm",fullWidth:!0,style:{direction:"rtl"},children:b.jsxs("form",{onSubmit:N,children:[b.jsx(hu,{children:"עריכת פרטים"}),b.jsxs(pu,{children:[b.jsx(Hn,{margin:"dense",label:"כותרת",type:"text",fullWidth:!0,name:"title",value:l.title,onChange:S,inputProps:{minLength:2,maxLength:17},required:!0}),l.title&&l.title.length<2&&b.jsx(Tt,{color:"error",children:"הכותרת חייבת להכיל לפחות 2 תווים"}),b.jsx(Hn,{margin:"dense",label:"תיאור",type:"text",fullWidth:!0,name:"description",value:l.description,onChange:S,inputProps:{minLength:3,maxLength:35},required:!0}),l.description&&l.description.length<3&&b.jsx(Tt,{color:"error",children:"התיאור חייב להכיל לפחות 3 תווים"}),l.description===l.title&&b.jsx(Tt,{color:"error",children:"שם וכותרת לא יוכלים להיות זהים"}),b.jsx(Hn,{margin:"dense",label:"קטגוריה",type:"text",fullWidth:!0,name:"category",value:l.category,onChange:S,inputProps:{minLength:2,maxLength:17},required:!0}),l.category&&l.category.length<2&&b.jsx(Tt,{color:"error",children:"הקטגוריה חייבת להכיל לפחות 2 תווים"}),l.author&&b.jsx(Hn,{margin:"dense",label:"מחבר",type:"text",fullWidth:!0,name:"author",value:l.author,onChange:S,inputProps:{minLength:2,maxLength:17},required:!0}),l.author&&l.author.length<2&&b.jsx(Tt,{color:"error",children:"המחבר חייב להכיל לפחות 2 תווים"}),!l.filePath.includes("https")&&l.author&&l.publishingYear!==0&&l.publishingYear&&b.jsx(Hn,{margin:"dense",label:"שנת הוצאה לועזית",type:"number",fullWidth:!0,name:"publishingYear",value:l.publishingYear!==0?l.publishingYear:"",onChange:S,inputProps:{minLength:4,maxLength:4,inputMode:"numeric",pattern:"[0-9]*"}}),l.publishingYear&&l.publishingYear.length===4&&!isNaN(parseInt(l.publishingYear))&&parseInt(l.publishingYear)>new Date().getFullYear()&&b.jsx(Tt,{color:"error",children:"יש להכניס שנת הוצאה תקינה "}),!l.filePath.includes("https")&&l.author&&b.jsx(Hn,{margin:"dense",label:"שנה הוצאה עברית",type:"text",fullWidth:!0,name:"hebrewPublicationYear",value:l.hebrewPublicationYear,onChange:S,inputProps:{minLength:4,maxLength:4},required:!0}),l.hebrewPublicationYear&&l.hebrewPublicationYear.length<1&&b.jsx(Tt,{color:"error",children:"שנת הוצאה חייב להכיל 4 תווים "}),b.jsxs(Ci,{fullWidth:!0,children:[b.jsx(yd,{id:"demo-multiple-chip-label",children:"תגית"}),b.jsx(zc,{labelId:"demo-multiple-chip-label",id:"demo-multiple-chip",name:"tag",multiple:!0,value:l.tags,onChange:I,input:b.jsx(Id,{id:"select-multiple-chip",label:"תגית"}),renderValue:$=>b.jsx(Or,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:$.map(z=>b.jsx(Pp,{label:i[z],style:{color:"dark"},variant:"outlined"},z))}),MenuProps:k,children:Fi.tagList.map($=>b.jsxs(uo,{value:$.id,children:[b.jsx(Sd,{checked:l.tags.indexOf($.id)>-1}),b.jsx(qs,{primary:$.name})]},$.id))})]}),!l.author&&b.jsx(Hn,{margin:"dense",label:"כמות",type:"text",fullWidth:!0,name:"amount",value:l.amount,onChange:S,inputProps:{minLength:1,maxLength:6}}),l.author&&b.jsx(Hn,{margin:"dense",label:"מיקום",type:"text",fullWidth:!0,name:"filePath",value:l.filePath!=0?l.filePath:"",onChange:S,inputProps:{minLength:1,maxLength:17},disabled:d}),d&&b.jsxs(Or,{sx:{display:"flex",alignItems:"center",marginTop:1},children:[b.jsx("input",{accept:"*",id:"upload-file",type:"file",style:{display:"none"},onChange:E}),b.jsx("label",{htmlFor:"upload-file",children:b.jsx(ui,{color:"primary",component:"span",children:b.jsx(nX,{})})}),b.jsx(Tt,{variant:"body2",style:{marginLeft:"8px"},children:l.filePath})]}),l.author&&b.jsx(Hn,{margin:"dense",label:"מהדורה",type:"text",fullWidth:!0,name:"edition",value:l.edition,onChange:S,inputProps:{minLength:3,maxLength:15},required:!0}),l.edition&&l.edition.length<1&&b.jsx(Tt,{color:"error",children:"המהדורה חייבת להכיל לפחות תו אחד"}),l.author&&b.jsx(Hn,{margin:"dense",label:"סידרה",type:"text",fullWidth:!0,name:"series",value:l.series,onChange:S,inputProps:{minLength:1,maxLength:15},required:!0}),l.series&&l.series.length<1&&b.jsx(Tt,{color:"error",children:"סידרה חייבת להכיל לפחות 3 תווים"}),l.author&&b.jsx(Hn,{margin:"dense",label:"מספר בסידרה",type:"number",fullWidth:!0,name:"numOfSeries",value:l.numOfSeries,onChange:S,inputProps:{minLength:1,maxLength:4,inputMode:"numeric",pattern:"[0-9]*"},required:!0}),l.numOfSeries&&l.numOfSeries.length<1&&b.jsx(Tt,{color:"error",children:"מספר בסידרה חייבת להכיל לפחות מספר אחד"}),l.author&&b.jsx(Hn,{margin:"dense",label:"שפה",type:"text",fullWidth:!0,name:"language",value:l.language,onChange:S,inputProps:{minLength:3,maxLength:10},required:!0}),l.language&&l.language.length<3&&b.jsx(Tt,{color:"error",children:"שפה חייבת להכיל לפחות 3 תווים "}),l.author&&b.jsx(Hn,{margin:"dense",label:"חומר נלווה",type:"text",fullWidth:!0,name:"accompanyingMaterial",value:l.accompanyingMaterial,onChange:S,inputProps:{minLength:3,maxLength:25},required:!0}),l.accompanyingMaterial&&l.accompanyingMaterial.length<3&&b.jsx(Tt,{color:"error",children:"חומר נלווה חייב להכיל לפחות 3 תווים "}),b.jsxs(Ci,{fullWidth:!0,margin:"dense",children:[b.jsx(yd,{id:"level-select-label",children:"רמה"}),b.jsx(zc,{labelId:"level-select-label",id:"level-select",name:"itemLevel",value:j,onChange:F,input:b.jsx(Id,{label:"רמה"}),children:Object.keys(Ba).map($=>b.jsx(uo,{value:Ba[$],children:O[Ba[$]]},Ba[$]))})]}),!l.filePath.includes("https")&&b.jsx(Hn,{margin:"dense",label:"מספר ימי השאלה",type:"number",fullWidth:!0,name:"numberOfDaysOfQuestion",value:l.numberOfDaysOfQuestion,onChange:S,inputProps:{minLength:1,inputMode:"numeric",pattern:"[0-9]*"},required:!0}),l.numberOfDaysOfQuestion&&l.numberOfDaysOfQuestion.length<1&&b.jsx(Tt,{color:"error",children:"מספר ימי השאלה חייב להכיל לפחות מספר אחד "}),b.jsx(Hn,{margin:"dense",label:"הערות",type:"text",fullWidth:!0,name:"note",value:l.note,onChange:S,inputProps:{minLength:2,maxLength:35},required:!0}),l.note&&l.note.length<3&&b.jsx(Tt,{color:"error",children:"הערות חייבת להכיל לפחות 3 תווים "}),b.jsxs(Or,{display:"flex",alignItems:"center",mt:2,children:[b.jsx(Tt,{children:"סוג פריט:"}),b.jsx(Tt,{ml:1,variant:"body2",color:"textSecondary",children:L(l.itemType)})]}),b.jsx(Tt,{variant:"body1",children:H(g)}),b.jsx(ui,{onClick:_,children:l.recommended?b.jsx($b,{style:{color:"yellow"}}):b.jsx(Lb,{})})]}),b.jsxs(Lc,{style:{position:"sticky",bottom:0,background:"#fff",zIndex:1},children:[b.jsx(Zn,{onClick:o,style:{color:"#468585"},children:"ביטול"}),b.jsx(Zn,{type:"submit",style:{color:"#468585"},children:"שמירה"})]})]})})}var DA={},hae=Uo;Object.defineProperty(DA,"__esModule",{value:!0});var zb=DA.default=void 0,mae=hae(di()),gae=b;zb=DA.default=(0,mae.default)((0,gae.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function vae(n,o,i,s,l,c,d,f){return{itemId:n,title:o,author:i,category:s,createdAt:l.replace(/T/g," "),moreDetails:[{desc:c,filePath:d,link:o,publishingYear:f,isBook:d.includes("http")}]}}function NB(n){const{row:o,onEdit:i}=n,[s,l]=x.useState(!1),c=()=>{const{itemId:d,title:f,author:p,category:m,createdAt:g,moreDetails:v}=o,w={id:d,title:f,author:p,category:m,createdAt:g,description:v[0].desc,filePath:v[0].filePath,publishingYear:v[0].publishingYear};i(w)};return b.jsxs(x.Fragment,{children:[b.jsxs(rp,{sx:{"& > *":{borderBottom:"unset"}},children:[b.jsx(Da,{children:b.jsx(ui,{"aria-label":"expand row",size:"small",onClick:()=>l(!s),children:s?b.jsx(eA,{}):b.jsx(J5,{})})}),b.jsx(Da,{className:"table-cell",align:"right",children:o.title}),b.jsx(Da,{className:"table-cell",align:"right",children:o.author}),b.jsx(Da,{className:"table-cell",align:"right",children:o.category}),b.jsx(Da,{className:"table-cell",align:"right",children:o.createdAt}),b.jsx(Da,{className:"table-cell",align:"right",children:b.jsx(ui,{onClick:c,children:b.jsx(zb,{})})}),b.jsx(ui,{className:"icon-button","aria-label":"Verified",variant:"contained",color:"primary",onClick:()=>bae(o.itemId),children:b.jsx(oR,{})}),b.jsx(ui,{className:"icon-button","aria-label":"DisabledByDefaultRounded",variant:"contained",color:"secondary",onClick:()=>wae(o.itemId),children:b.jsx(iR,{})})]}),b.jsx(rp,{dir:"rtl",children:b.jsx(Da,{dir:"rtl",style:{paddingBottom:0,paddingTop:0},colSpan:6,children:b.jsx(K5,{dir:"rtl",in:s,timeout:"auto",unmountOnExit:!0,children:o.moreDetails.map(d=>b.jsxs("div",{dir:"rtl",style:{paddingRight:"11%"},children:[b.jsxs(Or,{display:"flex",dir:"rtl",children:[b.jsx(Tt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"תאור: "})}),b.jsx(Tt,{dir:"rtl",variant:"subtitle1",style:{marginRight:"10px"},children:d.desc})]}),b.jsxs(Or,{display:"flex",dir:"rtl",children:[b.jsx(Tt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"שנת הוצאה: "})}),b.jsx(Tt,{dir:"rtl",variant:"subtitle1",style:{marginRight:"10px"},children:d.publishingYear})]}),d.isBook?b.jsxs(Or,{display:"flex",dir:"rtl",children:[b.jsx(Tt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"קובץ: "})}),b.jsx(Tt,{variant:"subtitle1",style:{marginRight:"10px"},dir:"rtl",children:b.jsx(A0,{href:d.filePath,underline:"hover",target:"_blank",rel:"noopener noreferrer",children:d.link})})]}):b.jsxs(Or,{display:"flex",dir:"rtl",children:[b.jsx(Tt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"מספר מדף: "})}),b.jsx(Tt,{variant:"subtitle1",style:{marginRight:"10px"},dir:"rtl",children:d.filePath})]})]},d.id))})})})]})}NB.propTypes={row:De.shape({title:De.string.isRequired,author:De.string.isRequired,category:De.string.isRequired,createdAt:De.string.isRequired,moreDetails:De.arrayOf(De.shape({desc:De.string.isRequired,filePath:De.string})).isRequired}).isRequired,onEdit:De.func.isRequired};async function bae(n){Mn.fire({title:"?האם לאשר את הפריט",text:"פריט מאושר ייכנס למאגר",showDenyButton:!0,confirmButtonText:"לאשר",denyButtonText:"ביטול"}).then(async o=>{o.isConfirmed?(await Ur.approvalItem(n),Ur.isApprov?(await Ur.fetchPendingItems(),Mn.fire({icon:"success",title:"הפריט אושר",showConfirmButton:!1,timer:1500})):Mn.fire({icon:"error",title:"אופס... תקלה בעת שמירת הנתונים",showConfirmButton:!1,timer:1500})):o.isDenied&&Mn.fire({icon:"info",title:"לא נשמרו שינויים",showConfirmButton:!1,timer:1500})})}async function wae(n){Mn.fire({title:"?האם לא לאשר את הפריט",text:"פריט לא מאושר יימחק מהמאגר",showDenyButton:!0,confirmButtonText:"דחיית פריט",denyButtonText:"ביטול"}).then(async o=>{o.isConfirmed?(await Ur.deniedItem(n),Ur.isDeind?(await Ur.fetchPendingItems(),Mn.fire({icon:"success",title:"הפריט נמחק",showConfirmButton:!1,timer:1500})):Mn.fire({icon:"error",title:"אופס... תקלה בעת שמירת הנתונים",showConfirmButton:!1,timer:1500})):o.isDenied&&Mn.fire({icon:"info",title:"לא נשמרו שינויים",showConfirmButton:!1,timer:1500})})}const xae=Ou(()=>{const[n,o]=x.useState(null),[i,s]=x.useState(!1),l=yf(Ur.getPendingList).map(f=>vae(f.id,f.title,f.author,f.category,f.createdAt,f.description,f.filePath,f.publishingYear)),c=f=>{o(f),s(!0)},d=()=>{o(null),s(!1)};return b.jsxs(b.Fragment,{children:[b.jsx(Or,{display:"flex",justifyContent:"center",alignItems:"center",children:b.jsxs(yl,{elevation:3,sx:{width:"90%",maxWidth:1200},children:[b.jsx(Or,{padding:2,textAlign:"center",children:b.jsx(Tt,{variant:"h4",component:"h1",children:b.jsx("b",{children:"פריטים ממתינים לאישור"})})}),b.jsx(rR,{component:yl,dir:"rtl",children:b.jsxs(eR,{"aria-label":"collapsible table",children:[b.jsx(o_,{className:"table-head-cell",children:b.jsxs(rp,{className:"table-head-cell",children:[b.jsx(Da,{className:"table-head-cell"}),b.jsx(Da,{className:"table-head-cell",style:{color:"white"},align:"right",children:"כותרת"}),b.jsx(Da,{className:"table-head-cell",style:{color:"white"},align:"right",children:"מחבר"}),b.jsx(Da,{className:"table-head-cell",style:{color:"white"},align:"right",children:"קטגוריה"}),b.jsx(Da,{className:"table-head-cell",style:{color:"white"},align:"right",children:"תאריך יצירה"}),b.jsx(Da,{className:"table-head-cell",style:{color:"white"},align:"right"}),b.jsx(Da,{className:"table-head-cell",style:{color:"white"},align:"right"})]})}),b.jsx(tR,{children:l.length>0?l.map(f=>b.jsx(NB,{row:f,onEdit:c},f.title)):b.jsx(rp,{children:b.jsx(Da,{colSpan:7,align:"center",children:b.jsx(Tt,{variant:"h6",children:"אין פריטים ממתינים"})})})})]})})]})}),n&&b.jsx(DB,{mediaItem:n,onClose:d})]})});var NA={},yae=Uo;Object.defineProperty(NA,"__esModule",{value:!0});var $B=NA.default=void 0,Aae=yae(di()),Cae=b;$B=NA.default=(0,Aae.default)((0,Cae.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Mail");const LB=x.createContext(void 0);function gn(){const n=x.useContext(LB);if(n===void 0)throw new Error(["MUI X: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` -`));return n}const zB=x.createContext(void 0),ir=()=>{const n=x.useContext(zB);if(!n)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return n},kae={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:n=>n!==1?`${n} active filters`:`${n} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:n=>n!==1?`${n} active filters`:`${n} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:n=>n!==1?`${n.toLocaleString()} rows selected`:`${n.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(n,o)=>`${n.toLocaleString()} of ${o.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:n=>`Group by ${n}`,unGroupColumn:n=>`Stop grouping by ${n}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function Tn(n){return Kt("MuiDataGrid",n)}const we=Yt("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderTop","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),KI=1e3;class Sae{constructor(o=KI){this.timeouts=new Map,this.cleanupTimeout=KI,this.cleanupTimeout=o}register(o,i,s){this.timeouts||(this.timeouts=new Map);const l=setTimeout(()=>{typeof i=="function"&&i(),this.timeouts.delete(s.cleanupToken)},this.cleanupTimeout);this.timeouts.set(s.cleanupToken,l)}unregister(o){const i=this.timeouts.get(o.cleanupToken);i&&(this.timeouts.delete(o.cleanupToken),clearTimeout(i))}reset(){this.timeouts&&(this.timeouts.forEach((o,i)=>{this.unregister({cleanupToken:i})}),this.timeouts=void 0)}}class Iae{constructor(){this.registry=new FinalizationRegistry(o=>{typeof o=="function"&&o()})}register(o,i,s){this.registry.register(o,i,s)}unregister(o){this.registry.unregister(o)}reset(){}}var tc=function(n){return n.DataGrid="DataGrid",n.DataGridPro="DataGridPro",n.DataGridPremium="DataGridPremium",n}(tc||{});class Eae{}function Mae(n){let o=0;return function(s,l,c,d){n.registry===null&&(n.registry=typeof FinalizationRegistry<"u"?new Iae:new Sae);const[f]=x.useState(new Eae),p=x.useRef(null),m=x.useRef();m.current=c;const g=x.useRef(null);if(!p.current&&m.current){const v=(w,A,k)=>{var C;A.defaultMuiPrevented||(C=m.current)==null||C.call(m,w,A,k)};p.current=s.current.subscribeEvent(l,v,d),o+=1,g.current={cleanupToken:o},n.registry.register(f,()=>{var w;(w=p.current)==null||w.call(p),p.current=null,g.current=null},g.current)}else!m.current&&p.current&&(p.current(),p.current=null,g.current&&(n.registry.unregister(g.current),g.current=null));x.useEffect(()=>{if(!p.current&&m.current){const v=(w,A,k)=>{var C;A.defaultMuiPrevented||(C=m.current)==null||C.call(m,w,A,k)};p.current=s.current.subscribeEvent(l,v,d)}return g.current&&n.registry&&(n.registry.unregister(g.current),g.current=null),()=>{var v;(v=p.current)==null||v.call(p),p.current=null}},[s,l,d])}}const Pae={registry:null},Jt=Mae(Pae),jae={isFirst:!0};function Jo(n,o,i){Jt(n,o,i,jae)}const Oae=Object.is;function HB(n,o){if(n===o)return!0;if(!(n instanceof Object)||!(o instanceof Object))return!1;let i=0,s=0;for(const l in n)if(i+=1,!Oae(n[l],o[l])||!(l in o))return!1;for(const l in o)s+=1;return i===s}function Rae(n){return n.acceptsApiRef}function XI(n,o){return Rae(o)?o(n):o(n.current.state)}const Bae=Object.is,UB=HB,Tae=()=>({state:null,equals:null,selector:null}),$t=(n,o,i=Bae)=>{const s=Pf(Tae),l=s.current.selector!==null,[c,d]=x.useState(l?null:XI(n,o));return s.current.state=c,s.current.equals=i,s.current.selector=o,nb(()=>n.current.store.subscribe(()=>{const f=XI(n,s.current.selector);s.current.equals(s.current.state,f)||(s.current.state=f,d(f))})),c},Vl=n=>n.dimensions;var d3="NOT_FOUND";function Fae(n){var o;return{get:function(s){return o&&n(o.key,s)?o.value:d3},put:function(s,l){o={key:s,value:l}},getEntries:function(){return o?[o]:[]},clear:function(){o=void 0}}}function Dae(n,o){var i=[];function s(f){var p=i.findIndex(function(g){return o(f,g.key)});if(p>-1){var m=i[p];return p>0&&(i.splice(p,1),i.unshift(m)),m.value}return d3}function l(f,p){s(f)===d3&&(i.unshift({key:f,value:p}),i.length>n&&i.pop())}function c(){return i}function d(){i=[]}return{get:s,put:l,getEntries:c,clear:d}}var Nae=function(o,i){return o===i};function $ae(n){return function(i,s){if(i===null||s===null||i.length!==s.length)return!1;for(var l=i.length,c=0;c1?o-1:0),s=1;s{if(d.length>0)throw new Error("Unsupported number of selectors");let f;if(n&&o&&i&&s&&l&&c)f=(p,m)=>{const g=l2(p),v=m??(g?p.current.instanceId:c2),w=g?p.current.state:p,A=n(w,v),k=o(w,v),C=i(w,v),M=s(w,v),S=l(w,v);return c(A,k,C,M,S)};else if(n&&o&&i&&s&&l)f=(p,m)=>{const g=l2(p),v=m??(g?p.current.instanceId:c2),w=g?p.current.state:p,A=n(w,v),k=o(w,v),C=i(w,v),M=s(w,v);return l(A,k,C,M)};else if(n&&o&&i&&s)f=(p,m)=>{const g=l2(p),v=m??(g?p.current.instanceId:c2),w=g?p.current.state:p,A=n(w,v),k=o(w,v),C=i(w,v);return s(A,k,C)};else if(n&&o&&i)f=(p,m)=>{const g=l2(p),v=m??(g?p.current.instanceId:c2),w=g?p.current.state:p,A=n(w,v),k=o(w,v);return i(A,k)};else if(n&&o)f=(p,m)=>{const g=l2(p),v=m??(g?p.current.instanceId:c2),w=g?p.current.state:p,A=n(w,v);return o(A)};else throw new Error("Missing arguments");return f.acceptsApiRef=!0,f},Go=(...n)=>{const o=(i,s)=>{const l=l2(i),c=l?i.current.instanceId:s??c2,d=l?i.current.state:i,f=JI.get(c),p=f??new Map,m=p==null?void 0:p.get(n);if(p&&m)return m(d,c);const g=Hae(...n);return f||JI.set(c,p),p.set(n,g),g(d,c)};return o.acceptsApiRef=!0,o},Uae=.7,Gae=1.3,Vae={compact:Uae,comfortable:Gae,standard:1},E2=n=>n.density,Rm=Dr(E2,n=>Vae[n]);let ki=function(n){return n.LEFT="left",n.RIGHT="right",n}({});const Jy={left:[],right:[]},Qae=n=>n.theme,Hc=n=>n.columns,gu=Dr(Hc,n=>n.orderedFields),$d=Dr(Hc,n=>n.lookup),rc=Go(gu,$d,(n,o)=>n.map(i=>o[i])),x1=Dr(Hc,n=>n.columnVisibilityModel),$a=Go(rc,x1,(n,o)=>n.filter(i=>o[i.field]!==!1)),Bm=Go($a,n=>n.map(o=>o.field)),Wae=n=>n.pinnedColumns,Tm=Go(Hc,Wae,Bm,Qae,(n,o,i,s)=>{const l=qae(o,i,s.direction==="rtl");return{left:l.left.map(d=>n.lookup[d]),right:l.right.map(d=>n.lookup[d])}});function qae(n,o,i){var f,p;if(!Array.isArray(n.left)&&!Array.isArray(n.right)||((f=n.left)==null?void 0:f.length)===0&&((p=n.right)==null?void 0:p.length)===0)return Jy;const s=(m,g)=>Array.isArray(m)?m.filter(v=>g.includes(v)):[],l=s(n.left,o),c=o.filter(m=>!l.includes(m)),d=s(n.right,c);return i?{left:d,right:l}:{left:l,right:d}}const Ld=Go($a,n=>{const o=[];let i=0;for(let s=0;s{const i=n.length;return i===0?0:o[i-1]+n[i-1].computedWidth}),VB=Go(rc,n=>n.filter(o=>o.filterable)),_ae=Go(rc,n=>n.reduce((o,i)=>(i.filterable&&(o[i.field]=i),o),{})),Yae=Go(rc,n=>n.some(o=>o.colSpan!==void 0)),Kae=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Xae=n=>{const{classes:o}=n;return Rt({root:["editInputCell"]},Tn,o)},Jae=_e(jp,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(n,o)=>o.editInputCell})(({theme:n})=>P({},n.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Zae=x.forwardRef((n,o)=>{const i=ir(),{id:s,value:l,field:c,colDef:d,hasFocus:f,debounceMs:p=200,isProcessingProps:m,onValueChange:g}=n,v=Qe(n,Kae),w=gn(),A=x.useRef(),[k,C]=x.useState(l),M=Xae(i),S=x.useCallback(async E=>{const j=E.target.value;g&&await g(E,j);const B=w.current.getColumn(c);let F=j;B.valueParser&&(F=B.valueParser(j,w.current.getRow(s),B,w)),C(F),w.current.setEditCellValue({id:s,field:c,value:F,debounceMs:p,unstable_skipValueParser:!0},E)},[w,p,c,s,g]),I=w.current.unstable_getEditCellMeta(s,c);return x.useEffect(()=>{(I==null?void 0:I.changeReason)!=="debouncedSetEditCellValue"&&C(l)},[I,l]),yo(()=>{f&&A.current.focus()},[f]),b.jsx(Jae,P({ref:o,inputRef:A,className:M.root,ownerState:i,fullWidth:!0,type:d.type==="number"?d.type:"text",value:k??"",onChange:S,endAdornment:m?b.jsx(i.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},v))}),ese=n=>b.jsx(Zae,P({},n)),QB=(n,o)=>o&&n.length>1?[n[0]]:n,ZI=(n,o)=>i=>P({},i,{sorting:P({},i.sorting,{sortModel:QB(n,o)})}),tse=n=>n==="desc",rse=(n,o)=>{const i=o.current.getColumn(n.field);if(!i||n.sort===null)return null;let s;return i.getSortComparator?s=i.getSortComparator(n.sort):s=tse(n.sort)?(...c)=>-1*i.sortComparator(...c):i.sortComparator,s?{getSortCellParams:c=>({id:c,field:i.field,rowNode:o.current.getRowNode(c),value:o.current.getCellValue(c,i.field),api:o.current}),comparator:s}:null},nse=(n,o,i)=>n.reduce((s,l,c)=>{if(s!==0)return s;const d=o.params[c],f=i.params[c];return s=l.comparator(d.value,f.value,d,f),s},0),ose=(n,o)=>{const i=n.map(s=>rse(s,o)).filter(s=>!!s);return i.length===0?null:s=>s.map(l=>({node:l,params:i.map(c=>c.getSortCellParams(l.id))})).sort((l,c)=>nse(i,l,c)).map(l=>l.node.id)},eE=(n,o)=>{const i=n.indexOf(o);return!o||i===-1||i+1===n.length?n[0]:n[i+1]},LA=(n,o)=>n==null&&o!=null?-1:o==null&&n!=null?1:n==null&&o==null?0:null,ise=new Intl.Collator,ase=(n,o)=>{const i=LA(n,o);return i!==null?i:typeof n=="string"?ise.compare(n.toString(),o.toString()):n-o},WB=(n,o)=>{const i=LA(n,o);return i!==null?i:Number(n)-Number(o)},qB=(n,o)=>{const i=LA(n,o);return i!==null?i:n>o?1:n{const{value:F}=B.target;k(String(F)),M(!0),w.start(I.filterDebounceMs,()=>{const O=P({},o,{value:F,fromInput:S});i(O),M(!1)})},[S,i,o,I.filterDebounceMs,w]);return x.useEffect(()=>{(o.fromInput!==S||o.value===void 0)&&k(String(o.value??""))},[S,o]),b.jsx(I.slots.baseTextField,P({id:S,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:A,onChange:E,variant:g,type:s||"text",InputProps:P({},C||p?{endAdornment:C?b.jsx(I.slots.loadIcon,{fontSize:"small",color:"action"}):p}:{},{disabled:f},m,{inputProps:P({tabIndex:d},m==null?void 0:m.inputProps)}),InputLabelProps:{shrink:!0},inputRef:c},v,(j=I.slotProps)==null?void 0:j.baseTextField))}function lse(n){return typeof n=="number"&&!Number.isNaN(n)}function _B(n){return typeof n=="function"}function zA(n){return typeof n=="object"&&n!==null}function cse(){try{const n="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(n,n),window.localStorage.removeItem(n),!0}catch{return!1}}function sv(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Mu=(n,o,i)=>Math.max(o,Math.min(i,n));function tE(n,o){return Array.from({length:o-n}).map((i,s)=>n+s)}function V2(n,o){if(n===o)return!0;if(n&&o&&typeof n=="object"&&typeof o=="object"){if(n.constructor!==o.constructor)return!1;if(Array.isArray(n)){const l=n.length;if(l!==o.length)return!1;for(let c=0;c{let o=n+=1831565813;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296}}function dse(n){const o=use(n);return(i,s)=>i+(s-i)*o()}function YB(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}const fse=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function KB(n){const{item:o,applyValue:i,type:s,apiRef:l,focusElementRef:c,color:d,error:f,helperText:p,size:m,variant:g="standard"}=n,v=Qe(n,fse),w={color:d,error:f,helperText:p,size:m,variant:g},[A,k]=x.useState(o.value||[]),C=Ro(),M=ir();x.useEffect(()=>{const I=o.value??[];k(I.map(String))},[o.value]);const S=x.useCallback((I,E)=>{k(E.map(String)),i(P({},o,{value:[...E]}))},[i,o]);return b.jsx(up,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(I,E)=>{const{inputValue:j}=E;return j==null||j===""?[]:[j]},id:C,value:A,onChange:S,renderTags:(I,E)=>I.map((j,B)=>b.jsx(M.slots.baseChip,P({variant:"outlined",size:"small",label:j},E({index:B})))),renderInput:I=>{var E;return b.jsx(M.slots.baseTextField,P({},I,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},I.InputLabelProps,{shrink:!0}),inputRef:c,type:s||"text"},w,(E=M.slotProps)==null?void 0:E.baseTextField))}},v))}var Qc=function(n){return n.Cell="cell",n.Row="row",n}(Qc||{}),Oo=function(n){return n.Edit="edit",n.View="view",n}(Oo||{}),Xo=function(n){return n.Edit="edit",n.View="view",n}(Xo||{}),_s=function(n){return n.And="and",n.Or="or",n}(_s||{}),Yc=function(n){return n.enterKeyDown="enterKeyDown",n.cellDoubleClick="cellDoubleClick",n.printableKeyDown="printableKeyDown",n.deleteKeyDown="deleteKeyDown",n.pasteKeyDown="pasteKeyDown",n}(Yc||{}),_1=function(n){return n.cellFocusOut="cellFocusOut",n.escapeKeyDown="escapeKeyDown",n.enterKeyDown="enterKeyDown",n.tabKeyDown="tabKeyDown",n.shiftTabKeyDown="shiftTabKeyDown",n}(_1||{}),Vu=function(n){return n.enterKeyDown="enterKeyDown",n.cellDoubleClick="cellDoubleClick",n.printableKeyDown="printableKeyDown",n.deleteKeyDown="deleteKeyDown",n}(Vu||{}),yc=function(n){return n.rowFocusOut="rowFocusOut",n.escapeKeyDown="escapeKeyDown",n.enterKeyDown="enterKeyDown",n.tabKeyDown="tabKeyDown",n.shiftTabKeyDown="shiftTabKeyDown",n}(yc||{});function XB(n){return n.field!==void 0}const Xh=()=>({items:[],logicOperator:_s.And,quickFilterValues:[],quickFilterLogicOperator:_s.And});function JB(n){return{current:n.current.getPublicApi()}}let p0;function pse(){if(p0!==void 0)return p0;try{p0=new Function("return true")()}catch{p0=!1}return p0}const Zy=(n,o)=>{const i=P({},n);if(i.id==null&&(i.id=Math.round(Math.random()*1e5)),i.operator==null){const s=$d(o)[i.field];i.operator=s&&s.filterOperators[0].value}return i},HA=(n,o,i)=>{const s=n.items.length>1;let l;s&&o?l=[n.items[0]]:l=n.items;const c=s&&l.some(f=>f.id==null);return l.some(f=>f.operator==null)||c?P({},n,{items:l.map(f=>Zy(f,i))}):n.items!==l?P({},n,{items:l}):n},rE=(n,o,i)=>s=>P({},s,{filterModel:HA(n,o,i)}),Jh=n=>typeof n=="string"?n.normalize("NFD").replace(/[\u0300-\u036f]/g,""):n,ZB=(n,o)=>{var g;if(!n.field||!n.operator)return null;const i=o.current.getColumn(n.field);if(!i)return null;let s;if(i.valueParser){const v=i.valueParser;s=Array.isArray(n.value)?(g=n.value)==null?void 0:g.map(w=>v(w,void 0,i,o)):v(n.value,void 0,i,o)}else s=n.value;const{ignoreDiacritics:l}=o.current.rootProps;l&&(s=Jh(s));const c=P({},n,{value:s}),d=i.filterOperators;if(!(d!=null&&d.length))throw new Error(`MUI X: No filter operators found for column '${i.field}'.`);const f=d.find(v=>v.value===c.operator);if(!f)throw new Error(`MUI X: No filter operator found for column '${i.field}' and operator value '${c.operator}'.`);const p=JB(o),m=f.getApplyFilterFn(c,i);return typeof m!="function"?null:{item:c,fn:v=>{let w=o.current.getRowValue(v,i);return l&&(w=Jh(w)),m(w,v,i,p)}}};let nE=1;const hse=(n,o,i)=>{const{items:s}=n,l=s.map(f=>ZB(f,o)).filter(f=>!!f);if(l.length===0)return null;if(i||!pse())return(f,p)=>{const m={};for(let g=0;g{const{classes:o,disableInteractive:i,arrow:s,touch:l,placement:c}=n,d={popper:["popper",!i&&"popperInteractive",s&&"popperArrow"],tooltip:["tooltip",s&&"tooltipArrow",l&&"touch",`tooltipPlacement${Ke(c.split("-")[0])}`],arrow:["arrow"]};return Bt(d,hie,o)},bie=_e(Eu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.popper,!i.disableInteractive&&o.popperInteractive,i.arrow&&o.popperArrow,!i.open&&o.popperClose]}})(({theme:n,ownerState:o,open:i})=>P({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!o.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},o.arrow&&{[`&[data-popper-placement*="bottom"] .${sd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${sd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${sd.arrow}`]:P({},o.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${sd.arrow}`]:P({},o.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),wie=_e("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.tooltip,i.touch&&o.touch,i.arrow&&o.tooltipArrow,o[`tooltipPlacement${Ke(i.placement.split("-")[0])}`]]}})(({theme:n,ownerState:o})=>P({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:Lr(n.palette.grey[700],.92),borderRadius:(n.vars||n).shape.borderRadius,color:(n.vars||n).palette.common.white,fontFamily:n.typography.fontFamily,padding:"4px 8px",fontSize:n.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:n.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:n.typography.pxToRem(14),lineHeight:`${gie(16/14)}em`,fontWeight:n.typography.fontWeightRegular},{[`.${sd.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},o.isRtl?P({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},o.touch&&{marginRight:"24px"})),[`.${sd.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},o.isRtl?P({marginRight:"14px"},o.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},o.touch&&{marginLeft:"24px"})),[`.${sd.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"}),[`.${sd.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})})),xie=_e("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(n,o)=>o.arrow})(({theme:n})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:n.vars?n.vars.palette.Tooltip.bg:Lr(n.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Pg=!1;const eE=new cm;let d0={x:0,y:0};function jg(n,o){return(i,...s)=>{o&&o(i,...s),n(i,...s)}}const Ol=x.forwardRef(function(o,i){var s,l,c,d,f,p,m,g,v,w,A,k,C,M,S,I,E,j,B;const D=Zt({props:o,name:"MuiTooltip"}),{arrow:R=!1,children:N,components:U={},componentsProps:L={},describeChild:_=!1,disableFocusListener:V=!1,disableHoverListener:$=!1,disableInteractive:z=!1,disableTouchListener:Q=!1,enterDelay:G=100,enterNextDelay:F=0,enterTouchDelay:q=700,followCursor:W=!1,id:X,leaveDelay:te=0,leaveTouchDelay:se=1500,onClose:de,onOpen:ee,open:fe,placement:he="bottom",PopperComponent:Ie,PopperProps:ve={},slotProps:be={},slots:ke={},title:ze,TransitionComponent:Ge=Af,TransitionProps:Ve}=D,at=Qe(D,mie),We=x.isValidElement(N)?N:b.jsx("span",{children:N}),ue=ka(),Le=Id(),[$e,bt]=x.useState(),[ot,st]=x.useState(null),Ze=x.useRef(!1),dt=z||W,Xe=Fl(),Pt=Fl(),mt=Fl(),pt=Fl(),[Fe,Be]=jc({controlled:fe,default:!1,name:"Tooltip",state:"open"});let Je=Fe;const It=Fo(X),Nt=x.useRef(),ht=ln(()=>{Nt.current!==void 0&&(document.body.style.WebkitUserSelect=Nt.current,Nt.current=void 0),pt.clear()});x.useEffect(()=>ht,[ht]);const xt=ut=>{eE.clear(),Pg=!0,Be(!0),ee&&!Je&&ee(ut)},tt=ln(ut=>{eE.start(800+te,()=>{Pg=!1}),Be(!1),de&&Je&&de(ut),Xe.start(ue.transitions.duration.shortest,()=>{Ze.current=!1})}),Y=ut=>{Ze.current&&ut.type!=="touchstart"||($e&&$e.removeAttribute("title"),Pt.clear(),mt.clear(),G||Pg&&F?Pt.start(Pg?F:G,()=>{xt(ut)}):xt(ut))},re=ut=>{Pt.clear(),mt.start(te,()=>{tt(ut)})},{isFocusVisibleRef:ie,onBlur:le,onFocus:ge,ref:Pe}=ob(),[,me]=x.useState(!1),Ee=ut=>{le(ut),ie.current===!1&&(me(!1),re(ut))},ce=ut=>{$e||bt(ut.currentTarget),ge(ut),ie.current===!0&&(me(!0),Y(ut))},je=ut=>{Ze.current=!0;const Dt=We.props;Dt.onTouchStart&&Dt.onTouchStart(ut)},He=ut=>{je(ut),mt.clear(),Xe.clear(),ht(),Nt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",pt.start(q,()=>{document.body.style.WebkitUserSelect=Nt.current,Y(ut)})},Ne=ut=>{We.props.onTouchEnd&&We.props.onTouchEnd(ut),ht(),mt.start(se,()=>{tt(ut)})};x.useEffect(()=>{if(!Je)return;function ut(Dt){(Dt.key==="Escape"||Dt.key==="Esc")&&tt(Dt)}return document.addEventListener("keydown",ut),()=>{document.removeEventListener("keydown",ut)}},[tt,Je]);const ye=Xn(We.ref,Pe,bt,i);!ze&&ze!==0&&(Je=!1);const rt=x.useRef(),Te=ut=>{const Dt=We.props;Dt.onMouseMove&&Dt.onMouseMove(ut),d0={x:ut.clientX,y:ut.clientY},rt.current&&rt.current.update()},Ae={},Ue=typeof ze=="string";_?(Ae.title=!Je&&Ue&&!$?ze:null,Ae["aria-describedby"]=Je?It:null):(Ae["aria-label"]=Ue?ze:null,Ae["aria-labelledby"]=Je&&!Ue?It:null);const qe=P({},Ae,at,We.props,{className:nt(at.className,We.props.className),onTouchStart:je,ref:ye},W?{onMouseMove:Te}:{}),De={};Q||(qe.onTouchStart=He,qe.onTouchEnd=Ne),$||(qe.onMouseOver=jg(Y,qe.onMouseOver),qe.onMouseLeave=jg(re,qe.onMouseLeave),dt||(De.onMouseOver=Y,De.onMouseLeave=re)),V||(qe.onFocus=jg(ce,qe.onFocus),qe.onBlur=jg(Ee,qe.onBlur),dt||(De.onFocus=ce,De.onBlur=Ee));const lt=x.useMemo(()=>{var ut;let Dt=[{name:"arrow",enabled:!!ot,options:{element:ot,padding:4}}];return(ut=ve.popperOptions)!=null&&ut.modifiers&&(Dt=Dt.concat(ve.popperOptions.modifiers)),P({},ve.popperOptions,{modifiers:Dt})},[ot,ve]),gt=P({},D,{isRtl:Le,arrow:R,disableInteractive:dt,placement:he,PopperComponentProp:Ie,touch:Ze.current}),At=vie(gt),St=(s=(l=ke.popper)!=null?l:U.Popper)!=null?s:bie,yt=(c=(d=(f=ke.transition)!=null?f:U.Transition)!=null?d:Ge)!=null?c:Af,Ct=(p=(m=ke.tooltip)!=null?m:U.Tooltip)!=null?p:wie,Re=(g=(v=ke.arrow)!=null?v:U.Arrow)!=null?g:xie,Ce=d2(St,P({},ve,(w=be.popper)!=null?w:L.popper,{className:nt(At.popper,ve==null?void 0:ve.className,(A=(k=be.popper)!=null?k:L.popper)==null?void 0:A.className)}),gt),Ye=d2(yt,P({},Ve,(C=be.transition)!=null?C:L.transition),gt),et=d2(Ct,P({},(M=be.tooltip)!=null?M:L.tooltip,{className:nt(At.tooltip,(S=(I=be.tooltip)!=null?I:L.tooltip)==null?void 0:S.className)}),gt),Et=d2(Re,P({},(E=be.arrow)!=null?E:L.arrow,{className:nt(At.arrow,(j=(B=be.arrow)!=null?B:L.arrow)==null?void 0:j.className)}),gt);return b.jsxs(x.Fragment,{children:[x.cloneElement(We,qe),b.jsx(St,P({as:Ie??Eu,placement:he,anchorEl:W?{getBoundingClientRect:()=>({top:d0.y,left:d0.x,right:d0.x,bottom:d0.y,width:0,height:0})}:$e,popperRef:rt,open:$e?Je:!1,id:It,transition:!0},De,Ce,{popperOptions:lt,children:({TransitionProps:ut})=>b.jsx(yt,P({timeout:ue.transitions.duration.shorter},ut,Ye,{children:b.jsxs(Ct,P({},et,{children:[ze,R?b.jsx(Re,P({},Et,{ref:st})):null]}))}))}))]})});function yie(n){return Kt("MuiSwitch",n)}const Gs=Yt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Aie=["className","color","edge","size","sx"],Cie=n=>{const{classes:o,edge:i,size:s,color:l,checked:c,disabled:d}=n,f={root:["root",i&&`edge${Ke(i)}`,`size${Ke(s)}`],switchBase:["switchBase",`color${Ke(l)}`,c&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},p=Bt(f,yie,o);return P({},o,p)},kie=_e("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.edge&&o[`edge${Ke(i.edge)}`],o[`size${Ke(i.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gs.thumb}`]:{width:16,height:16},[`& .${Gs.switchBase}`]:{padding:4,[`&.${Gs.checked}`]:{transform:"translateX(16px)"}}}}]}),Sie=_e(CA,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.switchBase,{[`& .${Gs.input}`]:o.input},i.color!=="default"&&o[`color${Ke(i.color)}`]]}})(({theme:n})=>({position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:`${n.palette.mode==="light"?n.palette.common.white:n.palette.grey[300]}`,transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest}),[`&.${Gs.checked}`]:{transform:"translateX(20px)"},[`&.${Gs.disabled}`]:{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:`${n.palette.mode==="light"?n.palette.grey[100]:n.palette.grey[600]}`},[`&.${Gs.checked} + .${Gs.track}`]:{opacity:.5},[`&.${Gs.disabled} + .${Gs.track}`]:{opacity:n.vars?n.vars.opacity.switchTrackDisabled:`${n.palette.mode==="light"?.12:.2}`},[`& .${Gs.input}`]:{left:"-100%",width:"300%"}}),({theme:n})=>({"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.action.activeChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(n.palette).filter(([,o])=>o.main&&o.light).map(([o])=>({props:{color:o},style:{[`&.${Gs.checked}`]:{color:(n.vars||n).palette[o].main,"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette[o].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:Lr(n.palette[o].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gs.disabled}`]:{color:n.vars?n.vars.palette.Switch[`${o}DisabledColor`]:`${n.palette.mode==="light"?ab(n.palette[o].main,.62):ib(n.palette[o].main,.55)}`}},[`&.${Gs.checked} + .${Gs.track}`]:{backgroundColor:(n.vars||n).palette[o].main}}}))]})),Iie=_e("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(n,o)=>o.track})(({theme:n})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:n.transitions.create(["opacity","background-color"],{duration:n.transitions.duration.shortest}),backgroundColor:n.vars?n.vars.palette.common.onBackground:`${n.palette.mode==="light"?n.palette.common.black:n.palette.common.white}`,opacity:n.vars?n.vars.opacity.switchTrack:`${n.palette.mode==="light"?.38:.3}`})),Eie=_e("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(n,o)=>o.thumb})(({theme:n})=>({boxShadow:(n.vars||n).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Hd=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiSwitch"}),{className:l,color:c="primary",edge:d=!1,size:f="medium",sx:p}=s,m=Qe(s,Aie),g=P({},s,{color:c,edge:d,size:f}),v=Cie(g),w=b.jsx(Eie,{className:v.thumb,ownerState:g});return b.jsxs(kie,{className:nt(v.root,l),sx:p,ownerState:g,children:[b.jsx(Sie,P({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:g},m,{classes:P({},v,{root:v.switchBase})})),b.jsx(Iie,{className:v.track,ownerState:g})]})});function Mie(n){return Kt("MuiTab",n)}const Lu=Yt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Pie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],jie=n=>{const{classes:o,textColor:i,fullWidth:s,wrapped:l,icon:c,label:d,selected:f,disabled:p}=n,m={root:["root",c&&d&&"labelIcon",`textColor${Ke(i)}`,s&&"fullWidth",l&&"wrapped",f&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return Bt(m,Mie,o)},Oie=_e(Hc,{name:"MuiTab",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.label&&i.icon&&o.labelIcon,o[`textColor${Ke(i.textColor)}`],i.fullWidth&&o.fullWidth,i.wrapped&&o.wrapped,{[`& .${Lu.iconWrapper}`]:o.iconWrapper}]}})(({theme:n,ownerState:o})=>P({},n.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},o.label&&{flexDirection:o.iconPosition==="top"||o.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},o.icon&&o.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Lu.iconWrapper}`]:P({},o.iconPosition==="top"&&{marginBottom:6},o.iconPosition==="bottom"&&{marginTop:6},o.iconPosition==="start"&&{marginRight:n.spacing(1)},o.iconPosition==="end"&&{marginLeft:n.spacing(1)})},o.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Lu.selected}`]:{opacity:1},[`&.${Lu.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity}},o.textColor==="primary"&&{color:(n.vars||n).palette.text.secondary,[`&.${Lu.selected}`]:{color:(n.vars||n).palette.primary.main},[`&.${Lu.disabled}`]:{color:(n.vars||n).palette.text.disabled}},o.textColor==="secondary"&&{color:(n.vars||n).palette.text.secondary,[`&.${Lu.selected}`]:{color:(n.vars||n).palette.secondary.main},[`&.${Lu.disabled}`]:{color:(n.vars||n).palette.text.disabled}},o.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},o.wrapped&&{fontSize:n.typography.pxToRem(12)})),Da=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTab"}),{className:l,disabled:c=!1,disableFocusRipple:d=!1,fullWidth:f,icon:p,iconPosition:m="top",indicator:g,label:v,onChange:w,onClick:A,onFocus:k,selected:C,selectionFollowsFocus:M,textColor:S="inherit",value:I,wrapped:E=!1}=s,j=Qe(s,Pie),B=P({},s,{disabled:c,disableFocusRipple:d,selected:C,icon:!!p,iconPosition:m,label:!!v,fullWidth:f,textColor:S,wrapped:E}),D=jie(B),R=p&&v&&x.isValidElement(p)?x.cloneElement(p,{className:nt(D.iconWrapper,p.props.className)}):p,N=L=>{!C&&w&&w(L,I),A&&A(L)},U=L=>{M&&!C&&w&&w(L,I),k&&k(L)};return b.jsxs(Oie,P({focusRipple:!d,className:nt(D.root,l),ref:i,role:"tab","aria-selected":C,disabled:c,onClick:N,onFocus:U,ownerState:B,tabIndex:C?0:-1},j,{children:[m==="top"||m==="start"?b.jsxs(x.Fragment,{children:[R,v]}):b.jsxs(x.Fragment,{children:[v,R]}),g]}))});function Rie(n){return Kt("MuiToolbar",n)}Yt("MuiToolbar",["root","gutters","regular","dense"]);const Bie=["className","component","disableGutters","variant"],Tie=n=>{const{classes:o,disableGutters:i,variant:s}=n;return Bt({root:["root",!i&&"gutters",s]},Rie,o)},Fie=_e("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,!i.disableGutters&&o.gutters,o[i.variant]]}})(({theme:n,ownerState:o})=>P({position:"relative",display:"flex",alignItems:"center"},!o.disableGutters&&{paddingLeft:n.spacing(2),paddingRight:n.spacing(2),[n.breakpoints.up("sm")]:{paddingLeft:n.spacing(3),paddingRight:n.spacing(3)}},o.variant==="dense"&&{minHeight:48}),({theme:n,ownerState:o})=>o.variant==="regular"&&n.mixins.toolbar),zB=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiToolbar"}),{className:l,component:c="div",disableGutters:d=!1,variant:f="regular"}=s,p=Qe(s,Bie),m=P({},s,{component:c,disableGutters:d,variant:f}),g=Tie(m);return b.jsx(Fie,P({as:c,className:nt(g.root,l),ref:i,ownerState:m},p))}),HB=_r(b.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),UB=_r(b.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Die=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Nie=x.forwardRef(function(o,i){var s,l,c,d,f,p,m,g;const{backIconButtonProps:v,count:w,disabled:A=!1,getItemAriaLabel:k,nextIconButtonProps:C,onPageChange:M,page:S,rowsPerPage:I,showFirstButton:E,showLastButton:j,slots:B={},slotProps:D={}}=o,R=Qe(o,Die),N=Id(),U=be=>{M(be,0)},L=be=>{M(be,S-1)},_=be=>{M(be,S+1)},V=be=>{M(be,Math.max(0,Math.ceil(w/I)-1))},$=(s=B.firstButton)!=null?s:fi,z=(l=B.lastButton)!=null?l:fi,Q=(c=B.nextButton)!=null?c:fi,G=(d=B.previousButton)!=null?d:fi,F=(f=B.firstButtonIcon)!=null?f:Jy,q=(p=B.lastButtonIcon)!=null?p:Zy,W=(m=B.nextButtonIcon)!=null?m:UB,X=(g=B.previousButtonIcon)!=null?g:HB,te=N?z:$,se=N?Q:G,de=N?G:Q,ee=N?$:z,fe=N?D.lastButton:D.firstButton,he=N?D.nextButton:D.previousButton,Ie=N?D.previousButton:D.nextButton,ve=N?D.firstButton:D.lastButton;return b.jsxs("div",P({ref:i},R,{children:[E&&b.jsx(te,P({onClick:U,disabled:A||S===0,"aria-label":k("first",S),title:k("first",S)},fe,{children:N?b.jsx(q,P({},D.lastButtonIcon)):b.jsx(F,P({},D.firstButtonIcon))})),b.jsx(se,P({onClick:L,disabled:A||S===0,color:"inherit","aria-label":k("previous",S),title:k("previous",S)},he??v,{children:N?b.jsx(W,P({},D.nextButtonIcon)):b.jsx(X,P({},D.previousButtonIcon))})),b.jsx(de,P({onClick:_,disabled:A||(w!==-1?S>=Math.ceil(w/I)-1:!1),color:"inherit","aria-label":k("next",S),title:k("next",S)},Ie??C,{children:N?b.jsx(X,P({},D.previousButtonIcon)):b.jsx(W,P({},D.nextButtonIcon))})),j&&b.jsx(ee,P({onClick:V,disabled:A||S>=Math.ceil(w/I)-1,"aria-label":k("last",S),title:k("last",S)},ve,{children:N?b.jsx(F,P({},D.firstButtonIcon)):b.jsx(q,P({},D.lastButtonIcon))}))]}))});function $ie(n){return Kt("MuiTablePagination",n)}const nf=Yt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var tE;const Lie=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],zie=_e(eo,{name:"MuiTablePagination",slot:"Root",overridesResolver:(n,o)=>o.root})(({theme:n})=>({overflow:"auto",color:(n.vars||n).palette.text.primary,fontSize:n.typography.pxToRem(14),"&:last-child":{padding:0}})),Hie=_e(zB,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(n,o)=>P({[`& .${nf.actions}`]:o.actions},o.toolbar)})(({theme:n})=>({minHeight:52,paddingRight:2,[`${n.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[n.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${nf.actions}`]:{flexShrink:0,marginLeft:20}})),Uie=_e("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(n,o)=>o.spacer})({flex:"1 1 100%"}),Gie=_e("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(n,o)=>o.selectLabel})(({theme:n})=>P({},n.typography.body2,{flexShrink:0})),Vie=_e($c,{name:"MuiTablePagination",slot:"Select",overridesResolver:(n,o)=>P({[`& .${nf.selectIcon}`]:o.selectIcon,[`& .${nf.select}`]:o.select},o.input,o.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${nf.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Qie=_e(ho,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(n,o)=>o.menuItem})({}),Wie=_e("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(n,o)=>o.displayedRows})(({theme:n})=>P({},n.typography.body2,{flexShrink:0}));function qie({from:n,to:o,count:i}){return`${n}–${o} of ${i!==-1?i:`more than ${o}`}`}function _ie(n){return`Go to ${n} page`}const Yie=n=>{const{classes:o}=n;return Bt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},$ie,o)},GB=x.forwardRef(function(o,i){var s;const l=Zt({props:o,name:"MuiTablePagination"}),{ActionsComponent:c=Nie,backIconButtonProps:d,className:f,colSpan:p,component:m=eo,count:g,disabled:v=!1,getItemAriaLabel:w=_ie,labelDisplayedRows:A=qie,labelRowsPerPage:k="Rows per page:",nextIconButtonProps:C,onPageChange:M,onRowsPerPageChange:S,page:I,rowsPerPage:E,rowsPerPageOptions:j=[10,25,50,100],SelectProps:B={},showFirstButton:D=!1,showLastButton:R=!1,slotProps:N={},slots:U={}}=l,L=Qe(l,Lie),_=l,V=Yie(_),$=(s=N==null?void 0:N.select)!=null?s:B,z=$.native?"option":Qie;let Q;(m===eo||m==="td")&&(Q=p||1e3);const G=Fo($.id),F=Fo($.labelId),q=()=>g===-1?(I+1)*E:E===-1?g:Math.min(g,(I+1)*E);return b.jsx(zie,P({colSpan:Q,ref:i,as:m,ownerState:_,className:nt(V.root,f)},L,{children:b.jsxs(Hie,{className:V.toolbar,children:[b.jsx(Uie,{className:V.spacer}),j.length>1&&b.jsx(Gie,{className:V.selectLabel,id:F,children:k}),j.length>1&&b.jsx(Vie,P({variant:"standard"},!$.variant&&{input:tE||(tE=b.jsx(jp,{}))},{value:E,onChange:S,id:G,labelId:F},$,{classes:P({},$.classes,{root:nt(V.input,V.selectRoot,($.classes||{}).root),select:nt(V.select,($.classes||{}).select),icon:nt(V.selectIcon,($.classes||{}).icon)}),disabled:v,children:j.map(W=>x.createElement(z,P({},!cf(z)&&{ownerState:_},{className:V.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),b.jsx(Wie,{className:V.displayedRows,children:A({from:g===0?0:I*E+1,to:q(),count:g===-1?-1:g,page:I})}),b.jsx(c,{className:V.actions,backIconButtonProps:d,count:g,nextIconButtonProps:C,onPageChange:M,page:I,rowsPerPage:E,showFirstButton:D,showLastButton:R,slotProps:N.actions,slots:U.actions,getItemAriaLabel:w,disabled:v})]})}))});function Kie(n){return(1+Math.sin(Math.PI*n-Math.PI/2))/2}function Xie(n,o,i,s={},l=()=>{}){const{ease:c=Kie,duration:d=300}=s;let f=null;const p=o[n];let m=!1;const g=()=>{m=!0},v=w=>{if(m){l(new Error("Animation cancelled"));return}f===null&&(f=w);const A=Math.min(1,(w-f)/d);if(o[n]=c(A)*(i-p)+p,A>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(v)};return p===i?(l(new Error("Element already at target position")),g):(requestAnimationFrame(v),g)}const Jie=["onChange"],Zie={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function eae(n){const{onChange:o}=n,i=Qe(n,Jie),s=x.useRef(),l=x.useRef(null),c=()=>{s.current=l.current.offsetHeight-l.current.clientHeight};return ko(()=>{const d=Ef(()=>{const p=s.current;c(),p!==s.current&&o(s.current)}),f=Ll(l.current);return f.addEventListener("resize",d),()=>{d.clear(),f.removeEventListener("resize",d)}},[o]),x.useEffect(()=>{c(),o(s.current)},[o]),b.jsx("div",P({style:Zie,ref:l},i))}function tae(n){return Kt("MuiTabScrollButton",n)}const rae=Yt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),nae=["className","slots","slotProps","direction","orientation","disabled"],oae=n=>{const{classes:o,orientation:i,disabled:s}=n;return Bt({root:["root",i,s&&"disabled"]},tae,o)},iae=_e(Hc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.root,i.orientation&&o[i.orientation]]}})(({ownerState:n})=>P({width:40,flexShrink:0,opacity:.8,[`&.${rae.disabled}`]:{opacity:0}},n.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${n.isRtl?-90:90}deg)`}})),aae=x.forwardRef(function(o,i){var s,l;const c=Zt({props:o,name:"MuiTabScrollButton"}),{className:d,slots:f={},slotProps:p={},direction:m}=c,g=Qe(c,nae),v=Id(),w=P({isRtl:v},c),A=oae(w),k=(s=f.StartScrollButtonIcon)!=null?s:HB,C=(l=f.EndScrollButtonIcon)!=null?l:UB,M=zl({elementType:k,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:w}),S=zl({elementType:C,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:w});return b.jsx(iae,P({component:"div",className:nt(A.root,d),ref:i,role:null,ownerState:w,tabIndex:null},g,{children:m==="left"?b.jsx(k,P({},M)):b.jsx(C,P({},S))}))});function sae(n){return Kt("MuiTabs",n)}const sx=Yt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),lae=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],rE=(n,o)=>n===o?n.firstChild:o&&o.nextElementSibling?o.nextElementSibling:n.firstChild,nE=(n,o)=>n===o?n.lastChild:o&&o.previousElementSibling?o.previousElementSibling:n.lastChild,Og=(n,o,i)=>{let s=!1,l=i(n,o);for(;l;){if(l===n.firstChild){if(s)return;s=!0}const c=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||c)l=i(n,l);else{l.focus();return}}},cae=n=>{const{vertical:o,fixed:i,hideScrollbar:s,scrollableX:l,scrollableY:c,centered:d,scrollButtonsHideMobile:f,classes:p}=n;return Bt({root:["root",o&&"vertical"],scroller:["scroller",i&&"fixed",s&&"hideScrollbar",l&&"scrollableX",c&&"scrollableY"],flexContainer:["flexContainer",o&&"flexContainerVertical",d&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},sae,p)},uae=_e("div",{name:"MuiTabs",slot:"Root",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[{[`& .${sx.scrollButtons}`]:o.scrollButtons},{[`& .${sx.scrollButtons}`]:i.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,i.vertical&&o.vertical]}})(({ownerState:n,theme:o})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},n.vertical&&{flexDirection:"column"},n.scrollButtonsHideMobile&&{[`& .${sx.scrollButtons}`]:{[o.breakpoints.down("sm")]:{display:"none"}}})),dae=_e("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.scroller,i.fixed&&o.fixed,i.hideScrollbar&&o.hideScrollbar,i.scrollableX&&o.scrollableX,i.scrollableY&&o.scrollableY]}})(({ownerState:n})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},n.fixed&&{overflowX:"hidden",width:"100%"},n.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},n.scrollableX&&{overflowX:"auto",overflowY:"hidden"},n.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),fae=_e("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(n,o)=>{const{ownerState:i}=n;return[o.flexContainer,i.vertical&&o.flexContainerVertical,i.centered&&o.centered]}})(({ownerState:n})=>P({display:"flex"},n.vertical&&{flexDirection:"column"},n.centered&&{justifyContent:"center"})),pae=_e("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(n,o)=>o.indicator})(({ownerState:n,theme:o})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create()},n.indicatorColor==="primary"&&{backgroundColor:(o.vars||o).palette.primary.main},n.indicatorColor==="secondary"&&{backgroundColor:(o.vars||o).palette.secondary.main},n.vertical&&{height:"100%",width:2,right:0})),hae=_e(eae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),oE={},Xd=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTabs"}),l=ka(),c=Id(),{"aria-label":d,"aria-labelledby":f,action:p,centered:m=!1,children:g,className:v,component:w="div",allowScrollButtonsMobile:A=!1,indicatorColor:k="primary",onChange:C,orientation:M="horizontal",ScrollButtonComponent:S=aae,scrollButtons:I="auto",selectionFollowsFocus:E,slots:j={},slotProps:B={},TabIndicatorProps:D={},TabScrollButtonProps:R={},textColor:N="primary",value:U,variant:L="standard",visibleScrollbar:_=!1}=s,V=Qe(s,lae),$=L==="scrollable",z=M==="vertical",Q=z?"scrollTop":"scrollLeft",G=z?"top":"left",F=z?"bottom":"right",q=z?"clientHeight":"clientWidth",W=z?"height":"width",X=P({},s,{component:w,allowScrollButtonsMobile:A,indicatorColor:k,orientation:M,vertical:z,scrollButtons:I,textColor:N,variant:L,visibleScrollbar:_,fixed:!$,hideScrollbar:$&&!_,scrollableX:$&&!z,scrollableY:$&&z,centered:m&&!$,scrollButtonsHideMobile:!A}),te=cae(X),se=zl({elementType:j.StartScrollButtonIcon,externalSlotProps:B.startScrollButtonIcon,ownerState:X}),de=zl({elementType:j.EndScrollButtonIcon,externalSlotProps:B.endScrollButtonIcon,ownerState:X}),[ee,fe]=x.useState(!1),[he,Ie]=x.useState(oE),[ve,be]=x.useState(!1),[ke,ze]=x.useState(!1),[Ge,Ve]=x.useState(!1),[at,We]=x.useState({overflow:"hidden",scrollbarWidth:0}),ue=new Map,Le=x.useRef(null),$e=x.useRef(null),bt=()=>{const tt=Le.current;let Y;if(tt){const ie=tt.getBoundingClientRect();Y={clientWidth:tt.clientWidth,scrollLeft:tt.scrollLeft,scrollTop:tt.scrollTop,scrollLeftNormalized:EU(tt,c?"rtl":"ltr"),scrollWidth:tt.scrollWidth,top:ie.top,bottom:ie.bottom,left:ie.left,right:ie.right}}let re;if(tt&&U!==!1){const ie=$e.current.children;if(ie.length>0){const le=ie[ue.get(U)];re=le?le.getBoundingClientRect():null}}return{tabsMeta:Y,tabMeta:re}},ot=ln(()=>{const{tabsMeta:tt,tabMeta:Y}=bt();let re=0,ie;if(z)ie="top",Y&&tt&&(re=Y.top-tt.top+tt.scrollTop);else if(ie=c?"right":"left",Y&&tt){const ge=c?tt.scrollLeftNormalized+tt.clientWidth-tt.scrollWidth:tt.scrollLeft;re=(c?-1:1)*(Y[ie]-tt[ie]+ge)}const le={[ie]:re,[W]:Y?Y[W]:0};if(isNaN(he[ie])||isNaN(he[W]))Ie(le);else{const ge=Math.abs(he[ie]-le[ie]),Pe=Math.abs(he[W]-le[W]);(ge>=1||Pe>=1)&&Ie(le)}}),st=(tt,{animation:Y=!0}={})=>{Y?Xie(Q,Le.current,tt,{duration:l.transitions.duration.standard}):Le.current[Q]=tt},Ze=tt=>{let Y=Le.current[Q];z?Y+=tt:(Y+=tt*(c?-1:1),Y*=c&&IP()==="reverse"?-1:1),st(Y)},dt=()=>{const tt=Le.current[q];let Y=0;const re=Array.from($e.current.children);for(let ie=0;iett){ie===0&&(Y=tt);break}Y+=le[q]}return Y},Xe=()=>{Ze(-1*dt())},Pt=()=>{Ze(dt())},mt=x.useCallback(tt=>{We({overflow:null,scrollbarWidth:tt})},[]),pt=()=>{const tt={};tt.scrollbarSizeListener=$?b.jsx(hae,{onChange:mt,className:nt(te.scrollableX,te.hideScrollbar)}):null;const re=$&&(I==="auto"&&(ve||ke)||I===!0);return tt.scrollButtonStart=re?b.jsx(S,P({slots:{StartScrollButtonIcon:j.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:se},orientation:M,direction:c?"right":"left",onClick:Xe,disabled:!ve},R,{className:nt(te.scrollButtons,R.className)})):null,tt.scrollButtonEnd=re?b.jsx(S,P({slots:{EndScrollButtonIcon:j.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:de},orientation:M,direction:c?"left":"right",onClick:Pt,disabled:!ke},R,{className:nt(te.scrollButtons,R.className)})):null,tt},Fe=ln(tt=>{const{tabsMeta:Y,tabMeta:re}=bt();if(!(!re||!Y)){if(re[G]Y[F]){const ie=Y[Q]+(re[F]-Y[F]);st(ie,{animation:tt})}}}),Be=ln(()=>{$&&I!==!1&&Ve(!Ge)});x.useEffect(()=>{const tt=Ef(()=>{Le.current&&ot()});let Y;const re=ge=>{ge.forEach(Pe=>{Pe.removedNodes.forEach(me=>{var Ee;(Ee=Y)==null||Ee.unobserve(me)}),Pe.addedNodes.forEach(me=>{var Ee;(Ee=Y)==null||Ee.observe(me)})}),tt(),Be()},ie=Ll(Le.current);ie.addEventListener("resize",tt);let le;return typeof ResizeObserver<"u"&&(Y=new ResizeObserver(tt),Array.from($e.current.children).forEach(ge=>{Y.observe(ge)})),typeof MutationObserver<"u"&&(le=new MutationObserver(re),le.observe($e.current,{childList:!0})),()=>{var ge,Pe;tt.clear(),ie.removeEventListener("resize",tt),(ge=le)==null||ge.disconnect(),(Pe=Y)==null||Pe.disconnect()}},[ot,Be]),x.useEffect(()=>{const tt=Array.from($e.current.children),Y=tt.length;if(typeof IntersectionObserver<"u"&&Y>0&&$&&I!==!1){const re=tt[0],ie=tt[Y-1],le={root:Le.current,threshold:.99},ge=ce=>{be(!ce[0].isIntersecting)},Pe=new IntersectionObserver(ge,le);Pe.observe(re);const me=ce=>{ze(!ce[0].isIntersecting)},Ee=new IntersectionObserver(me,le);return Ee.observe(ie),()=>{Pe.disconnect(),Ee.disconnect()}}},[$,I,Ge,g==null?void 0:g.length]),x.useEffect(()=>{fe(!0)},[]),x.useEffect(()=>{ot()}),x.useEffect(()=>{Fe(oE!==he)},[Fe,he]),x.useImperativeHandle(p,()=>({updateIndicator:ot,updateScrollButtons:Be}),[ot,Be]);const Je=b.jsx(pae,P({},D,{className:nt(te.indicator,D.className),ownerState:X,style:P({},he,D.style)}));let It=0;const Nt=x.Children.map(g,tt=>{if(!x.isValidElement(tt))return null;const Y=tt.props.value===void 0?It:tt.props.value;ue.set(Y,It);const re=Y===U;return It+=1,x.cloneElement(tt,P({fullWidth:L==="fullWidth",indicator:re&&!ee&&Je,selected:re,selectionFollowsFocus:E,onChange:C,textColor:N,value:Y},It===1&&U===!1&&!tt.props.tabIndex?{tabIndex:0}:{}))}),ht=tt=>{const Y=$e.current,re=ri(Y).activeElement;if(re.getAttribute("role")!=="tab")return;let le=M==="horizontal"?"ArrowLeft":"ArrowUp",ge=M==="horizontal"?"ArrowRight":"ArrowDown";switch(M==="horizontal"&&c&&(le="ArrowRight",ge="ArrowLeft"),tt.key){case le:tt.preventDefault(),Og(Y,re,nE);break;case ge:tt.preventDefault(),Og(Y,re,rE);break;case"Home":tt.preventDefault(),Og(Y,null,rE);break;case"End":tt.preventDefault(),Og(Y,null,nE);break}},xt=pt();return b.jsxs(uae,P({className:nt(te.root,v),ownerState:X,ref:i,as:w},V,{children:[xt.scrollButtonStart,xt.scrollbarSizeListener,b.jsxs(dae,{className:te.scroller,ownerState:X,style:{overflow:at.overflow,[z?`margin${c?"Left":"Right"}`:"marginBottom"]:_?void 0:-at.scrollbarWidth},ref:Le,children:[b.jsx(fae,{"aria-label":d,"aria-labelledby":f,"aria-orientation":M==="vertical"?"vertical":null,className:te.flexContainer,ownerState:X,onKeyDown:ht,ref:$e,role:"tablist",children:Nt}),ee&&Je]}),xt.scrollButtonEnd]}))});function mae(n){return Kt("MuiTextField",n)}Yt("MuiTextField",["root"]);const gae=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],vae={standard:EA,filled:IA,outlined:kd},bae=n=>{const{classes:o}=n;return Bt({root:["root"]},mae,o)},wae=_e(ki,{name:"MuiTextField",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Hn=x.forwardRef(function(o,i){const s=Zt({props:o,name:"MuiTextField"}),{autoComplete:l,autoFocus:c=!1,children:d,className:f,color:p="primary",defaultValue:m,disabled:g=!1,error:v=!1,FormHelperTextProps:w,fullWidth:A=!1,helperText:k,id:C,InputLabelProps:M,inputProps:S,InputProps:I,inputRef:E,label:j,maxRows:B,minRows:D,multiline:R=!1,name:N,onBlur:U,onChange:L,onFocus:_,placeholder:V,required:$=!1,rows:z,select:Q=!1,SelectProps:G,type:F,value:q,variant:W="outlined"}=s,X=Qe(s,gae),te=P({},s,{autoFocus:c,color:p,disabled:g,error:v,fullWidth:A,multiline:R,required:$,select:Q,variant:W}),se=bae(te),de={};W==="outlined"&&(M&&typeof M.shrink<"u"&&(de.notched=M.shrink),de.label=j),Q&&((!G||!G.native)&&(de.id=void 0),de["aria-describedby"]=void 0);const ee=Fo(C),fe=k&&ee?`${ee}-helper-text`:void 0,he=j&&ee?`${ee}-label`:void 0,Ie=vae[W],ve=b.jsx(Ie,P({"aria-describedby":fe,autoComplete:l,autoFocus:c,defaultValue:m,fullWidth:A,multiline:R,name:N,rows:z,maxRows:B,minRows:D,type:F,value:q,id:ee,inputRef:E,onBlur:U,onChange:L,onFocus:_,placeholder:V,inputProps:S},de,I));return b.jsxs(wae,P({className:nt(se.root,f),disabled:g,error:v,fullWidth:A,ref:i,required:$,color:p,variant:W,ownerState:te},X,{children:[j!=null&&j!==""&&b.jsx(xd,P({htmlFor:ee,id:he},M,{children:j})),Q?b.jsx($c,P({"aria-describedby":fe,id:ee,labelId:he,value:q,input:ve},G,{children:d})):ve,k&&b.jsx(wre,P({id:fe},w,{children:k}))]}))});var TA={},xae=Jn;Object.defineProperty(TA,"__esModule",{value:!0});var Hb=TA.default=void 0,yae=xae(ao()),Aae=b;Hb=TA.default=(0,yae.default)((0,Aae.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");var FA={},Cae=Jn;Object.defineProperty(FA,"__esModule",{value:!0});var Ub=FA.default=void 0,kae=Cae(ao()),Sae=b;Ub=FA.default=(0,kae.default)((0,Sae.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarBorder");function VB({mediaItem:n,onClose:o}){const i=Di.tagList.reduce(($,z)=>($[z.id]=z.name,$),{}),s=Array.isArray(n.tags)?n.tags.map($=>$):[],[l,c]=x.useState({id:n.id,title:n.title,description:n.description,category:n.category,amount:n.amount,author:n.author,publishingYear:n.publishingYear,isApproved:n.isApproved,tags:s,filePath:n.filePath||"",recommended:n.recommended,itemType:n.itemType,numberOfDaysOfQuestion:n.numberOfDaysOfQuestion,edition:n.edition,series:n.series,numOfSeries:n.numOfSeries,language:n.language,note:n.note,accompanyingMaterial:n.accompanyingMaterial,itemLevel:n.itemLevel,hebrewPublicationYear:n.hebrewPublicationYear});x.useState(!1);const[d,f]=x.useState(!1);x.useState(null),x.useState(!0);const[p,m]=x.useState(!0);x.useState(!1),x.useState(l.available);const[g,v]=x.useState("");x.useEffect(()=>{V(),Ur.fetchMedia()},[l.filePath]);const k={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},C=ka(),M=Y6(C.breakpoints.down("sm")),S=$=>{const{name:z,value:Q}=$.target;(z==="category"||z==="author")&&!/^[א-תA-Za-z\s]*$/.test(Q)||c(G=>({...G,[z]:Q}))},I=$=>{const{target:{value:z}}=$;c(Q=>({...Q,tags:typeof z=="string"?z.split(","):z}))},E=$=>{const z=$.target.files[0];c(Q=>({...Q,filePath:z?z.name:Q.filePath,file:z||null}))},[j,B]=x.useState(l.itemLevel),D=$=>{B($.target.value);const{target:{value:z}}=$;z==="גיל הרך"&&c(Q=>({...Q,itemLevel:0})),z==="נמוכה"&&c(Q=>({...Q,itemLevel:1})),z==="גבוהה"&&c(Q=>({...Q,itemLevel:2})),z==="כיתה"&&c(Q=>({...Q,itemLevel:3}))},R={[Ba.PRESCHOOL]:"גיל הרך",[Ba.LOW]:"נמוכה",[Ba.HIGH]:"גבוהה",[Ba.CLASS]:"כיתה"},N=async $=>{$.preventDefault();const z=new FormData;z.append("id",l.id),z.append("title",l.title),z.append("description",l.description),z.append("category",l.category),z.append("numberOfDaysOfQuestion",l.numberOfDaysOfQuestion),z.append("itemType",l.itemType),z.append("recommended",l.recommended),z.append("itemLevel",l.itemLevel),z.append("note",l.note),l.tags.forEach(Q=>z.append("tags[]",Q)),l.author||z.append("amount",l.amount),l.author?(z.append("author",l.author),z.append("edition",l.edition),z.append("series",l.series),z.append("available",l.available),z.append("numOfSeries",l.numOfSeries),z.append("language",l.language),z.append("accompanyingMaterial",l.accompanyingMaterial),z.append("hebrewPublicationYear",l.hebrewPublicationYear),z.append("publishingYear",l.publishingYear),z.append("isApproved",l.isApproved),l.file?z.append("filePath",l.file):z.append("filePath",l.filePath)):(z.append("author",null),z.append("edition",null),z.append("series",null),z.append("numOfSeries",0),z.append("language",null),z.append("note",null),z.append("accompanyingMaterial",null),z.append("hebrewPublicationYear",null),z.append("publishingYear",null),z.append("isApproved",null),l.tags.forEach(Q=>z.append("tags[]",Q)),l.file,z.append("filePath",null)),o(),gn.fire({title:"?האם ברצונך לעדכן את הנתונים",showDenyButton:!0,confirmButtonText:"אישור",denyButtonText:"ביטול"}).then(async Q=>{if(Q.isConfirmed)try{d?(await Ur.updateMediaFile(l.id,z),console.log("id: ",l.id)):l.author?(await Ur.updateMediaBook(l.id,z),console.log("id: ",l.id)):await Ur.updateMediaObject(l.id,z),gn.fire({icon:"success",title:"השינויים נשמרו בהצלחה",showConfirmButton:!1,timer:1500})}catch(G){gn.fire({icon:"error",title:"שגיאה",text:"העדכון נכשל, נסה שוב מאוחר יותר",showConfirmButton:!0}),console.error("Error updating item:",G)}else Q.isDenied&&gn.fire({icon:"info",title:"לא נשמרו שינויים",showConfirmButton:!1,timer:1500})})},U=$=>{switch($){case"book":return"האם הספר מומלץ?";case"file":return"האם הקובץ מומלץ?";case"object":return"האם המוצר מומלץ?";default:return"האם פריט זה מומלץ?"}},L=$=>{if($===0)return"קובץ דיגיטלי";if($===1)return"ספר";if($===2)return"חפץ"},_=()=>{c($=>({...$,recommended:!$.recommended,userID:$.userID+1}))},V=()=>{const $=l.filePath;f($.includes("https")||/\.(pdf|jpg|jpeg|png|zip|mp3|mp4|docx)$/.test($))};return b.jsx(du,{open:p,onClose:o,fullScreen:M,maxWidth:"sm",fullWidth:!0,style:{direction:"rtl"},children:b.jsxs("form",{onSubmit:N,children:[b.jsx(pu,{children:"עריכת פרטים"}),b.jsxs(fu,{children:[b.jsx(Hn,{margin:"dense",label:"כותרת",type:"text",fullWidth:!0,name:"title",value:l.title,onChange:S,inputProps:{minLength:2,maxLength:17},required:!0}),l.title&&l.title.length<2&&b.jsx(Rt,{color:"error",children:"הכותרת חייבת להכיל לפחות 2 תווים"}),b.jsx(Hn,{margin:"dense",label:"תיאור",type:"text",fullWidth:!0,name:"description",value:l.description,onChange:S,inputProps:{minLength:3,maxLength:35},required:!0}),l.description&&l.description.length<3&&b.jsx(Rt,{color:"error",children:"התיאור חייב להכיל לפחות 3 תווים"}),l.description===l.title&&b.jsx(Rt,{color:"error",children:"שם וכותרת לא יוכלים להיות זהים"}),b.jsx(Hn,{margin:"dense",label:"קטגוריה",type:"text",fullWidth:!0,name:"category",value:l.category,onChange:S,inputProps:{minLength:2,maxLength:17},required:!0}),l.category&&l.category.length<2&&b.jsx(Rt,{color:"error",children:"הקטגוריה חייבת להכיל לפחות 2 תווים"}),l.author&&b.jsx(Hn,{margin:"dense",label:"מחבר",type:"text",fullWidth:!0,name:"author",value:l.author,onChange:S,inputProps:{minLength:2,maxLength:17},required:!0}),l.author&&l.author.length<2&&b.jsx(Rt,{color:"error",children:"המחבר חייב להכיל לפחות 2 תווים"}),!l.filePath.includes("https")&&l.author&&l.publishingYear!==0&&l.publishingYear&&b.jsx(Hn,{margin:"dense",label:"שנת הוצאה לועזית",type:"number",fullWidth:!0,name:"publishingYear",value:l.publishingYear!==0?l.publishingYear:"",onChange:S,inputProps:{minLength:4,maxLength:4,inputMode:"numeric",pattern:"[0-9]*"}}),l.publishingYear&&l.publishingYear.length===4&&!isNaN(parseInt(l.publishingYear))&&parseInt(l.publishingYear)>new Date().getFullYear()&&b.jsx(Rt,{color:"error",children:"יש להכניס שנת הוצאה תקינה "}),!l.filePath.includes("https")&&l.author&&b.jsx(Hn,{margin:"dense",label:"שנה הוצאה עברית",type:"text",fullWidth:!0,name:"hebrewPublicationYear",value:l.hebrewPublicationYear,onChange:S,inputProps:{minLength:4,maxLength:4},required:!0}),l.hebrewPublicationYear&&l.hebrewPublicationYear.length<1&&b.jsx(Rt,{color:"error",children:"שנת הוצאה חייב להכיל 4 תווים "}),b.jsxs(ki,{fullWidth:!0,children:[b.jsx(xd,{id:"demo-multiple-chip-label",children:"תגית"}),b.jsx($c,{labelId:"demo-multiple-chip-label",id:"demo-multiple-chip",name:"tag",multiple:!0,value:l.tags,onChange:I,input:b.jsx(kd,{id:"select-multiple-chip",label:"תגית"}),renderValue:$=>b.jsx(ur,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:$.map(z=>b.jsx(Pp,{label:i[z],style:{color:"dark"},variant:"outlined"},z))}),MenuProps:k,children:Di.tagList.map($=>b.jsxs(ho,{value:$.id,children:[b.jsx(cp,{checked:l.tags.indexOf($.id)>-1}),b.jsx(qs,{primary:$.name})]},$.id))})]}),!l.author&&b.jsx(Hn,{margin:"dense",label:"כמות",type:"text",fullWidth:!0,name:"amount",value:l.amount,onChange:S,inputProps:{minLength:1,maxLength:6}}),l.author&&b.jsx(Hn,{margin:"dense",label:"מיקום",type:"text",fullWidth:!0,name:"filePath",value:l.filePath!=0?l.filePath:"",onChange:S,inputProps:{minLength:1,maxLength:17},disabled:d}),d&&b.jsxs(ur,{sx:{display:"flex",alignItems:"center",marginTop:1},children:[b.jsx("input",{accept:"*",id:"upload-file",type:"file",style:{display:"none"},onChange:E}),b.jsx("label",{htmlFor:"upload-file",children:b.jsx(fi,{color:"primary",component:"span",children:b.jsx(gX,{})})}),b.jsx(Rt,{variant:"body2",style:{marginLeft:"8px"},children:l.filePath})]}),l.author&&b.jsx(Hn,{margin:"dense",label:"מהדורה",type:"text",fullWidth:!0,name:"edition",value:l.edition,onChange:S,inputProps:{minLength:3,maxLength:15},required:!0}),l.edition&&l.edition.length<1&&b.jsx(Rt,{color:"error",children:"המהדורה חייבת להכיל לפחות תו אחד"}),l.author&&b.jsx(Hn,{margin:"dense",label:"סידרה",type:"text",fullWidth:!0,name:"series",value:l.series,onChange:S,inputProps:{minLength:1,maxLength:15},required:!0}),l.series&&l.series.length<1&&b.jsx(Rt,{color:"error",children:"סידרה חייבת להכיל לפחות 3 תווים"}),l.author&&b.jsx(Hn,{margin:"dense",label:"מספר בסידרה",type:"number",fullWidth:!0,name:"numOfSeries",value:l.numOfSeries,onChange:S,inputProps:{minLength:1,maxLength:4,inputMode:"numeric",pattern:"[0-9]*"},required:!0}),l.numOfSeries&&l.numOfSeries.length<1&&b.jsx(Rt,{color:"error",children:"מספר בסידרה חייבת להכיל לפחות מספר אחד"}),l.author&&b.jsx(Hn,{margin:"dense",label:"שפה",type:"text",fullWidth:!0,name:"language",value:l.language,onChange:S,inputProps:{minLength:3,maxLength:10},required:!0}),l.language&&l.language.length<3&&b.jsx(Rt,{color:"error",children:"שפה חייבת להכיל לפחות 3 תווים "}),l.author&&b.jsx(Hn,{margin:"dense",label:"חומר נלווה",type:"text",fullWidth:!0,name:"accompanyingMaterial",value:l.accompanyingMaterial,onChange:S,inputProps:{minLength:3,maxLength:25},required:!0}),l.accompanyingMaterial&&l.accompanyingMaterial.length<3&&b.jsx(Rt,{color:"error",children:"חומר נלווה חייב להכיל לפחות 3 תווים "}),b.jsxs(ki,{fullWidth:!0,margin:"dense",children:[b.jsx(xd,{id:"level-select-label",children:"רמה"}),b.jsx($c,{labelId:"level-select-label",id:"level-select",name:"itemLevel",value:j,onChange:D,input:b.jsx(kd,{label:"רמה"}),children:Object.keys(Ba).map($=>b.jsx(ho,{value:Ba[$],children:R[Ba[$]]},Ba[$]))})]}),!l.filePath.includes("https")&&b.jsx(Hn,{margin:"dense",label:"מספר ימי השאלה",type:"number",fullWidth:!0,name:"numberOfDaysOfQuestion",value:l.numberOfDaysOfQuestion,onChange:S,inputProps:{minLength:1,inputMode:"numeric",pattern:"[0-9]*"},required:!0}),l.numberOfDaysOfQuestion&&l.numberOfDaysOfQuestion.length<1&&b.jsx(Rt,{color:"error",children:"מספר ימי השאלה חייב להכיל לפחות מספר אחד "}),b.jsx(Hn,{margin:"dense",label:"הערות",type:"text",fullWidth:!0,name:"note",value:l.note,onChange:S,inputProps:{minLength:2,maxLength:35},required:!0}),l.note&&l.note.length<3&&b.jsx(Rt,{color:"error",children:"הערות חייבת להכיל לפחות 3 תווים "}),b.jsxs(ur,{display:"flex",alignItems:"center",mt:2,children:[b.jsx(Rt,{children:"סוג פריט:"}),b.jsx(Rt,{ml:1,variant:"body2",color:"textSecondary",children:L(l.itemType)})]}),b.jsx(Rt,{variant:"body1",children:U(g)}),b.jsx(fi,{onClick:_,children:l.recommended?b.jsx(Hb,{style:{color:"yellow"}}):b.jsx(Ub,{})})]}),b.jsxs(Nc,{style:{position:"sticky",bottom:0,background:"#fff",zIndex:1},children:[b.jsx(oo,{onClick:o,style:{color:"#468585"},children:"ביטול"}),b.jsx(oo,{type:"submit",style:{color:"#468585"},children:"שמירה"})]})]})})}var DA={},Iae=Jn;Object.defineProperty(DA,"__esModule",{value:!0});var Gb=DA.default=void 0,Eae=Iae(ao()),Mae=b;Gb=DA.default=(0,Eae.default)((0,Mae.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function Pae(n,o,i,s,l,c,d,f){return{itemId:n,title:o,author:i,category:s,createdAt:l.replace(/T/g," "),moreDetails:[{desc:c,filePath:d,link:o,publishingYear:f,isBook:d.includes("http")}]}}function QB(n){const{row:o,onEdit:i}=n,[s,l]=x.useState(!1),c=()=>{const{itemId:d,title:f,author:p,category:m,createdAt:g,moreDetails:v}=o,w={id:d,title:f,author:p,category:m,createdAt:g,description:v[0].desc,filePath:v[0].filePath,publishingYear:v[0].publishingYear};i(w)};return b.jsxs(x.Fragment,{children:[b.jsxs(Cu,{sx:{"& > *":{borderBottom:"unset"}},children:[b.jsx(eo,{children:b.jsx(fi,{"aria-label":"expand row",size:"small",onClick:()=>l(!s),children:s?b.jsx(Mb,{}):b.jsx(Eb,{})})}),b.jsx(eo,{className:"table-cell",align:"right",children:o.title}),b.jsx(eo,{className:"table-cell",align:"right",children:o.author}),b.jsx(eo,{className:"table-cell",align:"right",children:o.category}),b.jsx(eo,{className:"table-cell",align:"right",children:o.createdAt}),b.jsx(eo,{className:"table-cell",align:"right",children:b.jsx(fi,{onClick:c,children:b.jsx(Gb,{})})}),b.jsx(fi,{className:"icon-button","aria-label":"Verified",variant:"contained",color:"primary",onClick:()=>jae(o.itemId),children:b.jsx(uR,{})}),b.jsx(fi,{className:"icon-button","aria-label":"DisabledByDefaultRounded",variant:"contained",color:"secondary",onClick:()=>Oae(o.itemId),children:b.jsx(dR,{})})]}),b.jsx(Cu,{dir:"rtl",children:b.jsx(eo,{dir:"rtl",style:{paddingBottom:0,paddingTop:0},colSpan:6,children:b.jsx(kb,{dir:"rtl",in:s,timeout:"auto",unmountOnExit:!0,children:o.moreDetails.map(d=>b.jsxs("div",{dir:"rtl",style:{paddingRight:"11%"},children:[b.jsxs(ur,{display:"flex",dir:"rtl",children:[b.jsx(Rt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"תאור: "})}),b.jsx(Rt,{dir:"rtl",variant:"subtitle1",style:{marginRight:"10px"},children:d.desc})]}),b.jsxs(ur,{display:"flex",dir:"rtl",children:[b.jsx(Rt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"שנת הוצאה: "})}),b.jsx(Rt,{dir:"rtl",variant:"subtitle1",style:{marginRight:"10px"},children:d.publishingYear})]}),d.isBook?b.jsxs(ur,{display:"flex",dir:"rtl",children:[b.jsx(Rt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"קובץ: "})}),b.jsx(Rt,{variant:"subtitle1",style:{marginRight:"10px"},dir:"rtl",children:b.jsx(y0,{href:d.filePath,underline:"hover",target:"_blank",rel:"noopener noreferrer",children:d.link})})]}):b.jsxs(ur,{display:"flex",dir:"rtl",children:[b.jsx(Rt,{variant:"subtitle1",dir:"rtl",children:b.jsx("b",{children:"מספר מדף: "})}),b.jsx(Rt,{variant:"subtitle1",style:{marginRight:"10px"},dir:"rtl",children:d.filePath})]})]},d.id))})})})]})}QB.propTypes={row:Me.shape({title:Me.string.isRequired,author:Me.string.isRequired,category:Me.string.isRequired,createdAt:Me.string.isRequired,moreDetails:Me.arrayOf(Me.shape({desc:Me.string.isRequired,filePath:Me.string})).isRequired}).isRequired,onEdit:Me.func.isRequired};async function jae(n){gn.fire({title:"?האם לאשר את הפריט",text:"פריט מאושר ייכנס למאגר",showDenyButton:!0,confirmButtonText:"לאשר",denyButtonText:"ביטול"}).then(async o=>{o.isConfirmed?(await Ur.approvalItem(n),Ur.isApprov?(await Ur.fetchPendingItems(),gn.fire({icon:"success",title:"הפריט אושר",showConfirmButton:!1,timer:1500})):gn.fire({icon:"error",title:"אופס... תקלה בעת שמירת הנתונים",showConfirmButton:!1,timer:1500})):o.isDenied&&gn.fire({icon:"info",title:"לא נשמרו שינויים",showConfirmButton:!1,timer:1500})})}async function Oae(n){gn.fire({title:"?האם לא לאשר את הפריט",text:"פריט לא מאושר יימחק מהמאגר",showDenyButton:!0,confirmButtonText:"דחיית פריט",denyButtonText:"ביטול"}).then(async o=>{o.isConfirmed?(await Ur.deniedItem(n),Ur.isDeind?(await Ur.fetchPendingItems(),gn.fire({icon:"success",title:"הפריט נמחק",showConfirmButton:!1,timer:1500})):gn.fire({icon:"error",title:"אופס... תקלה בעת שמירת הנתונים",showConfirmButton:!1,timer:1500})):o.isDenied&&gn.fire({icon:"info",title:"לא נשמרו שינויים",showConfirmButton:!1,timer:1500})})}const Rae=Ou(()=>{const[n,o]=x.useState(null),[i,s]=x.useState(!1),l=xf(Ur.getPendingList).map(f=>Pae(f.id,f.title,f.author,f.category,f.createdAt,f.description,f.filePath,f.publishingYear)),c=f=>{o(f),s(!0)},d=()=>{o(null),s(!1)};return b.jsxs(b.Fragment,{children:[b.jsx(ur,{display:"flex",justifyContent:"center",alignItems:"center",children:b.jsxs(Js,{elevation:3,sx:{width:"90%",maxWidth:1200},children:[b.jsx(ur,{padding:2,textAlign:"center",children:b.jsx(Rt,{variant:"h4",component:"h1",children:b.jsx("b",{children:"פריטים ממתינים לאישור"})})}),b.jsx(eA,{component:Js,dir:"rtl",children:b.jsxs(J5,{"aria-label":"collapsible table",children:[b.jsx(lR,{className:"table-head-cell",children:b.jsxs(Cu,{className:"table-head-cell",children:[b.jsx(eo,{className:"table-head-cell"}),b.jsx(eo,{className:"table-head-cell",style:{color:"white"},align:"right",children:"כותרת"}),b.jsx(eo,{className:"table-head-cell",style:{color:"white"},align:"right",children:"מחבר"}),b.jsx(eo,{className:"table-head-cell",style:{color:"white"},align:"right",children:"קטגוריה"}),b.jsx(eo,{className:"table-head-cell",style:{color:"white"},align:"right",children:"תאריך יצירה"}),b.jsx(eo,{className:"table-head-cell",style:{color:"white"},align:"right"}),b.jsx(eo,{className:"table-head-cell",style:{color:"white"},align:"right"})]})}),b.jsx(Z5,{children:l.length>0?l.map(f=>b.jsx(QB,{row:f,onEdit:c},f.title)):b.jsx(Cu,{children:b.jsx(eo,{colSpan:7,align:"center",children:b.jsx(Rt,{variant:"h6",children:"אין פריטים ממתינים"})})})})]})})]})}),n&&b.jsx(VB,{mediaItem:n,onClose:d})]})});var NA={},Bae=Jn;Object.defineProperty(NA,"__esModule",{value:!0});var WB=NA.default=void 0,Tae=Bae(ao()),Fae=b;WB=NA.default=(0,Tae.default)((0,Fae.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Mail");const qB=x.createContext(void 0);function vn(){const n=x.useContext(qB);if(n===void 0)throw new Error(["MUI X: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return n}const _B=x.createContext(void 0),ir=()=>{const n=x.useContext(_B);if(!n)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return n},Dae={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:n=>n!==1?`${n} active filters`:`${n} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:n=>n!==1?`${n} active filters`:`${n} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:n=>n!==1?`${n.toLocaleString()} rows selected`:`${n.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(n,o)=>`${n.toLocaleString()} of ${o.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:n=>`Group by ${n}`,unGroupColumn:n=>`Stop grouping by ${n}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function Tn(n){return Kt("MuiDataGrid",n)}const we=Yt("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderTop","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),iE=1e3;class Nae{constructor(o=iE){this.timeouts=new Map,this.cleanupTimeout=iE,this.cleanupTimeout=o}register(o,i,s){this.timeouts||(this.timeouts=new Map);const l=setTimeout(()=>{typeof i=="function"&&i(),this.timeouts.delete(s.cleanupToken)},this.cleanupTimeout);this.timeouts.set(s.cleanupToken,l)}unregister(o){const i=this.timeouts.get(o.cleanupToken);i&&(this.timeouts.delete(o.cleanupToken),clearTimeout(i))}reset(){this.timeouts&&(this.timeouts.forEach((o,i)=>{this.unregister({cleanupToken:i})}),this.timeouts=void 0)}}class $ae{constructor(){this.registry=new FinalizationRegistry(o=>{typeof o=="function"&&o()})}register(o,i,s){this.registry.register(o,i,s)}unregister(o){this.registry.unregister(o)}reset(){}}var ec=function(n){return n.DataGrid="DataGrid",n.DataGridPro="DataGridPro",n.DataGridPremium="DataGridPremium",n}(ec||{});class Lae{}function zae(n){let o=0;return function(s,l,c,d){n.registry===null&&(n.registry=typeof FinalizationRegistry<"u"?new $ae:new Nae);const[f]=x.useState(new Lae),p=x.useRef(null),m=x.useRef();m.current=c;const g=x.useRef(null);if(!p.current&&m.current){const v=(w,A,k)=>{var C;A.defaultMuiPrevented||(C=m.current)==null||C.call(m,w,A,k)};p.current=s.current.subscribeEvent(l,v,d),o+=1,g.current={cleanupToken:o},n.registry.register(f,()=>{var w;(w=p.current)==null||w.call(p),p.current=null,g.current=null},g.current)}else!m.current&&p.current&&(p.current(),p.current=null,g.current&&(n.registry.unregister(g.current),g.current=null));x.useEffect(()=>{if(!p.current&&m.current){const v=(w,A,k)=>{var C;A.defaultMuiPrevented||(C=m.current)==null||C.call(m,w,A,k)};p.current=s.current.subscribeEvent(l,v,d)}return g.current&&n.registry&&(n.registry.unregister(g.current),g.current=null),()=>{var v;(v=p.current)==null||v.call(p),p.current=null}},[s,l,d])}}const Hae={registry:null},Jt=zae(Hae),Uae={isFirst:!0};function ei(n,o,i){Jt(n,o,i,Uae)}const Gae=Object.is;function YB(n,o){if(n===o)return!0;if(!(n instanceof Object)||!(o instanceof Object))return!1;let i=0,s=0;for(const l in n)if(i+=1,!Gae(n[l],o[l])||!(l in o))return!1;for(const l in o)s+=1;return i===s}function Vae(n){return n.acceptsApiRef}function aE(n,o){return Vae(o)?o(n):o(n.current.state)}const Qae=Object.is,KB=YB,Wae=()=>({state:null,equals:null,selector:null}),$t=(n,o,i=Qae)=>{const s=Mf(Wae),l=s.current.selector!==null,[c,d]=x.useState(l?null:aE(n,o));return s.current.state=c,s.current.equals=i,s.current.selector=o,rb(()=>n.current.store.subscribe(()=>{const f=aE(n,s.current.selector);s.current.equals(s.current.state,f)||(s.current.state=f,d(f))})),c},Gl=n=>n.dimensions;var f3="NOT_FOUND";function qae(n){var o;return{get:function(s){return o&&n(o.key,s)?o.value:f3},put:function(s,l){o={key:s,value:l}},getEntries:function(){return o?[o]:[]},clear:function(){o=void 0}}}function _ae(n,o){var i=[];function s(f){var p=i.findIndex(function(g){return o(f,g.key)});if(p>-1){var m=i[p];return p>0&&(i.splice(p,1),i.unshift(m)),m.value}return f3}function l(f,p){s(f)===f3&&(i.unshift({key:f,value:p}),i.length>n&&i.pop())}function c(){return i}function d(){i=[]}return{get:s,put:l,getEntries:c,clear:d}}var Yae=function(o,i){return o===i};function Kae(n){return function(i,s){if(i===null||s===null||i.length!==s.length)return!1;for(var l=i.length,c=0;c1?o-1:0),s=1;s{if(d.length>0)throw new Error("Unsupported number of selectors");let f;if(n&&o&&i&&s&&l&&c)f=(p,m)=>{const g=s2(p),v=m??(g?p.current.instanceId:l2),w=g?p.current.state:p,A=n(w,v),k=o(w,v),C=i(w,v),M=s(w,v),S=l(w,v);return c(A,k,C,M,S)};else if(n&&o&&i&&s&&l)f=(p,m)=>{const g=s2(p),v=m??(g?p.current.instanceId:l2),w=g?p.current.state:p,A=n(w,v),k=o(w,v),C=i(w,v),M=s(w,v);return l(A,k,C,M)};else if(n&&o&&i&&s)f=(p,m)=>{const g=s2(p),v=m??(g?p.current.instanceId:l2),w=g?p.current.state:p,A=n(w,v),k=o(w,v),C=i(w,v);return s(A,k,C)};else if(n&&o&&i)f=(p,m)=>{const g=s2(p),v=m??(g?p.current.instanceId:l2),w=g?p.current.state:p,A=n(w,v),k=o(w,v);return i(A,k)};else if(n&&o)f=(p,m)=>{const g=s2(p),v=m??(g?p.current.instanceId:l2),w=g?p.current.state:p,A=n(w,v);return o(A)};else throw new Error("Missing arguments");return f.acceptsApiRef=!0,f},Qo=(...n)=>{const o=(i,s)=>{const l=s2(i),c=l?i.current.instanceId:s??l2,d=l?i.current.state:i,f=sE.get(c),p=f??new Map,m=p==null?void 0:p.get(n);if(p&&m)return m(d,c);const g=Zae(...n);return f||sE.set(c,p),p.set(n,g),g(d,c)};return o.acceptsApiRef=!0,o},ese=.7,tse=1.3,rse={compact:ese,comfortable:tse,standard:1},I2=n=>n.density,Rm=Dr(I2,n=>rse[n]);let Si=function(n){return n.LEFT="left",n.RIGHT="right",n}({});const e6={left:[],right:[]},nse=n=>n.theme,Lc=n=>n.columns,mu=Dr(Lc,n=>n.orderedFields),Dd=Dr(Lc,n=>n.lookup),tc=Qo(mu,Dd,(n,o)=>n.map(i=>o[i])),w1=Dr(Lc,n=>n.columnVisibilityModel),La=Qo(tc,w1,(n,o)=>n.filter(i=>o[i.field]!==!1)),Bm=Qo(La,n=>n.map(o=>o.field)),ose=n=>n.pinnedColumns,Tm=Qo(Lc,ose,Bm,nse,(n,o,i,s)=>{const l=ise(o,i,s.direction==="rtl");return{left:l.left.map(d=>n.lookup[d]),right:l.right.map(d=>n.lookup[d])}});function ise(n,o,i){var f,p;if(!Array.isArray(n.left)&&!Array.isArray(n.right)||((f=n.left)==null?void 0:f.length)===0&&((p=n.right)==null?void 0:p.length)===0)return e6;const s=(m,g)=>Array.isArray(m)?m.filter(v=>g.includes(v)):[],l=s(n.left,o),c=o.filter(m=>!l.includes(m)),d=s(n.right,c);return i?{left:d,right:l}:{left:l,right:d}}const Nd=Qo(La,n=>{const o=[];let i=0;for(let s=0;s{const i=n.length;return i===0?0:o[i-1]+n[i-1].computedWidth}),JB=Qo(tc,n=>n.filter(o=>o.filterable)),ase=Qo(tc,n=>n.reduce((o,i)=>(i.filterable&&(o[i.field]=i),o),{})),sse=Qo(tc,n=>n.some(o=>o.colSpan!==void 0)),lse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],cse=n=>{const{classes:o}=n;return Bt({root:["editInputCell"]},Tn,o)},use=_e(jp,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(n,o)=>o.editInputCell})(({theme:n})=>P({},n.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),dse=x.forwardRef((n,o)=>{const i=ir(),{id:s,value:l,field:c,colDef:d,hasFocus:f,debounceMs:p=200,isProcessingProps:m,onValueChange:g}=n,v=Qe(n,lse),w=vn(),A=x.useRef(),[k,C]=x.useState(l),M=cse(i),S=x.useCallback(async E=>{const j=E.target.value;g&&await g(E,j);const B=w.current.getColumn(c);let D=j;B.valueParser&&(D=B.valueParser(j,w.current.getRow(s),B,w)),C(D),w.current.setEditCellValue({id:s,field:c,value:D,debounceMs:p,unstable_skipValueParser:!0},E)},[w,p,c,s,g]),I=w.current.unstable_getEditCellMeta(s,c);return x.useEffect(()=>{(I==null?void 0:I.changeReason)!=="debouncedSetEditCellValue"&&C(l)},[I,l]),ko(()=>{f&&A.current.focus()},[f]),b.jsx(use,P({ref:o,inputRef:A,className:M.root,ownerState:i,fullWidth:!0,type:d.type==="number"?d.type:"text",value:k??"",onChange:S,endAdornment:m?b.jsx(i.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},v))}),fse=n=>b.jsx(dse,P({},n)),ZB=(n,o)=>o&&n.length>1?[n[0]]:n,lE=(n,o)=>i=>P({},i,{sorting:P({},i.sorting,{sortModel:ZB(n,o)})}),pse=n=>n==="desc",hse=(n,o)=>{const i=o.current.getColumn(n.field);if(!i||n.sort===null)return null;let s;return i.getSortComparator?s=i.getSortComparator(n.sort):s=pse(n.sort)?(...c)=>-1*i.sortComparator(...c):i.sortComparator,s?{getSortCellParams:c=>({id:c,field:i.field,rowNode:o.current.getRowNode(c),value:o.current.getCellValue(c,i.field),api:o.current}),comparator:s}:null},mse=(n,o,i)=>n.reduce((s,l,c)=>{if(s!==0)return s;const d=o.params[c],f=i.params[c];return s=l.comparator(d.value,f.value,d,f),s},0),gse=(n,o)=>{const i=n.map(s=>hse(s,o)).filter(s=>!!s);return i.length===0?null:s=>s.map(l=>({node:l,params:i.map(c=>c.getSortCellParams(l.id))})).sort((l,c)=>mse(i,l,c)).map(l=>l.node.id)},cE=(n,o)=>{const i=n.indexOf(o);return!o||i===-1||i+1===n.length?n[0]:n[i+1]},LA=(n,o)=>n==null&&o!=null?-1:o==null&&n!=null?1:n==null&&o==null?0:null,vse=new Intl.Collator,bse=(n,o)=>{const i=LA(n,o);return i!==null?i:typeof n=="string"?vse.compare(n.toString(),o.toString()):n-o},eT=(n,o)=>{const i=LA(n,o);return i!==null?i:Number(n)-Number(o)},tT=(n,o)=>{const i=LA(n,o);return i!==null?i:n>o?1:n{const{value:D}=B.target;k(String(D)),M(!0),w.start(I.filterDebounceMs,()=>{const R=P({},o,{value:D,fromInput:S});i(R),M(!1)})},[S,i,o,I.filterDebounceMs,w]);return x.useEffect(()=>{(o.fromInput!==S||o.value===void 0)&&k(String(o.value??""))},[S,o]),b.jsx(I.slots.baseTextField,P({id:S,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:A,onChange:E,variant:g,type:s||"text",InputProps:P({},C||p?{endAdornment:C?b.jsx(I.slots.loadIcon,{fontSize:"small",color:"action"}):p}:{},{disabled:f},m,{inputProps:P({tabIndex:d},m==null?void 0:m.inputProps)}),InputLabelProps:{shrink:!0},inputRef:c},v,(j=I.slotProps)==null?void 0:j.baseTextField))}function xse(n){return typeof n=="number"&&!Number.isNaN(n)}function rT(n){return typeof n=="function"}function zA(n){return typeof n=="object"&&n!==null}function yse(){try{const n="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(n,n),window.localStorage.removeItem(n),!0}catch{return!1}}function sv(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Mu=(n,o,i)=>Math.max(o,Math.min(i,n));function uE(n,o){return Array.from({length:o-n}).map((i,s)=>n+s)}function G2(n,o){if(n===o)return!0;if(n&&o&&typeof n=="object"&&typeof o=="object"){if(n.constructor!==o.constructor)return!1;if(Array.isArray(n)){const l=n.length;if(l!==o.length)return!1;for(let c=0;c{let o=n+=1831565813;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296}}function Cse(n){const o=Ase(n);return(i,s)=>i+(s-i)*o()}function nT(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}const kse=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function oT(n){const{item:o,applyValue:i,type:s,apiRef:l,focusElementRef:c,color:d,error:f,helperText:p,size:m,variant:g="standard"}=n,v=Qe(n,kse),w={color:d,error:f,helperText:p,size:m,variant:g},[A,k]=x.useState(o.value||[]),C=Fo(),M=ir();x.useEffect(()=>{const I=o.value??[];k(I.map(String))},[o.value]);const S=x.useCallback((I,E)=>{k(E.map(String)),i(P({},o,{value:[...E]}))},[i,o]);return b.jsx(lp,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(I,E)=>{const{inputValue:j}=E;return j==null||j===""?[]:[j]},id:C,value:A,onChange:S,renderTags:(I,E)=>I.map((j,B)=>b.jsx(M.slots.baseChip,P({variant:"outlined",size:"small",label:j},E({index:B})))),renderInput:I=>{var E;return b.jsx(M.slots.baseTextField,P({},I,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},I.InputLabelProps,{shrink:!0}),inputRef:c,type:s||"text"},w,(E=M.slotProps)==null?void 0:E.baseTextField))}},v))}var Gc=function(n){return n.Cell="cell",n.Row="row",n}(Gc||{}),To=function(n){return n.Edit="edit",n.View="view",n}(To||{}),Zo=function(n){return n.Edit="edit",n.View="view",n}(Zo||{}),_s=function(n){return n.And="and",n.Or="or",n}(_s||{}),qc=function(n){return n.enterKeyDown="enterKeyDown",n.cellDoubleClick="cellDoubleClick",n.printableKeyDown="printableKeyDown",n.deleteKeyDown="deleteKeyDown",n.pasteKeyDown="pasteKeyDown",n}(qc||{}),q1=function(n){return n.cellFocusOut="cellFocusOut",n.escapeKeyDown="escapeKeyDown",n.enterKeyDown="enterKeyDown",n.tabKeyDown="tabKeyDown",n.shiftTabKeyDown="shiftTabKeyDown",n}(q1||{}),Vu=function(n){return n.enterKeyDown="enterKeyDown",n.cellDoubleClick="cellDoubleClick",n.printableKeyDown="printableKeyDown",n.deleteKeyDown="deleteKeyDown",n}(Vu||{}),xc=function(n){return n.rowFocusOut="rowFocusOut",n.escapeKeyDown="escapeKeyDown",n.enterKeyDown="enterKeyDown",n.tabKeyDown="tabKeyDown",n.shiftTabKeyDown="shiftTabKeyDown",n}(xc||{});function iT(n){return n.field!==void 0}const Yh=()=>({items:[],logicOperator:_s.And,quickFilterValues:[],quickFilterLogicOperator:_s.And});function aT(n){return{current:n.current.getPublicApi()}}let f0;function Sse(){if(f0!==void 0)return f0;try{f0=new Function("return true")()}catch{f0=!1}return f0}const t6=(n,o)=>{const i=P({},n);if(i.id==null&&(i.id=Math.round(Math.random()*1e5)),i.operator==null){const s=Dd(o)[i.field];i.operator=s&&s.filterOperators[0].value}return i},HA=(n,o,i)=>{const s=n.items.length>1;let l;s&&o?l=[n.items[0]]:l=n.items;const c=s&&l.some(f=>f.id==null);return l.some(f=>f.operator==null)||c?P({},n,{items:l.map(f=>t6(f,i))}):n.items!==l?P({},n,{items:l}):n},dE=(n,o,i)=>s=>P({},s,{filterModel:HA(n,o,i)}),Kh=n=>typeof n=="string"?n.normalize("NFD").replace(/[\u0300-\u036f]/g,""):n,sT=(n,o)=>{var g;if(!n.field||!n.operator)return null;const i=o.current.getColumn(n.field);if(!i)return null;let s;if(i.valueParser){const v=i.valueParser;s=Array.isArray(n.value)?(g=n.value)==null?void 0:g.map(w=>v(w,void 0,i,o)):v(n.value,void 0,i,o)}else s=n.value;const{ignoreDiacritics:l}=o.current.rootProps;l&&(s=Kh(s));const c=P({},n,{value:s}),d=i.filterOperators;if(!(d!=null&&d.length))throw new Error(`MUI X: No filter operators found for column '${i.field}'.`);const f=d.find(v=>v.value===c.operator);if(!f)throw new Error(`MUI X: No filter operator found for column '${i.field}' and operator value '${c.operator}'.`);const p=aT(o),m=f.getApplyFilterFn(c,i);return typeof m!="function"?null:{item:c,fn:v=>{let w=o.current.getRowValue(v,i);return l&&(w=Kh(w)),m(w,v,i,p)}}};let fE=1;const Ise=(n,o,i)=>{const{items:s}=n,l=s.map(f=>sT(f,o)).filter(f=>!!f);if(l.length===0)return null;if(i||!Sse())return(f,p)=>{const m={};for(let g=0;g`const shouldApply${p} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(f.item.field)});`).join(` `)} @@ -371,32 +371,32 @@ ${l.map((f,p)=>` ${JSON.stringify(String(f.item.id))}: !shouldApply${p} ? false `)} }; -return result$$;`.replaceAll("$$",String(nE)));return nE+=1,(f,p)=>c(l,f,p)},eT=n=>n.quickFilterExcludeHiddenColumns??!0,mse=(n,o)=>{var f;const i=((f=n.quickFilterValues)==null?void 0:f.filter(Boolean))??[];if(i.length===0)return null;const s=eT(n)?Bm(o):gu(o),l=[],{ignoreDiacritics:c}=o.current.rootProps,d=JB(o);return s.forEach(p=>{const m=o.current.getColumn(p),g=m==null?void 0:m.getApplyQuickFilterFn;g&&l.push({column:m,appliers:i.map(v=>{const w=c?Jh(v):v;return{fn:g(w,m,d)}})})}),function(m,g){const v={};e:for(let w=0;w{const s=hse(n,o,i),l=mse(n,o);return function(d,f,p){p.passingFilterItems=(s==null?void 0:s(d,f))??null,p.passingQuickFilterValues=(l==null?void 0:l(d,f))??null}},oE=n=>n!=null,vse=(n,o,i)=>(n.cleanedFilterItems||(n.cleanedFilterItems=i.filter(s=>ZB(s,o)!==null)),n.cleanedFilterItems),bse=(n,o,i,s,l)=>{const c=vse(l,s,i.items),d=n.filter(oE),f=o.filter(oE);if(d.length>0){const p=g=>d.some(v=>v[g.id]);if((i.logicOperator??Xh().logicOperator)===_s.And){if(!c.every(p))return!1}else if(!c.some(p))return!1}if(f.length>0&&i.quickFilterValues!=null){const p=g=>f.some(v=>v[g]);if((i.quickFilterLogicOperator??Xh().quickFilterLogicOperator)===_s.And){if(!i.quickFilterValues.every(p))return!1}else if(!i.quickFilterValues.some(p))return!1}return!0},wse=n=>{if(!n)return null;const o=new RegExp(sv(n),"i");return(i,s,l,c)=>{let d=c.current.getRowFormattedValue(s,l);return c.current.ignoreDiacritics&&(d=Jh(d)),d!=null?o.test(d.toString()):!1}},xse=(n=!1)=>[{value:"contains",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new RegExp(sv(i),"i");return l=>l!=null?s.test(String(l)):!1},InputComponent:Ic},{value:"equals",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return l=>l!=null?s.compare(i,l.toString())===0:!1},InputComponent:Ic},{value:"startsWith",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new RegExp(`^${sv(i)}.*$`,"i");return l=>l!=null?s.test(l.toString()):!1},InputComponent:Ic},{value:"endsWith",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new RegExp(`.*${sv(i)}$`,"i");return l=>l!=null?s.test(l.toString()):!1},InputComponent:Ic},{value:"isEmpty",getApplyFilterFn:()=>o=>o===""||o==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>o=>o!==""&&o!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:o=>{if(!Array.isArray(o.value)||o.value.length===0)return null;const i=n?o.value:o.value.map(l=>l.trim()),s=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return l=>l!=null?i.some(c=>s.compare(c,l.toString()||"")===0):!1},InputComponent:KB}],nc={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:ase,type:"string",align:"left",filterOperators:xse(),renderEditCell:ese,getApplyQuickFilterFn:wse},yse=["open","target","onClose","children","position","className","onExited"],Ase=n=>{const{classes:o}=n;return Rt({root:["menu"]},Tn,o)},Cse=_e(Eu,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(n,o)=>o.menu})(({theme:n})=>({zIndex:n.zIndex.modal,[`& .${we.menuList}`]:{outline:0}})),kse={"bottom-start":"top left","bottom-end":"top right"};function tT(n){var C;const{open:o,target:i,onClose:s,children:l,position:c,className:d,onExited:f}=n,p=Qe(n,yse),m=gn(),g=ir(),v=Ase(g),w=x.useRef(null);yo(()=>{var M,S;o?w.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((S=(M=w.current)==null?void 0:M.focus)==null||S.call(M),w.current=null)},[o]),x.useEffect(()=>{const M=o?"menuOpen":"menuClose";m.current.publishEvent(M,{target:i})},[m,o,i]);const A=M=>S=>{M&&M(),f&&f(S)},k=M=>{M.target&&(i===M.target||i!=null&&i.contains(M.target))||s(M)};return b.jsx(Cse,P({as:g.slots.basePopper,className:nt(d,v.root),ownerState:g,open:o,anchorEl:i,transition:!0,placement:c},p,(C=g.slotProps)==null?void 0:C.basePopper,{children:({TransitionProps:M,placement:S})=>b.jsx(l3,{onClickAway:k,mouseEvent:"onMouseDown",children:b.jsx(Cf,P({},M,{style:{transformOrigin:kse[S]},onExited:A(M==null?void 0:M.onExited),children:b.jsx(yl,{children:l})}))})}))}const Sse=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Ise=n=>typeof n.getActions=="function";function Ese(n){var Q;const{colDef:o,id:i,hasFocus:s,tabIndex:l,position:c="bottom-end",focusElementRef:d}=n,f=Qe(n,Sse),[p,m]=x.useState(-1),[g,v]=x.useState(!1),w=gn(),A=x.useRef(null),k=x.useRef(null),C=x.useRef(!1),M=x.useRef({}),S=ka(),I=Ro(),E=Ro(),j=ir();if(!Ise(o))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const B=o.getActions(w.current.getRowParams(i)),F=B.filter(G=>!G.props.showInMenu),O=B.filter(G=>G.props.showInMenu),N=F.length+(O.length?1:0);x.useLayoutEffect(()=>{s||Object.entries(M.current).forEach(([G,D])=>{D==null||D.stop({},()=>{delete M.current[G]})})},[s]),x.useEffect(()=>{if(p<0||!A.current||p>=A.current.children.length)return;A.current.children[p].focus({preventScroll:!0})},[p]),x.useEffect(()=>{s||(m(-1),C.current=!1)},[s]),x.useImperativeHandle(d,()=>({focus(){if(!C.current){const G=B.findIndex(D=>!D.props.disabled);m(G)}}}),[B]),x.useEffect(()=>{p>=N&&m(N-1)},[p,N]);const H=()=>{v(!0),m(N-1),C.current=!0},L=()=>{v(!1)},_=G=>D=>{M.current[G]=D},V=(G,D)=>q=>{m(G),C.current=!0,D&&D(q)},$=G=>{if(N<=1)return;const D=(W,X)=>{var de;if(W<0||W>B.length)return W;const te=S.direction==="rtl"?-1:1,se=(X==="left"?-1:1)*te;return(de=B[W+se])!=null&&de.props.disabled?D(W+se,X):W+se};let q=p;G.key==="ArrowRight"?q=D(p,"right"):G.key==="ArrowLeft"&&(q=D(p,"left")),!(q<0||q>=N)&&q!==p&&(G.preventDefault(),G.stopPropagation(),m(q))},z=G=>{G.key==="Tab"&&G.preventDefault(),["Tab","Escape"].includes(G.key)&&L()};return b.jsxs("div",P({role:"menu",ref:A,tabIndex:-1,className:we.actionsCell,onKeyDown:$},f,{children:[F.map((G,D)=>x.cloneElement(G,{key:D,touchRippleRef:_(D),onClick:V(D,G.props.onClick),tabIndex:p===D?l:-1})),O.length>0&&E&&b.jsx(j.slots.baseIconButton,P({ref:k,id:E,"aria-label":w.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?I:void 0,role:"menuitem",size:"small",onClick:H,touchRippleRef:_(E),tabIndex:p===F.length?l:-1},(Q=j.slotProps)==null?void 0:Q.baseIconButton,{children:b.jsx(j.slots.moreActionsIcon,{fontSize:"small"})})),O.length>0&&b.jsx(tT,{open:g,target:k.current,position:c,onClose:L,children:b.jsx(Kh,{id:I,className:we.menuList,onKeyDown:z,"aria-labelledby":E,variant:"menu",autoFocusItem:!0,children:O.map((G,D)=>x.cloneElement(G,{key:D,closeMenu:L}))})})]}))}const Mse=n=>b.jsx(Ese,P({},n)),Hb="actions",Pse=P({},nc,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Mse,getApplyQuickFilterFn:void 0}),B1=n=>n.rows,Fm=Dr(B1,n=>n.totalRowCount),jse=Dr(B1,n=>n.loading),Ose=Dr(B1,n=>n.totalTopLevelRowCount),cd=Dr(B1,n=>n.dataRowIdToModelLookup),f3=Dr(B1,n=>n.dataRowIdToIdLookup),h1=Dr(B1,n=>n.tree),Rse=Dr(B1,n=>n.groupsToFetch),Bse=Dr(B1,n=>n.groupingName),iE=Dr(B1,n=>n.treeDepths),Ub=Go(B1,n=>{const o=Object.entries(n.treeDepths);return o.length===0?1:o.filter(([,i])=>i>0).map(([i])=>Number(i)).sort((i,s)=>s-i)[0]+1}),Rg=Dr(B1,n=>n.dataRowIds),Tse=Dr(B1,n=>n==null?void 0:n.additionalRowGroups),$f=Go(Tse,n=>{var i,s;const o=n==null?void 0:n.pinnedRows;return{bottom:((i=o==null?void 0:o.bottom)==null?void 0:i.map(l=>({id:l.id,model:l.model??{}})))??[],top:((s=o==null?void 0:o.top)==null?void 0:s.map(l=>({id:l.id,model:l.model??{}})))??[]}}),Fse=Dr($f,n=>{var o,i;return(((o=n==null?void 0:n.top)==null?void 0:o.length)||0)+(((i=n==null?void 0:n.bottom)==null?void 0:i.length)||0)}),Ys="auto-generated-group-node-root",Q2=Symbol("mui.id_autogenerated"),Dse=()=>({type:"group",id:Ys,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Nse(n,o,i="A row was provided without id in the rows prop:"){if(n==null)throw new Error(["MUI X: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",i,JSON.stringify(o)].join(` -`))}const Gb=(n,o,i)=>{const s=o?o(n):n.id;return Nse(s,n,i),s},lv=({rows:n,getRowId:o,loading:i,rowCount:s})=>{const l={type:"full",rows:[]},c={},d={};for(let f=0;f{const i=n[Ys];return Math.max(o,i.children.length+(i.footerId==null?0:1))},nT=({apiRef:n,rowCountProp:o=0,loadingProp:i,previousTree:s,previousTreeDepths:l,previousGroupsToFetch:c})=>{const d=n.current.caches.rows,{tree:f,treeDepths:p,dataRowIds:m,groupingName:g,groupsToFetch:v=[]}=n.current.applyStrategyProcessor("rowTreeCreation",{previousTree:s,previousTreeDepths:l,updates:d.updates,dataRowIdToIdLookup:d.dataRowIdToIdLookup,dataRowIdToModelLookup:d.dataRowIdToModelLookup,previousGroupsToFetch:c}),w=n.current.unstable_applyPipeProcessors("hydrateRows",{tree:f,treeDepths:p,dataRowIdToIdLookup:d.dataRowIdToIdLookup,dataRowIds:m,dataRowIdToModelLookup:d.dataRowIdToModelLookup});return n.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},P({},w,{totalRowCount:Math.max(o,w.dataRowIds.length),totalTopLevelRowCount:rT({tree:w.tree,rowCountProp:o}),groupingName:g,loading:i,groupsToFetch:v})},dp=n=>n.type==="skeletonRow"||n.type==="footer"||n.type==="group"&&n.isAutoGenerated||n.type==="pinnedRow"&&n.isAutoGenerated,UA=(n,o,i)=>{const s=n[o];if(s.type!=="group")return[];const l=[];for(let c=0;c{if(n.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const l=new Map;i.forEach(g=>{const v=Gb(g,o,"A row was provided without id when calling updateRows():");l.has(v)?l.set(v,P({},l.get(v),g)):l.set(v,g)});const c={type:"partial",actions:{insert:[...n.updates.actions.insert??[]],modify:[...n.updates.actions.modify??[]],remove:[...n.updates.actions.remove??[]]},idToActionLookup:P({},n.updates.idToActionLookup),groupKeys:s},d=P({},n.dataRowIdToModelLookup),f=P({},n.dataRowIdToIdLookup),p={insert:{},modify:{},remove:{}};l.forEach((g,v)=>{const w=c.idToActionLookup[v];if(g._action==="delete"){if(w==="remove"||!d[v])return;w!=null&&(p[w][v]=!0),c.actions.remove.push(v),delete d[v],delete f[v];return}const A=d[v];if(A){w==="remove"?(p.remove[v]=!0,c.actions.modify.push(v)):w==null&&c.actions.modify.push(v),d[v]=P({},A,g);return}w==="remove"?(p.remove[v]=!0,c.actions.insert.push(v)):w==null&&c.actions.insert.push(v),d[v]=g,f[v]=v});const m=Object.keys(p);for(let g=0;g0&&(c.actions[v]=c.actions[v].filter(A=>!w[A]))}return{dataRowIdToModelLookup:d,dataRowIdToIdLookup:f,updates:c,rowsBeforePartialUpdates:n.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:n.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:n.rowCountPropBeforePartialUpdates}};function $se(n){var l,c;const o=$f(n),i=((l=o==null?void 0:o.top)==null?void 0:l.reduce((d,f)=>(d+=n.current.unstable_getRowHeight(f.id),d),0))||0,s=((c=o==null?void 0:o.bottom)==null?void 0:c.reduce((d,f)=>(d+=n.current.unstable_getRowHeight(f.id),d),0))||0;return{top:i,bottom:s}}function oT(n){return`var(--DataGrid-overlayHeight, ${2*Vl(n.current.state).rowHeight}px)`}function sE(n,o,i){const s=[];return o.forEach(l=>{const c=Gb(l,i,"A row was provided without id when calling updateRows():"),d=n.current.getRowNode(c);if((d==null?void 0:d.type)==="pinnedRow"){const f=n.current.caches.pinnedRows,p=f.idLookup[c];p&&(f.idLookup[c]=P({},p,l))}else s.push(l)}),s}const Lse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],zse=n=>{const{classes:o}=n;return Rt({root:["booleanCell"]},Tn,o)};function Hse(n){const{value:o}=n,i=Qe(n,Lse),s=gn(),l=ir(),c={classes:l.classes},d=zse(c),f=x.useMemo(()=>o?l.slots.booleanCellTrueIcon:l.slots.booleanCellFalseIcon,[l.slots.booleanCellFalseIcon,l.slots.booleanCellTrueIcon,o]);return b.jsx(f,P({fontSize:"small",className:d.root,titleAccess:s.current.getLocaleText(o?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!o},i))}const Use=x.memo(Hse),Gse=n=>n.field!=="__row_group_by_columns_group__"&&dp(n.rowNode)?"":b.jsx(Use,P({},n)),Vse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Qse=n=>{const{classes:o}=n;return Rt({root:["editBooleanCell"]},Tn,o)};function Wse(n){var S;const{id:o,value:i,field:s,className:l,hasFocus:c,onValueChange:d}=n,f=Qe(n,Vse),p=gn(),m=x.useRef(null),g=Ro(),[v,w]=x.useState(i),A=ir(),k={classes:A.classes},C=Qse(k),M=x.useCallback(async I=>{const E=I.target.checked;d&&await d(I,E),w(E),await p.current.setEditCellValue({id:o,field:s,value:E},I)},[p,s,o,d]);return x.useEffect(()=>{w(i)},[i]),yo(()=>{c&&m.current.focus()},[c]),b.jsx("label",P({htmlFor:g,className:nt(C.root,l)},f,{children:b.jsx(A.slots.baseCheckbox,P({id:g,inputRef:m,checked:!!v,onChange:M,size:"small"},(S=A.slotProps)==null?void 0:S.baseCheckbox))}))}const qse=n=>b.jsx(Wse,P({},n)),_se=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Yse=_e("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Kse(n){var j,B,F;const{item:o,applyValue:i,apiRef:s,focusElementRef:l,clearButton:c,tabIndex:d,label:f,variant:p="standard"}=n,m=Qe(n,_se),[g,v]=x.useState(o.value||""),w=ir(),A=Ro(),k=Ro(),C=((j=w.slotProps)==null?void 0:j.baseSelect)||{},M=C.native??!1,S=((B=w.slotProps)==null?void 0:B.baseSelectOption)||{},I=x.useCallback(O=>{const N=O.target.value;v(N),i(P({},o,{value:N}))},[i,o]);x.useEffect(()=>{v(o.value||"")},[o.value]);const E=f??s.current.getLocaleText("filterPanelInputLabel");return b.jsxs(Yse,{children:[b.jsxs(w.slots.baseFormControl,{fullWidth:!0,children:[b.jsx(w.slots.baseInputLabel,P({},(F=w.slotProps)==null?void 0:F.baseInputLabel,{id:A,shrink:!0,variant:p,children:E})),b.jsxs(w.slots.baseSelect,P({labelId:A,id:k,label:E,value:g,onChange:I,variant:p,notched:p==="outlined"?!0:void 0,native:M,displayEmpty:!0,inputProps:{ref:l,tabIndex:d}},m,C,{children:[b.jsx(w.slots.baseSelectOption,P({},S,{native:M,value:"",children:s.current.getLocaleText("filterValueAny")})),b.jsx(w.slots.baseSelectOption,P({},S,{native:M,value:"true",children:s.current.getLocaleText("filterValueTrue")})),b.jsx(w.slots.baseSelectOption,P({},S,{native:M,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const Xse=()=>[{value:"is",getApplyFilterFn:n=>{if(!n.value)return null;const o=String(n.value)==="true";return i=>!!i===o},InputComponent:Kse}],Jse=(n,o,i,s)=>n?s.current.getLocaleText("booleanCellTrueLabel"):s.current.getLocaleText("booleanCellFalseLabel"),Zse=n=>{switch(n.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},iT=P({},nc,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Gse,renderEditCell:qse,sortComparator:WB,valueFormatter:Jse,filterOperators:Xse(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:n=>Zse(n)}),ele=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],tle=n=>{const{classes:o}=n;return Rt({root:["checkboxInput"]},Tn,o)},rle=x.forwardRef(function(o,i){var B;const{field:s,id:l,value:c,rowNode:d,hasFocus:f,tabIndex:p}=o,m=Qe(o,ele),g=gn(),v=ir(),w={classes:v.classes},A=tle(w),k=x.useRef(null),C=x.useRef(null),M=Xn(k,i),S=F=>{const O={value:F.target.checked,id:l};g.current.publishEvent("rowSelectionCheckboxChange",O,F)};x.useLayoutEffect(()=>{if(p===0){const F=g.current.getCellElement(l,s);F&&(F.tabIndex=-1)}},[g,p,l,s]),x.useEffect(()=>{var F;if(f){const O=(F=k.current)==null?void 0:F.querySelector("input");O==null||O.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[f]);const I=x.useCallback(F=>{F.key===" "&&F.stopPropagation()},[]);if(d.type==="footer"||d.type==="pinnedRow")return null;const E=g.current.isRowSelectable(l),j=g.current.getLocaleText(c?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return b.jsx(v.slots.baseCheckbox,P({ref:M,tabIndex:p,checked:c,onChange:S,className:A.root,inputProps:{"aria-label":j},onKeyDown:I,disabled:!E,touchRippleRef:C},(B=v.slotProps)==null?void 0:B.baseCheckbox,m))}),nle=rle;function GA(n){return n.signature===tc.DataGrid?n.checkboxSelection&&n.disableMultipleRowSelection!==!0:!n.disableMultipleRowSelection}const Vb=n=>n.focus,a1=Dr(Vb,n=>n.cell),ole=Dr(Vb,n=>n.columnHeader);Dr(Vb,n=>n.columnHeaderFilter);const p3=Dr(Vb,n=>n.columnGroupHeader),Qb=n=>n.tabIndex,VA=Dr(Qb,n=>n.cell),aT=Dr(Qb,n=>n.columnHeader);Dr(Qb,n=>n.columnHeaderFilter);const ile=Dr(Qb,n=>n.columnGroupHeader),s1=n=>n.rowSelection,ale=Dr(s1,n=>n.length),sle=Go(s1,cd,(n,o)=>new Map(n.map(i=>[i,o[i]]))),h3=Go(s1,n=>n.reduce((o,i)=>(o[i]=i,o),{})),sT=n=>n.sorting,QA=Dr(sT,n=>n.sortedRows),WA=Go(QA,cd,h1,(n,o,i)=>n.reduce((s,l)=>{const c=o[l];c&&s.push({id:l,model:c});const d=i[l];return d&&dp(d)&&s.push({id:l,model:{[Q2]:l}}),s},[])),l1=Dr(sT,n=>n.sortModel),lle=Go(l1,n=>n.reduce((i,s,l)=>(i[s.field]={sortDirection:s.sort,sortIndex:n.length>1?l+1:void 0},i),{})),qA=n=>n.filter,Ya=Dr(qA,n=>n.filterModel);Dr(Ya,n=>n.quickFilterValues);const cle=n=>n.visibleRowsLookup,lT=Dr(qA,n=>n.filteredRowsLookup);Dr(qA,n=>n.filteredDescendantCountLookup);const zd=Go(cle,WA,(n,o)=>o.filter(i=>n[i.id]!==!1)),hh=Go(zd,n=>n.map(o=>o.id)),cT=Go(lT,WA,(n,o)=>o.filter(i=>n[i.id]!==!1)),ule=Go(cT,n=>n.map(o=>o.id)),uT=Go(zd,h1,Ub,(n,o,i)=>i<2?n:n.filter(s=>{var l;return((l=o[s.id])==null?void 0:l.depth)===0})),dT=Dr(zd,n=>n.length),_A=Dr(uT,n=>n.length),dle=Dr(cT,n=>n.length);Dr(dle,_A,(n,o)=>n-o);const fle=Go(Ya,$d,(n,o)=>{var i;return(i=n.items)==null?void 0:i.filter(s=>{var d,f;if(!s.field)return!1;const l=o[s.field];if(!(l!=null&&l.filterOperators)||((d=l==null?void 0:l.filterOperators)==null?void 0:d.length)===0)return!1;const c=l.filterOperators.find(p=>p.value===s.operator);return c?!c.InputComponent||s.value!=null&&((f=s.value)==null?void 0:f.toString())!=="":!1})}),ple=Go(fle,n=>n.reduce((i,s)=>(i[s.field]?i[s.field].push(s):i[s.field]=[s],i),{}));function Zr(n,o,i){const s=x.useRef(!0);x.useEffect(()=>{s.current=!1,n.current.register(i,o)},[n,i,o]),s.current&&n.current.register(i,o)}function za(n,o){const i=x.useRef(null);if(i.current)return i.current;const s=n.current.getLogger(o);return i.current=s,s}const fT=(n,o,i,s,l)=>{const c=za(n,"useNativeEventListener"),[d,f]=x.useState(!1),p=x.useRef(s),m=_B(o)?o():(o==null?void 0:o.current)??null,g=x.useCallback(v=>p.current&&p.current(v),[]);x.useEffect(()=>{p.current=s},[s]),x.useEffect(()=>{if(m&&i&&!d){c.debug(`Binding native ${i} event`),m.addEventListener(i,g,l),f(!0);const v=()=>{c.debug(`Clearing native ${i} event`),m.removeEventListener(i,g,l)};n.current.subscribeEvent("unmount",v)}},[m,g,i,d,c,l,n])},Dm=n=>{const o=x.useRef(!0);o.current&&(o.current=!1,n())},hle=()=>{},mle=(n,o)=>{const i=x.useRef(!1);yo(()=>i.current||!n?hle:(i.current=!0,o()),[i.current||n])},gle=100,vle=n=>n?0:100,pT=(n,o,i)=>o>0&&n>0?Math.ceil(n/o):n===-1?i+2:0,hT=n=>({page:0,pageSize:n?0:100}),ble=(n,o=0)=>o===0?n:Math.max(Math.min(n,o-1),0),mT=(n,o)=>{if(o===tc.DataGrid&&n>gle)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`))},Wb=n=>n.pagination,Ws=Dr(Wb,n=>n.paginationModel),M2=Dr(Wb,n=>n.rowCount),k0=Dr(Wb,n=>n.meta),wle=Dr(Ws,n=>n.page),xle=Dr(Ws,n=>n.pageSize),gT=Dr(Ws,M2,(n,o)=>pT(o,n.pageSize,n.page)),YA=Go(Ws,h1,Ub,zd,uT,(n,o,i,s,l)=>{var A;const c=l.length,d=Math.min(n.pageSize*n.page,c-1),f=Math.min(d+n.pageSize-1,c-1);if(d===-1||f===-1)return null;if(i<2)return{firstRowIndex:d,lastRowIndex:f};const p=l[d],m=f-d+1,g=s.findIndex(k=>k.id===p.id);let v=g,w=0;for(;v0)&&(v+=1),C===0&&(w+=1))}return{firstRowIndex:g,lastRowIndex:v-1}}),yle=Go(zd,YA,(n,o)=>o?n.slice(o.firstRowIndex,o.lastRowIndex+1):[]),vT=Go(hh,YA,(n,o)=>o?n.slice(o.firstRowIndex,o.lastRowIndex+1):[]),Ale=["field","colDef"],Cle=n=>{const{classes:o}=n;return Rt({root:["checkboxInput"]},Tn,o)},kle=x.forwardRef(function(o,i){var O;const s=Qe(o,Ale),[,l]=x.useState(!1),c=gn(),d=ir(),f={classes:d.classes},p=Cle(f),m=$t(c,aT),g=$t(c,s1),v=$t(c,hh),w=$t(c,vT),A=x.useMemo(()=>typeof d.isRowSelectable!="function"?g:g.filter(N=>c.current.getRow(N)?d.isRowSelectable(c.current.getRowParams(N)):!1),[c,d.isRowSelectable,g]),k=x.useMemo(()=>(!d.pagination||!d.checkboxSelectionVisibleOnly?v:w).reduce((H,L)=>(H[L]=!0,H),{}),[d.pagination,d.checkboxSelectionVisibleOnly,w,v]),C=x.useMemo(()=>A.filter(N=>k[N]).length,[A,k]),M=C>0&&C0,I=N=>{const H={value:N.target.checked};c.current.publishEvent("headerSelectionCheckboxChange",H)},E=m!==null&&m.field===o.field?0:-1;x.useLayoutEffect(()=>{const N=c.current.getColumnHeaderElement(o.field);E===0&&N&&(N.tabIndex=-1)},[E,c,o.field]);const j=x.useCallback(N=>{N.key===" "&&c.current.publishEvent("headerSelectionCheckboxChange",{value:!S})},[c,S]),B=x.useCallback(()=>{l(N=>!N)},[]);x.useEffect(()=>c.current.subscribeEvent("rowSelectionChange",B),[c,B]);const F=c.current.getLocaleText(S?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return b.jsx(d.slots.baseCheckbox,P({ref:i,indeterminate:M,checked:S,onChange:I,className:p.root,inputProps:{"aria-label":F},tabIndex:E,onKeyDown:j,disabled:!GA(d)},(O=d.slotProps)==null?void 0:O.baseCheckbox,s))}),Qu="__check__",Bp=P({},iT,{type:"custom",field:Qu,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(n,o,i,s)=>{const l=h3(s),c=s.current.getRowId(o);return l[c]!==void 0},renderHeader:n=>b.jsx(kle,P({},n)),renderCell:n=>b.jsx(nle,P({},n))}),Sle=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function lE(n,o){if(n==null)return"";const i=new Date(n);return Number.isNaN(i.getTime())?"":o==="date"?i.toISOString().substring(0,10):o==="datetime-local"?(i.setMinutes(i.getMinutes()-i.getTimezoneOffset()),i.toISOString().substring(0,19)):i.toISOString().substring(0,10)}function Zf(n){var E;const{item:o,applyValue:i,type:s,apiRef:l,focusElementRef:c,InputProps:d,clearButton:f,tabIndex:p,disabled:m}=n,g=Qe(n,Sle),v=Dl(),[w,A]=x.useState(()=>lE(o.value,s)),[k,C]=x.useState(!1),M=Ro(),S=ir(),I=x.useCallback(j=>{v.clear();const B=j.target.value;A(B),C(!0),v.start(S.filterDebounceMs,()=>{const F=new Date(B);i(P({},o,{value:Number.isNaN(F.getTime())?void 0:F})),C(!1)})},[i,o,S.filterDebounceMs,v]);return x.useEffect(()=>{const j=lE(o.value,s);A(j)},[o.value,s]),b.jsx(S.slots.baseTextField,P({fullWidth:!0,id:M,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:w,onChange:I,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:c,InputProps:P({},k||f?{endAdornment:k?b.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):f}:{},{disabled:m},d,{inputProps:P({max:s==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:p},d==null?void 0:d.inputProps)})},g,(E=S.slotProps)==null?void 0:E.baseTextField))}function e2(n,o,i,s){if(!n.value)return null;const l=new Date(n.value);i?l.setSeconds(0,0):(l.setMinutes(l.getMinutes()+l.getTimezoneOffset()),l.setHours(0,0,0,0));const c=l.getTime();return d=>{if(!d)return!1;if(s)return o(d.getTime(),c);const f=new Date(d);return i?f.setSeconds(0,0):f.setHours(0,0,0,0),o(f.getTime(),c)}}const bT=n=>[{value:"is",getApplyFilterFn:o=>e2(o,(i,s)=>i===s,n),InputComponent:Zf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"not",getApplyFilterFn:o=>e2(o,(i,s)=>i!==s,n),InputComponent:Zf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"after",getApplyFilterFn:o=>e2(o,(i,s)=>i>s,n),InputComponent:Zf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:o=>e2(o,(i,s)=>i>=s,n),InputComponent:Zf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"before",getApplyFilterFn:o=>e2(o,(i,s)=>ie2(o,(i,s)=>i<=s,n),InputComponent:Zf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>o=>o==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>o=>o!=null,requiresFilterValue:!1}],Ile=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Ele=_e(jp)({fontSize:"inherit"}),Mle=n=>{const{classes:o}=n;return Rt({root:["editInputCell"]},Tn,o)};function Ple(n){const{id:o,value:i,field:s,colDef:l,hasFocus:c,inputProps:d,onValueChange:f}=n,p=Qe(n,Ile),m=l.type==="dateTime",g=gn(),v=x.useRef(),w=x.useMemo(()=>{let j;i==null?j=null:i instanceof Date?j=i:j=new Date((i??"").toString());let B;return j==null||Number.isNaN(j.getTime())?B="":B=new Date(j.getTime()-j.getTimezoneOffset()*60*1e3).toISOString().substr(0,m?16:10),{parsed:j,formatted:B}},[i,m]),[A,k]=x.useState(w),M={classes:ir().classes},S=Mle(M),I=x.useCallback(j=>{if(j==="")return null;const[B,F]=j.split("T"),[O,N,H]=B.split("-"),L=new Date;if(L.setFullYear(Number(O),Number(N)-1,Number(H)),L.setHours(0,0,0,0),F){const[_,V]=F.split(":");L.setHours(Number(_),Number(V),0,0)}return L},[]),E=x.useCallback(async j=>{const B=j.target.value,F=I(B);f&&await f(j,F),k({parsed:F,formatted:B}),g.current.setEditCellValue({id:o,field:s,value:F},j)},[g,s,o,f,I]);return x.useEffect(()=>{k(j=>{var B,F;return w.parsed!==j.parsed&&((B=w.parsed)==null?void 0:B.getTime())!==((F=j.parsed)==null?void 0:F.getTime())?w:j})},[w]),yo(()=>{c&&v.current.focus()},[c]),b.jsx(Ele,P({inputRef:v,fullWidth:!0,className:S.root,type:m?"datetime-local":"date",inputProps:P({max:m?"9999-12-31T23:59":"9999-12-31"},d),value:A.formatted,onChange:E},p))}const wT=n=>b.jsx(Ple,P({},n));function xT({value:n,columnType:o,rowId:i,field:s}){if(!(n instanceof Date))throw new Error([`MUI X: \`${o}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${i}, field: "${s}".`].join(` -`))}const jle=(n,o,i,s)=>{if(!n)return"";const l=s.current.getRowId(o);return xT({value:n,columnType:"date",rowId:l,field:i.field}),n.toLocaleDateString()},Ole=(n,o,i,s)=>{if(!n)return"";const l=s.current.getRowId(o);return xT({value:n,columnType:"dateTime",rowId:l,field:i.field}),n.toLocaleString()},Rle=P({},nc,{type:"date",sortComparator:qB,valueFormatter:jle,filterOperators:bT(),renderEditCell:wT,pastedValueParser:n=>new Date(n)}),Ble=P({},nc,{type:"dateTime",sortComparator:qB,valueFormatter:Ole,filterOperators:bT(!0),renderEditCell:wT,pastedValueParser:n=>new Date(n)}),Zu=n=>n==null?null:Number(n),Tle=n=>n==null||Number.isNaN(n)||n===""?null:o=>Zu(o)===Zu(n),Fle=()=>[{value:"=",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>Zu(o)===n.value,InputComponent:Ic,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>Zu(o)!==n.value,InputComponent:Ic,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)>n.value,InputComponent:Ic,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)>=n.value,InputComponent:Ic,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)<=n.value,InputComponent:Ic,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>n=>n==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>n=>n!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:n=>!Array.isArray(n.value)||n.value.length===0?null:o=>o!=null&&n.value.includes(Number(o)),InputComponent:KB,InputComponentProps:{type:"number"}}],Dle=P({},nc,{type:"number",align:"right",headerAlign:"right",sortComparator:WB,valueParser:n=>n===""?null:Number(n),valueFormatter:n=>lse(n)?n.toLocaleString():n||"",filterOperators:Fle(),getApplyQuickFilterFn:Tle}),m3=n=>n==="Escape",yT=n=>n==="Tab";function AT(n){return n.key.length===1&&!n.ctrlKey&&!n.metaKey}const g3=n=>n.indexOf("Arrow")===0||n.indexOf("Page")===0||n===" "||n==="Home"||n==="End",Nle=n=>!!n.key,$le=n=>yT(n)||m3(n);function CT(n){return!!((n.ctrlKey||n.metaKey)&&n.key.toLowerCase()==="v"&&!n.shiftKey&&!n.altKey)}function fp(n){return(n==null?void 0:n.type)==="singleSelect"}function kf(n,o){if(n)return typeof n.valueOptions=="function"?n.valueOptions(P({field:n.field},o)):n.valueOptions}function v3(n,o,i){if(o===void 0)return;const s=o.find(l=>{const c=i(l);return String(c)===String(n)});return i(s)}const Lle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],zle=["MenuProps"];function Hle(n){return!!n.key}function Ule(n){var V,$;const o=ir(),{id:i,value:s,field:l,row:c,colDef:d,hasFocus:f,error:p,onValueChange:m,initialOpen:g=o.editMode===Qc.Cell}=n,v=Qe(n,Lle),w=gn(),A=x.useRef(),k=x.useRef(),[C,M]=x.useState(g),I=(((V=o.slotProps)==null?void 0:V.baseSelect)||{}).native??!1,E=(($=o.slotProps)==null?void 0:$.baseSelect)||{},{MenuProps:j}=E,B=Qe(E,zle);if(yo(()=>{var z;f&&((z=k.current)==null||z.focus())},[f]),!fp(d))return null;const F=kf(d,{id:i,row:c});if(!F)return null;const O=d.getOptionValue,N=d.getOptionLabel,H=async z=>{if(!fp(d)||!F)return;M(!1);const Q=z.target,G=v3(Q.value,F,O);m&&await m(z,G),await w.current.setEditCellValue({id:i,field:l,value:G},z)},L=(z,Q)=>{if(o.editMode===Qc.Row){M(!1);return}if(Q==="backdropClick"||m3(z.key)){const G=w.current.getCellParams(i,l);w.current.publishEvent("cellEditStop",P({},G,{reason:m3(z.key)?_1.escapeKeyDown:_1.cellFocusOut}))}},_=z=>{Hle(z)&&z.key==="Enter"||M(!0)};return!F||!d?null:b.jsx(o.slots.baseSelect,P({ref:A,inputRef:k,value:s,onChange:H,open:C,onOpen:_,MenuProps:P({onClose:L},j),error:p,native:I,fullWidth:!0},v,B,{children:F.map(z=>{var G;const Q=O(z);return x.createElement(o.slots.baseSelectOption,P({},((G=o.slotProps)==null?void 0:G.baseSelectOption)||{},{native:I,key:Q,value:Q}),N(z))})}))}const Gle=n=>b.jsx(Ule,P({},n)),Vle=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],Qle=({column:n,OptionComponent:o,getOptionLabel:i,getOptionValue:s,isSelectNative:l,baseSelectOptionProps:c})=>["",...kf(n)||[]].map(f=>{const p=s(f);let m=i(f);return m===""&&(m=" "),x.createElement(o,P({},c,{native:l,key:p,value:p}),m)}),Wle=_e("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function cE(n){var O,N,H,L,_;const{item:o,applyValue:i,type:s,apiRef:l,focusElementRef:c,placeholder:d,tabIndex:f,label:p,variant:m="standard",clearButton:g}=n,v=Qe(n,Vle),w=o.value??"",A=Ro(),k=Ro(),C=ir(),M=((N=(O=C.slotProps)==null?void 0:O.baseSelect)==null?void 0:N.native)??!1;let S=null;if(o.field){const V=l.current.getColumn(o.field);fp(V)&&(S=V)}const I=S==null?void 0:S.getOptionValue,E=S==null?void 0:S.getOptionLabel,j=x.useMemo(()=>kf(S),[S]),B=x.useCallback(V=>{let $=V.target.value;$=v3($,j,I),i(P({},o,{value:$}))},[j,I,i,o]);if(!fp(S))return null;const F=p??l.current.getLocaleText("filterPanelInputLabel");return b.jsxs(Wle,{children:[b.jsxs(C.slots.baseFormControl,{fullWidth:!0,children:[b.jsx(C.slots.baseInputLabel,P({},(H=C.slotProps)==null?void 0:H.baseInputLabel,{id:k,htmlFor:A,shrink:!0,variant:m,children:F})),b.jsx(C.slots.baseSelect,P({id:A,label:F,labelId:k,value:w,onChange:B,variant:m,type:s||"text",inputProps:{tabIndex:f,ref:c,placeholder:d??l.current.getLocaleText("filterPanelInputPlaceholder")},native:M,notched:m==="outlined"?!0:void 0},v,(L=C.slotProps)==null?void 0:L.baseSelect,{children:Qle({column:S,OptionComponent:C.slots.baseSelectOption,getOptionLabel:E,getOptionValue:I,isSelectNative:M,baseSelectOptionProps:(_=C.slotProps)==null?void 0:_.baseSelectOption})}))]}),g]})}const qle=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],_le=["key"],Yle=ZR();function Kle(n){const{item:o,applyValue:i,apiRef:s,focusElementRef:l,color:c,error:d,helperText:f,size:p,variant:m="standard"}=n,g=Qe(n,qle),v={color:c,error:d,helperText:f,size:p,variant:m},w=Ro(),A=ir();let k=null;if(o.field){const B=s.current.getColumn(o.field);fp(B)&&(k=B)}const C=k==null?void 0:k.getOptionValue,M=k==null?void 0:k.getOptionLabel,S=x.useCallback((B,F)=>C(B)===C(F),[C]),I=x.useMemo(()=>kf(k)||[],[k]),E=x.useMemo(()=>Array.isArray(o.value)?o.value.reduce((B,F)=>{const O=I.find(N=>C(N)===F);return O!=null&&B.push(O),B},[]):[],[C,o.value,I]),j=x.useCallback((B,F)=>{i(P({},o,{value:F.map(C)}))},[i,o,C]);return b.jsx(up,P({multiple:!0,options:I,isOptionEqualToValue:S,filterOptions:Yle,id:w,value:E,onChange:j,getOptionLabel:M,renderTags:(B,F)=>B.map((O,N)=>{const H=F({index:N}),{key:L}=H,_=Qe(H,_le);return b.jsx(A.slots.baseChip,P({variant:"outlined",size:"small",label:M(O)},_),L)}),renderInput:B=>{var F;return b.jsx(A.slots.baseTextField,P({},B,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},B.InputLabelProps,{shrink:!0}),inputRef:l,type:"singleSelect"},v,(F=A.slotProps)==null?void 0:F.baseTextField))}},g))}const t2=n=>n==null||!zA(n)?n:n.value,Xle=()=>[{value:"is",getApplyFilterFn:n=>n.value==null||n.value===""?null:o=>t2(o)===t2(n.value),InputComponent:cE},{value:"not",getApplyFilterFn:n=>n.value==null||n.value===""?null:o=>t2(o)!==t2(n.value),InputComponent:cE},{value:"isAnyOf",getApplyFilterFn:n=>{if(!Array.isArray(n.value)||n.value.length===0)return null;const o=n.value.map(t2);return i=>o.includes(t2(i))},InputComponent:Kle}],Jle=n=>typeof n[0]=="object",Zle=n=>zA(n)?n.value:n,e1e=n=>zA(n)?n.label:String(n),t1e=P({},nc,{type:"singleSelect",getOptionLabel:e1e,getOptionValue:Zle,valueFormatter(n,o,i,s){const l=s.current.getRowId(o);if(!fp(i))return"";const c=kf(i,{id:l,row:o});if(n==null)return"";if(!c)return n;if(!Jle(c))return i.getOptionLabel(n);const d=c.find(f=>i.getOptionValue(f)===n);return d?i.getOptionLabel(d):""},renderEditCell:Gle,filterOperators:Xle(),pastedValueParser:(n,o,i)=>{const s=i,l=kf(s)||[],c=s.getOptionValue;if(l.find(f=>c(f)===n))return n}}),r1e="string",n1e=()=>({string:nc,number:Dle,date:Rle,dateTime:Ble,boolean:iT,singleSelect:t1e,[Hb]:Pse,custom:nc}),KA=n=>n.headerFiltering,o1e=Dr(KA,n=>(n==null?void 0:n.enabled)??!1),i1e=Dr(KA,n=>n.editing),a1e=Dr(KA,n=>n.menuOpen),qb=n=>n.columnGrouping,kT=Go(qb,n=>(n==null?void 0:n.unwrappedGroupingModel)??{}),ST=Go(qb,n=>(n==null?void 0:n.lookup)??{}),s1e=Go(qb,n=>(n==null?void 0:n.headerStructure)??[]),Nm=Dr(qb,n=>(n==null?void 0:n.maxDepth)??0),IT=["maxWidth","minWidth","width","flex"],ax=n1e();function l1e({initialFreeSpace:n,totalFlexUnits:o,flexColumns:i}){const s=new Set(i.map(d=>d.field)),l={all:{},frozenFields:[],freeze:d=>{const f=l.all[d];f&&f.frozen!==!0&&(l.all[d].frozen=!0,l.frozenFields.push(d))}};function c(){if(l.frozenFields.length===s.size)return;const d={min:{},max:{}};let f=n,p=o,m=0;l.frozenFields.forEach(g=>{f-=l.all[g].computedWidth,p-=l.all[g].flex});for(let g=0;gv.maxWidth&&(m+=v.maxWidth-A,A=v.maxWidth,d.max[v.field]=!0),l.all[v.field]={frozen:!1,computedWidth:A,flex:v.flex}}m<0?Object.keys(d.max).forEach(g=>{l.freeze(g)}):m>0?Object.keys(d.min).forEach(g=>{l.freeze(g)}):i.forEach(({field:g})=>{l.freeze(g)}),c()}return c(),l.all}const e6=(n,o)=>{const i={};let s=0,l=0;const c=[];n.orderedFields.forEach(p=>{let m=n.lookup[p],g=0,v=!1;n.columnVisibilityModel[p]!==!1&&(m.flex&&m.flex>0?(s+=m.flex,v=!0):g=Mu(m.width||nc.width,m.minWidth||nc.minWidth,m.maxWidth||nc.maxWidth),l+=g),m.computedWidth!==g&&(m=P({},m,{computedWidth:g})),v&&c.push(m),i[p]=m});const d=o===void 0?0:o.viewportOuterSize.width-(o.hasScrollY?o.scrollbarSize:0),f=Math.max(d-l,0);if(s>0&&d>0){const p=l1e({initialFreeSpace:f,totalFlexUnits:s,flexColumns:c});Object.keys(p).forEach(m=>{i[m].computedWidth=p[m].computedWidth})}return P({},n,{lookup:i})},c1e=(n,o)=>{if(!o)return n;const{orderedFields:i=[],dimensions:s={}}=o,l=Object.keys(s);if(l.length===0&&i.length===0)return n;const c={},d=[];for(let g=0;g!c[g])],p=P({},n.lookup);for(let g=0;g{w[A]=k===-1?1/0:k}),p[v]=w}return P({},n,{orderedFields:f,lookup:p})};function uE(n){let o=ax[r1e];return n&&ax[n]&&(o=ax[n]),o}const u2=({apiRef:n,columnsToUpsert:o,initialState:i,columnVisibilityModel:s=x1(n),keepOnlyColumnsToUpsert:l=!1})=>{var g,v;const c=!n.current.state.columns;let d;if(c)d={orderedFields:[],lookup:{},columnVisibilityModel:s};else{const w=Hc(n.current.state);d={orderedFields:l?[]:[...w.orderedFields],lookup:P({},w.lookup),columnVisibilityModel:s}}let f={};l&&!c&&(f=Object.keys(d.lookup).reduce((w,A)=>P({},w,{[A]:!1}),{})),o.forEach(w=>{const{field:A}=w;f[A]=!0;let k=d.lookup[A];k==null?(k=P({},uE(w.type),{field:A,hasBeenResized:!1}),d.orderedFields.push(A)):l&&d.orderedFields.push(A),k&&k.type!==w.type&&(k=P({},uE(w.type),{field:A}));let C=k.hasBeenResized;IT.forEach(M=>{w[M]!==void 0&&(C=!0,w[M]===-1&&(w[M]=1/0))}),d.lookup[A]=P({},k,w,{hasBeenResized:C})}),l&&!c&&Object.keys(d.lookup).forEach(w=>{f[w]||delete d.lookup[w]});const p=n.current.unstable_applyPipeProcessors("hydrateColumns",d),m=c1e(p,i);return e6(m,((v=(g=n.current).getRootDimensions)==null?void 0:v.call(g))??void 0)};function u1e({firstColumnToRender:n,apiRef:o,firstRowToRender:i,lastRowToRender:s,visibleRows:l}){let c=n;for(let d=i;d{const{scrollDirection:o,classes:i}=n,s={root:["scrollArea",`scrollArea--${o}`]};return Rt(s,Tn,i)},p1e=zr("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(n,o)=>[{[`&.${we["scrollArea--left"]}`]:o["scrollArea--left"]},{[`&.${we["scrollArea--right"]}`]:o["scrollArea--right"]},o.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${we["scrollArea--left"]}`]:{left:0},[`&.${we["scrollArea--right"]}`]:{right:0}}));function h1e(n){const{scrollDirection:o}=n,i=x.useRef(null),s=gn(),l=Dl(),c=$t(s,Rm),d=$t(s,$A),f=$t(s,Vl),p=x.useRef({left:0,top:0}),m=()=>{if(o==="left")return p.current.left>0;if(o==="right"){const N=d-f.viewportInnerSize.width;return p.current.left{p.current=N,A(m)},B=ln(N=>{let H;if(N.preventDefault(),o==="left")H=N.clientX-i.current.getBoundingClientRect().right;else if(o==="right")H=Math.max(1,N.clientX-i.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");H=(H-dE)*d1e+dE,l.start(0,()=>{s.current.scroll({left:p.current.left+H,top:p.current.top})})}),F=ln(()=>{v(!0)}),O=ln(()=>{v(!1)});return Jt(s,"scrollPositionChange",j),Jt(s,"columnHeaderDragStart",F),Jt(s,"columnHeaderDragEnd",O),!g||!w?null:b.jsx(p1e,{ref:i,className:nt(M.root),ownerState:C,onDragOver:B,style:E})}const fE=Hd(h1e),m1e=()=>{};function g1e(n,o,i){const s=x.useRef(null);s.current=o,yo(()=>{if(typeof ResizeObserver>"u")return m1e;const l=n.current,c=new ResizeObserver(d=>{s.current(d)});return l&&c.observe(l),()=>{c.disconnect()}},[n,i])}const ET=x.createContext(void 0);function Ru(){const n=x.useContext(ET);if(n===void 0)throw new Error(["MUI X: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` -`));return n}const Zh=(n,o)=>{let i,s;return o.pagination&&o.paginationMode==="client"?(s=YA(n),i=yle(n)):(i=zd(n),i.length===0?s=null:s={firstRowIndex:0,lastRowIndex:i.length-1}),{rows:i,range:s}},Lf=(n,o)=>{const i=Zh(n,o);return x.useMemo(()=>({rows:i.rows,range:i.range}),[i.rows,i.range])},Tp=n=>n.rowsMeta,JA=n=>n.virtualization,v1e=Dr(JA,n=>n.enabled),ZA=Dr(JA,n=>n.enabledForColumns),e8=Dr(JA,n=>n.renderContext),b1e=Go(n=>n.virtualization.renderContext.firstColumnIndex,n=>n.virtualization.renderContext.lastColumnIndex,(n,o)=>({firstColumnIndex:n,lastColumnIndex:o})),MT={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},w1e=(n,o)=>{const i={enabled:!o.disableVirtualization,enabledForColumns:!0,renderContext:MT};return P({},n,{virtualization:i})};function x1e(n,o){const i=c=>{n.current.setState(d=>P({},d,{virtualization:P({},d.virtualization,{enabled:c})}))};Zr(n,{unstable_setVirtualization:i,unstable_setColumnVirtualization:c=>{n.current.setState(d=>P({},d,{virtualization:P({},d.virtualization,{enabledForColumns:c})}))}},"public"),x.useEffect(()=>{i(!o.disableVirtualization)},[o.disableVirtualization])}const sx=50;var ia=function(n){return n[n.NONE=0]="NONE",n[n.UP=1]="UP",n[n.DOWN=2]="DOWN",n[n.LEFT=3]="LEFT",n[n.RIGHT=4]="RIGHT",n}(ia||{});const pE={top:0,left:0},y1e=Object.freeze(new Map),A1e=(n,o,i,s,l)=>({direction:ia.NONE,buffer:jT(n,ia.NONE,o,i,s,l)});let t6=!1;try{typeof window<"u"&&(t6=/jsdom/.test(window.navigator.userAgent))}catch{}const C1e=()=>{const n=Ru(),o=ir(),i=$t(n,$a),s=$t(n,v1e)&&!t6,l=$t(n,ZA)&&!t6,c=$t(n,Vl),d=c.viewportOuterSize,f=$t(n,$f),p=$t(n,Tm),m=f.bottom.length>0,[g,v]=x.useState(y1e),w=ka(),A=$t(n,a1),k=$t(n,VA),C=$t(n,Tp),M=$t(n,h3),S=Lf(n,o),I=n.current.rootElementRef,E=n.current.mainElementRef,j=n.current.virtualScrollerRef,B=x.useRef(null),F=x.useRef(null),O=c.contentSize.height,N=c.columnsTotalWidth,H=$t(n,Yae);g1e(E,()=>n.current.resize());const L=x.useRef(pE),_=x.useRef(pE),V=x.useRef(MT),$=$t(n,e8),z=Dl(),Q=x.useRef(void 0),G=Pf(()=>A1e(w.direction,o.rowBufferPx,o.columnBufferPx,c.rowHeight*15,sx*6)).current,D={rowIndex:x.useMemo(()=>A?S.rows.findIndex(ve=>ve.id===A.id):-1,[A,S.rows]),columnIndex:x.useMemo(()=>A?i.findIndex(ve=>ve.field===A.field):-1,[A,i])},q=x.useCallback(ve=>{if(I1e(ve,n.current.state.virtualization.renderContext))return;const be=ve.firstRowIndex!==V.current.firstRowIndex||ve.lastRowIndex!==V.current.lastRowIndex;n.current.setState(ke=>P({},ke,{virtualization:P({},ke.virtualization,{renderContext:ve})})),c.isReady&&be&&(V.current=ve,n.current.publishEvent("renderedRowsIntervalChange",ve)),_.current=L.current},[n,c.isReady]),W=()=>{const ve={top:j.current.scrollTop,left:j.current.scrollLeft},be=ve.left-L.current.left,ke=ve.top-L.current.top,ze=be!==0||ke!==0;L.current=ve;const Ge=ze?E1e(be,ke):ia.NONE,Ve=Math.abs(L.current.top-_.current.top),at=Math.abs(L.current.left-_.current.left),We=Ve>=c.rowHeight||at>=sx,ue=G.direction!==Ge;if(!(We||ue))return $;if(ue)switch(Ge){case ia.NONE:case ia.LEFT:case ia.RIGHT:Q.current=void 0;break;default:Q.current=$;break}G.direction=Ge,G.buffer=jT(w.direction,Ge,o.rowBufferPx,o.columnBufferPx,c.rowHeight*15,sx*6);const $e=lx(n,o,s,l),bt=cx($e,L.current,G);return mm.flushSync(()=>{q(bt)}),z.start(1e3,W),bt},X=()=>{const ve=lx(n,o,s,l),be=cx(ve,L.current,G);q(be)},te=ln(ve=>{const{scrollTop:be,scrollLeft:ke}=ve.currentTarget;if(be<0||w.direction==="ltr"&&ke<0||w.direction==="rtl"&&ke>0)return;const ze=W();n.current.publishEvent("scrollPositionChange",{top:be,left:ke,renderContext:ze})}),se=ln(ve=>{n.current.publishEvent("virtualScrollerWheel",{},ve)}),de=ln(ve=>{n.current.publishEvent("virtualScrollerTouchMove",{},ve)}),ee=(ve={})=>{var st;if(!ve.rows&&!S.range)return[];const be=ve.renderContext??$,ke=!m&&ve.position===void 0||m&&ve.position==="bottom",ze=ve.position!==void 0;let Ge;switch(ve.position){case"top":Ge=0;break;case"bottom":Ge=f.top.length+S.rows.length;break;case void 0:Ge=f.top.length;break}const Ve=ve.rows??S.rows,at=be.firstRowIndex,We=Math.min(be.lastRowIndex,Ve.length),ue=ve.rows?tE(0,ve.rows.length):tE(at,We);let Le=-1;!ze&&D.rowIndex!==-1&&(D.rowIndex=We&&(Le=D.rowIndex,ue.push(Le)));const $e=[],bt=(st=o.slotProps)==null?void 0:st.row,ot=Ld(n);return ue.forEach(Ze=>{var re,ie,le;const{id:dt,model:Xe}=Ve[Ze];if(H){const ge=p.left.length,Me=i.length-p.right.length;n.current.calculateColSpan({rowId:dt,minFirstColumn:ge,maxLastColumn:Me,columns:i}),p.left.length>0&&n.current.calculateColSpan({rowId:dt,minFirstColumn:0,maxLastColumn:p.left.length,columns:i}),p.right.length>0&&n.current.calculateColSpan({rowId:dt,minFirstColumn:i.length-p.right.length,maxLastColumn:i.length,columns:i})}const Pt=(A==null?void 0:A.id)===dt,mt=n.current.rowHasAutoHeight(dt)?"auto":n.current.unstable_getRowHeight(dt);let pt;M[dt]==null?pt=!1:pt=n.current.isRowSelectable(dt);let Te=!1;ve.position===void 0&&(Te=Ze===0);let Re=!1;if(ke)if(ze)Re=Ze===Ve.length-1;else{const ge=S.rows.length-1;Ze===ge&&(Re=!0)}const It=Ze===Le;let Nt=null;k!==null&&k.id===dt&&(Nt=n.current.getCellParams(dt,k.field).cellMode==="view"?k.field:null);let ht=be;!ze&&Q.current&&Ze>=Q.current.firstRowIndex&&Ze=d.width,he=x.useMemo(()=>({overflowX:fe?void 0:"hidden",overflowY:o.autoHeight?"hidden":void 0}),[fe,o.autoHeight]),Ie=x.useMemo(()=>{const ve={width:fe?N:"auto",height:O};return o.autoHeight&&S.rows.length===0&&(ve.height=oT(n)),ve},[n,N,O,fe,o.autoHeight,S.rows.length]);return x.useEffect(()=>{n.current.publishEvent("virtualScrollerContentSizeChange")},[n,Ie]),yo(()=>{n.current.resize()},[n,C.currentPageTotalHeight]),yo(()=>{s&&(j.current.scrollLeft=0,j.current.scrollTop=0)},[s,I,j]),mle(d.width!==0,()=>{const ve=lx(n,o,s,l),be=cx(ve,L.current,G);q(be),n.current.publishEvent("scrollPositionChange",{top:L.current.top,left:L.current.left,renderContext:be})}),n.current.register("private",{updateRenderContext:X}),Jt(n,"columnsChange",X),Jt(n,"filteredRowsSet",X),Jt(n,"rowExpansionChange",X),{renderContext:$,setPanels:v,getRows:ee,getContainerProps:()=>({ref:E}),getScrollerProps:()=>({ref:j,tabIndex:-1,onScroll:te,onWheel:se,onTouchMove:de,style:he,role:"presentation"}),getContentProps:()=>({style:Ie,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:B,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:F,role:"presentation"})}};function lx(n,o,i,s){const l=Vl(n.current.state),c=Zh(n,o),d=$a(n),f=n.current.state.rows.dataRowIds.at(-1),p=d.at(-1);return{enabled:i,enabledForColumns:s,apiRef:n,autoHeight:o.autoHeight,rowBufferPx:o.rowBufferPx,columnBufferPx:o.columnBufferPx,leftPinnedWidth:l.leftPinnedWidth,columnsTotalWidth:l.columnsTotalWidth,viewportInnerWidth:l.viewportInnerSize.width,viewportInnerHeight:l.viewportInnerSize.height,lastRowHeight:f!==void 0?n.current.unstable_getRowHeight(f):0,lastColumnWidth:(p==null?void 0:p.computedWidth)??0,rowsMeta:Tp(n.current.state),columnPositions:Ld(n),rows:c.rows,range:c.range,pinnedColumns:Tm(n),visibleColumns:d}}function cx(n,o,i){let s;if(!n.enabled)s={firstRowIndex:0,lastRowIndex:n.rows.length,firstColumnIndex:0,lastColumnIndex:n.visibleColumns.length};else{const{top:c,left:d}=o,f=Math.abs(d)+n.leftPinnedWidth,p=Math.min(hE(n,c,{atStart:!0,lastPosition:n.rowsMeta.positions[n.rowsMeta.positions.length-1]+n.lastRowHeight}),n.rowsMeta.positions.length-1),m=n.autoHeight?p+n.rows.length:hE(n,c+n.viewportInnerHeight);let g=0,v=n.columnPositions.length;if(n.enabledForColumns){let w=!1;const[A,k]=r6({firstIndex:p,lastIndex:m,minFirstIndex:0,maxLastIndex:n.rows.length,bufferBefore:i.buffer.rowBefore,bufferAfter:i.buffer.rowAfter,positions:n.rowsMeta.positions,lastSize:n.lastRowHeight});for(let C=A;C=n.range.lastRowIndex);const c=Mu(s-(((f=n.range)==null?void 0:f.firstRowIndex)||0),0,n.rowsMeta.positions.length);return l||n.rowsMeta.positions[c]>=o?Ed(o,n.rowsMeta.positions,i):S1e(o,n.rowsMeta.positions,c,i)}function k1e(n,o,i){const[s,l]=r6({firstIndex:o.firstRowIndex,lastIndex:o.lastRowIndex,minFirstIndex:0,maxLastIndex:n.rows.length,bufferBefore:i.buffer.rowBefore,bufferAfter:i.buffer.rowAfter,positions:n.rowsMeta.positions,lastSize:n.lastRowHeight}),[c,d]=r6({firstIndex:o.firstColumnIndex,lastIndex:o.lastColumnIndex,minFirstIndex:n.pinnedColumns.left.length,maxLastIndex:n.visibleColumns.length-n.pinnedColumns.right.length,bufferBefore:i.buffer.columnBefore,bufferAfter:i.buffer.columnAfter,positions:n.columnPositions,lastSize:n.lastColumnWidth}),f=u1e({firstColumnToRender:c,apiRef:n.apiRef,firstRowToRender:s,lastRowToRender:l,visibleRows:n.rows});return{firstRowIndex:s,lastRowIndex:l,firstColumnIndex:f,lastColumnIndex:d}}function Ed(n,o,i=void 0,s=0,l=o.length){if(o.length<=0)return-1;if(s>=l)return s;const c=s+Math.floor((l-s)/2),d=o[c];let f;if(i!=null&&i.atStart){const p=(c===o.length-1?i.lastPosition:o[c+1])-d;f=n-p=Math.abs(n)?o>0?ia.DOWN:ia.UP:n>0?ia.RIGHT:ia.LEFT}function jT(n,o,i,s,l,c){if(n==="rtl")switch(o){case ia.LEFT:o=ia.RIGHT;break;case ia.RIGHT:o=ia.LEFT;break}switch(o){case ia.NONE:return{rowAfter:i,rowBefore:i,columnAfter:s,columnBefore:s};case ia.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:c};case ia.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:c,columnBefore:0};case ia.UP:return{rowAfter:0,rowBefore:l,columnAfter:0,columnBefore:0};case ia.DOWN:return{rowAfter:l,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const M1e=()=>{var g,v;const n=gn(),o=ir(),i=$t(n,Fm),s=$t(n,dT),l=i===0,c=$t(n,jse),d=!c&&l,f=!c&&i>0&&s===0;let p=null,m=null;return d&&(p="noRowsOverlay"),f&&(p="noResultsOverlay"),c&&(p="loadingOverlay",m=((v=(g=o.slotProps)==null?void 0:g.loadingOverlay)==null?void 0:v[l?"noRowsVariant":"variant"])||null),{overlayType:p,loadingOverlayVariant:m}},P1e=zr("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:n=>n!=="overlayType"&&n!=="loadingOverlayVariant",overridesResolver:(n,o)=>o.overlayWrapper})(({overlayType:n,loadingOverlayVariant:o})=>o!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:n==="loadingOverlay"?5:4}:{}),j1e=zr("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:n=>n!=="overlayType"&&n!=="loadingOverlayVariant",overridesResolver:(n,o)=>o.overlayWrapperInner})({}),O1e=n=>{const{classes:o}=n;return Rt({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Tn,o)};function R1e(n){const o=gn(),i=ir(),s=Lf(o,i),l=$t(o,Vl);let c=l.viewportOuterSize.height-l.topContainerHeight-l.bottomContainerHeight-(l.hasScrollX?l.scrollbarSize:0);(i.autoHeight&&s.rows.length===0||c===0)&&(c=oT(o));const d=O1e(P({},n,{classes:i.classes}));return b.jsx(P1e,P({className:nt(d.root)},n,{children:b.jsx(j1e,P({className:nt(d.inner),style:{height:c,width:l.viewportOuterSize.width}},n))}))}function B1e(n){var c,d;const{overlayType:o}=n,i=ir();if(!o)return null;const s=(c=i.slots)==null?void 0:c[o],l=(d=i.slotProps)==null?void 0:d[o];return b.jsx(R1e,P({},n,{children:b.jsx(s,P({},l))}))}const cv=n=>n.columnMenu;function T1e(){var M;const n=Ru(),o=ir(),i=$t(n,$a),s=$t(n,ple),l=$t(n,lle),c=$t(n,aT),d=$t(n,VA),f=$t(n,ile),p=$t(n,ole),m=$t(n,p3),g=$t(n,Nm),v=$t(n,cv),w=$t(n,x1),A=$t(n,s1e),k=!(f===null&&c===null&&d===null),C=x.useRef(null);return n.current.register("private",{columnHeadersContainerRef:C}),b.jsx(o.slots.columnHeaders,P({ref:C,visibleColumns:i,filterColumnLookup:s,sortColumnLookup:l,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:f,columnHeaderFocus:p,columnGroupHeaderFocus:m,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:w,columnGroupsHeaderStructure:A,hasOtherElementInTabSequence:k},(M=o.slotProps)==null?void 0:M.columnHeaders))}const F1e=Hd(T1e),D1e=()=>{const n=Ru(),o=ir(),i=$t(n,$a),s=$t(n,Fm),l=$t(n,Nm),c=$t(n,Fse);let d="grid";return o.treeData&&(d="treegrid"),{role:d,"aria-colcount":i.length,"aria-rowcount":l+1+c+s,"aria-multiselectable":GA(o)}},N1e=zr("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),$1e=zr("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(n,o)=>o.main})({flexGrow:1,position:"relative",overflow:"hidden"}),L1e=x.forwardRef((n,o)=>{const i=D1e(),s=ir();return b.jsxs($1e,P({ref:o,ownerState:s,className:n.className,tabIndex:-1},i,{children:[b.jsx(N1e,{role:"presentation","data-id":"gridPanelAnchor"}),n.children]}))}),z1e=()=>Rt({root:["topContainer"]},Tn,{}),H1e=zr("div")({position:"sticky",zIndex:4,top:0,"&::after":{content:'" "',position:"absolute",zIndex:5,bottom:0,left:0,right:0,height:1,width:"var(--DataGrid-rowWidth)",backgroundColor:"var(--DataGrid-rowBorderColor)"}});function U1e(n){const o=z1e();return b.jsx(H1e,P({},n,{className:nt(o.root,n.className,we["container--top"]),role:"presentation"}))}const G1e=()=>Rt({root:["bottomContainer"]},Tn,{}),V1e=zr("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Q1e(n){const o=G1e();return b.jsx(V1e,P({},n,{className:nt(o.root,n.className,we["container--bottom"]),role:"presentation"}))}const W1e=(n,o)=>{const{classes:i}=n;return Rt({root:["virtualScrollerContent",o&&"virtualScrollerContent--overflowed"]},Tn,i)},q1e=zr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(n,o)=>o.virtualScrollerContent})({}),_1e=x.forwardRef(function(o,i){var d;const s=ir(),l=!s.autoHeight&&((d=o.style)==null?void 0:d.minHeight)==="auto",c=W1e(s,l);return b.jsx(q1e,P({ref:i},o,{ownerState:s,className:nt(c.root,o.className)}))}),Y1e=zr("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),OT=zr("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),K1e=zr(OT)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),X1e=zr(OT)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),J1e=zr("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function Z1e({rowsLength:n}){const o=gn(),{viewportOuterSize:i,minimumSize:s,hasScrollX:l,hasScrollY:c,scrollbarSize:d,leftPinnedWidth:f,rightPinnedWidth:p}=$t(o,Vl),m=l?d:0,g=i.height-s.height-m,v=Math.max(m,g);return v===0?null:b.jsxs(Y1e,{className:we.filler,role:"presentation",style:{height:v,"--rowBorderColor":n===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[f>0&&b.jsx(K1e,{className:we["filler--pinnedLeft"],style:{width:f}}),b.jsx(J1e,{}),p>0&&b.jsx(X1e,{className:we["filler--pinnedRight"],style:{width:p+(c?d:0)}})]})}const ece=Hd(Z1e),tce=["className"],rce=n=>{const{classes:o}=n;return Rt({root:["virtualScrollerRenderZone"]},Tn,o)},nce=zr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(n,o)=>o.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),oce=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,tce),c=gn(),d=ir(),f=rce(d),p=$t(c,()=>{const m=e8(c);return Tp(c.current.state).positions[m.firstRowIndex]??0});return b.jsx(nce,P({ref:i,className:nt(f.root,s),ownerState:d,style:{transform:`translate3d(0, ${p}px, 0)`}},l))}),ice={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},Rs=n=>n.editRows,em=n=>n.preferencePanel;var Sf=function(n){return n.filters="filters",n.columns="columns",n}(Sf||{});const ace=(n,o)=>{const{classes:i}=n,s={root:["scrollbar",`scrollbar--${o}`],content:["scrollbarContent"]};return Rt(s,Tn,i)},RT=zr("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),sce=zr(RT)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),lce=zr(RT)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),cce=zr("div")({display:"inline-block"}),mE=x.forwardRef(function(o,i){const s=Ru(),l=ir(),c=x.useRef(!1),d=x.useRef(0),f=x.useRef(null),p=x.useRef(null),m=ace(l,o.position),g=$t(s,Vl),v=o.position==="vertical"?"height":"width",w=o.position==="vertical"?"scrollTop":"scrollLeft",A=o.position==="vertical"?g.hasScrollX:g.hasScrollY,k=g.minimumSize[v]+(A?g.scrollbarSize:0),M=(o.position==="vertical"?g.viewportInnerSize.height:g.viewportOuterSize.width)*(k/g.viewportOuterSize[v]),S=ln(()=>{const j=s.current.virtualScrollerRef.current,B=f.current;if(j[w]===d.current)return;if(c.current){c.current=!1;return}c.current=!0;const F=j[w]/k;B[w]=F*M,d.current=j[w]}),I=ln(()=>{const j=s.current.virtualScrollerRef.current,B=f.current;if(c.current){c.current=!1;return}c.current=!0;const F=B[w]/M;j[w]=F*k});nb(()=>{const j=s.current.virtualScrollerRef.current,B=f.current;return j.addEventListener("scroll",S,{capture:!0}),B.addEventListener("scroll",I,{capture:!0}),()=>{j.removeEventListener("scroll",S,{capture:!0}),B.removeEventListener("scroll",I,{capture:!0})}}),x.useEffect(()=>{p.current.style.setProperty(v,`${M}px`)},[M,v]);const E=o.position==="vertical"?sce:lce;return b.jsx(E,{ref:Xn(i,f),className:m.root,tabIndex:-1,children:b.jsx(cce,{ref:p,className:m.content})})}),uce=(n,o,i)=>{const{classes:s}=n,l={root:["main",o.rightPinnedWidth>0&&"main--hasPinnedRight",i==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller"]};return Rt(l,Tn,s)},dce=zr("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(n,o)=>o.virtualScroller})({position:"relative",height:"100%",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function fce(n){const o=gn(),i=ir(),s=$t(o,Vl),l=M1e(),c=uce(i,s,l.loadingOverlayVariant),d=C1e(),{getContainerProps:f,getScrollerProps:p,getContentProps:m,getRenderZoneProps:g,getScrollbarVerticalProps:v,getScrollbarHorizontalProps:w,getRows:A}=d,k=A();return b.jsxs(L1e,P({className:c.root},f(),{children:[b.jsx(fE,{scrollDirection:"left"}),b.jsx(fE,{scrollDirection:"right"}),b.jsxs(dce,P({className:c.scroller},p(),{ownerState:i,children:[b.jsxs(U1e,{children:[b.jsx(F1e,{}),b.jsx(i.slots.pinnedRows,{position:"top",virtualScroller:d})]}),b.jsx(B1e,P({},l)),b.jsx(_1e,P({},m(),{children:b.jsxs(oce,P({},g(),{children:[k,b.jsx(i.slots.detailPanels,{virtualScroller:d})]}))})),b.jsx(ece,{rowsLength:k.length}),b.jsx(Q1e,{children:b.jsx(i.slots.pinnedRows,{position:"bottom",virtualScroller:d})})]})),s.hasScrollY&&b.jsx(mE,P({position:"vertical"},v())),s.hasScrollX&&b.jsx(mE,P({position:"horizontal"},w())),n.children]}))}function pce(){var o;const n=ir();return n.hideFooter?null:b.jsx(n.slots.footer,P({},(o=n.slotProps)==null?void 0:o.footer))}let ux;function hce(){return ux===void 0&&document.createElement("div").focus({get preventScroll(){return ux=!0,!1}}),ux}function mce(n){return n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth}function b3(n,o){return n.closest(`.${o}`)}function Bu(n){return n.replace(/["\\]/g,"\\$&")}function gce(n,o){return n.querySelector(`[role="columnheader"][data-field="${Bu(o)}"]`)}function BT(n){return`.${we.row}[data-id="${Bu(String(n))}"]`}function vce(n,o){return n.querySelector(BT(o))}function bce(n,{id:o,field:i}){const s=BT(o),l=`.${we.cell}[data-field="${Bu(i)}"]`,c=`${s} ${l}`;return n.querySelector(c)}function $m(n){return n.target.nodeType===1&&!n.currentTarget.contains(n.target)}function wce(n){return n.getAttribute("data-field")}function xce(n,o){return n.querySelector(`[data-field="${Bu(o)}"]`)}function yce(n){return n.getAttribute("data-fields").slice(2,-2).split("-|-")}function Ace(n,o){return Array.from(n.querySelectorAll(`[data-fields*="|-${Bu(o)}-|"]`)??[])}function Cce(n,o){var d;if(!b3(n,we.root))throw new Error("MUI X: The root element is not found.");const s=n.getAttribute("aria-colindex");if(!s)return[];const l=Number(s)-1,c=[];return(d=o.virtualScrollerRef)!=null&&d.current?(DT(o).forEach(f=>{const p=f.getAttribute("data-id");if(!p)return;let m=l;const g=o.unstable_getCellColSpanInfo(p,l);g&&g.spannedByColSpan&&(m=g.leftVisibleCellIndex);const v=f.querySelector(`[data-colindex="${m}"]`);v&&c.push(v)}),c):[]}function gE(n,o){return n.rootElementRef.current.querySelector(`.${we[o]}`)}const TT=({api:n,colIndex:o,position:i,filterFn:s})=>{if(o===null)return[];const l=[];return DT(n).forEach(c=>{c.getAttribute("data-id")&&c.querySelectorAll(`.${we[i==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(f=>{const p=Fp(f);p!==null&&s(p)&&l.push(f)})}),l};function kce(n,o){const i=Fp(o);return TT({api:n,colIndex:i,position:"left",filterFn:s=>s>i})}function Sce(n,o){const i=Fp(o);return TT({api:n,colIndex:i,position:"right",filterFn:s=>s{var c;if(!((c=n.columnHeadersContainerRef)!=null&&c.current))return[];if(o===null)return[];const l=[];return n.columnHeadersContainerRef.current.querySelectorAll(`.${we[i==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(d=>{const f=Fp(d);f!==null&&s(f)&&l.push(d)}),l};function Ice(n,o){const i=Fp(o);return FT({api:n,position:"left",colIndex:i,filterFn:s=>s>i})}function Ece(n,o){const i=Fp(o);return FT({api:n,position:"right",colIndex:i,filterFn:s=>s div > [data-field="${Bu(o)}"][role="columnheader"]`)}function Pce(n,o){const i=n.virtualScrollerRef.current;return Array.from(i.querySelectorAll(`:scope > div > div > div > [data-field="${Bu(o)}"][role="gridcell"]`))}function DT(n){return n.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${we.row}`)}function Fp(n){const o=n.getAttribute("aria-colindex");return o?Number(o)-1:null}class uv extends Error{}function jce(n){const o=x.useCallback(v=>({field:v,colDef:n.current.getColumn(v)}),[n]),i=x.useCallback(v=>{const w=n.current.getRow(v);if(!w)throw new uv(`No row with id #${v} found`);return{id:v,columns:n.current.getAllColumns(),row:w}},[n]),s=x.useCallback((v,w)=>{const A=n.current.getColumn(w),k=n.current.getRow(v),C=n.current.getRowNode(v);if(!k||!C)throw new uv(`No row with id #${v} found`);const M=k[w],S=A!=null&&A.valueGetter?A.valueGetter(M,k,A,n):M,I=a1(n),E=VA(n),j={id:v,field:w,row:k,rowNode:C,colDef:A,cellMode:n.current.getCellMode(v,w),hasFocus:I!==null&&I.field===w&&I.id===v,tabIndex:E&&E.field===w&&E.id===v?0:-1,value:S,formattedValue:S,isEditable:!1};return A&&A.valueFormatter&&(j.formattedValue=A.valueFormatter(S,k,A,n)),j.isEditable=A&&n.current.isCellEditable(j),j},[n]),l=x.useCallback((v,w)=>{const A=n.current.getColumn(w),k=n.current.getRow(v);if(!k)throw new uv(`No row with id #${v} found`);return!A||!A.valueGetter?k[w]:A.valueGetter(k[A.field],k,A,n)},[n]),c=x.useCallback((v,w)=>{const A=w.field;if(!w||!w.valueGetter)return v[A];const k=v[w.field];return w.valueGetter(k,v,w,n)},[n]),d=x.useCallback((v,w)=>{const A=c(v,w);return!w||!w.valueFormatter?A:w.valueFormatter(A,v,w,n)},[n,c]),f=x.useCallback(v=>n.current.rootElementRef.current?gce(n.current.rootElementRef.current,v):null,[n]),p=x.useCallback(v=>n.current.rootElementRef.current?vce(n.current.rootElementRef.current,v):null,[n]),m=x.useCallback((v,w)=>n.current.rootElementRef.current?bce(n.current.rootElementRef.current,{id:v,field:w}):null,[n]);Zr(n,{getCellValue:l,getCellParams:s,getCellElement:m,getRowValue:c,getRowFormattedValue:d,getRowParams:i,getRowElement:p,getColumnHeaderParams:o,getColumnHeaderElement:f},"public")}const _b=(n,o,i,s,l)=>{const c=o===i-1;return n===ki.LEFT&&c?!0:s?n===ki.LEFT?!0:n===ki.RIGHT?!c:!c||l:!1},Yb=(n,o)=>n===ki.RIGHT&&o===0,Oce=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Rce=["changeReason","unstable_updateValueOnRender"];let ul=function(n){return n[n.NONE=0]="NONE",n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n[n.VIRTUAL=3]="VIRTUAL",n}({});const NT={[ul.LEFT]:ki.LEFT,[ul.RIGHT]:ki.RIGHT,[ul.NONE]:void 0,[ul.VIRTUAL]:void 0},vE={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Oo.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Bce=n=>{const{align:o,showLeftBorder:i,showRightBorder:s,pinnedPosition:l,isEditable:c,isSelected:d,isSelectionMode:f,classes:p}=n,m={root:["cell",`cell--text${Ke(o)}`,d&&"selected",c&&"cell--editable",i&&"cell--withLeftBorder",s&&"cell--withRightBorder",l===ul.LEFT&&"cell--pinnedLeft",l===ul.RIGHT&&"cell--pinnedRight",f&&!c&&"cell--selectionMode"]};return Rt(m,Tn,p)},Tce=x.forwardRef(function(o,i){var mt;const{column:s,rowId:l,editCellState:c,align:d,colIndex:f,width:p,className:m,style:g,colSpan:v,disableDragEvents:w,isNotVisible:A,pinnedOffset:k,pinnedPosition:C,sectionIndex:M,sectionLength:S,gridHasFiller:I,onClick:E,onDoubleClick:j,onMouseDown:B,onMouseUp:F,onMouseOver:O,onKeyDown:N,onKeyUp:H,onDragEnter:L,onDragOver:_}=o,V=Qe(o,Oce),$=gn(),z=ir(),Q=s.field,G=$t($,()=>{try{const Te=$.current.getCellParams(l,Q);return Te.api=$.current,Te}catch(pt){if(pt instanceof uv)return vE;throw pt}},UB),D=$t($,()=>$.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:Q})),{cellMode:q,hasFocus:W,isEditable:X=!1,value:te}=G,se=s.type==="actions"&&((mt=s.getActions)==null?void 0:mt.call(s,$.current.getRowParams(l)).some(pt=>!pt.props.disabled)),de=(q==="view"||!X)&&!se?G.tabIndex:-1,{classes:ee,getCellClassName:fe}=z,Ie=[$t($,()=>$.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:Q}).filter(Boolean).join(" "))];s.cellClassName&&Ie.push(typeof s.cellClassName=="function"?s.cellClassName(G):s.cellClassName),s.display==="flex"&&Ie.push(we["cell--flex"]),fe&&Ie.push(fe(G));const ve=G.formattedValue??te,be=x.useRef(null),ke=Xn(i,be),ze=x.useRef(null),Ge=z.cellSelection??!1,Ve=NT[C],at=Yb(Ve,M),We=_b(Ve,M,S,z.showCellVerticalBorder,I),ue={align:d,showLeftBorder:at,showRightBorder:We,isEditable:X,classes:z.classes,pinnedPosition:C,isSelected:D,isSelectionMode:Ge},Le=Bce(ue),$e=x.useCallback(pt=>Te=>{const Re=$.current.getCellParams(l,Q||"");$.current.publishEvent(pt,Re,Te),F&&F(Te)},[$,Q,F,l]),bt=x.useCallback(pt=>Te=>{const Re=$.current.getCellParams(l,Q||"");$.current.publishEvent(pt,Re,Te),B&&B(Te)},[$,Q,B,l]),ot=x.useCallback((pt,Te)=>Re=>{if(!$.current.getRow(l))return;const Je=$.current.getCellParams(l,Q||"");$.current.publishEvent(pt,Je,Re),Te&&Te(Re)},[$,Q,l]),st=x.useMemo(()=>{if(A)return{padding:0,opacity:0,width:0,border:0};const pt=P({"--width":`${p}px`},g);return C===ul.LEFT&&(pt.left=k),C===ul.RIGHT&&(pt.right=k),pt},[p,A,g,k,C]);if(x.useEffect(()=>{if(!W||q===Oo.Edit)return;const pt=ei($.current.rootElementRef.current);if(be.current&&!be.current.contains(pt.activeElement)){const Te=be.current.querySelector('[tabindex="0"]'),Re=ze.current||Te||be.current;if(hce())Re.focus({preventScroll:!0});else{const Je=$.current.getScrollPosition();Re.focus(),$.current.scroll(Je)}}},[W,q,$]),G===vE)return null;let Ze=V.onFocus,dt,Xe;if(c===null&&s.renderCell&&(dt=s.renderCell(G)),c!==null&&s.renderEditCell){const pt=$.current.getRowWithUpdatedValues(l,s.field),Te=Qe(c,Rce),Re=s.valueFormatter?s.valueFormatter(c.value,pt,s,$):G.formattedValue,Je=P({},G,{row:pt,formattedValue:Re},Te);dt=s.renderEditCell(Je),Ie.push(we["cell--editing"]),Ie.push(ee==null?void 0:ee["cell--editing"])}if(dt===void 0){const pt=ve==null?void 0:ve.toString();dt=pt,Xe=pt}x.isValidElement(dt)&&se&&(dt=x.cloneElement(dt,{focusElementRef:ze}));const Pt=w?null:{onDragEnter:ot("cellDragEnter",L),onDragOver:ot("cellDragOver",_)};return b.jsx("div",P({ref:ke,className:nt(m,Ie,Le.root),role:"gridcell","data-field":Q,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":v,style:st,title:Xe,tabIndex:de,onClick:ot("cellClick",E),onDoubleClick:ot("cellDoubleClick",j),onMouseOver:ot("cellMouseOver",O),onMouseDown:bt("cellMouseDown"),onMouseUp:$e("cellMouseUp"),onKeyDown:ot("cellKeyDown",N),onKeyUp:ot("cellKeyUp",H)},Pt,V,{onFocus:Ze,children:dt}))}),Fce=Hd(Tce),Dce=["field","type","align","width","height","empty","style","className"],bE="1.3em",Nce="1.2em",wE=[40,80],$ce={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},Lce=n=>{const{align:o,classes:i,empty:s}=n,l={root:["cell","cellSkeleton",`cell--text${o?Ke(o):"Left"}`,s&&"cellEmpty"]};return Rt(l,Tn,i)},zce=dse(12345);function Hce(n){const{field:o,type:i,align:s,width:l,height:c,empty:d=!1,style:f,className:p}=n,m=Qe(n,Dce),v={classes:ir().classes,align:s,empty:d},w=Lce(v),A=x.useMemo(()=>{if(i==="boolean"||i==="actions")return{variant:"circular",width:bE,height:bE};const[C,M]=i?$ce[i]??wE:wE;return{variant:"text",width:`${Math.round(zce(C,M))}%`,height:Nce}},[i]);return b.jsx("div",P({"data-field":o,className:nt(w.root,p),style:P({height:c,maxWidth:l,minWidth:l},f)},m,{children:!d&&b.jsx(eie,P({},A))}))}const Uce=Hd(Hce);function Gce(n){return n.vars?n.vars.palette.TableCell.border:n.palette.mode==="light"?eU(_d(n.palette.divider,1),.88):ZH(_d(n.palette.divider,1),.68)}const xE={[`.${we.columnSeparator}, .${we["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},yE={[`& .${we.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${we.menuIcon}`]:{width:"auto",visibility:"visible"}},Vce=_e("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(n,o)=>[{[`&.${we.autoHeight}`]:o.autoHeight},{[`&.${we.aggregationColumnHeader}`]:o.aggregationColumnHeader},{[`&.${we["aggregationColumnHeader--alignLeft"]}`]:o["aggregationColumnHeader--alignLeft"]},{[`&.${we["aggregationColumnHeader--alignCenter"]}`]:o["aggregationColumnHeader--alignCenter"]},{[`&.${we["aggregationColumnHeader--alignRight"]}`]:o["aggregationColumnHeader--alignRight"]},{[`&.${we.aggregationColumnHeaderLabel}`]:o.aggregationColumnHeaderLabel},{[`&.${we["root--disableUserSelection"]} .${we.cell}`]:o["root--disableUserSelection"]},{[`&.${we.autosizing}`]:o.autosizing},{[`& .${we.editBooleanCell}`]:o.editBooleanCell},{[`& .${we.cell}`]:o.cell},{[`& .${we["cell--editing"]}`]:o["cell--editing"]},{[`& .${we["cell--textCenter"]}`]:o["cell--textCenter"]},{[`& .${we["cell--textLeft"]}`]:o["cell--textLeft"]},{[`& .${we["cell--textRight"]}`]:o["cell--textRight"]},{[`& .${we["cell--rangeTop"]}`]:o["cell--rangeTop"]},{[`& .${we["cell--rangeBottom"]}`]:o["cell--rangeBottom"]},{[`& .${we["cell--rangeLeft"]}`]:o["cell--rangeLeft"]},{[`& .${we["cell--rangeRight"]}`]:o["cell--rangeRight"]},{[`& .${we["cell--withRightBorder"]}`]:o["cell--withRightBorder"]},{[`& .${we.cellCheckbox}`]:o.cellCheckbox},{[`& .${we.cellSkeleton}`]:o.cellSkeleton},{[`& .${we.checkboxInput}`]:o.checkboxInput},{[`& .${we["columnHeader--alignCenter"]}`]:o["columnHeader--alignCenter"]},{[`& .${we["columnHeader--alignLeft"]}`]:o["columnHeader--alignLeft"]},{[`& .${we["columnHeader--alignRight"]}`]:o["columnHeader--alignRight"]},{[`& .${we["columnHeader--dragging"]}`]:o["columnHeader--dragging"]},{[`& .${we["columnHeader--moving"]}`]:o["columnHeader--moving"]},{[`& .${we["columnHeader--numeric"]}`]:o["columnHeader--numeric"]},{[`& .${we["columnHeader--sortable"]}`]:o["columnHeader--sortable"]},{[`& .${we["columnHeader--sorted"]}`]:o["columnHeader--sorted"]},{[`& .${we["columnHeader--withRightBorder"]}`]:o["columnHeader--withRightBorder"]},{[`& .${we.columnHeader}`]:o.columnHeader},{[`& .${we.headerFilterRow}`]:o.headerFilterRow},{[`& .${we.columnHeaderCheckbox}`]:o.columnHeaderCheckbox},{[`& .${we.columnHeaderDraggableContainer}`]:o.columnHeaderDraggableContainer},{[`& .${we.columnHeaderTitleContainer}`]:o.columnHeaderTitleContainer},{[`& .${we["columnSeparator--resizable"]}`]:o["columnSeparator--resizable"]},{[`& .${we["columnSeparator--resizing"]}`]:o["columnSeparator--resizing"]},{[`& .${we.columnSeparator}`]:o.columnSeparator},{[`& .${we.filterIcon}`]:o.filterIcon},{[`& .${we.iconSeparator}`]:o.iconSeparator},{[`& .${we.menuIcon}`]:o.menuIcon},{[`& .${we.menuIconButton}`]:o.menuIconButton},{[`& .${we.menuOpen}`]:o.menuOpen},{[`& .${we.menuList}`]:o.menuList},{[`& .${we["row--editable"]}`]:o["row--editable"]},{[`& .${we["row--editing"]}`]:o["row--editing"]},{[`& .${we["row--dragging"]}`]:o["row--dragging"]},{[`& .${we.row}`]:o.row},{[`& .${we.rowReorderCellPlaceholder}`]:o.rowReorderCellPlaceholder},{[`& .${we.rowReorderCell}`]:o.rowReorderCell},{[`& .${we["rowReorderCell--draggable"]}`]:o["rowReorderCell--draggable"]},{[`& .${we.sortIcon}`]:o.sortIcon},{[`& .${we.withBorderColor}`]:o.withBorderColor},{[`& .${we.treeDataGroupingCell}`]:o.treeDataGroupingCell},{[`& .${we.treeDataGroupingCellToggle}`]:o.treeDataGroupingCellToggle},{[`& .${we.treeDataGroupingCellLoadingContainer}`]:o.treeDataGroupingCellLoadingContainer},{[`& .${we.detailPanelToggleCell}`]:o.detailPanelToggleCell},{[`& .${we["detailPanelToggleCell--expanded"]}`]:o["detailPanelToggleCell--expanded"]},o.root]})(({theme:n})=>{var M,S;const o=Gce(n),i=n.shape.borderRadius,s=n.vars?n.vars.palette.background.default:((M=n.mixins.MuiDataGrid)==null?void 0:M.containerBackground)??n.palette.background.default,l=((S=n.mixins.MuiDataGrid)==null?void 0:S.pinnedBackground)??s,c=n.vars?`rgba(${n.vars.palette.background.defaultChannel} / ${n.vars.palette.action.disabledOpacity})`:_d(n.palette.background.default,n.palette.action.disabledOpacity),d=(n.vars||n).palette.action.hoverOpacity,f=(n.vars||n).palette.action.hover,p=(n.vars||n).palette.action.selectedOpacity,m=n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${p})`:_d(n.palette.primary.main,p),g=n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc( +return result$$;`.replaceAll("$$",String(fE)));return fE+=1,(f,p)=>c(l,f,p)},lT=n=>n.quickFilterExcludeHiddenColumns??!0,Ese=(n,o)=>{var f;const i=((f=n.quickFilterValues)==null?void 0:f.filter(Boolean))??[];if(i.length===0)return null;const s=lT(n)?Bm(o):mu(o),l=[],{ignoreDiacritics:c}=o.current.rootProps,d=aT(o);return s.forEach(p=>{const m=o.current.getColumn(p),g=m==null?void 0:m.getApplyQuickFilterFn;g&&l.push({column:m,appliers:i.map(v=>{const w=c?Kh(v):v;return{fn:g(w,m,d)}})})}),function(m,g){const v={};e:for(let w=0;w{const s=Ise(n,o,i),l=Ese(n,o);return function(d,f,p){p.passingFilterItems=(s==null?void 0:s(d,f))??null,p.passingQuickFilterValues=(l==null?void 0:l(d,f))??null}},pE=n=>n!=null,Pse=(n,o,i)=>(n.cleanedFilterItems||(n.cleanedFilterItems=i.filter(s=>sT(s,o)!==null)),n.cleanedFilterItems),jse=(n,o,i,s,l)=>{const c=Pse(l,s,i.items),d=n.filter(pE),f=o.filter(pE);if(d.length>0){const p=g=>d.some(v=>v[g.id]);if((i.logicOperator??Yh().logicOperator)===_s.And){if(!c.every(p))return!1}else if(!c.some(p))return!1}if(f.length>0&&i.quickFilterValues!=null){const p=g=>f.some(v=>v[g]);if((i.quickFilterLogicOperator??Yh().quickFilterLogicOperator)===_s.And){if(!i.quickFilterValues.every(p))return!1}else if(!i.quickFilterValues.some(p))return!1}return!0},Ose=n=>{if(!n)return null;const o=new RegExp(sv(n),"i");return(i,s,l,c)=>{let d=c.current.getRowFormattedValue(s,l);return c.current.ignoreDiacritics&&(d=Kh(d)),d!=null?o.test(d.toString()):!1}},Rse=(n=!1)=>[{value:"contains",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new RegExp(sv(i),"i");return l=>l!=null?s.test(String(l)):!1},InputComponent:Sc},{value:"equals",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return l=>l!=null?s.compare(i,l.toString())===0:!1},InputComponent:Sc},{value:"startsWith",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new RegExp(`^${sv(i)}.*$`,"i");return l=>l!=null?s.test(l.toString()):!1},InputComponent:Sc},{value:"endsWith",getApplyFilterFn:o=>{if(!o.value)return null;const i=n?o.value:o.value.trim(),s=new RegExp(`.*${sv(i)}$`,"i");return l=>l!=null?s.test(l.toString()):!1},InputComponent:Sc},{value:"isEmpty",getApplyFilterFn:()=>o=>o===""||o==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>o=>o!==""&&o!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:o=>{if(!Array.isArray(o.value)||o.value.length===0)return null;const i=n?o.value:o.value.map(l=>l.trim()),s=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return l=>l!=null?i.some(c=>s.compare(c,l.toString()||"")===0):!1},InputComponent:oT}],rc={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:bse,type:"string",align:"left",filterOperators:Rse(),renderEditCell:fse,getApplyQuickFilterFn:Ose},Bse=["open","target","onClose","children","position","className","onExited"],Tse=n=>{const{classes:o}=n;return Bt({root:["menu"]},Tn,o)},Fse=_e(Eu,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(n,o)=>o.menu})(({theme:n})=>({zIndex:n.zIndex.modal,[`& .${we.menuList}`]:{outline:0}})),Dse={"bottom-start":"top left","bottom-end":"top right"};function cT(n){var C;const{open:o,target:i,onClose:s,children:l,position:c,className:d,onExited:f}=n,p=Qe(n,Bse),m=vn(),g=ir(),v=Tse(g),w=x.useRef(null);ko(()=>{var M,S;o?w.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((S=(M=w.current)==null?void 0:M.focus)==null||S.call(M),w.current=null)},[o]),x.useEffect(()=>{const M=o?"menuOpen":"menuClose";m.current.publishEvent(M,{target:i})},[m,o,i]);const A=M=>S=>{M&&M(),f&&f(S)},k=M=>{M.target&&(i===M.target||i!=null&&i.contains(M.target))||s(M)};return b.jsx(Fse,P({as:g.slots.basePopper,className:nt(d,v.root),ownerState:g,open:o,anchorEl:i,transition:!0,placement:c},p,(C=g.slotProps)==null?void 0:C.basePopper,{children:({TransitionProps:M,placement:S})=>b.jsx(l3,{onClickAway:k,mouseEvent:"onMouseDown",children:b.jsx(Af,P({},M,{style:{transformOrigin:Dse[S]},onExited:A(M==null?void 0:M.onExited),children:b.jsx(Js,{children:l})}))})}))}const Nse=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],$se=n=>typeof n.getActions=="function";function Lse(n){var Q;const{colDef:o,id:i,hasFocus:s,tabIndex:l,position:c="bottom-end",focusElementRef:d}=n,f=Qe(n,Nse),[p,m]=x.useState(-1),[g,v]=x.useState(!1),w=vn(),A=x.useRef(null),k=x.useRef(null),C=x.useRef(!1),M=x.useRef({}),S=ka(),I=Fo(),E=Fo(),j=ir();if(!$se(o))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const B=o.getActions(w.current.getRowParams(i)),D=B.filter(G=>!G.props.showInMenu),R=B.filter(G=>G.props.showInMenu),N=D.length+(R.length?1:0);x.useLayoutEffect(()=>{s||Object.entries(M.current).forEach(([G,F])=>{F==null||F.stop({},()=>{delete M.current[G]})})},[s]),x.useEffect(()=>{if(p<0||!A.current||p>=A.current.children.length)return;A.current.children[p].focus({preventScroll:!0})},[p]),x.useEffect(()=>{s||(m(-1),C.current=!1)},[s]),x.useImperativeHandle(d,()=>({focus(){if(!C.current){const G=B.findIndex(F=>!F.props.disabled);m(G)}}}),[B]),x.useEffect(()=>{p>=N&&m(N-1)},[p,N]);const U=()=>{v(!0),m(N-1),C.current=!0},L=()=>{v(!1)},_=G=>F=>{M.current[G]=F},V=(G,F)=>q=>{m(G),C.current=!0,F&&F(q)},$=G=>{if(N<=1)return;const F=(W,X)=>{var de;if(W<0||W>B.length)return W;const te=S.direction==="rtl"?-1:1,se=(X==="left"?-1:1)*te;return(de=B[W+se])!=null&&de.props.disabled?F(W+se,X):W+se};let q=p;G.key==="ArrowRight"?q=F(p,"right"):G.key==="ArrowLeft"&&(q=F(p,"left")),!(q<0||q>=N)&&q!==p&&(G.preventDefault(),G.stopPropagation(),m(q))},z=G=>{G.key==="Tab"&&G.preventDefault(),["Tab","Escape"].includes(G.key)&&L()};return b.jsxs("div",P({role:"menu",ref:A,tabIndex:-1,className:we.actionsCell,onKeyDown:$},f,{children:[D.map((G,F)=>x.cloneElement(G,{key:F,touchRippleRef:_(F),onClick:V(F,G.props.onClick),tabIndex:p===F?l:-1})),R.length>0&&E&&b.jsx(j.slots.baseIconButton,P({ref:k,id:E,"aria-label":w.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?I:void 0,role:"menuitem",size:"small",onClick:U,touchRippleRef:_(E),tabIndex:p===D.length?l:-1},(Q=j.slotProps)==null?void 0:Q.baseIconButton,{children:b.jsx(j.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&b.jsx(cT,{open:g,target:k.current,position:c,onClose:L,children:b.jsx(_h,{id:I,className:we.menuList,onKeyDown:z,"aria-labelledby":E,variant:"menu",autoFocusItem:!0,children:R.map((G,F)=>x.cloneElement(G,{key:F,closeMenu:L}))})})]}))}const zse=n=>b.jsx(Lse,P({},n)),Vb="actions",Hse=P({},rc,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:zse,getApplyQuickFilterFn:void 0}),R1=n=>n.rows,Fm=Dr(R1,n=>n.totalRowCount),Use=Dr(R1,n=>n.loading),Gse=Dr(R1,n=>n.totalTopLevelRowCount),ld=Dr(R1,n=>n.dataRowIdToModelLookup),p3=Dr(R1,n=>n.dataRowIdToIdLookup),p1=Dr(R1,n=>n.tree),Vse=Dr(R1,n=>n.groupsToFetch),Qse=Dr(R1,n=>n.groupingName),hE=Dr(R1,n=>n.treeDepths),Qb=Qo(R1,n=>{const o=Object.entries(n.treeDepths);return o.length===0?1:o.filter(([,i])=>i>0).map(([i])=>Number(i)).sort((i,s)=>s-i)[0]+1}),Rg=Dr(R1,n=>n.dataRowIds),Wse=Dr(R1,n=>n==null?void 0:n.additionalRowGroups),Nf=Qo(Wse,n=>{var i,s;const o=n==null?void 0:n.pinnedRows;return{bottom:((i=o==null?void 0:o.bottom)==null?void 0:i.map(l=>({id:l.id,model:l.model??{}})))??[],top:((s=o==null?void 0:o.top)==null?void 0:s.map(l=>({id:l.id,model:l.model??{}})))??[]}}),qse=Dr(Nf,n=>{var o,i;return(((o=n==null?void 0:n.top)==null?void 0:o.length)||0)+(((i=n==null?void 0:n.bottom)==null?void 0:i.length)||0)}),Ys="auto-generated-group-node-root",V2=Symbol("mui.id_autogenerated"),_se=()=>({type:"group",id:Ys,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Yse(n,o,i="A row was provided without id in the rows prop:"){if(n==null)throw new Error(["MUI X: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",i,JSON.stringify(o)].join(` +`))}const Wb=(n,o,i)=>{const s=o?o(n):n.id;return Yse(s,n,i),s},lv=({rows:n,getRowId:o,loading:i,rowCount:s})=>{const l={type:"full",rows:[]},c={},d={};for(let f=0;f{const i=n[Ys];return Math.max(o,i.children.length+(i.footerId==null?0:1))},dT=({apiRef:n,rowCountProp:o=0,loadingProp:i,previousTree:s,previousTreeDepths:l,previousGroupsToFetch:c})=>{const d=n.current.caches.rows,{tree:f,treeDepths:p,dataRowIds:m,groupingName:g,groupsToFetch:v=[]}=n.current.applyStrategyProcessor("rowTreeCreation",{previousTree:s,previousTreeDepths:l,updates:d.updates,dataRowIdToIdLookup:d.dataRowIdToIdLookup,dataRowIdToModelLookup:d.dataRowIdToModelLookup,previousGroupsToFetch:c}),w=n.current.unstable_applyPipeProcessors("hydrateRows",{tree:f,treeDepths:p,dataRowIdToIdLookup:d.dataRowIdToIdLookup,dataRowIds:m,dataRowIdToModelLookup:d.dataRowIdToModelLookup});return n.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},P({},w,{totalRowCount:Math.max(o,w.dataRowIds.length),totalTopLevelRowCount:uT({tree:w.tree,rowCountProp:o}),groupingName:g,loading:i,groupsToFetch:v})},up=n=>n.type==="skeletonRow"||n.type==="footer"||n.type==="group"&&n.isAutoGenerated||n.type==="pinnedRow"&&n.isAutoGenerated,UA=(n,o,i)=>{const s=n[o];if(s.type!=="group")return[];const l=[];for(let c=0;c{if(n.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const l=new Map;i.forEach(g=>{const v=Wb(g,o,"A row was provided without id when calling updateRows():");l.has(v)?l.set(v,P({},l.get(v),g)):l.set(v,g)});const c={type:"partial",actions:{insert:[...n.updates.actions.insert??[]],modify:[...n.updates.actions.modify??[]],remove:[...n.updates.actions.remove??[]]},idToActionLookup:P({},n.updates.idToActionLookup),groupKeys:s},d=P({},n.dataRowIdToModelLookup),f=P({},n.dataRowIdToIdLookup),p={insert:{},modify:{},remove:{}};l.forEach((g,v)=>{const w=c.idToActionLookup[v];if(g._action==="delete"){if(w==="remove"||!d[v])return;w!=null&&(p[w][v]=!0),c.actions.remove.push(v),delete d[v],delete f[v];return}const A=d[v];if(A){w==="remove"?(p.remove[v]=!0,c.actions.modify.push(v)):w==null&&c.actions.modify.push(v),d[v]=P({},A,g);return}w==="remove"?(p.remove[v]=!0,c.actions.insert.push(v)):w==null&&c.actions.insert.push(v),d[v]=g,f[v]=v});const m=Object.keys(p);for(let g=0;g0&&(c.actions[v]=c.actions[v].filter(A=>!w[A]))}return{dataRowIdToModelLookup:d,dataRowIdToIdLookup:f,updates:c,rowsBeforePartialUpdates:n.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:n.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:n.rowCountPropBeforePartialUpdates}};function Kse(n){var l,c;const o=Nf(n),i=((l=o==null?void 0:o.top)==null?void 0:l.reduce((d,f)=>(d+=n.current.unstable_getRowHeight(f.id),d),0))||0,s=((c=o==null?void 0:o.bottom)==null?void 0:c.reduce((d,f)=>(d+=n.current.unstable_getRowHeight(f.id),d),0))||0;return{top:i,bottom:s}}function fT(n){return`var(--DataGrid-overlayHeight, ${2*Gl(n.current.state).rowHeight}px)`}function gE(n,o,i){const s=[];return o.forEach(l=>{const c=Wb(l,i,"A row was provided without id when calling updateRows():"),d=n.current.getRowNode(c);if((d==null?void 0:d.type)==="pinnedRow"){const f=n.current.caches.pinnedRows,p=f.idLookup[c];p&&(f.idLookup[c]=P({},p,l))}else s.push(l)}),s}const Xse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],Jse=n=>{const{classes:o}=n;return Bt({root:["booleanCell"]},Tn,o)};function Zse(n){const{value:o}=n,i=Qe(n,Xse),s=vn(),l=ir(),c={classes:l.classes},d=Jse(c),f=x.useMemo(()=>o?l.slots.booleanCellTrueIcon:l.slots.booleanCellFalseIcon,[l.slots.booleanCellFalseIcon,l.slots.booleanCellTrueIcon,o]);return b.jsx(f,P({fontSize:"small",className:d.root,titleAccess:s.current.getLocaleText(o?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!o},i))}const ele=x.memo(Zse),tle=n=>n.field!=="__row_group_by_columns_group__"&&up(n.rowNode)?"":b.jsx(ele,P({},n)),rle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],nle=n=>{const{classes:o}=n;return Bt({root:["editBooleanCell"]},Tn,o)};function ole(n){var S;const{id:o,value:i,field:s,className:l,hasFocus:c,onValueChange:d}=n,f=Qe(n,rle),p=vn(),m=x.useRef(null),g=Fo(),[v,w]=x.useState(i),A=ir(),k={classes:A.classes},C=nle(k),M=x.useCallback(async I=>{const E=I.target.checked;d&&await d(I,E),w(E),await p.current.setEditCellValue({id:o,field:s,value:E},I)},[p,s,o,d]);return x.useEffect(()=>{w(i)},[i]),ko(()=>{c&&m.current.focus()},[c]),b.jsx("label",P({htmlFor:g,className:nt(C.root,l)},f,{children:b.jsx(A.slots.baseCheckbox,P({id:g,inputRef:m,checked:!!v,onChange:M,size:"small"},(S=A.slotProps)==null?void 0:S.baseCheckbox))}))}const ile=n=>b.jsx(ole,P({},n)),ale=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],sle=_e("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function lle(n){var j,B,D;const{item:o,applyValue:i,apiRef:s,focusElementRef:l,clearButton:c,tabIndex:d,label:f,variant:p="standard"}=n,m=Qe(n,ale),[g,v]=x.useState(o.value||""),w=ir(),A=Fo(),k=Fo(),C=((j=w.slotProps)==null?void 0:j.baseSelect)||{},M=C.native??!1,S=((B=w.slotProps)==null?void 0:B.baseSelectOption)||{},I=x.useCallback(R=>{const N=R.target.value;v(N),i(P({},o,{value:N}))},[i,o]);x.useEffect(()=>{v(o.value||"")},[o.value]);const E=f??s.current.getLocaleText("filterPanelInputLabel");return b.jsxs(sle,{children:[b.jsxs(w.slots.baseFormControl,{fullWidth:!0,children:[b.jsx(w.slots.baseInputLabel,P({},(D=w.slotProps)==null?void 0:D.baseInputLabel,{id:A,shrink:!0,variant:p,children:E})),b.jsxs(w.slots.baseSelect,P({labelId:A,id:k,label:E,value:g,onChange:I,variant:p,notched:p==="outlined"?!0:void 0,native:M,displayEmpty:!0,inputProps:{ref:l,tabIndex:d}},m,C,{children:[b.jsx(w.slots.baseSelectOption,P({},S,{native:M,value:"",children:s.current.getLocaleText("filterValueAny")})),b.jsx(w.slots.baseSelectOption,P({},S,{native:M,value:"true",children:s.current.getLocaleText("filterValueTrue")})),b.jsx(w.slots.baseSelectOption,P({},S,{native:M,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const cle=()=>[{value:"is",getApplyFilterFn:n=>{if(!n.value)return null;const o=String(n.value)==="true";return i=>!!i===o},InputComponent:lle}],ule=(n,o,i,s)=>n?s.current.getLocaleText("booleanCellTrueLabel"):s.current.getLocaleText("booleanCellFalseLabel"),dle=n=>{switch(n.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},pT=P({},rc,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:tle,renderEditCell:ile,sortComparator:eT,valueFormatter:ule,filterOperators:cle(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:n=>dle(n)}),fle=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],ple=n=>{const{classes:o}=n;return Bt({root:["checkboxInput"]},Tn,o)},hle=x.forwardRef(function(o,i){var B;const{field:s,id:l,value:c,rowNode:d,hasFocus:f,tabIndex:p}=o,m=Qe(o,fle),g=vn(),v=ir(),w={classes:v.classes},A=ple(w),k=x.useRef(null),C=x.useRef(null),M=Xn(k,i),S=D=>{const R={value:D.target.checked,id:l};g.current.publishEvent("rowSelectionCheckboxChange",R,D)};x.useLayoutEffect(()=>{if(p===0){const D=g.current.getCellElement(l,s);D&&(D.tabIndex=-1)}},[g,p,l,s]),x.useEffect(()=>{var D;if(f){const R=(D=k.current)==null?void 0:D.querySelector("input");R==null||R.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[f]);const I=x.useCallback(D=>{D.key===" "&&D.stopPropagation()},[]);if(d.type==="footer"||d.type==="pinnedRow")return null;const E=g.current.isRowSelectable(l),j=g.current.getLocaleText(c?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return b.jsx(v.slots.baseCheckbox,P({ref:M,tabIndex:p,checked:c,onChange:S,className:A.root,inputProps:{"aria-label":j},onKeyDown:I,disabled:!E,touchRippleRef:C},(B=v.slotProps)==null?void 0:B.baseCheckbox,m))}),mle=hle;function GA(n){return n.signature===ec.DataGrid?n.checkboxSelection&&n.disableMultipleRowSelection!==!0:!n.disableMultipleRowSelection}const qb=n=>n.focus,i1=Dr(qb,n=>n.cell),gle=Dr(qb,n=>n.columnHeader);Dr(qb,n=>n.columnHeaderFilter);const h3=Dr(qb,n=>n.columnGroupHeader),_b=n=>n.tabIndex,VA=Dr(_b,n=>n.cell),hT=Dr(_b,n=>n.columnHeader);Dr(_b,n=>n.columnHeaderFilter);const vle=Dr(_b,n=>n.columnGroupHeader),a1=n=>n.rowSelection,ble=Dr(a1,n=>n.length),wle=Qo(a1,ld,(n,o)=>new Map(n.map(i=>[i,o[i]]))),m3=Qo(a1,n=>n.reduce((o,i)=>(o[i]=i,o),{})),mT=n=>n.sorting,QA=Dr(mT,n=>n.sortedRows),WA=Qo(QA,ld,p1,(n,o,i)=>n.reduce((s,l)=>{const c=o[l];c&&s.push({id:l,model:c});const d=i[l];return d&&up(d)&&s.push({id:l,model:{[V2]:l}}),s},[])),s1=Dr(mT,n=>n.sortModel),xle=Qo(s1,n=>n.reduce((i,s,l)=>(i[s.field]={sortDirection:s.sort,sortIndex:n.length>1?l+1:void 0},i),{})),qA=n=>n.filter,Ka=Dr(qA,n=>n.filterModel);Dr(Ka,n=>n.quickFilterValues);const yle=n=>n.visibleRowsLookup,gT=Dr(qA,n=>n.filteredRowsLookup);Dr(qA,n=>n.filteredDescendantCountLookup);const $d=Qo(yle,WA,(n,o)=>o.filter(i=>n[i.id]!==!1)),ph=Qo($d,n=>n.map(o=>o.id)),vT=Qo(gT,WA,(n,o)=>o.filter(i=>n[i.id]!==!1)),Ale=Qo(vT,n=>n.map(o=>o.id)),bT=Qo($d,p1,Qb,(n,o,i)=>i<2?n:n.filter(s=>{var l;return((l=o[s.id])==null?void 0:l.depth)===0})),wT=Dr($d,n=>n.length),_A=Dr(bT,n=>n.length),Cle=Dr(vT,n=>n.length);Dr(Cle,_A,(n,o)=>n-o);const kle=Qo(Ka,Dd,(n,o)=>{var i;return(i=n.items)==null?void 0:i.filter(s=>{var d,f;if(!s.field)return!1;const l=o[s.field];if(!(l!=null&&l.filterOperators)||((d=l==null?void 0:l.filterOperators)==null?void 0:d.length)===0)return!1;const c=l.filterOperators.find(p=>p.value===s.operator);return c?!c.InputComponent||s.value!=null&&((f=s.value)==null?void 0:f.toString())!=="":!1})}),Sle=Qo(kle,n=>n.reduce((i,s)=>(i[s.field]?i[s.field].push(s):i[s.field]=[s],i),{}));function Zr(n,o,i){const s=x.useRef(!0);x.useEffect(()=>{s.current=!1,n.current.register(i,o)},[n,i,o]),s.current&&n.current.register(i,o)}function Ha(n,o){const i=x.useRef(null);if(i.current)return i.current;const s=n.current.getLogger(o);return i.current=s,s}const xT=(n,o,i,s,l)=>{const c=Ha(n,"useNativeEventListener"),[d,f]=x.useState(!1),p=x.useRef(s),m=rT(o)?o():(o==null?void 0:o.current)??null,g=x.useCallback(v=>p.current&&p.current(v),[]);x.useEffect(()=>{p.current=s},[s]),x.useEffect(()=>{if(m&&i&&!d){c.debug(`Binding native ${i} event`),m.addEventListener(i,g,l),f(!0);const v=()=>{c.debug(`Clearing native ${i} event`),m.removeEventListener(i,g,l)};n.current.subscribeEvent("unmount",v)}},[m,g,i,d,c,l,n])},Dm=n=>{const o=x.useRef(!0);o.current&&(o.current=!1,n())},Ile=()=>{},Ele=(n,o)=>{const i=x.useRef(!1);ko(()=>i.current||!n?Ile:(i.current=!0,o()),[i.current||n])},Mle=100,Ple=n=>n?0:100,yT=(n,o,i)=>o>0&&n>0?Math.ceil(n/o):n===-1?i+2:0,AT=n=>({page:0,pageSize:n?0:100}),jle=(n,o=0)=>o===0?n:Math.max(Math.min(n,o-1),0),CT=(n,o)=>{if(o===ec.DataGrid&&n>Mle)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`))},Yb=n=>n.pagination,Ws=Dr(Yb,n=>n.paginationModel),E2=Dr(Yb,n=>n.rowCount),C0=Dr(Yb,n=>n.meta),Ole=Dr(Ws,n=>n.page),Rle=Dr(Ws,n=>n.pageSize),kT=Dr(Ws,E2,(n,o)=>yT(o,n.pageSize,n.page)),YA=Qo(Ws,p1,Qb,$d,bT,(n,o,i,s,l)=>{var A;const c=l.length,d=Math.min(n.pageSize*n.page,c-1),f=Math.min(d+n.pageSize-1,c-1);if(d===-1||f===-1)return null;if(i<2)return{firstRowIndex:d,lastRowIndex:f};const p=l[d],m=f-d+1,g=s.findIndex(k=>k.id===p.id);let v=g,w=0;for(;v0)&&(v+=1),C===0&&(w+=1))}return{firstRowIndex:g,lastRowIndex:v-1}}),Ble=Qo($d,YA,(n,o)=>o?n.slice(o.firstRowIndex,o.lastRowIndex+1):[]),ST=Qo(ph,YA,(n,o)=>o?n.slice(o.firstRowIndex,o.lastRowIndex+1):[]),Tle=["field","colDef"],Fle=n=>{const{classes:o}=n;return Bt({root:["checkboxInput"]},Tn,o)},Dle=x.forwardRef(function(o,i){var R;const s=Qe(o,Tle),[,l]=x.useState(!1),c=vn(),d=ir(),f={classes:d.classes},p=Fle(f),m=$t(c,hT),g=$t(c,a1),v=$t(c,ph),w=$t(c,ST),A=x.useMemo(()=>typeof d.isRowSelectable!="function"?g:g.filter(N=>c.current.getRow(N)?d.isRowSelectable(c.current.getRowParams(N)):!1),[c,d.isRowSelectable,g]),k=x.useMemo(()=>(!d.pagination||!d.checkboxSelectionVisibleOnly?v:w).reduce((U,L)=>(U[L]=!0,U),{}),[d.pagination,d.checkboxSelectionVisibleOnly,w,v]),C=x.useMemo(()=>A.filter(N=>k[N]).length,[A,k]),M=C>0&&C0,I=N=>{const U={value:N.target.checked};c.current.publishEvent("headerSelectionCheckboxChange",U)},E=m!==null&&m.field===o.field?0:-1;x.useLayoutEffect(()=>{const N=c.current.getColumnHeaderElement(o.field);E===0&&N&&(N.tabIndex=-1)},[E,c,o.field]);const j=x.useCallback(N=>{N.key===" "&&c.current.publishEvent("headerSelectionCheckboxChange",{value:!S})},[c,S]),B=x.useCallback(()=>{l(N=>!N)},[]);x.useEffect(()=>c.current.subscribeEvent("rowSelectionChange",B),[c,B]);const D=c.current.getLocaleText(S?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return b.jsx(d.slots.baseCheckbox,P({ref:i,indeterminate:M,checked:S,onChange:I,className:p.root,inputProps:{"aria-label":D},tabIndex:E,onKeyDown:j,disabled:!GA(d)},(R=d.slotProps)==null?void 0:R.baseCheckbox,s))}),Qu="__check__",Rp=P({},pT,{type:"custom",field:Qu,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(n,o,i,s)=>{const l=m3(s),c=s.current.getRowId(o);return l[c]!==void 0},renderHeader:n=>b.jsx(Dle,P({},n)),renderCell:n=>b.jsx(mle,P({},n))}),Nle=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function vE(n,o){if(n==null)return"";const i=new Date(n);return Number.isNaN(i.getTime())?"":o==="date"?i.toISOString().substring(0,10):o==="datetime-local"?(i.setMinutes(i.getMinutes()-i.getTimezoneOffset()),i.toISOString().substring(0,19)):i.toISOString().substring(0,10)}function Jf(n){var E;const{item:o,applyValue:i,type:s,apiRef:l,focusElementRef:c,InputProps:d,clearButton:f,tabIndex:p,disabled:m}=n,g=Qe(n,Nle),v=Fl(),[w,A]=x.useState(()=>vE(o.value,s)),[k,C]=x.useState(!1),M=Fo(),S=ir(),I=x.useCallback(j=>{v.clear();const B=j.target.value;A(B),C(!0),v.start(S.filterDebounceMs,()=>{const D=new Date(B);i(P({},o,{value:Number.isNaN(D.getTime())?void 0:D})),C(!1)})},[i,o,S.filterDebounceMs,v]);return x.useEffect(()=>{const j=vE(o.value,s);A(j)},[o.value,s]),b.jsx(S.slots.baseTextField,P({fullWidth:!0,id:M,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:w,onChange:I,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:c,InputProps:P({},k||f?{endAdornment:k?b.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):f}:{},{disabled:m},d,{inputProps:P({max:s==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:p},d==null?void 0:d.inputProps)})},g,(E=S.slotProps)==null?void 0:E.baseTextField))}function Zf(n,o,i,s){if(!n.value)return null;const l=new Date(n.value);i?l.setSeconds(0,0):(l.setMinutes(l.getMinutes()+l.getTimezoneOffset()),l.setHours(0,0,0,0));const c=l.getTime();return d=>{if(!d)return!1;if(s)return o(d.getTime(),c);const f=new Date(d);return i?f.setSeconds(0,0):f.setHours(0,0,0,0),o(f.getTime(),c)}}const IT=n=>[{value:"is",getApplyFilterFn:o=>Zf(o,(i,s)=>i===s,n),InputComponent:Jf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"not",getApplyFilterFn:o=>Zf(o,(i,s)=>i!==s,n),InputComponent:Jf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"after",getApplyFilterFn:o=>Zf(o,(i,s)=>i>s,n),InputComponent:Jf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:o=>Zf(o,(i,s)=>i>=s,n),InputComponent:Jf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"before",getApplyFilterFn:o=>Zf(o,(i,s)=>iZf(o,(i,s)=>i<=s,n),InputComponent:Jf,InputComponentProps:{type:n?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>o=>o==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>o=>o!=null,requiresFilterValue:!1}],$le=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Lle=_e(jp)({fontSize:"inherit"}),zle=n=>{const{classes:o}=n;return Bt({root:["editInputCell"]},Tn,o)};function Hle(n){const{id:o,value:i,field:s,colDef:l,hasFocus:c,inputProps:d,onValueChange:f}=n,p=Qe(n,$le),m=l.type==="dateTime",g=vn(),v=x.useRef(),w=x.useMemo(()=>{let j;i==null?j=null:i instanceof Date?j=i:j=new Date((i??"").toString());let B;return j==null||Number.isNaN(j.getTime())?B="":B=new Date(j.getTime()-j.getTimezoneOffset()*60*1e3).toISOString().substr(0,m?16:10),{parsed:j,formatted:B}},[i,m]),[A,k]=x.useState(w),M={classes:ir().classes},S=zle(M),I=x.useCallback(j=>{if(j==="")return null;const[B,D]=j.split("T"),[R,N,U]=B.split("-"),L=new Date;if(L.setFullYear(Number(R),Number(N)-1,Number(U)),L.setHours(0,0,0,0),D){const[_,V]=D.split(":");L.setHours(Number(_),Number(V),0,0)}return L},[]),E=x.useCallback(async j=>{const B=j.target.value,D=I(B);f&&await f(j,D),k({parsed:D,formatted:B}),g.current.setEditCellValue({id:o,field:s,value:D},j)},[g,s,o,f,I]);return x.useEffect(()=>{k(j=>{var B,D;return w.parsed!==j.parsed&&((B=w.parsed)==null?void 0:B.getTime())!==((D=j.parsed)==null?void 0:D.getTime())?w:j})},[w]),ko(()=>{c&&v.current.focus()},[c]),b.jsx(Lle,P({inputRef:v,fullWidth:!0,className:S.root,type:m?"datetime-local":"date",inputProps:P({max:m?"9999-12-31T23:59":"9999-12-31"},d),value:A.formatted,onChange:E},p))}const ET=n=>b.jsx(Hle,P({},n));function MT({value:n,columnType:o,rowId:i,field:s}){if(!(n instanceof Date))throw new Error([`MUI X: \`${o}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${i}, field: "${s}".`].join(` +`))}const Ule=(n,o,i,s)=>{if(!n)return"";const l=s.current.getRowId(o);return MT({value:n,columnType:"date",rowId:l,field:i.field}),n.toLocaleDateString()},Gle=(n,o,i,s)=>{if(!n)return"";const l=s.current.getRowId(o);return MT({value:n,columnType:"dateTime",rowId:l,field:i.field}),n.toLocaleString()},Vle=P({},rc,{type:"date",sortComparator:tT,valueFormatter:Ule,filterOperators:IT(),renderEditCell:ET,pastedValueParser:n=>new Date(n)}),Qle=P({},rc,{type:"dateTime",sortComparator:tT,valueFormatter:Gle,filterOperators:IT(!0),renderEditCell:ET,pastedValueParser:n=>new Date(n)}),Zu=n=>n==null?null:Number(n),Wle=n=>n==null||Number.isNaN(n)||n===""?null:o=>Zu(o)===Zu(n),qle=()=>[{value:"=",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>Zu(o)===n.value,InputComponent:Sc,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>Zu(o)!==n.value,InputComponent:Sc,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)>n.value,InputComponent:Sc,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)>=n.value,InputComponent:Sc,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:n=>n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)n.value==null||Number.isNaN(n.value)?null:o=>o==null?!1:Zu(o)<=n.value,InputComponent:Sc,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>n=>n==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>n=>n!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:n=>!Array.isArray(n.value)||n.value.length===0?null:o=>o!=null&&n.value.includes(Number(o)),InputComponent:oT,InputComponentProps:{type:"number"}}],_le=P({},rc,{type:"number",align:"right",headerAlign:"right",sortComparator:eT,valueParser:n=>n===""?null:Number(n),valueFormatter:n=>xse(n)?n.toLocaleString():n||"",filterOperators:qle(),getApplyQuickFilterFn:Wle}),g3=n=>n==="Escape",PT=n=>n==="Tab";function jT(n){return n.key.length===1&&!n.ctrlKey&&!n.metaKey}const v3=n=>n.indexOf("Arrow")===0||n.indexOf("Page")===0||n===" "||n==="Home"||n==="End",Yle=n=>!!n.key,Kle=n=>PT(n)||g3(n);function OT(n){return!!((n.ctrlKey||n.metaKey)&&n.key.toLowerCase()==="v"&&!n.shiftKey&&!n.altKey)}function dp(n){return(n==null?void 0:n.type)==="singleSelect"}function Cf(n,o){if(n)return typeof n.valueOptions=="function"?n.valueOptions(P({field:n.field},o)):n.valueOptions}function b3(n,o,i){if(o===void 0)return;const s=o.find(l=>{const c=i(l);return String(c)===String(n)});return i(s)}const Xle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],Jle=["MenuProps"];function Zle(n){return!!n.key}function e1e(n){var V,$;const o=ir(),{id:i,value:s,field:l,row:c,colDef:d,hasFocus:f,error:p,onValueChange:m,initialOpen:g=o.editMode===Gc.Cell}=n,v=Qe(n,Xle),w=vn(),A=x.useRef(),k=x.useRef(),[C,M]=x.useState(g),I=(((V=o.slotProps)==null?void 0:V.baseSelect)||{}).native??!1,E=(($=o.slotProps)==null?void 0:$.baseSelect)||{},{MenuProps:j}=E,B=Qe(E,Jle);if(ko(()=>{var z;f&&((z=k.current)==null||z.focus())},[f]),!dp(d))return null;const D=Cf(d,{id:i,row:c});if(!D)return null;const R=d.getOptionValue,N=d.getOptionLabel,U=async z=>{if(!dp(d)||!D)return;M(!1);const Q=z.target,G=b3(Q.value,D,R);m&&await m(z,G),await w.current.setEditCellValue({id:i,field:l,value:G},z)},L=(z,Q)=>{if(o.editMode===Gc.Row){M(!1);return}if(Q==="backdropClick"||g3(z.key)){const G=w.current.getCellParams(i,l);w.current.publishEvent("cellEditStop",P({},G,{reason:g3(z.key)?q1.escapeKeyDown:q1.cellFocusOut}))}},_=z=>{Zle(z)&&z.key==="Enter"||M(!0)};return!D||!d?null:b.jsx(o.slots.baseSelect,P({ref:A,inputRef:k,value:s,onChange:U,open:C,onOpen:_,MenuProps:P({onClose:L},j),error:p,native:I,fullWidth:!0},v,B,{children:D.map(z=>{var G;const Q=R(z);return x.createElement(o.slots.baseSelectOption,P({},((G=o.slotProps)==null?void 0:G.baseSelectOption)||{},{native:I,key:Q,value:Q}),N(z))})}))}const t1e=n=>b.jsx(e1e,P({},n)),r1e=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],n1e=({column:n,OptionComponent:o,getOptionLabel:i,getOptionValue:s,isSelectNative:l,baseSelectOptionProps:c})=>["",...Cf(n)||[]].map(f=>{const p=s(f);let m=i(f);return m===""&&(m=" "),x.createElement(o,P({},c,{native:l,key:p,value:p}),m)}),o1e=_e("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function bE(n){var R,N,U,L,_;const{item:o,applyValue:i,type:s,apiRef:l,focusElementRef:c,placeholder:d,tabIndex:f,label:p,variant:m="standard",clearButton:g}=n,v=Qe(n,r1e),w=o.value??"",A=Fo(),k=Fo(),C=ir(),M=((N=(R=C.slotProps)==null?void 0:R.baseSelect)==null?void 0:N.native)??!1;let S=null;if(o.field){const V=l.current.getColumn(o.field);dp(V)&&(S=V)}const I=S==null?void 0:S.getOptionValue,E=S==null?void 0:S.getOptionLabel,j=x.useMemo(()=>Cf(S),[S]),B=x.useCallback(V=>{let $=V.target.value;$=b3($,j,I),i(P({},o,{value:$}))},[j,I,i,o]);if(!dp(S))return null;const D=p??l.current.getLocaleText("filterPanelInputLabel");return b.jsxs(o1e,{children:[b.jsxs(C.slots.baseFormControl,{fullWidth:!0,children:[b.jsx(C.slots.baseInputLabel,P({},(U=C.slotProps)==null?void 0:U.baseInputLabel,{id:k,htmlFor:A,shrink:!0,variant:m,children:D})),b.jsx(C.slots.baseSelect,P({id:A,label:D,labelId:k,value:w,onChange:B,variant:m,type:s||"text",inputProps:{tabIndex:f,ref:c,placeholder:d??l.current.getLocaleText("filterPanelInputPlaceholder")},native:M,notched:m==="outlined"?!0:void 0},v,(L=C.slotProps)==null?void 0:L.baseSelect,{children:n1e({column:S,OptionComponent:C.slots.baseSelectOption,getOptionLabel:E,getOptionValue:I,isSelectNative:M,baseSelectOptionProps:(_=C.slotProps)==null?void 0:_.baseSelectOption})}))]}),g]})}const i1e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],a1e=["key"],s1e=iB();function l1e(n){const{item:o,applyValue:i,apiRef:s,focusElementRef:l,color:c,error:d,helperText:f,size:p,variant:m="standard"}=n,g=Qe(n,i1e),v={color:c,error:d,helperText:f,size:p,variant:m},w=Fo(),A=ir();let k=null;if(o.field){const B=s.current.getColumn(o.field);dp(B)&&(k=B)}const C=k==null?void 0:k.getOptionValue,M=k==null?void 0:k.getOptionLabel,S=x.useCallback((B,D)=>C(B)===C(D),[C]),I=x.useMemo(()=>Cf(k)||[],[k]),E=x.useMemo(()=>Array.isArray(o.value)?o.value.reduce((B,D)=>{const R=I.find(N=>C(N)===D);return R!=null&&B.push(R),B},[]):[],[C,o.value,I]),j=x.useCallback((B,D)=>{i(P({},o,{value:D.map(C)}))},[i,o,C]);return b.jsx(lp,P({multiple:!0,options:I,isOptionEqualToValue:S,filterOptions:s1e,id:w,value:E,onChange:j,getOptionLabel:M,renderTags:(B,D)=>B.map((R,N)=>{const U=D({index:N}),{key:L}=U,_=Qe(U,a1e);return b.jsx(A.slots.baseChip,P({variant:"outlined",size:"small",label:M(R)},_),L)}),renderInput:B=>{var D;return b.jsx(A.slots.baseTextField,P({},B,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},B.InputLabelProps,{shrink:!0}),inputRef:l,type:"singleSelect"},v,(D=A.slotProps)==null?void 0:D.baseTextField))}},g))}const e2=n=>n==null||!zA(n)?n:n.value,c1e=()=>[{value:"is",getApplyFilterFn:n=>n.value==null||n.value===""?null:o=>e2(o)===e2(n.value),InputComponent:bE},{value:"not",getApplyFilterFn:n=>n.value==null||n.value===""?null:o=>e2(o)!==e2(n.value),InputComponent:bE},{value:"isAnyOf",getApplyFilterFn:n=>{if(!Array.isArray(n.value)||n.value.length===0)return null;const o=n.value.map(e2);return i=>o.includes(e2(i))},InputComponent:l1e}],u1e=n=>typeof n[0]=="object",d1e=n=>zA(n)?n.value:n,f1e=n=>zA(n)?n.label:String(n),p1e=P({},rc,{type:"singleSelect",getOptionLabel:f1e,getOptionValue:d1e,valueFormatter(n,o,i,s){const l=s.current.getRowId(o);if(!dp(i))return"";const c=Cf(i,{id:l,row:o});if(n==null)return"";if(!c)return n;if(!u1e(c))return i.getOptionLabel(n);const d=c.find(f=>i.getOptionValue(f)===n);return d?i.getOptionLabel(d):""},renderEditCell:t1e,filterOperators:c1e(),pastedValueParser:(n,o,i)=>{const s=i,l=Cf(s)||[],c=s.getOptionValue;if(l.find(f=>c(f)===n))return n}}),h1e="string",m1e=()=>({string:rc,number:_le,date:Vle,dateTime:Qle,boolean:pT,singleSelect:p1e,[Vb]:Hse,custom:rc}),KA=n=>n.headerFiltering,g1e=Dr(KA,n=>(n==null?void 0:n.enabled)??!1),v1e=Dr(KA,n=>n.editing),b1e=Dr(KA,n=>n.menuOpen),Kb=n=>n.columnGrouping,RT=Qo(Kb,n=>(n==null?void 0:n.unwrappedGroupingModel)??{}),BT=Qo(Kb,n=>(n==null?void 0:n.lookup)??{}),w1e=Qo(Kb,n=>(n==null?void 0:n.headerStructure)??[]),Nm=Dr(Kb,n=>(n==null?void 0:n.maxDepth)??0),TT=["maxWidth","minWidth","width","flex"],lx=m1e();function x1e({initialFreeSpace:n,totalFlexUnits:o,flexColumns:i}){const s=new Set(i.map(d=>d.field)),l={all:{},frozenFields:[],freeze:d=>{const f=l.all[d];f&&f.frozen!==!0&&(l.all[d].frozen=!0,l.frozenFields.push(d))}};function c(){if(l.frozenFields.length===s.size)return;const d={min:{},max:{}};let f=n,p=o,m=0;l.frozenFields.forEach(g=>{f-=l.all[g].computedWidth,p-=l.all[g].flex});for(let g=0;gv.maxWidth&&(m+=v.maxWidth-A,A=v.maxWidth,d.max[v.field]=!0),l.all[v.field]={frozen:!1,computedWidth:A,flex:v.flex}}m<0?Object.keys(d.max).forEach(g=>{l.freeze(g)}):m>0?Object.keys(d.min).forEach(g=>{l.freeze(g)}):i.forEach(({field:g})=>{l.freeze(g)}),c()}return c(),l.all}const r6=(n,o)=>{const i={};let s=0,l=0;const c=[];n.orderedFields.forEach(p=>{let m=n.lookup[p],g=0,v=!1;n.columnVisibilityModel[p]!==!1&&(m.flex&&m.flex>0?(s+=m.flex,v=!0):g=Mu(m.width||rc.width,m.minWidth||rc.minWidth,m.maxWidth||rc.maxWidth),l+=g),m.computedWidth!==g&&(m=P({},m,{computedWidth:g})),v&&c.push(m),i[p]=m});const d=o===void 0?0:o.viewportOuterSize.width-(o.hasScrollY?o.scrollbarSize:0),f=Math.max(d-l,0);if(s>0&&d>0){const p=x1e({initialFreeSpace:f,totalFlexUnits:s,flexColumns:c});Object.keys(p).forEach(m=>{i[m].computedWidth=p[m].computedWidth})}return P({},n,{lookup:i})},y1e=(n,o)=>{if(!o)return n;const{orderedFields:i=[],dimensions:s={}}=o,l=Object.keys(s);if(l.length===0&&i.length===0)return n;const c={},d=[];for(let g=0;g!c[g])],p=P({},n.lookup);for(let g=0;g{w[A]=k===-1?1/0:k}),p[v]=w}return P({},n,{orderedFields:f,lookup:p})};function wE(n){let o=lx[h1e];return n&&lx[n]&&(o=lx[n]),o}const c2=({apiRef:n,columnsToUpsert:o,initialState:i,columnVisibilityModel:s=w1(n),keepOnlyColumnsToUpsert:l=!1})=>{var g,v;const c=!n.current.state.columns;let d;if(c)d={orderedFields:[],lookup:{},columnVisibilityModel:s};else{const w=Lc(n.current.state);d={orderedFields:l?[]:[...w.orderedFields],lookup:P({},w.lookup),columnVisibilityModel:s}}let f={};l&&!c&&(f=Object.keys(d.lookup).reduce((w,A)=>P({},w,{[A]:!1}),{})),o.forEach(w=>{const{field:A}=w;f[A]=!0;let k=d.lookup[A];k==null?(k=P({},wE(w.type),{field:A,hasBeenResized:!1}),d.orderedFields.push(A)):l&&d.orderedFields.push(A),k&&k.type!==w.type&&(k=P({},wE(w.type),{field:A}));let C=k.hasBeenResized;TT.forEach(M=>{w[M]!==void 0&&(C=!0,w[M]===-1&&(w[M]=1/0))}),d.lookup[A]=P({},k,w,{hasBeenResized:C})}),l&&!c&&Object.keys(d.lookup).forEach(w=>{f[w]||delete d.lookup[w]});const p=n.current.unstable_applyPipeProcessors("hydrateColumns",d),m=y1e(p,i);return r6(m,((v=(g=n.current).getRootDimensions)==null?void 0:v.call(g))??void 0)};function A1e({firstColumnToRender:n,apiRef:o,firstRowToRender:i,lastRowToRender:s,visibleRows:l}){let c=n;for(let d=i;d{const{scrollDirection:o,classes:i}=n,s={root:["scrollArea",`scrollArea--${o}`]};return Bt(s,Tn,i)},S1e=zr("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(n,o)=>[{[`&.${we["scrollArea--left"]}`]:o["scrollArea--left"]},{[`&.${we["scrollArea--right"]}`]:o["scrollArea--right"]},o.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${we["scrollArea--left"]}`]:{left:0},[`&.${we["scrollArea--right"]}`]:{right:0}}));function I1e(n){const{scrollDirection:o}=n,i=x.useRef(null),s=vn(),l=Fl(),c=$t(s,Rm),d=$t(s,$A),f=$t(s,Gl),p=x.useRef({left:0,top:0}),m=()=>{if(o==="left")return p.current.left>0;if(o==="right"){const N=d-f.viewportInnerSize.width;return p.current.left{p.current=N,A(m)},B=ln(N=>{let U;if(N.preventDefault(),o==="left")U=N.clientX-i.current.getBoundingClientRect().right;else if(o==="right")U=Math.max(1,N.clientX-i.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");U=(U-xE)*C1e+xE,l.start(0,()=>{s.current.scroll({left:p.current.left+U,top:p.current.top})})}),D=ln(()=>{v(!0)}),R=ln(()=>{v(!1)});return Jt(s,"scrollPositionChange",j),Jt(s,"columnHeaderDragStart",D),Jt(s,"columnHeaderDragEnd",R),!g||!w?null:b.jsx(S1e,{ref:i,className:nt(M.root),ownerState:C,onDragOver:B,style:E})}const yE=Ld(I1e),E1e=()=>{};function M1e(n,o,i){const s=x.useRef(null);s.current=o,ko(()=>{if(typeof ResizeObserver>"u")return E1e;const l=n.current,c=new ResizeObserver(d=>{s.current(d)});return l&&c.observe(l),()=>{c.disconnect()}},[n,i])}const FT=x.createContext(void 0);function Ru(){const n=x.useContext(FT);if(n===void 0)throw new Error(["MUI X: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return n}const Xh=(n,o)=>{let i,s;return o.pagination&&o.paginationMode==="client"?(s=YA(n),i=Ble(n)):(i=$d(n),i.length===0?s=null:s={firstRowIndex:0,lastRowIndex:i.length-1}),{rows:i,range:s}},$f=(n,o)=>{const i=Xh(n,o);return x.useMemo(()=>({rows:i.rows,range:i.range}),[i.rows,i.range])},Bp=n=>n.rowsMeta,JA=n=>n.virtualization,P1e=Dr(JA,n=>n.enabled),ZA=Dr(JA,n=>n.enabledForColumns),e8=Dr(JA,n=>n.renderContext),j1e=Qo(n=>n.virtualization.renderContext.firstColumnIndex,n=>n.virtualization.renderContext.lastColumnIndex,(n,o)=>({firstColumnIndex:n,lastColumnIndex:o})),DT={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},O1e=(n,o)=>{const i={enabled:!o.disableVirtualization,enabledForColumns:!0,renderContext:DT};return P({},n,{virtualization:i})};function R1e(n,o){const i=c=>{n.current.setState(d=>P({},d,{virtualization:P({},d.virtualization,{enabled:c})}))};Zr(n,{unstable_setVirtualization:i,unstable_setColumnVirtualization:c=>{n.current.setState(d=>P({},d,{virtualization:P({},d.virtualization,{enabledForColumns:c})}))}},"public"),x.useEffect(()=>{i(!o.disableVirtualization)},[o.disableVirtualization])}const cx=50;var ia=function(n){return n[n.NONE=0]="NONE",n[n.UP=1]="UP",n[n.DOWN=2]="DOWN",n[n.LEFT=3]="LEFT",n[n.RIGHT=4]="RIGHT",n}(ia||{});const AE={top:0,left:0},B1e=Object.freeze(new Map),T1e=(n,o,i,s,l)=>({direction:ia.NONE,buffer:$T(n,ia.NONE,o,i,s,l)});let n6=!1;try{typeof window<"u"&&(n6=/jsdom/.test(window.navigator.userAgent))}catch{}const F1e=()=>{const n=Ru(),o=ir(),i=$t(n,La),s=$t(n,P1e)&&!n6,l=$t(n,ZA)&&!n6,c=$t(n,Gl),d=c.viewportOuterSize,f=$t(n,Nf),p=$t(n,Tm),m=f.bottom.length>0,[g,v]=x.useState(B1e),w=ka(),A=$t(n,i1),k=$t(n,VA),C=$t(n,Bp),M=$t(n,m3),S=$f(n,o),I=n.current.rootElementRef,E=n.current.mainElementRef,j=n.current.virtualScrollerRef,B=x.useRef(null),D=x.useRef(null),R=c.contentSize.height,N=c.columnsTotalWidth,U=$t(n,sse);M1e(E,()=>n.current.resize());const L=x.useRef(AE),_=x.useRef(AE),V=x.useRef(DT),$=$t(n,e8),z=Fl(),Q=x.useRef(void 0),G=Mf(()=>T1e(w.direction,o.rowBufferPx,o.columnBufferPx,c.rowHeight*15,cx*6)).current,F={rowIndex:x.useMemo(()=>A?S.rows.findIndex(ve=>ve.id===A.id):-1,[A,S.rows]),columnIndex:x.useMemo(()=>A?i.findIndex(ve=>ve.field===A.field):-1,[A,i])},q=x.useCallback(ve=>{if($1e(ve,n.current.state.virtualization.renderContext))return;const be=ve.firstRowIndex!==V.current.firstRowIndex||ve.lastRowIndex!==V.current.lastRowIndex;n.current.setState(ke=>P({},ke,{virtualization:P({},ke.virtualization,{renderContext:ve})})),c.isReady&&be&&(V.current=ve,n.current.publishEvent("renderedRowsIntervalChange",ve)),_.current=L.current},[n,c.isReady]),W=()=>{const ve={top:j.current.scrollTop,left:j.current.scrollLeft},be=ve.left-L.current.left,ke=ve.top-L.current.top,ze=be!==0||ke!==0;L.current=ve;const Ge=ze?L1e(be,ke):ia.NONE,Ve=Math.abs(L.current.top-_.current.top),at=Math.abs(L.current.left-_.current.left),We=Ve>=c.rowHeight||at>=cx,ue=G.direction!==Ge;if(!(We||ue))return $;if(ue)switch(Ge){case ia.NONE:case ia.LEFT:case ia.RIGHT:Q.current=void 0;break;default:Q.current=$;break}G.direction=Ge,G.buffer=$T(w.direction,Ge,o.rowBufferPx,o.columnBufferPx,c.rowHeight*15,cx*6);const $e=ux(n,o,s,l),bt=dx($e,L.current,G);return hm.flushSync(()=>{q(bt)}),z.start(1e3,W),bt},X=()=>{const ve=ux(n,o,s,l),be=dx(ve,L.current,G);q(be)},te=ln(ve=>{const{scrollTop:be,scrollLeft:ke}=ve.currentTarget;if(be<0||w.direction==="ltr"&&ke<0||w.direction==="rtl"&&ke>0)return;const ze=W();n.current.publishEvent("scrollPositionChange",{top:be,left:ke,renderContext:ze})}),se=ln(ve=>{n.current.publishEvent("virtualScrollerWheel",{},ve)}),de=ln(ve=>{n.current.publishEvent("virtualScrollerTouchMove",{},ve)}),ee=(ve={})=>{var st;if(!ve.rows&&!S.range)return[];const be=ve.renderContext??$,ke=!m&&ve.position===void 0||m&&ve.position==="bottom",ze=ve.position!==void 0;let Ge;switch(ve.position){case"top":Ge=0;break;case"bottom":Ge=f.top.length+S.rows.length;break;case void 0:Ge=f.top.length;break}const Ve=ve.rows??S.rows,at=be.firstRowIndex,We=Math.min(be.lastRowIndex,Ve.length),ue=ve.rows?uE(0,ve.rows.length):uE(at,We);let Le=-1;!ze&&F.rowIndex!==-1&&(F.rowIndex=We&&(Le=F.rowIndex,ue.push(Le)));const $e=[],bt=(st=o.slotProps)==null?void 0:st.row,ot=Nd(n);return ue.forEach(Ze=>{var re,ie,le;const{id:dt,model:Xe}=Ve[Ze];if(U){const ge=p.left.length,Pe=i.length-p.right.length;n.current.calculateColSpan({rowId:dt,minFirstColumn:ge,maxLastColumn:Pe,columns:i}),p.left.length>0&&n.current.calculateColSpan({rowId:dt,minFirstColumn:0,maxLastColumn:p.left.length,columns:i}),p.right.length>0&&n.current.calculateColSpan({rowId:dt,minFirstColumn:i.length-p.right.length,maxLastColumn:i.length,columns:i})}const Pt=(A==null?void 0:A.id)===dt,mt=n.current.rowHasAutoHeight(dt)?"auto":n.current.unstable_getRowHeight(dt);let pt;M[dt]==null?pt=!1:pt=n.current.isRowSelectable(dt);let Fe=!1;ve.position===void 0&&(Fe=Ze===0);let Be=!1;if(ke)if(ze)Be=Ze===Ve.length-1;else{const ge=S.rows.length-1;Ze===ge&&(Be=!0)}const It=Ze===Le;let Nt=null;k!==null&&k.id===dt&&(Nt=n.current.getCellParams(dt,k.field).cellMode==="view"?k.field:null);let ht=be;!ze&&Q.current&&Ze>=Q.current.firstRowIndex&&Ze=d.width,he=x.useMemo(()=>({overflowX:fe?void 0:"hidden",overflowY:o.autoHeight?"hidden":void 0}),[fe,o.autoHeight]),Ie=x.useMemo(()=>{const ve={width:fe?N:"auto",height:R};return o.autoHeight&&S.rows.length===0&&(ve.height=fT(n)),ve},[n,N,R,fe,o.autoHeight,S.rows.length]);return x.useEffect(()=>{n.current.publishEvent("virtualScrollerContentSizeChange")},[n,Ie]),ko(()=>{n.current.resize()},[n,C.currentPageTotalHeight]),ko(()=>{s&&(j.current.scrollLeft=0,j.current.scrollTop=0)},[s,I,j]),Ele(d.width!==0,()=>{const ve=ux(n,o,s,l),be=dx(ve,L.current,G);q(be),n.current.publishEvent("scrollPositionChange",{top:L.current.top,left:L.current.left,renderContext:be})}),n.current.register("private",{updateRenderContext:X}),Jt(n,"columnsChange",X),Jt(n,"filteredRowsSet",X),Jt(n,"rowExpansionChange",X),{renderContext:$,setPanels:v,getRows:ee,getContainerProps:()=>({ref:E}),getScrollerProps:()=>({ref:j,tabIndex:-1,onScroll:te,onWheel:se,onTouchMove:de,style:he,role:"presentation"}),getContentProps:()=>({style:Ie,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:B,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:D,role:"presentation"})}};function ux(n,o,i,s){const l=Gl(n.current.state),c=Xh(n,o),d=La(n),f=n.current.state.rows.dataRowIds.at(-1),p=d.at(-1);return{enabled:i,enabledForColumns:s,apiRef:n,autoHeight:o.autoHeight,rowBufferPx:o.rowBufferPx,columnBufferPx:o.columnBufferPx,leftPinnedWidth:l.leftPinnedWidth,columnsTotalWidth:l.columnsTotalWidth,viewportInnerWidth:l.viewportInnerSize.width,viewportInnerHeight:l.viewportInnerSize.height,lastRowHeight:f!==void 0?n.current.unstable_getRowHeight(f):0,lastColumnWidth:(p==null?void 0:p.computedWidth)??0,rowsMeta:Bp(n.current.state),columnPositions:Nd(n),rows:c.rows,range:c.range,pinnedColumns:Tm(n),visibleColumns:d}}function dx(n,o,i){let s;if(!n.enabled)s={firstRowIndex:0,lastRowIndex:n.rows.length,firstColumnIndex:0,lastColumnIndex:n.visibleColumns.length};else{const{top:c,left:d}=o,f=Math.abs(d)+n.leftPinnedWidth,p=Math.min(CE(n,c,{atStart:!0,lastPosition:n.rowsMeta.positions[n.rowsMeta.positions.length-1]+n.lastRowHeight}),n.rowsMeta.positions.length-1),m=n.autoHeight?p+n.rows.length:CE(n,c+n.viewportInnerHeight);let g=0,v=n.columnPositions.length;if(n.enabledForColumns){let w=!1;const[A,k]=o6({firstIndex:p,lastIndex:m,minFirstIndex:0,maxLastIndex:n.rows.length,bufferBefore:i.buffer.rowBefore,bufferAfter:i.buffer.rowAfter,positions:n.rowsMeta.positions,lastSize:n.lastRowHeight});for(let C=A;C=n.range.lastRowIndex);const c=Mu(s-(((f=n.range)==null?void 0:f.firstRowIndex)||0),0,n.rowsMeta.positions.length);return l||n.rowsMeta.positions[c]>=o?Sd(o,n.rowsMeta.positions,i):N1e(o,n.rowsMeta.positions,c,i)}function D1e(n,o,i){const[s,l]=o6({firstIndex:o.firstRowIndex,lastIndex:o.lastRowIndex,minFirstIndex:0,maxLastIndex:n.rows.length,bufferBefore:i.buffer.rowBefore,bufferAfter:i.buffer.rowAfter,positions:n.rowsMeta.positions,lastSize:n.lastRowHeight}),[c,d]=o6({firstIndex:o.firstColumnIndex,lastIndex:o.lastColumnIndex,minFirstIndex:n.pinnedColumns.left.length,maxLastIndex:n.visibleColumns.length-n.pinnedColumns.right.length,bufferBefore:i.buffer.columnBefore,bufferAfter:i.buffer.columnAfter,positions:n.columnPositions,lastSize:n.lastColumnWidth}),f=A1e({firstColumnToRender:c,apiRef:n.apiRef,firstRowToRender:s,lastRowToRender:l,visibleRows:n.rows});return{firstRowIndex:s,lastRowIndex:l,firstColumnIndex:f,lastColumnIndex:d}}function Sd(n,o,i=void 0,s=0,l=o.length){if(o.length<=0)return-1;if(s>=l)return s;const c=s+Math.floor((l-s)/2),d=o[c];let f;if(i!=null&&i.atStart){const p=(c===o.length-1?i.lastPosition:o[c+1])-d;f=n-p=Math.abs(n)?o>0?ia.DOWN:ia.UP:n>0?ia.RIGHT:ia.LEFT}function $T(n,o,i,s,l,c){if(n==="rtl")switch(o){case ia.LEFT:o=ia.RIGHT;break;case ia.RIGHT:o=ia.LEFT;break}switch(o){case ia.NONE:return{rowAfter:i,rowBefore:i,columnAfter:s,columnBefore:s};case ia.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:c};case ia.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:c,columnBefore:0};case ia.UP:return{rowAfter:0,rowBefore:l,columnAfter:0,columnBefore:0};case ia.DOWN:return{rowAfter:l,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const z1e=()=>{var g,v;const n=vn(),o=ir(),i=$t(n,Fm),s=$t(n,wT),l=i===0,c=$t(n,Use),d=!c&&l,f=!c&&i>0&&s===0;let p=null,m=null;return d&&(p="noRowsOverlay"),f&&(p="noResultsOverlay"),c&&(p="loadingOverlay",m=((v=(g=o.slotProps)==null?void 0:g.loadingOverlay)==null?void 0:v[l?"noRowsVariant":"variant"])||null),{overlayType:p,loadingOverlayVariant:m}},H1e=zr("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:n=>n!=="overlayType"&&n!=="loadingOverlayVariant",overridesResolver:(n,o)=>o.overlayWrapper})(({overlayType:n,loadingOverlayVariant:o})=>o!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:n==="loadingOverlay"?5:4}:{}),U1e=zr("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:n=>n!=="overlayType"&&n!=="loadingOverlayVariant",overridesResolver:(n,o)=>o.overlayWrapperInner})({}),G1e=n=>{const{classes:o}=n;return Bt({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Tn,o)};function V1e(n){const o=vn(),i=ir(),s=$f(o,i),l=$t(o,Gl);let c=l.viewportOuterSize.height-l.topContainerHeight-l.bottomContainerHeight-(l.hasScrollX?l.scrollbarSize:0);(i.autoHeight&&s.rows.length===0||c===0)&&(c=fT(o));const d=G1e(P({},n,{classes:i.classes}));return b.jsx(H1e,P({className:nt(d.root)},n,{children:b.jsx(U1e,P({className:nt(d.inner),style:{height:c,width:l.viewportOuterSize.width}},n))}))}function Q1e(n){var c,d;const{overlayType:o}=n,i=ir();if(!o)return null;const s=(c=i.slots)==null?void 0:c[o],l=(d=i.slotProps)==null?void 0:d[o];return b.jsx(V1e,P({},n,{children:b.jsx(s,P({},l))}))}const cv=n=>n.columnMenu;function W1e(){var M;const n=Ru(),o=ir(),i=$t(n,La),s=$t(n,Sle),l=$t(n,xle),c=$t(n,hT),d=$t(n,VA),f=$t(n,vle),p=$t(n,gle),m=$t(n,h3),g=$t(n,Nm),v=$t(n,cv),w=$t(n,w1),A=$t(n,w1e),k=!(f===null&&c===null&&d===null),C=x.useRef(null);return n.current.register("private",{columnHeadersContainerRef:C}),b.jsx(o.slots.columnHeaders,P({ref:C,visibleColumns:i,filterColumnLookup:s,sortColumnLookup:l,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:f,columnHeaderFocus:p,columnGroupHeaderFocus:m,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:w,columnGroupsHeaderStructure:A,hasOtherElementInTabSequence:k},(M=o.slotProps)==null?void 0:M.columnHeaders))}const q1e=Ld(W1e),_1e=()=>{const n=Ru(),o=ir(),i=$t(n,La),s=$t(n,Fm),l=$t(n,Nm),c=$t(n,qse);let d="grid";return o.treeData&&(d="treegrid"),{role:d,"aria-colcount":i.length,"aria-rowcount":l+1+c+s,"aria-multiselectable":GA(o)}},Y1e=zr("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),K1e=zr("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(n,o)=>o.main})({flexGrow:1,position:"relative",overflow:"hidden"}),X1e=x.forwardRef((n,o)=>{const i=_1e(),s=ir();return b.jsxs(K1e,P({ref:o,ownerState:s,className:n.className,tabIndex:-1},i,{children:[b.jsx(Y1e,{role:"presentation","data-id":"gridPanelAnchor"}),n.children]}))}),J1e=()=>Bt({root:["topContainer"]},Tn,{}),Z1e=zr("div")({position:"sticky",zIndex:4,top:0,"&::after":{content:'" "',position:"absolute",zIndex:5,bottom:0,left:0,right:0,height:1,width:"var(--DataGrid-rowWidth)",backgroundColor:"var(--DataGrid-rowBorderColor)"}});function ece(n){const o=J1e();return b.jsx(Z1e,P({},n,{className:nt(o.root,n.className,we["container--top"]),role:"presentation"}))}const tce=()=>Bt({root:["bottomContainer"]},Tn,{}),rce=zr("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function nce(n){const o=tce();return b.jsx(rce,P({},n,{className:nt(o.root,n.className,we["container--bottom"]),role:"presentation"}))}const oce=(n,o)=>{const{classes:i}=n;return Bt({root:["virtualScrollerContent",o&&"virtualScrollerContent--overflowed"]},Tn,i)},ice=zr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(n,o)=>o.virtualScrollerContent})({}),ace=x.forwardRef(function(o,i){var d;const s=ir(),l=!s.autoHeight&&((d=o.style)==null?void 0:d.minHeight)==="auto",c=oce(s,l);return b.jsx(ice,P({ref:i},o,{ownerState:s,className:nt(c.root,o.className)}))}),sce=zr("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),LT=zr("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),lce=zr(LT)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),cce=zr(LT)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),uce=zr("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function dce({rowsLength:n}){const o=vn(),{viewportOuterSize:i,minimumSize:s,hasScrollX:l,hasScrollY:c,scrollbarSize:d,leftPinnedWidth:f,rightPinnedWidth:p}=$t(o,Gl),m=l?d:0,g=i.height-s.height-m,v=Math.max(m,g);return v===0?null:b.jsxs(sce,{className:we.filler,role:"presentation",style:{height:v,"--rowBorderColor":n===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[f>0&&b.jsx(lce,{className:we["filler--pinnedLeft"],style:{width:f}}),b.jsx(uce,{}),p>0&&b.jsx(cce,{className:we["filler--pinnedRight"],style:{width:p+(c?d:0)}})]})}const fce=Ld(dce),pce=["className"],hce=n=>{const{classes:o}=n;return Bt({root:["virtualScrollerRenderZone"]},Tn,o)},mce=zr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(n,o)=>o.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),gce=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,pce),c=vn(),d=ir(),f=hce(d),p=$t(c,()=>{const m=e8(c);return Bp(c.current.state).positions[m.firstRowIndex]??0});return b.jsx(mce,P({ref:i,className:nt(f.root,s),ownerState:d,style:{transform:`translate3d(0, ${p}px, 0)`}},l))}),vce={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},Rs=n=>n.editRows,Jh=n=>n.preferencePanel;var kf=function(n){return n.filters="filters",n.columns="columns",n}(kf||{});const bce=(n,o)=>{const{classes:i}=n,s={root:["scrollbar",`scrollbar--${o}`],content:["scrollbarContent"]};return Bt(s,Tn,i)},zT=zr("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),wce=zr(zT)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),xce=zr(zT)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),yce=zr("div")({display:"inline-block"}),kE=x.forwardRef(function(o,i){const s=Ru(),l=ir(),c=x.useRef(!1),d=x.useRef(0),f=x.useRef(null),p=x.useRef(null),m=bce(l,o.position),g=$t(s,Gl),v=o.position==="vertical"?"height":"width",w=o.position==="vertical"?"scrollTop":"scrollLeft",A=o.position==="vertical"?g.hasScrollX:g.hasScrollY,k=g.minimumSize[v]+(A?g.scrollbarSize:0),M=(o.position==="vertical"?g.viewportInnerSize.height:g.viewportOuterSize.width)*(k/g.viewportOuterSize[v]),S=ln(()=>{const j=s.current.virtualScrollerRef.current,B=f.current;if(j[w]===d.current)return;if(c.current){c.current=!1;return}c.current=!0;const D=j[w]/k;B[w]=D*M,d.current=j[w]}),I=ln(()=>{const j=s.current.virtualScrollerRef.current,B=f.current;if(c.current){c.current=!1;return}c.current=!0;const D=B[w]/M;j[w]=D*k});rb(()=>{const j=s.current.virtualScrollerRef.current,B=f.current;return j.addEventListener("scroll",S,{capture:!0}),B.addEventListener("scroll",I,{capture:!0}),()=>{j.removeEventListener("scroll",S,{capture:!0}),B.removeEventListener("scroll",I,{capture:!0})}}),x.useEffect(()=>{p.current.style.setProperty(v,`${M}px`)},[M,v]);const E=o.position==="vertical"?wce:xce;return b.jsx(E,{ref:Xn(i,f),className:m.root,tabIndex:-1,children:b.jsx(yce,{ref:p,className:m.content})})}),Ace=(n,o,i)=>{const{classes:s}=n,l={root:["main",o.rightPinnedWidth>0&&"main--hasPinnedRight",i==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller"]};return Bt(l,Tn,s)},Cce=zr("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(n,o)=>o.virtualScroller})({position:"relative",height:"100%",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function kce(n){const o=vn(),i=ir(),s=$t(o,Gl),l=z1e(),c=Ace(i,s,l.loadingOverlayVariant),d=F1e(),{getContainerProps:f,getScrollerProps:p,getContentProps:m,getRenderZoneProps:g,getScrollbarVerticalProps:v,getScrollbarHorizontalProps:w,getRows:A}=d,k=A();return b.jsxs(X1e,P({className:c.root},f(),{children:[b.jsx(yE,{scrollDirection:"left"}),b.jsx(yE,{scrollDirection:"right"}),b.jsxs(Cce,P({className:c.scroller},p(),{ownerState:i,children:[b.jsxs(ece,{children:[b.jsx(q1e,{}),b.jsx(i.slots.pinnedRows,{position:"top",virtualScroller:d})]}),b.jsx(Q1e,P({},l)),b.jsx(ace,P({},m(),{children:b.jsxs(gce,P({},g(),{children:[k,b.jsx(i.slots.detailPanels,{virtualScroller:d})]}))})),b.jsx(fce,{rowsLength:k.length}),b.jsx(nce,{children:b.jsx(i.slots.pinnedRows,{position:"bottom",virtualScroller:d})})]})),s.hasScrollY&&b.jsx(kE,P({position:"vertical"},v())),s.hasScrollX&&b.jsx(kE,P({position:"horizontal"},w())),n.children]}))}function Sce(){var o;const n=ir();return n.hideFooter?null:b.jsx(n.slots.footer,P({},(o=n.slotProps)==null?void 0:o.footer))}let fx;function Ice(){return fx===void 0&&document.createElement("div").focus({get preventScroll(){return fx=!0,!1}}),fx}function Ece(n){return n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth}function w3(n,o){return n.closest(`.${o}`)}function Bu(n){return n.replace(/["\\]/g,"\\$&")}function Mce(n,o){return n.querySelector(`[role="columnheader"][data-field="${Bu(o)}"]`)}function HT(n){return`.${we.row}[data-id="${Bu(String(n))}"]`}function Pce(n,o){return n.querySelector(HT(o))}function jce(n,{id:o,field:i}){const s=HT(o),l=`.${we.cell}[data-field="${Bu(i)}"]`,c=`${s} ${l}`;return n.querySelector(c)}function $m(n){return n.target.nodeType===1&&!n.currentTarget.contains(n.target)}function Oce(n){return n.getAttribute("data-field")}function Rce(n,o){return n.querySelector(`[data-field="${Bu(o)}"]`)}function Bce(n){return n.getAttribute("data-fields").slice(2,-2).split("-|-")}function Tce(n,o){return Array.from(n.querySelectorAll(`[data-fields*="|-${Bu(o)}-|"]`)??[])}function Fce(n,o){var d;if(!w3(n,we.root))throw new Error("MUI X: The root element is not found.");const s=n.getAttribute("aria-colindex");if(!s)return[];const l=Number(s)-1,c=[];return(d=o.virtualScrollerRef)!=null&&d.current?(VT(o).forEach(f=>{const p=f.getAttribute("data-id");if(!p)return;let m=l;const g=o.unstable_getCellColSpanInfo(p,l);g&&g.spannedByColSpan&&(m=g.leftVisibleCellIndex);const v=f.querySelector(`[data-colindex="${m}"]`);v&&c.push(v)}),c):[]}function SE(n,o){return n.rootElementRef.current.querySelector(`.${we[o]}`)}const UT=({api:n,colIndex:o,position:i,filterFn:s})=>{if(o===null)return[];const l=[];return VT(n).forEach(c=>{c.getAttribute("data-id")&&c.querySelectorAll(`.${we[i==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(f=>{const p=Tp(f);p!==null&&s(p)&&l.push(f)})}),l};function Dce(n,o){const i=Tp(o);return UT({api:n,colIndex:i,position:"left",filterFn:s=>s>i})}function Nce(n,o){const i=Tp(o);return UT({api:n,colIndex:i,position:"right",filterFn:s=>s{var c;if(!((c=n.columnHeadersContainerRef)!=null&&c.current))return[];if(o===null)return[];const l=[];return n.columnHeadersContainerRef.current.querySelectorAll(`.${we[i==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(d=>{const f=Tp(d);f!==null&&s(f)&&l.push(d)}),l};function $ce(n,o){const i=Tp(o);return GT({api:n,position:"left",colIndex:i,filterFn:s=>s>i})}function Lce(n,o){const i=Tp(o);return GT({api:n,position:"right",colIndex:i,filterFn:s=>s div > [data-field="${Bu(o)}"][role="columnheader"]`)}function Hce(n,o){const i=n.virtualScrollerRef.current;return Array.from(i.querySelectorAll(`:scope > div > div > div > [data-field="${Bu(o)}"][role="gridcell"]`))}function VT(n){return n.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${we.row}`)}function Tp(n){const o=n.getAttribute("aria-colindex");return o?Number(o)-1:null}class uv extends Error{}function Uce(n){const o=x.useCallback(v=>({field:v,colDef:n.current.getColumn(v)}),[n]),i=x.useCallback(v=>{const w=n.current.getRow(v);if(!w)throw new uv(`No row with id #${v} found`);return{id:v,columns:n.current.getAllColumns(),row:w}},[n]),s=x.useCallback((v,w)=>{const A=n.current.getColumn(w),k=n.current.getRow(v),C=n.current.getRowNode(v);if(!k||!C)throw new uv(`No row with id #${v} found`);const M=k[w],S=A!=null&&A.valueGetter?A.valueGetter(M,k,A,n):M,I=i1(n),E=VA(n),j={id:v,field:w,row:k,rowNode:C,colDef:A,cellMode:n.current.getCellMode(v,w),hasFocus:I!==null&&I.field===w&&I.id===v,tabIndex:E&&E.field===w&&E.id===v?0:-1,value:S,formattedValue:S,isEditable:!1};return A&&A.valueFormatter&&(j.formattedValue=A.valueFormatter(S,k,A,n)),j.isEditable=A&&n.current.isCellEditable(j),j},[n]),l=x.useCallback((v,w)=>{const A=n.current.getColumn(w),k=n.current.getRow(v);if(!k)throw new uv(`No row with id #${v} found`);return!A||!A.valueGetter?k[w]:A.valueGetter(k[A.field],k,A,n)},[n]),c=x.useCallback((v,w)=>{const A=w.field;if(!w||!w.valueGetter)return v[A];const k=v[w.field];return w.valueGetter(k,v,w,n)},[n]),d=x.useCallback((v,w)=>{const A=c(v,w);return!w||!w.valueFormatter?A:w.valueFormatter(A,v,w,n)},[n,c]),f=x.useCallback(v=>n.current.rootElementRef.current?Mce(n.current.rootElementRef.current,v):null,[n]),p=x.useCallback(v=>n.current.rootElementRef.current?Pce(n.current.rootElementRef.current,v):null,[n]),m=x.useCallback((v,w)=>n.current.rootElementRef.current?jce(n.current.rootElementRef.current,{id:v,field:w}):null,[n]);Zr(n,{getCellValue:l,getCellParams:s,getCellElement:m,getRowValue:c,getRowFormattedValue:d,getRowParams:i,getRowElement:p,getColumnHeaderParams:o,getColumnHeaderElement:f},"public")}const Xb=(n,o,i,s,l)=>{const c=o===i-1;return n===Si.LEFT&&c?!0:s?n===Si.LEFT?!0:n===Si.RIGHT?!c:!c||l:!1},Jb=(n,o)=>n===Si.RIGHT&&o===0,Gce=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Vce=["changeReason","unstable_updateValueOnRender"];let ul=function(n){return n[n.NONE=0]="NONE",n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n[n.VIRTUAL=3]="VIRTUAL",n}({});const QT={[ul.LEFT]:Si.LEFT,[ul.RIGHT]:Si.RIGHT,[ul.NONE]:void 0,[ul.VIRTUAL]:void 0},IE={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:To.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Qce=n=>{const{align:o,showLeftBorder:i,showRightBorder:s,pinnedPosition:l,isEditable:c,isSelected:d,isSelectionMode:f,classes:p}=n,m={root:["cell",`cell--text${Ke(o)}`,d&&"selected",c&&"cell--editable",i&&"cell--withLeftBorder",s&&"cell--withRightBorder",l===ul.LEFT&&"cell--pinnedLeft",l===ul.RIGHT&&"cell--pinnedRight",f&&!c&&"cell--selectionMode"]};return Bt(m,Tn,p)},Wce=x.forwardRef(function(o,i){var mt;const{column:s,rowId:l,editCellState:c,align:d,colIndex:f,width:p,className:m,style:g,colSpan:v,disableDragEvents:w,isNotVisible:A,pinnedOffset:k,pinnedPosition:C,sectionIndex:M,sectionLength:S,gridHasFiller:I,onClick:E,onDoubleClick:j,onMouseDown:B,onMouseUp:D,onMouseOver:R,onKeyDown:N,onKeyUp:U,onDragEnter:L,onDragOver:_}=o,V=Qe(o,Gce),$=vn(),z=ir(),Q=s.field,G=$t($,()=>{try{const Fe=$.current.getCellParams(l,Q);return Fe.api=$.current,Fe}catch(pt){if(pt instanceof uv)return IE;throw pt}},KB),F=$t($,()=>$.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:Q})),{cellMode:q,hasFocus:W,isEditable:X=!1,value:te}=G,se=s.type==="actions"&&((mt=s.getActions)==null?void 0:mt.call(s,$.current.getRowParams(l)).some(pt=>!pt.props.disabled)),de=(q==="view"||!X)&&!se?G.tabIndex:-1,{classes:ee,getCellClassName:fe}=z,Ie=[$t($,()=>$.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:Q}).filter(Boolean).join(" "))];s.cellClassName&&Ie.push(typeof s.cellClassName=="function"?s.cellClassName(G):s.cellClassName),s.display==="flex"&&Ie.push(we["cell--flex"]),fe&&Ie.push(fe(G));const ve=G.formattedValue??te,be=x.useRef(null),ke=Xn(i,be),ze=x.useRef(null),Ge=z.cellSelection??!1,Ve=QT[C],at=Jb(Ve,M),We=Xb(Ve,M,S,z.showCellVerticalBorder,I),ue={align:d,showLeftBorder:at,showRightBorder:We,isEditable:X,classes:z.classes,pinnedPosition:C,isSelected:F,isSelectionMode:Ge},Le=Qce(ue),$e=x.useCallback(pt=>Fe=>{const Be=$.current.getCellParams(l,Q||"");$.current.publishEvent(pt,Be,Fe),D&&D(Fe)},[$,Q,D,l]),bt=x.useCallback(pt=>Fe=>{const Be=$.current.getCellParams(l,Q||"");$.current.publishEvent(pt,Be,Fe),B&&B(Fe)},[$,Q,B,l]),ot=x.useCallback((pt,Fe)=>Be=>{if(!$.current.getRow(l))return;const Je=$.current.getCellParams(l,Q||"");$.current.publishEvent(pt,Je,Be),Fe&&Fe(Be)},[$,Q,l]),st=x.useMemo(()=>{if(A)return{padding:0,opacity:0,width:0,border:0};const pt=P({"--width":`${p}px`},g);return C===ul.LEFT&&(pt.left=k),C===ul.RIGHT&&(pt.right=k),pt},[p,A,g,k,C]);if(x.useEffect(()=>{if(!W||q===To.Edit)return;const pt=ri($.current.rootElementRef.current);if(be.current&&!be.current.contains(pt.activeElement)){const Fe=be.current.querySelector('[tabindex="0"]'),Be=ze.current||Fe||be.current;if(Ice())Be.focus({preventScroll:!0});else{const Je=$.current.getScrollPosition();Be.focus(),$.current.scroll(Je)}}},[W,q,$]),G===IE)return null;let Ze=V.onFocus,dt,Xe;if(c===null&&s.renderCell&&(dt=s.renderCell(G)),c!==null&&s.renderEditCell){const pt=$.current.getRowWithUpdatedValues(l,s.field),Fe=Qe(c,Vce),Be=s.valueFormatter?s.valueFormatter(c.value,pt,s,$):G.formattedValue,Je=P({},G,{row:pt,formattedValue:Be},Fe);dt=s.renderEditCell(Je),Ie.push(we["cell--editing"]),Ie.push(ee==null?void 0:ee["cell--editing"])}if(dt===void 0){const pt=ve==null?void 0:ve.toString();dt=pt,Xe=pt}x.isValidElement(dt)&&se&&(dt=x.cloneElement(dt,{focusElementRef:ze}));const Pt=w?null:{onDragEnter:ot("cellDragEnter",L),onDragOver:ot("cellDragOver",_)};return b.jsx("div",P({ref:ke,className:nt(m,Ie,Le.root),role:"gridcell","data-field":Q,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":v,style:st,title:Xe,tabIndex:de,onClick:ot("cellClick",E),onDoubleClick:ot("cellDoubleClick",j),onMouseOver:ot("cellMouseOver",R),onMouseDown:bt("cellMouseDown"),onMouseUp:$e("cellMouseUp"),onKeyDown:ot("cellKeyDown",N),onKeyUp:ot("cellKeyUp",U)},Pt,V,{onFocus:Ze,children:dt}))}),qce=Ld(Wce),_ce=["field","type","align","width","height","empty","style","className"],EE="1.3em",Yce="1.2em",ME=[40,80],Kce={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},Xce=n=>{const{align:o,classes:i,empty:s}=n,l={root:["cell","cellSkeleton",`cell--text${o?Ke(o):"Left"}`,s&&"cellEmpty"]};return Bt(l,Tn,i)},Jce=Cse(12345);function Zce(n){const{field:o,type:i,align:s,width:l,height:c,empty:d=!1,style:f,className:p}=n,m=Qe(n,_ce),v={classes:ir().classes,align:s,empty:d},w=Xce(v),A=x.useMemo(()=>{if(i==="boolean"||i==="actions")return{variant:"circular",width:EE,height:EE};const[C,M]=i?Kce[i]??ME:ME;return{variant:"text",width:`${Math.round(Jce(C,M))}%`,height:Yce}},[i]);return b.jsx("div",P({"data-field":o,className:nt(w.root,p),style:P({height:c,maxWidth:l,minWidth:l},f)},m,{children:!d&&b.jsx(pie,P({},A))}))}const eue=Ld(Zce);function tue(n){return n.vars?n.vars.palette.TableCell.border:n.palette.mode==="light"?hU(Wd(n.palette.divider,1),.88):pU(Wd(n.palette.divider,1),.68)}const PE={[`.${we.columnSeparator}, .${we["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},jE={[`& .${we.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${we.menuIcon}`]:{width:"auto",visibility:"visible"}},rue=_e("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(n,o)=>[{[`&.${we.autoHeight}`]:o.autoHeight},{[`&.${we.aggregationColumnHeader}`]:o.aggregationColumnHeader},{[`&.${we["aggregationColumnHeader--alignLeft"]}`]:o["aggregationColumnHeader--alignLeft"]},{[`&.${we["aggregationColumnHeader--alignCenter"]}`]:o["aggregationColumnHeader--alignCenter"]},{[`&.${we["aggregationColumnHeader--alignRight"]}`]:o["aggregationColumnHeader--alignRight"]},{[`&.${we.aggregationColumnHeaderLabel}`]:o.aggregationColumnHeaderLabel},{[`&.${we["root--disableUserSelection"]} .${we.cell}`]:o["root--disableUserSelection"]},{[`&.${we.autosizing}`]:o.autosizing},{[`& .${we.editBooleanCell}`]:o.editBooleanCell},{[`& .${we.cell}`]:o.cell},{[`& .${we["cell--editing"]}`]:o["cell--editing"]},{[`& .${we["cell--textCenter"]}`]:o["cell--textCenter"]},{[`& .${we["cell--textLeft"]}`]:o["cell--textLeft"]},{[`& .${we["cell--textRight"]}`]:o["cell--textRight"]},{[`& .${we["cell--rangeTop"]}`]:o["cell--rangeTop"]},{[`& .${we["cell--rangeBottom"]}`]:o["cell--rangeBottom"]},{[`& .${we["cell--rangeLeft"]}`]:o["cell--rangeLeft"]},{[`& .${we["cell--rangeRight"]}`]:o["cell--rangeRight"]},{[`& .${we["cell--withRightBorder"]}`]:o["cell--withRightBorder"]},{[`& .${we.cellCheckbox}`]:o.cellCheckbox},{[`& .${we.cellSkeleton}`]:o.cellSkeleton},{[`& .${we.checkboxInput}`]:o.checkboxInput},{[`& .${we["columnHeader--alignCenter"]}`]:o["columnHeader--alignCenter"]},{[`& .${we["columnHeader--alignLeft"]}`]:o["columnHeader--alignLeft"]},{[`& .${we["columnHeader--alignRight"]}`]:o["columnHeader--alignRight"]},{[`& .${we["columnHeader--dragging"]}`]:o["columnHeader--dragging"]},{[`& .${we["columnHeader--moving"]}`]:o["columnHeader--moving"]},{[`& .${we["columnHeader--numeric"]}`]:o["columnHeader--numeric"]},{[`& .${we["columnHeader--sortable"]}`]:o["columnHeader--sortable"]},{[`& .${we["columnHeader--sorted"]}`]:o["columnHeader--sorted"]},{[`& .${we["columnHeader--withRightBorder"]}`]:o["columnHeader--withRightBorder"]},{[`& .${we.columnHeader}`]:o.columnHeader},{[`& .${we.headerFilterRow}`]:o.headerFilterRow},{[`& .${we.columnHeaderCheckbox}`]:o.columnHeaderCheckbox},{[`& .${we.columnHeaderDraggableContainer}`]:o.columnHeaderDraggableContainer},{[`& .${we.columnHeaderTitleContainer}`]:o.columnHeaderTitleContainer},{[`& .${we["columnSeparator--resizable"]}`]:o["columnSeparator--resizable"]},{[`& .${we["columnSeparator--resizing"]}`]:o["columnSeparator--resizing"]},{[`& .${we.columnSeparator}`]:o.columnSeparator},{[`& .${we.filterIcon}`]:o.filterIcon},{[`& .${we.iconSeparator}`]:o.iconSeparator},{[`& .${we.menuIcon}`]:o.menuIcon},{[`& .${we.menuIconButton}`]:o.menuIconButton},{[`& .${we.menuOpen}`]:o.menuOpen},{[`& .${we.menuList}`]:o.menuList},{[`& .${we["row--editable"]}`]:o["row--editable"]},{[`& .${we["row--editing"]}`]:o["row--editing"]},{[`& .${we["row--dragging"]}`]:o["row--dragging"]},{[`& .${we.row}`]:o.row},{[`& .${we.rowReorderCellPlaceholder}`]:o.rowReorderCellPlaceholder},{[`& .${we.rowReorderCell}`]:o.rowReorderCell},{[`& .${we["rowReorderCell--draggable"]}`]:o["rowReorderCell--draggable"]},{[`& .${we.sortIcon}`]:o.sortIcon},{[`& .${we.withBorderColor}`]:o.withBorderColor},{[`& .${we.treeDataGroupingCell}`]:o.treeDataGroupingCell},{[`& .${we.treeDataGroupingCellToggle}`]:o.treeDataGroupingCellToggle},{[`& .${we.treeDataGroupingCellLoadingContainer}`]:o.treeDataGroupingCellLoadingContainer},{[`& .${we.detailPanelToggleCell}`]:o.detailPanelToggleCell},{[`& .${we["detailPanelToggleCell--expanded"]}`]:o["detailPanelToggleCell--expanded"]},o.root]})(({theme:n})=>{var M,S;const o=tue(n),i=n.shape.borderRadius,s=n.vars?n.vars.palette.background.default:((M=n.mixins.MuiDataGrid)==null?void 0:M.containerBackground)??n.palette.background.default,l=((S=n.mixins.MuiDataGrid)==null?void 0:S.pinnedBackground)??s,c=n.vars?`rgba(${n.vars.palette.background.defaultChannel} / ${n.vars.palette.action.disabledOpacity})`:Wd(n.palette.background.default,n.palette.action.disabledOpacity),d=(n.vars||n).palette.action.hoverOpacity,f=(n.vars||n).palette.action.hover,p=(n.vars||n).palette.action.selectedOpacity,m=n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${p})`:Wd(n.palette.primary.main,p),g=n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc( ${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity} - ))`:_d(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),v=n.vars?f:dx(l,f,d),w=n.vars?m:dx(l,m,p),A=n.vars?f:dx(w,f,d),k={backgroundColor:m,"&:hover":{backgroundColor:g,"@media (hover: none)":{backgroundColor:m}}};return P({"--unstable_DataGrid-radius":typeof i=="number"?`${i}px`:i,"--unstable_DataGrid-headWeight":n.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":c,"--DataGrid-containerBackground":s,"--DataGrid-pinnedBackground":l,"--DataGrid-rowBorderColor":o,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:o,borderRadius:"var(--unstable_DataGrid-radius)",color:(n.vars||n).palette.text.primary},n.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`.${we.main} > *:first-of-type`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${we.autoHeight}`]:{height:"auto"},[`&.${we.autosizing}`]:{[`& .${we.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${we.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${we.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${we.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${we.groupingCriteriaCell}`]:{width:"unset"},[`& .${we.treeDataGroupingCell}`]:{width:"unset"}},[`& .${we.columnHeader}, & .${we.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${we.columnHeader}:focus-within, & .${we.cell}:focus-within`]:{outline:`solid ${n.vars?`rgba(${n.vars.palette.primary.mainChannel} / 0.5)`:_d(n.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${we.columnHeader}:focus, & .${we.cell}:focus`]:{outline:`solid ${n.palette.primary.main} 1px`},[`& .${we.columnHeaderCheckbox}, & .${we.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${we.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${we["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${we["columnHeader--sorted"]} .${we.iconButtonContainer}, & .${we["columnHeader--filtered"]} .${we.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${we.columnHeader}:not(.${we["columnHeader--sorted"]}) .${we.sortIcon}`]:{opacity:0,transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.shorter})},[`& .${we.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${we.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${we["columnHeader--filledGroup"]} .${we.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${we.sortIcon}, & .${we.filterIcon}`]:{fontSize:"inherit"},[`& .${we["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${we["columnHeader--alignCenter"]} .${we.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${we["columnHeader--alignRight"]} .${we.columnHeaderDraggableContainer}, & .${we["columnHeader--alignRight"]} .${we.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${we["columnHeader--alignCenter"]} .${we.menuIcon}, & .${we["columnHeader--alignRight"]} .${we.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${we["columnHeader--alignRight"]} .${we.menuIcon}, & .${we["columnHeader--alignRight"]} .${we.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${we["columnHeader--moving"]}`]:{backgroundColor:(n.vars||n).palette.action.hover},[`& .${we["columnHeader--pinnedLeft"]}, & .${we["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${we.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",color:o},[`& .${we.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${we.columnHeaders}:hover`]:xE,[`& .${we.columnHeader}:hover`]:yE,[`& .${we.columnHeader}:not(.${we["columnHeader--sorted"]}):hover .${we.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${we.columnHeaders}`]:xE,[`& .${we.columnHeader}`]:yE},[`& .${we["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${we["columnSeparator--sideRight"]}`]:{right:-12},[`& .${we["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(n.vars||n).palette.text.primary,"@media (hover: none)":{color:o}},[`&.${we["columnSeparator--resizing"]}`]:{color:(n.vars||n).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${we.iconSeparator}`]:{color:"inherit"},[`& .${we.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${we.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${we.headerFilterRow}`]:{[`& .${we.columnHeader}`]:{boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)"}},[`.${we.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${we["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${we.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":k},[`& .${we["container--top"]}, & .${we["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${we.cell}`]:{height:"var(--height)",minWidth:"var(--width)",maxWidth:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":k},[`& .${we["virtualScrollerContent--overflowed"]} .${we["row--lastVisible"]} .${we.cell}`]:{borderTopColor:"transparent"},[`&.${we["root--disableUserSelection"]} .${we.cell}`]:{userSelect:"none"},[`& .${we["row--dynamicHeight"]} > .${we.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${we.cellEmpty}`]:{padding:0,height:"unset"},[`& .${we.cell}.${we["cell--selectionMode"]}`]:{cursor:"default"},[`& .${we.cell}.${we["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:n.shadows[2],backgroundColor:(n.vars||n).palette.background.paper,"&:focus-within":{outline:`solid ${(n.vars||n).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${we["row--editing"]}`]:{boxShadow:n.shadows[2]},[`& .${we["row--editing"]} .${we.cell}`]:{boxShadow:n.shadows[0],backgroundColor:(n.vars||n).palette.background.paper},[`& .${we.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${we.booleanCell}[data-value="true"]`]:{color:(n.vars||n).palette.text.secondary},[`& .${we.booleanCell}[data-value="false"]`]:{color:(n.vars||n).palette.text.disabled},[`& .${we.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:n.spacing(1)},[`& .${we.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(n.vars||n).palette.action.disabledOpacity},[`& .${we["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${we.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${we.withBorderColor}`]:{borderColor:o},[`& .${we["cell--withLeftBorder"]}, & .${we["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${we["cell--withRightBorder"]}, & .${we["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${we["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${we["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${we["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${we["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${we.virtualScrollerContent} .${we.row}`]:{"&:hover":{[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{backgroundColor:v}},"&.Mui-selected":{[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{backgroundColor:w},"&:hover":{[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{backgroundColor:A}}}},[`& .${we.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${we.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${we.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${we.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${we["columnHeader--dragging"]}, & .${we["row--dragging"]}`]:{background:(n.vars||n).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(n.vars||n).palette.action.disabledOpacity},[`& .${we["row--dragging"]}`]:{background:(n.vars||n).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(n.vars||n).palette.action.disabledOpacity,[`& .${we.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${we.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${we.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:n.spacing(2)},[`& .${we.treeDataGroupingCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${we.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${we.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:n.spacing(2)},[`.${we.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${we["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--rowBorderColor)"},[`&.${we["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${we.filler}`]:{flex:1},[`& .${we["filler--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${we["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${we.virtualScrollerContent}, & .${we["scrollbar--vertical"]}, & .${we.pinnedRows}`]:{display:"none"}}})});function dx(n,o,i,s=1){const l=(p,m)=>Math.round((p**(1/s)*(1-i)+m**(1/s)*i)**s),c=_2(n),d=_2(o),f=[l(c.values[0],d.values[0]),l(c.values[1],d.values[1]),l(c.values[2],d.values[2])];return rb({type:"rgb",values:f})}const Qce=["className"],Wce=n=>{const{autoHeight:o,density:i,classes:s,showCellVerticalBorder:l}=n,c={root:["root",o&&"autoHeight",`root--density${Ke(i)}`,"withBorderColor",l&&"withVerticalBorder"]};return Rt(c,Tn,s)},qce=x.forwardRef(function(o,i){const s=ir(),{className:l}=o,c=Qe(o,Qce),d=Ru(),f=$t(d,E2),p=d.current.rootElementRef,m=Xn(p,i),g=P({},s,{density:f}),v=Wce(g),[w,A]=x.useState(!1);return yo(()=>{A(!0)},[]),w?b.jsx(Vce,P({ref:m,className:nt(l,v.root),ownerState:g},c)):null}),_ce=["className"],Yce=n=>{const{classes:o}=n;return Rt({root:["footerContainer","withBorderColor"]},Tn,o)},Kce=zr("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(n,o)=>o.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Xce=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,_ce),c=ir(),d=Yce(c);return b.jsx(Kce,P({ref:i,className:nt(d.root,s),ownerState:c},l))}),Jce=["className"],Zce=n=>{const{classes:o}=n;return Rt({root:["overlay"]},Tn,o)},eue=zr("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(n,o)=>o.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),t8=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,Jce),c=ir(),d=Zce(c);return b.jsx(eue,P({ref:i,className:nt(d.root,s),ownerState:c},l))}),tue=n=>{const{classes:o,open:i}=n;return Rt({root:["menuIcon",i&&"menuOpen"],button:["menuIconButton"]},Tn,o)},rue=x.memo(n=>{var v,w;const{colDef:o,open:i,columnMenuId:s,columnMenuButtonId:l,iconButtonRef:c}=n,d=gn(),f=ir(),p=P({},n,{classes:f.classes}),m=tue(p),g=x.useCallback(A=>{A.preventDefault(),A.stopPropagation(),d.current.toggleColumnMenu(o.field)},[d,o.field]);return b.jsx("div",{className:m.root,children:b.jsx(f.slots.baseTooltip,P({title:d.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(v=f.slotProps)==null?void 0:v.baseTooltip,{children:b.jsx(f.slots.baseIconButton,P({ref:c,tabIndex:-1,className:m.button,"aria-label":d.current.getLocaleText("columnMenuLabel"),size:"small",onClick:g,"aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?s:void 0,id:l},(w=f.slotProps)==null?void 0:w.baseIconButton,{children:b.jsx(f.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function nue({columnMenuId:n,columnMenuButtonId:o,ContentComponent:i,contentComponentProps:s,field:l,open:c,target:d,onExited:f}){const p=gn(),m=p.current.getColumn(l),g=ln(v=>{v&&(v.stopPropagation(),d!=null&&d.contains(v.target))||p.current.hideColumnMenu()});return!d||!m?null:b.jsx(tT,{placement:`bottom-${m.align==="right"?"start":"end"}`,open:c,target:d,onClose:g,onExited:f,children:b.jsx(i,P({colDef:m,hideMenu:g,open:c,id:n,labelledby:o},s))})}const oue=["className"],iue=n=>{const{classes:o}=n;return Rt({root:["columnHeaderTitle"]},Tn,o)},aue=zr("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(n,o)=>o.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),sue=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,oue),c=ir(),d=iue(c);return b.jsx(aue,P({ref:i,className:nt(d.root,s),ownerState:c},l))});function lue(n){var p;const{label:o,description:i}=n,s=ir(),l=x.useRef(null),[c,d]=x.useState(""),f=x.useCallback(()=>{if(!i&&(l!=null&&l.current)){const m=mce(l.current);d(m?o:"")}},[i,o]);return b.jsx(s.slots.baseTooltip,P({title:i||c},(p=s.slotProps)==null?void 0:p.baseTooltip,{children:b.jsx(sue,{onMouseOver:f,ref:l,children:o})}))}const cue=["resizable","resizing","height","side"];var r8=function(n){return n.Left="left",n.Right="right",n}(r8||{});const uue=n=>{const{resizable:o,resizing:i,classes:s,side:l}=n,c={root:["columnSeparator",o&&"columnSeparator--resizable",i&&"columnSeparator--resizing",l&&`columnSeparator--side${Ke(l)}`],icon:["iconSeparator"]};return Rt(c,Tn,s)};function due(n){const{height:o,side:i=r8.Right}=n,s=Qe(n,cue),l=ir(),c=P({},n,{side:i,classes:l.classes}),d=uue(c),f=x.useCallback(p=>{p.preventDefault(),p.stopPropagation()},[]);return b.jsx("div",P({className:d.root,style:{minHeight:o,opacity:l.showColumnVerticalBorder?0:1}},s,{onClick:f,children:b.jsx(l.slots.columnResizeIcon,{className:d.icon})}))}const fue=x.memo(due),pue=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],$T=x.forwardRef(function(o,i){const{classes:s,colIndex:l,height:c,isResizing:d,sortDirection:f,hasFocus:p,tabIndex:m,separatorSide:g,isDraggable:v,headerComponent:w,description:A,width:k,columnMenuIconButton:C=null,columnMenu:M=null,columnTitleIconButtons:S=null,headerClassName:I,label:E,resizable:j,draggableContainerProps:B,columnHeaderSeparatorProps:F,style:O}=o,N=Qe(o,pue),H=Ru(),L=ir(),_=x.useRef(null),V=Xn(_,i);let $="none";return f!=null&&($=f==="asc"?"ascending":"descending"),x.useLayoutEffect(()=>{var Q;const z=H.current.state.columnMenu;if(p&&!z.open){const D=_.current.querySelector('[tabindex="0"]')||_.current;D==null||D.focus(),(Q=H.current.columnHeadersContainerRef)!=null&&Q.current&&(H.current.columnHeadersContainerRef.current.scrollLeft=0)}},[H,p]),b.jsxs("div",P({ref:V,className:nt(s.root,I),style:P({},O,{height:c,width:k,minWidth:k,maxWidth:k}),role:"columnheader",tabIndex:m,"aria-colindex":l+1,"aria-sort":$,"aria-label":w==null?E:void 0},N,{children:[b.jsxs("div",P({className:s.draggableContainer,draggable:v,role:"presentation"},B,{children:[b.jsxs("div",{className:s.titleContainer,role:"presentation",children:[b.jsx("div",{className:s.titleContainerContent,children:w!==void 0?w:b.jsx(lue,{label:E,description:A,columnWidth:k})}),S]}),C]})),b.jsx(fue,P({resizable:!L.disableColumnResize&&!!j,resizing:d,height:c,side:g},F)),M]}))}),hue=n=>{const{colDef:o,classes:i,isDragging:s,sortDirection:l,showRightBorder:c,showLeftBorder:d,filterItemsCounter:f,pinnedPosition:p}=n,m=l!=null,g=f!=null&&f>0,v=o.type==="number",w={root:["columnHeader",o.headerAlign==="left"&&"columnHeader--alignLeft",o.headerAlign==="center"&&"columnHeader--alignCenter",o.headerAlign==="right"&&"columnHeader--alignRight",o.sortable&&"columnHeader--sortable",s&&"columnHeader--moving",m&&"columnHeader--sorted",g&&"columnHeader--filtered",v&&"columnHeader--numeric","withBorderColor",c&&"columnHeader--withRightBorder",d&&"columnHeader--withLeftBorder",p==="left"&&"columnHeader--pinnedLeft",p==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Rt(w,Tn,i)};function mue(n){var be,ke,ze;const{colDef:o,columnMenuOpen:i,colIndex:s,headerHeight:l,isResizing:c,isLast:d,sortDirection:f,sortIndex:p,filterItemsCounter:m,hasFocus:g,tabIndex:v,disableReorder:w,separatorSide:A,style:k,pinnedPosition:C,indexInSection:M,sectionLength:S,gridHasFiller:I}=n,E=Ru(),j=ir(),B=x.useRef(null),F=Ro(),O=Ro(),N=x.useRef(null),[H,L]=x.useState(i),_=x.useMemo(()=>!j.disableColumnReorder&&!w&&!o.disableReorder,[j.disableColumnReorder,w,o.disableReorder]);let V;o.renderHeader&&(V=o.renderHeader(E.current.getColumnHeaderParams(o.field)));const $=Yb(C,M),z=_b(C,M,S,j.showCellVerticalBorder,I),Q=P({},n,{classes:j.classes,showRightBorder:z,showLeftBorder:$}),G=hue(Q),D=x.useCallback(Ge=>Ve=>{$m(Ve)||E.current.publishEvent(Ge,E.current.getColumnHeaderParams(o.field),Ve)},[E,o.field]),q=x.useMemo(()=>({onClick:D("columnHeaderClick"),onDoubleClick:D("columnHeaderDoubleClick"),onMouseOver:D("columnHeaderOver"),onMouseOut:D("columnHeaderOut"),onMouseEnter:D("columnHeaderEnter"),onMouseLeave:D("columnHeaderLeave"),onKeyDown:D("columnHeaderKeyDown"),onFocus:D("columnHeaderFocus"),onBlur:D("columnHeaderBlur")}),[D]),W=x.useMemo(()=>_?{onDragStart:D("columnHeaderDragStart"),onDragEnter:D("columnHeaderDragEnter"),onDragOver:D("columnHeaderDragOver"),onDragEnd:D("columnHeaderDragEnd")}:{},[_,D]),X=x.useMemo(()=>({onMouseDown:D("columnSeparatorMouseDown"),onDoubleClick:D("columnSeparatorDoubleClick")}),[D]);x.useEffect(()=>{H||L(i)},[H,i]);const te=x.useCallback(()=>{L(!1)},[]),se=!j.disableColumnMenu&&!o.disableColumnMenu&&b.jsx(rue,{colDef:o,columnMenuId:F,columnMenuButtonId:O,open:H,iconButtonRef:N}),de=b.jsx(nue,{columnMenuId:F,columnMenuButtonId:O,field:o.field,open:i,target:N.current,ContentComponent:j.slots.columnMenu,contentComponentProps:(be=j.slotProps)==null?void 0:be.columnMenu,onExited:te}),ee=o.sortingOrder??j.sortingOrder,fe=(o.sortable||f!=null)&&!o.hideSortIcons&&!j.disableColumnSorting,he=b.jsxs(x.Fragment,{children:[!j.disableColumnFilter&&b.jsx(j.slots.columnHeaderFilterIconButton,P({field:o.field,counter:m},(ke=j.slotProps)==null?void 0:ke.columnHeaderFilterIconButton)),fe&&b.jsx(j.slots.columnHeaderSortIcon,P({field:o.field,direction:f,index:p,sortingOrder:ee,disabled:!o.sortable},(ze=j.slotProps)==null?void 0:ze.columnHeaderSortIcon))]});x.useLayoutEffect(()=>{var Ve;const Ge=E.current.state.columnMenu;if(g&&!Ge.open){const We=B.current.querySelector('[tabindex="0"]')||B.current;We==null||We.focus(),(Ve=E.current.columnHeadersContainerRef)!=null&&Ve.current&&(E.current.columnHeadersContainerRef.current.scrollLeft=0)}},[E,g]);const Ie=typeof o.headerClassName=="function"?o.headerClassName({field:o.field,colDef:o}):o.headerClassName,ve=o.headerName??o.field;return b.jsx($T,P({ref:B,classes:G,columnMenuOpen:i,colIndex:s,height:l,isResizing:c,sortDirection:f,hasFocus:g,tabIndex:v,separatorSide:A,isDraggable:_,headerComponent:V,description:o.description,elementId:o.field,width:o.computedWidth,columnMenuIconButton:se,columnTitleIconButtons:he,headerClassName:nt(Ie,d&&we["columnHeader--last"]),label:ve,resizable:!j.disableColumnResize&&!!o.resizable,"data-field":o.field,columnMenu:de,draggableContainerProps:W,columnHeaderSeparatorProps:X,style:k},q))}const gue=Hd(mue),vue=["className"],bue=n=>{const{classes:o}=n;return Rt({root:["iconButtonContainer"]},Tn,o)},wue=zr("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(n,o)=>o.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),LT=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,vue),c=ir(),d=bue(c);return b.jsx(wue,P({ref:i,className:nt(d.root,s),ownerState:c},l))}),xue=["direction","index","sortingOrder","disabled"],yue=n=>{const{classes:o}=n;return Rt({icon:["sortIcon"]},Tn,o)};function Aue(n,o,i,s){let l;const c={};return o==="asc"?l=n.columnSortedAscendingIcon:o==="desc"?l=n.columnSortedDescendingIcon:(l=n.columnUnsortedIcon,c.sortingOrder=s),l?b.jsx(l,P({fontSize:"small",className:i},c)):null}function Cue(n){var w;const{direction:o,index:i,sortingOrder:s,disabled:l}=n,c=Qe(n,xue),d=gn(),f=ir(),p=P({},n,{classes:f.classes}),m=yue(p),g=Aue(f.slots,o,m.icon,s);if(!g)return null;const v=b.jsx(f.slots.baseIconButton,P({tabIndex:-1,"aria-label":d.current.getLocaleText("columnHeaderSortIconLabel"),title:d.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:l},(w=f.slotProps)==null?void 0:w.baseIconButton,c,{children:g}));return b.jsxs(LT,{children:[i!=null&&b.jsx(s3,{badgeContent:i,color:"default",overlap:"circular",children:v}),i==null&&v]})}const kue=x.memo(Cue),Sue=n=>{const{classes:o}=n;return Rt({icon:["filterIcon"]},Tn,o)};function Iue(n){var k,C;const{counter:o,field:i,onClick:s}=n,l=gn(),c=ir(),d=P({},n,{classes:c.classes}),f=Sue(d),p=$t(l,em),m=Ro(),g=Ro(),v=x.useCallback(M=>{M.preventDefault(),M.stopPropagation();const{open:S,openedPanelValue:I}=em(l.current.state);S&&I===Sf.filters?l.current.hideFilterPanel():l.current.showFilterPanel(void 0,g,m),s&&s(l.current.getColumnHeaderParams(i),M)},[l,i,s,g,m]);if(!o)return null;const w=p.open&&p.labelId===m,A=b.jsx(c.slots.baseIconButton,P({id:m,onClick:v,color:"default","aria-label":l.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":w,"aria-controls":w?g:void 0},(k=c.slotProps)==null?void 0:k.baseIconButton,{children:b.jsx(c.slots.columnFilteredIcon,{className:f.icon,fontSize:"small"})}));return b.jsx(c.slots.baseTooltip,P({title:l.current.getLocaleText("columnHeaderFiltersTooltipActive")(o),enterDelay:1e3},(C=c.slotProps)==null?void 0:C.baseTooltip,{children:b.jsxs(LT,{children:[o>1&&b.jsx(s3,{badgeContent:o,color:"default",children:A}),o===1&&A]})}))}const AE=_r(b.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),CE=_r(b.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),kE=_r(b.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),SE=_r(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Eue=_r(b.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),IE=_r(b.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Mue=_r(b.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");_r(b.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");_r(b.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Pue=_r(b.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),jue=_r(b.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Oue=_r(b.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Rue=_r(b.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Bue=_r(b.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Tue=_r(b.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),fx=_r(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),EE=_r(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Fue=_r(b.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Due=_r(b.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),ME=_r(b.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Nue=_r(b.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),$ue=_r(b.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Lue=_r(b.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),zue=_r(b.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Hue=_r(b.jsx("g",{children:b.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Uue=_r(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");_r(b.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const Gue=_r(b.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),Vue=["hideMenu","colDef","id","labelledby","className","children","open"],Que=_e(Kh)(()=>({minWidth:248})),Wue=x.forwardRef(function(o,i){const{hideMenu:s,id:l,labelledby:c,className:d,children:f,open:p}=o,m=Qe(o,Vue),g=x.useCallback(v=>{yT(v.key)&&v.preventDefault(),$le(v.key)&&s(v)},[s]);return b.jsx(Que,P({id:l,ref:i,className:nt(we.menuList,d),"aria-labelledby":c,onKeyDown:g,autoFocus:p},m,{children:f}))}),que=["displayOrder"],_ue=n=>{const o=Ru(),{defaultSlots:i,defaultSlotProps:s,slots:l={},slotProps:c={},hideMenu:d,colDef:f,addDividers:p=!0}=n,m=x.useMemo(()=>P({},i,l),[i,l]),g=x.useMemo(()=>{if(!c||Object.keys(c).length===0)return s;const A=P({},c);return Object.entries(s).forEach(([k,C])=>{A[k]=P({},C,c[k]||{})}),A},[s,c]),v=o.current.unstable_applyPipeProcessors("columnMenu",[],n.colDef),w=x.useMemo(()=>{const A=Object.keys(i);return Object.keys(l).filter(k=>!A.includes(k))},[l,i]);return x.useMemo(()=>{const C=Array.from(new Set([...v,...w])).filter(M=>m[M]!=null).sort((M,S)=>{const I=g[M],E=g[S],j=Number.isFinite(I==null?void 0:I.displayOrder)?I.displayOrder:100,B=Number.isFinite(E==null?void 0:E.displayOrder)?E.displayOrder:100;return j-B});return C.reduce((M,S,I)=>{let E={colDef:f,onClick:d};const j=g[S];if(j){const B=Qe(j,que);E=P({},E,B)}return p&&I!==C.length-1?[...M,[m[S],E],[kA,{}]]:[...M,[m[S],E]]},[])},[p,f,v,d,m,g,w])};function Yue(n){const{colDef:o,onClick:i}=n,s=gn(),l=ir(),f=$a(s).filter(m=>m.disableColumnMenu!==!0).length===1,p=x.useCallback(m=>{f||(s.current.setColumnVisibility(o.field,!1),i(m))},[s,o.field,i,f]);return l.disableColumnSelector||o.hideable===!1?null:b.jsxs(uo,{onClick:p,disabled:f,children:[b.jsx(G2,{children:b.jsx(l.slots.columnMenuHideIcon,{fontSize:"small"})}),b.jsx(qs,{children:s.current.getLocaleText("columnMenuHideColumn")})]})}function Kue(n){const{onClick:o}=n,i=gn(),s=ir(),l=x.useCallback(c=>{o(c),i.current.showPreferences(Sf.columns)},[i,o]);return s.disableColumnSelector?null:b.jsxs(uo,{onClick:l,children:[b.jsx(G2,{children:b.jsx(s.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),b.jsx(qs,{children:i.current.getLocaleText("columnMenuManageColumns")})]})}function Xue(n){return b.jsxs(x.Fragment,{children:[b.jsx(Yue,P({},n)),b.jsx(Kue,P({},n))]})}function Jue(n){const{colDef:o,onClick:i}=n,s=gn(),l=ir(),c=x.useCallback(d=>{i(d),s.current.showFilterPanel(o.field)},[s,o.field,i]);return l.disableColumnFilter||!o.filterable?null:b.jsxs(uo,{onClick:c,children:[b.jsx(G2,{children:b.jsx(l.slots.columnMenuFilterIcon,{fontSize:"small"})}),b.jsx(qs,{children:s.current.getLocaleText("columnMenuFilter")})]})}function Zue(n){const{colDef:o,onClick:i}=n,s=gn(),l=$t(s,l1),c=ir(),d=x.useMemo(()=>{if(!o)return null;const g=l.find(v=>v.field===o.field);return g==null?void 0:g.sort},[o,l]),f=o.sortingOrder??c.sortingOrder,p=x.useCallback(g=>{i(g);const v=g.currentTarget.getAttribute("data-value")||null;s.current.sortColumn(o.field,v===d?null:v)},[s,o,i,d]);if(c.disableColumnSorting||!o||!o.sortable||!f.some(g=>!!g))return null;const m=g=>{const v=s.current.getLocaleText(g);return typeof v=="function"?v(o):v};return b.jsxs(x.Fragment,{children:[f.includes("asc")&&d!=="asc"?b.jsxs(uo,{onClick:p,"data-value":"asc",children:[b.jsx(G2,{children:b.jsx(c.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),b.jsx(qs,{children:m("columnMenuSortAsc")})]}):null,f.includes("desc")&&d!=="desc"?b.jsxs(uo,{onClick:p,"data-value":"desc",children:[b.jsx(G2,{children:b.jsx(c.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),b.jsx(qs,{children:m("columnMenuSortDesc")})]}):null,f.includes(null)&&d!=null?b.jsxs(uo,{onClick:p,children:[b.jsx(G2,{}),b.jsx(qs,{children:s.current.getLocaleText("columnMenuUnsort")})]}):null]})}const ede=["defaultSlots","defaultSlotProps","slots","slotProps"],tde={columnMenuSortItem:Zue,columnMenuFilterItem:Jue,columnMenuColumnsItem:Xue},rde={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},nde=x.forwardRef(function(o,i){const{defaultSlots:s,defaultSlotProps:l,slots:c,slotProps:d}=o,f=Qe(o,ede),p=_ue(P({},f,{defaultSlots:s,defaultSlotProps:l,slots:c,slotProps:d}));return b.jsx(Wue,P({ref:i},f,{children:p.map(([m,g],v)=>b.jsx(m,P({},g),v))}))}),ode=x.forwardRef(function(o,i){return b.jsx(nde,P({},o,{ref:i,defaultSlots:tde,defaultSlotProps:rde}))}),ide=["className","slotProps"],ade=n=>{const{classes:o}=n;return Rt({root:["panelWrapper"]},Tn,o)},sde=_e("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(n,o)=>o.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),lde=()=>!0,zT=x.forwardRef(function(o,i){const{className:s,slotProps:l={}}=o,c=Qe(o,ide),d=ir(),f=ade(d);return b.jsx(wB,P({open:!0,disableEnforceFocus:!0,isEnabled:lde},l.TrapFocus,{children:b.jsx(sde,P({ref:i,tabIndex:-1,className:nt(s,f.root),ownerState:d},c))}))}),cde=(n,o)=>{const i=new Set(Object.keys(n).filter(c=>n[c]===!1)),s=new Set(Object.keys(o).filter(c=>o[c]===!1));if(i.size!==s.size)return!1;let l=!0;return i.forEach(c=>{s.has(c)||(l=!1)}),l},ude=(n,o)=>(n.headerName||n.field).toLowerCase().indexOf(o)>-1,dde=n=>{const{classes:o}=n;return Rt({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Tn,o)},PE=new Intl.Collator;function HT(n){var $,z,Q;const o=gn(),i=x.useRef(null),s=$t(o,rc),l=Pf(()=>x1(o)).current,c=$t(o,x1),d=ir(),[f,p]=x.useState(""),m=dde(d),{sort:g,searchPredicate:v=ude,autoFocusSearchField:w=!0,disableShowHideToggle:A=!1,disableResetButton:k=!1,toggleAllMode:C="all",getTogglableColumns:M}=n,S=x.useMemo(()=>cde(c,l),[c,l]),I=x.useMemo(()=>{switch(g){case"asc":return[...s].sort((G,D)=>PE.compare(G.headerName||G.field,D.headerName||D.field));case"desc":return[...s].sort((G,D)=>-PE.compare(G.headerName||G.field,D.headerName||D.field));default:return s}},[s,g]),E=G=>{const{name:D}=G.target;o.current.setColumnVisibility(D,c[D]===!1)},j=x.useMemo(()=>{const G=M?M(I):null,D=G?I.filter(({field:q})=>G.includes(q)):I;return f?D.filter(q=>v(q,f.toLowerCase())):D},[I,f,v,M]),B=x.useCallback(G=>{const D=x1(o),q=P({},D),W=M?M(s):null;return(C==="filteredOnly"?j:s).forEach(X=>{X.hideable&&(W==null||W.includes(X.field))&&(G?delete q[X.field]:q[X.field]=!1)}),o.current.setColumnVisibilityModel(q)},[o,s,M,C,j]),F=x.useCallback(G=>{p(G.target.value)},[]),O=x.useMemo(()=>j.filter(G=>G.hideable),[j]),N=x.useMemo(()=>O.every(G=>c[G.field]==null||c[G.field]!==!1),[c,O]),H=x.useMemo(()=>O.every(G=>c[G.field]===!1),[c,O]),L=x.useRef(null);x.useEffect(()=>{w?i.current.focus():L.current&&typeof L.current.focus=="function"&&L.current.focus()},[w]);let _=!1;const V=G=>_===!1&&G.hideable!==!1?(_=!0,!0):!1;return b.jsxs(x.Fragment,{children:[b.jsx(pde,{className:m.header,ownerState:d,children:b.jsx(d.slots.baseTextField,P({placeholder:o.current.getLocaleText("columnsManagementSearchTitle"),inputRef:i,value:f,onChange:F,variant:"outlined",size:"small",InputProps:{startAdornment:b.jsx(d.slots.baseInputAdornment,{position:"start",children:b.jsx(d.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},($=d.slotProps)==null?void 0:$.baseTextField))}),b.jsxs(fde,{className:m.root,ownerState:d,children:[j.map(G=>{var D;return b.jsx(H2,{className:m.row,control:b.jsx(d.slots.baseCheckbox,P({disabled:G.hideable===!1,checked:c[G.field]!==!1,onClick:E,name:G.field,sx:{p:.5},inputRef:V(G)?L:void 0},(D=d.slotProps)==null?void 0:D.baseCheckbox)),label:G.headerName||G.field},G.field)}),j.length===0&&b.jsx(mde,{ownerState:d,children:o.current.getLocaleText("columnsManagementNoColumns")})]}),(!A||!k)&&j.length>0?b.jsxs(hde,{ownerState:d,className:m.footer,children:[A?b.jsx("span",{}):b.jsx(H2,{control:b.jsx(d.slots.baseCheckbox,P({disabled:O.length===0,checked:N,indeterminate:!N&&!H,onClick:()=>B(!N),name:o.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(z=d.slotProps)==null?void 0:z.baseCheckbox)),label:o.current.getLocaleText("columnsManagementShowHideAllText")}),k?null:b.jsx(d.slots.baseButton,P({onClick:()=>o.current.setColumnVisibilityModel(l),disabled:S},(Q=d.slotProps)==null?void 0:Q.baseButton,{children:o.current.getLocaleText("columnsManagementReset")}))]}):null]})}const fde=_e("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(n,o)=>o.columnsManagement})(({theme:n})=>({padding:n.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),pde=_e("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(n,o)=>o.columnsManagementHeader})(({theme:n})=>({padding:n.spacing(1.5,3)})),hde=_e("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(n,o)=>o.columnsManagementFooter})(({theme:n})=>({padding:n.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${n.palette.divider}`})),mde=_e("div")(({theme:n})=>({padding:n.spacing(.5,0),color:n.palette.grey[500]}));function gde(n){var i;const o=ir();return b.jsx(zT,P({},n,{children:b.jsx(HT,P({},(i=o.slotProps)==null?void 0:i.columnsManagement))}))}const vde=["children","className","classes"],bde=Yt("MuiDataGrid",["panel","paper"]),wde=_e(Eu,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(n,o)=>o.panel})(({theme:n})=>({zIndex:n.zIndex.modal})),xde=_e(yl,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(n,o)=>o.paper})(({theme:n})=>({backgroundColor:(n.vars||n).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${n.spacing(.5)})`,overflow:"auto"})),yde=x.forwardRef((n,o)=>{const{children:i,className:s}=n,l=Qe(n,vde),c=gn(),d=ir(),f=bde,[p,m]=x.useState(!1),g=x.useCallback(()=>{c.current.hidePreferences()},[c]),v=x.useCallback(C=>{m3(C.key)&&c.current.hidePreferences()},[c]),w=x.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{m(!0)},effect:()=>()=>{m(!1)}}],[]),[A,k]=x.useState(null);return x.useEffect(()=>{var M,S;const C=(S=(M=c.current.rootElementRef)==null?void 0:M.current)==null?void 0:S.querySelector('[data-id="gridPanelAnchor"]');C&&k(C)},[c]),A?b.jsx(wde,P({ref:o,placement:"bottom-start",className:nt(s,f.panel),ownerState:d,anchorEl:A,modifiers:w},l,{children:b.jsx(l3,{mouseEvent:"onMouseUp",onClickAway:g,children:b.jsx(xde,{className:f.paper,ownerState:d,elevation:8,onKeyDown:v,children:p&&i})})})):null}),Ade=["className"],Cde=n=>{const{classes:o}=n;return Rt({root:["panelContent"]},Tn,o)},kde=zr("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(n,o)=>o.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Sde(n){const{className:o}=n,i=Qe(n,Ade),s=ir(),l=Cde(s);return b.jsx(kde,P({className:nt(o,l.root),ownerState:s},i))}const Ide=["className"],Ede=n=>{const{classes:o}=n;return Rt({root:["panelFooter"]},Tn,o)},Mde=zr("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(n,o)=>o.panelFooter})(({theme:n})=>({padding:n.spacing(.5),display:"flex",justifyContent:"space-between"}));function Pde(n){const{className:o}=n,i=Qe(n,Ide),s=ir(),l=Ede(s);return b.jsx(Mde,P({className:nt(o,l.root),ownerState:s},i))}const jde=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],Ode=["InputComponentProps"],Rde=n=>{const{classes:o}=n;return Rt({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Tn,o)},Bde=_e("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(n,o)=>o.filterForm})(({theme:n})=>({display:"flex",padding:n.spacing(1)})),Tde=_e("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(n,o)=>o.filterFormDeleteIcon})(({theme:n})=>({flexShrink:0,justifyContent:"flex-end",marginRight:n.spacing(.5),marginBottom:n.spacing(.2)})),Fde=_e("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(n,o)=>o.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Dde=_e("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(n,o)=>o.filterFormColumnInput})({width:150}),Nde=_e("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(n,o)=>o.filterFormOperatorInput})({width:120}),$de=_e("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(n,o)=>o.filterFormValueInput})({width:190}),Lde=n=>{switch(n){case _s.And:return"filterPanelOperatorAnd";case _s.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},h0=n=>n.headerName||n.field,jE=new Intl.Collator,OE=x.forwardRef(function(o,i){var We,ue,Le,$e,bt,ot,st,Ze,dt;const{item:s,hasMultipleFilters:l,deleteFilter:c,applyFilterChanges:d,showMultiFilterOperators:f,disableMultiFilterOperator:p,applyMultiFilterOperatorChanges:m,focusElementRef:g,logicOperators:v=[_s.And,_s.Or],columnsSort:w,filterColumns:A,deleteIconProps:k={},logicOperatorInputProps:C={},operatorInputProps:M={},columnInputProps:S={},valueInputProps:I={},readOnly:E}=o,j=Qe(o,jde),B=gn(),F=$t(B,$d),O=$t(B,VB),N=$t(B,Ya),H=Ro(),L=Ro(),_=Ro(),V=Ro(),$=ir(),z=Rde($),Q=x.useRef(null),G=x.useRef(null),D=N.logicOperator??_s.And,q=l&&v.length>0,W=((We=$.slotProps)==null?void 0:We.baseFormControl)||{},te=(((ue=$.slotProps)==null?void 0:ue.baseSelect)||{}).native??!1,se=((Le=$.slotProps)==null?void 0:Le.baseInputLabel)||{},de=(($e=$.slotProps)==null?void 0:$e.baseSelectOption)||{},{InputComponentProps:ee}=I,fe=Qe(I,Ode),{filteredColumns:he,selectedField:Ie}=x.useMemo(()=>{let Xe=s.field;const Pt=F[s.field].filterable===!1?F[s.field]:null;if(Pt)return{filteredColumns:[Pt],selectedField:Xe};if(A===void 0||typeof A!="function")return{filteredColumns:O,selectedField:Xe};const mt=A({field:s.field,columns:O,currentFilters:(N==null?void 0:N.items)||[]});return{filteredColumns:O.filter(pt=>{const Te=mt.includes(pt.field);return pt.field===s.field&&!Te&&(Xe=void 0),Te}),selectedField:Xe}},[A,N==null?void 0:N.items,O,s.field,F]),ve=x.useMemo(()=>{switch(w){case"asc":return he.sort((Xe,Pt)=>jE.compare(h0(Xe),h0(Pt)));case"desc":return he.sort((Xe,Pt)=>-jE.compare(h0(Xe),h0(Pt)));default:return he}},[he,w]),be=s.field?B.current.getColumn(s.field):null,ke=x.useMemo(()=>{var Xe;return!s.operator||!be?null:(Xe=be.filterOperators)==null?void 0:Xe.find(Pt=>Pt.value===s.operator)},[s,be]),ze=x.useCallback(Xe=>{const Pt=Xe.target.value,mt=B.current.getColumn(Pt);if(mt.field===be.field)return;const pt=mt.filterOperators.find(Je=>Je.value===s.operator)||mt.filterOperators[0];let Re=!pt.InputComponent||pt.InputComponent!==(ke==null?void 0:ke.InputComponent)||mt.type!==be.type?void 0:s.value;if(mt.type==="singleSelect"&&Re!==void 0){const Je=mt,It=kf(Je);Array.isArray(Re)?Re=Re.filter(Nt=>v3(Nt,It,Je==null?void 0:Je.getOptionValue)!==void 0):v3(s.value,It,Je==null?void 0:Je.getOptionValue)===void 0&&(Re=void 0)}d(P({},s,{field:Pt,operator:pt.value,value:Re}))},[B,d,s,be,ke]),Ge=x.useCallback(Xe=>{const Pt=Xe.target.value,mt=be==null?void 0:be.filterOperators.find(Te=>Te.value===Pt),pt=!(mt!=null&&mt.InputComponent)||(mt==null?void 0:mt.InputComponent)!==(ke==null?void 0:ke.InputComponent);d(P({},s,{operator:Pt,value:pt?void 0:s.value}))},[d,s,be,ke]),Ve=x.useCallback(Xe=>{const Pt=Xe.target.value===_s.And.toString()?_s.And:_s.Or;m(Pt)},[m]),at=()=>{c(s)};return x.useImperativeHandle(g,()=>({focus:()=>{var Xe;ke!=null&&ke.InputComponent?(Xe=Q==null?void 0:Q.current)==null||Xe.focus():G.current.focus()}}),[ke]),b.jsxs(Bde,P({ref:i,className:z.root,"data-id":s.id,ownerState:$},j,{children:[b.jsx(Tde,P({variant:"standard",as:$.slots.baseFormControl},W,k,{className:nt(z.deleteIcon,W.className,k.className),ownerState:$,children:b.jsx($.slots.baseIconButton,P({"aria-label":B.current.getLocaleText("filterPanelDeleteIconLabel"),title:B.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:at,size:"small",disabled:E},(bt=$.slotProps)==null?void 0:bt.baseIconButton,{children:b.jsx($.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),b.jsx(Fde,P({variant:"standard",as:$.slots.baseFormControl},W,C,{sx:P({display:q?"flex":"none",visibility:f?"visible":"hidden"},W.sx||{},C.sx||{}),className:nt(z.logicOperatorInput,W.className,C.className),ownerState:$,children:b.jsx($.slots.baseSelect,P({inputProps:{"aria-label":B.current.getLocaleText("filterPanelLogicOperator")},value:D??"",onChange:Ve,disabled:!!p||v.length===1,native:te},(ot=$.slotProps)==null?void 0:ot.baseSelect,{children:v.map(Xe=>x.createElement($.slots.baseSelectOption,P({},de,{native:te,key:Xe.toString(),value:Xe.toString()}),B.current.getLocaleText(Lde(Xe))))}))})),b.jsxs(Dde,P({variant:"standard",as:$.slots.baseFormControl},W,S,{className:nt(z.columnInput,W.className,S.className),ownerState:$,children:[b.jsx($.slots.baseInputLabel,P({},se,{htmlFor:H,id:L,children:B.current.getLocaleText("filterPanelColumns")})),b.jsx($.slots.baseSelect,P({labelId:L,id:H,label:B.current.getLocaleText("filterPanelColumns"),value:Ie??"",onChange:ze,native:te,disabled:E},(st=$.slotProps)==null?void 0:st.baseSelect,{children:ve.map(Xe=>x.createElement($.slots.baseSelectOption,P({},de,{native:te,key:Xe.field,value:Xe.field}),h0(Xe)))}))]})),b.jsxs(Nde,P({variant:"standard",as:$.slots.baseFormControl},W,M,{className:nt(z.operatorInput,W.className,M.className),ownerState:$,children:[b.jsx($.slots.baseInputLabel,P({},se,{htmlFor:_,id:V,children:B.current.getLocaleText("filterPanelOperator")})),b.jsx($.slots.baseSelect,P({labelId:V,label:B.current.getLocaleText("filterPanelOperator"),id:_,value:s.operator,onChange:Ge,native:te,inputRef:G,disabled:E},(Ze=$.slotProps)==null?void 0:Ze.baseSelect,{children:(dt=be==null?void 0:be.filterOperators)==null?void 0:dt.map(Xe=>x.createElement($.slots.baseSelectOption,P({},de,{native:te,key:Xe.value,value:Xe.value}),Xe.label||B.current.getLocaleText(`filterOperator${Ke(Xe.value)}`)))}))]})),b.jsx($de,P({variant:"standard",as:$.slots.baseFormControl},W,fe,{className:nt(z.valueInput,W.className,fe.className),ownerState:$,children:ke!=null&&ke.InputComponent?b.jsx(ke.InputComponent,P({apiRef:B,item:s,applyValue:d,focusElementRef:Q,disabled:E},ke.InputComponentProps,ee),s.field):null}))]}))}),zde=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],RE=n=>({field:n.field,operator:n.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Hde=x.forwardRef(function(o,i){var V,$;const s=gn(),l=ir(),c=$t(s,Ya),d=$t(s,VB),f=$t(s,_ae),p=x.useRef(null),m=x.useRef(null),{logicOperators:g=[_s.And,_s.Or],columnsSort:v,filterFormProps:w,getColumnForNewFilter:A,disableAddFilterButton:k=!1,disableRemoveAllButton:C=!1}=o,M=Qe(o,zde),S=s.current.upsertFilterItem,I=x.useCallback(z=>{s.current.setFilterLogicOperator(z)},[s]),E=x.useCallback(()=>{let z;if(A&&typeof A=="function"){const Q=A({currentFilters:(c==null?void 0:c.items)||[],columns:d});if(Q===null)return null;z=d.find(({field:G})=>G===Q)}else z=d.find(Q=>{var G;return(G=Q.filterOperators)==null?void 0:G.length});return z?RE(z):null},[c==null?void 0:c.items,d,A]),j=x.useCallback(()=>{if(A===void 0||typeof A!="function")return E();const z=c.items.length?c.items:[E()].filter(Boolean),Q=A({currentFilters:z,columns:d});if(Q===null)return null;const G=d.find(({field:D})=>D===Q);return G?RE(G):null},[c.items,d,A,E]),B=x.useMemo(()=>c.items.length?c.items:(m.current||(m.current=E()),m.current?[m.current]:[]),[c.items,E]),F=B.length>1,{readOnlyFilters:O,validFilters:N}=x.useMemo(()=>B.reduce((z,Q)=>(f[Q.field]?z.validFilters.push(Q):z.readOnlyFilters.push(Q),z),{readOnlyFilters:[],validFilters:[]}),[B,f]),H=x.useCallback(()=>{const z=j();z&&s.current.upsertFilterItems([...B,z])},[s,j,B]),L=x.useCallback(z=>{const Q=N.length===1;s.current.deleteFilterItem(z),Q&&s.current.hideFilterPanel()},[s,N.length]),_=x.useCallback(()=>N.length===1&&N[0].value===void 0?(s.current.deleteFilterItem(N[0]),s.current.hideFilterPanel()):s.current.setFilterModel(P({},c,{items:O}),"removeAllFilterItems"),[s,O,c,N]);return x.useEffect(()=>{g.length>0&&c.logicOperator&&!g.includes(c.logicOperator)&&I(g[0])},[g,I,c.logicOperator]),x.useEffect(()=>{N.length>0&&p.current.focus()},[N.length]),b.jsxs(zT,P({ref:i},M,{children:[b.jsxs(Sde,{children:[O.map((z,Q)=>b.jsx(OE,P({item:z,applyFilterChanges:S,deleteFilter:L,hasMultipleFilters:F,showMultiFilterOperators:Q>0,disableMultiFilterOperator:Q!==1,applyMultiFilterOperatorChanges:I,focusElementRef:null,readOnly:!0,logicOperators:g,columnsSort:v},w),z.id==null?Q:z.id)),N.map((z,Q)=>b.jsx(OE,P({item:z,applyFilterChanges:S,deleteFilter:L,hasMultipleFilters:F,showMultiFilterOperators:O.length+Q>0,disableMultiFilterOperator:O.length+Q!==1,applyMultiFilterOperatorChanges:I,focusElementRef:Q===N.length-1?p:null,logicOperators:g,columnsSort:v},w),z.id==null?Q+O.length:z.id))]}),!l.disableMultipleColumnsFiltering&&!(k&&C)?b.jsxs(Pde,{children:[k?b.jsx("span",{}):b.jsx(l.slots.baseButton,P({onClick:H,startIcon:b.jsx(l.slots.filterPanelAddIcon,{})},(V=l.slotProps)==null?void 0:V.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),!C&&N.length>0?b.jsx(l.slots.baseButton,P({onClick:_,startIcon:b.jsx(l.slots.filterPanelRemoveAllIcon,{})},($=l.slotProps)==null?void 0:$.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),Ude=["hideMenu","options"],Gde=["hideMenu","options"];function Vde(n){const o=gn(),{hideMenu:i,options:s}=n,l=Qe(n,Ude);return b.jsx(uo,P({onClick:()=>{o.current.exportDataAsCsv(s),i==null||i()}},l,{children:o.current.getLocaleText("toolbarExportCSV")}))}function Qde(n){const o=gn(),{hideMenu:i,options:s}=n,l=Qe(n,Gde);return b.jsx(uo,P({onClick:()=>{o.current.exportDataAsPrint(s),i==null||i()}},l,{children:o.current.getLocaleText("toolbarExportPrint")}))}const Wde=["className","selectedRowCount"],qde=n=>{const{classes:o}=n;return Rt({root:["selectedRowCount"]},Tn,o)},_de=zr("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(n,o)=>o.selectedRowCount})(({theme:n})=>({alignItems:"center",display:"flex",margin:n.spacing(0,2),visibility:"hidden",width:0,height:0,[n.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),Yde=x.forwardRef(function(o,i){const{className:s,selectedRowCount:l}=o,c=Qe(o,Wde),d=gn(),f=ir(),p=qde(f),m=d.current.getLocaleText("footerRowSelected")(l);return b.jsx(_de,P({ref:i,className:nt(p.root,s),ownerState:f},c,{children:m}))}),Kde=x.forwardRef(function(o,i){var v,w;const s=gn(),l=ir(),c=$t(s,Ose),d=$t(s,ale),f=$t(s,_A),p=!l.hideFooterSelectedRowCount&&d>0?b.jsx(Yde,{selectedRowCount:d}):b.jsx("div",{}),m=!l.hideFooterRowCount&&!l.pagination?b.jsx(l.slots.footerRowCount,P({},(v=l.slotProps)==null?void 0:v.footerRowCount,{rowCount:c,visibleRowCount:f})):null,g=l.pagination&&!l.hideFooterPagination&&l.slots.pagination&&b.jsx(l.slots.pagination,P({},(w=l.slotProps)==null?void 0:w.pagination));return b.jsxs(Xce,P({ref:i},o,{children:[p,m,g]}))});function Xde(){var c,d;const n=gn(),o=$t(n,rc),i=ir(),s=$t(n,em),l=n.current.unstable_applyPipeProcessors("preferencePanel",null,s.openedPanelValue??Sf.filters);return b.jsx(i.slots.panel,P({as:i.slots.basePopper,open:o.length>0&&s.open,id:s.panelId,"aria-labelledby":s.labelId},(c=i.slotProps)==null?void 0:c.panel,(d=i.slotProps)==null?void 0:d.basePopper,{children:l}))}function Jde(){var o;const n=ir();return b.jsxs(x.Fragment,{children:[b.jsx(Xde,{}),n.slots.toolbar&&b.jsx(n.slots.toolbar,P({},(o=n.slotProps)==null?void 0:o.toolbar))]})}const n8=(n,o,i,s,l)=>{const c=l.hasScrollY?l.scrollbarSize:0;let d;switch(n){case ki.LEFT:d=s[i];break;case ki.RIGHT:d=l.columnsTotalWidth-s[i]-o+c;break;default:d=0;break}return d},Bg={root:we.scrollbarFiller,header:we["scrollbarFiller--header"],borderTop:we["scrollbarFiller--borderTop"],pinnedRight:we["scrollbarFiller--pinnedRight"]};function o8({header:n,borderTop:o=!0,pinnedRight:i}){return b.jsx("div",{role:"presentation",className:nt(Bg.root,n&&Bg.header,o&&Bg.borderTop,i&&Bg.pinnedRight)})}const Zde=zr("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(n,o)=>o.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),efe=n=>{const{classes:o}=n;return Rt({root:["skeletonLoadingOverlay"]},Tn,o)},BE=n=>parseInt(n.getAttribute("data-colindex"),10),tfe=x.forwardRef(function(o,i){const s=ir(),{slots:l}=s,c=efe({classes:s.classes}),d=x.useRef(null),f=Xn(d,i),p=gn(),m=$t(p,Vl),g=(m==null?void 0:m.viewportInnerSize.height)??0,v=Math.ceil(g/m.rowHeight),w=$t(p,$A),A=$t(p,Ld),k=x.useMemo(()=>A.filter(F=>F<=w).length,[w,A]),C=$t(p,$a),M=x.useMemo(()=>C.slice(0,k),[C,k]),S=$t(p,Tm),I=x.useCallback((F,O,N)=>{const H=n8(N,F,O,A,m);return{[N]:H}},[m,A]),E=x.useCallback(F=>{if(S.left.findIndex(O=>O.field===F)!==-1)return ki.LEFT;if(S.right.findIndex(O=>O.field===F)!==-1)return ki.RIGHT},[S.left,S.right]),j=x.useMemo(()=>{const F=[];for(let O=0;Obe.field===L.field):H-S.left.length,G=_&&I(L.computedWidth,H,_),D=m.columnsTotalWidth0}))}F.push(b.jsx("div",{className:nt(we.row,we.rowSkeleton,O===0&&we["row--firstVisible"]),children:N},`skeleton-row-${O}`))}return F},[l,M,S,v,s.showCellVerticalBorder,m.columnsTotalWidth,m.viewportOuterSize.width,m.rowHeight,m.hasScrollY,m.scrollbarSize,E,I]);return Jt(p,"columnResize",F=>{var G,D,q;const{colDef:O,width:N}=F,H=(G=d.current)==null?void 0:G.querySelectorAll(`[data-field="${Bu(O.field)}"]`);if(!H)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const L=M.findIndex(W=>W.field===O.field),_=E(O.field),V=_===ki.LEFT,$=_===ki.RIGHT,z=getComputedStyle(H[0]).getPropertyValue("--width"),Q=parseInt(z,10)-N;if(H&&H.forEach(W=>{W.style.setProperty("--width",`${N}px`)}),V){const W=(D=d.current)==null?void 0:D.querySelectorAll(`.${we["cell--pinnedLeft"]}`);W==null||W.forEach(X=>{BE(X)>L&&(X.style.left=`${parseInt(getComputedStyle(X).left,10)-Q}px`)})}if($){const W=(q=d.current)==null?void 0:q.querySelectorAll(`.${we["cell--pinnedRight"]}`);W==null||W.forEach(X=>{BE(X)({[`& .${of.selectLabel}`]:{display:"none",[n.breakpoints.up("sm")]:{display:"block"}},[`& .${of.input}`]:{display:"none",[n.breakpoints.up("sm")]:{display:"inline-flex"}}})),sfe=(n,o)=>({from:i,to:s,count:l,page:c})=>n({from:i,to:s,count:l,page:c,estimated:o}),lfe=({from:n,to:o,count:i,estimated:s})=>s?`${n}–${o} of ${i!==-1?i:`more than ${s>o?s:o}`}`:`${n}–${o} of ${i!==-1?i:`more than ${o}`}`,cfe=x.forwardRef(function(o,i){const s=gn(),l=ir(),c=$t(s,Ws),d=$t(s,M2),f=$t(s,gT),{paginationMode:p,loading:m,estimatedRowCount:g}=l,v=x.useMemo(()=>d===-1&&p==="server"&&m?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[m,p,d]),w=x.useMemo(()=>Math.max(0,f-1),[f]),A=x.useMemo(()=>d===-1||c.page<=w?c.page:w,[w,c.page,d]),k=x.useCallback(j=>{const B=Number(j.target.value);s.current.setPageSize(B)},[s]),C=x.useCallback((j,B)=>{s.current.setPage(B)},[s]),S=(j=>{for(let B=0;B{const{classes:o}=n;return Rt({root:["rowCount"]},Tn,o)},ffe=zr("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(n,o)=>o.rowCount})(({theme:n})=>({alignItems:"center",display:"flex",margin:n.spacing(0,2)})),pfe=x.forwardRef(function(o,i){const{className:s,rowCount:l,visibleRowCount:c}=o,d=Qe(o,ufe),f=gn(),p=ir(),m=dfe(p);if(l===0)return null;const g=c{const{editable:o,editing:i,selected:s,isFirstVisible:l,isLastVisible:c,rowHeight:d,classes:f}=n;return Rt({root:["row",s&&"selected",o&&"row--editable",i&&"row--editing",l&&"row--firstVisible",c&&"row--lastVisible",d==="auto"&&"row--dynamicHeight"]},Tn,f)};function gfe({width:n}){return n?b.jsx("div",{role:"presentation",className:nt(we.cell,we.cellEmpty),style:{"--width":`${n}px`}}):null}const vfe=x.forwardRef(function(o,i){var pt;const{selected:s,rowId:l,row:c,index:d,style:f,rowHeight:p,className:m,visibleColumns:g,pinnedColumns:v,offsetLeft:w,dimensions:A,renderContext:k,focusedColumnIndex:C,isFirstVisible:M,isLastVisible:S,isNotVisible:I,onClick:E,onDoubleClick:j,onMouseEnter:B,onMouseLeave:F,onMouseOut:O,onMouseOver:N}=o,H=Qe(o,hfe),L=gn(),_=x.useRef(null),V=ir(),$=Lf(L,V),z=$t(L,l1),Q=$t(L,Ub),G=$t(L,Nm),D=$t(L,Ld),q=$t(L,Rs),W=Xn(_,i),X=L.current.getRowNode(l),te=A.hasScrollY?A.scrollbarSize:0,se=A.columnsTotalWidth=v.left.length&&C=k.lastColumnIndex,he=d+G+2,Ie={selected:s,isFirstVisible:M,isLastVisible:S,classes:V.classes,editing:L.current.getRowMode(l)===Xo.Edit,editable:V.editMode===Qc.Row,rowHeight:p},ve=mfe(Ie);x.useLayoutEffect(()=>{if($.range){const It=L.current.getRowIndexRelativeToVisibleRows(l);It!=null&&L.current.unstable_setLastMeasuredRowIndex(It)}const Te=_.current;if(!Te||p!=="auto"||typeof ResizeObserver>"u")return;const Je=new ResizeObserver(It=>{const[Nt]=It,ht=Nt.borderBoxSize&&Nt.borderBoxSize.length>0?Nt.borderBoxSize[0].blockSize:Nt.contentRect.height;L.current.unstable_storeRowHeightMeasurement(l,ht)});return Je.observe(Te),()=>Je.disconnect()},[L,$.range,d,p,l]);const be=x.useCallback((Te,Re)=>Je=>{$m(Je)||L.current.getRow(l)&&(L.current.publishEvent(Te,L.current.getRowParams(l),Je),Re&&Re(Je))},[L,l]),ke=x.useCallback(Te=>{const Re=b3(Te.target,we.cell),Je=Re==null?void 0:Re.getAttribute("data-field");if(Je){if(Je===Bp.field||Je===i8||Je==="__reorder__"||L.current.getCellMode(l,Je)===Oo.Edit)return;const It=L.current.getColumn(Je);if((It==null?void 0:It.type)===Hb)return}be("rowClick",E)(Te)},[L,E,be,l]),{slots:ze,slotProps:Ge,disableColumnReorder:Ve}=V,at=V.rowReordering,We=$t(L,()=>P({},L.current.unstable_getRowInternalSizes(l)),UB);let ue=p;ue==="auto"&&We&&(We.baseCenter??0)>0;const Le=x.useMemo(()=>{if(I)return{opacity:0,width:0,height:0};const Te=P({},f,{maxHeight:p==="auto"?"none":p,minHeight:ue,"--height":typeof p=="number"?`${p}px`:p});if(We!=null&&We.spacingTop){const Re=V.rowSpacingType==="border"?"borderTopWidth":"marginTop";Te[Re]=We.spacingTop}if(We!=null&&We.spacingBottom){const Re=V.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Je=Te[Re];typeof Je!="number"&&(Je=parseInt(Je||"0",10)),Je+=We.spacingBottom,Te[Re]=Je}return Te},[I,p,f,ue,We,V.rowSpacingType]),$e=L.current.unstable_applyPipeProcessors("rowClassName",[],l);if(typeof V.getRowClassName=="function"){const Te=d-(((pt=$.range)==null?void 0:pt.firstRowIndex)||0),Re=P({},L.current.getRowParams(l),{isFirstVisible:Te===0,isLastVisible:Te===$.rows.length-1,indexRelativeToCurrentPage:Te});$e.push(V.getRowClassName(Re))}const bt=(Te,Re,Je,It,Nt=ul.NONE)=>{var ce;const ht=L.current.unstable_getCellColSpanInfo(l,Je);if(ht!=null&&ht.spannedByColSpan)return null;const xt=(ht==null?void 0:ht.cellProps.width)??Te.computedWidth,tt=(ht==null?void 0:ht.cellProps.colSpan)??1,Y=n8(NT[Nt],Te.computedWidth,Je,D,A);if((X==null?void 0:X.type)==="skeletonRow")return b.jsx(ze.skeletonCell,{type:Te.type,width:xt,height:p,field:Te.field,align:Te.align},Te.field);const re=((ce=q[l])==null?void 0:ce[Te.field])??null,ie=Te.field==="__reorder__",le=Object.keys(q).length>0,ge=!(Ve||Te.disableReorder),Me=at&&!z.length&&Q<=1&&!le,me=!(ge||ie&&Me),Ee=Nt===ul.VIRTUAL;return b.jsx(ze.cell,P({column:Te,width:xt,rowId:l,align:Te.align||"left",colIndex:Je,colSpan:tt,disableDragEvents:me,editCellState:re,isNotVisible:Ee,pinnedOffset:Y,pinnedPosition:Nt,sectionIndex:Re,sectionLength:It,gridHasFiller:se},Ge==null?void 0:Ge.cell),Te.field)};if(!X)return null;const ot=v.left.map((Te,Re)=>bt(Te,Re,Re,v.left.length,ul.LEFT)),st=v.right.map((Te,Re)=>{const Je=g.length-v.right.length+Re;return bt(Te,Re,Je,v.right.length,ul.RIGHT)}),Ze=g.length-v.left.length-v.right.length,dt=[];ee&&dt.push(bt(g[C],C-v.left.length,C,Ze,ul.VIRTUAL));for(let Te=k.firstColumnIndex;Te0&&b.jsx(gfe,{width:mt}),st.length>0&&b.jsx("div",{role:"presentation",className:we.filler}),st,te!==0&&b.jsx(o8,{pinnedRight:v.right.length>0})]}))}),bfe=Hd(vfe);function wfe({privateApiRef:n,props:o,children:i}){const s=x.useRef(n.current.getPublicApi());return b.jsx(zB.Provider,{value:o,children:b.jsx(ET.Provider,{value:n,children:b.jsx(LB.Provider,{value:s,children:i})})})}const xfe=n=>{const o=x.useRef(null),i=x.useRef(null),s=x.useRef(null);n.current.register("public",{rootElementRef:o}),n.current.register("private",{mainElementRef:i,virtualScrollerRef:s})},yfe=n=>{const o=ka();n.current.state.theme||(n.current.state.theme=o);const i=x.useRef(!0);x.useEffect(()=>{i.current?i.current=!1:n.current.setState(s=>P({},s,{theme:o}))},[n,o])},Afe=cse()&&window.localStorage.getItem("DEBUG")!=null,S0=()=>{},Cfe={debug:S0,info:S0,warn:S0,error:S0},TE=["debug","info","warn","error"];function FE(n,o,i=console){const s=TE.indexOf(o);if(s===-1)throw new Error(`MUI X: Log level ${o} not recognized.`);return TE.reduce((c,d,f)=>(f>=s?c[d]=(...p)=>{const[m,...g]=p;i[d](`MUI X: ${n} - ${m}`,...g)}:c[d]=S0,c),{})}const kfe=(n,o)=>{const i=x.useCallback(s=>Afe?FE(s,"debug",o.logger):o.logLevel?FE(s,o.logLevel.toString(),o.logger):Cfe,[o.logLevel,o.logger]);Zr(n,{getLogger:i},"private")};class Sfe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(o,i,s={}){let l=this.events[o];l||(l={highPriority:new Map,regular:new Map},this.events[o]=l),s.isFirst?l.highPriority.set(i,!0):l.regular.set(i,!0)}removeListener(o,i){this.events[o]&&(this.events[o].regular.delete(i),this.events[o].highPriority.delete(i))}removeAllListeners(){this.events={}}emit(o,...i){const s=this.events[o];if(!s)return;const l=Array.from(s.highPriority.keys()),c=Array.from(s.regular.keys());for(let d=l.length-1;d>=0;d-=1){const f=l[d];s.highPriority.has(f)&&f.apply(this,i)}for(let d=0;d(this.listeners.add(i),()=>{this.listeners.delete(i)}),this.getSnapshot=()=>this.value,this.update=i=>{this.value=i,this.listeners.forEach(s=>s(i))},this.value=o,this.listeners=new Set}}const UT=Symbol("mui.api_private"),Ife=n=>n.isPropagationStopped!==void 0;let DE=0;function Efe(n){var l;const o=(l=n.current)==null?void 0:l[UT];if(o)return o;const i={},s={state:i,store:a8.create(i),instanceId:{id:DE}};return DE+=1,s.getPublicApi=()=>n.current,s.register=(c,d)=>{Object.keys(d).forEach(f=>{const p=d[f],m=s[f];if((m==null?void 0:m.spying)===!0?m.target=p:s[f]=p,c==="public"){const g=n.current,v=g[f];(v==null?void 0:v.spying)===!0?v.target=p:g[f]=p}})},s.register("private",{caches:{},eventManager:new Sfe}),s}function Mfe(n){return{get state(){return n.current.state},get store(){return n.current.store},get instanceId(){return n.current.instanceId},[UT]:n.current}}function Pfe(n,o){var d;const i=x.useRef(),s=x.useRef();s.current||(s.current=Efe(i)),i.current||(i.current=Mfe(s));const l=x.useCallback((...f)=>{const[p,m,g={}]=f;if(g.defaultMuiPrevented=!1,Ife(g)&&g.isPropagationStopped())return;const v=o.signature===tc.DataGridPro||o.signature===tc.DataGridPremium?{api:s.current.getPublicApi()}:{};s.current.eventManager.emit(p,m,g,v)},[s,o.signature]),c=x.useCallback((f,p,m)=>{s.current.eventManager.on(f,p,m);const g=s.current;return()=>{g.eventManager.removeListener(f,p)}},[s]);return Zr(s,{subscribeEvent:c,publishEvent:l},"public"),n&&!((d=n.current)!=null&&d.state)&&(n.current=i.current),x.useImperativeHandle(n,()=>i.current,[i]),x.useEffect(()=>{const f=s.current;return()=>{f.publishEvent("unmount")}},[s]),s}const jfe=(n,o)=>{const i=x.useCallback(s=>{if(o.localeText[s]==null)throw new Error(`Missing translation for key ${s}.`);return o.localeText[s]},[o.localeText]);n.current.register("public",{getLocaleText:i})},Ofe=n=>{const o=x.useRef({}),i=x.useRef(!1),s=x.useCallback(g=>{i.current||!g||(i.current=!0,Object.values(g.appliers).forEach(v=>{v()}),i.current=!1)},[]),l=x.useCallback((g,v,w)=>{o.current[g]||(o.current[g]={processors:new Map,processorsAsArray:[],appliers:{}});const A=o.current[g];return A.processors.get(v)!==w&&(A.processors.set(v,w),A.processorsAsArray=Array.from(o.current[g].processors.values()),s(A)),()=>{o.current[g].processors.delete(v),o.current[g].processorsAsArray=Array.from(o.current[g].processors.values())}},[s]),c=x.useCallback((g,v,w)=>(o.current[g]||(o.current[g]={processors:new Map,processorsAsArray:[],appliers:{}}),o.current[g].appliers[v]=w,()=>{const A=o.current[g].appliers,k=Qe(A,[v].map(Ah));o.current[g].appliers=k}),[]),d=x.useCallback(g=>{s(o.current[g])},[s]),f=x.useCallback((...g)=>{const[v,w,A]=g;if(!o.current[v])return w;const k=o.current[v].processorsAsArray;let C=w;for(let M=0;M{const s=x.useRef(),l=x.useRef(`mui-${Math.round(Math.random()*1e9)}`),c=x.useCallback(()=>{s.current=n.current.registerPipeProcessor(o,l.current,i)},[n,i,o]);Dm(()=>{c()});const d=x.useRef(!0);x.useEffect(()=>(d.current?d.current=!1:c(),()=>{s.current&&(s.current(),s.current=null)}),[c])},s8=(n,o,i)=>{const s=x.useRef(),l=x.useRef(`mui-${Math.round(Math.random()*1e9)}`),c=x.useCallback(()=>{s.current=n.current.registerPipeApplier(o,l.current,i)},[n,i,o]);Dm(()=>{c()});const d=x.useRef(!0);x.useEffect(()=>(d.current?d.current=!1:c(),()=>{s.current&&(s.current(),s.current=null)}),[c])},w3=(n,o,i,s)=>{const l=x.useCallback(()=>{n.current.registerStrategyProcessor(o,i,s)},[n,s,i,o]);Dm(()=>{l()});const c=x.useRef(!0);x.useEffect(()=>{c.current?c.current=!1:l()},[l])},If="none",NE={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Rfe=n=>{const o=x.useRef(new Map),i=x.useRef({}),s=x.useCallback((p,m,g)=>{const v=()=>{const k=i.current[m],C=Qe(k,[p].map(Ah));i.current[m]=C};i.current[m]||(i.current[m]={});const w=i.current[m],A=w[p];return w[p]=g,!A||A===g||p===n.current.getActiveStrategy(NE[m])&&n.current.publishEvent("activeStrategyProcessorChange",m),v},[n]),l=x.useCallback((p,m)=>{const g=n.current.getActiveStrategy(NE[p]);if(g==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const v=i.current[p];if(!v||!v[g])throw new Error(`No processor found for processor "${p}" on strategy "${g}"`);const w=v[g];return w(m)},[n]),c=x.useCallback(p=>{const g=Array.from(o.current.entries()).find(([,v])=>v.group!==p?!1:v.isAvailable());return(g==null?void 0:g[0])??If},[]),d=x.useCallback((p,m,g)=>{o.current.set(m,{group:p,isAvailable:g}),n.current.publishEvent("strategyAvailabilityChange")},[n]);Zr(n,{registerStrategyProcessor:s,applyStrategyProcessor:l,getActiveStrategy:c,setStrategyAvailability:d},"private")},Bfe=n=>{const o=x.useRef({}),[,i]=x.useState(),s=x.useCallback(m=>{o.current[m.stateId]=m},[]),l=x.useCallback((m,g)=>{let v;if(_B(m)?v=m(n.current.state):v=m,n.current.state===v)return!1;let w=!1;const A=[];if(Object.keys(o.current).forEach(k=>{const C=o.current[k],M=C.stateSelector(n.current.state,n.current.instanceId),S=C.stateSelector(v,n.current.instanceId);S!==M&&(A.push({stateId:C.stateId,hasPropChanged:S!==C.propModel}),C.propModel!==void 0&&S!==C.propModel&&(w=!0))}),A.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${A[0].stateId}, therefore, you're not allowed to update ${A.map(k=>k.stateId).join(", ")} in the same transaction.`);if(w||(n.current.state=v,n.current.publishEvent&&n.current.publishEvent("stateChange",v),n.current.store.update(v)),A.length===1){const{stateId:k,hasPropChanged:C}=A[0],M=o.current[k],S=M.stateSelector(v,n.current.instanceId);M.propOnChange&&C&&M.propOnChange(S,{reason:g,api:n.current}),w||n.current.publishEvent(M.changeEvent,S,{reason:g})}return!w},[n]),c=x.useCallback((m,g,v)=>n.current.setState(w=>P({},w,{[m]:g(w[m])}),v),[n]),d=x.useCallback(()=>i(()=>n.current.state),[n]),f={setState:l,forceUpdate:d},p={updateControlState:c,registerControlState:s};Zr(n,f,"public"),Zr(n,p,"private")},Tfe=(n,o)=>{const i=Pfe(n,o);return xfe(i),yfe(i),kfe(i,o),Bfe(i),Ofe(i),Rfe(i),jfe(i,o),i.current.register("private",{rootProps:o}),i},Ps=(n,o,i)=>{const s=x.useRef(!1);s.current||(o.current.state=n(o.current.state,i,o),s.current=!0)};function n6(n,o){const i=typeof n=="string"?n:`${n}`;if(o.shouldAppendQuotes||o.escapeFormulas){const s=i.replace(/"/g,'""');return o.escapeFormulas&&["=","+","-","@"," ","\r"].includes(s[0])?`"'${s}"`:[o.delimiter,` -`,"\r",'"'].some(l=>i.includes(l))?`"${s}"`:s}return i}const GT=(n,o)=>{var c,d;const{csvOptions:i,ignoreValueFormatter:s}=o;let l;if(s){const f=n.colDef.type;f==="number"?l=String(n.value):f==="date"||f==="dateTime"?l=(c=n.value)==null?void 0:c.toISOString():typeof((d=n.value)==null?void 0:d.toString)=="function"?l=n.value.toString():l=n.value}else l=n.formattedValue;return n6(l,i)};class o6{constructor(o){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=o}addValue(o){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),o==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(o,this.options.csvOptions):this.rowString+=o,this.isEmpty=!1}getRowString(){return this.rowString}}const Ffe=({id:n,columns:o,getCellParams:i,csvOptions:s,ignoreValueFormatter:l})=>{const c=new o6({csvOptions:s});return o.forEach(d=>{const f=i(n,d.field);c.addValue(GT(f,{ignoreValueFormatter:l,csvOptions:s}))}),c.getRowString()};function Dfe(n){const{columns:o,rowIds:i,csvOptions:s,ignoreValueFormatter:l,apiRef:c}=n,d=i.reduce((v,w)=>`${v}${Ffe({id:w,columns:o,getCellParams:c.current.getCellParams,ignoreValueFormatter:l,csvOptions:s})}\r -`,"").trim();if(!s.includeHeaders)return d;const f=o.filter(v=>v.field!==Bp.field),p=[];if(s.includeColumnGroupsHeaders){const v=c.current.getAllGroupDetails();let w=0;const A=f.reduce((k,C)=>{const M=c.current.getColumnGroupPath(C.field);return k[C.field]=M,w=Math.max(w,M.length),k},{});for(let k=0;k{const S=(A[M.field]||[])[k],I=v[S];C.addValue(I?I.headerName||I.groupId:"")})}}const m=new o6({csvOptions:s,sanitizeCellValue:n6});return f.forEach(v=>{m.addValue(v.headerName||v.field)}),p.push(m),`${`${p.map(v=>v.getRowString()).join(`\r + ))`:Wd(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),v=n.vars?f:px(l,f,d),w=n.vars?m:px(l,m,p),A=n.vars?f:px(w,f,d),k={backgroundColor:m,"&:hover":{backgroundColor:g,"@media (hover: none)":{backgroundColor:m}}};return P({"--unstable_DataGrid-radius":typeof i=="number"?`${i}px`:i,"--unstable_DataGrid-headWeight":n.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":c,"--DataGrid-containerBackground":s,"--DataGrid-pinnedBackground":l,"--DataGrid-rowBorderColor":o,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:o,borderRadius:"var(--unstable_DataGrid-radius)",color:(n.vars||n).palette.text.primary},n.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`.${we.main} > *:first-of-type`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${we.autoHeight}`]:{height:"auto"},[`&.${we.autosizing}`]:{[`& .${we.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${we.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${we.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${we.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${we.groupingCriteriaCell}`]:{width:"unset"},[`& .${we.treeDataGroupingCell}`]:{width:"unset"}},[`& .${we.columnHeader}, & .${we.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${we.columnHeader}:focus-within, & .${we.cell}:focus-within`]:{outline:`solid ${n.vars?`rgba(${n.vars.palette.primary.mainChannel} / 0.5)`:Wd(n.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${we.columnHeader}:focus, & .${we.cell}:focus`]:{outline:`solid ${n.palette.primary.main} 1px`},[`& .${we.columnHeaderCheckbox}, & .${we.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${we.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${we["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${we["columnHeader--sorted"]} .${we.iconButtonContainer}, & .${we["columnHeader--filtered"]} .${we.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${we.columnHeader}:not(.${we["columnHeader--sorted"]}) .${we.sortIcon}`]:{opacity:0,transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.shorter})},[`& .${we.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${we.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${we["columnHeader--filledGroup"]} .${we.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${we.sortIcon}, & .${we.filterIcon}`]:{fontSize:"inherit"},[`& .${we["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${we["columnHeader--alignCenter"]} .${we.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${we["columnHeader--alignRight"]} .${we.columnHeaderDraggableContainer}, & .${we["columnHeader--alignRight"]} .${we.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${we["columnHeader--alignCenter"]} .${we.menuIcon}, & .${we["columnHeader--alignRight"]} .${we.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${we["columnHeader--alignRight"]} .${we.menuIcon}, & .${we["columnHeader--alignRight"]} .${we.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${we["columnHeader--moving"]}`]:{backgroundColor:(n.vars||n).palette.action.hover},[`& .${we["columnHeader--pinnedLeft"]}, & .${we["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${we.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",color:o},[`& .${we.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${we.columnHeaders}:hover`]:PE,[`& .${we.columnHeader}:hover`]:jE,[`& .${we.columnHeader}:not(.${we["columnHeader--sorted"]}):hover .${we.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${we.columnHeaders}`]:PE,[`& .${we.columnHeader}`]:jE},[`& .${we["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${we["columnSeparator--sideRight"]}`]:{right:-12},[`& .${we["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(n.vars||n).palette.text.primary,"@media (hover: none)":{color:o}},[`&.${we["columnSeparator--resizing"]}`]:{color:(n.vars||n).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${we.iconSeparator}`]:{color:"inherit"},[`& .${we.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${we.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${we.headerFilterRow}`]:{[`& .${we.columnHeader}`]:{boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)"}},[`.${we.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${we["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${we.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":k},[`& .${we["container--top"]}, & .${we["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${we.cell}`]:{height:"var(--height)",minWidth:"var(--width)",maxWidth:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":k},[`& .${we["virtualScrollerContent--overflowed"]} .${we["row--lastVisible"]} .${we.cell}`]:{borderTopColor:"transparent"},[`&.${we["root--disableUserSelection"]} .${we.cell}`]:{userSelect:"none"},[`& .${we["row--dynamicHeight"]} > .${we.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${we.cellEmpty}`]:{padding:0,height:"unset"},[`& .${we.cell}.${we["cell--selectionMode"]}`]:{cursor:"default"},[`& .${we.cell}.${we["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:n.shadows[2],backgroundColor:(n.vars||n).palette.background.paper,"&:focus-within":{outline:`solid ${(n.vars||n).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${we["row--editing"]}`]:{boxShadow:n.shadows[2]},[`& .${we["row--editing"]} .${we.cell}`]:{boxShadow:n.shadows[0],backgroundColor:(n.vars||n).palette.background.paper},[`& .${we.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${we.booleanCell}[data-value="true"]`]:{color:(n.vars||n).palette.text.secondary},[`& .${we.booleanCell}[data-value="false"]`]:{color:(n.vars||n).palette.text.disabled},[`& .${we.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:n.spacing(1)},[`& .${we.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(n.vars||n).palette.action.disabledOpacity},[`& .${we["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${we.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${we.withBorderColor}`]:{borderColor:o},[`& .${we["cell--withLeftBorder"]}, & .${we["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${we["cell--withRightBorder"]}, & .${we["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${we["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${we["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${we["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${we["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${we.virtualScrollerContent} .${we.row}`]:{"&:hover":{[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{backgroundColor:v}},"&.Mui-selected":{[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{backgroundColor:w},"&:hover":{[`& .${we["cell--pinnedLeft"]}, & .${we["cell--pinnedRight"]}`]:{backgroundColor:A}}}},[`& .${we.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${we.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${we.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${we.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${we["columnHeader--dragging"]}, & .${we["row--dragging"]}`]:{background:(n.vars||n).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(n.vars||n).palette.action.disabledOpacity},[`& .${we["row--dragging"]}`]:{background:(n.vars||n).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(n.vars||n).palette.action.disabledOpacity,[`& .${we.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${we.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${we.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:n.spacing(2)},[`& .${we.treeDataGroupingCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${we.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${we.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:n.spacing(2)},[`.${we.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${we["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--rowBorderColor)"},[`&.${we["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${we.filler}`]:{flex:1},[`& .${we["filler--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${we["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${we.virtualScrollerContent}, & .${we["scrollbar--vertical"]}, & .${we.pinnedRows}`]:{display:"none"}}})});function px(n,o,i,s=1){const l=(p,m)=>Math.round((p**(1/s)*(1-i)+m**(1/s)*i)**s),c=q2(n),d=q2(o),f=[l(c.values[0],d.values[0]),l(c.values[1],d.values[1]),l(c.values[2],d.values[2])];return tb({type:"rgb",values:f})}const nue=["className"],oue=n=>{const{autoHeight:o,density:i,classes:s,showCellVerticalBorder:l}=n,c={root:["root",o&&"autoHeight",`root--density${Ke(i)}`,"withBorderColor",l&&"withVerticalBorder"]};return Bt(c,Tn,s)},iue=x.forwardRef(function(o,i){const s=ir(),{className:l}=o,c=Qe(o,nue),d=Ru(),f=$t(d,I2),p=d.current.rootElementRef,m=Xn(p,i),g=P({},s,{density:f}),v=oue(g),[w,A]=x.useState(!1);return ko(()=>{A(!0)},[]),w?b.jsx(rue,P({ref:m,className:nt(l,v.root),ownerState:g},c)):null}),aue=["className"],sue=n=>{const{classes:o}=n;return Bt({root:["footerContainer","withBorderColor"]},Tn,o)},lue=zr("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(n,o)=>o.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),cue=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,aue),c=ir(),d=sue(c);return b.jsx(lue,P({ref:i,className:nt(d.root,s),ownerState:c},l))}),uue=["className"],due=n=>{const{classes:o}=n;return Bt({root:["overlay"]},Tn,o)},fue=zr("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(n,o)=>o.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),t8=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,uue),c=ir(),d=due(c);return b.jsx(fue,P({ref:i,className:nt(d.root,s),ownerState:c},l))}),pue=n=>{const{classes:o,open:i}=n;return Bt({root:["menuIcon",i&&"menuOpen"],button:["menuIconButton"]},Tn,o)},hue=x.memo(n=>{var v,w;const{colDef:o,open:i,columnMenuId:s,columnMenuButtonId:l,iconButtonRef:c}=n,d=vn(),f=ir(),p=P({},n,{classes:f.classes}),m=pue(p),g=x.useCallback(A=>{A.preventDefault(),A.stopPropagation(),d.current.toggleColumnMenu(o.field)},[d,o.field]);return b.jsx("div",{className:m.root,children:b.jsx(f.slots.baseTooltip,P({title:d.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(v=f.slotProps)==null?void 0:v.baseTooltip,{children:b.jsx(f.slots.baseIconButton,P({ref:c,tabIndex:-1,className:m.button,"aria-label":d.current.getLocaleText("columnMenuLabel"),size:"small",onClick:g,"aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?s:void 0,id:l},(w=f.slotProps)==null?void 0:w.baseIconButton,{children:b.jsx(f.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function mue({columnMenuId:n,columnMenuButtonId:o,ContentComponent:i,contentComponentProps:s,field:l,open:c,target:d,onExited:f}){const p=vn(),m=p.current.getColumn(l),g=ln(v=>{v&&(v.stopPropagation(),d!=null&&d.contains(v.target))||p.current.hideColumnMenu()});return!d||!m?null:b.jsx(cT,{placement:`bottom-${m.align==="right"?"start":"end"}`,open:c,target:d,onClose:g,onExited:f,children:b.jsx(i,P({colDef:m,hideMenu:g,open:c,id:n,labelledby:o},s))})}const gue=["className"],vue=n=>{const{classes:o}=n;return Bt({root:["columnHeaderTitle"]},Tn,o)},bue=zr("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(n,o)=>o.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),wue=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,gue),c=ir(),d=vue(c);return b.jsx(bue,P({ref:i,className:nt(d.root,s),ownerState:c},l))});function xue(n){var p;const{label:o,description:i}=n,s=ir(),l=x.useRef(null),[c,d]=x.useState(""),f=x.useCallback(()=>{if(!i&&(l!=null&&l.current)){const m=Ece(l.current);d(m?o:"")}},[i,o]);return b.jsx(s.slots.baseTooltip,P({title:i||c},(p=s.slotProps)==null?void 0:p.baseTooltip,{children:b.jsx(wue,{onMouseOver:f,ref:l,children:o})}))}const yue=["resizable","resizing","height","side"];var r8=function(n){return n.Left="left",n.Right="right",n}(r8||{});const Aue=n=>{const{resizable:o,resizing:i,classes:s,side:l}=n,c={root:["columnSeparator",o&&"columnSeparator--resizable",i&&"columnSeparator--resizing",l&&`columnSeparator--side${Ke(l)}`],icon:["iconSeparator"]};return Bt(c,Tn,s)};function Cue(n){const{height:o,side:i=r8.Right}=n,s=Qe(n,yue),l=ir(),c=P({},n,{side:i,classes:l.classes}),d=Aue(c),f=x.useCallback(p=>{p.preventDefault(),p.stopPropagation()},[]);return b.jsx("div",P({className:d.root,style:{minHeight:o,opacity:l.showColumnVerticalBorder?0:1}},s,{onClick:f,children:b.jsx(l.slots.columnResizeIcon,{className:d.icon})}))}const kue=x.memo(Cue),Sue=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],WT=x.forwardRef(function(o,i){const{classes:s,colIndex:l,height:c,isResizing:d,sortDirection:f,hasFocus:p,tabIndex:m,separatorSide:g,isDraggable:v,headerComponent:w,description:A,width:k,columnMenuIconButton:C=null,columnMenu:M=null,columnTitleIconButtons:S=null,headerClassName:I,label:E,resizable:j,draggableContainerProps:B,columnHeaderSeparatorProps:D,style:R}=o,N=Qe(o,Sue),U=Ru(),L=ir(),_=x.useRef(null),V=Xn(_,i);let $="none";return f!=null&&($=f==="asc"?"ascending":"descending"),x.useLayoutEffect(()=>{var Q;const z=U.current.state.columnMenu;if(p&&!z.open){const F=_.current.querySelector('[tabindex="0"]')||_.current;F==null||F.focus(),(Q=U.current.columnHeadersContainerRef)!=null&&Q.current&&(U.current.columnHeadersContainerRef.current.scrollLeft=0)}},[U,p]),b.jsxs("div",P({ref:V,className:nt(s.root,I),style:P({},R,{height:c,width:k,minWidth:k,maxWidth:k}),role:"columnheader",tabIndex:m,"aria-colindex":l+1,"aria-sort":$,"aria-label":w==null?E:void 0},N,{children:[b.jsxs("div",P({className:s.draggableContainer,draggable:v,role:"presentation"},B,{children:[b.jsxs("div",{className:s.titleContainer,role:"presentation",children:[b.jsx("div",{className:s.titleContainerContent,children:w!==void 0?w:b.jsx(xue,{label:E,description:A,columnWidth:k})}),S]}),C]})),b.jsx(kue,P({resizable:!L.disableColumnResize&&!!j,resizing:d,height:c,side:g},D)),M]}))}),Iue=n=>{const{colDef:o,classes:i,isDragging:s,sortDirection:l,showRightBorder:c,showLeftBorder:d,filterItemsCounter:f,pinnedPosition:p}=n,m=l!=null,g=f!=null&&f>0,v=o.type==="number",w={root:["columnHeader",o.headerAlign==="left"&&"columnHeader--alignLeft",o.headerAlign==="center"&&"columnHeader--alignCenter",o.headerAlign==="right"&&"columnHeader--alignRight",o.sortable&&"columnHeader--sortable",s&&"columnHeader--moving",m&&"columnHeader--sorted",g&&"columnHeader--filtered",v&&"columnHeader--numeric","withBorderColor",c&&"columnHeader--withRightBorder",d&&"columnHeader--withLeftBorder",p==="left"&&"columnHeader--pinnedLeft",p==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Bt(w,Tn,i)};function Eue(n){var be,ke,ze;const{colDef:o,columnMenuOpen:i,colIndex:s,headerHeight:l,isResizing:c,isLast:d,sortDirection:f,sortIndex:p,filterItemsCounter:m,hasFocus:g,tabIndex:v,disableReorder:w,separatorSide:A,style:k,pinnedPosition:C,indexInSection:M,sectionLength:S,gridHasFiller:I}=n,E=Ru(),j=ir(),B=x.useRef(null),D=Fo(),R=Fo(),N=x.useRef(null),[U,L]=x.useState(i),_=x.useMemo(()=>!j.disableColumnReorder&&!w&&!o.disableReorder,[j.disableColumnReorder,w,o.disableReorder]);let V;o.renderHeader&&(V=o.renderHeader(E.current.getColumnHeaderParams(o.field)));const $=Jb(C,M),z=Xb(C,M,S,j.showCellVerticalBorder,I),Q=P({},n,{classes:j.classes,showRightBorder:z,showLeftBorder:$}),G=Iue(Q),F=x.useCallback(Ge=>Ve=>{$m(Ve)||E.current.publishEvent(Ge,E.current.getColumnHeaderParams(o.field),Ve)},[E,o.field]),q=x.useMemo(()=>({onClick:F("columnHeaderClick"),onDoubleClick:F("columnHeaderDoubleClick"),onMouseOver:F("columnHeaderOver"),onMouseOut:F("columnHeaderOut"),onMouseEnter:F("columnHeaderEnter"),onMouseLeave:F("columnHeaderLeave"),onKeyDown:F("columnHeaderKeyDown"),onFocus:F("columnHeaderFocus"),onBlur:F("columnHeaderBlur")}),[F]),W=x.useMemo(()=>_?{onDragStart:F("columnHeaderDragStart"),onDragEnter:F("columnHeaderDragEnter"),onDragOver:F("columnHeaderDragOver"),onDragEnd:F("columnHeaderDragEnd")}:{},[_,F]),X=x.useMemo(()=>({onMouseDown:F("columnSeparatorMouseDown"),onDoubleClick:F("columnSeparatorDoubleClick")}),[F]);x.useEffect(()=>{U||L(i)},[U,i]);const te=x.useCallback(()=>{L(!1)},[]),se=!j.disableColumnMenu&&!o.disableColumnMenu&&b.jsx(hue,{colDef:o,columnMenuId:D,columnMenuButtonId:R,open:U,iconButtonRef:N}),de=b.jsx(mue,{columnMenuId:D,columnMenuButtonId:R,field:o.field,open:i,target:N.current,ContentComponent:j.slots.columnMenu,contentComponentProps:(be=j.slotProps)==null?void 0:be.columnMenu,onExited:te}),ee=o.sortingOrder??j.sortingOrder,fe=(o.sortable||f!=null)&&!o.hideSortIcons&&!j.disableColumnSorting,he=b.jsxs(x.Fragment,{children:[!j.disableColumnFilter&&b.jsx(j.slots.columnHeaderFilterIconButton,P({field:o.field,counter:m},(ke=j.slotProps)==null?void 0:ke.columnHeaderFilterIconButton)),fe&&b.jsx(j.slots.columnHeaderSortIcon,P({field:o.field,direction:f,index:p,sortingOrder:ee,disabled:!o.sortable},(ze=j.slotProps)==null?void 0:ze.columnHeaderSortIcon))]});x.useLayoutEffect(()=>{var Ve;const Ge=E.current.state.columnMenu;if(g&&!Ge.open){const We=B.current.querySelector('[tabindex="0"]')||B.current;We==null||We.focus(),(Ve=E.current.columnHeadersContainerRef)!=null&&Ve.current&&(E.current.columnHeadersContainerRef.current.scrollLeft=0)}},[E,g]);const Ie=typeof o.headerClassName=="function"?o.headerClassName({field:o.field,colDef:o}):o.headerClassName,ve=o.headerName??o.field;return b.jsx(WT,P({ref:B,classes:G,columnMenuOpen:i,colIndex:s,height:l,isResizing:c,sortDirection:f,hasFocus:g,tabIndex:v,separatorSide:A,isDraggable:_,headerComponent:V,description:o.description,elementId:o.field,width:o.computedWidth,columnMenuIconButton:se,columnTitleIconButtons:he,headerClassName:nt(Ie,d&&we["columnHeader--last"]),label:ve,resizable:!j.disableColumnResize&&!!o.resizable,"data-field":o.field,columnMenu:de,draggableContainerProps:W,columnHeaderSeparatorProps:X,style:k},q))}const Mue=Ld(Eue),Pue=["className"],jue=n=>{const{classes:o}=n;return Bt({root:["iconButtonContainer"]},Tn,o)},Oue=zr("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(n,o)=>o.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),qT=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,Pue),c=ir(),d=jue(c);return b.jsx(Oue,P({ref:i,className:nt(d.root,s),ownerState:c},l))}),Rue=["direction","index","sortingOrder","disabled"],Bue=n=>{const{classes:o}=n;return Bt({icon:["sortIcon"]},Tn,o)};function Tue(n,o,i,s){let l;const c={};return o==="asc"?l=n.columnSortedAscendingIcon:o==="desc"?l=n.columnSortedDescendingIcon:(l=n.columnUnsortedIcon,c.sortingOrder=s),l?b.jsx(l,P({fontSize:"small",className:i},c)):null}function Fue(n){var w;const{direction:o,index:i,sortingOrder:s,disabled:l}=n,c=Qe(n,Rue),d=vn(),f=ir(),p=P({},n,{classes:f.classes}),m=Bue(p),g=Tue(f.slots,o,m.icon,s);if(!g)return null;const v=b.jsx(f.slots.baseIconButton,P({tabIndex:-1,"aria-label":d.current.getLocaleText("columnHeaderSortIconLabel"),title:d.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:l},(w=f.slotProps)==null?void 0:w.baseIconButton,c,{children:g}));return b.jsxs(qT,{children:[i!=null&&b.jsx(s3,{badgeContent:i,color:"default",overlap:"circular",children:v}),i==null&&v]})}const Due=x.memo(Fue),Nue=n=>{const{classes:o}=n;return Bt({icon:["filterIcon"]},Tn,o)};function $ue(n){var k,C;const{counter:o,field:i,onClick:s}=n,l=vn(),c=ir(),d=P({},n,{classes:c.classes}),f=Nue(d),p=$t(l,Jh),m=Fo(),g=Fo(),v=x.useCallback(M=>{M.preventDefault(),M.stopPropagation();const{open:S,openedPanelValue:I}=Jh(l.current.state);S&&I===kf.filters?l.current.hideFilterPanel():l.current.showFilterPanel(void 0,g,m),s&&s(l.current.getColumnHeaderParams(i),M)},[l,i,s,g,m]);if(!o)return null;const w=p.open&&p.labelId===m,A=b.jsx(c.slots.baseIconButton,P({id:m,onClick:v,color:"default","aria-label":l.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":w,"aria-controls":w?g:void 0},(k=c.slotProps)==null?void 0:k.baseIconButton,{children:b.jsx(c.slots.columnFilteredIcon,{className:f.icon,fontSize:"small"})}));return b.jsx(c.slots.baseTooltip,P({title:l.current.getLocaleText("columnHeaderFiltersTooltipActive")(o),enterDelay:1e3},(C=c.slotProps)==null?void 0:C.baseTooltip,{children:b.jsxs(qT,{children:[o>1&&b.jsx(s3,{badgeContent:o,color:"default",children:A}),o===1&&A]})}))}const OE=_r(b.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),RE=_r(b.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),BE=_r(b.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),TE=_r(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Lue=_r(b.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),FE=_r(b.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),zue=_r(b.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");_r(b.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");_r(b.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Hue=_r(b.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),Uue=_r(b.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Gue=_r(b.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Vue=_r(b.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Que=_r(b.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Wue=_r(b.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),hx=_r(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),DE=_r(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),que=_r(b.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),_ue=_r(b.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),NE=_r(b.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Yue=_r(b.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Kue=_r(b.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Xue=_r(b.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),Jue=_r(b.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Zue=_r(b.jsx("g",{children:b.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),ede=_r(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");_r(b.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const tde=_r(b.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),rde=["hideMenu","colDef","id","labelledby","className","children","open"],nde=_e(_h)(()=>({minWidth:248})),ode=x.forwardRef(function(o,i){const{hideMenu:s,id:l,labelledby:c,className:d,children:f,open:p}=o,m=Qe(o,rde),g=x.useCallback(v=>{PT(v.key)&&v.preventDefault(),Kle(v.key)&&s(v)},[s]);return b.jsx(nde,P({id:l,ref:i,className:nt(we.menuList,d),"aria-labelledby":c,onKeyDown:g,autoFocus:p},m,{children:f}))}),ide=["displayOrder"],ade=n=>{const o=Ru(),{defaultSlots:i,defaultSlotProps:s,slots:l={},slotProps:c={},hideMenu:d,colDef:f,addDividers:p=!0}=n,m=x.useMemo(()=>P({},i,l),[i,l]),g=x.useMemo(()=>{if(!c||Object.keys(c).length===0)return s;const A=P({},c);return Object.entries(s).forEach(([k,C])=>{A[k]=P({},C,c[k]||{})}),A},[s,c]),v=o.current.unstable_applyPipeProcessors("columnMenu",[],n.colDef),w=x.useMemo(()=>{const A=Object.keys(i);return Object.keys(l).filter(k=>!A.includes(k))},[l,i]);return x.useMemo(()=>{const C=Array.from(new Set([...v,...w])).filter(M=>m[M]!=null).sort((M,S)=>{const I=g[M],E=g[S],j=Number.isFinite(I==null?void 0:I.displayOrder)?I.displayOrder:100,B=Number.isFinite(E==null?void 0:E.displayOrder)?E.displayOrder:100;return j-B});return C.reduce((M,S,I)=>{let E={colDef:f,onClick:d};const j=g[S];if(j){const B=Qe(j,ide);E=P({},E,B)}return p&&I!==C.length-1?[...M,[m[S],E],[SA,{}]]:[...M,[m[S],E]]},[])},[p,f,v,d,m,g,w])};function sde(n){const{colDef:o,onClick:i}=n,s=vn(),l=ir(),f=La(s).filter(m=>m.disableColumnMenu!==!0).length===1,p=x.useCallback(m=>{f||(s.current.setColumnVisibility(o.field,!1),i(m))},[s,o.field,i,f]);return l.disableColumnSelector||o.hideable===!1?null:b.jsxs(ho,{onClick:p,disabled:f,children:[b.jsx(U2,{children:b.jsx(l.slots.columnMenuHideIcon,{fontSize:"small"})}),b.jsx(qs,{children:s.current.getLocaleText("columnMenuHideColumn")})]})}function lde(n){const{onClick:o}=n,i=vn(),s=ir(),l=x.useCallback(c=>{o(c),i.current.showPreferences(kf.columns)},[i,o]);return s.disableColumnSelector?null:b.jsxs(ho,{onClick:l,children:[b.jsx(U2,{children:b.jsx(s.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),b.jsx(qs,{children:i.current.getLocaleText("columnMenuManageColumns")})]})}function cde(n){return b.jsxs(x.Fragment,{children:[b.jsx(sde,P({},n)),b.jsx(lde,P({},n))]})}function ude(n){const{colDef:o,onClick:i}=n,s=vn(),l=ir(),c=x.useCallback(d=>{i(d),s.current.showFilterPanel(o.field)},[s,o.field,i]);return l.disableColumnFilter||!o.filterable?null:b.jsxs(ho,{onClick:c,children:[b.jsx(U2,{children:b.jsx(l.slots.columnMenuFilterIcon,{fontSize:"small"})}),b.jsx(qs,{children:s.current.getLocaleText("columnMenuFilter")})]})}function dde(n){const{colDef:o,onClick:i}=n,s=vn(),l=$t(s,s1),c=ir(),d=x.useMemo(()=>{if(!o)return null;const g=l.find(v=>v.field===o.field);return g==null?void 0:g.sort},[o,l]),f=o.sortingOrder??c.sortingOrder,p=x.useCallback(g=>{i(g);const v=g.currentTarget.getAttribute("data-value")||null;s.current.sortColumn(o.field,v===d?null:v)},[s,o,i,d]);if(c.disableColumnSorting||!o||!o.sortable||!f.some(g=>!!g))return null;const m=g=>{const v=s.current.getLocaleText(g);return typeof v=="function"?v(o):v};return b.jsxs(x.Fragment,{children:[f.includes("asc")&&d!=="asc"?b.jsxs(ho,{onClick:p,"data-value":"asc",children:[b.jsx(U2,{children:b.jsx(c.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),b.jsx(qs,{children:m("columnMenuSortAsc")})]}):null,f.includes("desc")&&d!=="desc"?b.jsxs(ho,{onClick:p,"data-value":"desc",children:[b.jsx(U2,{children:b.jsx(c.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),b.jsx(qs,{children:m("columnMenuSortDesc")})]}):null,f.includes(null)&&d!=null?b.jsxs(ho,{onClick:p,children:[b.jsx(U2,{}),b.jsx(qs,{children:s.current.getLocaleText("columnMenuUnsort")})]}):null]})}const fde=["defaultSlots","defaultSlotProps","slots","slotProps"],pde={columnMenuSortItem:dde,columnMenuFilterItem:ude,columnMenuColumnsItem:cde},hde={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},mde=x.forwardRef(function(o,i){const{defaultSlots:s,defaultSlotProps:l,slots:c,slotProps:d}=o,f=Qe(o,fde),p=ade(P({},f,{defaultSlots:s,defaultSlotProps:l,slots:c,slotProps:d}));return b.jsx(ode,P({ref:i},f,{children:p.map(([m,g],v)=>b.jsx(m,P({},g),v))}))}),gde=x.forwardRef(function(o,i){return b.jsx(mde,P({},o,{ref:i,defaultSlots:pde,defaultSlotProps:hde}))}),vde=["className","slotProps"],bde=n=>{const{classes:o}=n;return Bt({root:["panelWrapper"]},Tn,o)},wde=_e("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(n,o)=>o.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),xde=()=>!0,_T=x.forwardRef(function(o,i){const{className:s,slotProps:l={}}=o,c=Qe(o,vde),d=ir(),f=bde(d);return b.jsx(SB,P({open:!0,disableEnforceFocus:!0,isEnabled:xde},l.TrapFocus,{children:b.jsx(wde,P({ref:i,tabIndex:-1,className:nt(s,f.root),ownerState:d},c))}))}),yde=(n,o)=>{const i=new Set(Object.keys(n).filter(c=>n[c]===!1)),s=new Set(Object.keys(o).filter(c=>o[c]===!1));if(i.size!==s.size)return!1;let l=!0;return i.forEach(c=>{s.has(c)||(l=!1)}),l},Ade=(n,o)=>(n.headerName||n.field).toLowerCase().indexOf(o)>-1,Cde=n=>{const{classes:o}=n;return Bt({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Tn,o)},$E=new Intl.Collator;function YT(n){var $,z,Q;const o=vn(),i=x.useRef(null),s=$t(o,tc),l=Mf(()=>w1(o)).current,c=$t(o,w1),d=ir(),[f,p]=x.useState(""),m=Cde(d),{sort:g,searchPredicate:v=Ade,autoFocusSearchField:w=!0,disableShowHideToggle:A=!1,disableResetButton:k=!1,toggleAllMode:C="all",getTogglableColumns:M}=n,S=x.useMemo(()=>yde(c,l),[c,l]),I=x.useMemo(()=>{switch(g){case"asc":return[...s].sort((G,F)=>$E.compare(G.headerName||G.field,F.headerName||F.field));case"desc":return[...s].sort((G,F)=>-$E.compare(G.headerName||G.field,F.headerName||F.field));default:return s}},[s,g]),E=G=>{const{name:F}=G.target;o.current.setColumnVisibility(F,c[F]===!1)},j=x.useMemo(()=>{const G=M?M(I):null,F=G?I.filter(({field:q})=>G.includes(q)):I;return f?F.filter(q=>v(q,f.toLowerCase())):F},[I,f,v,M]),B=x.useCallback(G=>{const F=w1(o),q=P({},F),W=M?M(s):null;return(C==="filteredOnly"?j:s).forEach(X=>{X.hideable&&(W==null||W.includes(X.field))&&(G?delete q[X.field]:q[X.field]=!1)}),o.current.setColumnVisibilityModel(q)},[o,s,M,C,j]),D=x.useCallback(G=>{p(G.target.value)},[]),R=x.useMemo(()=>j.filter(G=>G.hideable),[j]),N=x.useMemo(()=>R.every(G=>c[G.field]==null||c[G.field]!==!1),[c,R]),U=x.useMemo(()=>R.every(G=>c[G.field]===!1),[c,R]),L=x.useRef(null);x.useEffect(()=>{w?i.current.focus():L.current&&typeof L.current.focus=="function"&&L.current.focus()},[w]);let _=!1;const V=G=>_===!1&&G.hideable!==!1?(_=!0,!0):!1;return b.jsxs(x.Fragment,{children:[b.jsx(Sde,{className:m.header,ownerState:d,children:b.jsx(d.slots.baseTextField,P({placeholder:o.current.getLocaleText("columnsManagementSearchTitle"),inputRef:i,value:f,onChange:D,variant:"outlined",size:"small",InputProps:{startAdornment:b.jsx(d.slots.baseInputAdornment,{position:"start",children:b.jsx(d.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},($=d.slotProps)==null?void 0:$.baseTextField))}),b.jsxs(kde,{className:m.root,ownerState:d,children:[j.map(G=>{var F;return b.jsx(z2,{className:m.row,control:b.jsx(d.slots.baseCheckbox,P({disabled:G.hideable===!1,checked:c[G.field]!==!1,onClick:E,name:G.field,sx:{p:.5},inputRef:V(G)?L:void 0},(F=d.slotProps)==null?void 0:F.baseCheckbox)),label:G.headerName||G.field},G.field)}),j.length===0&&b.jsx(Ede,{ownerState:d,children:o.current.getLocaleText("columnsManagementNoColumns")})]}),(!A||!k)&&j.length>0?b.jsxs(Ide,{ownerState:d,className:m.footer,children:[A?b.jsx("span",{}):b.jsx(z2,{control:b.jsx(d.slots.baseCheckbox,P({disabled:R.length===0,checked:N,indeterminate:!N&&!U,onClick:()=>B(!N),name:o.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(z=d.slotProps)==null?void 0:z.baseCheckbox)),label:o.current.getLocaleText("columnsManagementShowHideAllText")}),k?null:b.jsx(d.slots.baseButton,P({onClick:()=>o.current.setColumnVisibilityModel(l),disabled:S},(Q=d.slotProps)==null?void 0:Q.baseButton,{children:o.current.getLocaleText("columnsManagementReset")}))]}):null]})}const kde=_e("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(n,o)=>o.columnsManagement})(({theme:n})=>({padding:n.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),Sde=_e("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(n,o)=>o.columnsManagementHeader})(({theme:n})=>({padding:n.spacing(1.5,3)})),Ide=_e("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(n,o)=>o.columnsManagementFooter})(({theme:n})=>({padding:n.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${n.palette.divider}`})),Ede=_e("div")(({theme:n})=>({padding:n.spacing(.5,0),color:n.palette.grey[500]}));function Mde(n){var i;const o=ir();return b.jsx(_T,P({},n,{children:b.jsx(YT,P({},(i=o.slotProps)==null?void 0:i.columnsManagement))}))}const Pde=["children","className","classes"],jde=Yt("MuiDataGrid",["panel","paper"]),Ode=_e(Eu,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(n,o)=>o.panel})(({theme:n})=>({zIndex:n.zIndex.modal})),Rde=_e(Js,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(n,o)=>o.paper})(({theme:n})=>({backgroundColor:(n.vars||n).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${n.spacing(.5)})`,overflow:"auto"})),Bde=x.forwardRef((n,o)=>{const{children:i,className:s}=n,l=Qe(n,Pde),c=vn(),d=ir(),f=jde,[p,m]=x.useState(!1),g=x.useCallback(()=>{c.current.hidePreferences()},[c]),v=x.useCallback(C=>{g3(C.key)&&c.current.hidePreferences()},[c]),w=x.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{m(!0)},effect:()=>()=>{m(!1)}}],[]),[A,k]=x.useState(null);return x.useEffect(()=>{var M,S;const C=(S=(M=c.current.rootElementRef)==null?void 0:M.current)==null?void 0:S.querySelector('[data-id="gridPanelAnchor"]');C&&k(C)},[c]),A?b.jsx(Ode,P({ref:o,placement:"bottom-start",className:nt(s,f.panel),ownerState:d,anchorEl:A,modifiers:w},l,{children:b.jsx(l3,{mouseEvent:"onMouseUp",onClickAway:g,children:b.jsx(Rde,{className:f.paper,ownerState:d,elevation:8,onKeyDown:v,children:p&&i})})})):null}),Tde=["className"],Fde=n=>{const{classes:o}=n;return Bt({root:["panelContent"]},Tn,o)},Dde=zr("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(n,o)=>o.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Nde(n){const{className:o}=n,i=Qe(n,Tde),s=ir(),l=Fde(s);return b.jsx(Dde,P({className:nt(o,l.root),ownerState:s},i))}const $de=["className"],Lde=n=>{const{classes:o}=n;return Bt({root:["panelFooter"]},Tn,o)},zde=zr("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(n,o)=>o.panelFooter})(({theme:n})=>({padding:n.spacing(.5),display:"flex",justifyContent:"space-between"}));function Hde(n){const{className:o}=n,i=Qe(n,$de),s=ir(),l=Lde(s);return b.jsx(zde,P({className:nt(o,l.root),ownerState:s},i))}const Ude=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],Gde=["InputComponentProps"],Vde=n=>{const{classes:o}=n;return Bt({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Tn,o)},Qde=_e("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(n,o)=>o.filterForm})(({theme:n})=>({display:"flex",padding:n.spacing(1)})),Wde=_e("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(n,o)=>o.filterFormDeleteIcon})(({theme:n})=>({flexShrink:0,justifyContent:"flex-end",marginRight:n.spacing(.5),marginBottom:n.spacing(.2)})),qde=_e("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(n,o)=>o.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),_de=_e("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(n,o)=>o.filterFormColumnInput})({width:150}),Yde=_e("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(n,o)=>o.filterFormOperatorInput})({width:120}),Kde=_e("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(n,o)=>o.filterFormValueInput})({width:190}),Xde=n=>{switch(n){case _s.And:return"filterPanelOperatorAnd";case _s.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},p0=n=>n.headerName||n.field,LE=new Intl.Collator,zE=x.forwardRef(function(o,i){var We,ue,Le,$e,bt,ot,st,Ze,dt;const{item:s,hasMultipleFilters:l,deleteFilter:c,applyFilterChanges:d,showMultiFilterOperators:f,disableMultiFilterOperator:p,applyMultiFilterOperatorChanges:m,focusElementRef:g,logicOperators:v=[_s.And,_s.Or],columnsSort:w,filterColumns:A,deleteIconProps:k={},logicOperatorInputProps:C={},operatorInputProps:M={},columnInputProps:S={},valueInputProps:I={},readOnly:E}=o,j=Qe(o,Ude),B=vn(),D=$t(B,Dd),R=$t(B,JB),N=$t(B,Ka),U=Fo(),L=Fo(),_=Fo(),V=Fo(),$=ir(),z=Vde($),Q=x.useRef(null),G=x.useRef(null),F=N.logicOperator??_s.And,q=l&&v.length>0,W=((We=$.slotProps)==null?void 0:We.baseFormControl)||{},te=(((ue=$.slotProps)==null?void 0:ue.baseSelect)||{}).native??!1,se=((Le=$.slotProps)==null?void 0:Le.baseInputLabel)||{},de=(($e=$.slotProps)==null?void 0:$e.baseSelectOption)||{},{InputComponentProps:ee}=I,fe=Qe(I,Gde),{filteredColumns:he,selectedField:Ie}=x.useMemo(()=>{let Xe=s.field;const Pt=D[s.field].filterable===!1?D[s.field]:null;if(Pt)return{filteredColumns:[Pt],selectedField:Xe};if(A===void 0||typeof A!="function")return{filteredColumns:R,selectedField:Xe};const mt=A({field:s.field,columns:R,currentFilters:(N==null?void 0:N.items)||[]});return{filteredColumns:R.filter(pt=>{const Fe=mt.includes(pt.field);return pt.field===s.field&&!Fe&&(Xe=void 0),Fe}),selectedField:Xe}},[A,N==null?void 0:N.items,R,s.field,D]),ve=x.useMemo(()=>{switch(w){case"asc":return he.sort((Xe,Pt)=>LE.compare(p0(Xe),p0(Pt)));case"desc":return he.sort((Xe,Pt)=>-LE.compare(p0(Xe),p0(Pt)));default:return he}},[he,w]),be=s.field?B.current.getColumn(s.field):null,ke=x.useMemo(()=>{var Xe;return!s.operator||!be?null:(Xe=be.filterOperators)==null?void 0:Xe.find(Pt=>Pt.value===s.operator)},[s,be]),ze=x.useCallback(Xe=>{const Pt=Xe.target.value,mt=B.current.getColumn(Pt);if(mt.field===be.field)return;const pt=mt.filterOperators.find(Je=>Je.value===s.operator)||mt.filterOperators[0];let Be=!pt.InputComponent||pt.InputComponent!==(ke==null?void 0:ke.InputComponent)||mt.type!==be.type?void 0:s.value;if(mt.type==="singleSelect"&&Be!==void 0){const Je=mt,It=Cf(Je);Array.isArray(Be)?Be=Be.filter(Nt=>b3(Nt,It,Je==null?void 0:Je.getOptionValue)!==void 0):b3(s.value,It,Je==null?void 0:Je.getOptionValue)===void 0&&(Be=void 0)}d(P({},s,{field:Pt,operator:pt.value,value:Be}))},[B,d,s,be,ke]),Ge=x.useCallback(Xe=>{const Pt=Xe.target.value,mt=be==null?void 0:be.filterOperators.find(Fe=>Fe.value===Pt),pt=!(mt!=null&&mt.InputComponent)||(mt==null?void 0:mt.InputComponent)!==(ke==null?void 0:ke.InputComponent);d(P({},s,{operator:Pt,value:pt?void 0:s.value}))},[d,s,be,ke]),Ve=x.useCallback(Xe=>{const Pt=Xe.target.value===_s.And.toString()?_s.And:_s.Or;m(Pt)},[m]),at=()=>{c(s)};return x.useImperativeHandle(g,()=>({focus:()=>{var Xe;ke!=null&&ke.InputComponent?(Xe=Q==null?void 0:Q.current)==null||Xe.focus():G.current.focus()}}),[ke]),b.jsxs(Qde,P({ref:i,className:z.root,"data-id":s.id,ownerState:$},j,{children:[b.jsx(Wde,P({variant:"standard",as:$.slots.baseFormControl},W,k,{className:nt(z.deleteIcon,W.className,k.className),ownerState:$,children:b.jsx($.slots.baseIconButton,P({"aria-label":B.current.getLocaleText("filterPanelDeleteIconLabel"),title:B.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:at,size:"small",disabled:E},(bt=$.slotProps)==null?void 0:bt.baseIconButton,{children:b.jsx($.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),b.jsx(qde,P({variant:"standard",as:$.slots.baseFormControl},W,C,{sx:P({display:q?"flex":"none",visibility:f?"visible":"hidden"},W.sx||{},C.sx||{}),className:nt(z.logicOperatorInput,W.className,C.className),ownerState:$,children:b.jsx($.slots.baseSelect,P({inputProps:{"aria-label":B.current.getLocaleText("filterPanelLogicOperator")},value:F??"",onChange:Ve,disabled:!!p||v.length===1,native:te},(ot=$.slotProps)==null?void 0:ot.baseSelect,{children:v.map(Xe=>x.createElement($.slots.baseSelectOption,P({},de,{native:te,key:Xe.toString(),value:Xe.toString()}),B.current.getLocaleText(Xde(Xe))))}))})),b.jsxs(_de,P({variant:"standard",as:$.slots.baseFormControl},W,S,{className:nt(z.columnInput,W.className,S.className),ownerState:$,children:[b.jsx($.slots.baseInputLabel,P({},se,{htmlFor:U,id:L,children:B.current.getLocaleText("filterPanelColumns")})),b.jsx($.slots.baseSelect,P({labelId:L,id:U,label:B.current.getLocaleText("filterPanelColumns"),value:Ie??"",onChange:ze,native:te,disabled:E},(st=$.slotProps)==null?void 0:st.baseSelect,{children:ve.map(Xe=>x.createElement($.slots.baseSelectOption,P({},de,{native:te,key:Xe.field,value:Xe.field}),p0(Xe)))}))]})),b.jsxs(Yde,P({variant:"standard",as:$.slots.baseFormControl},W,M,{className:nt(z.operatorInput,W.className,M.className),ownerState:$,children:[b.jsx($.slots.baseInputLabel,P({},se,{htmlFor:_,id:V,children:B.current.getLocaleText("filterPanelOperator")})),b.jsx($.slots.baseSelect,P({labelId:V,label:B.current.getLocaleText("filterPanelOperator"),id:_,value:s.operator,onChange:Ge,native:te,inputRef:G,disabled:E},(Ze=$.slotProps)==null?void 0:Ze.baseSelect,{children:(dt=be==null?void 0:be.filterOperators)==null?void 0:dt.map(Xe=>x.createElement($.slots.baseSelectOption,P({},de,{native:te,key:Xe.value,value:Xe.value}),Xe.label||B.current.getLocaleText(`filterOperator${Ke(Xe.value)}`)))}))]})),b.jsx(Kde,P({variant:"standard",as:$.slots.baseFormControl},W,fe,{className:nt(z.valueInput,W.className,fe.className),ownerState:$,children:ke!=null&&ke.InputComponent?b.jsx(ke.InputComponent,P({apiRef:B,item:s,applyValue:d,focusElementRef:Q,disabled:E},ke.InputComponentProps,ee),s.field):null}))]}))}),Jde=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],HE=n=>({field:n.field,operator:n.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Zde=x.forwardRef(function(o,i){var V,$;const s=vn(),l=ir(),c=$t(s,Ka),d=$t(s,JB),f=$t(s,ase),p=x.useRef(null),m=x.useRef(null),{logicOperators:g=[_s.And,_s.Or],columnsSort:v,filterFormProps:w,getColumnForNewFilter:A,disableAddFilterButton:k=!1,disableRemoveAllButton:C=!1}=o,M=Qe(o,Jde),S=s.current.upsertFilterItem,I=x.useCallback(z=>{s.current.setFilterLogicOperator(z)},[s]),E=x.useCallback(()=>{let z;if(A&&typeof A=="function"){const Q=A({currentFilters:(c==null?void 0:c.items)||[],columns:d});if(Q===null)return null;z=d.find(({field:G})=>G===Q)}else z=d.find(Q=>{var G;return(G=Q.filterOperators)==null?void 0:G.length});return z?HE(z):null},[c==null?void 0:c.items,d,A]),j=x.useCallback(()=>{if(A===void 0||typeof A!="function")return E();const z=c.items.length?c.items:[E()].filter(Boolean),Q=A({currentFilters:z,columns:d});if(Q===null)return null;const G=d.find(({field:F})=>F===Q);return G?HE(G):null},[c.items,d,A,E]),B=x.useMemo(()=>c.items.length?c.items:(m.current||(m.current=E()),m.current?[m.current]:[]),[c.items,E]),D=B.length>1,{readOnlyFilters:R,validFilters:N}=x.useMemo(()=>B.reduce((z,Q)=>(f[Q.field]?z.validFilters.push(Q):z.readOnlyFilters.push(Q),z),{readOnlyFilters:[],validFilters:[]}),[B,f]),U=x.useCallback(()=>{const z=j();z&&s.current.upsertFilterItems([...B,z])},[s,j,B]),L=x.useCallback(z=>{const Q=N.length===1;s.current.deleteFilterItem(z),Q&&s.current.hideFilterPanel()},[s,N.length]),_=x.useCallback(()=>N.length===1&&N[0].value===void 0?(s.current.deleteFilterItem(N[0]),s.current.hideFilterPanel()):s.current.setFilterModel(P({},c,{items:R}),"removeAllFilterItems"),[s,R,c,N]);return x.useEffect(()=>{g.length>0&&c.logicOperator&&!g.includes(c.logicOperator)&&I(g[0])},[g,I,c.logicOperator]),x.useEffect(()=>{N.length>0&&p.current.focus()},[N.length]),b.jsxs(_T,P({ref:i},M,{children:[b.jsxs(Nde,{children:[R.map((z,Q)=>b.jsx(zE,P({item:z,applyFilterChanges:S,deleteFilter:L,hasMultipleFilters:D,showMultiFilterOperators:Q>0,disableMultiFilterOperator:Q!==1,applyMultiFilterOperatorChanges:I,focusElementRef:null,readOnly:!0,logicOperators:g,columnsSort:v},w),z.id==null?Q:z.id)),N.map((z,Q)=>b.jsx(zE,P({item:z,applyFilterChanges:S,deleteFilter:L,hasMultipleFilters:D,showMultiFilterOperators:R.length+Q>0,disableMultiFilterOperator:R.length+Q!==1,applyMultiFilterOperatorChanges:I,focusElementRef:Q===N.length-1?p:null,logicOperators:g,columnsSort:v},w),z.id==null?Q+R.length:z.id))]}),!l.disableMultipleColumnsFiltering&&!(k&&C)?b.jsxs(Hde,{children:[k?b.jsx("span",{}):b.jsx(l.slots.baseButton,P({onClick:U,startIcon:b.jsx(l.slots.filterPanelAddIcon,{})},(V=l.slotProps)==null?void 0:V.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),!C&&N.length>0?b.jsx(l.slots.baseButton,P({onClick:_,startIcon:b.jsx(l.slots.filterPanelRemoveAllIcon,{})},($=l.slotProps)==null?void 0:$.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),efe=["hideMenu","options"],tfe=["hideMenu","options"];function rfe(n){const o=vn(),{hideMenu:i,options:s}=n,l=Qe(n,efe);return b.jsx(ho,P({onClick:()=>{o.current.exportDataAsCsv(s),i==null||i()}},l,{children:o.current.getLocaleText("toolbarExportCSV")}))}function nfe(n){const o=vn(),{hideMenu:i,options:s}=n,l=Qe(n,tfe);return b.jsx(ho,P({onClick:()=>{o.current.exportDataAsPrint(s),i==null||i()}},l,{children:o.current.getLocaleText("toolbarExportPrint")}))}const ofe=["className","selectedRowCount"],ife=n=>{const{classes:o}=n;return Bt({root:["selectedRowCount"]},Tn,o)},afe=zr("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(n,o)=>o.selectedRowCount})(({theme:n})=>({alignItems:"center",display:"flex",margin:n.spacing(0,2),visibility:"hidden",width:0,height:0,[n.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),sfe=x.forwardRef(function(o,i){const{className:s,selectedRowCount:l}=o,c=Qe(o,ofe),d=vn(),f=ir(),p=ife(f),m=d.current.getLocaleText("footerRowSelected")(l);return b.jsx(afe,P({ref:i,className:nt(p.root,s),ownerState:f},c,{children:m}))}),lfe=x.forwardRef(function(o,i){var v,w;const s=vn(),l=ir(),c=$t(s,Gse),d=$t(s,ble),f=$t(s,_A),p=!l.hideFooterSelectedRowCount&&d>0?b.jsx(sfe,{selectedRowCount:d}):b.jsx("div",{}),m=!l.hideFooterRowCount&&!l.pagination?b.jsx(l.slots.footerRowCount,P({},(v=l.slotProps)==null?void 0:v.footerRowCount,{rowCount:c,visibleRowCount:f})):null,g=l.pagination&&!l.hideFooterPagination&&l.slots.pagination&&b.jsx(l.slots.pagination,P({},(w=l.slotProps)==null?void 0:w.pagination));return b.jsxs(cue,P({ref:i},o,{children:[p,m,g]}))});function cfe(){var c,d;const n=vn(),o=$t(n,tc),i=ir(),s=$t(n,Jh),l=n.current.unstable_applyPipeProcessors("preferencePanel",null,s.openedPanelValue??kf.filters);return b.jsx(i.slots.panel,P({as:i.slots.basePopper,open:o.length>0&&s.open,id:s.panelId,"aria-labelledby":s.labelId},(c=i.slotProps)==null?void 0:c.panel,(d=i.slotProps)==null?void 0:d.basePopper,{children:l}))}function ufe(){var o;const n=ir();return b.jsxs(x.Fragment,{children:[b.jsx(cfe,{}),n.slots.toolbar&&b.jsx(n.slots.toolbar,P({},(o=n.slotProps)==null?void 0:o.toolbar))]})}const n8=(n,o,i,s,l)=>{const c=l.hasScrollY?l.scrollbarSize:0;let d;switch(n){case Si.LEFT:d=s[i];break;case Si.RIGHT:d=l.columnsTotalWidth-s[i]-o+c;break;default:d=0;break}return d},Bg={root:we.scrollbarFiller,header:we["scrollbarFiller--header"],borderTop:we["scrollbarFiller--borderTop"],pinnedRight:we["scrollbarFiller--pinnedRight"]};function o8({header:n,borderTop:o=!0,pinnedRight:i}){return b.jsx("div",{role:"presentation",className:nt(Bg.root,n&&Bg.header,o&&Bg.borderTop,i&&Bg.pinnedRight)})}const dfe=zr("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(n,o)=>o.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),ffe=n=>{const{classes:o}=n;return Bt({root:["skeletonLoadingOverlay"]},Tn,o)},UE=n=>parseInt(n.getAttribute("data-colindex"),10),pfe=x.forwardRef(function(o,i){const s=ir(),{slots:l}=s,c=ffe({classes:s.classes}),d=x.useRef(null),f=Xn(d,i),p=vn(),m=$t(p,Gl),g=(m==null?void 0:m.viewportInnerSize.height)??0,v=Math.ceil(g/m.rowHeight),w=$t(p,$A),A=$t(p,Nd),k=x.useMemo(()=>A.filter(D=>D<=w).length,[w,A]),C=$t(p,La),M=x.useMemo(()=>C.slice(0,k),[C,k]),S=$t(p,Tm),I=x.useCallback((D,R,N)=>{const U=n8(N,D,R,A,m);return{[N]:U}},[m,A]),E=x.useCallback(D=>{if(S.left.findIndex(R=>R.field===D)!==-1)return Si.LEFT;if(S.right.findIndex(R=>R.field===D)!==-1)return Si.RIGHT},[S.left,S.right]),j=x.useMemo(()=>{const D=[];for(let R=0;Rbe.field===L.field):U-S.left.length,G=_&&I(L.computedWidth,U,_),F=m.columnsTotalWidth0}))}D.push(b.jsx("div",{className:nt(we.row,we.rowSkeleton,R===0&&we["row--firstVisible"]),children:N},`skeleton-row-${R}`))}return D},[l,M,S,v,s.showCellVerticalBorder,m.columnsTotalWidth,m.viewportOuterSize.width,m.rowHeight,m.hasScrollY,m.scrollbarSize,E,I]);return Jt(p,"columnResize",D=>{var G,F,q;const{colDef:R,width:N}=D,U=(G=d.current)==null?void 0:G.querySelectorAll(`[data-field="${Bu(R.field)}"]`);if(!U)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const L=M.findIndex(W=>W.field===R.field),_=E(R.field),V=_===Si.LEFT,$=_===Si.RIGHT,z=getComputedStyle(U[0]).getPropertyValue("--width"),Q=parseInt(z,10)-N;if(U&&U.forEach(W=>{W.style.setProperty("--width",`${N}px`)}),V){const W=(F=d.current)==null?void 0:F.querySelectorAll(`.${we["cell--pinnedLeft"]}`);W==null||W.forEach(X=>{UE(X)>L&&(X.style.left=`${parseInt(getComputedStyle(X).left,10)-Q}px`)})}if($){const W=(q=d.current)==null?void 0:q.querySelectorAll(`.${we["cell--pinnedRight"]}`);W==null||W.forEach(X=>{UE(X)({[`& .${nf.selectLabel}`]:{display:"none",[n.breakpoints.up("sm")]:{display:"block"}},[`& .${nf.input}`]:{display:"none",[n.breakpoints.up("sm")]:{display:"inline-flex"}}})),wfe=(n,o)=>({from:i,to:s,count:l,page:c})=>n({from:i,to:s,count:l,page:c,estimated:o}),xfe=({from:n,to:o,count:i,estimated:s})=>s?`${n}–${o} of ${i!==-1?i:`more than ${s>o?s:o}`}`:`${n}–${o} of ${i!==-1?i:`more than ${o}`}`,yfe=x.forwardRef(function(o,i){const s=vn(),l=ir(),c=$t(s,Ws),d=$t(s,E2),f=$t(s,kT),{paginationMode:p,loading:m,estimatedRowCount:g}=l,v=x.useMemo(()=>d===-1&&p==="server"&&m?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[m,p,d]),w=x.useMemo(()=>Math.max(0,f-1),[f]),A=x.useMemo(()=>d===-1||c.page<=w?c.page:w,[w,c.page,d]),k=x.useCallback(j=>{const B=Number(j.target.value);s.current.setPageSize(B)},[s]),C=x.useCallback((j,B)=>{s.current.setPage(B)},[s]),S=(j=>{for(let B=0;B{const{classes:o}=n;return Bt({root:["rowCount"]},Tn,o)},kfe=zr("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(n,o)=>o.rowCount})(({theme:n})=>({alignItems:"center",display:"flex",margin:n.spacing(0,2)})),Sfe=x.forwardRef(function(o,i){const{className:s,rowCount:l,visibleRowCount:c}=o,d=Qe(o,Afe),f=vn(),p=ir(),m=Cfe(p);if(l===0)return null;const g=c{const{editable:o,editing:i,selected:s,isFirstVisible:l,isLastVisible:c,rowHeight:d,classes:f}=n;return Bt({root:["row",s&&"selected",o&&"row--editable",i&&"row--editing",l&&"row--firstVisible",c&&"row--lastVisible",d==="auto"&&"row--dynamicHeight"]},Tn,f)};function Mfe({width:n}){return n?b.jsx("div",{role:"presentation",className:nt(we.cell,we.cellEmpty),style:{"--width":`${n}px`}}):null}const Pfe=x.forwardRef(function(o,i){var pt;const{selected:s,rowId:l,row:c,index:d,style:f,rowHeight:p,className:m,visibleColumns:g,pinnedColumns:v,offsetLeft:w,dimensions:A,renderContext:k,focusedColumnIndex:C,isFirstVisible:M,isLastVisible:S,isNotVisible:I,onClick:E,onDoubleClick:j,onMouseEnter:B,onMouseLeave:D,onMouseOut:R,onMouseOver:N}=o,U=Qe(o,Ife),L=vn(),_=x.useRef(null),V=ir(),$=$f(L,V),z=$t(L,s1),Q=$t(L,Qb),G=$t(L,Nm),F=$t(L,Nd),q=$t(L,Rs),W=Xn(_,i),X=L.current.getRowNode(l),te=A.hasScrollY?A.scrollbarSize:0,se=A.columnsTotalWidth=v.left.length&&C=k.lastColumnIndex,he=d+G+2,Ie={selected:s,isFirstVisible:M,isLastVisible:S,classes:V.classes,editing:L.current.getRowMode(l)===Zo.Edit,editable:V.editMode===Gc.Row,rowHeight:p},ve=Efe(Ie);x.useLayoutEffect(()=>{if($.range){const It=L.current.getRowIndexRelativeToVisibleRows(l);It!=null&&L.current.unstable_setLastMeasuredRowIndex(It)}const Fe=_.current;if(!Fe||p!=="auto"||typeof ResizeObserver>"u")return;const Je=new ResizeObserver(It=>{const[Nt]=It,ht=Nt.borderBoxSize&&Nt.borderBoxSize.length>0?Nt.borderBoxSize[0].blockSize:Nt.contentRect.height;L.current.unstable_storeRowHeightMeasurement(l,ht)});return Je.observe(Fe),()=>Je.disconnect()},[L,$.range,d,p,l]);const be=x.useCallback((Fe,Be)=>Je=>{$m(Je)||L.current.getRow(l)&&(L.current.publishEvent(Fe,L.current.getRowParams(l),Je),Be&&Be(Je))},[L,l]),ke=x.useCallback(Fe=>{const Be=w3(Fe.target,we.cell),Je=Be==null?void 0:Be.getAttribute("data-field");if(Je){if(Je===Rp.field||Je===i8||Je==="__reorder__"||L.current.getCellMode(l,Je)===To.Edit)return;const It=L.current.getColumn(Je);if((It==null?void 0:It.type)===Vb)return}be("rowClick",E)(Fe)},[L,E,be,l]),{slots:ze,slotProps:Ge,disableColumnReorder:Ve}=V,at=V.rowReordering,We=$t(L,()=>P({},L.current.unstable_getRowInternalSizes(l)),KB);let ue=p;ue==="auto"&&We&&(We.baseCenter??0)>0;const Le=x.useMemo(()=>{if(I)return{opacity:0,width:0,height:0};const Fe=P({},f,{maxHeight:p==="auto"?"none":p,minHeight:ue,"--height":typeof p=="number"?`${p}px`:p});if(We!=null&&We.spacingTop){const Be=V.rowSpacingType==="border"?"borderTopWidth":"marginTop";Fe[Be]=We.spacingTop}if(We!=null&&We.spacingBottom){const Be=V.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Je=Fe[Be];typeof Je!="number"&&(Je=parseInt(Je||"0",10)),Je+=We.spacingBottom,Fe[Be]=Je}return Fe},[I,p,f,ue,We,V.rowSpacingType]),$e=L.current.unstable_applyPipeProcessors("rowClassName",[],l);if(typeof V.getRowClassName=="function"){const Fe=d-(((pt=$.range)==null?void 0:pt.firstRowIndex)||0),Be=P({},L.current.getRowParams(l),{isFirstVisible:Fe===0,isLastVisible:Fe===$.rows.length-1,indexRelativeToCurrentPage:Fe});$e.push(V.getRowClassName(Be))}const bt=(Fe,Be,Je,It,Nt=ul.NONE)=>{var ce;const ht=L.current.unstable_getCellColSpanInfo(l,Je);if(ht!=null&&ht.spannedByColSpan)return null;const xt=(ht==null?void 0:ht.cellProps.width)??Fe.computedWidth,tt=(ht==null?void 0:ht.cellProps.colSpan)??1,Y=n8(QT[Nt],Fe.computedWidth,Je,F,A);if((X==null?void 0:X.type)==="skeletonRow")return b.jsx(ze.skeletonCell,{type:Fe.type,width:xt,height:p,field:Fe.field,align:Fe.align},Fe.field);const re=((ce=q[l])==null?void 0:ce[Fe.field])??null,ie=Fe.field==="__reorder__",le=Object.keys(q).length>0,ge=!(Ve||Fe.disableReorder),Pe=at&&!z.length&&Q<=1&&!le,me=!(ge||ie&&Pe),Ee=Nt===ul.VIRTUAL;return b.jsx(ze.cell,P({column:Fe,width:xt,rowId:l,align:Fe.align||"left",colIndex:Je,colSpan:tt,disableDragEvents:me,editCellState:re,isNotVisible:Ee,pinnedOffset:Y,pinnedPosition:Nt,sectionIndex:Be,sectionLength:It,gridHasFiller:se},Ge==null?void 0:Ge.cell),Fe.field)};if(!X)return null;const ot=v.left.map((Fe,Be)=>bt(Fe,Be,Be,v.left.length,ul.LEFT)),st=v.right.map((Fe,Be)=>{const Je=g.length-v.right.length+Be;return bt(Fe,Be,Je,v.right.length,ul.RIGHT)}),Ze=g.length-v.left.length-v.right.length,dt=[];ee&&dt.push(bt(g[C],C-v.left.length,C,Ze,ul.VIRTUAL));for(let Fe=k.firstColumnIndex;Fe0&&b.jsx(Mfe,{width:mt}),st.length>0&&b.jsx("div",{role:"presentation",className:we.filler}),st,te!==0&&b.jsx(o8,{pinnedRight:v.right.length>0})]}))}),jfe=Ld(Pfe);function Ofe({privateApiRef:n,props:o,children:i}){const s=x.useRef(n.current.getPublicApi());return b.jsx(_B.Provider,{value:o,children:b.jsx(FT.Provider,{value:n,children:b.jsx(qB.Provider,{value:s,children:i})})})}const Rfe=n=>{const o=x.useRef(null),i=x.useRef(null),s=x.useRef(null);n.current.register("public",{rootElementRef:o}),n.current.register("private",{mainElementRef:i,virtualScrollerRef:s})},Bfe=n=>{const o=ka();n.current.state.theme||(n.current.state.theme=o);const i=x.useRef(!0);x.useEffect(()=>{i.current?i.current=!1:n.current.setState(s=>P({},s,{theme:o}))},[n,o])},Tfe=yse()&&window.localStorage.getItem("DEBUG")!=null,k0=()=>{},Ffe={debug:k0,info:k0,warn:k0,error:k0},GE=["debug","info","warn","error"];function VE(n,o,i=console){const s=GE.indexOf(o);if(s===-1)throw new Error(`MUI X: Log level ${o} not recognized.`);return GE.reduce((c,d,f)=>(f>=s?c[d]=(...p)=>{const[m,...g]=p;i[d](`MUI X: ${n} - ${m}`,...g)}:c[d]=k0,c),{})}const Dfe=(n,o)=>{const i=x.useCallback(s=>Tfe?VE(s,"debug",o.logger):o.logLevel?VE(s,o.logLevel.toString(),o.logger):Ffe,[o.logLevel,o.logger]);Zr(n,{getLogger:i},"private")};class Nfe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(o,i,s={}){let l=this.events[o];l||(l={highPriority:new Map,regular:new Map},this.events[o]=l),s.isFirst?l.highPriority.set(i,!0):l.regular.set(i,!0)}removeListener(o,i){this.events[o]&&(this.events[o].regular.delete(i),this.events[o].highPriority.delete(i))}removeAllListeners(){this.events={}}emit(o,...i){const s=this.events[o];if(!s)return;const l=Array.from(s.highPriority.keys()),c=Array.from(s.regular.keys());for(let d=l.length-1;d>=0;d-=1){const f=l[d];s.highPriority.has(f)&&f.apply(this,i)}for(let d=0;d(this.listeners.add(i),()=>{this.listeners.delete(i)}),this.getSnapshot=()=>this.value,this.update=i=>{this.value=i,this.listeners.forEach(s=>s(i))},this.value=o,this.listeners=new Set}}const KT=Symbol("mui.api_private"),$fe=n=>n.isPropagationStopped!==void 0;let QE=0;function Lfe(n){var l;const o=(l=n.current)==null?void 0:l[KT];if(o)return o;const i={},s={state:i,store:a8.create(i),instanceId:{id:QE}};return QE+=1,s.getPublicApi=()=>n.current,s.register=(c,d)=>{Object.keys(d).forEach(f=>{const p=d[f],m=s[f];if((m==null?void 0:m.spying)===!0?m.target=p:s[f]=p,c==="public"){const g=n.current,v=g[f];(v==null?void 0:v.spying)===!0?v.target=p:g[f]=p}})},s.register("private",{caches:{},eventManager:new Nfe}),s}function zfe(n){return{get state(){return n.current.state},get store(){return n.current.store},get instanceId(){return n.current.instanceId},[KT]:n.current}}function Hfe(n,o){var d;const i=x.useRef(),s=x.useRef();s.current||(s.current=Lfe(i)),i.current||(i.current=zfe(s));const l=x.useCallback((...f)=>{const[p,m,g={}]=f;if(g.defaultMuiPrevented=!1,$fe(g)&&g.isPropagationStopped())return;const v=o.signature===ec.DataGridPro||o.signature===ec.DataGridPremium?{api:s.current.getPublicApi()}:{};s.current.eventManager.emit(p,m,g,v)},[s,o.signature]),c=x.useCallback((f,p,m)=>{s.current.eventManager.on(f,p,m);const g=s.current;return()=>{g.eventManager.removeListener(f,p)}},[s]);return Zr(s,{subscribeEvent:c,publishEvent:l},"public"),n&&!((d=n.current)!=null&&d.state)&&(n.current=i.current),x.useImperativeHandle(n,()=>i.current,[i]),x.useEffect(()=>{const f=s.current;return()=>{f.publishEvent("unmount")}},[s]),s}const Ufe=(n,o)=>{const i=x.useCallback(s=>{if(o.localeText[s]==null)throw new Error(`Missing translation for key ${s}.`);return o.localeText[s]},[o.localeText]);n.current.register("public",{getLocaleText:i})},Gfe=n=>{const o=x.useRef({}),i=x.useRef(!1),s=x.useCallback(g=>{i.current||!g||(i.current=!0,Object.values(g.appliers).forEach(v=>{v()}),i.current=!1)},[]),l=x.useCallback((g,v,w)=>{o.current[g]||(o.current[g]={processors:new Map,processorsAsArray:[],appliers:{}});const A=o.current[g];return A.processors.get(v)!==w&&(A.processors.set(v,w),A.processorsAsArray=Array.from(o.current[g].processors.values()),s(A)),()=>{o.current[g].processors.delete(v),o.current[g].processorsAsArray=Array.from(o.current[g].processors.values())}},[s]),c=x.useCallback((g,v,w)=>(o.current[g]||(o.current[g]={processors:new Map,processorsAsArray:[],appliers:{}}),o.current[g].appliers[v]=w,()=>{const A=o.current[g].appliers,k=Qe(A,[v].map(yh));o.current[g].appliers=k}),[]),d=x.useCallback(g=>{s(o.current[g])},[s]),f=x.useCallback((...g)=>{const[v,w,A]=g;if(!o.current[v])return w;const k=o.current[v].processorsAsArray;let C=w;for(let M=0;M{const s=x.useRef(),l=x.useRef(`mui-${Math.round(Math.random()*1e9)}`),c=x.useCallback(()=>{s.current=n.current.registerPipeProcessor(o,l.current,i)},[n,i,o]);Dm(()=>{c()});const d=x.useRef(!0);x.useEffect(()=>(d.current?d.current=!1:c(),()=>{s.current&&(s.current(),s.current=null)}),[c])},s8=(n,o,i)=>{const s=x.useRef(),l=x.useRef(`mui-${Math.round(Math.random()*1e9)}`),c=x.useCallback(()=>{s.current=n.current.registerPipeApplier(o,l.current,i)},[n,i,o]);Dm(()=>{c()});const d=x.useRef(!0);x.useEffect(()=>(d.current?d.current=!1:c(),()=>{s.current&&(s.current(),s.current=null)}),[c])},x3=(n,o,i,s)=>{const l=x.useCallback(()=>{n.current.registerStrategyProcessor(o,i,s)},[n,s,i,o]);Dm(()=>{l()});const c=x.useRef(!0);x.useEffect(()=>{c.current?c.current=!1:l()},[l])},Sf="none",WE={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Vfe=n=>{const o=x.useRef(new Map),i=x.useRef({}),s=x.useCallback((p,m,g)=>{const v=()=>{const k=i.current[m],C=Qe(k,[p].map(yh));i.current[m]=C};i.current[m]||(i.current[m]={});const w=i.current[m],A=w[p];return w[p]=g,!A||A===g||p===n.current.getActiveStrategy(WE[m])&&n.current.publishEvent("activeStrategyProcessorChange",m),v},[n]),l=x.useCallback((p,m)=>{const g=n.current.getActiveStrategy(WE[p]);if(g==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const v=i.current[p];if(!v||!v[g])throw new Error(`No processor found for processor "${p}" on strategy "${g}"`);const w=v[g];return w(m)},[n]),c=x.useCallback(p=>{const g=Array.from(o.current.entries()).find(([,v])=>v.group!==p?!1:v.isAvailable());return(g==null?void 0:g[0])??Sf},[]),d=x.useCallback((p,m,g)=>{o.current.set(m,{group:p,isAvailable:g}),n.current.publishEvent("strategyAvailabilityChange")},[n]);Zr(n,{registerStrategyProcessor:s,applyStrategyProcessor:l,getActiveStrategy:c,setStrategyAvailability:d},"private")},Qfe=n=>{const o=x.useRef({}),[,i]=x.useState(),s=x.useCallback(m=>{o.current[m.stateId]=m},[]),l=x.useCallback((m,g)=>{let v;if(rT(m)?v=m(n.current.state):v=m,n.current.state===v)return!1;let w=!1;const A=[];if(Object.keys(o.current).forEach(k=>{const C=o.current[k],M=C.stateSelector(n.current.state,n.current.instanceId),S=C.stateSelector(v,n.current.instanceId);S!==M&&(A.push({stateId:C.stateId,hasPropChanged:S!==C.propModel}),C.propModel!==void 0&&S!==C.propModel&&(w=!0))}),A.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${A[0].stateId}, therefore, you're not allowed to update ${A.map(k=>k.stateId).join(", ")} in the same transaction.`);if(w||(n.current.state=v,n.current.publishEvent&&n.current.publishEvent("stateChange",v),n.current.store.update(v)),A.length===1){const{stateId:k,hasPropChanged:C}=A[0],M=o.current[k],S=M.stateSelector(v,n.current.instanceId);M.propOnChange&&C&&M.propOnChange(S,{reason:g,api:n.current}),w||n.current.publishEvent(M.changeEvent,S,{reason:g})}return!w},[n]),c=x.useCallback((m,g,v)=>n.current.setState(w=>P({},w,{[m]:g(w[m])}),v),[n]),d=x.useCallback(()=>i(()=>n.current.state),[n]),f={setState:l,forceUpdate:d},p={updateControlState:c,registerControlState:s};Zr(n,f,"public"),Zr(n,p,"private")},Wfe=(n,o)=>{const i=Hfe(n,o);return Rfe(i),Bfe(i),Dfe(i,o),Qfe(i),Gfe(i),Vfe(i),Ufe(i,o),i.current.register("private",{rootProps:o}),i},Ps=(n,o,i)=>{const s=x.useRef(!1);s.current||(o.current.state=n(o.current.state,i,o),s.current=!0)};function i6(n,o){const i=typeof n=="string"?n:`${n}`;if(o.shouldAppendQuotes||o.escapeFormulas){const s=i.replace(/"/g,'""');return o.escapeFormulas&&["=","+","-","@"," ","\r"].includes(s[0])?`"'${s}"`:[o.delimiter,` +`,"\r",'"'].some(l=>i.includes(l))?`"${s}"`:s}return i}const XT=(n,o)=>{var c,d;const{csvOptions:i,ignoreValueFormatter:s}=o;let l;if(s){const f=n.colDef.type;f==="number"?l=String(n.value):f==="date"||f==="dateTime"?l=(c=n.value)==null?void 0:c.toISOString():typeof((d=n.value)==null?void 0:d.toString)=="function"?l=n.value.toString():l=n.value}else l=n.formattedValue;return i6(l,i)};class a6{constructor(o){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=o}addValue(o){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),o==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(o,this.options.csvOptions):this.rowString+=o,this.isEmpty=!1}getRowString(){return this.rowString}}const qfe=({id:n,columns:o,getCellParams:i,csvOptions:s,ignoreValueFormatter:l})=>{const c=new a6({csvOptions:s});return o.forEach(d=>{const f=i(n,d.field);c.addValue(XT(f,{ignoreValueFormatter:l,csvOptions:s}))}),c.getRowString()};function _fe(n){const{columns:o,rowIds:i,csvOptions:s,ignoreValueFormatter:l,apiRef:c}=n,d=i.reduce((v,w)=>`${v}${qfe({id:w,columns:o,getCellParams:c.current.getCellParams,ignoreValueFormatter:l,csvOptions:s})}\r +`,"").trim();if(!s.includeHeaders)return d;const f=o.filter(v=>v.field!==Rp.field),p=[];if(s.includeColumnGroupsHeaders){const v=c.current.getAllGroupDetails();let w=0;const A=f.reduce((k,C)=>{const M=c.current.getColumnGroupPath(C.field);return k[C.field]=M,w=Math.max(w,M.length),k},{});for(let k=0;k{const S=(A[M.field]||[])[k],I=v[S];C.addValue(I?I.headerName||I.groupId:"")})}}const m=new a6({csvOptions:s,sanitizeCellValue:i6});return f.forEach(v=>{m.addValue(v.headerName||v.field)}),p.push(m),`${`${p.map(v=>v.getRowString()).join(`\r `)}\r -`}${d}`.trim()}function $E(n){const o=document.createElement("span");o.style.whiteSpace="pre",o.style.userSelect="all",o.style.opacity="0px",o.textContent=n,document.body.appendChild(o);const i=document.createRange();i.selectNode(o);const s=window.getSelection();s.removeAllRanges(),s.addRange(i);try{document.execCommand("copy")}finally{document.body.removeChild(o)}}function Nfe(n){navigator.clipboard?navigator.clipboard.writeText(n).catch(()=>{$E(n)}):$E(n)}function $fe(n){var o;return!!((o=window.getSelection())!=null&&o.toString()||n&&(n.selectionEnd||0)-(n.selectionStart||0)>0)}const Lfe=(n,o)=>{const i=o.ignoreValueFormatterDuringExport,s=(typeof i=="object"?i==null?void 0:i.clipboardExport:i)||!1,l=o.clipboardCopyCellDelimiter,c=x.useCallback(d=>{if(!((d.ctrlKey||d.metaKey)&&d.key.toLowerCase()==="c"&&!d.shiftKey&&!d.altKey)||$fe(d.target))return;let f="";if(n.current.getSelectedRows().size>0)f=n.current.getDataAsCsv({includeHeaders:!1,delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1});else{const m=a1(n);if(m){const g=n.current.getCellParams(m.id,m.field);f=GT(g,{csvOptions:{delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:s})}}f=n.current.unstable_applyPipeProcessors("clipboardCopy",f),f&&(Nfe(f),n.current.publishEvent("clipboardCopy",f))},[n,s,l]);fT(n,n.current.rootElementRef,"keydown",c),Jo(n,"clipboardCopy",o.onClipboardCopy)},zfe=n=>P({},n,{columnMenu:{open:!1}}),Hfe=n=>{const o=za(n,"useGridColumnMenu"),i=x.useCallback(d=>{const f=cv(n.current.state),p={open:!0,field:d};(p.open!==f.open||p.field!==f.field)&&(n.current.setState(g=>g.columnMenu.open&&g.columnMenu.field===d?g:(o.debug("Opening Column Menu"),P({},g,{columnMenu:{open:!0,field:d}}))),n.current.hidePreferences(),n.current.forceUpdate())},[n,o]),s=x.useCallback(()=>{const d=cv(n.current.state);if(d.field){const m=$d(n),g=x1(n),v=gu(n);let w=d.field;if(m[w]||(w=v[0]),g[w]===!1){const A=v.filter(C=>C===w?!0:g[C]!==!1),k=A.indexOf(w);w=A[k+1]||A[k-1]}n.current.setColumnHeaderFocus(w)}const f={open:!1,field:void 0};(f.open!==d.open||f.field!==d.field)&&(n.current.setState(m=>(o.debug("Hiding Column Menu"),P({},m,{columnMenu:f}))),n.current.forceUpdate())},[n,o]),l=x.useCallback(d=>{o.debug("Toggle Column Menu");const f=cv(n.current.state);!f.open||f.field!==d?i(d):s()},[n,o,i,s]);Zr(n,{showColumnMenu:i,hideColumnMenu:s,toggleColumnMenu:l},"public"),Jt(n,"columnResizeStart",s),Jt(n,"virtualScrollerWheel",n.current.hideColumnMenu),Jt(n,"virtualScrollerTouchMove",n.current.hideColumnMenu)},Ufe=(n,o,i)=>{var l,c,d;const s=u2({apiRef:i,columnsToUpsert:o.columns,initialState:(l=o.initialState)==null?void 0:l.columns,columnVisibilityModel:o.columnVisibilityModel??((d=(c=o.initialState)==null?void 0:c.columns)==null?void 0:d.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return P({},n,{columns:s,pinnedColumns:n.pinnedColumns??Jy})};function Gfe(n,o){var L,_;const i=za(n,"useGridColumns"),s=x.useRef(o.columns);n.current.registerControlState({stateId:"visibleColumns",propModel:o.columnVisibilityModel,propOnChange:o.onColumnVisibilityModelChange,stateSelector:x1,changeEvent:"columnVisibilityModelChange"});const l=x.useCallback(V=>{var $,z;i.debug("Updating columns state."),n.current.setState(LE(V)),n.current.publishEvent("columnsChange",V.orderedFields),(z=($=n.current).updateRenderContext)==null||z.call($),n.current.forceUpdate()},[i,n]),c=x.useCallback(V=>$d(n)[V],[n]),d=x.useCallback(()=>rc(n),[n]),f=x.useCallback(()=>$a(n),[n]),p=x.useCallback((V,$=!0)=>($?$a(n):rc(n)).findIndex(Q=>Q.field===V),[n]),m=x.useCallback(V=>{const $=p(V);return Ld(n)[$]},[n,p]),g=x.useCallback(V=>{var z,Q;x1(n)!==V&&(n.current.setState(G=>P({},G,{columns:u2({apiRef:n,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1})})),(Q=(z=n.current).updateRenderContext)==null||Q.call(z),n.current.forceUpdate())},[n]),v=x.useCallback(V=>{const $=u2({apiRef:n,columnsToUpsert:V,initialState:void 0,keepOnlyColumnsToUpsert:!1});l($)},[n,l]),w=x.useCallback((V,$)=>{const z=x1(n),Q=z[V]??!0;if($!==Q){const G=P({},z,{[V]:$});n.current.setColumnVisibilityModel(G)}},[n]),A=x.useCallback(V=>gu(n).findIndex(z=>z===V),[n]),k=x.useCallback((V,$)=>{const z=gu(n),Q=A(V);if(Q===$)return;i.debug(`Moving column ${V} to index ${$}`);const G=[...z],D=G.splice(Q,1)[0];G.splice($,0,D),l(P({},Hc(n.current.state),{orderedFields:G}));const q={column:n.current.getColumn(V),targetIndex:n.current.getColumnIndexRelativeToVisibleColumns(V),oldIndex:Q};n.current.publishEvent("columnIndexChange",q)},[n,i,l,A]),C=x.useCallback((V,$)=>{i.debug(`Updating column ${V} width to ${$}`);const z=Hc(n.current.state),Q=z.lookup[V],G=P({},Q,{width:$,hasBeenResized:!0});l(e6(P({},z,{lookup:P({},z.lookup,{[V]:G})}),n.current.getRootDimensions())),n.current.publishEvent("columnWidthChange",{element:n.current.getColumnHeaderElement(V),colDef:G,width:$})},[n,i,l]),M={getColumn:c,getAllColumns:d,getColumnIndex:p,getColumnPosition:m,getVisibleColumns:f,getColumnIndexRelativeToVisibleColumns:A,updateColumns:v,setColumnVisibilityModel:g,setColumnVisibility:w,setColumnWidth:C},S={setColumnIndex:k};Zr(n,M,"public"),Zr(n,S,o.signature===tc.DataGrid?"private":"public");const I=x.useCallback((V,$)=>{var W,X;const z={},Q=x1(n);(!$.exportOnlyDirtyModels||o.columnVisibilityModel!=null||Object.keys(((X=(W=o.initialState)==null?void 0:W.columns)==null?void 0:X.columnVisibilityModel)??{}).length>0||Object.keys(Q).length>0)&&(z.columnVisibilityModel=Q),z.orderedFields=gu(n);const D=rc(n),q={};return D.forEach(te=>{if(te.hasBeenResized){const se={};IT.forEach(de=>{let ee=te[de];ee===1/0&&(ee=-1),se[de]=ee}),q[te.field]=se}}),Object.keys(q).length>0&&(z.dimensions=q),P({},V,{columns:z})},[n,o.columnVisibilityModel,(L=o.initialState)==null?void 0:L.columns]),E=x.useCallback((V,$)=>{var D;const z=(D=$.stateToRestore.columns)==null?void 0:D.columnVisibilityModel,Q=$.stateToRestore.columns;if(z==null&&Q==null)return V;const G=u2({apiRef:n,columnsToUpsert:[],initialState:Q,columnVisibilityModel:z,keepOnlyColumnsToUpsert:!1});return n.current.setState(LE(G)),Q!=null&&n.current.publishEvent("columnsChange",G.orderedFields),V},[n]),j=x.useCallback((V,$)=>{var z;if($===Sf.columns){const Q=o.slots.columnsPanel;return b.jsx(Q,P({},(z=o.slotProps)==null?void 0:z.columnsPanel))}return V},[o.slots.columnsPanel,(_=o.slotProps)==null?void 0:_.columnsPanel]),B=x.useCallback(V=>o.disableColumnSelector?V:[...V,"columnMenuColumnsItem"],[o.disableColumnSelector]);Ii(n,"columnMenu",B),Ii(n,"exportState",I),Ii(n,"restoreState",E),Ii(n,"preferencePanel",j);const F=x.useRef(null);Jt(n,"viewportInnerSizeChange",V=>{F.current!==V.width&&(F.current=V.width,l(e6(Hc(n.current.state),n.current.getRootDimensions())))});const N=x.useCallback(()=>{i.info("Columns pipe processing have changed, regenerating the columns");const V=u2({apiRef:n,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});l(V)},[n,i,l]);s8(n,"hydrateColumns",N);const H=x.useRef(!0);x.useEffect(()=>{if(H.current){H.current=!1;return}if(i.info(`GridColumns have changed, new length ${o.columns.length}`),s.current===o.columns)return;const V=u2({apiRef:n,initialState:void 0,columnsToUpsert:o.columns,keepOnlyColumnsToUpsert:!0});s.current=o.columns,l(V)},[i,n,l,o.columns]),x.useEffect(()=>{o.columnVisibilityModel!==void 0&&n.current.setColumnVisibilityModel(o.columnVisibilityModel)},[n,i,o.columnVisibilityModel])}function LE(n){return o=>P({},o,{columns:n})}const Vfe=(n,o)=>{var i;return P({},n,{density:((i=o.initialState)==null?void 0:i.density)??o.density??"standard"})},Qfe=(n,o)=>{var f;const i=za(n,"useDensity");n.current.registerControlState({stateId:"density",propModel:o.density,propOnChange:o.onDensityChange,stateSelector:E2,changeEvent:"densityChange"});const l={setDensity:ln(p=>{E2(n.current.state)!==p&&(i.debug(`Set grid density to ${p}`),n.current.setState(g=>P({},g,{density:p})))})};Zr(n,l,"public");const c=x.useCallback((p,m)=>{var w;const g=E2(n.current.state);return!m.exportOnlyDirtyModels||o.density!=null||((w=o.initialState)==null?void 0:w.density)!=null?P({},p,{density:g}):p},[n,o.density,(f=o.initialState)==null?void 0:f.density]),d=x.useCallback((p,m)=>{var v;const g=(v=m.stateToRestore)!=null&&v.density?m.stateToRestore.density:E2(n.current.state);return n.current.setState(w=>P({},w,{density:g})),p},[n]);Ii(n,"exportState",c),Ii(n,"restoreState",d),x.useEffect(()=>{o.density&&n.current.setDensity(o.density)},[n,o.density])};function Wfe(n,o="csv",i=document.title||"untitled"){const s=`${i}.${o}`;if("download"in HTMLAnchorElement.prototype){const l=URL.createObjectURL(n),c=document.createElement("a");c.href=l,c.download=s,c.click(),setTimeout(()=>{URL.revokeObjectURL(l)});return}throw new Error("MUI X: exportAs not supported.")}const VT=({apiRef:n,options:o})=>{const i=rc(n);return o.fields?o.fields.reduce((l,c)=>{const d=i.find(f=>f.field===c);return d&&l.push(d),l},[]):(o.allColumns?i:$a(n)).filter(l=>!l.disableExport)},QT=({apiRef:n})=>{var p,m;const o=ule(n),i=h1(n),s=n.current.getSelectedRows(),l=o.filter(g=>i[g].type!=="footer"),c=$f(n),d=((p=c==null?void 0:c.top)==null?void 0:p.map(g=>g.id))||[],f=((m=c==null?void 0:c.bottom)==null?void 0:m.map(g=>g.id))||[];return l.unshift(...d),l.push(...f),s.size>0?l.filter(g=>s.has(g)):l},qfe=(n,o)=>{const i=za(n,"useGridCsvExport"),s=o.ignoreValueFormatterDuringExport,l=(typeof s=="object"?s==null?void 0:s.csvExport:s)||!1,c=x.useCallback((m={})=>{i.debug("Get data as CSV");const g=VT({apiRef:n,options:m}),w=(m.getRowsToExport??QT)({apiRef:n});return Dfe({columns:g,rowIds:w,csvOptions:{delimiter:m.delimiter||",",shouldAppendQuotes:m.shouldAppendQuotes??!0,includeHeaders:m.includeHeaders??!0,includeColumnGroupsHeaders:m.includeColumnGroupsHeaders??!0,escapeFormulas:m.escapeFormulas??!0},ignoreValueFormatter:l,apiRef:n})},[i,n,l]),d=x.useCallback(m=>{i.debug("Export data as CSV");const g=c(m),v=new Blob([m!=null&&m.utf8WithBom?new Uint8Array([239,187,191]):"",g],{type:"text/csv"});Wfe(v,"csv",m==null?void 0:m.fileName)},[i,c]);Zr(n,{getDataAsCsv:c,exportDataAsCsv:d},"public");const p=x.useCallback((m,g)=>{var v;return(v=g.csvOptions)!=null&&v.disableToolbarButton?m:[...m,{component:b.jsx(Vde,{options:g.csvOptions}),componentName:"csvExport"}]},[]);Ii(n,"exportMenu",p)},dv=(n,o,i)=>{let s=n.paginationModel;const l=n.rowCount,c=(i==null?void 0:i.pageSize)??s.pageSize,d=(i==null?void 0:i.page)??s.page,f=pT(l,c,d);i&&((i==null?void 0:i.page)!==s.page||(i==null?void 0:i.pageSize)!==s.pageSize)&&(s=i);const p=ble(s.page,f);return p!==s.page&&(s=P({},s,{page:p})),mT(s.pageSize,o),s},_fe=(n,o)=>{var k,C;const i=za(n,"useGridPaginationModel"),s=$t(n,Rm),l=Math.floor(o.rowHeight*s);n.current.registerControlState({stateId:"paginationModel",propModel:o.paginationModel,propOnChange:o.onPaginationModelChange,stateSelector:Ws,changeEvent:"paginationModelChange"});const c=x.useCallback(M=>{const S=Ws(n);M!==S.page&&(i.debug(`Setting page to ${M}`),n.current.setPaginationModel({page:M,pageSize:S.pageSize}))},[n,i]),d=x.useCallback(M=>{const S=Ws(n);M!==S.pageSize&&(i.debug(`Setting page size to ${M}`),n.current.setPaginationModel({pageSize:M,page:S.page}))},[n,i]),f=x.useCallback(M=>{const S=Ws(n);M!==S&&(i.debug("Setting 'paginationModel' to",M),n.current.setState(I=>P({},I,{pagination:P({},I.pagination,{paginationModel:dv(I.pagination,o.signature,M)})})))},[n,i,o.signature]);Zr(n,{setPage:c,setPageSize:d,setPaginationModel:f},"public");const m=x.useCallback((M,S)=>{var j,B;const I=Ws(n);return!S.exportOnlyDirtyModels||o.paginationModel!=null||((B=(j=o.initialState)==null?void 0:j.pagination)==null?void 0:B.paginationModel)!=null||I.page!==0&&I.pageSize!==vle(o.autoPageSize)?P({},M,{pagination:P({},M.pagination,{paginationModel:I})}):M},[n,o.paginationModel,(C=(k=o.initialState)==null?void 0:k.pagination)==null?void 0:C.paginationModel,o.autoPageSize]),g=x.useCallback((M,S)=>{var E,j;const I=(E=S.stateToRestore.pagination)!=null&&E.paginationModel?P({},hT(o.autoPageSize),(j=S.stateToRestore.pagination)==null?void 0:j.paginationModel):Ws(n);return n.current.setState(B=>P({},B,{pagination:P({},B.pagination,{paginationModel:dv(B.pagination,o.signature,I)})})),M},[n,o.autoPageSize,o.signature]);Ii(n,"exportState",m),Ii(n,"restoreState",g);const v=()=>{var S;const M=Ws(n);(S=n.current.virtualScrollerRef)!=null&&S.current&&n.current.scrollToIndexes({rowIndex:M.page*M.pageSize})},w=x.useCallback(()=>{if(!o.autoPageSize)return;const M=n.current.getRootDimensions(),S=Math.floor(M.viewportInnerSize.height/l);n.current.setPageSize(S)},[n,o.autoPageSize,l]),A=x.useCallback(M=>{if(M==null)return;const S=Ws(n),I=gT(n);S.page>I-1&&n.current.setPage(Math.max(0,I-1))},[n]);Jt(n,"viewportInnerSizeChange",w),Jt(n,"paginationModelChange",v),Jt(n,"rowCountChange",A),x.useEffect(()=>{n.current.setState(M=>P({},M,{pagination:P({},M.pagination,{paginationModel:dv(M.pagination,o.signature,o.paginationModel)})}))},[n,o.paginationModel,o.paginationMode,o.signature]),x.useEffect(w,[w])};function Yfe(){return new Promise(n=>{requestAnimationFrame(()=>{n()})})}function Kfe(n){const o=document.createElement("iframe");return o.style.position="absolute",o.style.width="0px",o.style.height="0px",o.title=n||document.title,o}const Xfe=(n,o)=>{const i=za(n,"useGridPrintExport"),s=x.useRef(null),l=x.useRef(null),c=x.useRef({}),d=x.useRef([]),f=x.useRef();x.useEffect(()=>{s.current=ei(n.current.rootElementRef.current)},[n]);const p=x.useCallback((C,M,S)=>new Promise(I=>{const E=VT({apiRef:n,options:{fields:C,allColumns:M}}).map(F=>F.field),j=rc(n),B={};j.forEach(F=>{B[F.field]=E.includes(F.field)}),S&&(B[Bp.field]=!0),n.current.setColumnVisibilityModel(B),I()}),[n]),m=x.useCallback(C=>{const S=C({apiRef:n}).reduce((I,E)=>{const j=n.current.getRow(E);return j[Q2]||I.push(j),I},[]);n.current.setRows(S)},[n]),g=x.useCallback((C,M)=>{var $,z,Q,G;const S=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},M),I=C.contentDocument;if(!I)return;const E=Tp(n.current.state),j=n.current.rootElementRef.current,B=j.cloneNode(!0),F=B.querySelector(`.${we.main}`);F.style.overflow="visible",B.style.contain="size";let O=(($=j.querySelector(`.${we.toolbarContainer}`))==null?void 0:$.offsetHeight)||0,N=((z=j.querySelector(`.${we.footerContainer}`))==null?void 0:z.offsetHeight)||0;S.hideToolbar&&((Q=B.querySelector(`.${we.toolbarContainer}`))==null||Q.remove(),O=0),S.hideFooter&&((G=B.querySelector(`.${we.footerContainer}`))==null||G.remove(),N=0);const H=E.currentPageTotalHeight+XA(n,o)+O+N;if(B.style.height=`${H}px`,B.style.boxSizing="content-box",!S.hideFooter){const D=B.querySelector(`.${we.footerContainer}`);D.style.position="absolute",D.style.width="100%",D.style.top=`${H-N}px`}const L=document.createElement("div");L.appendChild(B),I.body.style.marginTop="0px",I.body.innerHTML=L.innerHTML;const _=typeof S.pageStyle=="function"?S.pageStyle():S.pageStyle;if(typeof _=="string"){const D=I.createElement("style");D.appendChild(I.createTextNode(_)),I.head.appendChild(D)}S.bodyClassName&&I.body.classList.add(...S.bodyClassName.split(" "));const V=[];if(S.copyStyles){const D=j.getRootNode(),W=(D.constructor.name==="ShadowRoot"?D:s.current).querySelectorAll("style, link[rel='stylesheet']");for(let X=0;X{se.addEventListener("load",()=>de())})),I.head.appendChild(se)}}}Promise.all(V).then(()=>{C.contentWindow.print()})},[n,s,o]),v=x.useCallback(C=>{var M,S;s.current.body.removeChild(C),n.current.restoreState(l.current||{}),(S=(M=l.current)==null?void 0:M.columns)!=null&&S.columnVisibilityModel||n.current.setColumnVisibilityModel(c.current),n.current.setState(I=>P({},I,{virtualization:f.current})),n.current.setRows(d.current),l.current=null,c.current={},d.current=[]},[n]),A={exportDataAsPrint:x.useCallback(async C=>{if(i.debug("Export data as Print"),!n.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(l.current=n.current.exportState(),c.current=x1(n),d.current=n.current.getSortedRows().filter(S=>!S[Q2]),o.pagination){const I={page:0,pageSize:dT(n)};n.current.setState(E=>P({},E,{pagination:P({},E.pagination,{paginationModel:dv(E.pagination,"DataGridPro",I)})}))}f.current=n.current.state.virtualization,n.current.setState(S=>P({},S,{virtualization:P({},S.virtualization,{enabled:!1,enabledForColumns:!1})})),await p(C==null?void 0:C.fields,C==null?void 0:C.allColumns,C==null?void 0:C.includeCheckboxes),m((C==null?void 0:C.getRowsToExport)??QT),await Yfe();const M=Kfe(C==null?void 0:C.fileName);M.onload=()=>{g(M,C),M.contentWindow.matchMedia("print").addEventListener("change",I=>{I.matches===!1&&v(M)})},s.current.body.appendChild(M)},[o,i,n,g,v,p,m])};Zr(n,A,"public");const k=x.useCallback((C,M)=>{var S;return(S=M.printOptions)!=null&&S.disableToolbarButton?C:[...C,{component:b.jsx(Qde,{options:M.printOptions}),componentName:"printExport"}]},[]);Ii(n,"exportMenu",k)},Jfe=(n,o,i)=>{var l,c;const s=o.filterModel??((c=(l=o.initialState)==null?void 0:l.filter)==null?void 0:c.filterModel)??Xh();return P({},n,{filter:{filterModel:HA(s,o.disableMultipleColumnsFiltering,i),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Zfe=n=>n.filteredRowsLookup;function zE(n,o){return n.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:o.rows.tree,filteredRowsLookup:o.filter.filteredRowsLookup})}function e2e(){return GB(Object.values)}const t2e=(n,o)=>{var H,L,_;const i=za(n,"useGridFilter");n.current.registerControlState({stateId:"filter",propModel:o.filterModel,propOnChange:o.onFilterModelChange,stateSelector:Ya,changeEvent:"filterModelChange"});const s=x.useCallback(()=>{n.current.setState(V=>{const $=Ya(V,n.current.instanceId),z=n.current.getFilterState($),Q=P({},V,{filter:P({},V.filter,z)}),G=zE(n,Q);return P({},Q,{visibleRowsLookup:G})}),n.current.publishEvent("filteredRowsSet")},[n]),l=x.useCallback((V,$)=>$==null||$.filterable===!1||o.disableColumnFilter?V:[...V,"columnMenuFilterItem"],[o.disableColumnFilter]),c=x.useCallback(()=>{s(),n.current.forceUpdate()},[n,s]),d=x.useCallback(V=>{const $=Ya(n),z=[...$.items],Q=z.findIndex(G=>G.id===V.id);Q===-1?z.push(V):z[Q]=V,n.current.setFilterModel(P({},$,{items:z}),"upsertFilterItem")},[n]),f=x.useCallback(V=>{const $=Ya(n),z=[...$.items];V.forEach(Q=>{const G=z.findIndex(D=>D.id===Q.id);G===-1?z.push(Q):z[G]=Q}),n.current.setFilterModel(P({},$,{items:z}),"upsertFilterItems")},[n]),p=x.useCallback(V=>{const $=Ya(n),z=$.items.filter(Q=>Q.id!==V.id);z.length!==$.items.length&&n.current.setFilterModel(P({},$,{items:z}),"deleteFilterItem")},[n]),m=x.useCallback((V,$,z)=>{if(i.debug("Displaying filter panel"),V){const Q=Ya(n),G=Q.items.filter(X=>{var ee;if(X.value!==void 0)return!(Array.isArray(X.value)&&X.value.length===0);const se=(ee=n.current.getColumn(X.field).filterOperators)==null?void 0:ee.find(fe=>fe.value===X.operator);return!(typeof(se==null?void 0:se.requiresFilterValue)>"u"?!0:se==null?void 0:se.requiresFilterValue)});let D;const q=G.find(X=>X.field===V),W=n.current.getColumn(V);q?D=G:o.disableMultipleColumnsFiltering?D=[Zy({field:V,operator:W.filterOperators[0].value},n)]:D=[...G,Zy({field:V,operator:W.filterOperators[0].value},n)],n.current.setFilterModel(P({},Q,{items:D}))}n.current.showPreferences(Sf.filters,$,z)},[n,i,o.disableMultipleColumnsFiltering]),g=x.useCallback(()=>{i.debug("Hiding filter panel"),n.current.hidePreferences()},[n,i]),v=x.useCallback(V=>{const $=Ya(n);$.logicOperator!==V&&n.current.setFilterModel(P({},$,{logicOperator:V}),"changeLogicOperator")},[n]),w=x.useCallback(V=>{const $=Ya(n);V2($.quickFilterValues,V)||n.current.setFilterModel(P({},$,{quickFilterValues:[...V]}))},[n]),A=x.useCallback((V,$)=>{Ya(n)!==V&&(i.debug("Setting filter model"),n.current.updateControlState("filter",rE(V,o.disableMultipleColumnsFiltering,n),$),n.current.unstable_applyFilters())},[n,i,o.disableMultipleColumnsFiltering]),k=x.useCallback(V=>{const $=HA(V,o.disableMultipleColumnsFiltering,n),z=o.filterMode==="client"?gse($,n,o.disableEval):null,Q=n.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:z,filterModel:$??Xh()});return P({},Q,{filterModel:$})},[o.disableMultipleColumnsFiltering,o.filterMode,o.disableEval,n]),C={setFilterLogicOperator:v,unstable_applyFilters:c,deleteFilterItem:p,upsertFilterItem:d,upsertFilterItems:f,setFilterModel:A,showFilterPanel:m,hideFilterPanel:g,setQuickFilterValues:w,ignoreDiacritics:o.ignoreDiacritics,getFilterState:k};Zr(n,C,"public");const M=x.useCallback((V,$)=>{var G,D;const z=Ya(n);return!$.exportOnlyDirtyModels||o.filterModel!=null||((D=(G=o.initialState)==null?void 0:G.filter)==null?void 0:D.filterModel)!=null||!V2(z,Xh())?P({},V,{filter:{filterModel:z}}):V},[n,o.filterModel,(L=(H=o.initialState)==null?void 0:H.filter)==null?void 0:L.filterModel]),S=x.useCallback((V,$)=>{var Q;const z=(Q=$.stateToRestore.filter)==null?void 0:Q.filterModel;return z==null?V:(n.current.updateControlState("filter",rE(z,o.disableMultipleColumnsFiltering,n),"restoreState"),P({},V,{callbacks:[...V.callbacks,n.current.unstable_applyFilters]}))},[n,o.disableMultipleColumnsFiltering]),I=x.useCallback((V,$)=>{var z;if($===Sf.filters){const Q=o.slots.filterPanel;return b.jsx(Q,P({},(z=o.slotProps)==null?void 0:z.filterPanel))}return V},[o.slots.filterPanel,(_=o.slotProps)==null?void 0:_.filterPanel]),{getRowId:E}=o,j=Pf(e2e),B=x.useCallback(V=>{if(o.filterMode!=="client"||!V.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const $=cd(n),z={},{isRowMatchingFilters:Q}=V,G={},D={passingFilterItems:null,passingQuickFilterValues:null},q=j.current(n.current.state.rows.dataRowIdToModelLookup);for(let te=0;te{i.debug("onColUpdated - GridColumns changed, applying filters");const V=Ya(n),$=$d(n),z=V.items.filter(Q=>Q.field&&$[Q.field]);z.length{V==="filtering"&&n.current.unstable_applyFilters()},[n]),N=x.useCallback(()=>{n.current.setState(V=>P({},V,{visibleRowsLookup:zE(n,V)})),n.current.forceUpdate()},[n]);Jt(n,"rowsSet",s),Jt(n,"columnsChange",F),Jt(n,"activeStrategyProcessorChange",O),Jt(n,"rowExpansionChange",N),Jt(n,"columnVisibilityModelChange",()=>{const V=Ya(n);V.quickFilterValues&&eT(V)&&n.current.unstable_applyFilters()}),Dm(()=>{n.current.unstable_applyFilters()}),yo(()=>{o.filterModel!==void 0&&n.current.setFilterModel(o.filterModel)},[n,i,o.filterModel])},r2e=n=>P({},n,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),n2e=(n,o)=>{const i=za(n,"useGridFocus"),s=x.useRef(null),l=x.useCallback((O,N)=>{O&&n.current.getRow(O.id)&&n.current.publishEvent("cellFocusOut",n.current.getCellParams(O.id,O.field),N)},[n]),c=x.useCallback((O,N)=>{const H=a1(n);(H==null?void 0:H.id)===O&&(H==null?void 0:H.field)===N||(n.current.setState(L=>(i.debug(`Focusing on cell with id=${O} and field=${N}`),P({},L,{tabIndex:{cell:{id:O,field:N},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:O,field:N},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),n.current.forceUpdate(),n.current.getRow(O)&&(H&&l(H,{}),n.current.publishEvent("cellFocusIn",n.current.getCellParams(O,N))))},[n,i,l]),d=x.useCallback((O,N={})=>{const H=a1(n);l(H,N),n.current.setState(L=>(i.debug(`Focusing on column header with colIndex=${O}`),P({},L,{tabIndex:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),n.current.forceUpdate()},[n,i,l]),f=x.useCallback((O,N={})=>{const H=a1(n);l(H,N),n.current.setState(L=>(i.debug(`Focusing on column header filter with colIndex=${O}`),P({},L,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null}}))),n.current.forceUpdate()},[n,i,l]),p=x.useCallback((O,N,H={})=>{const L=a1(n);L&&n.current.publishEvent("cellFocusOut",n.current.getCellParams(L.id,L.field),H),n.current.setState(_=>P({},_,{tabIndex:{columnGroupHeader:{field:O,depth:N},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:O,depth:N},columnHeader:null,columnHeaderFilter:null,cell:null}})),n.current.forceUpdate()},[n]),m=x.useCallback(()=>p3(n),[n]),g=x.useCallback((O,N,H)=>{let L=n.current.getColumnIndex(N);const _=$a(n),V=Zh(n,{pagination:o.pagination,paginationMode:o.paginationMode}),$=$f(n),z=[].concat($.top||[],V.rows,$.bottom||[]);let Q=z.findIndex(W=>W.id===O);H==="right"?L+=1:H==="left"?L-=1:Q+=1,L>=_.length?(Q+=1,Q=0&&(L=_.length-1)),Q=Mu(Q,0,z.length-1);const G=z[Q];if(!G)return;const D=n.current.unstable_getCellColSpanInfo(G.id,L);D&&D.spannedByColSpan&&(H==="left"||H==="below"?L=D.leftVisibleCellIndex:H==="right"&&(L=D.rightVisibleCellIndex)),L=Mu(L,0,_.length-1);const q=_[L];n.current.setCellFocus(G.id,q.field)},[n,o.pagination,o.paginationMode]),v=x.useCallback(({id:O,field:N})=>{n.current.setCellFocus(O,N)},[n]),w=x.useCallback((O,N)=>{N.key==="Enter"||N.key==="Tab"||N.key==="Shift"||g3(N.key)||n.current.setCellFocus(O.id,O.field)},[n]),A=x.useCallback(({field:O},N)=>{N.target===N.currentTarget&&n.current.setColumnHeaderFocus(O,N)},[n]),k=x.useCallback(({fields:O,depth:N},H)=>{if(H.target!==H.currentTarget)return;const L=p3(n);L!==null&&L.depth===N&&O.includes(L.field)||n.current.setColumnGroupHeaderFocus(O[0],N,H)},[n]),C=x.useCallback((O,N)=>{var H,L;(L=(H=N.relatedTarget)==null?void 0:H.getAttribute("class"))!=null&&L.includes(we.columnHeader)||(i.debug("Clearing focus"),n.current.setState(_=>P({},_,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[i,n]),M=x.useCallback(O=>{s.current=O},[]),S=x.useCallback(O=>{const N=s.current;s.current=null;const H=a1(n);if(!n.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:O,cell:N}))return;if(!H){N&&n.current.setCellFocus(N.id,N.field);return}if((N==null?void 0:N.id)===H.id&&(N==null?void 0:N.field)===H.field)return;const _=n.current.getCellElement(H.id,H.field);_!=null&&_.contains(O.target)||(N?n.current.setCellFocus(N.id,N.field):(n.current.setState(V=>P({},V,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),n.current.forceUpdate(),l(H,O)))},[n,l]),I=x.useCallback(O=>{if(O.cellMode==="view")return;const N=a1(n);((N==null?void 0:N.id)!==O.id||(N==null?void 0:N.field)!==O.field)&&n.current.setCellFocus(O.id,O.field)},[n]),E=x.useCallback(()=>{const O=a1(n);O&&!n.current.getRow(O.id)&&n.current.setState(N=>P({},N,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[n]),j=ln(()=>{const O=a1(n);if(!O)return;const N=Zh(n,{pagination:o.pagination,paginationMode:o.paginationMode});if(N.rows.find(_=>_.id===O.id))return;const L=$a(n);n.current.setState(_=>P({},_,{tabIndex:{cell:{id:N.rows[0].id,field:L[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),B={setCellFocus:c,setColumnHeaderFocus:d,setColumnHeaderFilterFocus:f},F={moveFocusToRelativeCell:g,setColumnGroupHeaderFocus:p,getColumnGroupHeaderFocus:m};Zr(n,B,"public"),Zr(n,F,"private"),x.useEffect(()=>{const O=ei(n.current.rootElementRef.current);return O.addEventListener("mouseup",S),()=>{O.removeEventListener("mouseup",S)}},[n,S]),Jt(n,"columnHeaderBlur",C),Jt(n,"cellDoubleClick",v),Jt(n,"cellMouseDown",M),Jt(n,"cellKeyDown",w),Jt(n,"cellModeChange",I),Jt(n,"columnHeaderFocus",A),Jt(n,"columnGroupHeaderFocus",k),Jt(n,"rowsSet",E),Jt(n,"paginationModelChange",j)};function o2e(n,o){const i=$f(n)||{};return[...i.top||[],...o,...i.bottom||[]]}const px=({currentColIndex:n,firstColIndex:o,lastColIndex:i,direction:s})=>{if(s==="rtl"){if(no)return n-1;return null},hx=({currentColIndex:n,firstColIndex:o,lastColIndex:i,direction:s})=>{if(s==="rtl"){if(n>o)return n-1}else if(s==="ltr"&&n{const i=za(n,"useGridKeyboardNavigation"),s=Lf(n,o).rows,l=ka(),c=x.useMemo(()=>o2e(n,s),[n,s]),d=o.signature!=="DataGrid"&&o.headerFilters,f=x.useCallback((S,I,E="left")=>{const j=zd(n),B=n.current.unstable_getCellColSpanInfo(I,S);B&&B.spannedByColSpan&&(E==="left"?S=B.leftVisibleCellIndex:E==="right"&&(S=B.rightVisibleCellIndex));const F=j.findIndex(N=>N.id===I);i.debug(`Navigating to cell row ${F}, col ${S}`),n.current.scrollToIndexes({colIndex:S,rowIndex:F});const O=n.current.getVisibleColumns()[S].field;n.current.setCellFocus(I,O)},[n,i]),p=x.useCallback((S,I)=>{i.debug(`Navigating to header col ${S}`),n.current.scrollToIndexes({colIndex:S});const E=n.current.getVisibleColumns()[S].field;n.current.setColumnHeaderFocus(E,I)},[n,i]),m=x.useCallback((S,I)=>{i.debug(`Navigating to header filter col ${S}`),n.current.scrollToIndexes({colIndex:S});const E=n.current.getVisibleColumns()[S].field;n.current.setColumnHeaderFilterFocus(E,I)},[n,i]),g=x.useCallback((S,I,E)=>{i.debug(`Navigating to header col ${S}`),n.current.scrollToIndexes({colIndex:S});const{field:j}=n.current.getVisibleColumns()[S];n.current.setColumnGroupHeaderFocus(j,I,E)},[n,i]),v=x.useCallback(S=>{var I;return(I=c[S])==null?void 0:I.id},[c]),w=x.useCallback((S,I)=>{const E=I.currentTarget.querySelector(`.${we.columnHeaderTitleContainerContent}`);if(!!E&&E.contains(I.target)&&S.field!==Bp.field)return;const B=n.current.getViewportPageSize(),F=S.field?n.current.getColumnIndex(S.field):0,O=c.length>0?0:null,N=c.length-1,H=0,L=$a(n).length-1,_=Nm(n);let V=!0;switch(I.key){case"ArrowDown":{O!==null&&(d?m(F,I):f(F,v(O)));break}case"ArrowRight":{const $=hx({currentColIndex:F,firstColIndex:H,lastColIndex:L,direction:l.direction});$!==null&&p($,I);break}case"ArrowLeft":{const $=px({currentColIndex:F,firstColIndex:H,lastColIndex:L,direction:l.direction});$!==null&&p($,I);break}case"ArrowUp":{_>0&&g(F,_-1,I);break}case"PageDown":{O!==null&&N!==null&&f(F,v(Math.min(O+B,N)));break}case"Home":{p(H,I);break}case"End":{p(L,I);break}case"Enter":{(I.ctrlKey||I.metaKey)&&n.current.toggleColumnMenu(S.field);break}case" ":break;default:V=!1}V&&I.preventDefault()},[n,c.length,d,m,f,v,l.direction,p,g]),A=x.useCallback((S,I)=>{const E=i1e(n)===S.field,j=a1e(n)===S.field;if(E||j||!g3(I.key))return;const B=n.current.getViewportPageSize(),F=S.field?n.current.getColumnIndex(S.field):0,O=0,N=c.length-1,H=0,L=$a(n).length-1;let _=!0;switch(I.key){case"ArrowDown":{const V=v(O);V!=null&&f(F,V);break}case"ArrowRight":{const V=hx({currentColIndex:F,firstColIndex:H,lastColIndex:L,direction:l.direction});V!==null&&m(V,I);break}case"ArrowLeft":{const V=px({currentColIndex:F,firstColIndex:H,lastColIndex:L,direction:l.direction});V!==null?m(V,I):n.current.setColumnHeaderFilterFocus(S.field,I);break}case"ArrowUp":{p(F,I);break}case"PageDown":{N!==null&&f(F,v(Math.min(O+B,N)));break}case"Home":{m(H,I);break}case"End":{m(L,I);break}case" ":break;default:_=!1}_&&I.preventDefault()},[n,c.length,m,l.direction,p,f,v]),k=x.useCallback((S,I)=>{const E=p3(n);if(E===null)return;const{field:j,depth:B}=E,{fields:F,depth:O,maxDepth:N}=S,H=n.current.getViewportPageSize(),L=n.current.getColumnIndex(j),_=j?n.current.getColumnIndex(j):0,V=0,$=c.length-1,z=0,Q=$a(n).length-1;let G=!0;switch(I.key){case"ArrowDown":{O===N-1?p(L,I):g(L,B+1,I);break}case"ArrowUp":{O>0&&g(L,B-1,I);break}case"ArrowRight":{const D=F.length-F.indexOf(j)-1;L+D+1<=Q&&g(L+D+1,B,I);break}case"ArrowLeft":{const D=F.indexOf(j);L-D-1>=z&&g(L-D-1,B,I);break}case"PageDown":{$!==null&&f(_,v(Math.min(V+H,$)));break}case"Home":{g(z,B,I);break}case"End":{g(Q,B,I);break}case" ":break;default:G=!1}G&&I.preventDefault()},[n,c.length,p,g,f,v]),C=x.useCallback((S,I)=>{if($m(I))return;const E=n.current.getCellParams(S.id,S.field);if(E.cellMode===Oo.Edit||!g3(I.key)||!n.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:E})||c.length===0)return;const B=l.direction,F=n.current.getViewportPageSize(),O=S.field?n.current.getColumnIndex(S.field):0,N=c.findIndex(z=>z.id===S.id),H=0,L=c.length-1,_=0,V=$a(n).length-1;let $=!0;switch(I.key){case"ArrowDown":{NH?f(O,v(N-1)):d?m(O,I):p(O,I);break}case"ArrowRight":{const z=hx({currentColIndex:O,firstColIndex:_,lastColIndex:V,direction:B});z!==null&&f(z,v(N),B==="rtl"?"left":"right");break}case"ArrowLeft":{const z=px({currentColIndex:O,firstColIndex:_,lastColIndex:V,direction:B});z!==null&&f(z,v(N),B==="rtl"?"right":"left");break}case"Tab":{I.shiftKey&&O>_?f(O-1,v(N),"left"):!I.shiftKey&&O=H?f(O,v(z)):p(O,I);break}case"Home":{I.ctrlKey||I.metaKey||I.shiftKey?f(_,v(H)):f(_,v(N));break}case"End":{I.ctrlKey||I.metaKey||I.shiftKey?f(V,v(L)):f(V,v(N));break}default:$=!1}$&&I.preventDefault()},[n,c,l.direction,f,v,d,m,p]),M=x.useCallback((S,{event:I})=>I.key===" "?!1:S,[]);Ii(n,"canStartEditing",M),Jt(n,"columnHeaderKeyDown",w),Jt(n,"headerFilterKeyDown",A),Jt(n,"columnGroupHeaderKeyDown",k),Jt(n,"cellKeyDown",C)},a2e=(n,o)=>{var k,C;const i=za(n,"useGridRowCount"),s=$t(n,_A),l=$t(n,M2),c=$t(n,k0),d=$t(n,Ws),f=Pf(()=>Ws(n).pageSize);n.current.registerControlState({stateId:"paginationRowCount",propModel:o.rowCount,propOnChange:o.onRowCountChange,stateSelector:M2,changeEvent:"rowCountChange"});const m={setRowCount:x.useCallback(M=>{l!==M&&(i.debug("Setting 'rowCount' to",M),n.current.setState(S=>P({},S,{pagination:P({},S.pagination,{rowCount:M})})))},[n,i,l])};Zr(n,m,"public");const g=x.useCallback((M,S)=>{var j,B;const I=M2(n);return!S.exportOnlyDirtyModels||o.rowCount!=null||((B=(j=o.initialState)==null?void 0:j.pagination)==null?void 0:B.rowCount)!=null?P({},M,{pagination:P({},M.pagination,{rowCount:I})}):M},[n,o.rowCount,(C=(k=o.initialState)==null?void 0:k.pagination)==null?void 0:C.rowCount]),v=x.useCallback((M,S)=>{var E;const I=(E=S.stateToRestore.pagination)!=null&&E.rowCount?S.stateToRestore.pagination.rowCount:M2(n);return n.current.setState(j=>P({},j,{pagination:P({},j.pagination,{rowCount:I})})),M},[n]);Ii(n,"exportState",g),Ii(n,"restoreState",v);const w=x.useCallback(M=>{o.paginationMode==="client"||!f.current||M.pageSize!==f.current&&(f.current=M.pageSize,l===-1&&n.current.setPage(0))},[o.paginationMode,f,l,n]);Jt(n,"paginationModelChange",w),x.useEffect(()=>{o.paginationMode==="client"?n.current.setRowCount(s):o.rowCount!=null&&n.current.setRowCount(o.rowCount)},[n,o.paginationMode,s,o.rowCount]);const A=c.hasNextPage===!1;x.useEffect(()=>{A&&l===-1&&n.current.setRowCount(d.pageSize*d.page+s)},[n,s,A,l,d])},s2e=(n,o)=>{var p,m;const i=za(n,"useGridPaginationMeta"),s=$t(n,k0);n.current.registerControlState({stateId:"paginationMeta",propModel:o.paginationMeta,propOnChange:o.onPaginationMetaChange,stateSelector:k0,changeEvent:"paginationMetaChange"});const c={setPaginationMeta:x.useCallback(g=>{s!==g&&(i.debug("Setting 'paginationMeta' to",g),n.current.setState(v=>P({},v,{pagination:P({},v.pagination,{meta:g})})))},[n,i,s])};Zr(n,c,"public");const d=x.useCallback((g,v)=>{var k,C;const w=k0(n);return!v.exportOnlyDirtyModels||o.paginationMeta!=null||((C=(k=o.initialState)==null?void 0:k.pagination)==null?void 0:C.meta)!=null?P({},g,{pagination:P({},g.pagination,{meta:w})}):g},[n,o.paginationMeta,(m=(p=o.initialState)==null?void 0:p.pagination)==null?void 0:m.meta]),f=x.useCallback((g,v)=>{var A;const w=(A=v.stateToRestore.pagination)!=null&&A.meta?v.stateToRestore.pagination.meta:k0(n);return n.current.setState(k=>P({},k,{pagination:P({},k.pagination,{meta:w})})),g},[n]);Ii(n,"exportState",d),Ii(n,"restoreState",f),x.useEffect(()=>{o.paginationMeta&&n.current.setPaginationMeta(o.paginationMeta)},[n,o.paginationMeta])},l2e=(n,o)=>{var c,d,f,p,m,g;const i=P({},hT(o.autoPageSize),o.paginationModel??((d=(c=o.initialState)==null?void 0:c.pagination)==null?void 0:d.paginationModel));mT(i.pageSize,o.signature);const s=o.rowCount??((p=(f=o.initialState)==null?void 0:f.pagination)==null?void 0:p.rowCount),l=o.paginationMeta??((g=(m=o.initialState)==null?void 0:m.pagination)==null?void 0:g.meta)??{};return P({},n,{pagination:{paginationModel:i,rowCount:s,meta:l}})},c2e=(n,o)=>{s2e(n,o),_fe(n,o),a2e(n,o)},u2e=(n,o)=>{var i;return P({},n,{preferencePanel:((i=o.initialState)==null?void 0:i.preferencePanel)??{open:!1}})},d2e=(n,o)=>{var v;const i=za(n,"useGridPreferencesPanel"),s=x.useRef(),l=x.useRef(),c=x.useCallback(()=>{i.debug("Hiding Preferences Panel");const w=em(n.current.state);w.openedPanelValue&&n.current.publishEvent("preferencePanelClose",{openedPanelValue:w.openedPanelValue}),n.current.setState(A=>P({},A,{preferencePanel:{open:!1}})),n.current.forceUpdate()},[n,i]),d=x.useCallback(()=>{l.current=setTimeout(()=>clearTimeout(s.current),0)},[]),f=x.useCallback(()=>{s.current=setTimeout(c,100)},[c]),p=x.useCallback((w,A,k)=>{i.debug("Opening Preferences Panel"),d(),n.current.setState(C=>P({},C,{preferencePanel:P({},C.preferencePanel,{open:!0,openedPanelValue:w,panelId:A,labelId:k})})),n.current.publishEvent("preferencePanelOpen",{openedPanelValue:w}),n.current.forceUpdate()},[i,d,n]);Zr(n,{showPreferences:p,hidePreferences:f},"public");const m=x.useCallback((w,A)=>{var M;const k=em(n.current.state);return!A.exportOnlyDirtyModels||((M=o.initialState)==null?void 0:M.preferencePanel)!=null||k.open?P({},w,{preferencePanel:k}):w},[n,(v=o.initialState)==null?void 0:v.preferencePanel]),g=x.useCallback((w,A)=>{const k=A.stateToRestore.preferencePanel;return k!=null&&n.current.setState(C=>P({},C,{preferencePanel:k})),w},[n]);Ii(n,"exportState",m),Ii(n,"restoreState",g),x.useEffect(()=>()=>{clearTimeout(s.current),clearTimeout(l.current)},[])},f2e=["id","field"],p2e=["id","field"],h2e=(n,o)=>{const[i,s]=x.useState({}),l=x.useRef(i),c=x.useRef({}),{processRowUpdate:d,onProcessRowUpdateError:f,cellModesModel:p,onCellModesModelChange:m}=o,g=Q=>(...G)=>{o.editMode===Qc.Cell&&Q(...G)},v=x.useCallback((Q,G)=>{const D=n.current.getCellParams(Q,G);if(!n.current.isCellEditable(D))throw new Error(`MUI X: The cell with id=${Q} and field=${G} is not editable.`)},[n]),w=x.useCallback((Q,G,D)=>{if(n.current.getCellMode(Q,G)!==D)throw new Error(`MUI X: The cell with id=${Q} and field=${G} is not in ${D} mode.`)},[n]),A=x.useCallback((Q,G)=>{if(!Q.isEditable||Q.cellMode===Oo.Edit)return;const D=P({},Q,{reason:Yc.cellDoubleClick});n.current.publishEvent("cellEditStart",D,G)},[n]),k=x.useCallback((Q,G)=>{if(Q.cellMode===Oo.View||n.current.getCellMode(Q.id,Q.field)===Oo.View)return;const D=P({},Q,{reason:_1.cellFocusOut});n.current.publishEvent("cellEditStop",D,G)},[n]),C=x.useCallback((Q,G)=>{if(Q.cellMode===Oo.Edit){if(G.which===229)return;let D;if(G.key==="Escape"?D=_1.escapeKeyDown:G.key==="Enter"?D=_1.enterKeyDown:G.key==="Tab"&&(D=G.shiftKey?_1.shiftTabKeyDown:_1.tabKeyDown,G.preventDefault()),D){const q=P({},Q,{reason:D});n.current.publishEvent("cellEditStop",q,G)}}else if(Q.isEditable){let D;if(!n.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:G,cellParams:Q,editMode:"cell"}))return;if(AT(G)?D=Yc.printableKeyDown:CT(G)?D=Yc.pasteKeyDown:G.key==="Enter"?D=Yc.enterKeyDown:(G.key==="Backspace"||G.key==="Delete")&&(D=Yc.deleteKeyDown),D){const W=P({},Q,{reason:D,key:G.key});n.current.publishEvent("cellEditStart",W,G)}}},[n]),M=x.useCallback(Q=>{const{id:G,field:D,reason:q}=Q,W={id:G,field:D};(q===Yc.printableKeyDown||q===Yc.deleteKeyDown||q===Yc.pasteKeyDown)&&(W.deleteValue=!0),n.current.startCellEditMode(W)},[n]),S=x.useCallback(Q=>{const{id:G,field:D,reason:q}=Q;n.current.runPendingEditCellValueMutation(G,D);let W;q===_1.enterKeyDown?W="below":q===_1.tabKeyDown?W="right":q===_1.shiftTabKeyDown&&(W="left");const X=q==="escapeKeyDown";n.current.stopCellEditMode({id:G,field:D,ignoreModifications:X,cellToFocusAfter:W})},[n]),I=Q=>async(...G)=>{var D;if(Q){const{id:q,field:W}=G[0];((D=n.current.state.editRows[q][W])==null?void 0:D.error)||Q(...G)}};Jt(n,"cellDoubleClick",g(A)),Jt(n,"cellFocusOut",g(k)),Jt(n,"cellKeyDown",g(C)),Jt(n,"cellEditStart",g(M)),Jt(n,"cellEditStop",g(S)),Jo(n,"cellEditStart",o.onCellEditStart),Jo(n,"cellEditStop",I(o.onCellEditStop));const E=x.useCallback((Q,G)=>{const D=Rs(n.current.state);return D[Q]&&D[Q][G]?Oo.Edit:Oo.View},[n]),j=ln(Q=>{const G=Q!==o.cellModesModel;m&&G&&m(Q,{api:n.current}),!(o.cellModesModel&&G)&&(s(Q),l.current=Q,n.current.publishEvent("cellModesModelChange",Q))}),B=x.useCallback((Q,G,D)=>{const q=P({},l.current);if(D!==null)q[Q]=P({},q[Q],{[G]:P({},D)});else{const W=q[Q],X=Qe(W,[G].map(Ah));q[Q]=X,Object.keys(q[Q]).length===0&&delete q[Q]}j(q)},[j]),F=x.useCallback((Q,G,D)=>{n.current.setState(q=>{const W=P({},q.editRows);return D!==null?W[Q]=P({},W[Q],{[G]:P({},D)}):(delete W[Q][G],Object.keys(W[Q]).length===0&&delete W[Q]),P({},q,{editRows:W})}),n.current.forceUpdate()},[n]),O=x.useCallback(Q=>{const{id:G,field:D}=Q,q=Qe(Q,f2e);v(G,D),w(G,D,Oo.View),B(G,D,P({mode:Oo.Edit},q))},[v,w,B]),N=ln(Q=>{const{id:G,field:D,deleteValue:q,initialValue:W}=Q;let X=n.current.getCellValue(G,D);if(q)switch(n.current.getColumn(D).type){case"boolean":X=!1;break;case"date":case"dateTime":case"number":X=void 0;break;case"singleSelect":X=null;break;case"string":default:X="";break}else W&&(X=W);F(G,D,{value:X,error:!1,isProcessingProps:!1}),n.current.setCellFocus(G,D)}),H=x.useCallback(Q=>{const{id:G,field:D}=Q,q=Qe(Q,p2e);w(G,D,Oo.Edit),B(G,D,P({mode:Oo.View},q))},[w,B]),L=ln(async Q=>{const{id:G,field:D,ignoreModifications:q,cellToFocusAfter:W="none"}=Q;w(G,D,Oo.Edit),n.current.runPendingEditCellValueMutation(G,D);const X=()=>{F(G,D,null),B(G,D,null),W!=="none"&&n.current.moveFocusToRelativeCell(G,D,W)};if(q){X();return}const te=Rs(n.current.state),{error:se,isProcessingProps:de}=te[G][D];if(se||de){c.current[G][D].mode=Oo.Edit,B(G,D,{mode:Oo.Edit});return}const ee=n.current.getRowWithUpdatedValuesFromCellEditing(G,D);if(d){const fe=he=>{c.current[G][D].mode=Oo.Edit,B(G,D,{mode:Oo.Edit}),f&&f(he)};try{const he=n.current.getRow(G);Promise.resolve(d(ee,he)).then(Ie=>{n.current.updateRows([Ie]),X()}).catch(fe)}catch(he){fe(he)}}else n.current.updateRows([ee]),X()}),_=x.useCallback(async Q=>{var he,Ie;const{id:G,field:D,value:q,debounceMs:W,unstable_skipValueParser:X}=Q;v(G,D),w(G,D,Oo.Edit);const te=n.current.getColumn(D),se=n.current.getRow(G);let de=q;te.valueParser&&!X&&(de=te.valueParser(q,se,te,n));let ee=Rs(n.current.state),fe=P({},ee[G][D],{value:de,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(te.preProcessEditCellProps){const ve=q!==ee[G][D].value;fe=P({},fe,{isProcessingProps:!0}),F(G,D,fe),fe=await Promise.resolve(te.preProcessEditCellProps({id:G,row:se,props:fe,hasChanged:ve}))}return n.current.getCellMode(G,D)===Oo.View?!1:(ee=Rs(n.current.state),fe=P({},fe,{isProcessingProps:!1}),fe.value=te.preProcessEditCellProps?ee[G][D].value:de,F(G,D,fe),ee=Rs(n.current.state),!((Ie=(he=ee[G])==null?void 0:he[D])!=null&&Ie.error))},[n,v,w,F]),V=x.useCallback((Q,G)=>{const D=n.current.getColumn(G),q=Rs(n.current.state),W=n.current.getRow(Q);if(!q[Q]||!q[Q][G])return n.current.getRow(Q);const{value:X}=q[Q][G];return D.valueSetter?D.valueSetter(X,W,D,n):P({},W,{[G]:X})},[n]),$={getCellMode:E,startCellEditMode:O,stopCellEditMode:H},z={setCellEditingEditCellValue:_,getRowWithUpdatedValuesFromCellEditing:V};Zr(n,$,"public"),Zr(n,z,"private"),x.useEffect(()=>{p&&j(p)},[p,j]),yo(()=>{const Q=f3(n),G=c.current;c.current=YB(i),Object.entries(i).forEach(([D,q])=>{Object.entries(q).forEach(([W,X])=>{var de,ee;const te=((ee=(de=G[D])==null?void 0:de[W])==null?void 0:ee.mode)||Oo.View,se=Q[D]??D;X.mode===Oo.Edit&&te===Oo.View?N(P({id:se,field:W},X)):X.mode===Oo.View&&te===Oo.Edit&&L(P({id:se,field:W},X))})})},[n,i,N,L])},m2e=["id"],g2e=["id"],v2e=(n,o)=>{const[i,s]=x.useState({}),l=x.useRef(i),c=x.useRef({}),d=x.useRef(),f=x.useRef(null),{processRowUpdate:p,onProcessRowUpdateError:m,rowModesModel:g,onRowModesModelChange:v}=o,w=W=>(...X)=>{o.editMode===Qc.Row&&W(...X)},A=x.useCallback((W,X)=>{const te=n.current.getCellParams(W,X);if(!n.current.isCellEditable(te))throw new Error(`MUI X: The cell with id=${W} and field=${X} is not editable.`)},[n]),k=x.useCallback((W,X)=>{if(n.current.getRowMode(W)!==X)throw new Error(`MUI X: The row with id=${W} is not in ${X} mode.`)},[n]),C=x.useCallback(W=>{const X=Rs(n.current.state);return Object.values(X[W]).some(te=>te.error)},[n]),M=x.useCallback((W,X)=>{if(!W.isEditable||n.current.getRowMode(W.id)===Xo.Edit)return;const te=n.current.getRowParams(W.id),se=P({},te,{field:W.field,reason:Vu.cellDoubleClick});n.current.publishEvent("rowEditStart",se,X)},[n]),S=x.useCallback(W=>{f.current=W},[]),I=x.useCallback((W,X)=>{W.isEditable&&n.current.getRowMode(W.id)!==Xo.View&&(f.current=null,d.current=setTimeout(()=>{var te;if(((te=f.current)==null?void 0:te.id)!==W.id){if(!n.current.getRow(W.id)||n.current.getRowMode(W.id)===Xo.View||C(W.id))return;const se=n.current.getRowParams(W.id),de=P({},se,{field:W.field,reason:yc.rowFocusOut});n.current.publishEvent("rowEditStop",de,X)}}))},[n,C]);x.useEffect(()=>()=>{clearTimeout(d.current)},[]);const E=x.useCallback((W,X)=>{if(W.cellMode===Xo.Edit){if(X.which===229)return;let te;if(X.key==="Escape")te=yc.escapeKeyDown;else if(X.key==="Enter")te=yc.enterKeyDown;else if(X.key==="Tab"){const se=Bm(n).filter(de=>n.current.getColumn(de).type===Hb?!0:n.current.isCellEditable(n.current.getCellParams(W.id,de)));if(X.shiftKey?W.field===se[0]&&(te=yc.shiftTabKeyDown):W.field===se[se.length-1]&&(te=yc.tabKeyDown),X.preventDefault(),!te){const de=se.findIndex(fe=>fe===W.field),ee=se[X.shiftKey?de-1:de+1];n.current.setCellFocus(W.id,ee)}}if(te){if(te!==yc.escapeKeyDown&&C(W.id))return;const se=P({},n.current.getRowParams(W.id),{reason:te,field:W.field});n.current.publishEvent("rowEditStop",se,X)}}else if(W.isEditable){let te;if(!n.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:X,cellParams:W,editMode:"row"}))return;if(AT(X)||CT(X)?te=Vu.printableKeyDown:X.key==="Enter"?te=Vu.enterKeyDown:(X.key==="Backspace"||X.key==="Delete")&&(te=Vu.deleteKeyDown),te){const de=n.current.getRowParams(W.id),ee=P({},de,{field:W.field,reason:te});n.current.publishEvent("rowEditStart",ee,X)}}},[n,C]),j=x.useCallback(W=>{const{id:X,field:te,reason:se}=W,de={id:X,fieldToFocus:te};(se===Vu.printableKeyDown||se===Vu.deleteKeyDown)&&(de.deleteValue=!!te),n.current.startRowEditMode(de)},[n]),B=x.useCallback(W=>{const{id:X,reason:te,field:se}=W;n.current.runPendingEditCellValueMutation(X);let de;te===yc.enterKeyDown?de="below":te===yc.tabKeyDown?de="right":te===yc.shiftTabKeyDown&&(de="left");const ee=te==="escapeKeyDown";n.current.stopRowEditMode({id:X,ignoreModifications:ee,field:se,cellToFocusAfter:de})},[n]);Jt(n,"cellDoubleClick",w(M)),Jt(n,"cellFocusIn",w(S)),Jt(n,"cellFocusOut",w(I)),Jt(n,"cellKeyDown",w(E)),Jt(n,"rowEditStart",w(j)),Jt(n,"rowEditStop",w(B)),Jo(n,"rowEditStart",o.onRowEditStart),Jo(n,"rowEditStop",o.onRowEditStop);const F=x.useCallback(W=>{if(o.editMode===Qc.Cell)return Xo.View;const X=Rs(n.current.state);return X[W]&&Object.keys(X[W]).length>0?Xo.Edit:Xo.View},[n,o.editMode]),O=ln(W=>{const X=W!==o.rowModesModel;v&&X&&v(W,{api:n.current}),!(o.rowModesModel&&X)&&(s(W),l.current=W,n.current.publishEvent("rowModesModelChange",W))}),N=x.useCallback((W,X)=>{const te=P({},l.current);X!==null?te[W]=P({},X):delete te[W],O(te)},[O]),H=x.useCallback((W,X)=>{n.current.setState(te=>{const se=P({},te.editRows);return X!==null?se[W]=X:delete se[W],P({},te,{editRows:se})}),n.current.forceUpdate()},[n]),L=x.useCallback((W,X,te)=>{n.current.setState(se=>{const de=P({},se.editRows);return te!==null?de[W]=P({},de[W],{[X]:P({},te)}):(delete de[W][X],Object.keys(de[W]).length===0&&delete de[W]),P({},se,{editRows:de})}),n.current.forceUpdate()},[n]),_=x.useCallback(W=>{const{id:X}=W,te=Qe(W,m2e);k(X,Xo.View),N(X,P({mode:Xo.Edit},te))},[k,N]),V=ln(W=>{const{id:X,fieldToFocus:te,deleteValue:se,initialValue:de}=W,fe=gu(n).reduce((he,Ie)=>{if(!n.current.getCellParams(X,Ie).isEditable)return he;let be=n.current.getCellValue(X,Ie);return te===Ie&&(se||de)&&(be=se?"":de),he[Ie]={value:be,error:!1,isProcessingProps:!1},he},{});H(X,fe),te&&n.current.setCellFocus(X,te)}),$=x.useCallback(W=>{const{id:X}=W,te=Qe(W,g2e);k(X,Xo.Edit),N(X,P({mode:Xo.View},te))},[k,N]),z=ln(W=>{const{id:X,ignoreModifications:te,field:se,cellToFocusAfter:de="none"}=W;n.current.runPendingEditCellValueMutation(X);const ee=()=>{de!=="none"&&se&&n.current.moveFocusToRelativeCell(X,se,de),H(X,null),N(X,null)};if(te){ee();return}const fe=Rs(n.current.state),he=n.current.getRow(X);if(Object.values(fe[X]).some(be=>be.isProcessingProps)){c.current[X].mode=Xo.Edit;return}if(C(X)){c.current[X].mode=Xo.Edit,N(X,{mode:Xo.Edit});return}const ve=n.current.getRowWithUpdatedValuesFromRowEditing(X);if(p){const be=ke=>{c.current[X].mode=Xo.Edit,N(X,{mode:Xo.Edit}),m&&m(ke)};try{Promise.resolve(p(ve,he)).then(ke=>{n.current.updateRows([ke]),ee()}).catch(be)}catch(ke){be(ke)}}else n.current.updateRows([ve]),ee()}),Q=x.useCallback(W=>{const{id:X,field:te,value:se,debounceMs:de,unstable_skipValueParser:ee}=W;A(X,te);const fe=n.current.getColumn(te),he=n.current.getRow(X);let Ie=se;fe.valueParser&&!ee&&(Ie=fe.valueParser(se,he,fe,n));let ve=Rs(n.current.state),be=P({},ve[X][te],{value:Ie,changeReason:de?"debouncedSetEditCellValue":"setEditCellValue"});return fe.preProcessEditCellProps||L(X,te,be),new Promise(ke=>{const ze=[];if(fe.preProcessEditCellProps){const Ge=be.value!==ve[X][te].value;be=P({},be,{isProcessingProps:!0}),L(X,te,be);const Ve=ve[X],at=Qe(Ve,[te].map(Ah)),We=Promise.resolve(fe.preProcessEditCellProps({id:X,row:he,props:be,hasChanged:Ge,otherFieldsProps:at})).then(ue=>{if(n.current.getRowMode(X)===Xo.View){ke(!1);return}ve=Rs(n.current.state),ue=P({},ue,{isProcessingProps:!1}),ue.value=fe.preProcessEditCellProps?ve[X][te].value:Ie,L(X,te,ue)});ze.push(We)}Object.entries(ve[X]).forEach(([Ge,Ve])=>{if(Ge===te)return;const at=n.current.getColumn(Ge);if(!at.preProcessEditCellProps)return;Ve=P({},Ve,{isProcessingProps:!0}),L(X,Ge,Ve),ve=Rs(n.current.state);const We=ve[X],ue=Qe(We,[Ge].map(Ah)),Le=Promise.resolve(at.preProcessEditCellProps({id:X,row:he,props:Ve,hasChanged:!1,otherFieldsProps:ue})).then($e=>{if(n.current.getRowMode(X)===Xo.View){ke(!1);return}$e=P({},$e,{isProcessingProps:!1}),L(X,Ge,$e)});ze.push(Le)}),Promise.all(ze).then(()=>{n.current.getRowMode(X)===Xo.Edit?(ve=Rs(n.current.state),ke(!ve[X][te].error)):ke(!1)})})},[n,A,L]),G=x.useCallback(W=>{const X=Rs(n.current.state),te=n.current.getRow(W);if(!X[W])return n.current.getRow(W);let se=P({},te);return Object.entries(X[W]).forEach(([de,ee])=>{const fe=n.current.getColumn(de);fe.valueSetter?se=fe.valueSetter(ee.value,se,fe,n):se[de]=ee.value}),se},[n]),D={getRowMode:F,startRowEditMode:_,stopRowEditMode:$},q={setRowEditingEditCellValue:Q,getRowWithUpdatedValuesFromRowEditing:G};Zr(n,D,"public"),Zr(n,q,"private"),x.useEffect(()=>{g&&O(g)},[g,O]),yo(()=>{const W=f3(n),X=c.current;c.current=YB(i);const te=new Set([...Object.keys(i),...Object.keys(X)]);Array.from(te).forEach(se=>{var he;const de=i[se]??{mode:Xo.View},ee=((he=X[se])==null?void 0:he.mode)||Xo.View,fe=W[se]??se;de.mode===Xo.Edit&&ee===Xo.View?V(P({id:fe},de)):de.mode===Xo.View&&ee===Xo.Edit&&z(P({id:fe},de))})},[n,i,V,z])},b2e=n=>P({},n,{editRows:{}}),w2e=(n,o)=>{h2e(n,o),v2e(n,o);const i=x.useRef({}),{isCellEditable:s}=o,l=x.useCallback(w=>dp(w.rowNode)||!w.colDef.editable||!w.colDef.renderEditCell?!1:s?s(w):!0,[s]),c=(w,A,k,C)=>{if(!k){C();return}if(i.current[w]||(i.current[w]={}),i.current[w][A]){const[I]=i.current[w][A];clearTimeout(I)}const M=()=>{const[I]=i.current[w][A];clearTimeout(I),C(),delete i.current[w][A]},S=setTimeout(()=>{C(),delete i.current[w][A]},k);i.current[w][A]=[S,M]};x.useEffect(()=>{const w=i.current;return()=>{Object.entries(w).forEach(([A,k])=>{Object.keys(k).forEach(C=>{const[M]=w[A][C];clearTimeout(M),delete w[A][C]})})}},[]);const d=x.useCallback((w,A)=>{if(i.current[w]){if(!A)Object.keys(i.current[w]).forEach(k=>{const[,C]=i.current[w][k];C()});else if(i.current[w][A]){const[,k]=i.current[w][A];k()}}},[]),f=x.useCallback(w=>{const{id:A,field:k,debounceMs:C}=w;return new Promise(M=>{c(A,k,C,async()=>{const S=o.editMode===Qc.Row?n.current.setRowEditingEditCellValue:n.current.setCellEditingEditCellValue;if(n.current.getCellMode(A,k)===Oo.Edit){const I=await S(w);M(I)}})})},[n,o.editMode]),p=x.useCallback((w,A)=>o.editMode===Qc.Cell?n.current.getRowWithUpdatedValuesFromCellEditing(w,A):n.current.getRowWithUpdatedValuesFromRowEditing(w),[n,o.editMode]),m=x.useCallback((w,A)=>{var C;return((C=Rs(n.current.state)[w])==null?void 0:C[A])??null},[n]),g={isCellEditable:l,setEditCellValue:f,getRowWithUpdatedValues:p,unstable_getEditCellMeta:m},v={runPendingEditCellValueMutation:d};Zr(n,g,"public"),Zr(n,v,"private")},x2e=(n,o,i)=>{const s=!!o.unstable_dataSource;return i.current.caches.rows=lv({rows:s?[]:o.rows,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),P({},n,{rows:nT({apiRef:i,rowCountProp:o.rowCount,loadingProp:s?!0:o.loading,previousTree:null,previousTreeDepths:null})})},y2e=(n,o)=>{const i=za(n,"useGridRows"),s=Lf(n,o),l=x.useRef(Date.now()),c=x.useRef(o.rowCount),d=Dl(),f=x.useCallback(D=>{const q=cd(n)[D];if(q)return q;const W=n.current.getRowNode(D);return W&&dp(W)?{[Q2]:D}:null},[n]),p=o.getRowId,m=x.useCallback(D=>Q2 in D?D[Q2]:p?p(D):D.id,[p]),g=x.useMemo(()=>s.rows.reduce((D,{id:q},W)=>(D[q]=W,D),{}),[s.rows]),v=x.useCallback(({cache:D,throttle:q})=>{const W=()=>{l.current=Date.now(),n.current.setState(te=>P({},te,{rows:nT({apiRef:n,rowCountProp:o.rowCount,loadingProp:o.loading,previousTree:h1(n),previousTreeDepths:iE(n),previousGroupsToFetch:Rse(n)})})),n.current.publishEvent("rowsSet"),n.current.forceUpdate()};if(d.clear(),n.current.caches.rows=D,!q){W();return}const X=o.throttleRowsMs-(Date.now()-l.current);if(X>0){d.start(X,W);return}W()},[o.throttleRowsMs,o.rowCount,o.loading,n,d]),w=x.useCallback(D=>{i.debug(`Updating all rows, new length ${D.length}`);const q=lv({rows:D,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),W=n.current.caches.rows;q.rowsBeforePartialUpdates=W.rowsBeforePartialUpdates,v({cache:q,throttle:!0})},[i,o.getRowId,o.loading,o.rowCount,v,n]),A=x.useCallback(D=>{if(o.signature===tc.DataGrid&&D.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));const q=sE(n,D,o.getRowId),W=aE({updates:q,getRowId:o.getRowId,previousCache:n.current.caches.rows});v({cache:W,throttle:!0})},[o.signature,o.getRowId,v,n]),k=x.useCallback((D,q)=>{const W=sE(n,D,o.getRowId),X=aE({updates:W,getRowId:o.getRowId,previousCache:n.current.caches.rows,groupKeys:q??[]});v({cache:X,throttle:!1})},[o.getRowId,v,n]),C=x.useCallback(D=>{D!==o.loading&&(i.debug(`Setting loading to ${D}`),n.current.setState(q=>P({},q,{rows:P({},q.rows,{loading:D})})),n.current.caches.rows.loadingPropBeforePartialUpdates=D)},[o.loading,n,i]),M=x.useCallback(()=>{const D=Rg(n),q=cd(n);return new Map(D.map(W=>[W,q[W]??{}]))},[n]),S=x.useCallback(()=>Fm(n),[n]),I=x.useCallback(()=>Rg(n),[n]),E=x.useCallback(D=>g[D],[g]),j=x.useCallback((D,q)=>{const W=n.current.getRowNode(D);if(!W)throw new Error(`MUI X: No row with id #${D} found.`);if(W.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const X=P({},W,{childrenExpanded:q});n.current.setState(te=>P({},te,{rows:P({},te.rows,{tree:P({},te.rows.tree,{[D]:X})})})),n.current.forceUpdate(),n.current.publishEvent("rowExpansionChange",X)},[n]),B=x.useCallback(D=>h1(n)[D]??null,[n]),F=x.useCallback(({skipAutoGeneratedRows:D=!0,groupId:q,applySorting:W,applyFiltering:X})=>{const te=h1(n);let se;if(W){const de=te[q];if(!de)return[];const ee=QA(n);se=[];const fe=ee.findIndex(he=>he===q)+1;for(let he=fe;hede.depth;he+=1){const Ie=ee[he];(!D||!dp(te[Ie]))&&se.push(Ie)}}else se=UA(te,q,D);if(X){const de=lT(n);se=se.filter(ee=>de[ee]!==!1)}return se},[n]),O=x.useCallback((D,q)=>{const W=n.current.getRowNode(D);if(!W)throw new Error(`MUI X: No row with id #${D} found.`);if(W.parent!==Ys)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(W.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");n.current.setState(X=>{const te=h1(X,n.current.instanceId)[Ys],se=te.children,de=se.findIndex(fe=>fe===D);if(de===-1||de===q)return X;i.debug(`Moving row ${D} to index ${q}`);const ee=[...se];return ee.splice(q,0,ee.splice(de,1)[0]),P({},X,{rows:P({},X.rows,{tree:P({},X.rows.tree,{[Ys]:P({},te,{children:ee})})})})}),n.current.publishEvent("rowsSet")},[n,i]),N=x.useCallback((D,q)=>{if(o.signature===tc.DataGrid&&q.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));if(q.length===0)return;if(Ub(n)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const X=P({},h1(n)),te=P({},cd(n)),se=P({},f3(n)),de=X[Ys],ee=[...de.children],fe=new Set;for(let Ie=0;Ie{var ve;return((ve=X[Ie])==null?void 0:ve.type)==="leaf"});n.current.caches.rows.dataRowIdToModelLookup=te,n.current.caches.rows.dataRowIdToIdLookup=se,n.current.setState(Ie=>P({},Ie,{rows:P({},Ie.rows,{dataRowIdToModelLookup:te,dataRowIdToIdLookup:se,dataRowIds:he,tree:X})})),n.current.publishEvent("rowsSet")},[n,o.signature,o.getRowId]),H={getRow:f,setLoading:C,getRowId:m,getRowModels:M,getRowsCount:S,getAllRowIds:I,setRows:w,updateRows:A,getRowNode:B,getRowIndexRelativeToVisibleRows:E,unstable_replaceRows:N},L={setRowIndex:O,setRowChildrenExpansion:j,getRowGroupChildren:F},_={updateServerRows:k},V=x.useCallback(()=>{i.info("Row grouping pre-processing have changed, regenerating the row tree");let D;n.current.caches.rows.rowsBeforePartialUpdates===o.rows?D=P({},n.current.caches.rows,{updates:{type:"full",rows:Rg(n)}}):D=lv({rows:o.rows,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),v({cache:D,throttle:!1})},[i,n,o.rows,o.getRowId,o.loading,o.rowCount,v]),$=x.useCallback(D=>{D==="rowTreeCreation"&&V()},[V]),z=x.useCallback(()=>{n.current.getActiveStrategy("rowTree")!==Bse(n)&&V()},[n,V]);Jt(n,"activeStrategyProcessorChange",$),Jt(n,"strategyAvailabilityChange",z);const Q=x.useCallback(()=>{n.current.setState(D=>{const q=n.current.unstable_applyPipeProcessors("hydrateRows",{tree:h1(D,n.current.instanceId),treeDepths:iE(D,n.current.instanceId),dataRowIds:Rg(D,n.current.instanceId),dataRowIdToModelLookup:cd(D,n.current.instanceId),dataRowIdToIdLookup:f3(D,n.current.instanceId)});return P({},D,{rows:P({},D.rows,q,{totalTopLevelRowCount:rT({tree:q.tree,rowCountProp:o.rowCount})})})}),n.current.publishEvent("rowsSet"),n.current.forceUpdate()},[n,o.rowCount]);s8(n,"hydrateRows",Q),Zr(n,H,"public"),Zr(n,L,o.signature===tc.DataGrid?"private":"public"),Zr(n,_,"private");const G=x.useRef(!0);x.useEffect(()=>{var te;if(G.current){G.current=!1;return}let D=!1;o.rowCount!==c.current&&(D=!0,c.current=o.rowCount);const q=n.current.caches.rows.rowsBeforePartialUpdates===o.rows,W=n.current.caches.rows.loadingPropBeforePartialUpdates===o.loading,X=n.current.caches.rows.rowCountPropBeforePartialUpdates===o.rowCount;q&&(W||(n.current.setState(se=>P({},se,{rows:P({},se.rows,{loading:o.loading})})),n.current.caches.rows.loadingPropBeforePartialUpdates=o.loading,n.current.forceUpdate()),X||(n.current.setState(se=>P({},se,{rows:P({},se.rows,{totalRowCount:Math.max(o.rowCount||0,se.rows.totalRowCount),totalTopLevelRowCount:Math.max(o.rowCount||0,se.rows.totalTopLevelRowCount)})})),n.current.caches.rows.rowCountPropBeforePartialUpdates=o.rowCount,n.current.forceUpdate()),!D)||(i.debug(`Updating all rows, new length ${(te=o.rows)==null?void 0:te.length}`),v({cache:lv({rows:o.rows,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),throttle:!1}))},[o.rows,o.rowCount,o.getRowId,o.loading,i,v,n])},A2e=n=>{const o={[Ys]:P({},Dse(),{children:n})};for(let i=0;i{const i=P({},n),s={};for(let d=0;d!s[d])),i[Ys]=P({},l,{children:c}),{groupingName:If,tree:i,treeDepths:{0:c.length},dataRowIds:c}},k2e=n=>n.updates.type==="full"?A2e(n.updates.rows):C2e({previousTree:n.previousTree,actions:n.updates.actions}),S2e=n=>{w3(n,If,"rowTreeCreation",k2e)},WT=(n,o)=>n==null||Array.isArray(n)?n:o&&o[0]===n?o:[n],I2e=(n,o)=>P({},n,{rowSelection:o.rowSelection?WT(o.rowSelectionModel)??[]:[]}),E2e=(n,o)=>{const i=za(n,"useGridSelection"),s=$=>(...z)=>{o.rowSelection&&$(...z)},l=x.useMemo(()=>WT(o.rowSelectionModel,s1(n.current.state)),[n,o.rowSelectionModel]),c=x.useRef(null);n.current.registerControlState({stateId:"rowSelection",propModel:l,propOnChange:o.onRowSelectionModelChange,stateSelector:s1,changeEvent:"rowSelectionChange"});const{checkboxSelection:d,disableRowSelectionOnClick:f,isRowSelectable:p}=o,m=GA(o),g=Lf(n,o),v=x.useCallback($=>{let z=$;const Q=c.current??$,G=n.current.isRowSelected($);if(G){const D=hh(n),q=D.findIndex(X=>X===Q),W=D.findIndex(X=>X===z);if(q===W)return;q>W?z=D[W+1]:z=D[W-1]}c.current=$,n.current.selectRowRange({startId:Q,endId:z},!G)},[n]),w=x.useCallback($=>{if(o.signature===tc.DataGrid&&!m&&Array.isArray($)&&$.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` -`));s1(n.current.state)!==$&&(i.debug("Setting selection model"),n.current.setState(Q=>P({},Q,{rowSelection:o.rowSelection?$:[]})),n.current.forceUpdate())},[n,i,o.rowSelection,o.signature,m]),A=x.useCallback($=>s1(n.current.state).includes($),[n]),k=x.useCallback($=>{if(p&&!p(n.current.getRowParams($)))return!1;const z=n.current.getRowNode($);return!((z==null?void 0:z.type)==="footer"||(z==null?void 0:z.type)==="pinnedRow")},[n,p]),C=x.useCallback(()=>sle(n),[n]),M=x.useCallback(($,z=!0,Q=!1)=>{if(n.current.isRowSelectable($))if(c.current=$,Q)i.debug(`Setting selection for row ${$}`),n.current.setRowSelectionModel(z?[$]:[]);else{i.debug(`Toggling selection for row ${$}`);const D=s1(n.current.state).filter(W=>W!==$);z&&D.push($),(D.length<2||m)&&n.current.setRowSelectionModel(D)}},[n,i,m]),S=x.useCallback(($,z=!0,Q=!1)=>{i.debug("Setting selection for several rows");const G=$.filter(W=>n.current.isRowSelectable(W));let D;if(Q)D=z?G:[];else{const W=P({},h3(n));G.forEach(X=>{z?W[X]=X:delete W[X]}),D=Object.values(W)}(D.length<2||m)&&n.current.setRowSelectionModel(D)},[n,i,m]),I=x.useCallback(({startId:$,endId:z},Q=!0,G=!1)=>{if(!n.current.getRow($)||!n.current.getRow(z))return;i.debug(`Expanding selection from row ${$} to row ${z}`);const D=hh(n),q=D.indexOf($),W=D.indexOf(z),[X,te]=q>W?[W,q]:[q,W],se=D.slice(X,te+1);n.current.selectRows(se,Q,G)},[n,i]),E={selectRow:M,setRowSelectionModel:w,getSelectedRows:C,isRowSelected:A,isRowSelectable:k},j={selectRows:S,selectRowRange:I};Zr(n,E,"public"),Zr(n,j,o.signature===tc.DataGrid?"private":"public");const B=x.useCallback(()=>{if(o.keepNonExistentRowsSelected)return;const $=s1(n.current.state),z=cd(n),Q=P({},h3(n));let G=!1;$.forEach(D=>{z[D]||(delete Q[D],G=!0)}),G&&n.current.setRowSelectionModel(Object.values(Q))},[n,o.keepNonExistentRowsSelected]),F=x.useCallback(($,z)=>{const Q=z.metaKey||z.ctrlKey,G=!d&&!Q&&!Nle(z),D=!m||G,q=n.current.isRowSelected($);D?n.current.selectRow($,G?!0:!q,!0):n.current.selectRow($,!q,!1)},[n,m,d]),O=x.useCallback(($,z)=>{var D;if(f)return;const Q=(D=z.target.closest(`.${we.cell}`))==null?void 0:D.getAttribute("data-field");if(Q===Bp.field||Q===i8)return;if(Q){const q=n.current.getColumn(Q);if((q==null?void 0:q.type)===Hb)return}n.current.getRowNode($.id).type!=="pinnedRow"&&(z.shiftKey&&m?v($.id):F($.id,z))},[f,m,n,v,F]),N=x.useCallback(($,z)=>{var Q;m&&z.shiftKey&&((Q=window.getSelection())==null||Q.removeAllRanges())},[m]),H=x.useCallback(($,z)=>{m&&z.nativeEvent.shiftKey?v($.id):n.current.selectRow($.id,$.value,!m)},[n,v,m]),L=x.useCallback($=>{const Q=o.checkboxSelectionVisibleOnly&&o.pagination?vT(n):hh(n),G=Ya(n);n.current.selectRows(Q,$.value,(G==null?void 0:G.items.length)>0)},[n,o.checkboxSelectionVisibleOnly,o.pagination]),_=x.useCallback(($,z)=>{if(n.current.getCellMode($.id,$.field)!==Oo.Edit&&!$m(z)){if(g3(z.key)&&z.shiftKey){const Q=a1(n);if(Q&&Q.id!==$.id){z.preventDefault();const G=n.current.isRowSelected(Q.id);if(!m){n.current.selectRow(Q.id,!G,!0);return}const D=n.current.getRowIndexRelativeToVisibleRows(Q.id),q=n.current.getRowIndexRelativeToVisibleRows($.id);let W,X;D>q?G?(W=q,X=D-1):(W=q,X=D):G?(W=D+1,X=q):(W=D,X=q);const te=g.rows.slice(W,X+1).map(se=>se.id);n.current.selectRows(te,!G);return}}if(z.key===" "&&z.shiftKey){z.preventDefault(),F($.id,z);return}z.key==="a"&&(z.ctrlKey||z.metaKey)&&(z.preventDefault(),S(n.current.getAllRowIds(),!0))}},[n,F,S,g.rows,m]);Jt(n,"sortedRowsSet",s(B)),Jt(n,"rowClick",s(O)),Jt(n,"rowSelectionCheckboxChange",s(H)),Jt(n,"headerSelectionCheckboxChange",L),Jt(n,"cellMouseDown",s(N)),Jt(n,"cellKeyDown",s(_)),x.useEffect(()=>{l!==void 0&&n.current.setRowSelectionModel(l)},[n,l,o.rowSelection]),x.useEffect(()=>{o.rowSelection||n.current.setRowSelectionModel([])},[n,o.rowSelection]);const V=l!=null;x.useEffect(()=>{if(V||!o.rowSelection)return;const $=s1(n.current.state);if(k){const z=$.filter(Q=>k(Q));z.length<$.length&&n.current.setRowSelectionModel(z)}},[n,k,V,o.rowSelection]),x.useEffect(()=>{if(!o.rowSelection||V)return;const $=s1(n.current.state);!m&&$.length>1&&n.current.setRowSelectionModel([])},[n,m,d,V,o.rowSelection])},M2e=n=>{const{classes:o}=n;return x.useMemo(()=>Rt({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Tn,o),[o])},P2e=(n,o)=>{const i={classes:o.classes},s=M2e(i),l=x.useCallback(c=>{const d=P({},Bp,{cellClassName:s.cellCheckbox,headerClassName:s.columnHeaderCheckbox,headerName:n.current.getLocaleText("checkboxSelectionHeaderName")}),f=o.checkboxSelection,p=c.lookup[Qu]!=null;return f&&!p?(c.lookup[Qu]=d,c.orderedFields=[Qu,...c.orderedFields]):!f&&p?(delete c.lookup[Qu],c.orderedFields=c.orderedFields.filter(m=>m!==Qu)):f&&p&&(c.lookup[Qu]=P({},d,c.lookup[Qu])),c},[n,s,o.checkboxSelection]);Ii(n,"hydrateColumns",l)},j2e=(n,o)=>{var s,l;const i=o.sortModel??((l=(s=o.initialState)==null?void 0:s.sorting)==null?void 0:l.sortModel)??[];return P({},n,{sorting:{sortModel:QB(i,o.disableMultipleColumnsSorting),sortedRows:[]}})},O2e=(n,o)=>{var B,F;const i=za(n,"useGridSorting");n.current.registerControlState({stateId:"sortModel",propModel:o.sortModel,propOnChange:o.onSortModelChange,stateSelector:l1,changeEvent:"sortModelChange"});const s=x.useCallback((O,N)=>{const H=l1(n),L=H.findIndex(V=>V.field===O);let _=[...H];return L>-1?(N==null?void 0:N.sort)==null?_.splice(L,1):_.splice(L,1,N):_=[...H,N],_},[n]),l=x.useCallback((O,N)=>{const L=l1(n).find(_=>_.field===O.field);if(L){const _=N===void 0?eE(O.sortingOrder??o.sortingOrder,L.sort):N;return _===void 0?void 0:P({},L,{sort:_})}return{field:O.field,sort:N===void 0?eE(O.sortingOrder??o.sortingOrder):N}},[n,o.sortingOrder]),c=x.useCallback((O,N)=>N==null||N.sortable===!1||o.disableColumnSorting?O:(N.sortingOrder||o.sortingOrder).some(L=>!!L)?[...O,"columnMenuSortItem"]:O,[o.sortingOrder,o.disableColumnSorting]),d=x.useCallback(()=>{n.current.setState(O=>{if(o.sortingMode==="server")return i.debug("Skipping sorting rows as sortingMode = server"),P({},O,{sorting:P({},O.sorting,{sortedRows:UA(h1(n),Ys,!1)})});const N=l1(O,n.current.instanceId),H=ose(N,n),L=n.current.applyStrategyProcessor("sorting",{sortRowList:H});return P({},O,{sorting:P({},O.sorting,{sortedRows:L})})}),n.current.publishEvent("sortedRowsSet"),n.current.forceUpdate()},[n,i,o.sortingMode]),f=x.useCallback(O=>{l1(n)!==O&&(i.debug("Setting sort model"),n.current.setState(ZI(O,o.disableMultipleColumnsSorting)),n.current.forceUpdate(),n.current.applySorting())},[n,i,o.disableMultipleColumnsSorting]),p=x.useCallback((O,N,H)=>{const L=n.current.getColumn(O),_=l(L,N);let V;!H||o.disableMultipleColumnsSorting?V=(_==null?void 0:_.sort)==null?[]:[_]:V=s(L.field,_),n.current.setSortModel(V)},[n,s,l,o.disableMultipleColumnsSorting]),m=x.useCallback(()=>l1(n),[n]),g=x.useCallback(()=>WA(n).map(N=>N.model),[n]),v=x.useCallback(()=>QA(n),[n]),w=x.useCallback(O=>n.current.getSortedRowIds()[O],[n]);Zr(n,{getSortModel:m,getSortedRows:g,getSortedRowIds:v,getRowIdFromRowIndex:w,setSortModel:f,sortColumn:p,applySorting:d},"public");const k=x.useCallback((O,N)=>{var _,V;const H=l1(n);return!N.exportOnlyDirtyModels||o.sortModel!=null||((V=(_=o.initialState)==null?void 0:_.sorting)==null?void 0:V.sortModel)!=null||H.length>0?P({},O,{sorting:{sortModel:H}}):O},[n,o.sortModel,(F=(B=o.initialState)==null?void 0:B.sorting)==null?void 0:F.sortModel]),C=x.useCallback((O,N)=>{var L;const H=(L=N.stateToRestore.sorting)==null?void 0:L.sortModel;return H==null?O:(n.current.setState(ZI(H,o.disableMultipleColumnsSorting)),P({},O,{callbacks:[...O.callbacks,n.current.applySorting]}))},[n,o.disableMultipleColumnsSorting]),M=x.useCallback(O=>{const N=h1(n),H=N[Ys],L=O.sortRowList?O.sortRowList(H.children.map(_=>N[_])):[...H.children];return H.footerId!=null&&L.push(H.footerId),L},[n]);Ii(n,"exportState",k),Ii(n,"restoreState",C),w3(n,If,"sorting",M);const S=x.useCallback(({field:O,colDef:N},H)=>{if(!N.sortable||o.disableColumnSorting)return;const L=H.shiftKey||H.metaKey||H.ctrlKey;p(O,void 0,L)},[p,o.disableColumnSorting]),I=x.useCallback(({field:O,colDef:N},H)=>{!N.sortable||o.disableColumnSorting||H.key==="Enter"&&!H.ctrlKey&&!H.metaKey&&p(O,void 0,H.shiftKey)},[p,o.disableColumnSorting]),E=x.useCallback(()=>{const O=l1(n),N=$d(n);if(O.length>0){const H=O.filter(L=>N[L.field]);H.length{O==="sorting"&&n.current.applySorting()},[n]);Ii(n,"columnMenu",c),Jt(n,"columnHeaderClick",S),Jt(n,"columnHeaderKeyDown",I),Jt(n,"rowsSet",n.current.applySorting),Jt(n,"columnsChange",E),Jt(n,"activeStrategyProcessorChange",j),Dm(()=>{n.current.applySorting()}),yo(()=>{o.sortModel!==void 0&&n.current.setSortModel(o.sortModel)},[n,o.sortModel])};function HE(n){const{clientHeight:o,scrollTop:i,offsetHeight:s,offsetTop:l}=n,c=l+s;if(s>o)return l;if(c-o>i)return c-o;if(l{const i=ka(),s=za(n,"useGridScroll"),l=n.current.columnHeadersContainerRef,c=n.current.virtualScrollerRef,d=$t(n,zd),f=x.useCallback(v=>{var S;const w=Vl(n.current.state),A=Fm(n),k=$a(n);if(!(v.rowIndex==null)&&A===0||k.length===0)return!1;s.debug(`Scrolling to cell at row ${v.rowIndex}, col: ${v.colIndex} `);let M={};if(v.colIndex!==void 0){const I=Ld(n);let E;if(typeof v.rowIndex<"u"){const j=(S=d[v.rowIndex])==null?void 0:S.id,B=n.current.unstable_getCellColSpanInfo(j,v.colIndex);B&&!B.spannedByColSpan&&(E=B.cellProps.width)}typeof E>"u"&&(E=k[v.colIndex].computedWidth),M.left=HE({clientHeight:w.viewportInnerSize.width,scrollTop:Math.abs(c.current.scrollLeft),offsetHeight:E,offsetTop:I[v.colIndex]})}if(v.rowIndex!==void 0){const I=Tp(n.current.state),E=wle(n),j=xle(n),B=o.pagination?v.rowIndex-E*j:v.rowIndex,F=I.positions[B+1]?I.positions[B+1]-I.positions[B]:I.currentPageTotalHeight-I.positions[B];M.top=HE({clientHeight:w.viewportInnerSize.height,scrollTop:c.current.scrollTop,offsetHeight:F,offsetTop:I.positions[B]})}return M=n.current.unstable_applyPipeProcessors("scrollToIndexes",M,v),typeof M.left!==void 0||typeof M.top!==void 0?(n.current.scroll(M),!0):!1},[s,n,c,o.pagination,d]),p=x.useCallback(v=>{if(c.current&&v.left!==void 0&&l.current){const w=i.direction==="rtl"?-1:1;l.current.scrollLeft=v.left,c.current.scrollLeft=w*v.left,s.debug(`Scrolling left: ${v.left}`)}c.current&&v.top!==void 0&&(c.current.scrollTop=v.top,s.debug(`Scrolling top: ${v.top}`)),s.debug("Scrolling, updating container, and viewport")},[c,i.direction,l,s]),m=x.useCallback(()=>c!=null&&c.current?{top:c.current.scrollTop,left:c.current.scrollLeft}:{top:0,left:0},[c]);Zr(n,{scroll:p,scrollToIndexes:f,getScrollPosition:m},"public")};function B2e(n,o){Jo(n,"columnHeaderClick",o.onColumnHeaderClick),Jo(n,"columnHeaderDoubleClick",o.onColumnHeaderDoubleClick),Jo(n,"columnHeaderOver",o.onColumnHeaderOver),Jo(n,"columnHeaderOut",o.onColumnHeaderOut),Jo(n,"columnHeaderEnter",o.onColumnHeaderEnter),Jo(n,"columnHeaderLeave",o.onColumnHeaderLeave),Jo(n,"cellClick",o.onCellClick),Jo(n,"cellDoubleClick",o.onCellDoubleClick),Jo(n,"cellKeyDown",o.onCellKeyDown),Jo(n,"preferencePanelClose",o.onPreferencePanelClose),Jo(n,"preferencePanelOpen",o.onPreferencePanelOpen),Jo(n,"menuOpen",o.onMenuOpen),Jo(n,"menuClose",o.onMenuClose),Jo(n,"rowDoubleClick",o.onRowDoubleClick),Jo(n,"rowClick",o.onRowClick),Jo(n,"stateChange",o.onStateChange)}function T2e(n,o=166){let i,s;const l=()=>{i=void 0,n(...s)};function c(...d){s=d,i===void 0&&(i=setTimeout(l,o))}return c.clear=()=>{clearTimeout(i),i=void 0},c}const d2={width:0,height:0},F2e={isReady:!1,root:d2,viewportOuterSize:d2,viewportInnerSize:d2,contentSize:d2,minimumSize:d2,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},D2e=n=>P({},n,{dimensions:F2e});function N2e(n,o){const i=za(n,"useResizeContainer"),s=x.useRef(!1),l=x.useRef(d2),c=$t(n,Vl),d=$t(n,Tp),f=$t(n,Tm),p=$t(n,Rm),m=Math.floor(o.rowHeight*p),g=Math.floor(o.columnHeaderHeight*p),v=Math.floor((o.headerFilterHeight??o.columnHeaderHeight)*p),w=L2e($A(n),6),A=XA(n,o),k=f.left.reduce((z,Q)=>z+Q.computedWidth,0),C=f.right.reduce((z,Q)=>z+Q.computedWidth,0),[M,S]=x.useState(),I=x.useMemo(()=>T2e(S,o.resizeThrottleMs),[o.resizeThrottleMs]),E=x.useRef(),j=()=>n.current.state.dimensions,B=ln(z=>{n.current.setState(Q=>P({},Q,{dimensions:z}))}),F=x.useCallback(()=>{const z=n.current.mainElementRef.current;if(!z)return;const Q=zl(z).getComputedStyle(z),G={width:parseFloat(Q.width)||0,height:parseFloat(Q.height)||0};(!E.current||!UE(E.current,G))&&(n.current.publishEvent("resize",G),E.current=G)},[n]),O=x.useCallback(()=>{const z=Vl(n.current.state);if(!z.isReady)return 0;const Q=Zh(n,{pagination:o.pagination,paginationMode:o.paginationMode});if(o.getRowHeight){const D=e8(n),q=D.lastRowIndex-D.firstRowIndex;return Math.min(q-1,Q.rows.length)}const G=Math.floor(z.viewportInnerSize.height/m);return Math.min(G,Q.rows.length)},[n,o.pagination,o.paginationMode,o.getRowHeight,m]),N=x.useCallback(()=>{var be,ke;const z=n.current.rootElementRef.current,Q=$se(n),G=$2e(z,w,o.scrollbarSize),D=A+Q.top,q=Q.bottom,X={width:w-k-C,height:d.currentPageTotalHeight};let te,se,de=!1,ee=!1;if(o.autoHeight)ee=!1,de=Math.round(w)>Math.round(l.current.width),te={width:l.current.width,height:D+q+X.height},se={width:Math.max(0,te.width-(ee?G:0)),height:Math.max(0,te.height-(de?G:0))};else{te={width:l.current.width,height:l.current.height},se={width:Math.max(0,te.width-k-C),height:Math.max(0,te.height-D-q)};const ze=X,Ge=se,Ve=ze.width>Ge.width,at=ze.height>Ge.height;(Ve||at)&&(ee=at,de=ze.width+(ee?G:0)>Ge.width,de&&(ee=ze.height+G>Ge.height)),ee&&(se.width-=G),de&&(se.height-=G)}const fe=Math.max(te.width,w+(ee?G:0)),he={width:w,height:D+X.height+q},Ie={isReady:!0,root:l.current,viewportOuterSize:te,viewportInnerSize:se,contentSize:X,minimumSize:he,hasScrollX:de,hasScrollY:ee,scrollbarSize:G,headerHeight:g,headerFilterHeight:v,rowWidth:fe,rowHeight:m,columnsTotalWidth:w,leftPinnedWidth:k,rightPinnedWidth:C,headersTotalHeight:A,topContainerHeight:D,bottomContainerHeight:q},ve=n.current.state.dimensions;B(Ie),UE(Ie.viewportInnerSize,ve.viewportInnerSize)||n.current.publishEvent("viewportInnerSizeChange",Ie.viewportInnerSize),(ke=(be=n.current).updateRenderContext)==null||ke.call(be)},[n,B,o.scrollbarSize,o.autoHeight,d.currentPageTotalHeight,m,g,v,w,A,k,C]),H={resize:F,getRootDimensions:j},L={updateDimensions:N,getViewportPageSize:O};Zr(n,H,"public"),Zr(n,L,"private"),yo(()=>{M&&(N(),n.current.publishEvent("debouncedResize",l.current))},[n,M,N]);const _=n.current.rootElementRef.current;yo(()=>{if(!_)return;const z=(Q,G)=>_.style.setProperty(Q,G);z("--DataGrid-width",`${c.viewportOuterSize.width}px`),z("--DataGrid-hasScrollX",`${Number(c.hasScrollX)}`),z("--DataGrid-hasScrollY",`${Number(c.hasScrollY)}`),z("--DataGrid-scrollbarSize",`${c.scrollbarSize}px`),z("--DataGrid-rowWidth",`${c.rowWidth}px`),z("--DataGrid-columnsTotalWidth",`${c.columnsTotalWidth}px`),z("--DataGrid-leftPinnedWidth",`${c.leftPinnedWidth}px`),z("--DataGrid-rightPinnedWidth",`${c.rightPinnedWidth}px`),z("--DataGrid-headerHeight",`${c.headerHeight}px`),z("--DataGrid-headersTotalHeight",`${c.headersTotalHeight}px`),z("--DataGrid-topContainerHeight",`${c.topContainerHeight}px`),z("--DataGrid-bottomContainerHeight",`${c.bottomContainerHeight}px`),z("--height",`${c.rowHeight}px`)},[_,c]);const V=x.useRef(!0),$=x.useCallback(z=>{l.current=z;const Q=/jsdom/.test(window.navigator.userAgent);if(z.height===0&&!s.current&&!o.autoHeight&&!Q&&(i.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`}${d}`.trim()}function qE(n){const o=document.createElement("span");o.style.whiteSpace="pre",o.style.userSelect="all",o.style.opacity="0px",o.textContent=n,document.body.appendChild(o);const i=document.createRange();i.selectNode(o);const s=window.getSelection();s.removeAllRanges(),s.addRange(i);try{document.execCommand("copy")}finally{document.body.removeChild(o)}}function Yfe(n){navigator.clipboard?navigator.clipboard.writeText(n).catch(()=>{qE(n)}):qE(n)}function Kfe(n){var o;return!!((o=window.getSelection())!=null&&o.toString()||n&&(n.selectionEnd||0)-(n.selectionStart||0)>0)}const Xfe=(n,o)=>{const i=o.ignoreValueFormatterDuringExport,s=(typeof i=="object"?i==null?void 0:i.clipboardExport:i)||!1,l=o.clipboardCopyCellDelimiter,c=x.useCallback(d=>{if(!((d.ctrlKey||d.metaKey)&&d.key.toLowerCase()==="c"&&!d.shiftKey&&!d.altKey)||Kfe(d.target))return;let f="";if(n.current.getSelectedRows().size>0)f=n.current.getDataAsCsv({includeHeaders:!1,delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1});else{const m=i1(n);if(m){const g=n.current.getCellParams(m.id,m.field);f=XT(g,{csvOptions:{delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:s})}}f=n.current.unstable_applyPipeProcessors("clipboardCopy",f),f&&(Yfe(f),n.current.publishEvent("clipboardCopy",f))},[n,s,l]);xT(n,n.current.rootElementRef,"keydown",c),ei(n,"clipboardCopy",o.onClipboardCopy)},Jfe=n=>P({},n,{columnMenu:{open:!1}}),Zfe=n=>{const o=Ha(n,"useGridColumnMenu"),i=x.useCallback(d=>{const f=cv(n.current.state),p={open:!0,field:d};(p.open!==f.open||p.field!==f.field)&&(n.current.setState(g=>g.columnMenu.open&&g.columnMenu.field===d?g:(o.debug("Opening Column Menu"),P({},g,{columnMenu:{open:!0,field:d}}))),n.current.hidePreferences(),n.current.forceUpdate())},[n,o]),s=x.useCallback(()=>{const d=cv(n.current.state);if(d.field){const m=Dd(n),g=w1(n),v=mu(n);let w=d.field;if(m[w]||(w=v[0]),g[w]===!1){const A=v.filter(C=>C===w?!0:g[C]!==!1),k=A.indexOf(w);w=A[k+1]||A[k-1]}n.current.setColumnHeaderFocus(w)}const f={open:!1,field:void 0};(f.open!==d.open||f.field!==d.field)&&(n.current.setState(m=>(o.debug("Hiding Column Menu"),P({},m,{columnMenu:f}))),n.current.forceUpdate())},[n,o]),l=x.useCallback(d=>{o.debug("Toggle Column Menu");const f=cv(n.current.state);!f.open||f.field!==d?i(d):s()},[n,o,i,s]);Zr(n,{showColumnMenu:i,hideColumnMenu:s,toggleColumnMenu:l},"public"),Jt(n,"columnResizeStart",s),Jt(n,"virtualScrollerWheel",n.current.hideColumnMenu),Jt(n,"virtualScrollerTouchMove",n.current.hideColumnMenu)},e2e=(n,o,i)=>{var l,c,d;const s=c2({apiRef:i,columnsToUpsert:o.columns,initialState:(l=o.initialState)==null?void 0:l.columns,columnVisibilityModel:o.columnVisibilityModel??((d=(c=o.initialState)==null?void 0:c.columns)==null?void 0:d.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return P({},n,{columns:s,pinnedColumns:n.pinnedColumns??e6})};function t2e(n,o){var L,_;const i=Ha(n,"useGridColumns"),s=x.useRef(o.columns);n.current.registerControlState({stateId:"visibleColumns",propModel:o.columnVisibilityModel,propOnChange:o.onColumnVisibilityModelChange,stateSelector:w1,changeEvent:"columnVisibilityModelChange"});const l=x.useCallback(V=>{var $,z;i.debug("Updating columns state."),n.current.setState(_E(V)),n.current.publishEvent("columnsChange",V.orderedFields),(z=($=n.current).updateRenderContext)==null||z.call($),n.current.forceUpdate()},[i,n]),c=x.useCallback(V=>Dd(n)[V],[n]),d=x.useCallback(()=>tc(n),[n]),f=x.useCallback(()=>La(n),[n]),p=x.useCallback((V,$=!0)=>($?La(n):tc(n)).findIndex(Q=>Q.field===V),[n]),m=x.useCallback(V=>{const $=p(V);return Nd(n)[$]},[n,p]),g=x.useCallback(V=>{var z,Q;w1(n)!==V&&(n.current.setState(G=>P({},G,{columns:c2({apiRef:n,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1})})),(Q=(z=n.current).updateRenderContext)==null||Q.call(z),n.current.forceUpdate())},[n]),v=x.useCallback(V=>{const $=c2({apiRef:n,columnsToUpsert:V,initialState:void 0,keepOnlyColumnsToUpsert:!1});l($)},[n,l]),w=x.useCallback((V,$)=>{const z=w1(n),Q=z[V]??!0;if($!==Q){const G=P({},z,{[V]:$});n.current.setColumnVisibilityModel(G)}},[n]),A=x.useCallback(V=>mu(n).findIndex(z=>z===V),[n]),k=x.useCallback((V,$)=>{const z=mu(n),Q=A(V);if(Q===$)return;i.debug(`Moving column ${V} to index ${$}`);const G=[...z],F=G.splice(Q,1)[0];G.splice($,0,F),l(P({},Lc(n.current.state),{orderedFields:G}));const q={column:n.current.getColumn(V),targetIndex:n.current.getColumnIndexRelativeToVisibleColumns(V),oldIndex:Q};n.current.publishEvent("columnIndexChange",q)},[n,i,l,A]),C=x.useCallback((V,$)=>{i.debug(`Updating column ${V} width to ${$}`);const z=Lc(n.current.state),Q=z.lookup[V],G=P({},Q,{width:$,hasBeenResized:!0});l(r6(P({},z,{lookup:P({},z.lookup,{[V]:G})}),n.current.getRootDimensions())),n.current.publishEvent("columnWidthChange",{element:n.current.getColumnHeaderElement(V),colDef:G,width:$})},[n,i,l]),M={getColumn:c,getAllColumns:d,getColumnIndex:p,getColumnPosition:m,getVisibleColumns:f,getColumnIndexRelativeToVisibleColumns:A,updateColumns:v,setColumnVisibilityModel:g,setColumnVisibility:w,setColumnWidth:C},S={setColumnIndex:k};Zr(n,M,"public"),Zr(n,S,o.signature===ec.DataGrid?"private":"public");const I=x.useCallback((V,$)=>{var W,X;const z={},Q=w1(n);(!$.exportOnlyDirtyModels||o.columnVisibilityModel!=null||Object.keys(((X=(W=o.initialState)==null?void 0:W.columns)==null?void 0:X.columnVisibilityModel)??{}).length>0||Object.keys(Q).length>0)&&(z.columnVisibilityModel=Q),z.orderedFields=mu(n);const F=tc(n),q={};return F.forEach(te=>{if(te.hasBeenResized){const se={};TT.forEach(de=>{let ee=te[de];ee===1/0&&(ee=-1),se[de]=ee}),q[te.field]=se}}),Object.keys(q).length>0&&(z.dimensions=q),P({},V,{columns:z})},[n,o.columnVisibilityModel,(L=o.initialState)==null?void 0:L.columns]),E=x.useCallback((V,$)=>{var F;const z=(F=$.stateToRestore.columns)==null?void 0:F.columnVisibilityModel,Q=$.stateToRestore.columns;if(z==null&&Q==null)return V;const G=c2({apiRef:n,columnsToUpsert:[],initialState:Q,columnVisibilityModel:z,keepOnlyColumnsToUpsert:!1});return n.current.setState(_E(G)),Q!=null&&n.current.publishEvent("columnsChange",G.orderedFields),V},[n]),j=x.useCallback((V,$)=>{var z;if($===kf.columns){const Q=o.slots.columnsPanel;return b.jsx(Q,P({},(z=o.slotProps)==null?void 0:z.columnsPanel))}return V},[o.slots.columnsPanel,(_=o.slotProps)==null?void 0:_.columnsPanel]),B=x.useCallback(V=>o.disableColumnSelector?V:[...V,"columnMenuColumnsItem"],[o.disableColumnSelector]);Ei(n,"columnMenu",B),Ei(n,"exportState",I),Ei(n,"restoreState",E),Ei(n,"preferencePanel",j);const D=x.useRef(null);Jt(n,"viewportInnerSizeChange",V=>{D.current!==V.width&&(D.current=V.width,l(r6(Lc(n.current.state),n.current.getRootDimensions())))});const N=x.useCallback(()=>{i.info("Columns pipe processing have changed, regenerating the columns");const V=c2({apiRef:n,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});l(V)},[n,i,l]);s8(n,"hydrateColumns",N);const U=x.useRef(!0);x.useEffect(()=>{if(U.current){U.current=!1;return}if(i.info(`GridColumns have changed, new length ${o.columns.length}`),s.current===o.columns)return;const V=c2({apiRef:n,initialState:void 0,columnsToUpsert:o.columns,keepOnlyColumnsToUpsert:!0});s.current=o.columns,l(V)},[i,n,l,o.columns]),x.useEffect(()=>{o.columnVisibilityModel!==void 0&&n.current.setColumnVisibilityModel(o.columnVisibilityModel)},[n,i,o.columnVisibilityModel])}function _E(n){return o=>P({},o,{columns:n})}const r2e=(n,o)=>{var i;return P({},n,{density:((i=o.initialState)==null?void 0:i.density)??o.density??"standard"})},n2e=(n,o)=>{var f;const i=Ha(n,"useDensity");n.current.registerControlState({stateId:"density",propModel:o.density,propOnChange:o.onDensityChange,stateSelector:I2,changeEvent:"densityChange"});const l={setDensity:ln(p=>{I2(n.current.state)!==p&&(i.debug(`Set grid density to ${p}`),n.current.setState(g=>P({},g,{density:p})))})};Zr(n,l,"public");const c=x.useCallback((p,m)=>{var w;const g=I2(n.current.state);return!m.exportOnlyDirtyModels||o.density!=null||((w=o.initialState)==null?void 0:w.density)!=null?P({},p,{density:g}):p},[n,o.density,(f=o.initialState)==null?void 0:f.density]),d=x.useCallback((p,m)=>{var v;const g=(v=m.stateToRestore)!=null&&v.density?m.stateToRestore.density:I2(n.current.state);return n.current.setState(w=>P({},w,{density:g})),p},[n]);Ei(n,"exportState",c),Ei(n,"restoreState",d),x.useEffect(()=>{o.density&&n.current.setDensity(o.density)},[n,o.density])};function o2e(n,o="csv",i=document.title||"untitled"){const s=`${i}.${o}`;if("download"in HTMLAnchorElement.prototype){const l=URL.createObjectURL(n),c=document.createElement("a");c.href=l,c.download=s,c.click(),setTimeout(()=>{URL.revokeObjectURL(l)});return}throw new Error("MUI X: exportAs not supported.")}const JT=({apiRef:n,options:o})=>{const i=tc(n);return o.fields?o.fields.reduce((l,c)=>{const d=i.find(f=>f.field===c);return d&&l.push(d),l},[]):(o.allColumns?i:La(n)).filter(l=>!l.disableExport)},ZT=({apiRef:n})=>{var p,m;const o=Ale(n),i=p1(n),s=n.current.getSelectedRows(),l=o.filter(g=>i[g].type!=="footer"),c=Nf(n),d=((p=c==null?void 0:c.top)==null?void 0:p.map(g=>g.id))||[],f=((m=c==null?void 0:c.bottom)==null?void 0:m.map(g=>g.id))||[];return l.unshift(...d),l.push(...f),s.size>0?l.filter(g=>s.has(g)):l},i2e=(n,o)=>{const i=Ha(n,"useGridCsvExport"),s=o.ignoreValueFormatterDuringExport,l=(typeof s=="object"?s==null?void 0:s.csvExport:s)||!1,c=x.useCallback((m={})=>{i.debug("Get data as CSV");const g=JT({apiRef:n,options:m}),w=(m.getRowsToExport??ZT)({apiRef:n});return _fe({columns:g,rowIds:w,csvOptions:{delimiter:m.delimiter||",",shouldAppendQuotes:m.shouldAppendQuotes??!0,includeHeaders:m.includeHeaders??!0,includeColumnGroupsHeaders:m.includeColumnGroupsHeaders??!0,escapeFormulas:m.escapeFormulas??!0},ignoreValueFormatter:l,apiRef:n})},[i,n,l]),d=x.useCallback(m=>{i.debug("Export data as CSV");const g=c(m),v=new Blob([m!=null&&m.utf8WithBom?new Uint8Array([239,187,191]):"",g],{type:"text/csv"});o2e(v,"csv",m==null?void 0:m.fileName)},[i,c]);Zr(n,{getDataAsCsv:c,exportDataAsCsv:d},"public");const p=x.useCallback((m,g)=>{var v;return(v=g.csvOptions)!=null&&v.disableToolbarButton?m:[...m,{component:b.jsx(rfe,{options:g.csvOptions}),componentName:"csvExport"}]},[]);Ei(n,"exportMenu",p)},dv=(n,o,i)=>{let s=n.paginationModel;const l=n.rowCount,c=(i==null?void 0:i.pageSize)??s.pageSize,d=(i==null?void 0:i.page)??s.page,f=yT(l,c,d);i&&((i==null?void 0:i.page)!==s.page||(i==null?void 0:i.pageSize)!==s.pageSize)&&(s=i);const p=jle(s.page,f);return p!==s.page&&(s=P({},s,{page:p})),CT(s.pageSize,o),s},a2e=(n,o)=>{var k,C;const i=Ha(n,"useGridPaginationModel"),s=$t(n,Rm),l=Math.floor(o.rowHeight*s);n.current.registerControlState({stateId:"paginationModel",propModel:o.paginationModel,propOnChange:o.onPaginationModelChange,stateSelector:Ws,changeEvent:"paginationModelChange"});const c=x.useCallback(M=>{const S=Ws(n);M!==S.page&&(i.debug(`Setting page to ${M}`),n.current.setPaginationModel({page:M,pageSize:S.pageSize}))},[n,i]),d=x.useCallback(M=>{const S=Ws(n);M!==S.pageSize&&(i.debug(`Setting page size to ${M}`),n.current.setPaginationModel({pageSize:M,page:S.page}))},[n,i]),f=x.useCallback(M=>{const S=Ws(n);M!==S&&(i.debug("Setting 'paginationModel' to",M),n.current.setState(I=>P({},I,{pagination:P({},I.pagination,{paginationModel:dv(I.pagination,o.signature,M)})})))},[n,i,o.signature]);Zr(n,{setPage:c,setPageSize:d,setPaginationModel:f},"public");const m=x.useCallback((M,S)=>{var j,B;const I=Ws(n);return!S.exportOnlyDirtyModels||o.paginationModel!=null||((B=(j=o.initialState)==null?void 0:j.pagination)==null?void 0:B.paginationModel)!=null||I.page!==0&&I.pageSize!==Ple(o.autoPageSize)?P({},M,{pagination:P({},M.pagination,{paginationModel:I})}):M},[n,o.paginationModel,(C=(k=o.initialState)==null?void 0:k.pagination)==null?void 0:C.paginationModel,o.autoPageSize]),g=x.useCallback((M,S)=>{var E,j;const I=(E=S.stateToRestore.pagination)!=null&&E.paginationModel?P({},AT(o.autoPageSize),(j=S.stateToRestore.pagination)==null?void 0:j.paginationModel):Ws(n);return n.current.setState(B=>P({},B,{pagination:P({},B.pagination,{paginationModel:dv(B.pagination,o.signature,I)})})),M},[n,o.autoPageSize,o.signature]);Ei(n,"exportState",m),Ei(n,"restoreState",g);const v=()=>{var S;const M=Ws(n);(S=n.current.virtualScrollerRef)!=null&&S.current&&n.current.scrollToIndexes({rowIndex:M.page*M.pageSize})},w=x.useCallback(()=>{if(!o.autoPageSize)return;const M=n.current.getRootDimensions(),S=Math.floor(M.viewportInnerSize.height/l);n.current.setPageSize(S)},[n,o.autoPageSize,l]),A=x.useCallback(M=>{if(M==null)return;const S=Ws(n),I=kT(n);S.page>I-1&&n.current.setPage(Math.max(0,I-1))},[n]);Jt(n,"viewportInnerSizeChange",w),Jt(n,"paginationModelChange",v),Jt(n,"rowCountChange",A),x.useEffect(()=>{n.current.setState(M=>P({},M,{pagination:P({},M.pagination,{paginationModel:dv(M.pagination,o.signature,o.paginationModel)})}))},[n,o.paginationModel,o.paginationMode,o.signature]),x.useEffect(w,[w])};function s2e(){return new Promise(n=>{requestAnimationFrame(()=>{n()})})}function l2e(n){const o=document.createElement("iframe");return o.style.position="absolute",o.style.width="0px",o.style.height="0px",o.title=n||document.title,o}const c2e=(n,o)=>{const i=Ha(n,"useGridPrintExport"),s=x.useRef(null),l=x.useRef(null),c=x.useRef({}),d=x.useRef([]),f=x.useRef();x.useEffect(()=>{s.current=ri(n.current.rootElementRef.current)},[n]);const p=x.useCallback((C,M,S)=>new Promise(I=>{const E=JT({apiRef:n,options:{fields:C,allColumns:M}}).map(D=>D.field),j=tc(n),B={};j.forEach(D=>{B[D.field]=E.includes(D.field)}),S&&(B[Rp.field]=!0),n.current.setColumnVisibilityModel(B),I()}),[n]),m=x.useCallback(C=>{const S=C({apiRef:n}).reduce((I,E)=>{const j=n.current.getRow(E);return j[V2]||I.push(j),I},[]);n.current.setRows(S)},[n]),g=x.useCallback((C,M)=>{var $,z,Q,G;const S=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},M),I=C.contentDocument;if(!I)return;const E=Bp(n.current.state),j=n.current.rootElementRef.current,B=j.cloneNode(!0),D=B.querySelector(`.${we.main}`);D.style.overflow="visible",B.style.contain="size";let R=(($=j.querySelector(`.${we.toolbarContainer}`))==null?void 0:$.offsetHeight)||0,N=((z=j.querySelector(`.${we.footerContainer}`))==null?void 0:z.offsetHeight)||0;S.hideToolbar&&((Q=B.querySelector(`.${we.toolbarContainer}`))==null||Q.remove(),R=0),S.hideFooter&&((G=B.querySelector(`.${we.footerContainer}`))==null||G.remove(),N=0);const U=E.currentPageTotalHeight+XA(n,o)+R+N;if(B.style.height=`${U}px`,B.style.boxSizing="content-box",!S.hideFooter){const F=B.querySelector(`.${we.footerContainer}`);F.style.position="absolute",F.style.width="100%",F.style.top=`${U-N}px`}const L=document.createElement("div");L.appendChild(B),I.body.style.marginTop="0px",I.body.innerHTML=L.innerHTML;const _=typeof S.pageStyle=="function"?S.pageStyle():S.pageStyle;if(typeof _=="string"){const F=I.createElement("style");F.appendChild(I.createTextNode(_)),I.head.appendChild(F)}S.bodyClassName&&I.body.classList.add(...S.bodyClassName.split(" "));const V=[];if(S.copyStyles){const F=j.getRootNode(),W=(F.constructor.name==="ShadowRoot"?F:s.current).querySelectorAll("style, link[rel='stylesheet']");for(let X=0;X{se.addEventListener("load",()=>de())})),I.head.appendChild(se)}}}Promise.all(V).then(()=>{C.contentWindow.print()})},[n,s,o]),v=x.useCallback(C=>{var M,S;s.current.body.removeChild(C),n.current.restoreState(l.current||{}),(S=(M=l.current)==null?void 0:M.columns)!=null&&S.columnVisibilityModel||n.current.setColumnVisibilityModel(c.current),n.current.setState(I=>P({},I,{virtualization:f.current})),n.current.setRows(d.current),l.current=null,c.current={},d.current=[]},[n]),A={exportDataAsPrint:x.useCallback(async C=>{if(i.debug("Export data as Print"),!n.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(l.current=n.current.exportState(),c.current=w1(n),d.current=n.current.getSortedRows().filter(S=>!S[V2]),o.pagination){const I={page:0,pageSize:wT(n)};n.current.setState(E=>P({},E,{pagination:P({},E.pagination,{paginationModel:dv(E.pagination,"DataGridPro",I)})}))}f.current=n.current.state.virtualization,n.current.setState(S=>P({},S,{virtualization:P({},S.virtualization,{enabled:!1,enabledForColumns:!1})})),await p(C==null?void 0:C.fields,C==null?void 0:C.allColumns,C==null?void 0:C.includeCheckboxes),m((C==null?void 0:C.getRowsToExport)??ZT),await s2e();const M=l2e(C==null?void 0:C.fileName);M.onload=()=>{g(M,C),M.contentWindow.matchMedia("print").addEventListener("change",I=>{I.matches===!1&&v(M)})},s.current.body.appendChild(M)},[o,i,n,g,v,p,m])};Zr(n,A,"public");const k=x.useCallback((C,M)=>{var S;return(S=M.printOptions)!=null&&S.disableToolbarButton?C:[...C,{component:b.jsx(nfe,{options:M.printOptions}),componentName:"printExport"}]},[]);Ei(n,"exportMenu",k)},u2e=(n,o,i)=>{var l,c;const s=o.filterModel??((c=(l=o.initialState)==null?void 0:l.filter)==null?void 0:c.filterModel)??Yh();return P({},n,{filter:{filterModel:HA(s,o.disableMultipleColumnsFiltering,i),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},d2e=n=>n.filteredRowsLookup;function YE(n,o){return n.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:o.rows.tree,filteredRowsLookup:o.filter.filteredRowsLookup})}function f2e(){return XB(Object.values)}const p2e=(n,o)=>{var U,L,_;const i=Ha(n,"useGridFilter");n.current.registerControlState({stateId:"filter",propModel:o.filterModel,propOnChange:o.onFilterModelChange,stateSelector:Ka,changeEvent:"filterModelChange"});const s=x.useCallback(()=>{n.current.setState(V=>{const $=Ka(V,n.current.instanceId),z=n.current.getFilterState($),Q=P({},V,{filter:P({},V.filter,z)}),G=YE(n,Q);return P({},Q,{visibleRowsLookup:G})}),n.current.publishEvent("filteredRowsSet")},[n]),l=x.useCallback((V,$)=>$==null||$.filterable===!1||o.disableColumnFilter?V:[...V,"columnMenuFilterItem"],[o.disableColumnFilter]),c=x.useCallback(()=>{s(),n.current.forceUpdate()},[n,s]),d=x.useCallback(V=>{const $=Ka(n),z=[...$.items],Q=z.findIndex(G=>G.id===V.id);Q===-1?z.push(V):z[Q]=V,n.current.setFilterModel(P({},$,{items:z}),"upsertFilterItem")},[n]),f=x.useCallback(V=>{const $=Ka(n),z=[...$.items];V.forEach(Q=>{const G=z.findIndex(F=>F.id===Q.id);G===-1?z.push(Q):z[G]=Q}),n.current.setFilterModel(P({},$,{items:z}),"upsertFilterItems")},[n]),p=x.useCallback(V=>{const $=Ka(n),z=$.items.filter(Q=>Q.id!==V.id);z.length!==$.items.length&&n.current.setFilterModel(P({},$,{items:z}),"deleteFilterItem")},[n]),m=x.useCallback((V,$,z)=>{if(i.debug("Displaying filter panel"),V){const Q=Ka(n),G=Q.items.filter(X=>{var ee;if(X.value!==void 0)return!(Array.isArray(X.value)&&X.value.length===0);const se=(ee=n.current.getColumn(X.field).filterOperators)==null?void 0:ee.find(fe=>fe.value===X.operator);return!(typeof(se==null?void 0:se.requiresFilterValue)>"u"?!0:se==null?void 0:se.requiresFilterValue)});let F;const q=G.find(X=>X.field===V),W=n.current.getColumn(V);q?F=G:o.disableMultipleColumnsFiltering?F=[t6({field:V,operator:W.filterOperators[0].value},n)]:F=[...G,t6({field:V,operator:W.filterOperators[0].value},n)],n.current.setFilterModel(P({},Q,{items:F}))}n.current.showPreferences(kf.filters,$,z)},[n,i,o.disableMultipleColumnsFiltering]),g=x.useCallback(()=>{i.debug("Hiding filter panel"),n.current.hidePreferences()},[n,i]),v=x.useCallback(V=>{const $=Ka(n);$.logicOperator!==V&&n.current.setFilterModel(P({},$,{logicOperator:V}),"changeLogicOperator")},[n]),w=x.useCallback(V=>{const $=Ka(n);G2($.quickFilterValues,V)||n.current.setFilterModel(P({},$,{quickFilterValues:[...V]}))},[n]),A=x.useCallback((V,$)=>{Ka(n)!==V&&(i.debug("Setting filter model"),n.current.updateControlState("filter",dE(V,o.disableMultipleColumnsFiltering,n),$),n.current.unstable_applyFilters())},[n,i,o.disableMultipleColumnsFiltering]),k=x.useCallback(V=>{const $=HA(V,o.disableMultipleColumnsFiltering,n),z=o.filterMode==="client"?Mse($,n,o.disableEval):null,Q=n.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:z,filterModel:$??Yh()});return P({},Q,{filterModel:$})},[o.disableMultipleColumnsFiltering,o.filterMode,o.disableEval,n]),C={setFilterLogicOperator:v,unstable_applyFilters:c,deleteFilterItem:p,upsertFilterItem:d,upsertFilterItems:f,setFilterModel:A,showFilterPanel:m,hideFilterPanel:g,setQuickFilterValues:w,ignoreDiacritics:o.ignoreDiacritics,getFilterState:k};Zr(n,C,"public");const M=x.useCallback((V,$)=>{var G,F;const z=Ka(n);return!$.exportOnlyDirtyModels||o.filterModel!=null||((F=(G=o.initialState)==null?void 0:G.filter)==null?void 0:F.filterModel)!=null||!G2(z,Yh())?P({},V,{filter:{filterModel:z}}):V},[n,o.filterModel,(L=(U=o.initialState)==null?void 0:U.filter)==null?void 0:L.filterModel]),S=x.useCallback((V,$)=>{var Q;const z=(Q=$.stateToRestore.filter)==null?void 0:Q.filterModel;return z==null?V:(n.current.updateControlState("filter",dE(z,o.disableMultipleColumnsFiltering,n),"restoreState"),P({},V,{callbacks:[...V.callbacks,n.current.unstable_applyFilters]}))},[n,o.disableMultipleColumnsFiltering]),I=x.useCallback((V,$)=>{var z;if($===kf.filters){const Q=o.slots.filterPanel;return b.jsx(Q,P({},(z=o.slotProps)==null?void 0:z.filterPanel))}return V},[o.slots.filterPanel,(_=o.slotProps)==null?void 0:_.filterPanel]),{getRowId:E}=o,j=Mf(f2e),B=x.useCallback(V=>{if(o.filterMode!=="client"||!V.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const $=ld(n),z={},{isRowMatchingFilters:Q}=V,G={},F={passingFilterItems:null,passingQuickFilterValues:null},q=j.current(n.current.state.rows.dataRowIdToModelLookup);for(let te=0;te{i.debug("onColUpdated - GridColumns changed, applying filters");const V=Ka(n),$=Dd(n),z=V.items.filter(Q=>Q.field&&$[Q.field]);z.length{V==="filtering"&&n.current.unstable_applyFilters()},[n]),N=x.useCallback(()=>{n.current.setState(V=>P({},V,{visibleRowsLookup:YE(n,V)})),n.current.forceUpdate()},[n]);Jt(n,"rowsSet",s),Jt(n,"columnsChange",D),Jt(n,"activeStrategyProcessorChange",R),Jt(n,"rowExpansionChange",N),Jt(n,"columnVisibilityModelChange",()=>{const V=Ka(n);V.quickFilterValues&&lT(V)&&n.current.unstable_applyFilters()}),Dm(()=>{n.current.unstable_applyFilters()}),ko(()=>{o.filterModel!==void 0&&n.current.setFilterModel(o.filterModel)},[n,i,o.filterModel])},h2e=n=>P({},n,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),m2e=(n,o)=>{const i=Ha(n,"useGridFocus"),s=x.useRef(null),l=x.useCallback((R,N)=>{R&&n.current.getRow(R.id)&&n.current.publishEvent("cellFocusOut",n.current.getCellParams(R.id,R.field),N)},[n]),c=x.useCallback((R,N)=>{const U=i1(n);(U==null?void 0:U.id)===R&&(U==null?void 0:U.field)===N||(n.current.setState(L=>(i.debug(`Focusing on cell with id=${R} and field=${N}`),P({},L,{tabIndex:{cell:{id:R,field:N},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:R,field:N},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),n.current.forceUpdate(),n.current.getRow(R)&&(U&&l(U,{}),n.current.publishEvent("cellFocusIn",n.current.getCellParams(R,N))))},[n,i,l]),d=x.useCallback((R,N={})=>{const U=i1(n);l(U,N),n.current.setState(L=>(i.debug(`Focusing on column header with colIndex=${R}`),P({},L,{tabIndex:{columnHeader:{field:R},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:R},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),n.current.forceUpdate()},[n,i,l]),f=x.useCallback((R,N={})=>{const U=i1(n);l(U,N),n.current.setState(L=>(i.debug(`Focusing on column header filter with colIndex=${R}`),P({},L,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:R},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:R},cell:null,columnGroupHeader:null}}))),n.current.forceUpdate()},[n,i,l]),p=x.useCallback((R,N,U={})=>{const L=i1(n);L&&n.current.publishEvent("cellFocusOut",n.current.getCellParams(L.id,L.field),U),n.current.setState(_=>P({},_,{tabIndex:{columnGroupHeader:{field:R,depth:N},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:R,depth:N},columnHeader:null,columnHeaderFilter:null,cell:null}})),n.current.forceUpdate()},[n]),m=x.useCallback(()=>h3(n),[n]),g=x.useCallback((R,N,U)=>{let L=n.current.getColumnIndex(N);const _=La(n),V=Xh(n,{pagination:o.pagination,paginationMode:o.paginationMode}),$=Nf(n),z=[].concat($.top||[],V.rows,$.bottom||[]);let Q=z.findIndex(W=>W.id===R);U==="right"?L+=1:U==="left"?L-=1:Q+=1,L>=_.length?(Q+=1,Q=0&&(L=_.length-1)),Q=Mu(Q,0,z.length-1);const G=z[Q];if(!G)return;const F=n.current.unstable_getCellColSpanInfo(G.id,L);F&&F.spannedByColSpan&&(U==="left"||U==="below"?L=F.leftVisibleCellIndex:U==="right"&&(L=F.rightVisibleCellIndex)),L=Mu(L,0,_.length-1);const q=_[L];n.current.setCellFocus(G.id,q.field)},[n,o.pagination,o.paginationMode]),v=x.useCallback(({id:R,field:N})=>{n.current.setCellFocus(R,N)},[n]),w=x.useCallback((R,N)=>{N.key==="Enter"||N.key==="Tab"||N.key==="Shift"||v3(N.key)||n.current.setCellFocus(R.id,R.field)},[n]),A=x.useCallback(({field:R},N)=>{N.target===N.currentTarget&&n.current.setColumnHeaderFocus(R,N)},[n]),k=x.useCallback(({fields:R,depth:N},U)=>{if(U.target!==U.currentTarget)return;const L=h3(n);L!==null&&L.depth===N&&R.includes(L.field)||n.current.setColumnGroupHeaderFocus(R[0],N,U)},[n]),C=x.useCallback((R,N)=>{var U,L;(L=(U=N.relatedTarget)==null?void 0:U.getAttribute("class"))!=null&&L.includes(we.columnHeader)||(i.debug("Clearing focus"),n.current.setState(_=>P({},_,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[i,n]),M=x.useCallback(R=>{s.current=R},[]),S=x.useCallback(R=>{const N=s.current;s.current=null;const U=i1(n);if(!n.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:R,cell:N}))return;if(!U){N&&n.current.setCellFocus(N.id,N.field);return}if((N==null?void 0:N.id)===U.id&&(N==null?void 0:N.field)===U.field)return;const _=n.current.getCellElement(U.id,U.field);_!=null&&_.contains(R.target)||(N?n.current.setCellFocus(N.id,N.field):(n.current.setState(V=>P({},V,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),n.current.forceUpdate(),l(U,R)))},[n,l]),I=x.useCallback(R=>{if(R.cellMode==="view")return;const N=i1(n);((N==null?void 0:N.id)!==R.id||(N==null?void 0:N.field)!==R.field)&&n.current.setCellFocus(R.id,R.field)},[n]),E=x.useCallback(()=>{const R=i1(n);R&&!n.current.getRow(R.id)&&n.current.setState(N=>P({},N,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[n]),j=ln(()=>{const R=i1(n);if(!R)return;const N=Xh(n,{pagination:o.pagination,paginationMode:o.paginationMode});if(N.rows.find(_=>_.id===R.id))return;const L=La(n);n.current.setState(_=>P({},_,{tabIndex:{cell:{id:N.rows[0].id,field:L[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),B={setCellFocus:c,setColumnHeaderFocus:d,setColumnHeaderFilterFocus:f},D={moveFocusToRelativeCell:g,setColumnGroupHeaderFocus:p,getColumnGroupHeaderFocus:m};Zr(n,B,"public"),Zr(n,D,"private"),x.useEffect(()=>{const R=ri(n.current.rootElementRef.current);return R.addEventListener("mouseup",S),()=>{R.removeEventListener("mouseup",S)}},[n,S]),Jt(n,"columnHeaderBlur",C),Jt(n,"cellDoubleClick",v),Jt(n,"cellMouseDown",M),Jt(n,"cellKeyDown",w),Jt(n,"cellModeChange",I),Jt(n,"columnHeaderFocus",A),Jt(n,"columnGroupHeaderFocus",k),Jt(n,"rowsSet",E),Jt(n,"paginationModelChange",j)};function g2e(n,o){const i=Nf(n)||{};return[...i.top||[],...o,...i.bottom||[]]}const mx=({currentColIndex:n,firstColIndex:o,lastColIndex:i,direction:s})=>{if(s==="rtl"){if(no)return n-1;return null},gx=({currentColIndex:n,firstColIndex:o,lastColIndex:i,direction:s})=>{if(s==="rtl"){if(n>o)return n-1}else if(s==="ltr"&&n{const i=Ha(n,"useGridKeyboardNavigation"),s=$f(n,o).rows,l=ka(),c=x.useMemo(()=>g2e(n,s),[n,s]),d=o.signature!=="DataGrid"&&o.headerFilters,f=x.useCallback((S,I,E="left")=>{const j=$d(n),B=n.current.unstable_getCellColSpanInfo(I,S);B&&B.spannedByColSpan&&(E==="left"?S=B.leftVisibleCellIndex:E==="right"&&(S=B.rightVisibleCellIndex));const D=j.findIndex(N=>N.id===I);i.debug(`Navigating to cell row ${D}, col ${S}`),n.current.scrollToIndexes({colIndex:S,rowIndex:D});const R=n.current.getVisibleColumns()[S].field;n.current.setCellFocus(I,R)},[n,i]),p=x.useCallback((S,I)=>{i.debug(`Navigating to header col ${S}`),n.current.scrollToIndexes({colIndex:S});const E=n.current.getVisibleColumns()[S].field;n.current.setColumnHeaderFocus(E,I)},[n,i]),m=x.useCallback((S,I)=>{i.debug(`Navigating to header filter col ${S}`),n.current.scrollToIndexes({colIndex:S});const E=n.current.getVisibleColumns()[S].field;n.current.setColumnHeaderFilterFocus(E,I)},[n,i]),g=x.useCallback((S,I,E)=>{i.debug(`Navigating to header col ${S}`),n.current.scrollToIndexes({colIndex:S});const{field:j}=n.current.getVisibleColumns()[S];n.current.setColumnGroupHeaderFocus(j,I,E)},[n,i]),v=x.useCallback(S=>{var I;return(I=c[S])==null?void 0:I.id},[c]),w=x.useCallback((S,I)=>{const E=I.currentTarget.querySelector(`.${we.columnHeaderTitleContainerContent}`);if(!!E&&E.contains(I.target)&&S.field!==Rp.field)return;const B=n.current.getViewportPageSize(),D=S.field?n.current.getColumnIndex(S.field):0,R=c.length>0?0:null,N=c.length-1,U=0,L=La(n).length-1,_=Nm(n);let V=!0;switch(I.key){case"ArrowDown":{R!==null&&(d?m(D,I):f(D,v(R)));break}case"ArrowRight":{const $=gx({currentColIndex:D,firstColIndex:U,lastColIndex:L,direction:l.direction});$!==null&&p($,I);break}case"ArrowLeft":{const $=mx({currentColIndex:D,firstColIndex:U,lastColIndex:L,direction:l.direction});$!==null&&p($,I);break}case"ArrowUp":{_>0&&g(D,_-1,I);break}case"PageDown":{R!==null&&N!==null&&f(D,v(Math.min(R+B,N)));break}case"Home":{p(U,I);break}case"End":{p(L,I);break}case"Enter":{(I.ctrlKey||I.metaKey)&&n.current.toggleColumnMenu(S.field);break}case" ":break;default:V=!1}V&&I.preventDefault()},[n,c.length,d,m,f,v,l.direction,p,g]),A=x.useCallback((S,I)=>{const E=v1e(n)===S.field,j=b1e(n)===S.field;if(E||j||!v3(I.key))return;const B=n.current.getViewportPageSize(),D=S.field?n.current.getColumnIndex(S.field):0,R=0,N=c.length-1,U=0,L=La(n).length-1;let _=!0;switch(I.key){case"ArrowDown":{const V=v(R);V!=null&&f(D,V);break}case"ArrowRight":{const V=gx({currentColIndex:D,firstColIndex:U,lastColIndex:L,direction:l.direction});V!==null&&m(V,I);break}case"ArrowLeft":{const V=mx({currentColIndex:D,firstColIndex:U,lastColIndex:L,direction:l.direction});V!==null?m(V,I):n.current.setColumnHeaderFilterFocus(S.field,I);break}case"ArrowUp":{p(D,I);break}case"PageDown":{N!==null&&f(D,v(Math.min(R+B,N)));break}case"Home":{m(U,I);break}case"End":{m(L,I);break}case" ":break;default:_=!1}_&&I.preventDefault()},[n,c.length,m,l.direction,p,f,v]),k=x.useCallback((S,I)=>{const E=h3(n);if(E===null)return;const{field:j,depth:B}=E,{fields:D,depth:R,maxDepth:N}=S,U=n.current.getViewportPageSize(),L=n.current.getColumnIndex(j),_=j?n.current.getColumnIndex(j):0,V=0,$=c.length-1,z=0,Q=La(n).length-1;let G=!0;switch(I.key){case"ArrowDown":{R===N-1?p(L,I):g(L,B+1,I);break}case"ArrowUp":{R>0&&g(L,B-1,I);break}case"ArrowRight":{const F=D.length-D.indexOf(j)-1;L+F+1<=Q&&g(L+F+1,B,I);break}case"ArrowLeft":{const F=D.indexOf(j);L-F-1>=z&&g(L-F-1,B,I);break}case"PageDown":{$!==null&&f(_,v(Math.min(V+U,$)));break}case"Home":{g(z,B,I);break}case"End":{g(Q,B,I);break}case" ":break;default:G=!1}G&&I.preventDefault()},[n,c.length,p,g,f,v]),C=x.useCallback((S,I)=>{if($m(I))return;const E=n.current.getCellParams(S.id,S.field);if(E.cellMode===To.Edit||!v3(I.key)||!n.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:E})||c.length===0)return;const B=l.direction,D=n.current.getViewportPageSize(),R=S.field?n.current.getColumnIndex(S.field):0,N=c.findIndex(z=>z.id===S.id),U=0,L=c.length-1,_=0,V=La(n).length-1;let $=!0;switch(I.key){case"ArrowDown":{NU?f(R,v(N-1)):d?m(R,I):p(R,I);break}case"ArrowRight":{const z=gx({currentColIndex:R,firstColIndex:_,lastColIndex:V,direction:B});z!==null&&f(z,v(N),B==="rtl"?"left":"right");break}case"ArrowLeft":{const z=mx({currentColIndex:R,firstColIndex:_,lastColIndex:V,direction:B});z!==null&&f(z,v(N),B==="rtl"?"right":"left");break}case"Tab":{I.shiftKey&&R>_?f(R-1,v(N),"left"):!I.shiftKey&&R=U?f(R,v(z)):p(R,I);break}case"Home":{I.ctrlKey||I.metaKey||I.shiftKey?f(_,v(U)):f(_,v(N));break}case"End":{I.ctrlKey||I.metaKey||I.shiftKey?f(V,v(L)):f(V,v(N));break}default:$=!1}$&&I.preventDefault()},[n,c,l.direction,f,v,d,m,p]),M=x.useCallback((S,{event:I})=>I.key===" "?!1:S,[]);Ei(n,"canStartEditing",M),Jt(n,"columnHeaderKeyDown",w),Jt(n,"headerFilterKeyDown",A),Jt(n,"columnGroupHeaderKeyDown",k),Jt(n,"cellKeyDown",C)},b2e=(n,o)=>{var k,C;const i=Ha(n,"useGridRowCount"),s=$t(n,_A),l=$t(n,E2),c=$t(n,C0),d=$t(n,Ws),f=Mf(()=>Ws(n).pageSize);n.current.registerControlState({stateId:"paginationRowCount",propModel:o.rowCount,propOnChange:o.onRowCountChange,stateSelector:E2,changeEvent:"rowCountChange"});const m={setRowCount:x.useCallback(M=>{l!==M&&(i.debug("Setting 'rowCount' to",M),n.current.setState(S=>P({},S,{pagination:P({},S.pagination,{rowCount:M})})))},[n,i,l])};Zr(n,m,"public");const g=x.useCallback((M,S)=>{var j,B;const I=E2(n);return!S.exportOnlyDirtyModels||o.rowCount!=null||((B=(j=o.initialState)==null?void 0:j.pagination)==null?void 0:B.rowCount)!=null?P({},M,{pagination:P({},M.pagination,{rowCount:I})}):M},[n,o.rowCount,(C=(k=o.initialState)==null?void 0:k.pagination)==null?void 0:C.rowCount]),v=x.useCallback((M,S)=>{var E;const I=(E=S.stateToRestore.pagination)!=null&&E.rowCount?S.stateToRestore.pagination.rowCount:E2(n);return n.current.setState(j=>P({},j,{pagination:P({},j.pagination,{rowCount:I})})),M},[n]);Ei(n,"exportState",g),Ei(n,"restoreState",v);const w=x.useCallback(M=>{o.paginationMode==="client"||!f.current||M.pageSize!==f.current&&(f.current=M.pageSize,l===-1&&n.current.setPage(0))},[o.paginationMode,f,l,n]);Jt(n,"paginationModelChange",w),x.useEffect(()=>{o.paginationMode==="client"?n.current.setRowCount(s):o.rowCount!=null&&n.current.setRowCount(o.rowCount)},[n,o.paginationMode,s,o.rowCount]);const A=c.hasNextPage===!1;x.useEffect(()=>{A&&l===-1&&n.current.setRowCount(d.pageSize*d.page+s)},[n,s,A,l,d])},w2e=(n,o)=>{var p,m;const i=Ha(n,"useGridPaginationMeta"),s=$t(n,C0);n.current.registerControlState({stateId:"paginationMeta",propModel:o.paginationMeta,propOnChange:o.onPaginationMetaChange,stateSelector:C0,changeEvent:"paginationMetaChange"});const c={setPaginationMeta:x.useCallback(g=>{s!==g&&(i.debug("Setting 'paginationMeta' to",g),n.current.setState(v=>P({},v,{pagination:P({},v.pagination,{meta:g})})))},[n,i,s])};Zr(n,c,"public");const d=x.useCallback((g,v)=>{var k,C;const w=C0(n);return!v.exportOnlyDirtyModels||o.paginationMeta!=null||((C=(k=o.initialState)==null?void 0:k.pagination)==null?void 0:C.meta)!=null?P({},g,{pagination:P({},g.pagination,{meta:w})}):g},[n,o.paginationMeta,(m=(p=o.initialState)==null?void 0:p.pagination)==null?void 0:m.meta]),f=x.useCallback((g,v)=>{var A;const w=(A=v.stateToRestore.pagination)!=null&&A.meta?v.stateToRestore.pagination.meta:C0(n);return n.current.setState(k=>P({},k,{pagination:P({},k.pagination,{meta:w})})),g},[n]);Ei(n,"exportState",d),Ei(n,"restoreState",f),x.useEffect(()=>{o.paginationMeta&&n.current.setPaginationMeta(o.paginationMeta)},[n,o.paginationMeta])},x2e=(n,o)=>{var c,d,f,p,m,g;const i=P({},AT(o.autoPageSize),o.paginationModel??((d=(c=o.initialState)==null?void 0:c.pagination)==null?void 0:d.paginationModel));CT(i.pageSize,o.signature);const s=o.rowCount??((p=(f=o.initialState)==null?void 0:f.pagination)==null?void 0:p.rowCount),l=o.paginationMeta??((g=(m=o.initialState)==null?void 0:m.pagination)==null?void 0:g.meta)??{};return P({},n,{pagination:{paginationModel:i,rowCount:s,meta:l}})},y2e=(n,o)=>{w2e(n,o),a2e(n,o),b2e(n,o)},A2e=(n,o)=>{var i;return P({},n,{preferencePanel:((i=o.initialState)==null?void 0:i.preferencePanel)??{open:!1}})},C2e=(n,o)=>{var v;const i=Ha(n,"useGridPreferencesPanel"),s=x.useRef(),l=x.useRef(),c=x.useCallback(()=>{i.debug("Hiding Preferences Panel");const w=Jh(n.current.state);w.openedPanelValue&&n.current.publishEvent("preferencePanelClose",{openedPanelValue:w.openedPanelValue}),n.current.setState(A=>P({},A,{preferencePanel:{open:!1}})),n.current.forceUpdate()},[n,i]),d=x.useCallback(()=>{l.current=setTimeout(()=>clearTimeout(s.current),0)},[]),f=x.useCallback(()=>{s.current=setTimeout(c,100)},[c]),p=x.useCallback((w,A,k)=>{i.debug("Opening Preferences Panel"),d(),n.current.setState(C=>P({},C,{preferencePanel:P({},C.preferencePanel,{open:!0,openedPanelValue:w,panelId:A,labelId:k})})),n.current.publishEvent("preferencePanelOpen",{openedPanelValue:w}),n.current.forceUpdate()},[i,d,n]);Zr(n,{showPreferences:p,hidePreferences:f},"public");const m=x.useCallback((w,A)=>{var M;const k=Jh(n.current.state);return!A.exportOnlyDirtyModels||((M=o.initialState)==null?void 0:M.preferencePanel)!=null||k.open?P({},w,{preferencePanel:k}):w},[n,(v=o.initialState)==null?void 0:v.preferencePanel]),g=x.useCallback((w,A)=>{const k=A.stateToRestore.preferencePanel;return k!=null&&n.current.setState(C=>P({},C,{preferencePanel:k})),w},[n]);Ei(n,"exportState",m),Ei(n,"restoreState",g),x.useEffect(()=>()=>{clearTimeout(s.current),clearTimeout(l.current)},[])},k2e=["id","field"],S2e=["id","field"],I2e=(n,o)=>{const[i,s]=x.useState({}),l=x.useRef(i),c=x.useRef({}),{processRowUpdate:d,onProcessRowUpdateError:f,cellModesModel:p,onCellModesModelChange:m}=o,g=Q=>(...G)=>{o.editMode===Gc.Cell&&Q(...G)},v=x.useCallback((Q,G)=>{const F=n.current.getCellParams(Q,G);if(!n.current.isCellEditable(F))throw new Error(`MUI X: The cell with id=${Q} and field=${G} is not editable.`)},[n]),w=x.useCallback((Q,G,F)=>{if(n.current.getCellMode(Q,G)!==F)throw new Error(`MUI X: The cell with id=${Q} and field=${G} is not in ${F} mode.`)},[n]),A=x.useCallback((Q,G)=>{if(!Q.isEditable||Q.cellMode===To.Edit)return;const F=P({},Q,{reason:qc.cellDoubleClick});n.current.publishEvent("cellEditStart",F,G)},[n]),k=x.useCallback((Q,G)=>{if(Q.cellMode===To.View||n.current.getCellMode(Q.id,Q.field)===To.View)return;const F=P({},Q,{reason:q1.cellFocusOut});n.current.publishEvent("cellEditStop",F,G)},[n]),C=x.useCallback((Q,G)=>{if(Q.cellMode===To.Edit){if(G.which===229)return;let F;if(G.key==="Escape"?F=q1.escapeKeyDown:G.key==="Enter"?F=q1.enterKeyDown:G.key==="Tab"&&(F=G.shiftKey?q1.shiftTabKeyDown:q1.tabKeyDown,G.preventDefault()),F){const q=P({},Q,{reason:F});n.current.publishEvent("cellEditStop",q,G)}}else if(Q.isEditable){let F;if(!n.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:G,cellParams:Q,editMode:"cell"}))return;if(jT(G)?F=qc.printableKeyDown:OT(G)?F=qc.pasteKeyDown:G.key==="Enter"?F=qc.enterKeyDown:(G.key==="Backspace"||G.key==="Delete")&&(F=qc.deleteKeyDown),F){const W=P({},Q,{reason:F,key:G.key});n.current.publishEvent("cellEditStart",W,G)}}},[n]),M=x.useCallback(Q=>{const{id:G,field:F,reason:q}=Q,W={id:G,field:F};(q===qc.printableKeyDown||q===qc.deleteKeyDown||q===qc.pasteKeyDown)&&(W.deleteValue=!0),n.current.startCellEditMode(W)},[n]),S=x.useCallback(Q=>{const{id:G,field:F,reason:q}=Q;n.current.runPendingEditCellValueMutation(G,F);let W;q===q1.enterKeyDown?W="below":q===q1.tabKeyDown?W="right":q===q1.shiftTabKeyDown&&(W="left");const X=q==="escapeKeyDown";n.current.stopCellEditMode({id:G,field:F,ignoreModifications:X,cellToFocusAfter:W})},[n]),I=Q=>async(...G)=>{var F;if(Q){const{id:q,field:W}=G[0];((F=n.current.state.editRows[q][W])==null?void 0:F.error)||Q(...G)}};Jt(n,"cellDoubleClick",g(A)),Jt(n,"cellFocusOut",g(k)),Jt(n,"cellKeyDown",g(C)),Jt(n,"cellEditStart",g(M)),Jt(n,"cellEditStop",g(S)),ei(n,"cellEditStart",o.onCellEditStart),ei(n,"cellEditStop",I(o.onCellEditStop));const E=x.useCallback((Q,G)=>{const F=Rs(n.current.state);return F[Q]&&F[Q][G]?To.Edit:To.View},[n]),j=ln(Q=>{const G=Q!==o.cellModesModel;m&&G&&m(Q,{api:n.current}),!(o.cellModesModel&&G)&&(s(Q),l.current=Q,n.current.publishEvent("cellModesModelChange",Q))}),B=x.useCallback((Q,G,F)=>{const q=P({},l.current);if(F!==null)q[Q]=P({},q[Q],{[G]:P({},F)});else{const W=q[Q],X=Qe(W,[G].map(yh));q[Q]=X,Object.keys(q[Q]).length===0&&delete q[Q]}j(q)},[j]),D=x.useCallback((Q,G,F)=>{n.current.setState(q=>{const W=P({},q.editRows);return F!==null?W[Q]=P({},W[Q],{[G]:P({},F)}):(delete W[Q][G],Object.keys(W[Q]).length===0&&delete W[Q]),P({},q,{editRows:W})}),n.current.forceUpdate()},[n]),R=x.useCallback(Q=>{const{id:G,field:F}=Q,q=Qe(Q,k2e);v(G,F),w(G,F,To.View),B(G,F,P({mode:To.Edit},q))},[v,w,B]),N=ln(Q=>{const{id:G,field:F,deleteValue:q,initialValue:W}=Q;let X=n.current.getCellValue(G,F);if(q)switch(n.current.getColumn(F).type){case"boolean":X=!1;break;case"date":case"dateTime":case"number":X=void 0;break;case"singleSelect":X=null;break;case"string":default:X="";break}else W&&(X=W);D(G,F,{value:X,error:!1,isProcessingProps:!1}),n.current.setCellFocus(G,F)}),U=x.useCallback(Q=>{const{id:G,field:F}=Q,q=Qe(Q,S2e);w(G,F,To.Edit),B(G,F,P({mode:To.View},q))},[w,B]),L=ln(async Q=>{const{id:G,field:F,ignoreModifications:q,cellToFocusAfter:W="none"}=Q;w(G,F,To.Edit),n.current.runPendingEditCellValueMutation(G,F);const X=()=>{D(G,F,null),B(G,F,null),W!=="none"&&n.current.moveFocusToRelativeCell(G,F,W)};if(q){X();return}const te=Rs(n.current.state),{error:se,isProcessingProps:de}=te[G][F];if(se||de){c.current[G][F].mode=To.Edit,B(G,F,{mode:To.Edit});return}const ee=n.current.getRowWithUpdatedValuesFromCellEditing(G,F);if(d){const fe=he=>{c.current[G][F].mode=To.Edit,B(G,F,{mode:To.Edit}),f&&f(he)};try{const he=n.current.getRow(G);Promise.resolve(d(ee,he)).then(Ie=>{n.current.updateRows([Ie]),X()}).catch(fe)}catch(he){fe(he)}}else n.current.updateRows([ee]),X()}),_=x.useCallback(async Q=>{var he,Ie;const{id:G,field:F,value:q,debounceMs:W,unstable_skipValueParser:X}=Q;v(G,F),w(G,F,To.Edit);const te=n.current.getColumn(F),se=n.current.getRow(G);let de=q;te.valueParser&&!X&&(de=te.valueParser(q,se,te,n));let ee=Rs(n.current.state),fe=P({},ee[G][F],{value:de,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(te.preProcessEditCellProps){const ve=q!==ee[G][F].value;fe=P({},fe,{isProcessingProps:!0}),D(G,F,fe),fe=await Promise.resolve(te.preProcessEditCellProps({id:G,row:se,props:fe,hasChanged:ve}))}return n.current.getCellMode(G,F)===To.View?!1:(ee=Rs(n.current.state),fe=P({},fe,{isProcessingProps:!1}),fe.value=te.preProcessEditCellProps?ee[G][F].value:de,D(G,F,fe),ee=Rs(n.current.state),!((Ie=(he=ee[G])==null?void 0:he[F])!=null&&Ie.error))},[n,v,w,D]),V=x.useCallback((Q,G)=>{const F=n.current.getColumn(G),q=Rs(n.current.state),W=n.current.getRow(Q);if(!q[Q]||!q[Q][G])return n.current.getRow(Q);const{value:X}=q[Q][G];return F.valueSetter?F.valueSetter(X,W,F,n):P({},W,{[G]:X})},[n]),$={getCellMode:E,startCellEditMode:R,stopCellEditMode:U},z={setCellEditingEditCellValue:_,getRowWithUpdatedValuesFromCellEditing:V};Zr(n,$,"public"),Zr(n,z,"private"),x.useEffect(()=>{p&&j(p)},[p,j]),ko(()=>{const Q=p3(n),G=c.current;c.current=nT(i),Object.entries(i).forEach(([F,q])=>{Object.entries(q).forEach(([W,X])=>{var de,ee;const te=((ee=(de=G[F])==null?void 0:de[W])==null?void 0:ee.mode)||To.View,se=Q[F]??F;X.mode===To.Edit&&te===To.View?N(P({id:se,field:W},X)):X.mode===To.View&&te===To.Edit&&L(P({id:se,field:W},X))})})},[n,i,N,L])},E2e=["id"],M2e=["id"],P2e=(n,o)=>{const[i,s]=x.useState({}),l=x.useRef(i),c=x.useRef({}),d=x.useRef(),f=x.useRef(null),{processRowUpdate:p,onProcessRowUpdateError:m,rowModesModel:g,onRowModesModelChange:v}=o,w=W=>(...X)=>{o.editMode===Gc.Row&&W(...X)},A=x.useCallback((W,X)=>{const te=n.current.getCellParams(W,X);if(!n.current.isCellEditable(te))throw new Error(`MUI X: The cell with id=${W} and field=${X} is not editable.`)},[n]),k=x.useCallback((W,X)=>{if(n.current.getRowMode(W)!==X)throw new Error(`MUI X: The row with id=${W} is not in ${X} mode.`)},[n]),C=x.useCallback(W=>{const X=Rs(n.current.state);return Object.values(X[W]).some(te=>te.error)},[n]),M=x.useCallback((W,X)=>{if(!W.isEditable||n.current.getRowMode(W.id)===Zo.Edit)return;const te=n.current.getRowParams(W.id),se=P({},te,{field:W.field,reason:Vu.cellDoubleClick});n.current.publishEvent("rowEditStart",se,X)},[n]),S=x.useCallback(W=>{f.current=W},[]),I=x.useCallback((W,X)=>{W.isEditable&&n.current.getRowMode(W.id)!==Zo.View&&(f.current=null,d.current=setTimeout(()=>{var te;if(((te=f.current)==null?void 0:te.id)!==W.id){if(!n.current.getRow(W.id)||n.current.getRowMode(W.id)===Zo.View||C(W.id))return;const se=n.current.getRowParams(W.id),de=P({},se,{field:W.field,reason:xc.rowFocusOut});n.current.publishEvent("rowEditStop",de,X)}}))},[n,C]);x.useEffect(()=>()=>{clearTimeout(d.current)},[]);const E=x.useCallback((W,X)=>{if(W.cellMode===Zo.Edit){if(X.which===229)return;let te;if(X.key==="Escape")te=xc.escapeKeyDown;else if(X.key==="Enter")te=xc.enterKeyDown;else if(X.key==="Tab"){const se=Bm(n).filter(de=>n.current.getColumn(de).type===Vb?!0:n.current.isCellEditable(n.current.getCellParams(W.id,de)));if(X.shiftKey?W.field===se[0]&&(te=xc.shiftTabKeyDown):W.field===se[se.length-1]&&(te=xc.tabKeyDown),X.preventDefault(),!te){const de=se.findIndex(fe=>fe===W.field),ee=se[X.shiftKey?de-1:de+1];n.current.setCellFocus(W.id,ee)}}if(te){if(te!==xc.escapeKeyDown&&C(W.id))return;const se=P({},n.current.getRowParams(W.id),{reason:te,field:W.field});n.current.publishEvent("rowEditStop",se,X)}}else if(W.isEditable){let te;if(!n.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:X,cellParams:W,editMode:"row"}))return;if(jT(X)||OT(X)?te=Vu.printableKeyDown:X.key==="Enter"?te=Vu.enterKeyDown:(X.key==="Backspace"||X.key==="Delete")&&(te=Vu.deleteKeyDown),te){const de=n.current.getRowParams(W.id),ee=P({},de,{field:W.field,reason:te});n.current.publishEvent("rowEditStart",ee,X)}}},[n,C]),j=x.useCallback(W=>{const{id:X,field:te,reason:se}=W,de={id:X,fieldToFocus:te};(se===Vu.printableKeyDown||se===Vu.deleteKeyDown)&&(de.deleteValue=!!te),n.current.startRowEditMode(de)},[n]),B=x.useCallback(W=>{const{id:X,reason:te,field:se}=W;n.current.runPendingEditCellValueMutation(X);let de;te===xc.enterKeyDown?de="below":te===xc.tabKeyDown?de="right":te===xc.shiftTabKeyDown&&(de="left");const ee=te==="escapeKeyDown";n.current.stopRowEditMode({id:X,ignoreModifications:ee,field:se,cellToFocusAfter:de})},[n]);Jt(n,"cellDoubleClick",w(M)),Jt(n,"cellFocusIn",w(S)),Jt(n,"cellFocusOut",w(I)),Jt(n,"cellKeyDown",w(E)),Jt(n,"rowEditStart",w(j)),Jt(n,"rowEditStop",w(B)),ei(n,"rowEditStart",o.onRowEditStart),ei(n,"rowEditStop",o.onRowEditStop);const D=x.useCallback(W=>{if(o.editMode===Gc.Cell)return Zo.View;const X=Rs(n.current.state);return X[W]&&Object.keys(X[W]).length>0?Zo.Edit:Zo.View},[n,o.editMode]),R=ln(W=>{const X=W!==o.rowModesModel;v&&X&&v(W,{api:n.current}),!(o.rowModesModel&&X)&&(s(W),l.current=W,n.current.publishEvent("rowModesModelChange",W))}),N=x.useCallback((W,X)=>{const te=P({},l.current);X!==null?te[W]=P({},X):delete te[W],R(te)},[R]),U=x.useCallback((W,X)=>{n.current.setState(te=>{const se=P({},te.editRows);return X!==null?se[W]=X:delete se[W],P({},te,{editRows:se})}),n.current.forceUpdate()},[n]),L=x.useCallback((W,X,te)=>{n.current.setState(se=>{const de=P({},se.editRows);return te!==null?de[W]=P({},de[W],{[X]:P({},te)}):(delete de[W][X],Object.keys(de[W]).length===0&&delete de[W]),P({},se,{editRows:de})}),n.current.forceUpdate()},[n]),_=x.useCallback(W=>{const{id:X}=W,te=Qe(W,E2e);k(X,Zo.View),N(X,P({mode:Zo.Edit},te))},[k,N]),V=ln(W=>{const{id:X,fieldToFocus:te,deleteValue:se,initialValue:de}=W,fe=mu(n).reduce((he,Ie)=>{if(!n.current.getCellParams(X,Ie).isEditable)return he;let be=n.current.getCellValue(X,Ie);return te===Ie&&(se||de)&&(be=se?"":de),he[Ie]={value:be,error:!1,isProcessingProps:!1},he},{});U(X,fe),te&&n.current.setCellFocus(X,te)}),$=x.useCallback(W=>{const{id:X}=W,te=Qe(W,M2e);k(X,Zo.Edit),N(X,P({mode:Zo.View},te))},[k,N]),z=ln(W=>{const{id:X,ignoreModifications:te,field:se,cellToFocusAfter:de="none"}=W;n.current.runPendingEditCellValueMutation(X);const ee=()=>{de!=="none"&&se&&n.current.moveFocusToRelativeCell(X,se,de),U(X,null),N(X,null)};if(te){ee();return}const fe=Rs(n.current.state),he=n.current.getRow(X);if(Object.values(fe[X]).some(be=>be.isProcessingProps)){c.current[X].mode=Zo.Edit;return}if(C(X)){c.current[X].mode=Zo.Edit,N(X,{mode:Zo.Edit});return}const ve=n.current.getRowWithUpdatedValuesFromRowEditing(X);if(p){const be=ke=>{c.current[X].mode=Zo.Edit,N(X,{mode:Zo.Edit}),m&&m(ke)};try{Promise.resolve(p(ve,he)).then(ke=>{n.current.updateRows([ke]),ee()}).catch(be)}catch(ke){be(ke)}}else n.current.updateRows([ve]),ee()}),Q=x.useCallback(W=>{const{id:X,field:te,value:se,debounceMs:de,unstable_skipValueParser:ee}=W;A(X,te);const fe=n.current.getColumn(te),he=n.current.getRow(X);let Ie=se;fe.valueParser&&!ee&&(Ie=fe.valueParser(se,he,fe,n));let ve=Rs(n.current.state),be=P({},ve[X][te],{value:Ie,changeReason:de?"debouncedSetEditCellValue":"setEditCellValue"});return fe.preProcessEditCellProps||L(X,te,be),new Promise(ke=>{const ze=[];if(fe.preProcessEditCellProps){const Ge=be.value!==ve[X][te].value;be=P({},be,{isProcessingProps:!0}),L(X,te,be);const Ve=ve[X],at=Qe(Ve,[te].map(yh)),We=Promise.resolve(fe.preProcessEditCellProps({id:X,row:he,props:be,hasChanged:Ge,otherFieldsProps:at})).then(ue=>{if(n.current.getRowMode(X)===Zo.View){ke(!1);return}ve=Rs(n.current.state),ue=P({},ue,{isProcessingProps:!1}),ue.value=fe.preProcessEditCellProps?ve[X][te].value:Ie,L(X,te,ue)});ze.push(We)}Object.entries(ve[X]).forEach(([Ge,Ve])=>{if(Ge===te)return;const at=n.current.getColumn(Ge);if(!at.preProcessEditCellProps)return;Ve=P({},Ve,{isProcessingProps:!0}),L(X,Ge,Ve),ve=Rs(n.current.state);const We=ve[X],ue=Qe(We,[Ge].map(yh)),Le=Promise.resolve(at.preProcessEditCellProps({id:X,row:he,props:Ve,hasChanged:!1,otherFieldsProps:ue})).then($e=>{if(n.current.getRowMode(X)===Zo.View){ke(!1);return}$e=P({},$e,{isProcessingProps:!1}),L(X,Ge,$e)});ze.push(Le)}),Promise.all(ze).then(()=>{n.current.getRowMode(X)===Zo.Edit?(ve=Rs(n.current.state),ke(!ve[X][te].error)):ke(!1)})})},[n,A,L]),G=x.useCallback(W=>{const X=Rs(n.current.state),te=n.current.getRow(W);if(!X[W])return n.current.getRow(W);let se=P({},te);return Object.entries(X[W]).forEach(([de,ee])=>{const fe=n.current.getColumn(de);fe.valueSetter?se=fe.valueSetter(ee.value,se,fe,n):se[de]=ee.value}),se},[n]),F={getRowMode:D,startRowEditMode:_,stopRowEditMode:$},q={setRowEditingEditCellValue:Q,getRowWithUpdatedValuesFromRowEditing:G};Zr(n,F,"public"),Zr(n,q,"private"),x.useEffect(()=>{g&&R(g)},[g,R]),ko(()=>{const W=p3(n),X=c.current;c.current=nT(i);const te=new Set([...Object.keys(i),...Object.keys(X)]);Array.from(te).forEach(se=>{var he;const de=i[se]??{mode:Zo.View},ee=((he=X[se])==null?void 0:he.mode)||Zo.View,fe=W[se]??se;de.mode===Zo.Edit&&ee===Zo.View?V(P({id:fe},de)):de.mode===Zo.View&&ee===Zo.Edit&&z(P({id:fe},de))})},[n,i,V,z])},j2e=n=>P({},n,{editRows:{}}),O2e=(n,o)=>{I2e(n,o),P2e(n,o);const i=x.useRef({}),{isCellEditable:s}=o,l=x.useCallback(w=>up(w.rowNode)||!w.colDef.editable||!w.colDef.renderEditCell?!1:s?s(w):!0,[s]),c=(w,A,k,C)=>{if(!k){C();return}if(i.current[w]||(i.current[w]={}),i.current[w][A]){const[I]=i.current[w][A];clearTimeout(I)}const M=()=>{const[I]=i.current[w][A];clearTimeout(I),C(),delete i.current[w][A]},S=setTimeout(()=>{C(),delete i.current[w][A]},k);i.current[w][A]=[S,M]};x.useEffect(()=>{const w=i.current;return()=>{Object.entries(w).forEach(([A,k])=>{Object.keys(k).forEach(C=>{const[M]=w[A][C];clearTimeout(M),delete w[A][C]})})}},[]);const d=x.useCallback((w,A)=>{if(i.current[w]){if(!A)Object.keys(i.current[w]).forEach(k=>{const[,C]=i.current[w][k];C()});else if(i.current[w][A]){const[,k]=i.current[w][A];k()}}},[]),f=x.useCallback(w=>{const{id:A,field:k,debounceMs:C}=w;return new Promise(M=>{c(A,k,C,async()=>{const S=o.editMode===Gc.Row?n.current.setRowEditingEditCellValue:n.current.setCellEditingEditCellValue;if(n.current.getCellMode(A,k)===To.Edit){const I=await S(w);M(I)}})})},[n,o.editMode]),p=x.useCallback((w,A)=>o.editMode===Gc.Cell?n.current.getRowWithUpdatedValuesFromCellEditing(w,A):n.current.getRowWithUpdatedValuesFromRowEditing(w),[n,o.editMode]),m=x.useCallback((w,A)=>{var C;return((C=Rs(n.current.state)[w])==null?void 0:C[A])??null},[n]),g={isCellEditable:l,setEditCellValue:f,getRowWithUpdatedValues:p,unstable_getEditCellMeta:m},v={runPendingEditCellValueMutation:d};Zr(n,g,"public"),Zr(n,v,"private")},R2e=(n,o,i)=>{const s=!!o.unstable_dataSource;return i.current.caches.rows=lv({rows:s?[]:o.rows,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),P({},n,{rows:dT({apiRef:i,rowCountProp:o.rowCount,loadingProp:s?!0:o.loading,previousTree:null,previousTreeDepths:null})})},B2e=(n,o)=>{const i=Ha(n,"useGridRows"),s=$f(n,o),l=x.useRef(Date.now()),c=x.useRef(o.rowCount),d=Fl(),f=x.useCallback(F=>{const q=ld(n)[F];if(q)return q;const W=n.current.getRowNode(F);return W&&up(W)?{[V2]:F}:null},[n]),p=o.getRowId,m=x.useCallback(F=>V2 in F?F[V2]:p?p(F):F.id,[p]),g=x.useMemo(()=>s.rows.reduce((F,{id:q},W)=>(F[q]=W,F),{}),[s.rows]),v=x.useCallback(({cache:F,throttle:q})=>{const W=()=>{l.current=Date.now(),n.current.setState(te=>P({},te,{rows:dT({apiRef:n,rowCountProp:o.rowCount,loadingProp:o.loading,previousTree:p1(n),previousTreeDepths:hE(n),previousGroupsToFetch:Vse(n)})})),n.current.publishEvent("rowsSet"),n.current.forceUpdate()};if(d.clear(),n.current.caches.rows=F,!q){W();return}const X=o.throttleRowsMs-(Date.now()-l.current);if(X>0){d.start(X,W);return}W()},[o.throttleRowsMs,o.rowCount,o.loading,n,d]),w=x.useCallback(F=>{i.debug(`Updating all rows, new length ${F.length}`);const q=lv({rows:F,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),W=n.current.caches.rows;q.rowsBeforePartialUpdates=W.rowsBeforePartialUpdates,v({cache:q,throttle:!0})},[i,o.getRowId,o.loading,o.rowCount,v,n]),A=x.useCallback(F=>{if(o.signature===ec.DataGrid&&F.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));const q=gE(n,F,o.getRowId),W=mE({updates:q,getRowId:o.getRowId,previousCache:n.current.caches.rows});v({cache:W,throttle:!0})},[o.signature,o.getRowId,v,n]),k=x.useCallback((F,q)=>{const W=gE(n,F,o.getRowId),X=mE({updates:W,getRowId:o.getRowId,previousCache:n.current.caches.rows,groupKeys:q??[]});v({cache:X,throttle:!1})},[o.getRowId,v,n]),C=x.useCallback(F=>{F!==o.loading&&(i.debug(`Setting loading to ${F}`),n.current.setState(q=>P({},q,{rows:P({},q.rows,{loading:F})})),n.current.caches.rows.loadingPropBeforePartialUpdates=F)},[o.loading,n,i]),M=x.useCallback(()=>{const F=Rg(n),q=ld(n);return new Map(F.map(W=>[W,q[W]??{}]))},[n]),S=x.useCallback(()=>Fm(n),[n]),I=x.useCallback(()=>Rg(n),[n]),E=x.useCallback(F=>g[F],[g]),j=x.useCallback((F,q)=>{const W=n.current.getRowNode(F);if(!W)throw new Error(`MUI X: No row with id #${F} found.`);if(W.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const X=P({},W,{childrenExpanded:q});n.current.setState(te=>P({},te,{rows:P({},te.rows,{tree:P({},te.rows.tree,{[F]:X})})})),n.current.forceUpdate(),n.current.publishEvent("rowExpansionChange",X)},[n]),B=x.useCallback(F=>p1(n)[F]??null,[n]),D=x.useCallback(({skipAutoGeneratedRows:F=!0,groupId:q,applySorting:W,applyFiltering:X})=>{const te=p1(n);let se;if(W){const de=te[q];if(!de)return[];const ee=QA(n);se=[];const fe=ee.findIndex(he=>he===q)+1;for(let he=fe;hede.depth;he+=1){const Ie=ee[he];(!F||!up(te[Ie]))&&se.push(Ie)}}else se=UA(te,q,F);if(X){const de=gT(n);se=se.filter(ee=>de[ee]!==!1)}return se},[n]),R=x.useCallback((F,q)=>{const W=n.current.getRowNode(F);if(!W)throw new Error(`MUI X: No row with id #${F} found.`);if(W.parent!==Ys)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(W.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");n.current.setState(X=>{const te=p1(X,n.current.instanceId)[Ys],se=te.children,de=se.findIndex(fe=>fe===F);if(de===-1||de===q)return X;i.debug(`Moving row ${F} to index ${q}`);const ee=[...se];return ee.splice(q,0,ee.splice(de,1)[0]),P({},X,{rows:P({},X.rows,{tree:P({},X.rows.tree,{[Ys]:P({},te,{children:ee})})})})}),n.current.publishEvent("rowsSet")},[n,i]),N=x.useCallback((F,q)=>{if(o.signature===ec.DataGrid&&q.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));if(q.length===0)return;if(Qb(n)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const X=P({},p1(n)),te=P({},ld(n)),se=P({},p3(n)),de=X[Ys],ee=[...de.children],fe=new Set;for(let Ie=0;Ie{var ve;return((ve=X[Ie])==null?void 0:ve.type)==="leaf"});n.current.caches.rows.dataRowIdToModelLookup=te,n.current.caches.rows.dataRowIdToIdLookup=se,n.current.setState(Ie=>P({},Ie,{rows:P({},Ie.rows,{dataRowIdToModelLookup:te,dataRowIdToIdLookup:se,dataRowIds:he,tree:X})})),n.current.publishEvent("rowsSet")},[n,o.signature,o.getRowId]),U={getRow:f,setLoading:C,getRowId:m,getRowModels:M,getRowsCount:S,getAllRowIds:I,setRows:w,updateRows:A,getRowNode:B,getRowIndexRelativeToVisibleRows:E,unstable_replaceRows:N},L={setRowIndex:R,setRowChildrenExpansion:j,getRowGroupChildren:D},_={updateServerRows:k},V=x.useCallback(()=>{i.info("Row grouping pre-processing have changed, regenerating the row tree");let F;n.current.caches.rows.rowsBeforePartialUpdates===o.rows?F=P({},n.current.caches.rows,{updates:{type:"full",rows:Rg(n)}}):F=lv({rows:o.rows,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),v({cache:F,throttle:!1})},[i,n,o.rows,o.getRowId,o.loading,o.rowCount,v]),$=x.useCallback(F=>{F==="rowTreeCreation"&&V()},[V]),z=x.useCallback(()=>{n.current.getActiveStrategy("rowTree")!==Qse(n)&&V()},[n,V]);Jt(n,"activeStrategyProcessorChange",$),Jt(n,"strategyAvailabilityChange",z);const Q=x.useCallback(()=>{n.current.setState(F=>{const q=n.current.unstable_applyPipeProcessors("hydrateRows",{tree:p1(F,n.current.instanceId),treeDepths:hE(F,n.current.instanceId),dataRowIds:Rg(F,n.current.instanceId),dataRowIdToModelLookup:ld(F,n.current.instanceId),dataRowIdToIdLookup:p3(F,n.current.instanceId)});return P({},F,{rows:P({},F.rows,q,{totalTopLevelRowCount:uT({tree:q.tree,rowCountProp:o.rowCount})})})}),n.current.publishEvent("rowsSet"),n.current.forceUpdate()},[n,o.rowCount]);s8(n,"hydrateRows",Q),Zr(n,U,"public"),Zr(n,L,o.signature===ec.DataGrid?"private":"public"),Zr(n,_,"private");const G=x.useRef(!0);x.useEffect(()=>{var te;if(G.current){G.current=!1;return}let F=!1;o.rowCount!==c.current&&(F=!0,c.current=o.rowCount);const q=n.current.caches.rows.rowsBeforePartialUpdates===o.rows,W=n.current.caches.rows.loadingPropBeforePartialUpdates===o.loading,X=n.current.caches.rows.rowCountPropBeforePartialUpdates===o.rowCount;q&&(W||(n.current.setState(se=>P({},se,{rows:P({},se.rows,{loading:o.loading})})),n.current.caches.rows.loadingPropBeforePartialUpdates=o.loading,n.current.forceUpdate()),X||(n.current.setState(se=>P({},se,{rows:P({},se.rows,{totalRowCount:Math.max(o.rowCount||0,se.rows.totalRowCount),totalTopLevelRowCount:Math.max(o.rowCount||0,se.rows.totalTopLevelRowCount)})})),n.current.caches.rows.rowCountPropBeforePartialUpdates=o.rowCount,n.current.forceUpdate()),!F)||(i.debug(`Updating all rows, new length ${(te=o.rows)==null?void 0:te.length}`),v({cache:lv({rows:o.rows,getRowId:o.getRowId,loading:o.loading,rowCount:o.rowCount}),throttle:!1}))},[o.rows,o.rowCount,o.getRowId,o.loading,i,v,n])},T2e=n=>{const o={[Ys]:P({},_se(),{children:n})};for(let i=0;i{const i=P({},n),s={};for(let d=0;d!s[d])),i[Ys]=P({},l,{children:c}),{groupingName:Sf,tree:i,treeDepths:{0:c.length},dataRowIds:c}},D2e=n=>n.updates.type==="full"?T2e(n.updates.rows):F2e({previousTree:n.previousTree,actions:n.updates.actions}),N2e=n=>{x3(n,Sf,"rowTreeCreation",D2e)},eF=(n,o)=>n==null||Array.isArray(n)?n:o&&o[0]===n?o:[n],$2e=(n,o)=>P({},n,{rowSelection:o.rowSelection?eF(o.rowSelectionModel)??[]:[]}),L2e=(n,o)=>{const i=Ha(n,"useGridSelection"),s=$=>(...z)=>{o.rowSelection&&$(...z)},l=x.useMemo(()=>eF(o.rowSelectionModel,a1(n.current.state)),[n,o.rowSelectionModel]),c=x.useRef(null);n.current.registerControlState({stateId:"rowSelection",propModel:l,propOnChange:o.onRowSelectionModelChange,stateSelector:a1,changeEvent:"rowSelectionChange"});const{checkboxSelection:d,disableRowSelectionOnClick:f,isRowSelectable:p}=o,m=GA(o),g=$f(n,o),v=x.useCallback($=>{let z=$;const Q=c.current??$,G=n.current.isRowSelected($);if(G){const F=ph(n),q=F.findIndex(X=>X===Q),W=F.findIndex(X=>X===z);if(q===W)return;q>W?z=F[W+1]:z=F[W-1]}c.current=$,n.current.selectRowRange({startId:Q,endId:z},!G)},[n]),w=x.useCallback($=>{if(o.signature===ec.DataGrid&&!m&&Array.isArray($)&&$.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` +`));a1(n.current.state)!==$&&(i.debug("Setting selection model"),n.current.setState(Q=>P({},Q,{rowSelection:o.rowSelection?$:[]})),n.current.forceUpdate())},[n,i,o.rowSelection,o.signature,m]),A=x.useCallback($=>a1(n.current.state).includes($),[n]),k=x.useCallback($=>{if(p&&!p(n.current.getRowParams($)))return!1;const z=n.current.getRowNode($);return!((z==null?void 0:z.type)==="footer"||(z==null?void 0:z.type)==="pinnedRow")},[n,p]),C=x.useCallback(()=>wle(n),[n]),M=x.useCallback(($,z=!0,Q=!1)=>{if(n.current.isRowSelectable($))if(c.current=$,Q)i.debug(`Setting selection for row ${$}`),n.current.setRowSelectionModel(z?[$]:[]);else{i.debug(`Toggling selection for row ${$}`);const F=a1(n.current.state).filter(W=>W!==$);z&&F.push($),(F.length<2||m)&&n.current.setRowSelectionModel(F)}},[n,i,m]),S=x.useCallback(($,z=!0,Q=!1)=>{i.debug("Setting selection for several rows");const G=$.filter(W=>n.current.isRowSelectable(W));let F;if(Q)F=z?G:[];else{const W=P({},m3(n));G.forEach(X=>{z?W[X]=X:delete W[X]}),F=Object.values(W)}(F.length<2||m)&&n.current.setRowSelectionModel(F)},[n,i,m]),I=x.useCallback(({startId:$,endId:z},Q=!0,G=!1)=>{if(!n.current.getRow($)||!n.current.getRow(z))return;i.debug(`Expanding selection from row ${$} to row ${z}`);const F=ph(n),q=F.indexOf($),W=F.indexOf(z),[X,te]=q>W?[W,q]:[q,W],se=F.slice(X,te+1);n.current.selectRows(se,Q,G)},[n,i]),E={selectRow:M,setRowSelectionModel:w,getSelectedRows:C,isRowSelected:A,isRowSelectable:k},j={selectRows:S,selectRowRange:I};Zr(n,E,"public"),Zr(n,j,o.signature===ec.DataGrid?"private":"public");const B=x.useCallback(()=>{if(o.keepNonExistentRowsSelected)return;const $=a1(n.current.state),z=ld(n),Q=P({},m3(n));let G=!1;$.forEach(F=>{z[F]||(delete Q[F],G=!0)}),G&&n.current.setRowSelectionModel(Object.values(Q))},[n,o.keepNonExistentRowsSelected]),D=x.useCallback(($,z)=>{const Q=z.metaKey||z.ctrlKey,G=!d&&!Q&&!Yle(z),F=!m||G,q=n.current.isRowSelected($);F?n.current.selectRow($,G?!0:!q,!0):n.current.selectRow($,!q,!1)},[n,m,d]),R=x.useCallback(($,z)=>{var F;if(f)return;const Q=(F=z.target.closest(`.${we.cell}`))==null?void 0:F.getAttribute("data-field");if(Q===Rp.field||Q===i8)return;if(Q){const q=n.current.getColumn(Q);if((q==null?void 0:q.type)===Vb)return}n.current.getRowNode($.id).type!=="pinnedRow"&&(z.shiftKey&&m?v($.id):D($.id,z))},[f,m,n,v,D]),N=x.useCallback(($,z)=>{var Q;m&&z.shiftKey&&((Q=window.getSelection())==null||Q.removeAllRanges())},[m]),U=x.useCallback(($,z)=>{m&&z.nativeEvent.shiftKey?v($.id):n.current.selectRow($.id,$.value,!m)},[n,v,m]),L=x.useCallback($=>{const Q=o.checkboxSelectionVisibleOnly&&o.pagination?ST(n):ph(n),G=Ka(n);n.current.selectRows(Q,$.value,(G==null?void 0:G.items.length)>0)},[n,o.checkboxSelectionVisibleOnly,o.pagination]),_=x.useCallback(($,z)=>{if(n.current.getCellMode($.id,$.field)!==To.Edit&&!$m(z)){if(v3(z.key)&&z.shiftKey){const Q=i1(n);if(Q&&Q.id!==$.id){z.preventDefault();const G=n.current.isRowSelected(Q.id);if(!m){n.current.selectRow(Q.id,!G,!0);return}const F=n.current.getRowIndexRelativeToVisibleRows(Q.id),q=n.current.getRowIndexRelativeToVisibleRows($.id);let W,X;F>q?G?(W=q,X=F-1):(W=q,X=F):G?(W=F+1,X=q):(W=F,X=q);const te=g.rows.slice(W,X+1).map(se=>se.id);n.current.selectRows(te,!G);return}}if(z.key===" "&&z.shiftKey){z.preventDefault(),D($.id,z);return}z.key==="a"&&(z.ctrlKey||z.metaKey)&&(z.preventDefault(),S(n.current.getAllRowIds(),!0))}},[n,D,S,g.rows,m]);Jt(n,"sortedRowsSet",s(B)),Jt(n,"rowClick",s(R)),Jt(n,"rowSelectionCheckboxChange",s(U)),Jt(n,"headerSelectionCheckboxChange",L),Jt(n,"cellMouseDown",s(N)),Jt(n,"cellKeyDown",s(_)),x.useEffect(()=>{l!==void 0&&n.current.setRowSelectionModel(l)},[n,l,o.rowSelection]),x.useEffect(()=>{o.rowSelection||n.current.setRowSelectionModel([])},[n,o.rowSelection]);const V=l!=null;x.useEffect(()=>{if(V||!o.rowSelection)return;const $=a1(n.current.state);if(k){const z=$.filter(Q=>k(Q));z.length<$.length&&n.current.setRowSelectionModel(z)}},[n,k,V,o.rowSelection]),x.useEffect(()=>{if(!o.rowSelection||V)return;const $=a1(n.current.state);!m&&$.length>1&&n.current.setRowSelectionModel([])},[n,m,d,V,o.rowSelection])},z2e=n=>{const{classes:o}=n;return x.useMemo(()=>Bt({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Tn,o),[o])},H2e=(n,o)=>{const i={classes:o.classes},s=z2e(i),l=x.useCallback(c=>{const d=P({},Rp,{cellClassName:s.cellCheckbox,headerClassName:s.columnHeaderCheckbox,headerName:n.current.getLocaleText("checkboxSelectionHeaderName")}),f=o.checkboxSelection,p=c.lookup[Qu]!=null;return f&&!p?(c.lookup[Qu]=d,c.orderedFields=[Qu,...c.orderedFields]):!f&&p?(delete c.lookup[Qu],c.orderedFields=c.orderedFields.filter(m=>m!==Qu)):f&&p&&(c.lookup[Qu]=P({},d,c.lookup[Qu])),c},[n,s,o.checkboxSelection]);Ei(n,"hydrateColumns",l)},U2e=(n,o)=>{var s,l;const i=o.sortModel??((l=(s=o.initialState)==null?void 0:s.sorting)==null?void 0:l.sortModel)??[];return P({},n,{sorting:{sortModel:ZB(i,o.disableMultipleColumnsSorting),sortedRows:[]}})},G2e=(n,o)=>{var B,D;const i=Ha(n,"useGridSorting");n.current.registerControlState({stateId:"sortModel",propModel:o.sortModel,propOnChange:o.onSortModelChange,stateSelector:s1,changeEvent:"sortModelChange"});const s=x.useCallback((R,N)=>{const U=s1(n),L=U.findIndex(V=>V.field===R);let _=[...U];return L>-1?(N==null?void 0:N.sort)==null?_.splice(L,1):_.splice(L,1,N):_=[...U,N],_},[n]),l=x.useCallback((R,N)=>{const L=s1(n).find(_=>_.field===R.field);if(L){const _=N===void 0?cE(R.sortingOrder??o.sortingOrder,L.sort):N;return _===void 0?void 0:P({},L,{sort:_})}return{field:R.field,sort:N===void 0?cE(R.sortingOrder??o.sortingOrder):N}},[n,o.sortingOrder]),c=x.useCallback((R,N)=>N==null||N.sortable===!1||o.disableColumnSorting?R:(N.sortingOrder||o.sortingOrder).some(L=>!!L)?[...R,"columnMenuSortItem"]:R,[o.sortingOrder,o.disableColumnSorting]),d=x.useCallback(()=>{n.current.setState(R=>{if(o.sortingMode==="server")return i.debug("Skipping sorting rows as sortingMode = server"),P({},R,{sorting:P({},R.sorting,{sortedRows:UA(p1(n),Ys,!1)})});const N=s1(R,n.current.instanceId),U=gse(N,n),L=n.current.applyStrategyProcessor("sorting",{sortRowList:U});return P({},R,{sorting:P({},R.sorting,{sortedRows:L})})}),n.current.publishEvent("sortedRowsSet"),n.current.forceUpdate()},[n,i,o.sortingMode]),f=x.useCallback(R=>{s1(n)!==R&&(i.debug("Setting sort model"),n.current.setState(lE(R,o.disableMultipleColumnsSorting)),n.current.forceUpdate(),n.current.applySorting())},[n,i,o.disableMultipleColumnsSorting]),p=x.useCallback((R,N,U)=>{const L=n.current.getColumn(R),_=l(L,N);let V;!U||o.disableMultipleColumnsSorting?V=(_==null?void 0:_.sort)==null?[]:[_]:V=s(L.field,_),n.current.setSortModel(V)},[n,s,l,o.disableMultipleColumnsSorting]),m=x.useCallback(()=>s1(n),[n]),g=x.useCallback(()=>WA(n).map(N=>N.model),[n]),v=x.useCallback(()=>QA(n),[n]),w=x.useCallback(R=>n.current.getSortedRowIds()[R],[n]);Zr(n,{getSortModel:m,getSortedRows:g,getSortedRowIds:v,getRowIdFromRowIndex:w,setSortModel:f,sortColumn:p,applySorting:d},"public");const k=x.useCallback((R,N)=>{var _,V;const U=s1(n);return!N.exportOnlyDirtyModels||o.sortModel!=null||((V=(_=o.initialState)==null?void 0:_.sorting)==null?void 0:V.sortModel)!=null||U.length>0?P({},R,{sorting:{sortModel:U}}):R},[n,o.sortModel,(D=(B=o.initialState)==null?void 0:B.sorting)==null?void 0:D.sortModel]),C=x.useCallback((R,N)=>{var L;const U=(L=N.stateToRestore.sorting)==null?void 0:L.sortModel;return U==null?R:(n.current.setState(lE(U,o.disableMultipleColumnsSorting)),P({},R,{callbacks:[...R.callbacks,n.current.applySorting]}))},[n,o.disableMultipleColumnsSorting]),M=x.useCallback(R=>{const N=p1(n),U=N[Ys],L=R.sortRowList?R.sortRowList(U.children.map(_=>N[_])):[...U.children];return U.footerId!=null&&L.push(U.footerId),L},[n]);Ei(n,"exportState",k),Ei(n,"restoreState",C),x3(n,Sf,"sorting",M);const S=x.useCallback(({field:R,colDef:N},U)=>{if(!N.sortable||o.disableColumnSorting)return;const L=U.shiftKey||U.metaKey||U.ctrlKey;p(R,void 0,L)},[p,o.disableColumnSorting]),I=x.useCallback(({field:R,colDef:N},U)=>{!N.sortable||o.disableColumnSorting||U.key==="Enter"&&!U.ctrlKey&&!U.metaKey&&p(R,void 0,U.shiftKey)},[p,o.disableColumnSorting]),E=x.useCallback(()=>{const R=s1(n),N=Dd(n);if(R.length>0){const U=R.filter(L=>N[L.field]);U.length{R==="sorting"&&n.current.applySorting()},[n]);Ei(n,"columnMenu",c),Jt(n,"columnHeaderClick",S),Jt(n,"columnHeaderKeyDown",I),Jt(n,"rowsSet",n.current.applySorting),Jt(n,"columnsChange",E),Jt(n,"activeStrategyProcessorChange",j),Dm(()=>{n.current.applySorting()}),ko(()=>{o.sortModel!==void 0&&n.current.setSortModel(o.sortModel)},[n,o.sortModel])};function KE(n){const{clientHeight:o,scrollTop:i,offsetHeight:s,offsetTop:l}=n,c=l+s;if(s>o)return l;if(c-o>i)return c-o;if(l{const i=ka(),s=Ha(n,"useGridScroll"),l=n.current.columnHeadersContainerRef,c=n.current.virtualScrollerRef,d=$t(n,$d),f=x.useCallback(v=>{var S;const w=Gl(n.current.state),A=Fm(n),k=La(n);if(!(v.rowIndex==null)&&A===0||k.length===0)return!1;s.debug(`Scrolling to cell at row ${v.rowIndex}, col: ${v.colIndex} `);let M={};if(v.colIndex!==void 0){const I=Nd(n);let E;if(typeof v.rowIndex<"u"){const j=(S=d[v.rowIndex])==null?void 0:S.id,B=n.current.unstable_getCellColSpanInfo(j,v.colIndex);B&&!B.spannedByColSpan&&(E=B.cellProps.width)}typeof E>"u"&&(E=k[v.colIndex].computedWidth),M.left=KE({clientHeight:w.viewportInnerSize.width,scrollTop:Math.abs(c.current.scrollLeft),offsetHeight:E,offsetTop:I[v.colIndex]})}if(v.rowIndex!==void 0){const I=Bp(n.current.state),E=Ole(n),j=Rle(n),B=o.pagination?v.rowIndex-E*j:v.rowIndex,D=I.positions[B+1]?I.positions[B+1]-I.positions[B]:I.currentPageTotalHeight-I.positions[B];M.top=KE({clientHeight:w.viewportInnerSize.height,scrollTop:c.current.scrollTop,offsetHeight:D,offsetTop:I.positions[B]})}return M=n.current.unstable_applyPipeProcessors("scrollToIndexes",M,v),typeof M.left!==void 0||typeof M.top!==void 0?(n.current.scroll(M),!0):!1},[s,n,c,o.pagination,d]),p=x.useCallback(v=>{if(c.current&&v.left!==void 0&&l.current){const w=i.direction==="rtl"?-1:1;l.current.scrollLeft=v.left,c.current.scrollLeft=w*v.left,s.debug(`Scrolling left: ${v.left}`)}c.current&&v.top!==void 0&&(c.current.scrollTop=v.top,s.debug(`Scrolling top: ${v.top}`)),s.debug("Scrolling, updating container, and viewport")},[c,i.direction,l,s]),m=x.useCallback(()=>c!=null&&c.current?{top:c.current.scrollTop,left:c.current.scrollLeft}:{top:0,left:0},[c]);Zr(n,{scroll:p,scrollToIndexes:f,getScrollPosition:m},"public")};function Q2e(n,o){ei(n,"columnHeaderClick",o.onColumnHeaderClick),ei(n,"columnHeaderDoubleClick",o.onColumnHeaderDoubleClick),ei(n,"columnHeaderOver",o.onColumnHeaderOver),ei(n,"columnHeaderOut",o.onColumnHeaderOut),ei(n,"columnHeaderEnter",o.onColumnHeaderEnter),ei(n,"columnHeaderLeave",o.onColumnHeaderLeave),ei(n,"cellClick",o.onCellClick),ei(n,"cellDoubleClick",o.onCellDoubleClick),ei(n,"cellKeyDown",o.onCellKeyDown),ei(n,"preferencePanelClose",o.onPreferencePanelClose),ei(n,"preferencePanelOpen",o.onPreferencePanelOpen),ei(n,"menuOpen",o.onMenuOpen),ei(n,"menuClose",o.onMenuClose),ei(n,"rowDoubleClick",o.onRowDoubleClick),ei(n,"rowClick",o.onRowClick),ei(n,"stateChange",o.onStateChange)}function W2e(n,o=166){let i,s;const l=()=>{i=void 0,n(...s)};function c(...d){s=d,i===void 0&&(i=setTimeout(l,o))}return c.clear=()=>{clearTimeout(i),i=void 0},c}const u2={width:0,height:0},q2e={isReady:!1,root:u2,viewportOuterSize:u2,viewportInnerSize:u2,contentSize:u2,minimumSize:u2,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},_2e=n=>P({},n,{dimensions:q2e});function Y2e(n,o){const i=Ha(n,"useResizeContainer"),s=x.useRef(!1),l=x.useRef(u2),c=$t(n,Gl),d=$t(n,Bp),f=$t(n,Tm),p=$t(n,Rm),m=Math.floor(o.rowHeight*p),g=Math.floor(o.columnHeaderHeight*p),v=Math.floor((o.headerFilterHeight??o.columnHeaderHeight)*p),w=X2e($A(n),6),A=XA(n,o),k=f.left.reduce((z,Q)=>z+Q.computedWidth,0),C=f.right.reduce((z,Q)=>z+Q.computedWidth,0),[M,S]=x.useState(),I=x.useMemo(()=>W2e(S,o.resizeThrottleMs),[o.resizeThrottleMs]),E=x.useRef(),j=()=>n.current.state.dimensions,B=ln(z=>{n.current.setState(Q=>P({},Q,{dimensions:z}))}),D=x.useCallback(()=>{const z=n.current.mainElementRef.current;if(!z)return;const Q=Ll(z).getComputedStyle(z),G={width:parseFloat(Q.width)||0,height:parseFloat(Q.height)||0};(!E.current||!XE(E.current,G))&&(n.current.publishEvent("resize",G),E.current=G)},[n]),R=x.useCallback(()=>{const z=Gl(n.current.state);if(!z.isReady)return 0;const Q=Xh(n,{pagination:o.pagination,paginationMode:o.paginationMode});if(o.getRowHeight){const F=e8(n),q=F.lastRowIndex-F.firstRowIndex;return Math.min(q-1,Q.rows.length)}const G=Math.floor(z.viewportInnerSize.height/m);return Math.min(G,Q.rows.length)},[n,o.pagination,o.paginationMode,o.getRowHeight,m]),N=x.useCallback(()=>{var be,ke;const z=n.current.rootElementRef.current,Q=Kse(n),G=K2e(z,w,o.scrollbarSize),F=A+Q.top,q=Q.bottom,X={width:w-k-C,height:d.currentPageTotalHeight};let te,se,de=!1,ee=!1;if(o.autoHeight)ee=!1,de=Math.round(w)>Math.round(l.current.width),te={width:l.current.width,height:F+q+X.height},se={width:Math.max(0,te.width-(ee?G:0)),height:Math.max(0,te.height-(de?G:0))};else{te={width:l.current.width,height:l.current.height},se={width:Math.max(0,te.width-k-C),height:Math.max(0,te.height-F-q)};const ze=X,Ge=se,Ve=ze.width>Ge.width,at=ze.height>Ge.height;(Ve||at)&&(ee=at,de=ze.width+(ee?G:0)>Ge.width,de&&(ee=ze.height+G>Ge.height)),ee&&(se.width-=G),de&&(se.height-=G)}const fe=Math.max(te.width,w+(ee?G:0)),he={width:w,height:F+X.height+q},Ie={isReady:!0,root:l.current,viewportOuterSize:te,viewportInnerSize:se,contentSize:X,minimumSize:he,hasScrollX:de,hasScrollY:ee,scrollbarSize:G,headerHeight:g,headerFilterHeight:v,rowWidth:fe,rowHeight:m,columnsTotalWidth:w,leftPinnedWidth:k,rightPinnedWidth:C,headersTotalHeight:A,topContainerHeight:F,bottomContainerHeight:q},ve=n.current.state.dimensions;B(Ie),XE(Ie.viewportInnerSize,ve.viewportInnerSize)||n.current.publishEvent("viewportInnerSizeChange",Ie.viewportInnerSize),(ke=(be=n.current).updateRenderContext)==null||ke.call(be)},[n,B,o.scrollbarSize,o.autoHeight,d.currentPageTotalHeight,m,g,v,w,A,k,C]),U={resize:D,getRootDimensions:j},L={updateDimensions:N,getViewportPageSize:R};Zr(n,U,"public"),Zr(n,L,"private"),ko(()=>{M&&(N(),n.current.publishEvent("debouncedResize",l.current))},[n,M,N]);const _=n.current.rootElementRef.current;ko(()=>{if(!_)return;const z=(Q,G)=>_.style.setProperty(Q,G);z("--DataGrid-width",`${c.viewportOuterSize.width}px`),z("--DataGrid-hasScrollX",`${Number(c.hasScrollX)}`),z("--DataGrid-hasScrollY",`${Number(c.hasScrollY)}`),z("--DataGrid-scrollbarSize",`${c.scrollbarSize}px`),z("--DataGrid-rowWidth",`${c.rowWidth}px`),z("--DataGrid-columnsTotalWidth",`${c.columnsTotalWidth}px`),z("--DataGrid-leftPinnedWidth",`${c.leftPinnedWidth}px`),z("--DataGrid-rightPinnedWidth",`${c.rightPinnedWidth}px`),z("--DataGrid-headerHeight",`${c.headerHeight}px`),z("--DataGrid-headersTotalHeight",`${c.headersTotalHeight}px`),z("--DataGrid-topContainerHeight",`${c.topContainerHeight}px`),z("--DataGrid-bottomContainerHeight",`${c.bottomContainerHeight}px`),z("--height",`${c.rowHeight}px`)},[_,c]);const V=x.useRef(!0),$=x.useCallback(z=>{l.current=z;const Q=/jsdom/.test(window.navigator.userAgent);if(z.height===0&&!s.current&&!o.autoHeight&&!Q&&(i.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` `)),s.current=!0),z.width===0&&!s.current&&!Q&&(i.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),s.current=!0),V.current){S(z),V.current=!1;return}I(z)},[o.autoHeight,I,i]);yo(N,[N]),Jo(n,"sortedRowsSet",N),Jo(n,"paginationModelChange",N),Jo(n,"columnsChange",N),Jt(n,"resize",$),Jo(n,"debouncedResize",o.onResize)}function $2e(n,o,i){if(i!==void 0)return i;if(n===null||o===0)return 0;const l=ei(n).createElement("div");l.style.width="99px",l.style.height="99px",l.style.position="absolute",l.style.overflow="scroll",l.className="scrollDiv",n.appendChild(l);const c=l.offsetWidth-l.clientWidth;return n.removeChild(l),c}function L2e(n,o){return Math.round(n*10**o)/10**o}function UE(n,o){return n.width===o.width&&n.height===o.height}const z2e=n=>{const{classes:o,headerAlign:i,isDragging:s,showLeftBorder:l,showRightBorder:c,groupId:d,pinnedPosition:f}=n;return Rt({root:["columnHeader",i==="left"&&"columnHeader--alignLeft",i==="center"&&"columnHeader--alignCenter",i==="right"&&"columnHeader--alignRight",s&&"columnHeader--moving",c&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder","withBorderColor",d===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",f==="left"&&"columnHeader--pinnedLeft",f==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Tn,o)};function H2e(n){var te;const{groupId:o,width:i,depth:s,maxDepth:l,fields:c,height:d,colIndex:f,hasFocus:p,tabIndex:m,isLastColumn:g,pinnedPosition:v,style:w,indexInSection:A,sectionLength:k,gridHasFiller:C}=n,M=ir(),S=x.useRef(null),I=gn(),E=$t(I,ST),j=o?E[o]:{},{headerName:B=o??"",description:F="",headerAlign:O=void 0}=j;let N;const H=o&&((te=E[o])==null?void 0:te.renderHeaderGroup),L=x.useMemo(()=>({groupId:o,headerName:B,description:F,depth:s,maxDepth:l,fields:c,colIndex:f,isLastColumn:g}),[o,B,F,s,l,c,f,g]);o&&H&&(N=H(L));const _=Yb(v,A),V=_b(v,A,k,M.showCellVerticalBorder,C),$=P({},n,{classes:M.classes,showLeftBorder:_,showRightBorder:V,headerAlign:O,depth:s,isDragging:!1}),z=B??o,Q=Ro(),G=o===null?`empty-group-cell-${Q}`:o,D=z2e($);x.useLayoutEffect(()=>{if(p){const de=S.current.querySelector('[tabindex="0"]')||S.current;de==null||de.focus()}},[I,p]);const q=x.useCallback(se=>de=>{$m(de)||I.current.publishEvent(se,L,de)},[I,L]),W=x.useMemo(()=>({onKeyDown:q("columnGroupHeaderKeyDown"),onFocus:q("columnGroupHeaderFocus"),onBlur:q("columnGroupHeaderBlur")}),[q]),X=typeof j.headerClassName=="function"?j.headerClassName(L):j.headerClassName;return b.jsx($T,P({ref:S,classes:D,columnMenuOpen:!1,colIndex:f,height:d,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:m,isDraggable:!1,headerComponent:N,headerClassName:X,description:F,elementId:G,width:i,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:z,"aria-colspan":c.length,"data-fields":`|-${c.join("-|-")}-|`,style:w},W))}const GE=_e("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(n,o)=>o.columnHeaderRow})({display:"flex"}),U2e=n=>{const{visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:f,headerGroupingMaxDepth:p,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:w}=n,[A,k]=x.useState(""),[C,M]=x.useState(""),S=Ru(),I=ka(),E=ir(),j=$t(S,Vl),B=$t(S,ZA),F=$t(S,kT),O=$t(S,Ld),N=$t(S,b1e),H=$t(S,Tm),L=PT(O,N,I.direction,H.left.length),_=j.columnsTotalWidth{S.current.columnHeadersContainerRef.current.scrollLeft=0},[S]);const V=x.useCallback(fe=>M(fe.field),[]),$=x.useCallback(()=>M(""),[]),z=x.useCallback(fe=>k(fe.field),[]),Q=x.useCallback(()=>k(""),[]),G=x.useMemo(()=>H.left.length?{firstColumnIndex:0,lastColumnIndex:H.left.length}:null,[H.left.length]),D=x.useMemo(()=>H.right.length?{firstColumnIndex:o.length-H.right.length,lastColumnIndex:o.length}:null,[H.right.length,o.length]);Jt(S,"columnResizeStart",V),Jt(S,"columnResizeStop",$),Jt(S,"columnHeaderDragStart",z),Jt(S,"columnHeaderDragEnd",Q);const q=fe=>{const{renderContext:he=N,maxLastColumn:Ie=o.length}=fe||{},ve=B?he.firstColumnIndex:0,be=B?he.lastColumnIndex:Ie;return{renderedColumns:o.slice(ve,be),firstColumnToRender:ve,lastColumnToRender:be}},W=(fe,he,Ie,ve=!1)=>{const be=(fe==null?void 0:fe.position)===ki.RIGHT,ke=(fe==null?void 0:fe.position)===void 0,ze=H.right.length>0&&be||H.right.length===0&&ke,Ge=L-Ie;return b.jsxs(x.Fragment,{children:[ke&&b.jsx("div",{role:"presentation",style:{width:Ge}}),he,ke&&b.jsx("div",{role:"presentation",className:nt(we.filler,ve&&we["filler--borderTop"])}),ze&&b.jsx(o8,{header:!0,borderTop:ve,pinnedRight:be})]})},X=({pinnedPosition:fe,columnIndex:he,computedWidth:Ie})=>{let ve;if(fe==="left"||fe==="right"){const be=n8(fe,Ie,he,O,j);fe==="left"&&(ve={left:be}),fe==="right"&&(ve={right:be})}return ve},te=(fe,he={})=>{const{renderedColumns:Ie,firstColumnToRender:ve}=q(fe),be=[];for(let ke=0;keb.jsxs(GE,{role:"row","aria-rowindex":p+1,ownerState:E,children:[G&&te({position:ki.LEFT,renderContext:G,minFirstColumn:G.firstColumnIndex,maxLastColumn:G.lastColumnIndex},{disableReorder:!0}),te({renderContext:N,minFirstColumn:H.left.length,maxLastColumn:o.length-H.right.length}),D&&te({position:ki.RIGHT,renderContext:D,minFirstColumn:D.firstColumnIndex,maxLastColumn:D.lastColumnIndex},{disableReorder:!0,separatorSide:r8.Left})]}),de=({depth:fe,params:he})=>{var Xe,Pt;const Ie=q(he);if(Ie.renderedColumns.length===0)return null;const{renderedColumns:ve,firstColumnToRender:be,lastColumnToRender:ke}=Ie,ze=v[fe],Ge=o[be].field,Ve=((Xe=F[Ge])==null?void 0:Xe[fe])??null,at=ze.findIndex(({groupId:mt,columnFields:pt})=>mt===Ve&&pt.includes(Ge)),We=o[ke-1].field,ue=((Pt=F[We])==null?void 0:Pt[fe])??null,Le=ze.findIndex(({groupId:mt,columnFields:pt})=>mt===ue&&pt.includes(We)),$e=ze.slice(at,Le+1).map(mt=>P({},mt,{columnFields:mt.columnFields.filter(pt=>g[pt]!==!1)})).filter(mt=>mt.columnFields.length>0),bt=$e[0].columnFields.indexOf(Ge),st=$e[0].columnFields.slice(0,bt).reduce((mt,pt)=>{const Te=S.current.getColumn(pt);return mt+(Te.computedWidth??0)},0);let Ze=be;const dt=$e.map(({groupId:mt,columnFields:pt},Te)=>{const Re=f!==null&&f.depth===fe&&pt.includes(f.field),Je=c!==null&&c.depth===fe&&pt.includes(c.field)?0:-1,It={groupId:mt,width:pt.reduce((tt,Y)=>tt+S.current.getColumn(Y).computedWidth,0),fields:pt,colIndex:Ze,hasFocus:Re,tabIndex:Je},Nt=he.position,ht=X({pinnedPosition:Nt,columnIndex:Ze,computedWidth:It.width});Ze+=pt.length;let xt=Te;return Nt==="left"&&(xt=Ze-1),b.jsx(H2e,{groupId:mt,width:It.width,fields:It.fields,colIndex:It.colIndex,depth:fe,isLastColumn:It.colIndex===o.length-It.fields.length,maxDepth:p,height:j.headerHeight,hasFocus:Re,tabIndex:Je,pinnedPosition:Nt,style:ht,indexInSection:xt,sectionLength:ve.length,gridHasFiller:_},Te)});return W(he,dt,st)};return{renderContext:N,leftRenderContext:G,rightRenderContext:D,pinnedColumns:H,visibleColumns:o,getCellOffsetStyle:X,getFillers:W,getColumnHeadersRow:se,getColumnsToRender:q,getColumnGroupHeadersRows:()=>{if(p===0)return null;const fe=[];for(let he=0;he({role:"rowgroup"})}},G2e=["className"],V2e=n=>{const{classes:o}=n;return Rt({root:["columnHeaders"]},Tn,o)},Q2e=zr("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(n,o)=>o.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),W2e=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,G2e),c=ir(),d=V2e(c);return b.jsx(Q2e,P({ref:i,className:nt(s,d.root),ownerState:c},l,{role:"presentation"}))}),q2e=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],_2e=x.forwardRef(function(o,i){const{visibleColumns:s,sortColumnLookup:l,filterColumnLookup:c,columnHeaderTabIndexState:d,columnGroupHeaderTabIndexState:f,columnHeaderFocus:p,columnGroupHeaderFocus:m,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:w,columnGroupsHeaderStructure:A,hasOtherElementInTabSequence:k}=o,C=Qe(o,q2e),{getInnerProps:M,getColumnHeadersRow:S,getColumnGroupHeadersRows:I}=U2e({visibleColumns:s,sortColumnLookup:l,filterColumnLookup:c,columnHeaderTabIndexState:d,columnGroupHeaderTabIndexState:f,columnHeaderFocus:p,columnGroupHeaderFocus:m,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:w,columnGroupsHeaderStructure:A,hasOtherElementInTabSequence:k});return b.jsxs(W2e,P({ref:i},C,M(),{children:[I(),S()]}))}),Y2e=Hd(_2e);function K2e(n){return null}function X2e(n){return null}const J2e=x.forwardRef(function(o,i){const l=gn().current.getLocaleText("noResultsOverlayLabel");return b.jsx(t8,P({ref:i},o,{children:l}))}),Z2e=["sortingOrder"],epe=x.memo(function(o){const{sortingOrder:i}=o,s=Qe(o,Z2e),l=ir(),[c]=i,d=c==="asc"?l.slots.columnSortedAscendingIcon:l.slots.columnSortedDescendingIcon;return d?b.jsx(d,P({},s)):null}),tpe=["native"];function rpe(n){let{native:o}=n,i=Qe(n,tpe);return o?b.jsx("option",P({},i)):b.jsx(uo,P({},i))}const npe={booleanCellTrueIcon:$ue,booleanCellFalseIcon:fx,columnMenuIcon:Tue,openFilterButtonIcon:Eue,filterPanelDeleteIcon:fx,columnFilteredIcon:IE,columnSelectorIcon:Pue,columnUnsortedIcon:epe,columnSortedAscendingIcon:AE,columnSortedDescendingIcon:CE,columnResizeIcon:jue,densityCompactIcon:Oue,densityStandardIcon:Rue,densityComfortableIcon:Bue,exportIcon:Nue,moreActionsIcon:Lue,treeDataCollapseIcon:SE,treeDataExpandIcon:kE,groupingCriteriaCollapseIcon:SE,groupingCriteriaExpandIcon:kE,detailPanelExpandIcon:EE,detailPanelCollapseIcon:Fue,rowReorderIcon:ME,quickFilterIcon:Mue,quickFilterClearIcon:fx,columnMenuHideIcon:zue,columnMenuSortAscendingIcon:AE,columnMenuSortDescendingIcon:CE,columnMenuFilterIcon:IE,columnMenuManageColumnsIcon:Hue,columnMenuClearIcon:Uue,loadIcon:Due,filterPanelAddIcon:EE,filterPanelRemoveAllIcon:Gue,columnReorderIcon:ME},ope=P({},npe,{baseCheckbox:Sd,baseTextField:Hn,baseFormControl:Ci,baseSelect:zc,baseButton:Zn,baseIconButton:ui,baseInputAdornment:kB,baseTooltip:Rl,basePopper:Eu,baseInputLabel:yd,baseSelectOption:rpe,baseChip:Pp}),ipe=P({},ope,{cell:Fce,skeletonCell:Uce,columnHeaderFilterIconButton:Iue,columnHeaderSortIcon:kue,columnMenu:ode,columnHeaders:Y2e,detailPanels:K2e,footer:Kde,footerRowCount:pfe,toolbar:null,pinnedRows:X2e,loadingOverlay:ofe,noResultsOverlay:J2e,noRowsOverlay:ife,pagination:cfe,filterPanel:Hde,columnsPanel:gde,columnsManagement:HT,panel:yde,row:bfe});function ape({defaultSlots:n,slots:o}){const i=o;if(!i||Object.keys(i).length===0)return n;const s=P({},n);return Object.keys(i).forEach(l=>{const c=l;i[c]!==void 0&&(s[c]=i[c])}),s}function spe(n){if(n==null)throw new TypeError("Cannot destructure "+n)}function lpe(n){const o=Object.keys(n);if(!o.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return n;const i={},s=n.forwardedProps??{};for(let l=0;l{const o=P({},(spe(n),n));return lpe(o)},[n])}const upe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},i6={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Qc.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0},dpe=ipe,fpe=n=>{const o=cpe(EW({props:n,name:"MuiDataGrid"})),i=x.useMemo(()=>P({},kae,o.localeText),[o.localeText]),s=x.useMemo(()=>ape({defaultSlots:dpe,slots:o.slots}),[o.slots]),l=x.useMemo(()=>Object.keys(i6).reduce((c,d)=>(c[d]=o[d]??i6[d],c),{}),[o]);return x.useMemo(()=>P({},o,l,{localeText:i,slots:s},upe),[o,i,s,l])},ppe=n=>P({},n,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),VE=(n,o,i)=>typeof n=="number"&&n>0?n:o,hpe=(n,o)=>{const{getRowHeight:i,getRowSpacing:s,getEstimatedRowHeight:l}=o,c=x.useRef(Object.create(null)),d=x.useRef(-1),f=x.useRef(!1),p=$t(n,Rm),m=$t(n,Ya),g=$t(n,Wb),v=$t(n,l1),w=Lf(n,o),A=$t(n,$f),k=VE(o.rowHeight,i6.rowHeight),C=Math.floor(k*p),M=x.useCallback(()=>{var Q,G;f.current=!1;const V=D=>{c.current[D.id]||(c.current[D.id]={sizes:{baseCenter:C},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:q,needsFirstMeasurement:W,sizes:X}=c.current[D.id];let te=typeof C=="number"&&C>0?C:52;const se=X.baseCenter;if(q)te=se;else if(i){const fe=i(P({},D,{densityFactor:p}));fe==="auto"?(W?te=(l?l(P({},D,{densityFactor:p})):C)??C:te=se,f.current=!0,c.current[D.id].autoHeight=!0):(te=VE(fe,C),c.current[D.id].needsFirstMeasurement=!1,c.current[D.id].autoHeight=!1)}else c.current[D.id].needsFirstMeasurement=!1;const de={baseCenter:te};if(s){const fe=n.current.getRowIndexRelativeToVisibleRows(D.id),he=s(P({},D,{isFirstVisible:fe===0,isLastVisible:fe===w.rows.length-1,indexRelativeToCurrentPage:fe}));de.spacingTop=he.top??0,de.spacingBottom=he.bottom??0}const ee=n.current.unstable_applyPipeProcessors("rowHeight",de,D);return c.current[D.id].sizes=ee,ee},$=[],z=w.rows.reduce((D,q)=>{$.push(D);let W=0;const X=V(q);for(const te in X){const se=X[te];te!=="baseCenter"&&(W+=se)}return D+X.baseCenter+W},0);(Q=A==null?void 0:A.top)==null||Q.forEach(D=>{V(D)}),(G=A==null?void 0:A.bottom)==null||G.forEach(D=>{V(D)}),n.current.setState(D=>P({},D,{rowsMeta:{currentPageTotalHeight:z,positions:$}})),f.current||(d.current=1/0),n.current.forceUpdate()},[n,w.rows,C,i,s,l,A,p]),S=x.useCallback(V=>{const $=c.current[V];return $?$.sizes.baseCenter:C},[C]),I=V=>{var $;return($=c.current[V])==null?void 0:$.sizes},E=x.useCallback((V,$)=>{c.current[V].sizes.baseCenter=$,c.current[V].isResized=!0,c.current[V].needsFirstMeasurement=!1,M()},[M]),j=x.useMemo(()=>Mf(M,o.rowPositionsDebounceMs),[M,o.rowPositionsDebounceMs]),B=x.useCallback((V,$)=>{if(!c.current[V]||!c.current[V].autoHeight)return;const z=c.current[V].sizes.baseCenter!==$;c.current[V].needsFirstMeasurement=!1,c.current[V].sizes.baseCenter=$,z&&j()},[j]),F=x.useCallback(V=>{var $;return(($=c.current[V])==null?void 0:$.autoHeight)||!1},[]),O=x.useCallback(()=>d.current,[]),N=x.useCallback(V=>{f.current&&V>d.current&&(d.current=V)},[]),H=x.useCallback(()=>{c.current={},M()},[M]);x.useEffect(()=>{M()},[C,m,g,v,M]),s8(n,"rowHeight",M);const L={unstable_setLastMeasuredRowIndex:N,unstable_getRowHeight:S,unstable_getRowInternalSizes:I,unstable_setRowHeight:E,unstable_storeRowHeightMeasurement:B,resetRowHeights:H},_={getLastMeasuredRowIndex:O,rowHasAutoHeight:F};Zr(n,L,"public"),Zr(n,_,"private")},mpe=n=>{const o=x.useCallback((l={})=>n.current.unstable_applyPipeProcessors("exportState",{},l),[n]),i=x.useCallback(l=>{n.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:l}).callbacks.forEach(d=>{d()}),n.current.forceUpdate()},[n]);Zr(n,{exportState:o,restoreState:i},"public")},gpe=n=>{const o=x.useRef({}),i=(f,p)=>{var m;return(m=o.current[f])==null?void 0:m[p]},s=()=>{o.current={}},l=x.useCallback(({rowId:f,minFirstColumn:p,maxLastColumn:m,columns:g})=>{for(let v=p;v1&&(v+=w.colSpan-1)}},[n]),c={unstable_getCellColSpanInfo:i},d={resetColSpan:s,calculateColSpan:l};Zr(n,c,"public"),Zr(n,d,"private"),Jt(n,"columnOrderChange",s)};function vpe(n){const{apiRef:o,lookup:i,columnIndex:s,rowId:l,minFirstColumnIndex:c,maxLastColumnIndex:d,columns:f}=n,p=f.length,m=f[s],g=o.current.getRow(l),v=o.current.getRowValue(g,m),w=typeof m.colSpan=="function"?m.colSpan(v,g,m,o):m.colSpan;if(!w||w===1)return mx(i,l,s,{spannedByColSpan:!1,cellProps:{colSpan:1,width:m.computedWidth}}),{colSpan:1};let A=m.computedWidth;for(let k=1;k=c&&C{if(XB(n)){if(i[n.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${n.field} occurs two times in the grouping model:`,`- ${i[n.field].join(" > ")}`,`- ${o.join(" > ")}`].join(` -`));i[n.field]=o;return}const{groupId:s,children:l}=n;l.forEach(c=>{qT(c,[...o,s],i)})},a6=n=>{if(!n)return{};const o={};return n.forEach(i=>{qT(i,[],o)}),o},s6=(n,o,i)=>{const s=p=>o[p]??[],l=[],c=Math.max(...n.map(p=>s(p).length)),d=(p,m,g)=>V2(s(p).slice(0,g+1),s(m).slice(0,g+1)),f=(p,m)=>!!(i!=null&&i.left&&i.left.includes(p)&&!i.left.includes(m)||i!=null&&i.right&&!i.right.includes(p)&&i.right.includes(m));for(let p=0;p{const w=s(v)[p]??null;if(g.length===0)return[{columnFields:[v],groupId:w}];const A=g[g.length-1],k=A.columnFields[A.columnFields.length-1];return A.groupId!==w||!d(k,v,p)||f(k,v)?[...g,{columnFields:[v],groupId:w}]:[...g.slice(0,g.length-1),{columnFields:[...A.columnFields,v],groupId:w}]},[]);l.push(m)}return l},bpe=["groupId","children"],l8=n=>{let o={};return n.forEach(i=>{if(XB(i))return;const{groupId:s,children:l}=i,c=Qe(i,bpe);if(!s)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const d=P({},c,{groupId:s}),f=l8(l);if(f[s]!==void 0||o[s]!==void 0)throw new Error(`MUI X: The groupId ${s} is used multiple times in the columnGroupingModel.`);o=P({},o,f,{[s]:d})}),P({},o)},wpe=(n,o,i)=>{if(!o.columnGroupingModel)return n;const s=gu(i),l=Bm(i),c=l8(o.columnGroupingModel??[]),d=a6(o.columnGroupingModel??[]),f=s6(s,d,i.current.state.pinnedColumns??{}),p=l.length===0?0:Math.max(...l.map(m=>{var g;return((g=d[m])==null?void 0:g.length)??0}));return P({},n,{columnGrouping:{lookup:c,unwrappedGroupingModel:d,headerStructure:f,maxDepth:p}})},xpe=(n,o)=>{const i=x.useCallback(f=>kT(n)[f]??[],[n]),s=x.useCallback(()=>ST(n),[n]);Zr(n,{getColumnGroupPath:i,getAllGroupDetails:s},"public");const c=x.useCallback(()=>{const f=a6(o.columnGroupingModel??[]);n.current.setState(p=>{var w;const m=((w=p.columns)==null?void 0:w.orderedFields)??[],g=p.pinnedColumns??{},v=s6(m,f,g);return P({},p,{columnGrouping:P({},p.columnGrouping,{headerStructure:v})})})},[n,o.columnGroupingModel]),d=x.useCallback(f=>{var C,M;const p=((M=(C=n.current).getPinnedColumns)==null?void 0:M.call(C))??{},m=gu(n),g=Bm(n),v=l8(f??[]),w=a6(f??[]),A=s6(m,w,p),k=g.length===0?0:Math.max(...g.map(S=>{var I;return((I=w[S])==null?void 0:I.length)??0}));n.current.setState(S=>P({},S,{columnGrouping:{lookup:v,unwrappedGroupingModel:w,headerStructure:A,maxDepth:k}}))},[n]);Jt(n,"columnIndexChange",c),Jt(n,"columnsChange",()=>{d(o.columnGroupingModel)}),Jt(n,"columnVisibilityModelChange",()=>{d(o.columnGroupingModel)}),x.useEffect(()=>{d(o.columnGroupingModel)},[d,o.columnGroupingModel])};function ype(){let n,o;const i=new Promise((s,l)=>{n=s,o=l});return i.resolve=n,i.reject=o,i}function QE(n,o){if(o!==void 0&&n.changedTouches){for(let i=0;iZA(n),s=$t(n,i);return x.useEffect(()=>{o.current&&s===!1&&(o.current.resolve(),o.current=void 0)}),()=>{if(!o.current){if(i()===!1)return Promise.resolve();o.current=ype()}return o.current}}function Ipe(n,o){if(n.length<4)return n;const i=n.slice();i.sort((f,p)=>f-p);const s=i[Math.floor(i.length*.25)],l=i[Math.floor(i.length*.75)-1],c=l-s,d=c<5?5:c*o;return i.filter(f=>f>s-d&&f{const f=Pce(n.current,c.field).map(k=>k.getBoundingClientRect().width??0),p=o.includeOutliers?f:Ipe(f,o.outliersFactor);if(o.includeHeaders){const k=Mce(n.current,c.field);if(k){const C=k.querySelector(`.${we.columnHeaderTitle}`),M=k.querySelector(`.${we.columnHeaderTitleContainerContent}`),S=k.querySelector(`.${we.iconButtonContainer}`),I=k.querySelector(`.${we.menuIcon}`),E=C??M,j=window.getComputedStyle(k,null),B=parseInt(j.paddingLeft,10)+parseInt(j.paddingRight,10),O=E.scrollWidth+1+B+((S==null?void 0:S.clientWidth)??0)+((I==null?void 0:I.clientWidth)??0);p.push(O)}}const m=c.minWidth!==-1/0&&c.minWidth!==void 0,g=c.maxWidth!==1/0&&c.maxWidth!==void 0,v=m?c.minWidth:0,w=g?c.maxWidth:1/0,A=p.length===0?0:Math.max(...p);s[c.field]=Mu(A,v,w)}),l.classList.remove(we.autosizing),s}const Mpe=n=>P({},n,{columnResize:{resizingColumnField:""}});function Ppe(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const jpe=(n,o)=>{const i=ka(),s=za(n,"useGridColumnResize"),l=Pf(Ppe).current,c=x.useRef(),d=x.useRef(),f=Dl(),p=x.useRef(),m=H=>{var G,D;s.debug(`Updating width to ${H} for col ${l.colDef.field}`);const L=l.columnHeaderElement.offsetWidth,_=H-L,V=H-l.initialColWidth,$=l.initialTotalWidth+V;(D=(G=n.current.rootElementRef)==null?void 0:G.current)==null||D.style.setProperty("--DataGrid-rowWidth",`${$}px`),l.colDef.computedWidth=H,l.colDef.width=H,l.colDef.flex=0,l.columnHeaderElement.style.width=`${H}px`,l.columnHeaderElement.style.minWidth=`${H}px`,l.columnHeaderElement.style.maxWidth=`${H}px`;const z=l.headerFilterElement;z&&(z.style.width=`${H}px`,z.style.minWidth=`${H}px`,z.style.maxWidth=`${H}px`),l.groupHeaderElements.forEach(q=>{const W=q;let X;W.getAttribute("aria-colspan")==="1"?X=`${H}px`:X=`${W.offsetWidth+_}px`,W.style.width=X,W.style.minWidth=X,W.style.maxWidth=X}),l.cellElements.forEach(q=>{const W=q;let X;W.getAttribute("aria-colspan")==="1"?X=`${H}px`:X=`${W.offsetWidth+_}px`,W.style.setProperty("--width",X)});const Q=n.current.unstable_applyPipeProcessors("isColumnPinned",!1,l.colDef.field);Q===ki.LEFT&&(r2(l.fillerLeft,"width",_),l.leftPinnedCellsAfter.forEach(q=>{r2(q,"left",_)}),l.leftPinnedHeadersAfter.forEach(q=>{r2(q,"left",_)})),Q===ki.RIGHT&&(r2(l.fillerRight,"width",_),l.rightPinnedCellsBefore.forEach(q=>{r2(q,"right",_)}),l.rightPinnedHeadersBefore.forEach(q=>{r2(q,"right",_)}))},g=H=>{if(S(),l.previousMouseClickEvent){const L=l.previousMouseClickEvent,_=L.timeStamp,V=L.clientX,$=L.clientY;if(H.timeStamp-_<300&&H.clientX===V&&H.clientY===$){l.previousMouseClickEvent=void 0,n.current.publishEvent("columnResizeStop",null,H);return}}if(l.colDef){n.current.setColumnWidth(l.colDef.field,l.colDef.width),s.debug(`Updating col ${l.colDef.field} with new width: ${l.colDef.width}`);const L=Hc(n.current.state);l.groupHeaderElements.forEach(_=>{const V=yce(_),$=_,Q=`${V.reduce((G,D)=>L.columnVisibilityModel[D]!==!1?G+L.lookup[D].computedWidth:G,0)}px`;$.style.width=Q,$.style.minWidth=Q,$.style.maxWidth=Q})}f.start(0,()=>{n.current.publishEvent("columnResizeStop",null,H)})},v=(H,L,_)=>{var Q;const V=n.current.rootElementRef.current;l.initialColWidth=H.computedWidth,l.initialTotalWidth=n.current.getRootDimensions().rowWidth,l.colDef=H,l.columnHeaderElement=xce(n.current.columnHeadersContainerRef.current,H.field);const $=V.querySelector(`.${we.headerFilterRow} [data-field="${Bu(H.field)}"]`);$&&(l.headerFilterElement=$),l.groupHeaderElements=Ace((Q=n.current.columnHeadersContainerRef)==null?void 0:Q.current,H.field),l.cellElements=Cce(l.columnHeaderElement,n.current),l.fillerLeft=gE(n.current,"filler--pinnedLeft"),l.fillerRight=gE(n.current,"filler--pinnedRight");const z=n.current.unstable_applyPipeProcessors("isColumnPinned",!1,l.colDef.field);l.leftPinnedCellsAfter=z!==ki.LEFT?[]:kce(n.current,l.columnHeaderElement),l.rightPinnedCellsBefore=z!==ki.RIGHT?[]:Sce(n.current,l.columnHeaderElement),l.leftPinnedHeadersAfter=z!==ki.LEFT?[]:Ice(n.current,l.columnHeaderElement),l.rightPinnedHeadersBefore=z!==ki.RIGHT?[]:Ece(n.current,l.columnHeaderElement),d.current=kpe(L,i.direction),c.current=Ape(_,l.columnHeaderElement.getBoundingClientRect(),d.current)},w=ln(g),A=ln(H=>{if(H.buttons===0){w(H);return}let L=WE(c.current,H.clientX,l.columnHeaderElement.getBoundingClientRect(),d.current);L=Mu(L,l.colDef.minWidth,l.colDef.maxWidth),m(L);const _={element:l.columnHeaderElement,colDef:l.colDef,width:L};n.current.publishEvent("columnResize",_,H)}),k=ln(H=>{QE(H,p.current)&&g(H)}),C=ln(H=>{const L=QE(H,p.current);if(!L)return;if(H.type==="mousemove"&&H.buttons===0){k(H);return}let _=WE(c.current,L.x,l.columnHeaderElement.getBoundingClientRect(),d.current);_=Mu(_,l.colDef.minWidth,l.colDef.maxWidth),m(_);const V={element:l.columnHeaderElement,colDef:l.colDef,width:_};n.current.publishEvent("columnResize",V,H)}),M=ln(H=>{const L=b3(H.target,we["columnSeparator--resizable"]);if(!L)return;const _=H.changedTouches[0];_!=null&&(p.current=_.identifier);const V=b3(H.target,we.columnHeader),$=wce(V),z=n.current.getColumn($);s.debug(`Start Resize on col ${z.field}`),n.current.publishEvent("columnResizeStart",{field:$},H),v(z,L,_.clientX);const Q=ei(H.currentTarget);Q.addEventListener("touchmove",C),Q.addEventListener("touchend",k)}),S=x.useCallback(()=>{const H=ei(n.current.rootElementRef.current);H.body.style.removeProperty("cursor"),H.removeEventListener("mousemove",A),H.removeEventListener("mouseup",w),H.removeEventListener("touchmove",C),H.removeEventListener("touchend",k),setTimeout(()=>{H.removeEventListener("click",qE,!0)},100),l.columnHeaderElement&&(l.columnHeaderElement.style.pointerEvents="unset")},[n,l,A,w,C,k]),I=x.useCallback(({field:H})=>{n.current.setState(L=>P({},L,{columnResize:P({},L.columnResize,{resizingColumnField:H})})),n.current.forceUpdate()},[n]),E=x.useCallback(()=>{n.current.setState(H=>P({},H,{columnResize:P({},H.columnResize,{resizingColumnField:""})})),n.current.forceUpdate()},[n]),j=ln(({colDef:H},L)=>{if(L.button!==0||!L.currentTarget.classList.contains(we["columnSeparator--resizable"]))return;L.preventDefault(),s.debug(`Start Resize on col ${H.field}`),n.current.publishEvent("columnResizeStart",{field:H.field},L),v(H,L.currentTarget,L.clientX);const _=ei(n.current.rootElementRef.current);_.body.style.cursor="col-resize",l.previousMouseClickEvent=L.nativeEvent,_.addEventListener("mousemove",A),_.addEventListener("mouseup",w),_.addEventListener("click",qE,!0)}),B=ln((H,L)=>{if(o.disableAutosize||L.button!==0)return;const _=n.current.state.columns.lookup[H.field];_.resizable!==!1&&n.current.autosizeColumns(P({},o.autosizeOptions,{columns:[_.field]}))}),F=Spe(n),O=x.useRef(!1),N=x.useCallback(async H=>{var z;if(!((z=n.current.rootElementRef)==null?void 0:z.current)||O.current)return;O.current=!0;const _=Hc(n.current.state),V=P({},ice,H,{columns:(H==null?void 0:H.columns)??_.orderedFields});V.columns=V.columns.filter(Q=>_.columnVisibilityModel[Q]!==!1);const $=V.columns.map(Q=>n.current.state.columns.lookup[Q]);try{n.current.unstable_setColumnVirtualization(!1),await F();const Q=Epe(n,V,$),G=$.map(D=>P({},D,{width:Q[D.field],computedWidth:Q[D.field]}));if(V.expand){const q=_.orderedFields.map(te=>_.lookup[te]).filter(te=>_.columnVisibilityModel[te.field]!==!1).reduce((te,se)=>te+(Q[se.field]??se.computedWidth??se.width),0),X=n.current.getRootDimensions().viewportInnerSize.width-q;if(X>0){const te=X/(G.length||1);G.forEach(se=>{se.width+=te,se.computedWidth+=te})}}n.current.updateColumns(G),G.forEach((D,q)=>{if(D.width!==$[q].width){const W=D.width;n.current.publishEvent("columnWidthChange",{element:n.current.getColumnHeaderElement(D.field),colDef:D,width:W})}})}finally{n.current.unstable_setColumnVirtualization(!0),O.current=!1}},[n,F]);x.useEffect(()=>S,[S]),nb(()=>{o.autosizeOnMount&&Promise.resolve().then(()=>{n.current.autosizeColumns(o.autosizeOptions)})}),fT(n,()=>{var H;return(H=n.current.columnHeadersContainerRef)==null?void 0:H.current},"touchstart",M,{passive:!0}),Zr(n,{autosizeColumns:N},"public"),Jt(n,"columnResizeStop",E),Jt(n,"columnResizeStart",I),Jt(n,"columnSeparatorMouseDown",j),Jt(n,"columnSeparatorDoubleClick",B),Jo(n,"columnResize",o.onColumnResize),Jo(n,"columnWidthChange",o.onColumnWidthChange)};function r2(n,o,i){n&&(n.style[o]=`${parseInt(n.style[o],10)+i}px`)}const Ope=(n,o)=>{const i=Tfe(n,o);return P2e(i,o),S2e(i),Ps(D2e,i,o),Ps(I2e,i,o),Ps(Ufe,i,o),Ps(x2e,i,o),Ps(b2e,i,o),Ps(r2e,i,o),Ps(j2e,i,o),Ps(u2e,i,o),Ps(Jfe,i,o),Ps(Vfe,i,o),Ps(Mpe,i,o),Ps(l2e,i,o),Ps(ppe,i,o),Ps(zfe,i,o),Ps(wpe,i,o),Ps(w1e,i,o),i2e(i,o),E2e(i,o),Gfe(i,o),y2e(i,o),jce(i),gpe(i),xpe(i,o),w2e(i,o),n2e(i,o),d2e(i,o),t2e(i,o),O2e(i,o),Qfe(i,o),jpe(i,o),c2e(i,o),hpe(i,o),R2e(i,o),Hfe(i),qfe(i,o),Xfe(i,o),Lfe(i,o),N2e(i,o),B2e(i,o),mpe(i),x1e(i,o),i},_T=x.forwardRef(function(o,i){const s=fpe(o),l=Ope(s.apiRef,s);return b.jsx(wfe,{privateApiRef:l,props:s,children:b.jsxs(qce,P({className:s.className,style:s.style,sx:s.sx,ref:i},s.forwardedProps,{children:[b.jsx(Jde,{}),b.jsx(fce,{}),b.jsx(pce,{})]}))})}),c8=x.memo(_T);_T.propTypes={apiRef:De.shape({current:De.object.isRequired}),"aria-label":De.string,"aria-labelledby":De.string,autoHeight:De.bool,autoPageSize:De.bool,autosizeOnMount:De.bool,autosizeOptions:De.shape({columns:De.arrayOf(De.string),expand:De.bool,includeHeaders:De.bool,includeOutliers:De.bool,outliersFactor:De.number}),cellModesModel:De.object,checkboxSelection:De.bool,classes:De.object,clipboardCopyCellDelimiter:De.string,columnBufferPx:De.number,columnGroupingModel:De.arrayOf(De.object),columnHeaderHeight:De.number,columns:De.arrayOf(De.object).isRequired,columnVisibilityModel:De.object,density:De.oneOf(["comfortable","compact","standard"]),disableAutosize:De.bool,disableColumnFilter:De.bool,disableColumnMenu:De.bool,disableColumnResize:De.bool,disableColumnSelector:De.bool,disableColumnSorting:De.bool,disableDensitySelector:De.bool,disableEval:De.bool,disableMultipleRowSelection:De.bool,disableRowSelectionOnClick:De.bool,disableVirtualization:De.bool,editMode:De.oneOf(["cell","row"]),estimatedRowCount:De.number,experimentalFeatures:De.shape({warnIfFocusStateIsNotSynced:De.bool}),filterDebounceMs:De.number,filterMode:De.oneOf(["client","server"]),filterModel:De.shape({items:De.arrayOf(De.shape({field:De.string.isRequired,id:De.oneOfType([De.number,De.string]),operator:De.string.isRequired,value:De.any})).isRequired,logicOperator:De.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:De.bool,quickFilterLogicOperator:De.oneOf(["and","or"]),quickFilterValues:De.array}),forwardedProps:De.object,getCellClassName:De.func,getDetailPanelContent:De.func,getEstimatedRowHeight:De.func,getRowClassName:De.func,getRowHeight:De.func,getRowId:De.func,getRowSpacing:De.func,hideFooter:De.bool,hideFooterPagination:De.bool,hideFooterSelectedRowCount:De.bool,ignoreDiacritics:De.bool,ignoreValueFormatterDuringExport:De.oneOfType([De.shape({clipboardExport:De.bool,csvExport:De.bool}),De.bool]),initialState:De.object,isCellEditable:De.func,isRowSelectable:De.func,keepNonExistentRowsSelected:De.bool,loading:De.bool,localeText:De.object,logger:De.shape({debug:De.func.isRequired,error:De.func.isRequired,info:De.func.isRequired,warn:De.func.isRequired}),logLevel:De.oneOf(["debug","error","info","warn",!1]),nonce:De.string,onCellClick:De.func,onCellDoubleClick:De.func,onCellEditStart:De.func,onCellEditStop:De.func,onCellKeyDown:De.func,onCellModesModelChange:De.func,onClipboardCopy:De.func,onColumnHeaderClick:De.func,onColumnHeaderDoubleClick:De.func,onColumnHeaderEnter:De.func,onColumnHeaderLeave:De.func,onColumnHeaderOut:De.func,onColumnHeaderOver:De.func,onColumnOrderChange:De.func,onColumnResize:De.func,onColumnVisibilityModelChange:De.func,onColumnWidthChange:De.func,onDensityChange:De.func,onFilterModelChange:De.func,onMenuClose:De.func,onMenuOpen:De.func,onPaginationMetaChange:De.func,onPaginationModelChange:De.func,onPreferencePanelClose:De.func,onPreferencePanelOpen:De.func,onProcessRowUpdateError:De.func,onResize:De.func,onRowClick:De.func,onRowCountChange:De.func,onRowDoubleClick:De.func,onRowEditStart:De.func,onRowEditStop:De.func,onRowModesModelChange:De.func,onRowSelectionModelChange:De.func,onSortModelChange:De.func,onStateChange:De.func,pageSizeOptions:De.arrayOf(De.oneOfType([De.number,De.shape({label:De.string.isRequired,value:De.number.isRequired})]).isRequired),pagination:De.oneOf([!0]),paginationMeta:De.shape({hasNextPage:De.bool}),paginationMode:De.oneOf(["client","server"]),paginationModel:De.shape({page:De.number.isRequired,pageSize:De.number.isRequired}),processRowUpdate:De.func,resizeThrottleMs:De.number,rowBufferPx:De.number,rowCount:De.number,rowHeight:De.number,rowModesModel:De.object,rowPositionsDebounceMs:De.number,rows:De.arrayOf(De.object),rowSelection:De.bool,rowSelectionModel:De.oneOfType([De.arrayOf(De.oneOfType([De.number,De.string]).isRequired),De.number,De.string]),rowSpacingType:De.oneOf(["border","margin"]),scrollbarSize:De.number,showCellVerticalBorder:De.bool,showColumnVerticalBorder:De.bool,slotProps:De.object,slots:De.object,sortingMode:De.oneOf(["client","server"]),sortingOrder:De.arrayOf(De.oneOf(["asc","desc"])),sortModel:De.arrayOf(De.shape({field:De.string.isRequired,sort:De.oneOf(["asc","desc"])})),sx:De.oneOfType([De.arrayOf(De.oneOfType([De.func,De.object,De.bool])),De.func,De.object])};var Se=null,t=0,r=[],e={};function a(n){if(arguments.length){if(!(n instanceof Array)){n=new Array(+arguments[0]);for(var o=0,i=n.length;o=0&&r[o]!==1/0;o--);if(o<0)throw new Error("array-marker-not-found");n=r.splice(o+1,t-1-o),t=o}return n.b=n,n.o=0,n}function Bt(){for(var n=t-1;n>=0&&r[n]!==1/0;n-=2)if(r[n-1]===1/0)throw new Error("dict-malformed-stack");if(n<0)throw new Error("dict-marker-not-found");for(var o=new Map,i=n+1;i=0;s--)n[o+s]=i[s];else if(n instanceof Array)for(var c=n.b,d=o+n.o,f=i.b,p=i.o,s=0,l=i.length;s0&&r[--t]!==1/0;);}function fo(){for(var n=t-1;n>=0&&r[n]!==1/0;n--);return t-n-1}function oe(n){for(var o=0,i=n.length,s=n.b,l=n.o;oo}function Hs(n,o){return n instanceof Uint8Array&&(n=Js(n)),o instanceof Uint8Array&&(o=Js(o)),n>=o}function vu(n,o){return typeof n=="boolean"?n&&o:n&o}function u8(n,o){return typeof n=="boolean"?n||o:n|o}function Zo(n,o){return typeof n=="boolean"?!n&&o||n&&!o:n^o}function dr(n){return typeof n=="boolean"?!n:~n}var h=function(n){return function(o){return Number.isInteger(o)?o:(n[0]=o,n[0])}}(new Float32Array(1));function ne(){var n=r[--t],o=r[--t];throw new Error(Js(o)+": "+Js(n))}function Ot(){var n=r[--t],o=r[t-1],i=o instanceof Map;for(var s in n){var l;if(i){if(!o.has(s))continue;l=o.get(s)}else{if(!o.hasOwnProperty(s))continue;l=o[s]}var c=n[s],d=typeof c;if(c==null||d=="number"){if(!isFinite(+l))throw new Error("bwipp.invalidOptionType: "+s+": not a realtype: "+l);typeof l=="string"&&(l=+l,i?o.set(s,l):o[s]=l)}else if(d=="boolean"){if(l!==!0&&l!==!1){if(l==null||(l|0)===l)l=!!l;else if(l=="true")l=!0;else if(l=="false")l=!1;else throw new Error("bwipp.invalidOptionType: "+s+": not a booleantype: "+l);i?o.set(s,l):o[s]=l}}else if(d=="string"||c instanceof Uint8Array){if(typeof l=="number")l=""+l,i?o.set(s,l):o[s]=l;else if(typeof l!="string"&&!(l instanceof Uint8Array))throw new Error("bwipp.invalidOptionType: "+s+": not a stringtype: "+l)}n[s]=l}}function xr(n){n.$ctx||(n.$ctx={});var o=Object.getPrototypeOf(e);Object.setPrototypeOf(n.$ctx,o),Object.setPrototypeOf(e,n.$ctx)}function Bo(){e=Object.create(e),xr(Bo),e.fncvals=r[--t],e.barcode=r[--t];var n="parse";e[n]=u(e.fncvals,n),delete e.fncvals[n];var o="parsefnc";e[o]=u(e.fncvals,o),delete e.fncvals[o];var i="parseonly",s=u(e.fncvals,i)!==void 0;e[i]=s,delete e.fncvals[i];var l="eci",c=u(e.fncvals,l)!==void 0;if(e[l]=c,delete e.fncvals[l],!Bo.__225__){e=Object.create(e),r[t++]=1/0;var d=a(["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","","","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US"]);r[t++]=0;for(var f=0,p=d.length;f=3){var j=r[--t],B=T(j,0,3),F=e.ctrl,O=u(F,B)!==void 0;if(r[t++]=j,r[t++]=F,r[t++]=B,O){e.j=h(e.j-1);var N=r[--t];y(e.msg,e.j,u(r[--t],N)),e.j=h(e.j+1);var H=r[--t];r[t++]=T(H,3,H.length-3);break}else t-=2}var L=r[--t];if(r[t++]=L,L.length>=2){var _=r[--t],V=T(_,0,2),$=e.ctrl,z=u($,V)!==void 0;if(r[t++]=_,r[t++]=$,r[t++]=V,z){e.j=h(e.j-1);var Q=r[--t];y(e.msg,e.j,u(r[--t],Q)),e.j=h(e.j+1);var G=r[--t];r[t++]=T(G,2,G.length-2);break}else t-=2}var D=r[--t];if(r[t++]=D,D.length>=3){var q=r[--t],W=T(q,0,3);r[t++]=q,r[t++]=!0;for(var X=0,te=W.length;X57)&&(t--,r[t++]=!1)}if(r[--t]){var de=r[--t],ee=ft(T(de,0,3));r[t++]=de,r[t++]=ee,ee>255&&(t-=2,r[t++]="bwipp.invalidOrdinal#282",r[t++]="Ordinal must be 000 to 255",ne()),e.j=h(e.j-1),y(e.msg,e.j,r[--t]),e.j=h(e.j+1);var fe=r[--t];r[t++]=T(fe,3,fe.length-3)}}}if(u8(e.parseonly,dr(e.parsefnc))||u(e.msg,h(e.j-1))!=94)break;e.j=h(e.j-1);var he=r[--t];r[t++]=he,he.length<3&&(t--,r[t++]="bwipp.truncatedFNC#301",r[t++]="Function character truncated",ne());var Ie=r[--t];if(r[t++]=Ie,u(Ie,0)==94){y(e.msg,e.j,94),e.j=h(e.j+1);var ve=r[--t];r[t++]=T(ve,1,ve.length-1);break}var be=r[--t];if(r[t++]=be,ae(T(be,0,3),"ECI")&&e.eci){var ke=r[--t];r[t++]=ke,ke.length<9&&(t--,r[t++]="bwipp.truncatedECI#312",r[t++]="ECI truncated",ne());var ze=r[--t],Ge=T(ze,3,6);r[t++]=ze,r[t++]=Ge;for(var Ve=0,at=Ge.length;Ve57)&&(t-=2,r[t++]="bwipp.invalidECI#318",r[t++]="ECI must be 000000 to 999999",ne())}var ue=r[--t];r[t++]=0,je(ue,function(){var Je=r[--t],It=r[--t];r[t++]=h(It-h(Je-48))*10}),y(e.msg,e.j,~~(r[--t]/10)-1e6),e.j=h(e.j+1);var Le=r[--t];r[t++]=T(Le,9,Le.length-9);break}var $e=r[--t];r[t++]=$e,$e.length<4&&(t--,r[t++]="bwipp.truncatedFNC#329",r[t++]="Function character truncated",ne());var bt=r[--t],ot=T(bt,0,4),st=u(e.fncvals,ot)!==void 0;if(r[t++]=bt,r[t++]=ot,!st){var Ze=r[--t],dt=pe(Ze.length+28);K(dt,28,Ze),K(dt,0,"Unknown function character: ");var Xe=r[--t];r[t++]=dt,r[t++]=Xe,t--;var Pt=r[--t];r[t++]="bwipp.unknownFNC#335",r[t++]=Pt,ne()}y(e.msg,e.j,u(e.fncvals,r[--t])),e.j=h(e.j+1);var mt=r[--t];r[t++]=T(mt,4,mt.length-4);break}}else break}if(dr(e.parseonly))r[t++]=T(e.msg,0,e.j);else{r[t++]=pe(e.j);for(var pt=0,Te=h(e.j-1);pt<=Te;pt+=1){var Re=r[--t];y(Re,pt,u(e.msg,pt)),r[t++]=Re}}e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function Jr(){if(e=Object.create(e),xr(Jr),!Jr.__2469__){e=Object.create(e);var n=new Map([["cset","N"],["min",18],["max",18],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),o=a([n]),i=a([]),s=new Map([["parts",o],["dlpkey",i]]),l=a(["lintcsum","lintkey"]),c=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",l]]),d=a([c]),f=a(["255","37"]),p=a(["22","10","21"]),m=a(["235"]),g=a([p,m]),v=new Map([["parts",d],["ex",f],["dlpkey",g]]),w=a(["lintcsum","lintkey"]),A=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",w]]),k=a([A]),C=a(["01","03"]),M=a(["37"]),S=a([M]),I=a([S]),E=new Map([["parts",k],["ex",C],["req",I]]),j=a(["lintcsum","lintkey"]),B=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",j]]),F=a([B]),O=new Map([["parts",F],["ex",a(["01","02","37"])],["dlattr",!1]]),N=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),H=new Map([["parts",a([N])],["req",a([a([a(["01"]),a(["02"]),a(["03"]),a(["8006"]),a(["8026"])])])]]),L=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),_=new Map([["parts",a([L])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),V=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),$=new Map([["parts",a([V])],["req",a([a([a(["8020"])])])]]),z=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),Q=new Map([["parts",a([z])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),G=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),D=new Map([["parts",a([G])],["req",a([a([a(["01"]),a(["02"]),a(["255"]),a(["8006"]),a(["8026"])])])]]),q=new Map([["cset","N"],["min",2],["max",2],["opt",!1],["linters",a([])]]),W=new Map([["parts",a([q])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),X=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),te=new Map([["parts",a([X])],["ex",a(["235"])],["req",a([a([a(["01"]),a(["03"]),a(["8006"])])])],["dlattr",!1]]),se=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),de=new Map([["parts",a([se])],["req",a([a([a(["01"])])])],["dlattr",!1]]),ee=new Map([["cset","X"],["min",1],["max",28],["opt",!1],["linters",a([])]]),fe=new Map([["parts",a([ee])],["req",a([a([a(["01"])])])],["dlattr",!1]]),he=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),Ie=new Map([["parts",a([he])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),ve=new Map([["cset","N"],["min",1],["max",6],["opt",!1],["linters",a([])]]),be=a([a([a(["01"]),a(["02"]),a(["03"]),a(["8006"]),a(["8026"])])]),ke=new Map([["parts",a([ve])],["req",be]]),ze=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),Ge=new Map([["parts",a([ze])],["req",a([a([a(["01"])])])]]),Ve=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),at=new Map([["parts",a([Ve])],["req",a([a([a(["01"]),a(["8006"])]),a([a(["21"])])])]]),We=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),ue=new Map([["parts",a([We])],["req",a([a([a(["01"]),a(["8006"])])])]]),Le=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),$e=new Map([["cset","X"],["min",1],["max",17],["opt",!0],["linters",a([])]]),bt=new Map([["parts",a([Le,$e])],["dlpkey",a([])]]),ot=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),st=new Map([["parts",a([ot])],["req",a([a([a(["414"])])])],["dlattr",!1]]),Ze=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),dt=new Map([["cset","N"],["min",1],["max",12],["opt",!0],["linters",a([])]]),Xe=new Map([["parts",a([Ze,dt])],["ex",a(["01","02","415","8006","8020","8026"])],["dlpkey",a([])]]),Pt=new Map([["cset","N"],["min",1],["max",8],["opt",!1],["linters",a([])]]),mt=new Map([["parts",a([Pt])],["req",a([a([a(["01"]),a(["02"])])])]]),pt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Te=new Map([["parts",a([pt])],["ex",a(["310n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Re=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Je=new Map([["parts",a([Re])],["ex",a(["311n"])],["req",a([a([a(["01"]),a(["02"])])])]]),It=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Nt=new Map([["parts",a([It])],["ex",a(["312n"])],["req",a([a([a(["01"]),a(["02"])])])]]),ht=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),xt=new Map([["parts",a([ht])],["ex",a(["313n"])],["req",a([a([a(["01"]),a(["02"])])])]]),tt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Y=new Map([["parts",a([tt])],["ex",a(["314n"])],["req",a([a([a(["01"]),a(["02"])])])]]),re=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ie=new Map([["parts",a([re])],["ex",a(["315n"])],["req",a([a([a(["01"]),a(["02"])])])]]),le=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ge=new Map([["parts",a([le])],["ex",a(["316n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Me=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),me=new Map([["parts",a([Me])],["ex",a(["320n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Ee=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ce=new Map([["parts",a([Ee])],["ex",a(["321n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Pe=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),He=new Map([["parts",a([Pe])],["ex",a(["322n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Ne=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ye=new Map([["parts",a([Ne])],["ex",a(["323n"])],["req",a([a([a(["01"]),a(["02"])])])]]),rt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Be=new Map([["parts",a([rt])],["ex",a(["324n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Ae=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ue=new Map([["parts",a([Ae])],["ex",a(["325n"])],["req",a([a([a(["01"]),a(["02"])])])]]),qe=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Fe=new Map([["parts",a([qe])],["ex",a(["326n"])],["req",a([a([a(["01"]),a(["02"])])])]]),lt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),gt=new Map([["parts",a([lt])],["ex",a(["327n"])],["req",a([a([a(["01"]),a(["02"])])])]]),At=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),St=new Map([["parts",a([At])],["ex",a(["328n"])],["req",a([a([a(["01"]),a(["02"])])])]]),yt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ct=new Map([["parts",a([yt])],["ex",a(["329n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Oe=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ce=new Map([["parts",a([Oe])],["ex",a(["330n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Ye=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),et=new Map([["parts",a([Ye])],["ex",a(["331n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Et=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ut=new Map([["parts",a([Et])],["ex",a(["332n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Dt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),jt=new Map([["parts",a([Dt])],["ex",a(["333n"])],["req",a([a([a(["00"]),a(["01"])])])]]),nr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ft=new Map([["parts",a([nr])],["ex",a(["334n"])],["req",a([a([a(["00"]),a(["01"])])])]]),cr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),sr=new Map([["parts",a([cr])],["ex",a(["335n"])],["req",a([a([a(["00"]),a(["01"])])])]]),lr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),yr=new Map([["parts",a([lr])],["ex",a(["336n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Qr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Er=new Map([["parts",a([Qr])],["ex",a(["337n"])],["req",a([a([a(["01"])])])]]),Pr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Wr=new Map([["parts",a([Pr])],["ex",a(["340n"])],["req",a([a([a(["00"]),a(["01"])])])]]),cn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Cr=new Map([["parts",a([cn])],["ex",a(["341n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Hr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),un=new Map([["parts",a([Hr])],["ex",a(["342n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Pn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Br=new Map([["parts",a([Pn])],["ex",a(["343n"])],["req",a([a([a(["00"]),a(["01"])])])]]),vn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),bn=new Map([["parts",a([vn])],["ex",a(["344n"])],["req",a([a([a(["00"]),a(["01"])])])]]),zt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ar=new Map([["parts",a([zt])],["ex",a(["345n"])],["req",a([a([a(["00"]),a(["01"])])])]]),hr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ar=new Map([["parts",a([hr])],["ex",a(["346n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Yr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Xt=new Map([["parts",a([Yr])],["ex",a(["347n"])],["req",a([a([a(["00"]),a(["01"])])])]]),en=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),kr=new Map([["parts",a([en])],["ex",a(["348n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Kr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),pr=new Map([["parts",a([Kr])],["ex",a(["349n"])],["req",a([a([a(["00"]),a(["01"])])])]]),dn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),er=new Map([["parts",a([dn])],["ex",a(["350n"])],["req",a([a([a(["01"]),a(["02"])])])]]),jn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),qr=new Map([["parts",a([jn])],["ex",a(["351n"])],["req",a([a([a(["01"]),a(["02"])])])]]),ho=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Rr=new Map([["parts",a([ho])],["ex",a(["352n"])],["req",a([a([a(["01"]),a(["02"])])])]]),_n=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Nr=new Map([["parts",a([_n])],["ex",a(["353n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Eo=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),nn=new Map([["parts",a([Eo])],["ex",a(["354n"])],["req",a([a([a(["00"]),a(["01"])])])]]),No=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),wn=new Map([["parts",a([No])],["ex",a(["355n"])],["req",a([a([a(["00"]),a(["01"])])])]]),ti=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),oo=new Map([["parts",a([ti])],["ex",a(["356n"])],["req",a([a([a(["01"]),a(["02"])])])]]),ri=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Jn=new Map([["parts",a([ri])],["ex",a(["357n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Ei=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),mo=new Map([["parts",a([Ei])],["ex",a(["360n"])],["req",a([a([a(["01"]),a(["02"])])])]]),pi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Mo=new Map([["parts",a([pi])],["ex",a(["361n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Gr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),go=new Map([["parts",a([Gr])],["ex",a(["362n"])],["req",a([a([a(["00"]),a(["01"])])])]]),ni=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Mi=new Map([["parts",a([ni])],["ex",a(["363n"])],["req",a([a([a(["00"]),a(["01"])])])]]),$o=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Pi=new Map([["parts",a([$o])],["ex",a(["364n"])],["req",a([a([a(["01"]),a(["02"])])])]]),ts=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),hi=new Map([["parts",a([ts])],["ex",a(["365n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Vi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ji=new Map([["parts",a([Vi])],["ex",a(["366n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Sa=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),mi=new Map([["parts",a([Sa])],["ex",a(["367n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Ia=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Di=new Map([["parts",a([Ia])],["ex",a(["368n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Ki=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Vo=new Map([["parts",a([Ki])],["ex",a(["369n"])],["req",a([a([a(["00"]),a(["01"])])])]]),ca=new Map([["cset","N"],["min",1],["max",8],["opt",!1],["linters",a([])]]),Xi=new Map([["parts",a([ca])],["req",a([a([a(["00"])]),a([a(["02"]),a(["8026"])])])]]),Ji=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),Po=new Map([["parts",a([Ji])],["ex",a(["390n","391n","394n","8111"])],["req",a([a([a(["255"]),a(["8020"])])])]]),Zi=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso4217"])]]),ea=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),Qo=new Map([["parts",a([Zi,ea])],["ex",a(["391n"])],["req",a([a([a(["8020"])])])]]),ua=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),Ao=new Map([["parts",a([ua])],["ex",a(["392n","393n"])],["req",a([a([a(["01"])]),a([a(["30"]),a(["31nn"]),a(["32nn"]),a(["35nn"]),a(["36nn"])])])]]),Sr=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso4217"])]]),vo=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),Ln=new Map([["parts",a([Sr,vo])],["ex",a(["393n"])],["req",a([a([a(["30"]),a(["31nn"]),a(["32nn"]),a(["35nn"]),a(["36nn"])])])]]),Ni=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a([])]]),jo=new Map([["parts",a([Ni])],["ex",a(["394n","8111"])],["req",a([a([a(["255"])])])]]),$i=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),io=new Map([["parts",a([$i])],["ex",a(["392n","393n","395n","8005"])],["req",a([a([a(["30"]),a(["31nn"]),a(["32nn"]),a(["35nn"]),a(["36nn"])])])]]),Ha=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),Qi=new Map([["parts",a([Ha])]]),ta=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),rs=new Map([["parts",a([ta])],["dlpkey",a([])]]),Ua=new Map([["cset","N"],["min",17],["max",17],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),ns=new Map([["parts",a([Ua])],["dlpkey",a([])]]),ms=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),Wi=new Map([["parts",a([ms])],["req",a([a([a(["00"])])])]]),Ds=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),da=new Map([["parts",a([Ds])]]),gs=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Ht=new Map([["parts",a([gs])],["dlpkey",a([a(["254"]),a(["7040"])])]]),tr=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Tr=new Map([["parts",a([tr])],["req",a([a([a(["8020"])])])],["dlpkey",a([a(["8020"])])]]),on=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Xr=new Map([["parts",a([on])]]),fn=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Vr=new Map([["parts",a([fn])],["dlpkey",a([a(["7040"])])]]),Yn=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),xn=new Map([["parts",a([Yn])],["ex",a(["421"])]]),On=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),pn=new Map([["cset","X"],["min",1],["max",9],["opt",!1],["linters",a([])]]),yn=new Map([["parts",a([On,pn])],["ex",a(["4307"])]]),zn=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),Fn=new Map([["parts",a([zn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),tn=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a(["lintiso3166list"])]]),An=new Map([["parts",a([tn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"])])])]]),rn=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),hn=new Map([["parts",a([rn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"])])])]]),Qn=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a(["lintiso3166list"])]]),ao=new Map([["parts",a([Qn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"])])])]]),Co=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),gi=new Map([["parts",a([Co])],["req",a([a([a(["01"]),a(["02"])])])]]),Wo=new Map([["cset","X"],["min",1],["max",3],["opt",!1],["linters",a([])]]),vi=new Map([["parts",a([Wo])],["req",a([a([a(["01"]),a(["02"])]),a([a(["422"])])])]]),qo=new Map([["cset","X"],["min",1],["max",35],["opt",!1],["linters",a(["lintpcenc"])]]),bi=new Map([["parts",a([qo])],["req",a([a([a(["00"])])])]]),Oi=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),_o=new Map([["parts",a([Oi])],["req",a([a([a(["00"])])])]]),oi=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),Yo=new Map([["parts",a([oi])],["req",a([a([a(["4302"])])])]]),so=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),ra=new Map([["parts",a([so])],["req",a([a([a(["00"])])])]]),mr=new Map([["cset","X"],["min",2],["max",2],["opt",!1],["linters",a(["lintiso3166alpha2"])]]),Cn=new Map([["parts",a([mr])],["req",a([a([a(["00"])])])]]),mn=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),to=new Map([["parts",a([mn])],["req",a([a([a(["00"])])])]]),Wn=new Map([["cset","N"],["min",10],["max",10],["opt",!1],["linters",a(["lintlatitude"])]]),Lo=new Map([["cset","N"],["min",10],["max",10],["opt",!1],["linters",a(["lintlongitude"])]]),Ri=new Map([["parts",a([Wn,Lo])],["req",a([a([a(["00"])])])]]),fa=new Map([["cset","X"],["min",1],["max",35],["opt",!1],["linters",a(["lintpcenc"])]]),ii=new Map([["parts",a([fa])],["req",a([a([a(["00"])])])]]),vs=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),os=new Map([["parts",a([vs])],["req",a([a([a(["00"])])])]]),Ga=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),Va=new Map([["parts",a([Ga])],["req",a([a([a(["4312"])])])]]),Ea=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),Ma=new Map([["parts",a([Ea])],["req",a([a([a(["00"])])])]]),bs=new Map([["cset","X"],["min",2],["max",2],["opt",!1],["linters",a(["lintiso3166alpha2"])]]),Ns=new Map([["parts",a([bs])],["req",a([a([a(["00"])])])]]),ws=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),Qa=new Map([["parts",a([ws])],["req",a([a([a(["00"])])])]]),Wa=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),qa=new Map([["parts",a([Wa])],["req",a([a([a(["00"])])])]]),tl=new Map([["cset","X"],["min",1],["max",35],["opt",!1],["linters",a(["lintpcenc"])]]),$s=new Map([["parts",a([tl])],["req",a([a([a(["00"])])])]]),xs=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintyesno"])]]),rl=new Map([["parts",a([xs])],["req",a([a([a(["00"])])])]]),T1=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),F1=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["linthhmm"])]]),fc=new Map([["parts",a([T1,F1])],["req",a([a([a(["00"])])])]]),Yl=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),D1=new Map([["parts",a([Yl])],["req",a([a([a(["00"])])])]]),Al=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Mt=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),Wt=new Map([["parts",a([Al,Mt])],["ex",a(["4331"])],["req",a([a([a(["00"])])])]]),wt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ut=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),vr=new Map([["parts",a([wt,Ut])],["ex",a(["4330"])],["req",a([a([a(["00"])])])]]),br=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Rn=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),Dn=new Map([["parts",a([br,Rn])],["ex",a(["4333"])],["req",a([a([a(["00"])])])]]),ko=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),zo=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),Li=new Map([["parts",a([ko,zo])],["ex",a(["4332"])],["req",a([a([a(["00"])])])]]),pa=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a([])]]),na=new Map([["parts",a([pa])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),ha=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),ys=new Map([["parts",a([ha])],["req",a([a([a(["01"]),a(["02"])])])]]),_a=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),pc=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["linthhmm"])]]),N1=new Map([["parts",a([_a,pc])],["req",a([a([a(["01"]),a(["02"])])])]]),qt=new Map([["cset","N"],["min",1],["max",4],["opt",!1],["linters",a([])]]),ur=new Map([["parts",a([qt])],["req",a([a([a(["01"])]),a([a(["10"])])])]]),kn=new Map([["cset","X"],["min",1],["max",12],["opt",!1],["linters",a([])]]),Sn=new Map([["parts",a([kn])],["req",a([a([a(["01"]),a(["02"])])])]]),wi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),xi=new Map([["parts",a([wi])],["req",a([a([a(["01"]),a(["02"])])])]]),Ho=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),Pa=new Map([["cset","N"],["min",6],["max",6],["opt",!0],["linters",a(["lintyymmdd"])]]),ja=new Map([["parts",a([Ho,Pa])],["req",a([a([a(["01"]),a(["02"])])])]]),As=new Map([["cset","X"],["min",1],["max",3],["opt",!1],["linters",a([])]]),Ls=new Map([["parts",a([As])],["req",a([a([a(["01"]),a(["02"])])])]]),is=new Map([["cset","X"],["min",1],["max",10],["opt",!1],["linters",a([])]]),ma=new Map([["parts",a([is])],["req",a([a([a(["01"]),a(["02"])])])]]),nl=new Map([["cset","X"],["min",1],["max",2],["opt",!1],["linters",a([])]]),lo=new Map([["parts",a([nl])],["req",a([a([a(["01"]),a(["02"])])])]]),Cl=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),$1=new Map([["cset","N"],["min",4],["max",4],["opt",!0],["linters",a(["linthhmm"])]]),Kl=new Map([["parts",a([Cl,$1])],["req",a([a([a(["01"]),a(["02"])])])]]),Xl=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),ol=new Map([["parts",a([Xl])],["req",a([a([a(["01"]),a(["8006"])]),a([a(["416"])])])]]),qc=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),hc=new Map([["parts",a([qc])],["req",a([a([a(["01"]),a(["8006"])])])]]),kl=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),Jl=new Map([["parts",a([kl])],["req",a([a([a(["7021"])])])]]),mc=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),Sl=new Map([["parts",a([mc])]]),Z=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166999"])]]),R=new Map([["cset","X"],["min",1],["max",27],["opt",!1],["linters",a([])]]),U=new Map([["parts",a([Z,R])],["req",a([a([a(["01"]),a(["02"])])])]]),J=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a([])]]),xe=new Map([["cset","X"],["min",1],["max",1],["opt",!1],["linters",a([])]]),ct=new Map([["cset","X"],["min",1],["max",1],["opt",!1],["linters",a([])]]),Gt=new Map([["cset","X"],["min",1],["max",1],["opt",!1],["linters",a(["lintimporteridx"])]]),$r=new Map([["parts",a([J,xe,ct,Gt])],["dlattr",!1]]),jr=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),ro=new Map([["parts",a([jr])],["req",a([a([a(["01"])])])]]),L1=new Map([["cset","X"],["min",2],["max",2],["opt",!1],["linters",a([])]]),zf=new Map([["cset","X"],["min",1],["max",28],["opt",!1],["linters",a([])]]),Cs=new Map([["parts",a([L1,zf])],["req",a([a([a(["01"]),a(["8004"])])])]]),Lp=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),zp=new Map([["parts",a([Lp])],["req",a([a([a(["01"]),a(["8006"])])])]]),c4=new Map([["cset","N"],["min",2],["max",2],["opt",!1],["linters",a(["lintmediatype"])]]),u4=new Map([["parts",a([c4])],["req",a([a([a(["8017"]),a(["8018"])])])]]),d4=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a([])]]),f4=new Map([["parts",a([d4])],["req",a([a([a(["8017"]),a(["8018"])])])]]),p4=new Map([["cset","N"],["min",8],["max",8],["opt",!1],["linters",a(["lintyyyymmdd"])]]),h4=new Map([["parts",a([p4])],["ex",a(["7251"])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),m4=new Map([["cset","N"],["min",8],["max",8],["opt",!1],["linters",a(["lintyyyymmdd"])]]),g4=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["linthhmm"])]]),Hm=new Map([["parts",a([m4,g4])],["ex",a(["7250"])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),Hp=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintiso5218"])]]),v4=new Map([["parts",a([Hp])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),b4=new Map([["cset","X"],["min",1],["max",40],["opt",!1],["linters",a(["lintpcenc"])]]),Up=new Map([["parts",a([b4])],["ex",a(["7256","7259"])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),Gp=new Map([["cset","X"],["min",1],["max",10],["opt",!1],["linters",a([])]]),w4=new Map([["parts",a([Gp])],["ex",a(["7256","7259"])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),x4=new Map([["cset","X"],["min",1],["max",90],["opt",!1],["linters",a(["lintpcenc"])]]),Um=new Map([["parts",a([x4])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),Vp=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),y4=new Map([["parts",a([Vp])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),A4=new Map([["cset","X"],["min",3],["max",3],["opt",!1],["linters",a(["lintposinseqslash"])]]),Gm=new Map([["parts",a([A4])],["req",a([a([a(["8018","7259"])])])],["dlattr",!1]]),Qp=new Map([["cset","X"],["min",1],["max",40],["opt",!1],["linters",a(["lintpcenc"])]]),C4=new Map([["parts",a([Qp])],["ex",a(["7256"])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),k4=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["lintnonzero"])]]),Vm=new Map([["cset","N"],["min",5],["max",5],["opt",!1],["linters",a(["lintnonzero"])]]),Wp=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintnonzero"])]]),S4=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintwinding"])]]),I4=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a([])]]),Qm=new Map([["parts",a([k4,Vm,Wp,S4,I4])],["req",a([a([a(["01"])])])]]),qp=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),E4=new Map([["parts",a([qp])]]),M4=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintzero"])]]),nD=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),oD=new Map([["cset","X"],["min",1],["max",16],["opt",!0],["linters",a([])]]),iD=new Map([["parts",a([M4,nD,oD])],["dlpkey",a([])]]),aD=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),sD=new Map([["parts",a([aD])],["dlpkey",a([a(["7040"])])]]),lD=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),cD=new Map([["parts",a([lD])],["req",a([a([a(["01"]),a(["02"])])])]]),uD=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",a(["lintcsum"])]]),dD=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["lintpieceoftotal"])]]),fD=new Map([["parts",a([uD,dD])],["ex",a(["01","37"])],["dlpkey",a([a(["22","10","21"])])]]),pD=new Map([["cset","X"],["min",1],["max",34],["opt",!1],["linters",a(["lintiban"])]]),hD=new Map([["parts",a([pD])],["req",a([a([a(["415"])])])]]),mD=new Map([["cset","N"],["min",8],["max",8],["opt",!1],["linters",a(["lintyymmddhh"])]]),gD=new Map([["cset","N"],["min",1],["max",4],["opt",!0],["linters",a(["lintmmoptss"])]]),vD=new Map([["parts",a([mD,gD])],["req",a([a([a(["01"]),a(["02"])])])]]),bD=new Map([["cset","X"],["min",1],["max",50],["opt",!1],["linters",a([])]]),wD=new Map([["parts",a([bD])],["req",a([a([a(["00"]),a(["01"])])])]]),xD=new Map([["cset","Y"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),yD=new Map([["parts",a([xD])],["dlpkey",a([a(["8011"])])]]),AD=new Map([["cset","N"],["min",1],["max",12],["opt",!1],["linters",a(["lintnozeroprefix"])]]),CD=new Map([["parts",a([AD])],["req",a([a([a(["8010"])])])],["dlattr",!1]]),kD=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),SD=new Map([["parts",a([kD])],["req",a([a([a(["01"]),a(["8006"])])])]]),ID=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a(["lintcsumalpha","lintkey"])]]),ED=new Map([["parts",a([ID])],["dlpkey",a([])]]),MD=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a(["lintcsumalpha","lintkey","linthasnondigit"])]]),PD=new Map([["parts",a([MD])],["req",a([a([a(["01"])])])],["dlattr",!1]]),jD=new Map([["cset","N"],["min",18],["max",18],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),OD=new Map([["parts",a([jD])],["ex",a(["8018"])],["dlpkey",a([a(["8019"])])]]),RD=new Map([["cset","N"],["min",18],["max",18],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),BD=new Map([["parts",a([RD])],["ex",a(["8017"])],["dlpkey",a([a(["8019"])])]]),TD=new Map([["cset","N"],["min",1],["max",10],["opt",!1],["linters",a([])]]),FD=new Map([["parts",a([TD])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),DD=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a([])]]),ND=new Map([["parts",a([DD])],["req",a([a([a(["415"])])])]]),$D=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",a(["lintcsum"])]]),LD=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["lintpieceoftotal"])]]),zD=new Map([["parts",a([$D,LD])],["ex",a(["02","8006"])],["req",a([a([a(["37"])])])]]),HD=new Map([["cset","Z"],["min",1],["max",90],["opt",!1],["linters",a([])]]),UD=new Map([["parts",a([HD])],["req",a([a([a(["00"]),a(["01","21"]),a(["253"]),a(["255"]),a(["8003"]),a(["8004"]),a(["8006","21"]),a(["8010","8011"]),a(["8017"]),a(["8018"])])])]]),GD=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintcouponcode"])]]),VD=new Map([["parts",a([GD])]]),QD=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a([])]]),WD=new Map([["parts",a([QD])],["req",a([a([a(["255"])])])]]),qD=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintcouponposoffer"])]]),_D=new Map([["parts",a([qD])]]),YD=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a([])]]),KD=new Map([["parts",a([YD])],["req",a([a([a(["01"])])])],["dlattr",!1]]),XD=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),JD=new Map([["parts",a([XD])]]),ZD=new Map([["cset","X"],["min",1],["max",90],["opt",!1],["linters",a([])]]),_c=new Map([["parts",a([ZD])]]),eN=new Map([["00",s],["01",v],["02",E],["03",O],["10",H],["11",_],["12",$],["13",Q],["15",Q],["16",Q],["17",D],["20",W],["21",te],["22",de],["235",fe],["240",Ie],["241",Ie],["242",ke],["243",Ge],["250",at],["251",ue],["253",bt],["254",st],["255",Xe],["30",mt],["3100",Te],["3101",Te],["3102",Te],["3103",Te],["3104",Te],["3105",Te],["3110",Je],["3111",Je],["3112",Je],["3113",Je],["3114",Je],["3115",Je],["3120",Nt],["3121",Nt],["3122",Nt],["3123",Nt],["3124",Nt],["3125",Nt],["3130",xt],["3131",xt],["3132",xt],["3133",xt],["3134",xt],["3135",xt],["3140",Y],["3141",Y],["3142",Y],["3143",Y],["3144",Y],["3145",Y],["3150",ie],["3151",ie],["3152",ie],["3153",ie],["3154",ie],["3155",ie],["3160",ge],["3161",ge],["3162",ge],["3163",ge],["3164",ge],["3165",ge],["3200",me],["3201",me],["3202",me],["3203",me],["3204",me],["3205",me],["3210",ce],["3211",ce],["3212",ce],["3213",ce],["3214",ce],["3215",ce],["3220",He],["3221",He],["3222",He],["3223",He],["3224",He],["3225",He],["3230",ye],["3231",ye],["3232",ye],["3233",ye],["3234",ye],["3235",ye],["3240",Be],["3241",Be],["3242",Be],["3243",Be],["3244",Be],["3245",Be],["3250",Ue],["3251",Ue],["3252",Ue],["3253",Ue],["3254",Ue],["3255",Ue],["3260",Fe],["3261",Fe],["3262",Fe],["3263",Fe],["3264",Fe],["3265",Fe],["3270",gt],["3271",gt],["3272",gt],["3273",gt],["3274",gt],["3275",gt],["3280",St],["3281",St],["3282",St],["3283",St],["3284",St],["3285",St],["3290",Ct],["3291",Ct],["3292",Ct],["3293",Ct],["3294",Ct],["3295",Ct],["3300",Ce],["3301",Ce],["3302",Ce],["3303",Ce],["3304",Ce],["3305",Ce],["3310",et],["3311",et],["3312",et],["3313",et],["3314",et],["3315",et],["3320",ut],["3321",ut],["3322",ut],["3323",ut],["3324",ut],["3325",ut],["3330",jt],["3331",jt],["3332",jt],["3333",jt],["3334",jt],["3335",jt],["3340",Ft],["3341",Ft],["3342",Ft],["3343",Ft],["3344",Ft],["3345",Ft],["3350",sr],["3351",sr],["3352",sr],["3353",sr],["3354",sr],["3355",sr],["3360",yr],["3361",yr],["3362",yr],["3363",yr],["3364",yr],["3365",yr],["3370",Er],["3371",Er],["3372",Er],["3373",Er],["3374",Er],["3375",Er],["3400",Wr],["3401",Wr],["3402",Wr],["3403",Wr],["3404",Wr],["3405",Wr],["3410",Cr],["3411",Cr],["3412",Cr],["3413",Cr],["3414",Cr],["3415",Cr],["3420",un],["3421",un],["3422",un],["3423",un],["3424",un],["3425",un],["3430",Br],["3431",Br],["3432",Br],["3433",Br],["3434",Br],["3435",Br],["3440",bn],["3441",bn],["3442",bn],["3443",bn],["3444",bn],["3445",bn],["3450",ar],["3451",ar],["3452",ar],["3453",ar],["3454",ar],["3455",ar],["3460",Ar],["3461",Ar],["3462",Ar],["3463",Ar],["3464",Ar],["3465",Ar],["3470",Xt],["3471",Xt],["3472",Xt],["3473",Xt],["3474",Xt],["3475",Xt],["3480",kr],["3481",kr],["3482",kr],["3483",kr],["3484",kr],["3485",kr],["3490",pr],["3491",pr],["3492",pr],["3493",pr],["3494",pr],["3495",pr],["3500",er],["3501",er],["3502",er],["3503",er],["3504",er],["3505",er],["3510",qr],["3511",qr],["3512",qr],["3513",qr],["3514",qr],["3515",qr],["3520",Rr],["3521",Rr],["3522",Rr],["3523",Rr],["3524",Rr],["3525",Rr],["3530",Nr],["3531",Nr],["3532",Nr],["3533",Nr],["3534",Nr],["3535",Nr],["3540",nn],["3541",nn],["3542",nn],["3543",nn],["3544",nn],["3545",nn],["3550",wn],["3551",wn],["3552",wn],["3553",wn],["3554",wn],["3555",wn],["3560",oo],["3561",oo],["3562",oo],["3563",oo],["3564",oo],["3565",oo],["3570",Jn],["3571",Jn],["3572",Jn],["3573",Jn],["3574",Jn],["3575",Jn],["3600",mo],["3601",mo],["3602",mo],["3603",mo],["3604",mo],["3605",mo],["3610",Mo],["3611",Mo],["3612",Mo],["3613",Mo],["3614",Mo],["3615",Mo],["3620",go],["3621",go],["3622",go],["3623",go],["3624",go],["3625",go],["3630",Mi],["3631",Mi],["3632",Mi],["3633",Mi],["3634",Mi],["3635",Mi],["3640",Pi],["3641",Pi],["3642",Pi],["3643",Pi],["3644",Pi],["3645",Pi],["3650",hi],["3651",hi],["3652",hi],["3653",hi],["3654",hi],["3655",hi],["3660",ji],["3661",ji],["3662",ji],["3663",ji],["3664",ji],["3665",ji],["3670",mi],["3671",mi],["3672",mi],["3673",mi],["3674",mi],["3675",mi],["3680",Di],["3681",Di],["3682",Di],["3683",Di],["3684",Di],["3685",Di],["3690",Vo],["3691",Vo],["3692",Vo],["3693",Vo],["3694",Vo],["3695",Vo],["37",Xi],["3900",Po],["3901",Po],["3902",Po],["3903",Po],["3904",Po],["3905",Po],["3906",Po],["3907",Po],["3908",Po],["3909",Po],["3910",Qo],["3911",Qo],["3912",Qo],["3913",Qo],["3914",Qo],["3915",Qo],["3916",Qo],["3917",Qo],["3918",Qo],["3919",Qo],["3920",Ao],["3921",Ao],["3922",Ao],["3923",Ao],["3924",Ao],["3925",Ao],["3926",Ao],["3927",Ao],["3928",Ao],["3929",Ao],["3930",Ln],["3931",Ln],["3932",Ln],["3933",Ln],["3934",Ln],["3935",Ln],["3936",Ln],["3937",Ln],["3938",Ln],["3939",Ln],["3940",jo],["3941",jo],["3942",jo],["3943",jo],["3950",io],["3951",io],["3952",io],["3953",io],["3954",io],["3955",io],["400",Qi],["401",rs],["402",ns],["403",Wi],["410",da],["411",da],["412",da],["413",da],["414",Ht],["415",Tr],["416",Xr],["417",Vr],["420",xn],["421",yn],["422",Fn],["423",An],["424",hn],["425",ao],["426",gi],["427",vi],["4300",bi],["4301",bi],["4302",_o],["4303",Yo],["4304",ra],["4305",ra],["4306",ra],["4307",Cn],["4308",to],["4309",Ri],["4310",ii],["4311",ii],["4312",os],["4313",Va],["4314",Ma],["4315",Ma],["4316",Ma],["4317",Ns],["4318",Qa],["4319",qa],["4320",$s],["4321",rl],["4322",rl],["4323",rl],["4324",fc],["4325",fc],["4326",D1],["4330",Wt],["4331",vr],["4332",Dn],["4333",Li],["7001",na],["7002",ys],["7003",N1],["7004",ur],["7005",Sn],["7006",xi],["7007",ja],["7008",Ls],["7009",ma],["7010",lo],["7011",Kl],["7020",ol],["7021",hc],["7022",Jl],["7023",Sl],["7030",U],["7031",U],["7032",U],["7033",U],["7034",U],["7035",U],["7036",U],["7037",U],["7038",U],["7039",U],["7040",$r],["710",ro],["711",ro],["712",ro],["713",ro],["714",ro],["715",ro],["7230",Cs],["7231",Cs],["7232",Cs],["7233",Cs],["7234",Cs],["7235",Cs],["7236",Cs],["7237",Cs],["7238",Cs],["7239",Cs],["7240",zp],["7241",u4],["7242",f4],["7250",h4],["7251",Hm],["7252",v4],["7253",Up],["7254",Up],["7255",w4],["7256",Um],["7257",y4],["7258",Gm],["7259",C4],["8001",Qm],["8002",E4],["8003",iD],["8004",sD],["8005",cD],["8006",fD],["8007",hD],["8008",vD],["8009",wD],["8010",yD],["8011",CD],["8012",SD],["8013",ED],["8014",PD],["8017",OD],["8018",BD],["8019",FD],["8020",ND],["8026",zD],["8030",UD],["8110",VD],["8111",WD],["8112",_D],["8200",KD],["90",JD],["91",_c],["92",_c],["93",_c],["94",_c],["95",_c],["96",_c],["97",_c],["98",_c],["99",_c]]);e.gs1syntax=eN;for(var Ko in e)e.hasOwnProperty(Ko)&&(Jr.$ctx[Ko]=e[Ko]);Jr.__2469__=1,e=Object.getPrototypeOf(e)}if(ae(r[--t],"ai")){m0(r[--t],"("),dr(r[--t])&&(t--,r[t++]="bwipp.GS1aiMissingOpenParen#2477",r[t++]="AIs must start with '('",ne()),t--,r[t++]=1/0;var tN=r[--t],rN=r[--t];for(r[t++]=tN,r[t++]=rN;;){var z8=r[--t];if(r[t++]=z8,ae(z8,"")){t--;break}fr(r[--t],")"),dr(r[--t])&&(af(),r[t++]="bwipp.GS1aiMissingCloseParen#2483",r[t++]="AIs must end with ')'",ne());var nN=r[--t],oN=r[--t];r[t++]=nN,r[t++]=oN,t--;var iN=r[--t],aN=r[--t];if(r[t++]=iN,fr(aN,"("),r[--t]){var sN=r[--t],lN=r[--t];r[t++]=sN,r[t++]=lN,t--;var cN=r[--t],uN=r[--t];r[t++]=cN,r[t++]=uN}else r[t++]=""}var H8=fo();if(r[t++]=H8,H8>0)for(var U8=r[--t],P4=U8,dN=~~(U8/2)+1;P4>=dN;P4-=1)I0(P4,-1);else t--;wr(a(~~(fo()/2))),e.ais=r[--t],wr(a(fo())),r[t++]=1/0;var fN=r[--t],pN=r[--t];r[t++]=fN,je(pN,function(){var kt=new Map([["parse",e.parse],["parseonly",!0],["parsefnc",!1]]);r[t++]=kt,Bo()}),e.vals=a(),t--}else{if(m0(r[--t],"http://"),dr(r[--t])&&(m0(r[--t],"HTTP://"),dr(r[--t])&&(m0(r[--t],"https://"),dr(r[--t])&&(m0(r[--t],"HTTPS://"),dr(r[--t])&&(t--,r[t++]="bwipp.GS1dlURIbadScheme#2502",r[t++]="Scheme must be http:// HTTP:// https:// or HTTPS://",ne())))),t--,fr(r[--t],"/"),dr(r[--t])&&(t--,r[t++]="bwipp.GS1dlMissingDomainOrPathInfo#2508",r[t++]="URI must contain a domain and path info",ne()),t-=2,fr(r[--t],"#"),r[--t]){var hN=r[--t],mN=r[--t];r[t++]=hN,r[t++]=mN,t--;var gN=r[--t],vN=r[--t];r[t++]=gN,r[t++]=vN,t--}if(fr(r[--t],"?"),dr(r[--t])){var bN=r[--t];r[t++]="",r[t++]=null,r[t++]=bN}for(e.pp=r[--t],t--,e.qp=r[--t],r[t++]=1/0,r[t++]=0,r[t++]=0,r[t++]=e.pp;;){if(fr(r[--t],"/"),dr(r[--t])){t--;break}var wN=r[--t],xN=r[--t];r[t++]=wN.length+1,r[t++]=xN,t--;var yN=r[--t],AN=r[--t],G8=r[--t];r[t++]=G8,r[t++]=h(yN+G8),r[t++]=AN}wr(a(fo()-1)),e.pipos=r[--t],t-=2,e.pipos.length<=1&&(r[t++]="bwipp.GS1dlNoAIinfo#2533",r[t++]="The path was too short to contain AI info",ne()),r[t++]=!1;for(var _p=e.pipos.length-2;_p>=0;_p-=2){var V8=u(e.pipos,_p),Q8=T(e.pp,V8,h(h(u(e.pipos,_p+1)-V8)-1)),CN=u(e.gs1syntax,Q8)!==void 0;if(r[t++]=_p,r[t++]=Q8,CN){var kN=u(u(e.gs1syntax,r[--t]),"dlpkey")!==void 0;if(kN){var SN=r[--t],IN=r[--t];r[t++]=SN,r[t++]=IN,t--,r[t++]=!0;break}}else t--;t--}dr(r[--t])&&(r[t++]="bwipp.GS1dlNoAIinfo#2552",r[t++]="The path does not contain a valid primary key",ne());var W8=u(e.pipos,r[--t]);for(e.pp=T(e.pp,W8,h(e.pp.length-W8)),e.uriunescape=function(){for(e.qq=r[--t],e.in=r[--t],e.out=pe(e.in.length),r[t++]=0,r[t++]=0;;){var kt=r[--t],Vt=r[--t];if(r[t++]=Vt,r[t++]=kt,Vt>=e.in.length)break;var Mr=r[--t],an=r[--t],Bn=u(e.in,an);if(r[t++]=an,r[t++]=Mr,r[t++]=Bn,Bn==43&&e.qq){t--;var Nn=r[--t];y(e.out,Nn,32);var ai=r[--t];r[t++]=h(ai+1),r[t++]=h(Nn+1)}else{var si=r[--t],ks=r[--t],Ss=r[--t];if(r[t++]=Ss,r[t++]=ks,r[t++]=si,si==37&&Ss=48&&Il<=57){var gc=r[--t];r[t++]=h(gc-48)}else{var Zl=r[--t];if(r[t++]=Zl,Zl>=65&&Zl<=70){var vc=r[--t];r[t++]=h(vc-55)}else{var e1=r[--t];if(r[t++]=e1,e1>=97&&e1<=102){var bc=r[--t];r[t++]=h(bc-87)}else t-=2,r[t++]="bwipp.GS1dlBadHexCharacter#2573",r[t++]="Invalid hex character",ne()}}var Tu=r[--t],Hf=r[--t];r[t++]=h(Tu+Hf*16)}var Uf=r[--t],Ud=r[--t];y(e.out,Ud,Uf);var Gf=r[--t];r[t++]=h(Gf+3),r[t++]=h(Ud+1)}else{var t1=r[--t],z1=r[--t];y(e.out,z1,t1);var wc=r[--t];r[t++]=h(wc+1),r[t++]=h(z1+1)}}}e.out=T(e.out,0,r[--t]),t--,r[t++]=e.out},e.isvaliddlpkeyseq=function(){e.in=r[--t],r[t++]=!1,je(u(u(e.gs1syntax,u(e.in,0)),"dlpkey"),function(){for(e.seq=r[--t],e.i=1,e.j=0;!(e.i>=e.in.length||e.j>=e.seq.length);)ae(u(e.in,e.i),u(e.seq,e.j))&&(e.i=e.i+1),e.j=e.j+1;if(e.i==e.in.length)return t--,r[t++]=!0,!0})},e.ais=a(99),e.vals=a(99),r[t++]=0,r[t++]=e.pp;;){if(fr(r[--t],"/"),r[--t]){var EN=r[--t];r[--t];var MN=r[--t],q8=r[--t];if(y(e.ais,q8,EN),r[t++]=q8,fr(MN,"/"),r[--t]){var PN=r[--t],jN=r[--t];r[t++]=PN,r[t++]=jN,t--}else{var ON=r[--t];r[t++]="",r[t++]=ON}var RN=r[--t],BN=r[--t],_8=r[--t];r[t++]=_8,r[t++]=BN,r[t++]=e.vals,r[t++]=_8,r[t++]=RN,r[t++]=!1,e.uriunescape();var TN=r[--t],FN=r[--t];y(r[--t],FN,TN)}else{t--;break}var DN=r[--t],NN=r[--t];r[t++]=h(NN+1),r[t++]=DN}var j4=r[--t];for(e.plen=j4,r[t++]=j4,j4>1&&(r[t++]=T(e.ais,0,e.plen),e.isvaliddlpkeyseq(),dr(r[--t])&&(t--,r[t++]="bwipp.GS1dlBadPathInfo#2628",r[t++]="The AIs in the path are not a valid key-qualifier sequence for the key",ne())),r[t++]=e.qp;;){var Y8=r[--t];if(r[t++]=Y8,ae(Y8,"")){t--;break}if(fr(r[--t],"&"),r[--t]){var $N=r[--t],LN=r[--t];r[t++]=$N,r[t++]=LN,t--}else{var zN=r[--t];r[t++]="",r[t++]=zN}if(fr(r[--t],"="),r[--t]){var K8=r[--t];if(r[t++]=K8,r[t++]=!0,je(K8,function(){var kt=r[--t],Vt=r[--t];r[t++]=Vt&&kt>=48&&kt<=57}),r[--t]){var HN=r[--t];r[--t];var UN=r[--t],GN=r[--t],O4=r[--t];y(e.ais,O4,HN),r[t++]=O4,r[t++]=GN,r[t++]=e.vals,r[t++]=O4,r[t++]=UN,r[t++]=!0,e.uriunescape();var VN=r[--t],QN=r[--t];y(r[--t],QN,VN);var WN=r[--t],qN=r[--t];r[t++]=h(qN+1),r[t++]=WN}else t-=3}else t--}var X8=r[--t],J8=T(e.ais,e.plen,h(X8-e.plen));r[t++]=X8;for(var R4=0,_N=J8.length;R4<_N;R4++){var Z8=u(J8,R4),YN=u(e.gs1syntax,Z8)!==void 0;if(r[t++]=Z8,YN){var e9=r[--t],t9=u(e.gs1syntax,e9),KN=u(t9,"dlattr")!==void 0;if(r[t++]=e9,r[t++]=t9,r[t++]="dlattr",KN){var XN=r[--t],JN=u(r[--t],XN);r[t++]=JN}else t-=2,r[t++]=!0}else r[t++]=e.dontlint;if(dr(r[--t])){var B4=r[--t],T4=B4.length,Wm=pe(T4+46);K(Wm,0,"AI ("),K(Wm,4,B4),K(Wm,T4+4,") is not a valid GS1 DL URI data attribute"),r[t++]=B4,r[t++]=Wm,r[t++]=T4,t--;var ZN=r[--t],e$=r[--t];r[t++]=ZN,r[t++]=e$,t--;var t$=r[--t];r[t++]="bwipp.GS1dlInvalidDataAttribute#2662",r[t++]=t$,ne()}t--}var r9=r[--t],n9=T(e.ais,e.plen,h(r9-e.plen));r[t++]=r9;for(var F4=0,r$=n9.length;F4=1;D4-=1){var o9=r[--t];r[t++]=o9,r[t++]=D4,r[t++]=o9,r[t++]=1/0,oe(T(e.ais,0,e.plen)),I0(fo()+3,-2);var n$=r[--t],o$=r[--t];r[t++]=n$,I0(o$,1);var i$=a();if(r[t++]=i$,e.isvaliddlpkeyseq(),r[--t]){var a$=r[--t],s$=r[--t];r[t++]=a$,r[t++]=s$,t--;var N4=r[--t],$4=N4.length,qm=pe($4+50);K(qm,0,"AI ("),K(qm,4,N4),K(qm,$4+4,") from query params should be in the path info"),r[t++]=N4,r[t++]=qm,r[t++]=$4,t--;var l$=r[--t],c$=r[--t];r[t++]=l$,r[t++]=c$,t--;var u$=r[--t];r[t++]="bwipp.GS1dlAttributeMustBeQualifier#2679",r[t++]=u$,ne()}}t--}var i9=r[--t];e.ais=T(e.ais,0,i9),e.vals=T(e.vals,0,i9);for(var _m=0,d$=e.ais.length-1;_m<=d$;_m+=1){if(r[t++]=_m,ae(u(e.ais,_m),"01")){var a9=r[--t],s9=u(e.vals,a9),L4=s9.length;if(r[t++]=a9,r[t++]=s9,L4==8||L4==12||L4==13){var l9=Gn(pe(14),"00000000000000"),c9=r[--t];K(l9,14-c9.length,c9);var u9=r[--t];y(e.vals,u9,l9),r[t++]=u9}else t--}t--}}if(!Jr.__2714__){e=Object.create(e),r[t++]=1/0;for(var d9=a(["00","01","02","03","04","11","12","13","14","15","16","17","18","19","20","31","32","33","34","35","36","41"]),z4=0,f$=d9.length;z4=2){var h$=u(e.aifixed,T(r[--t],0,2))!==void 0;h$&&(t--,r[t++]=!1)}else t--}if(e.fncs=a(),!Jr.__2749__){e=Object.create(e),r[t++]=1/0,r[t++]=0;for(var U4=0,m$=82;U4?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz`,U4),r[t++]=m9,r[t++]=h(m9+1)}t--,e.cset82=Bt(),r[t++]=1/0,r[t++]=0;for(var G4=0,g$=39;G457)return t--,r[t++]=!1,!0}),dr(r[--t]))return t--,r[t++]="bwipp.GS1notNumeric#2753",r[t++]="Not numeric",r[t++]=!1,!0},e.lintcset82=function(){var kt=r[--t];if(r[t++]=!0,je(kt,function(){var Vt=u(e.cset82,r[--t])!==void 0;if(!Vt)return t--,r[t++]=!1,!0}),dr(r[--t]))return t--,r[t++]="bwipp.GS1badCSET82character#2758",r[t++]="Invalid CSET 82 character",r[t++]=!1,!0},e.lintcset39=function(){var kt=r[--t];if(r[t++]=!0,je(kt,function(){var Vt=u(e.cset39,r[--t])!==void 0;if(!Vt)return t--,r[t++]=!1,!0}),dr(r[--t]))return t--,r[t++]="bwipp.GS1badCSET39character#2763",r[t++]="Invalid CSET 39 character",r[t++]=!1,!0},e.lintcset64=function(){var kt=r[--t];if(r[t++]=!0,je(kt,function(){var Vt=r[--t],Mr=u(e.cset64,Vt)!==void 0;if(!Mr&&Vt!=61)return t--,r[t++]=!1,!0}),dr(r[--t]))return t--,r[t++]="bwipp.GS1badCSET64character#2769",r[t++]="Invalid CSET 64 character",r[t++]=!1,!0},e.lintkey=function(){var kt=r[--t];if(r[t++]=kt,kt.length<2)return t-=2,r[t++]="bwipp.GS1keyTooShort#2773",r[t++]="Key is too short",r[t++]=!1,!0;var Vt=r[--t],Mr=u(Vt,0),an=u(Vt,1);if(Mr<48||Mr>57||an<48||an>57)return t--,r[t++]="bwipp.GS1badGCP#2776",r[t++]="Non-numeric company prefix",r[t++]=!1,!0},e.lintimporteridx=function(){if(fr("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",r[--t]),dr(r[--t]))return t-=2,r[t++]="bwipp.GS1badImporterIndex#2782",r[t++]="Invalid importer index",r[t++]=!1,!0;t-=3},e.lintcsum=function(){r[t++]=1/0;var kt=r[--t],Vt=r[--t],Mr=Vt.length%2==0?3:1;r[t++]=kt,r[t++]=Mr,je(Vt,function(){var Is=r[--t],as=r[--t];r[t++]=h(Is-48)*as,r[t++]=h(4-as)}),t--;var an=fo()+1;r[t++]=0;for(var Bn=0,Nn=an-1;BnZl.length)return t-=5,r[t++]="bwipp.GS1alphaTooLong#2812",r[t++]="Alphanumeric string is too long to check",r[t++]=!1,!0;for(var e1=r[--t],bc=T(r[--t],0,e1),Tu=0,Hf=bc.length;Tu9){var il=h(r[--t]-7);r[t++]=~~(il/10),r[t++]=il%10}}),wr(a(fo()));var Ss=r[--t],Is=r[--t];r[t++]=Ss,r[t++]=Is,t--;var as=r[--t];if(r[t++]=0,je(as,function(){var Oa=r[--t],il=r[--t];r[t++]=h(Oa+il*10)%97}),r[--t]!=1)return t-=2,r[t++]="bwipp.GS1badIBANchecksum#2949",r[t++]="IBAN checksum incorrect",r[t++]=!1,!0;var ga=T(r[--t],0,2);r[t++]=ga,e.lintiso3166alpha2()},e.lintzero=function(){if(it(r[--t],"0"))return t--,r[t++]="bwipp.GS1zeroRequired#2954",r[t++]="Zero is required",r[t++]=!1,!0},e.lintnonzero=function(){var kt=r[--t];if(r[t++]=!1,je(kt,function(){r[--t]!=48&&(t--,r[t++]=!0)}),dr(r[--t]))return t--,r[t++]="bwipp.GS1zeroNotPermitted#2959",r[t++]="Zero not permitted",r[t++]=!1,!0},e.lintnozeroprefix=function(){var kt=r[--t];if(kt.length>1&&u(kt,0)==48)return t--,r[t++]="bwipp.GS1badZeroPrefix#2964",r[t++]="Zero prefix is not permitted",r[t++]=!1,!0},e.linthasnondigit=function(){var kt=r[--t];if(r[t++]=!1,je(kt,function(){var Vt=r[--t];if(Vt<48||Vt>57)return t--,r[t++]=!0,!0}),dr(r[--t]))return r[t++]="bwipp.GS1requiresNonDigit#2970",r[t++]="A non-digit character is required",r[t++]=!1,!0},e.linthyphen=function(){if(it(r[--t],"-"))return t--,r[t++]="bwipp.GS1hyphenRequired#2974",r[t++]="A hyphen is required",r[t++]=!1,!0},e.lintyyyymmd0=function(){var kt=r[--t],Vt=ft(T(kt,4,2));if(r[t++]=kt,Vt<1||Vt>12)return t--,r[t++]="bwipp.GS1badMonth#2978",r[t++]="Invalid month",r[t++]=!1,!0;var Mr=r[--t],an=ft(T(Mr,0,4));r[t++]=Mr,r[t++]=an%400==0||an%4==0&&an%100!=0,r[t++]=1/0;var Bn=r[--t],Nn=r[--t]?29:28;r[t++]=Bn,r[t++]=31,r[t++]=Nn,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31;var ai=a(),si=r[--t];if(u(ai,ft(T(si,4,2))-1)=51?(t--,r[t++]="19"):r[--t]<=-50?r[t++]="21":r[t++]="20";var an=r[--t],Bn=r[--t];r[t++]=an,r[t++]=Bn,t--;var Nn=pe(8);K(Nn,0,r[--t]),K(Nn,2,r[--t]),r[t++]=Nn,e.lintyyyymmd0()},e.lintyymmdd=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=6)return t--,r[t++]="bwipp.GS1badDateLength#2999",r[t++]="Invalid length for yymmdd date",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,ft(T(Vt,4,2))<1)return t--,r[t++]="bwipp.GS1badDay#3000",r[t++]="Invalid day of month",r[t++]=!1,!0;e.lintyymmd0()},e.lintyymmddhh=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=8)return t--,r[t++]="bwipp.GS1badYYMMDDHHLength#3005",r[t++]="Invalid length for yymmdd date with hour",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,ft(T(Vt,6,2))>23)return t-=2,r[t++]="bwipp.GS1badHour#3006",r[t++]="Invalid hour of day",r[t++]=!1,!0;var Mr=T(r[--t],0,6);r[t++]=Mr,e.lintyymmdd()},e.linthhmm=function(){var kt=r[--t];if(r[t++]=kt,ft(T(kt,0,2))>23)return t-=2,r[t++]="bwipp.GS1badHour#3011",r[t++]="Invalid hour of day",r[t++]=!1,!0;if(ft(T(r[--t],2,2))>59)return t--,r[t++]="bwipp.GS1badMinute#3012",r[t++]="Invalid minute in the hour",r[t++]=!1,!0},e.lintmmoptss=function(){var kt=r[--t],Vt=kt.length;if(r[t++]=kt,Vt!=2&&Vt!=4)return t--,r[t++]="bwipp.GS1badTimeLength#3017",r[t++]="Invalid length for optional minutes and seconds",r[t++]=!1,!0;var Mr=r[--t];if(r[t++]=Mr,ft(T(Mr,0,2))>59)return t-=2,r[t++]="bwipp.GS1badMinute#3019",r[t++]="Invalid minute in the hour",r[t++]=!1,!0;var an=r[--t];if(r[t++]=an,an.length>=4){var Bn=r[--t];if(r[t++]=Bn,ft(T(Bn,2,2))>59)return t-=2,r[t++]="bwipp.GS1badSecond#3021",r[t++]="Invalid second in the minute",r[t++]=!1,!0}t--},e.lintyesno=function(){var kt=r[--t];if(it(kt,"0")&&it(kt,"1"))return t--,r[t++]="bwipp.GS1badBoolean#3028",r[t++]="Neither 0 nor 1 for yes or no",r[t++]=!1,!0},e.lintwinding=function(){var kt=r[--t];if(it(kt,"0")&&it(kt,"1")&&it(kt,"9"))return t--,r[t++]="bwipp.GS1badWinding#3034",r[t++]="Invalid winding direction",r[t++]=!1,!0},e.lintpieceoftotal=function(){var kt=r[--t];if(r[t++]=kt,kt.length%2!=0)return t-=2,r[t++]="bwipp.GS1badPieceTotalLength#3039",r[t++]="Invalid piece/total length",r[t++]=!1,!0;var Vt=r[--t],Mr=ft(T(Vt,0,~~(Vt.length/2)));if(r[t++]=Vt,r[t++]=Mr,Mr==0)return t-=3,r[t++]="bwipp.GS1badPieceNumber#3041",r[t++]="Invalid piece number",r[t++]=!1,!0;var an=r[--t],Bn=r[--t],Nn=~~(Bn.length/2),ai=ft(T(Bn,Nn,Nn));if(r[t++]=an,r[t++]=ai,ai==0)return t-=3,r[t++]="bwipp.GS1badPieceTotal#3043",r[t++]="Invalid total number",r[t++]=!1,!0;var si=r[--t];if(jc(r[--t],si))return t--,r[t++]="bwipp.GS1pieceExceedsTotal#3044",r[t++]="Piece number exceeds total",r[t++]=!1,!0},e.lintposinseqslash=function(){if(fr(r[--t],"/"),dr(r[--t]))return t--,r[t++]="bwipp.invalidPosInSeqFormat#3049",r[t++]="Invalid / format",r[t++]=!1,!0;var kt=r[--t],Vt=r[--t];r[t++]=kt,r[t++]=Vt,t--;var Mr=r[--t];if(r[t++]=Mr,Mr.length==0)return t-=2,r[t++]="bwipp.invalidPosInSeqFormat#3053",r[t++]="Invalid / format",r[t++]=!1,!0;var an=r[--t],Bn=r[--t];if(r[t++]=Bn,r[t++]=an,Bn.length==0)return t-=2,r[t++]="bwipp.invalidPosInSeqFormat#3056",r[t++]="Invalid / format",r[t++]=!1,!0;var Nn=r[--t];if(r[t++]=Nn,r[t++]=!0,je(Nn,function(){var ga=r[--t];if(ga<48||ga>57)return t--,r[t++]=!1,!0}),dr(r[--t]))return t-=2,r[t++]="bwipp.positionNotNumeric#3061",r[t++]="Position is not numeric",r[t++]=!1,!0;var ai=r[--t],si=r[--t];if(r[t++]=si,r[t++]=ai,r[t++]=!0,je(si,function(){var ga=r[--t];if(ga<48||ga>57)return t--,r[t++]=!1,!0}),dr(r[--t]))return t-=2,r[t++]="bwipp.endNotNumeric#3065",r[t++]="End is not numeric",r[t++]=!1,!0;var ks=r[--t];if(r[t++]=ks,u(ks,0)==48)return t-=2,r[t++]="bwipp.positionZeroPrefix#3066",r[t++]="Position cannot have zero prefix",r[t++]=!1,!0;var Ss=r[--t],Is=r[--t];if(r[t++]=Is,r[t++]=Ss,u(Is,0)==48)return t-=2,r[t++]="bwipp.endZeroPrefix#3067",r[t++]="End cannot have zero prefix",r[t++]=!1,!0;var as=r[--t];if(ft(r[--t])57)return t--,r[t++]=!1,!0}),dr(r[--t]))return t-=2,r[t++]="bwipp.GS1couponNotNumeric#3090",r[t++]="Coupon not numeric",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,Vt.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortGCPVLI#3094",r[t++]="Coupon too short: Missing GCP VLI",r[t++]=!1,!0;var Mr=r[--t],an=ft(T(Mr,0,1));if(r[t++]=Mr,r[t++]=an,an>6)return t-=2,r[t++]="bwipp.GS1couponBadGCPVLI#3097",r[t++]="Coupon GCP length indicator must be 0-6",r[t++]=!1,!0;var Bn=r[--t],Nn=r[--t];if(r[t++]=Nn,r[t++]=h(h(Bn+6)+1),h(h(Bn+6)+1)>Nn.length)return t-=3,r[t++]="bwipp.GS1couponTooShortGCP#3101",r[t++]="Coupon too short: GCP truncated",r[t++]=!1,!0;var ai=r[--t],si=r[--t],ks=T(si,ai,h(si.length-ai));if(r[t++]=ks,ks.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortOfferCode#3107",r[t++]="Coupon too short: Offer Code truncated",r[t++]=!1,!0;var Ss=r[--t],Is=T(Ss,6,Ss.length-6);if(r[t++]=Is,Is.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSaveValueVLI#3113",r[t++]="Coupon too short: Missing Save Value VLI",r[t++]=!1,!0;var as=r[--t],ga=ft(T(as,0,1));if(r[t++]=as,r[t++]=ga,ga<1||ga>5)return t-=2,r[t++]="bwipp.GS1couponBadSaveValueVLI#3116",r[t++]="Coupon Save Value length indicator must be 1-5",r[t++]=!1,!0;var Oa=r[--t],il=r[--t];if(r[t++]=il,r[t++]=h(Oa+1),h(Oa+1)>il.length)return t-=3,r[t++]="bwipp.GS1couponTooShortSaveValue#3120",r[t++]="Coupon too short: Save Value truncated",r[t++]=!1,!0;var Il=r[--t],gc=r[--t],Zl=T(gc,Il,h(gc.length-Il));if(r[t++]=Zl,Zl.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort1stPurchaseRequirementVLI#3126",r[t++]="Coupon too short: Missing 1st Purchase Requirement VLI",r[t++]=!1,!0;var vc=r[--t],e1=ft(T(vc,0,1));if(r[t++]=vc,r[t++]=e1,e1<1||e1>5)return t-=2,r[t++]="bwipp.GS1couponBad1stPurchaseRequirementVLI#3129",r[t++]="Coupon 1st Purchase Requirement length indicator must be 1-5",r[t++]=!1,!0;var bc=r[--t],Tu=r[--t];if(r[t++]=Tu,r[t++]=h(bc+1),h(bc+1)>Tu.length)return t-=3,r[t++]="bwipp.GS1couponTooShort1stPurchaseRequirement#3133",r[t++]="Coupon too short: 1st Purchase Requirement truncated",r[t++]=!1,!0;var Hf=r[--t],Uf=r[--t],Ud=T(Uf,Hf,h(Uf.length-Hf));if(r[t++]=Ud,Ud.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort1stPurchaseRequirementCode#3139",r[t++]="Coupon too short: Missing 1st Purchase Requirement Code",r[t++]=!1,!0;var Gf=r[--t],t1=ft(T(Gf,0,1));if(r[t++]=Gf,t1>4&&t1!=9)return t-=2,r[t++]="bwipp.GS1couponBad1stPurchaseRequirementCode#3142",r[t++]="Coupon 1st Purchase Requirement Code must be 0-4 or 9",r[t++]=!1,!0;var z1=r[--t],wc=T(z1,1,z1.length-1);if(r[t++]=wc,wc.length<3)return t-=2,r[t++]="bwipp.GS1couponTooShort1stPurchaseFamilyCode#3148",r[t++]="Coupon too short: 1st Purchase Family Code truncated",r[t++]=!1,!0;var B9=r[--t],T9=T(B9,3,B9.length-3);if(r[t++]=T9,T9.length>=1){var F9=r[--t];if(r[t++]=F9,ft(T(F9,0,1))==1){var D9=r[--t],N9=T(D9,1,D9.length-1);if(r[t++]=N9,N9.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#3158",r[t++]="Coupon too short: Missing Additional Purchase Rules Code",r[t++]=!1,!0;var $9=r[--t];if(r[t++]=$9,ft(T($9,0,1))>3)return t-=2,r[t++]="bwipp.GS1couponBadAdditionalPurchaseRulesCode#3161",r[t++]="Coupon Additional Purchase Rules Code must be 0-3",r[t++]=!1,!0;var L9=r[--t],z9=T(L9,1,L9.length-1);if(r[t++]=z9,z9.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#3167",r[t++]="Coupon too short: Missing 2nd Purchase Requirement VLI",r[t++]=!1,!0;var H9=r[--t],X4=ft(T(H9,0,1));if(r[t++]=H9,r[t++]=X4,X4<1||X4>5)return t-=2,r[t++]="bwipp.GS1couponBad2ndPurchaseRequirementVLI#3170",r[t++]="Coupon 2nd Purchase Requirement length indicator must be 1-5",r[t++]=!1,!0;var U9=r[--t],G9=r[--t];if(r[t++]=G9,r[t++]=h(U9+1),h(U9+1)>G9.length)return t-=3,r[t++]="bwipp.GS1couponTooShort2ndPurchaseRequirement#3174",r[t++]="Coupon too short: 2nd Purchase Requirement truncated",r[t++]=!1,!0;var V9=r[--t],Q9=r[--t],W9=T(Q9,V9,h(Q9.length-V9));if(r[t++]=W9,W9.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseRequirementCode#3180",r[t++]="Coupon too short: Missing 2nd Purchase Requirement Code",r[t++]=!1,!0;var q9=r[--t],_9=ft(T(q9,0,1));if(r[t++]=q9,_9>4&&_9!=9)return t-=2,r[t++]="bwipp.GS1couponBad2ndPurchaseRequirementCode#3183",r[t++]="Coupon 2nd Purchase Requirement Code must be 0-4 or 9",r[t++]=!1,!0;var Y9=r[--t],K9=T(Y9,1,Y9.length-1);if(r[t++]=K9,K9.length<3)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseFamilyCode#3189",r[t++]="Coupon too short: 2nd Purchase Family Code truncated",r[t++]=!1,!0;var X9=r[--t],J9=T(X9,3,X9.length-3);if(r[t++]=J9,J9.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseGCPVLI#3195",r[t++]="Coupon too short: Missing 2nd Purchase GCP VLI",r[t++]=!1,!0;var Z9=r[--t],J4=ft(T(Z9,0,1));if(r[t++]=Z9,r[t++]=J4,J4>6&&J4!=9)return t-=2,r[t++]="bwipp.GS1couponBad2ndPurchaseGCPVLI#3198",r[t++]="Coupon 2nd Purchase GCP length indicator must be 0-6 or 9",r[t++]=!1,!0;var eC=r[--t];if(r[t++]=eC,eC!=9){var R$=r[--t];r[t++]=h(R$+6)}else t--,r[t++]=0;var tC=r[--t],rC=r[--t];if(r[t++]=rC,r[t++]=h(tC+1),h(tC+1)>rC.length)return t-=3,r[t++]="bwipp.GS1couponTooShort2ndPurchaseGCP#3202",r[t++]="Coupon too short: 2nd Purchase GCP truncated",r[t++]=!1,!0;var nC=r[--t],oC=r[--t];r[t++]=T(oC,nC,h(oC.length-nC))}}var iC=r[--t];if(r[t++]=iC,iC.length>=1){var aC=r[--t];if(r[t++]=aC,ft(T(aC,0,1))==2){var sC=r[--t],lC=T(sC,1,sC.length-1);if(r[t++]=lC,lC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#3214",r[t++]="Coupon too short: Missing 3rd Purchase Requirement VLI",r[t++]=!1,!0;var cC=r[--t],Z4=ft(T(cC,0,1));if(r[t++]=cC,r[t++]=Z4,Z4<1||Z4>5)return t-=2,r[t++]="bwipp.GS1couponBad3rdPurchaseRequirementVLI#3217",r[t++]="Coupon 3rd Purchase Requirement length indicator must be 1-5",r[t++]=!1,!0;var uC=r[--t],dC=r[--t];if(r[t++]=dC,r[t++]=h(uC+1),h(uC+1)>dC.length)return t-=3,r[t++]="bwipp.GS1couponTooShort3rdPurchaseRequirement#3221",r[t++]="Coupon too short: 3rd Purchase Requirement truncated",r[t++]=!1,!0;var fC=r[--t],pC=r[--t],hC=T(pC,fC,h(pC.length-fC));if(r[t++]=hC,hC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseRequirementCode#3227",r[t++]="Coupon too short: Missing 3rd Purchase Requirement Code",r[t++]=!1,!0;var mC=r[--t],gC=ft(T(mC,0,1));if(r[t++]=mC,gC>4&&gC!=9)return t-=2,r[t++]="bwipp.GS1couponBad3rdPurchaseRequirementCode#3230",r[t++]="Coupon 3rd Purchase Requirement Code must be 0-4 or 9",r[t++]=!1,!0;var vC=r[--t],bC=T(vC,1,vC.length-1);if(r[t++]=bC,bC.length<3)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseFamilyCode#3236",r[t++]="Coupon too short: 3rd Purchase Family Code truncated",r[t++]=!1,!0;var wC=r[--t],xC=T(wC,3,wC.length-3);if(r[t++]=xC,xC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseGCPVLI#3242",r[t++]="Coupon too short: Missing 3rd Purchase GCP VLI",r[t++]=!1,!0;var yC=r[--t],ew=ft(T(yC,0,1));if(r[t++]=yC,r[t++]=ew,ew>6&&ew!=9)return t-=2,r[t++]="bwipp.GS1couponBad3rdPurchaseGCPVLI#3245",r[t++]="Coupon 3rd Purchase GCP length indicator must be 0-6 or 9",r[t++]=!1,!0;var AC=r[--t];if(r[t++]=AC,AC!=9){var B$=r[--t];r[t++]=h(B$+6)}else t--,r[t++]=0;var CC=r[--t],kC=r[--t];if(r[t++]=kC,r[t++]=h(CC+1),h(CC+1)>kC.length)return t-=3,r[t++]="bwipp.GS1couponTooShort3rdPurchaseGCP#3249",r[t++]="Coupon too short: 3rd Purchase GCP truncated",r[t++]=!1,!0;var SC=r[--t],IC=r[--t];r[t++]=T(IC,SC,h(IC.length-SC))}}e.couponexpire=-1;var EC=r[--t];if(r[t++]=EC,EC.length>=1){var MC=r[--t];if(r[t++]=MC,ft(T(MC,0,1))==3){var PC=r[--t],jC=T(PC,1,PC.length-1);if(r[t++]=jC,jC.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortExpirationDate#3262",r[t++]="Coupon too short: Expiration date",r[t++]=!1,!0;var OC=r[--t],RC=ft(T(OC,2,2));if(r[t++]=OC,RC<1||RC>12)return t-=2,r[t++]="bwipp.GS1couponExpirationDateBadMonth#3264",r[t++]="Invalid month in expiration date",r[t++]=!1,!0;var BC=r[--t],TC=ft(T(BC,0,2)),FC=TC-21;if(r[t++]=BC,r[t++]=TC,r[t++]=FC,FC>=51){t--;var T$=r[--t];r[t++]=h(T$+1900)}else if(r[--t]<=-50){var F$=r[--t];r[t++]=h(F$+2100)}else{var D$=r[--t];r[t++]=h(D$+2e3)}var tw=r[--t];r[t++]=tw%400==0||tw%4==0&&tw%100!=0,r[t++]=1/0;var N$=r[--t],$$=r[--t]?29:28;r[t++]=N$,r[t++]=31,r[t++]=$$,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31;var L$=a(),rw=r[--t],DC=ft(T(rw,4,2));if(r[t++]=rw,u(L$,ft(T(rw,2,2))-1)=1){var $C=r[--t];if(r[t++]=$C,ft(T($C,0,1))==4){var LC=r[--t],zC=T(LC,1,LC.length-1);if(r[t++]=zC,zC.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortStartDate#3283",r[t++]="Coupon too short: Start date",r[t++]=!1,!0;var HC=r[--t],UC=ft(T(HC,2,2));if(r[t++]=HC,UC<1||UC>12)return t-=2,r[t++]="bwipp.GS1couponStartDateBadMonth#3285",r[t++]="Invalid month in start date",r[t++]=!1,!0;var GC=r[--t],VC=ft(T(GC,0,2)),QC=VC-21;if(r[t++]=GC,r[t++]=VC,r[t++]=QC,QC>=51){t--;var z$=r[--t];r[t++]=h(z$+1900)}else if(r[--t]<=-50){var H$=r[--t];r[t++]=h(H$+2100)}else{var U$=r[--t];r[t++]=h(U$+2e3)}var ow=r[--t];r[t++]=ow%400==0||ow%4==0&&ow%100!=0,r[t++]=1/0;var G$=r[--t],V$=r[--t]?29:28;r[t++]=G$,r[t++]=31,r[t++]=V$,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31;var Q$=a(),iw=r[--t],WC=ft(T(iw,4,2));if(r[t++]=iw,u(Q$,ft(T(iw,2,2))-1)=1){var KC=r[--t];if(r[t++]=KC,ft(T(KC,0,1))==5){var XC=r[--t],JC=T(XC,1,XC.length-1);if(r[t++]=JC,JC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSerialNumberVLI#3307",r[t++]="Coupon too short: Missing Serial Number VLI",r[t++]=!1,!0;var aw=r[--t],ZC=T(aw,0,1);if(r[t++]=aw,r[t++]=ft(ZC)+6+1,ft(ZC)+6+1>aw.length)return t-=3,r[t++]="bwipp.GS1couponTooShortSerialNumber#3311",r[t++]="Coupon too short: Serial Number truncated",r[t++]=!1,!0;var e7=r[--t],t7=r[--t];r[t++]=T(t7,e7,h(t7.length-e7))}}var r7=r[--t];if(r[t++]=r7,r7.length>=1){var n7=r[--t];if(r[t++]=n7,ft(T(n7,0,1))==6){var o7=r[--t],i7=T(o7,1,o7.length-1);if(r[t++]=i7,i7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortRetailerGCPGLNVLI#3323",r[t++]="Coupon too short: Missing Retailer GCP/GLN VLI",r[t++]=!1,!0;var a7=r[--t],sw=ft(T(a7,0,1));if(r[t++]=a7,r[t++]=sw,sw<1||sw>7)return t-=2,r[t++]="bwipp.GS1couponBadRetailerGCPGLNVLI#3326",r[t++]="Coupon Retailer GCP/GLN length indicator must be 1-7",r[t++]=!1,!0;var s7=r[--t],l7=r[--t];if(r[t++]=l7,r[t++]=h(h(s7+6)+1),h(h(s7+6)+1)>l7.length)return t-=3,r[t++]="bwipp.GS1couponTooShortRetailerGCPGLN#3330",r[t++]="Coupon too short: Retailer GCP/GLN truncated",r[t++]=!1,!0;var c7=r[--t],u7=r[--t];r[t++]=T(u7,c7,h(u7.length-c7))}}var d7=r[--t];if(r[t++]=d7,d7.length>=1){var f7=r[--t];if(r[t++]=f7,ft(T(f7,0,1))==9){var p7=r[--t],h7=T(p7,1,p7.length-1);if(r[t++]=h7,h7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSaveValueCode#3342",r[t++]="Coupon too short: Missing Save Value Code",r[t++]=!1,!0;var m7=r[--t],lw=ft(T(m7,0,1));if(r[t++]=m7,lw>6||lw==3||lw==4)return t-=2,r[t++]="bwipp.GS1couponBadSaveValueCode#3345",r[t++]="Coupon Save Value Code must be 0,1,2,5 or 6",r[t++]=!1,!0;var g7=r[--t],v7=T(g7,1,g7.length-1);if(r[t++]=v7,v7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSaveValueAppliesToItem#3351",r[t++]="Coupon too short: Missing Save Value Applies to Item",r[t++]=!1,!0;var b7=r[--t];if(r[t++]=b7,ft(T(b7,0,1))>2)return t-=2,r[t++]="bwipp.GS1couponBadSaveValueAppliesToItem#3354",r[t++]="Coupon Save Value Applies to Item must be 0-2",r[t++]=!1,!0;var w7=r[--t],x7=T(w7,1,w7.length-1);if(r[t++]=x7,x7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortStoreCouponFlag#3360",r[t++]="Coupon too short: Missing Store Coupon Flag",r[t++]=!1,!0;var y7=r[--t],A7=T(y7,1,y7.length-1);if(r[t++]=A7,A7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortDontMultiplyFlag#3366",r[t++]="Coupon too short: Missing Don't Multiply Flag",r[t++]=!1,!0;var C7=r[--t];if(r[t++]=C7,ft(T(C7,0,1))>1)return t-=2,r[t++]="bwipp.GS1couponBadDontMultiplyFlag#3369",r[t++]="Don't Multiply Flag must be 0 or 1",r[t++]=!1,!0;var k7=r[--t];r[t++]=T(k7,1,k7.length-1)}}var S7=r[--t];if(r[t++]=S7,S7.length!=0)return t-=2,r[t++]="bwipp.GS1couponUnrecognisedOptionalField#3376",r[t++]="Coupon fields must be 1,2,3,4,5,6 or 9, increasing order",r[t++]=!1,!0;t--},e.lintcouponposoffer=function(){var kt=r[--t];if(r[t++]=kt,r[t++]=!0,je(kt,function(){var bc=r[--t];if(bc<48||bc>57)return t--,r[t++]=!1,!0}),dr(r[--t]))return t-=2,r[t++]="bwipp.GS1couponNotNumeric#3385",r[t++]="Coupon not numeric",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,Vt.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortFormatCode#3388",r[t++]="Coupon too short: Missing Format Code",r[t++]=!1,!0;var Mr=r[--t],an=T(Mr,0,1);if(r[t++]=Mr,it(an,"0")&&it(an,"1"))return t-=2,r[t++]="bwipp.GS1couponBadFormatCode#3391",r[t++]="Coupon format must be 0 or 1",r[t++]=!1,!0;var Bn=r[--t],Nn=T(Bn,1,Bn.length-1);if(r[t++]=Nn,Nn.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortFunderVLI#3396",r[t++]="Coupon too short: Missing Funder VLI",r[t++]=!1,!0;var ai=r[--t],si=ft(T(ai,0,1));if(r[t++]=ai,r[t++]=si,si>6)return t-=3,r[t++]="bwipp.GS1couponBadFunderVLI#3399",r[t++]="Coupon Funder length indicator must be 0-6",r[t++]=!1,!0;var ks=r[--t],Ss=r[--t];if(r[t++]=Ss,r[t++]=h(h(ks+6)+1),h(h(ks+6)+1)>Ss.length)return t-=3,r[t++]="bwipp.GS1couponTooShortFunder#3403",r[t++]="Coupon too short: Truncated Funder ID",r[t++]=!1,!0;var Is=r[--t],as=r[--t],ga=T(as,Is,h(as.length-Is));if(r[t++]=ga,ga.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortOfferCode#3408",r[t++]="Coupon too short: Truncated Offer Code",r[t++]=!1,!0;var Oa=r[--t],il=T(Oa,6,Oa.length-6);if(r[t++]=il,il.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSnVLI#3413",r[t++]="Coupon too short: Missing SN VLI",r[t++]=!1,!0;var Il=r[--t],gc=T(Il,0,1);if(r[t++]=Il,r[t++]=ft(gc)+6+1,ft(gc)+6+1>Il.length)return t-=3,r[t++]="bwipp.GS1couponTooShortSn#3418",r[t++]="Coupon too short: Truncated SN",r[t++]=!1,!0;var Zl=r[--t],vc=r[--t],e1=T(vc,Zl,h(vc.length-Zl));if(r[t++]=e1,e1.length!=0)return t-=2,r[t++]="bwipp.GS1couponTooLong#3422",r[t++]="Coupon too long",r[t++]=!1,!0;t--},e.lintlatitude=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=10)return t--,r[t++]="bwipp.GS1badLatitudeLength#3429",r[t++]="Invalid length for a latitude",r[t++]=!1,!0;if(ft(r[--t])>ft("1800000000"))return t--,r[t++]="bwipp.GS1badLatitude#3433",r[t++]="Invalid value for latitude",r[t++]=!1,!0},e.lintlongitude=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=10)return t--,r[t++]="bwipp.GS1badLongitudeLength#3438",r[t++]="Invalid length for a longitude",r[t++]=!1,!0;if(ft(r[--t])>ft("3600000000"))return t--,r[t++]="bwipp.GS1badLongitude#3443",r[t++]="Invalid value for longitude",r[t++]=!1,!0},!Jr.__3452__){e=Object.create(e),r[t++]=1/0;for(var S9=a(["01","02","03","04","05","06","07","08","09","10","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99"]),Y4=0,A$=S9.length;Y4e.val.length){t--,r[t++]="bwipp.GS1valueTooShort#3469",r[t++]="Too short",r[t++]=!1;break}var M9=r[--t];if(r[t++]=M9,r[t++]=0,je(M9,function(){var kt=u(r[--t],"max"),Vt=r[--t];r[t++]=h(Vt+kt)}),r[--t]Vt.length){var an=Mr;Mr=kt,kt=an}e.eval=T(e.val,0,kt);var Bn=e.eval.length;if(e.val=T(e.val,Bn,e.val.length-Bn),e.eval.length==0){if(dr(u(e.props,"opt")))return t--,r[t++]="bwipp.GS1valueTooShort#3481",r[t++]="Too short",r[t++]=!1,!0}else{if(e.eval.length=Ie:fe<=Ie;fe+=he)r[t++]=0,oe(T(e.pixs,fe,e.pixx)),r[t++]=0;for(var ve=0,be=e.pixx+2;ve57)&&(r[t++]="bwipp.ean5badCharacter#4426",r[t++]="EAN-5 add-on must contain only digits",ne())}),!iu.__4446__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]),e.barchars="0123456789",e.mirrormaps=a(["11000","10100","10010","10001","01100","00110","00011","01010","01001","00101"]);for(var n in e)e.hasOwnProperty(n)&&(iu.$ctx[n]=e[n]);iu.__4446__=1,e=Object.getPrototypeOf(e)}e.checksum=0;for(var o=0;o<=4;o+=1)e.i=o,e.barchar=h(u(e.barcode,e.i)-48),e.i%2==0?e.checksum=h(e.barchar*3+e.checksum):e.checksum=h(e.barchar*9+e.checksum);e.checksum=e.checksum%10,e.mirrormap=u(e.mirrormaps,e.checksum),e.sbs=pe(31),e.txt=a(5);for(var i=0;i<=4;i+=1){if(e.i=i,e.i==0?K(e.sbs,0,u(e.encs,10)):K(e.sbs,(e.i-1)*6+7,u(e.encs,11)),fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var s=0,l=e.enclen-1;s<=l;s+=1)e.j=s,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,e.i*6+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*9+10+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}r[t++]=1/0,r[t++]=1/0;for(var c=e.sbs,d=0,f=c.length;d57)&&(r[t++]="bwipp.ean2badCharacter#4571",r[t++]="EAN-2 add-on must contain only digits",ne())}),!au.__4588__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]),e.barchars="0123456789",e.mirrormaps=a(["00","01","10","11"]);for(var n in e)e.hasOwnProperty(n)&&(au.$ctx[n]=e[n]);au.__4588__=1,e=Object.getPrototypeOf(e)}e.mirrormap=u(e.mirrormaps,ft(T(e.barcode,0,2))%4),e.sbs=pe(13),e.txt=a(2);for(var o=0;o<=1;o+=1){if(e.i=o,e.i==0?K(e.sbs,0,u(e.encs,10)):K(e.sbs,(e.i-1)*6+7,u(e.encs,11)),fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var i=0,s=e.enclen-1;i<=s;i+=1)e.j=i,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,e.i*6+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*9+10+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}r[t++]=1/0,r[t++]=1/0;for(var l=e.sbs,c=0,d=l.length;c57)&&(r[t++]="bwipp.ean13badCharacter#4715",r[t++]="EAN-13 must contain only digits",ne())}),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.ean13badAddOnLength#4719",r[t++]="Add-on for EAN-13 must be 2 or 5 digits",ne()),e.pad=pe(13),e.checksum=0;for(var n=0;n<=11;n+=1)e.i=n,e.barchar=h(u(e.barcode,e.i)-48),e.i%2==0?e.checksum=h(e.barchar+e.checksum):e.checksum=h(e.barchar*3+e.checksum);if(e.checksum=h(10-e.checksum%10)%10,e.barcode.length==13&&u(e.barcode,12)!=h(e.checksum+48)&&(r[t++]="bwipp.ean13badCheckDigit#4737",r[t++]="Incorrect EAN-13 check digit provided",ne()),K(e.pad,0,e.barcode),y(e.pad,12,h(e.checksum+48)),e.barcode=e.pad,!su.__4760__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]),e.barchars="0123456789",e.mirrormaps=a(["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var o in e)e.hasOwnProperty(o)&&(su.$ctx[o]=e[o]);su.__4760__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(59),e.txt=a(13),K(e.sbs,0,u(e.encs,10)),e.mirrormap=u(e.mirrormaps,u(e.barcode,0)-48),y(e.txt,0,a([T(e.barcode,0,1),e.textxoffset,e.textyoffset,e.textfont,e.textsize]));for(var i=1;i<=6;i+=1){if(e.i=i,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i-1)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var s=0,l=e.enclen-1;s<=l;s+=1)e.j=s,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,(e.i-1)*4+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*7+15+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}K(e.sbs,6*4+3,u(e.encs,11));for(var c=7;c<=12;c+=1)e.i=c,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,(e.i-1)*4+8,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*7+19+e.textxoffset,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,56,u(e.encs,12)),r[t++]=1/0;for(var d=e.sbs,f=0,p=d.length;f57)&&(r[t++]="bwipp.ean8badCharacter#4935",r[t++]="EAN-8 must contain only digits",ne())}),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.ean8badAddOnLength#4939",r[t++]="Add-on for EAN-8 must be 2 or 5 digits",ne()),e.pad=pe(8),e.checksum=0;for(var n=0;n<=6;n+=1)e.i=n,e.barchar=h(u(e.barcode,e.i)-48),e.i%2!=0?e.checksum=h(e.barchar+e.checksum):e.checksum=h(e.barchar*3+e.checksum);if(e.checksum=h(10-e.checksum%10)%10,e.barcode.length==8&&u(e.barcode,7)!=h(e.checksum+48)&&(r[t++]="bwipp.ean8badCheckDigit#4957",r[t++]="Incorrect EAN-8 check digit provided",ne()),K(e.pad,0,e.barcode),y(e.pad,7,h(e.checksum+48)),e.barcode=e.pad,!Zd.__4974__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]),e.barchars="0123456789";for(var o in e)e.hasOwnProperty(o)&&(Zd.$ctx[o]=e[o]);Zd.__4974__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(43),e.txt=a(8),K(e.sbs,0,u(e.encs,10));for(var i=0;i<=3;i+=1)e.i=i,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+e.textxoffset,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,4*4+3,u(e.encs,11));for(var s=4;s<=7;s+=1)e.i=s,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+8,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+e.textxoffset+4,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,40,u(e.encs,12)),r[t++]=1/0;for(var l=e.sbs,c=0,d=l.length;c57)&&(r[t++]="bwipp.upcAupcEbadCharacter#5135",r[t++]="UPC-E must contain only digits",ne())});var n=u(e.barcode,0);n!=48&&n!=49&&(r[t++]="bwipp.upcAupcEbadNumberSystem#5139",r[t++]="UPC-E must have number system 0 or 1",ne());for(var o=0,i=1;o=5){K(e.upcacode,0,T(e.barcode,0,6)),K(e.upcacode,6,"0000"),K(e.upcacode,10,T(e.barcode,6,1));break}}e.barcode.length==8&&K(e.upcacode,11,T(e.barcode,7,1)),e.barcode=e.upcacode}e.barcode.length!=11&&e.barcode.length!=12&&(r[t++]="bwipp.upcAbadLength#5177",r[t++]="UPC-A must be 11 or 12 digits",ne());for(var l=e.barcode,c=0,d=l.length;c57)&&(r[t++]="bwipp.upcAbadCharacter#5181",r[t++]="UPC-A must contain only digits",ne())}e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.upcAbadAddOnLength#5185",r[t++]="Add-on for UPC-A must be 2 or 5 digits",ne()),e.pad=pe(12),e.checksum=0;for(var p=0;p<=10;p+=1)e.i=p,e.barchar=u(e.barcode,e.i)-48,e.i%2!=0?e.checksum=e.checksum+e.barchar:e.checksum=e.checksum+e.barchar*3;if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==12&&u(e.barcode,11)!=e.checksum+48&&(r[t++]="bwipp.upcAbadCheckDigit#5203",r[t++]="Incorrect UPC check digit provided",ne()),K(e.pad,0,e.barcode),y(e.pad,11,e.checksum+48),e.barcode=e.pad,!P2.__5220__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]),e.barchars="0123456789";for(var m in e)e.hasOwnProperty(m)&&(P2.$ctx[m]=e[m]);P2.__5220__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(59),e.txt=a(12),K(e.sbs,0,u(e.encs,10));for(var g=0;g<=5;g+=1)e.i=g,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+3,e.enc),e.i==0?y(e.txt,0,a([T(e.barcode,0,1),e.textxoffset,e.textyoffset,e.textfont,e.textsize-2])):y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+13+e.textxoffset,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,6*4+3,u(e.encs,11));for(var v=6;v<=11;v+=1)e.i=v,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+8,e.enc),e.i==11?y(e.txt,11,a([T(e.barcode,11,1),e.textxoffset+107,e.textyoffset,e.textfont,e.textsize-2])):y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+e.textxoffset+17,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,56,u(e.encs,12)),r[t++]=1/0;for(var w=e.sbs,A=0,k=w.length;A57)&&(r[t++]="bwipp.upcEupcAbadCharacter#5388",r[t++]="UPC-A must contain only digits",ne())});for(var n=0,o=1;n=5&&ae(T(e.barcode,6,4),"0000")){K(e.upcecode,0,T(e.barcode,0,6)),K(e.upcecode,6,T(e.barcode,10,1));break}r[t++]="bwipp.upcEupcAnotCompressible#5416",r[t++]="UPC-A cannot be converted to a UPC-E",ne()}e.barcode.length==12&&K(e.upcecode,7,T(e.barcode,11,1)),e.barcode=e.upcecode}e.barcode.length!=7&&e.barcode.length!=8&&(r[t++]="bwipp.upcEbadLength#5426",r[t++]="UPC-E must be 7 or 8 digits",ne());for(var s=e.barcode,l=0,c=s.length;l57)&&(r[t++]="bwipp.upcEbadCharacter#5430",r[t++]="UPC-E must contain only digits",ne())}e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.upcEbadAddOnLength#5434",r[t++]="Add-on for UPC-E must be 2 or 5 digits",ne());var f=u(e.barcode,0);if(f!=48&&f!=49&&(r[t++]="bwipp.upcEbadNumberSystem#5439",r[t++]="UPC-E must have number system 0 or 1",ne()),!j2.__5457__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","111111"]),e.barchars="0123456789",e.mirrormaps=a(["000111","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var p in e)e.hasOwnProperty(p)&&(j2.$ctx[p]=e[p]);j2.__5457__=1,e=Object.getPrototypeOf(e)}for(var m=0,g=1;m=5){K(e.upcacode,0,T(e.barcode,0,6)),K(e.upcacode,6,"0000"),K(e.upcacode,10,T(e.barcode,6,1));break}}e.checksum=0;for(var v=0;v<=10;v+=1)e.i=v,e.barchar=u(e.upcacode,e.i)-48,e.i%2!=0?e.checksum=e.checksum+e.barchar:e.checksum=e.checksum+e.barchar*3;if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==8&&u(e.barcode,7)!=e.checksum+48&&(r[t++]="bwipp.upcEbadCheckDigit#5501",r[t++]="Incorrect UPC check digit provided",ne()),e.pad=pe(8),K(e.pad,0,e.barcode),y(e.pad,7,e.checksum+48),e.barcode=e.pad,e.txt=a(8),y(e.txt,0,a([T(e.barcode,0,1),e.textxoffset,e.textyoffset,e.textfont,e.textsize-2])),e.mirrormap=u(e.mirrormaps,e.checksum),u(e.barcode,0)==48){e.invt=pe(e.mirrormap.length);for(var w=0,A=e.mirrormap.length-1;w<=A;w+=1)e.i=w,u(e.mirrormap,e.i)==48?y(e.invt,e.i,49):y(e.invt,e.i,48);e.mirrormap=e.invt}e.sbs=pe(33),K(e.sbs,0,u(e.encs,10));for(var k=1;k<=6;k+=1){if(e.i=k,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i-1)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var C=0,M=e.enclen-1;C<=M;C+=1)e.j=C,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,(e.i-1)*4+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*7+13+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}y(e.txt,7,a([T(e.barcode,7,1),6*7+21+e.textxoffset,e.textyoffset,e.textfont,e.textsize-2])),K(e.sbs,27,u(e.encs,11)),r[t++]=1/0;for(var S=e.sbs,I=0,E=S.length;I=15){var n=T(e.barcode,0,4);it(n,"978-")&&it(n,"979-")&&(r[t++]="bwipp.isbn13badPrefix#5677",r[t++]="ISBN-13 prefix must be 978- or 979-",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var o=T(e.barcode,5,9),i=0,s=o.length;i=48&&c<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=2||e.numdigit!=7)&&(r[t++]="bwipp.isbn13numDashesDigits#5695",r[t++]="Incorrect number of dashes and digits for ISBN-13",ne());var d=u(e.barcode,14);if((d<48||d>57)&&(r[t++]="bwipp.isbn13character15#5698",r[t++]="ISBN-13 character 15 must be a digit",ne()),e.barcode.length==17){it(T(e.barcode,15,1),"-")&&(r[t++]="bwipp.isbn13character16#5702",r[t++]="ISBN-13 penultimate character must be a dash",ne());var f=u(e.barcode,16);(f<48||f>57)&&(r[t++]="bwipp.isbn13character17#5705",r[t++]="ISBN-13 final character must be a digit",ne())}}else{var p=u(e.barcode,0);(p<48||p>57)&&(r[t++]="bwipp.isbn10FirstDigit#5710",r[t++]="ISBN-10 first character must be a digit",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var m=T(e.barcode,1,9),g=0,v=m.length;g=48&&A<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=2||e.numdigit!=7)&&(r[t++]="bwipp.isbn10numDashesDigits#5728",r[t++]="Incorrect number of dashes and digits for ISBN-10",ne());var k=u(e.barcode,10);if((k<48||k>57)&&(r[t++]="bwipp.isbn10character11#5731",r[t++]="ISBN-10 character 11 must be a digit",ne()),e.barcode.length==13){it(T(e.barcode,11,1),"-")&&(r[t++]="bwipp.isbn10character12#5735",r[t++]="ISBN-10 penultimate character must be a dash",ne());var C=u(e.barcode,12);(C<48||C>57)&&C!=88&&(r[t++]="bwipp.isbn10character13#5738",r[t++]="ISBN-10 final character must be a digit or X",ne())}}if(e.isbntxt=e.barcode,e.isbntxt.length<=13){for(e.isbn=pe(10),e.checksum=0,e.i=0,e.n=0;e.isbnchar=h(u(e.isbntxt,e.i)-48),e.isbnchar!=-3&&(y(e.isbn,e.n,h(e.isbnchar+48)),e.n<9&&(e.checksum=h(e.checksum+(10-e.n)*e.isbnchar)),e.n=e.n+1),e.i=e.i+1,e.i!=e.isbntxt.length;);var M=h(11-e.checksum%11)%11;r[t++]="checksum",r[t++]=M,M==10&&(t--,r[t++]=40);var S=r[--t];e[r[--t]]=h(S+48),e.isbn=T(e.isbn,0,9),e.isbntxt.length==13&&u(e.isbntxt,12)!=e.checksum&&(r[t++]="bwipp.isbn10badCheckDigit#5766",r[t++]="Incorrect ISBN-10 check digit provided",ne())}if(!e.legacy||e.isbntxt.length>=15){for(e.isbntxt.length<=13&&(e.pad=pe(15),K(e.pad,0,"978-"),K(e.pad,4,T(e.isbntxt,0,11)),e.isbntxt=e.pad),e.isbn=pe(13),e.checksum=0,e.i=0,e.n=0;;){if(e.isbnchar=u(e.isbntxt,e.i)-48,e.isbnchar!=-3){if(y(e.isbn,e.n,e.isbnchar+48),e.n<12){if(r[t++]="checksum",r[t++]=e.isbnchar,e.n%2!=0){var I=r[--t];r[t++]=I*3}var E=r[--t];e[r[--t]]=h(E+e.checksum)}e.n=e.n+1}if(e.i=e.i+1,e.i==e.isbntxt.length)break}e.checksum=(10-e.checksum%10)%10+48,e.isbn=T(e.isbn,0,12),e.isbntxt.length==17&&u(e.isbntxt,16)!=e.checksum&&(r[t++]="bwipp.isbn13badCheckDigit#5801",r[t++]="Incorrect ISBN-13 check digit provided",ne())}var j=e.isbn.length==12?22:18;if(e.pad=pe(j),K(e.pad,0,"ISBN "),K(e.pad,5,e.isbntxt),y(e.pad,e.pad.length-2,45),y(e.pad,e.pad.length-1,e.checksum),e.isbntxt=e.pad,e.barcode=pe(12),e.isbn.length==9?(K(e.barcode,0,"978"),K(e.barcode,3,e.isbn)):K(e.barcode,0,e.isbn),it(e.addon,"")){var B=pe(12+e.addon.length+1);K(B,0,e.barcode),K(B,12," "),K(B,13,e.addon),e.barcode=B}y(e.options,"dontdraw",!0),y(e.options,"addongap",e.addongap),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,su();var F=r[--t];if(e[r[--t]]=F,e.includetext){if(ae(e.isbntextxoffset,null)){r[t++]="isbntextxoffset",e.isbn.length==9?r[t++]=-1:r[t++]=-12;var O=r[--t];e[r[--t]]=O}ae(e.isbntextyoffset,null)&&(e.isbntextyoffset=e.height*72+3);var N=u(e.args,"txt")!==void 0;N?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.isbntxt,e.isbntextxoffset,e.isbntextyoffset,e.isbntextfont,e.isbntextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.isbntxt,e.isbntextxoffset,e.isbntextyoffset,e.isbntextfont,e.isbntextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Bpe(){if(e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.ismntextfont="OCR-A",e.ismntextsize=8,e.ismntextxoffset=null,e.ismntextyoffset=null,e.height=1,e.addongap=12,e.legacy=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],fr(e.barcode," "),r[--t]?(e.barcode=r[--t],t--,e.addon=r[--t]):(t--,e.addon=""),e.barcode.length!=15&&e.barcode.length!=17&&e.barcode.length!=11&&e.barcode.length!=13&&(r[t++]="bwipp.ismnBadLength#5920",r[t++]="ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes",ne()),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.ismnBadAddOnLength#5923",r[t++]="Add-on for ISMN must be 2 or 5 digits",ne()),e.barcode.length>=15){it(T(e.barcode,0,4),"979-")&&(r[t++]="bwipp.ismn13badPrefix#5927",r[t++]="ISMN-13 prefix must be 979-",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var n=T(e.barcode,5,9),o=0,i=n.length;o=48&&l<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=2||e.numdigit!=7)&&(r[t++]="bwipp.ismn13numDashesDigits#5945",r[t++]="Incorrect number of dashes and digits for ISMN-13",ne());var c=u(e.barcode,14);if((c<48||c>57)&&(r[t++]="bwipp.ismn13character15#5948",r[t++]="ISMN-13 character 15 must be a digit",ne()),e.barcode.length==17){it(T(e.barcode,15,1),"-")&&(r[t++]="bwipp.ismn13character16#5952",r[t++]="ISMN-13 penultimate character must be a dash",ne());var d=u(e.barcode,16);(d<48||d>57)&&(r[t++]="bwipp.ismn13character17#5955",r[t++]="ISMN-13 final character must be a digit",ne())}}else{it(T(e.barcode,0,2),"M-")&&(r[t++]="bwipp.ismn10badPrefix#5960",r[t++]="ISMN-10 prefix must be M-",ne());var f=u(e.barcode,2);(f<48||f>57)&&(r[t++]="bwipp.ismn10character3#5963",r[t++]="ISMN-10 character 3 must be a digit",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var p=T(e.barcode,3,7),m=0,g=p.length;m=48&&w<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=1||e.numdigit!=6)&&(r[t++]="bwipp.ismn10numDashesDigits#5981",r[t++]="Incorrect number of dashes and digits for ISMN-10",ne());var A=u(e.barcode,10);if((A<48||A>57)&&(r[t++]="bwipp.ismn10character11#5984",r[t++]="ISMN-10 character 11 must be a digit",ne()),e.barcode.length==13){var k=T(e.barcode,11,1);it(k,"-")&&(r[t++]="bwipp.ismn10character12#5988",r[t++]="ISMN-10 penultimate character must be a dash",ne());var C=u(e.barcode,12);(C<48||C>57)&&C!=88&&(r[t++]="bwipp.ismn10character13#5991",r[t++]="ISMN-10 final character must be a digit or X",ne())}}for(e.ismntxt=e.barcode,e.legacytxt="",e.ismntxt.length<=13&&(e.legacytxt=e.ismntxt,e.pad=pe(e.ismntxt.length+4),K(e.pad,0,"979-0-"),K(e.pad,6,T(e.ismntxt,2,e.ismntxt.length-2)),e.ismntxt=e.pad),e.ismn=pe(13),e.checksum=0,e.i=0,e.n=0;e.ismnchar=u(e.ismntxt,e.i)-48,e.ismnchar!=-3&&(y(e.ismn,e.n,e.ismnchar+48),e.n<12&&(e.n%2==0?e.checksum=e.ismnchar+e.checksum:e.checksum=e.ismnchar*3+e.checksum),e.n=e.n+1),e.i=e.i+1,e.i!=e.ismntxt.length;);if(e.checksum=(10-e.checksum%10)%10+48,e.barcode.length==13||e.barcode.length==17){var M=e.barcode;u(M,M.length-1)!=e.checksum&&(r[t++]="bwipp.ismnBadCheckDigit#6033",r[t++]="Incorrect ISMN check digit provided",ne())}if(e.legacy&&it(e.legacytxt,"")?(e.ismntxt=e.legacytxt,e.pad=pe(18)):e.pad=pe(22),K(e.pad,0,"ISMN "),K(e.pad,5,e.ismntxt),y(e.pad,e.pad.length-2,45),y(e.pad,e.pad.length-1,e.checksum),e.ismntxt=e.pad,e.barcode=T(e.ismn,0,12),it(e.addon,"")){var S=pe(12+e.addon.length+1);K(S,0,e.barcode),K(S,12," "),K(S,13,e.addon),e.barcode=S}y(e.options,"dontdraw",!0),y(e.options,"addongap",e.addongap),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,su();var I=r[--t];if(e[r[--t]]=I,e.includetext){if(ae(e.ismntextxoffset,null)){r[t++]="ismntextxoffset",e.ismntxt.length==18?r[t++]=-1:r[t++]=-12;var E=r[--t];e[r[--t]]=E}ae(e.ismntextyoffset,null)&&(e.ismntextyoffset=e.height*72+3);var j=u(e.args,"txt")!==void 0;j?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.ismntxt,e.ismntextxoffset,e.ismntextyoffset,e.ismntextfont,e.ismntextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.ismntxt,e.ismntextxoffset,e.ismntextyoffset,e.ismntextfont,e.ismntextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Tpe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.issntextfont="OCR-A",e.issntextsize=8,e.issntextxoffset=null,e.issntextyoffset=null,e.height=1,e.addongap=12,r[t++]=e,Ot(),e.options=r[--t],e.issntxt=r[--t],fr(e.issntxt," "),r[--t]?(e.issntxt=r[--t],t--,e.seqvar=r[--t]):(t--,e.seqvar="00"),fr(e.seqvar," "),r[--t]?(e.seqvar=r[--t],t--,e.addon=r[--t]):(t--,e.addon=""),e.issntxt.length!=8&&e.issntxt.length!=9&&(r[t++]="bwipp.issnBadLength#6157",r[t++]="ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX",ne());for(var n=T(e.issntxt,0,4),o=0,i=n.length;o57)&&(r[t++]="bwipp.issnFirstThroughFourthNotNumeric#6161",r[t++]="ISSN first four characters must be numeral characters",ne())}it(T(e.issntxt,4,1),"-")&&(r[t++]="bwipp.issnNeedsDash#6165",r[t++]="ISSN fifth character must be a dash",ne());for(var l=T(e.issntxt,5,3),c=0,d=l.length;c57)&&(r[t++]="bwipp.issnSixthThroughEighthNotNumeric#6169",r[t++]="ISSN sixth through eighth characters must be numerals",ne())}if(e.issntxt.length==9){var p=u(e.issntxt,8);(p<48||p>57)&&p!=88&&(r[t++]="bwipp.issnNinthCharacterBadFormat#6174",r[t++]="ISSN ninth character must be a number or the character X",ne())}for(e.seqvar.length!=2&&(r[t++]="bwipp.issnBadSequenceVariantLength#6178",r[t++]="Sequence variant for ISSN must be 2 digits",ne()),je(e.seqvar,function(){var C=r[--t];(C<48||C>57)&&(r[t++]="bwipp.issnSequenceVariantBadCharacter#6182",r[t++]="Sequence variant for ISSN must contain only digits",ne())}),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.issnBadAddOnLength#6186",r[t++]="Add-on for ISSN must be 2 or 5 digits",ne()),e.issn=pe(8),e.checksum=0,e.i=0,e.n=0;e.issnchar=h(u(e.issntxt,e.i)-48),e.issnchar!=-3&&(y(e.issn,e.n,h(e.issnchar+48)),e.n<7&&(e.checksum=h(e.checksum+e.issnchar*(8-e.n))),e.n=e.n+1),e.i=e.i+1,e.i!=e.issntxt.length;);e.checksum=h(11-e.checksum%11)%11;var m=h(e.checksum+48);r[t++]="checksum",r[t++]=m,m==58&&(t--,r[t++]=88);var g=r[--t],v=r[--t];if(e[v]=g,e.issntxt.length==9&&u(e.issntxt,8)!=e.checksum&&(r[t++]="bwipp.issnBadCheckDigit#6209",r[t++]="Incorrect ISSN check digit provided",ne()),e.pad=pe(14),K(e.pad,0,"ISSN "),K(e.pad,5,e.issntxt),y(e.pad,13,e.checksum),e.issntxt=e.pad,e.barcode=T(e.issn,0,7),e.barcode=pe(12),K(e.barcode,0,"977"),K(e.barcode,3,e.issn),K(e.barcode,10,e.seqvar),it(e.addon,"")){var w=pe(12+e.addon.length+1);K(w,0,e.barcode),K(w,12," "),K(w,13,e.addon),e.barcode=w}y(e.options,"dontdraw",!0),y(e.options,"addongap",e.addongap),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,su();var A=r[--t];if(e[r[--t]]=A,e.includetext){ae(e.issntextxoffset,null)&&(e.issntextxoffset=10),ae(e.issntextyoffset,null)&&(e.issntextyoffset=e.height*72+3);var k=u(e.args,"txt")!==void 0;k?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.issntxt,e.issntextxoffset,e.issntextyoffset,e.issntextfont,e.issntextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.issntxt,e.issntextxoffset,e.issntextyoffset,e.issntextfont,e.issntextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Fpe(){if(e=Object.create(e),e.dontdraw=!1,e.includetext=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barlen=e.barcode.length,e.barlen!=7&&e.barlen!=8&&(r[t++]="bwipp.MandSbadLength#6305",r[t++]="M&S barcode must be 7 or 8 characters",ne()),e.barlen==7){var n=Gn(pe(8),"00000000");K(n,1,e.barcode),e.barcode=n}y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,Zd();var o=r[--t];e[r[--t]]=o;var i=u(e.args,"bbs");y(i,10,u(i,2)),y(i,11,u(i,2));var s=u(e.args,"bhs");if(y(s,10,u(s,2)),y(s,11,u(s,2)),e.txt=u(e.args,"txt"),e.barlen==7){for(var l=0;l<=6;l+=1){var c=e.txt;K(u(u(c,l),0),0,u(u(c,l+1),0))}K(u(u(e.txt,7),0),0," ")}var d=a(10);K(d,0,e.txt),e.txt=d;var f=u(e.txt,0);y(e.txt,8,pp(a(f.length),f));var p=u(e.txt,0);y(e.txt,9,pp(a(p.length),p)),y(u(e.txt,8),0,"M"),y(u(e.txt,8),1,-12),y(u(e.txt,9),0,"S");var m=u(e.txt,9);y(m,1,69),y(e.args,"txt",e.txt),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Vs(){if(e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,e.encoding="auto",e.raw=!1,e.parse=!1,e.parsefnc=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],xr(Vs),!Vs.__6406__){e=Object.create(e),e.sta=-1,e.stb=-2,e.stc=-3,e.swa=-4,e.swb=-5,e.swc=-6,e.fn1=-7,e.fn2=-8,e.fn3=-9,e.fn4=-10,e.sft=-11,e.stp=-12,e.lka=-13,e.lkc=-14;for(var n in e)e.hasOwnProperty(n)&&(Vs.$ctx[n]=e[n]);Vs.__6406__=1,e=Object.getPrototypeOf(e)}var o=e.fn1,i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC1",o],["FNC2",e.fn2],["FNC3",e.fn3],["LNKA",e.lka],["LNKC",e.lkc]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var s=r[--t];if(e[r[--t]]=s,e.msglen=e.msg.length,!Vs.__6479__){e=Object.create(e),e.charmaps=a([a([32,32,"00"]),a(["!","!","01"]),a(['"','"',"02"]),a(["#","#","03"]),a(["$","$","04"]),a(["%","%","05"]),a(["&","&","06"]),a(["'","'","07"]),a([40,40,"08"]),a([41,41,"09"]),a(["*","*","10"]),a(["+","+","11"]),a([",",",","12"]),a(["-","-","13"]),a([".",".","14"]),a(["/","/","15"]),a(["0","0","16"]),a(["1","1","17"]),a(["2","2","18"]),a(["3","3","19"]),a(["4","4","20"]),a(["5","5","21"]),a(["6","6","22"]),a(["7","7","23"]),a(["8","8","24"]),a(["9","9","25"]),a([":",":","26"]),a([";",";","27"]),a(["<","<","28"]),a(["=","=","29"]),a([">",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.fn3,e.fn3,"96"]),a([e.fn2,e.fn2,"97"]),a([e.sft,e.sft,"98"]),a([e.swc,e.swc,"99"]),a([e.swb,e.fn4,e.swb]),a([e.fn4,e.swa,e.swa]),a([e.fn1,e.fn1,e.fn1]),a([e.sta,e.sta,e.sta]),a([e.stb,e.stb,e.stb]),a([e.stc,e.stc,e.stc]),a([e.stp,e.stp,e.stp])]),e.charvals=a([new Map,new Map,new Map]);for(var l=0,c=e.charmaps.length-1;l<=c;l+=1){e.i=l,e.encs=u(e.charmaps,e.i);for(var d=0;d<=2;d+=1){e.j=d;var f=u(e.encs,e.j);if(r[t++]=f,ae(La(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2);for(var n in e)e.hasOwnProperty(n)&&(Vs.$ctx[n]=e[n]);Vs.__6479__=1,e=Object.getPrototypeOf(e)}if(y(e.seta,e.lka,u(e.seta,e.swb)),y(e.seta,e.lkc,u(e.seta,e.swc)),y(e.setb,e.lka,u(e.setb,e.swc)),y(e.setb,e.lkc,u(e.setb,e.swa)),y(e.setc,e.lka,u(e.setc,e.swa)),y(e.setc,e.lkc,u(e.setc,e.swb)),e.raw&&(e.encoding="raw"),ae(e.encoding,"raw")){for(e.cws=a(e.barcode.length),e.i=0,e.j=0;e.i!=e.barcode.length;)e.cw=ft(T(e.barcode,e.i+1,3)),y(e.cws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1;e.cws=T(e.cws,0,e.j),e.text=""}if(ae(e.encoding,"auto")){e.text=pe(e.msglen);for(var m=0,g=e.msglen-1;m<=g;m+=1){e.i=m;var v=u(e.msg,e.i);r[t++]=e.text,r[t++]=e.i,r[t++]=v,v<0&&(t--,r[t++]=32);var w=r[--t],A=r[--t];y(r[--t],A,w)}r[t++]=1/0;for(var k=0,C=e.msglen;k=0;I-=1)e.i=I,u(e.msg,e.i)>=0&&(u(e.msg,e.i)>=128?y(e.numEA,e.i,h(u(e.numEA,e.i+1)+1)):y(e.numSA,e.i,h(u(e.numSA,e.i+1)+1)));e.ea=!1,e.msgtmp=a([]);for(var E=0,j=e.msglen-1;E<=j;E+=1){if(e.i=E,e.c=u(e.msg,e.i),!Zo(e.ea,e.c<128)&&e.c>=0){e.ea?r[t++]=e.numSA:r[t++]=e.numEA;var B=u(r[--t],e.i),F=h(B+e.i)==e.msglen?3:5;B=0?r[t++]=e.c&127:r[t++]=e.c,e.msgtmp=a()}e.msg=e.msgtmp,e.msglen=e.msg.length,e.numsscr=function(){for(e.n=0,e.s=0,e.p=r[--t];!(e.p>=e.msglen);){var Ve=u(e.msg,e.p),at=u(e.setc,Ve)!==void 0;if(r[t++]=Ve,!at){t--;break}var We=r[--t];if(r[t++]=We,We<=-1){var ue=r[--t];if(ue==e.fn1&&e.s%2==0)e.s=e.s+1;else break}else t--;e.n=e.n+1,e.s=e.s+1,e.p=h(e.p+1)}r[t++]=e.n,r[t++]=e.s},e.enca=function(){y(e.cws,e.j,u(e.seta,r[--t])),e.j=e.j+1},e.encb=function(){y(e.cws,e.j,u(e.setb,r[--t])),e.j=e.j+1},e.encc=function(){var Ve=r[--t];if(r[t++]=Ve,it(La(Ve),"arraytype")){var at=u(e.setc,r[--t]);r[t++]=at}else{oe(r[--t]);var We=r[--t],ue=r[--t];r[t++]=h(h(We-48)+h(ue-48)*10)}y(e.cws,e.j,r[--t]),e.j=e.j+1},e.anotb=function(){var Ve=r[--t],at=u(e.seta,Ve)!==void 0,We=u(e.setb,Ve)!==void 0;r[t++]=at&&!We},e.bnota=function(){var Ve=r[--t],at=u(e.setb,Ve)!==void 0,We=u(e.seta,Ve)!==void 0;r[t++]=at&&!We},r[t++]=1/0;for(var O=0,N=e.msg.length;O=0;_-=1)e.i=_,r[t++]=u(e.msg,e.i),e.anotb(),r[--t]?y(e.nextanotb,e.i,0):y(e.nextanotb,e.i,h(u(e.nextanotb,e.i+1)+1)),r[t++]=u(e.msg,e.i),e.bnota(),r[--t]?y(e.nextbnota,e.i,0):y(e.nextbnota,e.i,h(u(e.nextbnota,e.i+1)+1));for(e.abeforeb=function(){var Ve=r[--t];r[t++]=Fs(u(e.nextanotb,Ve),u(e.nextbnota,Ve))},e.bbeforea=function(){var Ve=r[--t];r[t++]=Fs(u(e.nextbnota,Ve),u(e.nextanotb,Ve))},e.cws=a(e.barcode.length*2+3),e.j=0,e.msglen>0?(r[t++]=0,e.numsscr()):(r[t++]=-1,r[t++]=-1),e.nums=r[--t],e.nchars=r[--t];;){if(e.msglen==0){r[t++]=e.stb,e.enca(),e.cset="setb";break}if(e.msglen==2&&e.nums==2){r[t++]=e.stc,e.enca(),e.cset="setc";break}if(e.nums>=4){r[t++]=e.stc,e.enca(),e.cset="setc";break}if(r[t++]=0,e.abeforeb(),r[--t]){r[t++]=e.sta,e.enca(),e.cset="seta";break}r[t++]=e.stb,e.enca(),e.cset="setb";break}for(e.i=0;e.i!=e.msglen;)for(r[t++]=e.i,e.numsscr(),e.nums=r[--t],e.nchars=r[--t];;){if((ae(e.cset,"seta")||ae(e.cset,"setb"))&&e.nums>=4&&u(e.msg,e.i)!=e.fn1)if(e.nums%2==0){r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";break}else{r[t++]=u(e.msg,e.i),ae(e.cset,"seta")?e.enca():e.encb(),e.i=e.i+1,r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";break}r[t++]=ae(e.cset,"setb"),r[t++]=u(e.msg,e.i),e.anotb();var V=r[--t],$=r[--t];if($&&V){if(e.i-1||u(e.msg,e.i)==e.fn4)){if(r[t++]=e.i,e.abeforeb(),r[--t]){r[t++]=e.swa,e.encc(),e.cset="seta";break}r[t++]=e.swb,e.encc(),e.cset="setb";break}if(ae(e.cset,"seta")){r[t++]=u(e.msg,e.i),e.enca(),e.i=e.i+1;break}if(ae(e.cset,"setb")){r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1;break}if(ae(e.cset,"setc")){u(e.msg,e.i)<=-1?(r[t++]=u(e.msg,e.i),e.encc(),e.i=e.i+1):(r[t++]=T(e.msg,e.i,2),e.encc(),e.i=e.i+2);break}break}e.cws=T(e.cws,0,e.j)}var G=a(e.j+2);K(G,0,e.cws),e.cws=G,e.csum=u(e.cws,0);for(var D=1,q=e.j-1;D<=q;D+=1)e.i=D,e.csum=h(e.csum+u(e.cws,e.i)*e.i);e.csum=e.csum%103,y(e.cws,e.j,e.csum),y(e.cws,e.j+1,u(e.seta,e.stp));var W=u(e.options,"debugcws")!==void 0;if(W&&(r[t++]="bwipp.debugcws#6738",r[t++]=e.cws,ne()),!Vs.__6760__){e=Object.create(e),e.encs=a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"]);for(var n in e)e.hasOwnProperty(n)&&(Vs.$ctx[n]=e[n]);Vs.__6760__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(e.cws.length*6+1);for(var X=0,te=e.cws.length-1;X<=te;X+=1)e.i=X,K(e.sbs,e.i*6,u(e.encs,u(e.cws,e.i)));r[t++]=1/0,r[t++]=1/0;for(var se=e.sbs,de=0,ee=se.length;de57)&&(r[t++]="bwipp.ean14badCharacter#6957",r[t++]="GS1-14 must contain only digits",ne())}e.checksum=0;for(var d=0;d<=12;d+=1){if(e.i=d,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var f=r[--t];r[t++]=f*3}var p=r[--t],m=r[--t];e[r[--t]]=h(m+p)}if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==18)u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.ean14badCheckDigit#6970",r[t++]="Incorrect GS1-14 check digit provided",ne());else{var g=pe(18);K(g,0,e.barcode),y(g,17,e.checksum+48),e.barcode=g;var v=e.hasspace?2:1,w=pe(e.text.length+v);K(w,w.length-2," "),y(w,w.length-1,e.checksum+48),K(w,0,e.text),e.text=w}e.gtin=T(e.barcode,4,14),e.barcode=pe(21),K(e.barcode,0,"^FNC101");var A=e.gtin;K(e.barcode,7,A),y(e.options,"dontdraw",!0),y(e.options,"parsefnc",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,Vs();var k=r[--t];e[r[--t]]=k,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Npe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.text=e.barcode;var n=e.barcode;r[t++]=pe(n.length),r[t++]=0,je(n,function(){var C=r[--t];if(r[t++]=C,C!=32){var M=r[--t],S=r[--t],I=r[--t];y(I,S,M),r[t++]=I,r[t++]=h(S+1)}else t--});var o=r[--t];e.barcode=T(r[--t],0,o),e.hasspace=e.text.length!=e.barcode.length,e.barcode.length!=21&&e.barcode.length!=22&&(r[t++]="bwipp.sscc18badLength#7054",r[t++]="SSCC-18 must be 17 or 18 digits",ne()),it(T(e.barcode,0,4),"(00)")&&(r[t++]="bwipp.sscc18badAI#7057",r[t++]="SSCC-18 must begin with (00) application identifier",ne());for(var i=T(e.barcode,4,e.barcode.length-4),s=0,l=i.length;s57)&&(r[t++]="bwipp.sscc18badCharacter#7061",r[t++]="SSCC-18 must contain only digits",ne())}e.checksum=0;for(var d=0;d<=16;d+=1){if(e.i=d,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var f=r[--t];r[t++]=f*3}var p=r[--t],m=r[--t];e[r[--t]]=h(m+p)}if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==22)u(e.barcode,21)!=e.checksum+48&&(r[t++]="bwipp.sscc18badCheckDigit#7074",r[t++]="Incorrect SSCC-18 check digit provided",ne());else{var g=pe(22);K(g,0,e.barcode),y(g,21,e.checksum+48),e.barcode=g;var v=e.hasspace?2:1,w=pe(e.text.length+v);K(w,w.length-2," "),y(w,w.length-1,e.checksum+48),K(w,0,e.text),e.text=w}e.sscc=T(e.barcode,4,18),e.barcode=pe(25),K(e.barcode,0,"^FNC100");var A=e.sscc;K(e.barcode,7,A),y(e.options,"dontdraw",!0),y(e.options,"parsefnc",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,Vs();var k=r[--t];e[r[--t]]=k,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function lu(){if(e=Object.create(e),e.dontdraw=!1,e.includecheck=!1,e.validatecheck=!1,e.includetext=!1,e.includecheckintext=!1,e.hidestars=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],ae(e.barcode,"")&&(r[t++]="bwipp.code39emptyData#7154",r[t++]="The data must not be empty",ne()),xr(lu),!lu.__7177__){e=Object.create(e),e.encs=a(["1113313111","3113111131","1133111131","3133111111","1113311131","3113311111","1133311111","1113113131","3113113111","1133113111","3111131131","1131131131","3131131111","1111331131","3111331111","1131331111","1111133131","3111133111","1131133111","1111333111","3111111331","1131111331","3131111311","1111311331","3111311311","1131311311","1111113331","3111113311","1131113311","1111313311","3311111131","1331111131","3331111111","1311311131","3311311111","1331311111","1311113131","3311113111","1331113111","1313131111","1313111311","1311131311","1113131311","1311313111"]),e.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.charvals=new Map;for(var n=0;n<=42;n+=1)y(e.charvals,T(e.barchars,n,1),n);for(var o in e)e.hasOwnProperty(o)&&(lu.$ctx[o]=e[o]);lu.__7177__=1,e=Object.getPrototypeOf(e)}for(var i=0,s=e.barcode.length-1;i<=s;i+=1){var l=u(e.charvals,T(e.barcode,i,1))!==void 0;l||(r[t++]="bwipp.code39badCharacter#7182",r[t++]="Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%",ne())}if(r[t++]="barlen",r[t++]=e.barcode.length,e.validatecheck){var c=r[--t];r[t++]=h(c-1)}var d=r[--t];e[r[--t]]=d,e.checksum=0;for(var f=0,p=h(e.barlen-1);f<=p;f+=1)e.checksum=h(u(e.charvals,T(e.barcode,f,1))+e.checksum);e.checksum=e.checksum%43,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.code39badCheckDigit#7196",r[t++]="Incorrect Code 39 check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0);var m=e.includecheck?3:2;e.sbs=pe(h(e.barlen+m)*10);var g=e.includecheck?3:2;e.txt=a(h(e.barlen+g)),K(e.sbs,0,u(e.encs,43)),e.hidestars?y(e.txt,0,a(["",0,e.textyoffset,e.textfont,e.textsize])):y(e.txt,0,a(["*",0,e.textyoffset,e.textfont,e.textsize]));for(var v=0,w=h(e.barlen-1);v<=w;v+=1)e.i=v,e.indx=u(e.charvals,T(e.barcode,e.i,1)),K(e.sbs,e.i*10+10,u(e.encs,e.indx)),y(e.txt,e.i+1,a([T(e.barcode,e.i,1),(e.i+1)*16,e.textyoffset,e.textfont,e.textsize]));e.includecheck?(K(e.sbs,h(e.barlen*10+10),u(e.encs,e.checksum)),e.includecheckintext?y(e.txt,h(e.barlen+1),a([T(e.barchars,e.checksum,1),h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,h(e.barlen+1),a(["",h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize])),K(e.sbs,h(e.barlen*10+20),u(e.encs,43)),e.hidestars?y(e.txt,h(e.barlen+2),a(["",h(e.barlen+2)*16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,h(e.barlen+2),a(["*",h(e.barlen+2)*16,e.textyoffset,e.textfont,e.textsize]))):(K(e.sbs,h(e.barlen*10+10),u(e.encs,43)),e.hidestars?y(e.txt,h(e.barlen+1),a(["",h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,h(e.barlen+1),a(["*",h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize]))),r[t++]=1/0,r[t++]=1/0;for(var A=e.sbs,k=0,C=A.length;k=128&&(r[t++]="bwipp.code39extBadCharacter#7316",r[t++]="Code 39 Extended must contain only ASCII characters",ne())}),!E0.__7332__){e=Object.create(e),e.extencs=a(["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"]);for(var i in e)e.hasOwnProperty(i)&&(E0.$ctx[i]=e[i]);E0.__7332__=1,e=Object.getPrototypeOf(e)}e.newcode=pe(e.barlen*2),e.newtext=pe(e.barlen*2),e.j=0;for(var s=0,l=e.barlen-1;s<=l;s+=1){e.i=s,e.extchar=u(e.extencs,u(e.barcode,e.i)),K(e.newcode,e.j,e.extchar);var c=u(e.barcode,e.i);r[t++]=e.newtext,r[t++]=e.j,r[t++]=c,(c<32||c==127)&&(t--,r[t++]=32);var d=r[--t],f=r[--t];y(r[--t],f,d),e.extchar.length!=1&&y(e.newtext,e.j+1,32),e.j=e.j+e.extchar.length}e.newcode=T(e.newcode,0,e.j),e.newtext=T(e.newtext,0,e.j),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.newcode,r[t++]=e.options,lu();var p=r[--t];if(e[r[--t]]=p,e.includetext){e.txt=u(e.args,"txt");for(var m=0,g=e.newtext.length-1;m<=g;m+=1)e.i=m,e.txtentry=u(e.txt,e.i+1),y(e.txtentry,0,T(e.newtext,e.i,1)),y(e.txt,e.i+1,e.txtentry);y(e.args,"txt",e.txt)}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function $pe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.textxoffset=0,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=8&&e.barcode.length!=9&&(r[t++]="bwipp.code32badLength#7415",r[t++]="Italian Pharmacode must be 8 or 9 digits",ne()),je(e.barcode,function(){var C=r[--t];(C<48||C>57)&&(r[t++]="bwipp.code32badCharacter#7419",r[t++]="Italian Pharmacode must contain only digits",ne())}),e.checksum=0;for(var n=0;n<=7;n+=1){if(e.i=n,r[t++]=h(u(e.barcode,e.i)-48),e.i%2!=0){var o=r[--t];r[t++]=o*2}var i=r[--t];if(r[t++]=i,i>9){var s=r[--t];r[t++]=h(s-9)}e.checksum=h(r[--t]+e.checksum)}e.checksum=e.checksum%10,e.barcode.length==9&&u(e.barcode,8)!=h(e.checksum+48)&&(r[t++]="bwipp.code32badCheckDigit#7433",r[t++]="Incorrect Italian Pharmacode check digit provided",ne());var l=pe(10);K(l,0,e.barcode),y(l,8,h(e.checksum+48)),e.text=l,e.val=gr(pe(6),ft(e.text),32),e.barcode=pe(6);for(var c=0;c<=5;c+=1)y(e.barcode,c,48);K(e.barcode,6-e.val.length,e.val);for(var d=0;d<=5;d+=1){var f=u(e.barcode,d);r[t++]=d,r[t++]=f,r[t++]=f;for(var p=0,m=4;p=u("AEIO",p)){var g=r[--t];r[t++]=h(g+1)}var v=r[--t];r[t++]=v,r[t++]=v}t--;var w=r[--t];y(e.barcode,r[--t],w)}K(e.text,1,T(e.text,0,9)),y(e.text,0,65),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,lu();var A=r[--t],k=r[--t];e[k]=A,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Lpe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.textxoffset=0,e.height=1,e.pzn8=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.pzn8?e.barcode.length!=7&&e.barcode.length!=8&&(r[t++]="bwipp.pzn8badLength#7516",r[t++]="PZN8 must be 7 or 8 digits",ne()):e.barcode.length!=6&&e.barcode.length!=7&&(r[t++]="bwipp.pzn7badLength#7520",r[t++]="PZN7 must be 6 or 7 digits",ne()),je(e.barcode,function(){var f=r[--t];(f<48||f>57)&&(r[t++]="bwipp.pznBadCharacter#7525",r[t++]="PZN must contain only digits",ne())});var n=e.pzn8?9:8;e.msglen=n,e.checksum=0;for(var o=0,i=e.msglen-3;o<=i;o+=1){e.i=o;var s=e.pzn8?1:2;e.checksum=h(h(u(e.barcode,e.i)-48)*(e.i+s)+e.checksum)}e.checksum=e.checksum%11,e.checksum==10&&(r[t++]="bwipp.pznBadInputSequence#7539",r[t++]="Incorrect PZN input sequence provided",ne()),e.barcode.length==e.msglen-1&&u(e.barcode,e.msglen-2)!=h(e.checksum+48)&&(r[t++]="bwipp.pznBadCheckDigit#7543",r[t++]="Incorrect PZN check digit provided",ne());var l=pe(e.msglen);y(l,0,45),K(l,1,e.barcode),y(l,e.msglen-1,h(e.checksum+48)),e.msg=l,y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.msg,r[t++]=e.options,lu();var c=r[--t];e[r[--t]]=c,e.text=pe(e.msglen+5),K(e.text,0,"PZN - "),K(e.text,6,T(e.msg,1,e.msglen-1));var d=a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])]);y(e.args,"txt",d),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function O2(){if(e=Object.create(e),e.dontdraw=!1,e.includecheck=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.height=1,e.parse=!1,e.parsefnc=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],xr(O2),!O2.__7643__){e=Object.create(e),e.encs=a(["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141","1111411"]),e.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.charvals=new Map;for(var n=0;n<=42;n+=1)y(e.charvals,u(e.barchars,n),n);e.sft1=-1,e.sft2=-2,e.sft3=-3,e.sft4=-4;var o=e.charvals;y(o,e.sft1,43),y(e.charvals,e.sft2,44),y(e.charvals,e.sft3,45),y(e.charvals,e.sft4,46);for(var i in e)e.hasOwnProperty(i)&&(O2.$ctx[i]=e[i]);O2.__7643__=1,e=Object.getPrototypeOf(e)}var s=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["SFT$",e.sft1],["SFT%",e.sft2],["SFT/",e.sft3],["SFT+",e.sft4]]);e.fncvals=s,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var l=r[--t];e[r[--t]]=l,e.msglen=e.msg.length,je(e.msg,function(){var B=u(e.charvals,r[--t])!==void 0;B||(r[t++]="bwipp.code93BadCharacter#7660",r[t++]="Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters",ne())}),e.includecheck?e.sbs=pe(e.msglen*6+25):e.sbs=pe(e.msglen*6+13),e.txt=a(e.msglen),K(e.sbs,0,u(e.encs,47)),e.checksum1=0,e.checksum2=0;for(var c=0,d=e.msglen-1;c<=d;c+=1){e.i=c,e.indx=u(e.charvals,u(e.msg,e.i)),K(e.sbs,e.i*6+6,u(e.encs,e.indx));var f=u(e.msg,e.i);if(r[t++]="char",r[t++]=f,f<0)t--,r[t++]=" ";else{var p=pe(1);y(p,0,r[--t]),r[t++]=p}var m=r[--t];e[r[--t]]=m,y(e.txt,e.i,a([e.char,e.i*9+9,e.textyoffset,e.textfont,e.textsize])),e.checksum1=h(e.checksum1+((e.msglen-e.i-1)%20+1)*e.indx),e.checksum2=h(e.checksum2+((e.msglen-e.i)%15+1)*e.indx)}e.includecheck?(e.checksum1=e.checksum1%47,e.checksum2=h(e.checksum2+e.checksum1)%47,K(e.sbs,e.msglen*6+6,u(e.encs,e.checksum1)),K(e.sbs,e.msglen*6+12,u(e.encs,e.checksum2)),K(e.sbs,e.msglen*6+18,u(e.encs,48))):K(e.sbs,e.msglen*6+6,u(e.encs,48)),r[t++]=1/0,r[t++]=1/0;for(var g=e.sbs,v=0,w=g.length;v127&&(t--,r[t++]="bwipp.code93extbadCharacter#7797",r[t++]="Code 93 Extended only support ASCII characters with values 0 to 127",ne()),e.extchar=u(e.extencs,r[--t]),e.extlen=e.extchar.length,K(e.newcode,e.j,e.extchar);var f=u(e.barcode,e.i);r[t++]=e.newtext,r[t++]=e.k,r[t++]=f,(f<32||f==127)&&(t--,r[t++]=32);var p=r[--t],m=r[--t];y(r[--t],m,p),e.extlen!=1&&y(e.newtext,e.k+1,32),e.j=e.j+e.extlen;var g=e.extlen==1?1:2;e.k=e.k+g}e.newcode=T(e.newcode,0,e.j),e.newtext=T(e.newtext,0,e.k),y(e.options,"dontdraw",!0),y(e.options,"parsefnc",!0),r[t++]="args",r[t++]=e.newcode,r[t++]=e.options,O2();var v=r[--t];if(e[r[--t]]=v,e.includetext){e.txt=u(e.args,"txt");for(var w=0,A=e.newtext.length-1;w<=A;w+=1)e.i=w,e.txtentry=u(e.txt,e.i),y(e.txtentry,0,T(e.newtext,e.i,1)),y(e.txt,e.i,e.txtentry);y(e.args,"txt",e.txt)}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function ud(){if(e=Object.create(e),e.dontdraw=!1,e.includecheck=!1,e.includetext=!1,e.includecheckintext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],xr(ud),je(e.barcode,function(){var I=r[--t];(I<48||I>57)&&(r[t++]="bwipp.interleaved2of5badCharacter#7883",r[t++]="Interleaved 2 of 5 must contain only digits",ne())}),e.barlen=e.barcode.length,(e.barlen%2==0&&e.includecheck||e.barlen%2!=0&&!e.includecheck)&&(e.pad=pe(e.barlen+1),y(e.pad,0,48),K(e.pad,1,e.barcode),e.barcode=e.pad,e.barlen=e.barlen+1),e.includecheck){e.checksum=0;for(var n=0,o=e.barlen-1;n<=o;n+=1)e.i=n,e.i%2==0?e.checksum=e.checksum+(u(e.barcode,e.i)-48)*3:e.checksum=e.checksum+(u(e.barcode,e.i)-48);e.checksum=(10-e.checksum%10)%10,e.pad=pe(e.barlen+1),K(e.pad,0,e.barcode),y(e.pad,e.barlen,e.checksum+48),e.barcode=e.pad,e.barlen=e.barlen+1}if(!ud.__7929__){e=Object.create(e),e.encs=a(["11221","21112","12112","22111","11212","21211","12211","11122","21121","12121","1111","2111"]),e.barchars="0123456789";for(var i in e)e.hasOwnProperty(i)&&(ud.$ctx[i]=e[i]);ud.__7929__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(e.barlen*5+8),e.txt=a(e.barlen),K(e.sbs,0,u(e.encs,10));for(var s=0,l=e.barlen-1;s<=l;s+=2){e.i=s,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enca=u(e.encs,e.indx),fr(e.barchars,T(e.barcode,e.i+1,1)),t--,e.indx=r[--t].length,t-=2,e.encb=u(e.encs,e.indx),e.intl=pe(e.enca.length*2);for(var c=0,d=e.enca.length-1;c<=d;c+=1)e.j=c,e.achar=u(e.enca,e.j),e.bchar=u(e.encb,e.j),y(e.intl,e.j*2,e.achar),y(e.intl,e.j*2+1,e.bchar);K(e.sbs,e.i*5+4,e.intl),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*9+4,e.textyoffset,e.textfont,e.textsize])),e.includecheck&&!e.includecheckintext&&e.barlen-2==e.i?y(e.txt,e.i+1,a([" ",(e.i+1)*9+4,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.i+1,a([T(e.barcode,e.i+1,1),(e.i+1)*9+4,e.textyoffset,e.textfont,e.textsize]))}K(e.sbs,e.barlen*5+4,u(e.encs,11)),r[t++]=1/0,r[t++]=1/0;for(var f=e.sbs,p=0,m=f.length;p57)&&(r[t++]="bwipp.itf14badCharacter#8055",r[t++]="ITF-14 must contain only digits",ne())}e.checksum=0;for(var d=0;d<=12;d+=1){if(e.i=d,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),e.i%2==0){var f=r[--t];r[t++]=f*3}var p=r[--t],m=r[--t];e[r[--t]]=h(m+p)}if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==14)u(e.barcode,13)!=e.checksum+48&&(r[t++]="bwipp.itf14badCheckDigit#8068",r[t++]="Incorrect ITF-14 check digit provided",ne());else{var g=pe(14);K(g,0,e.barcode),y(g,13,e.checksum+48),e.barcode=g;var v=e.hasspace?2:1,w=pe(e.text.length+v);K(w,w.length-2," "),y(w,w.length-1,e.checksum+48),K(w,0,e.text),e.text=w}var A=e.options;y(A,"dontdraw",!0),y(e.options,"showborder",e.showborder),y(e.options,"borderwidth",e.borderwidth),y(e.options,"borderleft",e.borderleft),y(e.options,"borderright",e.borderright);var k=e.options;y(k,"bordertop",e.bordertop),y(e.options,"borderbottom",e.borderbottom),y(e.options,"height",e.height),y(e.options,"textyoffset",e.textyoffset),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,ud();var C=r[--t];e[r[--t]]=C,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Hpe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=11&&e.barcode.length!=12&&(r[t++]="bwipp.identcodeBadLength#8146",r[t++]="Deutsche Post Identcode must be 11 or 12 digits",ne()),je(e.barcode,function(){var m=r[--t];(m<48||m>57)&&(r[t++]="bwipp.identcodeBadCharacter#8150",r[t++]="Deutsche Post Identcode must contain only digits",ne())}),e.checksum=0;for(var n=0;n<=10;n+=1){if(e.i=n,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),e.i%2==0){var o=r[--t];r[t++]=o*4}else{var i=r[--t];r[t++]=i*9}var s=r[--t],l=r[--t];e[r[--t]]=h(l+s)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==12&&u(e.barcode,11)!=e.checksum+48&&(r[t++]="bwipp.identcodeBadCheckDigit#8163",r[t++]="Incorrect Deutsche Post Identcode check digit provided",ne());var c=pe(12);K(c,0,e.barcode),y(c,11,e.checksum+48),e.barcode=c,e.text=Gn(pe(16)," . . "),K(e.text,0,T(e.barcode,0,2)),K(e.text,3,T(e.barcode,2,3)),K(e.text,7,T(e.barcode,5,3)),K(e.text,11,T(e.barcode,8,3)),K(e.text,15,T(e.barcode,11,1)),y(e.options,"dontdraw",!0),y(e.options,"includecheck",!1);var d=e.barcode;r[t++]="args",r[t++]=d,r[t++]=e.options,ud();var f=r[--t];e[r[--t]]=f;var p=e.textsize;y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,p])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Upe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=13&&e.barcode.length!=14&&(r[t++]="bwipp.leitcodeBadLength#8236",r[t++]="Deutsche Post Leitcode must be 13 or 14 digits",ne()),je(e.barcode,function(){var m=r[--t];(m<48||m>57)&&(r[t++]="bwipp.leitcodeBadCharacter#8240",r[t++]="Deutsche Post Leitcode must contain only digits",ne())}),e.checksum=0;for(var n=0;n<=12;n+=1){if(e.i=n,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),e.i%2==0){var o=r[--t];r[t++]=o*4}else{var i=r[--t];r[t++]=i*9}var s=r[--t],l=r[--t];e[r[--t]]=h(l+s)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==14&&u(e.barcode,13)!=e.checksum+48&&(r[t++]="bwipp.leitcodeBadCheckDigit#8253",r[t++]="Incorrect Deutsche Post Leitcode check digit provided",ne());var c=pe(14);K(c,0,e.barcode),y(c,13,e.checksum+48),e.barcode=c,e.text=Gn(pe(18)," . . . "),K(e.text,0,T(e.barcode,0,5)),K(e.text,6,T(e.barcode,5,3)),K(e.text,10,T(e.barcode,8,3)),K(e.text,14,T(e.barcode,11,2)),K(e.text,17,T(e.barcode,13,1)),y(e.options,"dontdraw",!0),y(e.options,"includecheck",!1);var d=e.barcode;r[t++]="args",r[t++]=d,r[t++]=e.options,ud();var f=r[--t];e[r[--t]]=f;var p=e.textsize;y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,p])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function u1(){e=Object.create(e),e.dontdraw=!1,e.height=33/72,e.linkage=!1,e.format="omni",e.barxmult=33,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databaromniBadLength#8325",r[t++]="GS1 DataBar Omnidirectional must be 13 or 14 digits",ne()),it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databaromniBadAI#8328",r[t++]="GS1 DataBar Omnidirectional must begin with (01) application identifier",ne());for(var n=T(e.barcode,4,e.barcode.length-4),o=0,i=n.length;o57)&&(r[t++]="bwipp.databaromniBadCharacter#8332",r[t++]="GS1 DataBar Omnidirectional must contain only digits",ne())}e.barxmult<33&&(r[t++]="bwipp.databarStackedOmniBarXmult#8337",r[t++]="GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33",ne()),it(e.format,"omni")&&it(e.format,"stacked")&&it(e.format,"stackedomni")&&it(e.format,"truncated")&&(r[t++]="bwipp.databaromniBadFormat#8341",r[t++]="Valid formats are omni, stacked, stackedomni and truncated",ne()),ae(e.format,"truncated")&&(e.height=13/72),xr(u1),e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databaromniBadCheckDigit#8357",r[t++]="Incorrect GS1 DataBar Omnidirectional check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,e.txt=a(e.barcode.length);for(var m=0,g=e.barcode.length-1;m<=g;m+=1)e.i=m,y(e.txt,e.i,a([T(e.barcode,e.i,1),0,0,"",0]));e.ncr=function(){var pr=r[--t],dn=r[--t],er=h(dn-pr);if(pr=ho;qr-=1){var Rr=r[--t],_n=r[--t],Nr=r[--t];if(r[t++]=Nr,r[t++]=_n,r[t++]=Rr*qr,hp(_n,Nr)){var Eo=r[--t],nn=r[--t];r[t++]=h(nn+1),r[t++]=~~(Eo/nn)}}for(;;){var No=r[--t],wn=r[--t],ti=r[--t];if(r[t++]=ti,r[t++]=wn,r[t++]=No,jc(wn,ti))break;var oo=r[--t],ri=r[--t];r[t++]=h(ri+1),r[t++]=~~(oo/ri)}var Jn=r[--t],Ei=r[--t];r[t++]=Jn,r[t++]=Ei,t--;var mo=r[--t],pi=r[--t];r[t++]=mo,r[t++]=pi,t--},e.getRSSwidths=function(){e.oe=r[--t],e.el=r[--t],e.mw=r[--t],e.nm=r[--t],e.val=r[--t],e.out=a(e.el),e.mask=0;for(var pr=0,dn=h(e.el-2);pr<=dn;pr+=1){e.bar=pr,e.ew=1;var er=e.bar;for(e.mask=e.mask|(er<0?1>>>-er:1<=-2){r[t++]="sval",r[t++]=e.sval,r[t++]=h(h(h(e.nm-e.ew)-e.el)+e.bar),r[t++]=h(h(e.el-e.bar)-2),e.ncr();var qr=r[--t],ho=r[--t];e[r[--t]]=h(ho-qr)}if(h(e.el-e.bar)>2){e.lval=0;for(var Rr=h(h(h(h(e.nm-e.ew)-e.el)+e.bar)+2),_n=h(e.mw+1);Rr>=_n;Rr-=1)r[t++]=h(h(h(e.nm-Rr)-e.ew)-1),r[t++]=h(h(e.el-e.bar)-3),e.ncr(),e.lval=h(r[--t]+e.lval);e.sval=h(e.sval-e.lval*h(h(e.el-e.bar)-1))}else h(e.nm-e.ew)>e.mw&&(e.sval=h(e.sval-1));if(e.val=h(e.val-e.sval),e.val<0)break;e.ew=e.ew+1;var Nr=e.bar;e.mask=e.mask&~(Nr<0?1>>>-Nr:1<=8&&(e.checksum=h(e.checksum+1)),e.checksum>=72&&(e.checksum=h(e.checksum+1)),e.checklt=T(e.checkwidths,~~(e.checksum/9)*5,5),e.checkrtrev=T(e.checkwidths,e.checksum%9*5,5),e.checkrt=a(5);for(var dt=0;dt<=4;dt+=1)e.i=dt,y(e.checkrt,e.i,u(e.checkrtrev,4-e.i));if(ae(e.format,"omni")||ae(e.format,"truncated")){r[t++]=1/0;var Xe=e.d1w;r[t++]=1;for(var Pt=0,mt=Xe.length;Pt57)&&(r[t++]="bwipp.databarstackedBadCharacter#8776",r[t++]="GS1 DataBar Stacked must contain only digits",ne())}e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databarstackedBadCheckDigit#8789",r[t++]="Incorrect GS1 DataBar Stacked check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,y(e.options,"dontdraw",!0),y(e.options,"format","stacked"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,u1();var m=r[--t];e[r[--t]]=m,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function KT(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databarstackedomniBadAI#8847",r[t++]="GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier",ne()),e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databarstackedomniBadLength#8850",r[t++]="GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits",ne());for(var n=T(e.barcode,4,e.barcode.length-4),o=0,i=n.length;o57)&&(r[t++]="bwipp.databarstackedomniBadCharacter#8854",r[t++]="GS1 DataBar Stacked Omnidirectional must contain only digits",ne())}e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databarstackedomniBadCheckDigit#8867",r[t++]="Incorrect GS1 DataBar Stacked Omnidirectional check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,y(e.options,"dontdraw",!0),y(e.options,"format","stackedomni"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,u1();var m=r[--t];e[r[--t]]=m,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function XT(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databartruncatedBadLength#8925",r[t++]="GS1 DataBar Truncated must be 13 or 14 digits",ne()),it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databartruncatedBadAI#8928",r[t++]="GS1 DataBar Truncated must begin with (01) application identifier",ne());for(var n=T(e.barcode,4,e.barcode.length-4),o=0,i=n.length;o57)&&(r[t++]="bwipp.databartruncatedBadCharacter#8932",r[t++]="GS1 DataBar Truncated must contain only digits",ne())}e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databartruncatedBadCheckDigit#8945",r[t++]="Incorrect GS1 DataBar Truncated check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,y(e.options,"dontdraw",!0),y(e.options,"format","truncated"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,u1();var m=r[--t];e[r[--t]]=m,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function n1(){e=Object.create(e),e.dontdraw=!1,e.height=10/72,e.linkage=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],xr(n1),e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databarlimitedBadLength#9008",r[t++]="GS1 DataBar Limited must be 13 or 14 digits",ne()),it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databarlimitedBadAI#9011",r[t++]="GS1 DataBar Limited must begin with (01) application identifier",ne());var n=u(e.barcode,4);(n<48||n>49)&&(r[t++]="bwipp.databarlimitedBadStartDigit#9014",r[t++]="GS1 DataBar Limited must begin with 0 or 1",ne());for(var o=T(e.barcode,5,e.barcode.length-5),i=0,s=o.length;i57)&&(r[t++]="bwipp.databarlimitedBadCharacter#9018",r[t++]="GS1 DataBar Limited must contain only digits",ne())}e.checksum=0;for(var c=0;c<=12;c+=1){if(e.i=c,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var d=r[--t];r[t++]=d*3}var f=r[--t],p=r[--t];e[r[--t]]=h(p+f)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databarlimitedBadCheckDigit#9031",r[t++]="Incorrect GS1 DataBar Limited check digit provided",ne());var m=pe(18);if(K(m,0,e.barcode),y(m,17,e.checksum+48),e.barcode=m,!n1.__9042__){e=Object.create(e),e.linkval=a([2,0,1,5,1,3,3,5,3,1,0,9,6]);for(var g in e)e.hasOwnProperty(g)&&(n1.$ctx[g]=e[g]);n1.__9042__=1,e=Object.getPrototypeOf(e)}r[t++]=1/0;for(var v=T(e.barcode,4,13),w=0,A=v.length;w=le;ie-=1){var ge=r[--t],Me=r[--t],me=r[--t];if(r[t++]=me,r[t++]=Me,r[t++]=ge*ie,hp(Me,me)){var Ee=r[--t],ce=r[--t];r[t++]=h(ce+1),r[t++]=~~(Ee/ce)}}for(;;){var Pe=r[--t],He=r[--t],Ne=r[--t];if(r[t++]=Ne,r[t++]=He,r[t++]=Pe,jc(He,Ne))break;var ye=r[--t],rt=r[--t];r[t++]=h(rt+1),r[t++]=~~(ye/rt)}var Be=r[--t],Ae=r[--t];r[t++]=Be,r[t++]=Ae,t--;var Ue=r[--t],qe=r[--t];r[t++]=Ue,r[t++]=qe,t--},e.getRSSwidths=function(){e.oe=r[--t],e.el=r[--t],e.mw=r[--t],e.nm=r[--t],e.val=r[--t],e.out=a(e.el),e.mask=0;for(var xt=0,tt=h(e.el-2);xt<=tt;xt+=1){e.bar=xt,e.ew=1;var Y=e.bar;for(e.mask=e.mask|(Y<0?1>>>-Y:1<=-2){r[t++]="sval",r[t++]=e.sval,r[t++]=h(h(h(e.nm-e.ew)-e.el)+e.bar),r[t++]=h(h(e.el-e.bar)-2),e.ncr();var ie=r[--t],le=r[--t];e[r[--t]]=h(le-ie)}if(h(e.el-e.bar)>2){e.lval=0;for(var ge=h(h(h(h(e.nm-e.ew)-e.el)+e.bar)+2),Me=h(e.mw+1);ge>=Me;ge-=1)r[t++]=h(h(h(e.nm-ge)-e.ew)-1),r[t++]=h(h(e.el-e.bar)-3),e.ncr(),e.lval=h(r[--t]+e.lval);e.sval=h(e.sval-e.lval*h(h(e.el-e.bar)-1))}else h(e.nm-e.ew)>e.mw&&(e.sval=h(e.sval-1));if(e.val=h(e.val-e.sval),e.val<0)break;e.ew=e.ew+1;var me=e.bar;e.mask=e.mask&~(me<0?1>>>-me:1<22||e.segments%2!=0)&&(r[t++]="bwipp.gs1databarexpandedBadSegments#9319",r[t++]="The number of segments must be even from 2 to 22",ne());for(r[t++]=e.barcode,r[t++]="ai",Jr(),e.fncs=r[--t],e.vals=r[--t],e.ais=r[--t];;){if(e.ais.length==2&&ae(u(e.ais,0),"01")&&ae(u(e.ais,1),"3103")&&ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=32767){r[t++]="0100",r[t++]=!1;break}if(e.ais.length==2&&ae(u(e.ais,0),"01")&&ae(u(e.ais,1),"3202")&&ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=9999){r[t++]="0101",r[t++]=!1;break}if(e.ais.length==2&&ae(u(e.ais,0),"01")&&ae(u(e.ais,1),"3203")&&ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=22767){r[t++]="0101",r[t++]=!1;break}var o=e.ais.length;if(o==2||o==3){r[t++]="ai310x",r[t++]=!1;for(var i=3100;i<=3109;i+=1){var s=r[--t];r[t++]=s||ae(gr(pe(4),i,10),u(e.ais,1))}var l=r[--t];e[r[--t]]=l,r[t++]="ai320x",r[t++]=!1;for(var c=3200;c<=3209;c+=1){var d=r[--t];r[t++]=d||ae(gr(pe(4),c,10),u(e.ais,1))}var f=r[--t];if(e[r[--t]]=f,e.ais.length==3){var p=a(["11","13","15","17"]);r[t++]="aibad",r[t++]=!0;for(var m=0,g=p.length;m=1&&A<=12&&k>=0&&k<=31){if(e.ai310x&&ae(u(e.ais,2),"11")){r[t++]="0111000",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"11")){r[t++]="0111001",r[t++]=!1;break}if(e.ai310x&&ae(u(e.ais,2),"13")){r[t++]="0111010",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"13")){r[t++]="0111011",r[t++]=!1;break}if(e.ai310x&&ae(u(e.ais,2),"15")){r[t++]="0111100",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"15")){r[t++]="0111101",r[t++]=!1;break}if(e.ai310x&&ae(u(e.ais,2),"17")){r[t++]="0111110",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"17")){r[t++]="0111111",r[t++]=!1;break}}}else if(ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=99999){if(e.ai310x){r[t++]="0111000",r[t++]=!1;break}if(e.ai320x){r[t++]="0111001",r[t++]=!1;break}}}}if(e.ais.length>=2){r[t++]="ai392x",r[t++]=!1;for(var C=3920;C<=3923;C+=1){var M=r[--t];r[t++]=M||ae(gr(pe(4),C,10),u(e.ais,1))}var S=r[--t];if(e[r[--t]]=S,ae(u(e.ais,0),"01")&&e.ai392x&&ae(T(u(e.vals,0),0,1),"9")){r[t++]="01100",r[t++]=!0;break}}if(e.ais.length>=2){r[t++]="ai393x",r[t++]=!1;for(var I=3930;I<=3933;I+=1){var E=r[--t];r[t++]=E||ae(gr(pe(4),I,10),u(e.ais,1))}var j=r[--t];if(e[r[--t]]=j,ae(u(e.ais,0),"01")&&e.ai393x&&ae(T(u(e.vals,0),0,1),"9")){r[t++]="01101",r[t++]=!0;break}}if(ae(u(e.ais,0),"01")){r[t++]="1",r[t++]=!0;break}r[t++]="00",r[t++]=!0;break}if(e.gpfallow=r[--t],e.method=r[--t],e.conv12to40=function(){var mr=Gn(pe(40),"0000000000000000000000000000000000000000"),Cn=r[--t],mn=gr(pe(10),ft(T(Cn,0,3)),2);K(T(mr,0,10),10-mn.length,mn);var to=gr(pe(10),ft(T(Cn,3,3)),2);K(T(mr,10,10),10-to.length,to);var Wn=gr(pe(10),ft(T(Cn,6,3)),2);K(T(mr,20,10),10-Wn.length,Wn);var Lo=gr(pe(10),ft(T(Cn,9,3)),2);K(T(mr,30,10),10-Lo.length,Lo),r[t++]=mr,r[t++]=Cn,t--},e.conv13to44=function(){var mr=Gn(pe(44),"00000000000000000000000000000000000000000000"),Cn=r[--t],mn=gr(pe(4),ft(T(Cn,0,1)),2);K(T(mr,0,4),4-mn.length,mn),r[t++]=mr,r[t++]=mr,r[t++]=T(Cn,1,12),e.conv12to40();var to=r[--t];K(r[--t],4,to)},e.tobin=function(){var mr=pe(r[--t]);r[t++]=mr;for(var Cn=0,mn=mr.length-1;Cn<=mn;Cn+=1){var to=r[--t];y(to,Cn,48),r[t++]=to}var Wn=r[--t],Lo=gr(pe(Wn.length),r[--t],2);K(Wn,Wn.length-Lo.length,Lo),r[t++]=Wn},e.fnc1=-1,e.lnumeric=-2,e.lalphanumeric=-3,e.liso646=-4,ae(e.method,"00")&&(e.cdf=a([]),e.gpf=a([])),ae(e.method,"1")){r[t++]="cdf",r[t++]=T(u(e.vals,0),0,13),e.conv13to44();var B=r[--t];e[r[--t]]=B,r[t++]=1/0;for(var F=e.cdf,O=0,N=F.length;O2&&(r[t++]=e.fnc1),e.gpf=a(),e.ais=T(e.ais,2,e.ais.length-2),e.vals=T(e.vals,2,e.vals.length-2),e.fncs=T(e.fncs,2,e.fncs.length-2)}if(ae(e.method,"01101")){e.cdf=pe(52),r[t++]=e.cdf,r[t++]=0,r[t++]=T(u(e.vals,0),1,12),e.conv12to40();var We=r[--t],ue=r[--t];K(r[--t],ue,We),r[t++]=e.cdf,r[t++]=40,r[t++]=ft(T(u(e.ais,1),3,1)),r[t++]=2,e.tobin();var Le=r[--t],$e=r[--t];K(r[--t],$e,Le),r[t++]=e.cdf,r[t++]=42,r[t++]=ft(T(u(e.vals,1),0,3)),r[t++]=10,e.tobin();var bt=r[--t],ot=r[--t];K(r[--t],ot,bt),r[t++]=1/0;for(var st=e.cdf,Ze=0,dt=st.length;Ze2&&(r[t++]=e.fnc1),e.gpf=a(),e.ais=T(e.ais,2,e.ais.length-2),e.vals=T(e.vals,2,e.vals.length-2),e.fncs=T(e.fncs,2,e.fncs.length-2)}if(e.gpfallow?e.vlf=a(2):e.vlf=a([]),!Os.__9571__){e=Object.create(e),r[t++]=1/0;for(var Te=0;Te<=119;Te+=1){var Re=Gn(pe(2),"00"),Je=gr(pe(2),Te,11);if(K(Re,2-Je.length,Je),r[t++]=Te,r[t++]=Re,u(Re,0)==65){var It=r[--t];y(It,0,94),r[t++]=It}var Nt=r[--t];if(r[t++]=Nt,u(Nt,1)==65){var ht=r[--t];y(ht,1,94),r[t++]=ht}var xt=r[--t],tt=Gn(pe(7),"0000000"),Y=gr(pe(7),h(r[--t]+8),2);K(tt,7-Y.length,Y),r[t++]=xt,r[t++]=tt}r[t++]=e.lalphanumeric,r[t++]="0000",e.numeric=Bt(),r[t++]=1/0;for(var re=48;re<=57;re+=1)r[t++]=re,r[t++]=re-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var ie=65;ie<=90;ie+=1)r[t++]=ie,r[t++]=ie-33,r[t++]=6,e.tobin();r[t++]=42,r[t++]="111010";for(var le=44;le<=47;le+=1)r[t++]=le,r[t++]=le+15,r[t++]=6,e.tobin();r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.liso646,r[t++]="00100",e.alphanumeric=Bt(),r[t++]=1/0;for(var ge=48;ge<=57;ge+=1)r[t++]=ge,r[t++]=ge-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var Me=65;Me<=90;Me+=1)r[t++]=Me,r[t++]=Me-1,r[t++]=7,e.tobin();for(var me=97;me<=122;me+=1)r[t++]=me,r[t++]=me-7,r[t++]=7,e.tobin();r[t++]=33,r[t++]="11101000",r[t++]=34,r[t++]="11101001";for(var Ee=37;Ee<=47;Ee+=1)r[t++]=Ee,r[t++]=Ee+197,r[t++]=8,e.tobin();for(var ce=58;ce<=63;ce+=1)r[t++]=ce,r[t++]=ce+187,r[t++]=8,e.tobin();r[t++]=95,r[t++]="11111011",r[t++]=32,r[t++]="11111100",r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.lalphanumeric,r[t++]="00100",e.iso646=Bt();for(var Pe in e)e.hasOwnProperty(Pe)&&(Os.$ctx[Pe]=e[Pe]);Os.__9571__=1,e=Object.getPrototypeOf(e)}for(var He=0,Ne=e.ais.length-1;He<=Ne;He+=1){e.i=He,e.ai=u(e.ais,e.i),e.val=u(e.vals,e.i);var ye=a(e.gpf.length+e.ai.length+e.val.length);K(ye,0,e.gpf),r[t++]=ye,r[t++]=ye,r[t++]=e.gpf.length,r[t++]=e.ai,r[t++]=1/0;var rt=r[--t],Be=r[--t];r[t++]=rt,je(Be);var Ae=a(),Ue=r[--t];K(r[--t],Ue,Ae);var qe=r[--t];r[t++]=qe,r[t++]=qe,r[t++]=e.gpf.length+e.ai.length,r[t++]=e.val,r[t++]=1/0;var Fe=r[--t],lt=r[--t];r[t++]=Fe,je(lt);var gt=a(),At=r[--t];if(K(r[--t],At,gt),e.gpf=r[--t],e.i!=e.ais.length-1&&u(e.fncs,e.i)){var St=a(e.gpf.length+1);K(St,0,e.gpf),y(St,e.gpf.length,e.fnc1),e.gpf=St}}e.rembits=function(){var mr=r[--t],Cn=48,mn=~~Math.ceil(mr/12)*12;if(~~Math.ceil(mr/12)*12<48){var to=Cn;Cn=mn,mn=to}var Wn=~~(mn/12);if(r[t++]=mr,r[t++]=mn,r[t++]=Wn,Wn%e.segments==1){var Lo=r[--t],Ri=r[--t];r[t++]=h(Lo+1)*12,r[t++]=Ri,t--}else t--;var fa=r[--t],ii=r[--t];r[t++]=h(fa-ii)},e.encode=function(){var mr=r[--t];if(r[t++]=mr,it(mr,"raw")){var Cn=r[--t],mn=u(Cn,r[--t]);r[t++]=mn}else t--;var to=r[--t];r[t++]=to,to.length+e.j>=252&&(t--,r[t++]="bwipp.gs1databarexpandedTooLong#9607",r[t++]="Maximum length exceeded",ne()),r[t++]=1/0;var Wn=r[--t],Lo=r[--t];r[t++]=Wn,je(Lo,function(){var fa=r[--t];r[t++]=h(fa-48)});var Ri=a();K(e.gpfenc,e.j,Ri),e.j=Ri.length+e.j},r[t++]=1/0;for(var yt=0,Ct=e.gpf.length;yt=0;Et-=1){e.i=Et;var ut=Gn(pe(2),"00"),Dt=u(e.gpf,e.i);r[t++]=u(e.gpf,e.i),r[t++]=ut,r[t++]=ut,r[t++]=0,r[t++]=Dt,Dt==e.fnc1&&(t--,r[t++]=94);var jt=r[--t],nr=r[--t];if(y(r[--t],nr,jt),e.i57){r[t++]=e.lalphanumeric,r[t++]=e.numeric,e.encode(),e.mode="alphanumeric";break}r[t++]="rem",r[t++]=13+e.method.length+e.vlf.length+e.cdf.length+e.j,e.rembits();var Yr=r[--t];if(e[r[--t]]=Yr,e.rem>=4&&e.rem<=6){var Xt=T(Gn(pe(6),"000000"),0,e.rem),en=gr(pe(4),h(u(e.gpf,e.i)-47),2);K(Xt,4-en.length,en),r[t++]=Xt,r[t++]="raw",e.encode(),e.i=e.i+1;break}else{var kr=pe(2);y(kr,0,u(e.gpf,e.i)),y(kr,1,94),r[t++]=kr,r[t++]=e.numeric,e.encode(),e.i=e.i+1;break}}if(ae(e.mode,"alphanumeric")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric",e.i=e.i+1;break}var Kr=u(e.gpf,e.i),pr=u(e.iso646,Kr)!==void 0,dn=u(e.alphanumeric,Kr)!==void 0;if(pr&&!dn){r[t++]=e.liso646,r[t++]=e.alphanumeric,e.encode(),e.mode="iso646";break}if(u(e.numericruns,e.i)>=6){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}var er=u(e.numericruns,e.i);if(er>=4&&h(er+e.i)==e.gpf.length){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.alphanumeric,e.encode(),e.i=e.i+1;break}if(ae(e.mode,"iso646")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.iso646,e.encode(),e.mode="numeric",e.i=e.i+1;break}if(u(e.numericruns,e.i)>=4&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lnumeric,r[t++]=e.iso646,e.encode(),e.mode="numeric";break}if(u(e.alphanumericruns,e.i)>=5&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lalphanumeric,r[t++]=e.iso646,e.encode(),e.mode="alphanumeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.iso646,e.encode(),e.i=e.i+1;break}}e.gpf=T(e.gpfenc,0,e.j);var jn=13+e.method.length+e.vlf.length+e.cdf.length+e.gpf.length;r[t++]=jn,r[t++]=jn,e.rembits();var qr=r[--t];if(e.pad=a(qr),r[t++]=qr,e.vlf.length!=0){var ho=r[--t],Rr=~~(h(r[--t]+ho)/12);y(e.vlf,0,Rr%2);var _n=Rr<=14?0:1;y(e.vlf,1,_n)}else t-=2;if(e.pad.length>0){for(var Nr=0,Eo=e.pad.length-1;Nr<=Eo;Nr+=5){e.i=Nr;var nn=e.pad,No=e.i,wn=a([0,0,1,0,0]),ti=e.pad,oo=e.i,ri=5,Jn=ti.length-oo;if(ti.length-oo>5){var Ei=ri;ri=Jn,Jn=Ei}K(nn,No,T(wn,0,Jn))}ae(e.mode,"numeric")&&(r[t++]=1/0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.pad),e.pad=T(a(),0,e.pad.length))}r[t++]=1/0;var mo=e.linkage?1:0;if(r[t++]=mo,je(e.method,function(){var mr=r[--t];r[t++]=h(mr-48)}),oe(e.vlf),oe(e.cdf),oe(e.gpf),oe(e.pad),e.binval=a(),e.datalen=~~(e.binval.length/12),e.ncr=function(){var mr=r[--t],Cn=r[--t],mn=h(Cn-mr);if(mr=Lo;Wn-=1){var Ri=r[--t],fa=r[--t],ii=r[--t];if(r[t++]=ii,r[t++]=fa,r[t++]=Ri*Wn,hp(fa,ii)){var vs=r[--t],os=r[--t];r[t++]=h(os+1),r[t++]=~~(vs/os)}}for(;;){var Ga=r[--t],Va=r[--t],Ea=r[--t];if(r[t++]=Ea,r[t++]=Va,r[t++]=Ga,jc(Va,Ea))break;var Ma=r[--t],bs=r[--t];r[t++]=h(bs+1),r[t++]=~~(Ma/bs)}var Ns=r[--t],ws=r[--t];r[t++]=Ns,r[t++]=ws,t--;var Qa=r[--t],Wa=r[--t];r[t++]=Qa,r[t++]=Wa,t--},e.getRSSwidths=function(){e.oe=r[--t],e.el=r[--t],e.mw=r[--t],e.nm=r[--t],e.val=r[--t],e.out=a(e.el),e.mask=0;for(var mr=0,Cn=h(e.el-2);mr<=Cn;mr+=1){e.bar=mr,e.ew=1;var mn=e.bar;for(e.mask=e.mask|(mn<0?1>>>-mn:1<=-2){r[t++]="sval",r[t++]=e.sval,r[t++]=h(h(h(e.nm-e.ew)-e.el)+e.bar),r[t++]=h(h(e.el-e.bar)-2),e.ncr();var Wn=r[--t],Lo=r[--t];e[r[--t]]=h(Lo-Wn)}if(h(e.el-e.bar)>2){e.lval=0;for(var Ri=h(h(h(h(e.nm-e.ew)-e.el)+e.bar)+2),fa=h(e.mw+1);Ri>=fa;Ri-=1)r[t++]=h(h(h(e.nm-Ri)-e.ew)-1),r[t++]=h(h(e.el-e.bar)-3),e.ncr(),e.lval=h(r[--t]+e.lval);e.sval=h(e.sval-e.lval*h(h(e.el-e.bar)-1))}else h(e.nm-e.ew)>e.mw&&(e.sval=h(e.sval-1));if(e.val=h(e.val-e.sval),e.val<0)break;e.ew=e.ew+1;var ii=e.bar;e.mask=e.mask&~(ii<0?1>>>-ii:1<=0;hn-=1)r[t++]=u(e.row,hn);wr(e.row),t--;for(var Qn=e.sep.length-1;Qn>=0;Qn-=1)r[t++]=u(e.sep,Qn);wr(e.sep),t--}y(e.rows,e.r,e.row),y(e.seps,e.r,e.sep)}e.pixx=u(e.rows,0).length,r[t++]=1/0;for(var ao=0,Co=e.pixx;ao6)&&(r[t++]="bwipp.gs1northamericancouponBadVLI#10244",r[t++]="The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6",ne()),e.gcp=T(e.val,1,h(e.vli+6)),e.cod=T(e.val,h(e.vli+7),6),e.coupontext=pe(e.gcp.length+7),K(e.coupontext,0,e.gcp),K(e.coupontext,e.gcp.length,"-"),K(e.coupontext,e.gcp.length+1,e.cod),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,d8();var n=r[--t];if(e[r[--t]]=n,e.includetext){ae(e.coupontextxoffset,null)&&(e.coupontextxoffset=0),ae(e.coupontextyoffset,null)&&(e.coupontextyoffset=h(u(e.args,"height")*72+3));var o=u(e.args,"txt")!==void 0;o?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.coupontext,e.coupontextxoffset,e.coupontextyoffset,e.coupontextfont,e.coupontextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.coupontext,e.coupontextxoffset,e.coupontextyoffset,e.coupontextfont,e.coupontextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function Vpe(){e=Object.create(e),e.dontdraw=!1,e.height=8*2.835/72,e.nwidth=.5*2.835,e.wwidth=1.5*2.835,e.swidth=1*2.835,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],(e.barcode.length<1||e.barcode.length>6)&&(r[t++]="bwipp.pharmacodeBadLength#10324",r[t++]="Pharmacode must be 1 to 6 digits",ne()),je(e.barcode,function(){var A=r[--t];(A<48||A>57)&&(r[t++]="bwipp.pharmacodeBadCharacter#10328",r[t++]="Pharmacode must contain only digits",ne())});var n=ft(e.barcode);(n<3||n>131070)&&(r[t++]="bwipp.pharmacodeBadValue#10332",r[t++]="Pharmacode value must be between 3 and 131070",ne()),e.txt=a(e.barcode.length);for(var o=0,i=e.barcode.length-1;o<=i;o+=1)e.i=o,y(e.txt,e.i,a([T(e.barcode,e.i,1),0,0,"",0]));e.barcode=gr(pe(17),ft(e.barcode)+1,2),e.barcode=T(e.barcode,1,e.barcode.length-1),e.barlen=e.barcode.length,e.sbs=a(e.barlen*2);for(var s=0,l=e.barlen-1;s<=l;s+=1)e.i=s,e.enc=T(e.barcode,e.i,1),ae(e.enc,"0")?y(e.sbs,e.i*2,e.nwidth):y(e.sbs,e.i*2,e.wwidth),y(e.sbs,e.i*2+1,e.swidth);r[t++]=1/0;var c=e.sbs;r[t++]=1/0;for(var d=0,f=~~((e.sbs.length+1)/2);d8)&&(r[t++]="bwipp.pharmacode2BadLength#10413",r[t++]="Two-track Pharmacode must be 1 to 6 digits",ne()),je(e.barcode,function(){var A=r[--t];(A<48||A>57)&&(r[t++]="bwipp.pharmacode2badCharacter#10417",r[t++]="Two-track Pharmacode must contain only digits",ne())});var n=ft(e.barcode);(n<4||n>64570080)&&(r[t++]="bwipp.pharmacode2badValue#10421",r[t++]="Two-track Pharmacode value must be between 4 and 64570080",ne()),e.txt=a(e.barcode.length);for(var o=0,i=e.barcode.length-1;o<=i;o+=1)e.i=o,y(e.txt,e.i,a([T(e.barcode,e.i,1),0,0,"",0]));for(e.encstr=pe(16),e.sbs=a(32),e.bar=1/25.4*e.height,e.spc=1/25.4*72,e.i=15,e.val=ft(e.barcode);e.val!=0;){var s=e.val%3;e.val=~~(h(e.val-u(a([3,1,2]),s))/3),y(e.encstr,e.i,u(a([2,0,1]),s)),e.i=e.i-1}e.encstr=T(e.encstr,e.i+1,15-e.i),e.bhs=a(e.encstr.length),e.bbs=a(e.encstr.length);for(var l=0,c=e.encstr.length-1;l<=c;l+=1){e.i=l;var d=u(e.encstr,e.i);y(e.bhs,e.i,e.bar*u(a([1,1,2]),d)),y(e.bbs,e.i,u(a([0,e.bar,0]),d))}r[t++]=1/0;var f=e.bhs,p=e.bbs;r[t++]=1/0;for(var m=0,g=e.encstr.length*2;m57)&&(r[t++]="bwipp.code2of5badCharacter#10528",r[t++]="Code 25 must contain only digits",ne())}),r[t++]="barlen",r[t++]=e.barcode.length,e.validatecheck){var n=r[--t];r[t++]=h(n-1)}var o=r[--t];e[r[--t]]=o,e.checksum=0;for(var i=0,s=h(e.barlen-1);i<=s;i+=1){if(e.i=i,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),h(e.barlen-e.i)%2!=0){var l=r[--t];r[t++]=l*3}var c=r[--t],d=r[--t];e[r[--t]]=h(d+c)}if(e.checksum=(10-e.checksum%10)%10,e.validatecheck&&(u(e.barcode,e.barlen)!=e.checksum+48&&(r[t++]="bwipp.code2of5badCheckDigit#10542",r[t++]="Incorrect Code 25 check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0),!Ol.__10574__){e=Object.create(e);var f=new Map([["industrial",a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","313111","31113"])],["iata",a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","1111","311"])],["matrix",a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","311111","31111"])],["coop",a(["331111","111331","113131","113311","131131","131311","133111","311131","311311","313111","3131","133"])],["datalogic",a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","1111","311"])]]);e.versions=f;for(var p in e)e.hasOwnProperty(p)&&(Ol.$ctx[p]=e[p]);Ol.__10574__=1,e=Object.getPrototypeOf(e)}var m=u(e.versions,e.version)!==void 0;m||(r[t++]="bwipp.code2of5badVersion#10577",r[t++]="Unrecognised Code 25 version",ne()),e.encs=u(e.versions,e.version),e.cs=u(e.encs,0).length,r[t++]="cw",r[t++]=0,je(u(e.encs,0),function(){var _=r[--t],V=r[--t];r[t++]=h(V+h(_-48))});var g=r[--t];e[r[--t]]=g,e.ss=u(e.encs,10).length,r[t++]="sw",r[t++]=0,je(u(e.encs,10),function(){var _=r[--t],V=r[--t];r[t++]=h(V+h(_-48))});var v=r[--t];e[r[--t]]=v;var w=u(e.encs,11);if(e.es=w.length,!Ol.__10590__){e=Object.create(e),e.barchars="0123456789";for(var p in e)e.hasOwnProperty(p)&&(Ol.$ctx[p]=e[p]);Ol.__10590__=1,e=Object.getPrototypeOf(e)}if(r[t++]="sbs",r[t++]=e.barlen,e.includecheck){var A=r[--t];r[t++]=h(A+1)}var k=pe(h(h(r[--t]*e.cs+e.ss)+e.es));if(e[r[--t]]=k,r[t++]="txt",r[t++]=e.barlen,e.includecheck){var C=r[--t];r[t++]=h(C+1)}var M=a(r[--t]);e[r[--t]]=M,K(e.sbs,0,u(e.encs,10));for(var S=0,I=h(e.barlen-1);S<=I;S+=1)e.i=S,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*e.cs+e.ss,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),h(e.i*e.cw+e.sw),e.textyoffset,e.textfont,e.textsize]));e.includecheck?(K(e.sbs,h(e.barlen*e.cs+e.ss),u(e.encs,e.checksum)),K(e.sbs,h(h(e.barlen*e.cs+e.cs)+e.ss),u(e.encs,11)),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),h(e.barlen*e.cw+e.sw),e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a([" ",h(e.barlen*e.cw+e.sw),e.textyoffset,e.textfont,e.textsize]))):K(e.sbs,h(e.barlen*e.cs+e.ss),u(e.encs,11)),r[t++]=1/0,r[t++]=1/0,je(e.sbs,function(){var _=r[--t];r[t++]=h(_-48)});var E=a();r[t++]=1/0;for(var j=0,B=~~((e.sbs.length+1)/2);j=10?2:1;r[t++]=d}else r[t++]=0;var f=r[--t];e[r[--t]]=f,e.checksum1=0,e.checksum2=0;for(var p=0,m=e.barlen-1;p<=m;p+=1)e.i=p,e.indx=u(e.charvals,T(e.barcode,e.i,1)),e.checksum1=h(e.checksum1+((e.barlen-e.i-1)%10+1)*e.indx),e.checksum2=h(e.checksum2+((e.barlen-e.i)%9+1)*e.indx);if(e.checksum1=e.checksum1%11,e.checksum2=h(e.checksum2+e.checksum1)%11,e.validatecheck){if(e.numchecks==1){var g=e.checksum1;u(e.barcode,e.barlen)!=u(e.barchars,g)&&(r[t++]="bwipp.code11badCheckDigit#10972",r[t++]="Incorrect Code 11 check digit provided",ne())}else(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum1)||u(e.barcode,e.barlen+1)!=u(e.barchars,e.checksum2))&&(r[t++]="bwipp.code11badCheckDigits#10977",r[t++]="Incorrect Code 11 check digits provided",ne());e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0}e.sbs=pe(h(h(e.barlen+e.numchecks)*6+12)),e.txt=a(h(e.barlen+e.numchecks)),K(e.sbs,0,u(e.encs,11)),e.xpos=8;for(var v=0,w=e.barlen-1;v<=w;v+=1){e.i=v,e.indx=u(e.charvals,T(e.barcode,e.i,1)),e.enc=u(e.encs,e.indx),K(e.sbs,e.i*6+6,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.xpos,e.textyoffset,e.textfont,e.textsize]));for(var A=0;A<=5;A+=1)e.xpos=h(h(u(e.enc,A)-48)+e.xpos)}if(e.includecheck)if(e.barlen>=10){if(K(e.sbs,e.barlen*6+6,u(e.encs,e.checksum1)),K(e.sbs,e.barlen*6+12,u(e.encs,e.checksum2)),e.includecheckintext){y(e.txt,e.barlen,a([T(e.barchars,e.checksum1,1),e.xpos,e.textyoffset,e.textfont,e.textsize])),e.enc=u(e.encs,e.checksum1);for(var k=0;k<=5;k+=1)e.xpos=h(h(u(e.enc,k)-48)+e.xpos);y(e.txt,e.barlen+1,a([T(e.barchars,e.checksum2,1),e.xpos,e.textyoffset,e.textfont,e.textsize]))}else y(e.txt,e.barlen,a(["",e.xpos,e.textyoffset,e.textfont,e.textsize])),y(e.txt,e.barlen+1,a(["",e.xpos,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,e.barlen*6+18,u(e.encs,11))}else K(e.sbs,e.barlen*6+6,u(e.encs,e.checksum1)),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum1,1),e.xpos,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a(["",e.xpos,e.textyoffset,e.textfont,e.textsize])),K(e.sbs,e.barlen*6+12,u(e.encs,11));else K(e.sbs,e.barlen*6+6,u(e.encs,11));r[t++]=1/0,r[t++]=1/0;for(var C=e.sbs,M=0,S=C.length;M19)&&(r[t++]="bwipp.bc412semivalidateBadLength#11125",r[t++]="BC412 semi with check digit must be 8 to 19 characters long",ne()):(e.barcode.length<7||e.barcode.length>18)&&(r[t++]="bwipp.bc412semiBadLength#11129",r[t++]="BC412 semi must be 7 to 18 characters long",ne()),e.barlen=e.barcode.length,e.validatecheck||(e.barlen=e.barlen+1,e.sbarcode=pe(e.barlen),y(e.sbarcode,0,u(e.barcode,0)),y(e.sbarcode,1,48),K(e.sbarcode,2,T(e.barcode,1,e.barlen-2)),e.barcode=e.sbarcode),e.sumodd=0,e.sumeven=0;for(var c=0,d=e.barlen-1;c<=d;c+=1)e.i=c,r[t++]=u(e.charvals,T(e.barcode,e.i,1)),e.i%2==0?e.sumodd=h(r[--t]+e.sumodd):e.sumeven=h(r[--t]+e.sumeven);e.checksum=h(e.sumodd%35+e.sumeven%35*2)%35,e.validatecheck?e.checksum!=0&&(r[t++]="bwipp.bc412semiBadCheckDigit#11155",r[t++]="Incorrect BC412 semi check digit provided",ne()):(e.checksum=e.checksum*17%35,y(e.barcode,1,u(e.barchars,e.checksum)))}else{if(r[t++]="barlen",r[t++]=e.barcode.length,e.validatecheck){var f=r[--t];r[t++]=h(f-1)}var p=r[--t];e[r[--t]]=p,e.checksum=0;for(var m=0,g=e.barlen-1;m<=g;m+=1)e.checksum=h(u(e.charvals,T(e.barcode,m,1))+e.checksum);e.checksum=e.checksum%35,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.bc412badCheckDigit#11172",r[t++]="Incorrect BC412 check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0)}if(!Wu.__11191__){e=Object.create(e),e.encs=a(["11111115","13111212","11131113","12111213","12121311","13131111","12111312","11131212","11121411","11151111","15111111","11111511","12131211","13121112","13111311","11111214","12121113","11111313","13111113","11121213","11141112","11121312","11141211","14121111","12121212","11131311","13121211","12111411","14111211","11111412","12111114","14111112","12141111","11121114","12131112","12","111"]);for(var o in e)e.hasOwnProperty(o)&&(Wu.$ctx[o]=e[o]);Wu.__11191__=1,e=Object.getPrototypeOf(e)}e.sbs=pe((e.barlen+1)*8+5),e.includecheck?e.txt=a(e.barlen+1):e.txt=a(e.barlen),e.includestartstop?(K(e.sbs,0,u(e.encs,35)),e.pos=2,e.txtpos=3):(e.pos=0,e.txtpos=0);for(var v=0,w=e.barlen-1;v<=w;v+=1)e.i=v,e.indx=u(e.charvals,T(e.barcode,e.i,1)),K(e.sbs,e.pos,u(e.encs,e.indx)),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*12+e.txtpos,e.textyoffset,e.textfont,e.textsize])),e.pos=e.pos+8;e.includecheck&&(K(e.sbs,e.pos,u(e.encs,e.checksum)),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),e.barlen*12+e.txtpos,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a(["",e.barlen*12+e.txtpos,e.textyoffset,e.textfont,e.textsize])),e.pos=e.pos+8),e.includestartstop&&(K(e.sbs,e.pos,u(e.encs,36)),e.pos=e.pos+3),e.sbs=T(e.sbs,0,e.pos),r[t++]=1/0,r[t++]=1/0;for(var A=e.sbs,k=0,C=A.length;k57)&&(r[t++]="bwipp.onecodeBadCharacter#11465",r[t++]="The data must contain only digits",ne())}),e.barlen!=20&&e.barlen!=25&&e.barlen!=29&&e.barlen!=31&&(r[t++]="bwipp.onecodeInvalidLength#11470",r[t++]="The data must be 20, 25, 29 or 31 digits",ne()),r[t++]=1/0;var n=ae(T(e.barcode,5,1),"9")?14:11;r[t++]=2,r[t++]=2,r[t++]=5,r[t++]=5,r[t++]=n,r[t++]=n,r[t++]=20,r[t++]=20,r[t++]=25,r[t++]=25,r[t++]=29,r[t++]=29,e.txtdict=Bt(),e.txt=a(e.barlen+6),e.spacecnt=0;for(var o=0,i=e.barlen-1;o<=i;o+=1){e.i=o;var s=u(e.txtdict,e.i)!==void 0;s&&(y(e.txt,e.i+e.spacecnt,a([" ",0,0,"",0])),e.spacecnt=e.spacecnt+1),y(e.txt,e.i+e.spacecnt,a([T(e.barcode,e.i,1),0,0,"",0]))}if(e.txt=T(e.txt,0,e.barcode.length+e.spacecnt),e.normalize=function(){e.base=r[--t],e.num=r[--t];for(var ue=e.num.length-1;ue>=1;ue-=1){e.i=ue;var Le=e.num,$e=e.i;y(Le,$e-1,h(u(Le,$e-1)+~~(u(e.num,e.i)/e.base))),y(e.num,e.i,u(e.num,e.i)%e.base)}for(;!Fs(u(e.num,0),e.base);)r[t++]=1/0,r[t++]=0,oe(e.num),e.num=a(),y(e.num,0,h(u(e.num,0)+~~(u(e.num,1)/e.base))),y(e.num,1,u(e.num,1)%e.base);r[t++]=1/0,e.i=!0;for(var bt=e.num,ot=0,st=bt.length;ot=0;j-=1){e.i=j;for(var B=0,F=e.bintmp.length-2;B<=F;B+=1){e.j=B;var O=e.bintmp,N=e.j;y(O,N+1,h(u(O,N+1)+u(e.bintmp,e.j)%256*10)),y(e.bintmp,e.j,~~(u(e.bintmp,e.j)/256))}y(e.bytes,e.i,u(e.bintmp,e.bintmp.length-1)%256);var H=e.bintmp,L=e.bintmp;y(H,L.length-1,~~(u(H,L.length-1)/256))}e.fcs=2047,e.dat=u(e.bytes,0)<<5;for(var _=0,V=6;_=0;G-=1){e.i=G;var D=e.i==9?636:1365;e.b=D;for(var q=0,W=e.binval.length-2;q<=W;q+=1){e.j=q;var X=e.binval,te=e.j;y(X,te+1,h(u(X,te+1)+u(e.binval,e.j)%e.b*10)),y(e.binval,e.j,~~(u(e.binval,e.j)/e.b))}y(e.codewords,e.i,u(e.binval,e.binval.length-1)%e.b);var se=e.binval,de=e.binval;y(se,de.length-1,~~(u(se,de.length-1)/e.b))}if(y(e.codewords,9,u(e.codewords,9)*2),e.fcs&1024&&y(e.codewords,0,h(u(e.codewords,0)+659)),!U1.__11698__){e=Object.create(e),e.tab513=a([31,7936,47,7808,55,7552,59,7040,61,6016,62,3968,79,7744,87,7488,91,6976,93,5952,94,3904,103,7360,107,6848,109,5824,110,3776,115,6592,117,5568,118,3520,121,5056,122,3008,124,1984,143,7712,151,7456,155,6944,157,5920,158,3872,167,7328,171,6816,173,5792,174,3744,179,6560,181,5536,182,3488,185,5024,186,2976,188,1952,199,7264,203,6752,205,5728,206,3680,211,6496,213,5472,214,3424,217,4960,218,2912,220,1888,227,6368,229,5344,230,3296,233,4832,234,2784,236,1760,241,4576,242,2528,244,1504,248,992,271,7696,279,7440,283,6928,285,5904,286,3856,295,7312,299,6800,301,5776,302,3728,307,6544,309,5520,310,3472,313,5008,314,2960,316,1936,327,7248,331,6736,333,5712,334,3664,339,6480,341,5456,342,3408,345,4944,346,2896,348,1872,355,6352,357,5328,358,3280,361,4816,362,2768,364,1744,369,4560,370,2512,372,1488,376,976,391,7216,395,6704,397,5680,398,3632,403,6448,405,5424,406,3376,409,4912,410,2864,412,1840,419,6320,421,5296,422,3248,425,4784,426,2736,428,1712,433,4528,434,2480,436,1456,440,944,451,6256,453,5232,454,3184,457,4720,458,2672,460,1648,465,4464,466,2416,468,1392,472,880,481,4336,482,2288,484,1264,488,752,527,7688,535,7432,539,6920,541,5896,542,3848,551,7304,555,6792,557,5768,558,3720,563,6536,565,5512,566,3464,569,5e3,570,2952,572,1928,583,7240,587,6728,589,5704,590,3656,595,6472,597,5448,598,3400,601,4936,602,2888,604,1864,611,6344,613,5320,614,3272,617,4808,618,2760,620,1736,625,4552,626,2504,628,1480,632,968,647,7208,651,6696,653,5672,654,3624,659,6440,661,5416,662,3368,665,4904,666,2856,668,1832,675,6312,677,5288,678,3240,681,4776,682,2728,684,1704,689,4520,690,2472,692,1448,696,936,707,6248,709,5224,710,3176,713,4712,714,2664,716,1640,721,4456,722,2408,724,1384,728,872,737,4328,738,2280,740,1256,775,7192,779,6680,781,5656,782,3608,787,6424,789,5400,790,3352,793,4888,794,2840,796,1816,803,6296,805,5272,806,3224,809,4760,810,2712,812,1688,817,4504,818,2456,820,1432,824,920,835,6232,837,5208,838,3160,841,4696,842,2648,844,1624,849,4440,850,2392,852,1368,865,4312,866,2264,868,1240,899,6200,901,5176,902,3128,905,4664,906,2616,908,1592,913,4408,914,2360,916,1336,929,4280,930,2232,932,1208,961,4216,962,2168,964,1144,1039,7684,1047,7428,1051,6916,1053,5892,1054,3844,1063,7300,1067,6788,1069,5764,1070,3716,1075,6532,1077,5508,1078,3460,1081,4996,1082,2948,1084,1924,1095,7236,1099,6724,1101,5700,1102,3652,1107,6468,1109,5444,1110,3396,1113,4932,1114,2884,1116,1860,1123,6340,1125,5316,1126,3268,1129,4804,1130,2756,1132,1732,1137,4548,1138,2500,1140,1476,1159,7204,1163,6692,1165,5668,1166,3620,1171,6436,1173,5412,1174,3364,1177,4900,1178,2852,1180,1828,1187,6308,1189,5284,1190,3236,1193,4772,1194,2724,1196,1700,1201,4516,1202,2468,1204,1444,1219,6244,1221,5220,1222,3172,1225,4708,1226,2660,1228,1636,1233,4452,1234,2404,1236,1380,1249,4324,1250,2276,1287,7188,1291,6676,1293,5652,1294,3604,1299,6420,1301,5396,1302,3348,1305,4884,1306,2836,1308,1812,1315,6292,1317,5268,1318,3220,1321,4756,1322,2708,1324,1684,1329,4500,1330,2452,1332,1428,1347,6228,1349,5204,1350,3156,1353,4692,1354,2644,1356,1620,1361,4436,1362,2388,1377,4308,1378,2260,1411,6196,1413,5172,1414,3124,1417,4660,1418,2612,1420,1588,1425,4404,1426,2356,1441,4276,1442,2228,1473,4212,1474,2164,1543,7180,1547,6668,1549,5644,1550,3596,1555,6412,1557,5388,1558,3340,1561,4876,1562,2828,1564,1804,1571,6284,1573,5260,1574,3212,1577,4748,1578,2700,1580,1676,1585,4492,1586,2444,1603,6220,1605,5196,1606,3148,1609,4684,1610,2636,1617,4428,1618,2380,1633,4300,1634,2252,1667,6188,1669,5164,1670,3116,1673,4652,1674,2604,1681,4396,1682,2348,1697,4268,1698,2220,1729,4204,1730,2156,1795,6172,1797,5148,1798,3100,1801,4636,1802,2588,1809,4380,1810,2332,1825,4252,1826,2204,1857,4188,1858,2140,1921,4156,1922,2108,2063,7682,2071,7426,2075,6914,2077,5890,2078,3842,2087,7298,2091,6786,2093,5762,2094,3714,2099,6530,2101,5506,2102,3458,2105,4994,2106,2946,2119,7234,2123,6722,2125,5698,2126,3650,2131,6466,2133,5442,2134,3394,2137,4930,2138,2882,2147,6338,2149,5314,2150,3266,2153,4802,2154,2754,2161,4546,2162,2498,2183,7202,2187,6690,2189,5666,2190,3618,2195,6434,2197,5410,2198,3362,2201,4898,2202,2850,2211,6306,2213,5282,2214,3234,2217,4770,2218,2722,2225,4514,2226,2466,2243,6242,2245,5218,2246,3170,2249,4706,2250,2658,2257,4450,2258,2402,2273,4322,2311,7186,2315,6674,2317,5650,2318,3602,2323,6418,2325,5394,2326,3346,2329,4882,2330,2834,2339,6290,2341,5266,2342,3218,2345,4754,2346,2706,2353,4498,2354,2450,2371,6226,2373,5202,2374,3154,2377,4690,2378,2642,2385,4434,2401,4306,2435,6194,2437,5170,2438,3122,2441,4658,2442,2610,2449,4402,2465,4274,2497,4210,2567,7178,2571,6666,2573,5642,2574,3594,2579,6410,2581,5386,2582,3338,2585,4874,2586,2826,2595,6282,2597,5258,2598,3210,2601,4746,2602,2698,2609,4490,2627,6218,2629,5194,2630,3146,2633,4682,2641,4426,2657,4298,2691,6186,2693,5162,2694,3114,2697,4650,2705,4394,2721,4266,2753,4202,2819,6170,2821,5146,2822,3098,2825,4634,2833,4378,2849,4250,2881,4186,2945,4154,3079,7174,3083,6662,3085,5638,3086,3590,3091,6406,3093,5382,3094,3334,3097,4870,3107,6278,3109,5254,3110,3206,3113,4742,3121,4486,3139,6214,3141,5190,3145,4678,3153,4422,3169,4294,3203,6182,3205,5158,3209,4646,3217,4390,3233,4262,3265,4198,3331,6166,3333,5142,3337,4630,3345,4374,3361,4246,3393,4182,3457,4150,3587,6158,3589,5134,3593,4622,3601,4366,3617,4238,3649,4174,3713,4142,3841,4126,4111,7681,4119,7425,4123,6913,4125,5889,4135,7297,4139,6785,4141,5761,4147,6529,4149,5505,4153,4993,4167,7233,4171,6721,4173,5697,4179,6465,4181,5441,4185,4929,4195,6337,4197,5313,4201,4801,4209,4545,4231,7201,4235,6689,4237,5665,4243,6433,4245,5409,4249,4897,4259,6305,4261,5281,4265,4769,4273,4513,4291,6241,4293,5217,4297,4705,4305,4449,4359,7185,4363,6673,4365,5649,4371,6417,4373,5393,4377,4881,4387,6289,4389,5265,4393,4753,4401,4497,4419,6225,4421,5201,4425,4689,4483,6193,4485,5169,4489,4657,4615,7177,4619,6665,4621,5641,4627,6409,4629,5385,4633,4873,4643,6281,4645,5257,4649,4745,4675,6217,4677,5193,4739,6185,4741,5161,4867,6169,4869,5145,5127,7173,5131,6661,5133,5637,5139,6405,5141,5381,5155,6277,5157,5253,5187,6213,5251,6181,5379,6165,5635,6157,6151,7171,6155,6659,6163,6403,6179,6275,6211,5189,4681,4433,4321,3142,2634,2386,2274,1612,1364,1252,856,744,496]),e.tab213=a([3,6144,5,5120,6,3072,9,4608,10,2560,12,1536,17,4352,18,2304,20,1280,24,768,33,4224,34,2176,36,1152,40,640,48,384,65,4160,66,2112,68,1088,72,576,80,320,96,192,129,4128,130,2080,132,1056,136,544,144,288,257,4112,258,2064,260,1040,264,528,513,4104,514,2056,516,1032,1025,4100,1026,2052,2049,4098,4097,2050,1028,520,272,160]);for(var c in e)e.hasOwnProperty(c)&&(U1.$ctx[c]=e[c]);U1.__11698__=1,e=Object.getPrototypeOf(e)}e.chars=a(10);for(var ee=0;ee<=9;ee+=1){e.i=ee;var fe=u(e.codewords,e.i);if(r[t++]=fe,fe<=1286){var he=u(e.tab513,r[--t]);r[t++]=he}else{var Ie=u(e.tab213,h(r[--t]-1287));r[t++]=Ie}y(e.chars,e.i,r[--t])}for(var ve=9;ve>=0;ve-=1)e.i=ve,~~Math.pow(2,e.i)&e.fcs&&y(e.chars,e.i,u(e.chars,e.i)^8191);if(!U1.__11735__){e=Object.create(e),e.barmap=a([7,2,4,3,1,10,0,0,9,12,2,8,5,5,6,11,8,9,3,1,0,1,5,12,2,5,1,8,4,4,9,11,6,3,8,10,3,9,7,6,5,11,1,4,8,5,2,12,9,10,0,2,7,1,6,7,3,6,4,9,0,3,8,6,6,4,2,7,1,1,9,9,7,10,5,2,4,0,3,8,6,2,0,4,8,11,1,0,9,8,3,12,2,6,7,7,5,1,4,10,1,12,6,9,7,3,8,0,5,8,9,7,4,6,2,10,3,4,0,5,8,4,5,7,7,11,1,9,6,0,9,6,0,6,4,8,2,1,3,2,5,9,8,12,4,11,6,1,9,5,7,4,3,3,1,2,0,7,2,0,1,3,4,1,6,10,3,5,8,7,9,4,2,11,5,6,0,8,7,12,4,2,8,1,5,10,3,0,9,3,0,9,6,5,2,4,7,8,1,7,5,0,4,5,2,3,0,10,6,12,9,2,3,11,1,6,8,8,7,9,5,4,0,11,1,5,2,2,9,1,4,12,8,3,6,6,7,0,3,7,4,7,7,5,0,12,1,11,2,9,9,0,6,8,5,3,3,10,8,2]);for(var c in e)e.hasOwnProperty(c)&&(U1.$ctx[c]=e[c]);U1.__11735__=1,e=Object.getPrototypeOf(e)}e.bbs=a(65),e.bhs=a(65);for(var be=0;be<=64;be+=1)e.i=be,e.dec=(u(e.chars,u(e.barmap,e.i*4))&~~Math.pow(2,u(e.barmap,e.i*4+1)))!=0,e.asc=(u(e.chars,u(e.barmap,e.i*4+2))&~~Math.pow(2,u(e.barmap,e.i*4+3)))!=0,!e.dec&&!e.asc&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,2*e.height/8)),!e.dec&&e.asc&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,5*e.height/8)),e.dec&&!e.asc&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,5*e.height/8)),e.dec&&e.asc&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,8*e.height/8));r[t++]=1/0;var ke=e.bbs,ze=e.bhs;r[t++]=1/0;for(var Ge=0,Ve=e.bhs.length-1;Ge57)&&(r[t++]="bwipp.postnetBadCharacter#11834",r[t++]="USPS POSTNET must contain only digits",ne())}),!O0.__11848__){e=Object.create(e),e.barchars="0123456789",e.encs=a(["55222","22255","22525","22552","25225","25252","25522","52225","52252","52522","5","5"]);for(var i in e)e.hasOwnProperty(i)&&(O0.$ctx[i]=e[i]);O0.__11848__=1,e=Object.getPrototypeOf(e)}e.checksum=0;for(var s=0,l=h(e.barlen-1);s<=l;s+=1)e.i=s,e.checksum=h(e.checksum+h(u(e.barcode,e.i)-48));e.checksum=h(10-e.checksum%10)%10,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.postnetBadCheckDigit#11858",r[t++]="Incorrect USPS POSTNET check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen)),e.bhs=a(h(e.barlen*5+7)),e.txt=a(h(e.barlen+1)),e.enc=u(e.encs,10),e.heights=a(e.enc.length);for(var c=0,d=e.enc.length-1;c<=d;c+=1)e.j=c,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,0,e.heights);for(var f=0,p=h(e.barlen-1);f<=p;f+=1){e.i=f,e.enc=u(e.encs,h(u(e.barcode,e.i)-48)),e.heights=a(e.enc.length);for(var m=0,g=e.enc.length-1;m<=g;m+=1)e.j=m,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,e.i*5+1,e.heights),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i*5+1)*3.312,e.textyoffset,e.textfont,e.textsize]))}e.enc=u(e.encs,e.checksum),e.heights=a(e.enc.length);for(var v=0,w=e.enc.length-1;v<=w;v+=1)e.j=v,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+1),e.heights),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),h(e.barlen*5+1)*3.312,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a([" ",h(e.barlen*5+1)*72/25,e.textyoffset,e.textfont,e.textsize])),e.enc=u(e.encs,11),e.heights=a(e.enc.length);for(var A=0,k=e.enc.length-1;A<=k;A+=1)e.j=A,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+6),e.heights),r[t++]=1/0;var C=e.bhs;r[t++]=1/0;for(var M=0,S=e.bhs.length;M57)&&(r[t++]="bwipp.planetBadCharacter#11982",r[t++]="USPS PLANET must contain only digits",ne())}),!R0.__11996__){e=Object.create(e),e.barchars="0123456789",e.encs=a(["22555","55522","55252","55225","52552","52525","52255","25552","25525","25255","5","5"]);for(var i in e)e.hasOwnProperty(i)&&(R0.$ctx[i]=e[i]);R0.__11996__=1,e=Object.getPrototypeOf(e)}e.checksum=0;for(var s=0,l=h(e.barlen-1);s<=l;s+=1)e.i=s,e.checksum=h(e.checksum+h(u(e.barcode,e.i)-48));e.checksum=h(10-e.checksum%10)%10,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.planetBadCheckDigit#12007",r[t++]="Incorrect USPS PLANET check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen)),e.bhs=a(h(e.barlen*5+7)),e.txt=a(h(e.barlen+1)),e.enc=u(e.encs,10),e.heights=a(e.enc.length);for(var c=0,d=e.enc.length-1;c<=d;c+=1)e.j=c,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,0,e.heights);for(var f=0,p=h(e.barlen-1);f<=p;f+=1){e.i=f,e.enc=u(e.encs,h(u(e.barcode,e.i)-48)),e.heights=a(e.enc.length);for(var m=0,g=e.enc.length-1;m<=g;m+=1)e.j=m,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,e.i*5+1,e.heights),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i*5+1)*3.312,e.textyoffset,e.textfont,e.textsize]))}e.enc=u(e.encs,e.checksum),e.heights=a(e.enc.length);for(var v=0,w=e.enc.length-1;v<=w;v+=1)e.j=v,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+1),e.heights),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),h(e.barlen*5+1)*3.312,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a([" ",h(e.barlen*5+1)*72/25,e.textyoffset,e.textfont,e.textsize])),e.enc=u(e.encs,11),e.heights=a(e.enc.length);for(var A=0,k=e.enc.length-1;A<=k;A+=1)e.j=A,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+6),e.heights),r[t++]=1/0;var C=e.bhs;r[t++]=1/0;for(var M=0,S=e.bhs.length;M=2?r[t++]=T(e.barcode,0,2):r[t++]="";var i=r[--t],s=r[--t],l=u(s,i)!==void 0;r[t++]=s,r[t++]=i,l||(t-=2,r[t++]="bwipp.auspostBadFCC#12315",r[t++]="Must begin with an FCC, either 11, 45, 59 or 62",ne());var c=r[--t];e.encstr=pe(u(r[--t],c)),r[t++]=!0;for(var d=0,f=1;d57){t--,r[t++]=!1;break}}}dr(r[--t])&&(r[t++]="bwipp.auspostIncompleteDPID#12326",r[t++]="The DPID must be 8 digits",ne());var w=ae(e.custinfoenc,"numeric")?2:3;(e.barlen-10)*w>e.encstr.length-22-14&&(r[t++]="bwipp.auspostTooLong#12332",r[t++]="The message is too long",ne()),K(e.encstr,0,u(e.encs,74));for(var A=0;A<=1;A+=1)e.i=A,K(e.encstr,e.i*2+2,u(e.encs,ft(T(e.barcode,e.i,1))+64));for(var k=2;k<=9;k+=1)e.i=k,K(e.encstr,e.i*2+2,u(e.encs,ft(T(e.barcode,e.i,1))+64)),y(e.txt,e.i-2,a([T(e.barcode,e.i,1),((e.i-2)*2+6)*3.312,e.textyoffset,e.textfont,e.textsize]));if(ae(e.custinfoenc,"numeric")){for(var C=0,M=e.barlen-11;C<=M;C+=1){e.i=C;var S=u(e.barcode,e.i+10);r[t++]=e.encs,r[t++]=S,(S<48||S>57)&&(r[t++]="bwipp.auspostInvalidCustinfoDigit#12359",r[t++]="The customer information data contains a non-digit character",ne());var I=r[--t];K(e.encstr,e.i*2+22,u(r[--t],h(h(I-48)+64))),y(e.txt,e.i+8,a([T(e.barcode,e.i+10,1),(e.i*2+22)*3.312,e.textyoffset,e.textfont,e.textsize]))}e.ciflen=(e.barlen-10)*2}else{for(var E=0,j=e.barlen-11;E<=j;E+=1)e.i=E,fr(e.barchars,T(e.barcode,e.i+10,1)),dr(r[--t])&&(t--,r[t++]="bwipp.auspostInvalidCustinfoCharacter#12371",r[t++]="The customer information contains an invalid character",ne()),e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.encstr,e.i*3+22,e.enc),y(e.txt,e.i+8,a([T(e.barcode,e.i+10,1),(e.i*3+22)*3.312,e.textyoffset,e.textfont,e.textsize]));e.ciflen=(e.barlen-10)*3}for(var B=22+e.ciflen,F=e.encstr.length-14;B<=F;B+=1)K(e.encstr,B,u(e.encs,75));if(!qu.__12408__){e=Object.create(e),e.rstable=a(64*64),r[t++]=e.rstable,r[t++]=0,r[t++]=1/0;for(var O=0,N=64;O=0;ve-=1){e.i=ve;for(var be=0;be<=4;be+=1)e.j=be,y(e.rscodes,e.i+e.j,Zo(u(e.rscodes,e.i+e.j),u(e.rstable,h(64*u(a([48,17,29,30,1]),e.j)+u(e.rscodes,e.i+4)))))}e.checkcode=Gn(pe(12),"000000000000");for(var ke=0;ke<=3;ke+=1)e.i=ke,e.enc=gr(pe(3),u(e.rscodes,3-e.i),4),K(e.checkcode,e.i*3+(3-e.enc.length),e.enc);K(e.encstr,e.encstr.length-14,e.checkcode),K(e.encstr,e.encstr.length-2,u(e.encs,74)),e.bbs=a(e.encstr.length),e.bhs=a(e.encstr.length);for(var ze=0,Ge=e.encstr.length-1;ze<=Ge;ze+=1)e.i=ze,e.enc=T(e.encstr,e.i,1),ae(e.enc,"0")&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,8*e.height/8)),ae(e.enc,"1")&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,5*e.height/8)),ae(e.enc,"2")&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,5*e.height/8)),ae(e.enc,"3")&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,2*e.height/8));r[t++]=1/0;var Ve=e.bbs,at=e.bhs;r[t++]=1/0;for(var We=0,ue=e.bhs.length-1;We=48&&A<=57||A>=65&&A<=90||A==45||(r[t++]="bwipp.japanpostBadCharacter#12658",r[t++]="Japan Post must contain only digits, capital letters and the dash symbol",ne())}),!F0.__12672__){e=Object.create(e),e.encs=a(["300","330","312","132","321","303","123","231","213","033","030","120","102","210","012","201","021","003","333","31","13"]),e.barchars="0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var n in e)e.hasOwnProperty(n)&&(F0.$ctx[n]=e[n]);F0.__12672__=1,e=Object.getPrototypeOf(e)}e.barlen=e.barcode.length,e.encstr=pe(21*3+4),e.digits=a(20),e.txt=a(e.barlen+1),K(e.encstr,0,u(e.encs,19)),e.checksum=0,e.j=0,e.i=0,r[t++]=!0;for(var o=0,i=e.barlen-1;o<=i;o+=1){if(e.i=o,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.indx>=11&&e.indx<37){if(e.j>18){t--,r[t++]=!1;break}e.digit=~~((e.indx-1)/10)+10,K(e.encstr,e.j*3+2,u(e.encs,e.digit)),e.checksum=e.checksum+e.digit,y(e.digits,e.j,e.digit),e.j=e.j+1}if(e.j>19){t--,r[t++]=!1;break}e.digit=0,e.indx==37&&(e.digit=14),e.indx>=11&&e.indx<37&&(e.digit=(e.indx-1)%10),e.indx<11&&(e.digit=e.indx),K(e.encstr,e.j*3+2,u(e.encs,e.digit)),e.checksum=e.checksum+e.digit,y(e.digits,e.j,e.digit),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.j*3+2)*3.312,e.textyoffset,e.textfont,e.textsize])),e.j=e.j+1}dr(r[--t])&&(r[t++]="bwipp.japanpostTooLong#12722",r[t++]="The input is too long",ne());for(var s=e.j,l=19;s<=l;s+=1)e.k=s,K(e.encstr,e.k*3+2,u(e.encs,14)),e.checksum=e.checksum+14,y(e.digits,e.k,14);e.checksum=19-e.checksum%19,K(e.encstr,2+20*3,u(e.encs,e.checksum)),K(e.encstr,2+21*3,u(e.encs,20)),e.checkdigit=" ",e.includecheckintext&&(e.checkdigit=T(e.barchars,e.checksum,1)),y(e.txt,e.i+1,a([e.checkdigit,(20*3+2)*3.312,e.textyoffset,e.textfont,e.textsize])),K(e.encstr,21*3+2,u(e.encs,20)),e.bbs=a(21*3+4),e.bhs=a(e.bbs.length);for(var c=0,d=e.bbs.length-1;c<=d;c+=1)e.i=c,e.enc=T(e.encstr,e.i,1),e.bunit=0,e.hunit=0,ae(e.enc,"0")&&(e.bunit=3,e.hunit=2),ae(e.enc,"1")&&(e.bunit=0,e.hunit=5),ae(e.enc,"2")&&(e.bunit=3,e.hunit=5),ae(e.enc,"3")&&(e.bunit=0,e.hunit=8),y(e.bbs,e.i,e.bunit*e.height/8),y(e.bhs,e.i,e.hunit*e.height/8);r[t++]=1/0;var f=e.bbs,p=e.bhs;r[t++]=1/0;for(var m=0,g=e.bhs.length-1;m57)&&(r[t++]="bwipp.msiBadCharacter#12853",r[t++]="MSI must contain only digits",ne())}),!_u.__12867__){e=Object.create(e),e.encs=a(["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221","21","121"]),e.barchars="0123456789";for(var n in e)e.hasOwnProperty(n)&&(_u.$ctx[n]=e[n]);_u.__12867__=1,e=Object.getPrototypeOf(e)}if(e.barlen=e.barcode.length,e.txtlen=e.barlen,e.mod10=function(){e.code=r[--t],r[t++]=0,r[t++]=0,je(e.code,function(){var z=r[--t],Q=r[--t],G=r[--t];r[t++]=h(h(z-48)+Q*10),r[t++]=G}),t--;var j=r[--t];for(r[t++]=j*2,r[t++]=0;;){var B=r[--t],F=r[--t],O=~~(F/10);if(r[t++]=h(B+F%10),r[t++]=O,O==0){t--;break}var N=r[--t],H=r[--t];r[t++]=N,r[t++]=H}r[t++]=0,r[t++]=0,je(e.code,function(){var z=r[--t],Q=r[--t],G=r[--t];r[t++]=h(Q+h(z-48)),r[t++]=G});var L=r[--t],_=r[--t];r[t++]=L,r[t++]=_,t--;var V=r[--t],$=pe(e.code.length+1);K($,0,e.code),y($,e.code.length,h(h(10-h(r[--t]+V)%10)%10+48)),r[t++]=$},e.mod11=function(){e.code=r[--t],r[t++]=e.code.length-1,je(e.code,function(){var V=r[--t],$=r[--t];r[t++]=h(V-48),r[t++]=h($%6+2),r[t++]=h($-1)}),t--,r[t++]=0;for(var j=0,B=e.code.length;j>>1&1,e.indx>>>2&1,e.indx>>>3]));e.checksalt=a([1,1,1,1,0,1,0,0,1]);for(var m=0,g=h(e.barlen*4-1);m<=g;m+=1)if(e.i=m,u(e.checkbits,e.i)==1)for(var v=0;v<=8;v+=1)e.j=v,y(e.checkbits,e.i+e.j,Zo(u(e.checkbits,e.i+e.j),u(e.checksalt,e.j)));e.checkval=0;for(var w=0;w<=7;w+=1)e.i=w,e.checkval=h(e.checkval+~~Math.pow(2,e.i)*u(e.checkbits,h(e.barlen*4+e.i)));e.checksum1=e.checkval&15,e.checksum2=e.checkval>>>4,e.validatecheck&&((u(e.barcode,e.barlen)!=u(e.barchars,e.checksum1)||u(e.barcode,h(e.barlen+1))!=u(e.barchars,e.checksum2))&&(r[t++]="bwipp.plesseyBadCheckDigits#13081",r[t++]="Incorrect Plessey check digits provided",ne()),e.barcode=T(e.barcode,0,e.barlen));var A=e.unidirectional?27:33;e.sbs=pe(h(e.barlen*8+A)),e.txt=a(h(e.barlen+2)),K(e.sbs,0,u(e.encs,16));for(var k=0,C=h(e.barlen-1);k<=C;k+=1)e.i=k,e.indx=u(e.charvals,T(e.barcode,e.i,1)),K(e.sbs,e.i*8+8,u(e.encs,e.indx)),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*20+20,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,h(e.barlen*8+8),u(e.encs,e.checksum1)),K(e.sbs,h(e.barlen*8+16),u(e.encs,e.checksum2)),e.includecheckintext?(y(e.txt,e.barlen,a([T(e.barchars,e.checksum1,1),h(e.barlen*20+20),e.textyoffset,e.textfont,e.textsize])),y(e.txt,h(e.barlen+1),a([T(e.barchars,e.checksum2,1),h(h(e.barlen+1)*20+20),e.textyoffset,e.textfont,e.textsize]))):(y(e.txt,e.barlen,a([" ",h(e.barlen*20+20),e.textyoffset,e.textfont,e.textsize])),y(e.txt,h(e.barlen+1),a([" ",h(h(e.barlen+1)*20+20),e.textyoffset,e.textfont,e.textsize])));var M=e.unidirectional?18:17;K(e.sbs,h(e.barlen*8+24),u(e.encs,M)),r[t++]=1/0,r[t++]=1/0;for(var S=e.sbs,I=0,E=S.length;I16){e.np=T(e.barcode,e.i,2);var s=u(e.np,0),l=u(e.np,1);if(s<48||s>57||(l<48||l>57)&&l!=88)r[t++]=-1;else{var c=h(u(e.np,1)-48);if(r[t++]=h(u(e.np,0)-48),r[t++]=c,c!=40){var d=r[--t],f=r[--t];r[t++]=h(h(d+f*10)+10)}else t--;var p=r[--t];r[t++]=h(p+17)}var m=r[--t];r[t++]=m,m==-1&&(r[t++]="bwipp.telepenInvalidNumericCharacter#13254",r[t++]="Telepen Numeric may contain only digits, or X in even positions",ne()),e.indx=r[--t],y(e.txt,e.j,a([e.np,e.j*16+16,e.textyoffset,e.textfont,e.textsize])),e.i=e.i+2}else e.indx=u(e.barcode,e.i),y(e.txt,e.j,a([" ",e.j*16+16,e.textyoffset,e.textfont,e.textsize])),e.i=e.i+1;else e.indx=u(e.barcode,e.i),e.indx>127&&(r[t++]="bwipp.telepenInvalidAlphaCharacter#13267",r[t++]="Telepen Alpha characters must have ordinal values 0 to 127",ne()),e.indx>=32&&e.indx<=126?y(e.txt,e.j,a([T(e.barcode,e.i,1),e.j*16+16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.j,a([" ",e.j*16+16,e.textyoffset,e.textfont,e.textsize])),e.i=e.i+1;e.checksum=h(e.checksum+e.indx),e.enc=u(e.encs,e.indx),K(e.sbs,e.l,e.enc),e.l=e.l+e.enc.length,e.j=e.j+1}e.checksum=h(127-e.checksum%127)%127,e.enc=u(e.encs,e.checksum),K(e.sbs,e.l,e.enc),e.l=e.l+e.enc.length,e.enc=u(e.encs,122),K(e.sbs,e.l,e.enc),e.l=e.l+e.enc.length,e.sbs=T(e.sbs,0,e.l),e.txt=T(e.txt,0,e.j),r[t++]=1/0,r[t++]=1/0;for(var g=e.sbs,v=0,w=g.length;v",30]),a(["5","?",31]),a(["6","@","!"]),a(["7","[",'"']),a(["8",92,"#"]),a(["9","]","&"]),a(["A","a",1]),a(["B","b",2]),a(["C","c",3]),a(["D","d",4]),a(["E","e",5]),a(["F","f",6]),a(["G","g",7]),a(["H","h",8]),a(["I","i",9]),a(["J","j",10]),a(["K","k",11]),a(["L","l",12]),a(["M","m",13]),a(["N","n",14]),a(["O","o",15]),a(["P","p",16]),a(["Q","q",17]),a(["R","r",18]),a(["S","s",19]),a(["T","t",20]),a(["U","u",21]),a(["V","v",22]),a(["W","w",23]),a(["X","x",24]),a(["Y","y",25]),a(["Z","z",26]),a(["-","_",40]),a([".","`",41]),a([" ",127,0]),a(["$","{","*"]),a(["/","|",","]),a(["+","}",":"]),a(["%","~",e.fn1]),a([e.la1,e.la0,e.fn2]),a([e.sf1,e.sf0,e.fn3]),a([e.sf2,e.sf2,e.fn4])]);var o=a(["6",-98,-98]);e.chapmapslimited=a([a(["0",-98,-98]),a(["1",-98,-98]),a(["2",-98,-98]),a(["3",-98,-98]),a(["4",-98,-98]),a(["5",-98,-98]),o,a(["7",-98,-98]),a(["8",-98,-98]),a(["9",-98,-98]),a(["A",-98,-98]),a(["B",-98,-98]),a(["C",-98,-98]),a(["D",-98,-98]),a(["E",-98,-98]),a(["F",-98,-98]),a(["G",-98,-98]),a(["H",-98,-98]),a(["I",-98,-98]),a(["J",-98,-98]),a(["K",-98,-98]),a(["L",-98,-98]),a(["M",-98,-98]),a(["N",-98,-98]),a(["O",-98,-98]),a(["P",-98,-98]),a(["Q",-98,-98]),a(["R",-98,-98]),a(["S",-98,-98]),a(["T",-98,-98]),a(["U",-98,-98]),a(["V",-98,-98]),a(["W",-98,-98]),a(["X",-98,-98]),a(["Y",-98,-98]),a(["Z",-98,-98]),a(["-",-98,-98]),a([".",-98,-98])]);for(var i in e)e.hasOwnProperty(i)&&(G1.$ctx[i]=e[i]);G1.__13456__=1,e=Object.getPrototypeOf(e)}it(e.version,"a")&&it(e.version,"b")&&it(e.version,"limiteda")&&it(e.version,"limitedb")&&(r[t++]="bwipp.posicodeInvalidVersion#13459",r[t++]="The version must be either a, b, limiteda or limitedb",ne()),r[t++]="charmaps",ae(e.version,"a")||ae(e.version,"b")?r[t++]=e.charmapsnormal:r[t++]=e.chapmapslimited;var s=r[--t];e[r[--t]]=s,e.charmaps,e.charmaps,e.charmaps,e.charvals=a([new Map,new Map,new Map]);for(var l=0,c=e.charmaps.length-1;l<=c;l+=1){e.i=l,e.encs=u(e.charmaps,e.i);for(var d=0;d<=2;d+=1){e.j=d;var f=u(e.encs,e.j);if(r[t++]=f,ae(La(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}y(u(e.charvals,e.j),r[--t],e.i)}}if(e.set0=u(e.charvals,0),e.set1=u(e.charvals,1),e.set2=u(e.charvals,2),ae(e.version,"limiteda")||ae(e.version,"limitedb"))for(var m=0,g=e.barcode.length-1;m<=g;m+=1){var v=u(e.set0,u(T(e.barcode,m,1),0))!==void 0;v||(r[t++]="bwipp.posicodeBadCharacter#13485",r[t++]="Posicode limited must contain only digits, capital letters, and the symbols - and .",ne())}if(e.raw&&(e.encoding="raw"),ae(e.encoding,"raw")){for(e.cws=a(e.barcode.length),e.i=0,e.j=0;e.i!=e.barcode.length;)e.cw=ft(T(e.barcode,e.i+1,3)),y(e.cws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1;e.cws=T(e.cws,0,e.j),e.text=""}if(ae(e.encoding,"auto")){var w=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC2",e.fn2],["FNC3",e.fn3]]);e.fncvals=w,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var A=r[--t];e[r[--t]]=A,e.msglen=e.msg.length,e.text=pe(e.msglen);for(var k=0,C=e.msglen-1;k<=C;k+=1){e.i=k;var M=u(e.msg,e.i);r[t++]=e.text,r[t++]=e.i,r[t++]=M,M<0&&(t--,r[t++]=32);var S=r[--t],I=r[--t];y(r[--t],I,S)}r[t++]=1/0;for(var E=0,j=e.msglen;E=0;O-=1)e.i=O,u(e.msg,e.i)>=0&&(u(e.msg,e.i)>=128?y(e.numEA,e.i,h(u(e.numEA,e.i+1)+1)):y(e.numSA,e.i,h(u(e.numSA,e.i+1)+1)));e.ea=!1,e.msgtmp=a([]);for(var N=0,H=e.msglen-1;N<=H;N+=1){if(e.i=N,e.c=u(e.msg,e.i),!Zo(e.ea,e.c<128)&&e.c>=0){e.ea?r[t++]=e.numSA:r[t++]=e.numEA;var L=u(r[--t],e.i),_=h(L+e.i)==e.msglen?3:5;L<_?(r[t++]=1/0,oe(e.msgtmp),r[t++]=e.fn4,e.msgtmp=a()):(r[t++]=1/0,oe(e.msgtmp),r[t++]=e.fn4,r[t++]=e.fn4,e.msgtmp=a(),e.ea=!e.ea)}r[t++]=1/0,oe(e.msgtmp),e.c>=0?r[t++]=e.c&127:r[t++]=e.c,e.msgtmp=a()}for(e.msg=e.msgtmp,e.msglen=e.msg.length,e.enc=function(){var Pt=r[--t];y(e.cws,e.j,u(Pt,r[--t])),e.j=e.j+1},e.cws=a(e.msglen*2),e.i=0,e.j=0,e.cset="set0";e.i!=e.msglen;)for(;;){e.char1=u(e.msg,e.i),r[t++]="char2",e.i+1>>1,e.cw=e.cw>>>1}for(e.v=e.v+e.checkoffset,ae(e.version,"limiteda")||ae(e.version,"limitedb")?(e.v=e.v&1023,e.v>824&&e.v<853&&(e.v=e.v+292)):e.v=(e.v&1023)+45,e.d=a([2,2,2,2,2,2]),e.r=0,e.c=0,e.w=0,e.sum=0;e.sum!=e.v;)e.t=h(e.sum+u(u(e.c2w,e.r),e.c)),e.t==e.v&&(e.w=e.w+1,y(e.d,e.r,e.w+2),e.sum=e.t),e.t>e.v&&(y(e.d,e.r,e.w+2),e.r=e.r+1,e.w=0),e.t=0;Ie-=1)e.i=Ie,y(e.cbs,(5-e.i)*2+1,h(u(e.d,e.i)+47));e.sbs=pe(e.cws.length*6+31);var ve=u(e.encs,e.encs.length-2);K(e.sbs,0,ve),e.j=ve.length;for(var be=0,ke=e.cws.length-1;be<=ke;be+=1)e.i=be,K(e.sbs,e.j,u(e.encs,u(e.cws,e.i))),e.j=e.j+6;K(e.sbs,e.j,e.cbs),e.j=e.j+12;var ze=u(e.encs,e.encs.length-1);K(e.sbs,e.j,ze),e.j=ze.length+e.j,e.sbs=T(e.sbs,0,e.j),r[t++]=1/0,r[t++]=1/0;for(var Ge=e.sbs,Ve=0,at=Ge.length;Ve62)&&(r[t++]="bwipp.codablockfBadColumns#13815",r[t++]="Codablock F must have 4 to 62 columns",ne()),e.rows!=-1&&(e.rows<2||e.rows>44)&&(r[t++]="bwipp.codablockfBadRows#13819",r[t++]="Codablock F must have 2 to 44 rows",ne()),e.rowheight<8&&(r[t++]="bwipp.codablockfBadRowHeight#13823",r[t++]="Codablock F must have rowheight of at least 8",ne()),e.sepheight<1&&(r[t++]="bwipp.codablockfBadSepHeight#13827",r[t++]="Codablock F must have sepheight of at least 1",ne()),xr(o1),r[t++]="c",e.columns>=4&&e.columns<=62?r[t++]=e.columns:r[t++]=8;var n=r[--t];e[r[--t]]=n,r[t++]="rows",e.rows>=2&&e.rows<=44?r[t++]=e.rows:r[t++]=-1;var o=r[--t];e[r[--t]]=o,e.swa=-1,e.swb=-2,e.swc=-3,e.sft=-4,e.fn1=-5,e.fn2=-6,e.fn3=-7,e.fn4=-8,e.sta=-9,e.stp=-10;var i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC3",e.fn3]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var s=r[--t];e[r[--t]]=s,e.msglen=e.msg.length,e.msgtmp=a([]);for(var l=e.msg,c=0,d=l.length;c",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.fn3,e.fn3,"96"]),a([e.fn2,e.fn2,"97"]),a([e.sft,e.sft,"98"]),a([e.swc,e.swc,"99"]),a([e.swb,e.fn4,e.swb]),a([e.fn4,e.swa,e.swa]),a([e.fn1,e.fn1,e.fn1]),a([e.sta,e.sta,e.sta]),a([e.stp,e.stp,e.stp])]),e.charvals=a([new Map,new Map,new Map]);for(var f=0,p=e.charmaps.length-1;f<=p;f+=1){e.i=f,e.encs=u(e.charmaps,e.i);for(var m=0;m<=2;m+=1){e.j=m;var g=u(e.encs,e.j);if(r[t++]=g,ae(La(g),"stringtype")){var v=u(r[--t],0);r[t++]=v}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2);for(var w in e)e.hasOwnProperty(w)&&(o1.$ctx[w]=e[w]);o1.__13917__=1,e=Object.getPrototypeOf(e)}e.numsscr=function(){for(e.n=0,e.s=0,e.p=r[--t];!(e.p>=e.msglen);){var Ae=u(e.msg,e.p),Ue=u(e.setc,Ae)!==void 0;if(r[t++]=Ae,!Ue){t--;break}if(r[--t]==e.fn1)if(e.s%2==0)e.s=e.s+1;else break;e.n=e.n+1,e.s=e.s+1,e.p=h(e.p+1)}r[t++]=e.n,r[t++]=e.s},e.enca=function(){y(e.cws,e.j,u(e.seta,r[--t])),e.j=e.j+1},e.encb=function(){y(e.cws,e.j,u(e.setb,r[--t])),e.j=e.j+1},e.encc=function(){var Ae=r[--t];if(r[t++]=Ae,it(La(Ae),"arraytype")){var Ue=u(e.setc,r[--t]);r[t++]=Ue}else{oe(r[--t]);var qe=r[--t],Fe=r[--t];r[t++]=h(h(qe-48)+h(Fe-48)*10)}y(e.cws,e.j,r[--t]),e.j=e.j+1},e.anotb=function(){var Ae=r[--t],Ue=u(e.seta,Ae)!==void 0,qe=u(e.setb,Ae)!==void 0;r[t++]=Ue&&!qe},e.bnota=function(){var Ae=r[--t],Ue=u(e.setb,Ae)!==void 0,qe=u(e.seta,Ae)!==void 0;r[t++]=Ue&&!qe},r[t++]=1/0;for(var A=0,k=e.msg.length;A=0;S-=1)e.i=S,r[t++]=u(e.msg,e.i),e.anotb(),r[--t]?y(e.nextanotb,e.i,0):y(e.nextanotb,e.i,h(u(e.nextanotb,e.i+1)+1)),r[t++]=u(e.msg,e.i),e.bnota(),r[--t]?y(e.nextbnota,e.i,0):y(e.nextbnota,e.i,h(u(e.nextbnota,e.i+1)+1));for(e.abeforeb=function(){var Ae=r[--t];r[t++]=Fs(u(e.nextanotb,Ae),u(e.nextbnota,Ae))},e.bbeforea=function(){var Ae=r[--t];r[t++]=Fs(u(e.nextbnota,Ae),u(e.nextanotb,Ae))},e.padrow=function(){for(var Ae=0,Ue=r[--t];Ae=32;r[t++]=Ae,Ae&&(r[t++]=e.fn4,e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),e.i=e.i+2)}else r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1,r[t++]=!0},e.cws=a(h(e.c+5)*44),e.i=0,e.j=0,e.r=1,e.lastrow=!1;!e.lastrow;){for(e.r>44&&(r[t++]="bwipp.codablockfTooBig#14033",r[t++]="Maximum length exceeded",ne()),r[t++]=e.sta,e.enca(),e.i=2){r[t++]=e.swc,e.enca(),e.cset="setc";break}if(r[t++]=e.i,e.abeforeb(),r[--t]){r[t++]=e.sft,e.enca(),e.cset="seta";break}r[t++]=e.swb,e.enca(),e.cset="setb";break}for(e.j=e.j+1,e.endofrow=!1;e.rem=h(h(e.c+3)-e.j%h(e.c+5)),!(e.i==e.msglen||e.endofrow);){r[t++]=e.i,e.numsscr(),e.nums=r[--t],e.nchars=r[--t],r[t++]="remnums",e.nums>e.rem*2?r[t++]=e.rem*2:r[t++]=e.nums;var I=r[--t];for(e[r[--t]]=I;;){if((ae(e.cset,"seta")||ae(e.cset,"setb"))&&e.remnums>=4&&u(e.msg,e.i)!=e.fn1){if(e.remnums%2==0&&e.rem>=3){r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";for(var E=0,j=2;E=4){r[t++]=u(e.msg,e.i),ae(e.cset,"seta")?e.enca():e.encb(),e.i=e.i+1,r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";for(var B=0,F=2;B=2){if(e.i=2){if(e.i=2){if(e.rem=h(e.rem-1),r[t++]=e.i,e.abeforeb(),r[--t]){if(r[t++]=e.swa,e.encc(),e.cset="seta",e.encafitsrow(),r[--t])break}else if(r[t++]=e.swb,e.encc(),e.cset="setb",e.encbfitsrow(),r[--t])break}var _=u(e.seta,u(e.msg,e.i))!==void 0;if(ae(e.cset,"seta")&&_&&e.rem>=1&&(e.encafitsrow(),r[--t]))break;var V=u(e.setb,u(e.msg,e.i))!==void 0;if(ae(e.cset,"setb")&&V&&e.rem>=1&&(e.encbfitsrow(),r[--t]))break;if(ae(e.cset,"setc")&&e.remnums>=2&&e.rem>=1){u(e.msg,e.i)==e.fn1?(r[t++]=e.fn1,e.encc(),e.i=e.i+1):(r[t++]=T(e.msg,e.i,2),e.encc(),e.i=e.i+2);break}e.endofrow=!0;break}}(e.r>=e.rows||e.rows==-1)&&e.r>1&&e.i==e.msglen&&e.rem>=2?(r[t++]=h(e.rem-2),e.padrow(),e.j=e.j+3,r[t++]=e.stp,e.enca(),e.lastrow=!0):(r[t++]=e.rem,e.padrow(),e.j=e.j+1,r[t++]=e.stp,e.enca(),e.r=e.r+1)}if(e.cws=T(e.cws,0,e.j),!o1.__14206__){e=Object.create(e),r[t++]=1/0;for(var $=64;$<=95;$+=1)r[t++]=$;for(var z=0;z<=15;z+=1)r[t++]=z;for(var Q=26;Q<=63;Q+=1)r[t++]=Q;e.abmap=a(),r[t++]=1/0;for(var G=0;G<=85;G+=1)r[t++]=G;e.cmap=a();for(var w in e)e.hasOwnProperty(w)&&(o1.$ctx[w]=e[w]);o1.__14206__=1,e=Object.getPrototypeOf(e)}e.chkmsg=a(e.kmsg.length),e.j=0;for(var D=0,q=e.kmsg.length-1;D<=q;D+=1)e.i=D,e.char=u(e.kmsg,e.i),e.char>=0&&(y(e.chkmsg,e.j,e.char),e.j=e.j+1),e.char==e.fn1&&e.i!=0&&(y(e.chkmsg,e.j,29),e.j=e.j+1);e.t1=0,e.t2=0,e.k1=0,e.k2=0;for(var W=0,X=e.j-1;W<=X;W+=1)e.i=W,e.t1=u(e.chkmsg,e.i)*e.i%86,e.t2=h(e.t1+u(e.chkmsg,e.i))%86,e.k1=h(e.k1+e.t2)%86,e.k2=h(e.k2+e.t1)%86;r[t++]=e.cws,r[t++]=e.cws.length-4,it(e.cset,"setc")?r[t++]=e.abmap:r[t++]=e.cmap;var te=u(r[--t],e.k1),se=r[--t];y(r[--t],se,te),r[t++]=e.cws,r[t++]=e.cws.length-3,it(e.cset,"setc")?r[t++]=e.abmap:r[t++]=e.cmap;var de=u(r[--t],e.k2),ee=r[--t];y(r[--t],ee,de);var fe=e.cws;r[t++]=fe,r[t++]=2,u(fe,1)!=99?r[t++]=e.abmap:r[t++]=e.cmap;var he=u(r[--t],e.r-2),Ie=r[--t];y(r[--t],Ie,he);for(var ve=1,be=e.r-1;ve<=be;ve+=1){e.i=ve;var ke=e.cws,ze=e.i,Ge=e.c;r[t++]=ke,r[t++]=h(ze*h(Ge+5)+2),u(ke,h(h(ze*h(Ge+5)+2)-1))!=99?r[t++]=e.abmap:r[t++]=e.cmap;var Ve=u(r[--t],e.i+42),at=r[--t];y(r[--t],at,Ve)}for(var We=0,ue=e.r-1;We<=ue;We+=1){e.rcws=T(e.cws,We*h(e.c+5),h(e.c+4)),e.csum=u(e.rcws,0);for(var Le=1,$e=e.rcws.length-2;Le<=$e;Le+=1)e.i=Le,e.csum=h(e.csum+u(e.rcws,e.i)*e.i);y(e.rcws,e.rcws.length-1,e.csum%103)}var bt=u(e.options,"debugcws")!==void 0;if(bt&&(r[t++]="bwipp.debugcws#14246",r[t++]=e.cws,ne()),!o1.__14267__){e=Object.create(e),e.encs=a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","2331112"]);for(var w in e)e.hasOwnProperty(w)&&(o1.$ctx[w]=e[w]);o1.__14267__=1,e=Object.getPrototypeOf(e)}e.rowbits=a(e.r);for(var ot=0,st=e.r-1;ot<=st;ot+=1){e.i=ot,r[t++]=1/0;for(var Ze=T(e.cws,e.i*h(e.c+5),h(e.c+5)),dt=0,Xe=Ze.length;dt16)&&(r[t++]="bwipp.code16kBadRows#14363",r[t++]="Code 16K must have 2 to 16 rows",ne()),e.rowheight<8&&(r[t++]="bwipp.code16kBadRowHeight#14367",r[t++]="Code 16K must have rowheight of at least 8",ne()),e.sepheight<1&&(r[t++]="bwipp.code16kBadSepHeight#14371",r[t++]="Code 16K must have sepheight of at least 1",ne()),e.sam!=-1){r[t++]=!0;for(var n=0,o=1;n99){t--,r[t++]=!1;break}if(e.sam%10<2){t--,r[t++]=!1;break}if(~~(e.sam/10)>e.sam%10){t--,r[t++]=!1;break}}dr(r[--t])&&(r[t++]="bwipp.code16kBadSAM#14382",r[t++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols',ne())}if(xr(V1),e.sam!=-1&&(e.rows=16),!V1.__14453__){e=Object.create(e),e.swa=-1,e.swb=-2,e.swc=-3,e.sa1=-4,e.sb1=-5,e.sc1=-6,e.sa2=-7,e.sb2=-8,e.sc2=-9,e.pad=-10,e.sb3=-11,e.sc3=-12,e.fn1=-13,e.fn2=-14,e.fn3=-15,e.fn4=-16,e.charmaps=a([a([32,32,"00"]),a(["!","!","01"]),a(['"','"',"02"]),a(["#","#","03"]),a(["$","$","04"]),a(["%","%","05"]),a(["&","&","06"]),a(["'","'","07"]),a([40,40,"08"]),a([41,41,"09"]),a(["*","*","10"]),a(["+","+","11"]),a([",",",","12"]),a(["-","-","13"]),a([".",".","14"]),a(["/","/","15"]),a(["0","0","16"]),a(["1","1","17"]),a(["2","2","18"]),a(["3","3","19"]),a(["4","4","20"]),a(["5","5","21"]),a(["6","6","22"]),a(["7","7","23"]),a(["8","8","24"]),a(["9","9","25"]),a([":",":","26"]),a([";",";","27"]),a(["<","<","28"]),a(["=","=","29"]),a([">",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.fn3,e.fn3,"96"]),a([e.fn2,e.fn2,"97"]),a([e.sb1,e.sa1,"98"]),a([e.swc,e.swc,"99"]),a([e.swb,e.fn4,e.swb]),a([e.fn4,e.swa,e.swa]),a([e.fn1,e.fn1,e.fn1]),a([e.pad,e.pad,e.pad]),a([e.sb2,e.sa2,e.sb1]),a([e.sc2,e.sc2,e.sb2]),a([e.sc3,e.sc3,e.sb3])]),e.charvals=a([new Map,new Map,new Map]);for(var s=0,l=e.charmaps.length-1;s<=l;s+=1){e.i=s,e.encs=u(e.charmaps,e.i);for(var c=0;c<=2;c+=1){e.j=c;var d=u(e.encs,e.j);if(r[t++]=d,ae(La(d),"stringtype")){var f=u(r[--t],0);r[t++]=f}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2);for(var p in e)e.hasOwnProperty(p)&&(V1.$ctx[p]=e[p]);V1.__14453__=1,e=Object.getPrototypeOf(e)}if(e.raw){for(e.cws=a(e.barcode.length),e.i=0,e.j=0;!(e.i>=e.barcode.length-3||u(e.barcode,e.i)!=94);){var m=T(e.barcode,e.i+1,3);r[t++]=m,r[t++]=!1;for(var g=0,v=m.length;g57)&&(t--,r[t++]=!0)}if(r[--t]){t--;break}e.cw=ft(r[--t]),y(e.cws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1}e.i!=e.barcode.length&&(r[t++]="bwipp.code16kBadRawFormat#14471",r[t++]="raw data must be formatted as ^NNN",ne()),e.cws=T(e.cws,0,e.j)}else{var A=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1],["FNC2",e.fn2],["FNC3",e.fn3]]);e.fncvals=A,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var k=r[--t];e[r[--t]]=k,e.msglen=e.msg.length,r[t++]=1/0;for(var C=0,M=e.msglen;C=0;E-=1)e.i=E,u(e.msg,e.i)>=0&&(u(e.msg,e.i)>=128?y(e.numEA,e.i,h(u(e.numEA,e.i+1)+1)):y(e.numSA,e.i,h(u(e.numSA,e.i+1)+1)));e.ea=!1,e.msgtmp=a([]);for(var j=0,B=e.msglen-1;j<=B;j+=1){if(e.i=j,e.c=u(e.msg,e.i),!Zo(e.ea,e.c<128)&&e.c>=0){e.ea?r[t++]=e.numSA:r[t++]=e.numEA;var F=u(r[--t],e.i),O=h(F+e.i)==e.msglen?3:5;F=0?r[t++]=e.c&127:r[t++]=e.c,e.msgtmp=a()}e.msg=e.msgtmp,e.msglen=e.msg.length,e.numsscr=function(){for(e.n=0,e.s=0,e.p=r[--t];!(e.p>=e.msglen);){var Gr=u(e.msg,e.p),go=u(e.setc,Gr)!==void 0;if(r[t++]=Gr,!go){t--;break}if(r[--t]==e.fn1)if(e.s%2==0)e.s=e.s+1;else break;e.n=e.n+1,e.s=e.s+1,e.p=h(e.p+1)}r[t++]=e.n,r[t++]=e.s},e.enca=function(){y(e.cws,e.j,u(e.seta,r[--t])),e.j=e.j+1},e.encb=function(){y(e.cws,e.j,u(e.setb,r[--t])),e.j=e.j+1},e.encc=function(){var Gr=r[--t];if(r[t++]=Gr,it(La(Gr),"arraytype")){var go=u(e.setc,r[--t]);r[t++]=go}else{oe(r[--t]);var ni=r[--t],Mi=r[--t];r[t++]=h(h(ni-48)+h(Mi-48)*10)}y(e.cws,e.j,r[--t]),e.j=e.j+1},e.anotb=function(){var Gr=r[--t],go=u(e.seta,Gr)!==void 0,ni=u(e.setb,Gr)!==void 0;r[t++]=go&&!ni},e.bnota=function(){var Gr=r[--t],go=u(e.setb,Gr)!==void 0,ni=u(e.seta,Gr)!==void 0;r[t++]=go&&!ni},r[t++]=1/0;for(var N=0,H=e.msg.length;N=0;V-=1)e.i=V,r[t++]=u(e.msg,e.i),e.anotb(),r[--t]?y(e.nextanotb,e.i,0):y(e.nextanotb,e.i,h(u(e.nextanotb,e.i+1)+1)),r[t++]=u(e.msg,e.i),e.bnota(),r[--t]?y(e.nextbnota,e.i,0):y(e.nextbnota,e.i,h(u(e.nextbnota,e.i+1)+1));for(e.abeforeb=function(){var Gr=r[--t];r[t++]=Fs(u(e.nextanotb,Gr),u(e.nextbnota,Gr))},e.bbeforea=function(){var Gr=r[--t];r[t++]=Fs(u(e.nextbnota,Gr),u(e.nextanotb,Gr))},e.cws=a(e.barcode.length*2+3),e.i=0,e.j=0;;){if(e.sam!=-1){y(e.cws,0,~~(e.sam/10)-1),y(e.cws,1,e.sam%10-1),e.j=2,e.cset="setb",e.mode=7;break}if(e.msglen==0){e.cset="setb",e.mode=1;break}if(e.msglen>=2){r[t++]=u(e.msg,0)==e.fn1,r[t++]=1,e.numsscr();var $=r[--t],z=r[--t];r[t++]=$,r[t++]=z,t--;var Q=r[--t],G=r[--t];if(G&&Q>=2){e.cset="setc",e.mode=4,e.i=1;break}}if(u(e.msg,0)==e.fn1){e.cset="setb",e.mode=3,e.i=1;break}if(e.msglen>=2){r[t++]=0,e.numsscr();var D=r[--t],q=r[--t];r[t++]=D,r[t++]=q,t--;var W=r[--t];if(W>=2&&W%2==0){e.cset="setc",e.mode=2;break}r[t++]=0,e.numsscr();var X=r[--t],te=r[--t];r[t++]=X,r[t++]=te,t--;var se=r[--t];if(se>=3&&se%2==1){r[t++]=u(e.msg,0),e.encb(),e.cset="setc",e.mode=5,e.i=1;break}var de=u(e.setb,u(e.msg,0))!==void 0;r[t++]=de,r[t++]=1,e.numsscr();var ee=r[--t],fe=r[--t];r[t++]=ee,r[t++]=fe,t--;var he=r[--t],Ie=r[--t];if(Ie&&he>=2&&he%2==0){r[t++]=u(e.msg,0),e.encb(),e.cset="setc",e.mode=5,e.i=1;break}var ve=u(e.setb,u(e.msg,0))!==void 0;r[t++]=ve,r[t++]=1,e.numsscr();var be=r[--t],ke=r[--t];r[t++]=be,r[t++]=ke,t--;var ze=r[--t],Ge=r[--t];if(Ge&&ze>=3&&ze%2==1){r[t++]=u(e.msg,0),e.encb(),r[t++]=u(e.msg,1),e.encb(),e.cset="setc",e.mode=6,e.i=2;break}var Ve=u(e.setb,u(e.msg,0))!==void 0,at=u(e.setb,u(e.msg,1))!==void 0;r[t++]=Ve&&at,r[t++]=2,e.numsscr();var We=r[--t],ue=r[--t];r[t++]=We,r[t++]=ue,t--;var Le=r[--t],$e=r[--t];if($e&&Le>=2&&Le%2==0){r[t++]=u(e.msg,0),e.encb(),r[t++]=u(e.msg,1),e.encb(),e.cset="setc",e.mode=6,e.i=2;break}}if(r[t++]=0,e.abeforeb(),r[--t]){e.cset="seta",e.mode=0;break}e.cset="setb",e.mode=1;break}for(;e.i!=e.msglen;)for(r[t++]=e.i,e.numsscr(),e.nums=r[--t],e.nchars=r[--t];;){if(ae(e.cset,"seta")){if(e.i=4&&e.nums%2==0){r[t++]=e.swc,e.enca(),e.cset="setc";break}r[t++]=u(e.msg,e.i),e.enca(),e.i=e.i+1;break}if(ae(e.cset,"setb")){if(e.i=4&&e.nums%2==0){r[t++]=e.swc,e.encb(),e.cset="setc";break}r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1;break}if(ae(e.cset,"setc")){if(e.nums>=2){u(e.msg,e.i)==e.fn1?(r[t++]=e.fn1,e.encc(),e.i=e.i+1):(r[t++]=T(e.msg,e.i,2),e.encc(),e.i=e.i+2);break}if(e.i=2&&He%2==0){r[t++]=e.sb1,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1;break}}if(e.i=3&&Ae%2==1){r[t++]=e.sb2,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),e.i=e.i+2;break}}if(e.i=2&&At%2==0){r[t++]=e.sb2,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),e.i=e.i+2;break}}if(e.i=3&&Ye%2==1){r[t++]=e.sb3,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),r[t++]=u(e.msg,e.i+2),e.encb(),e.i=e.i+3;break}}if(e.i=2&&Ft%2==0){r[t++]=e.sb3,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),r[t++]=u(e.msg,e.i+2),e.encb(),e.i=e.i+3;break}}if(r[t++]=e.i,e.abeforeb(),r[--t]){r[t++]=e.swa,e.encc(),e.cset="seta";break}r[t++]=e.swb,e.encc(),e.cset="setb";break}break}e.cws=T(e.cws,0,e.j)}if(!V1.__14946__){e=Object.create(e),e.metrics=a([a([2,7]),a([3,12]),a([4,17]),a([5,22]),a([6,27]),a([7,32]),a([8,37]),a([9,42]),a([10,47]),a([11,52]),a([12,57]),a([13,62]),a([14,67]),a([15,72]),a([16,77])]);for(var p in e)e.hasOwnProperty(p)&&(V1.$ctx[p]=e[p]);V1.__14946__=1,e=Object.getPrototypeOf(e)}e.urows=e.rows;for(var sr=e.metrics,lr=0,yr=sr.length;lre.dcws&&(e.okay=!1),!e.okay);lr++);e.okay||(r[t++]="bwipp.code16kNoValidSymbol#14961",r[t++]="Maximum length exceeded or data too large for given options",ne()),r[t++]=1/0,oe(e.cws);for(var Qr=0,Er=h(e.dcws-e.cws.length);Qr8)&&(r[t++]="bwipp.code49badRows#15115",r[t++]="Code 49 must have 2 to 8 rows",ne()),e.rowheight<8&&(r[t++]="bwipp.code49badRowHeight#15119",r[t++]="Code 49 must have rowheight of at least 8",ne()),e.sepheight<1&&(r[t++]="bwipp.code49badSepHeight#15123",r[t++]="Code 49 must have sepheight of at least 1",ne()),e.append&&e.sam!=-1&&(r[t++]="bwipp.code49samAndAppend#15127",r[t++]="sam and append cannot be specified together",ne()),e.sam!=-1){r[t++]=!0;for(var n=0,o=1;n99){t--,r[t++]=!1;break}if(e.sam%10<2){t--,r[t++]=!1;break}if(~~(e.sam/10)>e.sam%10){t--,r[t++]=!1;break}}dr(r[--t])&&(r[t++]="bwipp.code49badSAM#15138",r[t++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols',ne())}if(xr(va),!va.__15146__){e=Object.create(e),e.s1=-1,e.s2=-2,e.fn1=-3,e.fn2=-4,e.fn3=-5,e.ns=-6;for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15146__=1,e=Object.getPrototypeOf(e)}var l=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC2",e.fn2],["FNC3",e.fn3]]);e.fncvals=l,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var c=r[--t];if(e[r[--t]]=c,e.msglen=e.msg.length,je(e.msg,function(){r[--t]>127&&(r[t++]="bwipp.code49badCharacter#15161",r[t++]="Code 49 can only support ASCII characters with values 0 to 127",ne())}),!va.__15205__){e=Object.create(e),e.charmap=a(["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%",e.s1,e.s2,e.fn1,e.fn2,e.fn3,e.ns]),e.charvals=new Map;for(var d=0;d<=48;d+=1){e.i=d;var f=u(e.charmap,e.i);if(r[t++]=f,ae(La(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}y(e.charvals,r[--t],e.i)}e.combos=a(["1 ","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","11","12","13","14","15"," ","16","17","18"," $"," %","19","10","1-","1.","1$"," +","1/"," -"," ."," /"," 0"," 1"," 2"," 3"," 4"," 5"," 6"," 7"," 8"," 9","1+","21","22","23","24","25","26"," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z","27","28","29","20","2-","2.","2A","2B","2C","2D","2E","2F","2G","2H","2I","2J","2K","2L","2M","2N","2O","2P","2Q","2R","2S","2T","2U","2V","2W","2X","2Y","2Z","2$","2/","2+","2%","2 "]);for(var m=0;m<=127;m+=1){e.i=m;var g=u(e.combos,e.i);e.c1=u(g,0),e.c2=u(g,1),e.c1==49&&y(e.charvals,e.i,a([u(e.charvals,e.s1),u(e.charvals,e.c2)])),e.c1==50&&y(e.charvals,e.i,a([u(e.charvals,e.s2),u(e.charvals,e.c2)]))}for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15205__=1,e=Object.getPrototypeOf(e)}e.encodealpha=function(){var Ae=u(e.charvals,r[--t]);r[t++]=Ae,it(La(Ae),"arraytype")&&wr(a(1));var Ue=r[--t];K(e.cws,e.j,Ue),e.j=Ue.length+e.j},e.base48=function(){var Ae=r[--t];r[t++]=0,je(Ae,function(){var et=r[--t],Et=r[--t];r[t++]=h(h(et-48)+Et*10)}),r[t++]=1/0;var Ue=r[--t],qe=r[--t],Fe=r[--t];r[t++]=Ue,r[t++]=qe;for(var lt=0,gt=h(Fe-1);lt=0;Oe-=1){var Ce=r[--t];r[t++]=u(Ce,Oe),r[t++]=Ce}t--;var Ye=a();K(e.cws,e.j,Ye),e.j=Ye.length+e.j},e.encodenumeric=function(){e.nums=r[--t];var Ae=e.nums.length,Ue=Ae%5;if(r[t++]="pre",r[t++]=Ae,r[t++]=Ue,Ue!=2){var qe=r[--t],Fe=r[--t];r[t++]=h(Fe-qe)}else{var lt=r[--t],gt=r[--t];r[t++]=h(h(gt-lt)-5)}var At=r[--t];e[r[--t]]=At;for(var St=0,yt=h(e.pre-1);St<=yt;St+=5)r[t++]=3,r[t++]=T(e.nums,St,5),e.base48();e.nums=T(e.nums,e.pre,h(e.nums.length-e.pre));var Ct=e.nums.length;r[t++]=Ct,Ct==1&&(r[t++]=u(e.nums,e.i),e.encodealpha());var Oe=r[--t];r[t++]=Oe,Oe==3&&(r[t++]=2,r[t++]=e.nums,e.base48());var Ce=r[--t];if(r[t++]=Ce,Ce==4){r[t++]=3,r[t++]=1/0,r[t++]=49,r[t++]=48,oe(e.nums);var Ye=a();r[t++]=Ye,e.base48()}if(r[--t]==7){r[t++]=3,r[t++]=1/0,r[t++]=49,r[t++]=48,oe(T(e.nums,0,4));var et=a();r[t++]=et,e.base48(),r[t++]=2,r[t++]=T(e.nums,4,3),e.base48()}},r[t++]=1/0;for(var v=0,w=e.msglen;v=0;A-=1){e.i=A;var k=u(e.msg,e.i);k>=48&&k<=57?y(e.numericruns,e.i,h(u(e.numericruns,e.i+1)+1)):y(e.numericruns,e.i,0)}if(e.cws=a(e.msglen*2+1),!va.__15262__){e=Object.create(e),e.samval=a([12,22,13,23,33,14,24,34,44,15,25,35,45,55,16,26,36,46,56,66,17,27,37,47,57,67,77,18,28,38,48,58,68,78,88,19,29,39,49,59,69,79,89,99]);for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15262__=1,e=Object.getPrototypeOf(e)}for(;;){if(e.append){e.mode=1,e.method="alpha",e.i=0,e.j=0;break}if(e.sam!=-1){e.mode=3,r[t++]=e.cws,r[t++]=0;for(var C=0;C<=43;C+=1)r[t++]=C,u(e.samval,C)!=e.sam&&t--;var M=r[--t],S=r[--t];y(r[--t],S,h(M+1)),e.method="alpha",e.i=0,e.j=1;break}if(u(e.numericruns,0)>=5){e.mode=2,e.method="numeric",e.i=0,e.j=0;break}var I=u(e.charvals,u(e.msg,0));if(r[t++]=I,it(La(I),"arraytype")){t--,e.mode=0,e.method="alpha",e.i=0,e.j=0;break}var E=u(r[--t],0)==43?4:5;e.mode=E,y(e.cws,0,u(u(e.charvals,u(e.msg,0)),1)),e.method="alpha",e.i=1,e.j=1;break}for(;e.i!=e.msglen;)for(;;){if(ae(e.method,"alpha")){if(u(e.numericruns,e.i)>=5){r[t++]=e.ns,e.encodealpha(),e.method="numeric";break}r[t++]=u(e.msg,e.i),e.encodealpha(),e.i=e.i+1;break}if(ae(e.method,"numeric")){if(u(e.numericruns,e.i)<5){r[t++]=e.ns,e.encodealpha(),e.method="alpha";break}r[t++]=T(e.msg,e.i,u(e.numericruns,e.i)),e.encodenumeric(),e.i=h(e.i+u(e.numericruns,e.i));break}}if(e.cws=T(e.cws,0,e.j),!va.__15340__){e=Object.create(e),e.metrics=a([a([2,9]),a([3,16]),a([4,23]),a([5,30]),a([6,37]),a([7,42]),a([8,49])]);for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15340__=1,e=Object.getPrototypeOf(e)}e.urows=e.rows;for(var j=e.metrics,B=0,F=j.length;Be.dcws&&(e.okay=!1),!e.okay);B++);e.okay||(r[t++]="bwipp.code49noValidSymbol#15355",r[t++]="Maximum length exceeded",ne()),r[t++]=1/0,oe(e.cws);for(var O=0,N=h(e.dcws-e.cws.length);O=7){r[t++]=e.cr7*u(e.weightz,0),r[t++]=e.weightz,e.calccheck();var fe=r[--t],he=h(r[--t]+fe)%2401;r[t++]=~~(he/49),r[t++]=he%49,wr(a(2)),K(e.lastrow,0,r[--t])}e.wr1=h(u(e.lastrow,0)*49+u(e.lastrow,1)),r[t++]=e.cr7*u(e.weighty,0),r[t++]=e.weighty,e.calccheck();var Ie=r[--t],ve=h(h(r[--t]+Ie)+e.wr1*u(e.weighty,h(e.r*4-3)))%2401;e.wr2=ve,r[t++]=~~(ve/49),r[t++]=ve%49,wr(a(2)),K(e.lastrow,2,r[--t]),r[t++]=e.cr7*u(e.weightx,0),r[t++]=e.weightx,e.calccheck();var be=r[--t],ke=h(h(h(r[--t]+be)+e.wr1*u(e.weightx,h(e.r*4-3)))+e.wr2*u(e.weightx,h(e.r*4-2)))%2401;r[t++]=~~(ke/49),r[t++]=ke%49,wr(a(2)),K(e.lastrow,4,r[--t]);var ze=T(e.ccs,e.ccs.length-8,7);r[t++]=0;for(var Ge=0,Ve=ze.length;Ge57)&&(r[t++]="bwipp.flattermarkenBadCharacter#16488",r[t++]="Flattermarken must contain only digits",ne())}),!N0.__16501__){e=Object.create(e),e.encs=a(["0018","0117","0216","0315","0414","0513","0612","0711","0810","0900"]),e.barchars="1234567890";for(var n in e)e.hasOwnProperty(n)&&(N0.$ctx[n]=e[n]);N0.__16501__=1,e=Object.getPrototypeOf(e)}e.barlen=e.barcode.length,e.sbs=pe(e.barlen*4),e.txt=a(e.barlen);for(var o=0,i=e.barlen-1;o<=i;o+=1)e.i=o,fr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*9,e.textyoffset,e.textfont,e.textsize]));r[t++]=1/0,r[t++]=1/0;for(var s=e.sbs,l=0,c=s.length;l57)&&(r[t++]="bwipp.rawBadCharacter#16574",r[t++]="Raw must contain only digits 1 to 9",ne())}),r[t++]=1/0,r[t++]=1/0,je(e.barcode,function(){var p=r[--t];r[t++]=h(p-48)});var n=a();r[t++]=1/0;for(var o=0,i=~~((e.barcode.length+1)/2);o8)&&(r[t++]="bwipp.pdf417InvalidErrorCorrectionLevel#16824",r[t++]="Valid error correction levels are 0 to 8",ne()),e.ccc&&e.raw&&(r[t++]="bwipp.pdf417cccAndRaw#16828",r[t++]="Cannot combine ccc and raw",ne()),e.ccc&&e.compact&&(r[t++]="bwipp.pdf417cccAndCompact#16832",r[t++]="Cannot combine ccc and compact",ne()),e.rows!=0&&(e.rows<3||e.rows>90)&&(r[t++]="bwipp.pdf417invalidRows#16836",r[t++]="There must be between 3 and 90 rows",ne()),e.columns!=0&&(e.columns<1||e.columns>30)&&(r[t++]="bwipp.pdf417invalidColumns#16840",r[t++]="There must be between 1 and 30 columns",ne()),e.rowmult<=0&&(r[t++]="bwipp.pdf417badRowMult#16844",r[t++]="The row multiplier must be greater than zero",ne()),xr(sl),!sl.__16938__){e=Object.create(e),e.T=0,e.N=1,e.B=2,e.A=0,e.L=1,e.M=2,e.P=3,e.tl=-1,e.nl=-2,e.bl=-3,e.bl6=-4,e.bs=-5,e.al=-6,e.ll=-7,e.ml=-8,e.pl=-9,e.as=-10,e.ps=-11,e.charmaps=a([a(["A","a","0",";"]),a(["B","b","1","<"]),a(["C","c","2",">"]),a(["D","d","3","@"]),a(["E","e","4","["]),a(["F","f","5",92]),a(["G","g","6","]"]),a(["H","h","7","_"]),a(["I","i","8","`"]),a(["J","j","9","~"]),a(["K","k","&","!"]),a(["L","l",13,13]),a(["M","m",9,9]),a(["N","n",",",","]),a(["O","o",":",":"]),a(["P","p","#",10]),a(["Q","q","-","-"]),a(["R","r",".","."]),a(["S","s","$","$"]),a(["T","t","/","/"]),a(["U","u","+",'"']),a(["V","v","%","|"]),a(["W","w","*","*"]),a(["X","x","=",40]),a(["Y","y","^",41]),a(["Z","z",e.pl,"?"]),a([" "," "," ","{"]),a([e.ll,e.as,e.ll,"}"]),a([e.ml,e.ml,e.al,"'"]),a([e.ps,e.ps,e.ps,e.al])]),e.charvals=a([new Map,new Map,new Map,new Map]),e.alltext=new Map;for(var n=0,o=e.charmaps.length-1;n<=o;n+=1){e.i=n,e.encs=u(e.charmaps,e.i);for(var i=0;i<=3;i+=1){e.j=i;var s=u(e.encs,e.j);if(r[t++]=s,ae(La(s),"stringtype")){var l=u(r[--t],0);r[t++]=l}var c=r[--t];y(u(e.charvals,e.j),c,e.i),y(e.alltext,c,-1)}}e.e=1e4,e.latlen=a([a([0,1,1,2]),a([2,0,1,2]),a([1,1,0,1]),a([1,2,2,0])]),e.latseq=a([a([a([]),a([e.ll]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.ml,e.al]),a([]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.al]),a([e.ll]),a([]),a([e.pl])]),a([a([e.al]),a([e.al,e.ll]),a([e.al,e.ml]),a([])])]),e.shftlen=a([a([e.e,e.e,e.e,1]),a([1,e.e,e.e,1]),a([e.e,e.e,e.e,1]),a([e.e,e.e,e.e,e.e])]),r[t++]=1/0,r[t++]=e.tl,r[t++]=900,r[t++]=e.bl,r[t++]=901,r[t++]=e.bl6,r[t++]=924,r[t++]=e.nl,r[t++]=902,r[t++]=e.bs,r[t++]=913,e.latchcws=Bt();for(var d in e)e.hasOwnProperty(d)&&(sl.$ctx[d]=e[d]);sl.__16938__=1,e=Object.getPrototypeOf(e)}if(e.raw){for(e.datcws=a(e.barcode.length),e.i=0,e.j=0;!(e.i>=e.barcode.length-3||u(e.barcode,e.i)!=94);){var f=T(e.barcode,e.i+1,3);r[t++]=f,r[t++]=!1;for(var p=0,m=f.length;p57)&&(t--,r[t++]=!0)}if(r[--t]){t--;break}e.cw=ft(r[--t]),y(e.datcws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1}e.i!=e.barcode.length&&(r[t++]="bwipp.pdf417badRawFormat#16956",r[t++]="raw data must be formatted as ^NNN",ne()),e.datcws=T(e.datcws,0,e.j)}if(e.encb=function(){e.in=r[--t],e.inlen=e.in.length,e.out=a(~~(e.inlen/6)*5+e.inlen%6);for(var Ne=0,ye=~~(e.inlen/6)-1;Ne<=ye;Ne+=1){e.k=Ne,r[t++]=1/0,oe(T(e.in,e.k*6,3)),e.msbs=a(),r[t++]=1/0,oe(e.msbs);var rt=r[--t],Be=r[--t],Ae=r[--t];r[t++]=h(h(rt+Be*256)+Ae*65536);for(var Ue=0,qe=3;Ue=0;H-=1){e.i=H;var L=u(e.msg,e.i);L>=48&&L<=57&&y(e.numdigits,e.i,h(u(e.numdigits,e.i+1)+1));var _=u(e.alltext,u(e.msg,e.i))!==void 0;_&&u(e.numdigits,e.i)<13&&y(e.numtext,e.i,h(u(e.numtext,e.i+1)+1)),u(e.msg,e.i)>=0&&u(e.numtext,e.i)<5&&u(e.numdigits,e.i)<13&&y(e.numbytes,e.i,h(u(e.numbytes,e.i+1)+1)),y(e.iseci,e.i,u(e.msg,e.i)<=-1e6)}for(e.numdigits=T(e.numdigits,0,e.msglen),e.numtext=T(e.numtext,0,e.msglen),e.numbytes=T(e.numbytes,0,e.msglen),e.seq=a([]),e.seqlen=0,e.state=e.T,e.p=0;e.p!=e.msglen;)if(u(e.iseci,e.p)){if(e.eci=u(e.msg,e.p),r[t++]=1/0,oe(e.seq),r[t++]=a([e.eci]),e.seq=a(),e.p=e.p+1,r[t++]="seqlen",r[t++]=e.seqlen,e.eci<=-1810900)r[t++]=2;else{var V=e.eci<=-1000900?3:2;r[t++]=V}var $=r[--t],z=r[--t];e[r[--t]]=h(z+$)}else if(e.n=u(e.numdigits,e.p),e.n>=13||e.n==e.msglen&&e.n>=8){r[t++]=1/0,oe(e.seq),r[t++]=e.nl,r[t++]=1/0,oe(T(e.msg,e.p,e.n));var Q=a();r[t++]=Q,e.seq=a(),e.state=e.N,e.p=h(e.p+e.n),e.seqlen=h(e.seqlen+1+e.n)}else if(e.t=u(e.numtext,e.p),e.t>=5){r[t++]=1/0,oe(e.seq),e.state!=e.T&&(r[t++]=e.tl),r[t++]=1/0,oe(T(e.msg,e.p,e.t));var G=a();r[t++]=G,e.seq=a(),e.state=e.T,e.p=h(e.p+e.t),e.seqlen=h(h(e.seqlen+1)+e.t)}else if(e.b=u(e.numbytes,e.p),e.b==1&&e.state==e.T)r[t++]=1/0,oe(e.seq),r[t++]=e.bs,r[t++]=a([u(e.msg,e.p)]),e.seq=a(),e.p=h(e.p+e.b),e.seqlen=h(e.seqlen+2);else{r[t++]=1/0,oe(e.seq);var D=e.b%6!=0?e.bl:e.bl6;r[t++]=D,r[t++]=1/0,oe(T(e.msg,e.p,e.b));var q=a();r[t++]=q,e.seq=a(),e.state=e.B,e.p=h(e.p+e.b),e.seqlen=h(h(e.seqlen+1)+e.b)}for(e.enca=function(){var Ne=u(u(e.charvals,e.A),r[--t]);r[t++]=Ne},e.encl=function(){var Ne=u(u(e.charvals,e.L),r[--t]);r[t++]=Ne},e.encm=function(){var Ne=u(u(e.charvals,e.M),r[--t]);r[t++]=Ne},e.encp=function(){var Ne=u(u(e.charvals,e.P),r[--t]);r[t++]=Ne},e.textencfuncs=a(["enca","encl","encm","encp"]),e.addtotext=function(){y(e.text,e.l,r[--t]),e.l=e.l+1},e.enct=function(){e.in=r[--t],e.curlen=a([e.e,e.e,e.e,e.e]),y(e.curlen,e.submode,0),e.curseq=a([a([]),a([]),a([]),a([])]),je(e.in,function(){for(e.char=r[--t];;){e.imp=!1;for(var Et=a([e.A,e.L,e.M,e.P]),ut=0,Dt=Et.length;ut=e.txtseq.length||(e.char=u(e.txtseq,e.k),r[t++]=e.char,e[u(e.textencfuncs,e.submode)]()===!0));)e.addtotext(),e.k=e.k+1,(e.char==e.as||e.char==e.ps)&&(r[t++]=u(e.txtseq,e.k),e.char==e.as?e.enca():e.encp(),e.addtotext(),e.k=e.k+1),e.char==e.al&&(e.submode=e.A),e.char==e.ll&&(e.submode=e.L),e.char==e.ml&&(e.submode=e.M),e.char==e.pl&&(e.submode=e.P);if(e.text.length%2==1){if(e.submode==e.P){r[t++]="pad",r[t++]=e.al,e.encp();var Be=r[--t];e[r[--t]]=Be,e.submode=e.A}else{e.nextecitext=!1;for(var Ae=e.i+1,Ue=e.seq.length-1;Ae<=Ue;Ae+=1){if(e.ti=Ae,it(La(u(e.seq,e.ti)),"arraytype")){e.nextecitext=!1;break}if(u(u(e.seq,e.ti),0)>-1e6)break;e.nextecitext=!0}if(e.nextecitext)if(e.submode==e.A){var qe=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(qe){r[t++]="pad",r[t++]=e.ll,e.enca();var Fe=r[--t];e[r[--t]]=Fe,e.submode=e.L}else{r[t++]="pad",r[t++]=e.ml,e.enca();var lt=r[--t];e[r[--t]]=lt,e.submode=e.M}}else if(e.submode==e.M){var gt=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(gt){r[t++]="pad",r[t++]=e.ll,e.encm();var At=r[--t];e[r[--t]]=At,e.submode=e.L}else{var St=u(u(e.charvals,e.P),u(u(e.seq,e.ti),0))!==void 0;if(St){r[t++]="pad",r[t++]=e.pl,e.encm();var yt=r[--t];e[r[--t]]=yt,e.submode=e.P}else{r[t++]="pad",r[t++]=e.al,e.encm();var Ct=r[--t];e[r[--t]]=Ct,e.submode=e.A}}}else{r[t++]="pad",r[t++]=e.ml,e.encl();var Oe=r[--t];e[r[--t]]=Oe,e.submode=e.M}else{if(r[t++]="pad",r[t++]=e.ps,e[u(e.textencfuncs,e.submode)]()===!0)return!0;var Ce=r[--t];e[r[--t]]=Ce}}r[t++]=1/0,oe(e.text),r[t++]=e.pad,e.text=a()}e.out=a(~~(e.text.length/2));for(var Ye=0,et=e.out.length-1;Ye<=et;Ye+=1)e.k=Ye,y(e.out,e.k,h(u(e.text,e.k*2)*30+u(e.text,e.k*2+1)));r[t++]=e.out},e.encn=function(){e.in=r[--t],e.out=a([]);for(var Ne=0,ye=e.in.length-1;Ne<=ye;Ne+=44){e.k=Ne,r[t++]=1/0;var rt=e.in.length-e.k;r[t++]=1,r[t++]=e.in,r[t++]=e.k,r[t++]=rt,rt>44&&(t--,r[t++]=44);for(var Be=r[--t],Ae=r[--t],Ue=T(r[--t],Ae,Be),qe=0,Fe=Ue.length;qe=e.seq.length);){if(e.chars=u(e.seq,e.i),ae(La(e.chars),"arraytype"))if(u(e.chars,0)<=-1e6)r[t++]=e.chars,e.ence(),e.addtocws();else{if(r[t++]=e.chars,e[u(e.encfuncs,e.state)]()===!0)break;e.addtocws()}else r[t++]=a([u(e.latchcws,e.chars)]),e.addtocws(),e.chars==e.tl&&(e.state=e.T,e.submode=e.A),e.chars==e.nl&&(e.state=e.N),(e.chars==e.bl||e.chars==e.bl6)&&(e.state=e.B),e.chars==e.bs&&(e.i=e.i+1,r[t++]=u(e.seq,e.i),e.encb(),e.addtocws());e.i=e.i+1}e.datcws=T(e.datcws,0,e.j)}e.m=e.datcws.length,e.eclevel==-1&&(e.m<=40&&(e.eclevel=2),e.m>=41&&e.m<=160&&(e.eclevel=3),e.m>=161&&e.m<=320&&(e.eclevel=4),e.m>=321&&(e.eclevel=5)),e.maxeclevel=~~(Math.log(927-e.m)/Math.log(2))-1,e.eclevel>e.maxeclevel&&(e.eclevel=e.maxeclevel),e.k=~~Math.pow(2,e.eclevel+1),e.columns==0&&(e.columns=~~Math.round(Math.sqrt((e.m+e.k)/3))),r[t++]="c",e.columns>=1?r[t++]=e.columns:r[t++]=1;var W=r[--t];e[r[--t]]=W,e.r=~~Math.ceil((e.m+e.k+1)/e.columns),e.r90&&(r[t++]="bwipp.pdf417insufficientCapacity#17381",r[t++]="Insufficient capacity in the symbol",ne());var X=e.c,te=e.r,se=e.m,de=8,ee=~~(Math.log(h(h(X*te-1)-se))/Math.log(2))-1;if(~~(Math.log(h(h(X*te-1)-se))/Math.log(2))-1>8){var fe=de;de=ee,ee=fe}e.maxeclevel=ee,e.maxeclevel>e.eclevel&&(e.eclevel=e.maxeclevel,e.k=~~Math.pow(2,e.eclevel+1)),e.n=h(e.c*e.r-e.k),e.cws=a(h(e.c*e.r+1)),y(e.cws,0,e.n),K(e.cws,1,e.datcws),r[t++]=e.cws,r[t++]=e.m+1,r[t++]=1/0;for(var he=0,Ie=h(h(e.n-e.m)-1);he=1;Ze-=1){e.j=Ze,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var dt=r[--t],Xe=r[--t],Pt=r[--t];y(r[--t],Pt,h(Xe+dt)%929)}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var mt=r[--t],pt=r[--t];y(r[--t],pt,mt)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var Te=e.coeffs.length-1;Te>=0;Te-=2){var Re=e.coeffs;y(Re,Te,h(929-u(Re,Te)))}for(var Je=0,It=h(e.n-1);Je<=It;Je+=1){e.t=h(u(e.cws,Je)+u(e.cws,e.n))%929;for(var Nt=0,ht=e.k-1;Nt<=ht;Nt+=1)e.j=Nt,y(e.cws,h(e.n+e.j),h(u(e.cws,h(h(e.n+e.j)+1))+h(929-e.t*u(e.coeffs,e.k-e.j-1)%929))%929)}for(var xt=e.n,tt=h(e.n+e.k);xt<=tt;xt+=1)y(e.cws,xt,h(929-u(e.cws,xt))%929);e.cws=T(e.cws,0,e.cws.length-1);var Y=u(e.options,"debugcws")!==void 0;if(Y&&(r[t++]="bwipp.debugcws#17442",r[t++]=e.cws,ne()),!sl.__17686__){e=Object.create(e),e.clusters=a([a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);for(var d in e)e.hasOwnProperty(d)&&(sl.$ctx[d]=e[d]);sl.__17686__=1,e=Object.getPrototypeOf(e)}e.cwtobits=function(){var Ne=u(e.clusters,r[--t]);e.v=u(Ne,r[--t]),r[t++]=1/0;for(var ye=0,rt=17;ye57)&&(t--,r[t++]=!1)}),dr(r[--t])&&(r[t++]="bwipp.micropdf417BadVersionBadRowOrColumn#17874",r[t++]="version must be formatted as RxC",ne())}),e.rows=ft(r[--t]),e.columns=ft(r[--t])}else t--,r[t++]="bwipp.micropdf417badVersionFormat#17880",r[t++]="version must be formatted as RxC",ne();if(xr(ss),!ss.__17974__){e=Object.create(e),e.T=0,e.N=1,e.B=2,e.A=0,e.L=1,e.M=2,e.P=3,e.tl=-1,e.nl=-2,e.bl=-3,e.bl6=-4,e.bs=-5,e.al=-6,e.ll=-7,e.ml=-8,e.pl=-9,e.as=-10,e.ps=-11,e.m05=-12,e.m06=-13,e.charmaps=a([a(["A","a","0",";"]),a(["B","b","1","<"]),a(["C","c","2",">"]),a(["D","d","3","@"]),a(["E","e","4","["]),a(["F","f","5",92]),a(["G","g","6","]"]),a(["H","h","7","_"]),a(["I","i","8","`"]),a(["J","j","9","~"]),a(["K","k","&","!"]),a(["L","l",13,13]),a(["M","m",9,9]),a(["N","n",",",","]),a(["O","o",":",":"]),a(["P","p","#",10]),a(["Q","q","-","-"]),a(["R","r",".","."]),a(["S","s","$","$"]),a(["T","t","/","/"]),a(["U","u","+",'"']),a(["V","v","%","|"]),a(["W","w","*","*"]),a(["X","x","=",40]),a(["Y","y","^",41]),a(["Z","z",e.pl,"?"]),a([" "," "," ","{"]),a([e.ll,e.as,e.ll,"}"]),a([e.ml,e.ml,e.al,"'"]),a([e.ps,e.ps,e.ps,e.al])]),e.charvals=a([new Map,new Map,new Map,new Map]),e.alltext=new Map;for(var l=0,c=e.charmaps.length-1;l<=c;l+=1){e.i=l,e.encs=u(e.charmaps,e.i);for(var d=0;d<=3;d+=1){e.j=d;var f=u(e.encs,e.j);if(r[t++]=f,ae(La(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}var m=r[--t];y(u(e.charvals,e.j),m,e.i),y(e.alltext,m,-1)}}e.e=1e4,e.latlen=a([a([0,1,1,2]),a([2,0,1,2]),a([1,1,0,1]),a([1,2,2,0])]),e.latseq=a([a([a([]),a([e.ll]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.ml,e.al]),a([]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.al]),a([e.ll]),a([]),a([e.pl])]),a([a([e.al]),a([e.al,e.ll]),a([e.al,e.ml]),a([])])]),e.shftlen=a([a([e.e,e.e,e.e,1]),a([1,e.e,e.e,1]),a([e.e,e.e,e.e,1]),a([e.e,e.e,e.e,e.e])]);for(var g in e)e.hasOwnProperty(g)&&(ss.$ctx[g]=e[g]);ss.__17974__=1,e=Object.getPrototypeOf(e)}if(e.raw||e.cca){for(e.datcws=a(e.barcode.length),e.i=0,e.j=0;!(e.i>=e.barcode.length-3||u(e.barcode,e.i)!=94);){var v=T(e.barcode,e.i+1,3);r[t++]=v,r[t++]=!1;for(var w=0,A=v.length;w57)&&(t--,r[t++]=!0)}if(r[--t]){t--;break}e.cw=ft(r[--t]),y(e.datcws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1}e.i!=e.barcode.length&&(r[t++]="bwipp.micropdf417badCcaRawFormat#17992",r[t++]="cca and raw data must be formatted as ^NNN",ne()),e.datcws=T(e.datcws,0,e.j)}if(e.encb=function(){e.in=r[--t],e.inlen=e.in.length,e.out=a(~~(e.inlen/6)*5+e.inlen%6);for(var Fe=0,lt=~~(e.inlen/6)-1;Fe<=lt;Fe+=1){e.k=Fe,r[t++]=1/0,oe(T(e.in,e.k*6,3)),e.msbs=a(),r[t++]=1/0,oe(e.msbs);var gt=r[--t],At=r[--t],St=r[--t];r[t++]=h(h(gt+At*256)+St*65536);for(var yt=0,Ct=3;yt=9){oe(T(e.msg,0,7));var B=r[--t],F=r[--t];r[t++]=B==29,r[t++]=F,t--;var O=r[--t],N=r[--t],H=r[--t],L=r[--t],_=r[--t],V=r[--t];if(O&&N==48&&H==30&&L==62&&_==41&&V==91){oe(T(e.msg,e.msglen-2,2));var $=r[--t],z=r[--t];$==4&&z==30&&(u(e.msg,5)==53?(r[t++]=1/0,r[t++]=e.m05,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()):u(e.msg,5)==54&&(r[t++]=1/0,r[t++]=e.m06,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()))}}e.msglen=e.msg.length,r[t++]=1/0;for(var Q=0,G=e.msglen;Q=0;de-=1){e.i=de;var ee=u(e.msg,e.i);ee>=48&&ee<=57&&y(e.numdigits,e.i,h(u(e.numdigits,e.i+1)+1));var fe=u(e.alltext,u(e.msg,e.i))!==void 0;fe&&u(e.numdigits,e.i)<13&&y(e.numtext,e.i,h(u(e.numtext,e.i+1)+1)),u(e.msg,e.i)>=0&&u(e.numtext,e.i)<5&&u(e.numdigits,e.i)<13&&y(e.numbytes,e.i,h(u(e.numbytes,e.i+1)+1)),y(e.iseci,e.i,u(e.msg,e.i)<=-1e6)}for(e.numdigits=T(e.numdigits,0,e.msglen),e.numtext=T(e.numtext,0,e.msglen),e.numbytes=T(e.numbytes,0,e.msglen),e.seq=a([]),e.seqlen=0,e.state=e.B,e.p=0;e.p!=e.msglen;){var he=u(e.msg,e.p);if(e.p==0&&(he==e.m05||he==e.m06)){r[t++]=1/0,oe(e.seq);var Ie=u(e.msg,e.p)==e.m05?e.m05:e.m06;r[t++]=Ie,e.seq=a(),e.p=e.p+1,e.seqlen=e.seqlen+1}else if(u(e.iseci,e.p)){if(e.eci=u(e.msg,e.p),r[t++]=1/0,oe(e.seq),r[t++]=a([e.eci]),e.seq=a(),e.p=e.p+1,r[t++]="seqlen",r[t++]=e.seqlen,e.eci<=-1810900)r[t++]=2;else{var ve=e.eci<=-1000900?3:2;r[t++]=ve}var be=r[--t],ke=r[--t];e[r[--t]]=h(ke+be)}else if(e.n=u(e.numdigits,e.p),e.n>=13||e.n==e.msglen&&e.n>=8){r[t++]=1/0,oe(e.seq),r[t++]=e.nl,r[t++]=1/0,oe(T(e.msg,e.p,e.n));var ze=a();r[t++]=ze,e.seq=a(),e.state=e.N,e.p=h(e.p+e.n),e.seqlen=h(e.seqlen+1+e.n)}else if(e.t=u(e.numtext,e.p),e.t>=5){r[t++]=1/0,oe(e.seq),e.state!=e.T&&(r[t++]=e.tl),r[t++]=1/0,oe(T(e.msg,e.p,e.t));var Ge=a();r[t++]=Ge,e.seq=a(),e.state=e.T,e.p=h(e.p+e.t),e.seqlen=h(h(e.seqlen+1)+e.t)}else if(e.b=u(e.numbytes,e.p),e.b==1&&e.state==e.T)r[t++]=1/0,oe(e.seq),r[t++]=e.bs,r[t++]=a([u(e.msg,e.p)]),e.seq=a(),e.p=h(e.p+e.b),e.seqlen=h(e.seqlen+2);else{r[t++]=1/0,oe(e.seq);var Ve=e.b%6!=0?e.bl:e.bl6;r[t++]=Ve,r[t++]=1/0,oe(T(e.msg,e.p,e.b));var at=a();r[t++]=at,e.seq=a(),e.state=e.B,e.p=h(e.p+e.b),e.seqlen=h(h(e.seqlen+1)+e.b)}}for(r[t++]=1/0,r[t++]=e.tl,r[t++]=900,r[t++]=e.bl,r[t++]=901,r[t++]=e.bl6,r[t++]=924,r[t++]=e.nl,r[t++]=902,r[t++]=e.bs,r[t++]=913,r[t++]=e.m05,r[t++]=916,r[t++]=e.m06,r[t++]=917,e.latchcws=Bt(),e.enca=function(){var Fe=u(u(e.charvals,e.A),r[--t]);r[t++]=Fe},e.encl=function(){var Fe=u(u(e.charvals,e.L),r[--t]);r[t++]=Fe},e.encm=function(){var Fe=u(u(e.charvals,e.M),r[--t]);r[t++]=Fe},e.encp=function(){var Fe=u(u(e.charvals,e.P),r[--t]);r[t++]=Fe},e.textencfuncs=a(["enca","encl","encm","encp"]),e.addtotext=function(){y(e.text,e.l,r[--t]),e.l=e.l+1},e.enct=function(){e.in=r[--t],e.curlen=a([e.e,e.e,e.e,e.e]),y(e.curlen,e.submode,0),e.curseq=a([a([]),a([]),a([]),a([])]),je(e.in,function(){for(e.char=r[--t];;){e.imp=!1;for(var sr=a([e.A,e.L,e.M,e.P]),lr=0,yr=sr.length;lr=e.txtseq.length||(e.char=u(e.txtseq,e.k),r[t++]=e.char,e[u(e.textencfuncs,e.submode)]()===!0));)e.addtotext(),e.k=e.k+1,(e.char==e.as||e.char==e.ps)&&(r[t++]=u(e.txtseq,e.k),e.char==e.as?e.enca():e.encp(),e.addtotext(),e.k=e.k+1),e.char==e.al&&(e.submode=e.A),e.char==e.ll&&(e.submode=e.L),e.char==e.ml&&(e.submode=e.M),e.char==e.pl&&(e.submode=e.P);if(e.text.length%2==1){if(e.submode==e.P){r[t++]="pad",r[t++]=e.al,e.encp();var At=r[--t];e[r[--t]]=At,e.submode=e.A}else{e.nextecitext=!1;for(var St=e.i+1,yt=e.seq.length-1;St<=yt;St+=1){if(e.ti=St,it(La(u(e.seq,e.ti)),"arraytype")){e.nextecitext=!1;break}if(u(u(e.seq,e.ti),0)>-1e6)break;e.nextecitext=!0}if(e.nextecitext)if(e.submode==e.A){var Ct=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(Ct){r[t++]="pad",r[t++]=e.ll,e.enca();var Oe=r[--t];e[r[--t]]=Oe,e.submode=e.L}else{r[t++]="pad",r[t++]=e.ml,e.enca();var Ce=r[--t];e[r[--t]]=Ce,e.submode=e.M}}else if(e.submode==e.M){var Ye=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(Ye){r[t++]="pad",r[t++]=e.ll,e.encm();var et=r[--t];e[r[--t]]=et,e.submode=e.L}else{var Et=u(u(e.charvals,e.P),u(u(e.seq,e.ti),0))!==void 0;if(Et){r[t++]="pad",r[t++]=e.pl,e.encm();var ut=r[--t];e[r[--t]]=ut,e.submode=e.P}else{r[t++]="pad",r[t++]=e.al,e.encm();var Dt=r[--t];e[r[--t]]=Dt,e.submode=e.A}}}else{r[t++]="pad",r[t++]=e.ml,e.encl();var jt=r[--t];e[r[--t]]=jt,e.submode=e.M}else{if(r[t++]="pad",r[t++]=e.ps,e[u(e.textencfuncs,e.submode)]()===!0)return!0;var nr=r[--t];e[r[--t]]=nr}}r[t++]=1/0,oe(e.text),r[t++]=e.pad,e.text=a()}e.out=a(~~(e.text.length/2));for(var Ft=0,cr=e.out.length-1;Ft<=cr;Ft+=1)e.k=Ft,y(e.out,e.k,h(u(e.text,e.k*2)*30+u(e.text,e.k*2+1)));r[t++]=e.out},e.encn=function(){e.in=r[--t],e.out=a([]);for(var Fe=0,lt=e.in.length-1;Fe<=lt;Fe+=44){e.k=Fe,r[t++]=1/0;var gt=e.in.length-e.k;r[t++]=1,r[t++]=e.in,r[t++]=e.k,r[t++]=gt,gt>44&&(t--,r[t++]=44);for(var At=r[--t],St=r[--t],yt=T(r[--t],St,At),Ct=0,Oe=yt.length;Ct=e.seq.length);){if(e.chars=u(e.seq,e.i),ae(La(e.chars),"arraytype"))if(u(e.chars,0)<=-1e6)r[t++]=e.chars,e.ence(),e.addtocws();else{if(r[t++]=e.chars,e[u(e.encfuncs,e.state)]()===!0)break;e.addtocws()}else r[t++]=a([u(e.latchcws,e.chars)]),e.addtocws(),e.chars==e.tl&&(e.state=e.T,e.submode=e.A),e.chars==e.nl&&(e.state=e.N),(e.chars==e.bl||e.chars==e.bl6)&&(e.state=e.B),e.chars==e.bs&&(e.i=e.i+1,r[t++]=u(e.seq,e.i),e.encb(),e.addtocws()),e.chars==e.m05&&(e.i+1e.ncws&&(e.okay=!1),e.urows!=0&&e.urows!=e.r&&(e.okay=!1),e.ucols!=0&&e.ucols!=e.c&&(e.okay=!1),e.okay)return!0}),e.okay||(r[t++]="bwipp.micropdf417noValidSymbol#18527",r[t++]="Maximum length exceeded or invalid size",ne()),e.m=e.datcws.length,e.n=h(e.c*e.r-e.k),e.cws=a(h(e.c*e.r+1)),K(e.cws,0,e.datcws),r[t++]=e.cws,r[t++]=e.m,r[t++]=1/0;for(var ue=0,Le=h(e.n-e.m);ue=1;Nt-=1){e.j=Nt,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var ht=r[--t],xt=r[--t],tt=r[--t];y(r[--t],tt,h(xt+ht)%929)}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var Y=r[--t],re=r[--t];y(r[--t],re,Y)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var ie=e.coeffs.length-1;ie>=0;ie-=2){var le=e.coeffs;y(le,ie,h(929-u(le,ie)))}for(var ge=0,Me=h(e.n-1);ge<=Me;ge+=1){e.t=h(u(e.cws,ge)+u(e.cws,e.n))%929;for(var me=0,Ee=h(e.k-1);me<=Ee;me+=1)e.j=me,y(e.cws,h(e.n+e.j),h(u(e.cws,h(h(e.n+e.j)+1))+h(929-e.t*u(e.coeffs,h(h(e.k-e.j)-1))%929))%929)}for(var ce=e.n,Pe=h(e.n+e.k);ce<=Pe;ce+=1)y(e.cws,ce,h(929-u(e.cws,ce))%929);e.cws=T(e.cws,0,e.cws.length-1);var He=u(e.options,"debugcws")!==void 0;if(He&&(r[t++]="bwipp.debugcws#18581",r[t++]=e.cws,ne()),!ss.__18840__){e=Object.create(e),e.clusters=a([a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]),e.raps=a([a([802,930,946,818,882,890,826,954,922,986,970,906,778,794,786,914,978,982,980,916,948,932,934,942,940,936,808,812,814,806,822,950,918,790,788,820,884,868,870,878,876,872,840,856,860,862,846,844,836,838,834,866]),a([718,590,622,558,550,566,534,530,538,570,562,546,610,626,634,762,754,758,630,628,612,614,582,578,706,738,742,740,748,620,556,552,616,744,712,716,708,710,646,654,652,668,664,696,688,656,720,592,600,604,732,734])]);for(var g in e)e.hasOwnProperty(g)&&(ss.$ctx[g]=e[g]);ss.__18840__=1,e=Object.getPrototypeOf(e)}e.cwtobits=function(){var Fe=u(e.clusters,r[--t]);e.v=u(Fe,r[--t]),r[t++]=1/0;for(var lt=0,gt=17;lt57)&&(t--,r[t++]=!1)}),dr(r[--t])&&(r[t++]="bwipp.datamatrixVersionBadRowOrColumn#18989",r[t++]="version must be formatted as RxC",ne())}),e.rows=ft(r[--t]),e.columns=ft(r[--t]),r[t++]="format",e.rows==e.columns?r[t++]="square":r[t++]="rectangle";var l=r[--t];e[r[--t]]=l}else t--,r[t++]="bwipp.datamatrixVersionFormat#18996",r[t++]="version must be formatted as RxC",ne();else if(ae(e.format,"unset")){r[t++]="format",e.dmre?r[t++]="rectangle":r[t++]="square";var c=r[--t];e[r[--t]]=c}if(it(e.format,"square")&&it(e.format,"rectangle")&&(r[t++]="bwipp.datamatrixInvalidFormat#19005",r[t++]="The format must be either square or rectangle",ne()),xr(Ta),!Ta.__19065__){e=Object.create(e);var d=a([20,36,1,2,28,1,1]);e.metrics=a([a([10,10,1,1,5,1,0]),a([12,12,1,1,7,1,0]),a([14,14,1,1,10,1,0]),a([16,16,1,1,12,1,0]),a([18,18,1,1,14,1,0]),a([20,20,1,1,18,1,0]),a([22,22,1,1,20,1,0]),a([24,24,1,1,24,1,0]),a([26,26,1,1,28,1,0]),a([32,32,2,2,36,1,0]),a([36,36,2,2,42,1,0]),a([40,40,2,2,48,1,0]),a([44,44,2,2,56,1,0]),a([48,48,2,2,68,1,0]),a([52,52,2,2,84,2,0]),a([64,64,4,4,112,2,0]),a([72,72,4,4,144,4,0]),a([80,80,4,4,192,4,0]),a([88,88,4,4,224,4,0]),a([96,96,4,4,272,4,0]),a([104,104,4,4,336,6,0]),a([120,120,6,6,408,6,0]),a([132,132,6,6,496,8,0]),a([144,144,6,6,620,10,0]),a([8,18,1,1,7,1,0]),a([8,32,1,2,11,1,0]),a([8,48,1,2,15,1,1]),a([8,64,1,4,18,1,1]),a([8,80,1,4,22,1,1]),a([8,96,1,4,28,1,1]),a([8,120,1,6,32,1,1]),a([8,144,1,6,36,1,1]),a([12,26,1,1,14,1,0]),a([12,36,1,2,18,1,0]),a([12,64,1,4,27,1,1]),a([12,88,1,4,36,1,1]),a([16,36,1,2,24,1,0]),a([16,48,1,2,28,1,0]),a([16,64,1,4,36,1,1]),d,a([20,44,1,2,34,1,1]),a([20,64,1,4,42,1,1]),a([22,48,1,2,38,1,1]),a([24,48,1,2,41,1,1]),a([24,64,1,4,46,1,1]),a([26,40,1,2,38,1,1]),a([26,48,1,2,42,1,1]),a([26,64,1,4,50,1,1])]);for(var f in e)e.hasOwnProperty(f)&&(Ta.$ctx[f]=e[f]);Ta.__19065__=1,e=Object.getPrototypeOf(e)}e.urows=e.rows,e.ucols=e.columns,e.fullcws=a([]);for(var p=e.metrics,m=0,g=p.length;m=0;M-=1)e.i=M,u(e.numremcws,e.i)!=1&&y(e.numremcws,e.i,h(u(e.numremcws,e.i+1)+1));if(!Ta.__19211__){e=Object.create(e),e.fnc1=-1,e.prog=-2,e.m05=-3,e.m06=-4,e.lC=-5,e.lB=-6,e.lX=-7,e.lT=-8,e.lE=-9,e.unl=-10,e.sapp=-11,e.usft=-12,e.sft1=-13,e.sft2=-14,e.sft3=-15,e.eci=-16,e.pad=-17,e.unlcw=254,r[t++]=1/0;for(var S=0;S<=128;S+=1)r[t++]=S,r[t++]=S+1;r[t++]=e.pad,r[t++]=129;for(var I=0;I<=99;I+=1){var E=gr(pe(2),I,10),j=Gn(pe(2),"00");K(j,2-E.length,E),r[t++]=j,r[t++]=I+130}var B=a([e.lC,e.lB,e.fnc1,e.sapp,e.prog,e.usft,e.m05,e.m06,e.lX,e.lT,e.lE,e.eci]);r[t++]=229;for(var F=0,O=B.length;F=9){oe(T(e.msg,0,7));var mo=r[--t],pi=r[--t];r[t++]=mo==29,r[t++]=pi,t--;var Mo=r[--t],Gr=r[--t],go=r[--t],ni=r[--t],Mi=r[--t],$o=r[--t];if(Mo&&Gr==48&&go==30&&ni==62&&Mi==41&&$o==91){oe(T(e.msg,e.msglen-2,2));var Pi=r[--t],ts=r[--t];Pi==4&&ts==30&&(u(e.msg,5)==53?(r[t++]=1/0,r[t++]=e.m05,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()):u(e.msg,5)==54&&(r[t++]=1/0,r[t++]=e.m06,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()))}}e.msglen=e.msg.length,r[t++]=1/0;for(var hi=0,Vi=e.msglen;hi=0;Vo-=1){e.i=Vo,e.barchar=u(e.msg,e.i),e.barchar>=48&&e.barchar<=57&&y(e.numD,e.i,h(u(e.numD,e.i+1)+1)),e.barchar==13||e.barchar==42||e.barchar==62?y(e.nextXterm,e.i,0):y(e.nextXterm,e.i,h(u(e.nextXterm,e.i+1)+1));var ca=u(e.Xvals,e.barchar)!==void 0;ca?y(e.nextNonX,e.i,h(u(e.nextNonX,e.i+1)+1)):y(e.nextNonX,e.i,0),y(e.isECI,e.i,e.barchar<=-1e6)}r[t++]=1/0;for(var Xi=e.nextXterm,Ji=0,Po=Xi.length;Ji1e4&&(t--,r[t++]=1e4)}e.nextXterm=a(),r[t++]=1/0;for(var ea=e.nextNonX,Qo=0,ua=ea.length;Qo1e4&&(t--,r[t++]=1e4)}for(e.nextNonX=a(),e.isD=function(){r[t++]=e.char>=48&&e.char<=57},e.isC=function(){var qt=u(e.CNvals,e.char)!==void 0;r[t++]=qt},e.isT=function(){var qt=u(e.TNvals,e.char)!==void 0;r[t++]=qt},e.isX=function(){var qt=u(e.Xvals,e.char)!==void 0;r[t++]=qt},e.isE=function(){var qt=u(e.Evals,e.char)!==void 0;r[t++]=qt},e.isEA=function(){r[t++]=e.char>127},e.isFN=function(){r[t++]=e.char<0},e.XtermFirst=function(){var qt=r[--t];r[t++]=Fs(u(e.nextXterm,qt),u(e.nextNonX,qt))},e.lookup=function(){e.ac=1,e.cc=2,e.tc=2,e.xc=2,e.ec=2,e.bc=2.25,e.mode==e.A&&(e.ac=0,e.cc=1,e.tc=1,e.xc=1,e.ec=1,e.bc=1.25),e.mode==e.C&&(e.cc=0),e.mode==e.T&&(e.tc=0),e.mode==e.X&&(e.xc=0),e.mode==e.E&&(e.ec=0),e.mode==e.B&&(e.bc=0);for(var qt=0,ur=1;qt=4){var Hm=a([e.cc,e.tc,e.xc,e.ec,e.bc]);r[t++]=!0;for(var Hp=0,v4=Hm.length;Hp=2){var kn=pe(2);y(kn,0,u(e.msg,e.i)),y(kn,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,kn),e.addtocws(),e.i=e.i+2;break}r[t++]="newmode",e.lookup();var Sn=r[--t];if(e[r[--t]]=Sn,e.newmode!=e.mode){r[t++]=u(e.Avals,u(a([-1,e.lC,e.lT,e.lX,e.lE,e.lB]),e.newmode)),e.addtocws(),e.mode=e.newmode;break}r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1;break}},e.CTXvalstocws=function(){e.in=r[--t],r[t++]=1/0;for(var qt=0,ur=e.in.length-1;qt<=ur;qt+=3){var kn=T(e.in,qt,3);r[t++]=0;for(var Sn=0,wi=kn.length;Sn0){r[t++]="newmode",e.lookup();var ur=r[--t];if(e[r[--t]]=ur,it(e.newmode,e.mode)){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),r[t++]=a([e.unlcw]),e.addtocws(),e.newmode!=e.A&&(r[t++]=u(e.Avals,u(a([-1,e.lC,e.lT,e.lX,e.lE,e.lB]),e.newmode)),e.addtocws()),e.mode=e.newmode,e.done=!0;break}}if(e.msglen-e.i<=3){e.remcws=u(e.numremcws,e.j+~~(e.p/3)*2),r[t++]=1/0;for(var kn=T(e.msg,e.i,e.msglen-e.i),Sn=0,wi=kn.length;Sn=2){var is=pe(2);y(is,0,u(e.msg,e.i)),y(is,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,is),e.addtocws(),e.i=e.i+2}else r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1}},e.Evalstocws=function(){e.in=r[--t],e.inlen=e.in.length,e.outlen=~~Math.ceil(e.in.length/4*3),r[t++]=1/0,oe(e.in),r[t++]=0,r[t++]=0,r[t++]=0,e.in=a(),r[t++]=1/0;for(var qt=0,ur=e.inlen-1;qt<=ur;qt+=4){var kn=T(e.in,qt,4);r[t++]=0;for(var Sn=0,wi=kn.length;Sn>>6;r[t++]=Ho>>>16&255,r[t++]=Ho>>>8&255,r[t++]=Ho&255}wr(a(fo()));var Pa=r[--t],ja=r[--t];r[t++]=Pa,r[t++]=ja,t--;var As=T(r[--t],0,e.outlen);r[t++]=As},e.encE=function(){for(e.p=0,e.edifactvals=a(2100);e.i!=e.msglen;){var qt=u(e.Evals,u(e.msg,e.i))!==void 0;if(!qt)break;if(e.p%4==0){if(e.msglen-e.i<=2){e.remcws=u(e.numremcws,e.j+~~(e.p/4)*3),r[t++]=1/0;for(var ur=T(e.msg,e.i,e.msglen-e.i),kn=0,Sn=ur.length;kn=3){var xi=u(e.Evals,e.unl);K(e.edifactvals,e.p,xi),e.p=xi.length+e.p}if(r[t++]=T(e.edifactvals,0,e.p),e.Evalstocws(),e.addtocws(),e.mode=e.A,e.i!=e.msglen&&dr(u(e.isECI,e.i)))if(u(e.numD,e.i)>=2){var Ho=pe(2);y(Ho,0,u(e.msg,e.i)),y(Ho,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,Ho),e.addtocws(),e.i=e.i+2}else r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1}},e.encB=function(){for(e.p=0,e.bvals=a(1558);!(e.i==e.msglen||(e.lookup(),r[--t]!=e.mode));)y(e.bvals,e.p,u(e.msg,e.i)),e.p=e.p+1,e.i=e.i+1;e.remcws=h(u(e.numremcws,e.j+e.p)-1),r[t++]=1/0,e.remcws==0&&e.i==e.msglen?r[t++]=0:e.p<250?r[t++]=e.p:(r[t++]=~~(e.p/250)+249,r[t++]=e.p%250),oe(T(e.bvals,0,e.p)),e.bvals=a();for(var qt=0,ur=e.bvals.length-1;qt<=ur;qt+=1){e.p=qt;var kn=h((e.j+e.p+1)*149%255+1+u(e.bvals,e.p));if(r[t++]=kn,kn>=256){var Sn=r[--t];r[t++]=h(Sn-256)}y(e.bvals,e.p,r[--t])}r[t++]=e.bvals,e.addtocws(),e.mode=e.A},e.cws=a(1558),e.mode=e.A,e.i=0,e.j=0;!(e.i>=e.msglen||e[u(a(["encA","encCTX","encCTX","encCTX","encE","encB"]),e.mode)]()===!0););e.cws=T(e.cws,0,e.j)}if(e.datlen=e.cws.length,e.remcws=h(u(e.numremcws,e.j-1)-1),e.remcws>0){r[t++]=1/0,oe(e.cws);for(var Sr=0,vo=e.remcws;Sr254){var $i=r[--t];r[t++]=h($i-254)}y(e.cws,e.i,r[--t])}}var io=u(e.options,"debugcws")!==void 0;io&&(r[t++]="bwipp.debugcws#19632",r[t++]=e.cws,ne());for(var Ha=e.metrics,Qi=0,ta=Ha.length;Qi=256){var Xr=r[--t];r[t++]=Xr^301}}e.rsalog=a(),e.rslog=a(256);for(var fn=1;fn<=255;fn+=1)y(e.rslog,u(e.rsalog,fn),fn);for(var f in e)e.hasOwnProperty(f)&&(Ta.$ctx[f]=e[f]);Ta.__19687__=1,e=Object.getPrototypeOf(e)}e.rsprod=function(){var qt=r[--t],ur=r[--t];if(r[t++]=ur,r[t++]=qt,qt!=0&&ur!=0){var kn=u(e.rslog,r[--t]),Sn=u(e.rsalog,h(kn+u(e.rslog,r[--t]))%255);r[t++]=Sn}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var Vr=0,Yn=~~(e.rscw/e.rsbl);Vr=1;pn-=1){e.j=pn,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var yn=r[--t],zn=r[--t],Fn=r[--t];y(r[--t],Fn,Zo(zn,yn))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var tn=r[--t],An=r[--t];y(r[--t],An,tn)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var rn=0,hn=e.cwbs.length-1;rn<=hn;rn+=1){e.i=rn,e.cwb=u(e.cwbs,e.i),e.ecb=u(e.ecbs,e.i);for(var Qn=0,ao=e.cwb.length-1;Qn<=ao;Qn+=1){e.t=Zo(u(e.cwb,Qn),u(e.ecb,0));for(var Co=e.ecb.length-1;Co>=0;Co-=1){e.j=Co,e.p=e.ecb.length-e.j-1,r[t++]=e.ecb,r[t++]=e.p,r[t++]=e.t,r[t++]=u(e.coeffs,e.j),e.rsprod();var gi=r[--t],Wo=r[--t];y(r[--t],Wo,gi),e.j>0&&y(e.ecb,e.p,Zo(u(e.ecb,e.p+1),u(e.ecb,e.p)))}}}if(e.ncws==1558){r[t++]=1/0;for(var vi=T(e.ecbs,8,2),qo=0,bi=vi.length;qo=0;xi-=1){var Ho=r[--t];r[t++]=h(u(Ho,xi)-48),r[t++]=Ho}t--;var Pa=r[--t],ja=r[--t],As=r[--t],Ls=r[--t],is=r[--t],ma=r[--t],nl=r[--t],lo=r[--t],Cl=r[--t],$1=r[--t],Kl=r[--t];r[t++]=lo,r[t++]=nl,r[t++]=ma,r[t++]=is,r[t++]=Ls,r[t++]=As,r[t++]=ja,r[t++]=Pa,r[t++]=Kl,r[t++]=$1,je(Cl,function(){if(r[--t]()===!0)return!0;var Xl=r[--t],ol=r[--t];if(r[t++]=ol,r[t++]=Xl,ol<0){var qc=r[--t],hc=r[--t];r[t++]=h(hc+e.mrows),r[t++]=h(qc+h(4-h(e.mrows+4)%8))}var kl=r[--t];if(r[t++]=kl,kl<0){var Jl=r[--t],mc=r[--t];r[t++]=h(mc+h(4-h(e.mcols+4)%8)),r[t++]=h(Jl+e.mcols)}var Sl=r[--t],Z=r[--t];if(r[t++]=Z,r[t++]=Sl,Z>=e.mrows){var R=r[--t],U=r[--t];r[t++]=h(U-e.mrows),r[t++]=R}var J=r[--t],xe=r[--t],ct=r[--t],Gt=r[--t];y(e.mmat,h(J+xe*e.mcols),r[--t]),r[t++]=Gt,r[t++]=ct})};var Wn=a([function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=h(ur-2),r[t++]=h(qt-2)},function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=h(ur-2),r[t++]=h(qt-1)},function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=h(ur-1),r[t++]=h(qt-2)},function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=h(ur-1),r[t++]=h(qt-1)},function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=h(ur-1),r[t++]=qt},function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=ur,r[t++]=h(qt-2)},function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=ur,r[t++]=h(qt-1)},function(){var qt=r[--t],ur=r[--t];r[t++]=ur,r[t++]=qt,r[t++]=ur,r[t++]=qt}]);e.dmn=Wn;var Lo=a([function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=1},function(){r[t++]=h(e.mrows-1),r[t++]=2},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-1)},function(){r[t++]=2,r[t++]=h(e.mcols-1)},function(){r[t++]=3,r[t++]=h(e.mcols-1)}]);e.dmc1=Lo;var Ri=a([function(){r[t++]=h(e.mrows-3),r[t++]=0},function(){r[t++]=h(e.mrows-2),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=0,r[t++]=h(e.mcols-4)},function(){r[t++]=0,r[t++]=h(e.mcols-3)},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-1)}]);e.dmc2=Ri;var fa=a([function(){r[t++]=h(e.mrows-3),r[t++]=0},function(){r[t++]=h(e.mrows-2),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-1)},function(){r[t++]=2,r[t++]=h(e.mcols-1)},function(){r[t++]=3,r[t++]=h(e.mcols-1)}]);e.dmc3=fa;var ii=a([function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=h(e.mcols-1)},function(){r[t++]=0,r[t++]=h(e.mcols-3)},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-3)},function(){r[t++]=1,r[t++]=h(e.mcols-2)},function(){r[t++]=1,r[t++]=h(e.mcols-1)}]);e.dmc4=ii,r[t++]=1/0;for(var vs=0,os=e.mrows*e.mcols;vs=0;Ga-=1)r[t++]=u(e.cws,Ga);for(r[t++]=4,r[t++]=0;;){var Va=r[--t],Ea=r[--t];r[t++]=Ea,r[t++]=Va,Va==0&&Ea==e.mrows&&(r[t++]=e.dmc1,e.module());var Ma=r[--t],bs=r[--t];r[t++]=bs,r[t++]=Ma,Ma==0&&bs==h(e.mrows-2)&&e.mcols%4!=0&&(r[t++]=e.dmc2,e.module());var Ns=r[--t],ws=r[--t];r[t++]=ws,r[t++]=Ns,Ns==0&&ws==h(e.mrows-2)&&e.mcols%8==4&&(r[t++]=e.dmc3,e.module());var Qa=r[--t],Wa=r[--t];for(r[t++]=Wa,r[t++]=Qa,Qa==2&&Wa==h(e.mrows+4)&&e.mcols%8==0&&(r[t++]=e.dmc4,e.module());;){var qa=r[--t],tl=r[--t];if(r[t++]=tl,r[t++]=qa,qa>=0&&tl=0))break}var F1=r[--t],fc=r[--t];for(r[t++]=h(fc+1),r[t++]=h(F1+3);;){var Yl=r[--t],D1=r[--t];if(r[t++]=D1,r[t++]=Yl,Yl=0){var Al=r[--t],Mt=r[--t];r[t++]=Mt,r[t++]=Al,u(e.mmat,h(Al+Mt*e.mcols))==-1&&(r[t++]=e.dmn,e.module())}var Wt=r[--t],wt=r[--t];if(r[t++]=h(wt+2),r[t++]=h(Wt-2),!(h(Wt-2)>=0&&h(wt+2)o)&&(r[t++]="bwipp.qrcodeBadMask#20157",r[t++]="An invalid mask was supplied",ne())}e.fn1=-1;var i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var s=r[--t];if(e[r[--t]]=s,e.msglen=e.msg.length,e.fnc1first=!1,e.msglen>0&&u(e.msg,0)==e.fn1){e.fnc1first=!0,r[t++]=1/0;for(var l=T(e.msg,1,e.msglen-1),c=0,d=l.length;c>>8)*192+(wt&255)),r[t++]=13,e.tobin();var Ut=r[--t];K(e.out,e.m,Ut),e.m=Ut.length+e.m,e.k=e.k+2}r[t++]=e.out},e.encE=function(){var Mt=h(-u(r[--t],0)-1e6);if(r[t++]=Mt,Mt<=127)r[t++]=8,e.tobin();else{var Wt=r[--t];if(r[t++]=Wt,Wt<=16383){var wt=r[--t];r[t++]=h(wt+32768),r[t++]=16,e.tobin()}else{var Ut=r[--t];r[t++]=h(Ut+12582912),r[t++]=24,e.tobin()}}},e.encfuncs=a(["encN","encA","encB","encK","encE"]),e.addtobits=function(){var Mt=r[--t];K(e.bits,e.j,Mt),e.j=Mt.length+e.j},r[t++]=1/0;for(var q=0,W=e.msglen;q=0;ue-=1){e.i=ue,e.barchar=u(e.msg,e.i);var Le=u(e.Kexcl,e.barchar)!==void 0;if(Le&&!e.suppresskanjimode){e.i+1=33088&&$e<=40956||$e>=57408&&$e<=60351)&&bt>=64&&bt<=252&&bt!=127?(y(e.nextKs,e.i,0),y(e.numKs,e.i,h(u(e.numKs,e.i+2)+1))):y(e.nextKs,e.i,h(u(e.nextKs,e.i+1)+1))}else y(e.nextKs,e.i,h(u(e.nextKs,e.i+1)+1));var ot=u(e.Nexcl,e.barchar)!==void 0;ot?(y(e.nextNs,e.i,0),y(e.numNs,e.i,h(u(e.numNs,e.i+1)+1)),y(e.numAorNs,e.i,h(u(e.numAorNs,e.i+1)+1))):y(e.nextNs,e.i,h(u(e.nextNs,e.i+1)+1));var st=u(e.Aexcl,e.barchar)!==void 0;st?(y(e.nextAs,e.i,0),y(e.numAs,e.i,h(u(e.numAs,e.i+1)+1)),y(e.numAorNs,e.i,h(u(e.numAorNs,e.i+1)+1))):y(e.nextAs,e.i,h(u(e.nextAs,e.i+1)+1)),y(e.isECI,e.i,e.barchar<=-1e6)}for(var Ze=0,dt=e.msglen-1;Ze<=dt;Ze+=1)e.i=Ze,u(e.numKs,e.i)>0&&(y(e.numKs,e.i+1,0),y(e.nextKs,e.i+1,h(u(e.nextKs,e.i+1)+1)));for(var Xe=e.msglen-1;Xe>=0;Xe-=1)e.i=Xe,h(u(e.numNs,e.i)+h(u(e.numAs,e.i)+u(e.numKs,e.i)))==0&&dr(u(e.isECI,e.i))?(y(e.nextBs,e.i,0),y(e.numBs,e.i,h(u(e.numBs,e.i+1)+1))):y(e.nextBs,e.i,h(u(e.nextBs,e.i+1)+1));if(e.KbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&u(e.nextBs,h(e.numK*2+e.i))==0},e.KbeforeA=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&u(e.nextAs,h(e.numK*2+e.i))==0},e.KbeforeN=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&u(e.nextNs,h(e.numK*2+e.i))==0},e.KbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&h(e.numK*2+e.i)==e.msglen},e.AbeforeK=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&u(e.nextKs,h(e.numA+e.i))==0},e.AbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&u(e.nextBs,h(e.numA+e.i))==0},e.AbeforeN=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&u(e.nextNs,h(e.numA+e.i))==0},e.AbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&h(e.numA+e.i)==e.msglen},e.NbeforeK=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&u(e.nextKs,h(e.numN+e.i))==0},e.NbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&u(e.nextBs,h(e.numN+e.i))==0},e.NbeforeA=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&u(e.nextAs,h(e.numN+e.i))==0},e.NbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&h(e.numN+e.i)==e.msglen},e.AorNbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numAorN,Mt)&&u(e.nextBs,h(e.numAorN+e.i))==0},e.AorNbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numAorN,Mt)&&h(e.numAorN+e.i)==e.msglen},e.nextNslt=function(){if(u(e.nextNs,e.i)>=e.msglen)t--,r[t++]=!0;else{var Mt=u(r[--t],e.ver);r[t++]=Fs(u(e.numNs,h(u(e.nextNs,e.i)+e.i)),Mt)}},!$n.__20507__){e=Object.create(e),r[t++]=1/0,r[t++]="full",r[t++]=1/0;for(var Pt=0;Pt<=9;Pt+=1)r[t++]=gr(pe(2),Pt,10),r[t++]=e.v1to9;for(var mt=10;mt<=26;mt+=1)r[t++]=gr(pe(2),mt,10),r[t++]=e.v10to26;for(var pt=27;pt<=40;pt+=1)r[t++]=gr(pe(2),pt,10),r[t++]=e.v27to40;var Te=Bt(),Re=new Map([["M1",e.vM1],["M2",e.vM2],["M3",e.vM3],["M4",e.vM4]]),Je=new Map([["R7x43",e.vR7x43],["R7x59",e.vR7x59],["R7x77",e.vR7x77],["R7x99",e.vR7x99],["R7x139",e.vR7x139],["R9x43",e.vR9x43],["R9x59",e.vR9x59],["R9x77",e.vR9x77],["R9x99",e.vR9x99],["R9x139",e.vR9x139],["R11x27",e.vR11x27],["R11x43",e.vR11x43],["R11x59",e.vR11x59],["R11x77",e.vR11x77],["R11x99",e.vR11x99],["R11x139",e.vR11x139],["R13x27",e.vR13x27],["R13x43",e.vR13x43],["R13x59",e.vR13x59],["R13x77",e.vR13x77],["R13x99",e.vR13x99],["R13x139",e.vR13x139],["R15x43",e.vR15x43],["R15x59",e.vR15x59],["R15x77",e.vR15x77],["R15x99",e.vR15x99],["R15x139",e.vR15x139],["R17x43",e.vR17x43],["R17x59",e.vR17x59],["R17x77",e.vR17x77],["R17x99",e.vR17x99],["R17x139",e.vR17x139]]);r[t++]=Te,r[t++]="micro",r[t++]=Re,r[t++]="rmqr",r[t++]=Je,e.versetmap=Bt(),e.versetfull=a([e.v1to9,e.v10to26,e.v27to40]),e.versetmicro=a([e.vM1,e.vM2,e.vM3,e.vM4]);for(var D in e)e.hasOwnProperty(D)&&($n.$ctx[D]=e[D]);$n.__20507__=1,e=Object.getPrototypeOf(e)}if(it(e.version,"unset")){var It=u(e.versetmap,e.format),Nt=e.version,ht=u(It,Nt)!==void 0;r[t++]=It,r[t++]=Nt,ht||(t-=2,ae(e.format,"full")?(r[t++]="bwipp.qrcodeInvalidFullVersion#20513",r[t++]="Valid versions for QR Code symbols are 1 to 40",ne()):ae(e.format,"micro")?(r[t++]="bwipp.qrcodeInvalidMicroVersion#20516",r[t++]="Valid versions for Micro QR Code symbols are M1 to M4",ne()):(r[t++]="bwipp.qrcodeInvalidRMQRversion#20518",r[t++]="Invalid version for an RMQR symbol",ne()));var xt=r[--t],tt=u(r[--t],xt);r[t++]=tt,r[t++]=1/0;var Y=r[--t],re=r[--t];r[t++]=Y,r[t++]=re,e.verset=a()}else ae(e.format,"full")&&(e.verset=e.versetfull),ae(e.format,"micro")&&(e.verset=e.versetmicro);r[t++]=1/0;for(var ie=0,le=39;ie=e.msglen);){if(e.numK=u(e.numKs,e.i),e.numB=u(e.numBs,e.i),e.numA=u(e.numAs,e.i),e.numN=u(e.numNs,e.i),e.numAorN=u(e.numAorNs,e.i),e.eci=u(e.isECI,e.i),ae(e.ver,e.vM1)&&e.numA>=1){e.seq=-1;break}if(ae(e.ver,e.vM1)&&e.numB>=1){e.seq=-1;break}if(ae(e.ver,e.vM1)&&e.numK>=1){e.seq=-1;break}if(ae(e.ver,e.vM1)&&e.eci){e.seq=-1;break}if(ae(e.ver,e.vM2)&&e.numB>=1){e.seq=-1;break}if(ae(e.ver,e.vM2)&&e.numK>=1){e.seq=-1;break}if(ae(e.ver,e.vM2)&&e.eci){e.seq=-1;break}if(ae(e.ver,e.vM3)&&e.eci){e.seq=-1;break}if(ae(e.ver,e.vM4)&&e.eci){e.seq=-1;break}for(;;){if(e.eci){r[t++]=e.E;break}if(e.mode==-1){if(r[t++]=e.mode0forceKB,e.KbeforeA(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.mode0forceKB,e.KbeforeN(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeE,e.KbeforeB(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.mode0forceKB,e.KbeforeE(),r[--t]){r[t++]=e.K;break}if(e.numK>=1){r[t++]=e.B;break}if(r[t++]=e.mode0NbeforeB,e.NbeforeB(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.mode0forceKB,e.NbeforeB(),r[--t]){r[t++]=e.B;break}if(r[t++]=e.modeANbeforeE,e.NbeforeA(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.mode0forceN,e.NbeforeE(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBAbeforeE,e.AbeforeK(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeE,e.AorNbeforeB(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.mode0forceA,e.AorNbeforeE(),r[--t]){r[t++]=e.A;break}r[t++]=e.B;break}if(e.mode==e.B){if(r[t++]=e.modeBKbeforeB,e.KbeforeB(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeA,e.KbeforeA(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeN,e.KbeforeN(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeE,e.KbeforeE(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBAbeforeK,e.AbeforeK(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeB,e.AbeforeB(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeN,e.AbeforeN(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeE,e.AbeforeE(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBNbeforeK,e.NbeforeK(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBNbeforeB,e.NbeforeB(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBNbeforeA,e.NbeforeA(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBNbeforeE,e.NbeforeE(),r[--t]){r[t++]=e.N;break}r[t++]=e.modeBAbeforeE,e.AorNbeforeE();var Ee=r[--t];if(Ee&&hp(e.numAorN,u(e.modeBAbeforeN,e.ver))&&(r[t++]=e.modeBNbeforeA,e.nextNslt(),r[--t])){r[t++]=e.A;break}r[t++]=e.B;break}if(e.mode==e.A){if(e.numK>=1){r[t++]=e.K;break}if(e.numB>=1){r[t++]=e.B;break}if(r[t++]=e.modeANbeforeA,e.NbeforeA(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeANbeforeB,e.NbeforeB(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeANbeforeE,e.NbeforeE(),r[--t]){r[t++]=e.N;break}if(e.numA>=1||e.numN>=1){r[t++]=e.A;break}r[t++]=e.B;break}if(e.mode==e.N){if(e.numK>=1){r[t++]=e.K;break}if(e.numB>=1){r[t++]=e.B;break}if(e.numA>=1){r[t++]=e.A;break}if(e.numN>=1){r[t++]=e.N;break}r[t++]=e.B;break}if(e.mode==e.K){if(e.numB>=1){r[t++]=e.B;break}if(e.numA>=1){r[t++]=e.A;break}if(e.numN>=1){r[t++]=e.N;break}if(e.numK>=1){r[t++]=e.K;break}r[t++]=e.B;break}}var ce=r[--t];r[t++]=ce,ce==e.K&&e.fnc1first&&(t--,r[t++]=e.B);var Pe=r[--t];if(r[t++]=Pe,Pe==e.mode){t--;var He=e.mode==e.K?2:1;e.dat=T(e.msg,e.i,He),r[t++]=1/0,oe(e.seq),r[t++]=1/0;var Ne=r[--t],ye=r[--t];r[t++]=Ne,oe(ye),oe(e.dat);var rt=a();r[t++]=rt,e.seq=a()}else e.mode=r[--t],e.mode==e.K&&(r[t++]=e.K,r[t++]=T(e.msg,e.i,e.numK*2)),e.mode==e.B&&(r[t++]=e.B,r[t++]=T(e.msg,e.i,e.numB)),e.mode==e.A&&(r[t++]=e.A,r[t++]=T(e.msg,e.i,e.numA)),e.mode==e.N&&(r[t++]=e.N,r[t++]=T(e.msg,e.i,e.numN)),e.mode==e.E&&(e.mode=-1,r[t++]=e.E,r[t++]=T(e.msg,e.i,1)),e.dat=r[--t],e.sw=r[--t],r[t++]=1/0,oe(e.seq),r[t++]=e.sw,r[t++]=e.dat,e.seq=a();e.i=e.i+e.dat.length}for(;e.seq!=-1;){e.bits=pe(23648),e.j=0,e.fnc1first&&(Fs(e.ver,e.vR7x43)?r[t++]="0101":r[t++]="101",e.addtobits()),e.abort=!1;for(var Be=0,Ae=e.seq.length-1;Be<=Ae;Be+=2){if(e.i=Be,e.mode=u(e.seq,e.i),r[t++]=u(u(e.mids,e.ver),e.mode),e.addtobits(),e.chars=u(e.seq,e.i+1),r[t++]="charslen",r[t++]=e.chars.length,e.mode==e.K){var Ue=r[--t];r[t++]=~~(Ue/2)}var qe=r[--t];if(e[r[--t]]=qe,e.mode!=e.E){if(e.cclen=u(u(e.cclens,e.ver),e.mode),e.charslen>=~~Math.pow(2,e.cclen)){e.abort=!0;break}r[t++]=e.charslen,r[t++]=e.cclen,e.tobin(),e.addtobits()}if(r[t++]=e.chars,e[u(e.encfuncs,e.mode)]()===!0)break;e.addtobits()}if(e.abort)break;e.bits=T(e.bits,0,e.j),y(e.msgbits,e.ver,e.bits);break}}if(!$n.__20779__){e=Object.create(e),e.metrics=a([a(["micro","M1",e.vM1,11,11,98,99,36,a([2,99,99,99]),a([1,0,-1,-1,-1,-1,-1,-1])]),a(["micro","M2",e.vM2,13,13,98,99,80,a([5,6,99,99]),a([1,0,1,0,-1,-1,-1,-1])]),a(["micro","M3",e.vM3,15,15,98,99,132,a([6,8,99,99]),a([1,0,1,0,-1,-1,-1,-1])]),a(["micro","M4",e.vM4,17,17,98,99,192,a([8,10,14,99]),a([1,0,1,0,1,0,-1,-1])]),a(["full","1",e.v1to9,21,21,98,99,208,a([7,10,13,17]),a([1,0,1,0,1,0,1,0])]),a(["full","2",e.v1to9,25,25,18,99,359,a([10,16,22,28]),a([1,0,1,0,1,0,1,0])]),a(["full","3",e.v1to9,29,29,22,99,567,a([15,26,36,44]),a([1,0,1,0,2,0,2,0])]),a(["full","4",e.v1to9,33,33,26,99,807,a([20,36,52,64]),a([1,0,2,0,2,0,4,0])]),a(["full","5",e.v1to9,37,37,30,99,1079,a([26,48,72,88]),a([1,0,2,0,2,2,2,2])]),a(["full","6",e.v1to9,41,41,34,99,1383,a([36,64,96,112]),a([2,0,4,0,4,0,4,0])]),a(["full","7",e.v1to9,45,45,22,38,1568,a([40,72,108,130]),a([2,0,4,0,2,4,4,1])]),a(["full","8",e.v1to9,49,49,24,42,1936,a([48,88,132,156]),a([2,0,2,2,4,2,4,2])]),a(["full","9",e.v1to9,53,53,26,46,2336,a([60,110,160,192]),a([2,0,3,2,4,4,4,4])]),a(["full","10",e.v10to26,57,57,28,50,2768,a([72,130,192,224]),a([2,2,4,1,6,2,6,2])]),a(["full","11",e.v10to26,61,61,30,54,3232,a([80,150,224,264]),a([4,0,1,4,4,4,3,8])]),a(["full","12",e.v10to26,65,65,32,58,3728,a([96,176,260,308]),a([2,2,6,2,4,6,7,4])]),a(["full","13",e.v10to26,69,69,34,62,4256,a([104,198,288,352]),a([4,0,8,1,8,4,12,4])]),a(["full","14",e.v10to26,73,73,26,46,4651,a([120,216,320,384]),a([3,1,4,5,11,5,11,5])]),a(["full","15",e.v10to26,77,77,26,48,5243,a([132,240,360,432]),a([5,1,5,5,5,7,11,7])]),a(["full","16",e.v10to26,81,81,26,50,5867,a([144,280,408,480]),a([5,1,7,3,15,2,3,13])]),a(["full","17",e.v10to26,85,85,30,54,6523,a([168,308,448,532]),a([1,5,10,1,1,15,2,17])]),a(["full","18",e.v10to26,89,89,30,56,7211,a([180,338,504,588]),a([5,1,9,4,17,1,2,19])]),a(["full","19",e.v10to26,93,93,30,58,7931,a([196,364,546,650]),a([3,4,3,11,17,4,9,16])]),a(["full","20",e.v10to26,97,97,34,62,8683,a([224,416,600,700]),a([3,5,3,13,15,5,15,10])]),a(["full","21",e.v10to26,101,101,28,50,9252,a([224,442,644,750]),a([4,4,17,0,17,6,19,6])]),a(["full","22",e.v10to26,105,105,26,50,10068,a([252,476,690,816]),a([2,7,17,0,7,16,34,0])]),a(["full","23",e.v10to26,109,109,30,54,10916,a([270,504,750,900]),a([4,5,4,14,11,14,16,14])]),a(["full","24",e.v10to26,113,113,28,54,11796,a([300,560,810,960]),a([6,4,6,14,11,16,30,2])]),a(["full","25",e.v10to26,117,117,32,58,12708,a([312,588,870,1050]),a([8,4,8,13,7,22,22,13])]),a(["full","26",e.v10to26,121,121,30,58,13652,a([336,644,952,1110]),a([10,2,19,4,28,6,33,4])]),a(["full","27",e.v27to40,125,125,34,62,14628,a([360,700,1020,1200]),a([8,4,22,3,8,26,12,28])]),a(["full","28",e.v27to40,129,129,26,50,15371,a([390,728,1050,1260]),a([3,10,3,23,4,31,11,31])]),a(["full","29",e.v27to40,133,133,30,54,16411,a([420,784,1140,1350]),a([7,7,21,7,1,37,19,26])]),a(["full","30",e.v27to40,137,137,26,52,17483,a([450,812,1200,1440]),a([5,10,19,10,15,25,23,25])]),a(["full","31",e.v27to40,141,141,30,56,18587,a([480,868,1290,1530]),a([13,3,2,29,42,1,23,28])]),a(["full","32",e.v27to40,145,145,34,60,19723,a([510,924,1350,1620]),a([17,0,10,23,10,35,19,35])]),a(["full","33",e.v27to40,149,149,30,58,20891,a([540,980,1440,1710]),a([17,1,14,21,29,19,11,46])]),a(["full","34",e.v27to40,153,153,34,62,22091,a([570,1036,1530,1800]),a([13,6,14,23,44,7,59,1])]),a(["full","35",e.v27to40,157,157,30,54,23008,a([570,1064,1590,1890]),a([12,7,12,26,39,14,22,41])]),a(["full","36",e.v27to40,161,161,24,50,24272,a([600,1120,1680,1980]),a([6,14,6,34,46,10,2,64])]),a(["full","37",e.v27to40,165,165,28,54,25568,a([630,1204,1770,2100]),a([17,4,29,14,49,10,24,46])]),a(["full","38",e.v27to40,169,169,32,58,26896,a([660,1260,1860,2220]),a([4,18,13,32,48,14,42,32])]),a(["full","39",e.v27to40,173,173,26,54,28256,a([720,1316,1950,2310]),a([20,4,40,7,43,22,10,67])]),a(["full","40",e.v27to40,177,177,30,58,29648,a([750,1372,2040,2430]),a([19,6,18,31,34,34,20,61])]),a(["rmqr","R7x43",e.vR7x43,7,43,22,99,104,a([99,7,99,10]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x59",e.vR7x59,7,59,20,40,171,a([99,9,99,14]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x77",e.vR7x77,7,77,26,52,261,a([99,12,99,22]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x99",e.vR7x99,7,99,24,50,358,a([99,16,99,30]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x139",e.vR7x139,7,139,28,56,545,a([99,24,99,44]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R9x43",e.vR9x43,9,43,22,99,170,a([99,9,99,14]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R9x59",e.vR9x59,9,59,20,40,267,a([99,12,99,22]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R9x77",e.vR9x77,9,77,26,52,393,a([99,18,99,32]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R9x99",e.vR9x99,9,99,24,50,532,a([99,24,99,44]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R9x139",e.vR9x139,9,139,28,56,797,a([99,36,99,66]),a([-1,-1,1,1,-1,-1,3,0])]),a(["rmqr","R11x27",e.vR11x27,11,27,98,99,122,a([99,8,99,10]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R11x43",e.vR11x43,11,43,22,99,249,a([99,12,99,20]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R11x59",e.vR11x59,11,59,20,40,376,a([99,16,99,32]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R11x77",e.vR11x77,11,77,26,52,538,a([99,24,99,44]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R11x99",e.vR11x99,11,99,24,50,719,a([99,32,99,60]),a([-1,-1,1,1,-1,-1,1,1])]),a(["rmqr","R11x139",e.vR11x139,11,139,28,56,1062,a([99,48,99,90]),a([-1,-1,2,0,-1,-1,3,0])]),a(["rmqr","R13x27",e.vR13x27,13,27,98,99,172,a([99,9,99,14]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R13x43",e.vR13x43,13,43,22,99,329,a([99,14,99,28]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R13x59",e.vR13x59,13,59,20,40,486,a([99,22,99,40]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R13x77",e.vR13x77,13,77,26,52,684,a([99,32,99,56]),a([-1,-1,1,1,-1,-1,1,1])]),a(["rmqr","R13x99",e.vR13x99,13,99,24,50,907,a([99,40,99,78]),a([-1,-1,1,1,-1,-1,1,2])]),a(["rmqr","R13x139",e.vR13x139,13,139,28,56,1328,a([99,60,99,112]),a([-1,-1,2,1,-1,-1,2,2])]),a(["rmqr","R15x43",e.vR15x43,15,43,22,99,409,a([99,18,99,36]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R15x59",e.vR15x59,15,59,20,40,596,a([99,26,99,48]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R15x77",e.vR15x77,15,77,26,52,830,a([99,36,99,72]),a([-1,-1,1,1,-1,-1,2,1])]),a(["rmqr","R15x99",e.vR15x99,15,99,24,50,1095,a([99,48,99,88]),a([-1,-1,2,0,-1,-1,4,0])]),a(["rmqr","R15x139",e.vR15x139,15,139,28,56,1594,a([99,72,99,130]),a([-1,-1,2,1,-1,-1,1,4])]),a(["rmqr","R17x43",e.vR17x43,17,43,22,99,489,a([99,22,99,40]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R17x59",e.vR17x59,17,59,20,40,706,a([99,32,99,60]),a([-1,-1,2,0,-1,-1,2,0])]),a(["rmqr","R17x77",e.vR17x77,17,77,26,52,976,a([99,44,99,84]),a([-1,-1,2,0,-1,-1,1,2])]),a(["rmqr","R17x99",e.vR17x99,17,99,24,50,1283,a([99,60,99,104]),a([-1,-1,2,1,-1,-1,4,0])]),a(["rmqr","R17x139",e.vR17x139,17,139,28,56,1860,a([99,80,99,156]),a([-1,-1,4,0,-1,-1,2,4])])]);for(var D in e)e.hasOwnProperty(D)&&($n.$ctx[D]=e[D]);$n.__20779__=1,e=Object.getPrototypeOf(e)}r[t++]="eclval",fr("LMQH",e.eclevel),t--;var Fe=r[--t],lt=r[--t];r[t++]=Fe.length,r[t++]=lt,t--;var gt=r[--t],At=r[--t];r[t++]=gt,r[t++]=At,t--;var St=r[--t];e[r[--t]]=St;for(var yt=0,Ct=e.metrics.length-1;yt<=Ct;yt+=1){e.i=yt,e.m=u(e.metrics,e.i),e.frmt=u(e.m,0),e.vers=u(e.m,1),e.vergrp=u(e.m,2),e.verind=e.i-44,e.rows=u(e.m,3),e.cols=u(e.m,4),e.asp2=u(e.m,5),e.asp3=u(e.m,6),e.nmod=u(e.m,7),e.ncws=~~(e.nmod/8),e.rbit=e.nmod%8,e.lc4b=!1,(ae(e.vers,"M1")||ae(e.vers,"M3"))&&(e.ncws=e.ncws+1,e.rbit=0,e.lc4b=!0),e.ecws=u(u(e.m,8),e.eclval),e.dcws=h(e.ncws-e.ecws);var Oe=e.lc4b?4:0;if(e.dmod=h(e.dcws*8-Oe),e.ecb1=u(u(e.m,9),e.eclval*2),e.ecb2=u(u(e.m,9),h(e.eclval*2+1)),e.okay=!0,it(e.format,e.frmt)&&(e.okay=!1),ae(e.frmt,"micro")&&e.fnc1first&&(e.okay=!1),it(e.version,"unset")&&it(e.version,e.vers)&&(e.okay=!1),(e.ecb1==-1||e.ecb2==-1)&&(e.okay=!1),e.verbits=u(e.msgbits,e.vergrp),(e.verbits==-1||e.verbits.length>e.dmod)&&(e.okay=!1),e.term=T("000000000",0,u(e.termlens,e.vergrp)),e.okay)break}e.okay||(r[t++]="bwipp.qrcodeNoValidSymbol#20823",r[t++]="Maximum length exceeded or invalid content",ne()),e.format=e.frmt,e.version=e.vers,e.msgbits=e.verbits,e.dcpb=~~(e.dcws/h(e.ecb1+e.ecb2)),e.ecpb=~~(e.ncws/h(e.ecb1+e.ecb2))-e.dcpb;var Ce=e.term,Ye=e.dmod,et=e.msgbits,Et=e.term,ut=Et.length,Dt=h(Ye-et.length);if(h(Ye-et.length)>Et.length){var jt=ut;ut=Dt,Dt=jt}e.term=T(Ce,0,Dt);var nr=pe(e.msgbits.length+e.term.length);K(nr,0,e.msgbits),K(nr,e.msgbits.length,e.term),e.msgbits=nr,e.pad=pe(e.dmod);for(var Ft=0,cr=e.pad.length-1;Ft<=cr;Ft+=1)y(e.pad,Ft,48);K(e.pad,0,e.msgbits),e.padnum=0;for(var sr=e.lc4b?5:1,lr=~~(Math.ceil(e.msgbits.length/8)*8),yr=h(e.dmod-sr);lr<=yr;lr+=8)K(e.pad,lr,u(e.padstrs,e.padnum)),e.padnum=(e.padnum+1)%2;e.cws=a(e.dcws);for(var Qr=0,Er=e.cws.length-1;Qr<=Er;Qr+=1){e.c=Qr,e.bpcw=8,e.lc4b&&e.c==e.cws.length-1&&(e.bpcw=4),e.cwb=T(e.pad,e.c*8,e.bpcw),e.cw=0;for(var Pr=0,Wr=e.bpcw-1;Pr<=Wr;Pr+=1)e.i=Pr,e.cw=h(e.cw+~~Math.pow(2,e.bpcw-e.i-1)*h(u(e.cwb,e.i)-48));y(e.cws,e.c,e.cw)}if(e.lc4b){var cn=e.cws,Cr=e.cws;y(cn,Cr.length-1,u(cn,Cr.length-1)<<4)}var Hr=u(e.options,"debugcws")!==void 0;if(Hr&&(r[t++]="bwipp.debugcws#20867",r[t++]=e.cws,ne()),!$n.__20874__){e=Object.create(e),r[t++]=1/0,r[t++]=1;for(var un=0,Pn=255;un=256){var bn=r[--t];r[t++]=bn^285}}e.rsalog=a(),e.rslog=a(256);for(var zt=1;zt<=255;zt+=1)y(e.rslog,u(e.rsalog,zt),zt);for(var D in e)e.hasOwnProperty(D)&&($n.$ctx[D]=e[D]);$n.__20874__=1,e=Object.getPrototypeOf(e)}e.rsprod=function(){var Mt=r[--t],Wt=r[--t];if(r[t++]=Wt,r[t++]=Mt,Mt!=0&&Wt!=0){var wt=u(e.rslog,r[--t]),Ut=u(e.rsalog,h(wt+u(e.rslog,r[--t]))%255);r[t++]=Ut}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var ar=0,hr=e.ecpb;ar=1;Xt-=1){e.j=Xt,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var en=r[--t],kr=r[--t],Kr=r[--t];y(r[--t],Kr,Zo(kr,en))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var pr=r[--t],dn=r[--t];y(r[--t],dn,pr)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1),e.rscodes=function(){e.rscws=r[--t],e.rsnd=e.rscws.length,r[t++]=1/0,je(e.rscws);for(var Mt=0,Wt=e.ecpb;Mt0&&(e.pad=a(e.cws.length+1),K(e.pad,0,e.cws),y(e.pad,e.pad.length-1,0),e.cws=e.pad),e.lc4b){var mo=e.cws,pi=e.dcws;y(mo,h(pi-1),u(mo,h(pi-1))>>>4);for(var Mo=h(e.dcws-1),Gr=e.ncws-2;Mo<=Gr;Mo+=1)e.i=Mo,y(e.cws,e.i,(u(e.cws,e.i)&15)<<4),y(e.cws,e.i,u(e.cws,e.i+1)>>>4&15|u(e.cws,e.i));y(e.cws,e.ncws-1,(u(e.cws,e.ncws-1)&15)<<4)}var go=u(e.options,"debugecc")!==void 0;go&&(r[t++]="bwipp.debugecc#20969",r[t++]=e.cws,ne()),r[t++]=1/0;for(var ni=0,Mi=e.rows*e.cols;ni=Qo:Zi<=Qo;Zi+=ea){e.i=Zi;for(var ua=3,Ao=h(e.rows-4);ua<=Ao;ua+=1){e.j=ua,r[t++]=e.pixs,r[t++]=e.i,r[t++]=e.j,e.qmv();var Sr=r[--t];y(r[--t],Sr,(e.j+1)%2)}}}if(!$n.__21058__){e=Object.create(e),e.fpat=a([a([1,1,1,1,1,1,1,0]),a([1,0,0,0,0,0,1,0]),a([1,0,1,1,1,0,1,0]),a([1,0,1,1,1,0,1,0]),a([1,0,1,1,1,0,1,0]),a([1,0,0,0,0,0,1,0]),a([1,1,1,1,1,1,1,0]),a([0,0,0,0,0,0,0,0])]),e.fsubpat=a([a([1,1,1,1,1,9,9,9]),a([1,0,0,0,1,9,9,9]),a([1,0,1,0,1,9,9,9]),a([1,0,0,0,1,9,9,9]),a([1,1,1,1,1,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9])]),e.fcorpat=a([a([1,1,1,9,9,9,9,9]),a([1,0,9,9,9,9,9,9]),a([1,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9])]),e.fnullpat=a([a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9])]);var vo=new Map([["full",a([e.fpat,e.fpat,e.fpat,e.fnullpat])],["micro",a([e.fpat,e.fnullpat,e.fnullpat,e.fnullpat])],["rmqr",a([e.fpat,e.fcorpat,e.fcorpat,e.fsubpat])]]);e.fpatmap=vo;for(var D in e)e.hasOwnProperty(D)&&($n.$ctx[D]=e[D]);$n.__21058__=1,e=Object.getPrototypeOf(e)}e.fpats=u(e.fpatmap,e.format);for(var Ln=0;Ln<=7;Ln+=1){e.y=Ln;for(var Ni=0;Ni<=7;Ni+=1){if(e.x=Ni,e.fpb0=u(u(u(e.fpats,0),e.y),e.x),e.fpb1=u(u(u(e.fpats,1),e.y),e.x),e.fpb2=u(u(u(e.fpats,2),e.y),e.x),e.fpb3=u(u(u(e.fpats,3),e.y),e.x),e.fpb0!=9&&e.y=rs:Qi<=rs;Qi+=ta)e.i=Qi,r[t++]=e.i,r[t++]=4,e.putalgnpat(),r[t++]=4,r[t++]=e.i,e.putalgnpat();for(var Ua=h(e.asp2-2),ns=h(e.asp3-e.asp2),ms=h(e.cols-9);ns<0?Ua>=ms:Ua<=ms;Ua+=ns){e.x=Ua;for(var Wi=h(e.asp2-2),Ds=h(e.asp3-e.asp2),da=h(e.rows-9);Ds<0?Wi>=da:Wi<=da;Wi+=Ds)e.y=Wi,r[t++]=e.x,r[t++]=e.y,e.putalgnpat()}}if(ae(e.format,"rmqr")){e.algnpat=e.algnpatrmqr;for(var gs=h(e.asp2-2),Ht=h(e.asp3-e.asp2),tr=h(e.cols-13);Ht<0?gs>=tr:gs<=tr;gs+=Ht)e.i=gs,r[t++]=e.i,r[t++]=0,e.putalgnpat(),r[t++]=e.i,r[t++]=h(e.rows-3),e.putalgnpat()}if(!$n.__21138__){e=Object.create(e),e.formatmapmicro=a([a([a([1,8])]),a([a([2,8])]),a([a([3,8])]),a([a([4,8])]),a([a([5,8])]),a([a([6,8])]),a([a([7,8])]),a([a([8,8])]),a([a([8,7])]),a([a([8,6])]),a([a([8,5])]),a([a([8,4])]),a([a([8,3])]),a([a([8,2])]),a([a([8,1])])]);for(var D in e)e.hasOwnProperty(D)&&($n.$ctx[D]=e[D]);$n.__21138__=1,e=Object.getPrototypeOf(e)}var Tr=new Map([["full",a([a([a([0,8]),a([8,h(e.cols-1)])]),a([a([1,8]),a([8,h(e.cols-2)])]),a([a([2,8]),a([8,h(e.cols-3)])]),a([a([3,8]),a([8,h(e.cols-4)])]),a([a([4,8]),a([8,h(e.cols-5)])]),a([a([5,8]),a([8,h(e.cols-6)])]),a([a([7,8]),a([8,h(e.cols-7)])]),a([a([8,8]),a([h(e.cols-8),8])]),a([a([8,7]),a([h(e.cols-7),8])]),a([a([8,5]),a([h(e.cols-6),8])]),a([a([8,4]),a([h(e.cols-5),8])]),a([a([8,3]),a([h(e.cols-4),8])]),a([a([8,2]),a([h(e.cols-3),8])]),a([a([8,1]),a([h(e.cols-2),8])]),a([a([8,0]),a([h(e.cols-1),8])])])],["micro",e.formatmapmicro],["rmqr",a([a([a([11,3]),a([h(e.cols-3),h(e.rows-6)])]),a([a([11,2]),a([h(e.cols-4),h(e.rows-6)])]),a([a([11,1]),a([h(e.cols-5),h(e.rows-6)])]),a([a([10,5]),a([h(e.cols-6),h(e.rows-2)])]),a([a([10,4]),a([h(e.cols-6),h(e.rows-3)])]),a([a([10,3]),a([h(e.cols-6),h(e.rows-4)])]),a([a([10,2]),a([h(e.cols-6),h(e.rows-5)])]),a([a([10,1]),a([h(e.cols-6),h(e.rows-6)])]),a([a([9,5]),a([h(e.cols-7),h(e.rows-2)])]),a([a([9,4]),a([h(e.cols-7),h(e.rows-3)])]),a([a([9,3]),a([h(e.cols-7),h(e.rows-4)])]),a([a([9,2]),a([h(e.cols-7),h(e.rows-5)])]),a([a([9,1]),a([h(e.cols-7),h(e.rows-6)])]),a([a([8,5]),a([h(e.cols-8),h(e.rows-2)])]),a([a([8,4]),a([h(e.cols-8),h(e.rows-3)])]),a([a([8,3]),a([h(e.cols-8),h(e.rows-4)])]),a([a([8,2]),a([h(e.cols-8),h(e.rows-5)])]),a([a([8,1]),a([h(e.cols-8),h(e.rows-6)])])])]]);e.formatmap=u(Tr,e.format),je(e.formatmap,function(){je(r[--t],function(){je(r[--t]),e.qmv(),y(e.pixs,r[--t],1)})}),ae(e.format,"full")&&e.cols>=45?e.versionmap=a([a([a([h(e.cols-9),5]),a([5,h(e.cols-9)])]),a([a([h(e.cols-10),5]),a([5,h(e.cols-10)])]),a([a([h(e.cols-11),5]),a([5,h(e.cols-11)])]),a([a([h(e.cols-9),4]),a([4,h(e.cols-9)])]),a([a([h(e.cols-10),4]),a([4,h(e.cols-10)])]),a([a([h(e.cols-11),4]),a([4,h(e.cols-11)])]),a([a([h(e.cols-9),3]),a([3,h(e.cols-9)])]),a([a([h(e.cols-10),3]),a([3,h(e.cols-10)])]),a([a([h(e.cols-11),3]),a([3,h(e.cols-11)])]),a([a([h(e.cols-9),2]),a([2,h(e.cols-9)])]),a([a([h(e.cols-10),2]),a([2,h(e.cols-10)])]),a([a([h(e.cols-11),2]),a([2,h(e.cols-11)])]),a([a([h(e.cols-9),1]),a([1,h(e.cols-9)])]),a([a([h(e.cols-10),1]),a([1,h(e.cols-10)])]),a([a([h(e.cols-11),1]),a([1,h(e.cols-11)])]),a([a([h(e.cols-9),0]),a([0,h(e.cols-9)])]),a([a([h(e.cols-10),0]),a([0,h(e.cols-10)])]),a([a([h(e.cols-11),0]),a([0,h(e.cols-11)])])]):e.versionmap=a([]);for(var on=e.versionmap,Xr=0,fn=on.length;Xr>>-_o:Oi<<_o)&1,r[t++]=e.pixs,r[t++]=e.posx,r[t++]=e.posy,e.qmv();var oi=r[--t],Yo=r[--t];y(Yo,oi,r[--t]),e.num=e.num+1}e.col==1?(e.col=0,e.posx=h(e.posx-1)):(e.col=1,e.posx=h(e.posx+1),e.posy=h(e.posy+e.dir),(e.posy<0||e.posy>=e.rows)&&(e.dir=e.dir*-1,e.posy=h(e.posy+e.dir),e.posx=h(e.posx-2),ae(e.format,"full")&&e.posx==6&&(e.posx=h(e.posx-1))))}e.evalfulln1n3=function(){e.scrle=r[--t],r[t++]="scr1",r[t++]=0,je(e.scrle,function(){var na=r[--t];if(r[t++]=na,na>=5){var ha=r[--t],ys=h(h(r[--t]+ha)-2);r[t++]=ys,r[t++]=ys}t--});var Mt=r[--t];e[r[--t]]=Mt,e.scr3=0;for(var Wt=3,wt=e.scrle.length-3;Wt<=wt;Wt+=2)if(e.j=Wt,u(e.scrle,e.j)%3==0){e.fact=~~(u(e.scrle,e.j)/3);for(var Ut=T(e.scrle,e.j-2,5),vr=0,br=Ut.length;vr=e.scrle.length||u(e.scrle,e.j-3)>=4||u(e.scrle,e.j+3)>=4)&&(e.scr3=e.scr3+40)}r[t++]=e.scr1,r[t++]=e.scr3},e.evalfull=function(){e.sym=r[--t],e.n1=0,e.n2=0,e.n3=0,e.rle=a(h(e.cols+1)),e.lastpairs=a(e.cols),e.thispairs=a(e.cols),e.colsadd1=h(e.cols+1);for(var Mt=0,Wt=h(e.cols-1);Mt<=Wt;Mt+=1){e.i=Mt,r[t++]=1/0;var wt=e.cols;r[t++]=0,r[t++]=0;for(var Ut=e.i,vr=wt,br=h(wt*wt-1);vr<0?Ut>=br:Ut<=br;Ut+=vr){var Rn=u(e.sym,Ut),Dn=r[--t];if(r[t++]=Rn,ae(Dn,Rn)){var ko=r[--t],zo=r[--t];r[t++]=h(zo+1),r[t++]=ko}else{var Li=r[--t];r[t++]=1,r[t++]=Li}}t--;var pa=fo()+2;wr(T(e.rle,0,pa-2)),e.evalfulln1n3(),e.n3=h(r[--t]+e.n3),e.n1=h(r[--t]+e.n1),t--,e.symrow=T(e.sym,e.i*e.cols,e.cols),r[t++]=1/0;var na=e.symrow;r[t++]=0,r[t++]=0;for(var ha=0,ys=na.length;ha0){r[t++]=1/0,oe(e.lastpairs),oe(e.thispairs),r[t++]=e.n2;for(var Ls=0,is=e.cols;Ls>>-wt:Wt<>>-Ea:Va<>>-xs:$s<>>-F1:T1<=45){e.verval=u(e.vervals,~~(h(e.cols-17)/4)-7);for(var Yl=0,D1=e.versionmap.length-1;Yl<=D1;Yl+=1)e.i=Yl,je(u(e.versionmap,e.i),function(){var Mt=r[--t];r[t++]=e.pixs,je(Mt),e.qmv();var Wt=e.verval,wt=-(17-e.i),Ut=r[--t];y(r[--t],Ut,(wt<0?Wt>>>-wt:Wt<997&&(r[t++]="bwipp.swissqrcodeBadLength#21540",r[t++]="Swiss QR Code input must not exceed 997 digits",ne()),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,$n();var i=r[--t];if(e[r[--t]]=i,y(e.args,"opt",e.options),r[t++]=e.args,!e.dontdraw){Se.save();var s=Se.currpos();Se.translate(s.x,s.y);var l=72/25.4;Se.scale(l,l),Se.save(),Se.newpath(),Se.moveto(0,0),Se.lineto(46,0),Se.lineto(46,46),Se.lineto(0,46),Se.closepath(),Se.moveto(19.5,19.5),Se.lineto(19.5,26.5),Se.lineto(26.5,26.5),Se.lineto(26.5,19.5),Se.closepath(),Se.clip(),Se.save(),Se.moveto(0,0);var c=46/u(e.args,"pixx")/2;Se.scale(c,c),Qt(),Se.restore(),Se.restore(),Se.translate(19.5,19.5);var d=7/83;Se.scale(d,d),Se.newpath(),Se.moveto(6,6),Se.lineto(6,77),Se.lineto(77,77),Se.lineto(77,6),Se.closepath(),Se.moveto(49,18),Se.lineto(49,34),Se.lineto(65,34),Se.lineto(65,49),Se.lineto(49,49),Se.lineto(49,65),Se.lineto(34,65),Se.lineto(34,49),Se.lineto(18,49),Se.lineto(18,34),Se.lineto(34,34),Se.lineto(34,18),Se.closepath(),Se.setrgbcolor(0,0,0),Se.fill(),Se.restore()}e=Object.getPrototypeOf(e)}function o0e(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],y(e.options,"dontdraw",!0),y(e.options,"format","micro"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,$n();var n=r[--t];e[r[--t]]=n,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function i0e(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],y(e.options,"dontdraw",!0),y(e.options,"format","rmqr"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,$n();var n=r[--t];e[r[--t]]=n,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function Q1(){if(e=Object.create(e),e.dontdraw=!1,e.mode=-1,e.sam=-1,e.parse=!1,e.parsefnc=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],ae(e.barcode,"")&&(r[t++]="bwipp.maxicodeEmptyData#21758",r[t++]="The data must not be empty",ne()),e.mode!=-1&&(e.mode<2||e.mode>6)&&(r[t++]="bwipp.maxicodeBadMode#21762",r[t++]="Mode must be 2 to 6",ne()),e.sam!=-1){r[t++]=!0;for(var n=0,o=1;n88){t--,r[t++]=!1;break}var s=e.sam%10;if(s<2||s>8){t--,r[t++]=!1;break}if(~~(e.sam/10)>e.sam%10){t--,r[t++]=!1;break}}dr(r[--t])&&(r[t++]="bwipp.maxicodeBadSAM#21773",r[t++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 8 symbols',ne())}xr(Q1);var l=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0]]);e.fncvals=l,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var c=r[--t];if(e[r[--t]]=c,e.msglen=e.msg.length,e.mode==2||e.mode==3){e.barcode=pe(e.msglen);for(var d=0,f=e.msglen-1;d<=f;d+=1)e.i=d,u(e.msg,e.i)>0&&y(e.barcode,e.i,u(e.msg,e.i));if(e.barlen=e.barcode.length,e.fid="",e.barlen>=7&&ae(T(e.barcode,0,7),"[)>01")&&(e.fid=T(e.barcode,0,9),e.barcode=T(e.barcode,9,e.barlen-9)),fr(e.barcode,""),r[--t])if(e.pcode=r[--t],t--,e.mode==2){r[t++]=!0;for(var p=0,m=1;p9){t--,r[t++]=!1;break}je(e.pcode,function(){var Xt=r[--t];if(Xt<48||Xt>57)return t--,r[t++]=!1,!0})}dr(r[--t])&&(t--,r[t++]="bwipp.maxicodeBadMode2PostCode#21822",r[t++]="A mode 2 postcode must not exceed 9 digits",ne())}else je(e.pcode,function(){var Xt=r[--t];Xt==32||Xt>=34&&Xt<=58||Xt>=65&&Xt<=90||(t--,r[t++]="bwipp.maxicodeBadMode3PostCode#21830",r[t++]="A mode 3 postcode must not exceed 6 characters",ne())});else t--,r[t++]="bwipp.maxicodeExpectedPostCode#21835",r[t++]="Expected postcode followed by group separator character",ne();if(fr(r[--t],""),r[--t]){e.ccode=r[--t],t--,r[t++]=!0;for(var g=0,v=1;g57)return t--,r[t++]=!1,!0})}dr(r[--t])&&(t--,r[t++]="bwipp.maxicodeBadCountryCode#21845",r[t++]="Country code must be three digits",ne())}else t--,r[t++]="bwipp.maxicodeExpectedCountryCode#21848",r[t++]="Expected country code followed by group separator character",ne();if(fr(r[--t],""),r[--t]){e.scode=r[--t],t--,r[t++]=!0;for(var w=0,A=1;w57)return t--,r[t++]=!1,!0})}dr(r[--t])&&(t--,r[t++]="bwipp.maxicodeBadServiceClass#21858",r[t++]="Service class must be three digits",ne())}else t--,r[t++]="bwipp.maxicodeExpectedServiceClass#21861",r[t++]="Expected service class followed by group separator character",ne();e.barcode=r[--t];var k=pe(e.barcode.length+e.fid.length);K(k,0,e.fid),K(k,e.fid.length,e.barcode),e.barcode=k,e.barlen=e.barcode.length,r[t++]=1/0;for(var C=e.barcode,M=0,S=C.length;M",178,175,164]),a([41,"?",179,176,165]),a(["*","[",181,180,166]),a(["+",92,185,183,167]),a([",","]",186,184,169]),a(["-","^",188,187,173]),a([".","_",189,191,174]),a(["/"," ",190,138,182]),a(["0",",",128,139,149]),a(["1",".",129,140,150]),a(["2","/",130,141,151]),a(["3",":",131,142,152]),a(["4","@",132,143,153]),a(["5","!",133,144,154]),a(["6","|",134,145,155]),a(["7",e.pd2,135,146,156]),a(["8",e.sa2,136,147,157]),a(["9",e.sa3,137,148,158]),a([":",e.pd3,e.la,e.la,e.la]),a([e.sb,e.sa," "," "," "]),a([e.sc,e.sc,e.lkc,e.sc,e.sc]),a([e.sd,e.sd,e.sd,e.lkd,e.sd]),a([e.se,e.se,e.se,e.se,e.lke]),a([e.lb,e.la,e.lb,e.lb,e.lb])]),e.charvals=a([new Map,new Map,new Map,new Map,new Map]);for(var I=0,E=e.charmaps.length-1;I<=E;I+=1){e.i=I,e.encs=u(e.charmaps,e.i);for(var j=0;j<=4;j+=1){e.j=j;var B=u(e.encs,e.j);if(r[t++]=B,ae(La(B),"stringtype")){var F=u(r[--t],0);r[t++]=F}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2),e.setd=u(e.charvals,3),e.sete=u(e.charvals,4);for(var O in e)e.hasOwnProperty(O)&&(Q1.$ctx[O]=e[O]);Q1.__21971__=1,e=Object.getPrototypeOf(e)}r[t++]=1/0;for(var N=0,H=e.msglen+1;N=0;L-=1){e.i=L;var _=u(e.msg,e.i);_>=48&&_<=57?y(e.nseq,e.i,h(u(e.nseq,e.i+1)+1)):y(e.nseq,e.i,0)}for(e.nseq=T(e.nseq,0,e.msglen),e.prefixinset=function(){for(r[t++]=0;;){var Xt=r[--t],en=r[--t];if(r[t++]=en,r[t++]=Xt,Xt>=en.length)break;var kr=r[--t],Kr=r[--t],pr=r[--t],dn=u(pr,u(Kr,kr))!==void 0;if(r[t++]=pr,r[t++]=Kr,r[t++]=kr,dn){var er=r[--t];r[t++]=h(er+1)}else break}var jn=r[--t],qr=r[--t];r[t++]=jn,r[t++]=qr,t--;var ho=r[--t],Rr=r[--t];r[t++]=ho,r[t++]=Rr,t--},e.enc=function(){var Xt=r[--t];y(e.out,e.j,u(Xt,r[--t])),e.j=e.j+1},e.out=a(144),e.i=0,e.j=0,e.cset="seta";;){if(e.i==e.msglen){it(e.cset,"seta")&&it(e.cset,"setb")&&(r[t++]=e.la,r[t++]=e[e.cset],e.enc(),e.cset="seta");break}for(;;){if(u(e.msg,e.i)<=-1e6){r[t++]=e.eci,r[t++]=e[e.cset],e.enc();var V=h(-u(e.msg,e.i)-1e6);if(r[t++]=V,V<=31){var $=r[--t];r[t++]=$&63,wr(a(1))}else{var z=r[--t];if(r[t++]=z,z<=1023){var Q=r[--t];r[t++]=Q>>>6&31|32,r[t++]=Q&63,wr(a(2))}else{var G=r[--t];if(r[t++]=G,G<=32767){var D=r[--t];r[t++]=D>>>12&47|48,r[t++]=D>>>6&63,r[t++]=D&63,wr(a(3))}else{var q=r[--t];r[t++]=q>>>18&55|56,r[t++]=q>>>12&63,r[t++]=q>>>6&63,r[t++]=q&63,wr(a(4))}}}var W=r[--t];K(e.out,e.j,W),e.j=W.length+e.j,e.i=e.i+1;break}if(u(e.nseq,e.i)>=9){var X=T(e.msg,e.i,9);r[t++]=0;for(var te=0,se=X.length;te>>6}r[t++]=u(e[e.cset],e.ns);for(var ve=0;ve<=10;ve+=2){var be=r[t-1-ve];r[t++]=be}wr(a(6));var ke=r[--t],ze=r[--t],Ge=r[--t],Ve=r[--t],at=r[--t],We=r[--t],ue=r[--t];r[t++]=ke,r[t++]=ue,r[t++]=We,r[t++]=at,r[t++]=Ve,r[t++]=Ge,r[t++]=ze;for(var Le=0,$e=6;Le<$e;Le++)t--;K(e.out,e.j,r[--t]),e.i=e.i+9,e.j=e.j+6;break}e.char1=u(e.msg,e.i),r[t++]="char2",e.i+1Te-Re){var Nt=Je;Je=It,It=Nt}r[t++]="p",r[t++]=Pt,r[t++]=T(mt,pt,It),e.prefixinset();var ht=r[--t];e[r[--t]]=ht,e.p==1&&(r[t++]=e.sa,r[t++]=e.setb,e.enc(),r[t++]=e.char1,r[t++]=e.seta,e.enc(),e.i=e.i+1),e.p==2&&(r[t++]=e.sa2,r[t++]=e.setb,e.enc(),r[t++]=e.char1,r[t++]=e.seta,e.enc(),r[t++]=e.char2,r[t++]=e.seta,e.enc(),e.i=e.i+2),e.p==3&&(r[t++]=e.sa3,r[t++]=e.setb,e.enc(),r[t++]=e.char1,r[t++]=e.seta,e.enc(),r[t++]=e.char2,r[t++]=e.seta,e.enc(),r[t++]=e.char3,r[t++]=e.seta,e.enc(),e.i=e.i+3),e.p>=4&&(r[t++]=e.la,r[t++]=e.setb,e.enc(),e.cset="seta");break}var xt=u(e.seta,e.char1)!==void 0;if(xt){r[t++]=e.la,r[t++]=e[e.cset],e.enc(),e.cset="seta";break}var tt=u(e.setb,e.char1)!==void 0;if(tt){r[t++]=e.lb,r[t++]=e[e.cset],e.enc(),e.cset="setb";break}var Y=u(e.setc,e.char1)!==void 0;Y&&(e.setx="setc",e.sx=e.sc,e.lkx=e.lkc);var re=u(e.setd,e.char1)!==void 0;re&&(e.setx="setd",e.sx=e.sd,e.lkx=e.lkd);var ie=u(e.sete,e.char1)!==void 0;ie&&(e.setx="sete",e.sx=e.se,e.lkx=e.lke);var le=e[e.setx],ge=e.msg,Me=e.i,me=e.msglen,Ee=e.i,ce=me-Ee,Pe=4;if(4>me-Ee){var Nt=ce;ce=Pe,Pe=Nt}r[t++]="p",r[t++]=le,r[t++]=T(ge,Me,Pe),e.prefixinset();var He=r[--t];e[r[--t]]=He,e.p==1&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char1,r[t++]=e[e.setx],e.enc(),e.i=e.i+1),e.p==2&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char1,r[t++]=e[e.setx],e.enc(),r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char2,r[t++]=e[e.setx],e.enc(),e.i=e.i+2),e.p==3&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char1,r[t++]=e[e.setx],e.enc(),r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char2,r[t++]=e[e.setx],e.enc(),r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char3,r[t++]=e[e.setx],e.enc(),e.i=e.i+3),e.p>=4&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.lkx,r[t++]=e[e.setx],e.enc(),e.cset=e.setx);break}}e.encmsg=T(e.out,0,e.j),e.padval=u(e[e.cset],e.pad),r[t++]="sami",e.sam!=-1?r[t++]=a([u(e.seta,e.pad),(~~(e.sam/10)-1)*8+(e.sam%10-1)]):r[t++]=a([]);var Ne=r[--t];if(e[r[--t]]=Ne,r[t++]=1/0,oe(e.sami),oe(e.encmsg),e.encmsg=a(),e.mode==2||e.mode==3){e.encmsg.length>84&&(r[t++]="bwipp.maxicodeMode23TooLong#22164",r[t++]="The secondary message is too long",ne());var ye=Gn(pe(4),"0000"),rt=gr(pe(4),~~e.mode,2);K(ye,4-rt.length,rt),e.mdb=ye;var Be=Gn(pe(10),"0000000000"),Ae=gr(pe(10),ft(e.ccode),2);K(Be,10-Ae.length,Ae),e.ccb=Be;var Ue=Gn(pe(10),"0000000000"),qe=gr(pe(10),ft(e.scode),2);if(K(Ue,10-qe.length,qe),e.scb=Ue,e.pcb=Gn(pe(36),"000000000000000000000000000000000000"),e.mode==2){var Fe=gr(pe(6),e.pcode.length,2);K(e.pcb,6-Fe.length,Fe);var lt=gr(pe(30),ft(e.pcode),2);K(e.pcb,36-lt.length,lt)}else{r[t++]=1/0;var gt=Gn(pe(6)," ");r[t++]=gt,r[t++]=gt,r[t++]=0,e.pcode.length>6?r[t++]=T(e.pcode,0,6):r[t++]=e.pcode;var At=r[--t],St=r[--t];K(r[--t],St,At),je(r[--t],function(){var Xt=u(e.seta,r[--t]);r[t++]=Xt}),e.pccw=a();for(var yt=0;yt<=5;yt+=1){e.i=yt;var Ct=gr(pe(6),u(e.pccw,e.i),2);K(e.pcb,6*e.i+6-Ct.length,Ct)}}e.scm=pe(60),K(e.scm,2,e.mdb),K(e.scm,38,T(e.pcb,0,4)),K(e.scm,30,T(e.pcb,4,6)),K(e.scm,24,T(e.pcb,10,6)),K(e.scm,18,T(e.pcb,16,6)),K(e.scm,12,T(e.pcb,22,6)),K(e.scm,6,T(e.pcb,28,6)),K(e.scm,0,T(e.pcb,34,2)),K(e.scm,52,T(e.ccb,0,2)),K(e.scm,42,T(e.ccb,2,6)),K(e.scm,36,T(e.ccb,8,2)),K(e.scm,54,T(e.scb,0,6)),K(e.scm,48,T(e.scb,6,4)),e.pri=a([0,0,0,0,0,0,0,0,0,0]);for(var Oe=0;Oe<=59;Oe+=1)e.i=Oe,e.ps=~~(e.i/6),e.ep=~~Math.pow(2,5-e.i%6)*(u(e.scm,e.i)-48),y(e.pri,e.ps,h(u(e.pri,e.ps)+e.ep));r[t++]=1/0;for(var Ce=0,Ye=84;Cee.cws.length-1&&(r[t++]="bwipp.maxicodeMode56TooLong#22229",r[t++]="The message is too long",ne()),y(e.cws,0,e.mode),K(e.cws,1,e.encmsg),e.pri=T(e.cws,0,10),e.sec=T(e.cws,10,e.cws.length-10)}if(!Q1.__22245__){e=Object.create(e),r[t++]=1/0,r[t++]=1;for(var jt=0,nr=63;jt=64){var sr=r[--t];r[t++]=sr^67}}e.rsalog=a(),e.rslog=a(64);for(var lr=1;lr<=63;lr+=1)y(e.rslog,u(e.rsalog,lr),lr);for(var O in e)e.hasOwnProperty(O)&&(Q1.$ctx[O]=e[O]);Q1.__22245__=1,e=Object.getPrototypeOf(e)}e.rsprod=function(){var Xt=r[--t],en=r[--t];if(r[t++]=en,r[t++]=Xt,Xt!=0&&en!=0){var kr=u(e.rslog,r[--t]),Kr=u(e.rsalog,h(kr+u(e.rslog,r[--t]))%63);r[t++]=Kr}else t-=2,r[t++]=0},e.rscodes=function(){e.rsnum=r[--t],e.cwb=r[--t],r[t++]=1/0,r[t++]=1;for(var Xt=0,en=e.rsnum;Xt=1;pr-=1){e.j=pr,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var dn=r[--t],er=r[--t],jn=r[--t];y(r[--t],jn,Zo(er,dn))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var qr=r[--t],ho=r[--t];y(r[--t],ho,qr)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1),r[t++]=1/0;for(var Rr=0,_n=e.rsnum;Rr<_n;Rr++)r[t++]=0;e.ecb=a();for(var Nr=0,Eo=e.cwb.length-1;Nr<=Eo;Nr+=1){e.t=Zo(u(e.cwb,Nr),u(e.ecb,0));for(var nn=e.ecb.length-1;nn>=0;nn-=1){e.i=nn,e.p=e.ecb.length-e.i-1,r[t++]=e.ecb,r[t++]=e.p,r[t++]=e.t,r[t++]=u(e.coeffs,e.i),e.rsprod();var No=r[--t],wn=r[--t];y(r[--t],wn,No),e.i>0&&y(e.ecb,e.p,Zo(u(e.ecb,e.p+1),u(e.ecb,e.p)))}}r[t++]=e.ecb},r[t++]=1/0;for(var yr=0,Qr=e.sec.length-1;yr<=Qr;yr+=2)r[t++]=u(e.sec,yr);e.seco=a(),r[t++]=1/0;for(var Er=1,Pr=e.sec.length-1;Er<=Pr;Er+=2)r[t++]=u(e.sec,Er);e.sece=a();var Wr=e.sec.length==84?20:28;e.scodes=Wr,r[t++]="secochk",r[t++]=e.seco,r[t++]=e.scodes,e.rscodes();var cn=r[--t];e[r[--t]]=cn,r[t++]="secechk",r[t++]=e.sece,r[t++]=e.scodes,e.rscodes();var Cr=r[--t];e[r[--t]]=Cr,r[t++]=1/0;for(var Hr=0,un=e.scodes-1;Hr<=un;Hr+=1)r[t++]=u(e.secochk,Hr),r[t++]=u(e.secechk,Hr);e.secchk=a(),r[t++]=1/0,oe(e.pri),r[t++]=e.pri,r[t++]=10,e.rscodes(),oe(r[--t]),oe(e.sec),oe(e.secchk),e.codewords=a(),r[t++]=1/0;for(var Pn=0,Br=864;Pn95)&&(r[t++]="bwipp.aztecInvalidEClevel#22450",r[t++]="The EC percentage must be from 5 to 95",ne()),e.ecaddchars<3&&(r[t++]="bwipp.aztecInvalidECaddChars#22454",r[t++]="The number of additional EC codewords must be 3 or more",ne()),it(e.format,"full")&&it(e.format,"compact")&&it(e.format,"rune")&&(r[t++]="bwipp.aztecInvalidFormat#22458",r[t++]="The format must be either full, compact or rune",ne()),ae(e.format,"full")&&(e.readerinit&&(e.layers<1||e.layers>22)&&(r[t++]="bwipp.aztecFullInitInvalidLayers#22463",r[t++]="Full-range symbols for reader programming must specify from 1 to 22 layers",ne()),e.layers!=-1&&(e.layers<1||e.layers>32)&&(r[t++]="bwipp.aztecFullInvalidLayers#22466",r[t++]="Layers for full-range symbols must be from 1 to 32",ne())),ae(e.format,"compact")&&(e.readerinit&&(e.layers!=-1&&e.layers!=1&&(r[t++]="bwipp.aztecCompactInitInvalidLayers#22473",r[t++]="Compact symbols for reader programming must have 1 layer",ne()),e.layers=1),e.layers!=-1&&(e.layers<1||e.layers>4)&&(r[t++]="bwipp.aztecCompactInvalidLayers#22478",r[t++]="Layers for compact symbols must be from 1 to 4",ne())),ae(e.format,"rune")){e.layers!=-1&&(r[t++]="bwipp.aztecRuneInvalidLayers#22484",r[t++]="It is not valid to specify layers for runes",ne()),e.readerinit&&(r[t++]="bwipp.aztecRuneReaderInit#22487",r[t++]="Reader initialisation is not compactible with Aztec Runes",ne()),e.barcode.length==0&&(r[t++]="bwipp.aztecRuneNotNumeric#22490",r[t++]="Aztec runes must be numeric",ne()),je(e.barcode,function(){var Ee=r[--t];(Ee<48||Ee>57)&&(r[t++]="bwipp.aztecRuneNotNumeric#22494",r[t++]="Aztec runes must be numeric",ne())});var n=ft(e.barcode);(n<0||n>255)&&(r[t++]="bwipp.aztecRuneInvalid#22498",r[t++]="Aztec runes must be 0 to 255",ne())}e.fn1=-1;var o=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1]]);e.fncvals=o,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var i=r[--t];if(e[r[--t]]=i,e.msglen=e.msg.length,!ls.__22611__){e=Object.create(e),e.U=0,e.L=1,e.M=2,e.P=3,e.D=4,e.B=5,e.lu=-2,e.ll=-3,e.lm=-4,e.lp=-5,e.ld=-6,e.su=-7,e.sp=-8,e.sb=-9,e.fl=-10,e.p2=-11,e.p3=-12,e.p4=-13,e.p5=-14,e.charmaps=a([a([e.sp,e.sp,e.sp,e.fl,e.sp]),a([32,32,32,13,32]),a(["A","a",1,e.p2,"0"]),a(["B","b",2,e.p3,"1"]),a(["C","c",3,e.p4,"2"]),a(["D","d",4,e.p5,"3"]),a(["E","e",5,"!","4"]),a(["F","f",6,'"',"5"]),a(["G","g",7,"#","6"]),a(["H","h",8,"$","7"]),a(["I","i",9,"%","8"]),a(["J","j",10,"&","9"]),a(["K","k",11,"'",","]),a(["L","l",12,40,"."]),a(["M","m",13,41,e.lu]),a(["N","n",27,"*",e.su]),a(["O","o",28,"+",-99]),a(["P","p",29,",",-99]),a(["Q","q",30,"-",-99]),a(["R","r",31,".",-99]),a(["S","s","@","/",-99]),a(["T","t",92,":",-99]),a(["U","u","^",";",-99]),a(["V","v","_","<",-99]),a(["W","w","`","=",-99]),a(["X","x","|",">",-99]),a(["Y","y","~","?",-99]),a(["Z","z",127,"[",-99]),a([e.ll,e.su,e.ll,"]",-99]),a([e.lm,e.lm,e.lu,"{",-99]),a([e.ld,e.ld,e.lp,"}",-99]),a([e.sb,e.sb,e.sb,e.lu,-99])]),e.charvals=a([new Map,new Map,new Map,new Map,new Map]);for(var s=0,l=e.charmaps.length-1;s<=l;s+=1){e.i=s,e.encs=u(e.charmaps,e.i);for(var c=0;c<=4;c+=1){e.j=c;var d=u(e.encs,e.j);if(r[t++]=d,ae(La(d),"stringtype")){var f=u(r[--t],0);r[t++]=f}y(u(e.charvals,e.j),r[--t],e.i)}}var p=new Map([[`\r -`,e.p2],[". ",e.p3],[", ",e.p4],[": ",e.p5]]);e.pcomp=p,e.e=1e6;var m=a([0,0,0,0,0,0]);e.latlen=a([a([0,5,5,10,5,10]),a([9,0,5,10,5,10]),a([5,5,0,5,10,10]),a([5,10,10,0,10,15]),a([4,9,9,14,0,14]),m]),e.latseq=a([a([a([]),a([e.ll]),a([e.lm]),a([e.lm,e.lp]),a([e.ld]),a([e.sb])]),a([a([e.ld,e.lu]),a([]),a([e.lm]),a([e.lm,e.lp]),a([e.ld]),a([e.sb])]),a([a([e.lu]),a([e.ll]),a([]),a([e.lp]),a([e.lu,e.ld]),a([e.sb])]),a([a([e.lu]),a([e.lu,e.ll]),a([e.lu,e.lm]),a([]),a([e.lu,e.ld]),a([e.lu,e.sb])]),a([a([e.lu]),a([e.lu,e.ll]),a([e.lu,e.lm]),a([e.lu,e.lm,e.lp]),a([]),a([e.lu,e.sb])]),a([a([e.lu]),a([e.ll]),a([e.lm]),a([]),a([]),a([])])]),e.shftlen=a([a([e.e,e.e,e.e,5,e.e]),a([5,e.e,e.e,5,e.e]),a([e.e,e.e,e.e,5,e.e]),a([e.e,e.e,e.e,e.e,e.e]),a([4,e.e,e.e,4,e.e])]);for(var g in e)e.hasOwnProperty(g)&&(ls.$ctx[g]=e[g]);ls.__22611__=1,e=Object.getPrototypeOf(e)}if(e.msgbits="",it(e.format,"rune")&&e.raw&&(e.msgbits=e.barcode),it(e.format,"rune")&&!e.raw){e.charsize=function(){var Ee=r[--t];if(r[t++]=Ee,Ee>=0){t--;var ce=u(a([5,5,5,5,4,8]),r[--t]);r[t++]=ce}else{var Pe=r[--t],He=r[--t];r[t++]=Pe,r[t++]=He,t--;var Ne=r[--t];if(r[t++]=Ne,Ne==e.fn1)t--,r[t++]=8;else{var ye=h(-r[--t]-1e6);r[t++]=ye,ye==0&&(t--,r[t++]=1);var rt=r[--t];r[t++]=(~~(Math.log(rt)/Math.log(10))+1)*4+8}}},e.curlen=a([0,e.e,e.e,e.e,e.e,e.e]),e.curseq=a([a([]),a([]),a([]),a([]),a([]),a([])]),e.backto=e.U,e.lastchar="",je(e.msg,function(){for(e.char=r[--t];;){e.imp=!1;for(var Ee=a([e.U,e.L,e.M,e.P,e.D,e.B]),ce=0,Pe=Ee.length;ce=0){if(e.x!=e.B){var lt=u(u(e.charvals,e.x),e.char)!==void 0;if(!lt)break}}else if(e.x!=e.P)break;r[t++]="cost",r[t++]=u(e.curlen,e.x),r[t++]=e.x,r[t++]=e.char,e.charsize();var gt=r[--t],At=r[--t];if(e[r[--t]]=h(At+gt),e.cost=0){var jt=pe(2);y(jt,0,e.lastchar),y(jt,1,e.char),e.pchars=jt;var nr=u(e.pcomp,e.pchars)!==void 0;if(nr){for(var Ft=a([e.U,e.L,e.M,e.P,e.D]),cr=0,sr=Ft.length;cr=0;lr-=1)if(e.idx=lr,e.ch=u(e.curseqi,e.idx),e.lastidx==-1)ae(e.ch,e.lastchar)&&(e.lastidx=e.idx,e.idx>0&&u(e.curseqi,e.idx-1)==e.sp&&(e.lastsp=!0));else if(e.ch<0&&e.ch>=e.ld){e.i==e.P?e.ch==e.ld&&(e.lastld=!0):e.ch!=e.lp&&(e.inP=e.lastsp);break}if(e.inP&&e.lastidx>=0)if(y(e.nxtlen,e.i,u(e.curlen,e.i)),e.lastidx=0?r[t++]=e.char:r[t++]="";var Cr=r[--t];e[r[--t]]=Cr}),e.minseq=e.e;for(var v=a([e.U,e.L,e.M,e.P,e.D,e.B]),w=0,A=v.length;w=0;Ue-=1){var qe=r[--t],Fe=r[--t];r[t++]=Fe,r[t++]=~~(qe/10),r[t++]=Fe,r[t++]=Ue*4+8,r[t++]=h(qe%10+2),r[t++]=4,e.tobin();var lt=r[--t],gt=r[--t];K(r[--t],gt,lt)}t--}else{var At=u(u(e.charvals,e.P),r[--t]);r[t++]=At,r[t++]=5,e.tobin()}}},e.encfuncs=a(["encu","encl","encm","encp","encd"]),e.addtomsgbits=function(){e.v=r[--t],K(e.msgbits,e.j,e.v),e.j=e.j+e.v.length},e.state=e.U,e.msgbits=pe(e.minseq),e.i=0,e.j=0;!(e.i>=e.seq.length);)if(e.state!=e.B){if(e.char=u(e.seq,e.i),r[t++]=e.char,e[u(e.encfuncs,e.state)]()===!0)break;e.addtomsgbits(),e.i=e.i+1,(e.char==e.su||e.char==e.sp)&&(r[t++]=u(e.seq,e.i),e.char==e.su?e.encu():e.encp(),e.addtomsgbits(),e.i=e.i+1),e.char==e.lu&&(e.state=e.U),e.char==e.ll&&(e.state=e.L),e.char==e.lm&&(e.state=e.M),e.char==e.lp&&(e.state=e.P),e.char==e.ld&&(e.state=e.D),e.char==e.sb&&(e.state=e.B)}else{for(e.numbytes=0;!(e.i+e.numbytes>=e.seq.length||u(e.seq,e.i+e.numbytes)<0);)e.numbytes=e.numbytes+1;e.numbytes<=31?(r[t++]=e.numbytes,r[t++]=5,e.tobin(),e.addtomsgbits()):(r[t++]=0,r[t++]=5,e.tobin(),e.addtomsgbits(),r[t++]=e.numbytes-31,r[t++]=11,e.tobin(),e.addtomsgbits());for(var k=0,C=e.numbytes;ke.numdcw&&(e.okay=!1),!e.okay);S++);for(e.okay||(r[t++]="bwipp.aztecNoValidSymbol#22946",r[t++]="Maximum length exceeded",ne()),e.layers=e.mlyr,e.allzero=function(){var Ee=r[--t];r[t++]=ae(Ee,T("000000000000",0,Ee.length))},e.allones=function(){var Ee=r[--t];r[t++]=ae(Ee,T("111111111111",0,Ee.length))},e.cws=a(e.ncws),e.m=0,e.c=0;!(e.msgbits.length<=e.m);){if(e.msgbits.length-e.m>=e.bpcw){e.cwb=T(e.msgbits,e.m,h(e.bpcw-1)),e.cwf=T(e.msgbits,h(h(e.m+e.bpcw)-1),1),r[t++]=e.cwb,e.allzero(),r[--t]&&(e.cwf="1",e.m=e.m-1),r[t++]=e.cwb,e.allones(),r[--t]&&(e.cwf="0",e.m=e.m-1);var E=pe(12);K(E,0,e.cwb),K(E,h(e.bpcw-1),e.cwf),e.cwb=T(E,0,e.bpcw)}else{e.cwb=T(e.msgbits,e.m,e.msgbits.length-e.m);var j=Gn(pe(12),"111111111111");K(j,0,e.cwb),e.cwb=T(j,0,e.bpcw),r[t++]=e.cwb,e.allones(),r[--t]&&K(e.cwb,e.cwb.length-1,"0")}e.cw=0;for(var B=0,F=h(e.bpcw-1);B<=F;B+=1)e.i=B,e.cw=h(e.cw+~~Math.pow(2,h(h(e.bpcw-e.i)-1))*h(u(e.cwb,e.i)-48));y(e.cws,e.c,e.cw),e.m=h(e.m+e.bpcw),e.c=e.c+1}e.cws=T(e.cws,0,e.c);var O=u(e.options,"debugcws")!==void 0;if(O&&(r[t++]="bwipp.debugcws#22985",r[t++]=e.cws,ne()),e.rscodes=function(){e.rspm=r[--t],e.rsgf=r[--t],e.rsnc=r[--t],e.rscws=r[--t],r[t++]=1/0,r[t++]=1;for(var Ee=0,ce=h(e.rsgf-1);Ee=e.rsgf){var Ne=r[--t];r[t++]=Zo(Ne,e.rspm)}}e.rsalog=a(),e.rslog=a(e.rsgf);for(var ye=1,rt=h(e.rsgf-1);ye<=rt;ye+=1)y(e.rslog,u(e.rsalog,ye),ye);e.rsprod=function(){var nr=r[--t],Ft=r[--t];if(r[t++]=Ft,r[t++]=nr,nr!=0&&Ft!=0){var cr=u(e.rslog,r[--t]),sr=u(e.rsalog,h(cr+u(e.rslog,r[--t]))%h(e.rsgf-1));r[t++]=sr}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var Be=0,Ae=e.rsnc;Be=1;Fe-=1){e.j=Fe,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var lt=r[--t],gt=r[--t],At=r[--t];y(r[--t],At,Zo(gt,lt))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var St=r[--t],yt=r[--t];y(r[--t],yt,St)}e.nd=e.rscws.length,r[t++]=1/0,je(e.rscws);for(var Ct=0,Oe=e.rsnc;Ct>>12,(e.mode&3840)>>>8,(e.mode&240)>>>4,e.mode&15]),r[t++]="mode",r[t++]=e.mode,r[t++]=6,r[t++]=16,r[t++]=19,e.rscodes();var N=r[--t];e[r[--t]]=N}if(ae(e.format,"compact")){e.mode=(h(e.layers-1)<<6)+(e.cws.length-1),e.readerinit&&(e.mode=e.mode|32),e.mode=a([(e.mode&240)>>>4,e.mode&15]),r[t++]="mode",r[t++]=e.mode,r[t++]=5,r[t++]=16,r[t++]=19,e.rscodes();var H=r[--t];e[r[--t]]=H}if(ae(e.format,"rune")){e.mode=ft(e.barcode),e.mode=a([(e.mode&240)>>>4,e.mode&15]),r[t++]="mode",r[t++]=e.mode,r[t++]=5,r[t++]=16,r[t++]=19,e.rscodes();var L=r[--t];e[r[--t]]=L,r[t++]=1/0;for(var _=e.mode,V=0,$=_.length;V<$;V++)r[t++]=u(_,V)^10;e.mode=a()}e.modebits=pe(e.mode.length*4);for(var z=0,Q=e.modebits.length-1;z<=Q;z+=1)K(e.modebits,z,"0");for(var G=0,D=e.mode.length-1;G<=D;G+=1){e.i=G;var q=gr(pe(4),u(e.mode,e.i),2);K(e.modebits,4-q.length+4*e.i,q)}if(!ls.__23086__){e=Object.create(e),e.rsparams=a([a([]),a([]),a([]),a([]),a([]),a([]),a([64,67]),a([]),a([256,301]),a([]),a([1024,1033]),a([]),a([4096,4201])]);for(var g in e)e.hasOwnProperty(g)&&(ls.$ctx[g]=e[g]);ls.__23086__=1,e=Object.getPrototypeOf(e)}r[t++]="cws",r[t++]=e.cws,r[t++]=h(e.ncws-e.cws.length),je(u(e.rsparams,e.bpcw)),e.rscodes();var W=r[--t];e[r[--t]]=W,ae(e.format,"full")?e.databits=pe(h(e.layers*e.layers*16+e.layers*112)):e.databits=pe(h(e.layers*e.layers*16+e.layers*88));for(var X=0,te=e.databits.length-1;X<=te;X+=1)K(e.databits,X,"0");for(var se=0,de=h(e.ncws-1);se<=de;se+=1){e.i=se;var ee=gr(pe(e.bpcw),u(e.cws,e.i),2);K(e.databits,h(h(h(e.bpcw-ee.length)+e.bpcw*e.i)+h(e.databits.length-e.ncws*e.bpcw)),ee)}e.cmv=function(){var Ee=r[--t],ce=r[--t];r[t++]=h(h(ce-Ee*e.size)+e.mid)},e.lmv=function(){e.lbit=r[--t],e.llyr=r[--t],e.lwid=h(e.fw+e.llyr*4),e.ldir=~~(~~(e.lbit/2)/e.lwid),e.ldir==0&&(r[t++]=h(-~~(h(e.lwid-1)/2)+1+~~(e.lbit/2)%e.lwid),r[t++]=h(h(~~((e.fw-1)/2)+e.llyr*2)+e.lbit%2),e.cmv()),e.ldir==1&&(r[t++]=h(h(~~(e.fw/2)+e.llyr*2)+e.lbit%2),r[t++]=h(~~(h(e.lwid-1)/2)-1-~~(e.lbit/2)%e.lwid),e.cmv()),e.ldir==2&&(r[t++]=-h(-~~(e.lwid/2)+1+~~(e.lbit/2)%e.lwid),r[t++]=-h(h(~~(e.fw/2)+e.llyr*2)+e.lbit%2),e.cmv()),e.ldir==3&&(r[t++]=-h(h(~~((e.fw-1)/2)+e.llyr*2)+e.lbit%2),r[t++]=-h(~~(e.lwid/2)-1-~~(e.lbit/2)%e.lwid),e.cmv())},ae(e.format,"full")?e.fw=12:e.fw=9,e.size=h(h(e.fw+e.layers*4)+2),r[t++]=1/0;for(var fe=0,he=e.size*e.size;feMath.abs(e.j)?r[t++]=Math.abs(e.i):r[t++]=Math.abs(e.j);var Te=r[--t],Re=r[--t];y(r[--t],Re,h(Te+1)%2)}}for(var Je=a([a([-(e.fw+1),e.fw,1]),a([-(e.fw+1),e.fw+1,1]),a([-e.fw,e.fw+1,1]),a([e.fw+1,e.fw+1,1]),a([e.fw+1,e.fw,1]),a([e.fw+1,-e.fw,1]),a([e.fw,e.fw+1,0]),a([e.fw+1,-(e.fw+1),0]),a([e.fw,-(e.fw+1),0]),a([-e.fw,-(e.fw+1),0]),a([-(e.fw+1),-(e.fw+1),0]),a([-(e.fw+1),-e.fw,0])]),It=0,Nt=Je.length;It57)&&(r[t++]="bwipp.codeoneStypeNonDigit#23543",r[t++]="S-Type symbols can only contain digits",ne())}),e.barlen=e.barcode.length,e.barlen>18&&(r[t++]="bwipp.codeoneStypeTooLong#23549",r[t++]="Maximum length exceeded",ne()),e.normalize=function(){e.base=r[--t],e.num=r[--t];for(var wt=e.num.length-1;wt>=1;wt-=1){e.i=wt;var Ut=e.num,vr=e.i;y(Ut,vr-1,h(u(Ut,vr-1)+~~(u(e.num,e.i)/e.base))),y(e.num,e.i,u(e.num,e.i)%e.base)}for(;!Fs(u(e.num,0),e.base);)r[t++]=1/0,r[t++]=0,je(e.num),e.num=a(),y(e.num,0,h(u(e.num,0)+~~(u(e.num,1)/e.base))),y(e.num,1,u(e.num,1)%e.base);r[t++]=1/0,e.i=!0;for(var br=e.num,Rn=0,Dn=br.length;Rn0){e.msgtmp=a(h(h(e.msg.length*2+e.numecis*6)+2)),y(e.msgtmp,0,e.pad),y(e.msgtmp,1,e.eciesc),e.j=2;for(var ti=0,oo=e.msg.length-1;ti<=oo;ti+=1){var ri=u(e.msg,ti);if(r[t++]=ri,ri<=-1e6){for(var Jn=T(gr(pe(7),-r[--t],10),1,6),Ei=0,mo=Jn.length;Ei=0;hi-=1)e.i=hi,u(e.numremcws,e.i)!=1&&y(e.numremcws,e.i,h(u(e.numremcws,e.i+1)+1));r[t++]=1/0;for(var Vi=0,ji=e.msglen;Vi=0;Ki-=1){e.i=Ki,e.barchar=u(e.msg,e.i),e.barchar>=48&&e.barchar<=57&&y(e.numD,e.i,h(u(e.numD,e.i+1)+1)),e.barchar==13||e.barchar==42||e.barchar==62?y(e.nextXterm,e.i,0):y(e.nextXterm,e.i,h(u(e.nextXterm,e.i+1)+1));var Vo=u(e.Xvals,e.barchar)!==void 0;Vo?y(e.nextNonX,e.i,h(u(e.nextNonX,e.i+1)+1)):y(e.nextNonX,e.i,0)}r[t++]=1/0;for(var ca=e.nextXterm,Xi=0,Ji=ca.length;Xi1e4&&(t--,r[t++]=1e4)}e.nextXterm=a(),r[t++]=1/0;for(var Zi=e.nextNonX,ea=0,Qo=Zi.length;ea1e4&&(t--,r[t++]=1e4)}for(e.nextNonX=a(),e.isD=function(){r[t++]=e.char>=48&&e.char<=57},e.isC=function(){var wt=u(e.CNvals,e.char)!==void 0;r[t++]=wt},e.isT=function(){var wt=u(e.TNvals,e.char)!==void 0;r[t++]=wt},e.isX=function(){var wt=u(e.Xvals,e.char)!==void 0;r[t++]=wt},e.isEA=function(){r[t++]=e.char>127},e.isFN=function(){r[t++]=e.char<0},e.XtermFirst=function(){var wt=r[--t];r[t++]=Fs(u(e.nextXterm,wt),u(e.nextNonX,wt))},e.lookup=function(){e.ac=1,e.cc=2,e.tc=2,e.xc=2,e.bc=3,e.mode==e.A&&(e.ac=0,e.cc=1,e.tc=1,e.xc=1,e.bc=2),e.mode==e.C&&(e.cc=0),e.mode==e.T&&(e.tc=0),e.mode==e.X&&(e.xc=0),e.mode==e.B&&(e.bc=0);for(var wt=0,Ut=1;wt=3){var hc=a([e.ac,e.cc,e.tc,e.xc]);r[t++]=!0;for(var kl=0,Jl=hc.length;kl1480&&(t--,r[t++]="bwipp.codeoneTooLong#23745",r[t++]="Maximum length exceeded",ne());var Ut=r[--t];K(e.cws,e.j,Ut),e.j=Ut.length+e.j},e.tobin=function(){var wt=pe(r[--t]);r[t++]=wt;for(var Ut=0,vr=wt.length-1;Ut<=vr;Ut+=1){var br=r[--t];y(br,Ut,48),r[t++]=br}var Rn=r[--t],Dn=gr(pe(Rn.length),r[--t],2);K(Rn,Rn.length-Dn.length,Dn),r[t++]=Rn,r[t++]=1/0;var ko=r[--t],zo=r[--t];r[t++]=ko,je(zo,function(){var pa=r[--t];r[t++]=h(pa-48)});var Li=a();r[t++]=Li},e.encA=function(){for(var wt=0,Ut=1;wt=21){e.Dbits=a([1,1,1,1]),e.mode=e.D;break}var vr=u(e.numD,e.i);if(vr>=13&&h(vr+e.i)==e.msglen){e.Dbits=a([1,1,1,1]),e.mode=e.D;break}if(u(e.numD,e.i)>=2){var br=pe(2);y(br,0,u(e.msg,e.i)),y(br,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,br),e.addtocws(),e.i=e.i+2;break}if(u(e.msg,e.i)==e.fnc1){if(u(e.numD,e.i+1)>=15){r[t++]=u(e.Avals,e.fnc1lD),e.addtocws(),e.i=e.i+1,e.Dbits=a([]),e.mode=e.D;break}var Rn=u(e.numD,e.i+1);if(Rn>=7&&h(h(Rn+e.i)+1)==e.msglen){r[t++]=u(e.Avals,e.fnc1lD),e.addtocws(),e.i=e.i+1,e.Dbits=a([]),e.mode=e.D;break}}r[t++]="newmode",e.lookup();var Dn=r[--t];if(e[r[--t]]=Dn,e.newmode!=e.mode){r[t++]=u(e.Avals,u(a([-1,e.lC,e.lT,e.lX,e.lD,e.lB]),e.newmode)),e.addtocws(),e.mode=e.newmode;break}r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1;break}},e.CTXvalstocws=function(){e.in=r[--t],r[t++]=1/0;for(var wt=0,Ut=e.in.length-1;wt<=Ut;wt+=3){var vr=T(e.in,wt,3);r[t++]=0;for(var br=0,Rn=vr.length;br=12){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),r[t++]=a([e.unlcw]),e.addtocws(),e.mode=e.A;break}var wt=u(e.numD,e.i);if(wt>=8&&h(wt+e.i)==e.msglen){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),r[t++]=a([e.unlcw]),e.addtocws(),e.mode=e.A;break}if(e.mode==e.X){var Ut=u(e.Xvals,u(e.msg,e.i))!==void 0;if(!Ut){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),(u(e.numremcws,e.j)!=1||u(e.msg,e.i)>127)&&(r[t++]=a([e.unlcw]),e.addtocws()),e.mode=e.A;break}if(e.i+1=2){var _a=pe(2);y(_a,0,u(e.msg,e.i)),y(_a,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,_a),e.addtocws(),e.i=e.i+2}else r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1}},e.encD=function(){for(;;){if(u(e.numD,e.i)<3){if(e.Drem=(8-e.Dbits.length%8)%8,e.remcws=u(e.numremcws,e.j+~~(e.Dbits.length/8)),(h(u(e.numremcws,e.j+~~(e.Dbits.length/8)-1)-1)==0&&e.Drem==0||e.remcws==1&&e.Drem!=0)&&e.i==e.msglen){(e.Drem==4||e.Drem==6)&&(r[t++]=1/0,oe(e.Dbits),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.Dbits=a()),(e.Drem==2||e.Drem==6)&&(r[t++]=1/0,oe(e.Dbits),r[t++]=0,r[t++]=1,e.Dbits=a());break}if((e.i==e.msglen-1&&u(e.numD,e.i)==1||e.i==e.msglen-2&&u(e.numD,e.i)==2)&&e.remcws==1&&e.Drem==0)break;e.i==e.msglen-1&&u(e.numD,e.i)==1&&e.remcws==1&&(e.Drem==4||e.Drem==6)||(r[t++]=1/0,oe(e.Dbits),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.Dbits=a(),e.Drem=(8-e.Dbits.length%8)%8),(e.Drem==4||e.Drem==6)&&(u(e.numD,e.i)>=1?(r[t++]=1/0,oe(e.Dbits),r[t++]=h(h(u(e.msg,e.i)-48)+1),r[t++]=4,e.tobin(),oe(r[--t]),e.Dbits=a(),e.i=e.i+1):(r[t++]=1/0,oe(e.Dbits),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.Dbits=a()),e.Drem=e.Drem-4),e.Drem==2&&(r[t++]=1/0,oe(e.Dbits),r[t++]=0,r[t++]=1,e.Dbits=a(),e.Drem=0);break}r[t++]=1/0,oe(e.Dbits);var wt=T(e.msg,e.i,3);r[t++]=0;for(var Ut=0,vr=wt.length;Ut=e.msglen||e[u(a(["encA","encCTX","encCTX","encCTX","encD","encB"]),e.mode)]()===!0););e.cws=T(e.cws,0,e.j)}for(var Ao=e.metrics,Sr=0,vo=Ao.length;Sre.dcws&&(e.okay=!1),!e.okay);Sr++);if(e.okay||(r[t++]="bwipp.codeoneNoValidSymbol#24061",r[t++]="Maximum length exceeded",ne()),e.stype){r[t++]=1/0;for(var jo=0,$i=h(e.dcws-e.cws.length);jo<$i;jo++)r[t++]=0;oe(e.cws),e.cws=a()}else{r[t++]=1/0,oe(e.cws);for(var Ln=0,Ni=h(e.dcws-e.cws.length);Ln=e.gf){var gs=r[--t];r[t++]=gs^e.pm}}e.rsalog=a(),e.rslog=a(e.gf);for(var Ht=1,tr=e["gf-1"];Ht<=tr;Ht+=1)y(e.rslog,u(e.rsalog,Ht),Ht);e.rsprod=function(){var wt=r[--t],Ut=r[--t];if(r[t++]=Ut,r[t++]=wt,wt!=0&&Ut!=0){var vr=u(e.rslog,r[--t]),br=u(e.rsalog,h(vr+u(e.rslog,r[--t]))%e["gf-1"]);r[t++]=br}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var Tr=0,on=e.ecpb;Tr=1;Vr-=1){e.j=Vr,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var Yn=r[--t],xn=r[--t],On=r[--t];y(r[--t],On,Zo(xn,Yn))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var pn=r[--t],yn=r[--t];y(r[--t],yn,pn)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var zn=0,Fn=e.cwbs.length-1;zn<=Fn;zn+=1){e.i=zn,r[t++]=1/0,oe(u(e.cwbs,e.i));for(var tn=0,An=e.ecpb;tn=so:oi<=so;oi+=Yo){if(e.i=oi,e.stype){var Wn=Gn(pe(5),"00000"),Lo=gr(pe(5),u(e.cws,e.i),2);K(Wn,5-Lo.length,Lo),r[t++]=Wn,r[t++]=1/0;var Ri=r[--t],fa=r[--t];r[t++]=Ri,je(fa,function(){var wt=r[--t];r[t++]=h(wt-48)}),e.c1=a();var ii=Gn(pe(5),"00000"),vs=gr(pe(5),u(e.cws,e.i+1),2);K(ii,5-vs.length,vs),r[t++]=ii,r[t++]=1/0;var os=r[--t],Ga=r[--t];r[t++]=os,je(Ga,function(){var wt=r[--t];r[t++]=h(wt-48)}),e.c2=a(),r[t++]=1/0,oe(T(e.c1,0,3)),oe(T(e.c2,0,2)),e.top=a(),r[t++]=1/0,oe(T(e.c1,3,2)),oe(T(e.c2,2,3)),e.bot=a()}else{var ra=Gn(pe(8),"00000000"),mr=gr(pe(8),u(e.cws,e.i),2);K(ra,8-mr.length,mr),r[t++]=ra,r[t++]=1/0;var Cn=r[--t],mn=r[--t];r[t++]=Cn,je(mn,function(){var wt=r[--t];r[t++]=h(wt-48)});var to=a();e.top=T(to,0,4),e.bot=T(to,4,4)}K(e.mmat,h(e.r*e.dcol+e.c),e.top),K(e.mmat,h((e.r+1)*e.dcol+e.c),e.bot),e.c=e.c+e.top.length,e.c==e.dcol&&(e.c=0,e.r=e.r+2)}e.mmv=function(){var wt=r[--t],Ut=r[--t];r[t++]=h(Ut+wt*e.cols)},r[t++]=1/0;for(var Va=0,Ea=e.rows*e.cols;Va=$s:qa<=$s;qa+=tl){e.j=qa;var xs=e.i%12==0?1:0,rl=a([1,xs]);r[t++]=rl,r[t++]=rl,r[t++]=e.pixs,r[t++]=e.j,r[t++]=e.i,e.mmv();var T1=r[--t],F1=r[--t];if(K(F1,T1,r[--t]),e.i!=h(e.risl-1)){r[t++]=e.pixs,r[t++]=h(h(e.cols-e.j)-2),r[t++]=h(h(e.rows-e.i)-1),e.mmv();var fc=r[--t],Yl=r[--t];K(Yl,fc,r[--t])}else t--}}if(!W1.__24228__){e=Object.create(e);var D1=new Map([["A",a([a([12,5])])],["B",a([a([16,7])])],["C",a([a([26,12])])],["D",a([])],["E",a([a([26,23])])],["F",a([a([26,32]),a([70,32]),a([26,34]),a([70,34])])],["G",a([a([27,48]),a([69,48])])],["H",a([a([26,70]),a([66,70]),a([106,70]),a([26,72]),a([66,72]),a([106,72])])],["S-10",a([])],["S-20",a([a([10,4])])],["S-30",a([a([15,4]),a([15,6])])],["T-16",a([a([8,10])])],["T-32",a([a([16,10]),a([16,12])])],["T-48",a([a([24,10]),a([24,12]),a([24,14])])]]);e.blackdotmap=D1;for(var hr in e)e.hasOwnProperty(hr)&&(W1.$ctx[hr]=e[hr]);W1.__24228__=1,e=Object.getPrototypeOf(e)}je(u(e.blackdotmap,e.vers),function(){var wt=r[--t];r[t++]=e.pixs,oe(wt),e.mmv();var Ut=r[--t];y(r[--t],Ut,1)}),e.j=0;for(var Al=0,Mt=e.pixs.length-1;Al<=Mt;Al+=1)e.i=Al,u(e.pixs,e.i)==-1&&(y(e.pixs,e.i,u(e.mmat,e.j)),e.j=e.j+1);r[t++]=1/0,r[t++]="ren",r[t++]="renmatrix",r[t++]="pixs",r[t++]=e.pixs,r[t++]="pixx",r[t++]=e.cols,r[t++]="pixy",r[t++]=e.rows,r[t++]="height",r[t++]=e.rows/72*2,r[t++]="width",r[t++]=e.cols/72*2,(e.stype||e.ttype)&&(r[t++]="borderleft",r[t++]=1,r[t++]="borderright",r[t++]=1,r[t++]="bordertop",r[t++]=0,r[t++]="borderbottom",r[t++]=1),r[t++]="opt",r[t++]=e.options;var Wt=Bt();r[t++]=Wt,e.dontdraw||Qt(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function Yu(){if(e=Object.create(e),e.dontdraw=!1,e.version="unset",e.eclevel="L2",e.parse=!1,e.parsefnc=!1,e.mask=-1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],ae(e.barcode,"")&&(r[t++]="bwipp.hanxinEmptyData#24307",r[t++]="The data must not be empty",ne()),it(e.version,"unset")){var n=e.version.length,o=n>=1&&n<=2;if(r[t++]=o,o){t--;var i=e.version;r[t++]=!0;for(var s=0,l=i.length;s57)&&(t--,r[t++]=!1)}var d=r[--t];if(r[t++]=d,d){t--;var f=ft(e.version);r[t++]=f>=1&&f<=84}}dr(r[--t])&&(r[t++]="bwipp.hanxinInvalidVersion#24318",r[t++]="Valid versions are 1 to 84",ne())}var p=e.eclevel.length==2;if(r[t++]=p,p&&(t--,r[t++]=T(e.eclevel,0,1),ae("L","L"))){t--;var m=u(e.eclevel,1)-48;r[t++]=m>=1&&m<=4}dr(r[--t])&&(r[t++]="bwipp.hanxinInvalidErrorCorrectionLevel#24328",r[t++]="Valid error correction levels are L1 to L4",ne()),e.mask!=-1&&(e.mask<1||e.mask>4)&&(r[t++]="bwipp.hanxinInvalidErrorCorrectionLevel#24333",r[t++]="The valid masks are 1 to 4",ne()),xr(Yu);var g=new Map([["parse",e.parse],["parsefnc",e.parsefnc]]);e.fncvals=g,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var v=r[--t];e[r[--t]]=v,e.msglen=e.msg.length,e.tobin=function(){var zt=pe(r[--t]);r[t++]=zt;for(var ar=0,hr=zt.length-1;ar<=hr;ar+=1){var Ar=r[--t];y(Ar,ar,48),r[t++]=Ar}var Yr=r[--t],Xt=gr(pe(Yr.length),r[--t],2);K(Yr,Yr.length-Xt.length,Xt),r[t++]=Yr},e.bits=pe(17+e.msglen*8),K(e.bits,0,"0011"),r[t++]=e.bits,r[t++]=4,r[t++]=e.msglen,r[t++]=13,e.tobin();var w=r[--t],A=r[--t];K(r[--t],A,w);for(var k=0,C=e.msglen-1;k<=C;k+=1){e.i=k,r[t++]=e.bits,r[t++]=17+e.i*8,r[t++]=u(e.msg,e.i),r[t++]=8,e.tobin();var M=r[--t],S=r[--t];K(r[--t],S,M)}if(!Yu.__24704__){e=Object.create(e);var I=a([0,-1,-1]);e.metrics=a([a(["1",23,-1,0,205,a([1,21,4]),a([0,-1,-1]),a([0,-1,-1]),a([1,17,8]),a([0,-1,-1]),a([0,-1,-1]),a([1,13,12]),a([0,-1,-1]),a([0,-1,-1]),a([1,9,16]),a([0,-1,-1]),a([0,-1,-1])]),a(["2",25,-1,0,301,a([1,31,6]),a([0,-1,-1]),a([0,-1,-1]),a([1,25,12]),a([0,-1,-1]),a([0,-1,-1]),a([1,19,18]),a([0,-1,-1]),a([0,-1,-1]),a([1,15,22]),a([0,-1,-1]),a([0,-1,-1])]),a(["3",27,-1,0,405,a([1,42,8]),a([0,-1,-1]),a([0,-1,-1]),a([1,34,16]),a([0,-1,-1]),a([0,-1,-1]),a([1,26,24]),a([0,-1,-1]),a([0,-1,-1]),a([1,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["4",29,14,1,439,a([1,46,8]),a([0,-1,-1]),a([0,-1,-1]),a([1,38,16]),a([0,-1,-1]),a([0,-1,-1]),a([1,30,24]),a([0,-1,-1]),a([0,-1,-1]),a([1,22,32]),a([0,-1,-1]),a([0,-1,-1])]),a(["5",31,16,1,555,a([1,57,12]),a([0,-1,-1]),a([0,-1,-1]),a([1,49,20]),a([0,-1,-1]),a([0,-1,-1]),a([1,37,32]),a([0,-1,-1]),a([0,-1,-1]),a([1,14,20]),a([1,13,22]),a([0,-1,-1])]),a(["6",33,16,1,675,a([1,70,14]),I,a([0,-1,-1]),a([1,58,26]),a([0,-1,-1]),a([0,-1,-1]),a([1,24,20]),a([1,22,18]),a([0,-1,-1]),a([1,16,24]),a([1,18,26]),a([0,-1,-1])]),a(["7",35,17,1,805,a([1,84,16]),a([0,-1,-1]),a([0,-1,-1]),a([1,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([1,26,22]),a([1,28,24]),a([0,-1,-1]),a([2,14,20]),a([1,12,20]),a([0,-1,-1])]),a(["8",37,18,1,943,a([1,99,18]),a([0,-1,-1]),a([0,-1,-1]),a([1,40,18]),a([1,41,18]),a([0,-1,-1]),a([1,31,26]),a([1,32,28]),a([0,-1,-1]),a([2,16,24]),a([1,15,22]),a([0,-1,-1])]),a(["9",39,19,1,1089,a([1,114,22]),a([0,-1,-1]),a([0,-1,-1]),a([2,48,20]),a([0,-1,-1]),a([0,-1,-1]),a([2,24,20]),a([1,26,22]),a([0,-1,-1]),a([2,18,28]),a([1,18,26]),a([0,-1,-1])]),a(["10",41,20,1,1243,a([1,131,24]),a([0,-1,-1]),a([0,-1,-1]),a([1,52,22]),a([1,57,24]),a([0,-1,-1]),a([2,27,24]),a([1,29,24]),a([0,-1,-1]),a([2,21,32]),a([1,19,30]),a([0,-1,-1])]),a(["11",43,14,2,1289,a([1,135,26]),a([0,-1,-1]),a([0,-1,-1]),a([1,56,24]),a([1,57,24]),a([0,-1,-1]),a([2,28,24]),a([1,31,26]),a([0,-1,-1]),a([2,22,32]),a([1,21,32]),a([0,-1,-1])]),a(["12",45,15,2,1455,a([1,153,28]),a([0,-1,-1]),a([0,-1,-1]),a([1,62,26]),a([1,65,28]),a([0,-1,-1]),a([2,32,28]),a([1,33,28]),a([0,-1,-1]),a([3,17,26]),a([1,22,30]),a([0,-1,-1])]),a(["13",47,16,2,1629,a([1,86,16]),a([1,85,16]),a([0,-1,-1]),a([1,71,30]),a([1,72,30]),a([0,-1,-1]),a([2,37,32]),a([1,35,30]),a([0,-1,-1]),a([3,20,30]),a([1,21,32]),a([0,-1,-1])]),a(["14",49,16,2,1805,a([1,94,18]),a([1,95,18]),a([0,-1,-1]),a([2,51,22]),a([1,55,24]),a([0,-1,-1]),a([3,30,26]),a([1,31,26]),a([0,-1,-1]),a([4,18,28]),a([1,17,24]),a([0,-1,-1])]),a(["15",51,17,2,1995,a([1,104,20]),a([1,105,20]),a([0,-1,-1]),a([2,57,24]),a([1,61,26]),a([0,-1,-1]),a([3,33,28]),a([1,36,30]),a([0,-1,-1]),a([4,20,30]),a([1,19,30]),a([0,-1,-1])]),a(["16",53,17,2,2187,a([1,115,22]),a([1,114,22]),a([0,-1,-1]),a([2,65,28]),a([1,61,26]),a([0,-1,-1]),a([3,38,32]),a([1,33,30]),a([0,-1,-1]),a([5,19,28]),a([1,14,24]),a([0,-1,-1])]),a(["17",55,18,2,2393,a([1,126,24]),a([1,125,24]),a([0,-1,-1]),a([2,70,30]),a([1,69,30]),a([0,-1,-1]),a([4,33,28]),a([1,29,26]),a([0,-1,-1]),a([5,20,30]),a([1,19,30]),a([0,-1,-1])]),a(["18",57,19,2,2607,a([1,136,26]),a([1,137,26]),a([0,-1,-1]),a([3,56,24]),a([1,59,26]),a([0,-1,-1]),a([5,35,30]),a([0,-1,-1]),a([0,-1,-1]),a([6,18,28]),a([1,21,28]),a([0,-1,-1])]),a(["19",59,20,2,2829,a([1,148,28]),a([1,149,28]),a([0,-1,-1]),a([3,61,26]),a([1,64,28]),a([0,-1,-1]),a([7,24,20]),a([1,23,22]),a([0,-1,-1]),a([6,20,30]),a([1,21,32]),a([0,-1,-1])]),a(["20",61,20,2,3053,a([3,107,20]),a([0,-1,-1]),a([0,-1,-1]),a([3,65,28]),a([1,72,30]),a([0,-1,-1]),a([7,26,22]),a([1,23,22]),a([0,-1,-1]),a([7,19,28]),a([1,20,32]),a([0,-1,-1])]),a(["21",63,21,2,3291,a([3,115,22]),a([0,-1,-1]),a([0,-1,-1]),a([4,56,24]),a([1,63,28]),a([0,-1,-1]),a([7,28,24]),a([1,25,22]),a([0,-1,-1]),a([8,18,28]),a([1,21,22]),a([0,-1,-1])]),a(["22",65,16,3,3383,a([2,116,22]),a([1,122,24]),a([0,-1,-1]),a([4,56,24]),a([1,72,30]),a([0,-1,-1]),a([7,28,24]),a([1,32,26]),a([0,-1,-1]),a([8,18,28]),a([1,24,30]),a([0,-1,-1])]),a(["23",67,17,3,3631,a([3,127,24]),a([0,-1,-1]),a([0,-1,-1]),a([5,51,22]),a([1,62,26]),a([0,-1,-1]),a([7,30,26]),a([1,35,26]),a([0,-1,-1]),a([8,20,30]),a([1,21,32]),a([0,-1,-1])]),a(["24",69,17,3,3887,a([2,135,26]),a([1,137,26]),a([0,-1,-1]),a([5,56,24]),a([1,59,26]),a([0,-1,-1]),a([7,33,28]),a([1,30,28]),a([0,-1,-1]),a([11,16,24]),a([1,19,26]),a([0,-1,-1])]),a(["25",71,18,3,4151,a([3,105,20]),a([1,121,22]),a([0,-1,-1]),a([5,61,26]),a([1,57,26]),a([0,-1,-1]),a([9,28,24]),a([1,28,22]),a([0,-1,-1]),a([10,19,28]),a([1,18,30]),a([0,-1,-1])]),a(["26",73,18,3,4423,a([2,157,30]),a([1,150,28]),a([0,-1,-1]),a([5,65,28]),a([1,61,26]),a([0,-1,-1]),a([8,33,28]),a([1,34,30]),a([0,-1,-1]),a([10,19,28]),a([2,15,26]),a([0,-1,-1])]),a(["27",75,19,3,4703,a([3,126,24]),a([1,115,22]),a([0,-1,-1]),a([7,51,22]),a([1,54,22]),a([0,-1,-1]),a([8,35,30]),a([1,37,30]),a([0,-1,-1]),a([15,15,22]),a([1,10,22]),a([0,-1,-1])]),a(["28",77,19,3,4991,a([4,105,20]),a([1,103,20]),a([0,-1,-1]),a([7,56,24]),a([1,45,18]),a([0,-1,-1]),a([10,31,26]),a([1,27,26]),a([0,-1,-1]),a([10,17,26]),a([3,20,28]),a([1,21,28])]),a(["29",79,20,3,5287,a([3,139,26]),a([1,137,28]),a([0,-1,-1]),a([6,66,28]),a([1,66,30]),a([0,-1,-1]),a([9,36,30]),a([1,34,32]),a([0,-1,-1]),a([13,19,28]),a([1,17,32]),a([0,-1,-1])]),a(["30",81,20,3,5591,a([6,84,16]),a([1,82,16]),a([0,-1,-1]),a([6,70,30]),a([1,68,30]),a([0,-1,-1]),a([7,35,30]),a([3,33,28]),a([1,32,28]),a([13,20,30]),a([1,20,28]),a([0,-1,-1])]),a(["31",83,21,3,5903,a([5,105,20]),a([1,94,18]),a([0,-1,-1]),a([6,74,32]),a([1,71,30]),a([0,-1,-1]),a([11,33,28]),a([1,34,32]),a([0,-1,-1]),a([13,19,28]),a([3,16,26]),a([0,-1,-1])]),a(["32",85,17,4,6033,a([4,127,24]),a([1,126,24]),a([0,-1,-1]),a([7,66,28]),a([1,66,30]),a([0,-1,-1]),a([12,30,24]),a([1,24,28]),a([1,24,30]),a([15,19,28]),a([1,17,32]),a([0,-1,-1])]),a(["33",87,17,4,6353,a([7,84,16]),a([1,78,16]),a([0,-1,-1]),a([7,70,30]),a([1,66,28]),a([0,-1,-1]),a([12,33,28]),a([1,32,30]),a([0,-1,-1]),a([14,21,32]),a([1,24,28]),a([0,-1,-1])]),a(["34",89,18,4,6689,a([5,117,22]),a([1,117,24]),a([0,-1,-1]),a([8,66,28]),a([1,58,26]),a([0,-1,-1]),a([11,38,32]),a([1,34,32]),a([0,-1,-1]),a([15,20,30]),a([2,17,26]),a([0,-1,-1])]),a(["35",91,18,4,7025,a([4,148,28]),a([1,146,28]),a([0,-1,-1]),a([8,68,30]),a([1,70,24]),a([0,-1,-1]),a([10,36,32]),a([3,38,28]),a([0,-1,-1]),a([16,19,28]),a([3,16,26]),a([0,-1,-1])]),a(["36",93,19,4,7377,a([4,126,24]),a([2,135,26]),a([0,-1,-1]),a([8,70,28]),a([2,43,26]),a([0,-1,-1]),a([13,32,28]),a([2,41,30]),a([0,-1,-1]),a([17,19,28]),a([3,15,26]),a([0,-1,-1])]),a(["37",95,19,4,7729,a([5,136,26]),a([1,132,24]),a([0,-1,-1]),a([5,67,30]),a([4,68,28]),a([1,69,28]),a([14,35,30]),a([1,32,24]),a([0,-1,-1]),a([18,18,26]),a([3,16,28]),a([1,14,28])]),a(["38",97,19,4,8089,a([3,142,26]),a([3,141,28]),a([0,-1,-1]),a([8,70,30]),a([1,73,32]),a([1,74,32]),a([12,34,30]),a([3,34,26]),a([1,35,28]),a([18,21,32]),a([1,27,30]),a([0,-1,-1])]),a(["39",99,20,4,8465,a([5,116,22]),a([2,103,20]),a([1,102,20]),a([9,74,32]),a([1,74,30]),a([0,-1,-1]),a([14,34,28]),a([2,32,32]),a([1,32,30]),a([19,21,32]),a([1,25,26]),a([0,-1,-1])]),a(["40",101,20,4,8841,a([7,116,22]),a([1,117,22]),a([0,-1,-1]),a([11,65,28]),a([1,58,24]),a([0,-1,-1]),a([15,38,32]),a([1,27,28]),a([0,-1,-1]),a([20,20,30]),a([1,20,32]),a([1,21,32])]),a(["41",103,17,5,9009,a([6,136,26]),a([1,130,24]),a([0,-1,-1]),a([11,66,28]),a([1,62,30]),a([0,-1,-1]),a([14,34,28]),a([3,34,32]),a([1,30,30]),a([18,20,30]),a([3,20,28]),a([2,15,26])]),a(["42",105,17,5,9401,a([5,105,20]),a([2,115,22]),a([2,116,22]),a([10,75,32]),a([1,73,32]),a([0,-1,-1]),a([16,38,32]),a([1,27,28]),a([0,-1,-1]),a([22,19,28]),a([2,16,30]),a([1,19,30])]),a(["43",107,18,5,9799,a([6,147,28]),a([1,146,28]),a([0,-1,-1]),a([11,66,28]),a([2,65,30]),a([0,-1,-1]),a([18,33,28]),a([2,33,30]),a([0,-1,-1]),a([22,21,32]),a([1,28,30]),a([0,-1,-1])]),a(["44",109,18,5,10207,a([6,116,22]),a([3,125,24]),a([0,-1,-1]),a([11,75,32]),a([1,68,30]),a([0,-1,-1]),a([13,35,28]),a([6,34,32]),a([1,30,30]),a([23,21,32]),a([1,26,30]),a([0,-1,-1])]),a(["45",111,18,5,10623,a([7,105,20]),a([4,95,18]),a([0,-1,-1]),a([12,67,28]),a([1,63,30]),a([1,62,32]),a([21,31,26]),a([2,33,32]),a([0,-1,-1]),a([23,21,32]),a([2,24,30]),a([0,-1,-1])]),a(["46",113,19,5,11045,a([10,116,22]),a([0,-1,-1]),a([0,-1,-1]),a([12,74,32]),a([1,78,30]),a([0,-1,-1]),a([18,37,32]),a([1,39,30]),a([1,41,28]),a([25,21,32]),a([1,27,28]),a([0,-1,-1])]),a(["47",115,19,5,11477,a([5,126,24]),a([4,115,22]),a([1,114,22]),a([12,67,28]),a([2,66,32]),a([1,68,30]),a([21,35,30]),a([1,39,30]),a([0,-1,-1]),a([26,21,32]),a([1,28,28]),a([0,-1,-1])]),a(["48",117,19,5,11917,a([9,126,24]),a([1,117,22]),a([0,-1,-1]),a([13,75,32]),a([1,68,30]),a([0,-1,-1]),a([20,35,30]),a([3,35,28]),a([0,-1,-1]),a([27,21,32]),a([1,28,30]),a([0,-1,-1])]),a(["49",119,17,6,12111,a([9,126,24]),a([1,137,26]),a([0,-1,-1]),a([13,71,30]),a([2,68,32]),a([0,-1,-1]),a([20,37,32]),a([1,39,28]),a([1,38,28]),a([24,20,32]),a([5,25,28]),a([0,-1,-1])]),a(["50",121,17,6,12559,a([8,147,28]),a([1,141,28]),a([0,-1,-1]),a([10,73,32]),a([4,74,30]),a([1,73,30]),a([16,36,32]),a([6,39,30]),a([1,37,30]),a([27,21,32]),a([3,20,26]),a([0,-1,-1])]),a(["51",123,18,6,13025,a([9,137,26]),a([1,135,26]),a([0,-1,-1]),a([12,70,30]),a([4,75,32]),a([0,-1,-1]),a([24,35,30]),a([1,40,28]),a([0,-1,-1]),a([23,20,32]),a([8,24,30]),a([0,-1,-1])]),a(["52",125,18,6,13489,a([14,95,18]),a([1,86,18]),a([0,-1,-1]),a([13,73,32]),a([3,77,30]),a([0,-1,-1]),a([24,35,30]),a([2,35,28]),a([0,-1,-1]),a([26,21,32]),a([5,21,30]),a([1,23,30])]),a(["53",127,18,6,13961,a([9,147,28]),a([1,142,28]),a([0,-1,-1]),a([10,73,30]),a([6,70,32]),a([1,71,32]),a([25,35,30]),a([2,34,26]),a([0,-1,-1]),a([29,21,32]),a([4,22,30]),a([0,-1,-1])]),a(["54",129,18,6,14441,a([11,126,24]),a([1,131,24]),a([0,-1,-1]),a([16,74,32]),a([1,79,30]),a([0,-1,-1]),a([25,38,32]),a([1,25,30]),a([0,-1,-1]),a([33,21,32]),a([1,28,28]),a([0,-1,-1])]),a(["55",131,19,6,14939,a([14,105,20]),a([1,99,18]),a([0,-1,-1]),a([19,65,28]),a([1,72,28]),a([0,-1,-1]),a([24,37,32]),a([2,40,30]),a([1,41,30]),a([31,21,32]),a([4,24,32]),a([0,-1,-1])]),a(["56",133,19,6,15435,a([10,147,28]),a([1,151,28]),a([0,-1,-1]),a([15,71,30]),a([3,71,32]),a([1,73,32]),a([24,37,32]),a([3,38,30]),a([1,39,30]),a([36,19,30]),a([3,29,26]),a([0,-1,-1])]),a(["57",135,19,6,15939,a([15,105,20]),a([1,99,18]),a([0,-1,-1]),a([19,70,30]),a([1,64,28]),a([0,-1,-1]),a([27,38,32]),a([2,25,26]),a([0,-1,-1]),a([38,20,30]),a([2,18,28]),a([0,-1,-1])]),a(["58",137,17,7,16171,a([14,105,20]),a([1,113,22]),a([1,114,22]),a([17,67,30]),a([3,92,32]),a([0,-1,-1]),a([30,35,30]),a([1,41,30]),a([0,-1,-1]),a([36,21,32]),a([1,26,30]),a([1,27,30])]),a(["59",139,17,7,16691,a([11,146,28]),a([1,146,26]),a([0,-1,-1]),a([20,70,30]),a([1,60,26]),a([0,-1,-1]),a([29,38,32]),a([1,24,32]),a([0,-1,-1]),a([40,20,30]),a([2,17,26]),a([0,-1,-1])]),a(["60",141,18,7,17215,a([3,137,26]),a([1,136,26]),a([10,126,24]),a([22,65,28]),a([1,75,30]),a([0,-1,-1]),a([30,37,32]),a([1,51,30]),a([0,-1,-1]),a([42,20,30]),a([1,21,30]),a([0,-1,-1])]),a(["61",143,18,7,17751,a([12,126,24]),a([2,118,22]),a([1,116,22]),a([19,74,32]),a([1,74,30]),a([1,72,28]),a([30,38,32]),a([2,29,30]),a([0,-1,-1]),a([39,20,32]),a([2,37,26]),a([1,38,26])]),a(["62",145,18,7,18295,a([12,126,24]),a([3,136,26]),a([0,-1,-1]),a([21,70,30]),a([2,65,28]),a([0,-1,-1]),a([34,35,30]),a([1,44,32]),a([0,-1,-1]),a([42,20,30]),a([2,19,28]),a([2,18,28])]),a(["63",147,18,7,18847,a([12,126,24]),a([3,117,22]),a([1,116,22]),a([25,61,26]),a([2,62,28]),a([0,-1,-1]),a([34,35,30]),a([1,40,32]),a([1,41,32]),a([45,20,30]),a([1,20,32]),a([1,21,32])]),a(["64",149,19,7,19403,a([15,105,20]),a([2,115,22]),a([2,116,22]),a([25,65,28]),a([1,72,28]),a([0,-1,-1]),a([18,35,30]),a([17,37,32]),a([1,50,32]),a([42,20,30]),a([6,19,28]),a([1,15,28])]),a(["65",151,19,7,19971,a([19,105,20]),a([1,101,20]),a([0,-1,-1]),a([33,51,22]),a([1,65,22]),a([0,-1,-1]),a([40,33,28]),a([1,28,28]),a([0,-1,-1]),a([49,20,30]),a([1,18,28]),a([0,-1,-1])]),a(["66",153,17,8,20229,a([18,105,20]),a([2,117,22]),a([0,-1,-1]),a([26,65,28]),a([1,80,30]),a([0,-1,-1]),a([35,35,30]),a([3,35,28]),a([1,36,28]),a([52,18,28]),a([2,38,30]),a([0,-1,-1])]),a(["67",155,17,8,20805,a([26,84,16]),a([0,-1,-1]),a([0,-1,-1]),a([26,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([45,31,26]),a([1,9,26]),a([0,-1,-1]),a([52,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["68",157,17,8,21389,a([16,126,24]),a([1,114,22]),a([1,115,22]),a([23,70,30]),a([3,65,28]),a([1,66,28]),a([40,35,30]),a([1,43,30]),a([0,-1,-1]),a([46,20,30]),a([7,19,28]),a([1,16,28])]),a(["69",159,18,8,21993,a([19,116,22]),a([1,105,22]),a([0,-1,-1]),a([20,70,30]),a([7,66,28]),a([1,63,28]),a([40,35,30]),a([1,42,32]),a([1,43,32]),a([54,20,30]),a([1,19,30]),a([0,-1,-1])]),a(["70",161,18,8,22593,a([17,126,24]),a([2,115,22]),a([0,-1,-1]),a([24,70,30]),a([4,74,32]),a([0,-1,-1]),a([48,31,26]),a([2,18,26]),a([0,-1,-1]),a([54,19,28]),a([6,15,26]),a([1,14,26])]),a(["71",163,18,8,23201,a([29,84,16]),a([0,-1,-1]),a([0,-1,-1]),a([29,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([6,34,30]),a([3,36,30]),a([38,33,28]),a([58,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["72",165,18,8,23817,a([16,147,28]),a([1,149,28]),a([0,-1,-1]),a([31,66,28]),a([1,37,26]),a([0,-1,-1]),a([48,33,28]),a([1,23,26]),a([0,-1,-1]),a([53,20,30]),a([6,19,28]),a([1,17,28])]),a(["73",167,19,8,24453,a([20,115,22]),a([2,134,24]),a([0,-1,-1]),a([29,66,28]),a([2,56,26]),a([2,57,26]),a([45,36,30]),a([2,15,28]),a([0,-1,-1]),a([59,20,30]),a([2,21,32]),a([0,-1,-1])]),a(["74",169,19,8,25085,a([17,147,28]),a([1,134,26]),a([0,-1,-1]),a([26,70,30]),a([5,75,32]),a([0,-1,-1]),a([47,35,30]),a([1,48,32]),a([0,-1,-1]),a([64,18,28]),a([2,33,30]),a([1,35,30])]),a(["75",171,17,9,25373,a([22,115,22]),a([1,133,24]),a([0,-1,-1]),a([33,65,28]),a([1,74,28]),a([0,-1,-1]),a([43,36,30]),a([5,27,28]),a([1,30,28]),a([57,20,30]),a([5,21,32]),a([1,24,32])]),a(["76",173,17,9,26021,a([18,136,26]),a([2,142,26]),a([0,-1,-1]),a([33,66,28]),a([2,49,26]),a([0,-1,-1]),a([48,35,30]),a([2,38,28]),a([0,-1,-1]),a([64,20,30]),a([1,20,32]),a([0,-1,-1])]),a(["77",175,17,9,26677,a([19,126,24]),a([2,135,26]),a([1,136,26]),a([32,66,28]),a([2,55,26]),a([2,56,26]),a([49,36,30]),a([2,18,32]),a([0,-1,-1]),a([65,18,28]),a([5,27,30]),a([1,29,30])]),a(["78",177,18,9,27335,a([20,137,26]),a([1,130,26]),a([0,-1,-1]),a([30,75,32]),a([2,71,32]),a([0,-1,-1]),a([46,35,30]),a([6,39,32]),a([0,-1,-1]),a([3,12,30]),a([70,19,28]),a([0,-1,-1])]),a(["79",179,18,9,28007,a([20,147,28]),a([0,-1,-1]),a([0,-1,-1]),a([35,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([49,35,30]),a([5,35,28]),a([0,-1,-1]),a([70,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["80",181,18,9,28687,a([21,136,26]),a([1,155,28]),a([0,-1,-1]),a([34,70,30]),a([1,64,28]),a([1,65,28]),a([54,35,30]),a([1,45,30]),a([0,-1,-1]),a([68,20,30]),a([3,18,28]),a([1,19,28])]),a(["81",183,18,9,29375,a([19,126,24]),a([5,115,22]),a([1,114,22]),a([33,70,30]),a([3,65,28]),a([1,64,28]),a([52,35,30]),a([3,41,32]),a([1,40,32]),a([67,20,30]),a([5,21,32]),a([1,24,32])]),a(["82",185,18,9,30071,a([2,150,28]),a([21,136,26]),a([0,-1,-1]),a([32,70,30]),a([6,65,28]),a([0,-1,-1]),a([52,38,32]),a([2,27,32]),a([0,-1,-1]),a([73,20,30]),a([2,22,32]),a([0,-1,-1])]),a(["83",187,17,10,30387,a([21,126,24]),a([4,136,26]),a([0,-1,-1]),a([30,74,32]),a([6,73,30]),a([0,-1,-1]),a([54,35,30]),a([4,40,32]),a([0,-1,-1]),a([75,20,30]),a([1,20,28]),a([0,-1,-1])]),a(["84",189,17,10,31091,a([30,105,20]),a([1,114,22]),a([0,-1,-1]),a([3,45,22]),a([55,47,20]),a([0,-1,-1]),a([2,26,26]),a([62,33,28]),a([0,-1,-1]),a([79,18,28]),a([4,33,30]),a([0,-1,-1])])]);for(var E in e)e.hasOwnProperty(E)&&(Yu.$ctx[E]=e[E]);Yu.__24704__=1,e=Object.getPrototypeOf(e)}e.eclval=u(e.eclevel,1)-49;for(var j=e.metrics,B=0,F=j.length;Be.dmod&&(e.okay=!1),e.okay)break}e.okay||(r[t++]="bwipp.hanxinNoValidSymbol#24728",r[t++]="Maximum length exceeded or invalid content",ne()),e.version=e.vers,e.msgbits=e.bits,e.e1nb=u(u(e.ecbs,0),0),e.e2nb=u(u(e.ecbs,1),0),e.e3nb=u(u(e.ecbs,2),0),e.e1dcws=u(u(e.ecbs,0),1),e.e2dcws=u(u(e.ecbs,1),1),e.e3dcws=u(u(e.ecbs,2),1),e.e1ecws=u(u(e.ecbs,0),2),e.e2ecws=u(u(e.ecbs,1),2),e.e3ecws=u(u(e.ecbs,2),2),e.pad=pe(e.dmod);for(var $=0,z=e.pad.length-1;$<=z;$+=1)y(e.pad,$,48);K(e.pad,0,e.msgbits),e.cws=a(e.dcws);for(var Q=0,G=e.cws.length-1;Q<=G;Q+=1){e.c=Q,e.cwb=T(e.pad,e.c*8,8),e.cw=0;for(var D=0;D<=7;D+=1)e.i=D,e.cw=h(e.cw+~~Math.pow(2,8-e.i-1)*h(u(e.cwb,e.i)-48));y(e.cws,e.c,e.cw)}e.rscodes=function(){e.rspm=r[--t],e.rsgf=r[--t],e.rsnc=r[--t],e.rscws=r[--t],r[t++]=1/0,r[t++]=1;for(var zt=0,ar=h(e.rsgf-1);zt=e.rsgf){var Yr=r[--t];r[t++]=Zo(Yr,e.rspm)}}e.rsalog=a(),e.rslog=a(e.rsgf);for(var Xt=1,en=h(e.rsgf-1);Xt<=en;Xt+=1)y(e.rslog,u(e.rsalog,Xt),Xt);e.rsprod=function(){var Ei=r[--t],mo=r[--t];if(r[t++]=mo,r[t++]=Ei,Ei!=0&&mo!=0){var pi=u(e.rslog,r[--t]),Mo=u(e.rsalog,h(pi+u(e.rslog,r[--t]))%h(e.rsgf-1));r[t++]=Mo}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var kr=0,Kr=e.rsnc;kr=1;er-=1){e.j=er,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var jn=r[--t],qr=r[--t],ho=r[--t];y(r[--t],ho,Zo(qr,jn))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var Rr=r[--t],_n=r[--t];y(r[--t],_n,Rr)}e.nd=e.rscws.length,r[t++]=1/0,je(e.rscws);for(var Nr=0,Eo=e.rsnc;Nr12){var at=Ge;Ge=Ve,Ve=at}for(var We=0,ue=Ve;We<=ue;We+=1)for(var Le=We,$e=e.ncws-1;Le<=$e;Le+=13)if(r[t++]=Le,Le0&&(e.pad=a(e.cws.length+1),K(e.pad,0,e.cws),y(e.pad,e.pad.length-1,0),e.cws=e.pad),r[t++]=1/0;for(var ot=0,st=e.size*e.size;ot=e.size);){for(var Ze=0,dt=h(e.size-1);Ze<=dt;Ze+=1)if(e.j=Ze,h(e.j+e.alnr)=Te:mt<=Te;mt+=pt){if(e.i=mt,~~(e.i/e.alnk)%2!=0){r[t++]=e.pixs,r[t++]=0,r[t++]=e.i-1,e.trmv();var Re=r[--t];y(r[--t],Re,0),r[t++]=e.pixs,r[t++]=0,r[t++]=e.i+1,e.trmv();var Je=r[--t];y(r[--t],Je,0),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i-1,e.trmv();var It=r[--t];y(r[--t],It,0),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i,e.trmv();var Nt=r[--t];y(r[--t],Nt,0),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i+1,e.trmv();var ht=r[--t];y(r[--t],ht,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=0,e.trmv();var xt=r[--t];y(r[--t],xt,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=0,e.trmv();var tt=r[--t];y(r[--t],tt,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=1,e.trmv();var Y=r[--t];y(r[--t],Y,0),r[t++]=e.pixs,r[t++]=e.i,r[t++]=1,e.trmv();var re=r[--t];y(r[--t],re,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=1,e.trmv();var ie=r[--t];y(r[--t],ie,0)}r[t++]=e.pixs,r[t++]=h(e.size-1),r[t++]=e.i-1,e.trmv();var le=r[--t];if(u(r[--t],le)!=1){r[t++]=e.pixs,r[t++]=h(e.size-1),r[t++]=e.i-1,e.trmv();var ge=r[--t];y(r[--t],ge,0),r[t++]=e.pixs,r[t++]=h(e.size-2),r[t++]=e.i-1,e.trmv();var Me=r[--t];y(r[--t],Me,0),r[t++]=e.pixs,r[t++]=h(e.size-2),r[t++]=e.i,e.trmv();var me=r[--t];y(r[--t],me,0),r[t++]=e.pixs,r[t++]=h(e.size-2),r[t++]=e.i+1,e.trmv();var Ee=r[--t];y(r[--t],Ee,0),r[t++]=e.pixs,r[t++]=h(e.size-1),r[t++]=e.i+1,e.trmv();var ce=r[--t];y(r[--t],ce,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=h(e.size-1),e.trmv();var Pe=r[--t];y(r[--t],Pe,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=h(e.size-2),e.trmv();var He=r[--t];y(r[--t],He,0),r[t++]=e.pixs,r[t++]=e.i,r[t++]=h(e.size-2),e.trmv();var Ne=r[--t];y(r[--t],Ne,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=h(e.size-2),e.trmv();var ye=r[--t];y(r[--t],ye,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=h(e.size-1),e.trmv();var rt=r[--t];y(r[--t],rt,0)}}}if(!Yu.__24936__){e=Object.create(e),e.fpat=a([a([1,1,1,1,1,1,1,0]),a([1,0,0,0,0,0,0,0]),a([1,0,1,1,1,1,1,0]),a([1,0,1,0,0,0,0,0]),a([1,0,1,0,1,1,1,0]),a([1,0,1,0,1,1,1,0]),a([1,0,1,0,1,1,1,0]),a([0,0,0,0,0,0,0,0])]),e.fpat2=a([a([1,1,1,0,1,0,1,0]),a([1,1,1,0,1,0,1,0]),a([1,1,1,0,1,0,1,0]),a([0,0,0,0,1,0,1,0]),a([1,1,1,1,1,0,1,0]),a([0,0,0,0,0,0,1,0]),a([1,1,1,1,1,1,1,0]),a([0,0,0,0,0,0,0,0])]);for(var E in e)e.hasOwnProperty(E)&&(Yu.$ctx[E]=e[E]);Yu.__24936__=1,e=Object.getPrototypeOf(e)}for(var Be=0,Ae=e.fpat.length-1;Be<=Ae;Be+=1){e.y=Be;for(var Ue=0,qe=u(e.fpat,0).length-1;Ue<=qe;Ue+=1){e.x=Ue,e.fpb=u(u(e.fpat,e.y),e.x),e.fpb2=u(u(e.fpat2,e.y),e.x),r[t++]=e.pixs,r[t++]=e.x,r[t++]=e.y,e.qmv();var Fe=r[--t];y(r[--t],Fe,e.fpb),r[t++]=e.pixs,r[t++]=h(h(e.size-e.x)-1),r[t++]=e.y,e.qmv();var lt=r[--t];y(r[--t],lt,e.fpb),r[t++]=e.pixs,r[t++]=h(h(e.size-e.x)-1),r[t++]=h(h(e.size-e.y)-1),e.qmv();var gt=r[--t];y(r[--t],gt,e.fpb),r[t++]=e.pixs,r[t++]=e.x,r[t++]=h(h(e.size-e.y)-1),e.qmv();var At=r[--t];y(r[--t],At,e.fpb2)}}e.functionmap=a([a([a([0,8]),a([h(e.size-1),h(e.size-9)])]),a([a([1,8]),a([h(e.size-2),h(e.size-9)])]),a([a([2,8]),a([h(e.size-3),h(e.size-9)])]),a([a([3,8]),a([h(e.size-4),h(e.size-9)])]),a([a([4,8]),a([h(e.size-5),h(e.size-9)])]),a([a([5,8]),a([h(e.size-6),h(e.size-9)])]),a([a([6,8]),a([h(e.size-7),h(e.size-9)])]),a([a([7,8]),a([h(e.size-8),h(e.size-9)])]),a([a([8,8]),a([h(e.size-9),h(e.size-9)])]),a([a([8,7]),a([h(e.size-9),h(e.size-8)])]),a([a([8,6]),a([h(e.size-9),h(e.size-7)])]),a([a([8,5]),a([h(e.size-9),h(e.size-6)])]),a([a([8,4]),a([h(e.size-9),h(e.size-5)])]),a([a([8,3]),a([h(e.size-9),h(e.size-4)])]),a([a([8,2]),a([h(e.size-9),h(e.size-3)])]),a([a([8,1]),a([h(e.size-9),h(e.size-2)])]),a([a([8,0]),a([h(e.size-9),h(e.size-1)])]),a([a([h(e.size-9),0]),a([8,h(e.size-1)])]),a([a([h(e.size-9),1]),a([8,h(e.size-2)])]),a([a([h(e.size-9),2]),a([8,h(e.size-3)])]),a([a([h(e.size-9),3]),a([8,h(e.size-4)])]),a([a([h(e.size-9),4]),a([8,h(e.size-5)])]),a([a([h(e.size-9),5]),a([8,h(e.size-6)])]),a([a([h(e.size-9),6]),a([8,h(e.size-7)])]),a([a([h(e.size-9),7]),a([8,h(e.size-8)])]),a([a([h(e.size-9),8]),a([8,h(e.size-9)])]),a([a([h(e.size-8),8]),a([7,h(e.size-9)])]),a([a([h(e.size-7),8]),a([6,h(e.size-9)])]),a([a([h(e.size-6),8]),a([5,h(e.size-9)])]),a([a([h(e.size-5),8]),a([4,h(e.size-9)])]),a([a([h(e.size-4),8]),a([3,h(e.size-9)])]),a([a([h(e.size-3),8]),a([2,h(e.size-9)])]),a([a([h(e.size-2),8]),a([1,h(e.size-9)])]),a([a([h(e.size-1),8]),a([0,h(e.size-9)])])]);for(var St=e.functionmap,yt=0,Ct=St.length;yt>>-Pr:Er<=3){var No=r[--t],wn=h(r[--t]+No*4);r[t++]=wn,r[t++]=wn}t--});var zt=r[--t];e[r[--t]]=zt,e.scr3=0;for(var ar=5,hr=e.scrle.length-1;ar<=hr;ar+=2)if(e.j=ar,u(e.scrle,e.j)%3==0){e.fact=~~(u(e.scrle,e.j)/3);for(var Ar=T(e.scrle,e.j-4,4),Yr=0,Xt=Ar.length;Yr=e.scrle.length||u(e.scrle,e.j-5)>=3||u(e.scrle,e.j+1)>=3)&&(e.scr3=e.scr3+50)}for(var dn=1,er=e.scrle.length-5;dn<=er;dn+=2)if(e.j=dn,u(e.scrle,e.j)%3==0){e.fact=~~(u(e.scrle,e.j)/3);for(var jn=T(e.scrle,e.j+1,4),qr=0,ho=jn.length;qr=e.scrle.length||u(e.scrle,e.j-1)>=3||u(e.scrle,e.j+5)>=3)&&(e.scr3=e.scr3+50)}r[t++]=e.scr1,r[t++]=e.scr3},e.evalfull=function(){e.sym=r[--t],e.n1=0,e.n3=0,e.rle=a(h(e.size+1)),e.lastpairs=a(e.size),e.thispairs=a(e.size),e.sizeadd1=h(e.size+1);for(var zt=0,ar=h(e.size-1);zt<=ar;zt+=1){e.i=zt,r[t++]=1/0;var hr=e.size;r[t++]=0,r[t++]=0;for(var Ar=e.i,Yr=hr,Xt=h(hr*hr-1);Yr<0?Ar>=Xt:Ar<=Xt;Ar+=Yr){var en=u(e.sym,Ar),kr=r[--t];if(r[t++]=en,ae(kr,en)){var Kr=r[--t],pr=r[--t];r[t++]=h(pr+1),r[t++]=Kr}else{var dn=r[--t];r[t++]=1,r[t++]=dn}}t--;var er=fo()+2;wr(T(e.rle,0,er-2)),e.evalfulln1n3(),e.n3=h(r[--t]+e.n3),e.n1=h(r[--t]+e.n1),t--,e.symrow=T(e.sym,e.i*e.size,e.size),r[t++]=1/0;var jn=e.symrow;r[t++]=0,r[t++]=0;for(var qr=0,ho=jn.length;qr>>8,(e.funval&240)>>>4,e.funval&15]),r[t++]=4,r[t++]=16,r[t++]=19,e.rscodes(),e.funvals=r[--t],r[t++]=1/0,je(e.funvals,function(){r[t++]=4,e.tobin(),je(r[--t],function(){var zt=r[--t];r[t++]=h(zt-48)})}),r[t++]=0,r[t++]=1,r[t++]=0,r[t++]=1,r[t++]=0,r[t++]=1,e.funbits=a();for(var Br=0,vn=e.functionmap.length-1;Br<=vn;Br+=1)e.i=Br,je(u(e.functionmap,e.i),function(){var zt=r[--t];r[t++]=e.pixs,oe(zt),e.qmv();var ar=r[--t];y(r[--t],ar,u(e.funbits,e.i))});var bn=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.size],["pixy",e.size],["height",e.size*2/72],["width",e.size*2/72],["borderleft",3],["borderright",3],["bordertop",3],["borderbottom",3],["opt",e.options]]);r[t++]=bn,e.dontdraw||Qt(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function Us(){if(e=Object.create(e),e.dontdraw=!1,e.rows=-1,e.columns=-1,e.ratio=-1,e.parse=!1,e.parsefnc=!1,e.raw=!1,e.fast=!1,e.mask=-1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.rows!=-1&&e.rows<5&&(r[t++]="bwipp.dotcodeBadRows#25205",r[t++]="There must be at least 5 rows",ne()),e.columns!=-1&&e.columns<5&&(r[t++]="bwipp.dotcodeBadColumns#25211",r[t++]="There must be at least 5 columns",ne()),e.rows!=-1&&e.columns!=-1&&(e.rows+e.columns)%2!=1&&(r[t++]="bwipp.dotcodeRowsColumnsBadParity#25216",r[t++]="Sum of rows and columns must be odd",ne()),e.ratio==-1&&e.rows==-1&&e.columns==-1&&(e.ratio=3/2),e.ratio!=-1&&e.ratio<=0&&(r[t++]="bwipp.dotcodeRatio#25225",r[t++]="The ratio must be greater than 0",ne()),e.mask!=-1&&(e.mask<0||e.mask>3)&&(r[t++]="bwipp.dotcodeBadMask#25231",r[t++]="Valid mask values are 0 to 3",ne()),xr(Us),!Us.__25248__){e=Object.create(e),e.laa=-1,e.lab=-2,e.lac=-3,e.bin=-4,e.sfa=-5,e.sfb=-6,e.sb2=-7,e.sb3=-8,e.sb4=-9,e.sb5=-10,e.sb6=-11,e.sfc=-12,e.sc2=-13,e.sc3=-14,e.sc4=-15,e.sc5=-16,e.sc6=-17,e.sc7=-18,e.bsa=-19,e.bsb=-20,e.tma=-21,e.tmb=-22,e.tmc=-23,e.tms=-24,e.fn1=-25,e.fn2=-26,e.fn3=-27,e.crl=-28,e.aim=-29,e.m05=-30,e.m06=-31,e.m12=-32,e.mac=-33;for(var n in e)e.hasOwnProperty(n)&&(Us.$ctx[n]=e[n]);Us.__25248__=1,e=Object.getPrototypeOf(e)}var o=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1],["FNC3",e.fn3]]);e.fncvals=o,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var i=r[--t];e[r[--t]]=i,e.msglen=e.msg.length;var s=e.msg;r[t++]="numecis",r[t++]=0;for(var l=0,c=s.length;l",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.sfb,e.crl,"96"]),a([e.sb2,9,"97"]),a([e.sb3,28,"98"]),a([e.sb4,29,"99"]),a([e.sb5,30,e.aim]),a([e.sb6,e.sfa,e.laa]),a([e.lab,e.laa,e.sfb]),a([e.sc2,e.sc2,e.sb2]),a([e.sc3,e.sc3,e.sb3]),a([e.sc4,e.sc4,e.sb4]),a([e.lac,e.lac,e.lab]),a([e.fn1,e.fn1,e.fn1]),a([e.fn2,e.fn2,e.fn2]),a([e.fn3,e.fn3,e.fn3]),a([e.bsa,e.bsa,e.bsa]),a([e.bsb,e.bsb,e.bsb]),a([e.bin,e.bin,e.bin])]),e.charvals=a([new Map,new Map,new Map]);for(var k=0,C=e.charmaps.length-1;k<=C;k+=1){e.i=k,e.encs=u(e.charmaps,e.i);for(var M=0;M<=2;M+=1){e.j=M;var S=u(e.encs,e.j);if(r[t++]=S,ae(La(S),"stringtype")){var I=u(r[--t],0);r[t++]=I}y(u(e.charvals,e.j),r[--t],e.i)}}e.Avals=u(e.charvals,0),e.Bvals=u(e.charvals,1),y(e.Bvals,e.m05,97),y(e.Bvals,e.m06,98),y(e.Bvals,e.m12,99),y(e.Bvals,e.mac,100),e.Cvals=u(e.charvals,2),r[t++]=1/0;var E=a([e.sc2,e.sc3,e.sc4,e.sc5,e.sc6,e.sc7,e.tma,e.tmb,e.tmc,e.tms]);r[t++]=102;for(var j=0,B=E.length;j=0;ze-=1){e.i=ze,e.barchar=u(e.msg,e.i),e.barchar>=48&&e.barchar<=57&&y(e.nDigits,e.i,h(u(e.nDigits,e.i+1)+1));var Ge=u(e.Avals,e.barchar)!==void 0;Ge&&y(e.DatumA,e.i,!0);var Ve=u(e.Bvals,e.barchar)!==void 0;if(Ve&&y(e.DatumB,e.i,!0),e.CRLF=!1,e.barchar==13&&e.i=2&&y(e.DatumC,e.i,!0),e.barchar<0&&y(e.DatumC,e.i,!0),e.barchar>=128&&y(e.Binary,e.i,!0),u(e.nDigits,e.i)>=10){r[t++]=1/0,oe(T(e.msg,e.i,10));for(var at=0,We=1;at=6&&u(e.msg,e.i)==e.fn2&&y(e.ECI,e.i,!0),e.barchar<0&&e.barchar!=e.fn3?y(e.AheadC,e.i,h(u(e.AheadC,e.i+1)+1)):u(e.nDigits,e.i)<=1?y(e.AheadC,e.i,0):y(e.AheadC,e.i,h(u(e.AheadC,e.i+2)+1)),u(e.nDigits,e.i)>0&&jc(u(e.AheadC,e.i),u(e.AheadC,e.i+1))&&y(e.TryC,e.i,u(e.AheadC,e.i)),u(e.DatumA,e.i)&&u(e.TryC,e.i)<2&&e.barchar!=e.fn3&&y(e.AheadA,e.i,h(u(e.AheadA,e.i+1)+1)),u(e.DatumB,e.i)&&u(e.TryC,e.i)<2&&e.barchar!=e.fn3){if(r[t++]=e.AheadB,r[t++]=e.i,r[t++]=e.AheadB,r[t++]=e.i+1,e.CRLF){var ue=r[--t];r[t++]=h(ue+1)}var Le=r[--t],$e=u(r[--t],Le),bt=r[--t];y(r[--t],bt,h($e+1))}e.barchar!=e.fn3&&y(e.UntilEndSeg,e.i,h(u(e.UntilEndSeg,e.i+1)+1))}for(e.addtocws=function(){var Pe=r[--t];K(e.cws,e.j,Pe),e.j=Pe.length+e.j},e.base259to103=function(){e.in=r[--t],e.inlen=e.in.length,r[t++]=1/0;for(var Pe=0,He=5-e.inlen;Pe=40){var Be=h(r[--t]-40),Ae=Be%12769;r[t++]=~~(Be/12769)+40,r[t++]=~~(Ae/113),r[t++]=Ae%113}},e.ECIbin=function(){r[t++]=1/0;var Pe=T(e.msg,e.i+1,6);r[t++]=0;for(var He=0,Ne=Pe.length;He=65536){var Be=r[--t],Ae=Be%65536;r[t++]=258,r[t++]=~~(Be/65536),r[t++]=~~(Ae/256),r[t++]=Ae%256}else{var Ue=r[--t];if(r[t++]=Ue,Ue>=256){var qe=r[--t];r[t++]=257,r[t++]=~~(qe/256),r[t++]=qe%256}else{var Fe=r[--t];r[t++]=256,r[t++]=Fe}}for(var lt=a(),gt=0,At=lt.length;gth(e.segend-7)){r[t++]=0;break}if(u(e.msg,e.segstart)!=91){r[t++]=0;break}if(u(e.msg,e.segstart+1)!=41){r[t++]=0;break}if(u(e.msg,e.segstart+2)!=62){r[t++]=0;break}if(u(e.msg,e.segstart+3)!=30){r[t++]=0;break}var rt=u(e.msg,e.segstart+4);if(rt<48||rt>57){r[t++]=0;break}var Be=u(e.msg,e.segstart+5);if(Be<48||Be>57){r[t++]=0;break}if(u(e.msg,h(e.segend-1))!=4){r[t++]=0;break}var Ae=h(h(u(e.msg,e.segstart+4)-48)*10+h(u(e.msg,e.segstart+5)-48));if(r[t++]=Ae,Ae!=5&&Ae!=6&&Ae!=12){t--,r[t++]=e.mac;break}if(u(e.msg,e.segstart+6)!=29){t--,r[t++]=0;break}if(u(e.msg,h(e.segend-2))!=30){t--,r[t++]=0;break}var Ue=r[--t];if(r[t++]=Ue,Ue==5){t--,r[t++]=e.m05;break}if(r[--t]==6){r[t++]=e.m06;break}r[t++]=e.m12;break}if(e.inmac=r[--t],e.inmac!=0){r[t++]=a([u(e.Cvals,e.lab)]),e.addtocws(),e.mode=e.B,r[t++]=a([u(e.Bvals,e.inmac)]),e.addtocws(),e.inmac==e.mac?(r[t++]=a([u(e.Bvals,u(e.msg,e.segstart+4))]),e.addtocws(),r[t++]=a([u(e.Bvals,u(e.msg,e.segstart+5))]),e.addtocws(),e.i=e.i+6):e.i=e.i+7;break}}if(e.i==e.segstart&&(u(e.nDigits,e.i)>=2&&(r[t++]=a([u(e.Cvals,e.fn1)]),e.addtocws()),u(e.msg,e.i)==e.fn1&&u(e.nDigits,e.i+1)>=2&&(e.i=e.i+1)),u(e.SeventeenTen,e.i)){r[t++]=a([u(e.Cvals,e.aim),h(h(u(e.msg,e.i+2)-48)*10+h(u(e.msg,e.i+3)-48)),h(h(u(e.msg,e.i+4)-48)*10+h(u(e.msg,e.i+5)-48)),h(h(u(e.msg,e.i+6)-48)*10+h(u(e.msg,e.i+7)-48))]),e.addtocws(),e.i=e.i+10;break}if(u(e.DatumC,e.i)){var qe=u(e.msg,e.i);if(qe==e.fn1||qe==e.fn2||qe==e.fn3){if(r[t++]=a([u(e.Cvals,u(e.msg,e.i))]),e.addtocws(),u(e.ECI,e.i)){r[t++]=1/0,e.ECIabc();var Fe=a();r[t++]=Fe,e.addtocws(),e.i=e.i+7;break}if(u(e.msg,e.i)==e.fn3&&e.segstart!=e.i){e.i=e.i+1,e.inmac=0,e.segstart=e.i,e.segend=h(e.i+u(e.UntilEndSeg,e.i));break}e.i=e.i+1;break}r[t++]=a([h(h(u(e.msg,e.i)-48)*10+h(u(e.msg,e.i+1)-48))]),e.addtocws(),e.i=e.i+2;break}if(u(e.Binary,e.i)){if(u(e.nDigits,e.i+1)>0){u(e.msg,e.i)<160?(r[t++]=a([u(e.Cvals,e.bsa),u(e.Avals,h(u(e.msg,e.i)-128))]),e.addtocws()):(r[t++]=a([u(e.Cvals,e.bsb),u(e.Bvals,h(u(e.msg,e.i)-128))]),e.addtocws()),e.i=e.i+1;break}r[t++]=a([u(e.Cvals,e.bin)]),e.addtocws(),e.mode=e.BIN;break}if(e.m=u(e.AheadA,e.i),e.n=u(e.AheadB,e.i),jc(e.m,e.n)){r[t++]=a([u(e.Cvals,e.laa)]),e.addtocws(),e.mode=e.A;break}if(e.i==e.segstart){var lt=u(e.msg,e.i);if(lt==9||lt==28||lt==29||lt==30){r[t++]=a([u(e.Cvals,e.laa)]),e.addtocws(),e.mode=e.A;break}}if(e.n>4){r[t++]=a([u(e.Cvals,e.lab)]),e.addtocws(),e.mode=e.B;break}r[t++]=a([u(e.Cvals,u(a([e.sfb,e.sb2,e.sb3,e.sb4]),h(e.n-1)))]),e.addtocws();for(var gt=0,At=e.n;gt=2){if(e.n>4){r[t++]=a([u(e.Bvals,e.lac)]),e.addtocws(),e.mode=e.C;break}r[t++]=a([u(e.Bvals,u(a([e.sfc,e.sc2,e.sc3,e.sc4]),h(e.n-1)))]),e.addtocws();for(var Ne=0,ye=e.n;Ne=2){if(e.n>4){r[t++]=a([u(e.Avals,e.lac)]),e.addtocws(),e.mode=e.C;break}r[t++]=a([u(e.Avals,u(a([e.sfc,e.sc2,e.sc3,e.sc4]),h(e.n-1)))]),e.addtocws();for(var Ne=0,ye=e.n;Ne6){r[t++]=a([u(e.Avals,e.lab)]),e.addtocws(),e.mode=e.B;break}r[t++]=a([u(e.Avals,u(a([e.sfb,e.sb2,e.sb3,e.sb4,e.sb5,e.sb6]),h(e.n-1)))]),e.addtocws();for(var Ae=0,Ue=e.n;Ae=2){r[t++]=1/0,e.finaliseBIN();var Ne=a();if(r[t++]=Ne,e.addtocws(),e.n>7){r[t++]=a([u(e.BINvals,e.tmc)]),e.addtocws(),e.mode=e.C;break}r[t++]=a([u(e.BINvals,u(a([e.sc2,e.sc3,e.sc4,e.sc5,e.sc6,e.sc7]),h(e.n-2)))]),e.addtocws();for(var ye=0,rt=e.n;ye=0&&(u(e.Binary,e.i)||u(e.Binary,e.i+1)||u(e.Binary,e.i+2)||u(e.Binary,e.i+3)||u(e.ECI,e.i+1)&&u(e.Binary,e.i+8))){r[t++]=1/0,r[t++]=u(e.msg,e.i),e.addtobin();var Ue=a();if(r[t++]=Ue,e.addtocws(),e.i=e.i+1,e.i==e.msglen){r[t++]=1/0,e.finaliseBIN();var qe=a();r[t++]=qe,e.addtocws()}break}r[t++]=1/0,e.finaliseBIN();var Fe=a();if(r[t++]=Fe,e.addtocws(),e.i!=e.msglen-1){if(u(e.msg,e.i)==e.fn3&&e.i!=e.segstart){r[t++]=a([u(e.BINvals,e.tms)]),e.addtocws(),e.i=e.i+1,e.mode=e.C,e.inmac=0,e.segstart=e.i,e.segend=h(e.i+u(e.UntilEndSeg,e.i));break}jc(u(e.AheadA,e.i),u(e.AheadB,e.i))?(r[t++]=a([u(e.BINvals,e.tma)]),e.addtocws(),e.mode=e.A):(r[t++]=a([u(e.BINvals,e.tmb)]),e.addtocws(),e.mode=e.B);break}break}},e.cws=a(e.msglen*2+1),e.mode=e.C,e.bvals=a(5),e.bpos=0,e.inmac=0,e.segstart=0,e.segend=u(e.UntilEndSeg,0),e.i=0,e.j=0;!(e.i>=e.msglen||e.inmac!=0&&(e.inmac!=e.mac&&e.i==h(e.segend-2)&&(e.i=e.i+2,e.i>=e.msglen)||e.inmac==e.mac&&e.i==h(e.segend-1)&&(e.i=e.i+1,e.i>=e.msglen))||e[u(a(["encA","encB","encC","encBIN"]),e.mode)]()===!0););if(e.cws=T(e.cws,0,e.j),e.nd=e.cws.length,e.minarea=((e.nd+3+~~(e.nd/2))*9+2)*2,e.ratio!=-1)e.hgt=Math.sqrt(e.minarea/e.ratio),e.wid=Math.sqrt(e.minarea*e.ratio),e.h=~~e.hgt,e.w=~~e.wid,(e.h+e.w)%2==1?e.h*e.we.ndots)break;e.nd=e.nd+1}if(e.nc=~~(e.nd/2)+3,e.nw=e.nd+e.nc,e.rembits=e.ndots-(e.nw*9+2),e.nd>e.cws.length){r[t++]=1/0,oe(e.cws);var pt=e.mode==e.BIN?109:106;r[t++]=pt;for(var Te=0,Re=e.nd-e.cws.length-1;Tee.ndots-2&&(r[t++]="bwipp.dotcodeTooLong#25908",r[t++]="Maximum length exceeded",ne()),!Us.__25938__){e=Object.create(e),e.encs=a(["101010101","010101011","010101101","010110101","011010101","101010110","101011010","101101010","110101010","010101110","010110110","010111010","011010110","011011010","011101010","100101011","100101101","100110101","101001011","101001101","101010011","101011001","101100101","101101001","110010101","110100101","110101001","001010111","001011011","001011101","001101011","001101101","001110101","010010111","010011011","010011101","010100111","010110011","010111001","011001011","011001101","011010011","011011001","011100101","011101001","100101110","100110110","100111010","101001110","101011100","101100110","101101100","101110010","101110100","110010110","110011010","110100110","110101100","110110010","110110100","111001010","111010010","111010100","001011110","001101110","001110110","001111010","010011110","010111100","011001110","011011100","011100110","011101100","011110010","011110100","100010111","100011011","100011101","100100111","100110011","100111001","101000111","101100011","101110001","110001011","110001101","110010011","110011001","110100011","110110001","111000101","111001001","111010001","000101111","000110111","000111011","000111101","001001111","001100111","001110011","001111001","010001111","011000111","011100011","011110001","100011110","100111100","101111000","110001110","110011100","110111000","111000110","111001100"]);for(var n in e)e.hasOwnProperty(n)&&(Us.$ctx[n]=e[n]);Us.__25938__=1,e=Object.getPrototypeOf(e)}e.rows%2==0?e.sixedges=a([a([e.columns-1,e.rows-2]),a([0,e.rows-2]),a([e.columns-2,e.rows-1]),a([1,e.rows-1]),a([e.columns-1,0]),a([0,0])]):e.sixedges=a([a([e.columns-2,0]),a([e.columns-2,e.rows-1]),a([e.columns-1,1]),a([e.columns-1,e.rows-2]),a([0,0]),a([0,e.rows-1])]),e.dmv=function(){var Pe=r[--t],He=r[--t];r[t++]=h(He+Pe*e.columns)},e.outline=a(e.rows*e.columns);for(var It=0,Nt=e.rows-1;It<=Nt;It+=1){e.y=It;for(var ht=0,xt=e.columns-1;ht<=xt;ht+=1){e.x=ht,r[t++]=e.outline,r[t++]=e.x,r[t++]=e.y,e.dmv();var tt=r[--t];y(r[--t],tt,(e.x+e.y)%2-1)}}for(var Y=e.sixedges,re=0,ie=Y.length;re=nr:Dt<=nr;Dt+=jt)r[t++]=0,r[t++]=0,oe(T(e.sym,Dt,e.columns)),r[t++]=0,r[t++]=0;for(var Ft=0,cr=(e.columns+4)*2;Ft=1;St-=1)e.j=St,y(e.coeffs,e.j,h(h(u(e.coeffs,e.j)+113)-u(e.rsalog,e.i)*u(e.coeffs,e.j-1)%113)%113)}for(var yt=0,Ct=e.ND-1;yt<=Ct;yt+=1){r[t++]="t",r[t++]=e.rscws,r[t++]=yt,e.offset();var Oe=r[--t],Ce=u(r[--t],Oe);r[t++]=Ce,r[t++]=e.rscws,r[t++]=e.ND,e.offset();var Ye=r[--t],et=u(r[--t],Ye),Et=r[--t];e[r[--t]]=h(Et+et)%113;for(var ut=0,Dt=e.NC-2;ut<=Dt;ut+=1){e.j=ut,r[t++]=e.rscws,r[t++]=e.ND+e.j,e.offset(),r[t++]=e.rscws,r[t++]=e.ND+e.j+1,e.offset();var jt=r[--t],nr=u(r[--t],jt),Ft=r[--t];y(r[--t],Ft,h(h(nr+113)-e.t*u(e.coeffs,e.j+1)%113)%113)}r[t++]=e.rscws,r[t++]=e.ND+e.NC-1,e.offset();var cr=r[--t];y(r[--t],cr,h(113-e.t*u(e.coeffs,e.NC)%113)%113)}for(var sr=e.ND,lr=e.NW-1;sr<=lr;sr+=1){r[t++]=sr,r[t++]=e.rscws,r[t++]=sr,e.offset();var yr=r[--t],Qr=r[--t],Er=r[--t];r[t++]=Qr,r[t++]=yr,r[t++]=113,r[t++]=e.rscws,r[t++]=Er,e.offset();var Pr=r[--t],Wr=u(r[--t],Pr),cn=r[--t],Cr=r[--t];y(r[--t],Cr,h(cn-Wr)%113)}}e.bits=pe(e.ndots),K(e.bits,0,u(a(["00","01","10","11"]),e.mask));for(var Hr=1,un=e.nw;Hr<=un;Hr+=1)e.i=Hr,K(e.bits,(e.i-1)*9+2,u(e.encs,u(e.rscws,e.i)));e.rembits>0&&K(e.bits,e.nw*9+2,T("11111111111111111",0,e.rembits));var Pn=e.outline;e.pixs=pp(a(Pn.length),Pn),e.posx=0,r[t++]="posy",e.rows%2==0?r[t++]=0:r[t++]=e.rows-1;var Br=r[--t];e[r[--t]]=Br;for(var vn=T(e.bits,0,e.bits.length-6),bn=0,zt=vn.length;bne.bestscore&&(e.bestsym=e.pixs,e.bestscore=e.score,e.fast&&e.bestscore>~~(e.rows*e.columns/2)))return!0;var kr=e.pixs;e.litmask=pp(a(kr.length),kr);for(var Kr=0;Kr<=5;Kr+=1){e.i=Kr,r[t++]=e.litmask,oe(u(e.sixedges,e.i)),e.dmv();var pr=r[--t];y(r[--t],pr,1)}if(y(e.litmasks,e.mask,e.litmask),e.fast){r[t++]="score",r[t++]=e.litmask,e.evalsymbol();var dn=r[--t];if(e[r[--t]]=dn,jc(e.score,e.bestscore)&&(e.bestsym=e.litmask,e.bestscore=e.score,e.bestscore>~~(e.rows*e.columns/2)))return!0}}),e.pixs=e.bestsym,!e.fast&&e.bestscore<=~~(e.rows*e.columns/2)&&(e.bestscore=-99999999,je(e.masks,function(){e.litmask=u(e.litmasks,r[--t]),r[t++]="score",r[t++]=e.litmask,e.evalsymbol();var Pe=r[--t];e[r[--t]]=Pe,e.score>e.bestscore&&(e.bestsym=e.litmask,e.bestscore=e.score)}),e.pixs=e.bestsym);var ce=new Map([["ren","renmatrix"],["dotty",!0],["pixs",e.pixs],["pixx",e.columns],["pixy",e.rows],["height",e.rows*2/72],["width",e.columns*2/72],["borderleft",3],["borderright",3],["bordertop",3],["borderbottom",3],["opt",e.options]]);r[t++]=ce,e.dontdraw||Qt(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function al(){e=Object.create(e),e.dontdraw=!1,e.eclevel="EC2",e.parse=!1,e.parsefnc=!1,e.start=257,e.link1=0,e.raw=!1,e.rev=2,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t];var n=e.rev;n!=1&&n!=2&&(r[t++]="bwipp.ultracodeInvalidRevision#26305",r[t++]="Valid revisions are 1 and 2",ne());var o=e.eclevel.length==3;if(r[t++]=o,o&&(t--,r[t++]=T(e.eclevel,0,2),ae("EC","EC"))){t--;var i=u(e.eclevel,2)-48,s=e.rev==2?1:0;r[t++]=i>=s&&i<=5}if(dr(r[--t])&&(r[t++]="bwipp.ultracodeInvalidErrorCorrectionLevel#26314",r[t++]="Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1",ne()),xr(al),e.raw){for(e.dcws=a(e.barcode.length),e.i=0,e.j=0;e.i!=e.barcode.length;)e.cw=ft(T(e.barcode,e.i+1,3)),y(e.dcws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1;e.dcws=T(e.dcws,0,e.j)}else{e.fn1=-1,e.fn3=-2;var l=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC3",e.fn3]]);e.fncvals=l,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var c=r[--t];e[r[--t]]=c,e.msglen=e.msg.length,e.scr=a([]),e.scp=a([]),r[t++]=1/0,oe(e.scr),oe(e.scp),je(e.msg,function(){var Fe=r[--t];r[t++]=Fe,Fe==e.fn1&&(t--,r[t++]=268);var lt=r[--t];r[t++]=lt,lt==e.fn3&&(t--,r[t++]=269)}),e.dcws=a()}var d=u(e.options,"debugcws")!==void 0;if(d&&(r[t++]="bwipp.debugcws#26358",r[t++]=e.dcws,ne()),e.mcc=e.dcws.length+3,e.eclval=u(e.eclevel,2)-48,e.eclval!=0){if(r[t++]="qcc",r[t++]=u(a([0,1,2,4,6,8]),e.eclval),r[t++]=~~(e.mcc/25),e.mcc%25!=0){var f=r[--t];r[t++]=h(f+1)}var p=r[--t],m=r[--t];e[r[--t]]=h(m*p+5)}else e.qcc=3;if(e.acc=e.qcc-3+78*e.link1,e.tcc=e.mcc+e.qcc,!al.__26380__){e=Object.create(e),e.metrics=a([a([2,7,37,5]),a([3,36,84,13]),a([4,85,161,22]),a([5,142,282,29])]);for(var g in e)e.hasOwnProperty(g)&&(al.$ctx[g]=e[g]);al.__26380__=1,e=Object.getPrototypeOf(e)}for(var v=e.metrics,w=0,A=v.length;we.maxc)&&(e.okay=!1),!e.okay);w++);e.okay||(r[t++]="bwipp.ultracodeNoValidSymbol#26394",r[t++]="Maximum length exceeded or invalid content",ne());for(var k=e.mcol;k<=61;k+=1){if(e.columns=k,r[t++]=e.columns,e.columns>=15){var C=r[--t];r[t++]=h(C-1)}if(e.columns>=31){var M=r[--t];r[t++]=h(M-1)}if(e.columns>=47){var S=r[--t];r[t++]=h(S-1)}var I=h(h(r[--t]*e.rows-3)-e.tcc);if(r[t++]=I,I>=0){e.pads=r[--t];break}t--}e.dcc=h(e.columns-e.mcol),r[t++]=1/0,r[t++]=e.start,r[t++]=e.mcc,r[t++]=e.acc,oe(e.dcws);for(var E=0,j=e.qcc;E=1;$-=1){e.j=$,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var z=r[--t],Q=r[--t],G=r[--t];y(r[--t],G,h(Q+z)%283)}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var D=r[--t],q=r[--t];y(r[--t],q,D)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var W=e.coeffs.length-1;W>=0;W-=2){var X=e.coeffs;y(X,W,h(283-u(X,W)))}for(var te=0,se=e.n-1;te<=se;te+=1){e.t=h(u(e.rsseq,te)+u(e.rsseq,e.n))%283;for(var de=0,ee=e.k-1;de<=ee;de+=1)e.j=de,y(e.rsseq,e.n+e.j,h(u(e.rsseq,e.n+e.j+1)+h(283-e.t*u(e.coeffs,e.k-e.j-1)%283))%283)}for(var fe=e.n,he=e.n+e.k;fe<=he;fe+=1)y(e.rsseq,fe,h(283-u(e.rsseq,fe))%283);e.ecws=T(e.rsseq,e.n,e.k);var Ie=u(e.options,"debugecc")!==void 0;if(Ie&&(r[t++]="bwipp.debugecc#26464",r[t++]=e.ecws,ne()),!al.__26523__){e=Object.create(e),e.tiles=a([13135,13136,13153,13156,13163,13165,13513,13515,13516,13531,13535,13536,13561,13563,13565,13613,13615,13616,13631,13635,13636,13651,13653,13656,15135,15136,15153,15163,15165,15313,15315,15316,15351,15353,15356,15361,15363,15365,15613,15615,15616,15631,15635,15636,15651,15653,15656,16135,16136,16153,16156,16165,16313,16315,16316,16351,16353,16356,16361,16363,16365,16513,16515,16516,16531,16535,16536,16561,16563,16565,31315,31316,31351,31356,31361,31365,31513,31515,31516,31531,31535,31536,31561,31563,31565,31613,31615,31631,31635,31636,31651,31653,31656,35131,35135,35136,35151,35153,35156,35161,35163,35165,35315,35316,35351,35356,35361,35365,35613,35615,35616,35631,35635,35636,35651,35653,35656,36131,36135,36136,36151,36153,36156,36163,36165,36315,36316,36351,36356,36361,36365,36513,36515,36516,36531,36535,36536,36561,36563,36565,51313,51315,51316,51351,51353,51356,51361,51363,51365,51513,51516,51531,51536,51561,51563,51613,51615,51616,51631,51635,51636,51651,51653,51656,53131,53135,53136,53151,53153,53156,53161,53163,53165,53513,53516,53531,53536,53561,53563,53613,53615,53616,53631,53635,53636,53651,53653,53656,56131,56135,56136,56151,56153,56156,56161,56163,56165,56313,56315,56316,56351,56353,56356,56361,56363,56365,56513,56516,56531,56536,56561,56563,61313,61315,61316,61351,61353,61356,61361,61363,61365,61513,61515,61516,61531,61535,61536,61561,61563,61565,61615,61631,61635,61651,61653,63131,63135,63136,63151,63153,63156,63161,63163,63165,63513,63515,63516,63531,63535,63536,63561,63563,63565,63613,63615,63631,63635,63651,63653,65131,65135,65136,65151,65153,65156,65161,65163,65165,65313,65315,65316,65351,65353,65356,65361,65363,65365,65613,65615,65631,65635,65651,65653,56565,51515]),e.dccurev1=a([51363,51563,51653,53153,53163,53513,53563,53613,53653,56153,56163,56313,56353,56363,56513,56563,51316,51356,51536,51616,53156,53516,53536,53616,53636,53656,56136,56156,56316,56356,56516,56536]),e.dcclrev1=a([61351,61361,61531,61561,61631,61651,63131,63151,63161,63531,63561,63631,65131,65161,65351,65631,31351,31361,31531,31561,31631,31651,35131,35151,35161,35361,35631,35651,36131,36151,36351,36531]),e.dccurev2=a([15316,16316,13516,16516,13616,15616,13136,15136,16136,13536,16536,13636,13156,16156,15356,13656,15313,16313,13513,16513,13613,15613,13153,15153,16153,16353,13653,15653,13163,15163,15363,13563]),e.dcclrev2=a([36315,36515,35615,35135,36135,31535,36535,31635,35635,35165,36165,31365,35365,36365,31565,36565,61315,65315,63515,61615,65135,61535,63535,61635,63635,65635,63165,65165,61365,65365,61565,63565]);for(var g in e)e.hasOwnProperty(g)&&(al.$ctx[g]=e[g]);al.__26523__=1,e=Object.getPrototypeOf(e)}r[t++]="dccu",e.rev==1?r[t++]=e.dccurev1:r[t++]=e.dccurev2;var ve=r[--t];e[r[--t]]=ve,r[t++]="dccl",e.rev==1?r[t++]=e.dcclrev1:r[t++]=e.dcclrev2;var be=r[--t];e[r[--t]]=be,e.rows=h(e.rows*6+1),e.columns=e.columns+6,r[t++]=1/0;for(var ke=0,ze=e.rows*e.columns;ke=5){r[t++]=e.pixs,r[t++]=e.i,r[t++]=e.j,e.qmv();var ue=r[--t];y(r[--t],ue,e.i%2*9)}r[t++]=e.pixs,r[t++]=e.i,r[t++]=0,e.qmv();var Le=r[--t];y(r[--t],Le,9),r[t++]=e.pixs,r[t++]=e.i,r[t++]=h(e.rows-1),e.qmv();var $e=r[--t];y(r[--t],$e,9)}for(var bt=1,ot=h(e.rows-2);bt<=ot;bt+=1){e.i=bt;for(var st=3,Ze=e.columns-1;st<=Ze;st+=16){e.j=st,r[t++]=e.pixs,r[t++]=e.j,r[t++]=e.i,e.qmv();var dt=r[--t];y(r[--t],dt,(1-e.i%2)*9)}r[t++]=e.pixs,r[t++]=0,r[t++]=e.i,e.qmv();var Xe=r[--t];y(r[--t],Xe,9),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i,e.qmv();var Pt=r[--t];y(r[--t],Pt,(1-e.i%2)*9),r[t++]=e.pixs,r[t++]=2,r[t++]=e.i,e.qmv();var mt=r[--t];y(r[--t],mt,0),r[t++]=e.pixs,r[t++]=3,r[t++]=e.i,e.qmv();var pt=r[--t];y(r[--t],pt,9),r[t++]=e.pixs,r[t++]=4,r[t++]=e.i,e.qmv();var Te=r[--t];y(r[--t],Te,0),r[t++]=e.pixs,r[t++]=e.columns-1,r[t++]=e.i,e.qmv();var Re=r[--t];y(r[--t],Re,9)}e.i=~~(e.rows/2)-5,r[t++]=1/0;for(var Je=gr(pe(5),u(e.dccu,e.dcc),10),It=0,Nt=Je.length;It8&&(t--,r[t++]=8);var o=r[--t];e[r[--t]]=~~Math.round(Math.log(o)/Math.log(2)),e.fn1=-1;var i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Bo();var s=r[--t];e[r[--t]]=s,e.msglen=e.msg.length,e.addtobits=function(){var Ht=r[--t];K(e.bits,e.j,Ht),e.j=Ht.length+e.j},e.tofixedbits=function(){var Ht=Gn(pe(13),"0000000000000"),tr=r[--t],Tr=gr(pe(13),r[--t],2);K(Ht,h(tr-Tr.length),Tr),r[t++]=T(Ht,0,tr)};var l=e.msglen<=15?4:17;e.bits=pe(7+l+e.msglen*8+12),e.j=0,r[t++]=31,r[t++]=5,e.tofixedbits(),e.addtobits(),r[t++]="00",e.addtobits(),e.msglen<=15?(r[t++]=e.msglen,r[t++]=4,e.tofixedbits(),e.addtobits()):(r[t++]="0000",e.addtobits(),r[t++]=e.msglen-16,r[t++]=13,e.tofixedbits(),e.addtobits());for(var c=0,d=e.msglen-1;c<=d;c+=1)r[t++]=u(e.msg,c),r[t++]=8,e.tofixedbits(),e.addtobits();if(r[t++]=28,r[t++]=5,e.tofixedbits(),e.addtobits(),r[t++]=31,r[t++]=5,e.tofixedbits(),e.addtobits(),r[t++]="11",e.addtobits(),e.diffside=21,e.sameshape=!1,e.sameecc=!1,e.hasslaves=!1,e.metrics=function(){e.mc=r[--t],e.mr=r[--t];var Ht=e.mc,tr=e.mr,Tr=e.mc,on=e.mr,Xr=e.colors,fn=64;if(64>Xr){var Vr=Xr;Xr=fn,fn=Vr}var Yn=e.slave?7:17;if(r[t++]=Ht*tr,r[t++]=((~~(h(Tr-25)/16)+2)*(~~(h(on-25)/16)+2)-4)*7,r[t++]=fn*2,r[t++]=Yn*4,e.slave){if(r[t++]=3,!e.sameshape){var tn=r[--t];r[t++]=h(tn+5)}if(e.hasslaves){var An=r[--t];r[t++]=h(An+3)}if(!e.sameecc){var rn=e.mr,hn=e.mc;if(Fs(rn,hn)){var Vr=hn;hn=rn,rn=Vr}var Qn=r[--t];r[t++]=h(Qn+u(a([10,12,14,14,16,16,16,16]),~~(h(rn-21)/16)))}var ao=~~Math.ceil(r[--t]*2/e.metabpm);e.nummetabits=ao*e.metabpm,r[t++]=ao}else{var xn=ae(e.mr,e.mc)?0:1;e.metass=xn;var On=e.mr,pn=e.mc;if(Fs(On,pn)){var Vr=pn;pn=On,On=Vr}e.metavf=u(a([0,1,2,2,3,3,3,3]),~~(h(On-21)/16)),r[t++]="metavlen",e.metass==0?r[t++]=a([2,2,3,4]):r[t++]=a([4,6,8,10]);var yn=u(r[--t],e.metavf);if(e[r[--t]]=yn,e.metaelen=h(e.metavf*2+10),r[t++]=h(h(7+e.metavlen)+e.metaelen),e.hasslaves){var zn=r[--t];r[t++]=h(zn+4)}var Fn=~~Math.ceil(r[--t]*2/e.metabpm);e.nummetabits=h(Fn*e.metabpm+6),r[t++]=Fn+6}var Co=r[--t];e.nummetamodules=Co;var gi=r[--t],Wo=r[--t],vi=r[--t];e.numdatamodules=h(r[--t]-h(vi+h(Wo+h(gi+Co)))),e.numdatabits=e.numdatamodules*e.databpm},e.coderate=u(a([.67,.63,.57,.55,.5,.43,.34,.25,.2,.17,.14]),e.eclevel),e.grosslen=~~Math.ceil(e.bits.length/e.coderate),e.snapsize=function(){var Ht=~~Math.ceil(r[--t])-18;r[t++]=Ht,Ht<0&&(t--,r[t++]=0);var tr=r[--t];r[t++]=~~(tr/4)*4+21},e.rows==-1&&e.columns==-1){r[t++]="size",r[t++]=Math.sqrt(e.grosslen),e.snapsize();var f=r[--t];for(e[r[--t]]=f;r[t++]=e.size,r[t++]=e.size,e.metrics(),!(e.grosslen<=e.numdatabits);)e.size=h(e.size+4);e.rows=e.size,e.columns=e.size}else{if(e.columns==-1&&e.rows!=-1){r[t++]="columns",r[t++]=e.grosslen/e.rows,e.snapsize();var p=r[--t];for(e[r[--t]]=p;r[t++]=e.rows,r[t++]=e.columns,e.metrics(),!(e.grosslen<=e.numdatabits);)e.columns=h(e.columns+4)}if(e.rows==-1&&e.columns!=-1){r[t++]="rows",r[t++]=e.grosslen/e.columns,e.snapsize();var m=r[--t];for(e[r[--t]]=m;r[t++]=e.rows,r[t++]=e.columns,e.metrics(),!(e.grosslen<=e.numdatabits);)e.rows=h(e.rows+4)}e.rows!=-1&&e.columns!=-1&&(r[t++]=e.rows,r[t++]=e.columns,e.metrics())}e.C=e.numdatabits,e.cols=e.columns,(e.rows>145||e.cols>145)&&(r[t++]="bwipp.jabcodeNoValidSymbol#26821",r[t++]="Maximum length exceeded or invalid content",ne()),e.min=e.C;for(var g=3;g<=8;g+=1){e.i=g;for(var v=e.i+1;v<=9;v+=1)e.j=v,e.dist=~~(e.C/e.j)*e.j-~~(e.C/e.j)*e.i-e.bits.length,e.dist=0&&(e.datawc=e.i,e.datawr=e.j,e.min=e.dist)}e.tmpbits=pe(~~(e.C/e.datawr)*e.datawr-~~(e.C/e.datawr)*e.datawc),K(e.tmpbits,0,e.bits);for(var w=e.bits.length,A=e.tmpbits.length-1;w<=A;w+=1){var k=u(e.tmpbits,w-1);if(r[t++]=w,r[t++]=k,k%2==0){var C=r[--t];r[t++]=h(C+1)}else{var M=r[--t];r[t++]=h(M-1)}var S=r[--t];y(e.tmpbits,r[--t],S)}e.bits=e.tmpbits,e.m0=22610,e.m1=-3027,e.m2=19605,e.m3=32557,e.lcg64_temper=function(){e.p00=e.m0*e.s0,e.p01=e.m0*e.s1,e.p02=e.m0*e.s2,e.p03=e.m0*e.s3,e.p10=e.m1*e.s0,e.p11=e.m1*e.s1,e.p12=e.m1*e.s2,e.p13=e.m1*e.s3,e.p20=e.m2*e.s0,e.p21=e.m2*e.s1,e.p22=e.m2*e.s2,e.p23=e.m2*e.s3,e.p30=e.m3*e.s0,e.p31=e.m3*e.s1,e.p32=e.m3*e.s2,e.p33=e.m3*e.s3,e.s3=e.p33%65536+1,e.s2=e.p32%65536+~~(e.p33/65536)+e.p23%65536,e.s1=e.p31%65536+~~(e.p32/65536)+(e.p22%65536+~~(e.p23/65536))+e.p13%65536,e.s0=e.p30%65536+~~(e.p31/65536)+(e.p21%65536+~~(e.p22/65536))+(e.p12%65536+~~(e.p13/65536))+e.p03%65536,e.s3=e.s3+65536,e.s2=e.s2+65535,e.s1=e.s1+65535,e.s0=e.s0+65535,e.s2=~~(e.s3/65536)+e.s2,e.s3=e.s3%65536,e.s1=~~(e.s2/65536)+e.s1,e.s2=e.s2%65536,e.s0=~~(e.s1/65536)+e.s0,e.s1=e.s1%65536,e.s0=e.s0%65536;var Ht=((e.s0-32768)*65536+e.s1^2147483648)&4294967295,tr=Ht^Ht>>>11,Tr=tr^tr<<7&-1658038656,on=(Tr^Tr<<15&-272236544)&4294967295;r[t++]=on^on>>>18},e.createMatrixA=function(){r[t++]="nb_pcb",e.wr<4?r[t++]=~~(e.Pg_sub_block/2):r[t++]=~~(e.Pg_sub_block/e.wr)*e.wc;var Ht=r[--t];e[r[--t]]=Ht,e.offset=~~Math.ceil(e.Pg_sub_block/32),e.effwidth=e.offset*32,e.matrixA=a(e.offset*e.nb_pcb);for(var tr=0,Tr=e.offset*e.nb_pcb-1;tr<=Tr;tr+=1)y(e.matrixA,tr,0);e.permutation=a(e.Pg_sub_block);for(var on=0,Xr=e.Pg_sub_block-1;on<=Xr;on+=1)y(e.permutation,on,on);for(var fn=0,Vr=~~(e.Pg_sub_block/e.wr)-1;fn<=Vr;fn+=1){e.i=fn;for(var Yn=0,xn=h(e.wr-1);Yn<=xn;Yn+=1){e.j=Yn;var On=e.matrixA,pn=e.i,yn=e.effwidth,zn=e.wr,Fn=e.j,tn=h(31-h(e.i*h(e.effwidth+e.wr)+e.j)%32);y(On,~~(h(pn*h(yn+zn)+Fn)/32),u(On,~~(h(pn*h(yn+zn)+Fn)/32))|(tn<0?1>>>-tn:1<>>-Yo:oi<>>-so:((Yo<0?oi>>>-Yo:oi<>>-tn:1<>>-An:tn<=e.nb_pcb&&(y(e.swap_col,e.loop0*2,e.pivot_column),e.loop0=e.loop0+1),e.off_index=~~(e.pivot_column/32),e.off_index1=e.pivot_column%32;for(var rn=0,hn=e.nb_pcb-1;rn<=hn;rn+=1)if(e.j=rn,e.i!=e.j){var Qn=u(e.matrixH,e.off_index+e.j*e.offset),ao=-(31-e.off_index1);if(((ao<0?Qn>>>-ao:Qn<0){for(var oi=0,Yo=e.nb_pcb-1;oi<=Yo;oi+=1)if(e.j=oi,dr(u(e.processed_column,e.j))){y(e.column_arrangement,e.j,u(e.column_arrangement,e.i)),y(e.column_arrangement,e.i,0),y(e.processed_column,e.j,!0),y(e.processed_column,e.i,!1),y(e.swap_col,e.loop0*2,e.i),y(e.swap_col,e.loop0*2+1,e.j),y(e.column_arrangement,e.i,e.j),e.loop0=e.loop0+1,e.loop2=e.loop2+1;break}}e.loop1=0;for(var so=0,ra=e.nb_pcb-1;so<=ra;so+=1)e.kl=so,dr(u(e.processed_column,e.kl))&&e.loop1>>-Ga:os<>>-ws:Ns<>>-Qa:1<>>-xs:1<>>-pn:1<=e.Pg_sub_block&&(e.loop0=e.loop0+1,e.matrix_index=e.Pg_sub_block-e.pn),e.i%e.effwidth>>-rn:An<>>-hn:1<>>-yn:pn<>>-hn:rn<=1;E-=1){e.l=E,e.lcg64_temper();var j=r[--t];if(r[t++]=j,j<0){var B=r[--t];r[t++]=h((B^2147483648)+2147483648)}e.r=~~(r[--t]/4294967296*(e.l+1)),y(e.bits,e.l,u(e.bits,e.r)),y(e.bits,e.r,u(e.bits,e.l))}e.tmpbits=pe(e.C),K(e.tmpbits,0,e.bits),e.j=e.bits.length;for(var F=0,O=~~(h(h(e.C-e.j)+1)/2);FIe){var be=Ie;Ie=ve,ve=be}e.palettelayout=a(ve),e.i=0,e.j=8,je(e.rvals,function(){e.r=r[--t],je(e.gvals,function(){e.g=r[--t],je(e.bvals,function(){e.b=r[--t];var Ht=Gn(pe(6),"000000"),tr=gr(pe(6),e.r<<16|e.g<<8|e.b,16);K(Ht,6-tr.length,tr),r[t++]=Ht,r[t++]=!1,ae(Ht,"000000")&&(e.ki=e.i,t--,r[t++]=!0);var Tr=r[--t],on=r[--t];r[t++]=on,r[t++]=Tr,ae(on,"0000FF")&&(e.bi=e.i,t--,r[t++]=!0);var Xr=r[--t],fn=r[--t];r[t++]=fn,r[t++]=Xr,ae(fn,"00FF00")&&(e.gi=e.i,t--,r[t++]=!0);var Vr=r[--t],Yn=r[--t];r[t++]=Yn,r[t++]=Vr,ae(Yn,"00FFFF")&&(e.ci=e.i,t--,r[t++]=!0);var xn=r[--t],On=r[--t];r[t++]=On,r[t++]=xn,ae(On,"FF0000")&&(e.ri=e.i,t--,r[t++]=!0);var pn=r[--t],yn=r[--t];r[t++]=yn,r[t++]=pn,ae(yn,"FF00FF")&&(e.mi=e.i,t--,r[t++]=!0);var zn=r[--t],Fn=r[--t];r[t++]=Fn,r[t++]=zn,ae(Fn,"FFFF00")&&(e.yi=e.i,t--,r[t++]=!0);var tn=r[--t],An=r[--t];r[t++]=An,r[t++]=tn,ae(An,"FFFFFF")&&(e.wi=e.i,t--,r[t++]=!0),dr(r[--t])&&(e.colors<=64||e.colors==128&&(e.r==0||e.r==73||e.r==182||e.r==255)||e.colors==256&&(e.r==0||e.r==73||e.r==182||e.r==255)&&(e.g==0||e.g==73||e.g==182||e.g==255))&&(y(e.palettelayout,e.j,e.i),e.j=e.j+1),y(e.palette,e.i,r[--t]),e.i=e.i+1})})}),K(e.palettelayout,0,a([e.ki,e.bi,e.gi,e.ci,e.ri,e.mi,e.yi,e.wi])),e.metacolorindex=a([e.ki,e.bi,e.gi,e.ci,e.ri,e.mi,e.yi,e.wi])}r[t++]=1/0;for(var ke=0,ze=e.rows*e.cols;ke0){r[t++]=1/0;for(var $e=0,bt=e.num;$e<=bt;$e+=1)r[t++]=~~($e*(h(e.cols-7)/e.num))+3;e.algnrpos=a()}if(e.num=~~Math.round(e.rows/16)-1,e.algncpos=a([3,17]),e.num>0){r[t++]=1/0;for(var ot=0,st=e.num;ot<=st;ot+=1)r[t++]=~~(ot*(h(e.rows-7)/e.num))+3;e.algncpos=a()}e.putalgnpat=function(){e.pp=r[--t],e.py=r[--t],e.px=r[--t];for(var Ht=0;Ht<=2;Ht+=1){e.pb=Ht;for(var tr=0;tr<=2;tr+=1){e.pa=tr,r[t++]=e.pixs,r[t++]=h(e.px+e.pa),r[t++]=h(e.py+e.pb),e.jmv();var Tr=r[--t];y(r[--t],Tr,u(u(e.pp,e.pb),e.pa))}}};for(var Ze=0,dt=e.algncpos.length-1;Ze<=dt;Ze+=1){e.j=Ze,e.y=u(e.algncpos,e.j);for(var Xe=0,Pt=e.algnrpos.length-1;Xe<=Pt;Xe+=1){e.i=Xe,e.x=u(e.algnrpos,e.i),r[t++]=e.pixs,r[t++]=e.x,r[t++]=e.y,e.jmv();var mt=r[--t];u(r[--t],mt)==-1&&(r[t++]=h(e.x-1),r[t++]=h(e.y-1),(e.i+e.j)%2==0?r[t++]=e.algnpat0:r[t++]=e.algnpat1,e.putalgnpat())}}if(e.slave){r[t++]=1/0;for(var Je=1;Je<=19;Je+=1)e.i=Je,r[t++]=a([0,e.i]),r[t++]=a([1,e.i]);for(var It=5;It<=12;It+=1)e.i=It,r[t++]=a([2,e.i]),r[t++]=a([3,e.i]);e.metadatamap=a(),r[t++]=1/0;for(var Nt=5;Nt<=12;Nt+=1){r[t++]=Nt,r[t++]=1/0;var ht=r[--t],xt=r[--t];r[t++]=ht,r[t++]=4,r[t++]=xt;var tt=a();r[t++]=tt}for(var Y=12;Y>=5;Y-=1){r[t++]=Y,r[t++]=1/0;var re=r[--t],ie=r[--t];r[t++]=re,r[t++]=5,r[t++]=ie;var le=a();r[t++]=le}for(var ge=5;ge<=12;ge+=1){r[t++]=ge,r[t++]=1/0;var Me=r[--t],me=r[--t];r[t++]=Me,r[t++]=6,r[t++]=me;var Ee=a();r[t++]=Ee}for(var ce=12;ce>=5;ce-=1){r[t++]=ce,r[t++]=1/0;var Pe=r[--t],He=r[--t];r[t++]=Pe,r[t++]=7,r[t++]=He;var Ne=a();r[t++]=Ne}e.palettemap1=a(),r[t++]=1/0;for(var ye=e.palettemap1,rt=0,Be=ye.length;rtXt){var be=Xt;Xt=en,en=be}for(var kr=0,Kr=en-1;kr<=Kr;kr+=1){e.i=kr;var pr=u(e.palettelayout,e.i);r[t++]=pr,r[t++]=e.pixs,r[t++]=pr,oe(u(e.palettemap1,e.i)),e.jmv();var dn=r[--t],er=r[--t];y(r[--t],dn,er);var jn=r[--t];r[t++]=e.pixs,r[t++]=jn,oe(u(e.palettemap2,e.i)),e.jmv();var qr=r[--t],ho=r[--t];y(r[--t],qr,ho)}e.i=16}e.j=e.nummetamodules;for(var Rr=e.i,_n=e.palettelayout.length-1;Rr<=_n;Rr+=2){e.i=Rr;var Nr=u(e.palettelayout,e.i);r[t++]=Nr,r[t++]=e.pixs,r[t++]=Nr,oe(u(e.metadatamap,e.j)),e.jmv();var Eo=r[--t],nn=r[--t];y(r[--t],Eo,nn);var No=r[--t];r[t++]=e.pixs,r[t++]=No,oe(u(e.metadatamap,h(e.j+2))),e.jmv();var wn=r[--t],ti=r[--t];y(r[--t],wn,ti);var oo=u(e.palettelayout,e.i+1);r[t++]=oo,r[t++]=e.pixs,r[t++]=oo,oe(u(e.metadatamap,h(e.j+1))),e.jmv();var ri=r[--t],Jn=r[--t];y(r[--t],ri,Jn);var Ei=r[--t];r[t++]=e.pixs,r[t++]=Ei,oe(u(e.metadatamap,h(e.j+3))),e.jmv();var mo=r[--t],pi=r[--t];y(r[--t],mo,pi),e.j=h(e.j+4)}var Mo=a([function(){var Ht=r[--t],tr=r[--t];r[t++]=h(tr+Ht)%e.colors},function(){t--;var Ht=r[--t];r[t++]=Ht%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=Ht,r[t++]=tr,t--;var Tr=r[--t];r[t++]=Tr%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=(~~(Ht/3)+~~(tr/2))%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=(~~(Ht/2)+~~(tr/3))%e.colors},function(){var Ht=r[--t],tr=h(r[--t]+Ht);r[t++]=(~~(tr/2)+~~(tr/3))%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=h(Ht*(tr*tr)%7+h(Ht+tr*tr)*2%19)%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=h(tr*(Ht*Ht)%5+h(Ht*Ht+tr*2)%13)%e.colors}]);e.maskfuncs=Mo,e.mask!=-1&&(e.maskfuncs=a([u(e.maskfuncs,e.mask)]),e.bestmaskval=e.mask),e.masks=a(e.maskfuncs.length);for(var Gr=0,go=e.masks.length-1;Gr<=go;Gr+=1){e.m=Gr,e.mask=a(e.rows*e.cols);for(var ni=0,Mi=h(e.rows-1);ni<=Mi;ni+=1){e.j=ni;for(var $o=0,Pi=h(e.cols-1);$o<=Pi;$o+=1){e.i=$o,r[t++]=e.pixs,r[t++]=e.i,r[t++]=e.j,e.jmv();var ts=r[--t];if(u(r[--t],ts)==-1){if(r[t++]=e.i,r[t++]=e.j,u(e.maskfuncs,e.m)()===!0)break}else r[t++]=0;r[t++]=e.mask,r[t++]=e.i,r[t++]=e.j,e.jmv();var hi=r[--t],Vi=r[--t];y(Vi,hi,r[--t])}}y(e.masks,e.m,e.mask)}for(e.posx=0,e.posy=0,e.i=0;e.posx!=e.cols;){r[t++]=e.pixs,r[t++]=e.posx,r[t++]=e.posy,e.jmv();var ji=r[--t];if(u(r[--t],ji)==-1){var Sa=T(e.bits,e.i,e.databpm);r[t++]=0;for(var mi=0,Ia=Sa.length;mi=5?e.scr1=h(h(r[--t]-2)+e.scr1):t--,e.j>=4&&e.j<=e.scrle.length-5){var on=T(e.scrle,e.j-4,10);r[t++]=on;for(var Xr=0,fn=on.length;Xr=Yn:fn<=Yn;fn+=Vr){var xn=u(e.sym,fn),On=r[--t];if(r[t++]=On,r[t++]=xn,ae(On,xn)){t--;var pn=r[--t],yn=r[--t];r[t++]=h(yn+1),r[t++]=pn}else{var zn=r[--t];r[t++]=1,r[t++]=zn}}var Fn=fo()+2;wr(T(e.rle,0,Fn-2)),e.evalrle(),e.n3=h(r[--t]+e.n3),e.n1=h(r[--t]+e.n1),t--}for(var tn=0,An=h(e.rows-1);tn<=An;tn+=1){e.i=tn,e.symrow=T(e.sym,e.i*e.cols,e.cols),r[t++]=1/0;var rn=e.symrow;r[t++]=0,r[t++]=-1;for(var hn=0,Qn=rn.length;hn0){r[t++]=1/0,oe(e.lastpairs),oe(e.thispairs),r[t++]=e.n2;for(var mr=0,Cn=e.cols;mr30&&(r[t++]="bwipp.gs1ccColumnsTooBig#27815",r[t++]="The maximum number of composite component columns is 30",ne()),!Un.__27833__){e=Object.create(e);var n=new Map([["ean13",4],["upca",4],["ean8",3],["upce",2],["gs1-128",4],["databaromni",4],["databarstacked",2],["databarstackedomni",2],["databartruncated",4],["databarlimited",3],["databarexpanded",4],["databarexpandedstacked",4]]);e.lintypecccolumns=n;for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__27833__=1,e=Object.getPrototypeOf(e)}if(it(e.lintype,"")){var i=u(e.lintypecccolumns,e.lintype)!==void 0;i||(r[t++]="bwipp.gs1ccBadLinType#27837",r[t++]="The lintype is not recognised",ne())}for(e.cccolumns==-1&&(ae(e.lintype,"gs1-128")&&ae(e.ccversion,"c")?(e.linwidth<0&&(r[t++]="bwipp.gs1ccMissingLinWidth#27845",r[t++]="linwidth must be set for a GS1-128 with a CC-C composite component",ne()),e.linwidth<68&&(r[t++]="bwipp.gs1ccMinimumLinWidth#27848",r[t++]="Minimum linwidth for a GS1-128 with a CC-C composite component is 68",ne()),e.linwidth==68?r[t++]=1:r[t++]=~~((e.linwidth-52)/17)):it(e.lintype,"")?r[t++]=u(e.lintypecccolumns,e.lintype):r[t++]=2,e.cccolumns=r[--t]),r[t++]=e.barcode,r[t++]="ai",Jr(),e.fncs=r[--t],e.vals=r[--t],e.ais=r[--t],e.isupper=function(){var Sr=r[--t];r[t++]=Sr>=65&&Sr<=90},e.isnum0=function(){var Sr=r[--t];r[t++]=Sr>=48&&Sr<=57},e.isnum1=function(){var Sr=r[--t];r[t++]=Sr>=49&&Sr<=57};;){if(e.ais.length>=1&&(ae(u(e.ais,0),"10")||ae(u(e.ais,0),"11")||ae(u(e.ais,0),"17"))){r[t++]=-1,r[t++]="10";break}if(e.ais.length>=1&&ae(u(e.ais,0),"90")){if(e.v=u(e.vals,0),e.v.length>=1&&(r[t++]=u(e.v,0),e.isupper(),r[--t])){r[t++]=0,r[t++]="11";break}if(e.v.length>=2){r[t++]=u(e.v,0),e.isnum1(),r[t++]=u(e.v,1),e.isupper();var s=r[--t],l=r[--t];if(l&&s){r[t++]=1,r[t++]="11";break}}if(e.v.length>=3){r[t++]=u(e.v,0),e.isnum1(),r[t++]=u(e.v,1),e.isnum0();var c=r[--t],d=r[--t];r[t++]=vu(d,c),r[t++]=u(e.v,2),e.isupper();var f=r[--t],p=r[--t];if(p&&f){r[t++]=2,r[t++]="11";break}}if(e.v.length>=4){r[t++]=u(e.v,0),e.isnum1(),r[t++]=u(e.v,1),e.isnum0();var m=r[--t],g=r[--t];r[t++]=vu(g,m),r[t++]=u(e.v,2),e.isnum0();var v=r[--t],w=r[--t];r[t++]=vu(w,v),r[t++]=u(e.v,3),e.isupper();var A=r[--t],k=r[--t];if(k&&A){r[t++]=3,r[t++]="11";break}}}r[t++]=-1,r[t++]="0";break}if(e.method=r[--t],e.npre=r[--t],e.tobin=function(){var Sr=pe(r[--t]);r[t++]=Sr;for(var vo=0,Ln=Sr.length-1;vo<=Ln;vo+=1){var Ni=r[--t];y(Ni,vo,48),r[t++]=Ni}var jo=r[--t],$i=gr(pe(jo.length),r[--t],2);K(jo,jo.length-$i.length,$i),r[t++]=jo},!Un.__27968__){e=Object.create(e),e.fnc1=-1,e.lnumeric=-2,e.lalphanumeric=-3,e.liso646=-4,r[t++]=1/0;for(var C=65;C<=90;C+=1)r[t++]=C,r[t++]=C-65,r[t++]=5,e.tobin();for(var M=48;M<=57;M+=1)r[t++]=M,r[t++]=M+4,r[t++]=6,e.tobin();r[t++]=e.fnc1,r[t++]="11111",e.alpha=Bt(),r[t++]=1/0;for(var S=0;S<=119;S+=1){var I=Gn(pe(2),"00"),E=gr(pe(2),S,11);if(K(I,2-E.length,E),r[t++]=S,r[t++]=I,u(I,0)==65){var j=r[--t];y(j,0,94),r[t++]=j}var B=r[--t];if(r[t++]=B,u(B,1)==65){var F=r[--t];y(F,1,94),r[t++]=F}var O=r[--t],N=Gn(pe(7),"0000000"),H=gr(pe(7),h(r[--t]+8),2);K(N,7-H.length,H),r[t++]=O,r[t++]=N}r[t++]=e.lalphanumeric,r[t++]="0000",e.numeric=Bt(),r[t++]=1/0;for(var L=48;L<=57;L+=1)r[t++]=L,r[t++]=L-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var _=65;_<=90;_+=1)r[t++]=_,r[t++]=_-33,r[t++]=6,e.tobin();r[t++]=42,r[t++]="111010";for(var V=44;V<=47;V+=1)r[t++]=V,r[t++]=V+15,r[t++]=6,e.tobin();r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.liso646,r[t++]="00100",e.alphanumeric=Bt(),r[t++]=1/0;for(var $=48;$<=57;$+=1)r[t++]=$,r[t++]=$-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var z=65;z<=90;z+=1)r[t++]=z,r[t++]=z-1,r[t++]=7,e.tobin();for(var Q=97;Q<=122;Q+=1)r[t++]=Q,r[t++]=Q-7,r[t++]=7,e.tobin();r[t++]=33,r[t++]="11101000",r[t++]=34,r[t++]="11101001";for(var G=37;G<=47;G+=1)r[t++]=G,r[t++]=G+197,r[t++]=8,e.tobin();for(var D=58;D<=63;D+=1)r[t++]=D,r[t++]=D+187,r[t++]=8,e.tobin();r[t++]=95,r[t++]="11111011",r[t++]=32,r[t++]="11111100",r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.lalphanumeric,r[t++]="00100",e.iso646=Bt();for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__27968__=1,e=Object.getPrototypeOf(e)}if(ae(e.method,"10")){if(ae(u(e.ais,0),"11")||ae(u(e.ais,0),"17")){var q=u(e.vals,0),W=Gn(pe(16),"0000000000000000"),X=gr(pe(16),ft(T(q,0,2))*384+((ft(T(q,2,2))-1)*32+ft(T(q,4,2))),2);K(W,16-X.length,X),r[t++]=W,r[t++]=1/0;var te=r[--t],se=r[--t];r[t++]=te,r[t++]=1,r[t++]=0,je(se,function(){var Sr=r[--t];r[t++]=h(Sr-48)});var de=ae(u(e.ais,0),"11")?0:1;r[t++]=de,e.cdf=a(),e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1)}else e.cdf=a([1,0,1,1]);e.ais.length!=0?ae(u(e.ais,0),"10")?(r[t++]=1/0,je(u(e.vals,0)),e.gpf=a(),e.ais.length>1&&(r[t++]=1/0,oe(e.gpf),r[t++]=e.fnc1,e.gpf=a()),e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1)):e.gpf=a([e.fnc1]):(r[t++]=1/0,oe(e.cdf),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.cdf=a(),e.gpf=a([])),e.mode="numeric"}if(ae(e.method,"11")){e.cdf=a([1,1]),e.ai90=u(e.vals,0),h(e.npre+1)!=e.ai90.length?r[t++]=T(e.ai90,h(e.npre+1),h(h(e.ai90.length-e.npre)-1)):r[t++]="",e.ai90rem=r[--t],r[t++]="nalpha",r[t++]=0,je(e.ai90rem,function(){var Sr=r[--t];if(Sr>=65&&Sr<=90){var vo=r[--t];r[t++]=h(vo+1)}});var ee=r[--t];e[r[--t]]=ee,r[t++]="nnums",r[t++]=0,je(e.ai90rem,function(){var Sr=r[--t];if(Sr>=48&&Sr<=57){var vo=r[--t];r[t++]=h(vo+1)}});var fe=r[--t];e[r[--t]]=fe,r[t++]="mode",jc(e.nalpha,e.nnums)?r[t++]="alpha":e.nalpha==0?r[t++]="numeric":r[t++]="alphanumeric";var he=r[--t];e[r[--t]]=he,h(e.nalpha+e.nnums)!=e.ai90rem.length&&(e.mode="alphanumeric"),r[t++]=1/0,oe(e.cdf),ae(e.mode,"alphanumeric")&&(r[t++]=0),ae(e.mode,"numeric")&&(r[t++]=1,r[t++]=0),ae(e.mode,"alpha")&&(r[t++]=1,r[t++]=1),e.cdf=a(),r[t++]="ais1",e.ais.length>1?r[t++]=u(e.ais,1):r[t++]=-1;var Ie=r[--t];e[r[--t]]=Ie,r[t++]="vals1",e.vals.length>1?r[t++]=u(e.vals,1):r[t++]=-1;var ve=r[--t];e[r[--t]]=ve,ae(e.ais1,"21")||ae(e.ais1,"8004")?(r[t++]=1/0,oe(e.cdf),ae(e.ais1,"21")?(r[t++]=1,r[t++]=0):(r[t++]=1,r[t++]=1),e.cdf=a()):(r[t++]=1/0,oe(e.cdf),r[t++]=0,e.cdf=a()),r[t++]="nval",e.npre!=0?r[t++]=ft(T(e.ai90,0,e.npre)):r[t++]=0;var be=r[--t];if(e[r[--t]]=be,fr("BDHIJKLNPQRSTVXZ",T(e.ai90,e.npre,1)),r[--t]){var ke=r[--t],ze=r[--t];r[t++]=ke.length,r[t++]=ze,t--;var Ge=r[--t],Ve=r[--t];r[t++]=Ge,r[t++]=Ve,t--,e.aval=r[--t]}else t--,e.aval=-1;if(e.nval<31&&e.aval!=-1){var at=Gn(pe(5),"00000"),We=gr(pe(5),e.nval,2);K(at,5-We.length,We),r[t++]=at,r[t++]=1/0;var ue=r[--t],Le=r[--t];r[t++]=ue,je(Le,function(){var Sr=r[--t];r[t++]=h(Sr-48)}),e.nbits=a();var $e=Gn(pe(4),"0000"),bt=gr(pe(4),e.aval,2);K($e,4-bt.length,bt),r[t++]=$e,r[t++]=1/0;var ot=r[--t],st=r[--t];r[t++]=ot,je(st,function(){var Sr=r[--t];r[t++]=h(Sr-48)}),e.abits=a(),r[t++]=1/0,oe(e.cdf),oe(e.nbits),oe(e.abits),e.cdf=a()}else{var Ze=Gn(pe(10),"0000000000"),dt=gr(pe(10),e.nval,2);K(Ze,10-dt.length,dt),r[t++]=Ze,r[t++]=1/0;var Xe=r[--t],Pt=r[--t];r[t++]=Xe,je(Pt,function(){var Sr=r[--t];r[t++]=h(Sr-48)}),e.nbits=a();var mt=Gn(pe(5),"00000"),pt=gr(pe(5),h(u(e.ai90,e.npre)-65),2);K(mt,5-pt.length,pt),r[t++]=mt,r[t++]=1/0;var Te=r[--t],Re=r[--t];r[t++]=Te,je(Re,function(){var Sr=r[--t];r[t++]=h(Sr-48)}),e.abits=a(),r[t++]=1/0,oe(e.cdf),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,oe(e.nbits),oe(e.abits),e.cdf=a()}if(it(e.mode,"alpha"))r[t++]=1/0,je(e.ai90rem),e.ais.length>1&&(r[t++]=e.fnc1),e.gpf=a();else{r[t++]=1/0,je(e.ai90rem),e.ais.length>1&&(r[t++]=e.fnc1),e.in=a(),e.out=a(e.in.length*6),e.j=0;for(var Je=0,It=e.in.length-1;Je<=It;Je+=1){var Nt=u(e.alpha,u(e.in,Je));r[t++]=Nt,r[t++]=Nt,r[t++]=1/0;var ht=r[--t],xt=r[--t];r[t++]=ht,je(xt,function(){var Sr=r[--t];r[t++]=h(Sr-48)}),K(e.out,e.j,a()),e.j=r[--t].length+e.j}r[t++]=1/0,oe(e.cdf),oe(T(e.out,0,e.j)),e.cdf=a(),e.gpf=a([]),e.ais.length>1&&(e.mode="numeric")}e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1),e.ais.length!=0&&(ae(e.ais1,"21")||ae(e.ais1,"8004"))&&(r[t++]=1/0,oe(e.gpf),je(e.vals1),e.gpf=a(),e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1),e.ais.length!=0&&(r[t++]=1/0,oe(e.gpf),r[t++]=e.fnc1,e.gpf=a()))}ae(e.method,"0")&&(e.cdf=a([0]),e.gpf=a([]),e.mode="numeric");for(var tt=0,Y=e.ais.length-1;tt<=Y;tt+=1){e.i=tt,e.ai=u(e.ais,e.i),e.val=u(e.vals,e.i);var re=a(e.gpf.length+e.ai.length+e.val.length);K(re,0,e.gpf),r[t++]=re,r[t++]=re,r[t++]=e.gpf.length,r[t++]=e.ai,r[t++]=1/0;var ie=r[--t],le=r[--t];r[t++]=ie,je(le);var ge=a(),Me=r[--t];K(r[--t],Me,ge);var me=r[--t];r[t++]=me,r[t++]=me,r[t++]=e.gpf.length+e.ai.length,r[t++]=e.val,r[t++]=1/0;var Ee=r[--t],ce=r[--t];r[t++]=Ee,je(ce);var Pe=a(),He=r[--t];if(K(r[--t],He,Pe),e.gpf=r[--t],e.i!=e.ais.length-1&&u(e.fncs,e.i)){var Ne=a(e.gpf.length+1);K(Ne,0,e.gpf),y(Ne,e.gpf.length,e.fnc1),e.gpf=Ne}}if(!Un.__28137__){e=Object.create(e);var ye=new Map([["a",a([a([167,138,118,108,88,78,59]),a([167,138,118,98,78]),a([197,167,138,108,78])])],["b",a([a([336,296,256,208,160,104,56]),a([768,648,536,416,304,208,152,112,72,32]),a([1184,1016,840,672,496,352,264,208,152,96,56])])]]);e.bitcapsmaps=ye;for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__28137__=1,e=Object.getPrototypeOf(e)}e.rembits=function(){if(e.used=r[--t],it(e.ccversion,"c")){e.bitcaps=u(u(e.bitcapsmaps,e.ccversion),h(e.cccolumns-2)),r[t++]=-1,je(e.bitcaps,function(){var io=r[--t];if(r[t++]=io,Hs(io,e.used)){var Ha=r[--t],Qi=r[--t];r[t++]=Ha,r[t++]=Qi}t--});var Sr=r[--t];if(r[t++]=Sr,Sr!=-1){var vo=r[--t];r[t++]=h(vo-e.used)}}else{var Ln=new Map([["c",-1]]);u(Ln,e.ccversion);var Ni=~~Math.ceil(e.used/8);for(e.m=~~(Ni/6)*5+Ni%6,e.m<=40&&(r[t++]=8),e.m>=41&&e.m<=160&&(r[t++]=16),e.m>=161&&e.m<=320&&(r[t++]=32),e.m>=321&&e.m<=833&&(r[t++]=64),e.m>=834&&(r[t++]=32),e.eccws=r[--t],e.m=h(h(e.m+e.eccws)+3),e.cccolumns>30&&(e.cccolumns=30);!(~~Math.ceil(e.m/e.cccolumns)<=30||e.cccolumns>=30);)e.cccolumns=e.cccolumns+1;e.r=~~Math.ceil(e.m/e.cccolumns),e.r<3&&(e.r=3);var jo=h(h(e.cccolumns*e.r-e.eccws)-3);e.tgt=h(~~(jo/5)*6+jo%5)*8,e.used<=8304?r[t++]=h(e.tgt-e.used):r[t++]=-1}var $i=r[--t];r[t++]=$i,$i==-1&&(t--,ae(e.ccversion,"a")?e.ccversion="b":ae(e.ccversion,"b")&&ae(e.lintype,"gs1-128")?(e.ccversion="c",e.cccolumns=~~((e.linwidth-52)/17)):e.ccversion=-1,r[t++]=e.used,e.rembits())},e.encode=function(){var Sr=r[--t];if(r[t++]=Sr,it(Sr,"raw")){var vo=r[--t],Ln=u(vo,r[--t]);r[t++]=Ln}else t--;r[t++]=1/0;var Ni=r[--t],jo=r[--t];r[t++]=Ni,je(jo,function(){var io=r[--t];r[t++]=h(io-48)});var $i=a();K(e.gpfenc,e.j,$i),e.j=$i.length+e.j},r[t++]=1/0;for(var rt=0,Be=e.gpf.length;rt=0;lt-=1){e.i=lt;var gt=Gn(pe(2),"00"),At=u(e.gpf,e.i);r[t++]=u(e.gpf,e.i),r[t++]=gt,r[t++]=gt,r[t++]=0,r[t++]=At,At==e.fnc1&&(t--,r[t++]=94);var St=r[--t],yt=r[--t];if(y(r[--t],yt,St),e.i57){r[t++]=e.lalphanumeric,r[t++]=e.numeric,e.encode(),e.mode="alphanumeric";break}r[t++]="rem",r[t++]=e.cdf.length+e.j,e.rembits();var Hr=r[--t];if(e[r[--t]]=Hr,e.rem>=4&&e.rem<=6){var un=T(Gn(pe(6),"000000"),0,e.rem),Pn=gr(pe(4),h(u(e.gpf,e.i)-47),2);K(un,4-Pn.length,Pn),r[t++]=un,r[t++]="raw",e.encode(),e.i=e.i+1;break}else{var Br=pe(2);y(Br,0,u(e.gpf,e.i)),y(Br,1,94),r[t++]=Br,r[t++]=e.numeric,e.encode(),e.i=e.i+1;break}}if(ae(e.mode,"alphanumeric")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric",e.i=e.i+1;break}var vn=u(e.gpf,e.i),bn=u(e.iso646,vn)!==void 0,zt=u(e.alphanumeric,vn)!==void 0;if(bn&&!zt){r[t++]=e.liso646,r[t++]=e.alphanumeric,e.encode(),e.mode="iso646";break}if(u(e.numericruns,e.i)>=6){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}var ar=u(e.numericruns,e.i);if(ar>=4&&h(ar+e.i)==e.gpf.length){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.alphanumeric,e.encode(),e.i=e.i+1;break}if(ae(e.mode,"iso646")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.iso646,e.encode(),e.mode="numeric",e.i=e.i+1;break}if(u(e.numericruns,e.i)>=4&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lnumeric,r[t++]=e.iso646,e.encode(),e.mode="numeric";break}if(u(e.alphanumericruns,e.i)>=5&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lalphanumeric,r[t++]=e.iso646,e.encode(),e.mode="alphanumeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.iso646,e.encode(),e.i=e.i+1;break}}e.gpf=T(e.gpfenc,0,e.j),r[t++]="pad",r[t++]=e.cdf.length+e.gpf.length,e.rembits();var hr=a(r[--t]);if(e[r[--t]]=hr,e.pad.length>0){for(var Ar=0,Yr=e.pad.length-1;Ar<=Yr;Ar+=5){e.i=Ar;var Xt=e.pad,en=e.i,kr=a([0,0,1,0,0]),Kr=e.pad,pr=e.i,dn=5,er=Kr.length-pr;if(Kr.length-pr>5){var jn=dn;dn=er,er=jn}K(Xt,en,T(kr,0,er))}ae(e.mode,"numeric")&&(r[t++]=1/0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.pad),e.pad=T(a(),0,e.pad.length)),ae(e.mode,"alpha")&&(r[t++]=1/0,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.pad),e.pad=T(a(),0,e.pad.length))}if(r[t++]=1/0,oe(e.cdf),oe(e.gpf),oe(e.pad),e.bits=a(),!Un.__28348__){e=Object.create(e),r[t++]=1/0,r[t++]=a([0,0,0,0,0,0,1]);for(var qr=0,ho=68;qr=1;_n-=1)e.i=_n,e.v=h(u(u(e.pwr928,e.j-1),e.i)*2+~~(e.v/928)),y(u(e.pwr928,e.j),e.i,e.v%928);y(u(e.pwr928,e.j),0,h(u(u(e.pwr928,e.j-1),0)*2+~~(e.v/928)))}for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__28348__=1,e=Object.getPrototypeOf(e)}if(e.ccversion=="a"){r[t++]=1/0;for(var Nr=0,Eo=28;Nrwn.length-ti){var jn=oo;oo=ri,ri=jn}e.bs=T(nn,No,ri),e.bsl=e.bs.length,e.cs=T(e.cws,e.c,~~(e.bsl/10)+1),e.csl=e.cs.length;for(var Jn=0,Ei=e.bsl-1;Jn<=Ei;Jn+=1){e.i=Jn;for(var mo=0,pi=e.csl-1;mo<=pi;mo+=1){e.j=mo;var Mo=e.cs,Gr=e.j;y(Mo,Gr,h(u(Mo,Gr)+u(u(e.pwr928,e.i),e.j+7-e.csl)*u(e.bs,e.bsl-e.i-1)))}}for(var go=e.csl-1;go>=1;go-=1){e.i=go;var ni=e.cs,Mi=e.i;y(ni,Mi-1,h(u(ni,Mi-1)+~~(u(e.cs,e.i)/928)));var $o=e.cs,Pi=e.i;y($o,Pi,u($o,Pi)%928)}e.b=e.b+e.bsl,e.c=e.c+e.csl}e.cws=T(e.cws,0,e.c),e.barcode=pe(e.cws.length*4);for(var ts=0,hi=e.cws.length-1;ts<=hi;ts+=1){e.i=ts;var Vi=Gn(pe(4),"^000"),ji=gr(pe(4),u(e.cws,e.i),10);K(Vi,4-ji.length,ji),K(e.barcode,e.i*4,Vi)}delete e.options.parse,y(e.options,"dontdraw",!0),y(e.options,"cca",!0),y(e.options,"columns",e.cccolumns),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,ss();var Sa=r[--t];e[r[--t]]=Sa}if(e.ccversion=="b"){e.barcode=pe(~~(e.bits.length/8));for(var mi=0,Ia=e.barcode.length-1;mi<=Ia;mi+=1){e.i=mi;var Di=T(e.bits,e.i*8,8);r[t++]=0;for(var Ki=0,Vo=Di.length;Ki0){r[t++]=1/0;for(var A=0,k=e.diff;A=S:C<=S;C+=M)e.i=C,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var I=0,E=2;I=0;z-=1){e.y=z,oe(e.linpad),r[t++]=0;for(var Q=0,G=e.sbs.length-1;Q<=G;Q+=1)if(e.i=Q,e.i%2==0){var D=u(e.bbs,~~(e.i/2))*72;if(D>e.y||h(D+u(e.bhs,~~(e.i/2))*72)0){r[t++]=1/0;for(var C=0,M=e.diff;C=E:S<=E;S+=I)e.i=S,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var j=0,B=2;j=0;G-=1){e.y=G,oe(e.linpad),r[t++]=0;for(var D=0,q=e.sbs.length-1;D<=q;D+=1)if(e.i=D,e.i%2==0){var W=u(e.bbs,~~(e.i/2))*72;if(W>e.y||h(W+u(e.bhs,~~(e.i/2))*72)0){r[t++]=1/0;for(var A=0,k=e.diff;A=S:C<=S;C+=M)e.i=C,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var I=0,E=2;I=0;z-=1){e.y=z,oe(e.linpad),r[t++]=0;for(var Q=0,G=e.sbs.length-1;Q<=G;Q+=1)if(e.i=Q,e.i%2==0){var D=u(e.bbs,~~(e.i/2))*72;if(D>e.y||h(D+u(e.bhs,~~(e.i/2))*72)0){r[t++]=1/0;for(var A=0,k=e.diff;A=S:C<=S;C+=M)e.i=C,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var I=0,E=2;I=0;z-=1){e.y=z,oe(e.linpad),r[t++]=0;for(var Q=0,G=e.sbs.length-1;Q<=G;Q+=1)if(e.i=Q,e.i%2==0){var D=u(e.bbs,~~(e.i/2))*72;if(D>e.y||h(D+u(e.bhs,~~(e.i/2))*72)=d:l<=d;l+=c)e.i=l,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0;r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.sep);for(var f=0,p=e.linheight;f=m:f<=m;f+=p)e.i=f,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx));oe(e.sep),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;for(var g=0,v=e.linwidth,w=e.linpixs.length-1;v<0?g>=w:g<=w;g+=v)e.i=g,oe(T(e.linpixs,e.i,e.linwidth)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;e.pixs=a(),e.pixx=h(e.ccpixx+1),e.pixy=~~(e.pixs.length/e.pixx);var A=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.pixx],["pixy",e.pixy],["height",e.pixy/72],["width",e.pixx/72],["opt",e.options]]);r[t++]=A,e.dontdraw||(Se.save(),Qt(),Se.restore())}else{Se.rmoveto(0,e.linheight);var c=new Map([["ren","renmatrix"],["pixs",e.sep],["pixx",e.sep.length],["pixy",1],["height",1/72],["width",e.sep.length/72],["opt",e.options]]);r[t++]=c,Qt(),Se.rmoveto(1,1),r[t++]=e.comp,r[t++]=e.options,Un(),Qt(),Se.restore()}e=Object.getPrototypeOf(e)}function m0e(){e=Object.create(e),e.dontdraw=!1,e.usematrix=!1,e.parse=!1,e.dontlint=!1,e.lintreqs=!0,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.dontdraw&&(e.usematrix=!0),fr(e.barcode,"|"),r[--t]?(e.linear=r[--t],t--,e.comp=r[--t]):(t--,r[t++]="bwipp.missingCompositeComponent#29435",r[t++]="A Composite Component must be provided following a pipe character",ne()),e.usematrix||Se.save(),y(e.options,"lintype","databarstackedomni"),y(e.options,"linkage",!0),y(e.options,"inkspreadv",0),y(e.options,"dontdraw",!0),y(e.options,"dontlint",!0);var n=pe(e.linear.length+e.comp.length);K(n,0,e.linear),K(n,e.linear.length,e.comp),r[t++]=n,r[t++]="ai",Jr(),t-=3,r[t++]=e.linear,r[t++]=e.options,KT();var o=r[--t];e.bot=T(u(o,"pixs"),0,u(o,"pixx")),e.linheight=u(o,"pixy"),r[t++]=o,e.usematrix?e.linpixs=u(r[--t],"pixs"):Qt(),e.sepfinder=function(){e.fp=r[--t];for(var k=e.fp,C=h(e.fp+12);k<=C;k+=1){if(e.i=k,u(e.bot,e.i)==0)if(u(e.bot,e.i-1)==1)r[t++]=1;else{var M=u(e.sep,e.i-1)==0?1:0;r[t++]=M}else r[t++]=0;y(e.sep,e.i,r[--t])}e.f3=a([1,1,1,1,1,1,1,1,1,0,1,1,1]),r[t++]=!0;for(var S=0;S<=12;S+=1){var I=r[--t];r[t++]=I&&ae(u(e.bot,h(S+e.fp)),u(e.f3,S))}r[--t]&&K(e.sep,e.fp,a([0,0,0,0,0,0,0,0,0,0,1,0,0]))},r[t++]=1/0;for(var i=e.bot,s=0,l=i.length;s=m:f<=m;f+=p)e.i=f,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx));oe(e.sep),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;for(var g=0,v=e.linwidth,w=e.linpixs.length-1;v<0?g>=w:g<=w;g+=v)e.i=g,oe(T(e.linpixs,e.i,e.linwidth)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;e.pixs=a(),e.pixx=h(e.ccpixx+1),e.pixy=~~(e.pixs.length/e.pixx);var A=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.pixx],["pixy",e.pixy],["height",e.pixy/72],["width",e.pixx/72],["opt",e.options]]);r[t++]=A,e.dontdraw||(Se.save(),Qt(),Se.restore())}else{Se.rmoveto(0,e.linheight);var c=new Map([["ren","renmatrix"],["pixs",e.sep],["pixx",e.sep.length],["pixy",1],["height",1/72],["width",e.sep.length/72],["opt",e.options]]);r[t++]=c,Qt(),Se.rmoveto(1,1),r[t++]=e.comp,r[t++]=e.options,Un(),Qt(),Se.restore()}e=Object.getPrototypeOf(e)}function g0e(){e=Object.create(e),e.dontdraw=!1,e.usematrix=!1,e.parse=!1,e.dontlint=!1,e.lintreqs=!0,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.dontdraw&&(e.usematrix=!0),fr(e.barcode,"|"),r[--t]?(e.linear=r[--t],t--,e.comp=r[--t]):(t--,r[t++]="bwipp.missingCompositeComponent#29589",r[t++]="A Composite Component must be provided following a pipe character",ne()),e.usematrix||Se.save(),y(e.options,"lintype","databartruncated"),y(e.options,"linkage",!0),y(e.options,"inkspreadv",0),y(e.options,"dontdraw",!0),y(e.options,"dontlint",!0);var n=pe(e.linear.length+e.comp.length);K(n,0,e.linear),K(n,e.linear.length,e.comp),r[t++]=n,r[t++]="ai",Jr(),t-=3,r[t++]=e.linear,r[t++]=e.options,XT();var o=r[--t];if(e.linsbs=u(o,"sbs"),e.linheight=u(u(o,"bhs"),0)*72,r[t++]=o,e.usematrix?t--:rr(),e.sepfinder=function(){e.fp=r[--t];for(var g=e.fp,v=h(e.fp+12);g<=v;g+=1){if(e.i=g,u(e.bot,e.i)==0)if(u(e.bot,e.i-1)==1)r[t++]=1;else{var w=u(e.sep,e.i-1)==0?1:0;r[t++]=w}else r[t++]=0;y(e.sep,e.i,r[--t])}e.f3=a([1,1,1,1,1,1,1,1,1,0,1,1,1]),r[t++]=!0;for(var A=0;A<=12;A+=1){var k=r[--t];r[t++]=k&&ae(u(e.bot,h(A+e.fp)),u(e.f3,A))}r[--t]&&K(e.sep,e.fp,a([0,0,0,0,0,0,0,0,0,0,1,0,0]))},r[t++]=1/0,r[t++]=0,je(e.linsbs,function(){var g=r[--t],v=r[--t],w=v==1?0:1;r[t++]=v;for(var A=0,k=g;A=d:l<=d;l+=c)e.i=l,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0;r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.sep);for(var f=0,p=e.linheight;f=m:f<=m;f+=p)e.i=f,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;oe(e.sep);for(var g=0,v=e.linheight;g=k:w<=k;w+=A)e.i=w,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.sep);for(var C=0,M=e.linheight;C=C:A<=C;A+=k)e.i=A,r[t++]=0,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);oe(e.sep);for(var M=0,S=e.linheight;M=B:E<=B;E+=j)e.i=E,oe(e.cclpad),oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);oe(e.sep),oe(e.linpixs),e.pixs=a(),e.pixy=~~(e.pixs.length/e.pixx);var F=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.pixx],["pixy",e.pixy],["height",e.pixy/72],["width",e.pixx/72],["opt",e.options]]);r[t++]=F,e.dontdraw||(Se.save(),Qt(),Se.restore())}else{Se.rmoveto(0,e.linheight);var w=new Map([["ren","renmatrix"],["pixs",e.sep],["pixx",e.sep.length],["pixy",1],["height",1/72],["width",e.sep.length/72],["opt",e.options]]);r[t++]=w,Qt();var A=u(e.bot,0)==0?2:0;Se.rmoveto(A,1),r[t++]=e.comp,r[t++]=e.options,Un(),Qt(),Se.restore()}e=Object.getPrototypeOf(e)}function x0e(){e=Object.create(e),e.dontdraw=!1,e.usematrix=!1,e.parse=!1,e.dontlint=!1,e.lintreqs=!0,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.dontdraw&&(e.usematrix=!0),fr(e.barcode,"|"),r[--t]?(e.linear=r[--t],t--,e.comp=r[--t]):(t--,r[t++]="bwipp.missingCompositeComponent#30202",r[t++]="A Composite Component must be provided following a pipe character",ne()),e.usematrix||Se.save(),y(e.options,"inkspreadv",0),y(e.options,"dontdraw",!0),y(e.options,"dontlint",!0);var n=pe(e.linear.length+e.comp.length);K(n,0,e.linear),K(n,e.linear.length,e.comp),r[t++]=n,r[t++]="ai",Jr(),t-=3,y(e.options,"linkagea",!0),r[t++]=e.linear,r[t++]=1/0,je(e.options);var o=Bt();r[t++]=o,l6();var i=u(r[--t],"sbs");r[t++]=0,je(i,function(){var N=r[--t],H=r[--t];r[t++]=h(H+N)}),e.linwidth=r[--t],y(e.options,"lintype","gs1-128"),y(e.options,"linwidth",e.linwidth),r[t++]=e.comp,r[t++]=1/0,je(e.options);var s=Bt();r[t++]=s,Un(),e.compsym=r[--t],u(e.compsym,"pixx")==99?r[t++]="a":r[t++]="c",e.linktype=r[--t],ae(e.linktype,"a")?(y(e.options,"linkagea",!0),y(e.options,"linkagec",!1)):(y(e.options,"linkagea",!1),y(e.options,"linkagec",!0)),r[t++]=e.linear,r[t++]=1/0;var l=e.options;je(l);var c=Bt();r[t++]=c,l6();var d=r[--t];if(e.linsbs=u(d,"sbs"),e.linheight=u(u(d,"bhs"),0)*72,r[t++]=d,e.usematrix?t--:rr(),r[t++]=1/0,r[t++]=1,je(e.linsbs,function(){var N=r[--t],H=r[--t],L=H==0?1:0;r[t++]=H;for(var _=0,V=N;_0){r[t++]=1/0;for(var g=0,v=e.x;g0){r[t++]=1/0;for(var k=0,C=e.diff;k=j:I<=j;I+=E)e.i=I,oe(e.cclpad),oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);oe(e.linlpad),oe(e.sep),oe(e.linrpad);for(var B=0,F=e.linheight;B7)&&(r[t++]="bwipp.channelcodeBadLength#31719",r[t++]="Channel Code must be 2 to 7 digits",ne()),je(e.barcode,function(){var M=r[--t];(M<48||M>57)&&(r[t++]="bwipp.channelcodeBadCharacter#31723",r[t++]="Channel Code must contain only digits",ne())}),ft(e.barcode)>u(a([26,292,3493,44072,576688,7742862]),e.barcode.length-2)&&(r[t++]="bwipp.channelcodeTooBig#31727",r[t++]="The Channel Code value is too big for the number of channels",ne()),e.nextb=function(){var M=r[--t],S=h(u(e.s,M)+h(u(e.b,h(M-1))+h(u(e.b,h(M-2))+u(e.s,h(M-1)))))>4?1:2;if(r[t++]=M,r[t++]=S,Me.pixy&&(e.pixy=h(e.h+e.y))):y(e.bars,~~(e.i/2),-1)):e.d=h(h(u(e.sbs,e.i)*e.spaceratio-e.spaceratio)+1),e.pixx=h(e.pixx+e.d);Se.save();var i=Se.currpos();if(Se.translate(i.x,i.y),e.width!=0&&Se.scale(e.width*72/e.pixx,1),e.tl=a([-h(e.borderleft+e.borderwidth/2),h(h(e.pixy+e.bordertop)+e.borderwidth/2)]),e.tr=a([h(h(e.pixx+e.borderright)+e.borderwidth/2),h(h(e.pixy+e.bordertop)+e.borderwidth/2)]),e.bl=a([-h(e.borderleft+e.borderwidth/2),-h(e.borderbottom+e.borderwidth/2)]),e.br=a([h(h(e.pixx+e.borderright)+e.borderwidth/2),-h(e.borderbottom+e.borderwidth/2)]),e.showbearer){Se.save(),Se.newpath(),oe(e.bl);var s=r[--t];Se.moveto(r[--t],s),oe(e.br);var l=r[--t];Se.lineto(r[--t],l),oe(e.tl);var c=r[--t];Se.moveto(r[--t],c),oe(e.tr);var d=r[--t];Se.lineto(r[--t],d),it(e.bordercolor,"unset")&&Se.setcolor(e.bordercolor),Se.setlinewidth(h(e.borderwidth-e.inkspread*2)),Se.stroke(),Se.restore()}else if(e.showborder){Se.save(),Se.newpath(),oe(e.bl);var f=r[--t];Se.moveto(r[--t],f);for(var p=a([e.br,e.tr,e.tl]),m=0,g=p.length;m",0,0))),Se.restore(),e=Object.getPrototypeOf(e)}}function M0e(){if(!e.bwipjs_dontdraw){e=Object.create(e),e.args=r[--t],e.barcolor="unset",e.backgroundcolor="unset",je(e.args,function(){var c=r[--t];e[r[--t]]=c});for(var n=e.opt,o=n.size,i=n.keys(),s=0;s>>0,A*M>>>0):k!=null?(k=k>>>0,k*M>>>0):(C=C>>>0,C*M>>>0||0)}}var T0e={bcid:1,text:1,scale:1,scaleX:1,scaleY:1,rotate:1,padding:1,paddingwidth:1,paddingheight:1,paddingtop:1,paddingleft:1,paddingright:1,paddingbottom:1,backgroundcolor:1};function F0e(n,o){return f8(Kb(n.bcid),n,o)}function f8(n,o,i){var s=o.text;if(!s)throw new ReferenceError("bwip-js: bar code text not specified.");eF(o),i.setopts&&i.setopts(o);var l=o.scale||2,c=+o.scaleX||l,d=+o.scaleY||c;o.rotate;var f=new tF(i),p={};for(var m in o)T0e[m]||(p[m]=o[m]);return p.alttext&&(p.includetext=!0),+p.height&&n!=JT&&(p.height=p.height/25.4||.5),+p.width&&(p.width=p.width/25.4||0),f.scale(c,d),ZT(f,n,s,p),f.render()}function D0e(n,o,i){arguments.length==1&&(i=n,n=i.bcid,o=i.text);var s=rF();s.setopts(i);for(var l=new tF(s),c=ZT(l,Kb(n),o,i,!0),d={pixs:1,pixx:1,pixy:1,sbs:1,bbs:1,bhs:1,width:1,height:1},f=0;f=0&&d[p].op=="l";p--);if(p++,pC.x0&&(g=C.x0),wC.y0&&(v=C.y0),AC.x1&&(g=C.x1),wC.y1&&(v=C.y1),Aw.x0&&(f=w.x0),mw.x1&&(f=w.x1),mw.y0&&(p=w.y0),gw.y1&&(p=w.y1),gM){var j=k;k=M,M=j}if(C>S){var j=C;C=S,S=j}k==M?this.bbox(k-I,C,k+g-I-1,S):this.bbox(k,C-v+E+1,M,S+E)}else if(A.op=="p"){var B=1/0,F=1/0,O=-1/0,N=-1/0,H=A.poly;if(H.length!=4)throw new Error("stroke: --not-a-rect--");for(var w=0,L=H.length-1;wO&&(O=$),zN&&(N=z)}var I=i(g/2),E=i(v/2);this.bbox(B-I,F-E,O+I,N+E)}else throw new Error("stroke: --not-a-line--")}var Q=this;this.cmds.push(function(){for(var G=i(g/2),D=i(v/2),q=g-G,W=v-D,X=0;Xw&&(w=M),SA&&(A=S)}this.bbox(g,v+1,w-1,A)}else if(m.op=="e")this.bbox(m.x-m.rx,m.y-m.ry,m.x+m.rx,m.y+m.ry);else throw new Error("fill: --not-a-polygon--")}var I=this;this.cmds.push(function(){for(var E=0;E9&&v++;var w,A,k,C;k=f/2|0,C=p/2|0,w=v-k,w&1&&w--,A=(4*p|0)-C;var M=w/2-1,S=(M+1)/2|0,I=A-2-2*S;this.bbox(0,0,v*30-k,p*3*32+p*4-C);var E=this;this.cmds.push(function(){for(var j=0;jp){var g=d;d=p,p=g}if(f>m){var g=f;f=m,m=g}d=n(d),f=n(f),p=i(p),m=i(m),this.minx>d&&(this.minx=d),this.maxxf&&(this.miny=f),this.maxyG)for(var D=G+1;DQ&&B(z,Q),X>Q&&B(q,Q)}else{var W=L[$==_-1?0:$+1][1],X=L[V==0?_-1:V-1][1];W>Q&&B(q,Q),X>Q&&B(z,Q)}}},hexagon:function(L,_){var V=L[0][0]|0,$=L[0][1]|0,z=L[1][1]-L[0][1]|0,Q=L[2][1]-L[1][1]-1|0,G=L[2][0]|0,D=L[4][0]|0;C=parseInt(_.substr(0,2),16),M=parseInt(_.substr(2,2),16),S=parseInt(_.substr(4,2),16),F(V,V+1,$++);for(var q=1;q=1;q--)F(V-2*q,V+1+2*q,$++);F(V,V+1,$)},ellipse:function(L,_,V,$,z){N(L-V|0,_-$|0,L+V|0,_+$|0)},fill:function(L){C=parseInt(L.substr(0,2),16),M=parseInt(L.substr(2,2),16),S=parseInt(L.substr(4,2),16),O(),I=[],I.min=1/0},clip:function(L){E||(E=[],E.min=1/0);var _=I;I=E;for(var V=0,$=L.length;V<$;V++)this.polygon(L[V]);I=_},unclip:function(){E=null},text:function(L,_,V,$,z){L=L|0,_=_|0,C=parseInt($.substr(0,2),16),M=parseInt($.substr(2,2),16),S=parseInt($.substr(4,2),16);for(var Q=dl.lookup(z.name),G=z.width|0,D=z.height|0,q=z.dx|0,W=0;W_&&(I.min=_),I[_]?I[_].push(L):I[_]=[L]}function F(L,_,V){for(;L<=_;)j(L++,V,255)}function O(){for(var L=I.min,_=I.length-1,V=L;V<=_;V++){var $=I[V];if($){$.sort(function(W,X){return W-X});for(var z=!1,Q=0,G=0,D=$.length;GV&&(L=V,V+=Q),_>$&&(_=$),_+=(G+1)/2|0,$=_-D,Q*=8*Q,D=8*G*G;do Ie(de,V,_),he(se,L,_),he(se,L,$),Ie(de,V,$),te=2*X,te>=q&&(L++,V--,q+=D,X+=q),te<=W&&(_++,$--,W+=Q,X+=W);while(L<=V);for(;_-$ke&&(ve.min=ke);var ze=ve[ke];(ze==null||ze>be)&&(ve[ke]=be)}function Ie(ve,be,ke){ve.min>ke&&(ve.min=ke);var ze=ve[ke];(ze==null||zeL)return!$;if(G==L)return $;$=!$}return!0}}function _0(n,o){o&&o instanceof HTMLCanvasElement&&(n=o);var i,s=n.getContext("2d",{willReadFrequently:!0}),l=rF();l.image=f,l.end=p;var c,d=l.setopts;return l.setopts=function(m){c=m,d&&d.call(l,m)},l;function f(m,g){return n.width=m,n.height=g,s.setTransform(1,0,0,1,0,0),/^[0-9a-fA-F]{6}$/.test(""+c.backgroundcolor)?(s.fillStyle="#"+c.backgroundcolor,s.fillRect(0,0,m,g)):s.clearRect(0,0,m,g),i=s.getImageData(0,0,m,g),{buffer:i.data,ispng:!1}}function p(){return s.putImageData(i,0,0),n}}function nF(){var n=0,o=0,i=0,s=0,l=0,c=0,d=0,f=0,p,m="",g,v="",w=[],A={},k,C,M=.55228475-45e-5,S,I,E,j;return{setopts(F){p=F},scale(F,O){k=F,C=O},measure(F,O,N,H){N=N|0,H=H|0;for(var L=dl.lookup(O),_=0,V=0,$=0,z=0,Q=F.length;z -`,g=null)},clip:function(F){var O='',v="clip"+w.length,w.push(O)},unclip:function(){v=""},text(F,O,N,H,L){for(var _=dl.lookup(L.name),V=L.width|0,$=L.height|0,z=L.dx|0,Q="",G=0;G -`)},end(){var F="";for(var O in A)F+=A[O]+`" /> +`)),s.current=!0),V.current){S(z),V.current=!1;return}I(z)},[o.autoHeight,I,i]);ko(N,[N]),ei(n,"sortedRowsSet",N),ei(n,"paginationModelChange",N),ei(n,"columnsChange",N),Jt(n,"resize",$),ei(n,"debouncedResize",o.onResize)}function K2e(n,o,i){if(i!==void 0)return i;if(n===null||o===0)return 0;const l=ri(n).createElement("div");l.style.width="99px",l.style.height="99px",l.style.position="absolute",l.style.overflow="scroll",l.className="scrollDiv",n.appendChild(l);const c=l.offsetWidth-l.clientWidth;return n.removeChild(l),c}function X2e(n,o){return Math.round(n*10**o)/10**o}function XE(n,o){return n.width===o.width&&n.height===o.height}const J2e=n=>{const{classes:o,headerAlign:i,isDragging:s,showLeftBorder:l,showRightBorder:c,groupId:d,pinnedPosition:f}=n;return Bt({root:["columnHeader",i==="left"&&"columnHeader--alignLeft",i==="center"&&"columnHeader--alignCenter",i==="right"&&"columnHeader--alignRight",s&&"columnHeader--moving",c&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder","withBorderColor",d===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",f==="left"&&"columnHeader--pinnedLeft",f==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Tn,o)};function Z2e(n){var te;const{groupId:o,width:i,depth:s,maxDepth:l,fields:c,height:d,colIndex:f,hasFocus:p,tabIndex:m,isLastColumn:g,pinnedPosition:v,style:w,indexInSection:A,sectionLength:k,gridHasFiller:C}=n,M=ir(),S=x.useRef(null),I=vn(),E=$t(I,BT),j=o?E[o]:{},{headerName:B=o??"",description:D="",headerAlign:R=void 0}=j;let N;const U=o&&((te=E[o])==null?void 0:te.renderHeaderGroup),L=x.useMemo(()=>({groupId:o,headerName:B,description:D,depth:s,maxDepth:l,fields:c,colIndex:f,isLastColumn:g}),[o,B,D,s,l,c,f,g]);o&&U&&(N=U(L));const _=Jb(v,A),V=Xb(v,A,k,M.showCellVerticalBorder,C),$=P({},n,{classes:M.classes,showLeftBorder:_,showRightBorder:V,headerAlign:R,depth:s,isDragging:!1}),z=B??o,Q=Fo(),G=o===null?`empty-group-cell-${Q}`:o,F=J2e($);x.useLayoutEffect(()=>{if(p){const de=S.current.querySelector('[tabindex="0"]')||S.current;de==null||de.focus()}},[I,p]);const q=x.useCallback(se=>de=>{$m(de)||I.current.publishEvent(se,L,de)},[I,L]),W=x.useMemo(()=>({onKeyDown:q("columnGroupHeaderKeyDown"),onFocus:q("columnGroupHeaderFocus"),onBlur:q("columnGroupHeaderBlur")}),[q]),X=typeof j.headerClassName=="function"?j.headerClassName(L):j.headerClassName;return b.jsx(WT,P({ref:S,classes:F,columnMenuOpen:!1,colIndex:f,height:d,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:m,isDraggable:!1,headerComponent:N,headerClassName:X,description:D,elementId:G,width:i,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:z,"aria-colspan":c.length,"data-fields":`|-${c.join("-|-")}-|`,style:w},W))}const JE=_e("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(n,o)=>o.columnHeaderRow})({display:"flex"}),epe=n=>{const{visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:f,headerGroupingMaxDepth:p,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:w}=n,[A,k]=x.useState(""),[C,M]=x.useState(""),S=Ru(),I=ka(),E=ir(),j=$t(S,Gl),B=$t(S,ZA),D=$t(S,RT),R=$t(S,Nd),N=$t(S,j1e),U=$t(S,Tm),L=NT(R,N,I.direction,U.left.length),_=j.columnsTotalWidth{S.current.columnHeadersContainerRef.current.scrollLeft=0},[S]);const V=x.useCallback(fe=>M(fe.field),[]),$=x.useCallback(()=>M(""),[]),z=x.useCallback(fe=>k(fe.field),[]),Q=x.useCallback(()=>k(""),[]),G=x.useMemo(()=>U.left.length?{firstColumnIndex:0,lastColumnIndex:U.left.length}:null,[U.left.length]),F=x.useMemo(()=>U.right.length?{firstColumnIndex:o.length-U.right.length,lastColumnIndex:o.length}:null,[U.right.length,o.length]);Jt(S,"columnResizeStart",V),Jt(S,"columnResizeStop",$),Jt(S,"columnHeaderDragStart",z),Jt(S,"columnHeaderDragEnd",Q);const q=fe=>{const{renderContext:he=N,maxLastColumn:Ie=o.length}=fe||{},ve=B?he.firstColumnIndex:0,be=B?he.lastColumnIndex:Ie;return{renderedColumns:o.slice(ve,be),firstColumnToRender:ve,lastColumnToRender:be}},W=(fe,he,Ie,ve=!1)=>{const be=(fe==null?void 0:fe.position)===Si.RIGHT,ke=(fe==null?void 0:fe.position)===void 0,ze=U.right.length>0&&be||U.right.length===0&&ke,Ge=L-Ie;return b.jsxs(x.Fragment,{children:[ke&&b.jsx("div",{role:"presentation",style:{width:Ge}}),he,ke&&b.jsx("div",{role:"presentation",className:nt(we.filler,ve&&we["filler--borderTop"])}),ze&&b.jsx(o8,{header:!0,borderTop:ve,pinnedRight:be})]})},X=({pinnedPosition:fe,columnIndex:he,computedWidth:Ie})=>{let ve;if(fe==="left"||fe==="right"){const be=n8(fe,Ie,he,R,j);fe==="left"&&(ve={left:be}),fe==="right"&&(ve={right:be})}return ve},te=(fe,he={})=>{const{renderedColumns:Ie,firstColumnToRender:ve}=q(fe),be=[];for(let ke=0;keb.jsxs(JE,{role:"row","aria-rowindex":p+1,ownerState:E,children:[G&&te({position:Si.LEFT,renderContext:G,minFirstColumn:G.firstColumnIndex,maxLastColumn:G.lastColumnIndex},{disableReorder:!0}),te({renderContext:N,minFirstColumn:U.left.length,maxLastColumn:o.length-U.right.length}),F&&te({position:Si.RIGHT,renderContext:F,minFirstColumn:F.firstColumnIndex,maxLastColumn:F.lastColumnIndex},{disableReorder:!0,separatorSide:r8.Left})]}),de=({depth:fe,params:he})=>{var Xe,Pt;const Ie=q(he);if(Ie.renderedColumns.length===0)return null;const{renderedColumns:ve,firstColumnToRender:be,lastColumnToRender:ke}=Ie,ze=v[fe],Ge=o[be].field,Ve=((Xe=D[Ge])==null?void 0:Xe[fe])??null,at=ze.findIndex(({groupId:mt,columnFields:pt})=>mt===Ve&&pt.includes(Ge)),We=o[ke-1].field,ue=((Pt=D[We])==null?void 0:Pt[fe])??null,Le=ze.findIndex(({groupId:mt,columnFields:pt})=>mt===ue&&pt.includes(We)),$e=ze.slice(at,Le+1).map(mt=>P({},mt,{columnFields:mt.columnFields.filter(pt=>g[pt]!==!1)})).filter(mt=>mt.columnFields.length>0),bt=$e[0].columnFields.indexOf(Ge),st=$e[0].columnFields.slice(0,bt).reduce((mt,pt)=>{const Fe=S.current.getColumn(pt);return mt+(Fe.computedWidth??0)},0);let Ze=be;const dt=$e.map(({groupId:mt,columnFields:pt},Fe)=>{const Be=f!==null&&f.depth===fe&&pt.includes(f.field),Je=c!==null&&c.depth===fe&&pt.includes(c.field)?0:-1,It={groupId:mt,width:pt.reduce((tt,Y)=>tt+S.current.getColumn(Y).computedWidth,0),fields:pt,colIndex:Ze,hasFocus:Be,tabIndex:Je},Nt=he.position,ht=X({pinnedPosition:Nt,columnIndex:Ze,computedWidth:It.width});Ze+=pt.length;let xt=Fe;return Nt==="left"&&(xt=Ze-1),b.jsx(Z2e,{groupId:mt,width:It.width,fields:It.fields,colIndex:It.colIndex,depth:fe,isLastColumn:It.colIndex===o.length-It.fields.length,maxDepth:p,height:j.headerHeight,hasFocus:Be,tabIndex:Je,pinnedPosition:Nt,style:ht,indexInSection:xt,sectionLength:ve.length,gridHasFiller:_},Fe)});return W(he,dt,st)};return{renderContext:N,leftRenderContext:G,rightRenderContext:F,pinnedColumns:U,visibleColumns:o,getCellOffsetStyle:X,getFillers:W,getColumnHeadersRow:se,getColumnsToRender:q,getColumnGroupHeadersRows:()=>{if(p===0)return null;const fe=[];for(let he=0;he({role:"rowgroup"})}},tpe=["className"],rpe=n=>{const{classes:o}=n;return Bt({root:["columnHeaders"]},Tn,o)},npe=zr("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(n,o)=>o.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),ope=x.forwardRef(function(o,i){const{className:s}=o,l=Qe(o,tpe),c=ir(),d=rpe(c);return b.jsx(npe,P({ref:i,className:nt(s,d.root),ownerState:c},l,{role:"presentation"}))}),ipe=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],ape=x.forwardRef(function(o,i){const{visibleColumns:s,sortColumnLookup:l,filterColumnLookup:c,columnHeaderTabIndexState:d,columnGroupHeaderTabIndexState:f,columnHeaderFocus:p,columnGroupHeaderFocus:m,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:w,columnGroupsHeaderStructure:A,hasOtherElementInTabSequence:k}=o,C=Qe(o,ipe),{getInnerProps:M,getColumnHeadersRow:S,getColumnGroupHeadersRows:I}=epe({visibleColumns:s,sortColumnLookup:l,filterColumnLookup:c,columnHeaderTabIndexState:d,columnGroupHeaderTabIndexState:f,columnHeaderFocus:p,columnGroupHeaderFocus:m,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:w,columnGroupsHeaderStructure:A,hasOtherElementInTabSequence:k});return b.jsxs(ope,P({ref:i},C,M(),{children:[I(),S()]}))}),spe=Ld(ape);function lpe(n){return null}function cpe(n){return null}const upe=x.forwardRef(function(o,i){const l=vn().current.getLocaleText("noResultsOverlayLabel");return b.jsx(t8,P({ref:i},o,{children:l}))}),dpe=["sortingOrder"],fpe=x.memo(function(o){const{sortingOrder:i}=o,s=Qe(o,dpe),l=ir(),[c]=i,d=c==="asc"?l.slots.columnSortedAscendingIcon:l.slots.columnSortedDescendingIcon;return d?b.jsx(d,P({},s)):null}),ppe=["native"];function hpe(n){let{native:o}=n,i=Qe(n,ppe);return o?b.jsx("option",P({},i)):b.jsx(ho,P({},i))}const mpe={booleanCellTrueIcon:Kue,booleanCellFalseIcon:hx,columnMenuIcon:Wue,openFilterButtonIcon:Lue,filterPanelDeleteIcon:hx,columnFilteredIcon:FE,columnSelectorIcon:Hue,columnUnsortedIcon:fpe,columnSortedAscendingIcon:OE,columnSortedDescendingIcon:RE,columnResizeIcon:Uue,densityCompactIcon:Gue,densityStandardIcon:Vue,densityComfortableIcon:Que,exportIcon:Yue,moreActionsIcon:Xue,treeDataCollapseIcon:TE,treeDataExpandIcon:BE,groupingCriteriaCollapseIcon:TE,groupingCriteriaExpandIcon:BE,detailPanelExpandIcon:DE,detailPanelCollapseIcon:que,rowReorderIcon:NE,quickFilterIcon:zue,quickFilterClearIcon:hx,columnMenuHideIcon:Jue,columnMenuSortAscendingIcon:OE,columnMenuSortDescendingIcon:RE,columnMenuFilterIcon:FE,columnMenuManageColumnsIcon:Zue,columnMenuClearIcon:ede,loadIcon:_ue,filterPanelAddIcon:DE,filterPanelRemoveAllIcon:tde,columnReorderIcon:NE},gpe=P({},mpe,{baseCheckbox:cp,baseTextField:Hn,baseFormControl:ki,baseSelect:$c,baseButton:oo,baseIconButton:fi,baseInputAdornment:jB,baseTooltip:Ol,basePopper:Eu,baseInputLabel:xd,baseSelectOption:hpe,baseChip:Pp}),vpe=P({},gpe,{cell:qce,skeletonCell:eue,columnHeaderFilterIconButton:$ue,columnHeaderSortIcon:Due,columnMenu:gde,columnHeaders:spe,detailPanels:lpe,footer:lfe,footerRowCount:Sfe,toolbar:null,pinnedRows:cpe,loadingOverlay:gfe,noResultsOverlay:upe,noRowsOverlay:vfe,pagination:yfe,filterPanel:Zde,columnsPanel:Mde,columnsManagement:YT,panel:Bde,row:jfe});function bpe({defaultSlots:n,slots:o}){const i=o;if(!i||Object.keys(i).length===0)return n;const s=P({},n);return Object.keys(i).forEach(l=>{const c=l;i[c]!==void 0&&(s[c]=i[c])}),s}function wpe(n){if(n==null)throw new TypeError("Cannot destructure "+n)}function xpe(n){const o=Object.keys(n);if(!o.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return n;const i={},s=n.forwardedProps??{};for(let l=0;l{const o=P({},(wpe(n),n));return xpe(o)},[n])}const Ape={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},s6={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Gc.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0},Cpe=vpe,kpe=n=>{const o=ype(HW({props:n,name:"MuiDataGrid"})),i=x.useMemo(()=>P({},Dae,o.localeText),[o.localeText]),s=x.useMemo(()=>bpe({defaultSlots:Cpe,slots:o.slots}),[o.slots]),l=x.useMemo(()=>Object.keys(s6).reduce((c,d)=>(c[d]=o[d]??s6[d],c),{}),[o]);return x.useMemo(()=>P({},o,l,{localeText:i,slots:s},Ape),[o,i,s,l])},Spe=n=>P({},n,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),ZE=(n,o,i)=>typeof n=="number"&&n>0?n:o,Ipe=(n,o)=>{const{getRowHeight:i,getRowSpacing:s,getEstimatedRowHeight:l}=o,c=x.useRef(Object.create(null)),d=x.useRef(-1),f=x.useRef(!1),p=$t(n,Rm),m=$t(n,Ka),g=$t(n,Yb),v=$t(n,s1),w=$f(n,o),A=$t(n,Nf),k=ZE(o.rowHeight,s6.rowHeight),C=Math.floor(k*p),M=x.useCallback(()=>{var Q,G;f.current=!1;const V=F=>{c.current[F.id]||(c.current[F.id]={sizes:{baseCenter:C},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:q,needsFirstMeasurement:W,sizes:X}=c.current[F.id];let te=typeof C=="number"&&C>0?C:52;const se=X.baseCenter;if(q)te=se;else if(i){const fe=i(P({},F,{densityFactor:p}));fe==="auto"?(W?te=(l?l(P({},F,{densityFactor:p})):C)??C:te=se,f.current=!0,c.current[F.id].autoHeight=!0):(te=ZE(fe,C),c.current[F.id].needsFirstMeasurement=!1,c.current[F.id].autoHeight=!1)}else c.current[F.id].needsFirstMeasurement=!1;const de={baseCenter:te};if(s){const fe=n.current.getRowIndexRelativeToVisibleRows(F.id),he=s(P({},F,{isFirstVisible:fe===0,isLastVisible:fe===w.rows.length-1,indexRelativeToCurrentPage:fe}));de.spacingTop=he.top??0,de.spacingBottom=he.bottom??0}const ee=n.current.unstable_applyPipeProcessors("rowHeight",de,F);return c.current[F.id].sizes=ee,ee},$=[],z=w.rows.reduce((F,q)=>{$.push(F);let W=0;const X=V(q);for(const te in X){const se=X[te];te!=="baseCenter"&&(W+=se)}return F+X.baseCenter+W},0);(Q=A==null?void 0:A.top)==null||Q.forEach(F=>{V(F)}),(G=A==null?void 0:A.bottom)==null||G.forEach(F=>{V(F)}),n.current.setState(F=>P({},F,{rowsMeta:{currentPageTotalHeight:z,positions:$}})),f.current||(d.current=1/0),n.current.forceUpdate()},[n,w.rows,C,i,s,l,A,p]),S=x.useCallback(V=>{const $=c.current[V];return $?$.sizes.baseCenter:C},[C]),I=V=>{var $;return($=c.current[V])==null?void 0:$.sizes},E=x.useCallback((V,$)=>{c.current[V].sizes.baseCenter=$,c.current[V].isResized=!0,c.current[V].needsFirstMeasurement=!1,M()},[M]),j=x.useMemo(()=>Ef(M,o.rowPositionsDebounceMs),[M,o.rowPositionsDebounceMs]),B=x.useCallback((V,$)=>{if(!c.current[V]||!c.current[V].autoHeight)return;const z=c.current[V].sizes.baseCenter!==$;c.current[V].needsFirstMeasurement=!1,c.current[V].sizes.baseCenter=$,z&&j()},[j]),D=x.useCallback(V=>{var $;return(($=c.current[V])==null?void 0:$.autoHeight)||!1},[]),R=x.useCallback(()=>d.current,[]),N=x.useCallback(V=>{f.current&&V>d.current&&(d.current=V)},[]),U=x.useCallback(()=>{c.current={},M()},[M]);x.useEffect(()=>{M()},[C,m,g,v,M]),s8(n,"rowHeight",M);const L={unstable_setLastMeasuredRowIndex:N,unstable_getRowHeight:S,unstable_getRowInternalSizes:I,unstable_setRowHeight:E,unstable_storeRowHeightMeasurement:B,resetRowHeights:U},_={getLastMeasuredRowIndex:R,rowHasAutoHeight:D};Zr(n,L,"public"),Zr(n,_,"private")},Epe=n=>{const o=x.useCallback((l={})=>n.current.unstable_applyPipeProcessors("exportState",{},l),[n]),i=x.useCallback(l=>{n.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:l}).callbacks.forEach(d=>{d()}),n.current.forceUpdate()},[n]);Zr(n,{exportState:o,restoreState:i},"public")},Mpe=n=>{const o=x.useRef({}),i=(f,p)=>{var m;return(m=o.current[f])==null?void 0:m[p]},s=()=>{o.current={}},l=x.useCallback(({rowId:f,minFirstColumn:p,maxLastColumn:m,columns:g})=>{for(let v=p;v1&&(v+=w.colSpan-1)}},[n]),c={unstable_getCellColSpanInfo:i},d={resetColSpan:s,calculateColSpan:l};Zr(n,c,"public"),Zr(n,d,"private"),Jt(n,"columnOrderChange",s)};function Ppe(n){const{apiRef:o,lookup:i,columnIndex:s,rowId:l,minFirstColumnIndex:c,maxLastColumnIndex:d,columns:f}=n,p=f.length,m=f[s],g=o.current.getRow(l),v=o.current.getRowValue(g,m),w=typeof m.colSpan=="function"?m.colSpan(v,g,m,o):m.colSpan;if(!w||w===1)return vx(i,l,s,{spannedByColSpan:!1,cellProps:{colSpan:1,width:m.computedWidth}}),{colSpan:1};let A=m.computedWidth;for(let k=1;k=c&&C{if(iT(n)){if(i[n.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${n.field} occurs two times in the grouping model:`,`- ${i[n.field].join(" > ")}`,`- ${o.join(" > ")}`].join(` +`));i[n.field]=o;return}const{groupId:s,children:l}=n;l.forEach(c=>{tF(c,[...o,s],i)})},l6=n=>{if(!n)return{};const o={};return n.forEach(i=>{tF(i,[],o)}),o},c6=(n,o,i)=>{const s=p=>o[p]??[],l=[],c=Math.max(...n.map(p=>s(p).length)),d=(p,m,g)=>G2(s(p).slice(0,g+1),s(m).slice(0,g+1)),f=(p,m)=>!!(i!=null&&i.left&&i.left.includes(p)&&!i.left.includes(m)||i!=null&&i.right&&!i.right.includes(p)&&i.right.includes(m));for(let p=0;p{const w=s(v)[p]??null;if(g.length===0)return[{columnFields:[v],groupId:w}];const A=g[g.length-1],k=A.columnFields[A.columnFields.length-1];return A.groupId!==w||!d(k,v,p)||f(k,v)?[...g,{columnFields:[v],groupId:w}]:[...g.slice(0,g.length-1),{columnFields:[...A.columnFields,v],groupId:w}]},[]);l.push(m)}return l},jpe=["groupId","children"],l8=n=>{let o={};return n.forEach(i=>{if(iT(i))return;const{groupId:s,children:l}=i,c=Qe(i,jpe);if(!s)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const d=P({},c,{groupId:s}),f=l8(l);if(f[s]!==void 0||o[s]!==void 0)throw new Error(`MUI X: The groupId ${s} is used multiple times in the columnGroupingModel.`);o=P({},o,f,{[s]:d})}),P({},o)},Ope=(n,o,i)=>{if(!o.columnGroupingModel)return n;const s=mu(i),l=Bm(i),c=l8(o.columnGroupingModel??[]),d=l6(o.columnGroupingModel??[]),f=c6(s,d,i.current.state.pinnedColumns??{}),p=l.length===0?0:Math.max(...l.map(m=>{var g;return((g=d[m])==null?void 0:g.length)??0}));return P({},n,{columnGrouping:{lookup:c,unwrappedGroupingModel:d,headerStructure:f,maxDepth:p}})},Rpe=(n,o)=>{const i=x.useCallback(f=>RT(n)[f]??[],[n]),s=x.useCallback(()=>BT(n),[n]);Zr(n,{getColumnGroupPath:i,getAllGroupDetails:s},"public");const c=x.useCallback(()=>{const f=l6(o.columnGroupingModel??[]);n.current.setState(p=>{var w;const m=((w=p.columns)==null?void 0:w.orderedFields)??[],g=p.pinnedColumns??{},v=c6(m,f,g);return P({},p,{columnGrouping:P({},p.columnGrouping,{headerStructure:v})})})},[n,o.columnGroupingModel]),d=x.useCallback(f=>{var C,M;const p=((M=(C=n.current).getPinnedColumns)==null?void 0:M.call(C))??{},m=mu(n),g=Bm(n),v=l8(f??[]),w=l6(f??[]),A=c6(m,w,p),k=g.length===0?0:Math.max(...g.map(S=>{var I;return((I=w[S])==null?void 0:I.length)??0}));n.current.setState(S=>P({},S,{columnGrouping:{lookup:v,unwrappedGroupingModel:w,headerStructure:A,maxDepth:k}}))},[n]);Jt(n,"columnIndexChange",c),Jt(n,"columnsChange",()=>{d(o.columnGroupingModel)}),Jt(n,"columnVisibilityModelChange",()=>{d(o.columnGroupingModel)}),x.useEffect(()=>{d(o.columnGroupingModel)},[d,o.columnGroupingModel])};function Bpe(){let n,o;const i=new Promise((s,l)=>{n=s,o=l});return i.resolve=n,i.reject=o,i}function eM(n,o){if(o!==void 0&&n.changedTouches){for(let i=0;iZA(n),s=$t(n,i);return x.useEffect(()=>{o.current&&s===!1&&(o.current.resolve(),o.current=void 0)}),()=>{if(!o.current){if(i()===!1)return Promise.resolve();o.current=Bpe()}return o.current}}function $pe(n,o){if(n.length<4)return n;const i=n.slice();i.sort((f,p)=>f-p);const s=i[Math.floor(i.length*.25)],l=i[Math.floor(i.length*.75)-1],c=l-s,d=c<5?5:c*o;return i.filter(f=>f>s-d&&f{const f=Hce(n.current,c.field).map(k=>k.getBoundingClientRect().width??0),p=o.includeOutliers?f:$pe(f,o.outliersFactor);if(o.includeHeaders){const k=zce(n.current,c.field);if(k){const C=k.querySelector(`.${we.columnHeaderTitle}`),M=k.querySelector(`.${we.columnHeaderTitleContainerContent}`),S=k.querySelector(`.${we.iconButtonContainer}`),I=k.querySelector(`.${we.menuIcon}`),E=C??M,j=window.getComputedStyle(k,null),B=parseInt(j.paddingLeft,10)+parseInt(j.paddingRight,10),R=E.scrollWidth+1+B+((S==null?void 0:S.clientWidth)??0)+((I==null?void 0:I.clientWidth)??0);p.push(R)}}const m=c.minWidth!==-1/0&&c.minWidth!==void 0,g=c.maxWidth!==1/0&&c.maxWidth!==void 0,v=m?c.minWidth:0,w=g?c.maxWidth:1/0,A=p.length===0?0:Math.max(...p);s[c.field]=Mu(A,v,w)}),l.classList.remove(we.autosizing),s}const zpe=n=>P({},n,{columnResize:{resizingColumnField:""}});function Hpe(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const Upe=(n,o)=>{const i=ka(),s=Ha(n,"useGridColumnResize"),l=Mf(Hpe).current,c=x.useRef(),d=x.useRef(),f=Fl(),p=x.useRef(),m=U=>{var G,F;s.debug(`Updating width to ${U} for col ${l.colDef.field}`);const L=l.columnHeaderElement.offsetWidth,_=U-L,V=U-l.initialColWidth,$=l.initialTotalWidth+V;(F=(G=n.current.rootElementRef)==null?void 0:G.current)==null||F.style.setProperty("--DataGrid-rowWidth",`${$}px`),l.colDef.computedWidth=U,l.colDef.width=U,l.colDef.flex=0,l.columnHeaderElement.style.width=`${U}px`,l.columnHeaderElement.style.minWidth=`${U}px`,l.columnHeaderElement.style.maxWidth=`${U}px`;const z=l.headerFilterElement;z&&(z.style.width=`${U}px`,z.style.minWidth=`${U}px`,z.style.maxWidth=`${U}px`),l.groupHeaderElements.forEach(q=>{const W=q;let X;W.getAttribute("aria-colspan")==="1"?X=`${U}px`:X=`${W.offsetWidth+_}px`,W.style.width=X,W.style.minWidth=X,W.style.maxWidth=X}),l.cellElements.forEach(q=>{const W=q;let X;W.getAttribute("aria-colspan")==="1"?X=`${U}px`:X=`${W.offsetWidth+_}px`,W.style.setProperty("--width",X)});const Q=n.current.unstable_applyPipeProcessors("isColumnPinned",!1,l.colDef.field);Q===Si.LEFT&&(t2(l.fillerLeft,"width",_),l.leftPinnedCellsAfter.forEach(q=>{t2(q,"left",_)}),l.leftPinnedHeadersAfter.forEach(q=>{t2(q,"left",_)})),Q===Si.RIGHT&&(t2(l.fillerRight,"width",_),l.rightPinnedCellsBefore.forEach(q=>{t2(q,"right",_)}),l.rightPinnedHeadersBefore.forEach(q=>{t2(q,"right",_)}))},g=U=>{if(S(),l.previousMouseClickEvent){const L=l.previousMouseClickEvent,_=L.timeStamp,V=L.clientX,$=L.clientY;if(U.timeStamp-_<300&&U.clientX===V&&U.clientY===$){l.previousMouseClickEvent=void 0,n.current.publishEvent("columnResizeStop",null,U);return}}if(l.colDef){n.current.setColumnWidth(l.colDef.field,l.colDef.width),s.debug(`Updating col ${l.colDef.field} with new width: ${l.colDef.width}`);const L=Lc(n.current.state);l.groupHeaderElements.forEach(_=>{const V=Bce(_),$=_,Q=`${V.reduce((G,F)=>L.columnVisibilityModel[F]!==!1?G+L.lookup[F].computedWidth:G,0)}px`;$.style.width=Q,$.style.minWidth=Q,$.style.maxWidth=Q})}f.start(0,()=>{n.current.publishEvent("columnResizeStop",null,U)})},v=(U,L,_)=>{var Q;const V=n.current.rootElementRef.current;l.initialColWidth=U.computedWidth,l.initialTotalWidth=n.current.getRootDimensions().rowWidth,l.colDef=U,l.columnHeaderElement=Rce(n.current.columnHeadersContainerRef.current,U.field);const $=V.querySelector(`.${we.headerFilterRow} [data-field="${Bu(U.field)}"]`);$&&(l.headerFilterElement=$),l.groupHeaderElements=Tce((Q=n.current.columnHeadersContainerRef)==null?void 0:Q.current,U.field),l.cellElements=Fce(l.columnHeaderElement,n.current),l.fillerLeft=SE(n.current,"filler--pinnedLeft"),l.fillerRight=SE(n.current,"filler--pinnedRight");const z=n.current.unstable_applyPipeProcessors("isColumnPinned",!1,l.colDef.field);l.leftPinnedCellsAfter=z!==Si.LEFT?[]:Dce(n.current,l.columnHeaderElement),l.rightPinnedCellsBefore=z!==Si.RIGHT?[]:Nce(n.current,l.columnHeaderElement),l.leftPinnedHeadersAfter=z!==Si.LEFT?[]:$ce(n.current,l.columnHeaderElement),l.rightPinnedHeadersBefore=z!==Si.RIGHT?[]:Lce(n.current,l.columnHeaderElement),d.current=Dpe(L,i.direction),c.current=Tpe(_,l.columnHeaderElement.getBoundingClientRect(),d.current)},w=ln(g),A=ln(U=>{if(U.buttons===0){w(U);return}let L=tM(c.current,U.clientX,l.columnHeaderElement.getBoundingClientRect(),d.current);L=Mu(L,l.colDef.minWidth,l.colDef.maxWidth),m(L);const _={element:l.columnHeaderElement,colDef:l.colDef,width:L};n.current.publishEvent("columnResize",_,U)}),k=ln(U=>{eM(U,p.current)&&g(U)}),C=ln(U=>{const L=eM(U,p.current);if(!L)return;if(U.type==="mousemove"&&U.buttons===0){k(U);return}let _=tM(c.current,L.x,l.columnHeaderElement.getBoundingClientRect(),d.current);_=Mu(_,l.colDef.minWidth,l.colDef.maxWidth),m(_);const V={element:l.columnHeaderElement,colDef:l.colDef,width:_};n.current.publishEvent("columnResize",V,U)}),M=ln(U=>{const L=w3(U.target,we["columnSeparator--resizable"]);if(!L)return;const _=U.changedTouches[0];_!=null&&(p.current=_.identifier);const V=w3(U.target,we.columnHeader),$=Oce(V),z=n.current.getColumn($);s.debug(`Start Resize on col ${z.field}`),n.current.publishEvent("columnResizeStart",{field:$},U),v(z,L,_.clientX);const Q=ri(U.currentTarget);Q.addEventListener("touchmove",C),Q.addEventListener("touchend",k)}),S=x.useCallback(()=>{const U=ri(n.current.rootElementRef.current);U.body.style.removeProperty("cursor"),U.removeEventListener("mousemove",A),U.removeEventListener("mouseup",w),U.removeEventListener("touchmove",C),U.removeEventListener("touchend",k),setTimeout(()=>{U.removeEventListener("click",rM,!0)},100),l.columnHeaderElement&&(l.columnHeaderElement.style.pointerEvents="unset")},[n,l,A,w,C,k]),I=x.useCallback(({field:U})=>{n.current.setState(L=>P({},L,{columnResize:P({},L.columnResize,{resizingColumnField:U})})),n.current.forceUpdate()},[n]),E=x.useCallback(()=>{n.current.setState(U=>P({},U,{columnResize:P({},U.columnResize,{resizingColumnField:""})})),n.current.forceUpdate()},[n]),j=ln(({colDef:U},L)=>{if(L.button!==0||!L.currentTarget.classList.contains(we["columnSeparator--resizable"]))return;L.preventDefault(),s.debug(`Start Resize on col ${U.field}`),n.current.publishEvent("columnResizeStart",{field:U.field},L),v(U,L.currentTarget,L.clientX);const _=ri(n.current.rootElementRef.current);_.body.style.cursor="col-resize",l.previousMouseClickEvent=L.nativeEvent,_.addEventListener("mousemove",A),_.addEventListener("mouseup",w),_.addEventListener("click",rM,!0)}),B=ln((U,L)=>{if(o.disableAutosize||L.button!==0)return;const _=n.current.state.columns.lookup[U.field];_.resizable!==!1&&n.current.autosizeColumns(P({},o.autosizeOptions,{columns:[_.field]}))}),D=Npe(n),R=x.useRef(!1),N=x.useCallback(async U=>{var z;if(!((z=n.current.rootElementRef)==null?void 0:z.current)||R.current)return;R.current=!0;const _=Lc(n.current.state),V=P({},vce,U,{columns:(U==null?void 0:U.columns)??_.orderedFields});V.columns=V.columns.filter(Q=>_.columnVisibilityModel[Q]!==!1);const $=V.columns.map(Q=>n.current.state.columns.lookup[Q]);try{n.current.unstable_setColumnVirtualization(!1),await D();const Q=Lpe(n,V,$),G=$.map(F=>P({},F,{width:Q[F.field],computedWidth:Q[F.field]}));if(V.expand){const q=_.orderedFields.map(te=>_.lookup[te]).filter(te=>_.columnVisibilityModel[te.field]!==!1).reduce((te,se)=>te+(Q[se.field]??se.computedWidth??se.width),0),X=n.current.getRootDimensions().viewportInnerSize.width-q;if(X>0){const te=X/(G.length||1);G.forEach(se=>{se.width+=te,se.computedWidth+=te})}}n.current.updateColumns(G),G.forEach((F,q)=>{if(F.width!==$[q].width){const W=F.width;n.current.publishEvent("columnWidthChange",{element:n.current.getColumnHeaderElement(F.field),colDef:F,width:W})}})}finally{n.current.unstable_setColumnVirtualization(!0),R.current=!1}},[n,D]);x.useEffect(()=>S,[S]),rb(()=>{o.autosizeOnMount&&Promise.resolve().then(()=>{n.current.autosizeColumns(o.autosizeOptions)})}),xT(n,()=>{var U;return(U=n.current.columnHeadersContainerRef)==null?void 0:U.current},"touchstart",M,{passive:!0}),Zr(n,{autosizeColumns:N},"public"),Jt(n,"columnResizeStop",E),Jt(n,"columnResizeStart",I),Jt(n,"columnSeparatorMouseDown",j),Jt(n,"columnSeparatorDoubleClick",B),ei(n,"columnResize",o.onColumnResize),ei(n,"columnWidthChange",o.onColumnWidthChange)};function t2(n,o,i){n&&(n.style[o]=`${parseInt(n.style[o],10)+i}px`)}const Gpe=(n,o)=>{const i=Wfe(n,o);return H2e(i,o),N2e(i),Ps(_2e,i,o),Ps($2e,i,o),Ps(e2e,i,o),Ps(R2e,i,o),Ps(j2e,i,o),Ps(h2e,i,o),Ps(U2e,i,o),Ps(A2e,i,o),Ps(u2e,i,o),Ps(r2e,i,o),Ps(zpe,i,o),Ps(x2e,i,o),Ps(Spe,i,o),Ps(Jfe,i,o),Ps(Ope,i,o),Ps(O1e,i,o),v2e(i,o),L2e(i,o),t2e(i,o),B2e(i,o),Uce(i),Mpe(i),Rpe(i,o),O2e(i,o),m2e(i,o),C2e(i,o),p2e(i,o),G2e(i,o),n2e(i,o),Upe(i,o),y2e(i,o),Ipe(i,o),V2e(i,o),Zfe(i),i2e(i,o),c2e(i,o),Xfe(i,o),Y2e(i,o),Q2e(i,o),Epe(i),R1e(i,o),i},rF=x.forwardRef(function(o,i){const s=kpe(o),l=Gpe(s.apiRef,s);return b.jsx(Ofe,{privateApiRef:l,props:s,children:b.jsxs(iue,P({className:s.className,style:s.style,sx:s.sx,ref:i},s.forwardedProps,{children:[b.jsx(ufe,{}),b.jsx(kce,{}),b.jsx(Sce,{})]}))})}),nF=x.memo(rF);rF.propTypes={apiRef:Me.shape({current:Me.object.isRequired}),"aria-label":Me.string,"aria-labelledby":Me.string,autoHeight:Me.bool,autoPageSize:Me.bool,autosizeOnMount:Me.bool,autosizeOptions:Me.shape({columns:Me.arrayOf(Me.string),expand:Me.bool,includeHeaders:Me.bool,includeOutliers:Me.bool,outliersFactor:Me.number}),cellModesModel:Me.object,checkboxSelection:Me.bool,classes:Me.object,clipboardCopyCellDelimiter:Me.string,columnBufferPx:Me.number,columnGroupingModel:Me.arrayOf(Me.object),columnHeaderHeight:Me.number,columns:Me.arrayOf(Me.object).isRequired,columnVisibilityModel:Me.object,density:Me.oneOf(["comfortable","compact","standard"]),disableAutosize:Me.bool,disableColumnFilter:Me.bool,disableColumnMenu:Me.bool,disableColumnResize:Me.bool,disableColumnSelector:Me.bool,disableColumnSorting:Me.bool,disableDensitySelector:Me.bool,disableEval:Me.bool,disableMultipleRowSelection:Me.bool,disableRowSelectionOnClick:Me.bool,disableVirtualization:Me.bool,editMode:Me.oneOf(["cell","row"]),estimatedRowCount:Me.number,experimentalFeatures:Me.shape({warnIfFocusStateIsNotSynced:Me.bool}),filterDebounceMs:Me.number,filterMode:Me.oneOf(["client","server"]),filterModel:Me.shape({items:Me.arrayOf(Me.shape({field:Me.string.isRequired,id:Me.oneOfType([Me.number,Me.string]),operator:Me.string.isRequired,value:Me.any})).isRequired,logicOperator:Me.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:Me.bool,quickFilterLogicOperator:Me.oneOf(["and","or"]),quickFilterValues:Me.array}),forwardedProps:Me.object,getCellClassName:Me.func,getDetailPanelContent:Me.func,getEstimatedRowHeight:Me.func,getRowClassName:Me.func,getRowHeight:Me.func,getRowId:Me.func,getRowSpacing:Me.func,hideFooter:Me.bool,hideFooterPagination:Me.bool,hideFooterSelectedRowCount:Me.bool,ignoreDiacritics:Me.bool,ignoreValueFormatterDuringExport:Me.oneOfType([Me.shape({clipboardExport:Me.bool,csvExport:Me.bool}),Me.bool]),initialState:Me.object,isCellEditable:Me.func,isRowSelectable:Me.func,keepNonExistentRowsSelected:Me.bool,loading:Me.bool,localeText:Me.object,logger:Me.shape({debug:Me.func.isRequired,error:Me.func.isRequired,info:Me.func.isRequired,warn:Me.func.isRequired}),logLevel:Me.oneOf(["debug","error","info","warn",!1]),nonce:Me.string,onCellClick:Me.func,onCellDoubleClick:Me.func,onCellEditStart:Me.func,onCellEditStop:Me.func,onCellKeyDown:Me.func,onCellModesModelChange:Me.func,onClipboardCopy:Me.func,onColumnHeaderClick:Me.func,onColumnHeaderDoubleClick:Me.func,onColumnHeaderEnter:Me.func,onColumnHeaderLeave:Me.func,onColumnHeaderOut:Me.func,onColumnHeaderOver:Me.func,onColumnOrderChange:Me.func,onColumnResize:Me.func,onColumnVisibilityModelChange:Me.func,onColumnWidthChange:Me.func,onDensityChange:Me.func,onFilterModelChange:Me.func,onMenuClose:Me.func,onMenuOpen:Me.func,onPaginationMetaChange:Me.func,onPaginationModelChange:Me.func,onPreferencePanelClose:Me.func,onPreferencePanelOpen:Me.func,onProcessRowUpdateError:Me.func,onResize:Me.func,onRowClick:Me.func,onRowCountChange:Me.func,onRowDoubleClick:Me.func,onRowEditStart:Me.func,onRowEditStop:Me.func,onRowModesModelChange:Me.func,onRowSelectionModelChange:Me.func,onSortModelChange:Me.func,onStateChange:Me.func,pageSizeOptions:Me.arrayOf(Me.oneOfType([Me.number,Me.shape({label:Me.string.isRequired,value:Me.number.isRequired})]).isRequired),pagination:Me.oneOf([!0]),paginationMeta:Me.shape({hasNextPage:Me.bool}),paginationMode:Me.oneOf(["client","server"]),paginationModel:Me.shape({page:Me.number.isRequired,pageSize:Me.number.isRequired}),processRowUpdate:Me.func,resizeThrottleMs:Me.number,rowBufferPx:Me.number,rowCount:Me.number,rowHeight:Me.number,rowModesModel:Me.object,rowPositionsDebounceMs:Me.number,rows:Me.arrayOf(Me.object),rowSelection:Me.bool,rowSelectionModel:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.number,Me.string]).isRequired),Me.number,Me.string]),rowSpacingType:Me.oneOf(["border","margin"]),scrollbarSize:Me.number,showCellVerticalBorder:Me.bool,showColumnVerticalBorder:Me.bool,slotProps:Me.object,slots:Me.object,sortingMode:Me.oneOf(["client","server"]),sortingOrder:Me.arrayOf(Me.oneOf(["asc","desc"])),sortModel:Me.arrayOf(Me.shape({field:Me.string.isRequired,sort:Me.oneOf(["asc","desc"])})),sx:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.func,Me.object,Me.bool])),Me.func,Me.object])};var Se=null,t=0,r=[],e={};function a(n){if(arguments.length){if(!(n instanceof Array)){n=new Array(+arguments[0]);for(var o=0,i=n.length;o=0&&r[o]!==1/0;o--);if(o<0)throw new Error("array-marker-not-found");n=r.splice(o+1,t-1-o),t=o}return n.b=n,n.o=0,n}function Tt(){for(var n=t-1;n>=0&&r[n]!==1/0;n-=2)if(r[n-1]===1/0)throw new Error("dict-malformed-stack");if(n<0)throw new Error("dict-marker-not-found");for(var o=new Map,i=n+1;i=0;s--)n[o+s]=i[s];else if(n instanceof Array)for(var c=n.b,d=o+n.o,f=i.b,p=i.o,s=0,l=i.length;s0&&r[--t]!==1/0;);}function mo(){for(var n=t-1;n>=0&&r[n]!==1/0;n--);return t-n-1}function oe(n){for(var o=0,i=n.length,s=n.b,l=n.o;oo}function Hs(n,o){return n instanceof Uint8Array&&(n=Zs(n)),o instanceof Uint8Array&&(o=Zs(o)),n>=o}function gu(n,o){return typeof n=="boolean"?n&&o:n&o}function c8(n,o){return typeof n=="boolean"?n||o:n|o}function ti(n,o){return typeof n=="boolean"?!n&&o||n&&!o:n^o}function fr(n){return typeof n=="boolean"?!n:~n}var h=function(n){return function(o){return Number.isInteger(o)?o:(n[0]=o,n[0])}}(new Float32Array(1));function ne(){var n=r[--t],o=r[--t];throw new Error(Zs(o)+": "+Zs(n))}function Ot(){var n=r[--t],o=r[t-1],i=o instanceof Map;for(var s in n){var l;if(i){if(!o.has(s))continue;l=o.get(s)}else{if(!o.hasOwnProperty(s))continue;l=o[s]}var c=n[s],d=typeof c;if(c==null||d=="number"){if(!isFinite(+l))throw new Error("bwipp.invalidOptionType: "+s+": not a realtype: "+l);typeof l=="string"&&(l=+l,i?o.set(s,l):o[s]=l)}else if(d=="boolean"){if(l!==!0&&l!==!1){if(l==null||(l|0)===l)l=!!l;else if(l=="true")l=!0;else if(l=="false")l=!1;else throw new Error("bwipp.invalidOptionType: "+s+": not a booleantype: "+l);i?o.set(s,l):o[s]=l}}else if(d=="string"||c instanceof Uint8Array){if(typeof l=="number")l=""+l,i?o.set(s,l):o[s]=l;else if(typeof l!="string"&&!(l instanceof Uint8Array))throw new Error("bwipp.invalidOptionType: "+s+": not a stringtype: "+l)}n[s]=l}}function yr(n){n.$ctx||(n.$ctx={});var o=Object.getPrototypeOf(e);Object.setPrototypeOf(n.$ctx,o),Object.setPrototypeOf(e,n.$ctx)}function Do(){e=Object.create(e),yr(Do),e.fncvals=r[--t],e.barcode=r[--t];var n="parse";e[n]=u(e.fncvals,n),delete e.fncvals[n];var o="parsefnc";e[o]=u(e.fncvals,o),delete e.fncvals[o];var i="parseonly",s=u(e.fncvals,i)!==void 0;e[i]=s,delete e.fncvals[i];var l="eci",c=u(e.fncvals,l)!==void 0;if(e[l]=c,delete e.fncvals[l],!Do.__225__){e=Object.create(e),r[t++]=1/0;var d=a(["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","","","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US"]);r[t++]=0;for(var f=0,p=d.length;f=3){var j=r[--t],B=T(j,0,3),D=e.ctrl,R=u(D,B)!==void 0;if(r[t++]=j,r[t++]=D,r[t++]=B,R){e.j=h(e.j-1);var N=r[--t];y(e.msg,e.j,u(r[--t],N)),e.j=h(e.j+1);var U=r[--t];r[t++]=T(U,3,U.length-3);break}else t-=2}var L=r[--t];if(r[t++]=L,L.length>=2){var _=r[--t],V=T(_,0,2),$=e.ctrl,z=u($,V)!==void 0;if(r[t++]=_,r[t++]=$,r[t++]=V,z){e.j=h(e.j-1);var Q=r[--t];y(e.msg,e.j,u(r[--t],Q)),e.j=h(e.j+1);var G=r[--t];r[t++]=T(G,2,G.length-2);break}else t-=2}var F=r[--t];if(r[t++]=F,F.length>=3){var q=r[--t],W=T(q,0,3);r[t++]=q,r[t++]=!0;for(var X=0,te=W.length;X57)&&(t--,r[t++]=!1)}if(r[--t]){var de=r[--t],ee=ft(T(de,0,3));r[t++]=de,r[t++]=ee,ee>255&&(t-=2,r[t++]="bwipp.invalidOrdinal#282",r[t++]="Ordinal must be 000 to 255",ne()),e.j=h(e.j-1),y(e.msg,e.j,r[--t]),e.j=h(e.j+1);var fe=r[--t];r[t++]=T(fe,3,fe.length-3)}}}if(c8(e.parseonly,fr(e.parsefnc))||u(e.msg,h(e.j-1))!=94)break;e.j=h(e.j-1);var he=r[--t];r[t++]=he,he.length<3&&(t--,r[t++]="bwipp.truncatedFNC#301",r[t++]="Function character truncated",ne());var Ie=r[--t];if(r[t++]=Ie,u(Ie,0)==94){y(e.msg,e.j,94),e.j=h(e.j+1);var ve=r[--t];r[t++]=T(ve,1,ve.length-1);break}var be=r[--t];if(r[t++]=be,ae(T(be,0,3),"ECI")&&e.eci){var ke=r[--t];r[t++]=ke,ke.length<9&&(t--,r[t++]="bwipp.truncatedECI#312",r[t++]="ECI truncated",ne());var ze=r[--t],Ge=T(ze,3,6);r[t++]=ze,r[t++]=Ge;for(var Ve=0,at=Ge.length;Ve57)&&(t-=2,r[t++]="bwipp.invalidECI#318",r[t++]="ECI must be 000000 to 999999",ne())}var ue=r[--t];r[t++]=0,Oe(ue,function(){var Je=r[--t],It=r[--t];r[t++]=h(It-h(Je-48))*10}),y(e.msg,e.j,~~(r[--t]/10)-1e6),e.j=h(e.j+1);var Le=r[--t];r[t++]=T(Le,9,Le.length-9);break}var $e=r[--t];r[t++]=$e,$e.length<4&&(t--,r[t++]="bwipp.truncatedFNC#329",r[t++]="Function character truncated",ne());var bt=r[--t],ot=T(bt,0,4),st=u(e.fncvals,ot)!==void 0;if(r[t++]=bt,r[t++]=ot,!st){var Ze=r[--t],dt=pe(Ze.length+28);K(dt,28,Ze),K(dt,0,"Unknown function character: ");var Xe=r[--t];r[t++]=dt,r[t++]=Xe,t--;var Pt=r[--t];r[t++]="bwipp.unknownFNC#335",r[t++]=Pt,ne()}y(e.msg,e.j,u(e.fncvals,r[--t])),e.j=h(e.j+1);var mt=r[--t];r[t++]=T(mt,4,mt.length-4);break}}else break}if(fr(e.parseonly))r[t++]=T(e.msg,0,e.j);else{r[t++]=pe(e.j);for(var pt=0,Fe=h(e.j-1);pt<=Fe;pt+=1){var Be=r[--t];y(Be,pt,u(e.msg,pt)),r[t++]=Be}}e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function Jr(){if(e=Object.create(e),yr(Jr),!Jr.__2469__){e=Object.create(e);var n=new Map([["cset","N"],["min",18],["max",18],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),o=a([n]),i=a([]),s=new Map([["parts",o],["dlpkey",i]]),l=a(["lintcsum","lintkey"]),c=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",l]]),d=a([c]),f=a(["255","37"]),p=a(["22","10","21"]),m=a(["235"]),g=a([p,m]),v=new Map([["parts",d],["ex",f],["dlpkey",g]]),w=a(["lintcsum","lintkey"]),A=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",w]]),k=a([A]),C=a(["01","03"]),M=a(["37"]),S=a([M]),I=a([S]),E=new Map([["parts",k],["ex",C],["req",I]]),j=a(["lintcsum","lintkey"]),B=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",j]]),D=a([B]),R=new Map([["parts",D],["ex",a(["01","02","37"])],["dlattr",!1]]),N=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),U=new Map([["parts",a([N])],["req",a([a([a(["01"]),a(["02"]),a(["03"]),a(["8006"]),a(["8026"])])])]]),L=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),_=new Map([["parts",a([L])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),V=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),$=new Map([["parts",a([V])],["req",a([a([a(["8020"])])])]]),z=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),Q=new Map([["parts",a([z])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),G=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),F=new Map([["parts",a([G])],["req",a([a([a(["01"]),a(["02"]),a(["255"]),a(["8006"]),a(["8026"])])])]]),q=new Map([["cset","N"],["min",2],["max",2],["opt",!1],["linters",a([])]]),W=new Map([["parts",a([q])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),X=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),te=new Map([["parts",a([X])],["ex",a(["235"])],["req",a([a([a(["01"]),a(["03"]),a(["8006"])])])],["dlattr",!1]]),se=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),de=new Map([["parts",a([se])],["req",a([a([a(["01"])])])],["dlattr",!1]]),ee=new Map([["cset","X"],["min",1],["max",28],["opt",!1],["linters",a([])]]),fe=new Map([["parts",a([ee])],["req",a([a([a(["01"])])])],["dlattr",!1]]),he=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),Ie=new Map([["parts",a([he])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),ve=new Map([["cset","N"],["min",1],["max",6],["opt",!1],["linters",a([])]]),be=a([a([a(["01"]),a(["02"]),a(["03"]),a(["8006"]),a(["8026"])])]),ke=new Map([["parts",a([ve])],["req",be]]),ze=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),Ge=new Map([["parts",a([ze])],["req",a([a([a(["01"])])])]]),Ve=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),at=new Map([["parts",a([Ve])],["req",a([a([a(["01"]),a(["8006"])]),a([a(["21"])])])]]),We=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),ue=new Map([["parts",a([We])],["req",a([a([a(["01"]),a(["8006"])])])]]),Le=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),$e=new Map([["cset","X"],["min",1],["max",17],["opt",!0],["linters",a([])]]),bt=new Map([["parts",a([Le,$e])],["dlpkey",a([])]]),ot=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),st=new Map([["parts",a([ot])],["req",a([a([a(["414"])])])],["dlattr",!1]]),Ze=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),dt=new Map([["cset","N"],["min",1],["max",12],["opt",!0],["linters",a([])]]),Xe=new Map([["parts",a([Ze,dt])],["ex",a(["01","02","415","8006","8020","8026"])],["dlpkey",a([])]]),Pt=new Map([["cset","N"],["min",1],["max",8],["opt",!1],["linters",a([])]]),mt=new Map([["parts",a([Pt])],["req",a([a([a(["01"]),a(["02"])])])]]),pt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Fe=new Map([["parts",a([pt])],["ex",a(["310n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Be=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Je=new Map([["parts",a([Be])],["ex",a(["311n"])],["req",a([a([a(["01"]),a(["02"])])])]]),It=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Nt=new Map([["parts",a([It])],["ex",a(["312n"])],["req",a([a([a(["01"]),a(["02"])])])]]),ht=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),xt=new Map([["parts",a([ht])],["ex",a(["313n"])],["req",a([a([a(["01"]),a(["02"])])])]]),tt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Y=new Map([["parts",a([tt])],["ex",a(["314n"])],["req",a([a([a(["01"]),a(["02"])])])]]),re=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ie=new Map([["parts",a([re])],["ex",a(["315n"])],["req",a([a([a(["01"]),a(["02"])])])]]),le=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ge=new Map([["parts",a([le])],["ex",a(["316n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Pe=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),me=new Map([["parts",a([Pe])],["ex",a(["320n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Ee=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ce=new Map([["parts",a([Ee])],["ex",a(["321n"])],["req",a([a([a(["01"]),a(["02"])])])]]),je=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),He=new Map([["parts",a([je])],["ex",a(["322n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Ne=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ye=new Map([["parts",a([Ne])],["ex",a(["323n"])],["req",a([a([a(["01"]),a(["02"])])])]]),rt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Te=new Map([["parts",a([rt])],["ex",a(["324n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Ae=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ue=new Map([["parts",a([Ae])],["ex",a(["325n"])],["req",a([a([a(["01"]),a(["02"])])])]]),qe=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),De=new Map([["parts",a([qe])],["ex",a(["326n"])],["req",a([a([a(["01"]),a(["02"])])])]]),lt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),gt=new Map([["parts",a([lt])],["ex",a(["327n"])],["req",a([a([a(["01"]),a(["02"])])])]]),At=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),St=new Map([["parts",a([At])],["ex",a(["328n"])],["req",a([a([a(["01"]),a(["02"])])])]]),yt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ct=new Map([["parts",a([yt])],["ex",a(["329n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Re=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ce=new Map([["parts",a([Re])],["ex",a(["330n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Ye=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),et=new Map([["parts",a([Ye])],["ex",a(["331n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Et=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ut=new Map([["parts",a([Et])],["ex",a(["332n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Dt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),jt=new Map([["parts",a([Dt])],["ex",a(["333n"])],["req",a([a([a(["00"]),a(["01"])])])]]),nr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ft=new Map([["parts",a([nr])],["ex",a(["334n"])],["req",a([a([a(["00"]),a(["01"])])])]]),cr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),sr=new Map([["parts",a([cr])],["ex",a(["335n"])],["req",a([a([a(["00"]),a(["01"])])])]]),lr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ar=new Map([["parts",a([lr])],["ex",a(["336n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Qr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Er=new Map([["parts",a([Qr])],["ex",a(["337n"])],["req",a([a([a(["01"])])])]]),Pr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Wr=new Map([["parts",a([Pr])],["ex",a(["340n"])],["req",a([a([a(["00"]),a(["01"])])])]]),cn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),kr=new Map([["parts",a([cn])],["ex",a(["341n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Hr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),un=new Map([["parts",a([Hr])],["ex",a(["342n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Pn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Br=new Map([["parts",a([Pn])],["ex",a(["343n"])],["req",a([a([a(["00"]),a(["01"])])])]]),bn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),wn=new Map([["parts",a([bn])],["ex",a(["344n"])],["req",a([a([a(["00"]),a(["01"])])])]]),zt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ar=new Map([["parts",a([zt])],["ex",a(["345n"])],["req",a([a([a(["00"]),a(["01"])])])]]),mr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Cr=new Map([["parts",a([mr])],["ex",a(["346n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Yr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Xt=new Map([["parts",a([Yr])],["ex",a(["347n"])],["req",a([a([a(["00"]),a(["01"])])])]]),en=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Sr=new Map([["parts",a([en])],["ex",a(["348n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Kr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),hr=new Map([["parts",a([Kr])],["ex",a(["349n"])],["req",a([a([a(["00"]),a(["01"])])])]]),dn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),er=new Map([["parts",a([dn])],["ex",a(["350n"])],["req",a([a([a(["01"]),a(["02"])])])]]),jn=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),qr=new Map([["parts",a([jn])],["ex",a(["351n"])],["req",a([a([a(["01"]),a(["02"])])])]]),vo=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Or=new Map([["parts",a([vo])],["ex",a(["352n"])],["req",a([a([a(["01"]),a(["02"])])])]]),_n=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Nr=new Map([["parts",a([_n])],["ex",a(["353n"])],["req",a([a([a(["00"]),a(["01"])])])]]),jo=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),nn=new Map([["parts",a([jo])],["ex",a(["354n"])],["req",a([a([a(["00"]),a(["01"])])])]]),zo=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),xn=new Map([["parts",a([zo])],["ex",a(["355n"])],["req",a([a([a(["00"]),a(["01"])])])]]),ni=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),so=new Map([["parts",a([ni])],["ex",a(["356n"])],["req",a([a([a(["01"]),a(["02"])])])]]),oi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Zn=new Map([["parts",a([oi])],["ex",a(["357n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Mi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),bo=new Map([["parts",a([Mi])],["ex",a(["360n"])],["req",a([a([a(["01"]),a(["02"])])])]]),hi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Oo=new Map([["parts",a([hi])],["ex",a(["361n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Gr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),wo=new Map([["parts",a([Gr])],["ex",a(["362n"])],["req",a([a([a(["00"]),a(["01"])])])]]),ii=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Pi=new Map([["parts",a([ii])],["ex",a(["363n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Ho=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),ji=new Map([["parts",a([Ho])],["ex",a(["364n"])],["req",a([a([a(["01"]),a(["02"])])])]]),rs=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),mi=new Map([["parts",a([rs])],["ex",a(["365n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Vi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Oi=new Map([["parts",a([Vi])],["ex",a(["366n"])],["req",a([a([a(["01"]),a(["02"])])])]]),Sa=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),gi=new Map([["parts",a([Sa])],["ex",a(["367n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Ia=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ni=new Map([["parts",a([Ia])],["ex",a(["368n"])],["req",a([a([a(["00"]),a(["01"])])])]]),Ki=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Wo=new Map([["parts",a([Ki])],["ex",a(["369n"])],["req",a([a([a(["00"]),a(["01"])])])]]),ca=new Map([["cset","N"],["min",1],["max",8],["opt",!1],["linters",a([])]]),Xi=new Map([["parts",a([ca])],["req",a([a([a(["00"])]),a([a(["02"]),a(["8026"])])])]]),Ji=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),Ro=new Map([["parts",a([Ji])],["ex",a(["390n","391n","394n","8111"])],["req",a([a([a(["255"]),a(["8020"])])])]]),Zi=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso4217"])]]),ea=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),qo=new Map([["parts",a([Zi,ea])],["ex",a(["391n"])],["req",a([a([a(["8020"])])])]]),ua=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),So=new Map([["parts",a([ua])],["ex",a(["392n","393n"])],["req",a([a([a(["01"])]),a([a(["30"]),a(["31nn"]),a(["32nn"]),a(["35nn"]),a(["36nn"])])])]]),Ir=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso4217"])]]),xo=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a([])]]),Ln=new Map([["parts",a([Ir,xo])],["ex",a(["393n"])],["req",a([a([a(["30"]),a(["31nn"]),a(["32nn"]),a(["35nn"]),a(["36nn"])])])]]),$i=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a([])]]),Bo=new Map([["parts",a([$i])],["ex",a(["394n","8111"])],["req",a([a([a(["255"])])])]]),Li=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),lo=new Map([["parts",a([Li])],["ex",a(["392n","393n","395n","8005"])],["req",a([a([a(["30"]),a(["31nn"]),a(["32nn"]),a(["35nn"]),a(["36nn"])])])]]),Ua=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),Qi=new Map([["parts",a([Ua])]]),ta=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),ns=new Map([["parts",a([ta])],["dlpkey",a([])]]),Ga=new Map([["cset","N"],["min",17],["max",17],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),os=new Map([["parts",a([Ga])],["dlpkey",a([])]]),ms=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),Wi=new Map([["parts",a([ms])],["req",a([a([a(["00"])])])]]),Ds=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),da=new Map([["parts",a([Ds])]]),gs=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Ht=new Map([["parts",a([gs])],["dlpkey",a([a(["254"]),a(["7040"])])]]),tr=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Tr=new Map([["parts",a([tr])],["req",a([a([a(["8020"])])])],["dlpkey",a([a(["8020"])])]]),on=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Xr=new Map([["parts",a([on])]]),fn=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),Vr=new Map([["parts",a([fn])],["dlpkey",a([a(["7040"])])]]),Yn=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),yn=new Map([["parts",a([Yn])],["ex",a(["421"])]]),On=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),pn=new Map([["cset","X"],["min",1],["max",9],["opt",!1],["linters",a([])]]),An=new Map([["parts",a([On,pn])],["ex",a(["4307"])]]),zn=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),Fn=new Map([["parts",a([zn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),tn=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a(["lintiso3166list"])]]),Cn=new Map([["parts",a([tn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"])])])]]),rn=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),hn=new Map([["parts",a([rn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"])])])]]),Qn=new Map([["cset","N"],["min",1],["max",15],["opt",!1],["linters",a(["lintiso3166list"])]]),co=new Map([["parts",a([Qn])],["ex",a(["426"])],["req",a([a([a(["01"]),a(["02"])])])]]),Io=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166"])]]),vi=new Map([["parts",a([Io])],["req",a([a([a(["01"]),a(["02"])])])]]),_o=new Map([["cset","X"],["min",1],["max",3],["opt",!1],["linters",a([])]]),bi=new Map([["parts",a([_o])],["req",a([a([a(["01"]),a(["02"])]),a([a(["422"])])])]]),Yo=new Map([["cset","X"],["min",1],["max",35],["opt",!1],["linters",a(["lintpcenc"])]]),wi=new Map([["parts",a([Yo])],["req",a([a([a(["00"])])])]]),Ri=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),Ko=new Map([["parts",a([Ri])],["req",a([a([a(["00"])])])]]),ai=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),Xo=new Map([["parts",a([ai])],["req",a([a([a(["4302"])])])]]),uo=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),ra=new Map([["parts",a([uo])],["req",a([a([a(["00"])])])]]),gr=new Map([["cset","X"],["min",2],["max",2],["opt",!1],["linters",a(["lintiso3166alpha2"])]]),kn=new Map([["parts",a([gr])],["req",a([a([a(["00"])])])]]),mn=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),ro=new Map([["parts",a([mn])],["req",a([a([a(["00"])])])]]),Wn=new Map([["cset","N"],["min",10],["max",10],["opt",!1],["linters",a(["lintlatitude"])]]),Uo=new Map([["cset","N"],["min",10],["max",10],["opt",!1],["linters",a(["lintlongitude"])]]),Bi=new Map([["parts",a([Wn,Uo])],["req",a([a([a(["00"])])])]]),fa=new Map([["cset","X"],["min",1],["max",35],["opt",!1],["linters",a(["lintpcenc"])]]),si=new Map([["parts",a([fa])],["req",a([a([a(["00"])])])]]),vs=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),is=new Map([["parts",a([vs])],["req",a([a([a(["00"])])])]]),Va=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),Qa=new Map([["parts",a([Va])],["req",a([a([a(["4312"])])])]]),Ea=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),Ma=new Map([["parts",a([Ea])],["req",a([a([a(["00"])])])]]),bs=new Map([["cset","X"],["min",2],["max",2],["opt",!1],["linters",a(["lintiso3166alpha2"])]]),Ns=new Map([["parts",a([bs])],["req",a([a([a(["00"])])])]]),ws=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),Wa=new Map([["parts",a([ws])],["req",a([a([a(["00"])])])]]),qa=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),_a=new Map([["parts",a([qa])],["req",a([a([a(["00"])])])]]),rl=new Map([["cset","X"],["min",1],["max",35],["opt",!1],["linters",a(["lintpcenc"])]]),$s=new Map([["parts",a([rl])],["req",a([a([a(["00"])])])]]),xs=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintyesno"])]]),nl=new Map([["parts",a([xs])],["req",a([a([a(["00"])])])]]),B1=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmd0"])]]),T1=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["linthhmm"])]]),dc=new Map([["parts",a([B1,T1])],["req",a([a([a(["00"])])])]]),_l=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),F1=new Map([["parts",a([_l])],["req",a([a([a(["00"])])])]]),yl=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Mt=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),Wt=new Map([["parts",a([yl,Mt])],["ex",a(["4331"])],["req",a([a([a(["00"])])])]]),wt=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Ut=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),br=new Map([["parts",a([wt,Ut])],["ex",a(["4330"])],["req",a([a([a(["00"])])])]]),wr=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Rn=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),Dn=new Map([["parts",a([wr,Rn])],["ex",a(["4333"])],["req",a([a([a(["00"])])])]]),Eo=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),Go=new Map([["cset","X"],["min",1],["max",1],["opt",!0],["linters",a(["linthyphen"])]]),zi=new Map([["parts",a([Eo,Go])],["ex",a(["4332"])],["req",a([a([a(["00"])])])]]),pa=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a([])]]),na=new Map([["parts",a([pa])],["req",a([a([a(["01"]),a(["02"]),a(["8006"]),a(["8026"])])])]]),ha=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),ys=new Map([["parts",a([ha])],["req",a([a([a(["01"]),a(["02"])])])]]),Ya=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),fc=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["linthhmm"])]]),D1=new Map([["parts",a([Ya,fc])],["req",a([a([a(["01"]),a(["02"])])])]]),qt=new Map([["cset","N"],["min",1],["max",4],["opt",!1],["linters",a([])]]),dr=new Map([["parts",a([qt])],["req",a([a([a(["01"])]),a([a(["10"])])])]]),Sn=new Map([["cset","X"],["min",1],["max",12],["opt",!1],["linters",a([])]]),In=new Map([["parts",a([Sn])],["req",a([a([a(["01"]),a(["02"])])])]]),xi=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),yi=new Map([["parts",a([xi])],["req",a([a([a(["01"]),a(["02"])])])]]),Vo=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),Pa=new Map([["cset","N"],["min",6],["max",6],["opt",!0],["linters",a(["lintyymmdd"])]]),ja=new Map([["parts",a([Vo,Pa])],["req",a([a([a(["01"]),a(["02"])])])]]),As=new Map([["cset","X"],["min",1],["max",3],["opt",!1],["linters",a([])]]),Ls=new Map([["parts",a([As])],["req",a([a([a(["01"]),a(["02"])])])]]),as=new Map([["cset","X"],["min",1],["max",10],["opt",!1],["linters",a([])]]),ma=new Map([["parts",a([as])],["req",a([a([a(["01"]),a(["02"])])])]]),ol=new Map([["cset","X"],["min",1],["max",2],["opt",!1],["linters",a([])]]),fo=new Map([["parts",a([ol])],["req",a([a([a(["01"]),a(["02"])])])]]),Al=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a(["lintyymmdd"])]]),N1=new Map([["cset","N"],["min",4],["max",4],["opt",!0],["linters",a(["linthhmm"])]]),Yl=new Map([["parts",a([Al,N1])],["req",a([a([a(["01"]),a(["02"])])])]]),Kl=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),il=new Map([["parts",a([Kl])],["req",a([a([a(["01"]),a(["8006"])]),a([a(["416"])])])]]),Qc=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),pc=new Map([["parts",a([Qc])],["req",a([a([a(["01"]),a(["8006"])])])]]),Cl=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),Xl=new Map([["parts",a([Cl])],["req",a([a([a(["7021"])])])]]),hc=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),kl=new Map([["parts",a([hc])]]),Z=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintiso3166999"])]]),O=new Map([["cset","X"],["min",1],["max",27],["opt",!1],["linters",a([])]]),H=new Map([["parts",a([Z,O])],["req",a([a([a(["01"]),a(["02"])])])]]),J=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a([])]]),xe=new Map([["cset","X"],["min",1],["max",1],["opt",!1],["linters",a([])]]),ct=new Map([["cset","X"],["min",1],["max",1],["opt",!1],["linters",a([])]]),Gt=new Map([["cset","X"],["min",1],["max",1],["opt",!1],["linters",a(["lintimporteridx"])]]),$r=new Map([["parts",a([J,xe,ct,Gt])],["dlattr",!1]]),jr=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),no=new Map([["parts",a([jr])],["req",a([a([a(["01"])])])]]),$1=new Map([["cset","X"],["min",2],["max",2],["opt",!1],["linters",a([])]]),Lf=new Map([["cset","X"],["min",1],["max",28],["opt",!1],["linters",a([])]]),Cs=new Map([["parts",a([$1,Lf])],["req",a([a([a(["01"]),a(["8004"])])])]]),$p=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),Lp=new Map([["parts",a([$p])],["req",a([a([a(["01"]),a(["8006"])])])]]),d4=new Map([["cset","N"],["min",2],["max",2],["opt",!1],["linters",a(["lintmediatype"])]]),f4=new Map([["parts",a([d4])],["req",a([a([a(["8017"]),a(["8018"])])])]]),p4=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a([])]]),h4=new Map([["parts",a([p4])],["req",a([a([a(["8017"]),a(["8018"])])])]]),m4=new Map([["cset","N"],["min",8],["max",8],["opt",!1],["linters",a(["lintyyyymmdd"])]]),g4=new Map([["parts",a([m4])],["ex",a(["7251"])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),v4=new Map([["cset","N"],["min",8],["max",8],["opt",!1],["linters",a(["lintyyyymmdd"])]]),b4=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["linthhmm"])]]),Hm=new Map([["parts",a([v4,b4])],["ex",a(["7250"])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),zp=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintiso5218"])]]),w4=new Map([["parts",a([zp])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),x4=new Map([["cset","X"],["min",1],["max",40],["opt",!1],["linters",a(["lintpcenc"])]]),Hp=new Map([["parts",a([x4])],["ex",a(["7256","7259"])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),Up=new Map([["cset","X"],["min",1],["max",10],["opt",!1],["linters",a([])]]),y4=new Map([["parts",a([Up])],["ex",a(["7256","7259"])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),A4=new Map([["cset","X"],["min",1],["max",90],["opt",!1],["linters",a(["lintpcenc"])]]),Um=new Map([["parts",a([A4])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),Gp=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintpcenc"])]]),C4=new Map([["parts",a([Gp])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),k4=new Map([["cset","X"],["min",3],["max",3],["opt",!1],["linters",a(["lintposinseqslash"])]]),Gm=new Map([["parts",a([k4])],["req",a([a([a(["8018","7259"])])])],["dlattr",!1]]),Vp=new Map([["cset","X"],["min",1],["max",40],["opt",!1],["linters",a(["lintpcenc"])]]),S4=new Map([["parts",a([Vp])],["ex",a(["7256"])],["req",a([a([a(["8018"])])])],["dlattr",!1]]),I4=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["lintnonzero"])]]),Vm=new Map([["cset","N"],["min",5],["max",5],["opt",!1],["linters",a(["lintnonzero"])]]),Qp=new Map([["cset","N"],["min",3],["max",3],["opt",!1],["linters",a(["lintnonzero"])]]),E4=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintwinding"])]]),M4=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a([])]]),Qm=new Map([["parts",a([I4,Vm,Qp,E4,M4])],["req",a([a([a(["01"])])])]]),Wp=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),P4=new Map([["parts",a([Wp])]]),j4=new Map([["cset","N"],["min",1],["max",1],["opt",!1],["linters",a(["lintzero"])]]),vD=new Map([["cset","N"],["min",13],["max",13],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),bD=new Map([["cset","X"],["min",1],["max",16],["opt",!0],["linters",a([])]]),wD=new Map([["parts",a([j4,vD,bD])],["dlpkey",a([])]]),xD=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),yD=new Map([["parts",a([xD])],["dlpkey",a([a(["7040"])])]]),AD=new Map([["cset","N"],["min",6],["max",6],["opt",!1],["linters",a([])]]),CD=new Map([["parts",a([AD])],["req",a([a([a(["01"]),a(["02"])])])]]),kD=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",a(["lintcsum"])]]),SD=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["lintpieceoftotal"])]]),ID=new Map([["parts",a([kD,SD])],["ex",a(["01","37"])],["dlpkey",a([a(["22","10","21"])])]]),ED=new Map([["cset","X"],["min",1],["max",34],["opt",!1],["linters",a(["lintiban"])]]),MD=new Map([["parts",a([ED])],["req",a([a([a(["415"])])])]]),PD=new Map([["cset","N"],["min",8],["max",8],["opt",!1],["linters",a(["lintyymmddhh"])]]),jD=new Map([["cset","N"],["min",1],["max",4],["opt",!0],["linters",a(["lintmmoptss"])]]),OD=new Map([["parts",a([PD,jD])],["req",a([a([a(["01"]),a(["02"])])])]]),RD=new Map([["cset","X"],["min",1],["max",50],["opt",!1],["linters",a([])]]),BD=new Map([["parts",a([RD])],["req",a([a([a(["00"]),a(["01"])])])]]),TD=new Map([["cset","Y"],["min",1],["max",30],["opt",!1],["linters",a(["lintkey"])]]),FD=new Map([["parts",a([TD])],["dlpkey",a([a(["8011"])])]]),DD=new Map([["cset","N"],["min",1],["max",12],["opt",!1],["linters",a(["lintnozeroprefix"])]]),ND=new Map([["parts",a([DD])],["req",a([a([a(["8010"])])])],["dlattr",!1]]),$D=new Map([["cset","X"],["min",1],["max",20],["opt",!1],["linters",a([])]]),LD=new Map([["parts",a([$D])],["req",a([a([a(["01"]),a(["8006"])])])]]),zD=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a(["lintcsumalpha","lintkey"])]]),HD=new Map([["parts",a([zD])],["dlpkey",a([])]]),UD=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a(["lintcsumalpha","lintkey","linthasnondigit"])]]),GD=new Map([["parts",a([UD])],["req",a([a([a(["01"])])])],["dlattr",!1]]),VD=new Map([["cset","N"],["min",18],["max",18],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),QD=new Map([["parts",a([VD])],["ex",a(["8018"])],["dlpkey",a([a(["8019"])])]]),WD=new Map([["cset","N"],["min",18],["max",18],["opt",!1],["linters",a(["lintcsum","lintkey"])]]),qD=new Map([["parts",a([WD])],["ex",a(["8017"])],["dlpkey",a([a(["8019"])])]]),_D=new Map([["cset","N"],["min",1],["max",10],["opt",!1],["linters",a([])]]),YD=new Map([["parts",a([_D])],["req",a([a([a(["8017"]),a(["8018"])])])],["dlattr",!1]]),KD=new Map([["cset","X"],["min",1],["max",25],["opt",!1],["linters",a([])]]),XD=new Map([["parts",a([KD])],["req",a([a([a(["415"])])])]]),JD=new Map([["cset","N"],["min",14],["max",14],["opt",!1],["linters",a(["lintcsum"])]]),ZD=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a(["lintpieceoftotal"])]]),eN=new Map([["parts",a([JD,ZD])],["ex",a(["02","8006"])],["req",a([a([a(["37"])])])]]),tN=new Map([["cset","Z"],["min",1],["max",90],["opt",!1],["linters",a([])]]),rN=new Map([["parts",a([tN])],["req",a([a([a(["00"]),a(["01","21"]),a(["253"]),a(["255"]),a(["8003"]),a(["8004"]),a(["8006","21"]),a(["8010","8011"]),a(["8017"]),a(["8018"])])])]]),nN=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintcouponcode"])]]),oN=new Map([["parts",a([nN])]]),iN=new Map([["cset","N"],["min",4],["max",4],["opt",!1],["linters",a([])]]),aN=new Map([["parts",a([iN])],["req",a([a([a(["255"])])])]]),sN=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a(["lintcouponposoffer"])]]),lN=new Map([["parts",a([sN])]]),cN=new Map([["cset","X"],["min",1],["max",70],["opt",!1],["linters",a([])]]),uN=new Map([["parts",a([cN])],["req",a([a([a(["01"])])])],["dlattr",!1]]),dN=new Map([["cset","X"],["min",1],["max",30],["opt",!1],["linters",a([])]]),fN=new Map([["parts",a([dN])]]),pN=new Map([["cset","X"],["min",1],["max",90],["opt",!1],["linters",a([])]]),Wc=new Map([["parts",a([pN])]]),hN=new Map([["00",s],["01",v],["02",E],["03",R],["10",U],["11",_],["12",$],["13",Q],["15",Q],["16",Q],["17",F],["20",W],["21",te],["22",de],["235",fe],["240",Ie],["241",Ie],["242",ke],["243",Ge],["250",at],["251",ue],["253",bt],["254",st],["255",Xe],["30",mt],["3100",Fe],["3101",Fe],["3102",Fe],["3103",Fe],["3104",Fe],["3105",Fe],["3110",Je],["3111",Je],["3112",Je],["3113",Je],["3114",Je],["3115",Je],["3120",Nt],["3121",Nt],["3122",Nt],["3123",Nt],["3124",Nt],["3125",Nt],["3130",xt],["3131",xt],["3132",xt],["3133",xt],["3134",xt],["3135",xt],["3140",Y],["3141",Y],["3142",Y],["3143",Y],["3144",Y],["3145",Y],["3150",ie],["3151",ie],["3152",ie],["3153",ie],["3154",ie],["3155",ie],["3160",ge],["3161",ge],["3162",ge],["3163",ge],["3164",ge],["3165",ge],["3200",me],["3201",me],["3202",me],["3203",me],["3204",me],["3205",me],["3210",ce],["3211",ce],["3212",ce],["3213",ce],["3214",ce],["3215",ce],["3220",He],["3221",He],["3222",He],["3223",He],["3224",He],["3225",He],["3230",ye],["3231",ye],["3232",ye],["3233",ye],["3234",ye],["3235",ye],["3240",Te],["3241",Te],["3242",Te],["3243",Te],["3244",Te],["3245",Te],["3250",Ue],["3251",Ue],["3252",Ue],["3253",Ue],["3254",Ue],["3255",Ue],["3260",De],["3261",De],["3262",De],["3263",De],["3264",De],["3265",De],["3270",gt],["3271",gt],["3272",gt],["3273",gt],["3274",gt],["3275",gt],["3280",St],["3281",St],["3282",St],["3283",St],["3284",St],["3285",St],["3290",Ct],["3291",Ct],["3292",Ct],["3293",Ct],["3294",Ct],["3295",Ct],["3300",Ce],["3301",Ce],["3302",Ce],["3303",Ce],["3304",Ce],["3305",Ce],["3310",et],["3311",et],["3312",et],["3313",et],["3314",et],["3315",et],["3320",ut],["3321",ut],["3322",ut],["3323",ut],["3324",ut],["3325",ut],["3330",jt],["3331",jt],["3332",jt],["3333",jt],["3334",jt],["3335",jt],["3340",Ft],["3341",Ft],["3342",Ft],["3343",Ft],["3344",Ft],["3345",Ft],["3350",sr],["3351",sr],["3352",sr],["3353",sr],["3354",sr],["3355",sr],["3360",Ar],["3361",Ar],["3362",Ar],["3363",Ar],["3364",Ar],["3365",Ar],["3370",Er],["3371",Er],["3372",Er],["3373",Er],["3374",Er],["3375",Er],["3400",Wr],["3401",Wr],["3402",Wr],["3403",Wr],["3404",Wr],["3405",Wr],["3410",kr],["3411",kr],["3412",kr],["3413",kr],["3414",kr],["3415",kr],["3420",un],["3421",un],["3422",un],["3423",un],["3424",un],["3425",un],["3430",Br],["3431",Br],["3432",Br],["3433",Br],["3434",Br],["3435",Br],["3440",wn],["3441",wn],["3442",wn],["3443",wn],["3444",wn],["3445",wn],["3450",ar],["3451",ar],["3452",ar],["3453",ar],["3454",ar],["3455",ar],["3460",Cr],["3461",Cr],["3462",Cr],["3463",Cr],["3464",Cr],["3465",Cr],["3470",Xt],["3471",Xt],["3472",Xt],["3473",Xt],["3474",Xt],["3475",Xt],["3480",Sr],["3481",Sr],["3482",Sr],["3483",Sr],["3484",Sr],["3485",Sr],["3490",hr],["3491",hr],["3492",hr],["3493",hr],["3494",hr],["3495",hr],["3500",er],["3501",er],["3502",er],["3503",er],["3504",er],["3505",er],["3510",qr],["3511",qr],["3512",qr],["3513",qr],["3514",qr],["3515",qr],["3520",Or],["3521",Or],["3522",Or],["3523",Or],["3524",Or],["3525",Or],["3530",Nr],["3531",Nr],["3532",Nr],["3533",Nr],["3534",Nr],["3535",Nr],["3540",nn],["3541",nn],["3542",nn],["3543",nn],["3544",nn],["3545",nn],["3550",xn],["3551",xn],["3552",xn],["3553",xn],["3554",xn],["3555",xn],["3560",so],["3561",so],["3562",so],["3563",so],["3564",so],["3565",so],["3570",Zn],["3571",Zn],["3572",Zn],["3573",Zn],["3574",Zn],["3575",Zn],["3600",bo],["3601",bo],["3602",bo],["3603",bo],["3604",bo],["3605",bo],["3610",Oo],["3611",Oo],["3612",Oo],["3613",Oo],["3614",Oo],["3615",Oo],["3620",wo],["3621",wo],["3622",wo],["3623",wo],["3624",wo],["3625",wo],["3630",Pi],["3631",Pi],["3632",Pi],["3633",Pi],["3634",Pi],["3635",Pi],["3640",ji],["3641",ji],["3642",ji],["3643",ji],["3644",ji],["3645",ji],["3650",mi],["3651",mi],["3652",mi],["3653",mi],["3654",mi],["3655",mi],["3660",Oi],["3661",Oi],["3662",Oi],["3663",Oi],["3664",Oi],["3665",Oi],["3670",gi],["3671",gi],["3672",gi],["3673",gi],["3674",gi],["3675",gi],["3680",Ni],["3681",Ni],["3682",Ni],["3683",Ni],["3684",Ni],["3685",Ni],["3690",Wo],["3691",Wo],["3692",Wo],["3693",Wo],["3694",Wo],["3695",Wo],["37",Xi],["3900",Ro],["3901",Ro],["3902",Ro],["3903",Ro],["3904",Ro],["3905",Ro],["3906",Ro],["3907",Ro],["3908",Ro],["3909",Ro],["3910",qo],["3911",qo],["3912",qo],["3913",qo],["3914",qo],["3915",qo],["3916",qo],["3917",qo],["3918",qo],["3919",qo],["3920",So],["3921",So],["3922",So],["3923",So],["3924",So],["3925",So],["3926",So],["3927",So],["3928",So],["3929",So],["3930",Ln],["3931",Ln],["3932",Ln],["3933",Ln],["3934",Ln],["3935",Ln],["3936",Ln],["3937",Ln],["3938",Ln],["3939",Ln],["3940",Bo],["3941",Bo],["3942",Bo],["3943",Bo],["3950",lo],["3951",lo],["3952",lo],["3953",lo],["3954",lo],["3955",lo],["400",Qi],["401",ns],["402",os],["403",Wi],["410",da],["411",da],["412",da],["413",da],["414",Ht],["415",Tr],["416",Xr],["417",Vr],["420",yn],["421",An],["422",Fn],["423",Cn],["424",hn],["425",co],["426",vi],["427",bi],["4300",wi],["4301",wi],["4302",Ko],["4303",Xo],["4304",ra],["4305",ra],["4306",ra],["4307",kn],["4308",ro],["4309",Bi],["4310",si],["4311",si],["4312",is],["4313",Qa],["4314",Ma],["4315",Ma],["4316",Ma],["4317",Ns],["4318",Wa],["4319",_a],["4320",$s],["4321",nl],["4322",nl],["4323",nl],["4324",dc],["4325",dc],["4326",F1],["4330",Wt],["4331",br],["4332",Dn],["4333",zi],["7001",na],["7002",ys],["7003",D1],["7004",dr],["7005",In],["7006",yi],["7007",ja],["7008",Ls],["7009",ma],["7010",fo],["7011",Yl],["7020",il],["7021",pc],["7022",Xl],["7023",kl],["7030",H],["7031",H],["7032",H],["7033",H],["7034",H],["7035",H],["7036",H],["7037",H],["7038",H],["7039",H],["7040",$r],["710",no],["711",no],["712",no],["713",no],["714",no],["715",no],["7230",Cs],["7231",Cs],["7232",Cs],["7233",Cs],["7234",Cs],["7235",Cs],["7236",Cs],["7237",Cs],["7238",Cs],["7239",Cs],["7240",Lp],["7241",f4],["7242",h4],["7250",g4],["7251",Hm],["7252",w4],["7253",Hp],["7254",Hp],["7255",y4],["7256",Um],["7257",C4],["7258",Gm],["7259",S4],["8001",Qm],["8002",P4],["8003",wD],["8004",yD],["8005",CD],["8006",ID],["8007",MD],["8008",OD],["8009",BD],["8010",FD],["8011",ND],["8012",LD],["8013",HD],["8014",GD],["8017",QD],["8018",qD],["8019",YD],["8020",XD],["8026",eN],["8030",rN],["8110",oN],["8111",aN],["8112",lN],["8200",uN],["90",fN],["91",Wc],["92",Wc],["93",Wc],["94",Wc],["95",Wc],["96",Wc],["97",Wc],["98",Wc],["99",Wc]]);e.gs1syntax=hN;for(var Jo in e)e.hasOwnProperty(Jo)&&(Jr.$ctx[Jo]=e[Jo]);Jr.__2469__=1,e=Object.getPrototypeOf(e)}if(ae(r[--t],"ai")){h0(r[--t],"("),fr(r[--t])&&(t--,r[t++]="bwipp.GS1aiMissingOpenParen#2477",r[t++]="AIs must start with '('",ne()),t--,r[t++]=1/0;var mN=r[--t],gN=r[--t];for(r[t++]=mN,r[t++]=gN;;){var Y8=r[--t];if(r[t++]=Y8,ae(Y8,"")){t--;break}pr(r[--t],")"),fr(r[--t])&&(of(),r[t++]="bwipp.GS1aiMissingCloseParen#2483",r[t++]="AIs must end with ')'",ne());var vN=r[--t],bN=r[--t];r[t++]=vN,r[t++]=bN,t--;var wN=r[--t],xN=r[--t];if(r[t++]=wN,pr(xN,"("),r[--t]){var yN=r[--t],AN=r[--t];r[t++]=yN,r[t++]=AN,t--;var CN=r[--t],kN=r[--t];r[t++]=CN,r[t++]=kN}else r[t++]=""}var K8=mo();if(r[t++]=K8,K8>0)for(var X8=r[--t],O4=X8,SN=~~(X8/2)+1;O4>=SN;O4-=1)S0(O4,-1);else t--;xr(a(~~(mo()/2))),e.ais=r[--t],xr(a(mo())),r[t++]=1/0;var IN=r[--t],EN=r[--t];r[t++]=IN,Oe(EN,function(){var kt=new Map([["parse",e.parse],["parseonly",!0],["parsefnc",!1]]);r[t++]=kt,Do()}),e.vals=a(),t--}else{if(h0(r[--t],"http://"),fr(r[--t])&&(h0(r[--t],"HTTP://"),fr(r[--t])&&(h0(r[--t],"https://"),fr(r[--t])&&(h0(r[--t],"HTTPS://"),fr(r[--t])&&(t--,r[t++]="bwipp.GS1dlURIbadScheme#2502",r[t++]="Scheme must be http:// HTTP:// https:// or HTTPS://",ne())))),t--,pr(r[--t],"/"),fr(r[--t])&&(t--,r[t++]="bwipp.GS1dlMissingDomainOrPathInfo#2508",r[t++]="URI must contain a domain and path info",ne()),t-=2,pr(r[--t],"#"),r[--t]){var MN=r[--t],PN=r[--t];r[t++]=MN,r[t++]=PN,t--;var jN=r[--t],ON=r[--t];r[t++]=jN,r[t++]=ON,t--}if(pr(r[--t],"?"),fr(r[--t])){var RN=r[--t];r[t++]="",r[t++]=null,r[t++]=RN}for(e.pp=r[--t],t--,e.qp=r[--t],r[t++]=1/0,r[t++]=0,r[t++]=0,r[t++]=e.pp;;){if(pr(r[--t],"/"),fr(r[--t])){t--;break}var BN=r[--t],TN=r[--t];r[t++]=BN.length+1,r[t++]=TN,t--;var FN=r[--t],DN=r[--t],J8=r[--t];r[t++]=J8,r[t++]=h(FN+J8),r[t++]=DN}xr(a(mo()-1)),e.pipos=r[--t],t-=2,e.pipos.length<=1&&(r[t++]="bwipp.GS1dlNoAIinfo#2533",r[t++]="The path was too short to contain AI info",ne()),r[t++]=!1;for(var qp=e.pipos.length-2;qp>=0;qp-=2){var Z8=u(e.pipos,qp),e9=T(e.pp,Z8,h(h(u(e.pipos,qp+1)-Z8)-1)),NN=u(e.gs1syntax,e9)!==void 0;if(r[t++]=qp,r[t++]=e9,NN){var $N=u(u(e.gs1syntax,r[--t]),"dlpkey")!==void 0;if($N){var LN=r[--t],zN=r[--t];r[t++]=LN,r[t++]=zN,t--,r[t++]=!0;break}}else t--;t--}fr(r[--t])&&(r[t++]="bwipp.GS1dlNoAIinfo#2552",r[t++]="The path does not contain a valid primary key",ne());var t9=u(e.pipos,r[--t]);for(e.pp=T(e.pp,t9,h(e.pp.length-t9)),e.uriunescape=function(){for(e.qq=r[--t],e.in=r[--t],e.out=pe(e.in.length),r[t++]=0,r[t++]=0;;){var kt=r[--t],Vt=r[--t];if(r[t++]=Vt,r[t++]=kt,Vt>=e.in.length)break;var Mr=r[--t],an=r[--t],Bn=u(e.in,an);if(r[t++]=an,r[t++]=Mr,r[t++]=Bn,Bn==43&&e.qq){t--;var Nn=r[--t];y(e.out,Nn,32);var li=r[--t];r[t++]=h(li+1),r[t++]=h(Nn+1)}else{var ci=r[--t],ks=r[--t],Ss=r[--t];if(r[t++]=Ss,r[t++]=ks,r[t++]=ci,ci==37&&Ss=48&&Sl<=57){var mc=r[--t];r[t++]=h(mc-48)}else{var Jl=r[--t];if(r[t++]=Jl,Jl>=65&&Jl<=70){var gc=r[--t];r[t++]=h(gc-55)}else{var Zl=r[--t];if(r[t++]=Zl,Zl>=97&&Zl<=102){var vc=r[--t];r[t++]=h(vc-87)}else t-=2,r[t++]="bwipp.GS1dlBadHexCharacter#2573",r[t++]="Invalid hex character",ne()}}var Tu=r[--t],zf=r[--t];r[t++]=h(Tu+zf*16)}var Hf=r[--t],zd=r[--t];y(e.out,zd,Hf);var Uf=r[--t];r[t++]=h(Uf+3),r[t++]=h(zd+1)}else{var e1=r[--t],L1=r[--t];y(e.out,L1,e1);var bc=r[--t];r[t++]=h(bc+1),r[t++]=h(L1+1)}}}e.out=T(e.out,0,r[--t]),t--,r[t++]=e.out},e.isvaliddlpkeyseq=function(){e.in=r[--t],r[t++]=!1,Oe(u(u(e.gs1syntax,u(e.in,0)),"dlpkey"),function(){for(e.seq=r[--t],e.i=1,e.j=0;!(e.i>=e.in.length||e.j>=e.seq.length);)ae(u(e.in,e.i),u(e.seq,e.j))&&(e.i=e.i+1),e.j=e.j+1;if(e.i==e.in.length)return t--,r[t++]=!0,!0})},e.ais=a(99),e.vals=a(99),r[t++]=0,r[t++]=e.pp;;){if(pr(r[--t],"/"),r[--t]){var HN=r[--t];r[--t];var UN=r[--t],r9=r[--t];if(y(e.ais,r9,HN),r[t++]=r9,pr(UN,"/"),r[--t]){var GN=r[--t],VN=r[--t];r[t++]=GN,r[t++]=VN,t--}else{var QN=r[--t];r[t++]="",r[t++]=QN}var WN=r[--t],qN=r[--t],n9=r[--t];r[t++]=n9,r[t++]=qN,r[t++]=e.vals,r[t++]=n9,r[t++]=WN,r[t++]=!1,e.uriunescape();var _N=r[--t],YN=r[--t];y(r[--t],YN,_N)}else{t--;break}var KN=r[--t],XN=r[--t];r[t++]=h(XN+1),r[t++]=KN}var R4=r[--t];for(e.plen=R4,r[t++]=R4,R4>1&&(r[t++]=T(e.ais,0,e.plen),e.isvaliddlpkeyseq(),fr(r[--t])&&(t--,r[t++]="bwipp.GS1dlBadPathInfo#2628",r[t++]="The AIs in the path are not a valid key-qualifier sequence for the key",ne())),r[t++]=e.qp;;){var o9=r[--t];if(r[t++]=o9,ae(o9,"")){t--;break}if(pr(r[--t],"&"),r[--t]){var JN=r[--t],ZN=r[--t];r[t++]=JN,r[t++]=ZN,t--}else{var e$=r[--t];r[t++]="",r[t++]=e$}if(pr(r[--t],"="),r[--t]){var i9=r[--t];if(r[t++]=i9,r[t++]=!0,Oe(i9,function(){var kt=r[--t],Vt=r[--t];r[t++]=Vt&&kt>=48&&kt<=57}),r[--t]){var t$=r[--t];r[--t];var r$=r[--t],n$=r[--t],B4=r[--t];y(e.ais,B4,t$),r[t++]=B4,r[t++]=n$,r[t++]=e.vals,r[t++]=B4,r[t++]=r$,r[t++]=!0,e.uriunescape();var o$=r[--t],i$=r[--t];y(r[--t],i$,o$);var a$=r[--t],s$=r[--t];r[t++]=h(s$+1),r[t++]=a$}else t-=3}else t--}var a9=r[--t],s9=T(e.ais,e.plen,h(a9-e.plen));r[t++]=a9;for(var T4=0,l$=s9.length;T4=1;$4-=1){var p9=r[--t];r[t++]=p9,r[t++]=$4,r[t++]=p9,r[t++]=1/0,oe(T(e.ais,0,e.plen)),S0(mo()+3,-2);var v$=r[--t],b$=r[--t];r[t++]=v$,S0(b$,1);var w$=a();if(r[t++]=w$,e.isvaliddlpkeyseq(),r[--t]){var x$=r[--t],y$=r[--t];r[t++]=x$,r[t++]=y$,t--;var L4=r[--t],z4=L4.length,qm=pe(z4+50);K(qm,0,"AI ("),K(qm,4,L4),K(qm,z4+4,") from query params should be in the path info"),r[t++]=L4,r[t++]=qm,r[t++]=z4,t--;var A$=r[--t],C$=r[--t];r[t++]=A$,r[t++]=C$,t--;var k$=r[--t];r[t++]="bwipp.GS1dlAttributeMustBeQualifier#2679",r[t++]=k$,ne()}}t--}var h9=r[--t];e.ais=T(e.ais,0,h9),e.vals=T(e.vals,0,h9);for(var _m=0,S$=e.ais.length-1;_m<=S$;_m+=1){if(r[t++]=_m,ae(u(e.ais,_m),"01")){var m9=r[--t],g9=u(e.vals,m9),H4=g9.length;if(r[t++]=m9,r[t++]=g9,H4==8||H4==12||H4==13){var v9=Gn(pe(14),"00000000000000"),b9=r[--t];K(v9,14-b9.length,b9);var w9=r[--t];y(e.vals,w9,v9),r[t++]=w9}else t--}t--}}if(!Jr.__2714__){e=Object.create(e),r[t++]=1/0;for(var x9=a(["00","01","02","03","04","11","12","13","14","15","16","17","18","19","20","31","32","33","34","35","36","41"]),U4=0,I$=x9.length;U4=2){var M$=u(e.aifixed,T(r[--t],0,2))!==void 0;M$&&(t--,r[t++]=!1)}else t--}if(e.fncs=a(),!Jr.__2749__){e=Object.create(e),r[t++]=1/0,r[t++]=0;for(var V4=0,P$=82;V4?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz`,V4),r[t++]=k9,r[t++]=h(k9+1)}t--,e.cset82=Tt(),r[t++]=1/0,r[t++]=0;for(var Q4=0,j$=39;Q457)return t--,r[t++]=!1,!0}),fr(r[--t]))return t--,r[t++]="bwipp.GS1notNumeric#2753",r[t++]="Not numeric",r[t++]=!1,!0},e.lintcset82=function(){var kt=r[--t];if(r[t++]=!0,Oe(kt,function(){var Vt=u(e.cset82,r[--t])!==void 0;if(!Vt)return t--,r[t++]=!1,!0}),fr(r[--t]))return t--,r[t++]="bwipp.GS1badCSET82character#2758",r[t++]="Invalid CSET 82 character",r[t++]=!1,!0},e.lintcset39=function(){var kt=r[--t];if(r[t++]=!0,Oe(kt,function(){var Vt=u(e.cset39,r[--t])!==void 0;if(!Vt)return t--,r[t++]=!1,!0}),fr(r[--t]))return t--,r[t++]="bwipp.GS1badCSET39character#2763",r[t++]="Invalid CSET 39 character",r[t++]=!1,!0},e.lintcset64=function(){var kt=r[--t];if(r[t++]=!0,Oe(kt,function(){var Vt=r[--t],Mr=u(e.cset64,Vt)!==void 0;if(!Mr&&Vt!=61)return t--,r[t++]=!1,!0}),fr(r[--t]))return t--,r[t++]="bwipp.GS1badCSET64character#2769",r[t++]="Invalid CSET 64 character",r[t++]=!1,!0},e.lintkey=function(){var kt=r[--t];if(r[t++]=kt,kt.length<2)return t-=2,r[t++]="bwipp.GS1keyTooShort#2773",r[t++]="Key is too short",r[t++]=!1,!0;var Vt=r[--t],Mr=u(Vt,0),an=u(Vt,1);if(Mr<48||Mr>57||an<48||an>57)return t--,r[t++]="bwipp.GS1badGCP#2776",r[t++]="Non-numeric company prefix",r[t++]=!1,!0},e.lintimporteridx=function(){if(pr("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",r[--t]),fr(r[--t]))return t-=2,r[t++]="bwipp.GS1badImporterIndex#2782",r[t++]="Invalid importer index",r[t++]=!1,!0;t-=3},e.lintcsum=function(){r[t++]=1/0;var kt=r[--t],Vt=r[--t],Mr=Vt.length%2==0?3:1;r[t++]=kt,r[t++]=Mr,Oe(Vt,function(){var Is=r[--t],ss=r[--t];r[t++]=h(Is-48)*ss,r[t++]=h(4-ss)}),t--;var an=mo()+1;r[t++]=0;for(var Bn=0,Nn=an-1;BnJl.length)return t-=5,r[t++]="bwipp.GS1alphaTooLong#2812",r[t++]="Alphanumeric string is too long to check",r[t++]=!1,!0;for(var Zl=r[--t],vc=T(r[--t],0,Zl),Tu=0,zf=vc.length;Tu9){var al=h(r[--t]-7);r[t++]=~~(al/10),r[t++]=al%10}}),xr(a(mo()));var Ss=r[--t],Is=r[--t];r[t++]=Ss,r[t++]=Is,t--;var ss=r[--t];if(r[t++]=0,Oe(ss,function(){var Oa=r[--t],al=r[--t];r[t++]=h(Oa+al*10)%97}),r[--t]!=1)return t-=2,r[t++]="bwipp.GS1badIBANchecksum#2949",r[t++]="IBAN checksum incorrect",r[t++]=!1,!0;var ga=T(r[--t],0,2);r[t++]=ga,e.lintiso3166alpha2()},e.lintzero=function(){if(it(r[--t],"0"))return t--,r[t++]="bwipp.GS1zeroRequired#2954",r[t++]="Zero is required",r[t++]=!1,!0},e.lintnonzero=function(){var kt=r[--t];if(r[t++]=!1,Oe(kt,function(){r[--t]!=48&&(t--,r[t++]=!0)}),fr(r[--t]))return t--,r[t++]="bwipp.GS1zeroNotPermitted#2959",r[t++]="Zero not permitted",r[t++]=!1,!0},e.lintnozeroprefix=function(){var kt=r[--t];if(kt.length>1&&u(kt,0)==48)return t--,r[t++]="bwipp.GS1badZeroPrefix#2964",r[t++]="Zero prefix is not permitted",r[t++]=!1,!0},e.linthasnondigit=function(){var kt=r[--t];if(r[t++]=!1,Oe(kt,function(){var Vt=r[--t];if(Vt<48||Vt>57)return t--,r[t++]=!0,!0}),fr(r[--t]))return r[t++]="bwipp.GS1requiresNonDigit#2970",r[t++]="A non-digit character is required",r[t++]=!1,!0},e.linthyphen=function(){if(it(r[--t],"-"))return t--,r[t++]="bwipp.GS1hyphenRequired#2974",r[t++]="A hyphen is required",r[t++]=!1,!0},e.lintyyyymmd0=function(){var kt=r[--t],Vt=ft(T(kt,4,2));if(r[t++]=kt,Vt<1||Vt>12)return t--,r[t++]="bwipp.GS1badMonth#2978",r[t++]="Invalid month",r[t++]=!1,!0;var Mr=r[--t],an=ft(T(Mr,0,4));r[t++]=Mr,r[t++]=an%400==0||an%4==0&&an%100!=0,r[t++]=1/0;var Bn=r[--t],Nn=r[--t]?29:28;r[t++]=Bn,r[t++]=31,r[t++]=Nn,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31;var li=a(),ci=r[--t];if(u(li,ft(T(ci,4,2))-1)=51?(t--,r[t++]="19"):r[--t]<=-50?r[t++]="21":r[t++]="20";var an=r[--t],Bn=r[--t];r[t++]=an,r[t++]=Bn,t--;var Nn=pe(8);K(Nn,0,r[--t]),K(Nn,2,r[--t]),r[t++]=Nn,e.lintyyyymmd0()},e.lintyymmdd=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=6)return t--,r[t++]="bwipp.GS1badDateLength#2999",r[t++]="Invalid length for yymmdd date",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,ft(T(Vt,4,2))<1)return t--,r[t++]="bwipp.GS1badDay#3000",r[t++]="Invalid day of month",r[t++]=!1,!0;e.lintyymmd0()},e.lintyymmddhh=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=8)return t--,r[t++]="bwipp.GS1badYYMMDDHHLength#3005",r[t++]="Invalid length for yymmdd date with hour",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,ft(T(Vt,6,2))>23)return t-=2,r[t++]="bwipp.GS1badHour#3006",r[t++]="Invalid hour of day",r[t++]=!1,!0;var Mr=T(r[--t],0,6);r[t++]=Mr,e.lintyymmdd()},e.linthhmm=function(){var kt=r[--t];if(r[t++]=kt,ft(T(kt,0,2))>23)return t-=2,r[t++]="bwipp.GS1badHour#3011",r[t++]="Invalid hour of day",r[t++]=!1,!0;if(ft(T(r[--t],2,2))>59)return t--,r[t++]="bwipp.GS1badMinute#3012",r[t++]="Invalid minute in the hour",r[t++]=!1,!0},e.lintmmoptss=function(){var kt=r[--t],Vt=kt.length;if(r[t++]=kt,Vt!=2&&Vt!=4)return t--,r[t++]="bwipp.GS1badTimeLength#3017",r[t++]="Invalid length for optional minutes and seconds",r[t++]=!1,!0;var Mr=r[--t];if(r[t++]=Mr,ft(T(Mr,0,2))>59)return t-=2,r[t++]="bwipp.GS1badMinute#3019",r[t++]="Invalid minute in the hour",r[t++]=!1,!0;var an=r[--t];if(r[t++]=an,an.length>=4){var Bn=r[--t];if(r[t++]=Bn,ft(T(Bn,2,2))>59)return t-=2,r[t++]="bwipp.GS1badSecond#3021",r[t++]="Invalid second in the minute",r[t++]=!1,!0}t--},e.lintyesno=function(){var kt=r[--t];if(it(kt,"0")&&it(kt,"1"))return t--,r[t++]="bwipp.GS1badBoolean#3028",r[t++]="Neither 0 nor 1 for yes or no",r[t++]=!1,!0},e.lintwinding=function(){var kt=r[--t];if(it(kt,"0")&&it(kt,"1")&&it(kt,"9"))return t--,r[t++]="bwipp.GS1badWinding#3034",r[t++]="Invalid winding direction",r[t++]=!1,!0},e.lintpieceoftotal=function(){var kt=r[--t];if(r[t++]=kt,kt.length%2!=0)return t-=2,r[t++]="bwipp.GS1badPieceTotalLength#3039",r[t++]="Invalid piece/total length",r[t++]=!1,!0;var Vt=r[--t],Mr=ft(T(Vt,0,~~(Vt.length/2)));if(r[t++]=Vt,r[t++]=Mr,Mr==0)return t-=3,r[t++]="bwipp.GS1badPieceNumber#3041",r[t++]="Invalid piece number",r[t++]=!1,!0;var an=r[--t],Bn=r[--t],Nn=~~(Bn.length/2),li=ft(T(Bn,Nn,Nn));if(r[t++]=an,r[t++]=li,li==0)return t-=3,r[t++]="bwipp.GS1badPieceTotal#3043",r[t++]="Invalid total number",r[t++]=!1,!0;var ci=r[--t];if(Mc(r[--t],ci))return t--,r[t++]="bwipp.GS1pieceExceedsTotal#3044",r[t++]="Piece number exceeds total",r[t++]=!1,!0},e.lintposinseqslash=function(){if(pr(r[--t],"/"),fr(r[--t]))return t--,r[t++]="bwipp.invalidPosInSeqFormat#3049",r[t++]="Invalid / format",r[t++]=!1,!0;var kt=r[--t],Vt=r[--t];r[t++]=kt,r[t++]=Vt,t--;var Mr=r[--t];if(r[t++]=Mr,Mr.length==0)return t-=2,r[t++]="bwipp.invalidPosInSeqFormat#3053",r[t++]="Invalid / format",r[t++]=!1,!0;var an=r[--t],Bn=r[--t];if(r[t++]=Bn,r[t++]=an,Bn.length==0)return t-=2,r[t++]="bwipp.invalidPosInSeqFormat#3056",r[t++]="Invalid / format",r[t++]=!1,!0;var Nn=r[--t];if(r[t++]=Nn,r[t++]=!0,Oe(Nn,function(){var ga=r[--t];if(ga<48||ga>57)return t--,r[t++]=!1,!0}),fr(r[--t]))return t-=2,r[t++]="bwipp.positionNotNumeric#3061",r[t++]="Position is not numeric",r[t++]=!1,!0;var li=r[--t],ci=r[--t];if(r[t++]=ci,r[t++]=li,r[t++]=!0,Oe(ci,function(){var ga=r[--t];if(ga<48||ga>57)return t--,r[t++]=!1,!0}),fr(r[--t]))return t-=2,r[t++]="bwipp.endNotNumeric#3065",r[t++]="End is not numeric",r[t++]=!1,!0;var ks=r[--t];if(r[t++]=ks,u(ks,0)==48)return t-=2,r[t++]="bwipp.positionZeroPrefix#3066",r[t++]="Position cannot have zero prefix",r[t++]=!1,!0;var Ss=r[--t],Is=r[--t];if(r[t++]=Is,r[t++]=Ss,u(Is,0)==48)return t-=2,r[t++]="bwipp.endZeroPrefix#3067",r[t++]="End cannot have zero prefix",r[t++]=!1,!0;var ss=r[--t];if(ft(r[--t])57)return t--,r[t++]=!1,!0}),fr(r[--t]))return t-=2,r[t++]="bwipp.GS1couponNotNumeric#3090",r[t++]="Coupon not numeric",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,Vt.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortGCPVLI#3094",r[t++]="Coupon too short: Missing GCP VLI",r[t++]=!1,!0;var Mr=r[--t],an=ft(T(Mr,0,1));if(r[t++]=Mr,r[t++]=an,an>6)return t-=2,r[t++]="bwipp.GS1couponBadGCPVLI#3097",r[t++]="Coupon GCP length indicator must be 0-6",r[t++]=!1,!0;var Bn=r[--t],Nn=r[--t];if(r[t++]=Nn,r[t++]=h(h(Bn+6)+1),h(h(Bn+6)+1)>Nn.length)return t-=3,r[t++]="bwipp.GS1couponTooShortGCP#3101",r[t++]="Coupon too short: GCP truncated",r[t++]=!1,!0;var li=r[--t],ci=r[--t],ks=T(ci,li,h(ci.length-li));if(r[t++]=ks,ks.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortOfferCode#3107",r[t++]="Coupon too short: Offer Code truncated",r[t++]=!1,!0;var Ss=r[--t],Is=T(Ss,6,Ss.length-6);if(r[t++]=Is,Is.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSaveValueVLI#3113",r[t++]="Coupon too short: Missing Save Value VLI",r[t++]=!1,!0;var ss=r[--t],ga=ft(T(ss,0,1));if(r[t++]=ss,r[t++]=ga,ga<1||ga>5)return t-=2,r[t++]="bwipp.GS1couponBadSaveValueVLI#3116",r[t++]="Coupon Save Value length indicator must be 1-5",r[t++]=!1,!0;var Oa=r[--t],al=r[--t];if(r[t++]=al,r[t++]=h(Oa+1),h(Oa+1)>al.length)return t-=3,r[t++]="bwipp.GS1couponTooShortSaveValue#3120",r[t++]="Coupon too short: Save Value truncated",r[t++]=!1,!0;var Sl=r[--t],mc=r[--t],Jl=T(mc,Sl,h(mc.length-Sl));if(r[t++]=Jl,Jl.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort1stPurchaseRequirementVLI#3126",r[t++]="Coupon too short: Missing 1st Purchase Requirement VLI",r[t++]=!1,!0;var gc=r[--t],Zl=ft(T(gc,0,1));if(r[t++]=gc,r[t++]=Zl,Zl<1||Zl>5)return t-=2,r[t++]="bwipp.GS1couponBad1stPurchaseRequirementVLI#3129",r[t++]="Coupon 1st Purchase Requirement length indicator must be 1-5",r[t++]=!1,!0;var vc=r[--t],Tu=r[--t];if(r[t++]=Tu,r[t++]=h(vc+1),h(vc+1)>Tu.length)return t-=3,r[t++]="bwipp.GS1couponTooShort1stPurchaseRequirement#3133",r[t++]="Coupon too short: 1st Purchase Requirement truncated",r[t++]=!1,!0;var zf=r[--t],Hf=r[--t],zd=T(Hf,zf,h(Hf.length-zf));if(r[t++]=zd,zd.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort1stPurchaseRequirementCode#3139",r[t++]="Coupon too short: Missing 1st Purchase Requirement Code",r[t++]=!1,!0;var Uf=r[--t],e1=ft(T(Uf,0,1));if(r[t++]=Uf,e1>4&&e1!=9)return t-=2,r[t++]="bwipp.GS1couponBad1stPurchaseRequirementCode#3142",r[t++]="Coupon 1st Purchase Requirement Code must be 0-4 or 9",r[t++]=!1,!0;var L1=r[--t],bc=T(L1,1,L1.length-1);if(r[t++]=bc,bc.length<3)return t-=2,r[t++]="bwipp.GS1couponTooShort1stPurchaseFamilyCode#3148",r[t++]="Coupon too short: 1st Purchase Family Code truncated",r[t++]=!1,!0;var U9=r[--t],G9=T(U9,3,U9.length-3);if(r[t++]=G9,G9.length>=1){var V9=r[--t];if(r[t++]=V9,ft(T(V9,0,1))==1){var Q9=r[--t],W9=T(Q9,1,Q9.length-1);if(r[t++]=W9,W9.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#3158",r[t++]="Coupon too short: Missing Additional Purchase Rules Code",r[t++]=!1,!0;var q9=r[--t];if(r[t++]=q9,ft(T(q9,0,1))>3)return t-=2,r[t++]="bwipp.GS1couponBadAdditionalPurchaseRulesCode#3161",r[t++]="Coupon Additional Purchase Rules Code must be 0-3",r[t++]=!1,!0;var _9=r[--t],Y9=T(_9,1,_9.length-1);if(r[t++]=Y9,Y9.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#3167",r[t++]="Coupon too short: Missing 2nd Purchase Requirement VLI",r[t++]=!1,!0;var K9=r[--t],Z4=ft(T(K9,0,1));if(r[t++]=K9,r[t++]=Z4,Z4<1||Z4>5)return t-=2,r[t++]="bwipp.GS1couponBad2ndPurchaseRequirementVLI#3170",r[t++]="Coupon 2nd Purchase Requirement length indicator must be 1-5",r[t++]=!1,!0;var X9=r[--t],J9=r[--t];if(r[t++]=J9,r[t++]=h(X9+1),h(X9+1)>J9.length)return t-=3,r[t++]="bwipp.GS1couponTooShort2ndPurchaseRequirement#3174",r[t++]="Coupon too short: 2nd Purchase Requirement truncated",r[t++]=!1,!0;var Z9=r[--t],eC=r[--t],tC=T(eC,Z9,h(eC.length-Z9));if(r[t++]=tC,tC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseRequirementCode#3180",r[t++]="Coupon too short: Missing 2nd Purchase Requirement Code",r[t++]=!1,!0;var rC=r[--t],nC=ft(T(rC,0,1));if(r[t++]=rC,nC>4&&nC!=9)return t-=2,r[t++]="bwipp.GS1couponBad2ndPurchaseRequirementCode#3183",r[t++]="Coupon 2nd Purchase Requirement Code must be 0-4 or 9",r[t++]=!1,!0;var oC=r[--t],iC=T(oC,1,oC.length-1);if(r[t++]=iC,iC.length<3)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseFamilyCode#3189",r[t++]="Coupon too short: 2nd Purchase Family Code truncated",r[t++]=!1,!0;var aC=r[--t],sC=T(aC,3,aC.length-3);if(r[t++]=sC,sC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort2ndPurchaseGCPVLI#3195",r[t++]="Coupon too short: Missing 2nd Purchase GCP VLI",r[t++]=!1,!0;var lC=r[--t],ew=ft(T(lC,0,1));if(r[t++]=lC,r[t++]=ew,ew>6&&ew!=9)return t-=2,r[t++]="bwipp.GS1couponBad2ndPurchaseGCPVLI#3198",r[t++]="Coupon 2nd Purchase GCP length indicator must be 0-6 or 9",r[t++]=!1,!0;var cC=r[--t];if(r[t++]=cC,cC!=9){var W$=r[--t];r[t++]=h(W$+6)}else t--,r[t++]=0;var uC=r[--t],dC=r[--t];if(r[t++]=dC,r[t++]=h(uC+1),h(uC+1)>dC.length)return t-=3,r[t++]="bwipp.GS1couponTooShort2ndPurchaseGCP#3202",r[t++]="Coupon too short: 2nd Purchase GCP truncated",r[t++]=!1,!0;var fC=r[--t],pC=r[--t];r[t++]=T(pC,fC,h(pC.length-fC))}}var hC=r[--t];if(r[t++]=hC,hC.length>=1){var mC=r[--t];if(r[t++]=mC,ft(T(mC,0,1))==2){var gC=r[--t],vC=T(gC,1,gC.length-1);if(r[t++]=vC,vC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#3214",r[t++]="Coupon too short: Missing 3rd Purchase Requirement VLI",r[t++]=!1,!0;var bC=r[--t],tw=ft(T(bC,0,1));if(r[t++]=bC,r[t++]=tw,tw<1||tw>5)return t-=2,r[t++]="bwipp.GS1couponBad3rdPurchaseRequirementVLI#3217",r[t++]="Coupon 3rd Purchase Requirement length indicator must be 1-5",r[t++]=!1,!0;var wC=r[--t],xC=r[--t];if(r[t++]=xC,r[t++]=h(wC+1),h(wC+1)>xC.length)return t-=3,r[t++]="bwipp.GS1couponTooShort3rdPurchaseRequirement#3221",r[t++]="Coupon too short: 3rd Purchase Requirement truncated",r[t++]=!1,!0;var yC=r[--t],AC=r[--t],CC=T(AC,yC,h(AC.length-yC));if(r[t++]=CC,CC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseRequirementCode#3227",r[t++]="Coupon too short: Missing 3rd Purchase Requirement Code",r[t++]=!1,!0;var kC=r[--t],SC=ft(T(kC,0,1));if(r[t++]=kC,SC>4&&SC!=9)return t-=2,r[t++]="bwipp.GS1couponBad3rdPurchaseRequirementCode#3230",r[t++]="Coupon 3rd Purchase Requirement Code must be 0-4 or 9",r[t++]=!1,!0;var IC=r[--t],EC=T(IC,1,IC.length-1);if(r[t++]=EC,EC.length<3)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseFamilyCode#3236",r[t++]="Coupon too short: 3rd Purchase Family Code truncated",r[t++]=!1,!0;var MC=r[--t],PC=T(MC,3,MC.length-3);if(r[t++]=PC,PC.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShort3rdPurchaseGCPVLI#3242",r[t++]="Coupon too short: Missing 3rd Purchase GCP VLI",r[t++]=!1,!0;var jC=r[--t],rw=ft(T(jC,0,1));if(r[t++]=jC,r[t++]=rw,rw>6&&rw!=9)return t-=2,r[t++]="bwipp.GS1couponBad3rdPurchaseGCPVLI#3245",r[t++]="Coupon 3rd Purchase GCP length indicator must be 0-6 or 9",r[t++]=!1,!0;var OC=r[--t];if(r[t++]=OC,OC!=9){var q$=r[--t];r[t++]=h(q$+6)}else t--,r[t++]=0;var RC=r[--t],BC=r[--t];if(r[t++]=BC,r[t++]=h(RC+1),h(RC+1)>BC.length)return t-=3,r[t++]="bwipp.GS1couponTooShort3rdPurchaseGCP#3249",r[t++]="Coupon too short: 3rd Purchase GCP truncated",r[t++]=!1,!0;var TC=r[--t],FC=r[--t];r[t++]=T(FC,TC,h(FC.length-TC))}}e.couponexpire=-1;var DC=r[--t];if(r[t++]=DC,DC.length>=1){var NC=r[--t];if(r[t++]=NC,ft(T(NC,0,1))==3){var $C=r[--t],LC=T($C,1,$C.length-1);if(r[t++]=LC,LC.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortExpirationDate#3262",r[t++]="Coupon too short: Expiration date",r[t++]=!1,!0;var zC=r[--t],HC=ft(T(zC,2,2));if(r[t++]=zC,HC<1||HC>12)return t-=2,r[t++]="bwipp.GS1couponExpirationDateBadMonth#3264",r[t++]="Invalid month in expiration date",r[t++]=!1,!0;var UC=r[--t],GC=ft(T(UC,0,2)),VC=GC-21;if(r[t++]=UC,r[t++]=GC,r[t++]=VC,VC>=51){t--;var _$=r[--t];r[t++]=h(_$+1900)}else if(r[--t]<=-50){var Y$=r[--t];r[t++]=h(Y$+2100)}else{var K$=r[--t];r[t++]=h(K$+2e3)}var nw=r[--t];r[t++]=nw%400==0||nw%4==0&&nw%100!=0,r[t++]=1/0;var X$=r[--t],J$=r[--t]?29:28;r[t++]=X$,r[t++]=31,r[t++]=J$,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31;var Z$=a(),ow=r[--t],QC=ft(T(ow,4,2));if(r[t++]=ow,u(Z$,ft(T(ow,2,2))-1)=1){var qC=r[--t];if(r[t++]=qC,ft(T(qC,0,1))==4){var _C=r[--t],YC=T(_C,1,_C.length-1);if(r[t++]=YC,YC.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortStartDate#3283",r[t++]="Coupon too short: Start date",r[t++]=!1,!0;var KC=r[--t],XC=ft(T(KC,2,2));if(r[t++]=KC,XC<1||XC>12)return t-=2,r[t++]="bwipp.GS1couponStartDateBadMonth#3285",r[t++]="Invalid month in start date",r[t++]=!1,!0;var JC=r[--t],ZC=ft(T(JC,0,2)),e7=ZC-21;if(r[t++]=JC,r[t++]=ZC,r[t++]=e7,e7>=51){t--;var eL=r[--t];r[t++]=h(eL+1900)}else if(r[--t]<=-50){var tL=r[--t];r[t++]=h(tL+2100)}else{var rL=r[--t];r[t++]=h(rL+2e3)}var aw=r[--t];r[t++]=aw%400==0||aw%4==0&&aw%100!=0,r[t++]=1/0;var nL=r[--t],oL=r[--t]?29:28;r[t++]=nL,r[t++]=31,r[t++]=oL,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=31,r[t++]=30,r[t++]=31,r[t++]=30,r[t++]=31;var iL=a(),sw=r[--t],t7=ft(T(sw,4,2));if(r[t++]=sw,u(iL,ft(T(sw,2,2))-1)=1){var i7=r[--t];if(r[t++]=i7,ft(T(i7,0,1))==5){var a7=r[--t],s7=T(a7,1,a7.length-1);if(r[t++]=s7,s7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSerialNumberVLI#3307",r[t++]="Coupon too short: Missing Serial Number VLI",r[t++]=!1,!0;var lw=r[--t],l7=T(lw,0,1);if(r[t++]=lw,r[t++]=ft(l7)+6+1,ft(l7)+6+1>lw.length)return t-=3,r[t++]="bwipp.GS1couponTooShortSerialNumber#3311",r[t++]="Coupon too short: Serial Number truncated",r[t++]=!1,!0;var c7=r[--t],u7=r[--t];r[t++]=T(u7,c7,h(u7.length-c7))}}var d7=r[--t];if(r[t++]=d7,d7.length>=1){var f7=r[--t];if(r[t++]=f7,ft(T(f7,0,1))==6){var p7=r[--t],h7=T(p7,1,p7.length-1);if(r[t++]=h7,h7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortRetailerGCPGLNVLI#3323",r[t++]="Coupon too short: Missing Retailer GCP/GLN VLI",r[t++]=!1,!0;var m7=r[--t],cw=ft(T(m7,0,1));if(r[t++]=m7,r[t++]=cw,cw<1||cw>7)return t-=2,r[t++]="bwipp.GS1couponBadRetailerGCPGLNVLI#3326",r[t++]="Coupon Retailer GCP/GLN length indicator must be 1-7",r[t++]=!1,!0;var g7=r[--t],v7=r[--t];if(r[t++]=v7,r[t++]=h(h(g7+6)+1),h(h(g7+6)+1)>v7.length)return t-=3,r[t++]="bwipp.GS1couponTooShortRetailerGCPGLN#3330",r[t++]="Coupon too short: Retailer GCP/GLN truncated",r[t++]=!1,!0;var b7=r[--t],w7=r[--t];r[t++]=T(w7,b7,h(w7.length-b7))}}var x7=r[--t];if(r[t++]=x7,x7.length>=1){var y7=r[--t];if(r[t++]=y7,ft(T(y7,0,1))==9){var A7=r[--t],C7=T(A7,1,A7.length-1);if(r[t++]=C7,C7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSaveValueCode#3342",r[t++]="Coupon too short: Missing Save Value Code",r[t++]=!1,!0;var k7=r[--t],uw=ft(T(k7,0,1));if(r[t++]=k7,uw>6||uw==3||uw==4)return t-=2,r[t++]="bwipp.GS1couponBadSaveValueCode#3345",r[t++]="Coupon Save Value Code must be 0,1,2,5 or 6",r[t++]=!1,!0;var S7=r[--t],I7=T(S7,1,S7.length-1);if(r[t++]=I7,I7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSaveValueAppliesToItem#3351",r[t++]="Coupon too short: Missing Save Value Applies to Item",r[t++]=!1,!0;var E7=r[--t];if(r[t++]=E7,ft(T(E7,0,1))>2)return t-=2,r[t++]="bwipp.GS1couponBadSaveValueAppliesToItem#3354",r[t++]="Coupon Save Value Applies to Item must be 0-2",r[t++]=!1,!0;var M7=r[--t],P7=T(M7,1,M7.length-1);if(r[t++]=P7,P7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortStoreCouponFlag#3360",r[t++]="Coupon too short: Missing Store Coupon Flag",r[t++]=!1,!0;var j7=r[--t],O7=T(j7,1,j7.length-1);if(r[t++]=O7,O7.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortDontMultiplyFlag#3366",r[t++]="Coupon too short: Missing Don't Multiply Flag",r[t++]=!1,!0;var R7=r[--t];if(r[t++]=R7,ft(T(R7,0,1))>1)return t-=2,r[t++]="bwipp.GS1couponBadDontMultiplyFlag#3369",r[t++]="Don't Multiply Flag must be 0 or 1",r[t++]=!1,!0;var B7=r[--t];r[t++]=T(B7,1,B7.length-1)}}var T7=r[--t];if(r[t++]=T7,T7.length!=0)return t-=2,r[t++]="bwipp.GS1couponUnrecognisedOptionalField#3376",r[t++]="Coupon fields must be 1,2,3,4,5,6 or 9, increasing order",r[t++]=!1,!0;t--},e.lintcouponposoffer=function(){var kt=r[--t];if(r[t++]=kt,r[t++]=!0,Oe(kt,function(){var vc=r[--t];if(vc<48||vc>57)return t--,r[t++]=!1,!0}),fr(r[--t]))return t-=2,r[t++]="bwipp.GS1couponNotNumeric#3385",r[t++]="Coupon not numeric",r[t++]=!1,!0;var Vt=r[--t];if(r[t++]=Vt,Vt.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortFormatCode#3388",r[t++]="Coupon too short: Missing Format Code",r[t++]=!1,!0;var Mr=r[--t],an=T(Mr,0,1);if(r[t++]=Mr,it(an,"0")&&it(an,"1"))return t-=2,r[t++]="bwipp.GS1couponBadFormatCode#3391",r[t++]="Coupon format must be 0 or 1",r[t++]=!1,!0;var Bn=r[--t],Nn=T(Bn,1,Bn.length-1);if(r[t++]=Nn,Nn.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortFunderVLI#3396",r[t++]="Coupon too short: Missing Funder VLI",r[t++]=!1,!0;var li=r[--t],ci=ft(T(li,0,1));if(r[t++]=li,r[t++]=ci,ci>6)return t-=3,r[t++]="bwipp.GS1couponBadFunderVLI#3399",r[t++]="Coupon Funder length indicator must be 0-6",r[t++]=!1,!0;var ks=r[--t],Ss=r[--t];if(r[t++]=Ss,r[t++]=h(h(ks+6)+1),h(h(ks+6)+1)>Ss.length)return t-=3,r[t++]="bwipp.GS1couponTooShortFunder#3403",r[t++]="Coupon too short: Truncated Funder ID",r[t++]=!1,!0;var Is=r[--t],ss=r[--t],ga=T(ss,Is,h(ss.length-Is));if(r[t++]=ga,ga.length<6)return t-=2,r[t++]="bwipp.GS1couponTooShortOfferCode#3408",r[t++]="Coupon too short: Truncated Offer Code",r[t++]=!1,!0;var Oa=r[--t],al=T(Oa,6,Oa.length-6);if(r[t++]=al,al.length<1)return t-=2,r[t++]="bwipp.GS1couponTooShortSnVLI#3413",r[t++]="Coupon too short: Missing SN VLI",r[t++]=!1,!0;var Sl=r[--t],mc=T(Sl,0,1);if(r[t++]=Sl,r[t++]=ft(mc)+6+1,ft(mc)+6+1>Sl.length)return t-=3,r[t++]="bwipp.GS1couponTooShortSn#3418",r[t++]="Coupon too short: Truncated SN",r[t++]=!1,!0;var Jl=r[--t],gc=r[--t],Zl=T(gc,Jl,h(gc.length-Jl));if(r[t++]=Zl,Zl.length!=0)return t-=2,r[t++]="bwipp.GS1couponTooLong#3422",r[t++]="Coupon too long",r[t++]=!1,!0;t--},e.lintlatitude=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=10)return t--,r[t++]="bwipp.GS1badLatitudeLength#3429",r[t++]="Invalid length for a latitude",r[t++]=!1,!0;if(ft(r[--t])>ft("1800000000"))return t--,r[t++]="bwipp.GS1badLatitude#3433",r[t++]="Invalid value for latitude",r[t++]=!1,!0},e.lintlongitude=function(){var kt=r[--t];if(r[t++]=kt,kt.length!=10)return t--,r[t++]="bwipp.GS1badLongitudeLength#3438",r[t++]="Invalid length for a longitude",r[t++]=!1,!0;if(ft(r[--t])>ft("3600000000"))return t--,r[t++]="bwipp.GS1badLongitude#3443",r[t++]="Invalid value for longitude",r[t++]=!1,!0},!Jr.__3452__){e=Object.create(e),r[t++]=1/0;for(var T9=a(["01","02","03","04","05","06","07","08","09","10","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99"]),X4=0,D$=T9.length;X4e.val.length){t--,r[t++]="bwipp.GS1valueTooShort#3469",r[t++]="Too short",r[t++]=!1;break}var N9=r[--t];if(r[t++]=N9,r[t++]=0,Oe(N9,function(){var kt=u(r[--t],"max"),Vt=r[--t];r[t++]=h(Vt+kt)}),r[--t]Vt.length){var an=Mr;Mr=kt,kt=an}e.eval=T(e.val,0,kt);var Bn=e.eval.length;if(e.val=T(e.val,Bn,e.val.length-Bn),e.eval.length==0){if(fr(u(e.props,"opt")))return t--,r[t++]="bwipp.GS1valueTooShort#3481",r[t++]="Too short",r[t++]=!1,!0}else{if(e.eval.length=Ie:fe<=Ie;fe+=he)r[t++]=0,oe(T(e.pixs,fe,e.pixx)),r[t++]=0;for(var ve=0,be=e.pixx+2;ve57)&&(r[t++]="bwipp.ean5badCharacter#4426",r[t++]="EAN-5 add-on must contain only digits",ne())}),!ou.__4446__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]),e.barchars="0123456789",e.mirrormaps=a(["11000","10100","10010","10001","01100","00110","00011","01010","01001","00101"]);for(var n in e)e.hasOwnProperty(n)&&(ou.$ctx[n]=e[n]);ou.__4446__=1,e=Object.getPrototypeOf(e)}e.checksum=0;for(var o=0;o<=4;o+=1)e.i=o,e.barchar=h(u(e.barcode,e.i)-48),e.i%2==0?e.checksum=h(e.barchar*3+e.checksum):e.checksum=h(e.barchar*9+e.checksum);e.checksum=e.checksum%10,e.mirrormap=u(e.mirrormaps,e.checksum),e.sbs=pe(31),e.txt=a(5);for(var i=0;i<=4;i+=1){if(e.i=i,e.i==0?K(e.sbs,0,u(e.encs,10)):K(e.sbs,(e.i-1)*6+7,u(e.encs,11)),pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var s=0,l=e.enclen-1;s<=l;s+=1)e.j=s,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,e.i*6+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*9+10+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}r[t++]=1/0,r[t++]=1/0;for(var c=e.sbs,d=0,f=c.length;d57)&&(r[t++]="bwipp.ean2badCharacter#4571",r[t++]="EAN-2 add-on must contain only digits",ne())}),!iu.__4588__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]),e.barchars="0123456789",e.mirrormaps=a(["00","01","10","11"]);for(var n in e)e.hasOwnProperty(n)&&(iu.$ctx[n]=e[n]);iu.__4588__=1,e=Object.getPrototypeOf(e)}e.mirrormap=u(e.mirrormaps,ft(T(e.barcode,0,2))%4),e.sbs=pe(13),e.txt=a(2);for(var o=0;o<=1;o+=1){if(e.i=o,e.i==0?K(e.sbs,0,u(e.encs,10)):K(e.sbs,(e.i-1)*6+7,u(e.encs,11)),pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var i=0,s=e.enclen-1;i<=s;i+=1)e.j=i,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,e.i*6+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*9+10+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}r[t++]=1/0,r[t++]=1/0;for(var l=e.sbs,c=0,d=l.length;c57)&&(r[t++]="bwipp.ean13badCharacter#4715",r[t++]="EAN-13 must contain only digits",ne())}),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.ean13badAddOnLength#4719",r[t++]="Add-on for EAN-13 must be 2 or 5 digits",ne()),e.pad=pe(13),e.checksum=0;for(var n=0;n<=11;n+=1)e.i=n,e.barchar=h(u(e.barcode,e.i)-48),e.i%2==0?e.checksum=h(e.barchar+e.checksum):e.checksum=h(e.barchar*3+e.checksum);if(e.checksum=h(10-e.checksum%10)%10,e.barcode.length==13&&u(e.barcode,12)!=h(e.checksum+48)&&(r[t++]="bwipp.ean13badCheckDigit#4737",r[t++]="Incorrect EAN-13 check digit provided",ne()),K(e.pad,0,e.barcode),y(e.pad,12,h(e.checksum+48)),e.barcode=e.pad,!au.__4760__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]),e.barchars="0123456789",e.mirrormaps=a(["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var o in e)e.hasOwnProperty(o)&&(au.$ctx[o]=e[o]);au.__4760__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(59),e.txt=a(13),K(e.sbs,0,u(e.encs,10)),e.mirrormap=u(e.mirrormaps,u(e.barcode,0)-48),y(e.txt,0,a([T(e.barcode,0,1),e.textxoffset,e.textyoffset,e.textfont,e.textsize]));for(var i=1;i<=6;i+=1){if(e.i=i,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i-1)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var s=0,l=e.enclen-1;s<=l;s+=1)e.j=s,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,(e.i-1)*4+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*7+15+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}K(e.sbs,6*4+3,u(e.encs,11));for(var c=7;c<=12;c+=1)e.i=c,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,(e.i-1)*4+8,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*7+19+e.textxoffset,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,56,u(e.encs,12)),r[t++]=1/0;for(var d=e.sbs,f=0,p=d.length;f57)&&(r[t++]="bwipp.ean8badCharacter#4935",r[t++]="EAN-8 must contain only digits",ne())}),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.ean8badAddOnLength#4939",r[t++]="Add-on for EAN-8 must be 2 or 5 digits",ne()),e.pad=pe(8),e.checksum=0;for(var n=0;n<=6;n+=1)e.i=n,e.barchar=h(u(e.barcode,e.i)-48),e.i%2!=0?e.checksum=h(e.barchar+e.checksum):e.checksum=h(e.barchar*3+e.checksum);if(e.checksum=h(10-e.checksum%10)%10,e.barcode.length==8&&u(e.barcode,7)!=h(e.checksum+48)&&(r[t++]="bwipp.ean8badCheckDigit#4957",r[t++]="Incorrect EAN-8 check digit provided",ne()),K(e.pad,0,e.barcode),y(e.pad,7,h(e.checksum+48)),e.barcode=e.pad,!Jd.__4974__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]),e.barchars="0123456789";for(var o in e)e.hasOwnProperty(o)&&(Jd.$ctx[o]=e[o]);Jd.__4974__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(43),e.txt=a(8),K(e.sbs,0,u(e.encs,10));for(var i=0;i<=3;i+=1)e.i=i,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+e.textxoffset,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,4*4+3,u(e.encs,11));for(var s=4;s<=7;s+=1)e.i=s,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+8,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+e.textxoffset+4,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,40,u(e.encs,12)),r[t++]=1/0;for(var l=e.sbs,c=0,d=l.length;c57)&&(r[t++]="bwipp.upcAupcEbadCharacter#5135",r[t++]="UPC-E must contain only digits",ne())});var n=u(e.barcode,0);n!=48&&n!=49&&(r[t++]="bwipp.upcAupcEbadNumberSystem#5139",r[t++]="UPC-E must have number system 0 or 1",ne());for(var o=0,i=1;o=5){K(e.upcacode,0,T(e.barcode,0,6)),K(e.upcacode,6,"0000"),K(e.upcacode,10,T(e.barcode,6,1));break}}e.barcode.length==8&&K(e.upcacode,11,T(e.barcode,7,1)),e.barcode=e.upcacode}e.barcode.length!=11&&e.barcode.length!=12&&(r[t++]="bwipp.upcAbadLength#5177",r[t++]="UPC-A must be 11 or 12 digits",ne());for(var l=e.barcode,c=0,d=l.length;c57)&&(r[t++]="bwipp.upcAbadCharacter#5181",r[t++]="UPC-A must contain only digits",ne())}e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.upcAbadAddOnLength#5185",r[t++]="Add-on for UPC-A must be 2 or 5 digits",ne()),e.pad=pe(12),e.checksum=0;for(var p=0;p<=10;p+=1)e.i=p,e.barchar=u(e.barcode,e.i)-48,e.i%2!=0?e.checksum=e.checksum+e.barchar:e.checksum=e.checksum+e.barchar*3;if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==12&&u(e.barcode,11)!=e.checksum+48&&(r[t++]="bwipp.upcAbadCheckDigit#5203",r[t++]="Incorrect UPC check digit provided",ne()),K(e.pad,0,e.barcode),y(e.pad,11,e.checksum+48),e.barcode=e.pad,!M2.__5220__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]),e.barchars="0123456789";for(var m in e)e.hasOwnProperty(m)&&(M2.$ctx[m]=e[m]);M2.__5220__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(59),e.txt=a(12),K(e.sbs,0,u(e.encs,10));for(var g=0;g<=5;g+=1)e.i=g,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+3,e.enc),e.i==0?y(e.txt,0,a([T(e.barcode,0,1),e.textxoffset,e.textyoffset,e.textfont,e.textsize-2])):y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+13+e.textxoffset,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,6*4+3,u(e.encs,11));for(var v=6;v<=11;v+=1)e.i=v,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4+8,e.enc),e.i==11?y(e.txt,11,a([T(e.barcode,11,1),e.textxoffset+107,e.textyoffset,e.textfont,e.textsize-2])):y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*7+e.textxoffset+17,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,56,u(e.encs,12)),r[t++]=1/0;for(var w=e.sbs,A=0,k=w.length;A57)&&(r[t++]="bwipp.upcEupcAbadCharacter#5388",r[t++]="UPC-A must contain only digits",ne())});for(var n=0,o=1;n=5&&ae(T(e.barcode,6,4),"0000")){K(e.upcecode,0,T(e.barcode,0,6)),K(e.upcecode,6,T(e.barcode,10,1));break}r[t++]="bwipp.upcEupcAnotCompressible#5416",r[t++]="UPC-A cannot be converted to a UPC-E",ne()}e.barcode.length==12&&K(e.upcecode,7,T(e.barcode,11,1)),e.barcode=e.upcecode}e.barcode.length!=7&&e.barcode.length!=8&&(r[t++]="bwipp.upcEbadLength#5426",r[t++]="UPC-E must be 7 or 8 digits",ne());for(var s=e.barcode,l=0,c=s.length;l57)&&(r[t++]="bwipp.upcEbadCharacter#5430",r[t++]="UPC-E must contain only digits",ne())}e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.upcEbadAddOnLength#5434",r[t++]="Add-on for UPC-E must be 2 or 5 digits",ne());var f=u(e.barcode,0);if(f!=48&&f!=49&&(r[t++]="bwipp.upcEbadNumberSystem#5439",r[t++]="UPC-E must have number system 0 or 1",ne()),!P2.__5457__){e=Object.create(e),e.encs=a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","111111"]),e.barchars="0123456789",e.mirrormaps=a(["000111","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var p in e)e.hasOwnProperty(p)&&(P2.$ctx[p]=e[p]);P2.__5457__=1,e=Object.getPrototypeOf(e)}for(var m=0,g=1;m=5){K(e.upcacode,0,T(e.barcode,0,6)),K(e.upcacode,6,"0000"),K(e.upcacode,10,T(e.barcode,6,1));break}}e.checksum=0;for(var v=0;v<=10;v+=1)e.i=v,e.barchar=u(e.upcacode,e.i)-48,e.i%2!=0?e.checksum=e.checksum+e.barchar:e.checksum=e.checksum+e.barchar*3;if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==8&&u(e.barcode,7)!=e.checksum+48&&(r[t++]="bwipp.upcEbadCheckDigit#5501",r[t++]="Incorrect UPC check digit provided",ne()),e.pad=pe(8),K(e.pad,0,e.barcode),y(e.pad,7,e.checksum+48),e.barcode=e.pad,e.txt=a(8),y(e.txt,0,a([T(e.barcode,0,1),e.textxoffset,e.textyoffset,e.textfont,e.textsize-2])),e.mirrormap=u(e.mirrormaps,e.checksum),u(e.barcode,0)==48){e.invt=pe(e.mirrormap.length);for(var w=0,A=e.mirrormap.length-1;w<=A;w+=1)e.i=w,u(e.mirrormap,e.i)==48?y(e.invt,e.i,49):y(e.invt,e.i,48);e.mirrormap=e.invt}e.sbs=pe(33),K(e.sbs,0,u(e.encs,10));for(var k=1;k<=6;k+=1){if(e.i=k,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),u(e.mirrormap,e.i-1)==49){e.enclen=e.enc.length,e.revenc=pe(e.enclen);for(var C=0,M=e.enclen-1;C<=M;C+=1)e.j=C,e.char=u(e.enc,e.j),y(e.revenc,e.enclen-e.j-1,e.char);e.enc=e.revenc}K(e.sbs,(e.i-1)*4+3,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i-1)*7+13+e.textxoffset,e.textyoffset,e.textfont,e.textsize]))}y(e.txt,7,a([T(e.barcode,7,1),6*7+21+e.textxoffset,e.textyoffset,e.textfont,e.textsize-2])),K(e.sbs,27,u(e.encs,11)),r[t++]=1/0;for(var S=e.sbs,I=0,E=S.length;I=15){var n=T(e.barcode,0,4);it(n,"978-")&&it(n,"979-")&&(r[t++]="bwipp.isbn13badPrefix#5677",r[t++]="ISBN-13 prefix must be 978- or 979-",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var o=T(e.barcode,5,9),i=0,s=o.length;i=48&&c<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=2||e.numdigit!=7)&&(r[t++]="bwipp.isbn13numDashesDigits#5695",r[t++]="Incorrect number of dashes and digits for ISBN-13",ne());var d=u(e.barcode,14);if((d<48||d>57)&&(r[t++]="bwipp.isbn13character15#5698",r[t++]="ISBN-13 character 15 must be a digit",ne()),e.barcode.length==17){it(T(e.barcode,15,1),"-")&&(r[t++]="bwipp.isbn13character16#5702",r[t++]="ISBN-13 penultimate character must be a dash",ne());var f=u(e.barcode,16);(f<48||f>57)&&(r[t++]="bwipp.isbn13character17#5705",r[t++]="ISBN-13 final character must be a digit",ne())}}else{var p=u(e.barcode,0);(p<48||p>57)&&(r[t++]="bwipp.isbn10FirstDigit#5710",r[t++]="ISBN-10 first character must be a digit",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var m=T(e.barcode,1,9),g=0,v=m.length;g=48&&A<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=2||e.numdigit!=7)&&(r[t++]="bwipp.isbn10numDashesDigits#5728",r[t++]="Incorrect number of dashes and digits for ISBN-10",ne());var k=u(e.barcode,10);if((k<48||k>57)&&(r[t++]="bwipp.isbn10character11#5731",r[t++]="ISBN-10 character 11 must be a digit",ne()),e.barcode.length==13){it(T(e.barcode,11,1),"-")&&(r[t++]="bwipp.isbn10character12#5735",r[t++]="ISBN-10 penultimate character must be a dash",ne());var C=u(e.barcode,12);(C<48||C>57)&&C!=88&&(r[t++]="bwipp.isbn10character13#5738",r[t++]="ISBN-10 final character must be a digit or X",ne())}}if(e.isbntxt=e.barcode,e.isbntxt.length<=13){for(e.isbn=pe(10),e.checksum=0,e.i=0,e.n=0;e.isbnchar=h(u(e.isbntxt,e.i)-48),e.isbnchar!=-3&&(y(e.isbn,e.n,h(e.isbnchar+48)),e.n<9&&(e.checksum=h(e.checksum+(10-e.n)*e.isbnchar)),e.n=e.n+1),e.i=e.i+1,e.i!=e.isbntxt.length;);var M=h(11-e.checksum%11)%11;r[t++]="checksum",r[t++]=M,M==10&&(t--,r[t++]=40);var S=r[--t];e[r[--t]]=h(S+48),e.isbn=T(e.isbn,0,9),e.isbntxt.length==13&&u(e.isbntxt,12)!=e.checksum&&(r[t++]="bwipp.isbn10badCheckDigit#5766",r[t++]="Incorrect ISBN-10 check digit provided",ne())}if(!e.legacy||e.isbntxt.length>=15){for(e.isbntxt.length<=13&&(e.pad=pe(15),K(e.pad,0,"978-"),K(e.pad,4,T(e.isbntxt,0,11)),e.isbntxt=e.pad),e.isbn=pe(13),e.checksum=0,e.i=0,e.n=0;;){if(e.isbnchar=u(e.isbntxt,e.i)-48,e.isbnchar!=-3){if(y(e.isbn,e.n,e.isbnchar+48),e.n<12){if(r[t++]="checksum",r[t++]=e.isbnchar,e.n%2!=0){var I=r[--t];r[t++]=I*3}var E=r[--t];e[r[--t]]=h(E+e.checksum)}e.n=e.n+1}if(e.i=e.i+1,e.i==e.isbntxt.length)break}e.checksum=(10-e.checksum%10)%10+48,e.isbn=T(e.isbn,0,12),e.isbntxt.length==17&&u(e.isbntxt,16)!=e.checksum&&(r[t++]="bwipp.isbn13badCheckDigit#5801",r[t++]="Incorrect ISBN-13 check digit provided",ne())}var j=e.isbn.length==12?22:18;if(e.pad=pe(j),K(e.pad,0,"ISBN "),K(e.pad,5,e.isbntxt),y(e.pad,e.pad.length-2,45),y(e.pad,e.pad.length-1,e.checksum),e.isbntxt=e.pad,e.barcode=pe(12),e.isbn.length==9?(K(e.barcode,0,"978"),K(e.barcode,3,e.isbn)):K(e.barcode,0,e.isbn),it(e.addon,"")){var B=pe(12+e.addon.length+1);K(B,0,e.barcode),K(B,12," "),K(B,13,e.addon),e.barcode=B}y(e.options,"dontdraw",!0),y(e.options,"addongap",e.addongap),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,au();var D=r[--t];if(e[r[--t]]=D,e.includetext){if(ae(e.isbntextxoffset,null)){r[t++]="isbntextxoffset",e.isbn.length==9?r[t++]=-1:r[t++]=-12;var R=r[--t];e[r[--t]]=R}ae(e.isbntextyoffset,null)&&(e.isbntextyoffset=e.height*72+3);var N=u(e.args,"txt")!==void 0;N?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.isbntxt,e.isbntextxoffset,e.isbntextyoffset,e.isbntextfont,e.isbntextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.isbntxt,e.isbntextxoffset,e.isbntextyoffset,e.isbntextfont,e.isbntextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Qpe(){if(e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.ismntextfont="OCR-A",e.ismntextsize=8,e.ismntextxoffset=null,e.ismntextyoffset=null,e.height=1,e.addongap=12,e.legacy=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],pr(e.barcode," "),r[--t]?(e.barcode=r[--t],t--,e.addon=r[--t]):(t--,e.addon=""),e.barcode.length!=15&&e.barcode.length!=17&&e.barcode.length!=11&&e.barcode.length!=13&&(r[t++]="bwipp.ismnBadLength#5920",r[t++]="ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes",ne()),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.ismnBadAddOnLength#5923",r[t++]="Add-on for ISMN must be 2 or 5 digits",ne()),e.barcode.length>=15){it(T(e.barcode,0,4),"979-")&&(r[t++]="bwipp.ismn13badPrefix#5927",r[t++]="ISMN-13 prefix must be 979-",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var n=T(e.barcode,5,9),o=0,i=n.length;o=48&&l<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=2||e.numdigit!=7)&&(r[t++]="bwipp.ismn13numDashesDigits#5945",r[t++]="Incorrect number of dashes and digits for ISMN-13",ne());var c=u(e.barcode,14);if((c<48||c>57)&&(r[t++]="bwipp.ismn13character15#5948",r[t++]="ISMN-13 character 15 must be a digit",ne()),e.barcode.length==17){it(T(e.barcode,15,1),"-")&&(r[t++]="bwipp.ismn13character16#5952",r[t++]="ISMN-13 penultimate character must be a dash",ne());var d=u(e.barcode,16);(d<48||d>57)&&(r[t++]="bwipp.ismn13character17#5955",r[t++]="ISMN-13 final character must be a digit",ne())}}else{it(T(e.barcode,0,2),"M-")&&(r[t++]="bwipp.ismn10badPrefix#5960",r[t++]="ISMN-10 prefix must be M-",ne());var f=u(e.barcode,2);(f<48||f>57)&&(r[t++]="bwipp.ismn10character3#5963",r[t++]="ISMN-10 character 3 must be a digit",ne()),e.wasdash=!1,e.numdash=0,e.numdigit=0;for(var p=T(e.barcode,3,7),m=0,g=p.length;m=48&&w<=57&&(e.wasdash=!1,e.numdigit=e.numdigit+1)}(e.numdash!=1||e.numdigit!=6)&&(r[t++]="bwipp.ismn10numDashesDigits#5981",r[t++]="Incorrect number of dashes and digits for ISMN-10",ne());var A=u(e.barcode,10);if((A<48||A>57)&&(r[t++]="bwipp.ismn10character11#5984",r[t++]="ISMN-10 character 11 must be a digit",ne()),e.barcode.length==13){var k=T(e.barcode,11,1);it(k,"-")&&(r[t++]="bwipp.ismn10character12#5988",r[t++]="ISMN-10 penultimate character must be a dash",ne());var C=u(e.barcode,12);(C<48||C>57)&&C!=88&&(r[t++]="bwipp.ismn10character13#5991",r[t++]="ISMN-10 final character must be a digit or X",ne())}}for(e.ismntxt=e.barcode,e.legacytxt="",e.ismntxt.length<=13&&(e.legacytxt=e.ismntxt,e.pad=pe(e.ismntxt.length+4),K(e.pad,0,"979-0-"),K(e.pad,6,T(e.ismntxt,2,e.ismntxt.length-2)),e.ismntxt=e.pad),e.ismn=pe(13),e.checksum=0,e.i=0,e.n=0;e.ismnchar=u(e.ismntxt,e.i)-48,e.ismnchar!=-3&&(y(e.ismn,e.n,e.ismnchar+48),e.n<12&&(e.n%2==0?e.checksum=e.ismnchar+e.checksum:e.checksum=e.ismnchar*3+e.checksum),e.n=e.n+1),e.i=e.i+1,e.i!=e.ismntxt.length;);if(e.checksum=(10-e.checksum%10)%10+48,e.barcode.length==13||e.barcode.length==17){var M=e.barcode;u(M,M.length-1)!=e.checksum&&(r[t++]="bwipp.ismnBadCheckDigit#6033",r[t++]="Incorrect ISMN check digit provided",ne())}if(e.legacy&&it(e.legacytxt,"")?(e.ismntxt=e.legacytxt,e.pad=pe(18)):e.pad=pe(22),K(e.pad,0,"ISMN "),K(e.pad,5,e.ismntxt),y(e.pad,e.pad.length-2,45),y(e.pad,e.pad.length-1,e.checksum),e.ismntxt=e.pad,e.barcode=T(e.ismn,0,12),it(e.addon,"")){var S=pe(12+e.addon.length+1);K(S,0,e.barcode),K(S,12," "),K(S,13,e.addon),e.barcode=S}y(e.options,"dontdraw",!0),y(e.options,"addongap",e.addongap),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,au();var I=r[--t];if(e[r[--t]]=I,e.includetext){if(ae(e.ismntextxoffset,null)){r[t++]="ismntextxoffset",e.ismntxt.length==18?r[t++]=-1:r[t++]=-12;var E=r[--t];e[r[--t]]=E}ae(e.ismntextyoffset,null)&&(e.ismntextyoffset=e.height*72+3);var j=u(e.args,"txt")!==void 0;j?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.ismntxt,e.ismntextxoffset,e.ismntextyoffset,e.ismntextfont,e.ismntextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.ismntxt,e.ismntextxoffset,e.ismntextyoffset,e.ismntextfont,e.ismntextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Wpe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.issntextfont="OCR-A",e.issntextsize=8,e.issntextxoffset=null,e.issntextyoffset=null,e.height=1,e.addongap=12,r[t++]=e,Ot(),e.options=r[--t],e.issntxt=r[--t],pr(e.issntxt," "),r[--t]?(e.issntxt=r[--t],t--,e.seqvar=r[--t]):(t--,e.seqvar="00"),pr(e.seqvar," "),r[--t]?(e.seqvar=r[--t],t--,e.addon=r[--t]):(t--,e.addon=""),e.issntxt.length!=8&&e.issntxt.length!=9&&(r[t++]="bwipp.issnBadLength#6157",r[t++]="ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX",ne());for(var n=T(e.issntxt,0,4),o=0,i=n.length;o57)&&(r[t++]="bwipp.issnFirstThroughFourthNotNumeric#6161",r[t++]="ISSN first four characters must be numeral characters",ne())}it(T(e.issntxt,4,1),"-")&&(r[t++]="bwipp.issnNeedsDash#6165",r[t++]="ISSN fifth character must be a dash",ne());for(var l=T(e.issntxt,5,3),c=0,d=l.length;c57)&&(r[t++]="bwipp.issnSixthThroughEighthNotNumeric#6169",r[t++]="ISSN sixth through eighth characters must be numerals",ne())}if(e.issntxt.length==9){var p=u(e.issntxt,8);(p<48||p>57)&&p!=88&&(r[t++]="bwipp.issnNinthCharacterBadFormat#6174",r[t++]="ISSN ninth character must be a number or the character X",ne())}for(e.seqvar.length!=2&&(r[t++]="bwipp.issnBadSequenceVariantLength#6178",r[t++]="Sequence variant for ISSN must be 2 digits",ne()),Oe(e.seqvar,function(){var C=r[--t];(C<48||C>57)&&(r[t++]="bwipp.issnSequenceVariantBadCharacter#6182",r[t++]="Sequence variant for ISSN must contain only digits",ne())}),e.addon.length!=0&&e.addon.length!=2&&e.addon.length!=5&&(r[t++]="bwipp.issnBadAddOnLength#6186",r[t++]="Add-on for ISSN must be 2 or 5 digits",ne()),e.issn=pe(8),e.checksum=0,e.i=0,e.n=0;e.issnchar=h(u(e.issntxt,e.i)-48),e.issnchar!=-3&&(y(e.issn,e.n,h(e.issnchar+48)),e.n<7&&(e.checksum=h(e.checksum+e.issnchar*(8-e.n))),e.n=e.n+1),e.i=e.i+1,e.i!=e.issntxt.length;);e.checksum=h(11-e.checksum%11)%11;var m=h(e.checksum+48);r[t++]="checksum",r[t++]=m,m==58&&(t--,r[t++]=88);var g=r[--t],v=r[--t];if(e[v]=g,e.issntxt.length==9&&u(e.issntxt,8)!=e.checksum&&(r[t++]="bwipp.issnBadCheckDigit#6209",r[t++]="Incorrect ISSN check digit provided",ne()),e.pad=pe(14),K(e.pad,0,"ISSN "),K(e.pad,5,e.issntxt),y(e.pad,13,e.checksum),e.issntxt=e.pad,e.barcode=T(e.issn,0,7),e.barcode=pe(12),K(e.barcode,0,"977"),K(e.barcode,3,e.issn),K(e.barcode,10,e.seqvar),it(e.addon,"")){var w=pe(12+e.addon.length+1);K(w,0,e.barcode),K(w,12," "),K(w,13,e.addon),e.barcode=w}y(e.options,"dontdraw",!0),y(e.options,"addongap",e.addongap),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,au();var A=r[--t];if(e[r[--t]]=A,e.includetext){ae(e.issntextxoffset,null)&&(e.issntextxoffset=10),ae(e.issntextyoffset,null)&&(e.issntextyoffset=e.height*72+3);var k=u(e.args,"txt")!==void 0;k?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.issntxt,e.issntextxoffset,e.issntextyoffset,e.issntextfont,e.issntextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.issntxt,e.issntextxoffset,e.issntextyoffset,e.issntextfont,e.issntextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function qpe(){if(e=Object.create(e),e.dontdraw=!1,e.includetext=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barlen=e.barcode.length,e.barlen!=7&&e.barlen!=8&&(r[t++]="bwipp.MandSbadLength#6305",r[t++]="M&S barcode must be 7 or 8 characters",ne()),e.barlen==7){var n=Gn(pe(8),"00000000");K(n,1,e.barcode),e.barcode=n}y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,Jd();var o=r[--t];e[r[--t]]=o;var i=u(e.args,"bbs");y(i,10,u(i,2)),y(i,11,u(i,2));var s=u(e.args,"bhs");if(y(s,10,u(s,2)),y(s,11,u(s,2)),e.txt=u(e.args,"txt"),e.barlen==7){for(var l=0;l<=6;l+=1){var c=e.txt;K(u(u(c,l),0),0,u(u(c,l+1),0))}K(u(u(e.txt,7),0),0," ")}var d=a(10);K(d,0,e.txt),e.txt=d;var f=u(e.txt,0);y(e.txt,8,fp(a(f.length),f));var p=u(e.txt,0);y(e.txt,9,fp(a(p.length),p)),y(u(e.txt,8),0,"M"),y(u(e.txt,8),1,-12),y(u(e.txt,9),0,"S");var m=u(e.txt,9);y(m,1,69),y(e.args,"txt",e.txt),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Vs(){if(e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,e.encoding="auto",e.raw=!1,e.parse=!1,e.parsefnc=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],yr(Vs),!Vs.__6406__){e=Object.create(e),e.sta=-1,e.stb=-2,e.stc=-3,e.swa=-4,e.swb=-5,e.swc=-6,e.fn1=-7,e.fn2=-8,e.fn3=-9,e.fn4=-10,e.sft=-11,e.stp=-12,e.lka=-13,e.lkc=-14;for(var n in e)e.hasOwnProperty(n)&&(Vs.$ctx[n]=e[n]);Vs.__6406__=1,e=Object.getPrototypeOf(e)}var o=e.fn1,i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC1",o],["FNC2",e.fn2],["FNC3",e.fn3],["LNKA",e.lka],["LNKC",e.lkc]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var s=r[--t];if(e[r[--t]]=s,e.msglen=e.msg.length,!Vs.__6479__){e=Object.create(e),e.charmaps=a([a([32,32,"00"]),a(["!","!","01"]),a(['"','"',"02"]),a(["#","#","03"]),a(["$","$","04"]),a(["%","%","05"]),a(["&","&","06"]),a(["'","'","07"]),a([40,40,"08"]),a([41,41,"09"]),a(["*","*","10"]),a(["+","+","11"]),a([",",",","12"]),a(["-","-","13"]),a([".",".","14"]),a(["/","/","15"]),a(["0","0","16"]),a(["1","1","17"]),a(["2","2","18"]),a(["3","3","19"]),a(["4","4","20"]),a(["5","5","21"]),a(["6","6","22"]),a(["7","7","23"]),a(["8","8","24"]),a(["9","9","25"]),a([":",":","26"]),a([";",";","27"]),a(["<","<","28"]),a(["=","=","29"]),a([">",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.fn3,e.fn3,"96"]),a([e.fn2,e.fn2,"97"]),a([e.sft,e.sft,"98"]),a([e.swc,e.swc,"99"]),a([e.swb,e.fn4,e.swb]),a([e.fn4,e.swa,e.swa]),a([e.fn1,e.fn1,e.fn1]),a([e.sta,e.sta,e.sta]),a([e.stb,e.stb,e.stb]),a([e.stc,e.stc,e.stc]),a([e.stp,e.stp,e.stp])]),e.charvals=a([new Map,new Map,new Map]);for(var l=0,c=e.charmaps.length-1;l<=c;l+=1){e.i=l,e.encs=u(e.charmaps,e.i);for(var d=0;d<=2;d+=1){e.j=d;var f=u(e.encs,e.j);if(r[t++]=f,ae(za(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2);for(var n in e)e.hasOwnProperty(n)&&(Vs.$ctx[n]=e[n]);Vs.__6479__=1,e=Object.getPrototypeOf(e)}if(y(e.seta,e.lka,u(e.seta,e.swb)),y(e.seta,e.lkc,u(e.seta,e.swc)),y(e.setb,e.lka,u(e.setb,e.swc)),y(e.setb,e.lkc,u(e.setb,e.swa)),y(e.setc,e.lka,u(e.setc,e.swa)),y(e.setc,e.lkc,u(e.setc,e.swb)),e.raw&&(e.encoding="raw"),ae(e.encoding,"raw")){for(e.cws=a(e.barcode.length),e.i=0,e.j=0;e.i!=e.barcode.length;)e.cw=ft(T(e.barcode,e.i+1,3)),y(e.cws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1;e.cws=T(e.cws,0,e.j),e.text=""}if(ae(e.encoding,"auto")){e.text=pe(e.msglen);for(var m=0,g=e.msglen-1;m<=g;m+=1){e.i=m;var v=u(e.msg,e.i);r[t++]=e.text,r[t++]=e.i,r[t++]=v,v<0&&(t--,r[t++]=32);var w=r[--t],A=r[--t];y(r[--t],A,w)}r[t++]=1/0;for(var k=0,C=e.msglen;k=0;I-=1)e.i=I,u(e.msg,e.i)>=0&&(u(e.msg,e.i)>=128?y(e.numEA,e.i,h(u(e.numEA,e.i+1)+1)):y(e.numSA,e.i,h(u(e.numSA,e.i+1)+1)));e.ea=!1,e.msgtmp=a([]);for(var E=0,j=e.msglen-1;E<=j;E+=1){if(e.i=E,e.c=u(e.msg,e.i),!ti(e.ea,e.c<128)&&e.c>=0){e.ea?r[t++]=e.numSA:r[t++]=e.numEA;var B=u(r[--t],e.i),D=h(B+e.i)==e.msglen?3:5;B=0?r[t++]=e.c&127:r[t++]=e.c,e.msgtmp=a()}e.msg=e.msgtmp,e.msglen=e.msg.length,e.numsscr=function(){for(e.n=0,e.s=0,e.p=r[--t];!(e.p>=e.msglen);){var Ve=u(e.msg,e.p),at=u(e.setc,Ve)!==void 0;if(r[t++]=Ve,!at){t--;break}var We=r[--t];if(r[t++]=We,We<=-1){var ue=r[--t];if(ue==e.fn1&&e.s%2==0)e.s=e.s+1;else break}else t--;e.n=e.n+1,e.s=e.s+1,e.p=h(e.p+1)}r[t++]=e.n,r[t++]=e.s},e.enca=function(){y(e.cws,e.j,u(e.seta,r[--t])),e.j=e.j+1},e.encb=function(){y(e.cws,e.j,u(e.setb,r[--t])),e.j=e.j+1},e.encc=function(){var Ve=r[--t];if(r[t++]=Ve,it(za(Ve),"arraytype")){var at=u(e.setc,r[--t]);r[t++]=at}else{oe(r[--t]);var We=r[--t],ue=r[--t];r[t++]=h(h(We-48)+h(ue-48)*10)}y(e.cws,e.j,r[--t]),e.j=e.j+1},e.anotb=function(){var Ve=r[--t],at=u(e.seta,Ve)!==void 0,We=u(e.setb,Ve)!==void 0;r[t++]=at&&!We},e.bnota=function(){var Ve=r[--t],at=u(e.setb,Ve)!==void 0,We=u(e.seta,Ve)!==void 0;r[t++]=at&&!We},r[t++]=1/0;for(var R=0,N=e.msg.length;R=0;_-=1)e.i=_,r[t++]=u(e.msg,e.i),e.anotb(),r[--t]?y(e.nextanotb,e.i,0):y(e.nextanotb,e.i,h(u(e.nextanotb,e.i+1)+1)),r[t++]=u(e.msg,e.i),e.bnota(),r[--t]?y(e.nextbnota,e.i,0):y(e.nextbnota,e.i,h(u(e.nextbnota,e.i+1)+1));for(e.abeforeb=function(){var Ve=r[--t];r[t++]=Fs(u(e.nextanotb,Ve),u(e.nextbnota,Ve))},e.bbeforea=function(){var Ve=r[--t];r[t++]=Fs(u(e.nextbnota,Ve),u(e.nextanotb,Ve))},e.cws=a(e.barcode.length*2+3),e.j=0,e.msglen>0?(r[t++]=0,e.numsscr()):(r[t++]=-1,r[t++]=-1),e.nums=r[--t],e.nchars=r[--t];;){if(e.msglen==0){r[t++]=e.stb,e.enca(),e.cset="setb";break}if(e.msglen==2&&e.nums==2){r[t++]=e.stc,e.enca(),e.cset="setc";break}if(e.nums>=4){r[t++]=e.stc,e.enca(),e.cset="setc";break}if(r[t++]=0,e.abeforeb(),r[--t]){r[t++]=e.sta,e.enca(),e.cset="seta";break}r[t++]=e.stb,e.enca(),e.cset="setb";break}for(e.i=0;e.i!=e.msglen;)for(r[t++]=e.i,e.numsscr(),e.nums=r[--t],e.nchars=r[--t];;){if((ae(e.cset,"seta")||ae(e.cset,"setb"))&&e.nums>=4&&u(e.msg,e.i)!=e.fn1)if(e.nums%2==0){r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";break}else{r[t++]=u(e.msg,e.i),ae(e.cset,"seta")?e.enca():e.encb(),e.i=e.i+1,r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";break}r[t++]=ae(e.cset,"setb"),r[t++]=u(e.msg,e.i),e.anotb();var V=r[--t],$=r[--t];if($&&V){if(e.i-1||u(e.msg,e.i)==e.fn4)){if(r[t++]=e.i,e.abeforeb(),r[--t]){r[t++]=e.swa,e.encc(),e.cset="seta";break}r[t++]=e.swb,e.encc(),e.cset="setb";break}if(ae(e.cset,"seta")){r[t++]=u(e.msg,e.i),e.enca(),e.i=e.i+1;break}if(ae(e.cset,"setb")){r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1;break}if(ae(e.cset,"setc")){u(e.msg,e.i)<=-1?(r[t++]=u(e.msg,e.i),e.encc(),e.i=e.i+1):(r[t++]=T(e.msg,e.i,2),e.encc(),e.i=e.i+2);break}break}e.cws=T(e.cws,0,e.j)}var G=a(e.j+2);K(G,0,e.cws),e.cws=G,e.csum=u(e.cws,0);for(var F=1,q=e.j-1;F<=q;F+=1)e.i=F,e.csum=h(e.csum+u(e.cws,e.i)*e.i);e.csum=e.csum%103,y(e.cws,e.j,e.csum),y(e.cws,e.j+1,u(e.seta,e.stp));var W=u(e.options,"debugcws")!==void 0;if(W&&(r[t++]="bwipp.debugcws#6738",r[t++]=e.cws,ne()),!Vs.__6760__){e=Object.create(e),e.encs=a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"]);for(var n in e)e.hasOwnProperty(n)&&(Vs.$ctx[n]=e[n]);Vs.__6760__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(e.cws.length*6+1);for(var X=0,te=e.cws.length-1;X<=te;X+=1)e.i=X,K(e.sbs,e.i*6,u(e.encs,u(e.cws,e.i)));r[t++]=1/0,r[t++]=1/0;for(var se=e.sbs,de=0,ee=se.length;de57)&&(r[t++]="bwipp.ean14badCharacter#6957",r[t++]="GS1-14 must contain only digits",ne())}e.checksum=0;for(var d=0;d<=12;d+=1){if(e.i=d,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var f=r[--t];r[t++]=f*3}var p=r[--t],m=r[--t];e[r[--t]]=h(m+p)}if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==18)u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.ean14badCheckDigit#6970",r[t++]="Incorrect GS1-14 check digit provided",ne());else{var g=pe(18);K(g,0,e.barcode),y(g,17,e.checksum+48),e.barcode=g;var v=e.hasspace?2:1,w=pe(e.text.length+v);K(w,w.length-2," "),y(w,w.length-1,e.checksum+48),K(w,0,e.text),e.text=w}e.gtin=T(e.barcode,4,14),e.barcode=pe(21),K(e.barcode,0,"^FNC101");var A=e.gtin;K(e.barcode,7,A),y(e.options,"dontdraw",!0),y(e.options,"parsefnc",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,Vs();var k=r[--t];e[r[--t]]=k,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Ype(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.text=e.barcode;var n=e.barcode;r[t++]=pe(n.length),r[t++]=0,Oe(n,function(){var C=r[--t];if(r[t++]=C,C!=32){var M=r[--t],S=r[--t],I=r[--t];y(I,S,M),r[t++]=I,r[t++]=h(S+1)}else t--});var o=r[--t];e.barcode=T(r[--t],0,o),e.hasspace=e.text.length!=e.barcode.length,e.barcode.length!=21&&e.barcode.length!=22&&(r[t++]="bwipp.sscc18badLength#7054",r[t++]="SSCC-18 must be 17 or 18 digits",ne()),it(T(e.barcode,0,4),"(00)")&&(r[t++]="bwipp.sscc18badAI#7057",r[t++]="SSCC-18 must begin with (00) application identifier",ne());for(var i=T(e.barcode,4,e.barcode.length-4),s=0,l=i.length;s57)&&(r[t++]="bwipp.sscc18badCharacter#7061",r[t++]="SSCC-18 must contain only digits",ne())}e.checksum=0;for(var d=0;d<=16;d+=1){if(e.i=d,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var f=r[--t];r[t++]=f*3}var p=r[--t],m=r[--t];e[r[--t]]=h(m+p)}if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==22)u(e.barcode,21)!=e.checksum+48&&(r[t++]="bwipp.sscc18badCheckDigit#7074",r[t++]="Incorrect SSCC-18 check digit provided",ne());else{var g=pe(22);K(g,0,e.barcode),y(g,21,e.checksum+48),e.barcode=g;var v=e.hasspace?2:1,w=pe(e.text.length+v);K(w,w.length-2," "),y(w,w.length-1,e.checksum+48),K(w,0,e.text),e.text=w}e.sscc=T(e.barcode,4,18),e.barcode=pe(25),K(e.barcode,0,"^FNC100");var A=e.sscc;K(e.barcode,7,A),y(e.options,"dontdraw",!0),y(e.options,"parsefnc",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,Vs();var k=r[--t];e[r[--t]]=k,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function su(){if(e=Object.create(e),e.dontdraw=!1,e.includecheck=!1,e.validatecheck=!1,e.includetext=!1,e.includecheckintext=!1,e.hidestars=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],ae(e.barcode,"")&&(r[t++]="bwipp.code39emptyData#7154",r[t++]="The data must not be empty",ne()),yr(su),!su.__7177__){e=Object.create(e),e.encs=a(["1113313111","3113111131","1133111131","3133111111","1113311131","3113311111","1133311111","1113113131","3113113111","1133113111","3111131131","1131131131","3131131111","1111331131","3111331111","1131331111","1111133131","3111133111","1131133111","1111333111","3111111331","1131111331","3131111311","1111311331","3111311311","1131311311","1111113331","3111113311","1131113311","1111313311","3311111131","1331111131","3331111111","1311311131","3311311111","1331311111","1311113131","3311113111","1331113111","1313131111","1313111311","1311131311","1113131311","1311313111"]),e.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.charvals=new Map;for(var n=0;n<=42;n+=1)y(e.charvals,T(e.barchars,n,1),n);for(var o in e)e.hasOwnProperty(o)&&(su.$ctx[o]=e[o]);su.__7177__=1,e=Object.getPrototypeOf(e)}for(var i=0,s=e.barcode.length-1;i<=s;i+=1){var l=u(e.charvals,T(e.barcode,i,1))!==void 0;l||(r[t++]="bwipp.code39badCharacter#7182",r[t++]="Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%",ne())}if(r[t++]="barlen",r[t++]=e.barcode.length,e.validatecheck){var c=r[--t];r[t++]=h(c-1)}var d=r[--t];e[r[--t]]=d,e.checksum=0;for(var f=0,p=h(e.barlen-1);f<=p;f+=1)e.checksum=h(u(e.charvals,T(e.barcode,f,1))+e.checksum);e.checksum=e.checksum%43,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.code39badCheckDigit#7196",r[t++]="Incorrect Code 39 check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0);var m=e.includecheck?3:2;e.sbs=pe(h(e.barlen+m)*10);var g=e.includecheck?3:2;e.txt=a(h(e.barlen+g)),K(e.sbs,0,u(e.encs,43)),e.hidestars?y(e.txt,0,a(["",0,e.textyoffset,e.textfont,e.textsize])):y(e.txt,0,a(["*",0,e.textyoffset,e.textfont,e.textsize]));for(var v=0,w=h(e.barlen-1);v<=w;v+=1)e.i=v,e.indx=u(e.charvals,T(e.barcode,e.i,1)),K(e.sbs,e.i*10+10,u(e.encs,e.indx)),y(e.txt,e.i+1,a([T(e.barcode,e.i,1),(e.i+1)*16,e.textyoffset,e.textfont,e.textsize]));e.includecheck?(K(e.sbs,h(e.barlen*10+10),u(e.encs,e.checksum)),e.includecheckintext?y(e.txt,h(e.barlen+1),a([T(e.barchars,e.checksum,1),h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,h(e.barlen+1),a(["",h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize])),K(e.sbs,h(e.barlen*10+20),u(e.encs,43)),e.hidestars?y(e.txt,h(e.barlen+2),a(["",h(e.barlen+2)*16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,h(e.barlen+2),a(["*",h(e.barlen+2)*16,e.textyoffset,e.textfont,e.textsize]))):(K(e.sbs,h(e.barlen*10+10),u(e.encs,43)),e.hidestars?y(e.txt,h(e.barlen+1),a(["",h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,h(e.barlen+1),a(["*",h(e.barlen+1)*16,e.textyoffset,e.textfont,e.textsize]))),r[t++]=1/0,r[t++]=1/0;for(var A=e.sbs,k=0,C=A.length;k=128&&(r[t++]="bwipp.code39extBadCharacter#7316",r[t++]="Code 39 Extended must contain only ASCII characters",ne())}),!I0.__7332__){e=Object.create(e),e.extencs=a(["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"]);for(var i in e)e.hasOwnProperty(i)&&(I0.$ctx[i]=e[i]);I0.__7332__=1,e=Object.getPrototypeOf(e)}e.newcode=pe(e.barlen*2),e.newtext=pe(e.barlen*2),e.j=0;for(var s=0,l=e.barlen-1;s<=l;s+=1){e.i=s,e.extchar=u(e.extencs,u(e.barcode,e.i)),K(e.newcode,e.j,e.extchar);var c=u(e.barcode,e.i);r[t++]=e.newtext,r[t++]=e.j,r[t++]=c,(c<32||c==127)&&(t--,r[t++]=32);var d=r[--t],f=r[--t];y(r[--t],f,d),e.extchar.length!=1&&y(e.newtext,e.j+1,32),e.j=e.j+e.extchar.length}e.newcode=T(e.newcode,0,e.j),e.newtext=T(e.newtext,0,e.j),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.newcode,r[t++]=e.options,su();var p=r[--t];if(e[r[--t]]=p,e.includetext){e.txt=u(e.args,"txt");for(var m=0,g=e.newtext.length-1;m<=g;m+=1)e.i=m,e.txtentry=u(e.txt,e.i+1),y(e.txtentry,0,T(e.newtext,e.i,1)),y(e.txt,e.i+1,e.txtentry);y(e.args,"txt",e.txt)}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function Kpe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.textxoffset=0,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=8&&e.barcode.length!=9&&(r[t++]="bwipp.code32badLength#7415",r[t++]="Italian Pharmacode must be 8 or 9 digits",ne()),Oe(e.barcode,function(){var C=r[--t];(C<48||C>57)&&(r[t++]="bwipp.code32badCharacter#7419",r[t++]="Italian Pharmacode must contain only digits",ne())}),e.checksum=0;for(var n=0;n<=7;n+=1){if(e.i=n,r[t++]=h(u(e.barcode,e.i)-48),e.i%2!=0){var o=r[--t];r[t++]=o*2}var i=r[--t];if(r[t++]=i,i>9){var s=r[--t];r[t++]=h(s-9)}e.checksum=h(r[--t]+e.checksum)}e.checksum=e.checksum%10,e.barcode.length==9&&u(e.barcode,8)!=h(e.checksum+48)&&(r[t++]="bwipp.code32badCheckDigit#7433",r[t++]="Incorrect Italian Pharmacode check digit provided",ne());var l=pe(10);K(l,0,e.barcode),y(l,8,h(e.checksum+48)),e.text=l,e.val=vr(pe(6),ft(e.text),32),e.barcode=pe(6);for(var c=0;c<=5;c+=1)y(e.barcode,c,48);K(e.barcode,6-e.val.length,e.val);for(var d=0;d<=5;d+=1){var f=u(e.barcode,d);r[t++]=d,r[t++]=f,r[t++]=f;for(var p=0,m=4;p=u("AEIO",p)){var g=r[--t];r[t++]=h(g+1)}var v=r[--t];r[t++]=v,r[t++]=v}t--;var w=r[--t];y(e.barcode,r[--t],w)}K(e.text,1,T(e.text,0,9)),y(e.text,0,65),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,su();var A=r[--t],k=r[--t];e[k]=A,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Xpe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.textxoffset=0,e.height=1,e.pzn8=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.pzn8?e.barcode.length!=7&&e.barcode.length!=8&&(r[t++]="bwipp.pzn8badLength#7516",r[t++]="PZN8 must be 7 or 8 digits",ne()):e.barcode.length!=6&&e.barcode.length!=7&&(r[t++]="bwipp.pzn7badLength#7520",r[t++]="PZN7 must be 6 or 7 digits",ne()),Oe(e.barcode,function(){var f=r[--t];(f<48||f>57)&&(r[t++]="bwipp.pznBadCharacter#7525",r[t++]="PZN must contain only digits",ne())});var n=e.pzn8?9:8;e.msglen=n,e.checksum=0;for(var o=0,i=e.msglen-3;o<=i;o+=1){e.i=o;var s=e.pzn8?1:2;e.checksum=h(h(u(e.barcode,e.i)-48)*(e.i+s)+e.checksum)}e.checksum=e.checksum%11,e.checksum==10&&(r[t++]="bwipp.pznBadInputSequence#7539",r[t++]="Incorrect PZN input sequence provided",ne()),e.barcode.length==e.msglen-1&&u(e.barcode,e.msglen-2)!=h(e.checksum+48)&&(r[t++]="bwipp.pznBadCheckDigit#7543",r[t++]="Incorrect PZN check digit provided",ne());var l=pe(e.msglen);y(l,0,45),K(l,1,e.barcode),y(l,e.msglen-1,h(e.checksum+48)),e.msg=l,y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.msg,r[t++]=e.options,su();var c=r[--t];e[r[--t]]=c,e.text=pe(e.msglen+5),K(e.text,0,"PZN - "),K(e.text,6,T(e.msg,1,e.msglen-1));var d=a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])]);y(e.args,"txt",d),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function j2(){if(e=Object.create(e),e.dontdraw=!1,e.includecheck=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.height=1,e.parse=!1,e.parsefnc=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],yr(j2),!j2.__7643__){e=Object.create(e),e.encs=a(["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141","1111411"]),e.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.charvals=new Map;for(var n=0;n<=42;n+=1)y(e.charvals,u(e.barchars,n),n);e.sft1=-1,e.sft2=-2,e.sft3=-3,e.sft4=-4;var o=e.charvals;y(o,e.sft1,43),y(e.charvals,e.sft2,44),y(e.charvals,e.sft3,45),y(e.charvals,e.sft4,46);for(var i in e)e.hasOwnProperty(i)&&(j2.$ctx[i]=e[i]);j2.__7643__=1,e=Object.getPrototypeOf(e)}var s=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["SFT$",e.sft1],["SFT%",e.sft2],["SFT/",e.sft3],["SFT+",e.sft4]]);e.fncvals=s,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var l=r[--t];e[r[--t]]=l,e.msglen=e.msg.length,Oe(e.msg,function(){var B=u(e.charvals,r[--t])!==void 0;B||(r[t++]="bwipp.code93BadCharacter#7660",r[t++]="Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters",ne())}),e.includecheck?e.sbs=pe(e.msglen*6+25):e.sbs=pe(e.msglen*6+13),e.txt=a(e.msglen),K(e.sbs,0,u(e.encs,47)),e.checksum1=0,e.checksum2=0;for(var c=0,d=e.msglen-1;c<=d;c+=1){e.i=c,e.indx=u(e.charvals,u(e.msg,e.i)),K(e.sbs,e.i*6+6,u(e.encs,e.indx));var f=u(e.msg,e.i);if(r[t++]="char",r[t++]=f,f<0)t--,r[t++]=" ";else{var p=pe(1);y(p,0,r[--t]),r[t++]=p}var m=r[--t];e[r[--t]]=m,y(e.txt,e.i,a([e.char,e.i*9+9,e.textyoffset,e.textfont,e.textsize])),e.checksum1=h(e.checksum1+((e.msglen-e.i-1)%20+1)*e.indx),e.checksum2=h(e.checksum2+((e.msglen-e.i)%15+1)*e.indx)}e.includecheck?(e.checksum1=e.checksum1%47,e.checksum2=h(e.checksum2+e.checksum1)%47,K(e.sbs,e.msglen*6+6,u(e.encs,e.checksum1)),K(e.sbs,e.msglen*6+12,u(e.encs,e.checksum2)),K(e.sbs,e.msglen*6+18,u(e.encs,48))):K(e.sbs,e.msglen*6+6,u(e.encs,48)),r[t++]=1/0,r[t++]=1/0;for(var g=e.sbs,v=0,w=g.length;v127&&(t--,r[t++]="bwipp.code93extbadCharacter#7797",r[t++]="Code 93 Extended only support ASCII characters with values 0 to 127",ne()),e.extchar=u(e.extencs,r[--t]),e.extlen=e.extchar.length,K(e.newcode,e.j,e.extchar);var f=u(e.barcode,e.i);r[t++]=e.newtext,r[t++]=e.k,r[t++]=f,(f<32||f==127)&&(t--,r[t++]=32);var p=r[--t],m=r[--t];y(r[--t],m,p),e.extlen!=1&&y(e.newtext,e.k+1,32),e.j=e.j+e.extlen;var g=e.extlen==1?1:2;e.k=e.k+g}e.newcode=T(e.newcode,0,e.j),e.newtext=T(e.newtext,0,e.k),y(e.options,"dontdraw",!0),y(e.options,"parsefnc",!0),r[t++]="args",r[t++]=e.newcode,r[t++]=e.options,j2();var v=r[--t];if(e[r[--t]]=v,e.includetext){e.txt=u(e.args,"txt");for(var w=0,A=e.newtext.length-1;w<=A;w+=1)e.i=w,e.txtentry=u(e.txt,e.i),y(e.txtentry,0,T(e.newtext,e.i,1)),y(e.txt,e.i,e.txtentry);y(e.args,"txt",e.txt)}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function cd(){if(e=Object.create(e),e.dontdraw=!1,e.includecheck=!1,e.includetext=!1,e.includecheckintext=!1,e.textfont="OCR-B",e.textsize=10,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],yr(cd),Oe(e.barcode,function(){var I=r[--t];(I<48||I>57)&&(r[t++]="bwipp.interleaved2of5badCharacter#7883",r[t++]="Interleaved 2 of 5 must contain only digits",ne())}),e.barlen=e.barcode.length,(e.barlen%2==0&&e.includecheck||e.barlen%2!=0&&!e.includecheck)&&(e.pad=pe(e.barlen+1),y(e.pad,0,48),K(e.pad,1,e.barcode),e.barcode=e.pad,e.barlen=e.barlen+1),e.includecheck){e.checksum=0;for(var n=0,o=e.barlen-1;n<=o;n+=1)e.i=n,e.i%2==0?e.checksum=e.checksum+(u(e.barcode,e.i)-48)*3:e.checksum=e.checksum+(u(e.barcode,e.i)-48);e.checksum=(10-e.checksum%10)%10,e.pad=pe(e.barlen+1),K(e.pad,0,e.barcode),y(e.pad,e.barlen,e.checksum+48),e.barcode=e.pad,e.barlen=e.barlen+1}if(!cd.__7929__){e=Object.create(e),e.encs=a(["11221","21112","12112","22111","11212","21211","12211","11122","21121","12121","1111","2111"]),e.barchars="0123456789";for(var i in e)e.hasOwnProperty(i)&&(cd.$ctx[i]=e[i]);cd.__7929__=1,e=Object.getPrototypeOf(e)}e.sbs=pe(e.barlen*5+8),e.txt=a(e.barlen),K(e.sbs,0,u(e.encs,10));for(var s=0,l=e.barlen-1;s<=l;s+=2){e.i=s,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enca=u(e.encs,e.indx),pr(e.barchars,T(e.barcode,e.i+1,1)),t--,e.indx=r[--t].length,t-=2,e.encb=u(e.encs,e.indx),e.intl=pe(e.enca.length*2);for(var c=0,d=e.enca.length-1;c<=d;c+=1)e.j=c,e.achar=u(e.enca,e.j),e.bchar=u(e.encb,e.j),y(e.intl,e.j*2,e.achar),y(e.intl,e.j*2+1,e.bchar);K(e.sbs,e.i*5+4,e.intl),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*9+4,e.textyoffset,e.textfont,e.textsize])),e.includecheck&&!e.includecheckintext&&e.barlen-2==e.i?y(e.txt,e.i+1,a([" ",(e.i+1)*9+4,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.i+1,a([T(e.barcode,e.i+1,1),(e.i+1)*9+4,e.textyoffset,e.textfont,e.textsize]))}K(e.sbs,e.barlen*5+4,u(e.encs,11)),r[t++]=1/0,r[t++]=1/0;for(var f=e.sbs,p=0,m=f.length;p57)&&(r[t++]="bwipp.itf14badCharacter#8055",r[t++]="ITF-14 must contain only digits",ne())}e.checksum=0;for(var d=0;d<=12;d+=1){if(e.i=d,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),e.i%2==0){var f=r[--t];r[t++]=f*3}var p=r[--t],m=r[--t];e[r[--t]]=h(m+p)}if(e.checksum=(10-e.checksum%10)%10,e.barcode.length==14)u(e.barcode,13)!=e.checksum+48&&(r[t++]="bwipp.itf14badCheckDigit#8068",r[t++]="Incorrect ITF-14 check digit provided",ne());else{var g=pe(14);K(g,0,e.barcode),y(g,13,e.checksum+48),e.barcode=g;var v=e.hasspace?2:1,w=pe(e.text.length+v);K(w,w.length-2," "),y(w,w.length-1,e.checksum+48),K(w,0,e.text),e.text=w}var A=e.options;y(A,"dontdraw",!0),y(e.options,"showborder",e.showborder),y(e.options,"borderwidth",e.borderwidth),y(e.options,"borderleft",e.borderleft),y(e.options,"borderright",e.borderright);var k=e.options;y(k,"bordertop",e.bordertop),y(e.options,"borderbottom",e.borderbottom),y(e.options,"height",e.height),y(e.options,"textyoffset",e.textyoffset),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,cd();var C=r[--t];e[r[--t]]=C,y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,e.textsize])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function Zpe(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=11&&e.barcode.length!=12&&(r[t++]="bwipp.identcodeBadLength#8146",r[t++]="Deutsche Post Identcode must be 11 or 12 digits",ne()),Oe(e.barcode,function(){var m=r[--t];(m<48||m>57)&&(r[t++]="bwipp.identcodeBadCharacter#8150",r[t++]="Deutsche Post Identcode must contain only digits",ne())}),e.checksum=0;for(var n=0;n<=10;n+=1){if(e.i=n,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),e.i%2==0){var o=r[--t];r[t++]=o*4}else{var i=r[--t];r[t++]=i*9}var s=r[--t],l=r[--t];e[r[--t]]=h(l+s)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==12&&u(e.barcode,11)!=e.checksum+48&&(r[t++]="bwipp.identcodeBadCheckDigit#8163",r[t++]="Incorrect Deutsche Post Identcode check digit provided",ne());var c=pe(12);K(c,0,e.barcode),y(c,11,e.checksum+48),e.barcode=c,e.text=Gn(pe(16)," . . "),K(e.text,0,T(e.barcode,0,2)),K(e.text,3,T(e.barcode,2,3)),K(e.text,7,T(e.barcode,5,3)),K(e.text,11,T(e.barcode,8,3)),K(e.text,15,T(e.barcode,11,1)),y(e.options,"dontdraw",!0),y(e.options,"includecheck",!1);var d=e.barcode;r[t++]="args",r[t++]=d,r[t++]=e.options,cd();var f=r[--t];e[r[--t]]=f;var p=e.textsize;y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,p])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function e0e(){e=Object.create(e),e.dontdraw=!1,e.includetext=!1,e.textfont="OCR-B",e.textsize=10,e.textxoffset=0,e.textyoffset=-8,e.height=1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=13&&e.barcode.length!=14&&(r[t++]="bwipp.leitcodeBadLength#8236",r[t++]="Deutsche Post Leitcode must be 13 or 14 digits",ne()),Oe(e.barcode,function(){var m=r[--t];(m<48||m>57)&&(r[t++]="bwipp.leitcodeBadCharacter#8240",r[t++]="Deutsche Post Leitcode must contain only digits",ne())}),e.checksum=0;for(var n=0;n<=12;n+=1){if(e.i=n,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),e.i%2==0){var o=r[--t];r[t++]=o*4}else{var i=r[--t];r[t++]=i*9}var s=r[--t],l=r[--t];e[r[--t]]=h(l+s)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==14&&u(e.barcode,13)!=e.checksum+48&&(r[t++]="bwipp.leitcodeBadCheckDigit#8253",r[t++]="Incorrect Deutsche Post Leitcode check digit provided",ne());var c=pe(14);K(c,0,e.barcode),y(c,13,e.checksum+48),e.barcode=c,e.text=Gn(pe(18)," . . . "),K(e.text,0,T(e.barcode,0,5)),K(e.text,6,T(e.barcode,5,3)),K(e.text,10,T(e.barcode,8,3)),K(e.text,14,T(e.barcode,11,2)),K(e.text,17,T(e.barcode,13,1)),y(e.options,"dontdraw",!0),y(e.options,"includecheck",!1);var d=e.barcode;r[t++]="args",r[t++]=d,r[t++]=e.options,cd();var f=r[--t];e[r[--t]]=f;var p=e.textsize;y(e.args,"txt",a([a([e.text,e.textxoffset,e.textyoffset,e.textfont,p])])),y(e.args,"textxalign","center"),y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function c1(){e=Object.create(e),e.dontdraw=!1,e.height=33/72,e.linkage=!1,e.format="omni",e.barxmult=33,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databaromniBadLength#8325",r[t++]="GS1 DataBar Omnidirectional must be 13 or 14 digits",ne()),it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databaromniBadAI#8328",r[t++]="GS1 DataBar Omnidirectional must begin with (01) application identifier",ne());for(var n=T(e.barcode,4,e.barcode.length-4),o=0,i=n.length;o57)&&(r[t++]="bwipp.databaromniBadCharacter#8332",r[t++]="GS1 DataBar Omnidirectional must contain only digits",ne())}e.barxmult<33&&(r[t++]="bwipp.databarStackedOmniBarXmult#8337",r[t++]="GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33",ne()),it(e.format,"omni")&&it(e.format,"stacked")&&it(e.format,"stackedomni")&&it(e.format,"truncated")&&(r[t++]="bwipp.databaromniBadFormat#8341",r[t++]="Valid formats are omni, stacked, stackedomni and truncated",ne()),ae(e.format,"truncated")&&(e.height=13/72),yr(c1),e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databaromniBadCheckDigit#8357",r[t++]="Incorrect GS1 DataBar Omnidirectional check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,e.txt=a(e.barcode.length);for(var m=0,g=e.barcode.length-1;m<=g;m+=1)e.i=m,y(e.txt,e.i,a([T(e.barcode,e.i,1),0,0,"",0]));e.ncr=function(){var hr=r[--t],dn=r[--t],er=h(dn-hr);if(hr=vo;qr-=1){var Or=r[--t],_n=r[--t],Nr=r[--t];if(r[t++]=Nr,r[t++]=_n,r[t++]=Or*qr,pp(_n,Nr)){var jo=r[--t],nn=r[--t];r[t++]=h(nn+1),r[t++]=~~(jo/nn)}}for(;;){var zo=r[--t],xn=r[--t],ni=r[--t];if(r[t++]=ni,r[t++]=xn,r[t++]=zo,Mc(xn,ni))break;var so=r[--t],oi=r[--t];r[t++]=h(oi+1),r[t++]=~~(so/oi)}var Zn=r[--t],Mi=r[--t];r[t++]=Zn,r[t++]=Mi,t--;var bo=r[--t],hi=r[--t];r[t++]=bo,r[t++]=hi,t--},e.getRSSwidths=function(){e.oe=r[--t],e.el=r[--t],e.mw=r[--t],e.nm=r[--t],e.val=r[--t],e.out=a(e.el),e.mask=0;for(var hr=0,dn=h(e.el-2);hr<=dn;hr+=1){e.bar=hr,e.ew=1;var er=e.bar;for(e.mask=e.mask|(er<0?1>>>-er:1<=-2){r[t++]="sval",r[t++]=e.sval,r[t++]=h(h(h(e.nm-e.ew)-e.el)+e.bar),r[t++]=h(h(e.el-e.bar)-2),e.ncr();var qr=r[--t],vo=r[--t];e[r[--t]]=h(vo-qr)}if(h(e.el-e.bar)>2){e.lval=0;for(var Or=h(h(h(h(e.nm-e.ew)-e.el)+e.bar)+2),_n=h(e.mw+1);Or>=_n;Or-=1)r[t++]=h(h(h(e.nm-Or)-e.ew)-1),r[t++]=h(h(e.el-e.bar)-3),e.ncr(),e.lval=h(r[--t]+e.lval);e.sval=h(e.sval-e.lval*h(h(e.el-e.bar)-1))}else h(e.nm-e.ew)>e.mw&&(e.sval=h(e.sval-1));if(e.val=h(e.val-e.sval),e.val<0)break;e.ew=e.ew+1;var Nr=e.bar;e.mask=e.mask&~(Nr<0?1>>>-Nr:1<=8&&(e.checksum=h(e.checksum+1)),e.checksum>=72&&(e.checksum=h(e.checksum+1)),e.checklt=T(e.checkwidths,~~(e.checksum/9)*5,5),e.checkrtrev=T(e.checkwidths,e.checksum%9*5,5),e.checkrt=a(5);for(var dt=0;dt<=4;dt+=1)e.i=dt,y(e.checkrt,e.i,u(e.checkrtrev,4-e.i));if(ae(e.format,"omni")||ae(e.format,"truncated")){r[t++]=1/0;var Xe=e.d1w;r[t++]=1;for(var Pt=0,mt=Xe.length;Pt57)&&(r[t++]="bwipp.databarstackedBadCharacter#8776",r[t++]="GS1 DataBar Stacked must contain only digits",ne())}e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databarstackedBadCheckDigit#8789",r[t++]="Incorrect GS1 DataBar Stacked check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,y(e.options,"dontdraw",!0),y(e.options,"format","stacked"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,c1();var m=r[--t];e[r[--t]]=m,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function iF(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databarstackedomniBadAI#8847",r[t++]="GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier",ne()),e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databarstackedomniBadLength#8850",r[t++]="GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits",ne());for(var n=T(e.barcode,4,e.barcode.length-4),o=0,i=n.length;o57)&&(r[t++]="bwipp.databarstackedomniBadCharacter#8854",r[t++]="GS1 DataBar Stacked Omnidirectional must contain only digits",ne())}e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databarstackedomniBadCheckDigit#8867",r[t++]="Incorrect GS1 DataBar Stacked Omnidirectional check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,y(e.options,"dontdraw",!0),y(e.options,"format","stackedomni"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,c1();var m=r[--t];e[r[--t]]=m,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function aF(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databartruncatedBadLength#8925",r[t++]="GS1 DataBar Truncated must be 13 or 14 digits",ne()),it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databartruncatedBadAI#8928",r[t++]="GS1 DataBar Truncated must begin with (01) application identifier",ne());for(var n=T(e.barcode,4,e.barcode.length-4),o=0,i=n.length;o57)&&(r[t++]="bwipp.databartruncatedBadCharacter#8932",r[t++]="GS1 DataBar Truncated must contain only digits",ne())}e.checksum=0;for(var l=0;l<=12;l+=1){if(e.i=l,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var c=r[--t];r[t++]=c*3}var d=r[--t],f=r[--t];e[r[--t]]=h(f+d)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databartruncatedBadCheckDigit#8945",r[t++]="Incorrect GS1 DataBar Truncated check digit provided",ne());var p=pe(18);K(p,0,e.barcode),y(p,17,e.checksum+48),e.barcode=p,y(e.options,"dontdraw",!0),y(e.options,"format","truncated"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,c1();var m=r[--t];e[r[--t]]=m,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||rr(),e=Object.getPrototypeOf(e)}function r1(){e=Object.create(e),e.dontdraw=!1,e.height=10/72,e.linkage=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],yr(r1),e.barcode.length!=17&&e.barcode.length!=18&&(r[t++]="bwipp.databarlimitedBadLength#9008",r[t++]="GS1 DataBar Limited must be 13 or 14 digits",ne()),it(T(e.barcode,0,4),"(01)")&&(r[t++]="bwipp.databarlimitedBadAI#9011",r[t++]="GS1 DataBar Limited must begin with (01) application identifier",ne());var n=u(e.barcode,4);(n<48||n>49)&&(r[t++]="bwipp.databarlimitedBadStartDigit#9014",r[t++]="GS1 DataBar Limited must begin with 0 or 1",ne());for(var o=T(e.barcode,5,e.barcode.length-5),i=0,s=o.length;i57)&&(r[t++]="bwipp.databarlimitedBadCharacter#9018",r[t++]="GS1 DataBar Limited must contain only digits",ne())}e.checksum=0;for(var c=0;c<=12;c+=1){if(e.i=c,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i+4)-48),e.i%2==0){var d=r[--t];r[t++]=d*3}var f=r[--t],p=r[--t];e[r[--t]]=h(p+f)}e.checksum=(10-e.checksum%10)%10,e.barcode.length==18&&u(e.barcode,17)!=e.checksum+48&&(r[t++]="bwipp.databarlimitedBadCheckDigit#9031",r[t++]="Incorrect GS1 DataBar Limited check digit provided",ne());var m=pe(18);if(K(m,0,e.barcode),y(m,17,e.checksum+48),e.barcode=m,!r1.__9042__){e=Object.create(e),e.linkval=a([2,0,1,5,1,3,3,5,3,1,0,9,6]);for(var g in e)e.hasOwnProperty(g)&&(r1.$ctx[g]=e[g]);r1.__9042__=1,e=Object.getPrototypeOf(e)}r[t++]=1/0;for(var v=T(e.barcode,4,13),w=0,A=v.length;w=le;ie-=1){var ge=r[--t],Pe=r[--t],me=r[--t];if(r[t++]=me,r[t++]=Pe,r[t++]=ge*ie,pp(Pe,me)){var Ee=r[--t],ce=r[--t];r[t++]=h(ce+1),r[t++]=~~(Ee/ce)}}for(;;){var je=r[--t],He=r[--t],Ne=r[--t];if(r[t++]=Ne,r[t++]=He,r[t++]=je,Mc(He,Ne))break;var ye=r[--t],rt=r[--t];r[t++]=h(rt+1),r[t++]=~~(ye/rt)}var Te=r[--t],Ae=r[--t];r[t++]=Te,r[t++]=Ae,t--;var Ue=r[--t],qe=r[--t];r[t++]=Ue,r[t++]=qe,t--},e.getRSSwidths=function(){e.oe=r[--t],e.el=r[--t],e.mw=r[--t],e.nm=r[--t],e.val=r[--t],e.out=a(e.el),e.mask=0;for(var xt=0,tt=h(e.el-2);xt<=tt;xt+=1){e.bar=xt,e.ew=1;var Y=e.bar;for(e.mask=e.mask|(Y<0?1>>>-Y:1<=-2){r[t++]="sval",r[t++]=e.sval,r[t++]=h(h(h(e.nm-e.ew)-e.el)+e.bar),r[t++]=h(h(e.el-e.bar)-2),e.ncr();var ie=r[--t],le=r[--t];e[r[--t]]=h(le-ie)}if(h(e.el-e.bar)>2){e.lval=0;for(var ge=h(h(h(h(e.nm-e.ew)-e.el)+e.bar)+2),Pe=h(e.mw+1);ge>=Pe;ge-=1)r[t++]=h(h(h(e.nm-ge)-e.ew)-1),r[t++]=h(h(e.el-e.bar)-3),e.ncr(),e.lval=h(r[--t]+e.lval);e.sval=h(e.sval-e.lval*h(h(e.el-e.bar)-1))}else h(e.nm-e.ew)>e.mw&&(e.sval=h(e.sval-1));if(e.val=h(e.val-e.sval),e.val<0)break;e.ew=e.ew+1;var me=e.bar;e.mask=e.mask&~(me<0?1>>>-me:1<22||e.segments%2!=0)&&(r[t++]="bwipp.gs1databarexpandedBadSegments#9319",r[t++]="The number of segments must be even from 2 to 22",ne());for(r[t++]=e.barcode,r[t++]="ai",Jr(),e.fncs=r[--t],e.vals=r[--t],e.ais=r[--t];;){if(e.ais.length==2&&ae(u(e.ais,0),"01")&&ae(u(e.ais,1),"3103")&&ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=32767){r[t++]="0100",r[t++]=!1;break}if(e.ais.length==2&&ae(u(e.ais,0),"01")&&ae(u(e.ais,1),"3202")&&ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=9999){r[t++]="0101",r[t++]=!1;break}if(e.ais.length==2&&ae(u(e.ais,0),"01")&&ae(u(e.ais,1),"3203")&&ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=22767){r[t++]="0101",r[t++]=!1;break}var o=e.ais.length;if(o==2||o==3){r[t++]="ai310x",r[t++]=!1;for(var i=3100;i<=3109;i+=1){var s=r[--t];r[t++]=s||ae(vr(pe(4),i,10),u(e.ais,1))}var l=r[--t];e[r[--t]]=l,r[t++]="ai320x",r[t++]=!1;for(var c=3200;c<=3209;c+=1){var d=r[--t];r[t++]=d||ae(vr(pe(4),c,10),u(e.ais,1))}var f=r[--t];if(e[r[--t]]=f,e.ais.length==3){var p=a(["11","13","15","17"]);r[t++]="aibad",r[t++]=!0;for(var m=0,g=p.length;m=1&&A<=12&&k>=0&&k<=31){if(e.ai310x&&ae(u(e.ais,2),"11")){r[t++]="0111000",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"11")){r[t++]="0111001",r[t++]=!1;break}if(e.ai310x&&ae(u(e.ais,2),"13")){r[t++]="0111010",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"13")){r[t++]="0111011",r[t++]=!1;break}if(e.ai310x&&ae(u(e.ais,2),"15")){r[t++]="0111100",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"15")){r[t++]="0111101",r[t++]=!1;break}if(e.ai310x&&ae(u(e.ais,2),"17")){r[t++]="0111110",r[t++]=!1;break}if(e.ai320x&&ae(u(e.ais,2),"17")){r[t++]="0111111",r[t++]=!1;break}}}else if(ae(T(u(e.vals,0),0,1),"9")&&ft(u(e.vals,1))<=99999){if(e.ai310x){r[t++]="0111000",r[t++]=!1;break}if(e.ai320x){r[t++]="0111001",r[t++]=!1;break}}}}if(e.ais.length>=2){r[t++]="ai392x",r[t++]=!1;for(var C=3920;C<=3923;C+=1){var M=r[--t];r[t++]=M||ae(vr(pe(4),C,10),u(e.ais,1))}var S=r[--t];if(e[r[--t]]=S,ae(u(e.ais,0),"01")&&e.ai392x&&ae(T(u(e.vals,0),0,1),"9")){r[t++]="01100",r[t++]=!0;break}}if(e.ais.length>=2){r[t++]="ai393x",r[t++]=!1;for(var I=3930;I<=3933;I+=1){var E=r[--t];r[t++]=E||ae(vr(pe(4),I,10),u(e.ais,1))}var j=r[--t];if(e[r[--t]]=j,ae(u(e.ais,0),"01")&&e.ai393x&&ae(T(u(e.vals,0),0,1),"9")){r[t++]="01101",r[t++]=!0;break}}if(ae(u(e.ais,0),"01")){r[t++]="1",r[t++]=!0;break}r[t++]="00",r[t++]=!0;break}if(e.gpfallow=r[--t],e.method=r[--t],e.conv12to40=function(){var gr=Gn(pe(40),"0000000000000000000000000000000000000000"),kn=r[--t],mn=vr(pe(10),ft(T(kn,0,3)),2);K(T(gr,0,10),10-mn.length,mn);var ro=vr(pe(10),ft(T(kn,3,3)),2);K(T(gr,10,10),10-ro.length,ro);var Wn=vr(pe(10),ft(T(kn,6,3)),2);K(T(gr,20,10),10-Wn.length,Wn);var Uo=vr(pe(10),ft(T(kn,9,3)),2);K(T(gr,30,10),10-Uo.length,Uo),r[t++]=gr,r[t++]=kn,t--},e.conv13to44=function(){var gr=Gn(pe(44),"00000000000000000000000000000000000000000000"),kn=r[--t],mn=vr(pe(4),ft(T(kn,0,1)),2);K(T(gr,0,4),4-mn.length,mn),r[t++]=gr,r[t++]=gr,r[t++]=T(kn,1,12),e.conv12to40();var ro=r[--t];K(r[--t],4,ro)},e.tobin=function(){var gr=pe(r[--t]);r[t++]=gr;for(var kn=0,mn=gr.length-1;kn<=mn;kn+=1){var ro=r[--t];y(ro,kn,48),r[t++]=ro}var Wn=r[--t],Uo=vr(pe(Wn.length),r[--t],2);K(Wn,Wn.length-Uo.length,Uo),r[t++]=Wn},e.fnc1=-1,e.lnumeric=-2,e.lalphanumeric=-3,e.liso646=-4,ae(e.method,"00")&&(e.cdf=a([]),e.gpf=a([])),ae(e.method,"1")){r[t++]="cdf",r[t++]=T(u(e.vals,0),0,13),e.conv13to44();var B=r[--t];e[r[--t]]=B,r[t++]=1/0;for(var D=e.cdf,R=0,N=D.length;R2&&(r[t++]=e.fnc1),e.gpf=a(),e.ais=T(e.ais,2,e.ais.length-2),e.vals=T(e.vals,2,e.vals.length-2),e.fncs=T(e.fncs,2,e.fncs.length-2)}if(ae(e.method,"01101")){e.cdf=pe(52),r[t++]=e.cdf,r[t++]=0,r[t++]=T(u(e.vals,0),1,12),e.conv12to40();var We=r[--t],ue=r[--t];K(r[--t],ue,We),r[t++]=e.cdf,r[t++]=40,r[t++]=ft(T(u(e.ais,1),3,1)),r[t++]=2,e.tobin();var Le=r[--t],$e=r[--t];K(r[--t],$e,Le),r[t++]=e.cdf,r[t++]=42,r[t++]=ft(T(u(e.vals,1),0,3)),r[t++]=10,e.tobin();var bt=r[--t],ot=r[--t];K(r[--t],ot,bt),r[t++]=1/0;for(var st=e.cdf,Ze=0,dt=st.length;Ze2&&(r[t++]=e.fnc1),e.gpf=a(),e.ais=T(e.ais,2,e.ais.length-2),e.vals=T(e.vals,2,e.vals.length-2),e.fncs=T(e.fncs,2,e.fncs.length-2)}if(e.gpfallow?e.vlf=a(2):e.vlf=a([]),!Os.__9571__){e=Object.create(e),r[t++]=1/0;for(var Fe=0;Fe<=119;Fe+=1){var Be=Gn(pe(2),"00"),Je=vr(pe(2),Fe,11);if(K(Be,2-Je.length,Je),r[t++]=Fe,r[t++]=Be,u(Be,0)==65){var It=r[--t];y(It,0,94),r[t++]=It}var Nt=r[--t];if(r[t++]=Nt,u(Nt,1)==65){var ht=r[--t];y(ht,1,94),r[t++]=ht}var xt=r[--t],tt=Gn(pe(7),"0000000"),Y=vr(pe(7),h(r[--t]+8),2);K(tt,7-Y.length,Y),r[t++]=xt,r[t++]=tt}r[t++]=e.lalphanumeric,r[t++]="0000",e.numeric=Tt(),r[t++]=1/0;for(var re=48;re<=57;re+=1)r[t++]=re,r[t++]=re-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var ie=65;ie<=90;ie+=1)r[t++]=ie,r[t++]=ie-33,r[t++]=6,e.tobin();r[t++]=42,r[t++]="111010";for(var le=44;le<=47;le+=1)r[t++]=le,r[t++]=le+15,r[t++]=6,e.tobin();r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.liso646,r[t++]="00100",e.alphanumeric=Tt(),r[t++]=1/0;for(var ge=48;ge<=57;ge+=1)r[t++]=ge,r[t++]=ge-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var Pe=65;Pe<=90;Pe+=1)r[t++]=Pe,r[t++]=Pe-1,r[t++]=7,e.tobin();for(var me=97;me<=122;me+=1)r[t++]=me,r[t++]=me-7,r[t++]=7,e.tobin();r[t++]=33,r[t++]="11101000",r[t++]=34,r[t++]="11101001";for(var Ee=37;Ee<=47;Ee+=1)r[t++]=Ee,r[t++]=Ee+197,r[t++]=8,e.tobin();for(var ce=58;ce<=63;ce+=1)r[t++]=ce,r[t++]=ce+187,r[t++]=8,e.tobin();r[t++]=95,r[t++]="11111011",r[t++]=32,r[t++]="11111100",r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.lalphanumeric,r[t++]="00100",e.iso646=Tt();for(var je in e)e.hasOwnProperty(je)&&(Os.$ctx[je]=e[je]);Os.__9571__=1,e=Object.getPrototypeOf(e)}for(var He=0,Ne=e.ais.length-1;He<=Ne;He+=1){e.i=He,e.ai=u(e.ais,e.i),e.val=u(e.vals,e.i);var ye=a(e.gpf.length+e.ai.length+e.val.length);K(ye,0,e.gpf),r[t++]=ye,r[t++]=ye,r[t++]=e.gpf.length,r[t++]=e.ai,r[t++]=1/0;var rt=r[--t],Te=r[--t];r[t++]=rt,Oe(Te);var Ae=a(),Ue=r[--t];K(r[--t],Ue,Ae);var qe=r[--t];r[t++]=qe,r[t++]=qe,r[t++]=e.gpf.length+e.ai.length,r[t++]=e.val,r[t++]=1/0;var De=r[--t],lt=r[--t];r[t++]=De,Oe(lt);var gt=a(),At=r[--t];if(K(r[--t],At,gt),e.gpf=r[--t],e.i!=e.ais.length-1&&u(e.fncs,e.i)){var St=a(e.gpf.length+1);K(St,0,e.gpf),y(St,e.gpf.length,e.fnc1),e.gpf=St}}e.rembits=function(){var gr=r[--t],kn=48,mn=~~Math.ceil(gr/12)*12;if(~~Math.ceil(gr/12)*12<48){var ro=kn;kn=mn,mn=ro}var Wn=~~(mn/12);if(r[t++]=gr,r[t++]=mn,r[t++]=Wn,Wn%e.segments==1){var Uo=r[--t],Bi=r[--t];r[t++]=h(Uo+1)*12,r[t++]=Bi,t--}else t--;var fa=r[--t],si=r[--t];r[t++]=h(fa-si)},e.encode=function(){var gr=r[--t];if(r[t++]=gr,it(gr,"raw")){var kn=r[--t],mn=u(kn,r[--t]);r[t++]=mn}else t--;var ro=r[--t];r[t++]=ro,ro.length+e.j>=252&&(t--,r[t++]="bwipp.gs1databarexpandedTooLong#9607",r[t++]="Maximum length exceeded",ne()),r[t++]=1/0;var Wn=r[--t],Uo=r[--t];r[t++]=Wn,Oe(Uo,function(){var fa=r[--t];r[t++]=h(fa-48)});var Bi=a();K(e.gpfenc,e.j,Bi),e.j=Bi.length+e.j},r[t++]=1/0;for(var yt=0,Ct=e.gpf.length;yt=0;Et-=1){e.i=Et;var ut=Gn(pe(2),"00"),Dt=u(e.gpf,e.i);r[t++]=u(e.gpf,e.i),r[t++]=ut,r[t++]=ut,r[t++]=0,r[t++]=Dt,Dt==e.fnc1&&(t--,r[t++]=94);var jt=r[--t],nr=r[--t];if(y(r[--t],nr,jt),e.i57){r[t++]=e.lalphanumeric,r[t++]=e.numeric,e.encode(),e.mode="alphanumeric";break}r[t++]="rem",r[t++]=13+e.method.length+e.vlf.length+e.cdf.length+e.j,e.rembits();var Yr=r[--t];if(e[r[--t]]=Yr,e.rem>=4&&e.rem<=6){var Xt=T(Gn(pe(6),"000000"),0,e.rem),en=vr(pe(4),h(u(e.gpf,e.i)-47),2);K(Xt,4-en.length,en),r[t++]=Xt,r[t++]="raw",e.encode(),e.i=e.i+1;break}else{var Sr=pe(2);y(Sr,0,u(e.gpf,e.i)),y(Sr,1,94),r[t++]=Sr,r[t++]=e.numeric,e.encode(),e.i=e.i+1;break}}if(ae(e.mode,"alphanumeric")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric",e.i=e.i+1;break}var Kr=u(e.gpf,e.i),hr=u(e.iso646,Kr)!==void 0,dn=u(e.alphanumeric,Kr)!==void 0;if(hr&&!dn){r[t++]=e.liso646,r[t++]=e.alphanumeric,e.encode(),e.mode="iso646";break}if(u(e.numericruns,e.i)>=6){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}var er=u(e.numericruns,e.i);if(er>=4&&h(er+e.i)==e.gpf.length){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.alphanumeric,e.encode(),e.i=e.i+1;break}if(ae(e.mode,"iso646")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.iso646,e.encode(),e.mode="numeric",e.i=e.i+1;break}if(u(e.numericruns,e.i)>=4&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lnumeric,r[t++]=e.iso646,e.encode(),e.mode="numeric";break}if(u(e.alphanumericruns,e.i)>=5&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lalphanumeric,r[t++]=e.iso646,e.encode(),e.mode="alphanumeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.iso646,e.encode(),e.i=e.i+1;break}}e.gpf=T(e.gpfenc,0,e.j);var jn=13+e.method.length+e.vlf.length+e.cdf.length+e.gpf.length;r[t++]=jn,r[t++]=jn,e.rembits();var qr=r[--t];if(e.pad=a(qr),r[t++]=qr,e.vlf.length!=0){var vo=r[--t],Or=~~(h(r[--t]+vo)/12);y(e.vlf,0,Or%2);var _n=Or<=14?0:1;y(e.vlf,1,_n)}else t-=2;if(e.pad.length>0){for(var Nr=0,jo=e.pad.length-1;Nr<=jo;Nr+=5){e.i=Nr;var nn=e.pad,zo=e.i,xn=a([0,0,1,0,0]),ni=e.pad,so=e.i,oi=5,Zn=ni.length-so;if(ni.length-so>5){var Mi=oi;oi=Zn,Zn=Mi}K(nn,zo,T(xn,0,Zn))}ae(e.mode,"numeric")&&(r[t++]=1/0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.pad),e.pad=T(a(),0,e.pad.length))}r[t++]=1/0;var bo=e.linkage?1:0;if(r[t++]=bo,Oe(e.method,function(){var gr=r[--t];r[t++]=h(gr-48)}),oe(e.vlf),oe(e.cdf),oe(e.gpf),oe(e.pad),e.binval=a(),e.datalen=~~(e.binval.length/12),e.ncr=function(){var gr=r[--t],kn=r[--t],mn=h(kn-gr);if(gr=Uo;Wn-=1){var Bi=r[--t],fa=r[--t],si=r[--t];if(r[t++]=si,r[t++]=fa,r[t++]=Bi*Wn,pp(fa,si)){var vs=r[--t],is=r[--t];r[t++]=h(is+1),r[t++]=~~(vs/is)}}for(;;){var Va=r[--t],Qa=r[--t],Ea=r[--t];if(r[t++]=Ea,r[t++]=Qa,r[t++]=Va,Mc(Qa,Ea))break;var Ma=r[--t],bs=r[--t];r[t++]=h(bs+1),r[t++]=~~(Ma/bs)}var Ns=r[--t],ws=r[--t];r[t++]=Ns,r[t++]=ws,t--;var Wa=r[--t],qa=r[--t];r[t++]=Wa,r[t++]=qa,t--},e.getRSSwidths=function(){e.oe=r[--t],e.el=r[--t],e.mw=r[--t],e.nm=r[--t],e.val=r[--t],e.out=a(e.el),e.mask=0;for(var gr=0,kn=h(e.el-2);gr<=kn;gr+=1){e.bar=gr,e.ew=1;var mn=e.bar;for(e.mask=e.mask|(mn<0?1>>>-mn:1<=-2){r[t++]="sval",r[t++]=e.sval,r[t++]=h(h(h(e.nm-e.ew)-e.el)+e.bar),r[t++]=h(h(e.el-e.bar)-2),e.ncr();var Wn=r[--t],Uo=r[--t];e[r[--t]]=h(Uo-Wn)}if(h(e.el-e.bar)>2){e.lval=0;for(var Bi=h(h(h(h(e.nm-e.ew)-e.el)+e.bar)+2),fa=h(e.mw+1);Bi>=fa;Bi-=1)r[t++]=h(h(h(e.nm-Bi)-e.ew)-1),r[t++]=h(h(e.el-e.bar)-3),e.ncr(),e.lval=h(r[--t]+e.lval);e.sval=h(e.sval-e.lval*h(h(e.el-e.bar)-1))}else h(e.nm-e.ew)>e.mw&&(e.sval=h(e.sval-1));if(e.val=h(e.val-e.sval),e.val<0)break;e.ew=e.ew+1;var si=e.bar;e.mask=e.mask&~(si<0?1>>>-si:1<=0;hn-=1)r[t++]=u(e.row,hn);xr(e.row),t--;for(var Qn=e.sep.length-1;Qn>=0;Qn-=1)r[t++]=u(e.sep,Qn);xr(e.sep),t--}y(e.rows,e.r,e.row),y(e.seps,e.r,e.sep)}e.pixx=u(e.rows,0).length,r[t++]=1/0;for(var co=0,Io=e.pixx;co6)&&(r[t++]="bwipp.gs1northamericancouponBadVLI#10244",r[t++]="The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6",ne()),e.gcp=T(e.val,1,h(e.vli+6)),e.cod=T(e.val,h(e.vli+7),6),e.coupontext=pe(e.gcp.length+7),K(e.coupontext,0,e.gcp),K(e.coupontext,e.gcp.length,"-"),K(e.coupontext,e.gcp.length+1,e.cod),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,u8();var n=r[--t];if(e[r[--t]]=n,e.includetext){ae(e.coupontextxoffset,null)&&(e.coupontextxoffset=0),ae(e.coupontextyoffset,null)&&(e.coupontextyoffset=h(u(e.args,"height")*72+3));var o=u(e.args,"txt")!==void 0;o?(e.txt=u(e.args,"txt"),e.newtxt=a(e.txt.length+1),K(e.newtxt,0,e.txt),y(e.newtxt,e.newtxt.length-1,a([e.coupontext,e.coupontextxoffset,e.coupontextyoffset,e.coupontextfont,e.coupontextsize])),y(e.args,"txt",e.newtxt)):y(e.args,"txt",a([a([e.coupontext,e.coupontextxoffset,e.coupontextyoffset,e.coupontextfont,e.coupontextsize])]))}y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function r0e(){e=Object.create(e),e.dontdraw=!1,e.height=8*2.835/72,e.nwidth=.5*2.835,e.wwidth=1.5*2.835,e.swidth=1*2.835,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],(e.barcode.length<1||e.barcode.length>6)&&(r[t++]="bwipp.pharmacodeBadLength#10324",r[t++]="Pharmacode must be 1 to 6 digits",ne()),Oe(e.barcode,function(){var A=r[--t];(A<48||A>57)&&(r[t++]="bwipp.pharmacodeBadCharacter#10328",r[t++]="Pharmacode must contain only digits",ne())});var n=ft(e.barcode);(n<3||n>131070)&&(r[t++]="bwipp.pharmacodeBadValue#10332",r[t++]="Pharmacode value must be between 3 and 131070",ne()),e.txt=a(e.barcode.length);for(var o=0,i=e.barcode.length-1;o<=i;o+=1)e.i=o,y(e.txt,e.i,a([T(e.barcode,e.i,1),0,0,"",0]));e.barcode=vr(pe(17),ft(e.barcode)+1,2),e.barcode=T(e.barcode,1,e.barcode.length-1),e.barlen=e.barcode.length,e.sbs=a(e.barlen*2);for(var s=0,l=e.barlen-1;s<=l;s+=1)e.i=s,e.enc=T(e.barcode,e.i,1),ae(e.enc,"0")?y(e.sbs,e.i*2,e.nwidth):y(e.sbs,e.i*2,e.wwidth),y(e.sbs,e.i*2+1,e.swidth);r[t++]=1/0;var c=e.sbs;r[t++]=1/0;for(var d=0,f=~~((e.sbs.length+1)/2);d8)&&(r[t++]="bwipp.pharmacode2BadLength#10413",r[t++]="Two-track Pharmacode must be 1 to 6 digits",ne()),Oe(e.barcode,function(){var A=r[--t];(A<48||A>57)&&(r[t++]="bwipp.pharmacode2badCharacter#10417",r[t++]="Two-track Pharmacode must contain only digits",ne())});var n=ft(e.barcode);(n<4||n>64570080)&&(r[t++]="bwipp.pharmacode2badValue#10421",r[t++]="Two-track Pharmacode value must be between 4 and 64570080",ne()),e.txt=a(e.barcode.length);for(var o=0,i=e.barcode.length-1;o<=i;o+=1)e.i=o,y(e.txt,e.i,a([T(e.barcode,e.i,1),0,0,"",0]));for(e.encstr=pe(16),e.sbs=a(32),e.bar=1/25.4*e.height,e.spc=1/25.4*72,e.i=15,e.val=ft(e.barcode);e.val!=0;){var s=e.val%3;e.val=~~(h(e.val-u(a([3,1,2]),s))/3),y(e.encstr,e.i,u(a([2,0,1]),s)),e.i=e.i-1}e.encstr=T(e.encstr,e.i+1,15-e.i),e.bhs=a(e.encstr.length),e.bbs=a(e.encstr.length);for(var l=0,c=e.encstr.length-1;l<=c;l+=1){e.i=l;var d=u(e.encstr,e.i);y(e.bhs,e.i,e.bar*u(a([1,1,2]),d)),y(e.bbs,e.i,u(a([0,e.bar,0]),d))}r[t++]=1/0;var f=e.bhs,p=e.bbs;r[t++]=1/0;for(var m=0,g=e.encstr.length*2;m57)&&(r[t++]="bwipp.code2of5badCharacter#10528",r[t++]="Code 25 must contain only digits",ne())}),r[t++]="barlen",r[t++]=e.barcode.length,e.validatecheck){var n=r[--t];r[t++]=h(n-1)}var o=r[--t];e[r[--t]]=o,e.checksum=0;for(var i=0,s=h(e.barlen-1);i<=s;i+=1){if(e.i=i,r[t++]="checksum",r[t++]=e.checksum,r[t++]=h(u(e.barcode,e.i)-48),h(e.barlen-e.i)%2!=0){var l=r[--t];r[t++]=l*3}var c=r[--t],d=r[--t];e[r[--t]]=h(d+c)}if(e.checksum=(10-e.checksum%10)%10,e.validatecheck&&(u(e.barcode,e.barlen)!=e.checksum+48&&(r[t++]="bwipp.code2of5badCheckDigit#10542",r[t++]="Incorrect Code 25 check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0),!jl.__10574__){e=Object.create(e);var f=new Map([["industrial",a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","313111","31113"])],["iata",a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","1111","311"])],["matrix",a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","311111","31111"])],["coop",a(["331111","111331","113131","113311","131131","131311","133111","311131","311311","313111","3131","133"])],["datalogic",a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","1111","311"])]]);e.versions=f;for(var p in e)e.hasOwnProperty(p)&&(jl.$ctx[p]=e[p]);jl.__10574__=1,e=Object.getPrototypeOf(e)}var m=u(e.versions,e.version)!==void 0;m||(r[t++]="bwipp.code2of5badVersion#10577",r[t++]="Unrecognised Code 25 version",ne()),e.encs=u(e.versions,e.version),e.cs=u(e.encs,0).length,r[t++]="cw",r[t++]=0,Oe(u(e.encs,0),function(){var _=r[--t],V=r[--t];r[t++]=h(V+h(_-48))});var g=r[--t];e[r[--t]]=g,e.ss=u(e.encs,10).length,r[t++]="sw",r[t++]=0,Oe(u(e.encs,10),function(){var _=r[--t],V=r[--t];r[t++]=h(V+h(_-48))});var v=r[--t];e[r[--t]]=v;var w=u(e.encs,11);if(e.es=w.length,!jl.__10590__){e=Object.create(e),e.barchars="0123456789";for(var p in e)e.hasOwnProperty(p)&&(jl.$ctx[p]=e[p]);jl.__10590__=1,e=Object.getPrototypeOf(e)}if(r[t++]="sbs",r[t++]=e.barlen,e.includecheck){var A=r[--t];r[t++]=h(A+1)}var k=pe(h(h(r[--t]*e.cs+e.ss)+e.es));if(e[r[--t]]=k,r[t++]="txt",r[t++]=e.barlen,e.includecheck){var C=r[--t];r[t++]=h(C+1)}var M=a(r[--t]);e[r[--t]]=M,K(e.sbs,0,u(e.encs,10));for(var S=0,I=h(e.barlen-1);S<=I;S+=1)e.i=S,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*e.cs+e.ss,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),h(e.i*e.cw+e.sw),e.textyoffset,e.textfont,e.textsize]));e.includecheck?(K(e.sbs,h(e.barlen*e.cs+e.ss),u(e.encs,e.checksum)),K(e.sbs,h(h(e.barlen*e.cs+e.cs)+e.ss),u(e.encs,11)),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),h(e.barlen*e.cw+e.sw),e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a([" ",h(e.barlen*e.cw+e.sw),e.textyoffset,e.textfont,e.textsize]))):K(e.sbs,h(e.barlen*e.cs+e.ss),u(e.encs,11)),r[t++]=1/0,r[t++]=1/0,Oe(e.sbs,function(){var _=r[--t];r[t++]=h(_-48)});var E=a();r[t++]=1/0;for(var j=0,B=~~((e.sbs.length+1)/2);j=10?2:1;r[t++]=d}else r[t++]=0;var f=r[--t];e[r[--t]]=f,e.checksum1=0,e.checksum2=0;for(var p=0,m=e.barlen-1;p<=m;p+=1)e.i=p,e.indx=u(e.charvals,T(e.barcode,e.i,1)),e.checksum1=h(e.checksum1+((e.barlen-e.i-1)%10+1)*e.indx),e.checksum2=h(e.checksum2+((e.barlen-e.i)%9+1)*e.indx);if(e.checksum1=e.checksum1%11,e.checksum2=h(e.checksum2+e.checksum1)%11,e.validatecheck){if(e.numchecks==1){var g=e.checksum1;u(e.barcode,e.barlen)!=u(e.barchars,g)&&(r[t++]="bwipp.code11badCheckDigit#10972",r[t++]="Incorrect Code 11 check digit provided",ne())}else(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum1)||u(e.barcode,e.barlen+1)!=u(e.barchars,e.checksum2))&&(r[t++]="bwipp.code11badCheckDigits#10977",r[t++]="Incorrect Code 11 check digits provided",ne());e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0}e.sbs=pe(h(h(e.barlen+e.numchecks)*6+12)),e.txt=a(h(e.barlen+e.numchecks)),K(e.sbs,0,u(e.encs,11)),e.xpos=8;for(var v=0,w=e.barlen-1;v<=w;v+=1){e.i=v,e.indx=u(e.charvals,T(e.barcode,e.i,1)),e.enc=u(e.encs,e.indx),K(e.sbs,e.i*6+6,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.xpos,e.textyoffset,e.textfont,e.textsize]));for(var A=0;A<=5;A+=1)e.xpos=h(h(u(e.enc,A)-48)+e.xpos)}if(e.includecheck)if(e.barlen>=10){if(K(e.sbs,e.barlen*6+6,u(e.encs,e.checksum1)),K(e.sbs,e.barlen*6+12,u(e.encs,e.checksum2)),e.includecheckintext){y(e.txt,e.barlen,a([T(e.barchars,e.checksum1,1),e.xpos,e.textyoffset,e.textfont,e.textsize])),e.enc=u(e.encs,e.checksum1);for(var k=0;k<=5;k+=1)e.xpos=h(h(u(e.enc,k)-48)+e.xpos);y(e.txt,e.barlen+1,a([T(e.barchars,e.checksum2,1),e.xpos,e.textyoffset,e.textfont,e.textsize]))}else y(e.txt,e.barlen,a(["",e.xpos,e.textyoffset,e.textfont,e.textsize])),y(e.txt,e.barlen+1,a(["",e.xpos,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,e.barlen*6+18,u(e.encs,11))}else K(e.sbs,e.barlen*6+6,u(e.encs,e.checksum1)),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum1,1),e.xpos,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a(["",e.xpos,e.textyoffset,e.textfont,e.textsize])),K(e.sbs,e.barlen*6+12,u(e.encs,11));else K(e.sbs,e.barlen*6+6,u(e.encs,11));r[t++]=1/0,r[t++]=1/0;for(var C=e.sbs,M=0,S=C.length;M19)&&(r[t++]="bwipp.bc412semivalidateBadLength#11125",r[t++]="BC412 semi with check digit must be 8 to 19 characters long",ne()):(e.barcode.length<7||e.barcode.length>18)&&(r[t++]="bwipp.bc412semiBadLength#11129",r[t++]="BC412 semi must be 7 to 18 characters long",ne()),e.barlen=e.barcode.length,e.validatecheck||(e.barlen=e.barlen+1,e.sbarcode=pe(e.barlen),y(e.sbarcode,0,u(e.barcode,0)),y(e.sbarcode,1,48),K(e.sbarcode,2,T(e.barcode,1,e.barlen-2)),e.barcode=e.sbarcode),e.sumodd=0,e.sumeven=0;for(var c=0,d=e.barlen-1;c<=d;c+=1)e.i=c,r[t++]=u(e.charvals,T(e.barcode,e.i,1)),e.i%2==0?e.sumodd=h(r[--t]+e.sumodd):e.sumeven=h(r[--t]+e.sumeven);e.checksum=h(e.sumodd%35+e.sumeven%35*2)%35,e.validatecheck?e.checksum!=0&&(r[t++]="bwipp.bc412semiBadCheckDigit#11155",r[t++]="Incorrect BC412 semi check digit provided",ne()):(e.checksum=e.checksum*17%35,y(e.barcode,1,u(e.barchars,e.checksum)))}else{if(r[t++]="barlen",r[t++]=e.barcode.length,e.validatecheck){var f=r[--t];r[t++]=h(f-1)}var p=r[--t];e[r[--t]]=p,e.checksum=0;for(var m=0,g=e.barlen-1;m<=g;m+=1)e.checksum=h(u(e.charvals,T(e.barcode,m,1))+e.checksum);e.checksum=e.checksum%35,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.bc412badCheckDigit#11172",r[t++]="Incorrect BC412 check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen),e.includecheck=!0)}if(!Wu.__11191__){e=Object.create(e),e.encs=a(["11111115","13111212","11131113","12111213","12121311","13131111","12111312","11131212","11121411","11151111","15111111","11111511","12131211","13121112","13111311","11111214","12121113","11111313","13111113","11121213","11141112","11121312","11141211","14121111","12121212","11131311","13121211","12111411","14111211","11111412","12111114","14111112","12141111","11121114","12131112","12","111"]);for(var o in e)e.hasOwnProperty(o)&&(Wu.$ctx[o]=e[o]);Wu.__11191__=1,e=Object.getPrototypeOf(e)}e.sbs=pe((e.barlen+1)*8+5),e.includecheck?e.txt=a(e.barlen+1):e.txt=a(e.barlen),e.includestartstop?(K(e.sbs,0,u(e.encs,35)),e.pos=2,e.txtpos=3):(e.pos=0,e.txtpos=0);for(var v=0,w=e.barlen-1;v<=w;v+=1)e.i=v,e.indx=u(e.charvals,T(e.barcode,e.i,1)),K(e.sbs,e.pos,u(e.encs,e.indx)),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*12+e.txtpos,e.textyoffset,e.textfont,e.textsize])),e.pos=e.pos+8;e.includecheck&&(K(e.sbs,e.pos,u(e.encs,e.checksum)),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),e.barlen*12+e.txtpos,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a(["",e.barlen*12+e.txtpos,e.textyoffset,e.textfont,e.textsize])),e.pos=e.pos+8),e.includestartstop&&(K(e.sbs,e.pos,u(e.encs,36)),e.pos=e.pos+3),e.sbs=T(e.sbs,0,e.pos),r[t++]=1/0,r[t++]=1/0;for(var A=e.sbs,k=0,C=A.length;k57)&&(r[t++]="bwipp.onecodeBadCharacter#11465",r[t++]="The data must contain only digits",ne())}),e.barlen!=20&&e.barlen!=25&&e.barlen!=29&&e.barlen!=31&&(r[t++]="bwipp.onecodeInvalidLength#11470",r[t++]="The data must be 20, 25, 29 or 31 digits",ne()),r[t++]=1/0;var n=ae(T(e.barcode,5,1),"9")?14:11;r[t++]=2,r[t++]=2,r[t++]=5,r[t++]=5,r[t++]=n,r[t++]=n,r[t++]=20,r[t++]=20,r[t++]=25,r[t++]=25,r[t++]=29,r[t++]=29,e.txtdict=Tt(),e.txt=a(e.barlen+6),e.spacecnt=0;for(var o=0,i=e.barlen-1;o<=i;o+=1){e.i=o;var s=u(e.txtdict,e.i)!==void 0;s&&(y(e.txt,e.i+e.spacecnt,a([" ",0,0,"",0])),e.spacecnt=e.spacecnt+1),y(e.txt,e.i+e.spacecnt,a([T(e.barcode,e.i,1),0,0,"",0]))}if(e.txt=T(e.txt,0,e.barcode.length+e.spacecnt),e.normalize=function(){e.base=r[--t],e.num=r[--t];for(var ue=e.num.length-1;ue>=1;ue-=1){e.i=ue;var Le=e.num,$e=e.i;y(Le,$e-1,h(u(Le,$e-1)+~~(u(e.num,e.i)/e.base))),y(e.num,e.i,u(e.num,e.i)%e.base)}for(;!Fs(u(e.num,0),e.base);)r[t++]=1/0,r[t++]=0,oe(e.num),e.num=a(),y(e.num,0,h(u(e.num,0)+~~(u(e.num,1)/e.base))),y(e.num,1,u(e.num,1)%e.base);r[t++]=1/0,e.i=!0;for(var bt=e.num,ot=0,st=bt.length;ot=0;j-=1){e.i=j;for(var B=0,D=e.bintmp.length-2;B<=D;B+=1){e.j=B;var R=e.bintmp,N=e.j;y(R,N+1,h(u(R,N+1)+u(e.bintmp,e.j)%256*10)),y(e.bintmp,e.j,~~(u(e.bintmp,e.j)/256))}y(e.bytes,e.i,u(e.bintmp,e.bintmp.length-1)%256);var U=e.bintmp,L=e.bintmp;y(U,L.length-1,~~(u(U,L.length-1)/256))}e.fcs=2047,e.dat=u(e.bytes,0)<<5;for(var _=0,V=6;_=0;G-=1){e.i=G;var F=e.i==9?636:1365;e.b=F;for(var q=0,W=e.binval.length-2;q<=W;q+=1){e.j=q;var X=e.binval,te=e.j;y(X,te+1,h(u(X,te+1)+u(e.binval,e.j)%e.b*10)),y(e.binval,e.j,~~(u(e.binval,e.j)/e.b))}y(e.codewords,e.i,u(e.binval,e.binval.length-1)%e.b);var se=e.binval,de=e.binval;y(se,de.length-1,~~(u(se,de.length-1)/e.b))}if(y(e.codewords,9,u(e.codewords,9)*2),e.fcs&1024&&y(e.codewords,0,h(u(e.codewords,0)+659)),!H1.__11698__){e=Object.create(e),e.tab513=a([31,7936,47,7808,55,7552,59,7040,61,6016,62,3968,79,7744,87,7488,91,6976,93,5952,94,3904,103,7360,107,6848,109,5824,110,3776,115,6592,117,5568,118,3520,121,5056,122,3008,124,1984,143,7712,151,7456,155,6944,157,5920,158,3872,167,7328,171,6816,173,5792,174,3744,179,6560,181,5536,182,3488,185,5024,186,2976,188,1952,199,7264,203,6752,205,5728,206,3680,211,6496,213,5472,214,3424,217,4960,218,2912,220,1888,227,6368,229,5344,230,3296,233,4832,234,2784,236,1760,241,4576,242,2528,244,1504,248,992,271,7696,279,7440,283,6928,285,5904,286,3856,295,7312,299,6800,301,5776,302,3728,307,6544,309,5520,310,3472,313,5008,314,2960,316,1936,327,7248,331,6736,333,5712,334,3664,339,6480,341,5456,342,3408,345,4944,346,2896,348,1872,355,6352,357,5328,358,3280,361,4816,362,2768,364,1744,369,4560,370,2512,372,1488,376,976,391,7216,395,6704,397,5680,398,3632,403,6448,405,5424,406,3376,409,4912,410,2864,412,1840,419,6320,421,5296,422,3248,425,4784,426,2736,428,1712,433,4528,434,2480,436,1456,440,944,451,6256,453,5232,454,3184,457,4720,458,2672,460,1648,465,4464,466,2416,468,1392,472,880,481,4336,482,2288,484,1264,488,752,527,7688,535,7432,539,6920,541,5896,542,3848,551,7304,555,6792,557,5768,558,3720,563,6536,565,5512,566,3464,569,5e3,570,2952,572,1928,583,7240,587,6728,589,5704,590,3656,595,6472,597,5448,598,3400,601,4936,602,2888,604,1864,611,6344,613,5320,614,3272,617,4808,618,2760,620,1736,625,4552,626,2504,628,1480,632,968,647,7208,651,6696,653,5672,654,3624,659,6440,661,5416,662,3368,665,4904,666,2856,668,1832,675,6312,677,5288,678,3240,681,4776,682,2728,684,1704,689,4520,690,2472,692,1448,696,936,707,6248,709,5224,710,3176,713,4712,714,2664,716,1640,721,4456,722,2408,724,1384,728,872,737,4328,738,2280,740,1256,775,7192,779,6680,781,5656,782,3608,787,6424,789,5400,790,3352,793,4888,794,2840,796,1816,803,6296,805,5272,806,3224,809,4760,810,2712,812,1688,817,4504,818,2456,820,1432,824,920,835,6232,837,5208,838,3160,841,4696,842,2648,844,1624,849,4440,850,2392,852,1368,865,4312,866,2264,868,1240,899,6200,901,5176,902,3128,905,4664,906,2616,908,1592,913,4408,914,2360,916,1336,929,4280,930,2232,932,1208,961,4216,962,2168,964,1144,1039,7684,1047,7428,1051,6916,1053,5892,1054,3844,1063,7300,1067,6788,1069,5764,1070,3716,1075,6532,1077,5508,1078,3460,1081,4996,1082,2948,1084,1924,1095,7236,1099,6724,1101,5700,1102,3652,1107,6468,1109,5444,1110,3396,1113,4932,1114,2884,1116,1860,1123,6340,1125,5316,1126,3268,1129,4804,1130,2756,1132,1732,1137,4548,1138,2500,1140,1476,1159,7204,1163,6692,1165,5668,1166,3620,1171,6436,1173,5412,1174,3364,1177,4900,1178,2852,1180,1828,1187,6308,1189,5284,1190,3236,1193,4772,1194,2724,1196,1700,1201,4516,1202,2468,1204,1444,1219,6244,1221,5220,1222,3172,1225,4708,1226,2660,1228,1636,1233,4452,1234,2404,1236,1380,1249,4324,1250,2276,1287,7188,1291,6676,1293,5652,1294,3604,1299,6420,1301,5396,1302,3348,1305,4884,1306,2836,1308,1812,1315,6292,1317,5268,1318,3220,1321,4756,1322,2708,1324,1684,1329,4500,1330,2452,1332,1428,1347,6228,1349,5204,1350,3156,1353,4692,1354,2644,1356,1620,1361,4436,1362,2388,1377,4308,1378,2260,1411,6196,1413,5172,1414,3124,1417,4660,1418,2612,1420,1588,1425,4404,1426,2356,1441,4276,1442,2228,1473,4212,1474,2164,1543,7180,1547,6668,1549,5644,1550,3596,1555,6412,1557,5388,1558,3340,1561,4876,1562,2828,1564,1804,1571,6284,1573,5260,1574,3212,1577,4748,1578,2700,1580,1676,1585,4492,1586,2444,1603,6220,1605,5196,1606,3148,1609,4684,1610,2636,1617,4428,1618,2380,1633,4300,1634,2252,1667,6188,1669,5164,1670,3116,1673,4652,1674,2604,1681,4396,1682,2348,1697,4268,1698,2220,1729,4204,1730,2156,1795,6172,1797,5148,1798,3100,1801,4636,1802,2588,1809,4380,1810,2332,1825,4252,1826,2204,1857,4188,1858,2140,1921,4156,1922,2108,2063,7682,2071,7426,2075,6914,2077,5890,2078,3842,2087,7298,2091,6786,2093,5762,2094,3714,2099,6530,2101,5506,2102,3458,2105,4994,2106,2946,2119,7234,2123,6722,2125,5698,2126,3650,2131,6466,2133,5442,2134,3394,2137,4930,2138,2882,2147,6338,2149,5314,2150,3266,2153,4802,2154,2754,2161,4546,2162,2498,2183,7202,2187,6690,2189,5666,2190,3618,2195,6434,2197,5410,2198,3362,2201,4898,2202,2850,2211,6306,2213,5282,2214,3234,2217,4770,2218,2722,2225,4514,2226,2466,2243,6242,2245,5218,2246,3170,2249,4706,2250,2658,2257,4450,2258,2402,2273,4322,2311,7186,2315,6674,2317,5650,2318,3602,2323,6418,2325,5394,2326,3346,2329,4882,2330,2834,2339,6290,2341,5266,2342,3218,2345,4754,2346,2706,2353,4498,2354,2450,2371,6226,2373,5202,2374,3154,2377,4690,2378,2642,2385,4434,2401,4306,2435,6194,2437,5170,2438,3122,2441,4658,2442,2610,2449,4402,2465,4274,2497,4210,2567,7178,2571,6666,2573,5642,2574,3594,2579,6410,2581,5386,2582,3338,2585,4874,2586,2826,2595,6282,2597,5258,2598,3210,2601,4746,2602,2698,2609,4490,2627,6218,2629,5194,2630,3146,2633,4682,2641,4426,2657,4298,2691,6186,2693,5162,2694,3114,2697,4650,2705,4394,2721,4266,2753,4202,2819,6170,2821,5146,2822,3098,2825,4634,2833,4378,2849,4250,2881,4186,2945,4154,3079,7174,3083,6662,3085,5638,3086,3590,3091,6406,3093,5382,3094,3334,3097,4870,3107,6278,3109,5254,3110,3206,3113,4742,3121,4486,3139,6214,3141,5190,3145,4678,3153,4422,3169,4294,3203,6182,3205,5158,3209,4646,3217,4390,3233,4262,3265,4198,3331,6166,3333,5142,3337,4630,3345,4374,3361,4246,3393,4182,3457,4150,3587,6158,3589,5134,3593,4622,3601,4366,3617,4238,3649,4174,3713,4142,3841,4126,4111,7681,4119,7425,4123,6913,4125,5889,4135,7297,4139,6785,4141,5761,4147,6529,4149,5505,4153,4993,4167,7233,4171,6721,4173,5697,4179,6465,4181,5441,4185,4929,4195,6337,4197,5313,4201,4801,4209,4545,4231,7201,4235,6689,4237,5665,4243,6433,4245,5409,4249,4897,4259,6305,4261,5281,4265,4769,4273,4513,4291,6241,4293,5217,4297,4705,4305,4449,4359,7185,4363,6673,4365,5649,4371,6417,4373,5393,4377,4881,4387,6289,4389,5265,4393,4753,4401,4497,4419,6225,4421,5201,4425,4689,4483,6193,4485,5169,4489,4657,4615,7177,4619,6665,4621,5641,4627,6409,4629,5385,4633,4873,4643,6281,4645,5257,4649,4745,4675,6217,4677,5193,4739,6185,4741,5161,4867,6169,4869,5145,5127,7173,5131,6661,5133,5637,5139,6405,5141,5381,5155,6277,5157,5253,5187,6213,5251,6181,5379,6165,5635,6157,6151,7171,6155,6659,6163,6403,6179,6275,6211,5189,4681,4433,4321,3142,2634,2386,2274,1612,1364,1252,856,744,496]),e.tab213=a([3,6144,5,5120,6,3072,9,4608,10,2560,12,1536,17,4352,18,2304,20,1280,24,768,33,4224,34,2176,36,1152,40,640,48,384,65,4160,66,2112,68,1088,72,576,80,320,96,192,129,4128,130,2080,132,1056,136,544,144,288,257,4112,258,2064,260,1040,264,528,513,4104,514,2056,516,1032,1025,4100,1026,2052,2049,4098,4097,2050,1028,520,272,160]);for(var c in e)e.hasOwnProperty(c)&&(H1.$ctx[c]=e[c]);H1.__11698__=1,e=Object.getPrototypeOf(e)}e.chars=a(10);for(var ee=0;ee<=9;ee+=1){e.i=ee;var fe=u(e.codewords,e.i);if(r[t++]=fe,fe<=1286){var he=u(e.tab513,r[--t]);r[t++]=he}else{var Ie=u(e.tab213,h(r[--t]-1287));r[t++]=Ie}y(e.chars,e.i,r[--t])}for(var ve=9;ve>=0;ve-=1)e.i=ve,~~Math.pow(2,e.i)&e.fcs&&y(e.chars,e.i,u(e.chars,e.i)^8191);if(!H1.__11735__){e=Object.create(e),e.barmap=a([7,2,4,3,1,10,0,0,9,12,2,8,5,5,6,11,8,9,3,1,0,1,5,12,2,5,1,8,4,4,9,11,6,3,8,10,3,9,7,6,5,11,1,4,8,5,2,12,9,10,0,2,7,1,6,7,3,6,4,9,0,3,8,6,6,4,2,7,1,1,9,9,7,10,5,2,4,0,3,8,6,2,0,4,8,11,1,0,9,8,3,12,2,6,7,7,5,1,4,10,1,12,6,9,7,3,8,0,5,8,9,7,4,6,2,10,3,4,0,5,8,4,5,7,7,11,1,9,6,0,9,6,0,6,4,8,2,1,3,2,5,9,8,12,4,11,6,1,9,5,7,4,3,3,1,2,0,7,2,0,1,3,4,1,6,10,3,5,8,7,9,4,2,11,5,6,0,8,7,12,4,2,8,1,5,10,3,0,9,3,0,9,6,5,2,4,7,8,1,7,5,0,4,5,2,3,0,10,6,12,9,2,3,11,1,6,8,8,7,9,5,4,0,11,1,5,2,2,9,1,4,12,8,3,6,6,7,0,3,7,4,7,7,5,0,12,1,11,2,9,9,0,6,8,5,3,3,10,8,2]);for(var c in e)e.hasOwnProperty(c)&&(H1.$ctx[c]=e[c]);H1.__11735__=1,e=Object.getPrototypeOf(e)}e.bbs=a(65),e.bhs=a(65);for(var be=0;be<=64;be+=1)e.i=be,e.dec=(u(e.chars,u(e.barmap,e.i*4))&~~Math.pow(2,u(e.barmap,e.i*4+1)))!=0,e.asc=(u(e.chars,u(e.barmap,e.i*4+2))&~~Math.pow(2,u(e.barmap,e.i*4+3)))!=0,!e.dec&&!e.asc&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,2*e.height/8)),!e.dec&&e.asc&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,5*e.height/8)),e.dec&&!e.asc&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,5*e.height/8)),e.dec&&e.asc&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,8*e.height/8));r[t++]=1/0;var ke=e.bbs,ze=e.bhs;r[t++]=1/0;for(var Ge=0,Ve=e.bhs.length-1;Ge57)&&(r[t++]="bwipp.postnetBadCharacter#11834",r[t++]="USPS POSTNET must contain only digits",ne())}),!j0.__11848__){e=Object.create(e),e.barchars="0123456789",e.encs=a(["55222","22255","22525","22552","25225","25252","25522","52225","52252","52522","5","5"]);for(var i in e)e.hasOwnProperty(i)&&(j0.$ctx[i]=e[i]);j0.__11848__=1,e=Object.getPrototypeOf(e)}e.checksum=0;for(var s=0,l=h(e.barlen-1);s<=l;s+=1)e.i=s,e.checksum=h(e.checksum+h(u(e.barcode,e.i)-48));e.checksum=h(10-e.checksum%10)%10,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.postnetBadCheckDigit#11858",r[t++]="Incorrect USPS POSTNET check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen)),e.bhs=a(h(e.barlen*5+7)),e.txt=a(h(e.barlen+1)),e.enc=u(e.encs,10),e.heights=a(e.enc.length);for(var c=0,d=e.enc.length-1;c<=d;c+=1)e.j=c,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,0,e.heights);for(var f=0,p=h(e.barlen-1);f<=p;f+=1){e.i=f,e.enc=u(e.encs,h(u(e.barcode,e.i)-48)),e.heights=a(e.enc.length);for(var m=0,g=e.enc.length-1;m<=g;m+=1)e.j=m,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,e.i*5+1,e.heights),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i*5+1)*3.312,e.textyoffset,e.textfont,e.textsize]))}e.enc=u(e.encs,e.checksum),e.heights=a(e.enc.length);for(var v=0,w=e.enc.length-1;v<=w;v+=1)e.j=v,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+1),e.heights),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),h(e.barlen*5+1)*3.312,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a([" ",h(e.barlen*5+1)*72/25,e.textyoffset,e.textfont,e.textsize])),e.enc=u(e.encs,11),e.heights=a(e.enc.length);for(var A=0,k=e.enc.length-1;A<=k;A+=1)e.j=A,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+6),e.heights),r[t++]=1/0;var C=e.bhs;r[t++]=1/0;for(var M=0,S=e.bhs.length;M57)&&(r[t++]="bwipp.planetBadCharacter#11982",r[t++]="USPS PLANET must contain only digits",ne())}),!O0.__11996__){e=Object.create(e),e.barchars="0123456789",e.encs=a(["22555","55522","55252","55225","52552","52525","52255","25552","25525","25255","5","5"]);for(var i in e)e.hasOwnProperty(i)&&(O0.$ctx[i]=e[i]);O0.__11996__=1,e=Object.getPrototypeOf(e)}e.checksum=0;for(var s=0,l=h(e.barlen-1);s<=l;s+=1)e.i=s,e.checksum=h(e.checksum+h(u(e.barcode,e.i)-48));e.checksum=h(10-e.checksum%10)%10,e.validatecheck&&(u(e.barcode,e.barlen)!=u(e.barchars,e.checksum)&&(r[t++]="bwipp.planetBadCheckDigit#12007",r[t++]="Incorrect USPS PLANET check digit provided",ne()),e.barcode=T(e.barcode,0,e.barlen)),e.bhs=a(h(e.barlen*5+7)),e.txt=a(h(e.barlen+1)),e.enc=u(e.encs,10),e.heights=a(e.enc.length);for(var c=0,d=e.enc.length-1;c<=d;c+=1)e.j=c,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,0,e.heights);for(var f=0,p=h(e.barlen-1);f<=p;f+=1){e.i=f,e.enc=u(e.encs,h(u(e.barcode,e.i)-48)),e.heights=a(e.enc.length);for(var m=0,g=e.enc.length-1;m<=g;m+=1)e.j=m,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,e.i*5+1,e.heights),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.i*5+1)*3.312,e.textyoffset,e.textfont,e.textsize]))}e.enc=u(e.encs,e.checksum),e.heights=a(e.enc.length);for(var v=0,w=e.enc.length-1;v<=w;v+=1)e.j=v,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+1),e.heights),e.includecheckintext?y(e.txt,e.barlen,a([T(e.barchars,e.checksum,1),h(e.barlen*5+1)*3.312,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.barlen,a([" ",h(e.barlen*5+1)*72/25,e.textyoffset,e.textfont,e.textsize])),e.enc=u(e.encs,11),e.heights=a(e.enc.length);for(var A=0,k=e.enc.length-1;A<=k;A+=1)e.j=A,y(e.heights,e.j,ft(T(e.enc,e.j,1))*e.height/5);K(e.bhs,h(e.barlen*5+6),e.heights),r[t++]=1/0;var C=e.bhs;r[t++]=1/0;for(var M=0,S=e.bhs.length;M=2?r[t++]=T(e.barcode,0,2):r[t++]="";var i=r[--t],s=r[--t],l=u(s,i)!==void 0;r[t++]=s,r[t++]=i,l||(t-=2,r[t++]="bwipp.auspostBadFCC#12315",r[t++]="Must begin with an FCC, either 11, 45, 59 or 62",ne());var c=r[--t];e.encstr=pe(u(r[--t],c)),r[t++]=!0;for(var d=0,f=1;d57){t--,r[t++]=!1;break}}}fr(r[--t])&&(r[t++]="bwipp.auspostIncompleteDPID#12326",r[t++]="The DPID must be 8 digits",ne());var w=ae(e.custinfoenc,"numeric")?2:3;(e.barlen-10)*w>e.encstr.length-22-14&&(r[t++]="bwipp.auspostTooLong#12332",r[t++]="The message is too long",ne()),K(e.encstr,0,u(e.encs,74));for(var A=0;A<=1;A+=1)e.i=A,K(e.encstr,e.i*2+2,u(e.encs,ft(T(e.barcode,e.i,1))+64));for(var k=2;k<=9;k+=1)e.i=k,K(e.encstr,e.i*2+2,u(e.encs,ft(T(e.barcode,e.i,1))+64)),y(e.txt,e.i-2,a([T(e.barcode,e.i,1),((e.i-2)*2+6)*3.312,e.textyoffset,e.textfont,e.textsize]));if(ae(e.custinfoenc,"numeric")){for(var C=0,M=e.barlen-11;C<=M;C+=1){e.i=C;var S=u(e.barcode,e.i+10);r[t++]=e.encs,r[t++]=S,(S<48||S>57)&&(r[t++]="bwipp.auspostInvalidCustinfoDigit#12359",r[t++]="The customer information data contains a non-digit character",ne());var I=r[--t];K(e.encstr,e.i*2+22,u(r[--t],h(h(I-48)+64))),y(e.txt,e.i+8,a([T(e.barcode,e.i+10,1),(e.i*2+22)*3.312,e.textyoffset,e.textfont,e.textsize]))}e.ciflen=(e.barlen-10)*2}else{for(var E=0,j=e.barlen-11;E<=j;E+=1)e.i=E,pr(e.barchars,T(e.barcode,e.i+10,1)),fr(r[--t])&&(t--,r[t++]="bwipp.auspostInvalidCustinfoCharacter#12371",r[t++]="The customer information contains an invalid character",ne()),e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.encstr,e.i*3+22,e.enc),y(e.txt,e.i+8,a([T(e.barcode,e.i+10,1),(e.i*3+22)*3.312,e.textyoffset,e.textfont,e.textsize]));e.ciflen=(e.barlen-10)*3}for(var B=22+e.ciflen,D=e.encstr.length-14;B<=D;B+=1)K(e.encstr,B,u(e.encs,75));if(!qu.__12408__){e=Object.create(e),e.rstable=a(64*64),r[t++]=e.rstable,r[t++]=0,r[t++]=1/0;for(var R=0,N=64;R=0;ve-=1){e.i=ve;for(var be=0;be<=4;be+=1)e.j=be,y(e.rscodes,e.i+e.j,ti(u(e.rscodes,e.i+e.j),u(e.rstable,h(64*u(a([48,17,29,30,1]),e.j)+u(e.rscodes,e.i+4)))))}e.checkcode=Gn(pe(12),"000000000000");for(var ke=0;ke<=3;ke+=1)e.i=ke,e.enc=vr(pe(3),u(e.rscodes,3-e.i),4),K(e.checkcode,e.i*3+(3-e.enc.length),e.enc);K(e.encstr,e.encstr.length-14,e.checkcode),K(e.encstr,e.encstr.length-2,u(e.encs,74)),e.bbs=a(e.encstr.length),e.bhs=a(e.encstr.length);for(var ze=0,Ge=e.encstr.length-1;ze<=Ge;ze+=1)e.i=ze,e.enc=T(e.encstr,e.i,1),ae(e.enc,"0")&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,8*e.height/8)),ae(e.enc,"1")&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,5*e.height/8)),ae(e.enc,"2")&&(y(e.bbs,e.i,0*e.height/8),y(e.bhs,e.i,5*e.height/8)),ae(e.enc,"3")&&(y(e.bbs,e.i,3*e.height/8),y(e.bhs,e.i,2*e.height/8));r[t++]=1/0;var Ve=e.bbs,at=e.bhs;r[t++]=1/0;for(var We=0,ue=e.bhs.length-1;We=48&&A<=57||A>=65&&A<=90||A==45||(r[t++]="bwipp.japanpostBadCharacter#12658",r[t++]="Japan Post must contain only digits, capital letters and the dash symbol",ne())}),!T0.__12672__){e=Object.create(e),e.encs=a(["300","330","312","132","321","303","123","231","213","033","030","120","102","210","012","201","021","003","333","31","13"]),e.barchars="0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var n in e)e.hasOwnProperty(n)&&(T0.$ctx[n]=e[n]);T0.__12672__=1,e=Object.getPrototypeOf(e)}e.barlen=e.barcode.length,e.encstr=pe(21*3+4),e.digits=a(20),e.txt=a(e.barlen+1),K(e.encstr,0,u(e.encs,19)),e.checksum=0,e.j=0,e.i=0,r[t++]=!0;for(var o=0,i=e.barlen-1;o<=i;o+=1){if(e.i=o,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.indx>=11&&e.indx<37){if(e.j>18){t--,r[t++]=!1;break}e.digit=~~((e.indx-1)/10)+10,K(e.encstr,e.j*3+2,u(e.encs,e.digit)),e.checksum=e.checksum+e.digit,y(e.digits,e.j,e.digit),e.j=e.j+1}if(e.j>19){t--,r[t++]=!1;break}e.digit=0,e.indx==37&&(e.digit=14),e.indx>=11&&e.indx<37&&(e.digit=(e.indx-1)%10),e.indx<11&&(e.digit=e.indx),K(e.encstr,e.j*3+2,u(e.encs,e.digit)),e.checksum=e.checksum+e.digit,y(e.digits,e.j,e.digit),y(e.txt,e.i,a([T(e.barcode,e.i,1),(e.j*3+2)*3.312,e.textyoffset,e.textfont,e.textsize])),e.j=e.j+1}fr(r[--t])&&(r[t++]="bwipp.japanpostTooLong#12722",r[t++]="The input is too long",ne());for(var s=e.j,l=19;s<=l;s+=1)e.k=s,K(e.encstr,e.k*3+2,u(e.encs,14)),e.checksum=e.checksum+14,y(e.digits,e.k,14);e.checksum=19-e.checksum%19,K(e.encstr,2+20*3,u(e.encs,e.checksum)),K(e.encstr,2+21*3,u(e.encs,20)),e.checkdigit=" ",e.includecheckintext&&(e.checkdigit=T(e.barchars,e.checksum,1)),y(e.txt,e.i+1,a([e.checkdigit,(20*3+2)*3.312,e.textyoffset,e.textfont,e.textsize])),K(e.encstr,21*3+2,u(e.encs,20)),e.bbs=a(21*3+4),e.bhs=a(e.bbs.length);for(var c=0,d=e.bbs.length-1;c<=d;c+=1)e.i=c,e.enc=T(e.encstr,e.i,1),e.bunit=0,e.hunit=0,ae(e.enc,"0")&&(e.bunit=3,e.hunit=2),ae(e.enc,"1")&&(e.bunit=0,e.hunit=5),ae(e.enc,"2")&&(e.bunit=3,e.hunit=5),ae(e.enc,"3")&&(e.bunit=0,e.hunit=8),y(e.bbs,e.i,e.bunit*e.height/8),y(e.bhs,e.i,e.hunit*e.height/8);r[t++]=1/0;var f=e.bbs,p=e.bhs;r[t++]=1/0;for(var m=0,g=e.bhs.length-1;m57)&&(r[t++]="bwipp.msiBadCharacter#12853",r[t++]="MSI must contain only digits",ne())}),!_u.__12867__){e=Object.create(e),e.encs=a(["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221","21","121"]),e.barchars="0123456789";for(var n in e)e.hasOwnProperty(n)&&(_u.$ctx[n]=e[n]);_u.__12867__=1,e=Object.getPrototypeOf(e)}if(e.barlen=e.barcode.length,e.txtlen=e.barlen,e.mod10=function(){e.code=r[--t],r[t++]=0,r[t++]=0,Oe(e.code,function(){var z=r[--t],Q=r[--t],G=r[--t];r[t++]=h(h(z-48)+Q*10),r[t++]=G}),t--;var j=r[--t];for(r[t++]=j*2,r[t++]=0;;){var B=r[--t],D=r[--t],R=~~(D/10);if(r[t++]=h(B+D%10),r[t++]=R,R==0){t--;break}var N=r[--t],U=r[--t];r[t++]=N,r[t++]=U}r[t++]=0,r[t++]=0,Oe(e.code,function(){var z=r[--t],Q=r[--t],G=r[--t];r[t++]=h(Q+h(z-48)),r[t++]=G});var L=r[--t],_=r[--t];r[t++]=L,r[t++]=_,t--;var V=r[--t],$=pe(e.code.length+1);K($,0,e.code),y($,e.code.length,h(h(10-h(r[--t]+V)%10)%10+48)),r[t++]=$},e.mod11=function(){e.code=r[--t],r[t++]=e.code.length-1,Oe(e.code,function(){var V=r[--t],$=r[--t];r[t++]=h(V-48),r[t++]=h($%6+2),r[t++]=h($-1)}),t--,r[t++]=0;for(var j=0,B=e.code.length;j>>1&1,e.indx>>>2&1,e.indx>>>3]));e.checksalt=a([1,1,1,1,0,1,0,0,1]);for(var m=0,g=h(e.barlen*4-1);m<=g;m+=1)if(e.i=m,u(e.checkbits,e.i)==1)for(var v=0;v<=8;v+=1)e.j=v,y(e.checkbits,e.i+e.j,ti(u(e.checkbits,e.i+e.j),u(e.checksalt,e.j)));e.checkval=0;for(var w=0;w<=7;w+=1)e.i=w,e.checkval=h(e.checkval+~~Math.pow(2,e.i)*u(e.checkbits,h(e.barlen*4+e.i)));e.checksum1=e.checkval&15,e.checksum2=e.checkval>>>4,e.validatecheck&&((u(e.barcode,e.barlen)!=u(e.barchars,e.checksum1)||u(e.barcode,h(e.barlen+1))!=u(e.barchars,e.checksum2))&&(r[t++]="bwipp.plesseyBadCheckDigits#13081",r[t++]="Incorrect Plessey check digits provided",ne()),e.barcode=T(e.barcode,0,e.barlen));var A=e.unidirectional?27:33;e.sbs=pe(h(e.barlen*8+A)),e.txt=a(h(e.barlen+2)),K(e.sbs,0,u(e.encs,16));for(var k=0,C=h(e.barlen-1);k<=C;k+=1)e.i=k,e.indx=u(e.charvals,T(e.barcode,e.i,1)),K(e.sbs,e.i*8+8,u(e.encs,e.indx)),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*20+20,e.textyoffset,e.textfont,e.textsize]));K(e.sbs,h(e.barlen*8+8),u(e.encs,e.checksum1)),K(e.sbs,h(e.barlen*8+16),u(e.encs,e.checksum2)),e.includecheckintext?(y(e.txt,e.barlen,a([T(e.barchars,e.checksum1,1),h(e.barlen*20+20),e.textyoffset,e.textfont,e.textsize])),y(e.txt,h(e.barlen+1),a([T(e.barchars,e.checksum2,1),h(h(e.barlen+1)*20+20),e.textyoffset,e.textfont,e.textsize]))):(y(e.txt,e.barlen,a([" ",h(e.barlen*20+20),e.textyoffset,e.textfont,e.textsize])),y(e.txt,h(e.barlen+1),a([" ",h(h(e.barlen+1)*20+20),e.textyoffset,e.textfont,e.textsize])));var M=e.unidirectional?18:17;K(e.sbs,h(e.barlen*8+24),u(e.encs,M)),r[t++]=1/0,r[t++]=1/0;for(var S=e.sbs,I=0,E=S.length;I16){e.np=T(e.barcode,e.i,2);var s=u(e.np,0),l=u(e.np,1);if(s<48||s>57||(l<48||l>57)&&l!=88)r[t++]=-1;else{var c=h(u(e.np,1)-48);if(r[t++]=h(u(e.np,0)-48),r[t++]=c,c!=40){var d=r[--t],f=r[--t];r[t++]=h(h(d+f*10)+10)}else t--;var p=r[--t];r[t++]=h(p+17)}var m=r[--t];r[t++]=m,m==-1&&(r[t++]="bwipp.telepenInvalidNumericCharacter#13254",r[t++]="Telepen Numeric may contain only digits, or X in even positions",ne()),e.indx=r[--t],y(e.txt,e.j,a([e.np,e.j*16+16,e.textyoffset,e.textfont,e.textsize])),e.i=e.i+2}else e.indx=u(e.barcode,e.i),y(e.txt,e.j,a([" ",e.j*16+16,e.textyoffset,e.textfont,e.textsize])),e.i=e.i+1;else e.indx=u(e.barcode,e.i),e.indx>127&&(r[t++]="bwipp.telepenInvalidAlphaCharacter#13267",r[t++]="Telepen Alpha characters must have ordinal values 0 to 127",ne()),e.indx>=32&&e.indx<=126?y(e.txt,e.j,a([T(e.barcode,e.i,1),e.j*16+16,e.textyoffset,e.textfont,e.textsize])):y(e.txt,e.j,a([" ",e.j*16+16,e.textyoffset,e.textfont,e.textsize])),e.i=e.i+1;e.checksum=h(e.checksum+e.indx),e.enc=u(e.encs,e.indx),K(e.sbs,e.l,e.enc),e.l=e.l+e.enc.length,e.j=e.j+1}e.checksum=h(127-e.checksum%127)%127,e.enc=u(e.encs,e.checksum),K(e.sbs,e.l,e.enc),e.l=e.l+e.enc.length,e.enc=u(e.encs,122),K(e.sbs,e.l,e.enc),e.l=e.l+e.enc.length,e.sbs=T(e.sbs,0,e.l),e.txt=T(e.txt,0,e.j),r[t++]=1/0,r[t++]=1/0;for(var g=e.sbs,v=0,w=g.length;v",30]),a(["5","?",31]),a(["6","@","!"]),a(["7","[",'"']),a(["8",92,"#"]),a(["9","]","&"]),a(["A","a",1]),a(["B","b",2]),a(["C","c",3]),a(["D","d",4]),a(["E","e",5]),a(["F","f",6]),a(["G","g",7]),a(["H","h",8]),a(["I","i",9]),a(["J","j",10]),a(["K","k",11]),a(["L","l",12]),a(["M","m",13]),a(["N","n",14]),a(["O","o",15]),a(["P","p",16]),a(["Q","q",17]),a(["R","r",18]),a(["S","s",19]),a(["T","t",20]),a(["U","u",21]),a(["V","v",22]),a(["W","w",23]),a(["X","x",24]),a(["Y","y",25]),a(["Z","z",26]),a(["-","_",40]),a([".","`",41]),a([" ",127,0]),a(["$","{","*"]),a(["/","|",","]),a(["+","}",":"]),a(["%","~",e.fn1]),a([e.la1,e.la0,e.fn2]),a([e.sf1,e.sf0,e.fn3]),a([e.sf2,e.sf2,e.fn4])]);var o=a(["6",-98,-98]);e.chapmapslimited=a([a(["0",-98,-98]),a(["1",-98,-98]),a(["2",-98,-98]),a(["3",-98,-98]),a(["4",-98,-98]),a(["5",-98,-98]),o,a(["7",-98,-98]),a(["8",-98,-98]),a(["9",-98,-98]),a(["A",-98,-98]),a(["B",-98,-98]),a(["C",-98,-98]),a(["D",-98,-98]),a(["E",-98,-98]),a(["F",-98,-98]),a(["G",-98,-98]),a(["H",-98,-98]),a(["I",-98,-98]),a(["J",-98,-98]),a(["K",-98,-98]),a(["L",-98,-98]),a(["M",-98,-98]),a(["N",-98,-98]),a(["O",-98,-98]),a(["P",-98,-98]),a(["Q",-98,-98]),a(["R",-98,-98]),a(["S",-98,-98]),a(["T",-98,-98]),a(["U",-98,-98]),a(["V",-98,-98]),a(["W",-98,-98]),a(["X",-98,-98]),a(["Y",-98,-98]),a(["Z",-98,-98]),a(["-",-98,-98]),a([".",-98,-98])]);for(var i in e)e.hasOwnProperty(i)&&(U1.$ctx[i]=e[i]);U1.__13456__=1,e=Object.getPrototypeOf(e)}it(e.version,"a")&&it(e.version,"b")&&it(e.version,"limiteda")&&it(e.version,"limitedb")&&(r[t++]="bwipp.posicodeInvalidVersion#13459",r[t++]="The version must be either a, b, limiteda or limitedb",ne()),r[t++]="charmaps",ae(e.version,"a")||ae(e.version,"b")?r[t++]=e.charmapsnormal:r[t++]=e.chapmapslimited;var s=r[--t];e[r[--t]]=s,e.charmaps,e.charmaps,e.charmaps,e.charvals=a([new Map,new Map,new Map]);for(var l=0,c=e.charmaps.length-1;l<=c;l+=1){e.i=l,e.encs=u(e.charmaps,e.i);for(var d=0;d<=2;d+=1){e.j=d;var f=u(e.encs,e.j);if(r[t++]=f,ae(za(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}y(u(e.charvals,e.j),r[--t],e.i)}}if(e.set0=u(e.charvals,0),e.set1=u(e.charvals,1),e.set2=u(e.charvals,2),ae(e.version,"limiteda")||ae(e.version,"limitedb"))for(var m=0,g=e.barcode.length-1;m<=g;m+=1){var v=u(e.set0,u(T(e.barcode,m,1),0))!==void 0;v||(r[t++]="bwipp.posicodeBadCharacter#13485",r[t++]="Posicode limited must contain only digits, capital letters, and the symbols - and .",ne())}if(e.raw&&(e.encoding="raw"),ae(e.encoding,"raw")){for(e.cws=a(e.barcode.length),e.i=0,e.j=0;e.i!=e.barcode.length;)e.cw=ft(T(e.barcode,e.i+1,3)),y(e.cws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1;e.cws=T(e.cws,0,e.j),e.text=""}if(ae(e.encoding,"auto")){var w=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC2",e.fn2],["FNC3",e.fn3]]);e.fncvals=w,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var A=r[--t];e[r[--t]]=A,e.msglen=e.msg.length,e.text=pe(e.msglen);for(var k=0,C=e.msglen-1;k<=C;k+=1){e.i=k;var M=u(e.msg,e.i);r[t++]=e.text,r[t++]=e.i,r[t++]=M,M<0&&(t--,r[t++]=32);var S=r[--t],I=r[--t];y(r[--t],I,S)}r[t++]=1/0;for(var E=0,j=e.msglen;E=0;R-=1)e.i=R,u(e.msg,e.i)>=0&&(u(e.msg,e.i)>=128?y(e.numEA,e.i,h(u(e.numEA,e.i+1)+1)):y(e.numSA,e.i,h(u(e.numSA,e.i+1)+1)));e.ea=!1,e.msgtmp=a([]);for(var N=0,U=e.msglen-1;N<=U;N+=1){if(e.i=N,e.c=u(e.msg,e.i),!ti(e.ea,e.c<128)&&e.c>=0){e.ea?r[t++]=e.numSA:r[t++]=e.numEA;var L=u(r[--t],e.i),_=h(L+e.i)==e.msglen?3:5;L<_?(r[t++]=1/0,oe(e.msgtmp),r[t++]=e.fn4,e.msgtmp=a()):(r[t++]=1/0,oe(e.msgtmp),r[t++]=e.fn4,r[t++]=e.fn4,e.msgtmp=a(),e.ea=!e.ea)}r[t++]=1/0,oe(e.msgtmp),e.c>=0?r[t++]=e.c&127:r[t++]=e.c,e.msgtmp=a()}for(e.msg=e.msgtmp,e.msglen=e.msg.length,e.enc=function(){var Pt=r[--t];y(e.cws,e.j,u(Pt,r[--t])),e.j=e.j+1},e.cws=a(e.msglen*2),e.i=0,e.j=0,e.cset="set0";e.i!=e.msglen;)for(;;){e.char1=u(e.msg,e.i),r[t++]="char2",e.i+1>>1,e.cw=e.cw>>>1}for(e.v=e.v+e.checkoffset,ae(e.version,"limiteda")||ae(e.version,"limitedb")?(e.v=e.v&1023,e.v>824&&e.v<853&&(e.v=e.v+292)):e.v=(e.v&1023)+45,e.d=a([2,2,2,2,2,2]),e.r=0,e.c=0,e.w=0,e.sum=0;e.sum!=e.v;)e.t=h(e.sum+u(u(e.c2w,e.r),e.c)),e.t==e.v&&(e.w=e.w+1,y(e.d,e.r,e.w+2),e.sum=e.t),e.t>e.v&&(y(e.d,e.r,e.w+2),e.r=e.r+1,e.w=0),e.t=0;Ie-=1)e.i=Ie,y(e.cbs,(5-e.i)*2+1,h(u(e.d,e.i)+47));e.sbs=pe(e.cws.length*6+31);var ve=u(e.encs,e.encs.length-2);K(e.sbs,0,ve),e.j=ve.length;for(var be=0,ke=e.cws.length-1;be<=ke;be+=1)e.i=be,K(e.sbs,e.j,u(e.encs,u(e.cws,e.i))),e.j=e.j+6;K(e.sbs,e.j,e.cbs),e.j=e.j+12;var ze=u(e.encs,e.encs.length-1);K(e.sbs,e.j,ze),e.j=ze.length+e.j,e.sbs=T(e.sbs,0,e.j),r[t++]=1/0,r[t++]=1/0;for(var Ge=e.sbs,Ve=0,at=Ge.length;Ve62)&&(r[t++]="bwipp.codablockfBadColumns#13815",r[t++]="Codablock F must have 4 to 62 columns",ne()),e.rows!=-1&&(e.rows<2||e.rows>44)&&(r[t++]="bwipp.codablockfBadRows#13819",r[t++]="Codablock F must have 2 to 44 rows",ne()),e.rowheight<8&&(r[t++]="bwipp.codablockfBadRowHeight#13823",r[t++]="Codablock F must have rowheight of at least 8",ne()),e.sepheight<1&&(r[t++]="bwipp.codablockfBadSepHeight#13827",r[t++]="Codablock F must have sepheight of at least 1",ne()),yr(n1),r[t++]="c",e.columns>=4&&e.columns<=62?r[t++]=e.columns:r[t++]=8;var n=r[--t];e[r[--t]]=n,r[t++]="rows",e.rows>=2&&e.rows<=44?r[t++]=e.rows:r[t++]=-1;var o=r[--t];e[r[--t]]=o,e.swa=-1,e.swb=-2,e.swc=-3,e.sft=-4,e.fn1=-5,e.fn2=-6,e.fn3=-7,e.fn4=-8,e.sta=-9,e.stp=-10;var i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC3",e.fn3]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var s=r[--t];e[r[--t]]=s,e.msglen=e.msg.length,e.msgtmp=a([]);for(var l=e.msg,c=0,d=l.length;c",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.fn3,e.fn3,"96"]),a([e.fn2,e.fn2,"97"]),a([e.sft,e.sft,"98"]),a([e.swc,e.swc,"99"]),a([e.swb,e.fn4,e.swb]),a([e.fn4,e.swa,e.swa]),a([e.fn1,e.fn1,e.fn1]),a([e.sta,e.sta,e.sta]),a([e.stp,e.stp,e.stp])]),e.charvals=a([new Map,new Map,new Map]);for(var f=0,p=e.charmaps.length-1;f<=p;f+=1){e.i=f,e.encs=u(e.charmaps,e.i);for(var m=0;m<=2;m+=1){e.j=m;var g=u(e.encs,e.j);if(r[t++]=g,ae(za(g),"stringtype")){var v=u(r[--t],0);r[t++]=v}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2);for(var w in e)e.hasOwnProperty(w)&&(n1.$ctx[w]=e[w]);n1.__13917__=1,e=Object.getPrototypeOf(e)}e.numsscr=function(){for(e.n=0,e.s=0,e.p=r[--t];!(e.p>=e.msglen);){var Ae=u(e.msg,e.p),Ue=u(e.setc,Ae)!==void 0;if(r[t++]=Ae,!Ue){t--;break}if(r[--t]==e.fn1)if(e.s%2==0)e.s=e.s+1;else break;e.n=e.n+1,e.s=e.s+1,e.p=h(e.p+1)}r[t++]=e.n,r[t++]=e.s},e.enca=function(){y(e.cws,e.j,u(e.seta,r[--t])),e.j=e.j+1},e.encb=function(){y(e.cws,e.j,u(e.setb,r[--t])),e.j=e.j+1},e.encc=function(){var Ae=r[--t];if(r[t++]=Ae,it(za(Ae),"arraytype")){var Ue=u(e.setc,r[--t]);r[t++]=Ue}else{oe(r[--t]);var qe=r[--t],De=r[--t];r[t++]=h(h(qe-48)+h(De-48)*10)}y(e.cws,e.j,r[--t]),e.j=e.j+1},e.anotb=function(){var Ae=r[--t],Ue=u(e.seta,Ae)!==void 0,qe=u(e.setb,Ae)!==void 0;r[t++]=Ue&&!qe},e.bnota=function(){var Ae=r[--t],Ue=u(e.setb,Ae)!==void 0,qe=u(e.seta,Ae)!==void 0;r[t++]=Ue&&!qe},r[t++]=1/0;for(var A=0,k=e.msg.length;A=0;S-=1)e.i=S,r[t++]=u(e.msg,e.i),e.anotb(),r[--t]?y(e.nextanotb,e.i,0):y(e.nextanotb,e.i,h(u(e.nextanotb,e.i+1)+1)),r[t++]=u(e.msg,e.i),e.bnota(),r[--t]?y(e.nextbnota,e.i,0):y(e.nextbnota,e.i,h(u(e.nextbnota,e.i+1)+1));for(e.abeforeb=function(){var Ae=r[--t];r[t++]=Fs(u(e.nextanotb,Ae),u(e.nextbnota,Ae))},e.bbeforea=function(){var Ae=r[--t];r[t++]=Fs(u(e.nextbnota,Ae),u(e.nextanotb,Ae))},e.padrow=function(){for(var Ae=0,Ue=r[--t];Ae=32;r[t++]=Ae,Ae&&(r[t++]=e.fn4,e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),e.i=e.i+2)}else r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1,r[t++]=!0},e.cws=a(h(e.c+5)*44),e.i=0,e.j=0,e.r=1,e.lastrow=!1;!e.lastrow;){for(e.r>44&&(r[t++]="bwipp.codablockfTooBig#14033",r[t++]="Maximum length exceeded",ne()),r[t++]=e.sta,e.enca(),e.i=2){r[t++]=e.swc,e.enca(),e.cset="setc";break}if(r[t++]=e.i,e.abeforeb(),r[--t]){r[t++]=e.sft,e.enca(),e.cset="seta";break}r[t++]=e.swb,e.enca(),e.cset="setb";break}for(e.j=e.j+1,e.endofrow=!1;e.rem=h(h(e.c+3)-e.j%h(e.c+5)),!(e.i==e.msglen||e.endofrow);){r[t++]=e.i,e.numsscr(),e.nums=r[--t],e.nchars=r[--t],r[t++]="remnums",e.nums>e.rem*2?r[t++]=e.rem*2:r[t++]=e.nums;var I=r[--t];for(e[r[--t]]=I;;){if((ae(e.cset,"seta")||ae(e.cset,"setb"))&&e.remnums>=4&&u(e.msg,e.i)!=e.fn1){if(e.remnums%2==0&&e.rem>=3){r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";for(var E=0,j=2;E=4){r[t++]=u(e.msg,e.i),ae(e.cset,"seta")?e.enca():e.encb(),e.i=e.i+1,r[t++]=e.swc,ae(e.cset,"seta")?e.enca():e.encb(),e.cset="setc";for(var B=0,D=2;B=2){if(e.i=2){if(e.i=2){if(e.rem=h(e.rem-1),r[t++]=e.i,e.abeforeb(),r[--t]){if(r[t++]=e.swa,e.encc(),e.cset="seta",e.encafitsrow(),r[--t])break}else if(r[t++]=e.swb,e.encc(),e.cset="setb",e.encbfitsrow(),r[--t])break}var _=u(e.seta,u(e.msg,e.i))!==void 0;if(ae(e.cset,"seta")&&_&&e.rem>=1&&(e.encafitsrow(),r[--t]))break;var V=u(e.setb,u(e.msg,e.i))!==void 0;if(ae(e.cset,"setb")&&V&&e.rem>=1&&(e.encbfitsrow(),r[--t]))break;if(ae(e.cset,"setc")&&e.remnums>=2&&e.rem>=1){u(e.msg,e.i)==e.fn1?(r[t++]=e.fn1,e.encc(),e.i=e.i+1):(r[t++]=T(e.msg,e.i,2),e.encc(),e.i=e.i+2);break}e.endofrow=!0;break}}(e.r>=e.rows||e.rows==-1)&&e.r>1&&e.i==e.msglen&&e.rem>=2?(r[t++]=h(e.rem-2),e.padrow(),e.j=e.j+3,r[t++]=e.stp,e.enca(),e.lastrow=!0):(r[t++]=e.rem,e.padrow(),e.j=e.j+1,r[t++]=e.stp,e.enca(),e.r=e.r+1)}if(e.cws=T(e.cws,0,e.j),!n1.__14206__){e=Object.create(e),r[t++]=1/0;for(var $=64;$<=95;$+=1)r[t++]=$;for(var z=0;z<=15;z+=1)r[t++]=z;for(var Q=26;Q<=63;Q+=1)r[t++]=Q;e.abmap=a(),r[t++]=1/0;for(var G=0;G<=85;G+=1)r[t++]=G;e.cmap=a();for(var w in e)e.hasOwnProperty(w)&&(n1.$ctx[w]=e[w]);n1.__14206__=1,e=Object.getPrototypeOf(e)}e.chkmsg=a(e.kmsg.length),e.j=0;for(var F=0,q=e.kmsg.length-1;F<=q;F+=1)e.i=F,e.char=u(e.kmsg,e.i),e.char>=0&&(y(e.chkmsg,e.j,e.char),e.j=e.j+1),e.char==e.fn1&&e.i!=0&&(y(e.chkmsg,e.j,29),e.j=e.j+1);e.t1=0,e.t2=0,e.k1=0,e.k2=0;for(var W=0,X=e.j-1;W<=X;W+=1)e.i=W,e.t1=u(e.chkmsg,e.i)*e.i%86,e.t2=h(e.t1+u(e.chkmsg,e.i))%86,e.k1=h(e.k1+e.t2)%86,e.k2=h(e.k2+e.t1)%86;r[t++]=e.cws,r[t++]=e.cws.length-4,it(e.cset,"setc")?r[t++]=e.abmap:r[t++]=e.cmap;var te=u(r[--t],e.k1),se=r[--t];y(r[--t],se,te),r[t++]=e.cws,r[t++]=e.cws.length-3,it(e.cset,"setc")?r[t++]=e.abmap:r[t++]=e.cmap;var de=u(r[--t],e.k2),ee=r[--t];y(r[--t],ee,de);var fe=e.cws;r[t++]=fe,r[t++]=2,u(fe,1)!=99?r[t++]=e.abmap:r[t++]=e.cmap;var he=u(r[--t],e.r-2),Ie=r[--t];y(r[--t],Ie,he);for(var ve=1,be=e.r-1;ve<=be;ve+=1){e.i=ve;var ke=e.cws,ze=e.i,Ge=e.c;r[t++]=ke,r[t++]=h(ze*h(Ge+5)+2),u(ke,h(h(ze*h(Ge+5)+2)-1))!=99?r[t++]=e.abmap:r[t++]=e.cmap;var Ve=u(r[--t],e.i+42),at=r[--t];y(r[--t],at,Ve)}for(var We=0,ue=e.r-1;We<=ue;We+=1){e.rcws=T(e.cws,We*h(e.c+5),h(e.c+4)),e.csum=u(e.rcws,0);for(var Le=1,$e=e.rcws.length-2;Le<=$e;Le+=1)e.i=Le,e.csum=h(e.csum+u(e.rcws,e.i)*e.i);y(e.rcws,e.rcws.length-1,e.csum%103)}var bt=u(e.options,"debugcws")!==void 0;if(bt&&(r[t++]="bwipp.debugcws#14246",r[t++]=e.cws,ne()),!n1.__14267__){e=Object.create(e),e.encs=a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","2331112"]);for(var w in e)e.hasOwnProperty(w)&&(n1.$ctx[w]=e[w]);n1.__14267__=1,e=Object.getPrototypeOf(e)}e.rowbits=a(e.r);for(var ot=0,st=e.r-1;ot<=st;ot+=1){e.i=ot,r[t++]=1/0;for(var Ze=T(e.cws,e.i*h(e.c+5),h(e.c+5)),dt=0,Xe=Ze.length;dt16)&&(r[t++]="bwipp.code16kBadRows#14363",r[t++]="Code 16K must have 2 to 16 rows",ne()),e.rowheight<8&&(r[t++]="bwipp.code16kBadRowHeight#14367",r[t++]="Code 16K must have rowheight of at least 8",ne()),e.sepheight<1&&(r[t++]="bwipp.code16kBadSepHeight#14371",r[t++]="Code 16K must have sepheight of at least 1",ne()),e.sam!=-1){r[t++]=!0;for(var n=0,o=1;n99){t--,r[t++]=!1;break}if(e.sam%10<2){t--,r[t++]=!1;break}if(~~(e.sam/10)>e.sam%10){t--,r[t++]=!1;break}}fr(r[--t])&&(r[t++]="bwipp.code16kBadSAM#14382",r[t++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols',ne())}if(yr(G1),e.sam!=-1&&(e.rows=16),!G1.__14453__){e=Object.create(e),e.swa=-1,e.swb=-2,e.swc=-3,e.sa1=-4,e.sb1=-5,e.sc1=-6,e.sa2=-7,e.sb2=-8,e.sc2=-9,e.pad=-10,e.sb3=-11,e.sc3=-12,e.fn1=-13,e.fn2=-14,e.fn3=-15,e.fn4=-16,e.charmaps=a([a([32,32,"00"]),a(["!","!","01"]),a(['"','"',"02"]),a(["#","#","03"]),a(["$","$","04"]),a(["%","%","05"]),a(["&","&","06"]),a(["'","'","07"]),a([40,40,"08"]),a([41,41,"09"]),a(["*","*","10"]),a(["+","+","11"]),a([",",",","12"]),a(["-","-","13"]),a([".",".","14"]),a(["/","/","15"]),a(["0","0","16"]),a(["1","1","17"]),a(["2","2","18"]),a(["3","3","19"]),a(["4","4","20"]),a(["5","5","21"]),a(["6","6","22"]),a(["7","7","23"]),a(["8","8","24"]),a(["9","9","25"]),a([":",":","26"]),a([";",";","27"]),a(["<","<","28"]),a(["=","=","29"]),a([">",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.fn3,e.fn3,"96"]),a([e.fn2,e.fn2,"97"]),a([e.sb1,e.sa1,"98"]),a([e.swc,e.swc,"99"]),a([e.swb,e.fn4,e.swb]),a([e.fn4,e.swa,e.swa]),a([e.fn1,e.fn1,e.fn1]),a([e.pad,e.pad,e.pad]),a([e.sb2,e.sa2,e.sb1]),a([e.sc2,e.sc2,e.sb2]),a([e.sc3,e.sc3,e.sb3])]),e.charvals=a([new Map,new Map,new Map]);for(var s=0,l=e.charmaps.length-1;s<=l;s+=1){e.i=s,e.encs=u(e.charmaps,e.i);for(var c=0;c<=2;c+=1){e.j=c;var d=u(e.encs,e.j);if(r[t++]=d,ae(za(d),"stringtype")){var f=u(r[--t],0);r[t++]=f}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2);for(var p in e)e.hasOwnProperty(p)&&(G1.$ctx[p]=e[p]);G1.__14453__=1,e=Object.getPrototypeOf(e)}if(e.raw){for(e.cws=a(e.barcode.length),e.i=0,e.j=0;!(e.i>=e.barcode.length-3||u(e.barcode,e.i)!=94);){var m=T(e.barcode,e.i+1,3);r[t++]=m,r[t++]=!1;for(var g=0,v=m.length;g57)&&(t--,r[t++]=!0)}if(r[--t]){t--;break}e.cw=ft(r[--t]),y(e.cws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1}e.i!=e.barcode.length&&(r[t++]="bwipp.code16kBadRawFormat#14471",r[t++]="raw data must be formatted as ^NNN",ne()),e.cws=T(e.cws,0,e.j)}else{var A=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1],["FNC2",e.fn2],["FNC3",e.fn3]]);e.fncvals=A,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var k=r[--t];e[r[--t]]=k,e.msglen=e.msg.length,r[t++]=1/0;for(var C=0,M=e.msglen;C=0;E-=1)e.i=E,u(e.msg,e.i)>=0&&(u(e.msg,e.i)>=128?y(e.numEA,e.i,h(u(e.numEA,e.i+1)+1)):y(e.numSA,e.i,h(u(e.numSA,e.i+1)+1)));e.ea=!1,e.msgtmp=a([]);for(var j=0,B=e.msglen-1;j<=B;j+=1){if(e.i=j,e.c=u(e.msg,e.i),!ti(e.ea,e.c<128)&&e.c>=0){e.ea?r[t++]=e.numSA:r[t++]=e.numEA;var D=u(r[--t],e.i),R=h(D+e.i)==e.msglen?3:5;D=0?r[t++]=e.c&127:r[t++]=e.c,e.msgtmp=a()}e.msg=e.msgtmp,e.msglen=e.msg.length,e.numsscr=function(){for(e.n=0,e.s=0,e.p=r[--t];!(e.p>=e.msglen);){var Gr=u(e.msg,e.p),wo=u(e.setc,Gr)!==void 0;if(r[t++]=Gr,!wo){t--;break}if(r[--t]==e.fn1)if(e.s%2==0)e.s=e.s+1;else break;e.n=e.n+1,e.s=e.s+1,e.p=h(e.p+1)}r[t++]=e.n,r[t++]=e.s},e.enca=function(){y(e.cws,e.j,u(e.seta,r[--t])),e.j=e.j+1},e.encb=function(){y(e.cws,e.j,u(e.setb,r[--t])),e.j=e.j+1},e.encc=function(){var Gr=r[--t];if(r[t++]=Gr,it(za(Gr),"arraytype")){var wo=u(e.setc,r[--t]);r[t++]=wo}else{oe(r[--t]);var ii=r[--t],Pi=r[--t];r[t++]=h(h(ii-48)+h(Pi-48)*10)}y(e.cws,e.j,r[--t]),e.j=e.j+1},e.anotb=function(){var Gr=r[--t],wo=u(e.seta,Gr)!==void 0,ii=u(e.setb,Gr)!==void 0;r[t++]=wo&&!ii},e.bnota=function(){var Gr=r[--t],wo=u(e.setb,Gr)!==void 0,ii=u(e.seta,Gr)!==void 0;r[t++]=wo&&!ii},r[t++]=1/0;for(var N=0,U=e.msg.length;N=0;V-=1)e.i=V,r[t++]=u(e.msg,e.i),e.anotb(),r[--t]?y(e.nextanotb,e.i,0):y(e.nextanotb,e.i,h(u(e.nextanotb,e.i+1)+1)),r[t++]=u(e.msg,e.i),e.bnota(),r[--t]?y(e.nextbnota,e.i,0):y(e.nextbnota,e.i,h(u(e.nextbnota,e.i+1)+1));for(e.abeforeb=function(){var Gr=r[--t];r[t++]=Fs(u(e.nextanotb,Gr),u(e.nextbnota,Gr))},e.bbeforea=function(){var Gr=r[--t];r[t++]=Fs(u(e.nextbnota,Gr),u(e.nextanotb,Gr))},e.cws=a(e.barcode.length*2+3),e.i=0,e.j=0;;){if(e.sam!=-1){y(e.cws,0,~~(e.sam/10)-1),y(e.cws,1,e.sam%10-1),e.j=2,e.cset="setb",e.mode=7;break}if(e.msglen==0){e.cset="setb",e.mode=1;break}if(e.msglen>=2){r[t++]=u(e.msg,0)==e.fn1,r[t++]=1,e.numsscr();var $=r[--t],z=r[--t];r[t++]=$,r[t++]=z,t--;var Q=r[--t],G=r[--t];if(G&&Q>=2){e.cset="setc",e.mode=4,e.i=1;break}}if(u(e.msg,0)==e.fn1){e.cset="setb",e.mode=3,e.i=1;break}if(e.msglen>=2){r[t++]=0,e.numsscr();var F=r[--t],q=r[--t];r[t++]=F,r[t++]=q,t--;var W=r[--t];if(W>=2&&W%2==0){e.cset="setc",e.mode=2;break}r[t++]=0,e.numsscr();var X=r[--t],te=r[--t];r[t++]=X,r[t++]=te,t--;var se=r[--t];if(se>=3&&se%2==1){r[t++]=u(e.msg,0),e.encb(),e.cset="setc",e.mode=5,e.i=1;break}var de=u(e.setb,u(e.msg,0))!==void 0;r[t++]=de,r[t++]=1,e.numsscr();var ee=r[--t],fe=r[--t];r[t++]=ee,r[t++]=fe,t--;var he=r[--t],Ie=r[--t];if(Ie&&he>=2&&he%2==0){r[t++]=u(e.msg,0),e.encb(),e.cset="setc",e.mode=5,e.i=1;break}var ve=u(e.setb,u(e.msg,0))!==void 0;r[t++]=ve,r[t++]=1,e.numsscr();var be=r[--t],ke=r[--t];r[t++]=be,r[t++]=ke,t--;var ze=r[--t],Ge=r[--t];if(Ge&&ze>=3&&ze%2==1){r[t++]=u(e.msg,0),e.encb(),r[t++]=u(e.msg,1),e.encb(),e.cset="setc",e.mode=6,e.i=2;break}var Ve=u(e.setb,u(e.msg,0))!==void 0,at=u(e.setb,u(e.msg,1))!==void 0;r[t++]=Ve&&at,r[t++]=2,e.numsscr();var We=r[--t],ue=r[--t];r[t++]=We,r[t++]=ue,t--;var Le=r[--t],$e=r[--t];if($e&&Le>=2&&Le%2==0){r[t++]=u(e.msg,0),e.encb(),r[t++]=u(e.msg,1),e.encb(),e.cset="setc",e.mode=6,e.i=2;break}}if(r[t++]=0,e.abeforeb(),r[--t]){e.cset="seta",e.mode=0;break}e.cset="setb",e.mode=1;break}for(;e.i!=e.msglen;)for(r[t++]=e.i,e.numsscr(),e.nums=r[--t],e.nchars=r[--t];;){if(ae(e.cset,"seta")){if(e.i=4&&e.nums%2==0){r[t++]=e.swc,e.enca(),e.cset="setc";break}r[t++]=u(e.msg,e.i),e.enca(),e.i=e.i+1;break}if(ae(e.cset,"setb")){if(e.i=4&&e.nums%2==0){r[t++]=e.swc,e.encb(),e.cset="setc";break}r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1;break}if(ae(e.cset,"setc")){if(e.nums>=2){u(e.msg,e.i)==e.fn1?(r[t++]=e.fn1,e.encc(),e.i=e.i+1):(r[t++]=T(e.msg,e.i,2),e.encc(),e.i=e.i+2);break}if(e.i=2&&He%2==0){r[t++]=e.sb1,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),e.i=e.i+1;break}}if(e.i=3&&Ae%2==1){r[t++]=e.sb2,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),e.i=e.i+2;break}}if(e.i=2&&At%2==0){r[t++]=e.sb2,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),e.i=e.i+2;break}}if(e.i=3&&Ye%2==1){r[t++]=e.sb3,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),r[t++]=u(e.msg,e.i+2),e.encb(),e.i=e.i+3;break}}if(e.i=2&&Ft%2==0){r[t++]=e.sb3,e.encc(),r[t++]=u(e.msg,e.i),e.encb(),r[t++]=u(e.msg,e.i+1),e.encb(),r[t++]=u(e.msg,e.i+2),e.encb(),e.i=e.i+3;break}}if(r[t++]=e.i,e.abeforeb(),r[--t]){r[t++]=e.swa,e.encc(),e.cset="seta";break}r[t++]=e.swb,e.encc(),e.cset="setb";break}break}e.cws=T(e.cws,0,e.j)}if(!G1.__14946__){e=Object.create(e),e.metrics=a([a([2,7]),a([3,12]),a([4,17]),a([5,22]),a([6,27]),a([7,32]),a([8,37]),a([9,42]),a([10,47]),a([11,52]),a([12,57]),a([13,62]),a([14,67]),a([15,72]),a([16,77])]);for(var p in e)e.hasOwnProperty(p)&&(G1.$ctx[p]=e[p]);G1.__14946__=1,e=Object.getPrototypeOf(e)}e.urows=e.rows;for(var sr=e.metrics,lr=0,Ar=sr.length;lre.dcws&&(e.okay=!1),!e.okay);lr++);e.okay||(r[t++]="bwipp.code16kNoValidSymbol#14961",r[t++]="Maximum length exceeded or data too large for given options",ne()),r[t++]=1/0,oe(e.cws);for(var Qr=0,Er=h(e.dcws-e.cws.length);Qr8)&&(r[t++]="bwipp.code49badRows#15115",r[t++]="Code 49 must have 2 to 8 rows",ne()),e.rowheight<8&&(r[t++]="bwipp.code49badRowHeight#15119",r[t++]="Code 49 must have rowheight of at least 8",ne()),e.sepheight<1&&(r[t++]="bwipp.code49badSepHeight#15123",r[t++]="Code 49 must have sepheight of at least 1",ne()),e.append&&e.sam!=-1&&(r[t++]="bwipp.code49samAndAppend#15127",r[t++]="sam and append cannot be specified together",ne()),e.sam!=-1){r[t++]=!0;for(var n=0,o=1;n99){t--,r[t++]=!1;break}if(e.sam%10<2){t--,r[t++]=!1;break}if(~~(e.sam/10)>e.sam%10){t--,r[t++]=!1;break}}fr(r[--t])&&(r[t++]="bwipp.code49badSAM#15138",r[t++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols',ne())}if(yr(va),!va.__15146__){e=Object.create(e),e.s1=-1,e.s2=-2,e.fn1=-3,e.fn2=-4,e.fn3=-5,e.ns=-6;for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15146__=1,e=Object.getPrototypeOf(e)}var l=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC2",e.fn2],["FNC3",e.fn3]]);e.fncvals=l,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var c=r[--t];if(e[r[--t]]=c,e.msglen=e.msg.length,Oe(e.msg,function(){r[--t]>127&&(r[t++]="bwipp.code49badCharacter#15161",r[t++]="Code 49 can only support ASCII characters with values 0 to 127",ne())}),!va.__15205__){e=Object.create(e),e.charmap=a(["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%",e.s1,e.s2,e.fn1,e.fn2,e.fn3,e.ns]),e.charvals=new Map;for(var d=0;d<=48;d+=1){e.i=d;var f=u(e.charmap,e.i);if(r[t++]=f,ae(za(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}y(e.charvals,r[--t],e.i)}e.combos=a(["1 ","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","11","12","13","14","15"," ","16","17","18"," $"," %","19","10","1-","1.","1$"," +","1/"," -"," ."," /"," 0"," 1"," 2"," 3"," 4"," 5"," 6"," 7"," 8"," 9","1+","21","22","23","24","25","26"," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z","27","28","29","20","2-","2.","2A","2B","2C","2D","2E","2F","2G","2H","2I","2J","2K","2L","2M","2N","2O","2P","2Q","2R","2S","2T","2U","2V","2W","2X","2Y","2Z","2$","2/","2+","2%","2 "]);for(var m=0;m<=127;m+=1){e.i=m;var g=u(e.combos,e.i);e.c1=u(g,0),e.c2=u(g,1),e.c1==49&&y(e.charvals,e.i,a([u(e.charvals,e.s1),u(e.charvals,e.c2)])),e.c1==50&&y(e.charvals,e.i,a([u(e.charvals,e.s2),u(e.charvals,e.c2)]))}for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15205__=1,e=Object.getPrototypeOf(e)}e.encodealpha=function(){var Ae=u(e.charvals,r[--t]);r[t++]=Ae,it(za(Ae),"arraytype")&&xr(a(1));var Ue=r[--t];K(e.cws,e.j,Ue),e.j=Ue.length+e.j},e.base48=function(){var Ae=r[--t];r[t++]=0,Oe(Ae,function(){var et=r[--t],Et=r[--t];r[t++]=h(h(et-48)+Et*10)}),r[t++]=1/0;var Ue=r[--t],qe=r[--t],De=r[--t];r[t++]=Ue,r[t++]=qe;for(var lt=0,gt=h(De-1);lt=0;Re-=1){var Ce=r[--t];r[t++]=u(Ce,Re),r[t++]=Ce}t--;var Ye=a();K(e.cws,e.j,Ye),e.j=Ye.length+e.j},e.encodenumeric=function(){e.nums=r[--t];var Ae=e.nums.length,Ue=Ae%5;if(r[t++]="pre",r[t++]=Ae,r[t++]=Ue,Ue!=2){var qe=r[--t],De=r[--t];r[t++]=h(De-qe)}else{var lt=r[--t],gt=r[--t];r[t++]=h(h(gt-lt)-5)}var At=r[--t];e[r[--t]]=At;for(var St=0,yt=h(e.pre-1);St<=yt;St+=5)r[t++]=3,r[t++]=T(e.nums,St,5),e.base48();e.nums=T(e.nums,e.pre,h(e.nums.length-e.pre));var Ct=e.nums.length;r[t++]=Ct,Ct==1&&(r[t++]=u(e.nums,e.i),e.encodealpha());var Re=r[--t];r[t++]=Re,Re==3&&(r[t++]=2,r[t++]=e.nums,e.base48());var Ce=r[--t];if(r[t++]=Ce,Ce==4){r[t++]=3,r[t++]=1/0,r[t++]=49,r[t++]=48,oe(e.nums);var Ye=a();r[t++]=Ye,e.base48()}if(r[--t]==7){r[t++]=3,r[t++]=1/0,r[t++]=49,r[t++]=48,oe(T(e.nums,0,4));var et=a();r[t++]=et,e.base48(),r[t++]=2,r[t++]=T(e.nums,4,3),e.base48()}},r[t++]=1/0;for(var v=0,w=e.msglen;v=0;A-=1){e.i=A;var k=u(e.msg,e.i);k>=48&&k<=57?y(e.numericruns,e.i,h(u(e.numericruns,e.i+1)+1)):y(e.numericruns,e.i,0)}if(e.cws=a(e.msglen*2+1),!va.__15262__){e=Object.create(e),e.samval=a([12,22,13,23,33,14,24,34,44,15,25,35,45,55,16,26,36,46,56,66,17,27,37,47,57,67,77,18,28,38,48,58,68,78,88,19,29,39,49,59,69,79,89,99]);for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15262__=1,e=Object.getPrototypeOf(e)}for(;;){if(e.append){e.mode=1,e.method="alpha",e.i=0,e.j=0;break}if(e.sam!=-1){e.mode=3,r[t++]=e.cws,r[t++]=0;for(var C=0;C<=43;C+=1)r[t++]=C,u(e.samval,C)!=e.sam&&t--;var M=r[--t],S=r[--t];y(r[--t],S,h(M+1)),e.method="alpha",e.i=0,e.j=1;break}if(u(e.numericruns,0)>=5){e.mode=2,e.method="numeric",e.i=0,e.j=0;break}var I=u(e.charvals,u(e.msg,0));if(r[t++]=I,it(za(I),"arraytype")){t--,e.mode=0,e.method="alpha",e.i=0,e.j=0;break}var E=u(r[--t],0)==43?4:5;e.mode=E,y(e.cws,0,u(u(e.charvals,u(e.msg,0)),1)),e.method="alpha",e.i=1,e.j=1;break}for(;e.i!=e.msglen;)for(;;){if(ae(e.method,"alpha")){if(u(e.numericruns,e.i)>=5){r[t++]=e.ns,e.encodealpha(),e.method="numeric";break}r[t++]=u(e.msg,e.i),e.encodealpha(),e.i=e.i+1;break}if(ae(e.method,"numeric")){if(u(e.numericruns,e.i)<5){r[t++]=e.ns,e.encodealpha(),e.method="alpha";break}r[t++]=T(e.msg,e.i,u(e.numericruns,e.i)),e.encodenumeric(),e.i=h(e.i+u(e.numericruns,e.i));break}}if(e.cws=T(e.cws,0,e.j),!va.__15340__){e=Object.create(e),e.metrics=a([a([2,9]),a([3,16]),a([4,23]),a([5,30]),a([6,37]),a([7,42]),a([8,49])]);for(var s in e)e.hasOwnProperty(s)&&(va.$ctx[s]=e[s]);va.__15340__=1,e=Object.getPrototypeOf(e)}e.urows=e.rows;for(var j=e.metrics,B=0,D=j.length;Be.dcws&&(e.okay=!1),!e.okay);B++);e.okay||(r[t++]="bwipp.code49noValidSymbol#15355",r[t++]="Maximum length exceeded",ne()),r[t++]=1/0,oe(e.cws);for(var R=0,N=h(e.dcws-e.cws.length);R=7){r[t++]=e.cr7*u(e.weightz,0),r[t++]=e.weightz,e.calccheck();var fe=r[--t],he=h(r[--t]+fe)%2401;r[t++]=~~(he/49),r[t++]=he%49,xr(a(2)),K(e.lastrow,0,r[--t])}e.wr1=h(u(e.lastrow,0)*49+u(e.lastrow,1)),r[t++]=e.cr7*u(e.weighty,0),r[t++]=e.weighty,e.calccheck();var Ie=r[--t],ve=h(h(r[--t]+Ie)+e.wr1*u(e.weighty,h(e.r*4-3)))%2401;e.wr2=ve,r[t++]=~~(ve/49),r[t++]=ve%49,xr(a(2)),K(e.lastrow,2,r[--t]),r[t++]=e.cr7*u(e.weightx,0),r[t++]=e.weightx,e.calccheck();var be=r[--t],ke=h(h(h(r[--t]+be)+e.wr1*u(e.weightx,h(e.r*4-3)))+e.wr2*u(e.weightx,h(e.r*4-2)))%2401;r[t++]=~~(ke/49),r[t++]=ke%49,xr(a(2)),K(e.lastrow,4,r[--t]);var ze=T(e.ccs,e.ccs.length-8,7);r[t++]=0;for(var Ge=0,Ve=ze.length;Ge57)&&(r[t++]="bwipp.flattermarkenBadCharacter#16488",r[t++]="Flattermarken must contain only digits",ne())}),!D0.__16501__){e=Object.create(e),e.encs=a(["0018","0117","0216","0315","0414","0513","0612","0711","0810","0900"]),e.barchars="1234567890";for(var n in e)e.hasOwnProperty(n)&&(D0.$ctx[n]=e[n]);D0.__16501__=1,e=Object.getPrototypeOf(e)}e.barlen=e.barcode.length,e.sbs=pe(e.barlen*4),e.txt=a(e.barlen);for(var o=0,i=e.barlen-1;o<=i;o+=1)e.i=o,pr(e.barchars,T(e.barcode,e.i,1)),t--,e.indx=r[--t].length,t-=2,e.enc=u(e.encs,e.indx),K(e.sbs,e.i*4,e.enc),y(e.txt,e.i,a([T(e.barcode,e.i,1),e.i*9,e.textyoffset,e.textfont,e.textsize]));r[t++]=1/0,r[t++]=1/0;for(var s=e.sbs,l=0,c=s.length;l57)&&(r[t++]="bwipp.rawBadCharacter#16574",r[t++]="Raw must contain only digits 1 to 9",ne())}),r[t++]=1/0,r[t++]=1/0,Oe(e.barcode,function(){var p=r[--t];r[t++]=h(p-48)});var n=a();r[t++]=1/0;for(var o=0,i=~~((e.barcode.length+1)/2);o8)&&(r[t++]="bwipp.pdf417InvalidErrorCorrectionLevel#16824",r[t++]="Valid error correction levels are 0 to 8",ne()),e.ccc&&e.raw&&(r[t++]="bwipp.pdf417cccAndRaw#16828",r[t++]="Cannot combine ccc and raw",ne()),e.ccc&&e.compact&&(r[t++]="bwipp.pdf417cccAndCompact#16832",r[t++]="Cannot combine ccc and compact",ne()),e.rows!=0&&(e.rows<3||e.rows>90)&&(r[t++]="bwipp.pdf417invalidRows#16836",r[t++]="There must be between 3 and 90 rows",ne()),e.columns!=0&&(e.columns<1||e.columns>30)&&(r[t++]="bwipp.pdf417invalidColumns#16840",r[t++]="There must be between 1 and 30 columns",ne()),e.rowmult<=0&&(r[t++]="bwipp.pdf417badRowMult#16844",r[t++]="The row multiplier must be greater than zero",ne()),yr(ll),!ll.__16938__){e=Object.create(e),e.T=0,e.N=1,e.B=2,e.A=0,e.L=1,e.M=2,e.P=3,e.tl=-1,e.nl=-2,e.bl=-3,e.bl6=-4,e.bs=-5,e.al=-6,e.ll=-7,e.ml=-8,e.pl=-9,e.as=-10,e.ps=-11,e.charmaps=a([a(["A","a","0",";"]),a(["B","b","1","<"]),a(["C","c","2",">"]),a(["D","d","3","@"]),a(["E","e","4","["]),a(["F","f","5",92]),a(["G","g","6","]"]),a(["H","h","7","_"]),a(["I","i","8","`"]),a(["J","j","9","~"]),a(["K","k","&","!"]),a(["L","l",13,13]),a(["M","m",9,9]),a(["N","n",",",","]),a(["O","o",":",":"]),a(["P","p","#",10]),a(["Q","q","-","-"]),a(["R","r",".","."]),a(["S","s","$","$"]),a(["T","t","/","/"]),a(["U","u","+",'"']),a(["V","v","%","|"]),a(["W","w","*","*"]),a(["X","x","=",40]),a(["Y","y","^",41]),a(["Z","z",e.pl,"?"]),a([" "," "," ","{"]),a([e.ll,e.as,e.ll,"}"]),a([e.ml,e.ml,e.al,"'"]),a([e.ps,e.ps,e.ps,e.al])]),e.charvals=a([new Map,new Map,new Map,new Map]),e.alltext=new Map;for(var n=0,o=e.charmaps.length-1;n<=o;n+=1){e.i=n,e.encs=u(e.charmaps,e.i);for(var i=0;i<=3;i+=1){e.j=i;var s=u(e.encs,e.j);if(r[t++]=s,ae(za(s),"stringtype")){var l=u(r[--t],0);r[t++]=l}var c=r[--t];y(u(e.charvals,e.j),c,e.i),y(e.alltext,c,-1)}}e.e=1e4,e.latlen=a([a([0,1,1,2]),a([2,0,1,2]),a([1,1,0,1]),a([1,2,2,0])]),e.latseq=a([a([a([]),a([e.ll]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.ml,e.al]),a([]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.al]),a([e.ll]),a([]),a([e.pl])]),a([a([e.al]),a([e.al,e.ll]),a([e.al,e.ml]),a([])])]),e.shftlen=a([a([e.e,e.e,e.e,1]),a([1,e.e,e.e,1]),a([e.e,e.e,e.e,1]),a([e.e,e.e,e.e,e.e])]),r[t++]=1/0,r[t++]=e.tl,r[t++]=900,r[t++]=e.bl,r[t++]=901,r[t++]=e.bl6,r[t++]=924,r[t++]=e.nl,r[t++]=902,r[t++]=e.bs,r[t++]=913,e.latchcws=Tt();for(var d in e)e.hasOwnProperty(d)&&(ll.$ctx[d]=e[d]);ll.__16938__=1,e=Object.getPrototypeOf(e)}if(e.raw){for(e.datcws=a(e.barcode.length),e.i=0,e.j=0;!(e.i>=e.barcode.length-3||u(e.barcode,e.i)!=94);){var f=T(e.barcode,e.i+1,3);r[t++]=f,r[t++]=!1;for(var p=0,m=f.length;p57)&&(t--,r[t++]=!0)}if(r[--t]){t--;break}e.cw=ft(r[--t]),y(e.datcws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1}e.i!=e.barcode.length&&(r[t++]="bwipp.pdf417badRawFormat#16956",r[t++]="raw data must be formatted as ^NNN",ne()),e.datcws=T(e.datcws,0,e.j)}if(e.encb=function(){e.in=r[--t],e.inlen=e.in.length,e.out=a(~~(e.inlen/6)*5+e.inlen%6);for(var Ne=0,ye=~~(e.inlen/6)-1;Ne<=ye;Ne+=1){e.k=Ne,r[t++]=1/0,oe(T(e.in,e.k*6,3)),e.msbs=a(),r[t++]=1/0,oe(e.msbs);var rt=r[--t],Te=r[--t],Ae=r[--t];r[t++]=h(h(rt+Te*256)+Ae*65536);for(var Ue=0,qe=3;Ue=0;U-=1){e.i=U;var L=u(e.msg,e.i);L>=48&&L<=57&&y(e.numdigits,e.i,h(u(e.numdigits,e.i+1)+1));var _=u(e.alltext,u(e.msg,e.i))!==void 0;_&&u(e.numdigits,e.i)<13&&y(e.numtext,e.i,h(u(e.numtext,e.i+1)+1)),u(e.msg,e.i)>=0&&u(e.numtext,e.i)<5&&u(e.numdigits,e.i)<13&&y(e.numbytes,e.i,h(u(e.numbytes,e.i+1)+1)),y(e.iseci,e.i,u(e.msg,e.i)<=-1e6)}for(e.numdigits=T(e.numdigits,0,e.msglen),e.numtext=T(e.numtext,0,e.msglen),e.numbytes=T(e.numbytes,0,e.msglen),e.seq=a([]),e.seqlen=0,e.state=e.T,e.p=0;e.p!=e.msglen;)if(u(e.iseci,e.p)){if(e.eci=u(e.msg,e.p),r[t++]=1/0,oe(e.seq),r[t++]=a([e.eci]),e.seq=a(),e.p=e.p+1,r[t++]="seqlen",r[t++]=e.seqlen,e.eci<=-1810900)r[t++]=2;else{var V=e.eci<=-1000900?3:2;r[t++]=V}var $=r[--t],z=r[--t];e[r[--t]]=h(z+$)}else if(e.n=u(e.numdigits,e.p),e.n>=13||e.n==e.msglen&&e.n>=8){r[t++]=1/0,oe(e.seq),r[t++]=e.nl,r[t++]=1/0,oe(T(e.msg,e.p,e.n));var Q=a();r[t++]=Q,e.seq=a(),e.state=e.N,e.p=h(e.p+e.n),e.seqlen=h(e.seqlen+1+e.n)}else if(e.t=u(e.numtext,e.p),e.t>=5){r[t++]=1/0,oe(e.seq),e.state!=e.T&&(r[t++]=e.tl),r[t++]=1/0,oe(T(e.msg,e.p,e.t));var G=a();r[t++]=G,e.seq=a(),e.state=e.T,e.p=h(e.p+e.t),e.seqlen=h(h(e.seqlen+1)+e.t)}else if(e.b=u(e.numbytes,e.p),e.b==1&&e.state==e.T)r[t++]=1/0,oe(e.seq),r[t++]=e.bs,r[t++]=a([u(e.msg,e.p)]),e.seq=a(),e.p=h(e.p+e.b),e.seqlen=h(e.seqlen+2);else{r[t++]=1/0,oe(e.seq);var F=e.b%6!=0?e.bl:e.bl6;r[t++]=F,r[t++]=1/0,oe(T(e.msg,e.p,e.b));var q=a();r[t++]=q,e.seq=a(),e.state=e.B,e.p=h(e.p+e.b),e.seqlen=h(h(e.seqlen+1)+e.b)}for(e.enca=function(){var Ne=u(u(e.charvals,e.A),r[--t]);r[t++]=Ne},e.encl=function(){var Ne=u(u(e.charvals,e.L),r[--t]);r[t++]=Ne},e.encm=function(){var Ne=u(u(e.charvals,e.M),r[--t]);r[t++]=Ne},e.encp=function(){var Ne=u(u(e.charvals,e.P),r[--t]);r[t++]=Ne},e.textencfuncs=a(["enca","encl","encm","encp"]),e.addtotext=function(){y(e.text,e.l,r[--t]),e.l=e.l+1},e.enct=function(){e.in=r[--t],e.curlen=a([e.e,e.e,e.e,e.e]),y(e.curlen,e.submode,0),e.curseq=a([a([]),a([]),a([]),a([])]),Oe(e.in,function(){for(e.char=r[--t];;){e.imp=!1;for(var Et=a([e.A,e.L,e.M,e.P]),ut=0,Dt=Et.length;ut=e.txtseq.length||(e.char=u(e.txtseq,e.k),r[t++]=e.char,e[u(e.textencfuncs,e.submode)]()===!0));)e.addtotext(),e.k=e.k+1,(e.char==e.as||e.char==e.ps)&&(r[t++]=u(e.txtseq,e.k),e.char==e.as?e.enca():e.encp(),e.addtotext(),e.k=e.k+1),e.char==e.al&&(e.submode=e.A),e.char==e.ll&&(e.submode=e.L),e.char==e.ml&&(e.submode=e.M),e.char==e.pl&&(e.submode=e.P);if(e.text.length%2==1){if(e.submode==e.P){r[t++]="pad",r[t++]=e.al,e.encp();var Te=r[--t];e[r[--t]]=Te,e.submode=e.A}else{e.nextecitext=!1;for(var Ae=e.i+1,Ue=e.seq.length-1;Ae<=Ue;Ae+=1){if(e.ti=Ae,it(za(u(e.seq,e.ti)),"arraytype")){e.nextecitext=!1;break}if(u(u(e.seq,e.ti),0)>-1e6)break;e.nextecitext=!0}if(e.nextecitext)if(e.submode==e.A){var qe=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(qe){r[t++]="pad",r[t++]=e.ll,e.enca();var De=r[--t];e[r[--t]]=De,e.submode=e.L}else{r[t++]="pad",r[t++]=e.ml,e.enca();var lt=r[--t];e[r[--t]]=lt,e.submode=e.M}}else if(e.submode==e.M){var gt=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(gt){r[t++]="pad",r[t++]=e.ll,e.encm();var At=r[--t];e[r[--t]]=At,e.submode=e.L}else{var St=u(u(e.charvals,e.P),u(u(e.seq,e.ti),0))!==void 0;if(St){r[t++]="pad",r[t++]=e.pl,e.encm();var yt=r[--t];e[r[--t]]=yt,e.submode=e.P}else{r[t++]="pad",r[t++]=e.al,e.encm();var Ct=r[--t];e[r[--t]]=Ct,e.submode=e.A}}}else{r[t++]="pad",r[t++]=e.ml,e.encl();var Re=r[--t];e[r[--t]]=Re,e.submode=e.M}else{if(r[t++]="pad",r[t++]=e.ps,e[u(e.textencfuncs,e.submode)]()===!0)return!0;var Ce=r[--t];e[r[--t]]=Ce}}r[t++]=1/0,oe(e.text),r[t++]=e.pad,e.text=a()}e.out=a(~~(e.text.length/2));for(var Ye=0,et=e.out.length-1;Ye<=et;Ye+=1)e.k=Ye,y(e.out,e.k,h(u(e.text,e.k*2)*30+u(e.text,e.k*2+1)));r[t++]=e.out},e.encn=function(){e.in=r[--t],e.out=a([]);for(var Ne=0,ye=e.in.length-1;Ne<=ye;Ne+=44){e.k=Ne,r[t++]=1/0;var rt=e.in.length-e.k;r[t++]=1,r[t++]=e.in,r[t++]=e.k,r[t++]=rt,rt>44&&(t--,r[t++]=44);for(var Te=r[--t],Ae=r[--t],Ue=T(r[--t],Ae,Te),qe=0,De=Ue.length;qe=e.seq.length);){if(e.chars=u(e.seq,e.i),ae(za(e.chars),"arraytype"))if(u(e.chars,0)<=-1e6)r[t++]=e.chars,e.ence(),e.addtocws();else{if(r[t++]=e.chars,e[u(e.encfuncs,e.state)]()===!0)break;e.addtocws()}else r[t++]=a([u(e.latchcws,e.chars)]),e.addtocws(),e.chars==e.tl&&(e.state=e.T,e.submode=e.A),e.chars==e.nl&&(e.state=e.N),(e.chars==e.bl||e.chars==e.bl6)&&(e.state=e.B),e.chars==e.bs&&(e.i=e.i+1,r[t++]=u(e.seq,e.i),e.encb(),e.addtocws());e.i=e.i+1}e.datcws=T(e.datcws,0,e.j)}e.m=e.datcws.length,e.eclevel==-1&&(e.m<=40&&(e.eclevel=2),e.m>=41&&e.m<=160&&(e.eclevel=3),e.m>=161&&e.m<=320&&(e.eclevel=4),e.m>=321&&(e.eclevel=5)),e.maxeclevel=~~(Math.log(927-e.m)/Math.log(2))-1,e.eclevel>e.maxeclevel&&(e.eclevel=e.maxeclevel),e.k=~~Math.pow(2,e.eclevel+1),e.columns==0&&(e.columns=~~Math.round(Math.sqrt((e.m+e.k)/3))),r[t++]="c",e.columns>=1?r[t++]=e.columns:r[t++]=1;var W=r[--t];e[r[--t]]=W,e.r=~~Math.ceil((e.m+e.k+1)/e.columns),e.r90&&(r[t++]="bwipp.pdf417insufficientCapacity#17381",r[t++]="Insufficient capacity in the symbol",ne());var X=e.c,te=e.r,se=e.m,de=8,ee=~~(Math.log(h(h(X*te-1)-se))/Math.log(2))-1;if(~~(Math.log(h(h(X*te-1)-se))/Math.log(2))-1>8){var fe=de;de=ee,ee=fe}e.maxeclevel=ee,e.maxeclevel>e.eclevel&&(e.eclevel=e.maxeclevel,e.k=~~Math.pow(2,e.eclevel+1)),e.n=h(e.c*e.r-e.k),e.cws=a(h(e.c*e.r+1)),y(e.cws,0,e.n),K(e.cws,1,e.datcws),r[t++]=e.cws,r[t++]=e.m+1,r[t++]=1/0;for(var he=0,Ie=h(h(e.n-e.m)-1);he=1;Ze-=1){e.j=Ze,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var dt=r[--t],Xe=r[--t],Pt=r[--t];y(r[--t],Pt,h(Xe+dt)%929)}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var mt=r[--t],pt=r[--t];y(r[--t],pt,mt)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var Fe=e.coeffs.length-1;Fe>=0;Fe-=2){var Be=e.coeffs;y(Be,Fe,h(929-u(Be,Fe)))}for(var Je=0,It=h(e.n-1);Je<=It;Je+=1){e.t=h(u(e.cws,Je)+u(e.cws,e.n))%929;for(var Nt=0,ht=e.k-1;Nt<=ht;Nt+=1)e.j=Nt,y(e.cws,h(e.n+e.j),h(u(e.cws,h(h(e.n+e.j)+1))+h(929-e.t*u(e.coeffs,e.k-e.j-1)%929))%929)}for(var xt=e.n,tt=h(e.n+e.k);xt<=tt;xt+=1)y(e.cws,xt,h(929-u(e.cws,xt))%929);e.cws=T(e.cws,0,e.cws.length-1);var Y=u(e.options,"debugcws")!==void 0;if(Y&&(r[t++]="bwipp.debugcws#17442",r[t++]=e.cws,ne()),!ll.__17686__){e=Object.create(e),e.clusters=a([a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);for(var d in e)e.hasOwnProperty(d)&&(ll.$ctx[d]=e[d]);ll.__17686__=1,e=Object.getPrototypeOf(e)}e.cwtobits=function(){var Ne=u(e.clusters,r[--t]);e.v=u(Ne,r[--t]),r[t++]=1/0;for(var ye=0,rt=17;ye57)&&(t--,r[t++]=!1)}),fr(r[--t])&&(r[t++]="bwipp.micropdf417BadVersionBadRowOrColumn#17874",r[t++]="version must be formatted as RxC",ne())}),e.rows=ft(r[--t]),e.columns=ft(r[--t])}else t--,r[t++]="bwipp.micropdf417badVersionFormat#17880",r[t++]="version must be formatted as RxC",ne();if(yr(ls),!ls.__17974__){e=Object.create(e),e.T=0,e.N=1,e.B=2,e.A=0,e.L=1,e.M=2,e.P=3,e.tl=-1,e.nl=-2,e.bl=-3,e.bl6=-4,e.bs=-5,e.al=-6,e.ll=-7,e.ml=-8,e.pl=-9,e.as=-10,e.ps=-11,e.m05=-12,e.m06=-13,e.charmaps=a([a(["A","a","0",";"]),a(["B","b","1","<"]),a(["C","c","2",">"]),a(["D","d","3","@"]),a(["E","e","4","["]),a(["F","f","5",92]),a(["G","g","6","]"]),a(["H","h","7","_"]),a(["I","i","8","`"]),a(["J","j","9","~"]),a(["K","k","&","!"]),a(["L","l",13,13]),a(["M","m",9,9]),a(["N","n",",",","]),a(["O","o",":",":"]),a(["P","p","#",10]),a(["Q","q","-","-"]),a(["R","r",".","."]),a(["S","s","$","$"]),a(["T","t","/","/"]),a(["U","u","+",'"']),a(["V","v","%","|"]),a(["W","w","*","*"]),a(["X","x","=",40]),a(["Y","y","^",41]),a(["Z","z",e.pl,"?"]),a([" "," "," ","{"]),a([e.ll,e.as,e.ll,"}"]),a([e.ml,e.ml,e.al,"'"]),a([e.ps,e.ps,e.ps,e.al])]),e.charvals=a([new Map,new Map,new Map,new Map]),e.alltext=new Map;for(var l=0,c=e.charmaps.length-1;l<=c;l+=1){e.i=l,e.encs=u(e.charmaps,e.i);for(var d=0;d<=3;d+=1){e.j=d;var f=u(e.encs,e.j);if(r[t++]=f,ae(za(f),"stringtype")){var p=u(r[--t],0);r[t++]=p}var m=r[--t];y(u(e.charvals,e.j),m,e.i),y(e.alltext,m,-1)}}e.e=1e4,e.latlen=a([a([0,1,1,2]),a([2,0,1,2]),a([1,1,0,1]),a([1,2,2,0])]),e.latseq=a([a([a([]),a([e.ll]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.ml,e.al]),a([]),a([e.ml]),a([e.ml,e.pl])]),a([a([e.al]),a([e.ll]),a([]),a([e.pl])]),a([a([e.al]),a([e.al,e.ll]),a([e.al,e.ml]),a([])])]),e.shftlen=a([a([e.e,e.e,e.e,1]),a([1,e.e,e.e,1]),a([e.e,e.e,e.e,1]),a([e.e,e.e,e.e,e.e])]);for(var g in e)e.hasOwnProperty(g)&&(ls.$ctx[g]=e[g]);ls.__17974__=1,e=Object.getPrototypeOf(e)}if(e.raw||e.cca){for(e.datcws=a(e.barcode.length),e.i=0,e.j=0;!(e.i>=e.barcode.length-3||u(e.barcode,e.i)!=94);){var v=T(e.barcode,e.i+1,3);r[t++]=v,r[t++]=!1;for(var w=0,A=v.length;w57)&&(t--,r[t++]=!0)}if(r[--t]){t--;break}e.cw=ft(r[--t]),y(e.datcws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1}e.i!=e.barcode.length&&(r[t++]="bwipp.micropdf417badCcaRawFormat#17992",r[t++]="cca and raw data must be formatted as ^NNN",ne()),e.datcws=T(e.datcws,0,e.j)}if(e.encb=function(){e.in=r[--t],e.inlen=e.in.length,e.out=a(~~(e.inlen/6)*5+e.inlen%6);for(var De=0,lt=~~(e.inlen/6)-1;De<=lt;De+=1){e.k=De,r[t++]=1/0,oe(T(e.in,e.k*6,3)),e.msbs=a(),r[t++]=1/0,oe(e.msbs);var gt=r[--t],At=r[--t],St=r[--t];r[t++]=h(h(gt+At*256)+St*65536);for(var yt=0,Ct=3;yt=9){oe(T(e.msg,0,7));var B=r[--t],D=r[--t];r[t++]=B==29,r[t++]=D,t--;var R=r[--t],N=r[--t],U=r[--t],L=r[--t],_=r[--t],V=r[--t];if(R&&N==48&&U==30&&L==62&&_==41&&V==91){oe(T(e.msg,e.msglen-2,2));var $=r[--t],z=r[--t];$==4&&z==30&&(u(e.msg,5)==53?(r[t++]=1/0,r[t++]=e.m05,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()):u(e.msg,5)==54&&(r[t++]=1/0,r[t++]=e.m06,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()))}}e.msglen=e.msg.length,r[t++]=1/0;for(var Q=0,G=e.msglen;Q=0;de-=1){e.i=de;var ee=u(e.msg,e.i);ee>=48&&ee<=57&&y(e.numdigits,e.i,h(u(e.numdigits,e.i+1)+1));var fe=u(e.alltext,u(e.msg,e.i))!==void 0;fe&&u(e.numdigits,e.i)<13&&y(e.numtext,e.i,h(u(e.numtext,e.i+1)+1)),u(e.msg,e.i)>=0&&u(e.numtext,e.i)<5&&u(e.numdigits,e.i)<13&&y(e.numbytes,e.i,h(u(e.numbytes,e.i+1)+1)),y(e.iseci,e.i,u(e.msg,e.i)<=-1e6)}for(e.numdigits=T(e.numdigits,0,e.msglen),e.numtext=T(e.numtext,0,e.msglen),e.numbytes=T(e.numbytes,0,e.msglen),e.seq=a([]),e.seqlen=0,e.state=e.B,e.p=0;e.p!=e.msglen;){var he=u(e.msg,e.p);if(e.p==0&&(he==e.m05||he==e.m06)){r[t++]=1/0,oe(e.seq);var Ie=u(e.msg,e.p)==e.m05?e.m05:e.m06;r[t++]=Ie,e.seq=a(),e.p=e.p+1,e.seqlen=e.seqlen+1}else if(u(e.iseci,e.p)){if(e.eci=u(e.msg,e.p),r[t++]=1/0,oe(e.seq),r[t++]=a([e.eci]),e.seq=a(),e.p=e.p+1,r[t++]="seqlen",r[t++]=e.seqlen,e.eci<=-1810900)r[t++]=2;else{var ve=e.eci<=-1000900?3:2;r[t++]=ve}var be=r[--t],ke=r[--t];e[r[--t]]=h(ke+be)}else if(e.n=u(e.numdigits,e.p),e.n>=13||e.n==e.msglen&&e.n>=8){r[t++]=1/0,oe(e.seq),r[t++]=e.nl,r[t++]=1/0,oe(T(e.msg,e.p,e.n));var ze=a();r[t++]=ze,e.seq=a(),e.state=e.N,e.p=h(e.p+e.n),e.seqlen=h(e.seqlen+1+e.n)}else if(e.t=u(e.numtext,e.p),e.t>=5){r[t++]=1/0,oe(e.seq),e.state!=e.T&&(r[t++]=e.tl),r[t++]=1/0,oe(T(e.msg,e.p,e.t));var Ge=a();r[t++]=Ge,e.seq=a(),e.state=e.T,e.p=h(e.p+e.t),e.seqlen=h(h(e.seqlen+1)+e.t)}else if(e.b=u(e.numbytes,e.p),e.b==1&&e.state==e.T)r[t++]=1/0,oe(e.seq),r[t++]=e.bs,r[t++]=a([u(e.msg,e.p)]),e.seq=a(),e.p=h(e.p+e.b),e.seqlen=h(e.seqlen+2);else{r[t++]=1/0,oe(e.seq);var Ve=e.b%6!=0?e.bl:e.bl6;r[t++]=Ve,r[t++]=1/0,oe(T(e.msg,e.p,e.b));var at=a();r[t++]=at,e.seq=a(),e.state=e.B,e.p=h(e.p+e.b),e.seqlen=h(h(e.seqlen+1)+e.b)}}for(r[t++]=1/0,r[t++]=e.tl,r[t++]=900,r[t++]=e.bl,r[t++]=901,r[t++]=e.bl6,r[t++]=924,r[t++]=e.nl,r[t++]=902,r[t++]=e.bs,r[t++]=913,r[t++]=e.m05,r[t++]=916,r[t++]=e.m06,r[t++]=917,e.latchcws=Tt(),e.enca=function(){var De=u(u(e.charvals,e.A),r[--t]);r[t++]=De},e.encl=function(){var De=u(u(e.charvals,e.L),r[--t]);r[t++]=De},e.encm=function(){var De=u(u(e.charvals,e.M),r[--t]);r[t++]=De},e.encp=function(){var De=u(u(e.charvals,e.P),r[--t]);r[t++]=De},e.textencfuncs=a(["enca","encl","encm","encp"]),e.addtotext=function(){y(e.text,e.l,r[--t]),e.l=e.l+1},e.enct=function(){e.in=r[--t],e.curlen=a([e.e,e.e,e.e,e.e]),y(e.curlen,e.submode,0),e.curseq=a([a([]),a([]),a([]),a([])]),Oe(e.in,function(){for(e.char=r[--t];;){e.imp=!1;for(var sr=a([e.A,e.L,e.M,e.P]),lr=0,Ar=sr.length;lr=e.txtseq.length||(e.char=u(e.txtseq,e.k),r[t++]=e.char,e[u(e.textencfuncs,e.submode)]()===!0));)e.addtotext(),e.k=e.k+1,(e.char==e.as||e.char==e.ps)&&(r[t++]=u(e.txtseq,e.k),e.char==e.as?e.enca():e.encp(),e.addtotext(),e.k=e.k+1),e.char==e.al&&(e.submode=e.A),e.char==e.ll&&(e.submode=e.L),e.char==e.ml&&(e.submode=e.M),e.char==e.pl&&(e.submode=e.P);if(e.text.length%2==1){if(e.submode==e.P){r[t++]="pad",r[t++]=e.al,e.encp();var At=r[--t];e[r[--t]]=At,e.submode=e.A}else{e.nextecitext=!1;for(var St=e.i+1,yt=e.seq.length-1;St<=yt;St+=1){if(e.ti=St,it(za(u(e.seq,e.ti)),"arraytype")){e.nextecitext=!1;break}if(u(u(e.seq,e.ti),0)>-1e6)break;e.nextecitext=!0}if(e.nextecitext)if(e.submode==e.A){var Ct=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(Ct){r[t++]="pad",r[t++]=e.ll,e.enca();var Re=r[--t];e[r[--t]]=Re,e.submode=e.L}else{r[t++]="pad",r[t++]=e.ml,e.enca();var Ce=r[--t];e[r[--t]]=Ce,e.submode=e.M}}else if(e.submode==e.M){var Ye=u(u(e.charvals,e.L),u(u(e.seq,e.ti),0))!==void 0;if(Ye){r[t++]="pad",r[t++]=e.ll,e.encm();var et=r[--t];e[r[--t]]=et,e.submode=e.L}else{var Et=u(u(e.charvals,e.P),u(u(e.seq,e.ti),0))!==void 0;if(Et){r[t++]="pad",r[t++]=e.pl,e.encm();var ut=r[--t];e[r[--t]]=ut,e.submode=e.P}else{r[t++]="pad",r[t++]=e.al,e.encm();var Dt=r[--t];e[r[--t]]=Dt,e.submode=e.A}}}else{r[t++]="pad",r[t++]=e.ml,e.encl();var jt=r[--t];e[r[--t]]=jt,e.submode=e.M}else{if(r[t++]="pad",r[t++]=e.ps,e[u(e.textencfuncs,e.submode)]()===!0)return!0;var nr=r[--t];e[r[--t]]=nr}}r[t++]=1/0,oe(e.text),r[t++]=e.pad,e.text=a()}e.out=a(~~(e.text.length/2));for(var Ft=0,cr=e.out.length-1;Ft<=cr;Ft+=1)e.k=Ft,y(e.out,e.k,h(u(e.text,e.k*2)*30+u(e.text,e.k*2+1)));r[t++]=e.out},e.encn=function(){e.in=r[--t],e.out=a([]);for(var De=0,lt=e.in.length-1;De<=lt;De+=44){e.k=De,r[t++]=1/0;var gt=e.in.length-e.k;r[t++]=1,r[t++]=e.in,r[t++]=e.k,r[t++]=gt,gt>44&&(t--,r[t++]=44);for(var At=r[--t],St=r[--t],yt=T(r[--t],St,At),Ct=0,Re=yt.length;Ct=e.seq.length);){if(e.chars=u(e.seq,e.i),ae(za(e.chars),"arraytype"))if(u(e.chars,0)<=-1e6)r[t++]=e.chars,e.ence(),e.addtocws();else{if(r[t++]=e.chars,e[u(e.encfuncs,e.state)]()===!0)break;e.addtocws()}else r[t++]=a([u(e.latchcws,e.chars)]),e.addtocws(),e.chars==e.tl&&(e.state=e.T,e.submode=e.A),e.chars==e.nl&&(e.state=e.N),(e.chars==e.bl||e.chars==e.bl6)&&(e.state=e.B),e.chars==e.bs&&(e.i=e.i+1,r[t++]=u(e.seq,e.i),e.encb(),e.addtocws()),e.chars==e.m05&&(e.i+1e.ncws&&(e.okay=!1),e.urows!=0&&e.urows!=e.r&&(e.okay=!1),e.ucols!=0&&e.ucols!=e.c&&(e.okay=!1),e.okay)return!0}),e.okay||(r[t++]="bwipp.micropdf417noValidSymbol#18527",r[t++]="Maximum length exceeded or invalid size",ne()),e.m=e.datcws.length,e.n=h(e.c*e.r-e.k),e.cws=a(h(e.c*e.r+1)),K(e.cws,0,e.datcws),r[t++]=e.cws,r[t++]=e.m,r[t++]=1/0;for(var ue=0,Le=h(e.n-e.m);ue=1;Nt-=1){e.j=Nt,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var ht=r[--t],xt=r[--t],tt=r[--t];y(r[--t],tt,h(xt+ht)%929)}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var Y=r[--t],re=r[--t];y(r[--t],re,Y)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var ie=e.coeffs.length-1;ie>=0;ie-=2){var le=e.coeffs;y(le,ie,h(929-u(le,ie)))}for(var ge=0,Pe=h(e.n-1);ge<=Pe;ge+=1){e.t=h(u(e.cws,ge)+u(e.cws,e.n))%929;for(var me=0,Ee=h(e.k-1);me<=Ee;me+=1)e.j=me,y(e.cws,h(e.n+e.j),h(u(e.cws,h(h(e.n+e.j)+1))+h(929-e.t*u(e.coeffs,h(h(e.k-e.j)-1))%929))%929)}for(var ce=e.n,je=h(e.n+e.k);ce<=je;ce+=1)y(e.cws,ce,h(929-u(e.cws,ce))%929);e.cws=T(e.cws,0,e.cws.length-1);var He=u(e.options,"debugcws")!==void 0;if(He&&(r[t++]="bwipp.debugcws#18581",r[t++]=e.cws,ne()),!ls.__18840__){e=Object.create(e),e.clusters=a([a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]),e.raps=a([a([802,930,946,818,882,890,826,954,922,986,970,906,778,794,786,914,978,982,980,916,948,932,934,942,940,936,808,812,814,806,822,950,918,790,788,820,884,868,870,878,876,872,840,856,860,862,846,844,836,838,834,866]),a([718,590,622,558,550,566,534,530,538,570,562,546,610,626,634,762,754,758,630,628,612,614,582,578,706,738,742,740,748,620,556,552,616,744,712,716,708,710,646,654,652,668,664,696,688,656,720,592,600,604,732,734])]);for(var g in e)e.hasOwnProperty(g)&&(ls.$ctx[g]=e[g]);ls.__18840__=1,e=Object.getPrototypeOf(e)}e.cwtobits=function(){var De=u(e.clusters,r[--t]);e.v=u(De,r[--t]),r[t++]=1/0;for(var lt=0,gt=17;lt57)&&(t--,r[t++]=!1)}),fr(r[--t])&&(r[t++]="bwipp.datamatrixVersionBadRowOrColumn#18989",r[t++]="version must be formatted as RxC",ne())}),e.rows=ft(r[--t]),e.columns=ft(r[--t]),r[t++]="format",e.rows==e.columns?r[t++]="square":r[t++]="rectangle";var l=r[--t];e[r[--t]]=l}else t--,r[t++]="bwipp.datamatrixVersionFormat#18996",r[t++]="version must be formatted as RxC",ne();else if(ae(e.format,"unset")){r[t++]="format",e.dmre?r[t++]="rectangle":r[t++]="square";var c=r[--t];e[r[--t]]=c}if(it(e.format,"square")&&it(e.format,"rectangle")&&(r[t++]="bwipp.datamatrixInvalidFormat#19005",r[t++]="The format must be either square or rectangle",ne()),yr(Ta),!Ta.__19065__){e=Object.create(e);var d=a([20,36,1,2,28,1,1]);e.metrics=a([a([10,10,1,1,5,1,0]),a([12,12,1,1,7,1,0]),a([14,14,1,1,10,1,0]),a([16,16,1,1,12,1,0]),a([18,18,1,1,14,1,0]),a([20,20,1,1,18,1,0]),a([22,22,1,1,20,1,0]),a([24,24,1,1,24,1,0]),a([26,26,1,1,28,1,0]),a([32,32,2,2,36,1,0]),a([36,36,2,2,42,1,0]),a([40,40,2,2,48,1,0]),a([44,44,2,2,56,1,0]),a([48,48,2,2,68,1,0]),a([52,52,2,2,84,2,0]),a([64,64,4,4,112,2,0]),a([72,72,4,4,144,4,0]),a([80,80,4,4,192,4,0]),a([88,88,4,4,224,4,0]),a([96,96,4,4,272,4,0]),a([104,104,4,4,336,6,0]),a([120,120,6,6,408,6,0]),a([132,132,6,6,496,8,0]),a([144,144,6,6,620,10,0]),a([8,18,1,1,7,1,0]),a([8,32,1,2,11,1,0]),a([8,48,1,2,15,1,1]),a([8,64,1,4,18,1,1]),a([8,80,1,4,22,1,1]),a([8,96,1,4,28,1,1]),a([8,120,1,6,32,1,1]),a([8,144,1,6,36,1,1]),a([12,26,1,1,14,1,0]),a([12,36,1,2,18,1,0]),a([12,64,1,4,27,1,1]),a([12,88,1,4,36,1,1]),a([16,36,1,2,24,1,0]),a([16,48,1,2,28,1,0]),a([16,64,1,4,36,1,1]),d,a([20,44,1,2,34,1,1]),a([20,64,1,4,42,1,1]),a([22,48,1,2,38,1,1]),a([24,48,1,2,41,1,1]),a([24,64,1,4,46,1,1]),a([26,40,1,2,38,1,1]),a([26,48,1,2,42,1,1]),a([26,64,1,4,50,1,1])]);for(var f in e)e.hasOwnProperty(f)&&(Ta.$ctx[f]=e[f]);Ta.__19065__=1,e=Object.getPrototypeOf(e)}e.urows=e.rows,e.ucols=e.columns,e.fullcws=a([]);for(var p=e.metrics,m=0,g=p.length;m=0;M-=1)e.i=M,u(e.numremcws,e.i)!=1&&y(e.numremcws,e.i,h(u(e.numremcws,e.i+1)+1));if(!Ta.__19211__){e=Object.create(e),e.fnc1=-1,e.prog=-2,e.m05=-3,e.m06=-4,e.lC=-5,e.lB=-6,e.lX=-7,e.lT=-8,e.lE=-9,e.unl=-10,e.sapp=-11,e.usft=-12,e.sft1=-13,e.sft2=-14,e.sft3=-15,e.eci=-16,e.pad=-17,e.unlcw=254,r[t++]=1/0;for(var S=0;S<=128;S+=1)r[t++]=S,r[t++]=S+1;r[t++]=e.pad,r[t++]=129;for(var I=0;I<=99;I+=1){var E=vr(pe(2),I,10),j=Gn(pe(2),"00");K(j,2-E.length,E),r[t++]=j,r[t++]=I+130}var B=a([e.lC,e.lB,e.fnc1,e.sapp,e.prog,e.usft,e.m05,e.m06,e.lX,e.lT,e.lE,e.eci]);r[t++]=229;for(var D=0,R=B.length;D=9){oe(T(e.msg,0,7));var bo=r[--t],hi=r[--t];r[t++]=bo==29,r[t++]=hi,t--;var Oo=r[--t],Gr=r[--t],wo=r[--t],ii=r[--t],Pi=r[--t],Ho=r[--t];if(Oo&&Gr==48&&wo==30&&ii==62&&Pi==41&&Ho==91){oe(T(e.msg,e.msglen-2,2));var ji=r[--t],rs=r[--t];ji==4&&rs==30&&(u(e.msg,5)==53?(r[t++]=1/0,r[t++]=e.m05,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()):u(e.msg,5)==54&&(r[t++]=1/0,r[t++]=e.m06,oe(T(e.msg,7,e.msg.length-9)),e.msg=a()))}}e.msglen=e.msg.length,r[t++]=1/0;for(var mi=0,Vi=e.msglen;mi=0;Wo-=1){e.i=Wo,e.barchar=u(e.msg,e.i),e.barchar>=48&&e.barchar<=57&&y(e.numD,e.i,h(u(e.numD,e.i+1)+1)),e.barchar==13||e.barchar==42||e.barchar==62?y(e.nextXterm,e.i,0):y(e.nextXterm,e.i,h(u(e.nextXterm,e.i+1)+1));var ca=u(e.Xvals,e.barchar)!==void 0;ca?y(e.nextNonX,e.i,h(u(e.nextNonX,e.i+1)+1)):y(e.nextNonX,e.i,0),y(e.isECI,e.i,e.barchar<=-1e6)}r[t++]=1/0;for(var Xi=e.nextXterm,Ji=0,Ro=Xi.length;Ji1e4&&(t--,r[t++]=1e4)}e.nextXterm=a(),r[t++]=1/0;for(var ea=e.nextNonX,qo=0,ua=ea.length;qo1e4&&(t--,r[t++]=1e4)}for(e.nextNonX=a(),e.isD=function(){r[t++]=e.char>=48&&e.char<=57},e.isC=function(){var qt=u(e.CNvals,e.char)!==void 0;r[t++]=qt},e.isT=function(){var qt=u(e.TNvals,e.char)!==void 0;r[t++]=qt},e.isX=function(){var qt=u(e.Xvals,e.char)!==void 0;r[t++]=qt},e.isE=function(){var qt=u(e.Evals,e.char)!==void 0;r[t++]=qt},e.isEA=function(){r[t++]=e.char>127},e.isFN=function(){r[t++]=e.char<0},e.XtermFirst=function(){var qt=r[--t];r[t++]=Fs(u(e.nextXterm,qt),u(e.nextNonX,qt))},e.lookup=function(){e.ac=1,e.cc=2,e.tc=2,e.xc=2,e.ec=2,e.bc=2.25,e.mode==e.A&&(e.ac=0,e.cc=1,e.tc=1,e.xc=1,e.ec=1,e.bc=1.25),e.mode==e.C&&(e.cc=0),e.mode==e.T&&(e.tc=0),e.mode==e.X&&(e.xc=0),e.mode==e.E&&(e.ec=0),e.mode==e.B&&(e.bc=0);for(var qt=0,dr=1;qt=4){var Hm=a([e.cc,e.tc,e.xc,e.ec,e.bc]);r[t++]=!0;for(var zp=0,w4=Hm.length;zp=2){var Sn=pe(2);y(Sn,0,u(e.msg,e.i)),y(Sn,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,Sn),e.addtocws(),e.i=e.i+2;break}r[t++]="newmode",e.lookup();var In=r[--t];if(e[r[--t]]=In,e.newmode!=e.mode){r[t++]=u(e.Avals,u(a([-1,e.lC,e.lT,e.lX,e.lE,e.lB]),e.newmode)),e.addtocws(),e.mode=e.newmode;break}r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1;break}},e.CTXvalstocws=function(){e.in=r[--t],r[t++]=1/0;for(var qt=0,dr=e.in.length-1;qt<=dr;qt+=3){var Sn=T(e.in,qt,3);r[t++]=0;for(var In=0,xi=Sn.length;In0){r[t++]="newmode",e.lookup();var dr=r[--t];if(e[r[--t]]=dr,it(e.newmode,e.mode)){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),r[t++]=a([e.unlcw]),e.addtocws(),e.newmode!=e.A&&(r[t++]=u(e.Avals,u(a([-1,e.lC,e.lT,e.lX,e.lE,e.lB]),e.newmode)),e.addtocws()),e.mode=e.newmode,e.done=!0;break}}if(e.msglen-e.i<=3){e.remcws=u(e.numremcws,e.j+~~(e.p/3)*2),r[t++]=1/0;for(var Sn=T(e.msg,e.i,e.msglen-e.i),In=0,xi=Sn.length;In=2){var as=pe(2);y(as,0,u(e.msg,e.i)),y(as,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,as),e.addtocws(),e.i=e.i+2}else r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1}},e.Evalstocws=function(){e.in=r[--t],e.inlen=e.in.length,e.outlen=~~Math.ceil(e.in.length/4*3),r[t++]=1/0,oe(e.in),r[t++]=0,r[t++]=0,r[t++]=0,e.in=a(),r[t++]=1/0;for(var qt=0,dr=e.inlen-1;qt<=dr;qt+=4){var Sn=T(e.in,qt,4);r[t++]=0;for(var In=0,xi=Sn.length;In>>6;r[t++]=Vo>>>16&255,r[t++]=Vo>>>8&255,r[t++]=Vo&255}xr(a(mo()));var Pa=r[--t],ja=r[--t];r[t++]=Pa,r[t++]=ja,t--;var As=T(r[--t],0,e.outlen);r[t++]=As},e.encE=function(){for(e.p=0,e.edifactvals=a(2100);e.i!=e.msglen;){var qt=u(e.Evals,u(e.msg,e.i))!==void 0;if(!qt)break;if(e.p%4==0){if(e.msglen-e.i<=2){e.remcws=u(e.numremcws,e.j+~~(e.p/4)*3),r[t++]=1/0;for(var dr=T(e.msg,e.i,e.msglen-e.i),Sn=0,In=dr.length;Sn=3){var yi=u(e.Evals,e.unl);K(e.edifactvals,e.p,yi),e.p=yi.length+e.p}if(r[t++]=T(e.edifactvals,0,e.p),e.Evalstocws(),e.addtocws(),e.mode=e.A,e.i!=e.msglen&&fr(u(e.isECI,e.i)))if(u(e.numD,e.i)>=2){var Vo=pe(2);y(Vo,0,u(e.msg,e.i)),y(Vo,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,Vo),e.addtocws(),e.i=e.i+2}else r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1}},e.encB=function(){for(e.p=0,e.bvals=a(1558);!(e.i==e.msglen||(e.lookup(),r[--t]!=e.mode));)y(e.bvals,e.p,u(e.msg,e.i)),e.p=e.p+1,e.i=e.i+1;e.remcws=h(u(e.numremcws,e.j+e.p)-1),r[t++]=1/0,e.remcws==0&&e.i==e.msglen?r[t++]=0:e.p<250?r[t++]=e.p:(r[t++]=~~(e.p/250)+249,r[t++]=e.p%250),oe(T(e.bvals,0,e.p)),e.bvals=a();for(var qt=0,dr=e.bvals.length-1;qt<=dr;qt+=1){e.p=qt;var Sn=h((e.j+e.p+1)*149%255+1+u(e.bvals,e.p));if(r[t++]=Sn,Sn>=256){var In=r[--t];r[t++]=h(In-256)}y(e.bvals,e.p,r[--t])}r[t++]=e.bvals,e.addtocws(),e.mode=e.A},e.cws=a(1558),e.mode=e.A,e.i=0,e.j=0;!(e.i>=e.msglen||e[u(a(["encA","encCTX","encCTX","encCTX","encE","encB"]),e.mode)]()===!0););e.cws=T(e.cws,0,e.j)}if(e.datlen=e.cws.length,e.remcws=h(u(e.numremcws,e.j-1)-1),e.remcws>0){r[t++]=1/0,oe(e.cws);for(var Ir=0,xo=e.remcws;Ir254){var Li=r[--t];r[t++]=h(Li-254)}y(e.cws,e.i,r[--t])}}var lo=u(e.options,"debugcws")!==void 0;lo&&(r[t++]="bwipp.debugcws#19632",r[t++]=e.cws,ne());for(var Ua=e.metrics,Qi=0,ta=Ua.length;Qi=256){var Xr=r[--t];r[t++]=Xr^301}}e.rsalog=a(),e.rslog=a(256);for(var fn=1;fn<=255;fn+=1)y(e.rslog,u(e.rsalog,fn),fn);for(var f in e)e.hasOwnProperty(f)&&(Ta.$ctx[f]=e[f]);Ta.__19687__=1,e=Object.getPrototypeOf(e)}e.rsprod=function(){var qt=r[--t],dr=r[--t];if(r[t++]=dr,r[t++]=qt,qt!=0&&dr!=0){var Sn=u(e.rslog,r[--t]),In=u(e.rsalog,h(Sn+u(e.rslog,r[--t]))%255);r[t++]=In}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var Vr=0,Yn=~~(e.rscw/e.rsbl);Vr=1;pn-=1){e.j=pn,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var An=r[--t],zn=r[--t],Fn=r[--t];y(r[--t],Fn,ti(zn,An))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var tn=r[--t],Cn=r[--t];y(r[--t],Cn,tn)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var rn=0,hn=e.cwbs.length-1;rn<=hn;rn+=1){e.i=rn,e.cwb=u(e.cwbs,e.i),e.ecb=u(e.ecbs,e.i);for(var Qn=0,co=e.cwb.length-1;Qn<=co;Qn+=1){e.t=ti(u(e.cwb,Qn),u(e.ecb,0));for(var Io=e.ecb.length-1;Io>=0;Io-=1){e.j=Io,e.p=e.ecb.length-e.j-1,r[t++]=e.ecb,r[t++]=e.p,r[t++]=e.t,r[t++]=u(e.coeffs,e.j),e.rsprod();var vi=r[--t],_o=r[--t];y(r[--t],_o,vi),e.j>0&&y(e.ecb,e.p,ti(u(e.ecb,e.p+1),u(e.ecb,e.p)))}}}if(e.ncws==1558){r[t++]=1/0;for(var bi=T(e.ecbs,8,2),Yo=0,wi=bi.length;Yo=0;yi-=1){var Vo=r[--t];r[t++]=h(u(Vo,yi)-48),r[t++]=Vo}t--;var Pa=r[--t],ja=r[--t],As=r[--t],Ls=r[--t],as=r[--t],ma=r[--t],ol=r[--t],fo=r[--t],Al=r[--t],N1=r[--t],Yl=r[--t];r[t++]=fo,r[t++]=ol,r[t++]=ma,r[t++]=as,r[t++]=Ls,r[t++]=As,r[t++]=ja,r[t++]=Pa,r[t++]=Yl,r[t++]=N1,Oe(Al,function(){if(r[--t]()===!0)return!0;var Kl=r[--t],il=r[--t];if(r[t++]=il,r[t++]=Kl,il<0){var Qc=r[--t],pc=r[--t];r[t++]=h(pc+e.mrows),r[t++]=h(Qc+h(4-h(e.mrows+4)%8))}var Cl=r[--t];if(r[t++]=Cl,Cl<0){var Xl=r[--t],hc=r[--t];r[t++]=h(hc+h(4-h(e.mcols+4)%8)),r[t++]=h(Xl+e.mcols)}var kl=r[--t],Z=r[--t];if(r[t++]=Z,r[t++]=kl,Z>=e.mrows){var O=r[--t],H=r[--t];r[t++]=h(H-e.mrows),r[t++]=O}var J=r[--t],xe=r[--t],ct=r[--t],Gt=r[--t];y(e.mmat,h(J+xe*e.mcols),r[--t]),r[t++]=Gt,r[t++]=ct})};var Wn=a([function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=h(dr-2),r[t++]=h(qt-2)},function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=h(dr-2),r[t++]=h(qt-1)},function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=h(dr-1),r[t++]=h(qt-2)},function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=h(dr-1),r[t++]=h(qt-1)},function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=h(dr-1),r[t++]=qt},function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=dr,r[t++]=h(qt-2)},function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=dr,r[t++]=h(qt-1)},function(){var qt=r[--t],dr=r[--t];r[t++]=dr,r[t++]=qt,r[t++]=dr,r[t++]=qt}]);e.dmn=Wn;var Uo=a([function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=1},function(){r[t++]=h(e.mrows-1),r[t++]=2},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-1)},function(){r[t++]=2,r[t++]=h(e.mcols-1)},function(){r[t++]=3,r[t++]=h(e.mcols-1)}]);e.dmc1=Uo;var Bi=a([function(){r[t++]=h(e.mrows-3),r[t++]=0},function(){r[t++]=h(e.mrows-2),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=0,r[t++]=h(e.mcols-4)},function(){r[t++]=0,r[t++]=h(e.mcols-3)},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-1)}]);e.dmc2=Bi;var fa=a([function(){r[t++]=h(e.mrows-3),r[t++]=0},function(){r[t++]=h(e.mrows-2),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-1)},function(){r[t++]=2,r[t++]=h(e.mcols-1)},function(){r[t++]=3,r[t++]=h(e.mcols-1)}]);e.dmc3=fa;var si=a([function(){r[t++]=h(e.mrows-1),r[t++]=0},function(){r[t++]=h(e.mrows-1),r[t++]=h(e.mcols-1)},function(){r[t++]=0,r[t++]=h(e.mcols-3)},function(){r[t++]=0,r[t++]=h(e.mcols-2)},function(){r[t++]=0,r[t++]=h(e.mcols-1)},function(){r[t++]=1,r[t++]=h(e.mcols-3)},function(){r[t++]=1,r[t++]=h(e.mcols-2)},function(){r[t++]=1,r[t++]=h(e.mcols-1)}]);e.dmc4=si,r[t++]=1/0;for(var vs=0,is=e.mrows*e.mcols;vs=0;Va-=1)r[t++]=u(e.cws,Va);for(r[t++]=4,r[t++]=0;;){var Qa=r[--t],Ea=r[--t];r[t++]=Ea,r[t++]=Qa,Qa==0&&Ea==e.mrows&&(r[t++]=e.dmc1,e.module());var Ma=r[--t],bs=r[--t];r[t++]=bs,r[t++]=Ma,Ma==0&&bs==h(e.mrows-2)&&e.mcols%4!=0&&(r[t++]=e.dmc2,e.module());var Ns=r[--t],ws=r[--t];r[t++]=ws,r[t++]=Ns,Ns==0&&ws==h(e.mrows-2)&&e.mcols%8==4&&(r[t++]=e.dmc3,e.module());var Wa=r[--t],qa=r[--t];for(r[t++]=qa,r[t++]=Wa,Wa==2&&qa==h(e.mrows+4)&&e.mcols%8==0&&(r[t++]=e.dmc4,e.module());;){var _a=r[--t],rl=r[--t];if(r[t++]=rl,r[t++]=_a,_a>=0&&rl=0))break}var T1=r[--t],dc=r[--t];for(r[t++]=h(dc+1),r[t++]=h(T1+3);;){var _l=r[--t],F1=r[--t];if(r[t++]=F1,r[t++]=_l,_l=0){var yl=r[--t],Mt=r[--t];r[t++]=Mt,r[t++]=yl,u(e.mmat,h(yl+Mt*e.mcols))==-1&&(r[t++]=e.dmn,e.module())}var Wt=r[--t],wt=r[--t];if(r[t++]=h(wt+2),r[t++]=h(Wt-2),!(h(Wt-2)>=0&&h(wt+2)o)&&(r[t++]="bwipp.qrcodeBadMask#20157",r[t++]="An invalid mask was supplied",ne())}e.fn1=-1;var i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var s=r[--t];if(e[r[--t]]=s,e.msglen=e.msg.length,e.fnc1first=!1,e.msglen>0&&u(e.msg,0)==e.fn1){e.fnc1first=!0,r[t++]=1/0;for(var l=T(e.msg,1,e.msglen-1),c=0,d=l.length;c>>8)*192+(wt&255)),r[t++]=13,e.tobin();var Ut=r[--t];K(e.out,e.m,Ut),e.m=Ut.length+e.m,e.k=e.k+2}r[t++]=e.out},e.encE=function(){var Mt=h(-u(r[--t],0)-1e6);if(r[t++]=Mt,Mt<=127)r[t++]=8,e.tobin();else{var Wt=r[--t];if(r[t++]=Wt,Wt<=16383){var wt=r[--t];r[t++]=h(wt+32768),r[t++]=16,e.tobin()}else{var Ut=r[--t];r[t++]=h(Ut+12582912),r[t++]=24,e.tobin()}}},e.encfuncs=a(["encN","encA","encB","encK","encE"]),e.addtobits=function(){var Mt=r[--t];K(e.bits,e.j,Mt),e.j=Mt.length+e.j},r[t++]=1/0;for(var q=0,W=e.msglen;q=0;ue-=1){e.i=ue,e.barchar=u(e.msg,e.i);var Le=u(e.Kexcl,e.barchar)!==void 0;if(Le&&!e.suppresskanjimode){e.i+1=33088&&$e<=40956||$e>=57408&&$e<=60351)&&bt>=64&&bt<=252&&bt!=127?(y(e.nextKs,e.i,0),y(e.numKs,e.i,h(u(e.numKs,e.i+2)+1))):y(e.nextKs,e.i,h(u(e.nextKs,e.i+1)+1))}else y(e.nextKs,e.i,h(u(e.nextKs,e.i+1)+1));var ot=u(e.Nexcl,e.barchar)!==void 0;ot?(y(e.nextNs,e.i,0),y(e.numNs,e.i,h(u(e.numNs,e.i+1)+1)),y(e.numAorNs,e.i,h(u(e.numAorNs,e.i+1)+1))):y(e.nextNs,e.i,h(u(e.nextNs,e.i+1)+1));var st=u(e.Aexcl,e.barchar)!==void 0;st?(y(e.nextAs,e.i,0),y(e.numAs,e.i,h(u(e.numAs,e.i+1)+1)),y(e.numAorNs,e.i,h(u(e.numAorNs,e.i+1)+1))):y(e.nextAs,e.i,h(u(e.nextAs,e.i+1)+1)),y(e.isECI,e.i,e.barchar<=-1e6)}for(var Ze=0,dt=e.msglen-1;Ze<=dt;Ze+=1)e.i=Ze,u(e.numKs,e.i)>0&&(y(e.numKs,e.i+1,0),y(e.nextKs,e.i+1,h(u(e.nextKs,e.i+1)+1)));for(var Xe=e.msglen-1;Xe>=0;Xe-=1)e.i=Xe,h(u(e.numNs,e.i)+h(u(e.numAs,e.i)+u(e.numKs,e.i)))==0&&fr(u(e.isECI,e.i))?(y(e.nextBs,e.i,0),y(e.numBs,e.i,h(u(e.numBs,e.i+1)+1))):y(e.nextBs,e.i,h(u(e.nextBs,e.i+1)+1));if(e.KbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&u(e.nextBs,h(e.numK*2+e.i))==0},e.KbeforeA=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&u(e.nextAs,h(e.numK*2+e.i))==0},e.KbeforeN=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&u(e.nextNs,h(e.numK*2+e.i))==0},e.KbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numK,Mt)&&h(e.numK*2+e.i)==e.msglen},e.AbeforeK=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&u(e.nextKs,h(e.numA+e.i))==0},e.AbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&u(e.nextBs,h(e.numA+e.i))==0},e.AbeforeN=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&u(e.nextNs,h(e.numA+e.i))==0},e.AbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numA,Mt)&&h(e.numA+e.i)==e.msglen},e.NbeforeK=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&u(e.nextKs,h(e.numN+e.i))==0},e.NbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&u(e.nextBs,h(e.numN+e.i))==0},e.NbeforeA=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&u(e.nextAs,h(e.numN+e.i))==0},e.NbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numN,Mt)&&h(e.numN+e.i)==e.msglen},e.AorNbeforeB=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numAorN,Mt)&&u(e.nextBs,h(e.numAorN+e.i))==0},e.AorNbeforeE=function(){var Mt=u(r[--t],e.ver);r[t++]=Hs(e.numAorN,Mt)&&h(e.numAorN+e.i)==e.msglen},e.nextNslt=function(){if(u(e.nextNs,e.i)>=e.msglen)t--,r[t++]=!0;else{var Mt=u(r[--t],e.ver);r[t++]=Fs(u(e.numNs,h(u(e.nextNs,e.i)+e.i)),Mt)}},!$n.__20507__){e=Object.create(e),r[t++]=1/0,r[t++]="full",r[t++]=1/0;for(var Pt=0;Pt<=9;Pt+=1)r[t++]=vr(pe(2),Pt,10),r[t++]=e.v1to9;for(var mt=10;mt<=26;mt+=1)r[t++]=vr(pe(2),mt,10),r[t++]=e.v10to26;for(var pt=27;pt<=40;pt+=1)r[t++]=vr(pe(2),pt,10),r[t++]=e.v27to40;var Fe=Tt(),Be=new Map([["M1",e.vM1],["M2",e.vM2],["M3",e.vM3],["M4",e.vM4]]),Je=new Map([["R7x43",e.vR7x43],["R7x59",e.vR7x59],["R7x77",e.vR7x77],["R7x99",e.vR7x99],["R7x139",e.vR7x139],["R9x43",e.vR9x43],["R9x59",e.vR9x59],["R9x77",e.vR9x77],["R9x99",e.vR9x99],["R9x139",e.vR9x139],["R11x27",e.vR11x27],["R11x43",e.vR11x43],["R11x59",e.vR11x59],["R11x77",e.vR11x77],["R11x99",e.vR11x99],["R11x139",e.vR11x139],["R13x27",e.vR13x27],["R13x43",e.vR13x43],["R13x59",e.vR13x59],["R13x77",e.vR13x77],["R13x99",e.vR13x99],["R13x139",e.vR13x139],["R15x43",e.vR15x43],["R15x59",e.vR15x59],["R15x77",e.vR15x77],["R15x99",e.vR15x99],["R15x139",e.vR15x139],["R17x43",e.vR17x43],["R17x59",e.vR17x59],["R17x77",e.vR17x77],["R17x99",e.vR17x99],["R17x139",e.vR17x139]]);r[t++]=Fe,r[t++]="micro",r[t++]=Be,r[t++]="rmqr",r[t++]=Je,e.versetmap=Tt(),e.versetfull=a([e.v1to9,e.v10to26,e.v27to40]),e.versetmicro=a([e.vM1,e.vM2,e.vM3,e.vM4]);for(var F in e)e.hasOwnProperty(F)&&($n.$ctx[F]=e[F]);$n.__20507__=1,e=Object.getPrototypeOf(e)}if(it(e.version,"unset")){var It=u(e.versetmap,e.format),Nt=e.version,ht=u(It,Nt)!==void 0;r[t++]=It,r[t++]=Nt,ht||(t-=2,ae(e.format,"full")?(r[t++]="bwipp.qrcodeInvalidFullVersion#20513",r[t++]="Valid versions for QR Code symbols are 1 to 40",ne()):ae(e.format,"micro")?(r[t++]="bwipp.qrcodeInvalidMicroVersion#20516",r[t++]="Valid versions for Micro QR Code symbols are M1 to M4",ne()):(r[t++]="bwipp.qrcodeInvalidRMQRversion#20518",r[t++]="Invalid version for an RMQR symbol",ne()));var xt=r[--t],tt=u(r[--t],xt);r[t++]=tt,r[t++]=1/0;var Y=r[--t],re=r[--t];r[t++]=Y,r[t++]=re,e.verset=a()}else ae(e.format,"full")&&(e.verset=e.versetfull),ae(e.format,"micro")&&(e.verset=e.versetmicro);r[t++]=1/0;for(var ie=0,le=39;ie=e.msglen);){if(e.numK=u(e.numKs,e.i),e.numB=u(e.numBs,e.i),e.numA=u(e.numAs,e.i),e.numN=u(e.numNs,e.i),e.numAorN=u(e.numAorNs,e.i),e.eci=u(e.isECI,e.i),ae(e.ver,e.vM1)&&e.numA>=1){e.seq=-1;break}if(ae(e.ver,e.vM1)&&e.numB>=1){e.seq=-1;break}if(ae(e.ver,e.vM1)&&e.numK>=1){e.seq=-1;break}if(ae(e.ver,e.vM1)&&e.eci){e.seq=-1;break}if(ae(e.ver,e.vM2)&&e.numB>=1){e.seq=-1;break}if(ae(e.ver,e.vM2)&&e.numK>=1){e.seq=-1;break}if(ae(e.ver,e.vM2)&&e.eci){e.seq=-1;break}if(ae(e.ver,e.vM3)&&e.eci){e.seq=-1;break}if(ae(e.ver,e.vM4)&&e.eci){e.seq=-1;break}for(;;){if(e.eci){r[t++]=e.E;break}if(e.mode==-1){if(r[t++]=e.mode0forceKB,e.KbeforeA(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.mode0forceKB,e.KbeforeN(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeE,e.KbeforeB(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.mode0forceKB,e.KbeforeE(),r[--t]){r[t++]=e.K;break}if(e.numK>=1){r[t++]=e.B;break}if(r[t++]=e.mode0NbeforeB,e.NbeforeB(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.mode0forceKB,e.NbeforeB(),r[--t]){r[t++]=e.B;break}if(r[t++]=e.modeANbeforeE,e.NbeforeA(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.mode0forceN,e.NbeforeE(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBAbeforeE,e.AbeforeK(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeE,e.AorNbeforeB(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.mode0forceA,e.AorNbeforeE(),r[--t]){r[t++]=e.A;break}r[t++]=e.B;break}if(e.mode==e.B){if(r[t++]=e.modeBKbeforeB,e.KbeforeB(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeA,e.KbeforeA(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeN,e.KbeforeN(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBKbeforeE,e.KbeforeE(),r[--t]){r[t++]=e.K;break}if(r[t++]=e.modeBAbeforeK,e.AbeforeK(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeB,e.AbeforeB(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeN,e.AbeforeN(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBAbeforeE,e.AbeforeE(),r[--t]){r[t++]=e.A;break}if(r[t++]=e.modeBNbeforeK,e.NbeforeK(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBNbeforeB,e.NbeforeB(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBNbeforeA,e.NbeforeA(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeBNbeforeE,e.NbeforeE(),r[--t]){r[t++]=e.N;break}r[t++]=e.modeBAbeforeE,e.AorNbeforeE();var Ee=r[--t];if(Ee&&pp(e.numAorN,u(e.modeBAbeforeN,e.ver))&&(r[t++]=e.modeBNbeforeA,e.nextNslt(),r[--t])){r[t++]=e.A;break}r[t++]=e.B;break}if(e.mode==e.A){if(e.numK>=1){r[t++]=e.K;break}if(e.numB>=1){r[t++]=e.B;break}if(r[t++]=e.modeANbeforeA,e.NbeforeA(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeANbeforeB,e.NbeforeB(),r[--t]){r[t++]=e.N;break}if(r[t++]=e.modeANbeforeE,e.NbeforeE(),r[--t]){r[t++]=e.N;break}if(e.numA>=1||e.numN>=1){r[t++]=e.A;break}r[t++]=e.B;break}if(e.mode==e.N){if(e.numK>=1){r[t++]=e.K;break}if(e.numB>=1){r[t++]=e.B;break}if(e.numA>=1){r[t++]=e.A;break}if(e.numN>=1){r[t++]=e.N;break}r[t++]=e.B;break}if(e.mode==e.K){if(e.numB>=1){r[t++]=e.B;break}if(e.numA>=1){r[t++]=e.A;break}if(e.numN>=1){r[t++]=e.N;break}if(e.numK>=1){r[t++]=e.K;break}r[t++]=e.B;break}}var ce=r[--t];r[t++]=ce,ce==e.K&&e.fnc1first&&(t--,r[t++]=e.B);var je=r[--t];if(r[t++]=je,je==e.mode){t--;var He=e.mode==e.K?2:1;e.dat=T(e.msg,e.i,He),r[t++]=1/0,oe(e.seq),r[t++]=1/0;var Ne=r[--t],ye=r[--t];r[t++]=Ne,oe(ye),oe(e.dat);var rt=a();r[t++]=rt,e.seq=a()}else e.mode=r[--t],e.mode==e.K&&(r[t++]=e.K,r[t++]=T(e.msg,e.i,e.numK*2)),e.mode==e.B&&(r[t++]=e.B,r[t++]=T(e.msg,e.i,e.numB)),e.mode==e.A&&(r[t++]=e.A,r[t++]=T(e.msg,e.i,e.numA)),e.mode==e.N&&(r[t++]=e.N,r[t++]=T(e.msg,e.i,e.numN)),e.mode==e.E&&(e.mode=-1,r[t++]=e.E,r[t++]=T(e.msg,e.i,1)),e.dat=r[--t],e.sw=r[--t],r[t++]=1/0,oe(e.seq),r[t++]=e.sw,r[t++]=e.dat,e.seq=a();e.i=e.i+e.dat.length}for(;e.seq!=-1;){e.bits=pe(23648),e.j=0,e.fnc1first&&(Fs(e.ver,e.vR7x43)?r[t++]="0101":r[t++]="101",e.addtobits()),e.abort=!1;for(var Te=0,Ae=e.seq.length-1;Te<=Ae;Te+=2){if(e.i=Te,e.mode=u(e.seq,e.i),r[t++]=u(u(e.mids,e.ver),e.mode),e.addtobits(),e.chars=u(e.seq,e.i+1),r[t++]="charslen",r[t++]=e.chars.length,e.mode==e.K){var Ue=r[--t];r[t++]=~~(Ue/2)}var qe=r[--t];if(e[r[--t]]=qe,e.mode!=e.E){if(e.cclen=u(u(e.cclens,e.ver),e.mode),e.charslen>=~~Math.pow(2,e.cclen)){e.abort=!0;break}r[t++]=e.charslen,r[t++]=e.cclen,e.tobin(),e.addtobits()}if(r[t++]=e.chars,e[u(e.encfuncs,e.mode)]()===!0)break;e.addtobits()}if(e.abort)break;e.bits=T(e.bits,0,e.j),y(e.msgbits,e.ver,e.bits);break}}if(!$n.__20779__){e=Object.create(e),e.metrics=a([a(["micro","M1",e.vM1,11,11,98,99,36,a([2,99,99,99]),a([1,0,-1,-1,-1,-1,-1,-1])]),a(["micro","M2",e.vM2,13,13,98,99,80,a([5,6,99,99]),a([1,0,1,0,-1,-1,-1,-1])]),a(["micro","M3",e.vM3,15,15,98,99,132,a([6,8,99,99]),a([1,0,1,0,-1,-1,-1,-1])]),a(["micro","M4",e.vM4,17,17,98,99,192,a([8,10,14,99]),a([1,0,1,0,1,0,-1,-1])]),a(["full","1",e.v1to9,21,21,98,99,208,a([7,10,13,17]),a([1,0,1,0,1,0,1,0])]),a(["full","2",e.v1to9,25,25,18,99,359,a([10,16,22,28]),a([1,0,1,0,1,0,1,0])]),a(["full","3",e.v1to9,29,29,22,99,567,a([15,26,36,44]),a([1,0,1,0,2,0,2,0])]),a(["full","4",e.v1to9,33,33,26,99,807,a([20,36,52,64]),a([1,0,2,0,2,0,4,0])]),a(["full","5",e.v1to9,37,37,30,99,1079,a([26,48,72,88]),a([1,0,2,0,2,2,2,2])]),a(["full","6",e.v1to9,41,41,34,99,1383,a([36,64,96,112]),a([2,0,4,0,4,0,4,0])]),a(["full","7",e.v1to9,45,45,22,38,1568,a([40,72,108,130]),a([2,0,4,0,2,4,4,1])]),a(["full","8",e.v1to9,49,49,24,42,1936,a([48,88,132,156]),a([2,0,2,2,4,2,4,2])]),a(["full","9",e.v1to9,53,53,26,46,2336,a([60,110,160,192]),a([2,0,3,2,4,4,4,4])]),a(["full","10",e.v10to26,57,57,28,50,2768,a([72,130,192,224]),a([2,2,4,1,6,2,6,2])]),a(["full","11",e.v10to26,61,61,30,54,3232,a([80,150,224,264]),a([4,0,1,4,4,4,3,8])]),a(["full","12",e.v10to26,65,65,32,58,3728,a([96,176,260,308]),a([2,2,6,2,4,6,7,4])]),a(["full","13",e.v10to26,69,69,34,62,4256,a([104,198,288,352]),a([4,0,8,1,8,4,12,4])]),a(["full","14",e.v10to26,73,73,26,46,4651,a([120,216,320,384]),a([3,1,4,5,11,5,11,5])]),a(["full","15",e.v10to26,77,77,26,48,5243,a([132,240,360,432]),a([5,1,5,5,5,7,11,7])]),a(["full","16",e.v10to26,81,81,26,50,5867,a([144,280,408,480]),a([5,1,7,3,15,2,3,13])]),a(["full","17",e.v10to26,85,85,30,54,6523,a([168,308,448,532]),a([1,5,10,1,1,15,2,17])]),a(["full","18",e.v10to26,89,89,30,56,7211,a([180,338,504,588]),a([5,1,9,4,17,1,2,19])]),a(["full","19",e.v10to26,93,93,30,58,7931,a([196,364,546,650]),a([3,4,3,11,17,4,9,16])]),a(["full","20",e.v10to26,97,97,34,62,8683,a([224,416,600,700]),a([3,5,3,13,15,5,15,10])]),a(["full","21",e.v10to26,101,101,28,50,9252,a([224,442,644,750]),a([4,4,17,0,17,6,19,6])]),a(["full","22",e.v10to26,105,105,26,50,10068,a([252,476,690,816]),a([2,7,17,0,7,16,34,0])]),a(["full","23",e.v10to26,109,109,30,54,10916,a([270,504,750,900]),a([4,5,4,14,11,14,16,14])]),a(["full","24",e.v10to26,113,113,28,54,11796,a([300,560,810,960]),a([6,4,6,14,11,16,30,2])]),a(["full","25",e.v10to26,117,117,32,58,12708,a([312,588,870,1050]),a([8,4,8,13,7,22,22,13])]),a(["full","26",e.v10to26,121,121,30,58,13652,a([336,644,952,1110]),a([10,2,19,4,28,6,33,4])]),a(["full","27",e.v27to40,125,125,34,62,14628,a([360,700,1020,1200]),a([8,4,22,3,8,26,12,28])]),a(["full","28",e.v27to40,129,129,26,50,15371,a([390,728,1050,1260]),a([3,10,3,23,4,31,11,31])]),a(["full","29",e.v27to40,133,133,30,54,16411,a([420,784,1140,1350]),a([7,7,21,7,1,37,19,26])]),a(["full","30",e.v27to40,137,137,26,52,17483,a([450,812,1200,1440]),a([5,10,19,10,15,25,23,25])]),a(["full","31",e.v27to40,141,141,30,56,18587,a([480,868,1290,1530]),a([13,3,2,29,42,1,23,28])]),a(["full","32",e.v27to40,145,145,34,60,19723,a([510,924,1350,1620]),a([17,0,10,23,10,35,19,35])]),a(["full","33",e.v27to40,149,149,30,58,20891,a([540,980,1440,1710]),a([17,1,14,21,29,19,11,46])]),a(["full","34",e.v27to40,153,153,34,62,22091,a([570,1036,1530,1800]),a([13,6,14,23,44,7,59,1])]),a(["full","35",e.v27to40,157,157,30,54,23008,a([570,1064,1590,1890]),a([12,7,12,26,39,14,22,41])]),a(["full","36",e.v27to40,161,161,24,50,24272,a([600,1120,1680,1980]),a([6,14,6,34,46,10,2,64])]),a(["full","37",e.v27to40,165,165,28,54,25568,a([630,1204,1770,2100]),a([17,4,29,14,49,10,24,46])]),a(["full","38",e.v27to40,169,169,32,58,26896,a([660,1260,1860,2220]),a([4,18,13,32,48,14,42,32])]),a(["full","39",e.v27to40,173,173,26,54,28256,a([720,1316,1950,2310]),a([20,4,40,7,43,22,10,67])]),a(["full","40",e.v27to40,177,177,30,58,29648,a([750,1372,2040,2430]),a([19,6,18,31,34,34,20,61])]),a(["rmqr","R7x43",e.vR7x43,7,43,22,99,104,a([99,7,99,10]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x59",e.vR7x59,7,59,20,40,171,a([99,9,99,14]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x77",e.vR7x77,7,77,26,52,261,a([99,12,99,22]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x99",e.vR7x99,7,99,24,50,358,a([99,16,99,30]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R7x139",e.vR7x139,7,139,28,56,545,a([99,24,99,44]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R9x43",e.vR9x43,9,43,22,99,170,a([99,9,99,14]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R9x59",e.vR9x59,9,59,20,40,267,a([99,12,99,22]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R9x77",e.vR9x77,9,77,26,52,393,a([99,18,99,32]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R9x99",e.vR9x99,9,99,24,50,532,a([99,24,99,44]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R9x139",e.vR9x139,9,139,28,56,797,a([99,36,99,66]),a([-1,-1,1,1,-1,-1,3,0])]),a(["rmqr","R11x27",e.vR11x27,11,27,98,99,122,a([99,8,99,10]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R11x43",e.vR11x43,11,43,22,99,249,a([99,12,99,20]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R11x59",e.vR11x59,11,59,20,40,376,a([99,16,99,32]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R11x77",e.vR11x77,11,77,26,52,538,a([99,24,99,44]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R11x99",e.vR11x99,11,99,24,50,719,a([99,32,99,60]),a([-1,-1,1,1,-1,-1,1,1])]),a(["rmqr","R11x139",e.vR11x139,11,139,28,56,1062,a([99,48,99,90]),a([-1,-1,2,0,-1,-1,3,0])]),a(["rmqr","R13x27",e.vR13x27,13,27,98,99,172,a([99,9,99,14]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R13x43",e.vR13x43,13,43,22,99,329,a([99,14,99,28]),a([-1,-1,1,0,-1,-1,1,0])]),a(["rmqr","R13x59",e.vR13x59,13,59,20,40,486,a([99,22,99,40]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R13x77",e.vR13x77,13,77,26,52,684,a([99,32,99,56]),a([-1,-1,1,1,-1,-1,1,1])]),a(["rmqr","R13x99",e.vR13x99,13,99,24,50,907,a([99,40,99,78]),a([-1,-1,1,1,-1,-1,1,2])]),a(["rmqr","R13x139",e.vR13x139,13,139,28,56,1328,a([99,60,99,112]),a([-1,-1,2,1,-1,-1,2,2])]),a(["rmqr","R15x43",e.vR15x43,15,43,22,99,409,a([99,18,99,36]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R15x59",e.vR15x59,15,59,20,40,596,a([99,26,99,48]),a([-1,-1,1,0,-1,-1,2,0])]),a(["rmqr","R15x77",e.vR15x77,15,77,26,52,830,a([99,36,99,72]),a([-1,-1,1,1,-1,-1,2,1])]),a(["rmqr","R15x99",e.vR15x99,15,99,24,50,1095,a([99,48,99,88]),a([-1,-1,2,0,-1,-1,4,0])]),a(["rmqr","R15x139",e.vR15x139,15,139,28,56,1594,a([99,72,99,130]),a([-1,-1,2,1,-1,-1,1,4])]),a(["rmqr","R17x43",e.vR17x43,17,43,22,99,489,a([99,22,99,40]),a([-1,-1,1,0,-1,-1,1,1])]),a(["rmqr","R17x59",e.vR17x59,17,59,20,40,706,a([99,32,99,60]),a([-1,-1,2,0,-1,-1,2,0])]),a(["rmqr","R17x77",e.vR17x77,17,77,26,52,976,a([99,44,99,84]),a([-1,-1,2,0,-1,-1,1,2])]),a(["rmqr","R17x99",e.vR17x99,17,99,24,50,1283,a([99,60,99,104]),a([-1,-1,2,1,-1,-1,4,0])]),a(["rmqr","R17x139",e.vR17x139,17,139,28,56,1860,a([99,80,99,156]),a([-1,-1,4,0,-1,-1,2,4])])]);for(var F in e)e.hasOwnProperty(F)&&($n.$ctx[F]=e[F]);$n.__20779__=1,e=Object.getPrototypeOf(e)}r[t++]="eclval",pr("LMQH",e.eclevel),t--;var De=r[--t],lt=r[--t];r[t++]=De.length,r[t++]=lt,t--;var gt=r[--t],At=r[--t];r[t++]=gt,r[t++]=At,t--;var St=r[--t];e[r[--t]]=St;for(var yt=0,Ct=e.metrics.length-1;yt<=Ct;yt+=1){e.i=yt,e.m=u(e.metrics,e.i),e.frmt=u(e.m,0),e.vers=u(e.m,1),e.vergrp=u(e.m,2),e.verind=e.i-44,e.rows=u(e.m,3),e.cols=u(e.m,4),e.asp2=u(e.m,5),e.asp3=u(e.m,6),e.nmod=u(e.m,7),e.ncws=~~(e.nmod/8),e.rbit=e.nmod%8,e.lc4b=!1,(ae(e.vers,"M1")||ae(e.vers,"M3"))&&(e.ncws=e.ncws+1,e.rbit=0,e.lc4b=!0),e.ecws=u(u(e.m,8),e.eclval),e.dcws=h(e.ncws-e.ecws);var Re=e.lc4b?4:0;if(e.dmod=h(e.dcws*8-Re),e.ecb1=u(u(e.m,9),e.eclval*2),e.ecb2=u(u(e.m,9),h(e.eclval*2+1)),e.okay=!0,it(e.format,e.frmt)&&(e.okay=!1),ae(e.frmt,"micro")&&e.fnc1first&&(e.okay=!1),it(e.version,"unset")&&it(e.version,e.vers)&&(e.okay=!1),(e.ecb1==-1||e.ecb2==-1)&&(e.okay=!1),e.verbits=u(e.msgbits,e.vergrp),(e.verbits==-1||e.verbits.length>e.dmod)&&(e.okay=!1),e.term=T("000000000",0,u(e.termlens,e.vergrp)),e.okay)break}e.okay||(r[t++]="bwipp.qrcodeNoValidSymbol#20823",r[t++]="Maximum length exceeded or invalid content",ne()),e.format=e.frmt,e.version=e.vers,e.msgbits=e.verbits,e.dcpb=~~(e.dcws/h(e.ecb1+e.ecb2)),e.ecpb=~~(e.ncws/h(e.ecb1+e.ecb2))-e.dcpb;var Ce=e.term,Ye=e.dmod,et=e.msgbits,Et=e.term,ut=Et.length,Dt=h(Ye-et.length);if(h(Ye-et.length)>Et.length){var jt=ut;ut=Dt,Dt=jt}e.term=T(Ce,0,Dt);var nr=pe(e.msgbits.length+e.term.length);K(nr,0,e.msgbits),K(nr,e.msgbits.length,e.term),e.msgbits=nr,e.pad=pe(e.dmod);for(var Ft=0,cr=e.pad.length-1;Ft<=cr;Ft+=1)y(e.pad,Ft,48);K(e.pad,0,e.msgbits),e.padnum=0;for(var sr=e.lc4b?5:1,lr=~~(Math.ceil(e.msgbits.length/8)*8),Ar=h(e.dmod-sr);lr<=Ar;lr+=8)K(e.pad,lr,u(e.padstrs,e.padnum)),e.padnum=(e.padnum+1)%2;e.cws=a(e.dcws);for(var Qr=0,Er=e.cws.length-1;Qr<=Er;Qr+=1){e.c=Qr,e.bpcw=8,e.lc4b&&e.c==e.cws.length-1&&(e.bpcw=4),e.cwb=T(e.pad,e.c*8,e.bpcw),e.cw=0;for(var Pr=0,Wr=e.bpcw-1;Pr<=Wr;Pr+=1)e.i=Pr,e.cw=h(e.cw+~~Math.pow(2,e.bpcw-e.i-1)*h(u(e.cwb,e.i)-48));y(e.cws,e.c,e.cw)}if(e.lc4b){var cn=e.cws,kr=e.cws;y(cn,kr.length-1,u(cn,kr.length-1)<<4)}var Hr=u(e.options,"debugcws")!==void 0;if(Hr&&(r[t++]="bwipp.debugcws#20867",r[t++]=e.cws,ne()),!$n.__20874__){e=Object.create(e),r[t++]=1/0,r[t++]=1;for(var un=0,Pn=255;un=256){var wn=r[--t];r[t++]=wn^285}}e.rsalog=a(),e.rslog=a(256);for(var zt=1;zt<=255;zt+=1)y(e.rslog,u(e.rsalog,zt),zt);for(var F in e)e.hasOwnProperty(F)&&($n.$ctx[F]=e[F]);$n.__20874__=1,e=Object.getPrototypeOf(e)}e.rsprod=function(){var Mt=r[--t],Wt=r[--t];if(r[t++]=Wt,r[t++]=Mt,Mt!=0&&Wt!=0){var wt=u(e.rslog,r[--t]),Ut=u(e.rsalog,h(wt+u(e.rslog,r[--t]))%255);r[t++]=Ut}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var ar=0,mr=e.ecpb;ar=1;Xt-=1){e.j=Xt,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var en=r[--t],Sr=r[--t],Kr=r[--t];y(r[--t],Kr,ti(Sr,en))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var hr=r[--t],dn=r[--t];y(r[--t],dn,hr)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1),e.rscodes=function(){e.rscws=r[--t],e.rsnd=e.rscws.length,r[t++]=1/0,Oe(e.rscws);for(var Mt=0,Wt=e.ecpb;Mt0&&(e.pad=a(e.cws.length+1),K(e.pad,0,e.cws),y(e.pad,e.pad.length-1,0),e.cws=e.pad),e.lc4b){var bo=e.cws,hi=e.dcws;y(bo,h(hi-1),u(bo,h(hi-1))>>>4);for(var Oo=h(e.dcws-1),Gr=e.ncws-2;Oo<=Gr;Oo+=1)e.i=Oo,y(e.cws,e.i,(u(e.cws,e.i)&15)<<4),y(e.cws,e.i,u(e.cws,e.i+1)>>>4&15|u(e.cws,e.i));y(e.cws,e.ncws-1,(u(e.cws,e.ncws-1)&15)<<4)}var wo=u(e.options,"debugecc")!==void 0;wo&&(r[t++]="bwipp.debugecc#20969",r[t++]=e.cws,ne()),r[t++]=1/0;for(var ii=0,Pi=e.rows*e.cols;ii=qo:Zi<=qo;Zi+=ea){e.i=Zi;for(var ua=3,So=h(e.rows-4);ua<=So;ua+=1){e.j=ua,r[t++]=e.pixs,r[t++]=e.i,r[t++]=e.j,e.qmv();var Ir=r[--t];y(r[--t],Ir,(e.j+1)%2)}}}if(!$n.__21058__){e=Object.create(e),e.fpat=a([a([1,1,1,1,1,1,1,0]),a([1,0,0,0,0,0,1,0]),a([1,0,1,1,1,0,1,0]),a([1,0,1,1,1,0,1,0]),a([1,0,1,1,1,0,1,0]),a([1,0,0,0,0,0,1,0]),a([1,1,1,1,1,1,1,0]),a([0,0,0,0,0,0,0,0])]),e.fsubpat=a([a([1,1,1,1,1,9,9,9]),a([1,0,0,0,1,9,9,9]),a([1,0,1,0,1,9,9,9]),a([1,0,0,0,1,9,9,9]),a([1,1,1,1,1,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9])]),e.fcorpat=a([a([1,1,1,9,9,9,9,9]),a([1,0,9,9,9,9,9,9]),a([1,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9])]),e.fnullpat=a([a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9]),a([9,9,9,9,9,9,9,9])]);var xo=new Map([["full",a([e.fpat,e.fpat,e.fpat,e.fnullpat])],["micro",a([e.fpat,e.fnullpat,e.fnullpat,e.fnullpat])],["rmqr",a([e.fpat,e.fcorpat,e.fcorpat,e.fsubpat])]]);e.fpatmap=xo;for(var F in e)e.hasOwnProperty(F)&&($n.$ctx[F]=e[F]);$n.__21058__=1,e=Object.getPrototypeOf(e)}e.fpats=u(e.fpatmap,e.format);for(var Ln=0;Ln<=7;Ln+=1){e.y=Ln;for(var $i=0;$i<=7;$i+=1){if(e.x=$i,e.fpb0=u(u(u(e.fpats,0),e.y),e.x),e.fpb1=u(u(u(e.fpats,1),e.y),e.x),e.fpb2=u(u(u(e.fpats,2),e.y),e.x),e.fpb3=u(u(u(e.fpats,3),e.y),e.x),e.fpb0!=9&&e.y=ns:Qi<=ns;Qi+=ta)e.i=Qi,r[t++]=e.i,r[t++]=4,e.putalgnpat(),r[t++]=4,r[t++]=e.i,e.putalgnpat();for(var Ga=h(e.asp2-2),os=h(e.asp3-e.asp2),ms=h(e.cols-9);os<0?Ga>=ms:Ga<=ms;Ga+=os){e.x=Ga;for(var Wi=h(e.asp2-2),Ds=h(e.asp3-e.asp2),da=h(e.rows-9);Ds<0?Wi>=da:Wi<=da;Wi+=Ds)e.y=Wi,r[t++]=e.x,r[t++]=e.y,e.putalgnpat()}}if(ae(e.format,"rmqr")){e.algnpat=e.algnpatrmqr;for(var gs=h(e.asp2-2),Ht=h(e.asp3-e.asp2),tr=h(e.cols-13);Ht<0?gs>=tr:gs<=tr;gs+=Ht)e.i=gs,r[t++]=e.i,r[t++]=0,e.putalgnpat(),r[t++]=e.i,r[t++]=h(e.rows-3),e.putalgnpat()}if(!$n.__21138__){e=Object.create(e),e.formatmapmicro=a([a([a([1,8])]),a([a([2,8])]),a([a([3,8])]),a([a([4,8])]),a([a([5,8])]),a([a([6,8])]),a([a([7,8])]),a([a([8,8])]),a([a([8,7])]),a([a([8,6])]),a([a([8,5])]),a([a([8,4])]),a([a([8,3])]),a([a([8,2])]),a([a([8,1])])]);for(var F in e)e.hasOwnProperty(F)&&($n.$ctx[F]=e[F]);$n.__21138__=1,e=Object.getPrototypeOf(e)}var Tr=new Map([["full",a([a([a([0,8]),a([8,h(e.cols-1)])]),a([a([1,8]),a([8,h(e.cols-2)])]),a([a([2,8]),a([8,h(e.cols-3)])]),a([a([3,8]),a([8,h(e.cols-4)])]),a([a([4,8]),a([8,h(e.cols-5)])]),a([a([5,8]),a([8,h(e.cols-6)])]),a([a([7,8]),a([8,h(e.cols-7)])]),a([a([8,8]),a([h(e.cols-8),8])]),a([a([8,7]),a([h(e.cols-7),8])]),a([a([8,5]),a([h(e.cols-6),8])]),a([a([8,4]),a([h(e.cols-5),8])]),a([a([8,3]),a([h(e.cols-4),8])]),a([a([8,2]),a([h(e.cols-3),8])]),a([a([8,1]),a([h(e.cols-2),8])]),a([a([8,0]),a([h(e.cols-1),8])])])],["micro",e.formatmapmicro],["rmqr",a([a([a([11,3]),a([h(e.cols-3),h(e.rows-6)])]),a([a([11,2]),a([h(e.cols-4),h(e.rows-6)])]),a([a([11,1]),a([h(e.cols-5),h(e.rows-6)])]),a([a([10,5]),a([h(e.cols-6),h(e.rows-2)])]),a([a([10,4]),a([h(e.cols-6),h(e.rows-3)])]),a([a([10,3]),a([h(e.cols-6),h(e.rows-4)])]),a([a([10,2]),a([h(e.cols-6),h(e.rows-5)])]),a([a([10,1]),a([h(e.cols-6),h(e.rows-6)])]),a([a([9,5]),a([h(e.cols-7),h(e.rows-2)])]),a([a([9,4]),a([h(e.cols-7),h(e.rows-3)])]),a([a([9,3]),a([h(e.cols-7),h(e.rows-4)])]),a([a([9,2]),a([h(e.cols-7),h(e.rows-5)])]),a([a([9,1]),a([h(e.cols-7),h(e.rows-6)])]),a([a([8,5]),a([h(e.cols-8),h(e.rows-2)])]),a([a([8,4]),a([h(e.cols-8),h(e.rows-3)])]),a([a([8,3]),a([h(e.cols-8),h(e.rows-4)])]),a([a([8,2]),a([h(e.cols-8),h(e.rows-5)])]),a([a([8,1]),a([h(e.cols-8),h(e.rows-6)])])])]]);e.formatmap=u(Tr,e.format),Oe(e.formatmap,function(){Oe(r[--t],function(){Oe(r[--t]),e.qmv(),y(e.pixs,r[--t],1)})}),ae(e.format,"full")&&e.cols>=45?e.versionmap=a([a([a([h(e.cols-9),5]),a([5,h(e.cols-9)])]),a([a([h(e.cols-10),5]),a([5,h(e.cols-10)])]),a([a([h(e.cols-11),5]),a([5,h(e.cols-11)])]),a([a([h(e.cols-9),4]),a([4,h(e.cols-9)])]),a([a([h(e.cols-10),4]),a([4,h(e.cols-10)])]),a([a([h(e.cols-11),4]),a([4,h(e.cols-11)])]),a([a([h(e.cols-9),3]),a([3,h(e.cols-9)])]),a([a([h(e.cols-10),3]),a([3,h(e.cols-10)])]),a([a([h(e.cols-11),3]),a([3,h(e.cols-11)])]),a([a([h(e.cols-9),2]),a([2,h(e.cols-9)])]),a([a([h(e.cols-10),2]),a([2,h(e.cols-10)])]),a([a([h(e.cols-11),2]),a([2,h(e.cols-11)])]),a([a([h(e.cols-9),1]),a([1,h(e.cols-9)])]),a([a([h(e.cols-10),1]),a([1,h(e.cols-10)])]),a([a([h(e.cols-11),1]),a([1,h(e.cols-11)])]),a([a([h(e.cols-9),0]),a([0,h(e.cols-9)])]),a([a([h(e.cols-10),0]),a([0,h(e.cols-10)])]),a([a([h(e.cols-11),0]),a([0,h(e.cols-11)])])]):e.versionmap=a([]);for(var on=e.versionmap,Xr=0,fn=on.length;Xr>>-Ko:Ri<=e.rows)&&(e.dir=e.dir*-1,e.posy=h(e.posy+e.dir),e.posx=h(e.posx-2),ae(e.format,"full")&&e.posx==6&&(e.posx=h(e.posx-1))))}e.evalfulln1n3=function(){e.scrle=r[--t],r[t++]="scr1",r[t++]=0,Oe(e.scrle,function(){var na=r[--t];if(r[t++]=na,na>=5){var ha=r[--t],ys=h(h(r[--t]+ha)-2);r[t++]=ys,r[t++]=ys}t--});var Mt=r[--t];e[r[--t]]=Mt,e.scr3=0;for(var Wt=3,wt=e.scrle.length-3;Wt<=wt;Wt+=2)if(e.j=Wt,u(e.scrle,e.j)%3==0){e.fact=~~(u(e.scrle,e.j)/3);for(var Ut=T(e.scrle,e.j-2,5),br=0,wr=Ut.length;br=e.scrle.length||u(e.scrle,e.j-3)>=4||u(e.scrle,e.j+3)>=4)&&(e.scr3=e.scr3+40)}r[t++]=e.scr1,r[t++]=e.scr3},e.evalfull=function(){e.sym=r[--t],e.n1=0,e.n2=0,e.n3=0,e.rle=a(h(e.cols+1)),e.lastpairs=a(e.cols),e.thispairs=a(e.cols),e.colsadd1=h(e.cols+1);for(var Mt=0,Wt=h(e.cols-1);Mt<=Wt;Mt+=1){e.i=Mt,r[t++]=1/0;var wt=e.cols;r[t++]=0,r[t++]=0;for(var Ut=e.i,br=wt,wr=h(wt*wt-1);br<0?Ut>=wr:Ut<=wr;Ut+=br){var Rn=u(e.sym,Ut),Dn=r[--t];if(r[t++]=Rn,ae(Dn,Rn)){var Eo=r[--t],Go=r[--t];r[t++]=h(Go+1),r[t++]=Eo}else{var zi=r[--t];r[t++]=1,r[t++]=zi}}t--;var pa=mo()+2;xr(T(e.rle,0,pa-2)),e.evalfulln1n3(),e.n3=h(r[--t]+e.n3),e.n1=h(r[--t]+e.n1),t--,e.symrow=T(e.sym,e.i*e.cols,e.cols),r[t++]=1/0;var na=e.symrow;r[t++]=0,r[t++]=0;for(var ha=0,ys=na.length;ha0){r[t++]=1/0,oe(e.lastpairs),oe(e.thispairs),r[t++]=e.n2;for(var Ls=0,as=e.cols;Ls>>-wt:Wt<>>-Ea:Qa<>>-xs:$s<>>-T1:B1<=45){e.verval=u(e.vervals,~~(h(e.cols-17)/4)-7);for(var _l=0,F1=e.versionmap.length-1;_l<=F1;_l+=1)e.i=_l,Oe(u(e.versionmap,e.i),function(){var Mt=r[--t];r[t++]=e.pixs,Oe(Mt),e.qmv();var Wt=e.verval,wt=-(17-e.i),Ut=r[--t];y(r[--t],Ut,(wt<0?Wt>>>-wt:Wt<997&&(r[t++]="bwipp.swissqrcodeBadLength#21540",r[t++]="Swiss QR Code input must not exceed 997 digits",ne()),y(e.options,"dontdraw",!0),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,$n();var i=r[--t];if(e[r[--t]]=i,y(e.args,"opt",e.options),r[t++]=e.args,!e.dontdraw){Se.save();var s=Se.currpos();Se.translate(s.x,s.y);var l=72/25.4;Se.scale(l,l),Se.save(),Se.newpath(),Se.moveto(0,0),Se.lineto(46,0),Se.lineto(46,46),Se.lineto(0,46),Se.closepath(),Se.moveto(19.5,19.5),Se.lineto(19.5,26.5),Se.lineto(26.5,26.5),Se.lineto(26.5,19.5),Se.closepath(),Se.clip(),Se.save(),Se.moveto(0,0);var c=46/u(e.args,"pixx")/2;Se.scale(c,c),Qt(),Se.restore(),Se.restore(),Se.translate(19.5,19.5);var d=7/83;Se.scale(d,d),Se.newpath(),Se.moveto(6,6),Se.lineto(6,77),Se.lineto(77,77),Se.lineto(77,6),Se.closepath(),Se.moveto(49,18),Se.lineto(49,34),Se.lineto(65,34),Se.lineto(65,49),Se.lineto(49,49),Se.lineto(49,65),Se.lineto(34,65),Se.lineto(34,49),Se.lineto(18,49),Se.lineto(18,34),Se.lineto(34,34),Se.lineto(34,18),Se.closepath(),Se.setrgbcolor(0,0,0),Se.fill(),Se.restore()}e=Object.getPrototypeOf(e)}function g0e(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],y(e.options,"dontdraw",!0),y(e.options,"format","micro"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,$n();var n=r[--t];e[r[--t]]=n,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function v0e(){e=Object.create(e),e.dontdraw=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],y(e.options,"dontdraw",!0),y(e.options,"format","rmqr"),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,$n();var n=r[--t];e[r[--t]]=n,y(e.args,"opt",e.options),r[t++]=e.args,e.dontdraw||Qt(),e=Object.getPrototypeOf(e)}function V1(){if(e=Object.create(e),e.dontdraw=!1,e.mode=-1,e.sam=-1,e.parse=!1,e.parsefnc=!1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],ae(e.barcode,"")&&(r[t++]="bwipp.maxicodeEmptyData#21758",r[t++]="The data must not be empty",ne()),e.mode!=-1&&(e.mode<2||e.mode>6)&&(r[t++]="bwipp.maxicodeBadMode#21762",r[t++]="Mode must be 2 to 6",ne()),e.sam!=-1){r[t++]=!0;for(var n=0,o=1;n88){t--,r[t++]=!1;break}var s=e.sam%10;if(s<2||s>8){t--,r[t++]=!1;break}if(~~(e.sam/10)>e.sam%10){t--,r[t++]=!1;break}}fr(r[--t])&&(r[t++]="bwipp.maxicodeBadSAM#21773",r[t++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 8 symbols',ne())}yr(V1);var l=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0]]);e.fncvals=l,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var c=r[--t];if(e[r[--t]]=c,e.msglen=e.msg.length,e.mode==2||e.mode==3){e.barcode=pe(e.msglen);for(var d=0,f=e.msglen-1;d<=f;d+=1)e.i=d,u(e.msg,e.i)>0&&y(e.barcode,e.i,u(e.msg,e.i));if(e.barlen=e.barcode.length,e.fid="",e.barlen>=7&&ae(T(e.barcode,0,7),"[)>01")&&(e.fid=T(e.barcode,0,9),e.barcode=T(e.barcode,9,e.barlen-9)),pr(e.barcode,""),r[--t])if(e.pcode=r[--t],t--,e.mode==2){r[t++]=!0;for(var p=0,m=1;p9){t--,r[t++]=!1;break}Oe(e.pcode,function(){var Xt=r[--t];if(Xt<48||Xt>57)return t--,r[t++]=!1,!0})}fr(r[--t])&&(t--,r[t++]="bwipp.maxicodeBadMode2PostCode#21822",r[t++]="A mode 2 postcode must not exceed 9 digits",ne())}else Oe(e.pcode,function(){var Xt=r[--t];Xt==32||Xt>=34&&Xt<=58||Xt>=65&&Xt<=90||(t--,r[t++]="bwipp.maxicodeBadMode3PostCode#21830",r[t++]="A mode 3 postcode must not exceed 6 characters",ne())});else t--,r[t++]="bwipp.maxicodeExpectedPostCode#21835",r[t++]="Expected postcode followed by group separator character",ne();if(pr(r[--t],""),r[--t]){e.ccode=r[--t],t--,r[t++]=!0;for(var g=0,v=1;g57)return t--,r[t++]=!1,!0})}fr(r[--t])&&(t--,r[t++]="bwipp.maxicodeBadCountryCode#21845",r[t++]="Country code must be three digits",ne())}else t--,r[t++]="bwipp.maxicodeExpectedCountryCode#21848",r[t++]="Expected country code followed by group separator character",ne();if(pr(r[--t],""),r[--t]){e.scode=r[--t],t--,r[t++]=!0;for(var w=0,A=1;w57)return t--,r[t++]=!1,!0})}fr(r[--t])&&(t--,r[t++]="bwipp.maxicodeBadServiceClass#21858",r[t++]="Service class must be three digits",ne())}else t--,r[t++]="bwipp.maxicodeExpectedServiceClass#21861",r[t++]="Expected service class followed by group separator character",ne();e.barcode=r[--t];var k=pe(e.barcode.length+e.fid.length);K(k,0,e.fid),K(k,e.fid.length,e.barcode),e.barcode=k,e.barlen=e.barcode.length,r[t++]=1/0;for(var C=e.barcode,M=0,S=C.length;M",178,175,164]),a([41,"?",179,176,165]),a(["*","[",181,180,166]),a(["+",92,185,183,167]),a([",","]",186,184,169]),a(["-","^",188,187,173]),a([".","_",189,191,174]),a(["/"," ",190,138,182]),a(["0",",",128,139,149]),a(["1",".",129,140,150]),a(["2","/",130,141,151]),a(["3",":",131,142,152]),a(["4","@",132,143,153]),a(["5","!",133,144,154]),a(["6","|",134,145,155]),a(["7",e.pd2,135,146,156]),a(["8",e.sa2,136,147,157]),a(["9",e.sa3,137,148,158]),a([":",e.pd3,e.la,e.la,e.la]),a([e.sb,e.sa," "," "," "]),a([e.sc,e.sc,e.lkc,e.sc,e.sc]),a([e.sd,e.sd,e.sd,e.lkd,e.sd]),a([e.se,e.se,e.se,e.se,e.lke]),a([e.lb,e.la,e.lb,e.lb,e.lb])]),e.charvals=a([new Map,new Map,new Map,new Map,new Map]);for(var I=0,E=e.charmaps.length-1;I<=E;I+=1){e.i=I,e.encs=u(e.charmaps,e.i);for(var j=0;j<=4;j+=1){e.j=j;var B=u(e.encs,e.j);if(r[t++]=B,ae(za(B),"stringtype")){var D=u(r[--t],0);r[t++]=D}y(u(e.charvals,e.j),r[--t],e.i)}}e.seta=u(e.charvals,0),e.setb=u(e.charvals,1),e.setc=u(e.charvals,2),e.setd=u(e.charvals,3),e.sete=u(e.charvals,4);for(var R in e)e.hasOwnProperty(R)&&(V1.$ctx[R]=e[R]);V1.__21971__=1,e=Object.getPrototypeOf(e)}r[t++]=1/0;for(var N=0,U=e.msglen+1;N=0;L-=1){e.i=L;var _=u(e.msg,e.i);_>=48&&_<=57?y(e.nseq,e.i,h(u(e.nseq,e.i+1)+1)):y(e.nseq,e.i,0)}for(e.nseq=T(e.nseq,0,e.msglen),e.prefixinset=function(){for(r[t++]=0;;){var Xt=r[--t],en=r[--t];if(r[t++]=en,r[t++]=Xt,Xt>=en.length)break;var Sr=r[--t],Kr=r[--t],hr=r[--t],dn=u(hr,u(Kr,Sr))!==void 0;if(r[t++]=hr,r[t++]=Kr,r[t++]=Sr,dn){var er=r[--t];r[t++]=h(er+1)}else break}var jn=r[--t],qr=r[--t];r[t++]=jn,r[t++]=qr,t--;var vo=r[--t],Or=r[--t];r[t++]=vo,r[t++]=Or,t--},e.enc=function(){var Xt=r[--t];y(e.out,e.j,u(Xt,r[--t])),e.j=e.j+1},e.out=a(144),e.i=0,e.j=0,e.cset="seta";;){if(e.i==e.msglen){it(e.cset,"seta")&&it(e.cset,"setb")&&(r[t++]=e.la,r[t++]=e[e.cset],e.enc(),e.cset="seta");break}for(;;){if(u(e.msg,e.i)<=-1e6){r[t++]=e.eci,r[t++]=e[e.cset],e.enc();var V=h(-u(e.msg,e.i)-1e6);if(r[t++]=V,V<=31){var $=r[--t];r[t++]=$&63,xr(a(1))}else{var z=r[--t];if(r[t++]=z,z<=1023){var Q=r[--t];r[t++]=Q>>>6&31|32,r[t++]=Q&63,xr(a(2))}else{var G=r[--t];if(r[t++]=G,G<=32767){var F=r[--t];r[t++]=F>>>12&47|48,r[t++]=F>>>6&63,r[t++]=F&63,xr(a(3))}else{var q=r[--t];r[t++]=q>>>18&55|56,r[t++]=q>>>12&63,r[t++]=q>>>6&63,r[t++]=q&63,xr(a(4))}}}var W=r[--t];K(e.out,e.j,W),e.j=W.length+e.j,e.i=e.i+1;break}if(u(e.nseq,e.i)>=9){var X=T(e.msg,e.i,9);r[t++]=0;for(var te=0,se=X.length;te>>6}r[t++]=u(e[e.cset],e.ns);for(var ve=0;ve<=10;ve+=2){var be=r[t-1-ve];r[t++]=be}xr(a(6));var ke=r[--t],ze=r[--t],Ge=r[--t],Ve=r[--t],at=r[--t],We=r[--t],ue=r[--t];r[t++]=ke,r[t++]=ue,r[t++]=We,r[t++]=at,r[t++]=Ve,r[t++]=Ge,r[t++]=ze;for(var Le=0,$e=6;Le<$e;Le++)t--;K(e.out,e.j,r[--t]),e.i=e.i+9,e.j=e.j+6;break}e.char1=u(e.msg,e.i),r[t++]="char2",e.i+1Fe-Be){var Nt=Je;Je=It,It=Nt}r[t++]="p",r[t++]=Pt,r[t++]=T(mt,pt,It),e.prefixinset();var ht=r[--t];e[r[--t]]=ht,e.p==1&&(r[t++]=e.sa,r[t++]=e.setb,e.enc(),r[t++]=e.char1,r[t++]=e.seta,e.enc(),e.i=e.i+1),e.p==2&&(r[t++]=e.sa2,r[t++]=e.setb,e.enc(),r[t++]=e.char1,r[t++]=e.seta,e.enc(),r[t++]=e.char2,r[t++]=e.seta,e.enc(),e.i=e.i+2),e.p==3&&(r[t++]=e.sa3,r[t++]=e.setb,e.enc(),r[t++]=e.char1,r[t++]=e.seta,e.enc(),r[t++]=e.char2,r[t++]=e.seta,e.enc(),r[t++]=e.char3,r[t++]=e.seta,e.enc(),e.i=e.i+3),e.p>=4&&(r[t++]=e.la,r[t++]=e.setb,e.enc(),e.cset="seta");break}var xt=u(e.seta,e.char1)!==void 0;if(xt){r[t++]=e.la,r[t++]=e[e.cset],e.enc(),e.cset="seta";break}var tt=u(e.setb,e.char1)!==void 0;if(tt){r[t++]=e.lb,r[t++]=e[e.cset],e.enc(),e.cset="setb";break}var Y=u(e.setc,e.char1)!==void 0;Y&&(e.setx="setc",e.sx=e.sc,e.lkx=e.lkc);var re=u(e.setd,e.char1)!==void 0;re&&(e.setx="setd",e.sx=e.sd,e.lkx=e.lkd);var ie=u(e.sete,e.char1)!==void 0;ie&&(e.setx="sete",e.sx=e.se,e.lkx=e.lke);var le=e[e.setx],ge=e.msg,Pe=e.i,me=e.msglen,Ee=e.i,ce=me-Ee,je=4;if(4>me-Ee){var Nt=ce;ce=je,je=Nt}r[t++]="p",r[t++]=le,r[t++]=T(ge,Pe,je),e.prefixinset();var He=r[--t];e[r[--t]]=He,e.p==1&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char1,r[t++]=e[e.setx],e.enc(),e.i=e.i+1),e.p==2&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char1,r[t++]=e[e.setx],e.enc(),r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char2,r[t++]=e[e.setx],e.enc(),e.i=e.i+2),e.p==3&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char1,r[t++]=e[e.setx],e.enc(),r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char2,r[t++]=e[e.setx],e.enc(),r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.char3,r[t++]=e[e.setx],e.enc(),e.i=e.i+3),e.p>=4&&(r[t++]=e.sx,r[t++]=e[e.cset],e.enc(),r[t++]=e.lkx,r[t++]=e[e.setx],e.enc(),e.cset=e.setx);break}}e.encmsg=T(e.out,0,e.j),e.padval=u(e[e.cset],e.pad),r[t++]="sami",e.sam!=-1?r[t++]=a([u(e.seta,e.pad),(~~(e.sam/10)-1)*8+(e.sam%10-1)]):r[t++]=a([]);var Ne=r[--t];if(e[r[--t]]=Ne,r[t++]=1/0,oe(e.sami),oe(e.encmsg),e.encmsg=a(),e.mode==2||e.mode==3){e.encmsg.length>84&&(r[t++]="bwipp.maxicodeMode23TooLong#22164",r[t++]="The secondary message is too long",ne());var ye=Gn(pe(4),"0000"),rt=vr(pe(4),~~e.mode,2);K(ye,4-rt.length,rt),e.mdb=ye;var Te=Gn(pe(10),"0000000000"),Ae=vr(pe(10),ft(e.ccode),2);K(Te,10-Ae.length,Ae),e.ccb=Te;var Ue=Gn(pe(10),"0000000000"),qe=vr(pe(10),ft(e.scode),2);if(K(Ue,10-qe.length,qe),e.scb=Ue,e.pcb=Gn(pe(36),"000000000000000000000000000000000000"),e.mode==2){var De=vr(pe(6),e.pcode.length,2);K(e.pcb,6-De.length,De);var lt=vr(pe(30),ft(e.pcode),2);K(e.pcb,36-lt.length,lt)}else{r[t++]=1/0;var gt=Gn(pe(6)," ");r[t++]=gt,r[t++]=gt,r[t++]=0,e.pcode.length>6?r[t++]=T(e.pcode,0,6):r[t++]=e.pcode;var At=r[--t],St=r[--t];K(r[--t],St,At),Oe(r[--t],function(){var Xt=u(e.seta,r[--t]);r[t++]=Xt}),e.pccw=a();for(var yt=0;yt<=5;yt+=1){e.i=yt;var Ct=vr(pe(6),u(e.pccw,e.i),2);K(e.pcb,6*e.i+6-Ct.length,Ct)}}e.scm=pe(60),K(e.scm,2,e.mdb),K(e.scm,38,T(e.pcb,0,4)),K(e.scm,30,T(e.pcb,4,6)),K(e.scm,24,T(e.pcb,10,6)),K(e.scm,18,T(e.pcb,16,6)),K(e.scm,12,T(e.pcb,22,6)),K(e.scm,6,T(e.pcb,28,6)),K(e.scm,0,T(e.pcb,34,2)),K(e.scm,52,T(e.ccb,0,2)),K(e.scm,42,T(e.ccb,2,6)),K(e.scm,36,T(e.ccb,8,2)),K(e.scm,54,T(e.scb,0,6)),K(e.scm,48,T(e.scb,6,4)),e.pri=a([0,0,0,0,0,0,0,0,0,0]);for(var Re=0;Re<=59;Re+=1)e.i=Re,e.ps=~~(e.i/6),e.ep=~~Math.pow(2,5-e.i%6)*(u(e.scm,e.i)-48),y(e.pri,e.ps,h(u(e.pri,e.ps)+e.ep));r[t++]=1/0;for(var Ce=0,Ye=84;Cee.cws.length-1&&(r[t++]="bwipp.maxicodeMode56TooLong#22229",r[t++]="The message is too long",ne()),y(e.cws,0,e.mode),K(e.cws,1,e.encmsg),e.pri=T(e.cws,0,10),e.sec=T(e.cws,10,e.cws.length-10)}if(!V1.__22245__){e=Object.create(e),r[t++]=1/0,r[t++]=1;for(var jt=0,nr=63;jt=64){var sr=r[--t];r[t++]=sr^67}}e.rsalog=a(),e.rslog=a(64);for(var lr=1;lr<=63;lr+=1)y(e.rslog,u(e.rsalog,lr),lr);for(var R in e)e.hasOwnProperty(R)&&(V1.$ctx[R]=e[R]);V1.__22245__=1,e=Object.getPrototypeOf(e)}e.rsprod=function(){var Xt=r[--t],en=r[--t];if(r[t++]=en,r[t++]=Xt,Xt!=0&&en!=0){var Sr=u(e.rslog,r[--t]),Kr=u(e.rsalog,h(Sr+u(e.rslog,r[--t]))%63);r[t++]=Kr}else t-=2,r[t++]=0},e.rscodes=function(){e.rsnum=r[--t],e.cwb=r[--t],r[t++]=1/0,r[t++]=1;for(var Xt=0,en=e.rsnum;Xt=1;hr-=1){e.j=hr,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var dn=r[--t],er=r[--t],jn=r[--t];y(r[--t],jn,ti(er,dn))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var qr=r[--t],vo=r[--t];y(r[--t],vo,qr)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1),r[t++]=1/0;for(var Or=0,_n=e.rsnum;Or<_n;Or++)r[t++]=0;e.ecb=a();for(var Nr=0,jo=e.cwb.length-1;Nr<=jo;Nr+=1){e.t=ti(u(e.cwb,Nr),u(e.ecb,0));for(var nn=e.ecb.length-1;nn>=0;nn-=1){e.i=nn,e.p=e.ecb.length-e.i-1,r[t++]=e.ecb,r[t++]=e.p,r[t++]=e.t,r[t++]=u(e.coeffs,e.i),e.rsprod();var zo=r[--t],xn=r[--t];y(r[--t],xn,zo),e.i>0&&y(e.ecb,e.p,ti(u(e.ecb,e.p+1),u(e.ecb,e.p)))}}r[t++]=e.ecb},r[t++]=1/0;for(var Ar=0,Qr=e.sec.length-1;Ar<=Qr;Ar+=2)r[t++]=u(e.sec,Ar);e.seco=a(),r[t++]=1/0;for(var Er=1,Pr=e.sec.length-1;Er<=Pr;Er+=2)r[t++]=u(e.sec,Er);e.sece=a();var Wr=e.sec.length==84?20:28;e.scodes=Wr,r[t++]="secochk",r[t++]=e.seco,r[t++]=e.scodes,e.rscodes();var cn=r[--t];e[r[--t]]=cn,r[t++]="secechk",r[t++]=e.sece,r[t++]=e.scodes,e.rscodes();var kr=r[--t];e[r[--t]]=kr,r[t++]=1/0;for(var Hr=0,un=e.scodes-1;Hr<=un;Hr+=1)r[t++]=u(e.secochk,Hr),r[t++]=u(e.secechk,Hr);e.secchk=a(),r[t++]=1/0,oe(e.pri),r[t++]=e.pri,r[t++]=10,e.rscodes(),oe(r[--t]),oe(e.sec),oe(e.secchk),e.codewords=a(),r[t++]=1/0;for(var Pn=0,Br=864;Pn95)&&(r[t++]="bwipp.aztecInvalidEClevel#22450",r[t++]="The EC percentage must be from 5 to 95",ne()),e.ecaddchars<3&&(r[t++]="bwipp.aztecInvalidECaddChars#22454",r[t++]="The number of additional EC codewords must be 3 or more",ne()),it(e.format,"full")&&it(e.format,"compact")&&it(e.format,"rune")&&(r[t++]="bwipp.aztecInvalidFormat#22458",r[t++]="The format must be either full, compact or rune",ne()),ae(e.format,"full")&&(e.readerinit&&(e.layers<1||e.layers>22)&&(r[t++]="bwipp.aztecFullInitInvalidLayers#22463",r[t++]="Full-range symbols for reader programming must specify from 1 to 22 layers",ne()),e.layers!=-1&&(e.layers<1||e.layers>32)&&(r[t++]="bwipp.aztecFullInvalidLayers#22466",r[t++]="Layers for full-range symbols must be from 1 to 32",ne())),ae(e.format,"compact")&&(e.readerinit&&(e.layers!=-1&&e.layers!=1&&(r[t++]="bwipp.aztecCompactInitInvalidLayers#22473",r[t++]="Compact symbols for reader programming must have 1 layer",ne()),e.layers=1),e.layers!=-1&&(e.layers<1||e.layers>4)&&(r[t++]="bwipp.aztecCompactInvalidLayers#22478",r[t++]="Layers for compact symbols must be from 1 to 4",ne())),ae(e.format,"rune")){e.layers!=-1&&(r[t++]="bwipp.aztecRuneInvalidLayers#22484",r[t++]="It is not valid to specify layers for runes",ne()),e.readerinit&&(r[t++]="bwipp.aztecRuneReaderInit#22487",r[t++]="Reader initialisation is not compactible with Aztec Runes",ne()),e.barcode.length==0&&(r[t++]="bwipp.aztecRuneNotNumeric#22490",r[t++]="Aztec runes must be numeric",ne()),Oe(e.barcode,function(){var Ee=r[--t];(Ee<48||Ee>57)&&(r[t++]="bwipp.aztecRuneNotNumeric#22494",r[t++]="Aztec runes must be numeric",ne())});var n=ft(e.barcode);(n<0||n>255)&&(r[t++]="bwipp.aztecRuneInvalid#22498",r[t++]="Aztec runes must be 0 to 255",ne())}e.fn1=-1;var o=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1]]);e.fncvals=o,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var i=r[--t];if(e[r[--t]]=i,e.msglen=e.msg.length,!cs.__22611__){e=Object.create(e),e.U=0,e.L=1,e.M=2,e.P=3,e.D=4,e.B=5,e.lu=-2,e.ll=-3,e.lm=-4,e.lp=-5,e.ld=-6,e.su=-7,e.sp=-8,e.sb=-9,e.fl=-10,e.p2=-11,e.p3=-12,e.p4=-13,e.p5=-14,e.charmaps=a([a([e.sp,e.sp,e.sp,e.fl,e.sp]),a([32,32,32,13,32]),a(["A","a",1,e.p2,"0"]),a(["B","b",2,e.p3,"1"]),a(["C","c",3,e.p4,"2"]),a(["D","d",4,e.p5,"3"]),a(["E","e",5,"!","4"]),a(["F","f",6,'"',"5"]),a(["G","g",7,"#","6"]),a(["H","h",8,"$","7"]),a(["I","i",9,"%","8"]),a(["J","j",10,"&","9"]),a(["K","k",11,"'",","]),a(["L","l",12,40,"."]),a(["M","m",13,41,e.lu]),a(["N","n",27,"*",e.su]),a(["O","o",28,"+",-99]),a(["P","p",29,",",-99]),a(["Q","q",30,"-",-99]),a(["R","r",31,".",-99]),a(["S","s","@","/",-99]),a(["T","t",92,":",-99]),a(["U","u","^",";",-99]),a(["V","v","_","<",-99]),a(["W","w","`","=",-99]),a(["X","x","|",">",-99]),a(["Y","y","~","?",-99]),a(["Z","z",127,"[",-99]),a([e.ll,e.su,e.ll,"]",-99]),a([e.lm,e.lm,e.lu,"{",-99]),a([e.ld,e.ld,e.lp,"}",-99]),a([e.sb,e.sb,e.sb,e.lu,-99])]),e.charvals=a([new Map,new Map,new Map,new Map,new Map]);for(var s=0,l=e.charmaps.length-1;s<=l;s+=1){e.i=s,e.encs=u(e.charmaps,e.i);for(var c=0;c<=4;c+=1){e.j=c;var d=u(e.encs,e.j);if(r[t++]=d,ae(za(d),"stringtype")){var f=u(r[--t],0);r[t++]=f}y(u(e.charvals,e.j),r[--t],e.i)}}var p=new Map([[`\r +`,e.p2],[". ",e.p3],[", ",e.p4],[": ",e.p5]]);e.pcomp=p,e.e=1e6;var m=a([0,0,0,0,0,0]);e.latlen=a([a([0,5,5,10,5,10]),a([9,0,5,10,5,10]),a([5,5,0,5,10,10]),a([5,10,10,0,10,15]),a([4,9,9,14,0,14]),m]),e.latseq=a([a([a([]),a([e.ll]),a([e.lm]),a([e.lm,e.lp]),a([e.ld]),a([e.sb])]),a([a([e.ld,e.lu]),a([]),a([e.lm]),a([e.lm,e.lp]),a([e.ld]),a([e.sb])]),a([a([e.lu]),a([e.ll]),a([]),a([e.lp]),a([e.lu,e.ld]),a([e.sb])]),a([a([e.lu]),a([e.lu,e.ll]),a([e.lu,e.lm]),a([]),a([e.lu,e.ld]),a([e.lu,e.sb])]),a([a([e.lu]),a([e.lu,e.ll]),a([e.lu,e.lm]),a([e.lu,e.lm,e.lp]),a([]),a([e.lu,e.sb])]),a([a([e.lu]),a([e.ll]),a([e.lm]),a([]),a([]),a([])])]),e.shftlen=a([a([e.e,e.e,e.e,5,e.e]),a([5,e.e,e.e,5,e.e]),a([e.e,e.e,e.e,5,e.e]),a([e.e,e.e,e.e,e.e,e.e]),a([4,e.e,e.e,4,e.e])]);for(var g in e)e.hasOwnProperty(g)&&(cs.$ctx[g]=e[g]);cs.__22611__=1,e=Object.getPrototypeOf(e)}if(e.msgbits="",it(e.format,"rune")&&e.raw&&(e.msgbits=e.barcode),it(e.format,"rune")&&!e.raw){e.charsize=function(){var Ee=r[--t];if(r[t++]=Ee,Ee>=0){t--;var ce=u(a([5,5,5,5,4,8]),r[--t]);r[t++]=ce}else{var je=r[--t],He=r[--t];r[t++]=je,r[t++]=He,t--;var Ne=r[--t];if(r[t++]=Ne,Ne==e.fn1)t--,r[t++]=8;else{var ye=h(-r[--t]-1e6);r[t++]=ye,ye==0&&(t--,r[t++]=1);var rt=r[--t];r[t++]=(~~(Math.log(rt)/Math.log(10))+1)*4+8}}},e.curlen=a([0,e.e,e.e,e.e,e.e,e.e]),e.curseq=a([a([]),a([]),a([]),a([]),a([]),a([])]),e.backto=e.U,e.lastchar="",Oe(e.msg,function(){for(e.char=r[--t];;){e.imp=!1;for(var Ee=a([e.U,e.L,e.M,e.P,e.D,e.B]),ce=0,je=Ee.length;ce=0){if(e.x!=e.B){var lt=u(u(e.charvals,e.x),e.char)!==void 0;if(!lt)break}}else if(e.x!=e.P)break;r[t++]="cost",r[t++]=u(e.curlen,e.x),r[t++]=e.x,r[t++]=e.char,e.charsize();var gt=r[--t],At=r[--t];if(e[r[--t]]=h(At+gt),e.cost=0){var jt=pe(2);y(jt,0,e.lastchar),y(jt,1,e.char),e.pchars=jt;var nr=u(e.pcomp,e.pchars)!==void 0;if(nr){for(var Ft=a([e.U,e.L,e.M,e.P,e.D]),cr=0,sr=Ft.length;cr=0;lr-=1)if(e.idx=lr,e.ch=u(e.curseqi,e.idx),e.lastidx==-1)ae(e.ch,e.lastchar)&&(e.lastidx=e.idx,e.idx>0&&u(e.curseqi,e.idx-1)==e.sp&&(e.lastsp=!0));else if(e.ch<0&&e.ch>=e.ld){e.i==e.P?e.ch==e.ld&&(e.lastld=!0):e.ch!=e.lp&&(e.inP=e.lastsp);break}if(e.inP&&e.lastidx>=0)if(y(e.nxtlen,e.i,u(e.curlen,e.i)),e.lastidx=0?r[t++]=e.char:r[t++]="";var kr=r[--t];e[r[--t]]=kr}),e.minseq=e.e;for(var v=a([e.U,e.L,e.M,e.P,e.D,e.B]),w=0,A=v.length;w=0;Ue-=1){var qe=r[--t],De=r[--t];r[t++]=De,r[t++]=~~(qe/10),r[t++]=De,r[t++]=Ue*4+8,r[t++]=h(qe%10+2),r[t++]=4,e.tobin();var lt=r[--t],gt=r[--t];K(r[--t],gt,lt)}t--}else{var At=u(u(e.charvals,e.P),r[--t]);r[t++]=At,r[t++]=5,e.tobin()}}},e.encfuncs=a(["encu","encl","encm","encp","encd"]),e.addtomsgbits=function(){e.v=r[--t],K(e.msgbits,e.j,e.v),e.j=e.j+e.v.length},e.state=e.U,e.msgbits=pe(e.minseq),e.i=0,e.j=0;!(e.i>=e.seq.length);)if(e.state!=e.B){if(e.char=u(e.seq,e.i),r[t++]=e.char,e[u(e.encfuncs,e.state)]()===!0)break;e.addtomsgbits(),e.i=e.i+1,(e.char==e.su||e.char==e.sp)&&(r[t++]=u(e.seq,e.i),e.char==e.su?e.encu():e.encp(),e.addtomsgbits(),e.i=e.i+1),e.char==e.lu&&(e.state=e.U),e.char==e.ll&&(e.state=e.L),e.char==e.lm&&(e.state=e.M),e.char==e.lp&&(e.state=e.P),e.char==e.ld&&(e.state=e.D),e.char==e.sb&&(e.state=e.B)}else{for(e.numbytes=0;!(e.i+e.numbytes>=e.seq.length||u(e.seq,e.i+e.numbytes)<0);)e.numbytes=e.numbytes+1;e.numbytes<=31?(r[t++]=e.numbytes,r[t++]=5,e.tobin(),e.addtomsgbits()):(r[t++]=0,r[t++]=5,e.tobin(),e.addtomsgbits(),r[t++]=e.numbytes-31,r[t++]=11,e.tobin(),e.addtomsgbits());for(var k=0,C=e.numbytes;ke.numdcw&&(e.okay=!1),!e.okay);S++);for(e.okay||(r[t++]="bwipp.aztecNoValidSymbol#22946",r[t++]="Maximum length exceeded",ne()),e.layers=e.mlyr,e.allzero=function(){var Ee=r[--t];r[t++]=ae(Ee,T("000000000000",0,Ee.length))},e.allones=function(){var Ee=r[--t];r[t++]=ae(Ee,T("111111111111",0,Ee.length))},e.cws=a(e.ncws),e.m=0,e.c=0;!(e.msgbits.length<=e.m);){if(e.msgbits.length-e.m>=e.bpcw){e.cwb=T(e.msgbits,e.m,h(e.bpcw-1)),e.cwf=T(e.msgbits,h(h(e.m+e.bpcw)-1),1),r[t++]=e.cwb,e.allzero(),r[--t]&&(e.cwf="1",e.m=e.m-1),r[t++]=e.cwb,e.allones(),r[--t]&&(e.cwf="0",e.m=e.m-1);var E=pe(12);K(E,0,e.cwb),K(E,h(e.bpcw-1),e.cwf),e.cwb=T(E,0,e.bpcw)}else{e.cwb=T(e.msgbits,e.m,e.msgbits.length-e.m);var j=Gn(pe(12),"111111111111");K(j,0,e.cwb),e.cwb=T(j,0,e.bpcw),r[t++]=e.cwb,e.allones(),r[--t]&&K(e.cwb,e.cwb.length-1,"0")}e.cw=0;for(var B=0,D=h(e.bpcw-1);B<=D;B+=1)e.i=B,e.cw=h(e.cw+~~Math.pow(2,h(h(e.bpcw-e.i)-1))*h(u(e.cwb,e.i)-48));y(e.cws,e.c,e.cw),e.m=h(e.m+e.bpcw),e.c=e.c+1}e.cws=T(e.cws,0,e.c);var R=u(e.options,"debugcws")!==void 0;if(R&&(r[t++]="bwipp.debugcws#22985",r[t++]=e.cws,ne()),e.rscodes=function(){e.rspm=r[--t],e.rsgf=r[--t],e.rsnc=r[--t],e.rscws=r[--t],r[t++]=1/0,r[t++]=1;for(var Ee=0,ce=h(e.rsgf-1);Ee=e.rsgf){var Ne=r[--t];r[t++]=ti(Ne,e.rspm)}}e.rsalog=a(),e.rslog=a(e.rsgf);for(var ye=1,rt=h(e.rsgf-1);ye<=rt;ye+=1)y(e.rslog,u(e.rsalog,ye),ye);e.rsprod=function(){var nr=r[--t],Ft=r[--t];if(r[t++]=Ft,r[t++]=nr,nr!=0&&Ft!=0){var cr=u(e.rslog,r[--t]),sr=u(e.rsalog,h(cr+u(e.rslog,r[--t]))%h(e.rsgf-1));r[t++]=sr}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var Te=0,Ae=e.rsnc;Te=1;De-=1){e.j=De,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var lt=r[--t],gt=r[--t],At=r[--t];y(r[--t],At,ti(gt,lt))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var St=r[--t],yt=r[--t];y(r[--t],yt,St)}e.nd=e.rscws.length,r[t++]=1/0,Oe(e.rscws);for(var Ct=0,Re=e.rsnc;Ct>>12,(e.mode&3840)>>>8,(e.mode&240)>>>4,e.mode&15]),r[t++]="mode",r[t++]=e.mode,r[t++]=6,r[t++]=16,r[t++]=19,e.rscodes();var N=r[--t];e[r[--t]]=N}if(ae(e.format,"compact")){e.mode=(h(e.layers-1)<<6)+(e.cws.length-1),e.readerinit&&(e.mode=e.mode|32),e.mode=a([(e.mode&240)>>>4,e.mode&15]),r[t++]="mode",r[t++]=e.mode,r[t++]=5,r[t++]=16,r[t++]=19,e.rscodes();var U=r[--t];e[r[--t]]=U}if(ae(e.format,"rune")){e.mode=ft(e.barcode),e.mode=a([(e.mode&240)>>>4,e.mode&15]),r[t++]="mode",r[t++]=e.mode,r[t++]=5,r[t++]=16,r[t++]=19,e.rscodes();var L=r[--t];e[r[--t]]=L,r[t++]=1/0;for(var _=e.mode,V=0,$=_.length;V<$;V++)r[t++]=u(_,V)^10;e.mode=a()}e.modebits=pe(e.mode.length*4);for(var z=0,Q=e.modebits.length-1;z<=Q;z+=1)K(e.modebits,z,"0");for(var G=0,F=e.mode.length-1;G<=F;G+=1){e.i=G;var q=vr(pe(4),u(e.mode,e.i),2);K(e.modebits,4-q.length+4*e.i,q)}if(!cs.__23086__){e=Object.create(e),e.rsparams=a([a([]),a([]),a([]),a([]),a([]),a([]),a([64,67]),a([]),a([256,301]),a([]),a([1024,1033]),a([]),a([4096,4201])]);for(var g in e)e.hasOwnProperty(g)&&(cs.$ctx[g]=e[g]);cs.__23086__=1,e=Object.getPrototypeOf(e)}r[t++]="cws",r[t++]=e.cws,r[t++]=h(e.ncws-e.cws.length),Oe(u(e.rsparams,e.bpcw)),e.rscodes();var W=r[--t];e[r[--t]]=W,ae(e.format,"full")?e.databits=pe(h(e.layers*e.layers*16+e.layers*112)):e.databits=pe(h(e.layers*e.layers*16+e.layers*88));for(var X=0,te=e.databits.length-1;X<=te;X+=1)K(e.databits,X,"0");for(var se=0,de=h(e.ncws-1);se<=de;se+=1){e.i=se;var ee=vr(pe(e.bpcw),u(e.cws,e.i),2);K(e.databits,h(h(h(e.bpcw-ee.length)+e.bpcw*e.i)+h(e.databits.length-e.ncws*e.bpcw)),ee)}e.cmv=function(){var Ee=r[--t],ce=r[--t];r[t++]=h(h(ce-Ee*e.size)+e.mid)},e.lmv=function(){e.lbit=r[--t],e.llyr=r[--t],e.lwid=h(e.fw+e.llyr*4),e.ldir=~~(~~(e.lbit/2)/e.lwid),e.ldir==0&&(r[t++]=h(-~~(h(e.lwid-1)/2)+1+~~(e.lbit/2)%e.lwid),r[t++]=h(h(~~((e.fw-1)/2)+e.llyr*2)+e.lbit%2),e.cmv()),e.ldir==1&&(r[t++]=h(h(~~(e.fw/2)+e.llyr*2)+e.lbit%2),r[t++]=h(~~(h(e.lwid-1)/2)-1-~~(e.lbit/2)%e.lwid),e.cmv()),e.ldir==2&&(r[t++]=-h(-~~(e.lwid/2)+1+~~(e.lbit/2)%e.lwid),r[t++]=-h(h(~~(e.fw/2)+e.llyr*2)+e.lbit%2),e.cmv()),e.ldir==3&&(r[t++]=-h(h(~~((e.fw-1)/2)+e.llyr*2)+e.lbit%2),r[t++]=-h(~~(e.lwid/2)-1-~~(e.lbit/2)%e.lwid),e.cmv())},ae(e.format,"full")?e.fw=12:e.fw=9,e.size=h(h(e.fw+e.layers*4)+2),r[t++]=1/0;for(var fe=0,he=e.size*e.size;feMath.abs(e.j)?r[t++]=Math.abs(e.i):r[t++]=Math.abs(e.j);var Fe=r[--t],Be=r[--t];y(r[--t],Be,h(Fe+1)%2)}}for(var Je=a([a([-(e.fw+1),e.fw,1]),a([-(e.fw+1),e.fw+1,1]),a([-e.fw,e.fw+1,1]),a([e.fw+1,e.fw+1,1]),a([e.fw+1,e.fw,1]),a([e.fw+1,-e.fw,1]),a([e.fw,e.fw+1,0]),a([e.fw+1,-(e.fw+1),0]),a([e.fw,-(e.fw+1),0]),a([-e.fw,-(e.fw+1),0]),a([-(e.fw+1),-(e.fw+1),0]),a([-(e.fw+1),-e.fw,0])]),It=0,Nt=Je.length;It57)&&(r[t++]="bwipp.codeoneStypeNonDigit#23543",r[t++]="S-Type symbols can only contain digits",ne())}),e.barlen=e.barcode.length,e.barlen>18&&(r[t++]="bwipp.codeoneStypeTooLong#23549",r[t++]="Maximum length exceeded",ne()),e.normalize=function(){e.base=r[--t],e.num=r[--t];for(var wt=e.num.length-1;wt>=1;wt-=1){e.i=wt;var Ut=e.num,br=e.i;y(Ut,br-1,h(u(Ut,br-1)+~~(u(e.num,e.i)/e.base))),y(e.num,e.i,u(e.num,e.i)%e.base)}for(;!Fs(u(e.num,0),e.base);)r[t++]=1/0,r[t++]=0,Oe(e.num),e.num=a(),y(e.num,0,h(u(e.num,0)+~~(u(e.num,1)/e.base))),y(e.num,1,u(e.num,1)%e.base);r[t++]=1/0,e.i=!0;for(var wr=e.num,Rn=0,Dn=wr.length;Rn0){e.msgtmp=a(h(h(e.msg.length*2+e.numecis*6)+2)),y(e.msgtmp,0,e.pad),y(e.msgtmp,1,e.eciesc),e.j=2;for(var ni=0,so=e.msg.length-1;ni<=so;ni+=1){var oi=u(e.msg,ni);if(r[t++]=oi,oi<=-1e6){for(var Zn=T(vr(pe(7),-r[--t],10),1,6),Mi=0,bo=Zn.length;Mi=0;mi-=1)e.i=mi,u(e.numremcws,e.i)!=1&&y(e.numremcws,e.i,h(u(e.numremcws,e.i+1)+1));r[t++]=1/0;for(var Vi=0,Oi=e.msglen;Vi=0;Ki-=1){e.i=Ki,e.barchar=u(e.msg,e.i),e.barchar>=48&&e.barchar<=57&&y(e.numD,e.i,h(u(e.numD,e.i+1)+1)),e.barchar==13||e.barchar==42||e.barchar==62?y(e.nextXterm,e.i,0):y(e.nextXterm,e.i,h(u(e.nextXterm,e.i+1)+1));var Wo=u(e.Xvals,e.barchar)!==void 0;Wo?y(e.nextNonX,e.i,h(u(e.nextNonX,e.i+1)+1)):y(e.nextNonX,e.i,0)}r[t++]=1/0;for(var ca=e.nextXterm,Xi=0,Ji=ca.length;Xi1e4&&(t--,r[t++]=1e4)}e.nextXterm=a(),r[t++]=1/0;for(var Zi=e.nextNonX,ea=0,qo=Zi.length;ea1e4&&(t--,r[t++]=1e4)}for(e.nextNonX=a(),e.isD=function(){r[t++]=e.char>=48&&e.char<=57},e.isC=function(){var wt=u(e.CNvals,e.char)!==void 0;r[t++]=wt},e.isT=function(){var wt=u(e.TNvals,e.char)!==void 0;r[t++]=wt},e.isX=function(){var wt=u(e.Xvals,e.char)!==void 0;r[t++]=wt},e.isEA=function(){r[t++]=e.char>127},e.isFN=function(){r[t++]=e.char<0},e.XtermFirst=function(){var wt=r[--t];r[t++]=Fs(u(e.nextXterm,wt),u(e.nextNonX,wt))},e.lookup=function(){e.ac=1,e.cc=2,e.tc=2,e.xc=2,e.bc=3,e.mode==e.A&&(e.ac=0,e.cc=1,e.tc=1,e.xc=1,e.bc=2),e.mode==e.C&&(e.cc=0),e.mode==e.T&&(e.tc=0),e.mode==e.X&&(e.xc=0),e.mode==e.B&&(e.bc=0);for(var wt=0,Ut=1;wt=3){var pc=a([e.ac,e.cc,e.tc,e.xc]);r[t++]=!0;for(var Cl=0,Xl=pc.length;Cl1480&&(t--,r[t++]="bwipp.codeoneTooLong#23745",r[t++]="Maximum length exceeded",ne());var Ut=r[--t];K(e.cws,e.j,Ut),e.j=Ut.length+e.j},e.tobin=function(){var wt=pe(r[--t]);r[t++]=wt;for(var Ut=0,br=wt.length-1;Ut<=br;Ut+=1){var wr=r[--t];y(wr,Ut,48),r[t++]=wr}var Rn=r[--t],Dn=vr(pe(Rn.length),r[--t],2);K(Rn,Rn.length-Dn.length,Dn),r[t++]=Rn,r[t++]=1/0;var Eo=r[--t],Go=r[--t];r[t++]=Eo,Oe(Go,function(){var pa=r[--t];r[t++]=h(pa-48)});var zi=a();r[t++]=zi},e.encA=function(){for(var wt=0,Ut=1;wt=21){e.Dbits=a([1,1,1,1]),e.mode=e.D;break}var br=u(e.numD,e.i);if(br>=13&&h(br+e.i)==e.msglen){e.Dbits=a([1,1,1,1]),e.mode=e.D;break}if(u(e.numD,e.i)>=2){var wr=pe(2);y(wr,0,u(e.msg,e.i)),y(wr,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,wr),e.addtocws(),e.i=e.i+2;break}if(u(e.msg,e.i)==e.fnc1){if(u(e.numD,e.i+1)>=15){r[t++]=u(e.Avals,e.fnc1lD),e.addtocws(),e.i=e.i+1,e.Dbits=a([]),e.mode=e.D;break}var Rn=u(e.numD,e.i+1);if(Rn>=7&&h(h(Rn+e.i)+1)==e.msglen){r[t++]=u(e.Avals,e.fnc1lD),e.addtocws(),e.i=e.i+1,e.Dbits=a([]),e.mode=e.D;break}}r[t++]="newmode",e.lookup();var Dn=r[--t];if(e[r[--t]]=Dn,e.newmode!=e.mode){r[t++]=u(e.Avals,u(a([-1,e.lC,e.lT,e.lX,e.lD,e.lB]),e.newmode)),e.addtocws(),e.mode=e.newmode;break}r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1;break}},e.CTXvalstocws=function(){e.in=r[--t],r[t++]=1/0;for(var wt=0,Ut=e.in.length-1;wt<=Ut;wt+=3){var br=T(e.in,wt,3);r[t++]=0;for(var wr=0,Rn=br.length;wr=12){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),r[t++]=a([e.unlcw]),e.addtocws(),e.mode=e.A;break}var wt=u(e.numD,e.i);if(wt>=8&&h(wt+e.i)==e.msglen){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),r[t++]=a([e.unlcw]),e.addtocws(),e.mode=e.A;break}if(e.mode==e.X){var Ut=u(e.Xvals,u(e.msg,e.i))!==void 0;if(!Ut){r[t++]=T(e.ctxvals,0,e.p),e.CTXvalstocws(),e.addtocws(),(u(e.numremcws,e.j)!=1||u(e.msg,e.i)>127)&&(r[t++]=a([e.unlcw]),e.addtocws()),e.mode=e.A;break}if(e.i+1=2){var Ya=pe(2);y(Ya,0,u(e.msg,e.i)),y(Ya,1,u(e.msg,e.i+1)),r[t++]=u(e.Avals,Ya),e.addtocws(),e.i=e.i+2}else r[t++]=u(e.Avals,u(e.msg,e.i)),e.addtocws(),e.i=e.i+1}},e.encD=function(){for(;;){if(u(e.numD,e.i)<3){if(e.Drem=(8-e.Dbits.length%8)%8,e.remcws=u(e.numremcws,e.j+~~(e.Dbits.length/8)),(h(u(e.numremcws,e.j+~~(e.Dbits.length/8)-1)-1)==0&&e.Drem==0||e.remcws==1&&e.Drem!=0)&&e.i==e.msglen){(e.Drem==4||e.Drem==6)&&(r[t++]=1/0,oe(e.Dbits),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.Dbits=a()),(e.Drem==2||e.Drem==6)&&(r[t++]=1/0,oe(e.Dbits),r[t++]=0,r[t++]=1,e.Dbits=a());break}if((e.i==e.msglen-1&&u(e.numD,e.i)==1||e.i==e.msglen-2&&u(e.numD,e.i)==2)&&e.remcws==1&&e.Drem==0)break;e.i==e.msglen-1&&u(e.numD,e.i)==1&&e.remcws==1&&(e.Drem==4||e.Drem==6)||(r[t++]=1/0,oe(e.Dbits),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.Dbits=a(),e.Drem=(8-e.Dbits.length%8)%8),(e.Drem==4||e.Drem==6)&&(u(e.numD,e.i)>=1?(r[t++]=1/0,oe(e.Dbits),r[t++]=h(h(u(e.msg,e.i)-48)+1),r[t++]=4,e.tobin(),oe(r[--t]),e.Dbits=a(),e.i=e.i+1):(r[t++]=1/0,oe(e.Dbits),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.Dbits=a()),e.Drem=e.Drem-4),e.Drem==2&&(r[t++]=1/0,oe(e.Dbits),r[t++]=0,r[t++]=1,e.Dbits=a(),e.Drem=0);break}r[t++]=1/0,oe(e.Dbits);var wt=T(e.msg,e.i,3);r[t++]=0;for(var Ut=0,br=wt.length;Ut=e.msglen||e[u(a(["encA","encCTX","encCTX","encCTX","encD","encB"]),e.mode)]()===!0););e.cws=T(e.cws,0,e.j)}for(var So=e.metrics,Ir=0,xo=So.length;Ire.dcws&&(e.okay=!1),!e.okay);Ir++);if(e.okay||(r[t++]="bwipp.codeoneNoValidSymbol#24061",r[t++]="Maximum length exceeded",ne()),e.stype){r[t++]=1/0;for(var Bo=0,Li=h(e.dcws-e.cws.length);Bo=e.gf){var gs=r[--t];r[t++]=gs^e.pm}}e.rsalog=a(),e.rslog=a(e.gf);for(var Ht=1,tr=e["gf-1"];Ht<=tr;Ht+=1)y(e.rslog,u(e.rsalog,Ht),Ht);e.rsprod=function(){var wt=r[--t],Ut=r[--t];if(r[t++]=Ut,r[t++]=wt,wt!=0&&Ut!=0){var br=u(e.rslog,r[--t]),wr=u(e.rsalog,h(br+u(e.rslog,r[--t]))%e["gf-1"]);r[t++]=wr}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var Tr=0,on=e.ecpb;Tr=1;Vr-=1){e.j=Vr,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var Yn=r[--t],yn=r[--t],On=r[--t];y(r[--t],On,ti(yn,Yn))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var pn=r[--t],An=r[--t];y(r[--t],An,pn)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var zn=0,Fn=e.cwbs.length-1;zn<=Fn;zn+=1){e.i=zn,r[t++]=1/0,oe(u(e.cwbs,e.i));for(var tn=0,Cn=e.ecpb;tn=uo:ai<=uo;ai+=Xo){if(e.i=ai,e.stype){var Wn=Gn(pe(5),"00000"),Uo=vr(pe(5),u(e.cws,e.i),2);K(Wn,5-Uo.length,Uo),r[t++]=Wn,r[t++]=1/0;var Bi=r[--t],fa=r[--t];r[t++]=Bi,Oe(fa,function(){var wt=r[--t];r[t++]=h(wt-48)}),e.c1=a();var si=Gn(pe(5),"00000"),vs=vr(pe(5),u(e.cws,e.i+1),2);K(si,5-vs.length,vs),r[t++]=si,r[t++]=1/0;var is=r[--t],Va=r[--t];r[t++]=is,Oe(Va,function(){var wt=r[--t];r[t++]=h(wt-48)}),e.c2=a(),r[t++]=1/0,oe(T(e.c1,0,3)),oe(T(e.c2,0,2)),e.top=a(),r[t++]=1/0,oe(T(e.c1,3,2)),oe(T(e.c2,2,3)),e.bot=a()}else{var ra=Gn(pe(8),"00000000"),gr=vr(pe(8),u(e.cws,e.i),2);K(ra,8-gr.length,gr),r[t++]=ra,r[t++]=1/0;var kn=r[--t],mn=r[--t];r[t++]=kn,Oe(mn,function(){var wt=r[--t];r[t++]=h(wt-48)});var ro=a();e.top=T(ro,0,4),e.bot=T(ro,4,4)}K(e.mmat,h(e.r*e.dcol+e.c),e.top),K(e.mmat,h((e.r+1)*e.dcol+e.c),e.bot),e.c=e.c+e.top.length,e.c==e.dcol&&(e.c=0,e.r=e.r+2)}e.mmv=function(){var wt=r[--t],Ut=r[--t];r[t++]=h(Ut+wt*e.cols)},r[t++]=1/0;for(var Qa=0,Ea=e.rows*e.cols;Qa=$s:_a<=$s;_a+=rl){e.j=_a;var xs=e.i%12==0?1:0,nl=a([1,xs]);r[t++]=nl,r[t++]=nl,r[t++]=e.pixs,r[t++]=e.j,r[t++]=e.i,e.mmv();var B1=r[--t],T1=r[--t];if(K(T1,B1,r[--t]),e.i!=h(e.risl-1)){r[t++]=e.pixs,r[t++]=h(h(e.cols-e.j)-2),r[t++]=h(h(e.rows-e.i)-1),e.mmv();var dc=r[--t],_l=r[--t];K(_l,dc,r[--t])}else t--}}if(!Q1.__24228__){e=Object.create(e);var F1=new Map([["A",a([a([12,5])])],["B",a([a([16,7])])],["C",a([a([26,12])])],["D",a([])],["E",a([a([26,23])])],["F",a([a([26,32]),a([70,32]),a([26,34]),a([70,34])])],["G",a([a([27,48]),a([69,48])])],["H",a([a([26,70]),a([66,70]),a([106,70]),a([26,72]),a([66,72]),a([106,72])])],["S-10",a([])],["S-20",a([a([10,4])])],["S-30",a([a([15,4]),a([15,6])])],["T-16",a([a([8,10])])],["T-32",a([a([16,10]),a([16,12])])],["T-48",a([a([24,10]),a([24,12]),a([24,14])])]]);e.blackdotmap=F1;for(var mr in e)e.hasOwnProperty(mr)&&(Q1.$ctx[mr]=e[mr]);Q1.__24228__=1,e=Object.getPrototypeOf(e)}Oe(u(e.blackdotmap,e.vers),function(){var wt=r[--t];r[t++]=e.pixs,oe(wt),e.mmv();var Ut=r[--t];y(r[--t],Ut,1)}),e.j=0;for(var yl=0,Mt=e.pixs.length-1;yl<=Mt;yl+=1)e.i=yl,u(e.pixs,e.i)==-1&&(y(e.pixs,e.i,u(e.mmat,e.j)),e.j=e.j+1);r[t++]=1/0,r[t++]="ren",r[t++]="renmatrix",r[t++]="pixs",r[t++]=e.pixs,r[t++]="pixx",r[t++]=e.cols,r[t++]="pixy",r[t++]=e.rows,r[t++]="height",r[t++]=e.rows/72*2,r[t++]="width",r[t++]=e.cols/72*2,(e.stype||e.ttype)&&(r[t++]="borderleft",r[t++]=1,r[t++]="borderright",r[t++]=1,r[t++]="bordertop",r[t++]=0,r[t++]="borderbottom",r[t++]=1),r[t++]="opt",r[t++]=e.options;var Wt=Tt();r[t++]=Wt,e.dontdraw||Qt(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function Yu(){if(e=Object.create(e),e.dontdraw=!1,e.version="unset",e.eclevel="L2",e.parse=!1,e.parsefnc=!1,e.mask=-1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],ae(e.barcode,"")&&(r[t++]="bwipp.hanxinEmptyData#24307",r[t++]="The data must not be empty",ne()),it(e.version,"unset")){var n=e.version.length,o=n>=1&&n<=2;if(r[t++]=o,o){t--;var i=e.version;r[t++]=!0;for(var s=0,l=i.length;s57)&&(t--,r[t++]=!1)}var d=r[--t];if(r[t++]=d,d){t--;var f=ft(e.version);r[t++]=f>=1&&f<=84}}fr(r[--t])&&(r[t++]="bwipp.hanxinInvalidVersion#24318",r[t++]="Valid versions are 1 to 84",ne())}var p=e.eclevel.length==2;if(r[t++]=p,p&&(t--,r[t++]=T(e.eclevel,0,1),ae("L","L"))){t--;var m=u(e.eclevel,1)-48;r[t++]=m>=1&&m<=4}fr(r[--t])&&(r[t++]="bwipp.hanxinInvalidErrorCorrectionLevel#24328",r[t++]="Valid error correction levels are L1 to L4",ne()),e.mask!=-1&&(e.mask<1||e.mask>4)&&(r[t++]="bwipp.hanxinInvalidErrorCorrectionLevel#24333",r[t++]="The valid masks are 1 to 4",ne()),yr(Yu);var g=new Map([["parse",e.parse],["parsefnc",e.parsefnc]]);e.fncvals=g,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var v=r[--t];e[r[--t]]=v,e.msglen=e.msg.length,e.tobin=function(){var zt=pe(r[--t]);r[t++]=zt;for(var ar=0,mr=zt.length-1;ar<=mr;ar+=1){var Cr=r[--t];y(Cr,ar,48),r[t++]=Cr}var Yr=r[--t],Xt=vr(pe(Yr.length),r[--t],2);K(Yr,Yr.length-Xt.length,Xt),r[t++]=Yr},e.bits=pe(17+e.msglen*8),K(e.bits,0,"0011"),r[t++]=e.bits,r[t++]=4,r[t++]=e.msglen,r[t++]=13,e.tobin();var w=r[--t],A=r[--t];K(r[--t],A,w);for(var k=0,C=e.msglen-1;k<=C;k+=1){e.i=k,r[t++]=e.bits,r[t++]=17+e.i*8,r[t++]=u(e.msg,e.i),r[t++]=8,e.tobin();var M=r[--t],S=r[--t];K(r[--t],S,M)}if(!Yu.__24704__){e=Object.create(e);var I=a([0,-1,-1]);e.metrics=a([a(["1",23,-1,0,205,a([1,21,4]),a([0,-1,-1]),a([0,-1,-1]),a([1,17,8]),a([0,-1,-1]),a([0,-1,-1]),a([1,13,12]),a([0,-1,-1]),a([0,-1,-1]),a([1,9,16]),a([0,-1,-1]),a([0,-1,-1])]),a(["2",25,-1,0,301,a([1,31,6]),a([0,-1,-1]),a([0,-1,-1]),a([1,25,12]),a([0,-1,-1]),a([0,-1,-1]),a([1,19,18]),a([0,-1,-1]),a([0,-1,-1]),a([1,15,22]),a([0,-1,-1]),a([0,-1,-1])]),a(["3",27,-1,0,405,a([1,42,8]),a([0,-1,-1]),a([0,-1,-1]),a([1,34,16]),a([0,-1,-1]),a([0,-1,-1]),a([1,26,24]),a([0,-1,-1]),a([0,-1,-1]),a([1,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["4",29,14,1,439,a([1,46,8]),a([0,-1,-1]),a([0,-1,-1]),a([1,38,16]),a([0,-1,-1]),a([0,-1,-1]),a([1,30,24]),a([0,-1,-1]),a([0,-1,-1]),a([1,22,32]),a([0,-1,-1]),a([0,-1,-1])]),a(["5",31,16,1,555,a([1,57,12]),a([0,-1,-1]),a([0,-1,-1]),a([1,49,20]),a([0,-1,-1]),a([0,-1,-1]),a([1,37,32]),a([0,-1,-1]),a([0,-1,-1]),a([1,14,20]),a([1,13,22]),a([0,-1,-1])]),a(["6",33,16,1,675,a([1,70,14]),I,a([0,-1,-1]),a([1,58,26]),a([0,-1,-1]),a([0,-1,-1]),a([1,24,20]),a([1,22,18]),a([0,-1,-1]),a([1,16,24]),a([1,18,26]),a([0,-1,-1])]),a(["7",35,17,1,805,a([1,84,16]),a([0,-1,-1]),a([0,-1,-1]),a([1,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([1,26,22]),a([1,28,24]),a([0,-1,-1]),a([2,14,20]),a([1,12,20]),a([0,-1,-1])]),a(["8",37,18,1,943,a([1,99,18]),a([0,-1,-1]),a([0,-1,-1]),a([1,40,18]),a([1,41,18]),a([0,-1,-1]),a([1,31,26]),a([1,32,28]),a([0,-1,-1]),a([2,16,24]),a([1,15,22]),a([0,-1,-1])]),a(["9",39,19,1,1089,a([1,114,22]),a([0,-1,-1]),a([0,-1,-1]),a([2,48,20]),a([0,-1,-1]),a([0,-1,-1]),a([2,24,20]),a([1,26,22]),a([0,-1,-1]),a([2,18,28]),a([1,18,26]),a([0,-1,-1])]),a(["10",41,20,1,1243,a([1,131,24]),a([0,-1,-1]),a([0,-1,-1]),a([1,52,22]),a([1,57,24]),a([0,-1,-1]),a([2,27,24]),a([1,29,24]),a([0,-1,-1]),a([2,21,32]),a([1,19,30]),a([0,-1,-1])]),a(["11",43,14,2,1289,a([1,135,26]),a([0,-1,-1]),a([0,-1,-1]),a([1,56,24]),a([1,57,24]),a([0,-1,-1]),a([2,28,24]),a([1,31,26]),a([0,-1,-1]),a([2,22,32]),a([1,21,32]),a([0,-1,-1])]),a(["12",45,15,2,1455,a([1,153,28]),a([0,-1,-1]),a([0,-1,-1]),a([1,62,26]),a([1,65,28]),a([0,-1,-1]),a([2,32,28]),a([1,33,28]),a([0,-1,-1]),a([3,17,26]),a([1,22,30]),a([0,-1,-1])]),a(["13",47,16,2,1629,a([1,86,16]),a([1,85,16]),a([0,-1,-1]),a([1,71,30]),a([1,72,30]),a([0,-1,-1]),a([2,37,32]),a([1,35,30]),a([0,-1,-1]),a([3,20,30]),a([1,21,32]),a([0,-1,-1])]),a(["14",49,16,2,1805,a([1,94,18]),a([1,95,18]),a([0,-1,-1]),a([2,51,22]),a([1,55,24]),a([0,-1,-1]),a([3,30,26]),a([1,31,26]),a([0,-1,-1]),a([4,18,28]),a([1,17,24]),a([0,-1,-1])]),a(["15",51,17,2,1995,a([1,104,20]),a([1,105,20]),a([0,-1,-1]),a([2,57,24]),a([1,61,26]),a([0,-1,-1]),a([3,33,28]),a([1,36,30]),a([0,-1,-1]),a([4,20,30]),a([1,19,30]),a([0,-1,-1])]),a(["16",53,17,2,2187,a([1,115,22]),a([1,114,22]),a([0,-1,-1]),a([2,65,28]),a([1,61,26]),a([0,-1,-1]),a([3,38,32]),a([1,33,30]),a([0,-1,-1]),a([5,19,28]),a([1,14,24]),a([0,-1,-1])]),a(["17",55,18,2,2393,a([1,126,24]),a([1,125,24]),a([0,-1,-1]),a([2,70,30]),a([1,69,30]),a([0,-1,-1]),a([4,33,28]),a([1,29,26]),a([0,-1,-1]),a([5,20,30]),a([1,19,30]),a([0,-1,-1])]),a(["18",57,19,2,2607,a([1,136,26]),a([1,137,26]),a([0,-1,-1]),a([3,56,24]),a([1,59,26]),a([0,-1,-1]),a([5,35,30]),a([0,-1,-1]),a([0,-1,-1]),a([6,18,28]),a([1,21,28]),a([0,-1,-1])]),a(["19",59,20,2,2829,a([1,148,28]),a([1,149,28]),a([0,-1,-1]),a([3,61,26]),a([1,64,28]),a([0,-1,-1]),a([7,24,20]),a([1,23,22]),a([0,-1,-1]),a([6,20,30]),a([1,21,32]),a([0,-1,-1])]),a(["20",61,20,2,3053,a([3,107,20]),a([0,-1,-1]),a([0,-1,-1]),a([3,65,28]),a([1,72,30]),a([0,-1,-1]),a([7,26,22]),a([1,23,22]),a([0,-1,-1]),a([7,19,28]),a([1,20,32]),a([0,-1,-1])]),a(["21",63,21,2,3291,a([3,115,22]),a([0,-1,-1]),a([0,-1,-1]),a([4,56,24]),a([1,63,28]),a([0,-1,-1]),a([7,28,24]),a([1,25,22]),a([0,-1,-1]),a([8,18,28]),a([1,21,22]),a([0,-1,-1])]),a(["22",65,16,3,3383,a([2,116,22]),a([1,122,24]),a([0,-1,-1]),a([4,56,24]),a([1,72,30]),a([0,-1,-1]),a([7,28,24]),a([1,32,26]),a([0,-1,-1]),a([8,18,28]),a([1,24,30]),a([0,-1,-1])]),a(["23",67,17,3,3631,a([3,127,24]),a([0,-1,-1]),a([0,-1,-1]),a([5,51,22]),a([1,62,26]),a([0,-1,-1]),a([7,30,26]),a([1,35,26]),a([0,-1,-1]),a([8,20,30]),a([1,21,32]),a([0,-1,-1])]),a(["24",69,17,3,3887,a([2,135,26]),a([1,137,26]),a([0,-1,-1]),a([5,56,24]),a([1,59,26]),a([0,-1,-1]),a([7,33,28]),a([1,30,28]),a([0,-1,-1]),a([11,16,24]),a([1,19,26]),a([0,-1,-1])]),a(["25",71,18,3,4151,a([3,105,20]),a([1,121,22]),a([0,-1,-1]),a([5,61,26]),a([1,57,26]),a([0,-1,-1]),a([9,28,24]),a([1,28,22]),a([0,-1,-1]),a([10,19,28]),a([1,18,30]),a([0,-1,-1])]),a(["26",73,18,3,4423,a([2,157,30]),a([1,150,28]),a([0,-1,-1]),a([5,65,28]),a([1,61,26]),a([0,-1,-1]),a([8,33,28]),a([1,34,30]),a([0,-1,-1]),a([10,19,28]),a([2,15,26]),a([0,-1,-1])]),a(["27",75,19,3,4703,a([3,126,24]),a([1,115,22]),a([0,-1,-1]),a([7,51,22]),a([1,54,22]),a([0,-1,-1]),a([8,35,30]),a([1,37,30]),a([0,-1,-1]),a([15,15,22]),a([1,10,22]),a([0,-1,-1])]),a(["28",77,19,3,4991,a([4,105,20]),a([1,103,20]),a([0,-1,-1]),a([7,56,24]),a([1,45,18]),a([0,-1,-1]),a([10,31,26]),a([1,27,26]),a([0,-1,-1]),a([10,17,26]),a([3,20,28]),a([1,21,28])]),a(["29",79,20,3,5287,a([3,139,26]),a([1,137,28]),a([0,-1,-1]),a([6,66,28]),a([1,66,30]),a([0,-1,-1]),a([9,36,30]),a([1,34,32]),a([0,-1,-1]),a([13,19,28]),a([1,17,32]),a([0,-1,-1])]),a(["30",81,20,3,5591,a([6,84,16]),a([1,82,16]),a([0,-1,-1]),a([6,70,30]),a([1,68,30]),a([0,-1,-1]),a([7,35,30]),a([3,33,28]),a([1,32,28]),a([13,20,30]),a([1,20,28]),a([0,-1,-1])]),a(["31",83,21,3,5903,a([5,105,20]),a([1,94,18]),a([0,-1,-1]),a([6,74,32]),a([1,71,30]),a([0,-1,-1]),a([11,33,28]),a([1,34,32]),a([0,-1,-1]),a([13,19,28]),a([3,16,26]),a([0,-1,-1])]),a(["32",85,17,4,6033,a([4,127,24]),a([1,126,24]),a([0,-1,-1]),a([7,66,28]),a([1,66,30]),a([0,-1,-1]),a([12,30,24]),a([1,24,28]),a([1,24,30]),a([15,19,28]),a([1,17,32]),a([0,-1,-1])]),a(["33",87,17,4,6353,a([7,84,16]),a([1,78,16]),a([0,-1,-1]),a([7,70,30]),a([1,66,28]),a([0,-1,-1]),a([12,33,28]),a([1,32,30]),a([0,-1,-1]),a([14,21,32]),a([1,24,28]),a([0,-1,-1])]),a(["34",89,18,4,6689,a([5,117,22]),a([1,117,24]),a([0,-1,-1]),a([8,66,28]),a([1,58,26]),a([0,-1,-1]),a([11,38,32]),a([1,34,32]),a([0,-1,-1]),a([15,20,30]),a([2,17,26]),a([0,-1,-1])]),a(["35",91,18,4,7025,a([4,148,28]),a([1,146,28]),a([0,-1,-1]),a([8,68,30]),a([1,70,24]),a([0,-1,-1]),a([10,36,32]),a([3,38,28]),a([0,-1,-1]),a([16,19,28]),a([3,16,26]),a([0,-1,-1])]),a(["36",93,19,4,7377,a([4,126,24]),a([2,135,26]),a([0,-1,-1]),a([8,70,28]),a([2,43,26]),a([0,-1,-1]),a([13,32,28]),a([2,41,30]),a([0,-1,-1]),a([17,19,28]),a([3,15,26]),a([0,-1,-1])]),a(["37",95,19,4,7729,a([5,136,26]),a([1,132,24]),a([0,-1,-1]),a([5,67,30]),a([4,68,28]),a([1,69,28]),a([14,35,30]),a([1,32,24]),a([0,-1,-1]),a([18,18,26]),a([3,16,28]),a([1,14,28])]),a(["38",97,19,4,8089,a([3,142,26]),a([3,141,28]),a([0,-1,-1]),a([8,70,30]),a([1,73,32]),a([1,74,32]),a([12,34,30]),a([3,34,26]),a([1,35,28]),a([18,21,32]),a([1,27,30]),a([0,-1,-1])]),a(["39",99,20,4,8465,a([5,116,22]),a([2,103,20]),a([1,102,20]),a([9,74,32]),a([1,74,30]),a([0,-1,-1]),a([14,34,28]),a([2,32,32]),a([1,32,30]),a([19,21,32]),a([1,25,26]),a([0,-1,-1])]),a(["40",101,20,4,8841,a([7,116,22]),a([1,117,22]),a([0,-1,-1]),a([11,65,28]),a([1,58,24]),a([0,-1,-1]),a([15,38,32]),a([1,27,28]),a([0,-1,-1]),a([20,20,30]),a([1,20,32]),a([1,21,32])]),a(["41",103,17,5,9009,a([6,136,26]),a([1,130,24]),a([0,-1,-1]),a([11,66,28]),a([1,62,30]),a([0,-1,-1]),a([14,34,28]),a([3,34,32]),a([1,30,30]),a([18,20,30]),a([3,20,28]),a([2,15,26])]),a(["42",105,17,5,9401,a([5,105,20]),a([2,115,22]),a([2,116,22]),a([10,75,32]),a([1,73,32]),a([0,-1,-1]),a([16,38,32]),a([1,27,28]),a([0,-1,-1]),a([22,19,28]),a([2,16,30]),a([1,19,30])]),a(["43",107,18,5,9799,a([6,147,28]),a([1,146,28]),a([0,-1,-1]),a([11,66,28]),a([2,65,30]),a([0,-1,-1]),a([18,33,28]),a([2,33,30]),a([0,-1,-1]),a([22,21,32]),a([1,28,30]),a([0,-1,-1])]),a(["44",109,18,5,10207,a([6,116,22]),a([3,125,24]),a([0,-1,-1]),a([11,75,32]),a([1,68,30]),a([0,-1,-1]),a([13,35,28]),a([6,34,32]),a([1,30,30]),a([23,21,32]),a([1,26,30]),a([0,-1,-1])]),a(["45",111,18,5,10623,a([7,105,20]),a([4,95,18]),a([0,-1,-1]),a([12,67,28]),a([1,63,30]),a([1,62,32]),a([21,31,26]),a([2,33,32]),a([0,-1,-1]),a([23,21,32]),a([2,24,30]),a([0,-1,-1])]),a(["46",113,19,5,11045,a([10,116,22]),a([0,-1,-1]),a([0,-1,-1]),a([12,74,32]),a([1,78,30]),a([0,-1,-1]),a([18,37,32]),a([1,39,30]),a([1,41,28]),a([25,21,32]),a([1,27,28]),a([0,-1,-1])]),a(["47",115,19,5,11477,a([5,126,24]),a([4,115,22]),a([1,114,22]),a([12,67,28]),a([2,66,32]),a([1,68,30]),a([21,35,30]),a([1,39,30]),a([0,-1,-1]),a([26,21,32]),a([1,28,28]),a([0,-1,-1])]),a(["48",117,19,5,11917,a([9,126,24]),a([1,117,22]),a([0,-1,-1]),a([13,75,32]),a([1,68,30]),a([0,-1,-1]),a([20,35,30]),a([3,35,28]),a([0,-1,-1]),a([27,21,32]),a([1,28,30]),a([0,-1,-1])]),a(["49",119,17,6,12111,a([9,126,24]),a([1,137,26]),a([0,-1,-1]),a([13,71,30]),a([2,68,32]),a([0,-1,-1]),a([20,37,32]),a([1,39,28]),a([1,38,28]),a([24,20,32]),a([5,25,28]),a([0,-1,-1])]),a(["50",121,17,6,12559,a([8,147,28]),a([1,141,28]),a([0,-1,-1]),a([10,73,32]),a([4,74,30]),a([1,73,30]),a([16,36,32]),a([6,39,30]),a([1,37,30]),a([27,21,32]),a([3,20,26]),a([0,-1,-1])]),a(["51",123,18,6,13025,a([9,137,26]),a([1,135,26]),a([0,-1,-1]),a([12,70,30]),a([4,75,32]),a([0,-1,-1]),a([24,35,30]),a([1,40,28]),a([0,-1,-1]),a([23,20,32]),a([8,24,30]),a([0,-1,-1])]),a(["52",125,18,6,13489,a([14,95,18]),a([1,86,18]),a([0,-1,-1]),a([13,73,32]),a([3,77,30]),a([0,-1,-1]),a([24,35,30]),a([2,35,28]),a([0,-1,-1]),a([26,21,32]),a([5,21,30]),a([1,23,30])]),a(["53",127,18,6,13961,a([9,147,28]),a([1,142,28]),a([0,-1,-1]),a([10,73,30]),a([6,70,32]),a([1,71,32]),a([25,35,30]),a([2,34,26]),a([0,-1,-1]),a([29,21,32]),a([4,22,30]),a([0,-1,-1])]),a(["54",129,18,6,14441,a([11,126,24]),a([1,131,24]),a([0,-1,-1]),a([16,74,32]),a([1,79,30]),a([0,-1,-1]),a([25,38,32]),a([1,25,30]),a([0,-1,-1]),a([33,21,32]),a([1,28,28]),a([0,-1,-1])]),a(["55",131,19,6,14939,a([14,105,20]),a([1,99,18]),a([0,-1,-1]),a([19,65,28]),a([1,72,28]),a([0,-1,-1]),a([24,37,32]),a([2,40,30]),a([1,41,30]),a([31,21,32]),a([4,24,32]),a([0,-1,-1])]),a(["56",133,19,6,15435,a([10,147,28]),a([1,151,28]),a([0,-1,-1]),a([15,71,30]),a([3,71,32]),a([1,73,32]),a([24,37,32]),a([3,38,30]),a([1,39,30]),a([36,19,30]),a([3,29,26]),a([0,-1,-1])]),a(["57",135,19,6,15939,a([15,105,20]),a([1,99,18]),a([0,-1,-1]),a([19,70,30]),a([1,64,28]),a([0,-1,-1]),a([27,38,32]),a([2,25,26]),a([0,-1,-1]),a([38,20,30]),a([2,18,28]),a([0,-1,-1])]),a(["58",137,17,7,16171,a([14,105,20]),a([1,113,22]),a([1,114,22]),a([17,67,30]),a([3,92,32]),a([0,-1,-1]),a([30,35,30]),a([1,41,30]),a([0,-1,-1]),a([36,21,32]),a([1,26,30]),a([1,27,30])]),a(["59",139,17,7,16691,a([11,146,28]),a([1,146,26]),a([0,-1,-1]),a([20,70,30]),a([1,60,26]),a([0,-1,-1]),a([29,38,32]),a([1,24,32]),a([0,-1,-1]),a([40,20,30]),a([2,17,26]),a([0,-1,-1])]),a(["60",141,18,7,17215,a([3,137,26]),a([1,136,26]),a([10,126,24]),a([22,65,28]),a([1,75,30]),a([0,-1,-1]),a([30,37,32]),a([1,51,30]),a([0,-1,-1]),a([42,20,30]),a([1,21,30]),a([0,-1,-1])]),a(["61",143,18,7,17751,a([12,126,24]),a([2,118,22]),a([1,116,22]),a([19,74,32]),a([1,74,30]),a([1,72,28]),a([30,38,32]),a([2,29,30]),a([0,-1,-1]),a([39,20,32]),a([2,37,26]),a([1,38,26])]),a(["62",145,18,7,18295,a([12,126,24]),a([3,136,26]),a([0,-1,-1]),a([21,70,30]),a([2,65,28]),a([0,-1,-1]),a([34,35,30]),a([1,44,32]),a([0,-1,-1]),a([42,20,30]),a([2,19,28]),a([2,18,28])]),a(["63",147,18,7,18847,a([12,126,24]),a([3,117,22]),a([1,116,22]),a([25,61,26]),a([2,62,28]),a([0,-1,-1]),a([34,35,30]),a([1,40,32]),a([1,41,32]),a([45,20,30]),a([1,20,32]),a([1,21,32])]),a(["64",149,19,7,19403,a([15,105,20]),a([2,115,22]),a([2,116,22]),a([25,65,28]),a([1,72,28]),a([0,-1,-1]),a([18,35,30]),a([17,37,32]),a([1,50,32]),a([42,20,30]),a([6,19,28]),a([1,15,28])]),a(["65",151,19,7,19971,a([19,105,20]),a([1,101,20]),a([0,-1,-1]),a([33,51,22]),a([1,65,22]),a([0,-1,-1]),a([40,33,28]),a([1,28,28]),a([0,-1,-1]),a([49,20,30]),a([1,18,28]),a([0,-1,-1])]),a(["66",153,17,8,20229,a([18,105,20]),a([2,117,22]),a([0,-1,-1]),a([26,65,28]),a([1,80,30]),a([0,-1,-1]),a([35,35,30]),a([3,35,28]),a([1,36,28]),a([52,18,28]),a([2,38,30]),a([0,-1,-1])]),a(["67",155,17,8,20805,a([26,84,16]),a([0,-1,-1]),a([0,-1,-1]),a([26,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([45,31,26]),a([1,9,26]),a([0,-1,-1]),a([52,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["68",157,17,8,21389,a([16,126,24]),a([1,114,22]),a([1,115,22]),a([23,70,30]),a([3,65,28]),a([1,66,28]),a([40,35,30]),a([1,43,30]),a([0,-1,-1]),a([46,20,30]),a([7,19,28]),a([1,16,28])]),a(["69",159,18,8,21993,a([19,116,22]),a([1,105,22]),a([0,-1,-1]),a([20,70,30]),a([7,66,28]),a([1,63,28]),a([40,35,30]),a([1,42,32]),a([1,43,32]),a([54,20,30]),a([1,19,30]),a([0,-1,-1])]),a(["70",161,18,8,22593,a([17,126,24]),a([2,115,22]),a([0,-1,-1]),a([24,70,30]),a([4,74,32]),a([0,-1,-1]),a([48,31,26]),a([2,18,26]),a([0,-1,-1]),a([54,19,28]),a([6,15,26]),a([1,14,26])]),a(["71",163,18,8,23201,a([29,84,16]),a([0,-1,-1]),a([0,-1,-1]),a([29,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([6,34,30]),a([3,36,30]),a([38,33,28]),a([58,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["72",165,18,8,23817,a([16,147,28]),a([1,149,28]),a([0,-1,-1]),a([31,66,28]),a([1,37,26]),a([0,-1,-1]),a([48,33,28]),a([1,23,26]),a([0,-1,-1]),a([53,20,30]),a([6,19,28]),a([1,17,28])]),a(["73",167,19,8,24453,a([20,115,22]),a([2,134,24]),a([0,-1,-1]),a([29,66,28]),a([2,56,26]),a([2,57,26]),a([45,36,30]),a([2,15,28]),a([0,-1,-1]),a([59,20,30]),a([2,21,32]),a([0,-1,-1])]),a(["74",169,19,8,25085,a([17,147,28]),a([1,134,26]),a([0,-1,-1]),a([26,70,30]),a([5,75,32]),a([0,-1,-1]),a([47,35,30]),a([1,48,32]),a([0,-1,-1]),a([64,18,28]),a([2,33,30]),a([1,35,30])]),a(["75",171,17,9,25373,a([22,115,22]),a([1,133,24]),a([0,-1,-1]),a([33,65,28]),a([1,74,28]),a([0,-1,-1]),a([43,36,30]),a([5,27,28]),a([1,30,28]),a([57,20,30]),a([5,21,32]),a([1,24,32])]),a(["76",173,17,9,26021,a([18,136,26]),a([2,142,26]),a([0,-1,-1]),a([33,66,28]),a([2,49,26]),a([0,-1,-1]),a([48,35,30]),a([2,38,28]),a([0,-1,-1]),a([64,20,30]),a([1,20,32]),a([0,-1,-1])]),a(["77",175,17,9,26677,a([19,126,24]),a([2,135,26]),a([1,136,26]),a([32,66,28]),a([2,55,26]),a([2,56,26]),a([49,36,30]),a([2,18,32]),a([0,-1,-1]),a([65,18,28]),a([5,27,30]),a([1,29,30])]),a(["78",177,18,9,27335,a([20,137,26]),a([1,130,26]),a([0,-1,-1]),a([30,75,32]),a([2,71,32]),a([0,-1,-1]),a([46,35,30]),a([6,39,32]),a([0,-1,-1]),a([3,12,30]),a([70,19,28]),a([0,-1,-1])]),a(["79",179,18,9,28007,a([20,147,28]),a([0,-1,-1]),a([0,-1,-1]),a([35,70,30]),a([0,-1,-1]),a([0,-1,-1]),a([49,35,30]),a([5,35,28]),a([0,-1,-1]),a([70,20,30]),a([0,-1,-1]),a([0,-1,-1])]),a(["80",181,18,9,28687,a([21,136,26]),a([1,155,28]),a([0,-1,-1]),a([34,70,30]),a([1,64,28]),a([1,65,28]),a([54,35,30]),a([1,45,30]),a([0,-1,-1]),a([68,20,30]),a([3,18,28]),a([1,19,28])]),a(["81",183,18,9,29375,a([19,126,24]),a([5,115,22]),a([1,114,22]),a([33,70,30]),a([3,65,28]),a([1,64,28]),a([52,35,30]),a([3,41,32]),a([1,40,32]),a([67,20,30]),a([5,21,32]),a([1,24,32])]),a(["82",185,18,9,30071,a([2,150,28]),a([21,136,26]),a([0,-1,-1]),a([32,70,30]),a([6,65,28]),a([0,-1,-1]),a([52,38,32]),a([2,27,32]),a([0,-1,-1]),a([73,20,30]),a([2,22,32]),a([0,-1,-1])]),a(["83",187,17,10,30387,a([21,126,24]),a([4,136,26]),a([0,-1,-1]),a([30,74,32]),a([6,73,30]),a([0,-1,-1]),a([54,35,30]),a([4,40,32]),a([0,-1,-1]),a([75,20,30]),a([1,20,28]),a([0,-1,-1])]),a(["84",189,17,10,31091,a([30,105,20]),a([1,114,22]),a([0,-1,-1]),a([3,45,22]),a([55,47,20]),a([0,-1,-1]),a([2,26,26]),a([62,33,28]),a([0,-1,-1]),a([79,18,28]),a([4,33,30]),a([0,-1,-1])])]);for(var E in e)e.hasOwnProperty(E)&&(Yu.$ctx[E]=e[E]);Yu.__24704__=1,e=Object.getPrototypeOf(e)}e.eclval=u(e.eclevel,1)-49;for(var j=e.metrics,B=0,D=j.length;Be.dmod&&(e.okay=!1),e.okay)break}e.okay||(r[t++]="bwipp.hanxinNoValidSymbol#24728",r[t++]="Maximum length exceeded or invalid content",ne()),e.version=e.vers,e.msgbits=e.bits,e.e1nb=u(u(e.ecbs,0),0),e.e2nb=u(u(e.ecbs,1),0),e.e3nb=u(u(e.ecbs,2),0),e.e1dcws=u(u(e.ecbs,0),1),e.e2dcws=u(u(e.ecbs,1),1),e.e3dcws=u(u(e.ecbs,2),1),e.e1ecws=u(u(e.ecbs,0),2),e.e2ecws=u(u(e.ecbs,1),2),e.e3ecws=u(u(e.ecbs,2),2),e.pad=pe(e.dmod);for(var $=0,z=e.pad.length-1;$<=z;$+=1)y(e.pad,$,48);K(e.pad,0,e.msgbits),e.cws=a(e.dcws);for(var Q=0,G=e.cws.length-1;Q<=G;Q+=1){e.c=Q,e.cwb=T(e.pad,e.c*8,8),e.cw=0;for(var F=0;F<=7;F+=1)e.i=F,e.cw=h(e.cw+~~Math.pow(2,8-e.i-1)*h(u(e.cwb,e.i)-48));y(e.cws,e.c,e.cw)}e.rscodes=function(){e.rspm=r[--t],e.rsgf=r[--t],e.rsnc=r[--t],e.rscws=r[--t],r[t++]=1/0,r[t++]=1;for(var zt=0,ar=h(e.rsgf-1);zt=e.rsgf){var Yr=r[--t];r[t++]=ti(Yr,e.rspm)}}e.rsalog=a(),e.rslog=a(e.rsgf);for(var Xt=1,en=h(e.rsgf-1);Xt<=en;Xt+=1)y(e.rslog,u(e.rsalog,Xt),Xt);e.rsprod=function(){var Mi=r[--t],bo=r[--t];if(r[t++]=bo,r[t++]=Mi,Mi!=0&&bo!=0){var hi=u(e.rslog,r[--t]),Oo=u(e.rsalog,h(hi+u(e.rslog,r[--t]))%h(e.rsgf-1));r[t++]=Oo}else t-=2,r[t++]=0},r[t++]=1/0,r[t++]=1;for(var Sr=0,Kr=e.rsnc;Sr=1;er-=1){e.j=er,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var jn=r[--t],qr=r[--t],vo=r[--t];y(r[--t],vo,ti(qr,jn))}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var Or=r[--t],_n=r[--t];y(r[--t],_n,Or)}e.nd=e.rscws.length,r[t++]=1/0,Oe(e.rscws);for(var Nr=0,jo=e.rsnc;Nr12){var at=Ge;Ge=Ve,Ve=at}for(var We=0,ue=Ve;We<=ue;We+=1)for(var Le=We,$e=e.ncws-1;Le<=$e;Le+=13)if(r[t++]=Le,Le0&&(e.pad=a(e.cws.length+1),K(e.pad,0,e.cws),y(e.pad,e.pad.length-1,0),e.cws=e.pad),r[t++]=1/0;for(var ot=0,st=e.size*e.size;ot=e.size);){for(var Ze=0,dt=h(e.size-1);Ze<=dt;Ze+=1)if(e.j=Ze,h(e.j+e.alnr)=Fe:mt<=Fe;mt+=pt){if(e.i=mt,~~(e.i/e.alnk)%2!=0){r[t++]=e.pixs,r[t++]=0,r[t++]=e.i-1,e.trmv();var Be=r[--t];y(r[--t],Be,0),r[t++]=e.pixs,r[t++]=0,r[t++]=e.i+1,e.trmv();var Je=r[--t];y(r[--t],Je,0),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i-1,e.trmv();var It=r[--t];y(r[--t],It,0),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i,e.trmv();var Nt=r[--t];y(r[--t],Nt,0),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i+1,e.trmv();var ht=r[--t];y(r[--t],ht,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=0,e.trmv();var xt=r[--t];y(r[--t],xt,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=0,e.trmv();var tt=r[--t];y(r[--t],tt,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=1,e.trmv();var Y=r[--t];y(r[--t],Y,0),r[t++]=e.pixs,r[t++]=e.i,r[t++]=1,e.trmv();var re=r[--t];y(r[--t],re,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=1,e.trmv();var ie=r[--t];y(r[--t],ie,0)}r[t++]=e.pixs,r[t++]=h(e.size-1),r[t++]=e.i-1,e.trmv();var le=r[--t];if(u(r[--t],le)!=1){r[t++]=e.pixs,r[t++]=h(e.size-1),r[t++]=e.i-1,e.trmv();var ge=r[--t];y(r[--t],ge,0),r[t++]=e.pixs,r[t++]=h(e.size-2),r[t++]=e.i-1,e.trmv();var Pe=r[--t];y(r[--t],Pe,0),r[t++]=e.pixs,r[t++]=h(e.size-2),r[t++]=e.i,e.trmv();var me=r[--t];y(r[--t],me,0),r[t++]=e.pixs,r[t++]=h(e.size-2),r[t++]=e.i+1,e.trmv();var Ee=r[--t];y(r[--t],Ee,0),r[t++]=e.pixs,r[t++]=h(e.size-1),r[t++]=e.i+1,e.trmv();var ce=r[--t];y(r[--t],ce,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=h(e.size-1),e.trmv();var je=r[--t];y(r[--t],je,0),r[t++]=e.pixs,r[t++]=e.i-1,r[t++]=h(e.size-2),e.trmv();var He=r[--t];y(r[--t],He,0),r[t++]=e.pixs,r[t++]=e.i,r[t++]=h(e.size-2),e.trmv();var Ne=r[--t];y(r[--t],Ne,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=h(e.size-2),e.trmv();var ye=r[--t];y(r[--t],ye,0),r[t++]=e.pixs,r[t++]=e.i+1,r[t++]=h(e.size-1),e.trmv();var rt=r[--t];y(r[--t],rt,0)}}}if(!Yu.__24936__){e=Object.create(e),e.fpat=a([a([1,1,1,1,1,1,1,0]),a([1,0,0,0,0,0,0,0]),a([1,0,1,1,1,1,1,0]),a([1,0,1,0,0,0,0,0]),a([1,0,1,0,1,1,1,0]),a([1,0,1,0,1,1,1,0]),a([1,0,1,0,1,1,1,0]),a([0,0,0,0,0,0,0,0])]),e.fpat2=a([a([1,1,1,0,1,0,1,0]),a([1,1,1,0,1,0,1,0]),a([1,1,1,0,1,0,1,0]),a([0,0,0,0,1,0,1,0]),a([1,1,1,1,1,0,1,0]),a([0,0,0,0,0,0,1,0]),a([1,1,1,1,1,1,1,0]),a([0,0,0,0,0,0,0,0])]);for(var E in e)e.hasOwnProperty(E)&&(Yu.$ctx[E]=e[E]);Yu.__24936__=1,e=Object.getPrototypeOf(e)}for(var Te=0,Ae=e.fpat.length-1;Te<=Ae;Te+=1){e.y=Te;for(var Ue=0,qe=u(e.fpat,0).length-1;Ue<=qe;Ue+=1){e.x=Ue,e.fpb=u(u(e.fpat,e.y),e.x),e.fpb2=u(u(e.fpat2,e.y),e.x),r[t++]=e.pixs,r[t++]=e.x,r[t++]=e.y,e.qmv();var De=r[--t];y(r[--t],De,e.fpb),r[t++]=e.pixs,r[t++]=h(h(e.size-e.x)-1),r[t++]=e.y,e.qmv();var lt=r[--t];y(r[--t],lt,e.fpb),r[t++]=e.pixs,r[t++]=h(h(e.size-e.x)-1),r[t++]=h(h(e.size-e.y)-1),e.qmv();var gt=r[--t];y(r[--t],gt,e.fpb),r[t++]=e.pixs,r[t++]=e.x,r[t++]=h(h(e.size-e.y)-1),e.qmv();var At=r[--t];y(r[--t],At,e.fpb2)}}e.functionmap=a([a([a([0,8]),a([h(e.size-1),h(e.size-9)])]),a([a([1,8]),a([h(e.size-2),h(e.size-9)])]),a([a([2,8]),a([h(e.size-3),h(e.size-9)])]),a([a([3,8]),a([h(e.size-4),h(e.size-9)])]),a([a([4,8]),a([h(e.size-5),h(e.size-9)])]),a([a([5,8]),a([h(e.size-6),h(e.size-9)])]),a([a([6,8]),a([h(e.size-7),h(e.size-9)])]),a([a([7,8]),a([h(e.size-8),h(e.size-9)])]),a([a([8,8]),a([h(e.size-9),h(e.size-9)])]),a([a([8,7]),a([h(e.size-9),h(e.size-8)])]),a([a([8,6]),a([h(e.size-9),h(e.size-7)])]),a([a([8,5]),a([h(e.size-9),h(e.size-6)])]),a([a([8,4]),a([h(e.size-9),h(e.size-5)])]),a([a([8,3]),a([h(e.size-9),h(e.size-4)])]),a([a([8,2]),a([h(e.size-9),h(e.size-3)])]),a([a([8,1]),a([h(e.size-9),h(e.size-2)])]),a([a([8,0]),a([h(e.size-9),h(e.size-1)])]),a([a([h(e.size-9),0]),a([8,h(e.size-1)])]),a([a([h(e.size-9),1]),a([8,h(e.size-2)])]),a([a([h(e.size-9),2]),a([8,h(e.size-3)])]),a([a([h(e.size-9),3]),a([8,h(e.size-4)])]),a([a([h(e.size-9),4]),a([8,h(e.size-5)])]),a([a([h(e.size-9),5]),a([8,h(e.size-6)])]),a([a([h(e.size-9),6]),a([8,h(e.size-7)])]),a([a([h(e.size-9),7]),a([8,h(e.size-8)])]),a([a([h(e.size-9),8]),a([8,h(e.size-9)])]),a([a([h(e.size-8),8]),a([7,h(e.size-9)])]),a([a([h(e.size-7),8]),a([6,h(e.size-9)])]),a([a([h(e.size-6),8]),a([5,h(e.size-9)])]),a([a([h(e.size-5),8]),a([4,h(e.size-9)])]),a([a([h(e.size-4),8]),a([3,h(e.size-9)])]),a([a([h(e.size-3),8]),a([2,h(e.size-9)])]),a([a([h(e.size-2),8]),a([1,h(e.size-9)])]),a([a([h(e.size-1),8]),a([0,h(e.size-9)])])]);for(var St=e.functionmap,yt=0,Ct=St.length;yt>>-Pr:Er<=3){var zo=r[--t],xn=h(r[--t]+zo*4);r[t++]=xn,r[t++]=xn}t--});var zt=r[--t];e[r[--t]]=zt,e.scr3=0;for(var ar=5,mr=e.scrle.length-1;ar<=mr;ar+=2)if(e.j=ar,u(e.scrle,e.j)%3==0){e.fact=~~(u(e.scrle,e.j)/3);for(var Cr=T(e.scrle,e.j-4,4),Yr=0,Xt=Cr.length;Yr=e.scrle.length||u(e.scrle,e.j-5)>=3||u(e.scrle,e.j+1)>=3)&&(e.scr3=e.scr3+50)}for(var dn=1,er=e.scrle.length-5;dn<=er;dn+=2)if(e.j=dn,u(e.scrle,e.j)%3==0){e.fact=~~(u(e.scrle,e.j)/3);for(var jn=T(e.scrle,e.j+1,4),qr=0,vo=jn.length;qr=e.scrle.length||u(e.scrle,e.j-1)>=3||u(e.scrle,e.j+5)>=3)&&(e.scr3=e.scr3+50)}r[t++]=e.scr1,r[t++]=e.scr3},e.evalfull=function(){e.sym=r[--t],e.n1=0,e.n3=0,e.rle=a(h(e.size+1)),e.lastpairs=a(e.size),e.thispairs=a(e.size),e.sizeadd1=h(e.size+1);for(var zt=0,ar=h(e.size-1);zt<=ar;zt+=1){e.i=zt,r[t++]=1/0;var mr=e.size;r[t++]=0,r[t++]=0;for(var Cr=e.i,Yr=mr,Xt=h(mr*mr-1);Yr<0?Cr>=Xt:Cr<=Xt;Cr+=Yr){var en=u(e.sym,Cr),Sr=r[--t];if(r[t++]=en,ae(Sr,en)){var Kr=r[--t],hr=r[--t];r[t++]=h(hr+1),r[t++]=Kr}else{var dn=r[--t];r[t++]=1,r[t++]=dn}}t--;var er=mo()+2;xr(T(e.rle,0,er-2)),e.evalfulln1n3(),e.n3=h(r[--t]+e.n3),e.n1=h(r[--t]+e.n1),t--,e.symrow=T(e.sym,e.i*e.size,e.size),r[t++]=1/0;var jn=e.symrow;r[t++]=0,r[t++]=0;for(var qr=0,vo=jn.length;qr>>8,(e.funval&240)>>>4,e.funval&15]),r[t++]=4,r[t++]=16,r[t++]=19,e.rscodes(),e.funvals=r[--t],r[t++]=1/0,Oe(e.funvals,function(){r[t++]=4,e.tobin(),Oe(r[--t],function(){var zt=r[--t];r[t++]=h(zt-48)})}),r[t++]=0,r[t++]=1,r[t++]=0,r[t++]=1,r[t++]=0,r[t++]=1,e.funbits=a();for(var Br=0,bn=e.functionmap.length-1;Br<=bn;Br+=1)e.i=Br,Oe(u(e.functionmap,e.i),function(){var zt=r[--t];r[t++]=e.pixs,oe(zt),e.qmv();var ar=r[--t];y(r[--t],ar,u(e.funbits,e.i))});var wn=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.size],["pixy",e.size],["height",e.size*2/72],["width",e.size*2/72],["borderleft",3],["borderright",3],["bordertop",3],["borderbottom",3],["opt",e.options]]);r[t++]=wn,e.dontdraw||Qt(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function Us(){if(e=Object.create(e),e.dontdraw=!1,e.rows=-1,e.columns=-1,e.ratio=-1,e.parse=!1,e.parsefnc=!1,e.raw=!1,e.fast=!1,e.mask=-1,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.rows!=-1&&e.rows<5&&(r[t++]="bwipp.dotcodeBadRows#25205",r[t++]="There must be at least 5 rows",ne()),e.columns!=-1&&e.columns<5&&(r[t++]="bwipp.dotcodeBadColumns#25211",r[t++]="There must be at least 5 columns",ne()),e.rows!=-1&&e.columns!=-1&&(e.rows+e.columns)%2!=1&&(r[t++]="bwipp.dotcodeRowsColumnsBadParity#25216",r[t++]="Sum of rows and columns must be odd",ne()),e.ratio==-1&&e.rows==-1&&e.columns==-1&&(e.ratio=3/2),e.ratio!=-1&&e.ratio<=0&&(r[t++]="bwipp.dotcodeRatio#25225",r[t++]="The ratio must be greater than 0",ne()),e.mask!=-1&&(e.mask<0||e.mask>3)&&(r[t++]="bwipp.dotcodeBadMask#25231",r[t++]="Valid mask values are 0 to 3",ne()),yr(Us),!Us.__25248__){e=Object.create(e),e.laa=-1,e.lab=-2,e.lac=-3,e.bin=-4,e.sfa=-5,e.sfb=-6,e.sb2=-7,e.sb3=-8,e.sb4=-9,e.sb5=-10,e.sb6=-11,e.sfc=-12,e.sc2=-13,e.sc3=-14,e.sc4=-15,e.sc5=-16,e.sc6=-17,e.sc7=-18,e.bsa=-19,e.bsb=-20,e.tma=-21,e.tmb=-22,e.tmc=-23,e.tms=-24,e.fn1=-25,e.fn2=-26,e.fn3=-27,e.crl=-28,e.aim=-29,e.m05=-30,e.m06=-31,e.m12=-32,e.mac=-33;for(var n in e)e.hasOwnProperty(n)&&(Us.$ctx[n]=e[n]);Us.__25248__=1,e=Object.getPrototypeOf(e)}var o=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["eci",!0],["FNC1",e.fn1],["FNC3",e.fn3]]);e.fncvals=o,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var i=r[--t];e[r[--t]]=i,e.msglen=e.msg.length;var s=e.msg;r[t++]="numecis",r[t++]=0;for(var l=0,c=s.length;l",">","30"]),a(["?","?","31"]),a(["@","@","32"]),a(["A","A","33"]),a(["B","B","34"]),a(["C","C","35"]),a(["D","D","36"]),a(["E","E","37"]),a(["F","F","38"]),a(["G","G","39"]),a(["H","H","40"]),a(["I","I","41"]),a(["J","J","42"]),a(["K","K","43"]),a(["L","L","44"]),a(["M","M","45"]),a(["N","N","46"]),a(["O","O","47"]),a(["P","P","48"]),a(["Q","Q","49"]),a(["R","R","50"]),a(["S","S","51"]),a(["T","T","52"]),a(["U","U","53"]),a(["V","V","54"]),a(["W","W","55"]),a(["X","X","56"]),a(["Y","Y","57"]),a(["Z","Z","58"]),a(["[","[","59"]),a([92,92,"60"]),a(["]","]","61"]),a(["^","^","62"]),a(["_","_","63"]),a([0,"`","64"]),a([1,"a","65"]),a([2,"b","66"]),a([3,"c","67"]),a([4,"d","68"]),a([5,"e","69"]),a([6,"f","70"]),a([7,"g","71"]),a([8,"h","72"]),a([9,"i","73"]),a([10,"j","74"]),a([11,"k","75"]),a([12,"l","76"]),a([13,"m","77"]),a([14,"n","78"]),a([15,"o","79"]),a([16,"p","80"]),a([17,"q","81"]),a([18,"r","82"]),a([19,"s","83"]),a([20,"t","84"]),a([21,"u","85"]),a([22,"v","86"]),a([23,"w","87"]),a([24,"x","88"]),a([25,"y","89"]),a([26,"z","90"]),a([27,"{","91"]),a([28,"|","92"]),a([29,"}","93"]),a([30,"~","94"]),a([31,127,"95"]),a([e.sfb,e.crl,"96"]),a([e.sb2,9,"97"]),a([e.sb3,28,"98"]),a([e.sb4,29,"99"]),a([e.sb5,30,e.aim]),a([e.sb6,e.sfa,e.laa]),a([e.lab,e.laa,e.sfb]),a([e.sc2,e.sc2,e.sb2]),a([e.sc3,e.sc3,e.sb3]),a([e.sc4,e.sc4,e.sb4]),a([e.lac,e.lac,e.lab]),a([e.fn1,e.fn1,e.fn1]),a([e.fn2,e.fn2,e.fn2]),a([e.fn3,e.fn3,e.fn3]),a([e.bsa,e.bsa,e.bsa]),a([e.bsb,e.bsb,e.bsb]),a([e.bin,e.bin,e.bin])]),e.charvals=a([new Map,new Map,new Map]);for(var k=0,C=e.charmaps.length-1;k<=C;k+=1){e.i=k,e.encs=u(e.charmaps,e.i);for(var M=0;M<=2;M+=1){e.j=M;var S=u(e.encs,e.j);if(r[t++]=S,ae(za(S),"stringtype")){var I=u(r[--t],0);r[t++]=I}y(u(e.charvals,e.j),r[--t],e.i)}}e.Avals=u(e.charvals,0),e.Bvals=u(e.charvals,1),y(e.Bvals,e.m05,97),y(e.Bvals,e.m06,98),y(e.Bvals,e.m12,99),y(e.Bvals,e.mac,100),e.Cvals=u(e.charvals,2),r[t++]=1/0;var E=a([e.sc2,e.sc3,e.sc4,e.sc5,e.sc6,e.sc7,e.tma,e.tmb,e.tmc,e.tms]);r[t++]=102;for(var j=0,B=E.length;j=0;ze-=1){e.i=ze,e.barchar=u(e.msg,e.i),e.barchar>=48&&e.barchar<=57&&y(e.nDigits,e.i,h(u(e.nDigits,e.i+1)+1));var Ge=u(e.Avals,e.barchar)!==void 0;Ge&&y(e.DatumA,e.i,!0);var Ve=u(e.Bvals,e.barchar)!==void 0;if(Ve&&y(e.DatumB,e.i,!0),e.CRLF=!1,e.barchar==13&&e.i=2&&y(e.DatumC,e.i,!0),e.barchar<0&&y(e.DatumC,e.i,!0),e.barchar>=128&&y(e.Binary,e.i,!0),u(e.nDigits,e.i)>=10){r[t++]=1/0,oe(T(e.msg,e.i,10));for(var at=0,We=1;at=6&&u(e.msg,e.i)==e.fn2&&y(e.ECI,e.i,!0),e.barchar<0&&e.barchar!=e.fn3?y(e.AheadC,e.i,h(u(e.AheadC,e.i+1)+1)):u(e.nDigits,e.i)<=1?y(e.AheadC,e.i,0):y(e.AheadC,e.i,h(u(e.AheadC,e.i+2)+1)),u(e.nDigits,e.i)>0&&Mc(u(e.AheadC,e.i),u(e.AheadC,e.i+1))&&y(e.TryC,e.i,u(e.AheadC,e.i)),u(e.DatumA,e.i)&&u(e.TryC,e.i)<2&&e.barchar!=e.fn3&&y(e.AheadA,e.i,h(u(e.AheadA,e.i+1)+1)),u(e.DatumB,e.i)&&u(e.TryC,e.i)<2&&e.barchar!=e.fn3){if(r[t++]=e.AheadB,r[t++]=e.i,r[t++]=e.AheadB,r[t++]=e.i+1,e.CRLF){var ue=r[--t];r[t++]=h(ue+1)}var Le=r[--t],$e=u(r[--t],Le),bt=r[--t];y(r[--t],bt,h($e+1))}e.barchar!=e.fn3&&y(e.UntilEndSeg,e.i,h(u(e.UntilEndSeg,e.i+1)+1))}for(e.addtocws=function(){var je=r[--t];K(e.cws,e.j,je),e.j=je.length+e.j},e.base259to103=function(){e.in=r[--t],e.inlen=e.in.length,r[t++]=1/0;for(var je=0,He=5-e.inlen;je=40){var Te=h(r[--t]-40),Ae=Te%12769;r[t++]=~~(Te/12769)+40,r[t++]=~~(Ae/113),r[t++]=Ae%113}},e.ECIbin=function(){r[t++]=1/0;var je=T(e.msg,e.i+1,6);r[t++]=0;for(var He=0,Ne=je.length;He=65536){var Te=r[--t],Ae=Te%65536;r[t++]=258,r[t++]=~~(Te/65536),r[t++]=~~(Ae/256),r[t++]=Ae%256}else{var Ue=r[--t];if(r[t++]=Ue,Ue>=256){var qe=r[--t];r[t++]=257,r[t++]=~~(qe/256),r[t++]=qe%256}else{var De=r[--t];r[t++]=256,r[t++]=De}}for(var lt=a(),gt=0,At=lt.length;gth(e.segend-7)){r[t++]=0;break}if(u(e.msg,e.segstart)!=91){r[t++]=0;break}if(u(e.msg,e.segstart+1)!=41){r[t++]=0;break}if(u(e.msg,e.segstart+2)!=62){r[t++]=0;break}if(u(e.msg,e.segstart+3)!=30){r[t++]=0;break}var rt=u(e.msg,e.segstart+4);if(rt<48||rt>57){r[t++]=0;break}var Te=u(e.msg,e.segstart+5);if(Te<48||Te>57){r[t++]=0;break}if(u(e.msg,h(e.segend-1))!=4){r[t++]=0;break}var Ae=h(h(u(e.msg,e.segstart+4)-48)*10+h(u(e.msg,e.segstart+5)-48));if(r[t++]=Ae,Ae!=5&&Ae!=6&&Ae!=12){t--,r[t++]=e.mac;break}if(u(e.msg,e.segstart+6)!=29){t--,r[t++]=0;break}if(u(e.msg,h(e.segend-2))!=30){t--,r[t++]=0;break}var Ue=r[--t];if(r[t++]=Ue,Ue==5){t--,r[t++]=e.m05;break}if(r[--t]==6){r[t++]=e.m06;break}r[t++]=e.m12;break}if(e.inmac=r[--t],e.inmac!=0){r[t++]=a([u(e.Cvals,e.lab)]),e.addtocws(),e.mode=e.B,r[t++]=a([u(e.Bvals,e.inmac)]),e.addtocws(),e.inmac==e.mac?(r[t++]=a([u(e.Bvals,u(e.msg,e.segstart+4))]),e.addtocws(),r[t++]=a([u(e.Bvals,u(e.msg,e.segstart+5))]),e.addtocws(),e.i=e.i+6):e.i=e.i+7;break}}if(e.i==e.segstart&&(u(e.nDigits,e.i)>=2&&(r[t++]=a([u(e.Cvals,e.fn1)]),e.addtocws()),u(e.msg,e.i)==e.fn1&&u(e.nDigits,e.i+1)>=2&&(e.i=e.i+1)),u(e.SeventeenTen,e.i)){r[t++]=a([u(e.Cvals,e.aim),h(h(u(e.msg,e.i+2)-48)*10+h(u(e.msg,e.i+3)-48)),h(h(u(e.msg,e.i+4)-48)*10+h(u(e.msg,e.i+5)-48)),h(h(u(e.msg,e.i+6)-48)*10+h(u(e.msg,e.i+7)-48))]),e.addtocws(),e.i=e.i+10;break}if(u(e.DatumC,e.i)){var qe=u(e.msg,e.i);if(qe==e.fn1||qe==e.fn2||qe==e.fn3){if(r[t++]=a([u(e.Cvals,u(e.msg,e.i))]),e.addtocws(),u(e.ECI,e.i)){r[t++]=1/0,e.ECIabc();var De=a();r[t++]=De,e.addtocws(),e.i=e.i+7;break}if(u(e.msg,e.i)==e.fn3&&e.segstart!=e.i){e.i=e.i+1,e.inmac=0,e.segstart=e.i,e.segend=h(e.i+u(e.UntilEndSeg,e.i));break}e.i=e.i+1;break}r[t++]=a([h(h(u(e.msg,e.i)-48)*10+h(u(e.msg,e.i+1)-48))]),e.addtocws(),e.i=e.i+2;break}if(u(e.Binary,e.i)){if(u(e.nDigits,e.i+1)>0){u(e.msg,e.i)<160?(r[t++]=a([u(e.Cvals,e.bsa),u(e.Avals,h(u(e.msg,e.i)-128))]),e.addtocws()):(r[t++]=a([u(e.Cvals,e.bsb),u(e.Bvals,h(u(e.msg,e.i)-128))]),e.addtocws()),e.i=e.i+1;break}r[t++]=a([u(e.Cvals,e.bin)]),e.addtocws(),e.mode=e.BIN;break}if(e.m=u(e.AheadA,e.i),e.n=u(e.AheadB,e.i),Mc(e.m,e.n)){r[t++]=a([u(e.Cvals,e.laa)]),e.addtocws(),e.mode=e.A;break}if(e.i==e.segstart){var lt=u(e.msg,e.i);if(lt==9||lt==28||lt==29||lt==30){r[t++]=a([u(e.Cvals,e.laa)]),e.addtocws(),e.mode=e.A;break}}if(e.n>4){r[t++]=a([u(e.Cvals,e.lab)]),e.addtocws(),e.mode=e.B;break}r[t++]=a([u(e.Cvals,u(a([e.sfb,e.sb2,e.sb3,e.sb4]),h(e.n-1)))]),e.addtocws();for(var gt=0,At=e.n;gt=2){if(e.n>4){r[t++]=a([u(e.Bvals,e.lac)]),e.addtocws(),e.mode=e.C;break}r[t++]=a([u(e.Bvals,u(a([e.sfc,e.sc2,e.sc3,e.sc4]),h(e.n-1)))]),e.addtocws();for(var Ne=0,ye=e.n;Ne=2){if(e.n>4){r[t++]=a([u(e.Avals,e.lac)]),e.addtocws(),e.mode=e.C;break}r[t++]=a([u(e.Avals,u(a([e.sfc,e.sc2,e.sc3,e.sc4]),h(e.n-1)))]),e.addtocws();for(var Ne=0,ye=e.n;Ne6){r[t++]=a([u(e.Avals,e.lab)]),e.addtocws(),e.mode=e.B;break}r[t++]=a([u(e.Avals,u(a([e.sfb,e.sb2,e.sb3,e.sb4,e.sb5,e.sb6]),h(e.n-1)))]),e.addtocws();for(var Ae=0,Ue=e.n;Ae=2){r[t++]=1/0,e.finaliseBIN();var Ne=a();if(r[t++]=Ne,e.addtocws(),e.n>7){r[t++]=a([u(e.BINvals,e.tmc)]),e.addtocws(),e.mode=e.C;break}r[t++]=a([u(e.BINvals,u(a([e.sc2,e.sc3,e.sc4,e.sc5,e.sc6,e.sc7]),h(e.n-2)))]),e.addtocws();for(var ye=0,rt=e.n;ye=0&&(u(e.Binary,e.i)||u(e.Binary,e.i+1)||u(e.Binary,e.i+2)||u(e.Binary,e.i+3)||u(e.ECI,e.i+1)&&u(e.Binary,e.i+8))){r[t++]=1/0,r[t++]=u(e.msg,e.i),e.addtobin();var Ue=a();if(r[t++]=Ue,e.addtocws(),e.i=e.i+1,e.i==e.msglen){r[t++]=1/0,e.finaliseBIN();var qe=a();r[t++]=qe,e.addtocws()}break}r[t++]=1/0,e.finaliseBIN();var De=a();if(r[t++]=De,e.addtocws(),e.i!=e.msglen-1){if(u(e.msg,e.i)==e.fn3&&e.i!=e.segstart){r[t++]=a([u(e.BINvals,e.tms)]),e.addtocws(),e.i=e.i+1,e.mode=e.C,e.inmac=0,e.segstart=e.i,e.segend=h(e.i+u(e.UntilEndSeg,e.i));break}Mc(u(e.AheadA,e.i),u(e.AheadB,e.i))?(r[t++]=a([u(e.BINvals,e.tma)]),e.addtocws(),e.mode=e.A):(r[t++]=a([u(e.BINvals,e.tmb)]),e.addtocws(),e.mode=e.B);break}break}},e.cws=a(e.msglen*2+1),e.mode=e.C,e.bvals=a(5),e.bpos=0,e.inmac=0,e.segstart=0,e.segend=u(e.UntilEndSeg,0),e.i=0,e.j=0;!(e.i>=e.msglen||e.inmac!=0&&(e.inmac!=e.mac&&e.i==h(e.segend-2)&&(e.i=e.i+2,e.i>=e.msglen)||e.inmac==e.mac&&e.i==h(e.segend-1)&&(e.i=e.i+1,e.i>=e.msglen))||e[u(a(["encA","encB","encC","encBIN"]),e.mode)]()===!0););if(e.cws=T(e.cws,0,e.j),e.nd=e.cws.length,e.minarea=((e.nd+3+~~(e.nd/2))*9+2)*2,e.ratio!=-1)e.hgt=Math.sqrt(e.minarea/e.ratio),e.wid=Math.sqrt(e.minarea*e.ratio),e.h=~~e.hgt,e.w=~~e.wid,(e.h+e.w)%2==1?e.h*e.we.ndots)break;e.nd=e.nd+1}if(e.nc=~~(e.nd/2)+3,e.nw=e.nd+e.nc,e.rembits=e.ndots-(e.nw*9+2),e.nd>e.cws.length){r[t++]=1/0,oe(e.cws);var pt=e.mode==e.BIN?109:106;r[t++]=pt;for(var Fe=0,Be=e.nd-e.cws.length-1;Fee.ndots-2&&(r[t++]="bwipp.dotcodeTooLong#25908",r[t++]="Maximum length exceeded",ne()),!Us.__25938__){e=Object.create(e),e.encs=a(["101010101","010101011","010101101","010110101","011010101","101010110","101011010","101101010","110101010","010101110","010110110","010111010","011010110","011011010","011101010","100101011","100101101","100110101","101001011","101001101","101010011","101011001","101100101","101101001","110010101","110100101","110101001","001010111","001011011","001011101","001101011","001101101","001110101","010010111","010011011","010011101","010100111","010110011","010111001","011001011","011001101","011010011","011011001","011100101","011101001","100101110","100110110","100111010","101001110","101011100","101100110","101101100","101110010","101110100","110010110","110011010","110100110","110101100","110110010","110110100","111001010","111010010","111010100","001011110","001101110","001110110","001111010","010011110","010111100","011001110","011011100","011100110","011101100","011110010","011110100","100010111","100011011","100011101","100100111","100110011","100111001","101000111","101100011","101110001","110001011","110001101","110010011","110011001","110100011","110110001","111000101","111001001","111010001","000101111","000110111","000111011","000111101","001001111","001100111","001110011","001111001","010001111","011000111","011100011","011110001","100011110","100111100","101111000","110001110","110011100","110111000","111000110","111001100"]);for(var n in e)e.hasOwnProperty(n)&&(Us.$ctx[n]=e[n]);Us.__25938__=1,e=Object.getPrototypeOf(e)}e.rows%2==0?e.sixedges=a([a([e.columns-1,e.rows-2]),a([0,e.rows-2]),a([e.columns-2,e.rows-1]),a([1,e.rows-1]),a([e.columns-1,0]),a([0,0])]):e.sixedges=a([a([e.columns-2,0]),a([e.columns-2,e.rows-1]),a([e.columns-1,1]),a([e.columns-1,e.rows-2]),a([0,0]),a([0,e.rows-1])]),e.dmv=function(){var je=r[--t],He=r[--t];r[t++]=h(He+je*e.columns)},e.outline=a(e.rows*e.columns);for(var It=0,Nt=e.rows-1;It<=Nt;It+=1){e.y=It;for(var ht=0,xt=e.columns-1;ht<=xt;ht+=1){e.x=ht,r[t++]=e.outline,r[t++]=e.x,r[t++]=e.y,e.dmv();var tt=r[--t];y(r[--t],tt,(e.x+e.y)%2-1)}}for(var Y=e.sixedges,re=0,ie=Y.length;re=nr:Dt<=nr;Dt+=jt)r[t++]=0,r[t++]=0,oe(T(e.sym,Dt,e.columns)),r[t++]=0,r[t++]=0;for(var Ft=0,cr=(e.columns+4)*2;Ft=1;St-=1)e.j=St,y(e.coeffs,e.j,h(h(u(e.coeffs,e.j)+113)-u(e.rsalog,e.i)*u(e.coeffs,e.j-1)%113)%113)}for(var yt=0,Ct=e.ND-1;yt<=Ct;yt+=1){r[t++]="t",r[t++]=e.rscws,r[t++]=yt,e.offset();var Re=r[--t],Ce=u(r[--t],Re);r[t++]=Ce,r[t++]=e.rscws,r[t++]=e.ND,e.offset();var Ye=r[--t],et=u(r[--t],Ye),Et=r[--t];e[r[--t]]=h(Et+et)%113;for(var ut=0,Dt=e.NC-2;ut<=Dt;ut+=1){e.j=ut,r[t++]=e.rscws,r[t++]=e.ND+e.j,e.offset(),r[t++]=e.rscws,r[t++]=e.ND+e.j+1,e.offset();var jt=r[--t],nr=u(r[--t],jt),Ft=r[--t];y(r[--t],Ft,h(h(nr+113)-e.t*u(e.coeffs,e.j+1)%113)%113)}r[t++]=e.rscws,r[t++]=e.ND+e.NC-1,e.offset();var cr=r[--t];y(r[--t],cr,h(113-e.t*u(e.coeffs,e.NC)%113)%113)}for(var sr=e.ND,lr=e.NW-1;sr<=lr;sr+=1){r[t++]=sr,r[t++]=e.rscws,r[t++]=sr,e.offset();var Ar=r[--t],Qr=r[--t],Er=r[--t];r[t++]=Qr,r[t++]=Ar,r[t++]=113,r[t++]=e.rscws,r[t++]=Er,e.offset();var Pr=r[--t],Wr=u(r[--t],Pr),cn=r[--t],kr=r[--t];y(r[--t],kr,h(cn-Wr)%113)}}e.bits=pe(e.ndots),K(e.bits,0,u(a(["00","01","10","11"]),e.mask));for(var Hr=1,un=e.nw;Hr<=un;Hr+=1)e.i=Hr,K(e.bits,(e.i-1)*9+2,u(e.encs,u(e.rscws,e.i)));e.rembits>0&&K(e.bits,e.nw*9+2,T("11111111111111111",0,e.rembits));var Pn=e.outline;e.pixs=fp(a(Pn.length),Pn),e.posx=0,r[t++]="posy",e.rows%2==0?r[t++]=0:r[t++]=e.rows-1;var Br=r[--t];e[r[--t]]=Br;for(var bn=T(e.bits,0,e.bits.length-6),wn=0,zt=bn.length;wne.bestscore&&(e.bestsym=e.pixs,e.bestscore=e.score,e.fast&&e.bestscore>~~(e.rows*e.columns/2)))return!0;var Sr=e.pixs;e.litmask=fp(a(Sr.length),Sr);for(var Kr=0;Kr<=5;Kr+=1){e.i=Kr,r[t++]=e.litmask,oe(u(e.sixedges,e.i)),e.dmv();var hr=r[--t];y(r[--t],hr,1)}if(y(e.litmasks,e.mask,e.litmask),e.fast){r[t++]="score",r[t++]=e.litmask,e.evalsymbol();var dn=r[--t];if(e[r[--t]]=dn,Mc(e.score,e.bestscore)&&(e.bestsym=e.litmask,e.bestscore=e.score,e.bestscore>~~(e.rows*e.columns/2)))return!0}}),e.pixs=e.bestsym,!e.fast&&e.bestscore<=~~(e.rows*e.columns/2)&&(e.bestscore=-99999999,Oe(e.masks,function(){e.litmask=u(e.litmasks,r[--t]),r[t++]="score",r[t++]=e.litmask,e.evalsymbol();var je=r[--t];e[r[--t]]=je,e.score>e.bestscore&&(e.bestsym=e.litmask,e.bestscore=e.score)}),e.pixs=e.bestsym);var ce=new Map([["ren","renmatrix"],["dotty",!0],["pixs",e.pixs],["pixx",e.columns],["pixy",e.rows],["height",e.rows*2/72],["width",e.columns*2/72],["borderleft",3],["borderright",3],["bordertop",3],["borderbottom",3],["opt",e.options]]);r[t++]=ce,e.dontdraw||Qt(),e=Object.getPrototypeOf(e),e=Object.getPrototypeOf(e)}function sl(){e=Object.create(e),e.dontdraw=!1,e.eclevel="EC2",e.parse=!1,e.parsefnc=!1,e.start=257,e.link1=0,e.raw=!1,e.rev=2,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t];var n=e.rev;n!=1&&n!=2&&(r[t++]="bwipp.ultracodeInvalidRevision#26305",r[t++]="Valid revisions are 1 and 2",ne());var o=e.eclevel.length==3;if(r[t++]=o,o&&(t--,r[t++]=T(e.eclevel,0,2),ae("EC","EC"))){t--;var i=u(e.eclevel,2)-48,s=e.rev==2?1:0;r[t++]=i>=s&&i<=5}if(fr(r[--t])&&(r[t++]="bwipp.ultracodeInvalidErrorCorrectionLevel#26314",r[t++]="Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1",ne()),yr(sl),e.raw){for(e.dcws=a(e.barcode.length),e.i=0,e.j=0;e.i!=e.barcode.length;)e.cw=ft(T(e.barcode,e.i+1,3)),y(e.dcws,e.j,e.cw),e.i=e.i+4,e.j=e.j+1;e.dcws=T(e.dcws,0,e.j)}else{e.fn1=-1,e.fn3=-2;var l=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1],["FNC3",e.fn3]]);e.fncvals=l,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var c=r[--t];e[r[--t]]=c,e.msglen=e.msg.length,e.scr=a([]),e.scp=a([]),r[t++]=1/0,oe(e.scr),oe(e.scp),Oe(e.msg,function(){var De=r[--t];r[t++]=De,De==e.fn1&&(t--,r[t++]=268);var lt=r[--t];r[t++]=lt,lt==e.fn3&&(t--,r[t++]=269)}),e.dcws=a()}var d=u(e.options,"debugcws")!==void 0;if(d&&(r[t++]="bwipp.debugcws#26358",r[t++]=e.dcws,ne()),e.mcc=e.dcws.length+3,e.eclval=u(e.eclevel,2)-48,e.eclval!=0){if(r[t++]="qcc",r[t++]=u(a([0,1,2,4,6,8]),e.eclval),r[t++]=~~(e.mcc/25),e.mcc%25!=0){var f=r[--t];r[t++]=h(f+1)}var p=r[--t],m=r[--t];e[r[--t]]=h(m*p+5)}else e.qcc=3;if(e.acc=e.qcc-3+78*e.link1,e.tcc=e.mcc+e.qcc,!sl.__26380__){e=Object.create(e),e.metrics=a([a([2,7,37,5]),a([3,36,84,13]),a([4,85,161,22]),a([5,142,282,29])]);for(var g in e)e.hasOwnProperty(g)&&(sl.$ctx[g]=e[g]);sl.__26380__=1,e=Object.getPrototypeOf(e)}for(var v=e.metrics,w=0,A=v.length;we.maxc)&&(e.okay=!1),!e.okay);w++);e.okay||(r[t++]="bwipp.ultracodeNoValidSymbol#26394",r[t++]="Maximum length exceeded or invalid content",ne());for(var k=e.mcol;k<=61;k+=1){if(e.columns=k,r[t++]=e.columns,e.columns>=15){var C=r[--t];r[t++]=h(C-1)}if(e.columns>=31){var M=r[--t];r[t++]=h(M-1)}if(e.columns>=47){var S=r[--t];r[t++]=h(S-1)}var I=h(h(r[--t]*e.rows-3)-e.tcc);if(r[t++]=I,I>=0){e.pads=r[--t];break}t--}e.dcc=h(e.columns-e.mcol),r[t++]=1/0,r[t++]=e.start,r[t++]=e.mcc,r[t++]=e.acc,oe(e.dcws);for(var E=0,j=e.qcc;E=1;$-=1){e.j=$,r[t++]=e.coeffs,r[t++]=e.j,r[t++]=u(e.coeffs,e.j-1),r[t++]=u(e.coeffs,e.j),r[t++]=u(e.rsalog,e.i),e.rsprod();var z=r[--t],Q=r[--t],G=r[--t];y(r[--t],G,h(Q+z)%283)}r[t++]=e.coeffs,r[t++]=0,r[t++]=u(e.coeffs,0),r[t++]=u(e.rsalog,e.i),e.rsprod();var F=r[--t],q=r[--t];y(r[--t],q,F)}e.coeffs=T(e.coeffs,0,e.coeffs.length-1);for(var W=e.coeffs.length-1;W>=0;W-=2){var X=e.coeffs;y(X,W,h(283-u(X,W)))}for(var te=0,se=e.n-1;te<=se;te+=1){e.t=h(u(e.rsseq,te)+u(e.rsseq,e.n))%283;for(var de=0,ee=e.k-1;de<=ee;de+=1)e.j=de,y(e.rsseq,e.n+e.j,h(u(e.rsseq,e.n+e.j+1)+h(283-e.t*u(e.coeffs,e.k-e.j-1)%283))%283)}for(var fe=e.n,he=e.n+e.k;fe<=he;fe+=1)y(e.rsseq,fe,h(283-u(e.rsseq,fe))%283);e.ecws=T(e.rsseq,e.n,e.k);var Ie=u(e.options,"debugecc")!==void 0;if(Ie&&(r[t++]="bwipp.debugecc#26464",r[t++]=e.ecws,ne()),!sl.__26523__){e=Object.create(e),e.tiles=a([13135,13136,13153,13156,13163,13165,13513,13515,13516,13531,13535,13536,13561,13563,13565,13613,13615,13616,13631,13635,13636,13651,13653,13656,15135,15136,15153,15163,15165,15313,15315,15316,15351,15353,15356,15361,15363,15365,15613,15615,15616,15631,15635,15636,15651,15653,15656,16135,16136,16153,16156,16165,16313,16315,16316,16351,16353,16356,16361,16363,16365,16513,16515,16516,16531,16535,16536,16561,16563,16565,31315,31316,31351,31356,31361,31365,31513,31515,31516,31531,31535,31536,31561,31563,31565,31613,31615,31631,31635,31636,31651,31653,31656,35131,35135,35136,35151,35153,35156,35161,35163,35165,35315,35316,35351,35356,35361,35365,35613,35615,35616,35631,35635,35636,35651,35653,35656,36131,36135,36136,36151,36153,36156,36163,36165,36315,36316,36351,36356,36361,36365,36513,36515,36516,36531,36535,36536,36561,36563,36565,51313,51315,51316,51351,51353,51356,51361,51363,51365,51513,51516,51531,51536,51561,51563,51613,51615,51616,51631,51635,51636,51651,51653,51656,53131,53135,53136,53151,53153,53156,53161,53163,53165,53513,53516,53531,53536,53561,53563,53613,53615,53616,53631,53635,53636,53651,53653,53656,56131,56135,56136,56151,56153,56156,56161,56163,56165,56313,56315,56316,56351,56353,56356,56361,56363,56365,56513,56516,56531,56536,56561,56563,61313,61315,61316,61351,61353,61356,61361,61363,61365,61513,61515,61516,61531,61535,61536,61561,61563,61565,61615,61631,61635,61651,61653,63131,63135,63136,63151,63153,63156,63161,63163,63165,63513,63515,63516,63531,63535,63536,63561,63563,63565,63613,63615,63631,63635,63651,63653,65131,65135,65136,65151,65153,65156,65161,65163,65165,65313,65315,65316,65351,65353,65356,65361,65363,65365,65613,65615,65631,65635,65651,65653,56565,51515]),e.dccurev1=a([51363,51563,51653,53153,53163,53513,53563,53613,53653,56153,56163,56313,56353,56363,56513,56563,51316,51356,51536,51616,53156,53516,53536,53616,53636,53656,56136,56156,56316,56356,56516,56536]),e.dcclrev1=a([61351,61361,61531,61561,61631,61651,63131,63151,63161,63531,63561,63631,65131,65161,65351,65631,31351,31361,31531,31561,31631,31651,35131,35151,35161,35361,35631,35651,36131,36151,36351,36531]),e.dccurev2=a([15316,16316,13516,16516,13616,15616,13136,15136,16136,13536,16536,13636,13156,16156,15356,13656,15313,16313,13513,16513,13613,15613,13153,15153,16153,16353,13653,15653,13163,15163,15363,13563]),e.dcclrev2=a([36315,36515,35615,35135,36135,31535,36535,31635,35635,35165,36165,31365,35365,36365,31565,36565,61315,65315,63515,61615,65135,61535,63535,61635,63635,65635,63165,65165,61365,65365,61565,63565]);for(var g in e)e.hasOwnProperty(g)&&(sl.$ctx[g]=e[g]);sl.__26523__=1,e=Object.getPrototypeOf(e)}r[t++]="dccu",e.rev==1?r[t++]=e.dccurev1:r[t++]=e.dccurev2;var ve=r[--t];e[r[--t]]=ve,r[t++]="dccl",e.rev==1?r[t++]=e.dcclrev1:r[t++]=e.dcclrev2;var be=r[--t];e[r[--t]]=be,e.rows=h(e.rows*6+1),e.columns=e.columns+6,r[t++]=1/0;for(var ke=0,ze=e.rows*e.columns;ke=5){r[t++]=e.pixs,r[t++]=e.i,r[t++]=e.j,e.qmv();var ue=r[--t];y(r[--t],ue,e.i%2*9)}r[t++]=e.pixs,r[t++]=e.i,r[t++]=0,e.qmv();var Le=r[--t];y(r[--t],Le,9),r[t++]=e.pixs,r[t++]=e.i,r[t++]=h(e.rows-1),e.qmv();var $e=r[--t];y(r[--t],$e,9)}for(var bt=1,ot=h(e.rows-2);bt<=ot;bt+=1){e.i=bt;for(var st=3,Ze=e.columns-1;st<=Ze;st+=16){e.j=st,r[t++]=e.pixs,r[t++]=e.j,r[t++]=e.i,e.qmv();var dt=r[--t];y(r[--t],dt,(1-e.i%2)*9)}r[t++]=e.pixs,r[t++]=0,r[t++]=e.i,e.qmv();var Xe=r[--t];y(r[--t],Xe,9),r[t++]=e.pixs,r[t++]=1,r[t++]=e.i,e.qmv();var Pt=r[--t];y(r[--t],Pt,(1-e.i%2)*9),r[t++]=e.pixs,r[t++]=2,r[t++]=e.i,e.qmv();var mt=r[--t];y(r[--t],mt,0),r[t++]=e.pixs,r[t++]=3,r[t++]=e.i,e.qmv();var pt=r[--t];y(r[--t],pt,9),r[t++]=e.pixs,r[t++]=4,r[t++]=e.i,e.qmv();var Fe=r[--t];y(r[--t],Fe,0),r[t++]=e.pixs,r[t++]=e.columns-1,r[t++]=e.i,e.qmv();var Be=r[--t];y(r[--t],Be,9)}e.i=~~(e.rows/2)-5,r[t++]=1/0;for(var Je=vr(pe(5),u(e.dccu,e.dcc),10),It=0,Nt=Je.length;It8&&(t--,r[t++]=8);var o=r[--t];e[r[--t]]=~~Math.round(Math.log(o)/Math.log(2)),e.fn1=-1;var i=new Map([["parse",e.parse],["parsefnc",e.parsefnc],["FNC1",e.fn1]]);e.fncvals=i,r[t++]="msg",r[t++]=e.barcode,r[t++]=e.fncvals,Do();var s=r[--t];e[r[--t]]=s,e.msglen=e.msg.length,e.addtobits=function(){var Ht=r[--t];K(e.bits,e.j,Ht),e.j=Ht.length+e.j},e.tofixedbits=function(){var Ht=Gn(pe(13),"0000000000000"),tr=r[--t],Tr=vr(pe(13),r[--t],2);K(Ht,h(tr-Tr.length),Tr),r[t++]=T(Ht,0,tr)};var l=e.msglen<=15?4:17;e.bits=pe(7+l+e.msglen*8+12),e.j=0,r[t++]=31,r[t++]=5,e.tofixedbits(),e.addtobits(),r[t++]="00",e.addtobits(),e.msglen<=15?(r[t++]=e.msglen,r[t++]=4,e.tofixedbits(),e.addtobits()):(r[t++]="0000",e.addtobits(),r[t++]=e.msglen-16,r[t++]=13,e.tofixedbits(),e.addtobits());for(var c=0,d=e.msglen-1;c<=d;c+=1)r[t++]=u(e.msg,c),r[t++]=8,e.tofixedbits(),e.addtobits();if(r[t++]=28,r[t++]=5,e.tofixedbits(),e.addtobits(),r[t++]=31,r[t++]=5,e.tofixedbits(),e.addtobits(),r[t++]="11",e.addtobits(),e.diffside=21,e.sameshape=!1,e.sameecc=!1,e.hasslaves=!1,e.metrics=function(){e.mc=r[--t],e.mr=r[--t];var Ht=e.mc,tr=e.mr,Tr=e.mc,on=e.mr,Xr=e.colors,fn=64;if(64>Xr){var Vr=Xr;Xr=fn,fn=Vr}var Yn=e.slave?7:17;if(r[t++]=Ht*tr,r[t++]=((~~(h(Tr-25)/16)+2)*(~~(h(on-25)/16)+2)-4)*7,r[t++]=fn*2,r[t++]=Yn*4,e.slave){if(r[t++]=3,!e.sameshape){var tn=r[--t];r[t++]=h(tn+5)}if(e.hasslaves){var Cn=r[--t];r[t++]=h(Cn+3)}if(!e.sameecc){var rn=e.mr,hn=e.mc;if(Fs(rn,hn)){var Vr=hn;hn=rn,rn=Vr}var Qn=r[--t];r[t++]=h(Qn+u(a([10,12,14,14,16,16,16,16]),~~(h(rn-21)/16)))}var co=~~Math.ceil(r[--t]*2/e.metabpm);e.nummetabits=co*e.metabpm,r[t++]=co}else{var yn=ae(e.mr,e.mc)?0:1;e.metass=yn;var On=e.mr,pn=e.mc;if(Fs(On,pn)){var Vr=pn;pn=On,On=Vr}e.metavf=u(a([0,1,2,2,3,3,3,3]),~~(h(On-21)/16)),r[t++]="metavlen",e.metass==0?r[t++]=a([2,2,3,4]):r[t++]=a([4,6,8,10]);var An=u(r[--t],e.metavf);if(e[r[--t]]=An,e.metaelen=h(e.metavf*2+10),r[t++]=h(h(7+e.metavlen)+e.metaelen),e.hasslaves){var zn=r[--t];r[t++]=h(zn+4)}var Fn=~~Math.ceil(r[--t]*2/e.metabpm);e.nummetabits=h(Fn*e.metabpm+6),r[t++]=Fn+6}var Io=r[--t];e.nummetamodules=Io;var vi=r[--t],_o=r[--t],bi=r[--t];e.numdatamodules=h(r[--t]-h(bi+h(_o+h(vi+Io)))),e.numdatabits=e.numdatamodules*e.databpm},e.coderate=u(a([.67,.63,.57,.55,.5,.43,.34,.25,.2,.17,.14]),e.eclevel),e.grosslen=~~Math.ceil(e.bits.length/e.coderate),e.snapsize=function(){var Ht=~~Math.ceil(r[--t])-18;r[t++]=Ht,Ht<0&&(t--,r[t++]=0);var tr=r[--t];r[t++]=~~(tr/4)*4+21},e.rows==-1&&e.columns==-1){r[t++]="size",r[t++]=Math.sqrt(e.grosslen),e.snapsize();var f=r[--t];for(e[r[--t]]=f;r[t++]=e.size,r[t++]=e.size,e.metrics(),!(e.grosslen<=e.numdatabits);)e.size=h(e.size+4);e.rows=e.size,e.columns=e.size}else{if(e.columns==-1&&e.rows!=-1){r[t++]="columns",r[t++]=e.grosslen/e.rows,e.snapsize();var p=r[--t];for(e[r[--t]]=p;r[t++]=e.rows,r[t++]=e.columns,e.metrics(),!(e.grosslen<=e.numdatabits);)e.columns=h(e.columns+4)}if(e.rows==-1&&e.columns!=-1){r[t++]="rows",r[t++]=e.grosslen/e.columns,e.snapsize();var m=r[--t];for(e[r[--t]]=m;r[t++]=e.rows,r[t++]=e.columns,e.metrics(),!(e.grosslen<=e.numdatabits);)e.rows=h(e.rows+4)}e.rows!=-1&&e.columns!=-1&&(r[t++]=e.rows,r[t++]=e.columns,e.metrics())}e.C=e.numdatabits,e.cols=e.columns,(e.rows>145||e.cols>145)&&(r[t++]="bwipp.jabcodeNoValidSymbol#26821",r[t++]="Maximum length exceeded or invalid content",ne()),e.min=e.C;for(var g=3;g<=8;g+=1){e.i=g;for(var v=e.i+1;v<=9;v+=1)e.j=v,e.dist=~~(e.C/e.j)*e.j-~~(e.C/e.j)*e.i-e.bits.length,e.dist=0&&(e.datawc=e.i,e.datawr=e.j,e.min=e.dist)}e.tmpbits=pe(~~(e.C/e.datawr)*e.datawr-~~(e.C/e.datawr)*e.datawc),K(e.tmpbits,0,e.bits);for(var w=e.bits.length,A=e.tmpbits.length-1;w<=A;w+=1){var k=u(e.tmpbits,w-1);if(r[t++]=w,r[t++]=k,k%2==0){var C=r[--t];r[t++]=h(C+1)}else{var M=r[--t];r[t++]=h(M-1)}var S=r[--t];y(e.tmpbits,r[--t],S)}e.bits=e.tmpbits,e.m0=22610,e.m1=-3027,e.m2=19605,e.m3=32557,e.lcg64_temper=function(){e.p00=e.m0*e.s0,e.p01=e.m0*e.s1,e.p02=e.m0*e.s2,e.p03=e.m0*e.s3,e.p10=e.m1*e.s0,e.p11=e.m1*e.s1,e.p12=e.m1*e.s2,e.p13=e.m1*e.s3,e.p20=e.m2*e.s0,e.p21=e.m2*e.s1,e.p22=e.m2*e.s2,e.p23=e.m2*e.s3,e.p30=e.m3*e.s0,e.p31=e.m3*e.s1,e.p32=e.m3*e.s2,e.p33=e.m3*e.s3,e.s3=e.p33%65536+1,e.s2=e.p32%65536+~~(e.p33/65536)+e.p23%65536,e.s1=e.p31%65536+~~(e.p32/65536)+(e.p22%65536+~~(e.p23/65536))+e.p13%65536,e.s0=e.p30%65536+~~(e.p31/65536)+(e.p21%65536+~~(e.p22/65536))+(e.p12%65536+~~(e.p13/65536))+e.p03%65536,e.s3=e.s3+65536,e.s2=e.s2+65535,e.s1=e.s1+65535,e.s0=e.s0+65535,e.s2=~~(e.s3/65536)+e.s2,e.s3=e.s3%65536,e.s1=~~(e.s2/65536)+e.s1,e.s2=e.s2%65536,e.s0=~~(e.s1/65536)+e.s0,e.s1=e.s1%65536,e.s0=e.s0%65536;var Ht=((e.s0-32768)*65536+e.s1^2147483648)&4294967295,tr=Ht^Ht>>>11,Tr=tr^tr<<7&-1658038656,on=(Tr^Tr<<15&-272236544)&4294967295;r[t++]=on^on>>>18},e.createMatrixA=function(){r[t++]="nb_pcb",e.wr<4?r[t++]=~~(e.Pg_sub_block/2):r[t++]=~~(e.Pg_sub_block/e.wr)*e.wc;var Ht=r[--t];e[r[--t]]=Ht,e.offset=~~Math.ceil(e.Pg_sub_block/32),e.effwidth=e.offset*32,e.matrixA=a(e.offset*e.nb_pcb);for(var tr=0,Tr=e.offset*e.nb_pcb-1;tr<=Tr;tr+=1)y(e.matrixA,tr,0);e.permutation=a(e.Pg_sub_block);for(var on=0,Xr=e.Pg_sub_block-1;on<=Xr;on+=1)y(e.permutation,on,on);for(var fn=0,Vr=~~(e.Pg_sub_block/e.wr)-1;fn<=Vr;fn+=1){e.i=fn;for(var Yn=0,yn=h(e.wr-1);Yn<=yn;Yn+=1){e.j=Yn;var On=e.matrixA,pn=e.i,An=e.effwidth,zn=e.wr,Fn=e.j,tn=h(31-h(e.i*h(e.effwidth+e.wr)+e.j)%32);y(On,~~(h(pn*h(An+zn)+Fn)/32),u(On,~~(h(pn*h(An+zn)+Fn)/32))|(tn<0?1>>>-tn:1<>>-Xo:ai<>>-uo:((Xo<0?ai>>>-Xo:ai<>>-tn:1<>>-Cn:tn<=e.nb_pcb&&(y(e.swap_col,e.loop0*2,e.pivot_column),e.loop0=e.loop0+1),e.off_index=~~(e.pivot_column/32),e.off_index1=e.pivot_column%32;for(var rn=0,hn=e.nb_pcb-1;rn<=hn;rn+=1)if(e.j=rn,e.i!=e.j){var Qn=u(e.matrixH,e.off_index+e.j*e.offset),co=-(31-e.off_index1);if(((co<0?Qn>>>-co:Qn<0){for(var ai=0,Xo=e.nb_pcb-1;ai<=Xo;ai+=1)if(e.j=ai,fr(u(e.processed_column,e.j))){y(e.column_arrangement,e.j,u(e.column_arrangement,e.i)),y(e.column_arrangement,e.i,0),y(e.processed_column,e.j,!0),y(e.processed_column,e.i,!1),y(e.swap_col,e.loop0*2,e.i),y(e.swap_col,e.loop0*2+1,e.j),y(e.column_arrangement,e.i,e.j),e.loop0=e.loop0+1,e.loop2=e.loop2+1;break}}e.loop1=0;for(var uo=0,ra=e.nb_pcb-1;uo<=ra;uo+=1)e.kl=uo,fr(u(e.processed_column,e.kl))&&e.loop1>>-Va:is<>>-ws:Ns<>>-Wa:1<>>-xs:1<>>-pn:1<=e.Pg_sub_block&&(e.loop0=e.loop0+1,e.matrix_index=e.Pg_sub_block-e.pn),e.i%e.effwidth>>-rn:Cn<>>-hn:1<>>-An:pn<>>-hn:rn<=1;E-=1){e.l=E,e.lcg64_temper();var j=r[--t];if(r[t++]=j,j<0){var B=r[--t];r[t++]=h((B^2147483648)+2147483648)}e.r=~~(r[--t]/4294967296*(e.l+1)),y(e.bits,e.l,u(e.bits,e.r)),y(e.bits,e.r,u(e.bits,e.l))}e.tmpbits=pe(e.C),K(e.tmpbits,0,e.bits),e.j=e.bits.length;for(var D=0,R=~~(h(h(e.C-e.j)+1)/2);DIe){var be=Ie;Ie=ve,ve=be}e.palettelayout=a(ve),e.i=0,e.j=8,Oe(e.rvals,function(){e.r=r[--t],Oe(e.gvals,function(){e.g=r[--t],Oe(e.bvals,function(){e.b=r[--t];var Ht=Gn(pe(6),"000000"),tr=vr(pe(6),e.r<<16|e.g<<8|e.b,16);K(Ht,6-tr.length,tr),r[t++]=Ht,r[t++]=!1,ae(Ht,"000000")&&(e.ki=e.i,t--,r[t++]=!0);var Tr=r[--t],on=r[--t];r[t++]=on,r[t++]=Tr,ae(on,"0000FF")&&(e.bi=e.i,t--,r[t++]=!0);var Xr=r[--t],fn=r[--t];r[t++]=fn,r[t++]=Xr,ae(fn,"00FF00")&&(e.gi=e.i,t--,r[t++]=!0);var Vr=r[--t],Yn=r[--t];r[t++]=Yn,r[t++]=Vr,ae(Yn,"00FFFF")&&(e.ci=e.i,t--,r[t++]=!0);var yn=r[--t],On=r[--t];r[t++]=On,r[t++]=yn,ae(On,"FF0000")&&(e.ri=e.i,t--,r[t++]=!0);var pn=r[--t],An=r[--t];r[t++]=An,r[t++]=pn,ae(An,"FF00FF")&&(e.mi=e.i,t--,r[t++]=!0);var zn=r[--t],Fn=r[--t];r[t++]=Fn,r[t++]=zn,ae(Fn,"FFFF00")&&(e.yi=e.i,t--,r[t++]=!0);var tn=r[--t],Cn=r[--t];r[t++]=Cn,r[t++]=tn,ae(Cn,"FFFFFF")&&(e.wi=e.i,t--,r[t++]=!0),fr(r[--t])&&(e.colors<=64||e.colors==128&&(e.r==0||e.r==73||e.r==182||e.r==255)||e.colors==256&&(e.r==0||e.r==73||e.r==182||e.r==255)&&(e.g==0||e.g==73||e.g==182||e.g==255))&&(y(e.palettelayout,e.j,e.i),e.j=e.j+1),y(e.palette,e.i,r[--t]),e.i=e.i+1})})}),K(e.palettelayout,0,a([e.ki,e.bi,e.gi,e.ci,e.ri,e.mi,e.yi,e.wi])),e.metacolorindex=a([e.ki,e.bi,e.gi,e.ci,e.ri,e.mi,e.yi,e.wi])}r[t++]=1/0;for(var ke=0,ze=e.rows*e.cols;ke0){r[t++]=1/0;for(var $e=0,bt=e.num;$e<=bt;$e+=1)r[t++]=~~($e*(h(e.cols-7)/e.num))+3;e.algnrpos=a()}if(e.num=~~Math.round(e.rows/16)-1,e.algncpos=a([3,17]),e.num>0){r[t++]=1/0;for(var ot=0,st=e.num;ot<=st;ot+=1)r[t++]=~~(ot*(h(e.rows-7)/e.num))+3;e.algncpos=a()}e.putalgnpat=function(){e.pp=r[--t],e.py=r[--t],e.px=r[--t];for(var Ht=0;Ht<=2;Ht+=1){e.pb=Ht;for(var tr=0;tr<=2;tr+=1){e.pa=tr,r[t++]=e.pixs,r[t++]=h(e.px+e.pa),r[t++]=h(e.py+e.pb),e.jmv();var Tr=r[--t];y(r[--t],Tr,u(u(e.pp,e.pb),e.pa))}}};for(var Ze=0,dt=e.algncpos.length-1;Ze<=dt;Ze+=1){e.j=Ze,e.y=u(e.algncpos,e.j);for(var Xe=0,Pt=e.algnrpos.length-1;Xe<=Pt;Xe+=1){e.i=Xe,e.x=u(e.algnrpos,e.i),r[t++]=e.pixs,r[t++]=e.x,r[t++]=e.y,e.jmv();var mt=r[--t];u(r[--t],mt)==-1&&(r[t++]=h(e.x-1),r[t++]=h(e.y-1),(e.i+e.j)%2==0?r[t++]=e.algnpat0:r[t++]=e.algnpat1,e.putalgnpat())}}if(e.slave){r[t++]=1/0;for(var Je=1;Je<=19;Je+=1)e.i=Je,r[t++]=a([0,e.i]),r[t++]=a([1,e.i]);for(var It=5;It<=12;It+=1)e.i=It,r[t++]=a([2,e.i]),r[t++]=a([3,e.i]);e.metadatamap=a(),r[t++]=1/0;for(var Nt=5;Nt<=12;Nt+=1){r[t++]=Nt,r[t++]=1/0;var ht=r[--t],xt=r[--t];r[t++]=ht,r[t++]=4,r[t++]=xt;var tt=a();r[t++]=tt}for(var Y=12;Y>=5;Y-=1){r[t++]=Y,r[t++]=1/0;var re=r[--t],ie=r[--t];r[t++]=re,r[t++]=5,r[t++]=ie;var le=a();r[t++]=le}for(var ge=5;ge<=12;ge+=1){r[t++]=ge,r[t++]=1/0;var Pe=r[--t],me=r[--t];r[t++]=Pe,r[t++]=6,r[t++]=me;var Ee=a();r[t++]=Ee}for(var ce=12;ce>=5;ce-=1){r[t++]=ce,r[t++]=1/0;var je=r[--t],He=r[--t];r[t++]=je,r[t++]=7,r[t++]=He;var Ne=a();r[t++]=Ne}e.palettemap1=a(),r[t++]=1/0;for(var ye=e.palettemap1,rt=0,Te=ye.length;rtXt){var be=Xt;Xt=en,en=be}for(var Sr=0,Kr=en-1;Sr<=Kr;Sr+=1){e.i=Sr;var hr=u(e.palettelayout,e.i);r[t++]=hr,r[t++]=e.pixs,r[t++]=hr,oe(u(e.palettemap1,e.i)),e.jmv();var dn=r[--t],er=r[--t];y(r[--t],dn,er);var jn=r[--t];r[t++]=e.pixs,r[t++]=jn,oe(u(e.palettemap2,e.i)),e.jmv();var qr=r[--t],vo=r[--t];y(r[--t],qr,vo)}e.i=16}e.j=e.nummetamodules;for(var Or=e.i,_n=e.palettelayout.length-1;Or<=_n;Or+=2){e.i=Or;var Nr=u(e.palettelayout,e.i);r[t++]=Nr,r[t++]=e.pixs,r[t++]=Nr,oe(u(e.metadatamap,e.j)),e.jmv();var jo=r[--t],nn=r[--t];y(r[--t],jo,nn);var zo=r[--t];r[t++]=e.pixs,r[t++]=zo,oe(u(e.metadatamap,h(e.j+2))),e.jmv();var xn=r[--t],ni=r[--t];y(r[--t],xn,ni);var so=u(e.palettelayout,e.i+1);r[t++]=so,r[t++]=e.pixs,r[t++]=so,oe(u(e.metadatamap,h(e.j+1))),e.jmv();var oi=r[--t],Zn=r[--t];y(r[--t],oi,Zn);var Mi=r[--t];r[t++]=e.pixs,r[t++]=Mi,oe(u(e.metadatamap,h(e.j+3))),e.jmv();var bo=r[--t],hi=r[--t];y(r[--t],bo,hi),e.j=h(e.j+4)}var Oo=a([function(){var Ht=r[--t],tr=r[--t];r[t++]=h(tr+Ht)%e.colors},function(){t--;var Ht=r[--t];r[t++]=Ht%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=Ht,r[t++]=tr,t--;var Tr=r[--t];r[t++]=Tr%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=(~~(Ht/3)+~~(tr/2))%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=(~~(Ht/2)+~~(tr/3))%e.colors},function(){var Ht=r[--t],tr=h(r[--t]+Ht);r[t++]=(~~(tr/2)+~~(tr/3))%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=h(Ht*(tr*tr)%7+h(Ht+tr*tr)*2%19)%e.colors},function(){var Ht=r[--t],tr=r[--t];r[t++]=h(tr*(Ht*Ht)%5+h(Ht*Ht+tr*2)%13)%e.colors}]);e.maskfuncs=Oo,e.mask!=-1&&(e.maskfuncs=a([u(e.maskfuncs,e.mask)]),e.bestmaskval=e.mask),e.masks=a(e.maskfuncs.length);for(var Gr=0,wo=e.masks.length-1;Gr<=wo;Gr+=1){e.m=Gr,e.mask=a(e.rows*e.cols);for(var ii=0,Pi=h(e.rows-1);ii<=Pi;ii+=1){e.j=ii;for(var Ho=0,ji=h(e.cols-1);Ho<=ji;Ho+=1){e.i=Ho,r[t++]=e.pixs,r[t++]=e.i,r[t++]=e.j,e.jmv();var rs=r[--t];if(u(r[--t],rs)==-1){if(r[t++]=e.i,r[t++]=e.j,u(e.maskfuncs,e.m)()===!0)break}else r[t++]=0;r[t++]=e.mask,r[t++]=e.i,r[t++]=e.j,e.jmv();var mi=r[--t],Vi=r[--t];y(Vi,mi,r[--t])}}y(e.masks,e.m,e.mask)}for(e.posx=0,e.posy=0,e.i=0;e.posx!=e.cols;){r[t++]=e.pixs,r[t++]=e.posx,r[t++]=e.posy,e.jmv();var Oi=r[--t];if(u(r[--t],Oi)==-1){var Sa=T(e.bits,e.i,e.databpm);r[t++]=0;for(var gi=0,Ia=Sa.length;gi=5?e.scr1=h(h(r[--t]-2)+e.scr1):t--,e.j>=4&&e.j<=e.scrle.length-5){var on=T(e.scrle,e.j-4,10);r[t++]=on;for(var Xr=0,fn=on.length;Xr=Yn:fn<=Yn;fn+=Vr){var yn=u(e.sym,fn),On=r[--t];if(r[t++]=On,r[t++]=yn,ae(On,yn)){t--;var pn=r[--t],An=r[--t];r[t++]=h(An+1),r[t++]=pn}else{var zn=r[--t];r[t++]=1,r[t++]=zn}}var Fn=mo()+2;xr(T(e.rle,0,Fn-2)),e.evalrle(),e.n3=h(r[--t]+e.n3),e.n1=h(r[--t]+e.n1),t--}for(var tn=0,Cn=h(e.rows-1);tn<=Cn;tn+=1){e.i=tn,e.symrow=T(e.sym,e.i*e.cols,e.cols),r[t++]=1/0;var rn=e.symrow;r[t++]=0,r[t++]=-1;for(var hn=0,Qn=rn.length;hn0){r[t++]=1/0,oe(e.lastpairs),oe(e.thispairs),r[t++]=e.n2;for(var gr=0,kn=e.cols;gr30&&(r[t++]="bwipp.gs1ccColumnsTooBig#27815",r[t++]="The maximum number of composite component columns is 30",ne()),!Un.__27833__){e=Object.create(e);var n=new Map([["ean13",4],["upca",4],["ean8",3],["upce",2],["gs1-128",4],["databaromni",4],["databarstacked",2],["databarstackedomni",2],["databartruncated",4],["databarlimited",3],["databarexpanded",4],["databarexpandedstacked",4]]);e.lintypecccolumns=n;for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__27833__=1,e=Object.getPrototypeOf(e)}if(it(e.lintype,"")){var i=u(e.lintypecccolumns,e.lintype)!==void 0;i||(r[t++]="bwipp.gs1ccBadLinType#27837",r[t++]="The lintype is not recognised",ne())}for(e.cccolumns==-1&&(ae(e.lintype,"gs1-128")&&ae(e.ccversion,"c")?(e.linwidth<0&&(r[t++]="bwipp.gs1ccMissingLinWidth#27845",r[t++]="linwidth must be set for a GS1-128 with a CC-C composite component",ne()),e.linwidth<68&&(r[t++]="bwipp.gs1ccMinimumLinWidth#27848",r[t++]="Minimum linwidth for a GS1-128 with a CC-C composite component is 68",ne()),e.linwidth==68?r[t++]=1:r[t++]=~~((e.linwidth-52)/17)):it(e.lintype,"")?r[t++]=u(e.lintypecccolumns,e.lintype):r[t++]=2,e.cccolumns=r[--t]),r[t++]=e.barcode,r[t++]="ai",Jr(),e.fncs=r[--t],e.vals=r[--t],e.ais=r[--t],e.isupper=function(){var Ir=r[--t];r[t++]=Ir>=65&&Ir<=90},e.isnum0=function(){var Ir=r[--t];r[t++]=Ir>=48&&Ir<=57},e.isnum1=function(){var Ir=r[--t];r[t++]=Ir>=49&&Ir<=57};;){if(e.ais.length>=1&&(ae(u(e.ais,0),"10")||ae(u(e.ais,0),"11")||ae(u(e.ais,0),"17"))){r[t++]=-1,r[t++]="10";break}if(e.ais.length>=1&&ae(u(e.ais,0),"90")){if(e.v=u(e.vals,0),e.v.length>=1&&(r[t++]=u(e.v,0),e.isupper(),r[--t])){r[t++]=0,r[t++]="11";break}if(e.v.length>=2){r[t++]=u(e.v,0),e.isnum1(),r[t++]=u(e.v,1),e.isupper();var s=r[--t],l=r[--t];if(l&&s){r[t++]=1,r[t++]="11";break}}if(e.v.length>=3){r[t++]=u(e.v,0),e.isnum1(),r[t++]=u(e.v,1),e.isnum0();var c=r[--t],d=r[--t];r[t++]=gu(d,c),r[t++]=u(e.v,2),e.isupper();var f=r[--t],p=r[--t];if(p&&f){r[t++]=2,r[t++]="11";break}}if(e.v.length>=4){r[t++]=u(e.v,0),e.isnum1(),r[t++]=u(e.v,1),e.isnum0();var m=r[--t],g=r[--t];r[t++]=gu(g,m),r[t++]=u(e.v,2),e.isnum0();var v=r[--t],w=r[--t];r[t++]=gu(w,v),r[t++]=u(e.v,3),e.isupper();var A=r[--t],k=r[--t];if(k&&A){r[t++]=3,r[t++]="11";break}}}r[t++]=-1,r[t++]="0";break}if(e.method=r[--t],e.npre=r[--t],e.tobin=function(){var Ir=pe(r[--t]);r[t++]=Ir;for(var xo=0,Ln=Ir.length-1;xo<=Ln;xo+=1){var $i=r[--t];y($i,xo,48),r[t++]=$i}var Bo=r[--t],Li=vr(pe(Bo.length),r[--t],2);K(Bo,Bo.length-Li.length,Li),r[t++]=Bo},!Un.__27968__){e=Object.create(e),e.fnc1=-1,e.lnumeric=-2,e.lalphanumeric=-3,e.liso646=-4,r[t++]=1/0;for(var C=65;C<=90;C+=1)r[t++]=C,r[t++]=C-65,r[t++]=5,e.tobin();for(var M=48;M<=57;M+=1)r[t++]=M,r[t++]=M+4,r[t++]=6,e.tobin();r[t++]=e.fnc1,r[t++]="11111",e.alpha=Tt(),r[t++]=1/0;for(var S=0;S<=119;S+=1){var I=Gn(pe(2),"00"),E=vr(pe(2),S,11);if(K(I,2-E.length,E),r[t++]=S,r[t++]=I,u(I,0)==65){var j=r[--t];y(j,0,94),r[t++]=j}var B=r[--t];if(r[t++]=B,u(B,1)==65){var D=r[--t];y(D,1,94),r[t++]=D}var R=r[--t],N=Gn(pe(7),"0000000"),U=vr(pe(7),h(r[--t]+8),2);K(N,7-U.length,U),r[t++]=R,r[t++]=N}r[t++]=e.lalphanumeric,r[t++]="0000",e.numeric=Tt(),r[t++]=1/0;for(var L=48;L<=57;L+=1)r[t++]=L,r[t++]=L-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var _=65;_<=90;_+=1)r[t++]=_,r[t++]=_-33,r[t++]=6,e.tobin();r[t++]=42,r[t++]="111010";for(var V=44;V<=47;V+=1)r[t++]=V,r[t++]=V+15,r[t++]=6,e.tobin();r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.liso646,r[t++]="00100",e.alphanumeric=Tt(),r[t++]=1/0;for(var $=48;$<=57;$+=1)r[t++]=$,r[t++]=$-43,r[t++]=5,e.tobin();r[t++]=e.fnc1,r[t++]="01111";for(var z=65;z<=90;z+=1)r[t++]=z,r[t++]=z-1,r[t++]=7,e.tobin();for(var Q=97;Q<=122;Q+=1)r[t++]=Q,r[t++]=Q-7,r[t++]=7,e.tobin();r[t++]=33,r[t++]="11101000",r[t++]=34,r[t++]="11101001";for(var G=37;G<=47;G+=1)r[t++]=G,r[t++]=G+197,r[t++]=8,e.tobin();for(var F=58;F<=63;F+=1)r[t++]=F,r[t++]=F+187,r[t++]=8,e.tobin();r[t++]=95,r[t++]="11111011",r[t++]=32,r[t++]="11111100",r[t++]=e.lnumeric,r[t++]="000",r[t++]=e.lalphanumeric,r[t++]="00100",e.iso646=Tt();for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__27968__=1,e=Object.getPrototypeOf(e)}if(ae(e.method,"10")){if(ae(u(e.ais,0),"11")||ae(u(e.ais,0),"17")){var q=u(e.vals,0),W=Gn(pe(16),"0000000000000000"),X=vr(pe(16),ft(T(q,0,2))*384+((ft(T(q,2,2))-1)*32+ft(T(q,4,2))),2);K(W,16-X.length,X),r[t++]=W,r[t++]=1/0;var te=r[--t],se=r[--t];r[t++]=te,r[t++]=1,r[t++]=0,Oe(se,function(){var Ir=r[--t];r[t++]=h(Ir-48)});var de=ae(u(e.ais,0),"11")?0:1;r[t++]=de,e.cdf=a(),e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1)}else e.cdf=a([1,0,1,1]);e.ais.length!=0?ae(u(e.ais,0),"10")?(r[t++]=1/0,Oe(u(e.vals,0)),e.gpf=a(),e.ais.length>1&&(r[t++]=1/0,oe(e.gpf),r[t++]=e.fnc1,e.gpf=a()),e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1)):e.gpf=a([e.fnc1]):(r[t++]=1/0,oe(e.cdf),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,e.cdf=a(),e.gpf=a([])),e.mode="numeric"}if(ae(e.method,"11")){e.cdf=a([1,1]),e.ai90=u(e.vals,0),h(e.npre+1)!=e.ai90.length?r[t++]=T(e.ai90,h(e.npre+1),h(h(e.ai90.length-e.npre)-1)):r[t++]="",e.ai90rem=r[--t],r[t++]="nalpha",r[t++]=0,Oe(e.ai90rem,function(){var Ir=r[--t];if(Ir>=65&&Ir<=90){var xo=r[--t];r[t++]=h(xo+1)}});var ee=r[--t];e[r[--t]]=ee,r[t++]="nnums",r[t++]=0,Oe(e.ai90rem,function(){var Ir=r[--t];if(Ir>=48&&Ir<=57){var xo=r[--t];r[t++]=h(xo+1)}});var fe=r[--t];e[r[--t]]=fe,r[t++]="mode",Mc(e.nalpha,e.nnums)?r[t++]="alpha":e.nalpha==0?r[t++]="numeric":r[t++]="alphanumeric";var he=r[--t];e[r[--t]]=he,h(e.nalpha+e.nnums)!=e.ai90rem.length&&(e.mode="alphanumeric"),r[t++]=1/0,oe(e.cdf),ae(e.mode,"alphanumeric")&&(r[t++]=0),ae(e.mode,"numeric")&&(r[t++]=1,r[t++]=0),ae(e.mode,"alpha")&&(r[t++]=1,r[t++]=1),e.cdf=a(),r[t++]="ais1",e.ais.length>1?r[t++]=u(e.ais,1):r[t++]=-1;var Ie=r[--t];e[r[--t]]=Ie,r[t++]="vals1",e.vals.length>1?r[t++]=u(e.vals,1):r[t++]=-1;var ve=r[--t];e[r[--t]]=ve,ae(e.ais1,"21")||ae(e.ais1,"8004")?(r[t++]=1/0,oe(e.cdf),ae(e.ais1,"21")?(r[t++]=1,r[t++]=0):(r[t++]=1,r[t++]=1),e.cdf=a()):(r[t++]=1/0,oe(e.cdf),r[t++]=0,e.cdf=a()),r[t++]="nval",e.npre!=0?r[t++]=ft(T(e.ai90,0,e.npre)):r[t++]=0;var be=r[--t];if(e[r[--t]]=be,pr("BDHIJKLNPQRSTVXZ",T(e.ai90,e.npre,1)),r[--t]){var ke=r[--t],ze=r[--t];r[t++]=ke.length,r[t++]=ze,t--;var Ge=r[--t],Ve=r[--t];r[t++]=Ge,r[t++]=Ve,t--,e.aval=r[--t]}else t--,e.aval=-1;if(e.nval<31&&e.aval!=-1){var at=Gn(pe(5),"00000"),We=vr(pe(5),e.nval,2);K(at,5-We.length,We),r[t++]=at,r[t++]=1/0;var ue=r[--t],Le=r[--t];r[t++]=ue,Oe(Le,function(){var Ir=r[--t];r[t++]=h(Ir-48)}),e.nbits=a();var $e=Gn(pe(4),"0000"),bt=vr(pe(4),e.aval,2);K($e,4-bt.length,bt),r[t++]=$e,r[t++]=1/0;var ot=r[--t],st=r[--t];r[t++]=ot,Oe(st,function(){var Ir=r[--t];r[t++]=h(Ir-48)}),e.abits=a(),r[t++]=1/0,oe(e.cdf),oe(e.nbits),oe(e.abits),e.cdf=a()}else{var Ze=Gn(pe(10),"0000000000"),dt=vr(pe(10),e.nval,2);K(Ze,10-dt.length,dt),r[t++]=Ze,r[t++]=1/0;var Xe=r[--t],Pt=r[--t];r[t++]=Xe,Oe(Pt,function(){var Ir=r[--t];r[t++]=h(Ir-48)}),e.nbits=a();var mt=Gn(pe(5),"00000"),pt=vr(pe(5),h(u(e.ai90,e.npre)-65),2);K(mt,5-pt.length,pt),r[t++]=mt,r[t++]=1/0;var Fe=r[--t],Be=r[--t];r[t++]=Fe,Oe(Be,function(){var Ir=r[--t];r[t++]=h(Ir-48)}),e.abits=a(),r[t++]=1/0,oe(e.cdf),r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,oe(e.nbits),oe(e.abits),e.cdf=a()}if(it(e.mode,"alpha"))r[t++]=1/0,Oe(e.ai90rem),e.ais.length>1&&(r[t++]=e.fnc1),e.gpf=a();else{r[t++]=1/0,Oe(e.ai90rem),e.ais.length>1&&(r[t++]=e.fnc1),e.in=a(),e.out=a(e.in.length*6),e.j=0;for(var Je=0,It=e.in.length-1;Je<=It;Je+=1){var Nt=u(e.alpha,u(e.in,Je));r[t++]=Nt,r[t++]=Nt,r[t++]=1/0;var ht=r[--t],xt=r[--t];r[t++]=ht,Oe(xt,function(){var Ir=r[--t];r[t++]=h(Ir-48)}),K(e.out,e.j,a()),e.j=r[--t].length+e.j}r[t++]=1/0,oe(e.cdf),oe(T(e.out,0,e.j)),e.cdf=a(),e.gpf=a([]),e.ais.length>1&&(e.mode="numeric")}e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1),e.ais.length!=0&&(ae(e.ais1,"21")||ae(e.ais1,"8004"))&&(r[t++]=1/0,oe(e.gpf),Oe(e.vals1),e.gpf=a(),e.ais=T(e.ais,1,e.ais.length-1),e.vals=T(e.vals,1,e.vals.length-1),e.fncs=T(e.fncs,1,e.fncs.length-1),e.ais.length!=0&&(r[t++]=1/0,oe(e.gpf),r[t++]=e.fnc1,e.gpf=a()))}ae(e.method,"0")&&(e.cdf=a([0]),e.gpf=a([]),e.mode="numeric");for(var tt=0,Y=e.ais.length-1;tt<=Y;tt+=1){e.i=tt,e.ai=u(e.ais,e.i),e.val=u(e.vals,e.i);var re=a(e.gpf.length+e.ai.length+e.val.length);K(re,0,e.gpf),r[t++]=re,r[t++]=re,r[t++]=e.gpf.length,r[t++]=e.ai,r[t++]=1/0;var ie=r[--t],le=r[--t];r[t++]=ie,Oe(le);var ge=a(),Pe=r[--t];K(r[--t],Pe,ge);var me=r[--t];r[t++]=me,r[t++]=me,r[t++]=e.gpf.length+e.ai.length,r[t++]=e.val,r[t++]=1/0;var Ee=r[--t],ce=r[--t];r[t++]=Ee,Oe(ce);var je=a(),He=r[--t];if(K(r[--t],He,je),e.gpf=r[--t],e.i!=e.ais.length-1&&u(e.fncs,e.i)){var Ne=a(e.gpf.length+1);K(Ne,0,e.gpf),y(Ne,e.gpf.length,e.fnc1),e.gpf=Ne}}if(!Un.__28137__){e=Object.create(e);var ye=new Map([["a",a([a([167,138,118,108,88,78,59]),a([167,138,118,98,78]),a([197,167,138,108,78])])],["b",a([a([336,296,256,208,160,104,56]),a([768,648,536,416,304,208,152,112,72,32]),a([1184,1016,840,672,496,352,264,208,152,96,56])])]]);e.bitcapsmaps=ye;for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__28137__=1,e=Object.getPrototypeOf(e)}e.rembits=function(){if(e.used=r[--t],it(e.ccversion,"c")){e.bitcaps=u(u(e.bitcapsmaps,e.ccversion),h(e.cccolumns-2)),r[t++]=-1,Oe(e.bitcaps,function(){var lo=r[--t];if(r[t++]=lo,Hs(lo,e.used)){var Ua=r[--t],Qi=r[--t];r[t++]=Ua,r[t++]=Qi}t--});var Ir=r[--t];if(r[t++]=Ir,Ir!=-1){var xo=r[--t];r[t++]=h(xo-e.used)}}else{var Ln=new Map([["c",-1]]);u(Ln,e.ccversion);var $i=~~Math.ceil(e.used/8);for(e.m=~~($i/6)*5+$i%6,e.m<=40&&(r[t++]=8),e.m>=41&&e.m<=160&&(r[t++]=16),e.m>=161&&e.m<=320&&(r[t++]=32),e.m>=321&&e.m<=833&&(r[t++]=64),e.m>=834&&(r[t++]=32),e.eccws=r[--t],e.m=h(h(e.m+e.eccws)+3),e.cccolumns>30&&(e.cccolumns=30);!(~~Math.ceil(e.m/e.cccolumns)<=30||e.cccolumns>=30);)e.cccolumns=e.cccolumns+1;e.r=~~Math.ceil(e.m/e.cccolumns),e.r<3&&(e.r=3);var Bo=h(h(e.cccolumns*e.r-e.eccws)-3);e.tgt=h(~~(Bo/5)*6+Bo%5)*8,e.used<=8304?r[t++]=h(e.tgt-e.used):r[t++]=-1}var Li=r[--t];r[t++]=Li,Li==-1&&(t--,ae(e.ccversion,"a")?e.ccversion="b":ae(e.ccversion,"b")&&ae(e.lintype,"gs1-128")?(e.ccversion="c",e.cccolumns=~~((e.linwidth-52)/17)):e.ccversion=-1,r[t++]=e.used,e.rembits())},e.encode=function(){var Ir=r[--t];if(r[t++]=Ir,it(Ir,"raw")){var xo=r[--t],Ln=u(xo,r[--t]);r[t++]=Ln}else t--;r[t++]=1/0;var $i=r[--t],Bo=r[--t];r[t++]=$i,Oe(Bo,function(){var lo=r[--t];r[t++]=h(lo-48)});var Li=a();K(e.gpfenc,e.j,Li),e.j=Li.length+e.j},r[t++]=1/0;for(var rt=0,Te=e.gpf.length;rt=0;lt-=1){e.i=lt;var gt=Gn(pe(2),"00"),At=u(e.gpf,e.i);r[t++]=u(e.gpf,e.i),r[t++]=gt,r[t++]=gt,r[t++]=0,r[t++]=At,At==e.fnc1&&(t--,r[t++]=94);var St=r[--t],yt=r[--t];if(y(r[--t],yt,St),e.i57){r[t++]=e.lalphanumeric,r[t++]=e.numeric,e.encode(),e.mode="alphanumeric";break}r[t++]="rem",r[t++]=e.cdf.length+e.j,e.rembits();var Hr=r[--t];if(e[r[--t]]=Hr,e.rem>=4&&e.rem<=6){var un=T(Gn(pe(6),"000000"),0,e.rem),Pn=vr(pe(4),h(u(e.gpf,e.i)-47),2);K(un,4-Pn.length,Pn),r[t++]=un,r[t++]="raw",e.encode(),e.i=e.i+1;break}else{var Br=pe(2);y(Br,0,u(e.gpf,e.i)),y(Br,1,94),r[t++]=Br,r[t++]=e.numeric,e.encode(),e.i=e.i+1;break}}if(ae(e.mode,"alphanumeric")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric",e.i=e.i+1;break}var bn=u(e.gpf,e.i),wn=u(e.iso646,bn)!==void 0,zt=u(e.alphanumeric,bn)!==void 0;if(wn&&!zt){r[t++]=e.liso646,r[t++]=e.alphanumeric,e.encode(),e.mode="iso646";break}if(u(e.numericruns,e.i)>=6){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}var ar=u(e.numericruns,e.i);if(ar>=4&&h(ar+e.i)==e.gpf.length){r[t++]=e.lnumeric,r[t++]=e.alphanumeric,e.encode(),e.mode="numeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.alphanumeric,e.encode(),e.i=e.i+1;break}if(ae(e.mode,"iso646")){if(u(e.gpf,e.i)==e.fnc1){r[t++]=e.fnc1,r[t++]=e.iso646,e.encode(),e.mode="numeric",e.i=e.i+1;break}if(u(e.numericruns,e.i)>=4&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lnumeric,r[t++]=e.iso646,e.encode(),e.mode="numeric";break}if(u(e.alphanumericruns,e.i)>=5&&u(e.nextiso646only,e.i)>=10){r[t++]=e.lalphanumeric,r[t++]=e.iso646,e.encode(),e.mode="alphanumeric";break}r[t++]=u(e.gpf,e.i),r[t++]=e.iso646,e.encode(),e.i=e.i+1;break}}e.gpf=T(e.gpfenc,0,e.j),r[t++]="pad",r[t++]=e.cdf.length+e.gpf.length,e.rembits();var mr=a(r[--t]);if(e[r[--t]]=mr,e.pad.length>0){for(var Cr=0,Yr=e.pad.length-1;Cr<=Yr;Cr+=5){e.i=Cr;var Xt=e.pad,en=e.i,Sr=a([0,0,1,0,0]),Kr=e.pad,hr=e.i,dn=5,er=Kr.length-hr;if(Kr.length-hr>5){var jn=dn;dn=er,er=jn}K(Xt,en,T(Sr,0,er))}ae(e.mode,"numeric")&&(r[t++]=1/0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.pad),e.pad=T(a(),0,e.pad.length)),ae(e.mode,"alpha")&&(r[t++]=1/0,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=1,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.pad),e.pad=T(a(),0,e.pad.length))}if(r[t++]=1/0,oe(e.cdf),oe(e.gpf),oe(e.pad),e.bits=a(),!Un.__28348__){e=Object.create(e),r[t++]=1/0,r[t++]=a([0,0,0,0,0,0,1]);for(var qr=0,vo=68;qr=1;_n-=1)e.i=_n,e.v=h(u(u(e.pwr928,e.j-1),e.i)*2+~~(e.v/928)),y(u(e.pwr928,e.j),e.i,e.v%928);y(u(e.pwr928,e.j),0,h(u(u(e.pwr928,e.j-1),0)*2+~~(e.v/928)))}for(var o in e)e.hasOwnProperty(o)&&(Un.$ctx[o]=e[o]);Un.__28348__=1,e=Object.getPrototypeOf(e)}if(e.ccversion=="a"){r[t++]=1/0;for(var Nr=0,jo=28;Nrxn.length-ni){var jn=so;so=oi,oi=jn}e.bs=T(nn,zo,oi),e.bsl=e.bs.length,e.cs=T(e.cws,e.c,~~(e.bsl/10)+1),e.csl=e.cs.length;for(var Zn=0,Mi=e.bsl-1;Zn<=Mi;Zn+=1){e.i=Zn;for(var bo=0,hi=e.csl-1;bo<=hi;bo+=1){e.j=bo;var Oo=e.cs,Gr=e.j;y(Oo,Gr,h(u(Oo,Gr)+u(u(e.pwr928,e.i),e.j+7-e.csl)*u(e.bs,e.bsl-e.i-1)))}}for(var wo=e.csl-1;wo>=1;wo-=1){e.i=wo;var ii=e.cs,Pi=e.i;y(ii,Pi-1,h(u(ii,Pi-1)+~~(u(e.cs,e.i)/928)));var Ho=e.cs,ji=e.i;y(Ho,ji,u(Ho,ji)%928)}e.b=e.b+e.bsl,e.c=e.c+e.csl}e.cws=T(e.cws,0,e.c),e.barcode=pe(e.cws.length*4);for(var rs=0,mi=e.cws.length-1;rs<=mi;rs+=1){e.i=rs;var Vi=Gn(pe(4),"^000"),Oi=vr(pe(4),u(e.cws,e.i),10);K(Vi,4-Oi.length,Oi),K(e.barcode,e.i*4,Vi)}delete e.options.parse,y(e.options,"dontdraw",!0),y(e.options,"cca",!0),y(e.options,"columns",e.cccolumns),r[t++]="args",r[t++]=e.barcode,r[t++]=e.options,ls();var Sa=r[--t];e[r[--t]]=Sa}if(e.ccversion=="b"){e.barcode=pe(~~(e.bits.length/8));for(var gi=0,Ia=e.barcode.length-1;gi<=Ia;gi+=1){e.i=gi;var Ni=T(e.bits,e.i*8,8);r[t++]=0;for(var Ki=0,Wo=Ni.length;Ki0){r[t++]=1/0;for(var A=0,k=e.diff;A=S:C<=S;C+=M)e.i=C,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var I=0,E=2;I=0;z-=1){e.y=z,oe(e.linpad),r[t++]=0;for(var Q=0,G=e.sbs.length-1;Q<=G;Q+=1)if(e.i=Q,e.i%2==0){var F=u(e.bbs,~~(e.i/2))*72;if(F>e.y||h(F+u(e.bhs,~~(e.i/2))*72)0){r[t++]=1/0;for(var C=0,M=e.diff;C=E:S<=E;S+=I)e.i=S,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var j=0,B=2;j=0;G-=1){e.y=G,oe(e.linpad),r[t++]=0;for(var F=0,q=e.sbs.length-1;F<=q;F+=1)if(e.i=F,e.i%2==0){var W=u(e.bbs,~~(e.i/2))*72;if(W>e.y||h(W+u(e.bhs,~~(e.i/2))*72)0){r[t++]=1/0;for(var A=0,k=e.diff;A=S:C<=S;C+=M)e.i=C,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var I=0,E=2;I=0;z-=1){e.y=z,oe(e.linpad),r[t++]=0;for(var Q=0,G=e.sbs.length-1;Q<=G;Q+=1)if(e.i=Q,e.i%2==0){var F=u(e.bbs,~~(e.i/2))*72;if(F>e.y||h(F+u(e.bhs,~~(e.i/2))*72)0){r[t++]=1/0;for(var A=0,k=e.diff;A=S:C<=S;C+=M)e.i=C,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);for(var I=0,E=2;I=0;z-=1){e.y=z,oe(e.linpad),r[t++]=0;for(var Q=0,G=e.sbs.length-1;Q<=G;Q+=1)if(e.i=Q,e.i%2==0){var F=u(e.bbs,~~(e.i/2))*72;if(F>e.y||h(F+u(e.bhs,~~(e.i/2))*72)=d:l<=d;l+=c)e.i=l,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0;r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.sep);for(var f=0,p=e.linheight;f=m:f<=m;f+=p)e.i=f,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx));oe(e.sep),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;for(var g=0,v=e.linwidth,w=e.linpixs.length-1;v<0?g>=w:g<=w;g+=v)e.i=g,oe(T(e.linpixs,e.i,e.linwidth)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;e.pixs=a(),e.pixx=h(e.ccpixx+1),e.pixy=~~(e.pixs.length/e.pixx);var A=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.pixx],["pixy",e.pixy],["height",e.pixy/72],["width",e.pixx/72],["opt",e.options]]);r[t++]=A,e.dontdraw||(Se.save(),Qt(),Se.restore())}else{Se.rmoveto(0,e.linheight);var c=new Map([["ren","renmatrix"],["pixs",e.sep],["pixx",e.sep.length],["pixy",1],["height",1/72],["width",e.sep.length/72],["opt",e.options]]);r[t++]=c,Qt(),Se.rmoveto(1,1),r[t++]=e.comp,r[t++]=e.options,Un(),Qt(),Se.restore()}e=Object.getPrototypeOf(e)}function E0e(){e=Object.create(e),e.dontdraw=!1,e.usematrix=!1,e.parse=!1,e.dontlint=!1,e.lintreqs=!0,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.dontdraw&&(e.usematrix=!0),pr(e.barcode,"|"),r[--t]?(e.linear=r[--t],t--,e.comp=r[--t]):(t--,r[t++]="bwipp.missingCompositeComponent#29435",r[t++]="A Composite Component must be provided following a pipe character",ne()),e.usematrix||Se.save(),y(e.options,"lintype","databarstackedomni"),y(e.options,"linkage",!0),y(e.options,"inkspreadv",0),y(e.options,"dontdraw",!0),y(e.options,"dontlint",!0);var n=pe(e.linear.length+e.comp.length);K(n,0,e.linear),K(n,e.linear.length,e.comp),r[t++]=n,r[t++]="ai",Jr(),t-=3,r[t++]=e.linear,r[t++]=e.options,iF();var o=r[--t];e.bot=T(u(o,"pixs"),0,u(o,"pixx")),e.linheight=u(o,"pixy"),r[t++]=o,e.usematrix?e.linpixs=u(r[--t],"pixs"):Qt(),e.sepfinder=function(){e.fp=r[--t];for(var k=e.fp,C=h(e.fp+12);k<=C;k+=1){if(e.i=k,u(e.bot,e.i)==0)if(u(e.bot,e.i-1)==1)r[t++]=1;else{var M=u(e.sep,e.i-1)==0?1:0;r[t++]=M}else r[t++]=0;y(e.sep,e.i,r[--t])}e.f3=a([1,1,1,1,1,1,1,1,1,0,1,1,1]),r[t++]=!0;for(var S=0;S<=12;S+=1){var I=r[--t];r[t++]=I&&ae(u(e.bot,h(S+e.fp)),u(e.f3,S))}r[--t]&&K(e.sep,e.fp,a([0,0,0,0,0,0,0,0,0,0,1,0,0]))},r[t++]=1/0;for(var i=e.bot,s=0,l=i.length;s=m:f<=m;f+=p)e.i=f,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx));oe(e.sep),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;for(var g=0,v=e.linwidth,w=e.linpixs.length-1;v<0?g>=w:g<=w;g+=v)e.i=g,oe(T(e.linpixs,e.i,e.linwidth)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;e.pixs=a(),e.pixx=h(e.ccpixx+1),e.pixy=~~(e.pixs.length/e.pixx);var A=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.pixx],["pixy",e.pixy],["height",e.pixy/72],["width",e.pixx/72],["opt",e.options]]);r[t++]=A,e.dontdraw||(Se.save(),Qt(),Se.restore())}else{Se.rmoveto(0,e.linheight);var c=new Map([["ren","renmatrix"],["pixs",e.sep],["pixx",e.sep.length],["pixy",1],["height",1/72],["width",e.sep.length/72],["opt",e.options]]);r[t++]=c,Qt(),Se.rmoveto(1,1),r[t++]=e.comp,r[t++]=e.options,Un(),Qt(),Se.restore()}e=Object.getPrototypeOf(e)}function M0e(){e=Object.create(e),e.dontdraw=!1,e.usematrix=!1,e.parse=!1,e.dontlint=!1,e.lintreqs=!0,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.dontdraw&&(e.usematrix=!0),pr(e.barcode,"|"),r[--t]?(e.linear=r[--t],t--,e.comp=r[--t]):(t--,r[t++]="bwipp.missingCompositeComponent#29589",r[t++]="A Composite Component must be provided following a pipe character",ne()),e.usematrix||Se.save(),y(e.options,"lintype","databartruncated"),y(e.options,"linkage",!0),y(e.options,"inkspreadv",0),y(e.options,"dontdraw",!0),y(e.options,"dontlint",!0);var n=pe(e.linear.length+e.comp.length);K(n,0,e.linear),K(n,e.linear.length,e.comp),r[t++]=n,r[t++]="ai",Jr(),t-=3,r[t++]=e.linear,r[t++]=e.options,aF();var o=r[--t];if(e.linsbs=u(o,"sbs"),e.linheight=u(u(o,"bhs"),0)*72,r[t++]=o,e.usematrix?t--:rr(),e.sepfinder=function(){e.fp=r[--t];for(var g=e.fp,v=h(e.fp+12);g<=v;g+=1){if(e.i=g,u(e.bot,e.i)==0)if(u(e.bot,e.i-1)==1)r[t++]=1;else{var w=u(e.sep,e.i-1)==0?1:0;r[t++]=w}else r[t++]=0;y(e.sep,e.i,r[--t])}e.f3=a([1,1,1,1,1,1,1,1,1,0,1,1,1]),r[t++]=!0;for(var A=0;A<=12;A+=1){var k=r[--t];r[t++]=k&&ae(u(e.bot,h(A+e.fp)),u(e.f3,A))}r[--t]&&K(e.sep,e.fp,a([0,0,0,0,0,0,0,0,0,0,1,0,0]))},r[t++]=1/0,r[t++]=0,Oe(e.linsbs,function(){var g=r[--t],v=r[--t],w=v==1?0:1;r[t++]=v;for(var A=0,k=g;A=d:l<=d;l+=c)e.i=l,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0;r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.sep);for(var f=0,p=e.linheight;f=m:f<=m;f+=p)e.i=f,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;oe(e.sep);for(var g=0,v=e.linheight;g=k:w<=k;w+=A)e.i=w,oe(T(e.ccpixs,e.i,e.ccpixx)),r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0;r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,r[t++]=0,oe(e.sep);for(var C=0,M=e.linheight;C=C:A<=C;A+=k)e.i=A,r[t++]=0,r[t++]=0,oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);oe(e.sep);for(var M=0,S=e.linheight;M=B:E<=B;E+=j)e.i=E,oe(e.cclpad),oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);oe(e.sep),oe(e.linpixs),e.pixs=a(),e.pixy=~~(e.pixs.length/e.pixx);var D=new Map([["ren","renmatrix"],["pixs",e.pixs],["pixx",e.pixx],["pixy",e.pixy],["height",e.pixy/72],["width",e.pixx/72],["opt",e.options]]);r[t++]=D,e.dontdraw||(Se.save(),Qt(),Se.restore())}else{Se.rmoveto(0,e.linheight);var w=new Map([["ren","renmatrix"],["pixs",e.sep],["pixx",e.sep.length],["pixy",1],["height",1/72],["width",e.sep.length/72],["opt",e.options]]);r[t++]=w,Qt();var A=u(e.bot,0)==0?2:0;Se.rmoveto(A,1),r[t++]=e.comp,r[t++]=e.options,Un(),Qt(),Se.restore()}e=Object.getPrototypeOf(e)}function R0e(){e=Object.create(e),e.dontdraw=!1,e.usematrix=!1,e.parse=!1,e.dontlint=!1,e.lintreqs=!0,r[t++]=e,Ot(),e.options=r[--t],e.barcode=r[--t],e.dontdraw&&(e.usematrix=!0),pr(e.barcode,"|"),r[--t]?(e.linear=r[--t],t--,e.comp=r[--t]):(t--,r[t++]="bwipp.missingCompositeComponent#30202",r[t++]="A Composite Component must be provided following a pipe character",ne()),e.usematrix||Se.save(),y(e.options,"inkspreadv",0),y(e.options,"dontdraw",!0),y(e.options,"dontlint",!0);var n=pe(e.linear.length+e.comp.length);K(n,0,e.linear),K(n,e.linear.length,e.comp),r[t++]=n,r[t++]="ai",Jr(),t-=3,y(e.options,"linkagea",!0),r[t++]=e.linear,r[t++]=1/0,Oe(e.options);var o=Tt();r[t++]=o,u6();var i=u(r[--t],"sbs");r[t++]=0,Oe(i,function(){var N=r[--t],U=r[--t];r[t++]=h(U+N)}),e.linwidth=r[--t],y(e.options,"lintype","gs1-128"),y(e.options,"linwidth",e.linwidth),r[t++]=e.comp,r[t++]=1/0,Oe(e.options);var s=Tt();r[t++]=s,Un(),e.compsym=r[--t],u(e.compsym,"pixx")==99?r[t++]="a":r[t++]="c",e.linktype=r[--t],ae(e.linktype,"a")?(y(e.options,"linkagea",!0),y(e.options,"linkagec",!1)):(y(e.options,"linkagea",!1),y(e.options,"linkagec",!0)),r[t++]=e.linear,r[t++]=1/0;var l=e.options;Oe(l);var c=Tt();r[t++]=c,u6();var d=r[--t];if(e.linsbs=u(d,"sbs"),e.linheight=u(u(d,"bhs"),0)*72,r[t++]=d,e.usematrix?t--:rr(),r[t++]=1/0,r[t++]=1,Oe(e.linsbs,function(){var N=r[--t],U=r[--t],L=U==0?1:0;r[t++]=U;for(var _=0,V=N;_0){r[t++]=1/0;for(var g=0,v=e.x;g0){r[t++]=1/0;for(var k=0,C=e.diff;k=j:I<=j;I+=E)e.i=I,oe(e.cclpad),oe(T(e.ccpixs,e.i,e.ccpixx)),oe(e.ccrpad);oe(e.linlpad),oe(e.sep),oe(e.linrpad);for(var B=0,D=e.linheight;B7)&&(r[t++]="bwipp.channelcodeBadLength#31719",r[t++]="Channel Code must be 2 to 7 digits",ne()),Oe(e.barcode,function(){var M=r[--t];(M<48||M>57)&&(r[t++]="bwipp.channelcodeBadCharacter#31723",r[t++]="Channel Code must contain only digits",ne())}),ft(e.barcode)>u(a([26,292,3493,44072,576688,7742862]),e.barcode.length-2)&&(r[t++]="bwipp.channelcodeTooBig#31727",r[t++]="The Channel Code value is too big for the number of channels",ne()),e.nextb=function(){var M=r[--t],S=h(u(e.s,M)+h(u(e.b,h(M-1))+h(u(e.b,h(M-2))+u(e.s,h(M-1)))))>4?1:2;if(r[t++]=M,r[t++]=S,Me.pixy&&(e.pixy=h(e.h+e.y))):y(e.bars,~~(e.i/2),-1)):e.d=h(h(u(e.sbs,e.i)*e.spaceratio-e.spaceratio)+1),e.pixx=h(e.pixx+e.d);Se.save();var i=Se.currpos();if(Se.translate(i.x,i.y),e.width!=0&&Se.scale(e.width*72/e.pixx,1),e.tl=a([-h(e.borderleft+e.borderwidth/2),h(h(e.pixy+e.bordertop)+e.borderwidth/2)]),e.tr=a([h(h(e.pixx+e.borderright)+e.borderwidth/2),h(h(e.pixy+e.bordertop)+e.borderwidth/2)]),e.bl=a([-h(e.borderleft+e.borderwidth/2),-h(e.borderbottom+e.borderwidth/2)]),e.br=a([h(h(e.pixx+e.borderright)+e.borderwidth/2),-h(e.borderbottom+e.borderwidth/2)]),e.showbearer){Se.save(),Se.newpath(),oe(e.bl);var s=r[--t];Se.moveto(r[--t],s),oe(e.br);var l=r[--t];Se.lineto(r[--t],l),oe(e.tl);var c=r[--t];Se.moveto(r[--t],c),oe(e.tr);var d=r[--t];Se.lineto(r[--t],d),it(e.bordercolor,"unset")&&Se.setcolor(e.bordercolor),Se.setlinewidth(h(e.borderwidth-e.inkspread*2)),Se.stroke(),Se.restore()}else if(e.showborder){Se.save(),Se.newpath(),oe(e.bl);var f=r[--t];Se.moveto(r[--t],f);for(var p=a([e.br,e.tr,e.tl]),m=0,g=p.length;m",0,0))),Se.restore(),e=Object.getPrototypeOf(e)}}function z0e(){if(!e.bwipjs_dontdraw){e=Object.create(e),e.args=r[--t],e.barcolor="unset",e.backgroundcolor="unset",Oe(e.args,function(){var c=r[--t];e[r[--t]]=c});for(var n=e.opt,o=n.size,i=n.keys(),s=0;s>>0,A*M>>>0):k!=null?(k=k>>>0,k*M>>>0):(C=C>>>0,C*M>>>0||0)}}var W0e={bcid:1,text:1,scale:1,scaleX:1,scaleY:1,rotate:1,padding:1,paddingwidth:1,paddingheight:1,paddingtop:1,paddingleft:1,paddingright:1,paddingbottom:1,backgroundcolor:1};function q0e(n,o){return d8(Zb(n.bcid),n,o)}function d8(n,o,i){var s=o.text;if(!s)throw new ReferenceError("bwip-js: bar code text not specified.");cF(o),i.setopts&&i.setopts(o);var l=o.scale||2,c=+o.scaleX||l,d=+o.scaleY||c;o.rotate;var f=new uF(i),p={};for(var m in o)W0e[m]||(p[m]=o[m]);return p.alttext&&(p.includetext=!0),+p.height&&n!=sF&&(p.height=p.height/25.4||.5),+p.width&&(p.width=p.width/25.4||0),f.scale(c,d),lF(f,n,s,p),f.render()}function _0e(n,o,i){arguments.length==1&&(i=n,n=i.bcid,o=i.text);var s=dF();s.setopts(i);for(var l=new uF(s),c=lF(l,Zb(n),o,i,!0),d={pixs:1,pixx:1,pixy:1,sbs:1,bbs:1,bhs:1,width:1,height:1},f=0;f=0&&d[p].op=="l";p--);if(p++,pC.x0&&(g=C.x0),wC.y0&&(v=C.y0),AC.x1&&(g=C.x1),wC.y1&&(v=C.y1),Aw.x0&&(f=w.x0),mw.x1&&(f=w.x1),mw.y0&&(p=w.y0),gw.y1&&(p=w.y1),gM){var j=k;k=M,M=j}if(C>S){var j=C;C=S,S=j}k==M?this.bbox(k-I,C,k+g-I-1,S):this.bbox(k,C-v+E+1,M,S+E)}else if(A.op=="p"){var B=1/0,D=1/0,R=-1/0,N=-1/0,U=A.poly;if(U.length!=4)throw new Error("stroke: --not-a-rect--");for(var w=0,L=U.length-1;wR&&(R=$),zN&&(N=z)}var I=i(g/2),E=i(v/2);this.bbox(B-I,D-E,R+I,N+E)}else throw new Error("stroke: --not-a-line--")}var Q=this;this.cmds.push(function(){for(var G=i(g/2),F=i(v/2),q=g-G,W=v-F,X=0;Xw&&(w=M),SA&&(A=S)}this.bbox(g,v+1,w-1,A)}else if(m.op=="e")this.bbox(m.x-m.rx,m.y-m.ry,m.x+m.rx,m.y+m.ry);else throw new Error("fill: --not-a-polygon--")}var I=this;this.cmds.push(function(){for(var E=0;E9&&v++;var w,A,k,C;k=f/2|0,C=p/2|0,w=v-k,w&1&&w--,A=(4*p|0)-C;var M=w/2-1,S=(M+1)/2|0,I=A-2-2*S;this.bbox(0,0,v*30-k,p*3*32+p*4-C);var E=this;this.cmds.push(function(){for(var j=0;jp){var g=d;d=p,p=g}if(f>m){var g=f;f=m,m=g}d=n(d),f=n(f),p=i(p),m=i(m),this.minx>d&&(this.minx=d),this.maxxf&&(this.miny=f),this.maxyG)for(var F=G+1;FQ&&B(z,Q),X>Q&&B(q,Q)}else{var W=L[$==_-1?0:$+1][1],X=L[V==0?_-1:V-1][1];W>Q&&B(q,Q),X>Q&&B(z,Q)}}},hexagon:function(L,_){var V=L[0][0]|0,$=L[0][1]|0,z=L[1][1]-L[0][1]|0,Q=L[2][1]-L[1][1]-1|0,G=L[2][0]|0,F=L[4][0]|0;C=parseInt(_.substr(0,2),16),M=parseInt(_.substr(2,2),16),S=parseInt(_.substr(4,2),16),D(V,V+1,$++);for(var q=1;q=1;q--)D(V-2*q,V+1+2*q,$++);D(V,V+1,$)},ellipse:function(L,_,V,$,z){N(L-V|0,_-$|0,L+V|0,_+$|0)},fill:function(L){C=parseInt(L.substr(0,2),16),M=parseInt(L.substr(2,2),16),S=parseInt(L.substr(4,2),16),R(),I=[],I.min=1/0},clip:function(L){E||(E=[],E.min=1/0);var _=I;I=E;for(var V=0,$=L.length;V<$;V++)this.polygon(L[V]);I=_},unclip:function(){E=null},text:function(L,_,V,$,z){L=L|0,_=_|0,C=parseInt($.substr(0,2),16),M=parseInt($.substr(2,2),16),S=parseInt($.substr(4,2),16);for(var Q=dl.lookup(z.name),G=z.width|0,F=z.height|0,q=z.dx|0,W=0;W_&&(I.min=_),I[_]?I[_].push(L):I[_]=[L]}function D(L,_,V){for(;L<=_;)j(L++,V,255)}function R(){for(var L=I.min,_=I.length-1,V=L;V<=_;V++){var $=I[V];if($){$.sort(function(W,X){return W-X});for(var z=!1,Q=0,G=0,F=$.length;GV&&(L=V,V+=Q),_>$&&(_=$),_+=(G+1)/2|0,$=_-F,Q*=8*Q,F=8*G*G;do Ie(de,V,_),he(se,L,_),he(se,L,$),Ie(de,V,$),te=2*X,te>=q&&(L++,V--,q+=F,X+=q),te<=W&&(_++,$--,W+=Q,X+=W);while(L<=V);for(;_-$ke&&(ve.min=ke);var ze=ve[ke];(ze==null||ze>be)&&(ve[ke]=be)}function Ie(ve,be,ke){ve.min>ke&&(ve.min=ke);var ze=ve[ke];(ze==null||zeL)return!$;if(G==L)return $;$=!$}return!0}}function q0(n,o){o&&o instanceof HTMLCanvasElement&&(n=o);var i,s=n.getContext("2d",{willReadFrequently:!0}),l=dF();l.image=f,l.end=p;var c,d=l.setopts;return l.setopts=function(m){c=m,d&&d.call(l,m)},l;function f(m,g){return n.width=m,n.height=g,s.setTransform(1,0,0,1,0,0),/^[0-9a-fA-F]{6}$/.test(""+c.backgroundcolor)?(s.fillStyle="#"+c.backgroundcolor,s.fillRect(0,0,m,g)):s.clearRect(0,0,m,g),i=s.getImageData(0,0,m,g),{buffer:i.data,ispng:!1}}function p(){return s.putImageData(i,0,0),n}}function fF(){var n=0,o=0,i=0,s=0,l=0,c=0,d=0,f=0,p,m="",g,v="",w=[],A={},k,C,M=.55228475-45e-5,S,I,E,j;return{setopts(D){p=D},scale(D,R){k=D,C=R},measure(D,R,N,U){N=N|0,U=U|0;for(var L=dl.lookup(R),_=0,V=0,$=0,z=0,Q=D.length;z +`,g=null)},clip:function(D){var R='',v="clip"+w.length,w.push(R)},unclip:function(){v=""},text(D,R,N,U,L){for(var _=dl.lookup(L.name),V=L.width|0,$=L.height|0,z=L.dx|0,Q="",G=0;G +`)},end(){var D="";for(var R in A)D+=A[R]+`" /> `;var N=p.backgroundcolor;return' `+(w.length?""+w.join("")+"":"")+(/^[0-9A-Fa-f]{6}$/.test(""+N)?' -`:"")+F+m+` -`}};function B(F,O){F+=E,O+=j;var N=n*F+o*O+i*(S-1)+s*(I-1),H=l*F+c*O+d*(S-1)+f*(I-1);return""+((N|0)==N?N:N.toFixed(2))+" "+((H|0)==H?H:H.toFixed(2))}}var dl=function(){var n=[],o={},i={},s={},l=0;return s.next=s,s.prev=s,{lookup:d,monochrome:f,getglyph:p,getpaths:m,loadFont:c};function c(g){var v=100,w=100,A=null;if(arguments.length==2)A=arguments[1];else if(arguments.length==3)v=w=+arguments[1]||100,A=arguments[2];else if(arguments.length==4)w=+arguments[1]||100,v=+arguments[2]||100,A=arguments[3];else throw new Error("bwipjs: loadFont: invalid number of arguments");var k=Tg.InitFont($0e(A));k.bwipjs_name=g,k.bwipjs_multx=v,k.bwipjs_multy=w;var C=n.push(k)-1;return o[g.toUpperCase()]=C,C}function d(g){var v=o[g.toUpperCase()];return v===void 0?1:v}function f(g){if(g)throw new Error("bwipjs: monochrome fonts not implemented")}function p(g,v,w,A){g=g|0,v=v|0,w=+w,A=+A,(!w||w<8)&&(w=8),(!A||A<8)&&(A=w),(g<0||g>=n.length)&&(g=1),(!v||v<32)&&(v=32);var k=""+g+"c"+v+"w"+w+"h"+A,M=i[k];if(M){M.prev.next=M.next,M.next.prev=M.prev;var I=s;return I.next.prev=M,M.next=I.next,M.prev=I,I.next=M,M}var C=n[g],M=Tg.GetGlyph(C,v,w*C.bwipjs_multx/100,A*C.bwipjs_multy/100)||Tg.GetGlyph(C,0,w*C.bwipjs_multx/100,A*C.bwipjs_multy/100);if(M.bytes=M.pixels,M.cachekey=k,M.offset=0,l>250){var I=s,S=I.prev;S.prev.next=I,I.prev=S.prev,S.next=S.prev=null,delete i[S.cachekey]}else l++;i[k]=M;var I=s;return I.next.prev=M,M.next=I.next,M.prev=I,I.next=M,M}function m(g,v,w,A){g=g|0,v=v|0,w=+w,A=+A,(!w||w<8)&&(w=8),(!A||A<8)&&(A=w),(g<0||g>=n.length)&&(g=1),(!v||v<32)&&(v=32);var k=n[g];return Tg.GetPaths(k,v,w*k.bwipjs_multx/100,A*k.bwipjs_multy/100)}}();function N0e(){return dl.loadFont.apply(dl,Array.prototype.slice.call(arguments))}var Tg=function(){var n=1,o=2,i=3,s=4,l=0,c=3,d=1,f=10,p=Math.floor,m=Math.ceil,g=Math.sqrt,v=Math.abs;function w(Y){for(var re=[],ie=0;ieY.length||re<0?Y.length:re}function M(Y,re){C(Y,Y.cursor+re)}function S(Y,re){for(var ie=0,le=0;leY.length||ie>Y.length-re)return I();var le=Y.subarray(re,re+ie);return le.cursor=0,le}function j(Y){var re=Y.cursor,ie=S(Y,2);if(ie){var le=A(Y);M(Y,le*ie),M(Y,S(Y,le)-1)}return E(Y,re,Y.cursor-re)}function B(Y){var re=A(Y);return re>=32&&re<=246?re-139:re>=247&&re<=250?(re-247)*256+A(Y)+108:re>=251&&re<=254?-(re-251)*256-A(Y)-108:re==28?S(Y,2):re==29?S(Y,4):0}function F(Y){var re=k(Y);if(re==30)for(M(Y,1);Y.cursor>4==15)break}else B(Y)}function O(Y,re){for(C(Y,0);Y.cursor=28;)F(Y);if(le=Y.cursor,ge=A(Y),ge==12&&(ge=A(Y)|256),ge==re)return E(Y,ie,le-ie)}return E(Y,0,0)}function N(Y,re,ie,le){for(var ge=O(Y,re),Me=0;Me>0:Y}function $(Y,re){return Y[re]*256+Y[re+1]}function z(Y,re){var ie=Y[re]*256+Y[re+1];return ie&32768?(4294901760|ie)>>0:ie}function Q(Y,re){return(Y[re]<<24)+(Y[re+1]<<16)+(Y[re+2]<<8)+Y[re+3]}function G(Y,re,ie){for(var le=$(Y,re+4),ge=re+12,Me=0;Me=me&&re>1,Pe=$(ie,le+8)>>1,He=$(ie,le+10),Ne=$(ie,le+12)>>1,ye=le+14,rt=ye;if(re>65535)return 0;for(re>=$(ie,rt+Ne*2)&&(rt+=Ne*2),rt-=2;He;){Pe>>=1;var Be=$(ie,rt+Pe*2);re>Be&&(rt+=Pe*2),--He}rt+=2;var Ae,Ue,qe=rt-ye>>>1;return Ue=$(ie,le+14+ce*2+2+2*qe),re>1),St=Q(ie,le+16+At*12),yt=Q(ie,le+16+At*12+4);if(reyt)lt=At+1;else{var Ct=Q(ie,le+16+At*12+8);return ge==12?Ct+re-St:Ct}}return 0}}return 0}function X(Y,re,ie,le,ge,Me){Y.type=re,Y.x=ie,Y.y=le,Y.cx=ge,Y.cy=Me}function te(Y,re){var ie,le;return re>=Y.numGlyphs||Y.indexToLocFormat>=2?-1:(Y.indexToLocFormat==0?(ie=Y.glyf+$(Y.data,Y.loca+re*2)*2,le=Y.glyf+$(Y.data,Y.loca+re*2+2)*2):(ie=Y.glyf+Q(Y.data,Y.loca+re*4),le=Y.glyf+Q(Y.data,Y.loca+re*4+4)),ie==le?-1:ie)}function se(Y,re,ie){if(Y.cff.length)ue(Y,re,ie);else{var le=te(Y,re);if(le<0)return 0;ie.x0=z(Y.data,le+2),ie.y0=z(Y.data,le+4),ie.x1=z(Y.data,le+6),ie.y1=z(Y.data,le+8)}return 1}function de(Y,re,ie,le,ge,Me,me,Ee,ce,Pe){return le?(ie&&X(Y[re++],i,ce+me>>1,Pe+Ee>>1,ce,Pe),X(Y[re++],i,ge,Me,me,Ee)):ie?X(Y[re++],i,ge,Me,ce,Pe):X(Y[re++],o,ge,Me,0,0),re}function ee(Y,re){var ie=Y.data,le=te(Y,re);if(le<0)return null;var ge=[],Me=z(ie,le);if(Me>0){var me=0,Ee,ce,Pe=0,He,Ne,ye,rt=0,Be,Ae=0,Ue,qe,Fe,lt,gt,At,St,yt,Ct=le+10,Oe=$(ie,le+10+Me*2),Ce=ie.subarray(le+10+Me*2+2+Oe),Ye=0;for(Ne=1+$(ie,Ct+Me*2-2),He=Ne+2*Me,ge=w(He),ye=0,Ee=0,Be=He-Ne,ce=0;ce>1,At=qe+ge[Be+ce+1].y>>1)):(gt=Ue,At=qe),X(ge[ut++],n,gt,At,0,0),rt=0,ye=1+$(ie,Ct+Pe*2),++Pe):me&1?(rt?X(ge[ut++],i,Ue,qe,Fe,lt):X(ge[ut++],o,Ue,qe,0,0),rt=0):(rt&&X(ge[ut++],i,Fe+Ue>>1,lt+qe>>1,Fe,lt),Fe=Ue,lt=qe,rt=1);ge.length=de(ge,ut,rt,Ae,gt,At,St,yt,Fe,lt)}else if(Me==-1)for(var Dt=1,jt=le+10;Dt;){var me,nr,Ft=[1,0,0,1,0,0];me=z(ie,jt),jt+=2,nr=z(ie,jt),jt+=2,me&2&&(me&1?(Ft[4]=z(ie,jt),jt+=2,Ft[5]=z(ie,jt),jt+=2):(Ft[4]=A(ie),jt+=1,Ft[5]=A(ie),jt+=1)),me&8?(Ft[0]=Ft[3]=z(ie,jt)/16384,jt+=2,Ft[1]=Ft[2]=0):me&64?(Ft[0]=z(ie,jt)/16384,jt+=2,Ft[1]=Ft[2]=0,Ft[3]=z(ie,jt)/16384,jt+=2):me&128&&(Ft[0]=z(ie,jt)/16384,jt+=2,Ft[1]=z(ie,jt)/16384,jt+=2,Ft[2]=z(ie,jt)/16384,jt+=2,Ft[3]=z(ie,jt)/16384,jt+=2);var He=g(Ft[0]*Ft[0]+Ft[1]*Ft[1]),Ne=g(Ft[2]*Ft[2]+Ft[3]*Ft[3]),cr=Le(Y,nr);if(cr.length>0){for(var ce=0,sr=cr.length;ceY.max_x||!Y.started)&&(Y.max_x=re),(ie>Y.max_y||!Y.started)&&(Y.max_y=ie),(re=33900?le=32768:ie>=1240&&(le=1131),re+=le,re<0||re>=ie?I():_(Y,re)}function Ge(Y,re){var ie=Y.fdselect,le,ge,Me,me,Ee,ce=-1,Pe;if(C(ie,0),Ee=A(ie),Ee==0)M(ie,re),ce=A(ie);else if(Ee==3)for(le=S(ie,2),ge=S(ie,2),Pe=0;Pe=ge&&re=me||(be(ie,0,ye[ce]),ce++,ce>=me));)be(ie,ye[ce],0),ce++;break;case 6:if(me<1)return 0;for(;!(ce>=me||(be(ie,ye[ce],0),ce++,ce>=me));)be(ie,0,ye[ce]),ce++;break;case 31:if(me<4)return 0;for(;!(ce+3>=me||(ke(ie,ye[ce],0,ye[ce+1],ye[ce+2],me-ce==5?ye[ce+4]:0,ye[ce+3]),ce+=4,ce+3>=me));)ke(ie,0,ye[ce],ye[ce+1],ye[ce+2],ye[ce+3],me-ce==5?ye[ce+4]:0),ce+=4;break;case 30:if(me<4)return 0;for(;!(ce+3>=me||(ke(ie,0,ye[ce],ye[ce+1],ye[ce+2],ye[ce+3],me-ce==5?ye[ce+4]:0),ce+=4,ce+3>=me));)ke(ie,ye[ce],0,ye[ce+1],ye[ce+2],me-ce==5?ye[ce+4]:0,ye[ce+3]),ce+=4;break;case 8:if(me<6)return 0;for(;ce+5=me)return 0;be(ie,ye[ce],ye[ce+1]);break;case 25:if(me<8)return 0;for(;ce+1=me)return 0;ke(ie,ye[ce],ye[ce+1],ye[ce+2],ye[ce+3],ye[ce+4],ye[ce+5]);break;case 26:case 27:if(me<4)return 0;for(Ue=0,me&1&&(Ue=ye[ce],ce++);ce+3=10)||(rt[Me++]=Ae,Ae=ze(Pe==10?Be:Y.gsubrs,Ee),Ae.length==0))return 0;Ae.cursor=0,Ne=0;break;case 11:if(Me<=0)return 0;Ae=rt[--Me],Ne=0;break;case 14:return Ie(ie),1;case 12:var qe,Fe,lt,gt,At,St,yt,Ct,Oe,Ce,Ye,et,Et,ut,Dt=A(Ae);switch(Dt){case 34:if(me<7)return 0;qe=ye[0],Fe=ye[1],Ct=ye[2],lt=ye[3],gt=ye[4],At=ye[5],St=ye[6],ke(ie,qe,0,Fe,Ct,lt,0),ke(ie,gt,0,At,-Ct,St,0);break;case 35:if(me<13)return 0;qe=ye[0],yt=ye[1],Fe=ye[2],Ct=ye[3],lt=ye[4],Oe=ye[5],gt=ye[6],Ce=ye[7],At=ye[8],Ye=ye[9],St=ye[10],et=ye[11],ke(ie,qe,yt,Fe,Ct,lt,Oe),ke(ie,gt,Ce,At,Ye,St,et);break;case 36:if(me<9)return 0;qe=ye[0],yt=ye[1],Fe=ye[2],Ct=ye[3],lt=ye[4],gt=ye[5],At=ye[6],Ye=ye[7],St=ye[8],ke(ie,qe,yt,Fe,Ct,lt,0),ke(ie,gt,0,At,Ye,St,-(yt+Ct+Ye));break;case 37:if(me<11)return 0;qe=ye[0],yt=ye[1],Fe=ye[2],Ct=ye[3],lt=ye[4],Oe=ye[5],gt=ye[6],Ce=ye[7],At=ye[8],Ye=ye[9],St=et=ye[10],Et=qe+Fe+lt+gt+At,ut=yt+Ct+Oe+Ce+Ye,v(Et)>v(ut)?et=-ut:St=-Et,ke(ie,qe,yt,Fe,Ct,lt,Oe),ke(ie,gt,Ce,At,Ye,St,et);break;default:return 0}break;default:if(Pe!=255&&Pe!=28&&(Pe<32||Pe>254)||(Pe==255?Ue=(S(Ae,4)|0)/65536:(M(Ae,-1),Ue=(B(Ae)<<16|0)>>16),me>=48))return 0;ye[me++]=Ue,Ne=0;break}Ne&&(me=0)}return 0}function at(){return{started:0,first_x:0,first_y:0,x:0,y:0,min_x:0,max_x:0,min_y:0,max_y:0,vertices:[]}}function We(Y,re){var ie=at();return Ve(Y,re,ie)?ie.vertices:null}function ue(Y,re,ie){var le=at(),ge=Ve(Y,re,le);return ie.x0=ge?le.min_x:0,ie.y0=ge?le.min_y:0,ie.x1=ge?le.max_x:0,ie.y1=ge?le.max_y:0,ge&&le.vertices?le.vertices.length:0}function Le(Y,re){return Y.cff.length?We(Y,re):ee(Y,re)}function $e(Y,re){var ie=$(Y.data,Y.hhea+34);return reie.ey||meie.ey&&(Me+=(Me-le)*(ie.ey-me)/(me-ge),me=ie.ey),le<=re&&Me<=re?Y[re]+=ie.direction*(me-ge):le>=re+1&&Me>=re+1||(Y[re]+=ie.direction*(me-ge)*(1-(le-re+(Me-re))/2))))}function dt(Y,re,ie,le,ge){for(var Me=ge+1;le;){if(le.fdx==0){var me=le.fx;me=0?(Ze(Y,me,le,me,ge,me,Me),Ze(re,me+1,le,me,ge,me,Me)):Ze(re,0,le,me,ge,me,Me))}else{var me=le.fx,Ee=le.fdx,ce=me+Ee,Pe,He,Ne,ye,rt=le.fdy;if(le.sy>ge?(Pe=me+Ee*(le.sy-ge),Ne=le.sy):(Pe=me,Ne=ge),le.ey=0&&He>=0&&PeHe&&(Ne=Me-(Ne-ge),ye=Me-(ye-ge),Ue=Ne,Ne=ye,ye=Ue,Ue=He,He=Pe,Pe=Ue,Ee=-Ee,rt=-rt,Ue=me,me=ce,ce=Ue),qe=Pe|0,Fe=He|0,lt=(qe+1-me)*rt+ge,At=le.direction,St=At*(lt-Ne),Y[qe]+=St*(1-(Pe-qe+(qe+1-qe))/2),gt=At*rt,Ae=qe+1;AeFe?(Ze(Y,Ae,le,me,yt,qe,Ce),Ze(Y,Ae,le,qe,Ce,Fe,Ye),Ze(Y,Ae,le,Fe,Ye,Ct,Oe)):CtFe?(Ze(Y,Ae,le,me,yt,Fe,Ye),Ze(Y,Ae,le,Fe,Ye,qe,Ce),Ze(Y,Ae,le,qe,Ce,Ct,Oe)):meqe||Ctqe?(Ze(Y,Ae,le,me,yt,qe,Ce),Ze(Y,Ae,le,qe,Ce,Ct,Oe)):meFe||CtFe?(Ze(Y,Ae,le,me,yt,Fe,Ye),Ze(Y,Ae,le,Fe,Ye,Ct,Oe)):Ze(Y,Ae,le,me,yt,Ct,Oe)}}le=le.next}}function Xe(Y,re,ie,le,ge,Me){ge|=0,Me|=0;var me=null,Ee,ce=Me,Pe=0,He,Ne=new Float32Array(Y.w*2+1),ye=Ne.subarray(Y.w),rt=0;for(re[ie].y0=Me+Y.h+1;Pe>>0,At>255&&(At=255),Y.pixels[Pe*Y.stride+He]=At}for(Ue=me;Ue;)Ee=Ue,Ee.fx+=Ee.fdx,Ue=Ee.next;++ce,++Pe}}function Pt(Y,re){for(var ie=1;ie0&&le.y012;){var le,ge,Me,me,Ee,ce=ie>>1,Pe=Y[re].y0=me)break;le=Y[re+Me],Y[re+Me]=Y[re+me],Y[re+me]=le,++Me,--me}mere[Fe+Ae].y&&(Ne[ye].invert=1,lt=Be,gt=Ae),Ne[ye].x0=re[Fe+lt].x*le+Me,Ne[ye].y0=(re[Fe+lt].y*He+me)*qe,Ne[ye].x1=re[Fe+gt].x*le+Me,Ne[ye].y1=(re[Fe+gt].y*He+me)*qe,++ye)}}pt(Ne,ye),Xe(Y,Ne,ye,qe,Ee,ce)}function Re(Y,re,ie,le,ge,Me,me,Ee,ce){var Pe=(re+2*le+Me)/4,He=(ie+2*ge+me)/4,Ne=(re+Me)/2-Pe,ye=(ie+me)/2-He;return ce>16||(Ne*Ne+ye*ye>Ee?(Re(Y,re,ie,(re+le)/2,(ie+ge)/2,Pe,He,Ee,ce+1),Re(Y,Pe,He,(le+Me)/2,(ge+me)/2,Me,me,Ee,ce+1)):Y.push({x:Me,y:me})),1}function Je(Y,re,ie,le,ge,Me,me,Ee,ce,Pe,He){var Ne=le-re,ye=ge-ie,rt=Me-le,Be=me-ge,Ae=Ee-Me,Ue=ce-me,qe=Ee-re,Fe=ce-ie,lt=g(Ne*Ne+ye*ye)+g(rt*rt+Be*Be)+g(Ae*Ae+Ue*Ue),gt=g(qe*qe+Fe*Fe),At=lt*lt-gt*gt;if(!(He>16))if(At>Pe){var St=(re+le)/2,yt=(ie+ge)/2,Ct=(le+Me)/2,Oe=(ge+me)/2,Ce=(Me+Ee)/2,Ye=(me+ce)/2,et=(St+Ct)/2,Et=(yt+Oe)/2,ut=(Ct+Ce)/2,Dt=(Oe+Ye)/2,jt=(et+ut)/2,nr=(Et+Dt)/2;Je(Y,re,ie,St,yt,et,Et,jt,nr,Pe,He+1),Je(Y,jt,nr,ut,Dt,Ce,Ye,Ee,ce,Pe,He+1)}else Y.push({x:Ee,y:ce})}function It(Y,re,ie){for(var le=[],ge=re*re,Me=-1,me=0,Ee=0,ce=0,Pe=0,He=Y.length;Pe=0&&(ie[Me]=le.length-me),++Me,me=le.length,Ee=Y[Pe].x,ce=Y[Pe].y,le.push({x:Ee,y:ce});break;case o:Ee=Y[Pe].x,ce=Y[Pe].y,le.push({x:Ee,y:ce});break;case i:Re(le,Ee,ce,Y[Pe].cx,Y[Pe].cy,Y[Pe].x,Y[Pe].y,ge,0),Ee=Y[Pe].x,ce=Y[Pe].y;break;case s:Je(le,Ee,ce,Y[Pe].cx,Y[Pe].cy,Y[Pe].cx1,Y[Pe].cy1,Y[Pe].x,Y[Pe].y,ge,0),Ee=Y[Pe].x,ce=Y[Pe].y;break}return ie[Me]=le.length-me,le}function Nt(Y,re,ie,le,ge,Me,me,Ee,ce,Pe){Ee|=0,ce|=0;var He=le>ge?ge:le,Ne=[],ye=It(ie,re/He,Ne);ye&&Te(Y,ye,Ne,le,ge,Me,me,Ee,ce)}function ht(Y){var re={};if(!q(re,Y,0))return null;var ie=bt(re);return re.ascent=ie.ascent,re.descent=ie.descent,re.linegap=ie.linegap,re}function xt(Y,re,ie,le){le=le||ie;var ge=ie/Y.ascent,Me=le/Y.ascent,me=W(Y,re);if(!me&&re)return null;var Ee=Le(Y,me),ce=ot(Y,me,ge,Me,0,0),Pe=ce.x1-ce.x0,He=ce.y1-ce.y0,Ne=null;if(Pe&&He){var ye={pixels:Ne=new Uint8Array(Pe*He),w:Pe,h:He,stride:Pe};Nt(ye,.35,Ee,ge,Me,0,0,ce.x0,ce.y0)}var rt=$e(Y,me);return{glyph:me,pixels:Ne,width:Pe,height:He,top:-ce.y0,left:ce.x0,advance:p(rt.advanceWidth*ge)}}function tt(Y,re,ie,le){le=le||ie;var ge=ie/Y.ascent,Me=le/Y.ascent,me=W(Y,re);if(!me&&re)return null;var Ee=Le(Y,me),ce=$e(Y,me),Pe=0,He=0,Ne=[];if(Ee)for(var ye=0,rt=Ee.length;yePe&&(Pe=Ae.y),Ae.y{if(n&&n.id&&!s)try{const d=document.createElement("canvas");L0e.toCanvas(d,{bcid:"code128",text:n.id.toString(),scale:3,height:10,includetext:!0,textxalign:"center",textyoffset:3});const f=d.toDataURL("image/png");i(f),l(!0)}catch(d){console.error("שגיאה ביצירת הברקוד:",d)}},[n,s]);const c=()=>{const d=window.open("","_blank");d.document.write(` +`:"")+D+m+` +`}};function B(D,R){D+=E,R+=j;var N=n*D+o*R+i*(S-1)+s*(I-1),U=l*D+c*R+d*(S-1)+f*(I-1);return""+((N|0)==N?N:N.toFixed(2))+" "+((U|0)==U?U:U.toFixed(2))}}var dl=function(){var n=[],o={},i={},s={},l=0;return s.next=s,s.prev=s,{lookup:d,monochrome:f,getglyph:p,getpaths:m,loadFont:c};function c(g){var v=100,w=100,A=null;if(arguments.length==2)A=arguments[1];else if(arguments.length==3)v=w=+arguments[1]||100,A=arguments[2];else if(arguments.length==4)w=+arguments[1]||100,v=+arguments[2]||100,A=arguments[3];else throw new Error("bwipjs: loadFont: invalid number of arguments");var k=Tg.InitFont(K0e(A));k.bwipjs_name=g,k.bwipjs_multx=v,k.bwipjs_multy=w;var C=n.push(k)-1;return o[g.toUpperCase()]=C,C}function d(g){var v=o[g.toUpperCase()];return v===void 0?1:v}function f(g){if(g)throw new Error("bwipjs: monochrome fonts not implemented")}function p(g,v,w,A){g=g|0,v=v|0,w=+w,A=+A,(!w||w<8)&&(w=8),(!A||A<8)&&(A=w),(g<0||g>=n.length)&&(g=1),(!v||v<32)&&(v=32);var k=""+g+"c"+v+"w"+w+"h"+A,M=i[k];if(M){M.prev.next=M.next,M.next.prev=M.prev;var I=s;return I.next.prev=M,M.next=I.next,M.prev=I,I.next=M,M}var C=n[g],M=Tg.GetGlyph(C,v,w*C.bwipjs_multx/100,A*C.bwipjs_multy/100)||Tg.GetGlyph(C,0,w*C.bwipjs_multx/100,A*C.bwipjs_multy/100);if(M.bytes=M.pixels,M.cachekey=k,M.offset=0,l>250){var I=s,S=I.prev;S.prev.next=I,I.prev=S.prev,S.next=S.prev=null,delete i[S.cachekey]}else l++;i[k]=M;var I=s;return I.next.prev=M,M.next=I.next,M.prev=I,I.next=M,M}function m(g,v,w,A){g=g|0,v=v|0,w=+w,A=+A,(!w||w<8)&&(w=8),(!A||A<8)&&(A=w),(g<0||g>=n.length)&&(g=1),(!v||v<32)&&(v=32);var k=n[g];return Tg.GetPaths(k,v,w*k.bwipjs_multx/100,A*k.bwipjs_multy/100)}}();function Y0e(){return dl.loadFont.apply(dl,Array.prototype.slice.call(arguments))}var Tg=function(){var n=1,o=2,i=3,s=4,l=0,c=3,d=1,f=10,p=Math.floor,m=Math.ceil,g=Math.sqrt,v=Math.abs;function w(Y){for(var re=[],ie=0;ieY.length||re<0?Y.length:re}function M(Y,re){C(Y,Y.cursor+re)}function S(Y,re){for(var ie=0,le=0;leY.length||ie>Y.length-re)return I();var le=Y.subarray(re,re+ie);return le.cursor=0,le}function j(Y){var re=Y.cursor,ie=S(Y,2);if(ie){var le=A(Y);M(Y,le*ie),M(Y,S(Y,le)-1)}return E(Y,re,Y.cursor-re)}function B(Y){var re=A(Y);return re>=32&&re<=246?re-139:re>=247&&re<=250?(re-247)*256+A(Y)+108:re>=251&&re<=254?-(re-251)*256-A(Y)-108:re==28?S(Y,2):re==29?S(Y,4):0}function D(Y){var re=k(Y);if(re==30)for(M(Y,1);Y.cursor>4==15)break}else B(Y)}function R(Y,re){for(C(Y,0);Y.cursor=28;)D(Y);if(le=Y.cursor,ge=A(Y),ge==12&&(ge=A(Y)|256),ge==re)return E(Y,ie,le-ie)}return E(Y,0,0)}function N(Y,re,ie,le){for(var ge=R(Y,re),Pe=0;Pe>0:Y}function $(Y,re){return Y[re]*256+Y[re+1]}function z(Y,re){var ie=Y[re]*256+Y[re+1];return ie&32768?(4294901760|ie)>>0:ie}function Q(Y,re){return(Y[re]<<24)+(Y[re+1]<<16)+(Y[re+2]<<8)+Y[re+3]}function G(Y,re,ie){for(var le=$(Y,re+4),ge=re+12,Pe=0;Pe=me&&re>1,je=$(ie,le+8)>>1,He=$(ie,le+10),Ne=$(ie,le+12)>>1,ye=le+14,rt=ye;if(re>65535)return 0;for(re>=$(ie,rt+Ne*2)&&(rt+=Ne*2),rt-=2;He;){je>>=1;var Te=$(ie,rt+je*2);re>Te&&(rt+=je*2),--He}rt+=2;var Ae,Ue,qe=rt-ye>>>1;return Ue=$(ie,le+14+ce*2+2+2*qe),re>1),St=Q(ie,le+16+At*12),yt=Q(ie,le+16+At*12+4);if(reyt)lt=At+1;else{var Ct=Q(ie,le+16+At*12+8);return ge==12?Ct+re-St:Ct}}return 0}}return 0}function X(Y,re,ie,le,ge,Pe){Y.type=re,Y.x=ie,Y.y=le,Y.cx=ge,Y.cy=Pe}function te(Y,re){var ie,le;return re>=Y.numGlyphs||Y.indexToLocFormat>=2?-1:(Y.indexToLocFormat==0?(ie=Y.glyf+$(Y.data,Y.loca+re*2)*2,le=Y.glyf+$(Y.data,Y.loca+re*2+2)*2):(ie=Y.glyf+Q(Y.data,Y.loca+re*4),le=Y.glyf+Q(Y.data,Y.loca+re*4+4)),ie==le?-1:ie)}function se(Y,re,ie){if(Y.cff.length)ue(Y,re,ie);else{var le=te(Y,re);if(le<0)return 0;ie.x0=z(Y.data,le+2),ie.y0=z(Y.data,le+4),ie.x1=z(Y.data,le+6),ie.y1=z(Y.data,le+8)}return 1}function de(Y,re,ie,le,ge,Pe,me,Ee,ce,je){return le?(ie&&X(Y[re++],i,ce+me>>1,je+Ee>>1,ce,je),X(Y[re++],i,ge,Pe,me,Ee)):ie?X(Y[re++],i,ge,Pe,ce,je):X(Y[re++],o,ge,Pe,0,0),re}function ee(Y,re){var ie=Y.data,le=te(Y,re);if(le<0)return null;var ge=[],Pe=z(ie,le);if(Pe>0){var me=0,Ee,ce,je=0,He,Ne,ye,rt=0,Te,Ae=0,Ue,qe,De,lt,gt,At,St,yt,Ct=le+10,Re=$(ie,le+10+Pe*2),Ce=ie.subarray(le+10+Pe*2+2+Re),Ye=0;for(Ne=1+$(ie,Ct+Pe*2-2),He=Ne+2*Pe,ge=w(He),ye=0,Ee=0,Te=He-Ne,ce=0;ce>1,At=qe+ge[Te+ce+1].y>>1)):(gt=Ue,At=qe),X(ge[ut++],n,gt,At,0,0),rt=0,ye=1+$(ie,Ct+je*2),++je):me&1?(rt?X(ge[ut++],i,Ue,qe,De,lt):X(ge[ut++],o,Ue,qe,0,0),rt=0):(rt&&X(ge[ut++],i,De+Ue>>1,lt+qe>>1,De,lt),De=Ue,lt=qe,rt=1);ge.length=de(ge,ut,rt,Ae,gt,At,St,yt,De,lt)}else if(Pe==-1)for(var Dt=1,jt=le+10;Dt;){var me,nr,Ft=[1,0,0,1,0,0];me=z(ie,jt),jt+=2,nr=z(ie,jt),jt+=2,me&2&&(me&1?(Ft[4]=z(ie,jt),jt+=2,Ft[5]=z(ie,jt),jt+=2):(Ft[4]=A(ie),jt+=1,Ft[5]=A(ie),jt+=1)),me&8?(Ft[0]=Ft[3]=z(ie,jt)/16384,jt+=2,Ft[1]=Ft[2]=0):me&64?(Ft[0]=z(ie,jt)/16384,jt+=2,Ft[1]=Ft[2]=0,Ft[3]=z(ie,jt)/16384,jt+=2):me&128&&(Ft[0]=z(ie,jt)/16384,jt+=2,Ft[1]=z(ie,jt)/16384,jt+=2,Ft[2]=z(ie,jt)/16384,jt+=2,Ft[3]=z(ie,jt)/16384,jt+=2);var He=g(Ft[0]*Ft[0]+Ft[1]*Ft[1]),Ne=g(Ft[2]*Ft[2]+Ft[3]*Ft[3]),cr=Le(Y,nr);if(cr.length>0){for(var ce=0,sr=cr.length;ceY.max_x||!Y.started)&&(Y.max_x=re),(ie>Y.max_y||!Y.started)&&(Y.max_y=ie),(re=33900?le=32768:ie>=1240&&(le=1131),re+=le,re<0||re>=ie?I():_(Y,re)}function Ge(Y,re){var ie=Y.fdselect,le,ge,Pe,me,Ee,ce=-1,je;if(C(ie,0),Ee=A(ie),Ee==0)M(ie,re),ce=A(ie);else if(Ee==3)for(le=S(ie,2),ge=S(ie,2),je=0;je=ge&&re=me||(be(ie,0,ye[ce]),ce++,ce>=me));)be(ie,ye[ce],0),ce++;break;case 6:if(me<1)return 0;for(;!(ce>=me||(be(ie,ye[ce],0),ce++,ce>=me));)be(ie,0,ye[ce]),ce++;break;case 31:if(me<4)return 0;for(;!(ce+3>=me||(ke(ie,ye[ce],0,ye[ce+1],ye[ce+2],me-ce==5?ye[ce+4]:0,ye[ce+3]),ce+=4,ce+3>=me));)ke(ie,0,ye[ce],ye[ce+1],ye[ce+2],ye[ce+3],me-ce==5?ye[ce+4]:0),ce+=4;break;case 30:if(me<4)return 0;for(;!(ce+3>=me||(ke(ie,0,ye[ce],ye[ce+1],ye[ce+2],ye[ce+3],me-ce==5?ye[ce+4]:0),ce+=4,ce+3>=me));)ke(ie,ye[ce],0,ye[ce+1],ye[ce+2],me-ce==5?ye[ce+4]:0,ye[ce+3]),ce+=4;break;case 8:if(me<6)return 0;for(;ce+5=me)return 0;be(ie,ye[ce],ye[ce+1]);break;case 25:if(me<8)return 0;for(;ce+1=me)return 0;ke(ie,ye[ce],ye[ce+1],ye[ce+2],ye[ce+3],ye[ce+4],ye[ce+5]);break;case 26:case 27:if(me<4)return 0;for(Ue=0,me&1&&(Ue=ye[ce],ce++);ce+3=10)||(rt[Pe++]=Ae,Ae=ze(je==10?Te:Y.gsubrs,Ee),Ae.length==0))return 0;Ae.cursor=0,Ne=0;break;case 11:if(Pe<=0)return 0;Ae=rt[--Pe],Ne=0;break;case 14:return Ie(ie),1;case 12:var qe,De,lt,gt,At,St,yt,Ct,Re,Ce,Ye,et,Et,ut,Dt=A(Ae);switch(Dt){case 34:if(me<7)return 0;qe=ye[0],De=ye[1],Ct=ye[2],lt=ye[3],gt=ye[4],At=ye[5],St=ye[6],ke(ie,qe,0,De,Ct,lt,0),ke(ie,gt,0,At,-Ct,St,0);break;case 35:if(me<13)return 0;qe=ye[0],yt=ye[1],De=ye[2],Ct=ye[3],lt=ye[4],Re=ye[5],gt=ye[6],Ce=ye[7],At=ye[8],Ye=ye[9],St=ye[10],et=ye[11],ke(ie,qe,yt,De,Ct,lt,Re),ke(ie,gt,Ce,At,Ye,St,et);break;case 36:if(me<9)return 0;qe=ye[0],yt=ye[1],De=ye[2],Ct=ye[3],lt=ye[4],gt=ye[5],At=ye[6],Ye=ye[7],St=ye[8],ke(ie,qe,yt,De,Ct,lt,0),ke(ie,gt,0,At,Ye,St,-(yt+Ct+Ye));break;case 37:if(me<11)return 0;qe=ye[0],yt=ye[1],De=ye[2],Ct=ye[3],lt=ye[4],Re=ye[5],gt=ye[6],Ce=ye[7],At=ye[8],Ye=ye[9],St=et=ye[10],Et=qe+De+lt+gt+At,ut=yt+Ct+Re+Ce+Ye,v(Et)>v(ut)?et=-ut:St=-Et,ke(ie,qe,yt,De,Ct,lt,Re),ke(ie,gt,Ce,At,Ye,St,et);break;default:return 0}break;default:if(je!=255&&je!=28&&(je<32||je>254)||(je==255?Ue=(S(Ae,4)|0)/65536:(M(Ae,-1),Ue=(B(Ae)<<16|0)>>16),me>=48))return 0;ye[me++]=Ue,Ne=0;break}Ne&&(me=0)}return 0}function at(){return{started:0,first_x:0,first_y:0,x:0,y:0,min_x:0,max_x:0,min_y:0,max_y:0,vertices:[]}}function We(Y,re){var ie=at();return Ve(Y,re,ie)?ie.vertices:null}function ue(Y,re,ie){var le=at(),ge=Ve(Y,re,le);return ie.x0=ge?le.min_x:0,ie.y0=ge?le.min_y:0,ie.x1=ge?le.max_x:0,ie.y1=ge?le.max_y:0,ge&&le.vertices?le.vertices.length:0}function Le(Y,re){return Y.cff.length?We(Y,re):ee(Y,re)}function $e(Y,re){var ie=$(Y.data,Y.hhea+34);return reie.ey||meie.ey&&(Pe+=(Pe-le)*(ie.ey-me)/(me-ge),me=ie.ey),le<=re&&Pe<=re?Y[re]+=ie.direction*(me-ge):le>=re+1&&Pe>=re+1||(Y[re]+=ie.direction*(me-ge)*(1-(le-re+(Pe-re))/2))))}function dt(Y,re,ie,le,ge){for(var Pe=ge+1;le;){if(le.fdx==0){var me=le.fx;me=0?(Ze(Y,me,le,me,ge,me,Pe),Ze(re,me+1,le,me,ge,me,Pe)):Ze(re,0,le,me,ge,me,Pe))}else{var me=le.fx,Ee=le.fdx,ce=me+Ee,je,He,Ne,ye,rt=le.fdy;if(le.sy>ge?(je=me+Ee*(le.sy-ge),Ne=le.sy):(je=me,Ne=ge),le.ey=0&&He>=0&&jeHe&&(Ne=Pe-(Ne-ge),ye=Pe-(ye-ge),Ue=Ne,Ne=ye,ye=Ue,Ue=He,He=je,je=Ue,Ee=-Ee,rt=-rt,Ue=me,me=ce,ce=Ue),qe=je|0,De=He|0,lt=(qe+1-me)*rt+ge,At=le.direction,St=At*(lt-Ne),Y[qe]+=St*(1-(je-qe+(qe+1-qe))/2),gt=At*rt,Ae=qe+1;AeDe?(Ze(Y,Ae,le,me,yt,qe,Ce),Ze(Y,Ae,le,qe,Ce,De,Ye),Ze(Y,Ae,le,De,Ye,Ct,Re)):CtDe?(Ze(Y,Ae,le,me,yt,De,Ye),Ze(Y,Ae,le,De,Ye,qe,Ce),Ze(Y,Ae,le,qe,Ce,Ct,Re)):meqe||Ctqe?(Ze(Y,Ae,le,me,yt,qe,Ce),Ze(Y,Ae,le,qe,Ce,Ct,Re)):meDe||CtDe?(Ze(Y,Ae,le,me,yt,De,Ye),Ze(Y,Ae,le,De,Ye,Ct,Re)):Ze(Y,Ae,le,me,yt,Ct,Re)}}le=le.next}}function Xe(Y,re,ie,le,ge,Pe){ge|=0,Pe|=0;var me=null,Ee,ce=Pe,je=0,He,Ne=new Float32Array(Y.w*2+1),ye=Ne.subarray(Y.w),rt=0;for(re[ie].y0=Pe+Y.h+1;je>>0,At>255&&(At=255),Y.pixels[je*Y.stride+He]=At}for(Ue=me;Ue;)Ee=Ue,Ee.fx+=Ee.fdx,Ue=Ee.next;++ce,++je}}function Pt(Y,re){for(var ie=1;ie0&&le.y012;){var le,ge,Pe,me,Ee,ce=ie>>1,je=Y[re].y0=me)break;le=Y[re+Pe],Y[re+Pe]=Y[re+me],Y[re+me]=le,++Pe,--me}mere[De+Ae].y&&(Ne[ye].invert=1,lt=Te,gt=Ae),Ne[ye].x0=re[De+lt].x*le+Pe,Ne[ye].y0=(re[De+lt].y*He+me)*qe,Ne[ye].x1=re[De+gt].x*le+Pe,Ne[ye].y1=(re[De+gt].y*He+me)*qe,++ye)}}pt(Ne,ye),Xe(Y,Ne,ye,qe,Ee,ce)}function Be(Y,re,ie,le,ge,Pe,me,Ee,ce){var je=(re+2*le+Pe)/4,He=(ie+2*ge+me)/4,Ne=(re+Pe)/2-je,ye=(ie+me)/2-He;return ce>16||(Ne*Ne+ye*ye>Ee?(Be(Y,re,ie,(re+le)/2,(ie+ge)/2,je,He,Ee,ce+1),Be(Y,je,He,(le+Pe)/2,(ge+me)/2,Pe,me,Ee,ce+1)):Y.push({x:Pe,y:me})),1}function Je(Y,re,ie,le,ge,Pe,me,Ee,ce,je,He){var Ne=le-re,ye=ge-ie,rt=Pe-le,Te=me-ge,Ae=Ee-Pe,Ue=ce-me,qe=Ee-re,De=ce-ie,lt=g(Ne*Ne+ye*ye)+g(rt*rt+Te*Te)+g(Ae*Ae+Ue*Ue),gt=g(qe*qe+De*De),At=lt*lt-gt*gt;if(!(He>16))if(At>je){var St=(re+le)/2,yt=(ie+ge)/2,Ct=(le+Pe)/2,Re=(ge+me)/2,Ce=(Pe+Ee)/2,Ye=(me+ce)/2,et=(St+Ct)/2,Et=(yt+Re)/2,ut=(Ct+Ce)/2,Dt=(Re+Ye)/2,jt=(et+ut)/2,nr=(Et+Dt)/2;Je(Y,re,ie,St,yt,et,Et,jt,nr,je,He+1),Je(Y,jt,nr,ut,Dt,Ce,Ye,Ee,ce,je,He+1)}else Y.push({x:Ee,y:ce})}function It(Y,re,ie){for(var le=[],ge=re*re,Pe=-1,me=0,Ee=0,ce=0,je=0,He=Y.length;je=0&&(ie[Pe]=le.length-me),++Pe,me=le.length,Ee=Y[je].x,ce=Y[je].y,le.push({x:Ee,y:ce});break;case o:Ee=Y[je].x,ce=Y[je].y,le.push({x:Ee,y:ce});break;case i:Be(le,Ee,ce,Y[je].cx,Y[je].cy,Y[je].x,Y[je].y,ge,0),Ee=Y[je].x,ce=Y[je].y;break;case s:Je(le,Ee,ce,Y[je].cx,Y[je].cy,Y[je].cx1,Y[je].cy1,Y[je].x,Y[je].y,ge,0),Ee=Y[je].x,ce=Y[je].y;break}return ie[Pe]=le.length-me,le}function Nt(Y,re,ie,le,ge,Pe,me,Ee,ce,je){Ee|=0,ce|=0;var He=le>ge?ge:le,Ne=[],ye=It(ie,re/He,Ne);ye&&Fe(Y,ye,Ne,le,ge,Pe,me,Ee,ce)}function ht(Y){var re={};if(!q(re,Y,0))return null;var ie=bt(re);return re.ascent=ie.ascent,re.descent=ie.descent,re.linegap=ie.linegap,re}function xt(Y,re,ie,le){le=le||ie;var ge=ie/Y.ascent,Pe=le/Y.ascent,me=W(Y,re);if(!me&&re)return null;var Ee=Le(Y,me),ce=ot(Y,me,ge,Pe,0,0),je=ce.x1-ce.x0,He=ce.y1-ce.y0,Ne=null;if(je&&He){var ye={pixels:Ne=new Uint8Array(je*He),w:je,h:He,stride:je};Nt(ye,.35,Ee,ge,Pe,0,0,ce.x0,ce.y0)}var rt=$e(Y,me);return{glyph:me,pixels:Ne,width:je,height:He,top:-ce.y0,left:ce.x0,advance:p(rt.advanceWidth*ge)}}function tt(Y,re,ie,le){le=le||ie;var ge=ie/Y.ascent,Pe=le/Y.ascent,me=W(Y,re);if(!me&&re)return null;var Ee=Le(Y,me),ce=$e(Y,me),je=0,He=0,Ne=[];if(Ee)for(var ye=0,rt=Ee.length;yeje&&(je=Ae.y),Ae.y{if(n&&n.id&&!s)try{const d=document.createElement("canvas");X0e.toCanvas(d,{bcid:"code128",text:n.id.toString(),scale:3,height:10,includetext:!0,textxalign:"center",textyoffset:3});const f=d.toDataURL("image/png");i(f),l(!0)}catch(d){console.error("שגיאה ביצירת הברקוד:",d)}},[n,s]);const c=()=>{const d=window.open("","_blank");d.document.write(`