PageSourceSearch

https://app.nodecraft.com/assets/js/chunks/34bb1c9df0eda863.js

js nodecraft.com collected 2026-10-02 03:13:36 UTC 47,707 bytes, 6 lines download raw bytes

1/*!
2* © Copyright Nodecraft Inc. 2012 - 2026 | https://nodecraft.com | All Rights Reserved
3* 3rd party license information available at https://app.nodecraft.com/licenses
4* 
5*/try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"0506a5b2f22f76af32d5b7dd0a028b0e3021cf49"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f5eb750b-644b-4c34-bbb7-ba1d462560bb",e._sentryDebugIdIdentifier="sentry-dbid-f5eb750b-644b-4c34-bbb7-ba1d462560bb")}catch{}export const __rspack_esm_id=23395;export const __rspack_esm_ids=[23395];export const __webpack_modules__={89764(e,t,n){function l(e,t,n,l){let a=e.length;if(a<=1)return a;let r=(a-1)*n;for(let t of e)r+=t;if(r<=t)return a;let o=[0],i=0;for(let t of e)i+=t,o.push(i);let u=Number.EPSILON*Math.max(1,Math.abs(r),Math.abs(t),Math.abs(l))*(a+2)*2;for(let r=a-1;r>1;r--){let a=(r-1)*n,i=a+o[r]+n+l;if(0!==n&&Math.abs(i-t)<=u){i=a;for(let t=0;t<r;t++)i+=e[t];i+=n+l}if(i<=t)return r}return 1}n.d(t,{v:()=>l})},48461(e,t,n){n.d(t,{A:()=>T});var l=n(56982),a=n(94468),r=n(98826),o=n(33225),i=n(89764),u=n(5149),s=n(43925),d=n(79949),c=n(12547),v=n(20139),f=n(16153),h=n(63279),g=n(9797),p=["id"],m=["disabled","aria-expanded","aria-labelledby"],y={key:0,class:"flex min-w-0 grow items-center gap-2"},b={key:0,ref:"values",class:"flex min-w-0 grow items-center gap-1"},x={key:0,class:"flex h-6 w-6 flex-none items-center justify-center object-contain"},C=["src"],R={key:2,class:"h-full w-full rounded-full bg-cool-1100"},w=["title","textContent"],E=["title","textContent"],k=["textContent"],S={key:1,class:"flex min-w-0 grow gap-2"},A={key:0,class:"flex h-6 w-6 flex-none items-center justify-center object-contain"},_=["src"],L={key:2,class:"h-full w-full rounded-full bg-cool-1100"},M=["title","textContent"],N={key:0,class:"invisible absolute top-0 left-0 h-0 w-full overflow-hidden","aria-hidden":"true"},B={ref:"measure",class:"flex w-max items-center gap-1 text-sm leading-6 whitespace-nowrap"},P={key:0,class:"h-6 w-6 flex-none"},I=["textContent"],z=["textContent"],W=["src"],O={key:2,class:"h-full w-full rounded-full bg-cool-1100"},Q={class:"flex min-w-0 grow flex-col gap-0.5"},F=["title","textContent"],X=["title","textContent"],T=(0,u.pM)({__name:"NCSelectList",props:{disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},reactive:{type:[Object,null],default:null},showInput:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},error:{type:String,default:""},errorPosition:{type:String,default:"text-right"},hint:{type:String,default:""},help:{type:String,default:""},label:{type:String,default:""},labelAs:{type:String,default:"label"},link:{type:Object,default:null},labelScreenReaderOnly:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},reactiveAs:{type:String,default:"div"},inputName:{type:String,required:!0},inputShrink:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Array,Object,null],required:!0},options:{type:Array,required:!0},flow:{type:String,default:"down"},isOpen:{type:Boolean,default:!1},autoExpand:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},unmount:{type:Boolean,default:!1},maxHeight:{type:String,default:"max(28rem, 50vh)"},squaredImages:{type:Boolean,default:!1},checkPosition:{type:String,default:"right"}},emits:["update:modelValue","blur","focus","click:decoratorAppend","click:decoratorPrepend"],setup(e,{expose:t,emit:n}){let T=(0,u.Ht)(),D=(0,s.lW)(e,"modelValue");(0,u.Gt)("modelValue",D);let G=(0,u.EW)(()=>e.multiple&&!Array.isArray(e.modelValue)?[]:e.modelValue),H=(0,s.KR)(null),U=(0,u.EW)(()=>e.multiple&&Array.isArray(e.modelValue)?e.modelValue.map(t=>e.options.find(e=>e.value===t)).filter(e=>void 0!==e):[]),$=(0,u.EW)(()=>{if(e.multiple&&Array.isArray(e.modelValue))return null;let t=e.options.findIndex(t=>t.value===e.modelValue);return -1===t&&(t=0),e.options[t]}),V=(0,u.rk)("values"),j=(0,u.rk)("measure"),K=(0,s.KR)(1),Y=(0,u.EW)(()=>U.value.slice(0,K.value)),q=(0,u.EW)(()=>Math.max(0,U.value.length-K.value)),J=(0,u.EW)(()=>U.value.slice(K.value).map(e=>String(e.label??e.value)).join(", "));function Z(){let e=V.value,t=j.value;if(!e||!t){K.value=1;return}let n=e.getBoundingClientRect().width,l=Number.parseFloat(getComputedStyle(e).columnGap
5)||0,a=[...t.querySelectorAll("[data-measure-item]")].map(e=>e.getBoundingClientRect().width),r=t.querySelector("[data-measure-tag]")?.getBoundingClientRect().width??0;K.value=(0,i.v)(a,n,l,r)}let ee=null;(0,u.wB)([V,j],([e,t])=>{for(let n of(!ee&&"u">typeof ResizeObserver&&(ee=new ResizeObserver(()=>Z())),ee?.disconnect(),[e,t]))n&&ee?.observe(n);Z()},{flush:"post"}),(0,u.wB)(U,()=>Z(),{flush:"post"});let et=(0,u.EW)(()=>e.options?.some?.(e=>e.image||e.icon)),en=(0,u.EW)(()=>e.options.every(e=>e.image&&e.hint&&e.label)),el=(0,u.EW)(()=>{if(e.autoExpand&&H.value)return{width:`min(${H.value}px, 100%)`}}),ea=(0,u.rk)("input"),er=(0,u.rk)("list"),eo=(0,s.KR)(!1),ei=(0,s.KR)(null);function eu(e){return e?.hint?58:44}function es(t){return eu(e.options[t])}function ed(e){return String(e?.label??e?.value??"").toLowerCase()}function ec(t){return e.multiple&&Array.isArray(e.modelValue)?e.modelValue.includes(t.value):e.modelValue===t.value}function ev(e){return ei.value===e.value}function ef(){e.disabled||eo.value||(eo.value=!0,(0,u.dY)(()=>{let t=er.value?.$el;if(t?.focus?.(),!t)return;let n=e.options.findIndex(e=>ec(e));if(n<=0)return;let l=0;for(let t=0;t<n;t++)l+=eu(e.options[t]);t.scrollTop=l}))}function eh(e=!0){eo.value&&(eo.value=!1,ei.value=null,e&&(0,u.dY)(()=>{ea.value?.focus()}))}function eg(){eo.value?eh():ef()}function ep(t){if(!e.disabled){if(eo.value){"Escape"===t.key&&eh();return}["ArrowDown","ArrowUp"].includes(t.key)&&(t.preventDefault(),ef())}}function em(){e.multiple||eh()}function ey(){ea.value?.focus()}let eb=(0,u.EW)(()=>eo.value||e.isOpen||!e.unmount||null===H.value),ex=(0,u.EW)(()=>!(eo.value||e.isOpen)),eC=(0,s.KR)(G.value);function eR(e){ei.value=e?.value??null}function ew(){ei.value=null}function eE(e){if(!eo.value)return;let t=e.target;!t||ea.value?.contains(t)||er.value?.$el?.contains?.(t)||eh(!1)}function ek(){H.value=null,(0,u.dY)(()=>{if(!er.value)return;let e=er.value?.$el?.getBoundingClientRect?.();e&&(H.value=Math.min(e.width,window.innerWidth))})}function eS(e){n("update:modelValue",e)}function eA(e){eC.value=e,eS(e)}return(0,u.wB)(G,e=>{var t;t=eC.value,(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t)||(eC.value=e)}),(0,u.sV)(()=>{ek(),document.addEventListener("pointerdown",eE,{capture:!0})}),(0,u.hi)(()=>{document.removeEventListener("pointerdown",eE,!0),ee?.disconnect(),ee=null}),(0,u.wB)(()=>e.options,()=>{ek()}),t({focus:ey,click:function(){ea.value?.click()},update:eS}),(t,i)=>((0,u.uX)(),(0,u.Wv)((0,s.R1)(o.A),(0,u.v6)({disabled:e.disabled,readonly:e.readonly,reactive:e.reactive,showInput:e.showInput,showError:e.showError,error:e.error,errorPosition:e.errorPosition,fullWidth:e.fullWidth,reactiveAs:e.reactiveAs,inputName:e.inputName,inputShrink:e.inputShrink},{"onClick:focus":ey,"onClick:decoratorAppend":i[1]||(i[1]=e=>n("click:decoratorAppend")),"onClick:decoratorPrepend":i[2]||(i[2]=e=>n("click:decoratorPrepend"))}),(0,u.eX)({label:(0,u.k6)(()=>[e.label||e.hint?((0,u.uX)(),(0,u.CE)("span",{key:0,id:`label-${e.inputName}`},[(0,u.bF)((0,s.R1)(r.A),(0,u.v6)({label:e.label,labelAs:e.labelAs,labelScreenReaderOnly:e.labelScreenReaderOnly,hint:e.hint,inputName:e.inputName,readonly:e.readonly,disabled:e.disabled,link:e.link,reactive:e.reactive,reactiveAs:e.reactiveAs},{"label-as":"span"}),null,16)],8,p)):(0,u.Q3)("",!0),e.help?((0,u.uX)(),(0,u.Wv)((0,s.R1)(a.A),(0,d._B)((0,u.v6)({key:1},{disabled:e.disabled,readonly:e.readonly,help:e.help})),null,16)):(0,u.Q3)("",!0)]),default:(0,u.k6)(({classes:n})=>[(0,u.Lk)("div",{class:"relative min-w-0 grow text-left",style:(0,d.Tr)(el.value)},[(0,u.Lk)("button",{ref:"input",type:"button",class:(0,d.C4)([t.$slots.button?[]:n,"relative flex items-center justify-between gap-2 text-left"]),disabled:e.disabled,"aria-haspopup":"listbox","aria-expanded":eo.value,"aria-labelledby":e.label||e.hint?`label-${e.inputName}`:void 0,onClick:eg,onKeydown:ep},[(0,u.RG)(t.$slots,"button",(0,d._B)((0,u.Ng)({multiple:e.multiple,hasGlyph:et.value,current:$.value,value:D.value})),()=>[e.multiple?((0,u.uX)(),(0,u.CE)("div",y,[U.value.length>0?((0,u.uX)(),(0,u.CE)("div",b,[((0,u.uX)(!0),(0,u.CE)(u.FK,null,(0,u.pI)(Y.value,(n,a)=>((0,u.uX)(),(0,u.CE)("span",{key:n.image??n.icon??n.label,class:"flex min-w-0 items-center gap-2"},[et.value?((0,u.uX)(),(0,u.CE)("span",x,[n.image?((0,u.uX)(),(0,u.CE)("img",{key:0,src:n.image,alt:"","aria-hidden":"true",class:(0,d.C4)(["size-6 flex-none",{"rounded-full":!e.squaredImages}]),loading:"lazy"},null,10,C)):n.icon?((0,u.uX)(),(0,u.Wv)((0,s.R1)(l.A),{key:1,name:n.icon,class:"flex-none"},null,8,["name"])):((0,u.uX)(),(0,u.CE)("span",R))])):(0,u.Q3)("",!0),(0,u.RG)(t.$slots,"current",(0,u.v6)({ref_for:!0},{current:n,multiple:e.multiple}),()=>[(0,u.Lk)("span",{class:"min-w-0 truncate",title:String(n.label??n.value),textContent:(0,d.v_)(String(n.label??n.value)+(a<Y.value.length-1?",":""))},null,8,w)])]))),128)),q.value>0?((0,u.uX)(),(0,u.CE)(u.FK,{key:0},[(0,u.Lk)("span",{class:"flex-none text-xs font-semibold text-cool-600","aria-hidden":"true",title:J.value,textContent:(0,d.v_)(`+${q.value}`)},null,8,E),(0,u.Lk)("span",{class:"sr-only",textContent:(0,d.v_)(J.value)},null,8,k)],64)):(0,u.Q3)("",!0)],512)):(0,u.Q3)("",!0)])):$.value?((0,u.uX)(),(0,u.CE)("div",S,[et.value?((0,u.uX)(),(0,u.CE)("div",A,[$.value.image?((0,u.uX)(),(0,u.CE)("img",{key:0,src:$.value.image,alt:"","aria-hidden":"true",class:(0,d.C4)({"rounded-full":!e.squaredImages}),loading:"lazy"},null,10,_)):(0,u.Q3)("",!0),$.value.icon?((0,u.uX)(),(0,u.Wv)((0,s.R1)(l.A),{key:1,name:$.value.icon,class:"flex-none"},null,8,["name"])):(0,u.Q3)("",!0),$.value.icon||$.value.image?(0,u.Q3)("",!0):((0,u.uX)(),(0,u.CE)("div",L))])):(0,u.Q3)("",!0),(0,u.RG)(t.$slots,"current",(0,d._B)((0,u.Ng)({current:$.value,multiple:e.multiple})),()=>[(0,u.Lk)("span",{class:"min-w-0 grow truncate",title:String($.value.label??$.value.value),textContent:(0,d.v_)($.value.label??$.value.value)},null,8,M)])])):(0,u.Q3)("",!0),(0,u.bF)((0,s.R1)(l.A),{name:"arrow-down-chevron",size:"xs",class:"flex-none"})])],42,m),e.multiple&&U.value.length>0&&!t.$slots.button?((0,u.uX)(),(0,u.CE)("div",N,[(0,u.Lk)("div",B,[((0,u.uX)(!0),(0,u.CE)(u.FK,null,(0,u.pI)(U.value,
5n=>((0,u.uX)(),(0,u.CE)("span",{key:n.image??n.icon??n.label,"data-measure-item":"",class:"flex flex-none items-center gap-2"},[et.value?((0,u.uX)(),(0,u.CE)("span",P)):(0,u.Q3)("",!0),(0,u.RG)(t.$slots,"current",(0,u.v6)({ref_for:!0},{current:n,multiple:e.multiple}),()=>[(0,u.Lk)("span",{textContent:(0,d.v_)(String(n.label??n.value)+",")},null,8,I)])]))),128)),(0,u.Lk)("span",{"data-measure-tag":"",class:"flex-none text-xs font-semibold",textContent:(0,d.v_)(`+${U.value.length-1}`)},null,8,z)],512)])):(0,u.Q3)("",!0),eb.value?((0,u.uX)(),(0,u.Wv)((0,s.R1)(v.sb),{key:1,"model-value":eC.value,multiple:e.multiple,disabled:e.disabled,"selection-behavior":e.multiple?"toggle":"replace","highlight-on-hover":"","onUpdate:modelValue":eA,onHighlight:eR,onLeave:ew},{default:(0,u.k6)(()=>[(0,u.bF)((0,s.R1)(f.b),{ref:"list",class:(0,d.C4)(["absolute z-[150] scrollbar overflow-y-auto rounded-md border-2 border-cool-800 focus:outline-none",{"bg-cool-1000 text-cool-400":!e.disabled&&!e.readonly,"bg-grey-1200 text-cool-600":e.disabled||e.readonly,"w-full":null!==H.value,invisible:ex.value,"top-full mt-2":"down"===e.flow,"bottom-full mb-2":"up"===e.flow}]),style:(0,d.Tr)({maxHeight:e.maxHeight?e.maxHeight:void 0}),onKeydown:i[0]||(i[0]=(0,c.jR)(e=>eh(),["escape"]))},{default:(0,u.k6)(()=>[(0,u.bF)((0,s.R1)(h.N),{options:e.options,"estimate-size":es,"text-content":ed,overscan:12},{default:(0,u.k6)(({option:n})=>[(0,u.bF)((0,s.R1)(g.P),{value:n.value,class:(0,d.C4)(["flex w-full cursor-default items-center gap-2 p-2.5 text-sm focus:outline-none",{"bg-blue-1000 text-white":ev(n),"font-bold text-white":ec(n)}]),style:(0,d.Tr)({height:`${eu(n)}px`}),onSelect:em},{default:(0,u.k6)(()=>[(0,u.RG)(t.$slots,"option",(0,d._B)((0,u.Ng)({selected:ec(n),option:n,active:ev(n),current:$.value,hasGlyph:et.value,isLargeFormat:en.value})),()=>[et.value?((0,u.uX)(),(0,u.CE)("div",{key:0,class:(0,d.C4)(["flex flex-none items-center justify-center object-contain",{"h-6 w-6 gap-2":!en.value,"h-8 w-8 gap-4":en.value}])},[n.image?((0,u.uX)(),(0,u.CE)("img",{key:0,src:n.image,alt:"","aria-hidden":"true",class:(0,d.C4)({"rounded-full":!e.squaredImages}),loading:"lazy"},null,10,W)):(0,u.Q3)("",!0),n.icon?((0,u.uX)(),(0,u.Wv)((0,s.R1)(l.A),{key:1,name:n.icon,class:"flex-none"},null,8,["name"])):(0,u.Q3)("",!0),n.icon||n.image?(0,u.Q3)("",!0):((0,u.uX)(),(0,u.CE)("div",O))],2)):(0,u.Q3)("",!0),(0,u.Lk)("div",Q,[(0,u.Lk)("span",{class:"min-w-0 truncate antialiased",title:String(n.label??n.value),textContent:(0,d.v_)(n.label??n.value)},null,8,F),n.hint?((0,u.uX)(),(0,u.CE)("span",{key:0,class:(0,d.C4)(["min-w-0 truncate text-xs antialiased",{"text-cool-600":!ev(n),"text-blue-300":ev(n)}]),title:n.hint,textContent:(0,d.v_)(n.hint)},null,10,X)):(0,u.Q3)("",!0)])]),(0,u.bo)((0,u.Lk)("div",{class:(0,d.C4)(["relative size-5 flex-none rounded-full bg-white text-blue-800",{"order-first":"left"===e.checkPosition,invisible:!ec(n)&&null!==H.value}]),"aria-label":"Selected"},[(0,u.bF)((0,s.R1)(l.A),{class:"absolute -inset-0.5",size:"unset",name:"symbol-check-circle"})],2),[[c.aG,"left"===e.checkPosition||ec(n)||null===H.value]])]),_:2},1032,["value","style","class"])]),_:3},8,["options"])]),_:3},8,["class","style"])]),_:3},8,["model-value","multiple","disabled","selection-behavior"])):(0,u.Q3)("",!0)],4)]),_:2},[(0,s.R1)(T).prepend?{name:"prepend",fn:(0,u.k6)(()=>[(0,u.RG)(t.$slots,"prepend")]),key:"0"}:void 0,(0,s.R1)(T).append?{name:"append",fn:(0,u.k6)(()=>[(0,u.RG)(t.$slots,"append")]),key:"1"}:void 0]),1040))}})},22087(e,t,n){n.d(t,{A:()=>k});var l=n(73495),a=n(56982),r=n(52453),o=n(5149),i=n(43925),u=n(79949),s=n(12547),d={class:"flex flex-col rounded-lg bg-cool-1400"},c={key:0,class:"flex flex-none items-center justify-between p-2"},v={class:"flex items-center p-2"},f=["textContent"],h=["textContent"],g={class:"flex items-center gap-3 pr-3"},p={key:0,class:"spinner spinner-base"},m={key:1,class:"contain-animation relative h-0.5 flex-none overflow-hidden bg-cool-800"},y={key:0,class:"h-0.5 animate-loading-slide bg-blue-800"},b={class:"h-0.5 bg-amber-800"},x={class:"flex min-h-50 grow items-center justify-center"},C={class:"flex grow flex-col items-center justify-center gap-4 p-4"},R={class:"px-4 text-sm text-amber-800"},w=["textContent"],E=["textContent"],k=(0,o.pM)({__name:"NCBox",props:{label:{type:String,default:""},color:{type:String,default:"cool"},help:{type:String,default:""},icon:{type:String,default:""},errorIcon:{type:String,default:"action/x"},errorLabel:{type:String,default:""},scope:{type:String,default:""},spinner:{type:String,default:"content"},showContentWhileLoading:{type:Boolean,default:!1},showContentWithError:{type:Boolean,default:!1},showLoadingBar:{type:Boolean,default:!0},errorClearLabel:{type:[String,null],default:null}},emits:["clearError"],setup(e,{emit:t}){let{scope:n,label:k,icon:S,color:A}=(0,i.QW)(e),_=(0,o.Ht)(),L=n.value?(0,l.Q)():null,M=(0,o.EW)(()=>!!k.value||(_.label?.()?.length??0)>=1||(_.help?.()?.length??0)>=1),N=(0,o.EW)(()=>M.value||!!S.value),B=L?.status?.(n.value)??(0,o.EW)(()=>"idle"),P=L?.error?.(n.value)??(0,o.EW)(()=>null),I=(0,o.EW)(()=>!!n.value&&!!B.value&&"loading"===B.value),z=(0,o.EW)(()=>({"text-blue-800":"blue"===A.value,"text-teal-800":"teal"===A.value,"text-violet-800":"violet"===A.value,"text-magenta-800":"magenta"===A.value,"text-hotpink-800":"hotpink"===A.value,"text-red-800":"red"===A.value,"text-amber-800":"amber"===A.value,"text-green-800":"green"===A.value,"text-grey-400":"grey"===A.value,"text-cool-400":"cool"===A.value})),W=(0,o.EW)(()=>({"bg-blue-1100":"blue"===A.value,"bg-teal-1100":"teal"===A.value,"bg-vi
5olet-1100":"violet"===A.value,"bg-magenta-1100":"magenta"===A.value,"bg-hotpink-1100":"hotpink"===A.value,"bg-red-1100":"red"===A.value,"bg-amber-1100":"amber"===A.value,"bg-green-1100":"green"===A.value,"bg-grey-1100":"grey"===A.value,"bg-cool-1100":"cool"===A.value}));function O(){return t("clearError"),L?.scopeReset?.(n.value,{error:!0,success:!1})}return(t,n)=>((0,o.uX)(),(0,o.CE)("div",d,[N.value?((0,o.uX)(),(0,o.CE)("div",c,[(0,o.Lk)("div",null,[(0,o.RG)(t.$slots,"header",{},()=>[(0,o.Lk)("div",v,[(0,i.R1)(S)?((0,o.uX)(),(0,o.Wv)((0,i.R1)(a.A),{key:0,name:(0,i.R1)(S),class:(0,u.C4)([z.value,"mr-4 flex-none p-1"]),size:"2xl","aria-hidden":"true"},null,8,["name","class"])):(0,o.Q3)("",!0),(0,o.Lk)("div",null,[(0,o.RG)(t.$slots,"label",{classes:[z.value,"text-lg"]},()=>[(0,i.R1)(k)?((0,o.uX)(),(0,o.CE)("p",{key:0,class:(0,u.C4)([z.value,"text-lg"]),textContent:(0,u.v_)((0,i.R1)(k))},null,10,f)):(0,o.Q3)("",!0)]),(0,o.RG)(t.$slots,"help",{classes:["text-xs","text-cool-600"]},()=>[e.help?((0,o.uX)(),(0,o.CE)("span",{key:0,class:"text-xs text-cool-600",textContent:(0,u.v_)(e.help)},null,8,h)):(0,o.Q3)("",!0)])])])])]),(0,o.Lk)("div",g,["top"===e.spinner?(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",p,null,512)),[[s.aG,I.value]]):(0,o.Q3)("",!0),(0,o.RG)(t.$slots,"action")])])):(0,o.Q3)("",!0),e.showLoadingBar&&N.value?((0,o.uX)(),(0,o.CE)("div",m,[(0,o.bF)(s.eB,{duration:500},{default:(0,o.k6)(()=>[I.value?((0,o.uX)(),(0,o.CE)("div",y)):(0,o.Q3)("",!0)]),_:1}),(0,o.Lk)("div",{class:(0,u.C4)([[{ready:"idle"===(0,i.R1)(B)},W.value],"layout-loaded absolute inset-0 h-0.5"])},null,2),(0,o.bo)((0,o.Lk)("div",b,null,512),[[s.aG,"error"===(0,i.R1)(B)]])])):(0,o.Q3)("",!0),I.value?(0,o.RG)(t.$slots,"loading",(0,u._B)((0,o.Ng)({loading:I.value,classes:"flex grow justify-center items-center"})),()=>[(0,o.bo)((0,o.Lk)("div",x,[...n[0]||(n[0]=[(0,o.Lk)("div",{class:"spinner spinner-base"},null,-1)])],512),[[s.aG,"content"===e.spinner]])],void 0,2):(0,o.Q3)("",!0),"error"!==(0,i.R1)(B)||e.showContentWithError?(0,o.Q3)("",!0):(0,o.RG)(t.$slots,"error",(0,u._B)((0,o.Ng)({error:(0,i.R1)(P),errorLabel:e.errorLabel,errorIcon:e.errorIcon,classes:"flex flex-col grow justify-center items-center"})),()=>[(0,o.Lk)("div",C,[(0,o.bF)((0,i.R1)(a.A),{name:e.errorIcon,class:"text-amber-1200",size:"8xl","aria-hidden":"true"},null,8,["name"]),(0,o.Lk)("p",R,[e.errorLabel?((0,o.uX)(),(0,o.CE)("span",{key:0,class:"mr-2",textContent:(0,u.v_)(e.errorLabel)},null,8,w)):(0,o.Q3)("",!0),(0,o.Lk)("span",{textContent:(0,u.v_)((0,i.R1)(P)?.message)},null,8,E)]),null!==e.errorClearLabel?((0,o.uX)(),(0,o.Wv)((0,i.R1)(r.A),{key:0,label:e.errorClearLabel,color:"amber",onClick:O},null,8,["label"])):(0,o.Q3)("",!0)])],void 0,3),"loading"===(0,i.R1)(B)&&e.showContentWhileLoading||"error"===(0,i.R1)(B)&&e.showContentWithError||"idle"===(0,i.R1)(B)?(0,o.RG)(t.$slots,"default",(0,u._B)((0,o.Ng)({classes:"grow"})),void 0,void 0,4):(0,o.Q3)("",!0),(0,o.RG)(t.$slots,"footer",(0,u._B)((0,o.Ng)({classes:"flex-none bg-cool-1200 rounded-b"})))]))}})},16881(e,t,n){n.d(t,{A:()=>_});var l=n(73495),a=n(56982),r=n(52453),o=n(77712),i=n(5149),u=n(43925),s=n(79949),d=n(12547),c=n(42520),v=n(9702),f=n(92467),h=n(81952),g=n(35108),p=n(50064),m={class:"flex flex-none items-start justify-between p-2"},y={class:"flex items-center p-2"},b=["textContent"],x=["textContent"],C={key:0,class:"h-0.5 animate-loading-slide bg-blue-800"},R={class:"h-0.5 bg-amber-800"},w={class:"flex grow flex-col items-center justify-center gap-4 p-4"},E={class:"px-4 text-sm text-amber-800"},k=["textContent"],S=["textContent"],A={key:0,class:"flex flex-none flex-row-reverse items-center gap-4 roun
5ded-b bg-cool-1200 px-4 py-3"},_=(0,i.pM)({__name:"NCModal",props:{active:{type:Boolean,default:void 0},forceActive:{type:Boolean,default:!1},zIndex:{type:Number,default:1e3},queuePriority:{type:Number,default:void 0,validator:Number.isFinite},queueKey:{type:String,default:void 0,validator:e=>e.trim().length>0},label:{type:String,default:void 0},help:{type:String,default:void 0},showClose:{type:Boolean,default:!0},initialFocus:{type:Object,default:void 0},maxWidth:{type:String,default:"32rem"},width:{type:String,default:void 0},maxHeight:{type:String,default:"90vh"},height:{type:String,default:void 0},showOverlay:{type:Boolean,default:!0},closeIcon:{type:String,default:"action/x"},autoOpen:{type:Boolean,default:!1},confirmButtonText:{type:String,default:"Ok"},confirmButtonClose:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},cancelButtonText:{type:String,default:"Cancel"},cancelButtonClose:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},color:{type:String,default:"cool"},icon:{type:String,default:""},errorIcon:{type:String,default:"action/x"},errorLabel:{type:String,default:"Error"},scope:{type:String,default:""},showContentWhileLoading:{type:Boolean,default:!1},unmount:{type:Boolean,default:!1},modalClass:{type:[String,Object],default:""}},emits:["close","open","cancel","confirm","queue-skipped"],setup(e,{expose:t,emit:n}){let{active:_,forceActive:L,zIndex:M,queuePriority:N,queueKey:B,label:P,help:I,showClose:z,initialFocus:W,maxWidth:O,width:Q,maxHeight:F,height:X,showOverlay:T,closeIcon:D,autoOpen:G,confirmButtonText:H,confirmButtonClose:U,showConfirmButton:$,cancelButtonText:V,cancelButtonClose:j,showCancelButton:K,color:Y,icon:q,errorIcon:J,errorLabel:Z,scope:ee,showContentWhileLoading:et,unmount:en,modalClass:el}=(0,u.QW)(e),ea=(0,i.rk)("confirmButton"),er=(0,i.rk)("cancelButton"),eo=(0,u.KR)(!1),ei=(0,u.KR)(!1),eu=(0,l.Q)(),{canQueue:es,closeQueued:ed,hasQueuedRequest:ec,queueCycle:ev,requestQueued:ef}=(0,o.y)({active:_,forceActive:L,queuePriority:N,queueKey:B,isOpen:eo,emit:n}),eh=eu.status(ee.value),eg=eu.error(ee.value),ep=eu.errorHidden(ee.value),em=(0,i.EW)(()=>"error"===eh.value&&ep.value?"idle":eh.value),ey=(0,i.EW)(()=>!!ee.value&&!!eh.value&&"loading"===eh.value),eb=(0,i.EW)(()=>({"text-blue-800":"blue"===Y.value,"text-teal-800":"teal"===Y.value,"text-violet-800":"violet"===Y.value,"text-magenta-800":"magenta"===Y.value,"text-hotpink-800":"hotpink"===Y.value,"text-red-800":"red"===Y.value,"text-amber-800":"amber"===Y.value,"text-green-800":"green"===Y.value,"text-grey-400":"grey"===Y.value,"text-cool-400":"cool"===Y.value||!Y.value})),ex=(0,i.EW)(()=>({"bg-blue-1200":"blue"===Y.value,"bg-teal-1200":"teal"===Y.value,"bg-violet-1200":"violet"===Y.value,"bg-magenta-1200":"magenta"===Y.value,"bg-hotpink-1200":"hotpink"===Y.value,"bg-red-1200":"red"===Y.value,"bg-amber-1200":"amber"===Y.value,"bg-green-1200":"green"===Y.value,"bg-grey-1100":"grey"===Y.value,"bg-cool-1100":"cool"===Y.value||!Y.value}));function eC(e=!1){es.value||ev.value?ef(e):(n("open"),(e||!L.value)&&(eo.value=!0))}function eR(e=!1){ec.value?ed(e):(n("close"),(e||!L.value)&&(eo.value=!1))}function ew(){n("confirm"),U.value&&eR()}function eE(){n("cancel"),j.value&&eR()}function ek(e){if(!e&&eo.value){if(ev.value)return void ed();eo.value=!1}}function eS(e){L.value?e.preventDefault():eE()}function eA(e){L.value?e.preventDefault():eE()}function e_(e){let t=W?.value??ea.value??er.value;t&&(e.preventDefault(),(0,i.dY)(()=>{try{t.focus()}catch{}}))}return(0,i.sV)(()=>{G.value&&eC(!0),(0,i.dY)(()=>{ei.value=!0})}),(0,i.hi)(()=>{ei.value=!1}),t({open:eC,close:eR,toggle:function(e=!1){if(ec.value||es.value)return void(ec.value?ed(e):ef(e));let t=!eo.value;n(t?"open":"close"),(e||!L.value)&&(eo.value=t)},confirm:ew,cancel:eE,isOpen:eo,ready:ei}),(e,t)=>((0,i.uX)(),(0,i.Wv)((0,u.R1)(c.X),{open:eo.value,modal:!0,"onUpdate:open":ek},{default:(0,i.k6)(()=>[(0,i.bF)((0,u.R1)(v.j),{"force-mount":!(0,u.R1)(en)},{default:(0,i.k6)(()=>[(0,u.R1)(T)?((0,i.uX)(),(0,i.Wv)((0,u.R1)(f.X),{key:0,"aria-hidden":"true",class:"fixed inset-0 bg-black/50",style:(0,s.Tr)({zIndex:(0,u.R1)(M)})},null,8,["style"])):(0,i.Q3)("",!0),(0,i.Lk)("div",{class:"pointer-events-none fixed inset-0 flex items-center justify-center",style:(0,s.Tr)({zIndex:(0,u.R1)(M)+1})},[(0,i.bF)((0,u.R1)(h._),{class:(0,s.C4)(["pointer-events-auto relative flex flex-col overflow-y-hidden rounded bg-cool-1300 md:shadow-2xl",(0,u.R1)(el)]),style:(0,s.Tr)({maxWidth:(0,u.R1)(O),maxHeight:(0,u.R1)(F),width:(0,u.R1)(Q),height:(0,u.R1)(X)}),onEscapeKeyDown:eS,onPointerDownOutside:eA,onOpenAutoFocus:e_},{default:(0,i.k6)(()=>[(0,i.Lk)("div",m,[(0,i.Lk)("div",null,[(0,i.RG)(e.$slots,"header",{},()=>[(0,i.Lk)("div",y,[(0,u.R1)(q)?((0,i.uX)(),(0,i.Wv)((0,u.R1)(a.A),{key:0,name:(0,u.R1)(q),class:(0,s.C4)([eb.value,"mr-4 flex-none p-1"]),size:"2xl","aria-hidden":""},null,8,["name","class"])):(0,i.Q3)("",!0),(0,i.Lk)("div",null,[(0,i.bF)((0,u.R1)(g.j),null,{default:(0,i.k6)(()=>[(0,i.Lk)("p",{class:(0,s.C4)([eb.value,"text-lg"]),textContent:(0,s.v_)((0,u.R1)(P))},null,10,b)]),_:1}),(0,i.bF)((0,u.R1)(p.p),null,{default:(0,i.k6)(()=>[(0,i.Lk)("span",{class:"mt-2 text-sm text-cool-600",textContent:(0,s.v_)((0,u.R1)(I))},null,8,x)]),_:1})])])])]),(0,i.bo)((0,i.bF)((0,u.R1)(r.A),{icon:(0,u.R1)(D),"icon-position":"content",design:"muted",color:"cool","aria-label":"Close",onClick:eE},null,8,["icon"]),[[d.aG,(0,u.R1)(z)]])]),(0,i.Lk)("div",{class:(0,s.C4)(["contain-animation relative h-0.5 flex-none overflow-hidden bg-cool-800",{"mx-0.5 rounded-t":!(0,u.R1)(P)}])},[(0,i.bF)(d.eB,{duration:500},{default:(0,i.k6)(()=>[ey.value?((0,i.uX)(),(0,i.CE)("div",C)):(0,i.Q3)("",!0)]),_:1}),(0,i.Lk)("div",{class:(0,s.C4)([[{ready:"idle"===em.value},ex.value],"layout-loaded absolute inset-0 h-0.5"])},null,2),(0,i.bo)((0,i.Lk)("div",R,null,512),[[d.aG,"error"===em.value]])],2),"error"===em.value?(0,i.RG)(e.$slots,"error",(0,s._B)((0,i.Ng)({error:(0,u.R1)(eg),errorLabel:(0,u.R1)(Z),errorIcon:(0,u.R1)(J),classes:"flex flex-col grow justify-center items-center"})),()=>[(0,i.Lk)("div",w,[(0,i.bF)((0,u.R1)(a.A),{name:(0,u.R1)(J),class:"text-amber-1200",size:"8xl","aria-hidden":"true"},null,8,["name"]),(0,i.Lk)("p",E,[(0,u.R1)(Z)?((0,i.uX)(),(0,i.CE)("span",{key:0,class:"mr-2",textContent:(0,s.v_)((0,u.R1)(Z))},null,8,k)):(0,i.Q3)("",!0),(0,i.Lk)("span",{textContent:(0,s.v_)((0,u.R1)(eg)?.message)},null,8,S)])])],void 0,0):(0,i.Q3)("",!0),"loading"===em.value&&(0,u.R1)(et)||"idle"===em.value?(0,i.RG)(e.$slots,"default",(0,s._B)((0,i.Ng)({classes:"grow overflow-y-auto"})),void 0,void 0,1):(0,i.Q3)("",!0),(0,i.RG)(e.$slots,"footer",(0,s._B)((0,i.Ng)({color:(0,u.R1)(Y),close:eR,classes:"flex flex-none flex-row-reverse items-center gap-4 roun
5ded-b bg-cool-1200 py-3 px-4"})),()=>[(0,u.R1)($)||(0,u.R1)(K)?((0,i.uX)(),(0,i.CE)("div",A,[(0,i.bo)((0,i.bF)((0,u.R1)(r.A),{ref:"confirmButton",label:(0,u.R1)(H),color:(0,u.R1)(Y),onClick:ew},null,8,["label","color"]),[[d.aG,(0,u.R1)($)]]),(0,i.bo)((0,i.bF)((0,u.R1)(r.A),{ref:"cancelButton",label:(0,u.R1)(V),color:"cool",onClick:eE},null,8,["label"]),[[d.aG,(0,u.R1)(K)]])])):(0,i.Q3)("",!0)])]),_:3},8,["class","style"])],4)]),_:3},8,["force-mount"])]),_:3},8,["open"]))}})},76767(e,t,n){var l=n(16881).A;n.d(t,{A:()=>l})},30750(e,t,n){var l,a,r,o=n(5149),i=n(43925),u=function(){return(u=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,function(e){var t=function(){function t(e,n,l,r){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(r<-1||r>7)throw RangeError("Mask value out of range");this.size=4*e+17;for(var o=[],i=0;i<this.size;i++)o.push(!1);for(var i=0;i<this.size;i++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var u=this.addEccAndInterleave(l);if(this.drawCodewords(u),-1==r)for(var s=1e9,i=0;i<8;i++){this.applyMask(i),this.drawFormatBits(i);var d=this.getPenaltyScore();d<s&&(r=i,s=d),this.applyMask(i)}a(0<=r&&r<=7),this.mask=r,this.applyMask(r),this.drawFormatBits(r),this.isFunction=[]}return t.encodeText=function(n,l){var a=e.QrSegment.makeSegments(n);return t.encodeSegments(a,l)},t.encodeBinary=function(n,l){var a=e.QrSegment.makeBytes(n);return t.encodeSegments([a],l)},t.encodeSegments=function(e,l,o,i,u,s){if(void 0===o&&(o=1),void 0===i&&(i=40),void 0===u&&(u=-1),void 0===s&&(s=!0),!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||u<-1||u>7)throw RangeError("Invalid value");for(d=o;;d++){var d,c,v=8*t.getNumDataCodewords(d,l),f=r.getTotalBits(e,d);if(f<=v){c=f;break}if(d>=i)throw RangeError("Data too long")}for(var h=0,g=[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH];h<g.length;h++){var p=g[h];s&&c<=8*t.getNumDataCodewords(d,p)&&(l=p)}for(var m=[],y=0;y<e.length;y++){var b=e[y];n(b.mode.modeBits,4,m),n(b.numChars,b.mode.numCharCountBits(d),m);for(var x=0,C=b.getData();x<C.length;x++){var R=C[x];m.push(R)}}a(m.length==c);var w=8*t.getNumDataCodewords(d,l);a(m.length<=w),n(0,Math.min(4,w-m.length),m),n(0,(8-m.length%8)%8,m),a(m.length%8==0);for(var E=236;m.length<w;E^=253)n(E,8,m);for(var k=[];8*k.length<m.length;)k.push(0);return m.forEach(function(e,t){return k[t>>>3]|=e<<7-(7&t)}),new t(d,l,k,u)},t.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},t.prototype.getModules=function(){return this.modules},t.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,e=0;e<n;e++)for(var l=0;l<n;l++)(0!=e||0!=l)&&(0!=e||l!=n-1)&&(e!=n-1||0!=l)&&this.drawAlignmentPattern(t[e],t[l]);this.drawFormatBits(0),this.drawVersion()},t.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,r=0;r<10;r++)n=n<<1^(n>>>9)*1335;var o=(t<<10|n)^21522;a(o>>>15==0);for(var r=0;r<=5;r++)this.setFunctionModule(8,r,l(o,r));this.setFunctionModule(8,7,l(o,6)),this.setFunctionModule(8,8,l(o,7)),this.setFunctionModule(7,8,l(o,8));for(var r=9;r<15;r++)this.setFunctionModule(14-r,8,l(o,r));for(var r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,l(o,r));for(var r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,l(o,r));this.setFunctionModule(8,this.size-8,!0)},t.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var n=this.version<<12|e;a(n>>>18==0);for(var t=0;t<18;t++){var r=l(n,t),o=this.size-11+t%3,i=Math.floor(t/3);this.setFunctionModule(o,i,r),this.setFunctionModule(i,o,r)}}},t.prototype.drawFinderPattern=function(e,t){for(var n=-4;n<=4;n++)for(var l=-4;l<=4;l++){var a=Math.max(Math.abs(l),Math.abs(n)),r=e+l,o=t+n;0<=r&&r<this.size&&0<=o&&o<this.size&&this.setFunctionModule(r,o,2!=a&&4!=a)}},t.prototype.drawAlignmentPattern=function(e,t){for(var n=-2;n<=2;n++)for(var l=-2;l<=2;l++)this.setFunctionModule(e+l,t+n,1!=Math.max(Math.abs(l),Math.abs(n)))},t.prototype.setFunctionModule=function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0},t.prototype.addEccAndInterleave=function(e){var n=this.version,l=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,l))throw RangeError("Invalid argument");
5for(var r=t.NUM_ERROR_CORRECTION_BLOCKS[l.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[l.ordinal][n],i=Math.floor(t.getNumRawDataModules(n)/8),u=r-i%r,s=Math.floor(i/r),d=[],c=t.reedSolomonComputeDivisor(o),v=0,f=0;v<r;v++){var h=e.slice(f,f+s-o+(v<u?0:1));f+=h.length;var g=t.reedSolomonComputeRemainder(h,c);v<u&&h.push(0),d.push(h.concat(g))}for(var p=[],m=function(e){d.forEach(function(t,n){(e!=s-o||n>=u)&&p.push(t[e])})},v=0;v<d[0].length;v++)m(v);return a(p.length==i),p},t.prototype.drawCodewords=function(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");for(var n=0,r=this.size-1;r>=1;r-=2){6==r&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var u=r-i,s=(r+1&2)==0?this.size-1-o:o;!this.isFunction[s][u]&&n<8*e.length&&(this.modules[s][u]=l(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)},t.prototype.applyMask=function(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var l=void 0;switch(e){case 0:l=(n+t)%2==0;break;case 1:l=t%2==0;break;case 2:l=n%3==0;break;case 3:l=(n+t)%3==0;break;case 4:l=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:l=n*t%2+n*t%3==0;break;case 6:l=(n*t%2+n*t%3)%2==0;break;case 7:l=((n+t)%2+n*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][n]&&l&&(this.modules[t][n]=!this.modules[t][n])}},t.prototype.getPenaltyScore=function(){for(var e=0,n=0;n<this.size;n++){for(var l=!1,r=0,o=[0,0,0,0,0,0,0],i=0;i<this.size;i++)this.modules[n][i]==l?5==++r?e+=t.PENALTY_N1:r>5&&e++:(this.finderPenaltyAddHistory(r,o),l||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),l=this.modules[n][i],r=1);e+=this.finderPenaltyTerminateAndCount(l,r,o)*t.PENALTY_N3}for(var i=0;i<this.size;i++){for(var l=!1,u=0,o=[0,0,0,0,0,0,0],n=0;n<this.size;n++)this.modules[n][i]==l?5==++u?e+=t.PENALTY_N1:u>5&&e++:(this.finderPenaltyAddHistory(u,o),l||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),l=this.modules[n][i],u=1);e+=this.finderPenaltyTerminateAndCount(l,u,o)*t.PENALTY_N3}for(var n=0;n<this.size-1;n++)for(var i=0;i<this.size-1;i++){var s=this.modules[n][i];s==this.modules[n][i+1]&&s==this.modules[n+1][i]&&s==this.modules[n+1][i+1]&&(e+=t.PENALTY_N2)}for(var d=0,c=0,v=this.modules;c<v.length;c++)d=v[c].reduce(function(e,t){return e+ +!!t},d);var f=this.size*this.size,h=Math.ceil(Math.abs(20*d-10*f)/f)-1;return a(0<=h&&h<=9),a(0<=(e+=h*t.PENALTY_N4)&&e<=2568888),e},t.prototype.getAlignmentPatternPositions=function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=2*Math.floor((8*this.version+3*e+5)/(4*e-4)),n=[6],l=this.size-7;n.length<e;l-=t)n.splice(1,0,l);return n},t.getNumRawDataModules=function(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");var n=(16*e+128)*e+64;if(e>=2){var l=Math.floor(e/7)+2;n-=(25*l-10)*l-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n},t.getNumDataCodewords=function(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]},t.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw RangeError("Degree out of range");for(var n=[],l=0;l<e-1;l++)n.push(0);n.push(1);for(var a=1,l=0;l<e;l++){for(var r=0;r<n.length;r++)n[r]=t.reedSolomonMultiply(n[r],a),r+1<n.length&&(n[r]^=n[r+1]);a=t.reedSolomonMultiply(a,2)}return n},t.reedSolomonComputeRemainder=function(e,n){for(var l=n.map(function(e){return 0}),a=0;a<e.length;a++)!function(e){var a=e^l.shift();l.push(0),n.forEach(function(e,n){return l[n]^=t.reedSolomonMultiply(e,a)})}(e[a]);return l},t.reedSolomonMultiply=function(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");for(var n=0,l=7;l>=0;l--)n=n<<1^(n>>>7)*285^(t>>>l&1)*e;return a(n>>>8==0),n},t.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];a(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)},t.prototype.finderPenaltyTerminateAndCount=function(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)},t.prototype.finderPenaltyAddHistory=function(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)},t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t}();function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(var l=t-1;l>=0;l--)n.push(e>>>l&1)}function l(e,t){return(e>>>t&1)!=0}function a(e){if(!e)throw Error("Assertion error")}e.QrCode=t;var r=function(){function e(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError("Invalid argument");this.bitData=n.slice()}return e.makeBytes=function(t){for(var l=[],a=0;a<t.length;a++)n(t[a],8,l);return new e(e.Mode.BYTE,t.length,l)},e.makeNumeric=function(t){if(!e.isNumeric(t))throw RangeError("String contains 
5non-numeric characters");for(var l=[],a=0;a<t.length;){var r=Math.min(t.length-a,3);n(parseInt(t.substring(a,a+r),10),3*r+1,l),a+=r}return new e(e.Mode.NUMERIC,t.length,l)},e.makeAlphanumeric=function(t){if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");var l,a=[];for(l=0;l+2<=t.length;l+=2){var r=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(l));n(r+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(l+1)),11,a)}return l<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(l)),6,a),new e(e.Mode.ALPHANUMERIC,t.length,a)},e.makeSegments=function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]},e.makeEci=function(t){var l=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)n(t,8,l);else if(t<16384)n(2,2,l),n(t,14,l);else if(t<1e6)n(6,3,l),n(t,21,l);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,l)},e.isNumeric=function(t){return e.NUMERIC_REGEX.test(t)},e.isAlphanumeric=function(t){return e.ALPHANUMERIC_REGEX.test(t)},e.prototype.getData=function(){return this.bitData.slice()},e.getTotalBits=function(e,t){for(var n=0,l=0;l<e.length;l++){var a=e[l],r=a.mode.numCharCountBits(t);if(a.numChars>=1<<r)return 1/0;n+=4+r+a.bitData.length}return n},e.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t},e.NUMERIC_REGEX=/^[0-9]*$/,e.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,e.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e}();e.QrSegment=r}(r||(r={})),((l=r||(r={})).QrCode||(l.QrCode={})).Ecc=function(){function e(e,t){this.ordinal=e,this.formatBits=t}return e.LOW=new e(0,1),e.MEDIUM=new e(1,0),e.QUARTILE=new e(2,3),e.HIGH=new e(3,2),e}(),((a=r||(r={})).QrSegment||(a.QrSegment={})).Mode=function(){function e(e,t){this.modeBits=e,this.numBitsCharCount=t}return e.prototype.numCharCountBits=function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]},e.NUMERIC=new e(1,[10,12,14]),e.ALPHANUMERIC=new e(2,[9,11,13]),e.BYTE=new e(4,[8,16,16]),e.KANJI=new e(8,[8,10,12]),e.ECI=new e(7,[0,0,0]),e}();var s=r,d=0,c={L:s.QrCode.Ecc.LOW,M:s.QrCode.Ecc.MEDIUM,Q:s.QrCode.Ecc.QUARTILE,H:s.QrCode.Ecc.HIGH},v=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function f(e){var t=(0,o.EW)(function(){var t;return(null!=(t=e.margin)?t:0)>>>0}),n=(0,o.EW)(function(){var t=e.level in c?e.level:"L";return s.QrCode.encodeText(e.value,c[t]).getModules()}),l=(0,o.EW)(function(){return n.value.length+2*t.value}),a=(0,o.EW)(function(){return e.radius>0?function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);for(var l=[],a=Math.min(n,.5),r=0;r<e.length;r++)for(var o=0;o<e[r].length;o++)if(e[r][o]){var i=function(e,t,n){var l=t>0&&e[t-1][n],a=t<e.length-1&&e[t+1][n],r=n>0&&e[t][n-1],o=n<e[t].length-1&&e[t][n+1];return{nw:!l&&!r,ne:!l&&!o,se:!a&&!o,sw:!a&&!r}}(e,r,o),u=i.nw,s=i.ne,d=i.se,c=i.sw,v=o+t,f=r+t;l.push("M".concat(v+(u?a:0)," ").concat(f),"L".concat(v+1-(s?a:0)," ").concat(f)),s&&l.push("A".concat(a," ").concat(a," 0 0 1 ").concat(v+1," ").concat(f+a)),l.push("L".concat(v+1," ").concat(f+1-(d?a:0))),d&&l.push("A".concat(a," ").concat(a," 0 0 1 ").concat(v+1-a," ").concat(f+1)),l.push("L".concat(v+(c?a:0)," ").concat(f+1)),c&&l.push("A".concat(a," ").concat(a," 0 0 1 ").concat(v," ").concat(f+1-a)),l.push("L".concat(v," ").concat(f+(u?a:0))),u&&l.push("A".concat(a," ").concat(a," 0 0 1 ").concat(v+a," ").concat(f)),l.push("z")}return l.join("")}(n.value,t.value,e.radius):function(e,t){void 0===t&&(t=0);for(var n=[],l=0;l<e.length;l++)for(var a=e[l],r=null,o=0;o<a.length;o++){var i=a[o];if(!i&&null!==r){n.push("M".concat(r+t," ").concat(l+t,"h").concat(o-r,"v1H").concat(r+t,"z")),r=null;continue}if(o===a.length-1){if(!i)continue;null===r?n.push("M".concat(o+t,",").concat(l+t," h1v1H").concat(o+t,"z")):n.push("M".concat(r+t,",").concat(l+t," h").concat(o+1-r,"v1H").concat(r+t,"z"));continue}i&&null===r&&(r=o)}return n.join("")}(n.value,t.value)}),r=(0,o.EW)(function(){if(!e.imageSettings.src)return null;var l,a,r,o,i,u,s,d,c,v,f,h,g,p=(l=n.value,a=e.size,r=t.value,i=(o=e.imageSettings).width,u=o.height,s=o.x,d=o.y,c=l.length+2*r,v=Math.floor(.1*
5a),h=(i||v)*(f=c/a),g=(u||v)*f,{x:null==s?l.length/2-h/2:s*f,y:null==d?l.length/2-g/2:d*f,h:g,w:h,borderRadius:(o.borderRadius||0)*f});return{x:p.x+t.value,y:p.y+t.value,width:p.w,height:p.h,borderRadius:p.borderRadius}}),i=(0,o.EW)(function(){if(!e.imageSettings.excavate||!r.value)return null;var t=2/(e.size/l.value);return{x:r.value.x-t,y:r.value.y-t,width:r.value.width+2*t,height:r.value.height+2*t,borderRadius:r.value.borderRadius}});return{margin:t,numCells:l,cells:n,fgPath:a,imageProps:r,imageBorderProps:i}}function h(e,t){var n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}var g={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:"L",validator:function(e){return e in c}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,default:0,validator:function(e){return e>=0}},imageSettings:{type:Object,default:function(){return{}}},gradient:{type:Boolean,default:!1},gradientType:{type:String,default:"linear",validator:function(e){return["linear","radial"].indexOf(e)>-1}},gradientStartColor:{type:String,default:"#000"},gradientEndColor:{type:String,default:"#fff"},radius:{type:Number,default:0,validator:function(e){return!isNaN(e)&&e>=0&&e<=.5}},id:{type:String,required:!1}},p=u(u({},g),{renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}}),m=(0,o.pM)({name:"QRCodeSvg",props:g,setup:function(e,t){var n,l=f(e),a=l.numCells,r=l.fgPath,s=l.imageProps,c=l.imageBorderProps,v=(0,i.KR)(),g=(n=e.id)?n:"v-".concat(d++),p="qrcode.vue-gradient-".concat(g),m="qrcode.vue-logo-clip-path-".concat(g),y=(0,o.EW)(function(){if(!e.gradient)return null;var t="linear"===e.gradientType?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return(0,o.h)("linear"===e.gradientType?"linearGradient":"radialGradient",u({id:p},t),[(0,o.h)("stop",{offset:"0%",style:{stopColor:e.gradientStartColor}}),(0,o.h)("stop",{offset:"100%",style:{stopColor:e.gradientEndColor}})])}),b=(0,o.EW)(function(){if(!s.value)return null;var e=s.value.borderRadius;return e<=0?null:(0,o.h)("clipPath",{id:m},[(0,o.h)("rect",{x:s.value.x,y:s.value.y,width:s.value.width,height:s.value.height,rx:e,ry:e})])}),x=function(e){return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<?xml version="1.0" standalone="no"?>'+new XMLSerializer().serializeToString(e))};return t.expose({toDataURL:function(){var e=v.value;if(e)return x(e)},download:function(e){void 0===e&&(e="qrcode.svg");var t=v.value;t&&h(x(t),e)}}),function(){return(0,o.h)("svg",{ref:v,width:e.size,height:e.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(a.value," ").concat(a.value),role:"img"},[(0,o.h)("defs",{},[y.value,b.value].filter(Boolean)),(0,o.h)("rect",{width:"100%",height:"100%",fill:e.background}),(0,o.h)("path",{fill:e.gradient?"url(#".concat(p,")"):e.foreground,d:r.value}),c.value&&(0,o.h)("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,fill:e.background,rx:c.value.borderRadius,ry:c.value.borderRadius}),e.imageSettings.src&&s.value&&(0,o.h)("image",u({href:e.imageSettings.src,crossorigin:e.imageSettings.crossOrigin,"clip-path":s.value.borderRadius>0?"url(#".concat(m,")"):void 0},s.value))])}}}),y=(0,o.pM)({name:"QRCodeCanvas",props:g,setup:function(e,t){var n=f(e),l=n.margin,a=n.cells,r=n.numCells,s=n.fgPath,d=n.imageProps,c=n.imageBorderProps,g=(0,i.KR)(null),p=(0,i.KR)(null),m=function(e,t,n,l,a,r){e.beginPath(),e.roundRect?e.roundRect(t,n,l,a,r):e.rect(t,n,l,a)},y=function(){var t=e.size,n=e.background,o=e.foreground,i=e.gradient,u=e.gradientType,f=e.gradientStartColor,h=e.gradientEndColor,y=g.value;if(y){var b=y.getContext("2d");if(b){var x=p.value,C="u">typeof window&&window.devicePixelRatio||1,R=t/r.value*C;if(y.height=y.width=t*C,b.setTransform(R,0,0,R,0,0),b.fillStyle=n,b.fillRect(0,0,r.value,r.value),i){var w=void 0;(w="linear"===u?b.createLinearGradient(0,0,r.value,r.value):b.createRadialGradient(r.value/2,r.value/2,0,r.value/2,r.value/2,r.value/2)).addColorStop(0,f),w.addColorStop(1,h),b.fillStyle=w}else b.fillStyle=o;if(v?b.fill(new Path2D(s.value)):a.value.forEach(function(e,t){e.forEach(function(e,n){e&&b.fillRect(n+l.value,t+l.value,1,1)})}
5),e.imageSettings.src&&x&&0!==x.naturalWidth&&0!==x.naturalHeight&&d.value){if(c.value){var E=c.value;b.fillStyle=e.background,m(b,E.x,E.y,E.width,E.height,E.borderRadius),b.fill()}var k=d.value.borderRadius;k>0?(b.save(),m(b,d.value.x,d.value.y,d.value.width,d.value.height,k),b.clip(),b.drawImage(x,d.value.x,d.value.y,d.value.width,d.value.height),b.restore()):b.drawImage(x,d.value.x,d.value.y,d.value.width,d.value.height)}}}};return(0,o.sV)(y),(0,o.nT)(y,{flush:"post"}),t.expose({toDataURL:function(e,t){var n;return null==(n=g.value)?void 0:n.toDataURL(e,t)},download:function(e){void 0===e&&(e="qrcode.png");var t=g.value;t&&h(t.toDataURL("image/png"),e)}}),function(){return(0,o.h)(o.FK,[(0,o.h)("canvas",u(u({},t.attrs),{ref:g,role:"img",style:u(u({},t.attrs.style),{width:"".concat(e.size,"px"),height:"".concat(e.size,"px")})})),e.imageSettings.src&&(0,o.h)("img",{ref:p,src:e.imageSettings.src,crossorigin:e.imageSettings.crossOrigin,style:{display:"none"},onLoad:y})])}}}),b=(0,o.pM)({name:"Qrcode",props:p,setup:function(e,t){var n=(0,i.KR)();return t.expose({toDataURL:function(e,t){var l,a;return null==(a=null==(l=n.value)?void 0:l.toDataURL)?void 0:a.call(l,e,t)},download:function(e){var t,l;return null==(l=null==(t=n.value)?void 0:t.download)?void 0:l.call(t,e)}}),function(){return(0,o.h)("svg"===e.renderAs?m:y,{ref:n,value:e.value,size:e.size,margin:e.margin,level:e.level,background:e.background,foreground:e.foreground,imageSettings:e.imageSettings,gradient:e.gradient,gradientType:e.gradientType,gradientStartColor:e.gradientStartColor,gradientEndColor:e.gradientEndColor,radius:e.radius,id:e.id})}}});n.d(t,{Ay:()=>b})}};
6//# sourceMappingURL=34bb1c9df0eda863.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.