@merittdev/horus-lens 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/browser.cjs +31594 -0
  2. package/dist/browser.cjs.map +1 -0
  3. package/dist/browser.d.cts +125 -0
  4. package/dist/browser.d.ts +125 -0
  5. package/dist/browser.js +24 -0
  6. package/dist/browser.js.map +1 -0
  7. package/dist/chunk-DU7HNRF4.js +1644 -0
  8. package/dist/chunk-DU7HNRF4.js.map +1 -0
  9. package/dist/chunk-DWOH2ENF.js +17613 -0
  10. package/dist/chunk-DWOH2ENF.js.map +1 -0
  11. package/dist/chunk-PZ5AY32C.js +10 -0
  12. package/dist/chunk-PZ5AY32C.js.map +1 -0
  13. package/dist/chunk-S6S3ZZQA.js +17225 -0
  14. package/dist/chunk-S6S3ZZQA.js.map +1 -0
  15. package/dist/dashboard.cjs +19774 -0
  16. package/dist/dashboard.cjs.map +1 -0
  17. package/dist/dashboard.css +2233 -0
  18. package/dist/dashboard.d.cts +707 -0
  19. package/dist/dashboard.d.ts +707 -0
  20. package/dist/dashboard.js +2237 -0
  21. package/dist/dashboard.js.map +1 -0
  22. package/dist/index.cjs +30040 -0
  23. package/dist/index.cjs.map +1 -0
  24. package/dist/index.d-BA540Fae.d.ts +80 -0
  25. package/dist/index.d-Bzgtl7-B.d.cts +161 -0
  26. package/dist/index.d-Bzgtl7-B.d.ts +161 -0
  27. package/dist/index.d-DOCLVJGS.d.cts +80 -0
  28. package/dist/index.d.cts +906 -0
  29. package/dist/index.d.ts +906 -0
  30. package/dist/index.js +89 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/lens.min.js +770 -0
  33. package/dist/lens.min.js.map +1 -0
  34. package/dist/react.cjs +31683 -0
  35. package/dist/react.cjs.map +1 -0
  36. package/dist/react.d.cts +100 -0
  37. package/dist/react.d.ts +100 -0
  38. package/dist/react.js +108 -0
  39. package/dist/react.js.map +1 -0
  40. package/dist/rrweb-EYUUZIYR.js +30 -0
  41. package/dist/rrweb-EYUUZIYR.js.map +1 -0
  42. package/package.json +68 -0
@@ -0,0 +1,770 @@
1
+ "use strict";var LensSDK=(()=>{var jo=Object.defineProperty;var Hy=Object.getOwnPropertyDescriptor;var Xy=Object.getOwnPropertyNames;var Ky=Object.prototype.hasOwnProperty;var Ve=(e,r)=>{for(var n in r)jo(e,n,{get:r[n],enumerable:!0})},Yy=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Xy(r))!Ky.call(e,t)&&t!==n&&jo(e,t,{get:()=>r[t],enumerable:!(o=Hy(r,t))||o.enumerable});return e};var Qy=e=>Yy(jo({},"__esModule",{value:!0}),e);var BI={};Ve(BI,{DEFAULT_CDN_URL:()=>qy,LOADER_SNIPPET:()=>LI,autoBoot:()=>Jy,boot:()=>Mo,installGlobal:()=>br,isGateActive:()=>By,loaderSnippet:()=>Gy,processQueue:()=>Wy});var eb=Object.defineProperty,tb=(e,r,n)=>r in e?eb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,A=(e,r,n)=>tb(e,typeof r!="symbol"?r+"":r,n),qf,rb=Object.defineProperty,nb=(e,r,n)=>r in e?rb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gf=(e,r,n)=>nb(e,typeof r!="symbol"?r+"":r,n),pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pe||{}),Jf={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Hf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vn={},gh={},ib=()=>!!globalThis.Zone;function oa(e){if(vn[e])return vn[e];let r=globalThis[e],n=r.prototype,o=e in Jf?Jf[e]:void 0,t=!!(o&&o.every(a=>{var c,u;return!!((u=(c=Object.getOwnPropertyDescriptor(n,a))==null?void 0:c.get)!=null&&u.toString().includes("[native code]"))})),i=e in Hf?Hf[e]:void 0,s=!!(i&&i.every(a=>{var c;return typeof n[a]=="function"&&((c=n[a])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!ib())return vn[e]=r.prototype,r.prototype;try{let a=document.createElement("iframe");a.style.display="none",document.body.appendChild(a);let c=a.contentWindow;if(!c)return r.prototype;let u=c[e].prototype;if(!u)return a.remove(),n;let l=navigator.userAgent;return l.includes("Safari")&&!l.includes("Chrome")?(a.classList.add("rr-block"),a.setAttribute("__rrwebUntaintedMutationObserver",""),gh[e]=()=>a.remove()):a.remove(),vn[e]=u}catch{return n}}var Lo={};function Ye(e,r,n){var o;let t=`${e}.${String(n)}`;if(Lo[t])return Lo[t].call(r);let i=oa(e),s=(o=Object.getOwnPropertyDescriptor(i,n))==null?void 0:o.get;return s?(Lo[t]=s,s.call(r)):r[n]}var Fo={};function vh(e,r,n){let o=`${e}.${String(n)}`;if(Fo[o])return Fo[o].bind(r);let i=oa(e)[n];return typeof i!="function"?r[n]:(Fo[o]=i,i.bind(r))}function ob(e){return Ye("Node",e,"ownerDocument")}function sb(e){return Ye("Node",e,"childNodes")}function ab(e){return Ye("Node",e,"parentNode")}function lb(e){return Ye("Node",e,"parentElement")}function cb(e){return Ye("Node",e,"textContent")}function ub(e,r){return vh("Node",e,"contains")(r)}function db(e){return vh("Node",e,"getRootNode")()}function fb(e){return!e||!("host"in e)?null:Ye("ShadowRoot",e,"host")}function pb(e){return e.styleSheets}function hb(e){return!e||!("shadowRoot"in e)?null:Ye("Element",e,"shadowRoot")}function mb(e,r){return Ye("Element",e,"querySelector")(r)}function gb(e,r){return Ye("Element",e,"querySelectorAll")(r)}function vb(){return[oa("MutationObserver").constructor,gh.MutationObserver??(()=>{})]}var yh=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(yh=()=>new Date().getTime());function yb(e,r,n){try{if(!(r in e))return()=>{};let o=e[r],t=n(o);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=t,()=>{e[r]=o}}catch{return()=>{}}}var ge={ownerDocument:ob,childNodes:sb,parentNode:ab,parentElement:lb,textContent:cb,contains:ub,getRootNode:db,host:fb,styleSheets:pb,shadowRoot:hb,querySelector:mb,querySelectorAll:gb,nowTimestamp:yh,mutationObserverCtor:vb,patch:yb};function bh(e){return e.nodeType===e.ELEMENT_NODE}function _r(e){let r=e&&"host"in e&&"mode"in e&&ge.host(e)||null;return!!(r&&"shadowRoot"in r&&ge.shadowRoot(r)===e)}function Sr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function bb(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function wb(e){let{cssText:r}=e;if(r.split('"').length<3)return r;let n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function qs(e){try{let r=e.rules||e.cssRules;if(!r)return null;let n=e.href;!n&&e.ownerNode&&(n=e.ownerNode.baseURI);let o=Array.from(r,t=>wh(t,n)).join("");return bb(o)}catch{return null}}function wh(e,r){if(_b(e)){let n;try{n=qs(e.styleSheet)||wb(e)}catch{n=e.cssText}return e.styleSheet.href?zn(n,e.styleSheet.href):n}else{let n=e.cssText;return Sb(e)&&e.selectorText.includes(":")&&(n=xb(n)),r?zn(n,r):n}}function xb(e){let r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function _b(e){return"styleSheet"in e}function Sb(e){return"selectorText"in e}var Cn=class{constructor(){Gf(this,"idNodeMap",new Map),Gf(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function $b(){return new Cn}function On({element:e,maskInputOptions:r,tagName:n,type:o,value:t,maskInputFn:i}){let s=t||"",a=o&&bt(o);return(r[n.toLowerCase()]||a&&r[a])&&(i?s=i(s,e):s="*".repeat(s.length)),s}function bt(e){return e.toLowerCase()}var Xf="__rrweb_original__";function kb(e){let r=e.getContext("2d");if(!r)return!0;let n=50;for(let o=0;o<e.width;o+=n)for(let t=0;t<e.height;t+=n){let i=r.getImageData,s=Xf in i?i[Xf]:i;if(new Uint32Array(s.call(r,o,t,Math.min(n,e.width-o),Math.min(n,e.height-t)).data.buffer).some(c=>c!==0))return!1}return!0}function Nn(e){let r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?bt(r):null}function xh(e,r){let n;try{n=new URL(e,r??window.location.href)}catch{return null}let o=/\.([0-9a-z]+)(?:$)/i,t=n.pathname.match(o);return t?.[1]??null}function Ib(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}var Eb=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Cb=/^(?:[a-z+]+:)?\/\//i,Ob=/^www\..*/i,Nb=/^(data:)([^,]*),(.*)/i;function zn(e,r){return(e||"").replace(Eb,(n,o,t,i,s,a)=>{let c=t||s||a,u=o||i||"";if(!c)return n;if(Cb.test(c)||Ob.test(c))return`url(${u}${c}${u})`;if(Nb.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${Ib(r)+c}${u})`;let l=c.split("#")[0],p=c.substring(l.length),f=r.split("#")[0].split("/"),d=l.split("/");f.pop();for(let m of d)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${u}${f.join("/")}${p}${u})`})}function yn(e,r=!1){return r?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function zb(e,r,n=!1){let o=Array.from(r.childNodes),t=[],i=0;if(o.length>1&&e&&typeof e=="string"){let s=yn(e,n),a=s.length/e.length;for(let c=1;c<o.length;c++)if(o[c].textContent&&typeof o[c].textContent=="string"){let u=yn(o[c].textContent,n),l=100,p=3;for(;p<u.length&&(u[p].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,p),1)!==-1);p++);for(;p<u.length;p++){let f=u.substring(0,p),d=s.split(f),m=-1;if(d.length===2)m=d[0].length;else if(d.length>2&&d[0]===""&&o[c-1].textContent!=="")m=s.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=s.split(f),d.length<=1)return t.push(e),t;p=l+1}else p===u.length-1&&(m=s.indexOf(f));if(d.length>=2&&p>l){let h=o[c-1].textContent;if(h&&typeof h=="string"){let g=yn(h).length;m=s.indexOf(f,g)}m===-1&&(m=d[0].length)}if(m!==-1){let h=Math.floor(m/a);for(;h>0&&h<e.length;){if(i+=1,i>50*o.length)return t.push(e),t;let g=yn(e.substring(0,h),n);if(g.length===m){t.push(e.substring(0,h)),e=e.substring(h),s=s.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/a)):h-=Math.max(1,Math.floor((g.length-m)*a))}break}}}}return t.push(e),t}function Db(e,r){return zb(e,r).join("/* rr_split */")}var Tb=1,Pb=new RegExp("[^a-z0-9-_:]"),kr=-2;function _h(){return Tb++}function Rb(e){if(e instanceof HTMLFormElement)return"form";let r=bt(e.tagName);return Pb.test(r)?"div":r}var Tt,Kf,Ab=/^[^ \t\n\r\u000c]+/,Mb=/^[, \t\n\r\u000c]+/;function Ub(e,r){if(r.trim()==="")return r;let n=0;function o(i){let s,a=i.exec(r.substring(n));return a?(s=a[0],n+=s.length,s):""}let t=[];for(;o(Mb),!(n>=r.length);){let i=o(Ab);if(i.slice(-1)===",")i=At(e,i.substring(0,i.length-1)),t.push(i);else{let s="";i=At(e,i);let a=!1;for(;;){let c=r.charAt(n);if(c===""){t.push((i+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,t.push((i+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return t.join(", ")}var Yf=new WeakMap;function At(e,r){return!r||r.trim()===""?r:sa(e,r)}function jb(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function sa(e,r){let n=Yf.get(e);if(n||(n=e.createElement("a"),Yf.set(e,n)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return n.setAttribute("href",r),n.href}function Sh(e,r,n,o){return o&&(n==="src"||n==="href"&&!(r==="use"&&o[0]==="#")||n==="xlink:href"&&o[0]!=="#"||n==="background"&&["table","td","th"].includes(r)?At(e,o):n==="srcset"?Ub(e,o):n==="style"?zn(o,sa(e)):r==="object"&&n==="data"?At(e,o):o)}function $h(e,r,n){return["video","audio"].includes(e)&&r==="autoplay"}function Lb(e,r,n){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){let t=e.classList[o];if(r.test(t))return!0}if(n)return e.matches(n)}catch{}return!1}function Dn(e,r,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?Dn(ge.parentNode(e),r,n):!1;for(let o=e.classList.length;o--;){let t=e.classList[o];if(r.test(t))return!0}return n?Dn(ge.parentNode(e),r,n):!1}function kh(e,r,n,o){let t;if(bh(e)){if(t=e,!ge.childNodes(t).length)return!1}else{if(ge.parentElement(e)===null)return!1;t=ge.parentElement(e)}try{if(typeof r=="string"){if(o){if(t.closest(`.${r}`))return!0}else if(t.classList.contains(r))return!0}else if(Dn(t,r,o))return!0;if(n){if(o){if(t.closest(n))return!0}else if(t.matches(n))return!0}}catch{}return!1}function Fb(e,r,n){let o=e.contentWindow;if(!o)return;let t=!1,i;try{i=o.document.readyState}catch{return}if(i!=="complete"){let a=setTimeout(()=>{t||(r(),t=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),t=!0,r()});return}let s="about:blank";if(o.location.href!==s||e.src===s||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function Zb(e,r,n){let o=!1,t;try{t=e.sheet}catch{return}if(t)return;let i=setTimeout(()=>{o||(r(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),o=!0,r()})}function Bb(e,r){let{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:s,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:u,maskInputFn:l,dataURLOptions:p={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=r,x=Vb(n,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return qb(e,{doc:n,blockClass:t,blockSelector:i,inlineStylesheet:a,maskInputOptions:c,maskInputFn:l,dataURLOptions:p,inlineImages:f,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h,rootId:x});case e.TEXT_NODE:return Wb(e,{doc:n,needsMask:s,maskTextFn:u,rootId:x,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:pe.Comment,textContent:ge.textContent(e)||"",rootId:x};default:return!1}}function Vb(e,r){if(!r.hasNode(e))return;let n=r.getId(e);return n===1?void 0:n}function Wb(e,r){let{needsMask:n,maskTextFn:o,rootId:t,cssCaptured:i}=r,s=ge.parentNode(e),a=s&&s.tagName,c="",u=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?c="SCRIPT_PLACEHOLDER":i||(c=ge.textContent(e),u&&c&&(c=zn(c,sa(r.doc)))),!u&&!l&&c&&n&&(c=o?o(c,ge.parentElement(e)):c.replace(/[\S]/g,"*")),{type:pe.Text,textContent:c||"",rootId:t}}function qb(e,r){let{doc:n,blockClass:o,blockSelector:t,inlineStylesheet:i,maskInputOptions:s={},maskInputFn:a,dataURLOptions:c={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:d}=r,m=Lb(e,o,t),h=Rb(e),g={},x=e.attributes.length;for(let y=0;y<x;y++){let _=e.attributes[y];$h(h,_.name,_.value)||(g[_.name]=Sh(n,h,bt(_.name),_.value))}if(h==="link"&&i){let y=Array.from(n.styleSheets).find(v=>v.href===e.href),_=null;y&&(_=qs(y)),_&&(delete g.rel,delete g.href,g._cssText=_)}if(h==="style"&&e.sheet){let y=qs(e.sheet);y&&(e.childNodes.length>1&&(y=Db(y,e)),g._cssText=y)}if(["input","textarea","select"].includes(h)){let y=e.value,_=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&y?g.value=On({element:e,type:Nn(e),tagName:h,value:y,maskInputOptions:s,maskInputFn:a}):_&&(g.checked=_)}if(h==="option"&&(e.selected&&!s.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&l){if(e.__context==="2d")kb(e)||(g.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){let y=e.toDataURL(c.type,c.quality),_=n.createElement("canvas");_.width=e.width,_.height=e.height;let v=_.toDataURL(c.type,c.quality);y!==v&&(g.rr_dataURL=y)}}if(h==="img"&&u){Tt||(Tt=n.createElement("canvas"),Kf=Tt.getContext("2d"));let y=e,_=y.currentSrc||y.getAttribute("src")||"<unknown-src>",v=y.crossOrigin,w=()=>{y.removeEventListener("load",w);try{Tt.width=y.naturalWidth,Tt.height=y.naturalHeight,Kf.drawImage(y,0,0),g.rr_dataURL=Tt.toDataURL(c.type,c.quality)}catch(S){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${_}! Error: ${S}`)}y.crossOrigin==="anonymous"&&(v?g.crossOrigin=v:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w)}if(["audio","video"].includes(h)){let y=g;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:y,height:_}=e.getBoundingClientRect();g={class:g.class,rr_width:`${y}px`,rr_height:`${_}px`}}h==="iframe"&&!p(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:pe.Element,tagName:h,attributes:g,childNodes:[],isSVG:jb(e)||void 0,needBlock:m,rootId:d,isCustom:b}}function ie(e){return e==null?"":e.toLowerCase()}function Ih(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function Gb(e,r){if(r.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&xh(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ie(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ie(e.attributes.name)==="application-name"||ie(e.attributes.rel)==="icon"||ie(e.attributes.rel)==="apple-touch-icon"||ie(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&ie(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(ie(e.attributes.property).match(/^(og|twitter|fb):/)||ie(e.attributes.name).match(/^(og|twitter):/)||ie(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(ie(e.attributes.name)==="robots"||ie(e.attributes.name)==="googlebot"||ie(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(ie(e.attributes.name)==="author"||ie(e.attributes.name)==="generator"||ie(e.attributes.name)==="framework"||ie(e.attributes.name)==="publisher"||ie(e.attributes.name)==="progid"||ie(e.attributes.property).match(/^article:/)||ie(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(ie(e.attributes.name)==="google-site-verification"||ie(e.attributes.name)==="yandex-verification"||ie(e.attributes.name)==="csrf-token"||ie(e.attributes.name)==="p:domain_verify"||ie(e.attributes.name)==="verify-v1"||ie(e.attributes.name)==="verification"||ie(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Mt(e,r){let{doc:n,mirror:o,blockClass:t,blockSelector:i,maskTextClass:s,maskTextSelector:a,skipChild:c=!1,inlineStylesheet:u=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y=5e3,onStylesheetLoad:_,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:S=!1,cssCaptured:C=!1}=r,{needsMask:R}=r,{preserveWhiteSpace:O=!0}=r;R||(R=kh(e,s,a,R===void 0));let B=Bb(e,{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:R,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:S,cssCaptured:C});if(!B)return console.warn(e,"not serialized"),null;let j;o.hasNode(e)?j=o.getId(e):Gb(B,d)||!O&&B.type===pe.Text&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?j=kr:j=_h();let E=Object.assign(B,{id:j});if(o.add(e,E),j===kr)return null;x&&x(e);let Ae=!c;if(E.type===pe.Element){Ae=Ae&&!E.needBlock,delete E.needBlock;let K=ge.shadowRoot(e);K&&Sr(K)&&(E.isShadowHost=!0)}if((E.type===pe.Document||E.type===pe.Element)&&Ae){d.headWhitespace&&E.type===pe.Element&&E.tagName==="head"&&(O=!1);let K={doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:R,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w,cssCaptured:!1};if(!(E.type===pe.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===pe.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(K.cssCaptured=!0);for(let ue of Array.from(ge.childNodes(e))){let me=Mt(ue,K);me&&E.childNodes.push(me)}}let H=null;if(bh(e)&&(H=ge.shadowRoot(e)))for(let ue of Array.from(ge.childNodes(H))){let me=Mt(ue,K);me&&(Sr(H)&&(me.isShadow=!0),E.childNodes.push(me))}}let Oe=ge.parentNode(e);return Oe&&_r(Oe)&&Sr(Oe)&&(E.isShadow=!0),E.type===pe.Element&&E.tagName==="iframe"&&Fb(e,()=>{let K=e.contentDocument;if(K&&b){let H=Mt(K,{doc:K,mirror:o,blockClass:t,blockSelector:i,needsMask:R,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w});H&&b(e,H)}},y),E.type===pe.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&xh(E.attributes.href)==="css")&&Zb(e,()=>{if(_){let K=Mt(e,{doc:n,mirror:o,blockClass:t,blockSelector:i,needsMask:R,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:d,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:b,iframeLoadTimeout:y,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:w});K&&_(e,K)}},v),E}function Jb(e,r){let{mirror:n=new Cn,blockClass:o="rr-block",blockSelector:t=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:l=!1,maskTextFn:p,maskInputFn:f,slimDOM:d=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:_,keepIframeSrcFn:v=()=>!1}=r,w=l===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:l===!1?{password:!0}:l,S=Ih(d);return Mt(e,{doc:e,mirror:n,blockClass:o,blockSelector:t,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:w,maskTextFn:p,maskInputFn:f,slimDOMOptions:S,dataURLOptions:m,inlineImages:c,recordCanvas:u,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:b,onStylesheetLoad:y,stylesheetLoadTimeout:_,keepIframeSrcFn:v,newlyAddedElement:!1})}var Hb=/(max|min)-device-(width|height)/,WI=new RegExp(Hb.source,"g");function Xb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kb(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var bn={exports:{}},Qf;function Yb(){if(Qf)return bn.exports;Qf=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return bn.exports=r(),bn.exports.createColors=r,bn.exports}var Qb={},ew=Object.freeze(Object.defineProperty({__proto__:null,default:Qb},Symbol.toStringTag,{value:"Module"})),je=Kb(ew),Zo,ep;function aa(){if(ep)return Zo;ep=1;let e=Yb(),r=je;class n extends Error{constructor(t,i,s,a,c,u){super(t),this.name="CssSyntaxError",this.reason=t,c&&(this.file=c),a&&(this.source=a),u&&(this.plugin=u),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length,l,p;if(t){let{bold:f,gray:d,red:m}=e.createColors(!0);l=h=>f(m(h)),p=h=>d(h)}else l=p=f=>f;return s.slice(a,c).map((f,d)=>{let m=a+1+d,h=" "+(" "+m).slice(-u)+" | ";if(m===this.line){let g=p(h.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+p(h)+f+`
2
+ `+g+l("^")}return" "+p(h)+f}).join(`
3
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
4
+
5
+ `+t+`
6
+ `),this.name+": "+this.message+t}}return Zo=n,n.default=n,Zo}var wn={},tp;function la(){return tp||(tp=1,wn.isClean=Symbol("isClean"),wn.my=Symbol("my")),wn}var Bo,rp;function Eh(){if(rp)return Bo;rp=1;let e={after:`
7
+ `,beforeClose:`
8
+ `,beforeComment:`
9
+ `,beforeDecl:`
10
+ `,beforeOpen:" ",beforeRule:`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(o){return o[0].toUpperCase()+o.slice(1)}class n{constructor(t){this.builder=t}atrule(t,i){let s="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:a&&(s+=" "),t.nodes)this.block(t,s+a);else{let c=(t.raws.between||"")+(i?";":"");this.builder(s+a+c,t)}}beforeAfter(t,i){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):i==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let a=t.parent,c=0;for(;a&&a.type!=="root";)c+=1,a=a.parent;if(s.includes(`
12
+ `)){let u=this.raw(t,null,"indent");if(u.length)for(let l=0;l<c;l++)s+=u}return s}block(t,i){let s=this.raw(t,"between","beforeOpen");this.builder(i+s+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let s=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let c=t.nodes[a],u=this.raw(c,"before");u&&this.builder(u),this.stringify(c,i!==a||s)}}comment(t){let i=this.raw(t,"left","commentLeft"),s=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+s+"*/",t)}decl(t,i){let s=this.raw(t,"between","colon"),a=t.prop+s+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),i&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,i,s){let a;if(s||(s=i),i&&(a=t.raws[i],typeof a<"u"))return a;let c=t.parent;if(s==="before"&&(!c||c.type==="root"&&c.first===t||c&&c.type==="document"))return"";if(!c)return e[s];let u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]<"u")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let l="raw"+r(s);this[l]?a=this[l](u,t):u.walk(p=>{if(a=p.raws[i],typeof a<"u")return!1})}return typeof a>"u"&&(a=e[s]),u.rawCache[s]=a,a}rawBeforeClose(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
13
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawBeforeComment(t,i){let s;return t.walkComments(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
14
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,i){let s;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
15
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let i;return t.walk(s=>{if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(t){let i;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
16
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let c=s.raws.before.split(`
17
+ `);return i=c[c.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return Bo=n,n.default=n,Bo}var Vo,np;function An(){if(np)return Vo;np=1;let e=Eh();function r(n,o){new e(o).stringify(n)}return Vo=r,r.default=r,Vo}var Wo,ip;function Mn(){if(ip)return Wo;ip=1;let{isClean:e,my:r}=la(),n=aa(),o=Eh(),t=An();function i(a,c){let u=new a.constructor;for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||l==="proxyCache")continue;let p=a[l],f=typeof p;l==="parent"&&f==="object"?c&&(u[l]=c):l==="source"?u[l]=p:Array.isArray(p)?u[l]=p.map(d=>i(d,u)):(f==="object"&&p!==null&&(p=i(p)),u[l]=p)}return u}class s{constructor(c={}){this.raws={},this[e]=!1,this[r]=!0;for(let u in c)if(u==="nodes"){this.nodes=[];for(let l of c[u])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[u]=c[u]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let u=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let u in c)this[u]=c[u];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let u=i(this);for(let l in c)u[l]=c[l];return u}cloneAfter(c={}){let u=this.clone(c);return this.parent.insertAfter(this,u),u}cloneBefore(c={}){let u=this.clone(c);return this.parent.insertBefore(this,u),u}error(c,u={}){if(this.source){let{end:l,start:p}=this.rangeBy(u);return this.source.input.error(c,{column:p.column,line:p.line},{column:l.column,line:l.line},u)}return new n(c)}getProxyProcessor(){return{get(c,u){return u==="proxyOf"?c:u==="root"?()=>c.root().toProxy():c[u]},set(c,u,l){return c[u]===l||(c[u]=l,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&c.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let c=this;for(;c=c.parent;)c[e]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c,u){let l=this.source.start;if(c.index)l=this.positionInside(c.index,u);else if(c.word){u=this.toString();let p=u.indexOf(c.word);p!==-1&&(l=this.positionInside(p,u))}return l}positionInside(c,u){let l=u||this.toString(),p=this.source.start.column,f=this.source.start.line;for(let d=0;d<c;d++)l[d]===`
18
+ `?(p=1,f+=1):p+=1;return{column:p,line:f}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c){let u={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(c.word){let p=this.toString(),f=p.indexOf(c.word);f!==-1&&(u=this.positionInside(f,p),l=this.positionInside(f+c.word.length,p))}else c.start?u={column:c.start.column,line:c.start.line}:c.index&&(u=this.positionInside(c.index)),c.end?l={column:c.end.column,line:c.end.line}:typeof c.endIndex=="number"?l=this.positionInside(c.endIndex):c.index&&(l=this.positionInside(c.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line}),{end:l,start:u}}raw(c,u){return new o().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,l=!1;for(let p of c)p===this?l=!0:l?(this.parent.insertAfter(u,p),u=p):this.parent.insertBefore(u,p);l||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let l={},p=u==null;u=u||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,u):h);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,u);else if(d==="source"){let h=u.get(m.input);h==null&&(h=f,u.set(m.input,f),f++),l[d]={end:m.end,inputId:h,start:m.start}}else l[d]=m}return p&&(l.inputs=[...u.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=t){c.stringify&&(c=c.stringify);let u="";return c(this,l=>{u+=l}),u}warn(c,u,l){let p={node:this};for(let f in l)p[f]=l[f];return c.warn(u,p)}get proxyOf(){return this}}return Wo=s,s.default=s,Wo}var qo,op;function Un(){if(op)return qo;op=1;let e=Mn();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return qo=r,r.default=r,qo}var Go,sp;function tw(){if(sp)return Go;sp=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Go={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},Go}var Jo,ap;function Ch(){if(ap)return Jo;ap=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=je,{existsSync:n,readFileSync:o}=je,{dirname:t,join:i}=je;function s(c){return Buffer?Buffer.from(c,"base64").toString():window.atob(c)}class a{constructor(u,l){if(l.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let p=l.map?l.map.prev:void 0,f=this.loadMap(l.from,p);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=t(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let l=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(u)||d.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(l.test(u)||p.test(u))return s(u.substr(RegExp.lastMatch.length));let m=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let l=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let p=u.lastIndexOf(l.pop()),f=u.indexOf("*/",p);p>-1&&f>-1&&(this.annotation=this.getAnnotationURL(u.substring(p,f)))}loadFile(u){if(this.root=t(u),n(u))return this.mapFile=u,o(u,"utf-8").toString().trim()}loadMap(u,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let p=l(u);if(p){let f=this.loadFile(p);if(!f)throw new Error("Unable to load previous source map: "+p.toString());return f}}else{if(l instanceof e)return r.fromSourceMap(l).toString();if(l instanceof r)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return u&&(p=i(t(u),p)),this.loadFile(p)}}}startWith(u,l){return u?u.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Jo=a,a.default=a,Jo}var Ho,lp;function jn(){if(lp)return Ho;lp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=je,{fileURLToPath:n,pathToFileURL:o}=je,{isAbsolute:t,resolve:i}=je,{nanoid:s}=tw(),a=je,c=aa(),u=Ch(),l=Symbol("fromOffsetCache"),p=!!(e&&r),f=!!(i&&t);class d{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=i(g.from)),f&&p){let x=new u(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,x,b={}){let y,_,v;if(g&&typeof g=="object"){let S=g,C=x;if(typeof S.offset=="number"){let R=this.fromOffset(S.offset);g=R.line,x=R.col}else g=S.line,x=S.column;if(typeof C.offset=="number"){let R=this.fromOffset(C.offset);_=R.line,v=R.col}else _=C.line,v=C.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,_,v);return w?y=new c(h,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new c(h,_===void 0?g:{column:x,line:g},_===void 0?x:{column:v,line:_},this.css,this.file,b.plugin),y.input={column:x,endColumn:v,endLine:_,line:g,source:this.css},this.file&&(o&&(y.input.url=o(this.file).toString()),y.input.file=this.file),y}fromOffset(h){let g,x;if(this[l])x=this[l];else{let y=this.css.split(`
19
+ `);x=new Array(y.length);let _=0;for(let v=0,w=y.length;v<w;v++)x[v]=_,_+=y[v].length+1;this[l]=x}g=x[x.length-1];let b=0;if(h>=g)b=x.length-1;else{let y=x.length-2,_;for(;b<y;)if(_=b+(y-b>>1),h<x[_])y=_-1;else if(h>=x[_+1])b=_+1;else{b=_;break}}return{col:h-x[b]+1,line:b+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:i(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,x,b){if(!this.map)return!1;let y=this.map.consumer(),_=y.originalPositionFor({column:g,line:h});if(!_.source)return!1;let v;typeof x=="number"&&(v=y.originalPositionFor({column:b,line:x}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let S={column:_.column,endColumn:v&&v.column,endLine:v&&v.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)S.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=y.sourceContentFor(_.source);return C&&(S.source=C),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Ho=d,d.default=d,a&&a.registerInput&&a.registerInput(d),Ho}var Xo,cp;function Oh(){if(cp)return Xo;cp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=je,{dirname:n,relative:o,resolve:t,sep:i}=je,{pathToFileURL:s}=je,a=jn(),c=!!(e&&r),u=!!(n&&t&&o&&i);class l{constructor(f,d,m,h){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
20
+ `;this.css.includes(`\r
21
+ `)&&(d=`\r
22
+ `),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||n(f.file),h;this.mapOpts.sourcesContent===!1?(h=new e(f.text),h.sourcesContent&&(h.sourcesContent=null)):h=f.consumer(),this.map.applySourceMap(h,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&c&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=r.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,y,_)=>{if(this.css+=b,y&&_!=="end"&&(h.generated.line=f,h.generated.column=d-1,y.source&&y.source.start?(h.source=this.sourcePath(y),h.original.line=y.source.start.line,h.original.column=y.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=b.match(/\n/g),g?(f+=g.length,x=b.lastIndexOf(`
23
+ `),d=b.length-x):d+=b.length,y&&_!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(h.source=this.sourcePath(y),h.original.line=y.source.end.line,h.original.column=y.source.end.column-1,h.generated.line=f,h.generated.column=d-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=f,h.generated.column=d-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=n(t(m,this.mapOpts.annotation)));let h=o(m,f);return this.memoizedPaths.set(f,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let m=s(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;i==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Xo=l,Xo}var Ko,up;function Ln(){if(up)return Ko;up=1;let e=Mn();class r extends e{constructor(o){super(o),this.type="comment"}}return Ko=r,r.default=r,Ko}var Yo,dp;function wt(){if(dp)return Yo;dp=1;let{isClean:e,my:r}=la(),n=Un(),o=Ln(),t=Mn(),i,s,a,c;function u(f){return f.map(d=>(d.nodes&&(d.nodes=u(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class p extends t{append(...d){for(let m of d){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=d(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>d[m](...h.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):m==="every"||m==="some"?h=>d[m]((g,...x)=>h(g.toProxy(),...x)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,h){return d[m]===h||(d[m]=h,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let h=this.index(d),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(d);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],h<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(d,m){let h=this.index(d),g=h===0?"prepend":!1,x=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(d);for(let y of x)this.proxyOf.nodes.splice(h,0,y);let b;for(let y in this.indexes)b=this.indexes[y],h<=b&&(this.indexes[y]=b+x.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=u(i(d).nodes);else if(typeof d>"u")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new n(d)]}else if(d.selector)d=[new s(d)];else if(d.name)d=[new a(d)];else if(d.text)d=[new o(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[r]||p.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=d&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(d,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,h))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,h)=>{let g;try{g=d(m,h)}catch(x){throw m.addToError(x)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&d.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(d){return this.walk((m,h)=>{if(m.type==="comment")return d(m,h)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&d.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&d.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=f=>{i=f},p.registerRule=f=>{s=f},p.registerAtRule=f=>{a=f},p.registerRoot=f=>{c=f},Yo=p,p.default=p,p.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,s.prototype):f.type==="decl"?Object.setPrototypeOf(f,n.prototype):f.type==="comment"?Object.setPrototypeOf(f,o.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[r]=!0,f.nodes&&f.nodes.forEach(d=>{p.rebuild(d)})},Yo}var Qo,fp;function ca(){if(fp)return Qo;fp=1;let e=wt(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Qo=o,o.default=o,Qo}var es,pp;function Nh(){if(pp)return es;pp=1;let e={};return es=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},es}var ts,hp;function zh(){if(hp)return ts;hp=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ts=e,e.default=e,ts}var rs,mp;function ua(){if(mp)return rs;mp=1;let e=zh();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return rs=r,r.default=r,rs}var ns,gp;function rw(){if(gp)return ns;gp=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,c=13,u=91,l=93,p=40,f=41,d=123,m=125,h=59,g=42,x=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return ns=function(C,R={}){let O=C.css.valueOf(),B=R.ignoreErrors,j,E,Ae,Oe,K,H,ue,me,de,Y,nt=O.length,T=0,Be=[],Te=[];function wr(){return T}function ye(F){throw C.error("Unclosed "+F,T)}function Me(){return Te.length===0&&T>=nt}function vt(F){if(Te.length)return Te.pop();if(T>=nt)return;let fe=F?F.ignoreUnclosed:!1;switch(j=O.charCodeAt(T),j){case t:case i:case a:case c:case s:{E=T;do E+=1,j=O.charCodeAt(E);while(j===i||j===t||j===a||j===c||j===s);Y=["space",O.slice(T,E)],T=E-1;break}case u:case l:case d:case m:case x:case h:case f:{let Q=String.fromCharCode(j);Y=[Q,Q,T];break}case p:{if(me=Be.length?Be.pop()[1]:"",de=O.charCodeAt(T+1),me==="url"&&de!==e&&de!==r&&de!==i&&de!==t&&de!==a&&de!==s&&de!==c){E=T;do{if(H=!1,E=O.indexOf(")",E+1),E===-1)if(B||fe){E=T;break}else ye("bracket");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["brackets",O.slice(T,E+1),T,E],T=E}else E=O.indexOf(")",T+1),Oe=O.slice(T,E+1),E===-1||v.test(Oe)?Y=["(","(",T]:(Y=["brackets",Oe,T,E],T=E);break}case e:case r:{Ae=j===e?"'":'"',E=T;do{if(H=!1,E=O.indexOf(Ae,E+1),E===-1)if(B||fe){E=T+1;break}else ye("string");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["string",O.slice(T,E+1),T,E],T=E;break}case b:{y.lastIndex=T+1,y.test(O),y.lastIndex===0?E=O.length-1:E=y.lastIndex-2,Y=["at-word",O.slice(T,E+1),T,E],T=E;break}case n:{for(E=T,K=!0;O.charCodeAt(E+1)===n;)E+=1,K=!K;if(j=O.charCodeAt(E+1),K&&j!==o&&j!==i&&j!==t&&j!==a&&j!==c&&j!==s&&(E+=1,w.test(O.charAt(E)))){for(;w.test(O.charAt(E+1));)E+=1;O.charCodeAt(E+1)===i&&(E+=1)}Y=["word",O.slice(T,E+1),T,E],T=E;break}default:{j===o&&O.charCodeAt(T+1)===g?(E=O.indexOf("*/",T+2)+1,E===0&&(B||fe?E=O.length:ye("comment")),Y=["comment",O.slice(T,E+1),T,E],T=E):(_.lastIndex=T+1,_.test(O),_.lastIndex===0?E=O.length-1:E=_.lastIndex-2,Y=["word",O.slice(T,E+1),T,E],Be.push(Y),T=E);break}}return T++,Y}function it(F){Te.push(F)}return{back:it,endOfFile:Me,nextToken:vt,position:wr}},ns}var is,vp;function da(){if(vp)return is;vp=1;let e=wt();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return is=r,r.default=r,e.registerAtRule(r),is}var os,yp;function Cr(){if(yp)return os;yp=1;let e=wt(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let c=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of c)u.raws.before=s.raws.before}return c}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},os=o,o.default=o,e.registerRoot(o),os}var ss,bp;function Dh(){if(bp)return ss;bp=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
24
+ `," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,c=!1,u="",l=!1;for(let p of r)l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?a+=1:p===")"?a>0&&(a-=1):a===0&&n.includes(p)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=p;return(o||i!=="")&&t.push(i.trim()),t}};return ss=e,e.default=e,ss}var as,wp;function fa(){if(wp)return as;wp=1;let e=wt(),r=Dh();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return as=n,n.default=n,e.registerRule(n),as}var ls,xp;function nw(){if(xp)return ls;xp=1;let e=Un(),r=rw(),n=Ln(),o=da(),t=Cr(),i=fa(),s={empty:!0,space:!0};function a(u){for(let l=u.length-1;l>=0;l--){let p=u[l],f=p[3]||p[2];if(f)return f}}class c{constructor(l){this.input=l,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let p=new o;p.name=l[1].slice(1),p.name===""&&this.unnamedAtrule(p,l),this.init(p,l[2]);let f,d,m,h=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){p.source.end=this.getPosition(l[2]),p.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(x.length>0){for(m=x.length-1,d=x[m];d&&d[0]==="space";)d=x[--m];d&&(p.source.end=this.getPosition(d[3]||d[2]),p.source.end.offset++)}this.end(l);break}else x.push(l);else x.push(l);if(this.tokenizer.endOfFile()){h=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(p.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(p,"params",x),h&&(l=x[x.length-1],p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),g&&(p.nodes=[],this.current=p)}checkMissedSemicolon(l){let p=this.colon(l);if(p===!1)return;let f=0,d;for(let m=p-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let p=0,f,d,m;for(let[h,g]of l.entries()){if(f=g,d=f[0],d==="("&&(p+=1),d===")"&&(p-=1),p===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=f}return!1}comment(l){let p=new n;this.init(p,l[2]),p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))p.text="",p.raws.left=f,p.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);p.text=d[2],p.raws.left=d[1],p.raws.right=d[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(l,p){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let h=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)h.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let y=this.stringFrom(l,b);y=this.spacesFromEnd(l)+y,y!==" !important"&&(f.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=l.slice(0),_="";for(let v=b;v>0;v--){let w=y[v][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=y.pop()[1]+_}_.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=_,l=y)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(f,"value",h.concat(l),p),f.value.includes(":")&&!p&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let p=new i;this.init(p,l[2]),p.selector="",p.raws.between="",this.current=p}end(l){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let p=this.input.fromOffset(l);return{column:p.col,line:p.line,offset:l}}init(l,p){this.current.push(l),l.source={input:this.input,start:this.getPosition(p)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let p=!1,f=null,d=!1,m=null,h=[],g=l[1].startsWith("--"),x=[],b=l;for(;b;){if(f=b[0],x.push(b),f==="("||f==="[")m||(m=b),h.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=b),h.push("}");else if(h.length===0)if(f===";")if(d){this.decl(x,g);return}else break;else if(f==="{"){this.rule(x);return}else if(f==="}"){this.tokenizer.back(x.pop()),p=!0;break}else f===":"&&(d=!0);else f===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),h.length>0&&this.unclosedBracket(m),p&&d){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,p,f,d){let m,h,g=f.length,x="",b=!0,y,_;for(let v=0;v<g;v+=1)m=f[v],h=m[0],h==="space"&&v===g-1&&!d?b=!1:h==="comment"?(_=f[v-1]?f[v-1][0]:"empty",y=f[v+1]?f[v+1][0]:"empty",!s[_]&&!s[y]?x.slice(-1)===","?b=!1:x+=m[1]:b=!1):x+=m[1];if(!b){let v=f.reduce((w,S)=>w+S[1],"");l.raws[p]={raw:v,value:x}}l[p]=x}rule(l){l.pop();let p=new i;this.init(p,l[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(p,"selector",l),this.current=p}spacesAndCommentsFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],!(p!=="space"&&p!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let p,f="";for(;l.length&&(p=l[0][0],!(p!=="space"&&p!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],p==="space");)f=l.pop()[1]+f;return f}stringFrom(l,p){let f="";for(let d=p;d<l.length;d++)f+=l[d][1];return l.splice(p,l.length-p),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return ls=c,ls}var cs,_p;function pa(){if(_p)return cs;_p=1;let e=wt(),r=nw(),n=jn();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(c){throw c}return a.root}return cs=o,o.default=o,e.registerParse(o),cs}var us,Sp;function Th(){if(Sp)return us;Sp=1;let{isClean:e,my:r}=la(),n=Oh(),o=An(),t=wt(),i=ca(),s=Nh(),a=ua(),c=pa(),u=Cr(),l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(_){return typeof _=="object"&&typeof _.then=="function"}function h(_){let v=!1,w=l[_.type];return _.type==="decl"?v=_.prop.toLowerCase():_.type==="atrule"&&(v=_.name.toLowerCase()),v&&_.append?[w,w+"-"+v,d,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:_.append?[w,d,w+"Exit"]:[w,w+"Exit"]}function g(_){let v;return _.type==="document"?v=["Document",d,"DocumentExit"]:_.type==="root"?v=["Root",d,"RootExit"]:v=h(_),{eventIndex:0,events:v,iterator:0,node:_,visitorIndex:0,visitors:[]}}function x(_){return _[e]=!1,_.nodes&&_.nodes.forEach(v=>x(v)),_}let b={};class y{constructor(v,w,S){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=x(w);else if(w instanceof y||w instanceof a)C=x(w.root),w.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let R=c;S.syntax&&(R=S.syntax.parse),S.parser&&(R=S.parser),R.parse&&(R=R.parse);try{C=R(w,S)}catch(O){this.processed=!0,this.error=O}C&&!C[r]&&t.rebuild(C)}this.result=new a(v,C,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(R=>typeof R=="object"&&R.prepare?{...R,...R.prepare(this.result)}:R)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let S=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!p[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof w[S]=="object")for(let C in w[S])C==="*"?v(w,S,w[S][C]):v(w,S+"-"+C.toLowerCase(),w[S][C]);else typeof w[S]=="function"&&v(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],S=this.runOnRoot(w);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let S=this.visitTick(w);if(m(S))try{await S}catch(C){let R=w[w.length-1].node;throw this.handleError(C,R)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(R=>S(R,this.helpers));await Promise.all(C)}else await S(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=o;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new n(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[S,C]of v){this.result.lastPlugin=S;let R;try{R=C(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(R))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:S,visitors:C}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[O,B]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return B(S.toProxy(),this.helpers)}catch(j){throw this.handleError(j,S)}}if(w.iterator!==0){let O=w.iterator,B;for(;B=S.nodes[S.indexes[O]];)if(S.indexes[O]+=1,!B[e]){B[e]=!0,v.push(g(B));return}w.iterator=0,delete S.indexes[O]}let R=w.events;for(;w.eventIndex<R.length;){let O=R[w.eventIndex];if(w.eventIndex+=1,O===d){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}v.pop()}walkSync(v){v[e]=!0;let w=h(v);for(let S of w)if(S===d)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return y.registerPostcss=_=>{b=_},us=y,y.default=y,u.registerLazyResult(y),i.registerLazyResult(y),us}var ds,$p;function iw(){if($p)return ds;$p=1;let e=Oh(),r=An(),n=Nh(),o=pa(),t=ua();class i{constructor(a,c,u){c=c.toString(),this.stringified=!1,this._processor=a,this._css=c,this._opts=u,this._map=void 0;let l,p=r;this.result=new t(this._processor,l,this._opts),this.result.css=c;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(p,l,this._opts,c);if(d.isMap()){let[m,h]=d.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,c){return this.async().then(a,c)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,c=o;try{a=c(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return ds=i,i.default=i,ds}var fs,kp;function ow(){if(kp)return fs;kp=1;let e=iw(),r=Th(),n=ca(),o=Cr();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))a=a.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)a.push(c);else if(typeof c=="function")a.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return fs=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),fs}var ps,Ip;function sw(){if(Ip)return ps;Ip=1;let e=Un(),r=Ch(),n=Ln(),o=da(),t=jn(),i=Cr(),s=fa();function a(c,u){if(Array.isArray(c))return c.map(f=>a(f));let{inputs:l,...p}=c;if(l){u=[];for(let f of l){let d={...f,__proto__:t.prototype};d.map&&(d.map={...d.map,__proto__:r.prototype}),u.push(d)}}if(p.nodes&&(p.nodes=c.nodes.map(f=>a(f,u))),p.source){let{inputId:f,...d}=p.source;p.source=d,f!=null&&(p.source.input=u[f])}if(p.type==="root")return new i(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new n(p);if(p.type==="atrule")return new o(p);throw new Error("Unknown node type: "+c.type)}return ps=a,a.default=a,ps}var hs,Ep;function aw(){if(Ep)return hs;Ep=1;let e=aa(),r=Un(),n=Th(),o=wt(),t=ow(),i=An(),s=sw(),a=ca(),c=zh(),u=Ln(),l=da(),p=ua(),f=jn(),d=pa(),m=Dh(),h=fa(),g=Cr(),x=Mn();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new t(y)}return b.plugin=function(_,v){let w=!1;function S(...R){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
25
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(_+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
26
+ https://www.w3ctech.com/topic/2226`));let O=v(...R);return O.postcssPlugin=_,O.postcssVersion=new t().version,O}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(R,O,B){return b([S(B)]).process(R,O)},S},b.stringify=i,b.parse=d,b.fromJSON=s,b.list=m,b.comment=y=>new u(y),b.atRule=y=>new l(y),b.decl=y=>new r(y),b.rule=y=>new h(y),b.root=y=>new g(y),b.document=y=>new a(y),b.CssSyntaxError=e,b.Declaration=r,b.Container=o,b.Processor=t,b.Document=a,b.Comment=u,b.Warning=c,b.AtRule=l,b.Result=p,b.Input=f,b.Rule=h,b.Root=g,b.Node=x,n.registerPostcss(b),hs=b,b.default=b,hs}var lw=aw(),oe=Xb(lw);oe.stringify;oe.fromJSON;oe.plugin;oe.parse;oe.list;oe.document;oe.comment;oe.atRule;oe.rule;oe.decl;oe.root;oe.CssSyntaxError;oe.Declaration;oe.Container;oe.Processor;oe.Document;oe.Comment;oe.Warning;oe.AtRule;oe.Result;oe.Input;oe.Rule;oe.Root;oe.Node;var cw=Object.defineProperty,uw=(e,r,n)=>r in e?cw(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Pe=(e,r,n)=>uw(e,typeof r!="symbol"?r+"":r,n);Date.now().toString();function dw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fw(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var xn={exports:{}},Cp;function pw(){if(Cp)return xn.exports;Cp=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return xn.exports=r(),xn.exports.createColors=r,xn.exports}var hw={},mw=Object.freeze(Object.defineProperty({__proto__:null,default:hw},Symbol.toStringTag,{value:"Module"})),Le=fw(mw),ms,Op;function ha(){if(Op)return ms;Op=1;let e=pw(),r=Le;class n extends Error{constructor(t,i,s,a,c,u){super(t),this.name="CssSyntaxError",this.reason=t,c&&(this.file=c),a&&(this.source=a),u&&(this.plugin=u),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length,l,p;if(t){let{bold:f,gray:d,red:m}=e.createColors(!0);l=h=>f(m(h)),p=h=>d(h)}else l=p=f=>f;return s.slice(a,c).map((f,d)=>{let m=a+1+d,h=" "+(" "+m).slice(-u)+" | ";if(m===this.line){let g=p(h.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+p(h)+f+`
27
+ `+g+l("^")}return" "+p(h)+f}).join(`
28
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
29
+
30
+ `+t+`
31
+ `),this.name+": "+this.message+t}}return ms=n,n.default=n,ms}var _n={},Np;function ma(){return Np||(Np=1,_n.isClean=Symbol("isClean"),_n.my=Symbol("my")),_n}var gs,zp;function Ph(){if(zp)return gs;zp=1;let e={after:`
32
+ `,beforeClose:`
33
+ `,beforeComment:`
34
+ `,beforeDecl:`
35
+ `,beforeOpen:" ",beforeRule:`
36
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(o){return o[0].toUpperCase()+o.slice(1)}class n{constructor(t){this.builder=t}atrule(t,i){let s="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:a&&(s+=" "),t.nodes)this.block(t,s+a);else{let c=(t.raws.between||"")+(i?";":"");this.builder(s+a+c,t)}}beforeAfter(t,i){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):i==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let a=t.parent,c=0;for(;a&&a.type!=="root";)c+=1,a=a.parent;if(s.includes(`
37
+ `)){let u=this.raw(t,null,"indent");if(u.length)for(let l=0;l<c;l++)s+=u}return s}block(t,i){let s=this.raw(t,"between","beforeOpen");this.builder(i+s+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let s=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let c=t.nodes[a],u=this.raw(c,"before");u&&this.builder(u),this.stringify(c,i!==a||s)}}comment(t){let i=this.raw(t,"left","commentLeft"),s=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+s+"*/",t)}decl(t,i){let s=this.raw(t,"between","colon"),a=t.prop+s+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),i&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,i,s){let a;if(s||(s=i),i&&(a=t.raws[i],typeof a<"u"))return a;let c=t.parent;if(s==="before"&&(!c||c.type==="root"&&c.first===t||c&&c.type==="document"))return"";if(!c)return e[s];let u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]<"u")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let l="raw"+r(s);this[l]?a=this[l](u,t):u.walk(p=>{if(a=p.raws[i],typeof a<"u")return!1})}return typeof a>"u"&&(a=e[s]),u.rawCache[s]=a,a}rawBeforeClose(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
38
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawBeforeComment(t,i){let s;return t.walkComments(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
39
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,i){let s;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
40
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let i;return t.walk(s=>{if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(t){let i;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
41
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let c=s.raws.before.split(`
42
+ `);return i=c[c.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return gs=n,n.default=n,gs}var vs,Dp;function Fn(){if(Dp)return vs;Dp=1;let e=Ph();function r(n,o){new e(o).stringify(n)}return vs=r,r.default=r,vs}var ys,Tp;function Zn(){if(Tp)return ys;Tp=1;let{isClean:e,my:r}=ma(),n=ha(),o=Ph(),t=Fn();function i(a,c){let u=new a.constructor;for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||l==="proxyCache")continue;let p=a[l],f=typeof p;l==="parent"&&f==="object"?c&&(u[l]=c):l==="source"?u[l]=p:Array.isArray(p)?u[l]=p.map(d=>i(d,u)):(f==="object"&&p!==null&&(p=i(p)),u[l]=p)}return u}class s{constructor(c={}){this.raws={},this[e]=!1,this[r]=!0;for(let u in c)if(u==="nodes"){this.nodes=[];for(let l of c[u])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[u]=c[u]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let u=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let u in c)this[u]=c[u];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let u=i(this);for(let l in c)u[l]=c[l];return u}cloneAfter(c={}){let u=this.clone(c);return this.parent.insertAfter(this,u),u}cloneBefore(c={}){let u=this.clone(c);return this.parent.insertBefore(this,u),u}error(c,u={}){if(this.source){let{end:l,start:p}=this.rangeBy(u);return this.source.input.error(c,{column:p.column,line:p.line},{column:l.column,line:l.line},u)}return new n(c)}getProxyProcessor(){return{get(c,u){return u==="proxyOf"?c:u==="root"?()=>c.root().toProxy():c[u]},set(c,u,l){return c[u]===l||(c[u]=l,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&c.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let c=this;for(;c=c.parent;)c[e]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c,u){let l=this.source.start;if(c.index)l=this.positionInside(c.index,u);else if(c.word){u=this.toString();let p=u.indexOf(c.word);p!==-1&&(l=this.positionInside(p,u))}return l}positionInside(c,u){let l=u||this.toString(),p=this.source.start.column,f=this.source.start.line;for(let d=0;d<c;d++)l[d]===`
43
+ `?(p=1,f+=1):p+=1;return{column:p,line:f}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c){let u={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(c.word){let p=this.toString(),f=p.indexOf(c.word);f!==-1&&(u=this.positionInside(f,p),l=this.positionInside(f+c.word.length,p))}else c.start?u={column:c.start.column,line:c.start.line}:c.index&&(u=this.positionInside(c.index)),c.end?l={column:c.end.column,line:c.end.line}:typeof c.endIndex=="number"?l=this.positionInside(c.endIndex):c.index&&(l=this.positionInside(c.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line}),{end:l,start:u}}raw(c,u){return new o().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,l=!1;for(let p of c)p===this?l=!0:l?(this.parent.insertAfter(u,p),u=p):this.parent.insertBefore(u,p);l||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let l={},p=u==null;u=u||new Map;let f=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))l[d]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,u):h);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,u);else if(d==="source"){let h=u.get(m.input);h==null&&(h=f,u.set(m.input,f),f++),l[d]={end:m.end,inputId:h,start:m.start}}else l[d]=m}return p&&(l.inputs=[...u.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=t){c.stringify&&(c=c.stringify);let u="";return c(this,l=>{u+=l}),u}warn(c,u,l){let p={node:this};for(let f in l)p[f]=l[f];return c.warn(u,p)}get proxyOf(){return this}}return ys=s,s.default=s,ys}var bs,Pp;function Bn(){if(Pp)return bs;Pp=1;let e=Zn();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return bs=r,r.default=r,bs}var ws,Rp;function gw(){if(Rp)return ws;Rp=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ws={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},ws}var xs,Ap;function Rh(){if(Ap)return xs;Ap=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Le,{existsSync:n,readFileSync:o}=Le,{dirname:t,join:i}=Le;function s(c){return Buffer?Buffer.from(c,"base64").toString():window.atob(c)}class a{constructor(u,l){if(l.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let p=l.map?l.map.prev:void 0,f=this.loadMap(l.from,p);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=t(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let l=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(u)||d.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(l.test(u)||p.test(u))return s(u.substr(RegExp.lastMatch.length));let m=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let l=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let p=u.lastIndexOf(l.pop()),f=u.indexOf("*/",p);p>-1&&f>-1&&(this.annotation=this.getAnnotationURL(u.substring(p,f)))}loadFile(u){if(this.root=t(u),n(u))return this.mapFile=u,o(u,"utf-8").toString().trim()}loadMap(u,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let p=l(u);if(p){let f=this.loadFile(p);if(!f)throw new Error("Unable to load previous source map: "+p.toString());return f}}else{if(l instanceof e)return r.fromSourceMap(l).toString();if(l instanceof r)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return u&&(p=i(t(u),p)),this.loadFile(p)}}}startWith(u,l){return u?u.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return xs=a,a.default=a,xs}var _s,Mp;function Vn(){if(Mp)return _s;Mp=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Le,{fileURLToPath:n,pathToFileURL:o}=Le,{isAbsolute:t,resolve:i}=Le,{nanoid:s}=gw(),a=Le,c=ha(),u=Rh(),l=Symbol("fromOffsetCache"),p=!!(e&&r),f=!!(i&&t);class d{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=i(g.from)),f&&p){let x=new u(this.css,g);if(x.text){this.map=x;let b=x.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,x,b={}){let y,_,v;if(g&&typeof g=="object"){let S=g,C=x;if(typeof S.offset=="number"){let R=this.fromOffset(S.offset);g=R.line,x=R.col}else g=S.line,x=S.column;if(typeof C.offset=="number"){let R=this.fromOffset(C.offset);_=R.line,v=R.col}else _=C.line,v=C.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,_,v);return w?y=new c(h,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new c(h,_===void 0?g:{column:x,line:g},_===void 0?x:{column:v,line:_},this.css,this.file,b.plugin),y.input={column:x,endColumn:v,endLine:_,line:g,source:this.css},this.file&&(o&&(y.input.url=o(this.file).toString()),y.input.file=this.file),y}fromOffset(h){let g,x;if(this[l])x=this[l];else{let y=this.css.split(`
44
+ `);x=new Array(y.length);let _=0;for(let v=0,w=y.length;v<w;v++)x[v]=_,_+=y[v].length+1;this[l]=x}g=x[x.length-1];let b=0;if(h>=g)b=x.length-1;else{let y=x.length-2,_;for(;b<y;)if(_=b+(y-b>>1),h<x[_])y=_-1;else if(h>=x[_+1])b=_+1;else{b=_;break}}return{col:h-x[b]+1,line:b+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:i(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,x,b){if(!this.map)return!1;let y=this.map.consumer(),_=y.originalPositionFor({column:g,line:h});if(!_.source)return!1;let v;typeof x=="number"&&(v=y.originalPositionFor({column:b,line:x}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let S={column:_.column,endColumn:v&&v.column,endLine:v&&v.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)S.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=y.sourceContentFor(_.source);return C&&(S.source=C),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return _s=d,d.default=d,a&&a.registerInput&&a.registerInput(d),_s}var Ss,Up;function Ah(){if(Up)return Ss;Up=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Le,{dirname:n,relative:o,resolve:t,sep:i}=Le,{pathToFileURL:s}=Le,a=Vn(),c=!!(e&&r),u=!!(n&&t&&o&&i);class l{constructor(f,d,m,h){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
45
+ `;this.css.includes(`\r
46
+ `)&&(d=`\r
47
+ `),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||n(f.file),h;this.mapOpts.sourcesContent===!1?(h=new e(f.text),h.sourcesContent&&(h.sourcesContent=null)):h=f.consumer(),this.map.applySourceMap(h,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&c&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=r.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(b,y,_)=>{if(this.css+=b,y&&_!=="end"&&(h.generated.line=f,h.generated.column=d-1,y.source&&y.source.start?(h.source=this.sourcePath(y),h.original.line=y.source.start.line,h.original.column=y.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=b.match(/\n/g),g?(f+=g.length,x=b.lastIndexOf(`
48
+ `),d=b.length-x):d+=b.length,y&&_!=="start"){let v=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==v.last||v.raws.semicolon)&&(y.source&&y.source.end?(h.source=this.sourcePath(y),h.original.line=y.source.end.line,h.original.column=y.source.end.column-1,h.generated.line=f,h.generated.column=d-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=f,h.generated.column=d-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=n(t(m,this.mapOpts.annotation)));let h=o(m,f);return this.memoizedPaths.set(f,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let m=s(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;i==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Ss=l,Ss}var $s,jp;function Wn(){if(jp)return $s;jp=1;let e=Zn();class r extends e{constructor(o){super(o),this.type="comment"}}return $s=r,r.default=r,$s}var ks,Lp;function xt(){if(Lp)return ks;Lp=1;let{isClean:e,my:r}=ma(),n=Bn(),o=Wn(),t=Zn(),i,s,a,c;function u(f){return f.map(d=>(d.nodes&&(d.nodes=u(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class p extends t{append(...d){for(let m of d){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=d(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>d[m](...h.map(g=>typeof g=="function"?(x,b)=>g(x.toProxy(),b):g)):m==="every"||m==="some"?h=>d[m]((g,...x)=>h(g.toProxy(),...x)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,h){return d[m]===h||(d[m]=h,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let h=this.index(d),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(d);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let x;for(let b in this.indexes)x=this.indexes[b],h<x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}insertBefore(d,m){let h=this.index(d),g=h===0?"prepend":!1,x=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(d);for(let y of x)this.proxyOf.nodes.splice(h,0,y);let b;for(let y in this.indexes)b=this.indexes[y],h<=b&&(this.indexes[y]=b+x.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=u(i(d).nodes);else if(typeof d>"u")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new n(d)]}else if(d.selector)d=[new s(d)];else if(d.name)d=[new a(d)];else if(d.text)d=[new o(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[r]||p.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=d&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(d,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,h))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,h)=>{let g;try{g=d(m,h)}catch(x){throw m.addToError(x)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&d.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(d){return this.walk((m,h)=>{if(m.type==="comment")return d(m,h)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&d.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&d.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===d)return m(h,g)}):(m=d,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=f=>{i=f},p.registerRule=f=>{s=f},p.registerAtRule=f=>{a=f},p.registerRoot=f=>{c=f},ks=p,p.default=p,p.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,s.prototype):f.type==="decl"?Object.setPrototypeOf(f,n.prototype):f.type==="comment"?Object.setPrototypeOf(f,o.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[r]=!0,f.nodes&&f.nodes.forEach(d=>{p.rebuild(d)})},ks}var Is,Fp;function ga(){if(Fp)return Is;Fp=1;let e=xt(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Is=o,o.default=o,Is}var Es,Zp;function Mh(){if(Zp)return Es;Zp=1;let e={};return Es=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},Es}var Cs,Bp;function Uh(){if(Bp)return Cs;Bp=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Cs=e,e.default=e,Cs}var Os,Vp;function va(){if(Vp)return Os;Vp=1;let e=Uh();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return Os=r,r.default=r,Os}var Ns,Wp;function vw(){if(Wp)return Ns;Wp=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,c=13,u=91,l=93,p=40,f=41,d=123,m=125,h=59,g=42,x=58,b=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Ns=function(C,R={}){let O=C.css.valueOf(),B=R.ignoreErrors,j,E,Ae,Oe,K,H,ue,me,de,Y,nt=O.length,T=0,Be=[],Te=[];function wr(){return T}function ye(F){throw C.error("Unclosed "+F,T)}function Me(){return Te.length===0&&T>=nt}function vt(F){if(Te.length)return Te.pop();if(T>=nt)return;let fe=F?F.ignoreUnclosed:!1;switch(j=O.charCodeAt(T),j){case t:case i:case a:case c:case s:{E=T;do E+=1,j=O.charCodeAt(E);while(j===i||j===t||j===a||j===c||j===s);Y=["space",O.slice(T,E)],T=E-1;break}case u:case l:case d:case m:case x:case h:case f:{let Q=String.fromCharCode(j);Y=[Q,Q,T];break}case p:{if(me=Be.length?Be.pop()[1]:"",de=O.charCodeAt(T+1),me==="url"&&de!==e&&de!==r&&de!==i&&de!==t&&de!==a&&de!==s&&de!==c){E=T;do{if(H=!1,E=O.indexOf(")",E+1),E===-1)if(B||fe){E=T;break}else ye("bracket");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["brackets",O.slice(T,E+1),T,E],T=E}else E=O.indexOf(")",T+1),Oe=O.slice(T,E+1),E===-1||v.test(Oe)?Y=["(","(",T]:(Y=["brackets",Oe,T,E],T=E);break}case e:case r:{Ae=j===e?"'":'"',E=T;do{if(H=!1,E=O.indexOf(Ae,E+1),E===-1)if(B||fe){E=T+1;break}else ye("string");for(ue=E;O.charCodeAt(ue-1)===n;)ue-=1,H=!H}while(H);Y=["string",O.slice(T,E+1),T,E],T=E;break}case b:{y.lastIndex=T+1,y.test(O),y.lastIndex===0?E=O.length-1:E=y.lastIndex-2,Y=["at-word",O.slice(T,E+1),T,E],T=E;break}case n:{for(E=T,K=!0;O.charCodeAt(E+1)===n;)E+=1,K=!K;if(j=O.charCodeAt(E+1),K&&j!==o&&j!==i&&j!==t&&j!==a&&j!==c&&j!==s&&(E+=1,w.test(O.charAt(E)))){for(;w.test(O.charAt(E+1));)E+=1;O.charCodeAt(E+1)===i&&(E+=1)}Y=["word",O.slice(T,E+1),T,E],T=E;break}default:{j===o&&O.charCodeAt(T+1)===g?(E=O.indexOf("*/",T+2)+1,E===0&&(B||fe?E=O.length:ye("comment")),Y=["comment",O.slice(T,E+1),T,E],T=E):(_.lastIndex=T+1,_.test(O),_.lastIndex===0?E=O.length-1:E=_.lastIndex-2,Y=["word",O.slice(T,E+1),T,E],Be.push(Y),T=E);break}}return T++,Y}function it(F){Te.push(F)}return{back:it,endOfFile:Me,nextToken:vt,position:wr}},Ns}var zs,qp;function ya(){if(qp)return zs;qp=1;let e=xt();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return zs=r,r.default=r,e.registerAtRule(r),zs}var Ds,Gp;function Or(){if(Gp)return Ds;Gp=1;let e=xt(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let c=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of c)u.raws.before=s.raws.before}return c}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Ds=o,o.default=o,e.registerRoot(o),Ds}var Ts,Jp;function jh(){if(Jp)return Ts;Jp=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
49
+ `," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,c=!1,u="",l=!1;for(let p of r)l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?a+=1:p===")"?a>0&&(a-=1):a===0&&n.includes(p)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=p;return(o||i!=="")&&t.push(i.trim()),t}};return Ts=e,e.default=e,Ts}var Ps,Hp;function ba(){if(Hp)return Ps;Hp=1;let e=xt(),r=jh();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return Ps=n,n.default=n,e.registerRule(n),Ps}var Rs,Xp;function yw(){if(Xp)return Rs;Xp=1;let e=Bn(),r=vw(),n=Wn(),o=ya(),t=Or(),i=ba(),s={empty:!0,space:!0};function a(u){for(let l=u.length-1;l>=0;l--){let p=u[l],f=p[3]||p[2];if(f)return f}}class c{constructor(l){this.input=l,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let p=new o;p.name=l[1].slice(1),p.name===""&&this.unnamedAtrule(p,l),this.init(p,l[2]);let f,d,m,h=!1,g=!1,x=[],b=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){p.source.end=this.getPosition(l[2]),p.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(x.length>0){for(m=x.length-1,d=x[m];d&&d[0]==="space";)d=x[--m];d&&(p.source.end=this.getPosition(d[3]||d[2]),p.source.end.offset++)}this.end(l);break}else x.push(l);else x.push(l);if(this.tokenizer.endOfFile()){h=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(p.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(p,"params",x),h&&(l=x[x.length-1],p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),g&&(p.nodes=[],this.current=p)}checkMissedSemicolon(l){let p=this.colon(l);if(p===!1)return;let f=0,d;for(let m=p-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let p=0,f,d,m;for(let[h,g]of l.entries()){if(f=g,d=f[0],d==="("&&(p+=1),d===")"&&(p-=1),p===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=f}return!1}comment(l){let p=new n;this.init(p,l[2]),p.source.end=this.getPosition(l[3]||l[2]),p.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))p.text="",p.raws.left=f,p.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);p.text=d[2],p.raws.left=d[1],p.raws.right=d[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(l,p){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let b=l[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let h=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)h.push(l.shift());this.precheckMissedSemicolon(l);for(let b=l.length-1;b>=0;b--){if(m=l[b],m[1].toLowerCase()==="!important"){f.important=!0;let y=this.stringFrom(l,b);y=this.spacesFromEnd(l)+y,y!==" !important"&&(f.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=l.slice(0),_="";for(let v=b;v>0;v--){let w=y[v][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=y.pop()[1]+_}_.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=_,l=y)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(f,"value",h.concat(l),p),f.value.includes(":")&&!p&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let p=new i;this.init(p,l[2]),p.selector="",p.raws.between="",this.current=p}end(l){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let p=this.input.fromOffset(l);return{column:p.col,line:p.line,offset:l}}init(l,p){this.current.push(l),l.source={input:this.input,start:this.getPosition(p)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let p=!1,f=null,d=!1,m=null,h=[],g=l[1].startsWith("--"),x=[],b=l;for(;b;){if(f=b[0],x.push(b),f==="("||f==="[")m||(m=b),h.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=b),h.push("}");else if(h.length===0)if(f===";")if(d){this.decl(x,g);return}else break;else if(f==="{"){this.rule(x);return}else if(f==="}"){this.tokenizer.back(x.pop()),p=!0;break}else f===":"&&(d=!0);else f===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),h.length>0&&this.unclosedBracket(m),p&&d){if(!g)for(;x.length&&(b=x[x.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,p,f,d){let m,h,g=f.length,x="",b=!0,y,_;for(let v=0;v<g;v+=1)m=f[v],h=m[0],h==="space"&&v===g-1&&!d?b=!1:h==="comment"?(_=f[v-1]?f[v-1][0]:"empty",y=f[v+1]?f[v+1][0]:"empty",!s[_]&&!s[y]?x.slice(-1)===","?b=!1:x+=m[1]:b=!1):x+=m[1];if(!b){let v=f.reduce((w,S)=>w+S[1],"");l.raws[p]={raw:v,value:x}}l[p]=x}rule(l){l.pop();let p=new i;this.init(p,l[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(p,"selector",l),this.current=p}spacesAndCommentsFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],!(p!=="space"&&p!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let p,f="";for(;l.length&&(p=l[0][0],!(p!=="space"&&p!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let p,f="";for(;l.length&&(p=l[l.length-1][0],p==="space");)f=l.pop()[1]+f;return f}stringFrom(l,p){let f="";for(let d=p;d<l.length;d++)f+=l[d][1];return l.splice(p,l.length-p),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return Rs=c,Rs}var As,Kp;function wa(){if(Kp)return As;Kp=1;let e=xt(),r=yw(),n=Vn();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(c){throw c}return a.root}return As=o,o.default=o,e.registerParse(o),As}var Ms,Yp;function Lh(){if(Yp)return Ms;Yp=1;let{isClean:e,my:r}=ma(),n=Ah(),o=Fn(),t=xt(),i=ga(),s=Mh(),a=va(),c=wa(),u=Or(),l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function m(_){return typeof _=="object"&&typeof _.then=="function"}function h(_){let v=!1,w=l[_.type];return _.type==="decl"?v=_.prop.toLowerCase():_.type==="atrule"&&(v=_.name.toLowerCase()),v&&_.append?[w,w+"-"+v,d,w+"Exit",w+"Exit-"+v]:v?[w,w+"-"+v,w+"Exit",w+"Exit-"+v]:_.append?[w,d,w+"Exit"]:[w,w+"Exit"]}function g(_){let v;return _.type==="document"?v=["Document",d,"DocumentExit"]:_.type==="root"?v=["Root",d,"RootExit"]:v=h(_),{eventIndex:0,events:v,iterator:0,node:_,visitorIndex:0,visitors:[]}}function x(_){return _[e]=!1,_.nodes&&_.nodes.forEach(v=>x(v)),_}let b={};class y{constructor(v,w,S){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=x(w);else if(w instanceof y||w instanceof a)C=x(w.root),w.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let R=c;S.syntax&&(R=S.syntax.parse),S.parser&&(R=S.parser),R.parse&&(R=R.parse);try{C=R(w,S)}catch(O){this.processed=!0,this.error=O}C&&!C[r]&&t.rebuild(C)}this.result=new a(v,C,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(R=>typeof R=="object"&&R.prepare?{...R,...R.prepare(this.result)}:R)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,w){let S=this.result.lastPlugin;try{w&&w.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(w,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let S in w){if(!p[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof w[S]=="object")for(let C in w[S])C==="*"?v(w,S,w[S][C]):v(w,S+"-"+C.toLowerCase(),w[S][C]);else typeof w[S]=="function"&&v(w,S,w[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let w=this.plugins[v],S=this.runOnRoot(w);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let w=[g(v)];for(;w.length>0;){let S=this.visitTick(w);if(m(S))try{await S}catch(C){let R=w[w.length-1].node;throw this.handleError(C,R)}}}if(this.listeners.OnceExit)for(let[w,S]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(v.type==="document"){let C=v.nodes.map(R=>S(R,this.helpers));await Promise.all(C)}else await S(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return m(w[0])?Promise.all(w):w}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,w=o;v.syntax&&(w=v.syntax.stringify),v.stringifier&&(w=v.stringifier),w.stringify&&(w=w.stringify);let C=new n(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let w=this.runOnRoot(v);if(m(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let w of v.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,w){return this.async().then(v,w)}toString(){return this.css}visitSync(v,w){for(let[S,C]of v){this.result.lastPlugin=S;let R;try{R=C(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(m(R))throw this.getAsyncError()}}visitTick(v){let w=v[v.length-1],{node:S,visitors:C}=w;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[O,B]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return B(S.toProxy(),this.helpers)}catch(j){throw this.handleError(j,S)}}if(w.iterator!==0){let O=w.iterator,B;for(;B=S.nodes[S.indexes[O]];)if(S.indexes[O]+=1,!B[e]){B[e]=!0,v.push(g(B));return}w.iterator=0,delete S.indexes[O]}let R=w.events;for(;w.eventIndex<R.length;){let O=R[w.eventIndex];if(w.eventIndex+=1,O===d){S.nodes&&S.nodes.length&&(S[e]=!0,w.iterator=S.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}v.pop()}walkSync(v){v[e]=!0;let w=h(v);for(let S of w)if(S===d)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,v.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return y.registerPostcss=_=>{b=_},Ms=y,y.default=y,u.registerLazyResult(y),i.registerLazyResult(y),Ms}var Us,Qp;function bw(){if(Qp)return Us;Qp=1;let e=Ah(),r=Fn(),n=Mh(),o=wa(),t=va();class i{constructor(a,c,u){c=c.toString(),this.stringified=!1,this._processor=a,this._css=c,this._opts=u,this._map=void 0;let l,p=r;this.result=new t(this._processor,l,this._opts),this.result.css=c;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(p,l,this._opts,c);if(d.isMap()){let[m,h]=d.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,c){return this.async().then(a,c)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,c=o;try{a=c(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return Us=i,i.default=i,Us}var js,eh;function ww(){if(eh)return js;eh=1;let e=bw(),r=Lh(),n=ga(),o=Or();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))a=a.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)a.push(c);else if(typeof c=="function")a.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return js=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),js}var Ls,th;function xw(){if(th)return Ls;th=1;let e=Bn(),r=Rh(),n=Wn(),o=ya(),t=Vn(),i=Or(),s=ba();function a(c,u){if(Array.isArray(c))return c.map(f=>a(f));let{inputs:l,...p}=c;if(l){u=[];for(let f of l){let d={...f,__proto__:t.prototype};d.map&&(d.map={...d.map,__proto__:r.prototype}),u.push(d)}}if(p.nodes&&(p.nodes=c.nodes.map(f=>a(f,u))),p.source){let{inputId:f,...d}=p.source;p.source=d,f!=null&&(p.source.input=u[f])}if(p.type==="root")return new i(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new n(p);if(p.type==="atrule")return new o(p);throw new Error("Unknown node type: "+c.type)}return Ls=a,a.default=a,Ls}var Fs,rh;function _w(){if(rh)return Fs;rh=1;let e=ha(),r=Bn(),n=Lh(),o=xt(),t=ww(),i=Fn(),s=xw(),a=ga(),c=Uh(),u=Wn(),l=ya(),p=va(),f=Vn(),d=wa(),m=jh(),h=ba(),g=Or(),x=Zn();function b(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new t(y)}return b.plugin=function(_,v){let w=!1;function S(...R){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
50
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(_+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
51
+ https://www.w3ctech.com/topic/2226`));let O=v(...R);return O.postcssPlugin=_,O.postcssVersion=new t().version,O}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(R,O,B){return b([S(B)]).process(R,O)},S},b.stringify=i,b.parse=d,b.fromJSON=s,b.list=m,b.comment=y=>new u(y),b.atRule=y=>new l(y),b.decl=y=>new r(y),b.rule=y=>new h(y),b.root=y=>new g(y),b.document=y=>new a(y),b.CssSyntaxError=e,b.Declaration=r,b.Container=o,b.Processor=t,b.Document=a,b.Comment=u,b.Warning=c,b.AtRule=l,b.Result=p,b.Input=f,b.Rule=h,b.Root=g,b.Node=x,n.registerPostcss(b),Fs=b,b.default=b,Fs}var Sw=_w(),se=dw(Sw);se.stringify;se.fromJSON;se.plugin;se.parse;se.list;se.document;se.comment;se.atRule;se.rule;se.decl;se.root;se.CssSyntaxError;se.Declaration;se.Container;se.Processor;se.Document;se.Comment;se.Warning;se.AtRule;se.Result;se.Input;se.Rule;se.Root;se.Node;var Gs=class e{constructor(...r){Pe(this,"parentElement",null),Pe(this,"parentNode",null),Pe(this,"ownerDocument"),Pe(this,"firstChild",null),Pe(this,"lastChild",null),Pe(this,"previousSibling",null),Pe(this,"nextSibling",null),Pe(this,"ELEMENT_NODE",1),Pe(this,"TEXT_NODE",3),Pe(this,"nodeType"),Pe(this,"nodeName"),Pe(this,"RRNodeType")}get childNodes(){let r=[],n=this.firstChild;for(;n;)r.push(n),n=n.nextSibling;return r}contains(r){if(r instanceof e){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1}appendChild(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(r,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var nh={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ih={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Sn={},Fh={},$w=()=>!!globalThis.Zone;function xa(e){if(Sn[e])return Sn[e];let r=globalThis[e],n=r.prototype,o=e in nh?nh[e]:void 0,t=!!(o&&o.every(a=>{var c,u;return!!((u=(c=Object.getOwnPropertyDescriptor(n,a))==null?void 0:c.get)!=null&&u.toString().includes("[native code]"))})),i=e in ih?ih[e]:void 0,s=!!(i&&i.every(a=>{var c;return typeof n[a]=="function"&&((c=n[a])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!$w())return Sn[e]=r.prototype,r.prototype;try{let a=document.createElement("iframe");a.style.display="none",document.body.appendChild(a);let c=a.contentWindow;if(!c)return r.prototype;let u=c[e].prototype;if(!u)return a.remove(),n;let l=navigator.userAgent;return l.includes("Safari")&&!l.includes("Chrome")?(a.classList.add("rr-block"),a.setAttribute("__rrwebUntaintedMutationObserver",""),Fh[e]=()=>a.remove()):a.remove(),Sn[e]=u}catch{return n}}var Zs={};function Qe(e,r,n){var o;let t=`${e}.${String(n)}`;if(Zs[t])return Zs[t].call(r);let i=xa(e),s=(o=Object.getOwnPropertyDescriptor(i,n))==null?void 0:o.get;return s?(Zs[t]=s,s.call(r)):r[n]}var Bs={};function Zh(e,r,n){let o=`${e}.${String(n)}`;if(Bs[o])return Bs[o].bind(r);let i=xa(e)[n];return typeof i!="function"?r[n]:(Bs[o]=i,i.bind(r))}function kw(e){return Qe("Node",e,"ownerDocument")}function Iw(e){return Qe("Node",e,"childNodes")}function Ew(e){return Qe("Node",e,"parentNode")}function Cw(e){return Qe("Node",e,"parentElement")}function Ow(e){return Qe("Node",e,"textContent")}function Nw(e,r){return Zh("Node",e,"contains")(r)}function zw(e){return Zh("Node",e,"getRootNode")()}function Dw(e){return!e||!("host"in e)?null:Qe("ShadowRoot",e,"host")}function Tw(e){return e.styleSheets}function Pw(e){return!e||!("shadowRoot"in e)?null:Qe("Element",e,"shadowRoot")}function Rw(e,r){return Qe("Element",e,"querySelector")(r)}function Aw(e,r){return Qe("Element",e,"querySelectorAll")(r)}function Bh(){return[xa("MutationObserver").constructor,Fh.MutationObserver??(()=>{})]}var Ir=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ir=()=>new Date().getTime());function _t(e,r,n){try{if(!(r in e))return()=>{};let o=e[r],t=n(o);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=t,()=>{e[r]=o}}catch{return()=>{}}}var W={ownerDocument:kw,childNodes:Iw,parentNode:Ew,parentElement:Cw,textContent:Ow,contains:Nw,getRootNode:zw,host:Dw,styleSheets:Tw,shadowRoot:Pw,querySelector:Rw,querySelectorAll:Aw,nowTimestamp:Ir,mutationObserverCtor:Bh,patch:_t};function be(e,r,n=document){let o={capture:!0,passive:!0};return n.addEventListener(e,r,o),()=>n.removeEventListener(e,r,o)}var Pt=`Please stop import mirror directly. Instead of that,\r
52
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
+ or you can use record.mirror to access the mirror instance during recording.`,oh={map:{},getId(){return console.error(Pt),-1},getNode(){return console.error(Pt),null},removeNodeFromMap(){console.error(Pt)},has(){return console.error(Pt),!1},reset(){console.error(Pt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(oh=new Proxy(oh,{get(e,r,n){return r==="map"&&console.error(Pt),Reflect.get(e,r,n)}}));function Er(e,r,n={}){let o=null,t=0;return function(...i){let s=Date.now();!t&&n.leading===!1&&(t=s);let a=r-(s-t),c=this;a<=0||a>r?(o&&(clearTimeout(o),o=null),t=s,e.apply(c,i)):!o&&n.trailing!==!1&&(o=setTimeout(()=>{t=n.leading===!1?0:Date.now(),o=null,e.apply(c,i)},a))}}function qn(e,r,n,o,t=window){let i=t.Object.getOwnPropertyDescriptor(e,r);return t.Object.defineProperty(e,r,o?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>qn(e,r,i||{},!0)}function Vh(e){var r,n,o,t;let i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:i.documentElement.scrollLeft||i?.body&&((r=W.parentElement(i.body))==null?void 0:r.scrollLeft)||((n=i?.body)==null?void 0:n.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:i?.documentElement.scrollTop||i?.body&&((o=W.parentElement(i.body))==null?void 0:o.scrollTop)||((t=i?.body)==null?void 0:t.scrollTop)||0}}function Wh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function qh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Gh(e){return e?e.nodeType===e.ELEMENT_NODE?e:W.parentElement(e):null}function we(e,r,n,o){if(!e)return!1;let t=Gh(e);if(!t)return!1;try{if(typeof r=="string"){if(t.classList.contains(r)||o&&t.closest("."+r)!==null)return!0}else if(Dn(t,r,o))return!0}catch{}return!!(n&&(t.matches(n)||o&&t.closest(n)!==null))}function Mw(e,r){return r.getId(e)!==-1}function Vs(e,r,n){return e.tagName==="TITLE"&&n.headTitleMutations?!0:r.getId(e)===kr}function Jh(e,r){if(_r(e))return!1;let n=r.getId(e);if(!r.has(n))return!0;let o=W.parentNode(e);return o&&o.nodeType===e.DOCUMENT_NODE?!1:o?Jh(o,r):!0}function Js(e){return!!e.changedTouches}function Uw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Hh(e,r){return!!(e.nodeName==="IFRAME"&&r.getMeta(e))}function Xh(e,r){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&r.getMeta(e))}function Hs(e){return e?e instanceof Gs&&"shadowRoot"in e?!!e.shadowRoot:!!W.shadowRoot(e):!1}var Xs=class{constructor(){A(this,"id",1),A(this,"styleIDMap",new WeakMap),A(this,"idStyleMap",new Map)}getId(r){return this.styleIDMap.get(r)??-1}has(r){return this.styleIDMap.has(r)}add(r,n){if(this.has(r))return this.getId(r);let o;return n===void 0?o=this.id++:o=n,this.styleIDMap.set(r,o),this.idStyleMap.set(o,r),o}getStyle(r){return this.idStyleMap.get(r)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Kh(e){var r;let n=null;return"getRootNode"in e&&((r=W.getRootNode(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&W.host(W.getRootNode(e))&&(n=W.host(W.getRootNode(e))),n}function jw(e){let r=e,n;for(;n=Kh(r);)r=n;return r}function Lw(e){let r=W.ownerDocument(e);if(!r)return!1;let n=jw(e);return W.contains(r,n)}function Yh(e){let r=W.ownerDocument(e);return r?W.contains(r,e)||Lw(e):!1}var J=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(J||{}),q=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(q||{}),ke=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ke||{}),Ke=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ke||{}),jt=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(jt||{}),Rt=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Rt||{});var Qh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Qh||{});function sh(e){return"__ln"in e}var Ks=class{constructor(){A(this,"length",0),A(this,"head",null),A(this,"tail",null)}get(r){if(r>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let o=0;o<r;o++)n=n?.next||null;return n}addNode(r){let n={value:r,previous:null,next:null};if(r.__ln=n,r.previousSibling&&sh(r.previousSibling)){let o=r.previousSibling.__ln.next;n.next=o,n.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=n,o&&(o.previous=n)}else if(r.nextSibling&&sh(r.nextSibling)&&r.nextSibling.__ln.previous){let o=r.nextSibling.__ln.previous;n.previous=o,n.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=n,o&&(o.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(r){let n=r.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)}},ah=(e,r)=>`${e}@${r}`,Ys=class{constructor(){A(this,"frozen",!1),A(this,"locked",!1),A(this,"texts",[]),A(this,"attributes",[]),A(this,"attributeMap",new WeakMap),A(this,"removes",[]),A(this,"mapRemoves",[]),A(this,"movedMap",{}),A(this,"addedSet",new Set),A(this,"movedSet",new Set),A(this,"droppedSet",new Set),A(this,"removesSubTreeCache",new Set),A(this,"mutationCb"),A(this,"blockClass"),A(this,"blockSelector"),A(this,"maskTextClass"),A(this,"maskTextSelector"),A(this,"inlineStylesheet"),A(this,"maskInputOptions"),A(this,"maskTextFn"),A(this,"maskInputFn"),A(this,"keepIframeSrcFn"),A(this,"recordCanvas"),A(this,"inlineImages"),A(this,"slimDOMOptions"),A(this,"dataURLOptions"),A(this,"doc"),A(this,"mirror"),A(this,"iframeManager"),A(this,"stylesheetManager"),A(this,"shadowDomManager"),A(this,"canvasManager"),A(this,"processedNodeManager"),A(this,"unattachedDoc"),A(this,"processMutations",r=>{r.forEach(this.processMutation),this.emit()}),A(this,"emit",()=>{if(this.frozen||this.locked)return;let r=[],n=new Set,o=new Ks,t=c=>{let u=c,l=kr;for(;l===kr;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=c=>{let u=W.parentNode(c);if(!u||!Yh(c))return;let l=!1;if(c.nodeType===Node.TEXT_NODE){let m=u.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(u)&&(l=!0)}let p=_r(u)?this.mirror.getId(Kh(c)):this.mirror.getId(u),f=t(c);if(p===-1||f===-1)return o.addNode(c);let d=Mt(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{Hh(m,this.mirror)&&this.iframeManager.addIframe(m),Xh(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Hs(c)&&this.shadowDomManager.addShadowRoot(W.shadowRoot(c),this.doc)},onIframeLoad:(m,h)=>{this.iframeManager.attachIframe(m,h),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,h)=>{this.stylesheetManager.attachLinkElement(m,h)},cssCaptured:l});d&&(r.push({parentId:p,nextId:f,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet)lh(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(W.parentNode(c))||i(c);for(let c of this.addedSet)!ch(this.droppedSet,c)&&!lh(this.removesSubTreeCache,c,this.mirror)||ch(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;o.length;){let c=null;if(s){let u=this.mirror.getId(W.parentNode(s.value)),l=t(s.value);u!==-1&&l!==-1&&(c=s)}if(!c){let u=o.tail;for(;u;){let l=u;if(u=u.previous,l){let p=this.mirror.getId(W.parentNode(l.value));if(t(l.value)===-1)continue;if(p!==-1){c=l;break}else{let d=l.value,m=W.parentNode(d);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=W.host(m);if(this.mirror.getId(h)!==-1){c=l;break}}}}}}if(!c){for(;o.head;)o.removeNode(o.head.value);break}s=c.previous,o.removeNode(c.value),i(c.value)}let a={texts:this.texts.map(c=>{let u=c.node,l=W.parentNode(u);return l&&l.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(l),{id:this.mirror.getId(u),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:u}=c;if(typeof u.style=="string"){let l=JSON.stringify(c.styleDiff),p=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+p).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:r};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(a))}),A(this,"genTextAreaValueMutation",r=>{let n=this.attributeMap.get(r);n||(n={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(r,n));let o=Array.from(W.childNodes(r),t=>W.textContent(t)||"").join("");n.attributes.value=On({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:Nn(r),value:o,maskInputFn:this.maskInputFn})}),A(this,"processMutation",r=>{if(!Vs(r.target,this.mirror,this.slimDOMOptions))switch(r.type){case"characterData":{let n=W.textContent(r.target);!we(r.target,this.blockClass,this.blockSelector,!1)&&n!==r.oldValue&&this.texts.push({value:kh(r.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,Gh(r.target)):n.replace(/[\S]/g,"*"):n,node:r.target});break}case"attributes":{let n=r.target,o=r.attributeName,t=r.target.getAttribute(o);if(o==="value"){let s=Nn(n);t=On({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:s,value:t,maskInputFn:this.maskInputFn})}if(we(r.target,this.blockClass,this.blockSelector,!1)||t===r.oldValue)return;let i=this.attributeMap.get(r.target);if(n.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(t))if(!n.contentDocument)o="rr_src";else return;if(i||(i={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(r.target,i)),o==="type"&&n.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!$h(n.tagName,o))if(i.attributes[o]=Sh(this.doc,bt(n.tagName),bt(o),t),o==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");r.oldValue&&s.setAttribute("style",r.oldValue);for(let a of Array.from(n.style)){let c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||u!==s.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(let a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}else o==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":{if(we(r.target,this.blockClass,this.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(n=>this.genAdds(n,r.target)),r.removedNodes.forEach(n=>{let o=this.mirror.getId(n),t=_r(r.target)?this.mirror.getId(W.host(r.target)):this.mirror.getId(r.target);we(r.target,this.blockClass,this.blockSelector,!1)||Vs(n,this.mirror,this.slimDOMOptions)||!Mw(n,this.mirror)||(this.addedSet.has(n)?(Qs(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(r.target)&&o===-1||Jh(r.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[ah(o,t)]?Qs(this.movedSet,n):(this.removes.push({parentId:t,id:o,isShadow:_r(r.target)&&Sr(r.target)?!0:void 0}),Fw(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),A(this,"genAdds",(r,n)=>{if(!this.processedNodeManager.inOtherBuffer(r,this)&&!(this.addedSet.has(r)||this.movedSet.has(r))){if(this.mirror.hasNode(r)){if(Vs(r,this.mirror,this.slimDOMOptions))return;this.movedSet.add(r);let o=null;n&&this.mirror.hasNode(n)&&(o=this.mirror.getId(n)),o&&o!==-1&&(this.movedMap[ah(this.mirror.getId(r),o)]=!0)}else this.addedSet.add(r),this.droppedSet.delete(r);we(r,this.blockClass,this.blockSelector,!1)||(W.childNodes(r).forEach(o=>this.genAdds(o)),Hs(r)&&W.childNodes(W.shadowRoot(r)).forEach(o=>{this.processedNodeManager.add(o,this),this.genAdds(o,r)}))}})}init(r){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=r[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Qs(e,r){e.delete(r),W.childNodes(r).forEach(n=>Qs(e,n))}function Fw(e,r){let n=[e];for(;n.length;){let o=n.pop();r.has(o)||(r.add(o),W.childNodes(o).forEach(t=>n.push(t)))}}function lh(e,r,n){return e.size===0?!1:Zw(e,r)}function Zw(e,r,n){let o=W.parentNode(r);return o?e.has(o):!1}function ch(e,r){return e.size===0?!1:em(e,r)}function em(e,r){let n=W.parentNode(r);return n?e.has(n)?!0:em(e,n):!1}var $r;function Bw(e){$r=e}function Vw(){$r=void 0}var G=e=>$r?(...n)=>{try{return e(...n)}catch(o){if($r&&$r(o)===!0)return;throw o}}:e,yt=[];function Nr(e){try{if("composedPath"in e){let r=e.composedPath();if(r.length)return r[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function tm(e,r){let n=new Ys;yt.push(n),n.init(e);let[o,t]=Bh(),i=new o(G(n.processMutations.bind(n)));return i.observe(r,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[i,t]}function Ww({mousemoveCb:e,sampling:r,doc:n,mirror:o}){if(r.mousemove===!1)return()=>{};let t=typeof r.mousemove=="number"?r.mousemove:50,i=typeof r.mousemoveCallback=="number"?r.mousemoveCallback:500,s=[],a,c=Er(G(p=>{let f=Date.now()-a;e(s.map(d=>(d.timeOffset-=f,d)),p),s=[],a=null}),i),u=G(Er(G(p=>{let f=Nr(p),{clientX:d,clientY:m}=Js(p)?p.changedTouches[0]:p;a||(a=Ir()),s.push({x:d,y:m,id:o.getId(f),timeOffset:Ir()-a}),c(typeof DragEvent<"u"&&p instanceof DragEvent?q.Drag:p instanceof MouseEvent?q.MouseMove:q.TouchMove)}),t,{trailing:!1})),l=[be("mousemove",u,n),be("touchmove",u,n),be("drag",u,n)];return G(()=>{l.forEach(p=>p())})}function qw({mouseInteractionCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,sampling:i}){if(i.mouseInteraction===!1)return()=>{};let s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,a=[],c=null,u=l=>p=>{let f=Nr(p);if(we(f,o,t,!0))return;let d=null,m=l;if("pointerType"in p){switch(p.pointerType){case"mouse":d=Ke.Mouse;break;case"touch":d=Ke.Touch;break;case"pen":d=Ke.Pen;break}d===Ke.Touch?ke[l]===ke.MouseDown?m="TouchStart":ke[l]===ke.MouseUp&&(m="TouchEnd"):Ke.Pen}else Js(p)&&(d=Ke.Touch);d!==null?(c=d,(m.startsWith("Touch")&&d===Ke.Touch||m.startsWith("Mouse")&&d===Ke.Mouse)&&(d=null)):ke[l]===ke.Click&&(d=c,c=null);let h=Js(p)?p.changedTouches[0]:p;if(!h)return;let g=n.getId(f),{clientX:x,clientY:b}=h;G(e)({type:ke[m],id:g,x,y:b,...d!==null&&{pointerType:d}})};return Object.keys(ke).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&s[l]!==!1).forEach(l=>{let p=bt(l),f=u(l);if(window.PointerEvent)switch(ke[l]){case ke.MouseDown:case ke.MouseUp:p=p.replace("mouse","pointer");break;case ke.TouchStart:case ke.TouchEnd:return}a.push(be(p,f,r))}),G(()=>{a.forEach(l=>l())})}function rm({scrollCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,sampling:i}){let s=G(Er(G(a=>{let c=Nr(a);if(!c||we(c,o,t,!0))return;let u=n.getId(c);if(c===r&&r.defaultView){let l=Vh(r.defaultView);e({id:u,x:l.left,y:l.top})}else e({id:u,x:c.scrollLeft,y:c.scrollTop})}),i.scroll||100));return be("scroll",s,r)}function Gw({viewportResizeCb:e},{win:r}){let n=-1,o=-1,t=G(Er(G(()=>{let i=Wh(),s=qh();(n!==i||o!==s)&&(e({width:Number(s),height:Number(i)}),n=i,o=s)}),200));return be("resize",t,r)}var Jw=["INPUT","TEXTAREA","SELECT"],uh=new WeakMap;function Hw({inputCb:e,doc:r,mirror:n,blockClass:o,blockSelector:t,ignoreClass:i,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:u,userTriggeredOnInput:l}){function p(b){let y=Nr(b),_=b.isTrusted,v=y&&y.tagName;if(y&&v==="OPTION"&&(y=W.parentElement(y)),!y||!v||Jw.indexOf(v)<0||we(y,o,t,!0)||y.classList.contains(i)||s&&y.matches(s))return;let w=y.value,S=!1,C=Nn(y)||"";C==="radio"||C==="checkbox"?S=y.checked:(a[v.toLowerCase()]||a[C])&&(w=On({element:y,maskInputOptions:a,tagName:v,type:C,value:w,maskInputFn:c})),f(y,l?{text:w,isChecked:S,userTriggered:_}:{text:w,isChecked:S});let R=y.name;C==="radio"&&R&&S&&r.querySelectorAll(`input[type="radio"][name="${R}"]`).forEach(O=>{if(O!==y){let B=O.value;f(O,l?{text:B,isChecked:!S,userTriggered:!1}:{text:B,isChecked:!S})}})}function f(b,y){let _=uh.get(b);if(!_||_.text!==y.text||_.isChecked!==y.isChecked){uh.set(b,y);let v=n.getId(b);G(e)({...y,id:v})}}let m=(u.input==="last"?["change"]:["input","change"]).map(b=>be(b,G(p),r)),h=r.defaultView;if(!h)return()=>{m.forEach(b=>b())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),x=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...x.map(b=>qn(b[0],b[1],{set(){G(p)({target:this,isTrusted:!1})}},!1,h))),G(()=>{m.forEach(b=>b())})}function Tn(e){let r=[];function n(o,t){if($n("CSSGroupingRule")&&o.parentRule instanceof CSSGroupingRule||$n("CSSMediaRule")&&o.parentRule instanceof CSSMediaRule||$n("CSSSupportsRule")&&o.parentRule instanceof CSSSupportsRule||$n("CSSConditionRule")&&o.parentRule instanceof CSSConditionRule){let s=Array.from(o.parentRule.cssRules).indexOf(o);return t.unshift(s),n(o.parentRule,t)}else if(o.parentStyleSheet){let s=Array.from(o.parentStyleSheet.cssRules).indexOf(o);t.unshift(s)}return t}return n(e,r)}function ot(e,r,n){let o,t;return e?(e.ownerNode?o=r.getId(e.ownerNode):t=n.getId(e),{styleId:t,id:o}):{}}function Xw({styleSheetRuleCb:e,mirror:r,stylesheetManager:n},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};let t=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(t,{apply:G((l,p,f)=>{let[d,m]=f,{id:h,styleId:g}=ot(p,r,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:d,index:m}]}),l.apply(p,f)})}),o.CSSStyleSheet.prototype.addRule=function(l,p,f=this.cssRules.length){let d=`${l} { ${p} }`;return o.CSSStyleSheet.prototype.insertRule.apply(this,[d,f])};let i=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=ot(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:d}]}),l.apply(p,f)})}),o.CSSStyleSheet.prototype.removeRule=function(l){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[l])};let s;o.CSSStyleSheet.prototype.replace&&(s=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=ot(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:d}),l.apply(p,f)})}));let a;o.CSSStyleSheet.prototype.replaceSync&&(a=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:G((l,p,f)=>{let[d]=f,{id:m,styleId:h}=ot(p,r,n.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:d}),l.apply(p,f)})}));let c={};kn("CSSGroupingRule")?c.CSSGroupingRule=o.CSSGroupingRule:(kn("CSSMediaRule")&&(c.CSSMediaRule=o.CSSMediaRule),kn("CSSConditionRule")&&(c.CSSConditionRule=o.CSSConditionRule),kn("CSSSupportsRule")&&(c.CSSSupportsRule=o.CSSSupportsRule));let u={};return Object.entries(c).forEach(([l,p])=>{u[l]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(u[l].insertRule,{apply:G((f,d,m)=>{let[h,g]=m,{id:x,styleId:b}=ot(d.parentStyleSheet,r,n.styleMirror);return(x&&x!==-1||b&&b!==-1)&&e({id:x,styleId:b,adds:[{rule:h,index:[...Tn(d),g||0]}]}),f.apply(d,m)})}),p.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:G((f,d,m)=>{let[h]=m,{id:g,styleId:x}=ot(d.parentStyleSheet,r,n.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,removes:[{index:[...Tn(d),h]}]}),f.apply(d,m)})})}),G(()=>{o.CSSStyleSheet.prototype.insertRule=t,o.CSSStyleSheet.prototype.deleteRule=i,s&&(o.CSSStyleSheet.prototype.replace=s),a&&(o.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([l,p])=>{p.prototype.insertRule=u[l].insertRule,p.prototype.deleteRule=u[l].deleteRule})})}function nm({mirror:e,stylesheetManager:r},n){var o,t,i;let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(W.host(n));let a=n.nodeName==="#document"?(o=n.defaultView)==null?void 0:o.Document:(i=(t=n.ownerDocument)==null?void 0:t.defaultView)==null?void 0:i.ShadowRoot,c=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!a||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var u;return(u=c.get)==null?void 0:u.call(this)},set(u){var l;let p=(l=c.set)==null?void 0:l.call(this,u);if(s!==null&&s!==-1)try{r.adoptStyleSheets(u,s)}catch{}return p}}),G(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Kw({styleDeclarationCb:e,mirror:r,ignoreCSSAttributes:n,stylesheetManager:o},{win:t}){let i=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:G((a,c,u)=>{var l;let[p,f,d]=u;if(n.has(p))return i.apply(c,[p,f,d]);let{id:m,styleId:h}=ot((l=c.parentRule)==null?void 0:l.parentStyleSheet,r,o.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:p,value:f,priority:d},index:Tn(c.parentRule)}),a.apply(c,u)})});let s=t.CSSStyleDeclaration.prototype.removeProperty;return t.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:G((a,c,u)=>{var l;let[p]=u;if(n.has(p))return s.apply(c,[p]);let{id:f,styleId:d}=ot((l=c.parentRule)==null?void 0:l.parentStyleSheet,r,o.styleMirror);return(f&&f!==-1||d&&d!==-1)&&e({id:f,styleId:d,remove:{property:p},index:Tn(c.parentRule)}),a.apply(c,u)})}),G(()=>{t.CSSStyleDeclaration.prototype.setProperty=i,t.CSSStyleDeclaration.prototype.removeProperty=s})}function Yw({mediaInteractionCb:e,blockClass:r,blockSelector:n,mirror:o,sampling:t,doc:i}){let s=G(c=>Er(G(u=>{let l=Nr(u);if(!l||we(l,r,n,!0))return;let{currentTime:p,volume:f,muted:d,playbackRate:m,loop:h}=l;e({type:c,id:o.getId(l),currentTime:p,volume:f,muted:d,playbackRate:m,loop:h})}),t.media||500)),a=[be("play",s(Rt.Play),i),be("pause",s(Rt.Pause),i),be("seeked",s(Rt.Seeked),i),be("volumechange",s(Rt.VolumeChange),i),be("ratechange",s(Rt.RateChange),i)];return G(()=>{a.forEach(c=>c())})}function Qw({fontCb:e,doc:r}){let n=r.defaultView;if(!n)return()=>{};let o=[],t=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,l){let p=new i(c,u,l);return t.set(p,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),p};let s=_t(r.fonts,"add",function(a){return function(c){return setTimeout(G(()=>{let u=t.get(c);u&&(e(u),t.delete(c))}),0),a.apply(this,[c])}});return o.push(()=>{n.FontFace=i}),o.push(s),G(()=>{o.forEach(a=>a())})}function ex(e){let{doc:r,mirror:n,blockClass:o,blockSelector:t,selectionCb:i}=e,s=!0,a=G(()=>{let c=r.getSelection();if(!c||s&&c?.isCollapsed)return;s=c.isCollapsed||!1;let u=[],l=c.rangeCount||0;for(let p=0;p<l;p++){let f=c.getRangeAt(p),{startContainer:d,startOffset:m,endContainer:h,endOffset:g}=f;we(d,o,t,!0)||we(h,o,t,!0)||u.push({start:n.getId(d),startOffset:m,end:n.getId(h),endOffset:g})}i({ranges:u})});return a(),be("selectionchange",a)}function tx({doc:e,customElementCb:r}){let n=e.defaultView;return!n||!n.customElements?()=>{}:_t(n.customElements,"define",function(t){return function(i,s,a){try{r({define:{name:i}})}catch{console.warn(`Custom element callback failed for ${i}`)}return t.apply(this,[i,s,a])}})}function rx(e,r){let{mutationCb:n,mousemoveCb:o,mouseInteractionCb:t,scrollCb:i,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:p,fontCb:f,selectionCb:d,customElementCb:m}=e;e.mutationCb=(...h)=>{r.mutation&&r.mutation(...h),n(...h)},e.mousemoveCb=(...h)=>{r.mousemove&&r.mousemove(...h),o(...h)},e.mouseInteractionCb=(...h)=>{r.mouseInteraction&&r.mouseInteraction(...h),t(...h)},e.scrollCb=(...h)=>{r.scroll&&r.scroll(...h),i(...h)},e.viewportResizeCb=(...h)=>{r.viewportResize&&r.viewportResize(...h),s(...h)},e.inputCb=(...h)=>{r.input&&r.input(...h),a(...h)},e.mediaInteractionCb=(...h)=>{r.mediaInteaction&&r.mediaInteaction(...h),c(...h)},e.styleSheetRuleCb=(...h)=>{r.styleSheetRule&&r.styleSheetRule(...h),u(...h)},e.styleDeclarationCb=(...h)=>{r.styleDeclaration&&r.styleDeclaration(...h),l(...h)},e.canvasMutationCb=(...h)=>{r.canvasMutation&&r.canvasMutation(...h),p(...h)},e.fontCb=(...h)=>{r.font&&r.font(...h),f(...h)},e.selectionCb=(...h)=>{r.selection&&r.selection(...h),d(...h)},e.customElementCb=(...h)=>{r.customElement&&r.customElement(...h),m(...h)}}function nx(e,r={}){let n=e.doc.defaultView;if(!n)return()=>{};rx(e,r);let o,t=()=>{};e.recordDOM&&([o,t]=tm(e,e.doc));let i=Ww(e),s=qw(e),a=rm(e),c=Gw(e,{win:n}),u=Hw(e),l=Yw(e),p=()=>{},f=()=>{},d=()=>{},m=()=>{};e.recordDOM&&(p=Xw(e,{win:n}),f=nm(e,e.doc),d=Kw(e,{win:n}),e.collectFonts&&(m=Qw(e)));let h=ex(e),g=tx(e),x=[];for(let b of e.plugins)x.push(b.observer(b.callback,n,b.options));return G(()=>{yt.forEach(b=>b.reset()),o?.disconnect(),t(),i(),s(),a(),c(),u(),l(),p(),f(),d(),m(),h(),g(),x.forEach(b=>b())})}function $n(e){return typeof window[e]<"u"}function kn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Pn=class{constructor(r){A(this,"iframeIdToRemoteIdMap",new WeakMap),A(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=r}getId(r,n,o,t){let i=o||this.getIdToRemoteIdMap(r),s=t||this.getRemoteIdToIdMap(r),a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(r,n){let o=this.getIdToRemoteIdMap(r),t=this.getRemoteIdToIdMap(r);return n.map(i=>this.getId(r,i,o,t))}getRemoteId(r,n,o){let t=o||this.getRemoteIdToIdMap(r);if(typeof n!="number")return n;let i=t.get(n);return i||-1}getRemoteIds(r,n){let o=this.getRemoteIdToIdMap(r);return n.map(t=>this.getRemoteId(r,t,o))}reset(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)}getIdToRemoteIdMap(r){let n=this.iframeIdToRemoteIdMap.get(r);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(r,n)),n}getRemoteIdToIdMap(r){let n=this.iframeRemoteIdToIdMap.get(r);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(r,n)),n}},ea=class{constructor(r){A(this,"iframes",new WeakMap),A(this,"crossOriginIframeMap",new WeakMap),A(this,"crossOriginIframeMirror",new Pn(_h)),A(this,"crossOriginIframeStyleMirror"),A(this,"crossOriginIframeRootIdMap",new WeakMap),A(this,"mirror"),A(this,"mutationCb"),A(this,"wrappedEmit"),A(this,"loadListener"),A(this,"stylesheetManager"),A(this,"recordCrossOriginIframes"),this.mutationCb=r.mutationCb,this.wrappedEmit=r.wrappedEmit,this.stylesheetManager=r.stylesheetManager,this.recordCrossOriginIframes=r.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Pn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=r.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)}addLoadListener(r){this.loadListener=r}attachIframe(r,n){var o,t;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=r.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(t=this.loadListener)==null||t.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))}handleMessage(r){let n=r;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!r.source)return;let t=this.crossOriginIframeMap.get(r.source);if(!t)return;let i=this.transformCrossOriginEvent(t,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(r,n){var o;switch(n.type){case J.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(n.data.node,r);let t=n.data.node.id;return this.crossOriginIframeRootIdMap.set(r,t),this.patchRootIdOnNode(n.data.node,t),{timestamp:n.timestamp,type:J.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case J.Meta:case J.Load:case J.DomContentLoaded:return!1;case J.Plugin:return n;case J.Custom:return this.replaceIds(n.data.payload,r,["id","parentId","previousId","nextId"]),n;case J.IncrementalSnapshot:switch(n.data.source){case q.Mutation:return n.data.adds.forEach(t=>{this.replaceIds(t,r,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,r);let i=this.crossOriginIframeRootIdMap.get(r);i&&this.patchRootIdOnNode(t.node,i)}),n.data.removes.forEach(t=>{this.replaceIds(t,r,["parentId","id"])}),n.data.attributes.forEach(t=>{this.replaceIds(t,r,["id"])}),n.data.texts.forEach(t=>{this.replaceIds(t,r,["id"])}),n;case q.Drag:case q.TouchMove:case q.MouseMove:return n.data.positions.forEach(t=>{this.replaceIds(t,r,["id"])}),n;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(n.data,r,["id"]),n;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleId"]),n;case q.Font:return n;case q.Selection:return n.data.ranges.forEach(t=>{this.replaceIds(t,r,["start","end"])}),n;case q.AdoptedStyleSheet:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleIds"]),(o=n.data.styles)==null||o.forEach(t=>{this.replaceStyleIds(t,r,["styleId"])}),n}}return!1}replace(r,n,o,t){for(let i of t)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=r.getIds(o,n[i]):n[i]=r.getId(o,n[i]));return n}replaceIds(r,n,o){return this.replace(this.crossOriginIframeMirror,r,n,o)}replaceStyleIds(r,n,o){return this.replace(this.crossOriginIframeStyleMirror,r,n,o)}replaceIdOnNode(r,n){this.replaceIds(r,n,["id","rootId"]),"childNodes"in r&&r.childNodes.forEach(o=>{this.replaceIdOnNode(o,n)})}patchRootIdOnNode(r,n){r.type!==Qh.Document&&!r.rootId&&(r.rootId=n),"childNodes"in r&&r.childNodes.forEach(o=>{this.patchRootIdOnNode(o,n)})}},ta=class{constructor(r){A(this,"shadowDoms",new WeakSet),A(this,"mutationCb"),A(this,"scrollCb"),A(this,"bypassOptions"),A(this,"mirror"),A(this,"restoreHandlers",[]),this.mutationCb=r.mutationCb,this.scrollCb=r.scrollCb,this.bypassOptions=r.bypassOptions,this.mirror=r.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(r,n){if(!Sr(r)||this.shadowDoms.has(r))return;this.shadowDoms.add(r);let[o]=tm({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},r);this.restoreHandlers.push(()=>o.disconnect()),this.restoreHandlers.push(rm({...this.bypassOptions,scrollCb:this.scrollCb,doc:r,mirror:this.mirror})),setTimeout(()=>{r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(W.host(r))),this.restoreHandlers.push(nm({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},r))},0)}observeAttachShadow(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)}patchAttachShadow(r,n){let o=this;this.restoreHandlers.push(_t(r.prototype,"attachShadow",function(t){return function(i){let s=t.call(this,i),a=W.shadowRoot(this);return a&&Yh(this)&&o.addShadowRoot(a,n),s}}))}reset(){this.restoreHandlers.forEach(r=>{try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ix=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(xr=0;xr<Ut.length;xr++)ix[Ut.charCodeAt(xr)]=xr;var xr,ox=function(e){var r=new Uint8Array(e),n,o=r.length,t="";for(n=0;n<o;n+=3)t+=Ut[r[n]>>2],t+=Ut[(r[n]&3)<<4|r[n+1]>>4],t+=Ut[(r[n+1]&15)<<2|r[n+2]>>6],t+=Ut[r[n+2]&63];return o%3===2?t=t.substring(0,t.length-1)+"=":o%3===1&&(t=t.substring(0,t.length-2)+"=="),t};var dh=new Map;function sx(e,r){let n=dh.get(e);return n||(n=new Map,dh.set(e,n)),n.has(r)||n.set(r,[]),n.get(r)}var im=(e,r,n)=>{if(!e||!(sm(e,r)||typeof e=="object"))return;let o=e.constructor.name,t=sx(n,o),i=t.indexOf(e);return i===-1&&(i=t.length,t.push(e)),i};function In(e,r,n){if(e instanceof Array)return e.map(o=>In(o,r,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let o=e.constructor.name,t=ox(e);return{rr_type:o,base64:t}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[In(e.buffer,r,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let o=e.constructor.name,{src:t}=e;return{rr_type:o,src:t}}else if(e instanceof HTMLCanvasElement){let o="HTMLImageElement",t=e.toDataURL();return{rr_type:o,src:t}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[In(e.data,r,n),e.width,e.height]};if(sm(e,r)||typeof e=="object"){let o=e.constructor.name,t=im(e,r,n);return{rr_type:o,index:t}}}}return e}var om=(e,r,n)=>e.map(o=>In(o,r,n)),sm=(e,r)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>typeof r[t]=="function").find(t=>e instanceof r[t]);function ax(e,r,n,o){let t=[],i=Object.getOwnPropertyNames(r.CanvasRenderingContext2D.prototype);for(let s of i)try{if(typeof r.CanvasRenderingContext2D.prototype[s]!="function")continue;let a=_t(r.CanvasRenderingContext2D.prototype,s,function(c){return function(...u){return we(this.canvas,n,o,!0)||setTimeout(()=>{let l=om(u,r,this);e(this.canvas,{type:jt["2D"],property:s,args:l})},0),c.apply(this,u)}});t.push(a)}catch{let a=qn(r.CanvasRenderingContext2D.prototype,s,{set(c){e(this.canvas,{type:jt["2D"],property:s,args:[c],setter:!0})}});t.push(a)}return()=>{t.forEach(s=>s())}}function lx(e){return e==="experimental-webgl"?"webgl":e}function fh(e,r,n,o){let t=[];try{let i=_t(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a,...c){if(!we(this,r,n,!0)){let u=lx(a);if("__context"in this||(this.__context=u),o&&["webgl","webgl2"].includes(u))if(c[0]&&typeof c[0]=="object"){let l=c[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[a,...c])}});t.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(i=>i())}}function ph(e,r,n,o,t,i){let s=[],a=Object.getOwnPropertyNames(e);for(let c of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;let u=_t(e,c,function(l){return function(...p){let f=l.apply(this,p);if(im(f,i,this),"tagName"in this.canvas&&!we(this.canvas,o,t,!0)){let d=om(p,i,this),m={type:r,property:c,args:d};n(this.canvas,m)}return f}});s.push(u)}catch{let u=qn(e,c,{set(l){n(this.canvas,{type:r,property:c,args:[l],setter:!0})}});s.push(u)}return s}function cx(e,r,n,o){let t=[];return typeof r.WebGLRenderingContext<"u"&&t.push(...ph(r.WebGLRenderingContext.prototype,jt.WebGL,e,n,o,r)),typeof r.WebGL2RenderingContext<"u"&&t.push(...ph(r.WebGL2RenderingContext.prototype,jt.WebGL2,e,n,o,r)),()=>{t.forEach(i=>i())}}var am=`(function() {
54
+ "use strict";
55
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
56
+ var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
57
+ for (var i = 0; i < chars.length; i++) {
58
+ lookup[chars.charCodeAt(i)] = i;
59
+ }
60
+ var encode = function(arraybuffer) {
61
+ var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
62
+ for (i2 = 0; i2 < len; i2 += 3) {
63
+ base64 += chars[bytes[i2] >> 2];
64
+ base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
65
+ base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
66
+ base64 += chars[bytes[i2 + 2] & 63];
67
+ }
68
+ if (len % 3 === 2) {
69
+ base64 = base64.substring(0, base64.length - 1) + "=";
70
+ } else if (len % 3 === 1) {
71
+ base64 = base64.substring(0, base64.length - 2) + "==";
72
+ }
73
+ return base64;
74
+ };
75
+ const lastBlobMap = /* @__PURE__ */ new Map();
76
+ const transparentBlobMap = /* @__PURE__ */ new Map();
77
+ async function getTransparentBlobFor(width, height, dataURLOptions) {
78
+ const id = \`\${width}-\${height}\`;
79
+ if ("OffscreenCanvas" in globalThis) {
80
+ if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
81
+ const offscreen = new OffscreenCanvas(width, height);
82
+ offscreen.getContext("2d");
83
+ const blob = await offscreen.convertToBlob(dataURLOptions);
84
+ const arrayBuffer = await blob.arrayBuffer();
85
+ const base64 = encode(arrayBuffer);
86
+ transparentBlobMap.set(id, base64);
87
+ return base64;
88
+ } else {
89
+ return "";
90
+ }
91
+ }
92
+ const worker = self;
93
+ worker.onmessage = async function(e) {
94
+ if ("OffscreenCanvas" in globalThis) {
95
+ const { id, bitmap, width, height, dataURLOptions } = e.data;
96
+ const transparentBase64 = getTransparentBlobFor(
97
+ width,
98
+ height,
99
+ dataURLOptions
100
+ );
101
+ const offscreen = new OffscreenCanvas(width, height);
102
+ const ctx = offscreen.getContext("2d");
103
+ ctx.drawImage(bitmap, 0, 0);
104
+ bitmap.close();
105
+ const blob = await offscreen.convertToBlob(dataURLOptions);
106
+ const type = blob.type;
107
+ const arrayBuffer = await blob.arrayBuffer();
108
+ const base64 = encode(arrayBuffer);
109
+ if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
110
+ lastBlobMap.set(id, base64);
111
+ return worker.postMessage({ id });
112
+ }
113
+ if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
114
+ worker.postMessage({
115
+ id,
116
+ type,
117
+ base64,
118
+ width,
119
+ height
120
+ });
121
+ lastBlobMap.set(id, base64);
122
+ } else {
123
+ return worker.postMessage({ id: e.data.id });
124
+ }
125
+ };
126
+ })();
127
+ //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
128
+ `,hh=typeof self<"u"&&self.Blob&&new Blob([am],{type:"text/javascript;charset=utf-8"});function ux(e){let r;try{if(r=hh&&(self.URL||self.webkitURL).createObjectURL(hh),!r)throw"";let n=new Worker(r,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(r)}),n}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(am),{name:e?.name})}finally{r&&(self.URL||self.webkitURL).revokeObjectURL(r)}}var ra=class{constructor(r){A(this,"pendingCanvasMutations",new Map),A(this,"rafStamps",{latestId:0,invokeId:null}),A(this,"mirror"),A(this,"mutationCb"),A(this,"resetObservers"),A(this,"frozen",!1),A(this,"locked",!1),A(this,"processMutation",(c,u)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(u)});let{sampling:n="all",win:o,blockClass:t,blockSelector:i,recordCanvas:s,dataURLOptions:a}=r;this.mutationCb=r.mutationCb,this.mirror=r.mirror,s&&n==="all"&&this.initCanvasMutationObserver(o,t,i),s&&typeof n=="number"&&this.initCanvasFPSObserver(n,o,t,i,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(r,n,o,t,i){let s=fh(n,o,t,!0),a=new Map,c=new ux;c.onmessage=m=>{let{id:h}=m.data;if(a.set(h,!1),!("base64"in m.data))return;let{base64:g,type:x,width:b,height:y}=m.data;this.mutationCb({id:h,type:jt["2D"],commands:[{property:"clearRect",args:[0,0,b,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:x}]},0,0]}]})};let u=1e3/r,l=0,p,f=()=>{let m=[];return n.document.querySelectorAll("canvas").forEach(h=>{we(h,o,t,!0)||m.push(h)}),m},d=m=>{if(l&&m-l<u){p=requestAnimationFrame(d);return}l=m,f().forEach(async h=>{var g;let x=this.mirror.getId(h);if(a.get(x)||h.width===0||h.height===0)return;if(a.set(x,!0),["webgl","webgl2"].includes(h.__context)){let y=h.getContext(h.__context);((g=y?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}let b=await createImageBitmap(h);c.postMessage({id:x,bitmap:b,width:h.width,height:h.height,dataURLOptions:i.dataURLOptions},[b])}),p=requestAnimationFrame(d)};p=requestAnimationFrame(d),this.resetObservers=()=>{s(),cancelAnimationFrame(p)}}initCanvasMutationObserver(r,n,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let t=fh(r,n,o,!1),i=ax(this.processMutation.bind(this),r,n,o),s=cx(this.processMutation.bind(this),r,n,o);this.resetObservers=()=>{t(),i(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let r=n=>{this.rafStamps.latestId=n,requestAnimationFrame(r)};requestAnimationFrame(r)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((r,n)=>{let o=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,o)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(r,n){if(this.frozen||this.locked)return;let o=this.pendingCanvasMutations.get(r);if(!o||n===-1)return;let t=o.map(s=>{let{type:a,...c}=s;return c}),{type:i}=o[0];this.mutationCb({id:n,type:i,commands:t}),this.pendingCanvasMutations.delete(r)}},na=class{constructor(r){A(this,"trackedLinkElements",new WeakSet),A(this,"mutationCb"),A(this,"adoptedStyleSheetCb"),A(this,"styleMirror",new Xs),this.mutationCb=r.mutationCb,this.adoptedStyleSheetCb=r.adoptedStyleSheetCb}attachLinkElement(r,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(r)}trackLinkElement(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))}adoptStyleSheets(r,n){if(r.length===0)return;let o={id:n,styleIds:[]},t=[];for(let i of r){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),t.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:wh(a,i.href),index:c}))})),o.styleIds.push(s)}t.length>0&&(o.styles=t),this.adoptedStyleSheetCb(o)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(r){}},ia=class{constructor(){A(this,"nodeMap",new WeakMap),A(this,"active",!1)}inOtherBuffer(r,n){let o=this.nodeMap.get(r);return o&&Array.from(o).some(t=>t!==n)}add(r,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(n))}destroy(){}},le,En,Ws,Rn=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((qf=e.contentWindow)==null?void 0:qf.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var Ue=$b();function We(e={}){let{emit:r,checkoutEveryNms:n,checkoutEveryNth:o,blockClass:t="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,inlineStylesheet:l=!0,maskAllInputs:p,maskInputOptions:f,slimDOMOptions:d,maskInputFn:m,maskTextFn:h,hooks:g,packFn:x,sampling:b={},dataURLOptions:y={},mousemoveWait:_,recordDOM:v=!0,recordCanvas:w=!1,recordCrossOriginIframes:S=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:B=!1,plugins:j,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:Ae=new Set([]),errorHandler:Oe}=e;Bw(Oe);let K=S?window.parent===window:!0,H=!1;if(!K)try{window.parent.document&&(H=!1)}catch{H=!0}if(K&&!r)throw new Error("emit function is required");if(!K&&!H)return()=>{};_!==void 0&&b.mousemove===void 0&&(b.mousemove=_),Ue.reset();let ue=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},me=Ih(d);Uw();let de,Y=0,nt=F=>{for(let fe of j||[])fe.eventProcessor&&(F=fe.eventProcessor(F));return x&&!H&&(F=x(F)),F};le=(F,fe)=>{var Q;let ae=F;if(ae.timestamp=Ir(),(Q=yt[0])!=null&&Q.isFrozen()&&ae.type!==J.FullSnapshot&&!(ae.type===J.IncrementalSnapshot&&ae.data.source===q.Mutation)&&yt.forEach(Ne=>Ne.unfreeze()),K)r?.(nt(ae),fe);else if(H){let Ne={type:"rrweb",event:nt(ae),origin:window.location.origin,isCheckout:fe};window.parent.postMessage(Ne,"*")}if(ae.type===J.FullSnapshot)de=ae,Y=0;else if(ae.type===J.IncrementalSnapshot){if(ae.data.source===q.Mutation&&ae.data.isAttachIframe)return;Y++;let Ne=o&&Y>=o,ee=n&&ae.timestamp-de.timestamp>n;(Ne||ee)&&En(!0)}};let T=F=>{le({type:J.IncrementalSnapshot,data:{source:q.Mutation,...F}})},Be=F=>le({type:J.IncrementalSnapshot,data:{source:q.Scroll,...F}}),Te=F=>le({type:J.IncrementalSnapshot,data:{source:q.CanvasMutation,...F}}),wr=F=>le({type:J.IncrementalSnapshot,data:{source:q.AdoptedStyleSheet,...F}}),ye=new na({mutationCb:T,adoptedStyleSheetCb:wr}),Me=new ea({mirror:Ue,mutationCb:T,stylesheetManager:ye,recordCrossOriginIframes:S,wrappedEmit:le});for(let F of j||[])F.getMirror&&F.getMirror({nodeMirror:Ue,crossOriginIframeMirror:Me.crossOriginIframeMirror,crossOriginIframeStyleMirror:Me.crossOriginIframeStyleMirror});let vt=new ia;Ws=new ra({recordCanvas:w,mutationCb:Te,win:window,blockClass:t,blockSelector:i,mirror:Ue,sampling:b.canvas,dataURLOptions:y});let it=new ta({mutationCb:T,scrollCb:Be,bypassOptions:{blockClass:t,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:l,maskInputOptions:ue,dataURLOptions:y,maskTextFn:h,maskInputFn:m,recordCanvas:w,inlineImages:B,sampling:b,slimDOMOptions:me,iframeManager:Me,stylesheetManager:ye,canvasManager:Ws,keepIframeSrcFn:E,processedNodeManager:vt},mirror:Ue});En=(F=!1)=>{if(!v)return;le({type:J.Meta,data:{href:window.location.href,width:qh(),height:Wh()}},F),ye.reset(),it.init(),yt.forEach(Q=>Q.lock());let fe=Jb(document,{mirror:Ue,blockClass:t,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:l,maskAllInputs:ue,maskTextFn:h,maskInputFn:m,slimDOM:me,dataURLOptions:y,recordCanvas:w,inlineImages:B,onSerialize:Q=>{Hh(Q,Ue)&&Me.addIframe(Q),Xh(Q,Ue)&&ye.trackLinkElement(Q),Hs(Q)&&it.addShadowRoot(W.shadowRoot(Q),document)},onIframeLoad:(Q,ae)=>{Me.attachIframe(Q,ae),it.observeAttachShadow(Q)},onStylesheetLoad:(Q,ae)=>{ye.attachLinkElement(Q,ae)},keepIframeSrcFn:E});if(!fe)return console.warn("Failed to snapshot the document");le({type:J.FullSnapshot,data:{node:fe,initialOffset:Vh(window)}},F),yt.forEach(Q=>Q.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ye.adoptStyleSheets(document.adoptedStyleSheets,Ue.getId(document))};try{let F=[],fe=ae=>{var Ne;return G(nx)({mutationCb:T,mousemoveCb:(ee,Uo)=>le({type:J.IncrementalSnapshot,data:{source:Uo,positions:ee}}),mouseInteractionCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.MouseInteraction,...ee}}),scrollCb:Be,viewportResizeCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.ViewportResize,...ee}}),inputCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.Input,...ee}}),mediaInteractionCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.MediaInteraction,...ee}}),styleSheetRuleCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.StyleSheetRule,...ee}}),styleDeclarationCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.StyleDeclaration,...ee}}),canvasMutationCb:Te,fontCb:ee=>le({type:J.IncrementalSnapshot,data:{source:q.Font,...ee}}),selectionCb:ee=>{le({type:J.IncrementalSnapshot,data:{source:q.Selection,...ee}})},customElementCb:ee=>{le({type:J.IncrementalSnapshot,data:{source:q.CustomElement,...ee}})},blockClass:t,ignoreClass:s,ignoreSelector:a,maskTextClass:c,maskTextSelector:u,maskInputOptions:ue,inlineStylesheet:l,sampling:b,recordDOM:v,recordCanvas:w,inlineImages:B,userTriggeredOnInput:R,collectFonts:O,doc:ae,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:E,blockSelector:i,slimDOMOptions:me,dataURLOptions:y,mirror:Ue,iframeManager:Me,stylesheetManager:ye,shadowDomManager:it,processedNodeManager:vt,canvasManager:Ws,ignoreCSSAttributes:Ae,plugins:((Ne=j?.filter(ee=>ee.observer))==null?void 0:Ne.map(ee=>({observer:ee.observer,options:ee.options,callback:Uo=>le({type:J.Plugin,data:{plugin:ee.name,payload:Uo}})})))||[]},g)};Me.addLoadListener(ae=>{try{F.push(fe(ae.contentDocument))}catch(Ne){console.warn(Ne)}});let Q=()=>{En(),F.push(fe(document)),Rn=!0};return["interactive","complete"].includes(document.readyState)?Q():(F.push(be("DOMContentLoaded",()=>{le({type:J.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&Q()})),F.push(be("load",()=>{le({type:J.Load,data:{}}),C==="load"&&Q()},window))),()=>{F.forEach(ae=>{try{ae()}catch(Ne){String(Ne).toLowerCase().includes("cross-origin")||console.warn(Ne)}}),vt.destroy(),Rn=!1,Vw()}}catch(F){console.warn(F)}}We.addCustomEvent=(e,r)=>{if(!Rn)throw new Error("please add custom event after start recording");le({type:J.Custom,data:{tag:e,payload:r}})};We.freezePage=()=>{yt.forEach(e=>e.freeze())};We.takeFullSnapshot=e=>{if(!Rn)throw new Error("please take full snapshot after start recording");En(e)};We.mirror=Ue;var mh;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(mh||(mh={}));var qI=5*1e3;var{addCustomEvent:GI}=We,{freezePage:JI}=We,{takeFullSnapshot:HI}=We;function dx(e,r){return e[13]=1,e[14]=r>>8,e[15]=r&255,e[16]=r>>8,e[17]=r&255,e}var hm=112,mm=72,gm=89,vm=115,_a;function fx(){let e=new Int32Array(256);for(let r=0;r<256;r++){let n=r;for(let o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;e[r]=n}return e}function px(e){let r=-1;_a||(_a=fx());for(let n=0;n<e.length;n++)r=_a[(r^e[n])&255]^r>>>8;return r^-1}function hx(e){let r=e.length-1;for(let n=r;n>=4;n--)if(e[n-4]===9&&e[n-3]===hm&&e[n-2]===mm&&e[n-1]===gm&&e[n]===vm)return n-3;return 0}function mx(e,r,n=!1){let o=new Uint8Array(13);r*=39.3701,o[0]=hm,o[1]=mm,o[2]=gm,o[3]=vm,o[4]=r>>>24,o[5]=r>>>16,o[6]=r>>>8,o[7]=r&255,o[8]=o[4],o[9]=o[5],o[10]=o[6],o[11]=o[7],o[12]=1;let t=px(o),i=new Uint8Array(4);if(i[0]=t>>>24,i[1]=t>>>16,i[2]=t>>>8,i[3]=t&255,n){let s=hx(e);return e.set(o,s),e.set(i,s+13),e}else{let s=new Uint8Array(4);s[0]=0,s[1]=0,s[2]=0,s[3]=9;let a=new Uint8Array(54);return a.set(e,0),a.set(s,33),a.set(o,37),a.set(i,50),a}}var ym="[modern-screenshot]",st=typeof window<"u",gx=st&&"Worker"in window,vx=st&&"atob"in window,KI=st&&"btoa"in window,ka=st?window.navigator?.userAgent:"",bm=ka.includes("Chrome"),Gn=ka.includes("AppleWebKit")&&!bm,Ia=ka.includes("Firefox"),yx=e=>e&&"__CONTEXT__"in e,bx=e=>e.constructor.name==="CSSFontFaceRule",wx=e=>e.constructor.name==="CSSImportRule",xx=e=>e.constructor.name==="CSSLayerBlockRule",qe=e=>e.nodeType===1,Pr=e=>typeof e.className=="object",wm=e=>e.tagName==="image",_x=e=>e.tagName==="use",zr=e=>qe(e)&&typeof e.style<"u"&&!Pr(e),Sx=e=>e.nodeType===8,$x=e=>e.nodeType===3,Ft=e=>e.tagName==="IMG",Jn=e=>e.tagName==="VIDEO",kx=e=>e.tagName==="CANVAS",Ix=e=>e.tagName==="TEXTAREA",Ex=e=>e.tagName==="INPUT",Cx=e=>e.tagName==="STYLE",Ox=e=>e.tagName==="SCRIPT",Nx=e=>e.tagName==="SELECT",zx=e=>e.tagName==="SLOT",Dx=e=>e.tagName==="IFRAME",Tx=(...e)=>console.warn(ym,...e);function Px(e){let r=e?.createElement?.("canvas");return r&&(r.height=r.width=1),!!r&&"toDataURL"in r&&!!r.toDataURL("image/webp").includes("image/webp")}var Sa=e=>e.startsWith("data:");function xm(e,r){if(e.match(/^[a-z]+:\/\//i))return e;if(st&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!st)return e;let n=Hn().implementation.createHTMLDocument(),o=n.createElement("base"),t=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(t),r&&(o.href=r),t.href=e,t.href}function Hn(e){return(e&&qe(e)?e?.ownerDocument:e)??window.document}var Xn="http://www.w3.org/2000/svg";function Rx(e,r,n){let o=Hn(n).createElementNS(Xn,"svg");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",r.toString()),o.setAttributeNS(null,"viewBox",`0 0 ${e} ${r}`),o}function Ax(e,r){let n=new XMLSerializer().serializeToString(e);return r&&(n=n.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}async function Mx(e,r="image/png",n=1){try{return await new Promise((o,t)=>{e.toBlob(i=>{i?o(i):t(new Error("Blob is null"))},r,n)})}catch(o){if(vx)return Ux(e.toDataURL(r,n));throw o}}function Ux(e){let[r,n]=e.split(","),o=r.match(/data:(.+);/)?.[1]??void 0,t=window.atob(n),i=t.length,s=new Uint8Array(i);for(let a=0;a<i;a+=1)s[a]=t.charCodeAt(a);return new Blob([s],{type:o})}function _m(e,r){return new Promise((n,o)=>{let t=new FileReader;t.onload=()=>n(t.result),t.onerror=()=>o(t.error),t.onabort=()=>o(new Error(`Failed read blob to ${r}`)),r==="dataUrl"?t.readAsDataURL(e):r==="arrayBuffer"&&t.readAsArrayBuffer(e)})}var jx=e=>_m(e,"dataUrl"),Lx=e=>_m(e,"arrayBuffer");function Lt(e,r){let n=Hn(r).createElement("img");return n.decoding="sync",n.loading="eager",n.src=e,n}function Dr(e,r){return new Promise(n=>{let{timeout:o,ownerDocument:t,onError:i,onWarn:s}=r??{},a=typeof e=="string"?Lt(e,Hn(t)):e,c=null,u=null;function l(){n(a),c&&clearTimeout(c),u?.()}if(o&&(c=setTimeout(l,o)),Jn(a)){let p=a.currentSrc||a.src;if(!p)return a.poster?Dr(a.poster,r).then(n):l();if(a.readyState>=2)return l();let f=l,d=m=>{s?.("Failed video load",p,m),i?.(m),l()};u=()=>{a.removeEventListener("loadeddata",f),a.removeEventListener("error",d)},a.addEventListener("loadeddata",f,{once:!0}),a.addEventListener("error",d,{once:!0})}else{let p=wm(a)?a.href.baseVal:a.currentSrc||a.src;if(!p)return l();let f=async()=>{if(Ft(a)&&"decode"in a)try{await a.decode()}catch(m){s?.("Failed to decode image, trying to render anyway",a.dataset.originalSrc||p,m)}l()},d=m=>{s?.("Failed image load",a.dataset.originalSrc||p,m),l()};if(Ft(a)&&a.complete)return f();u=()=>{a.removeEventListener("load",f),a.removeEventListener("error",d)},a.addEventListener("load",f,{once:!0}),a.addEventListener("error",d,{once:!0})}})}async function Fx(e,r){zr(e)&&(Ft(e)||Jn(e)?await Dr(e,r):await Promise.all(["img","video"].flatMap(n=>Array.from(e.querySelectorAll(n)).map(o=>Dr(o,r)))))}var Sm=(function(){let r=0,n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${n()}${r}`)})();function $m(e){return e?.split(",").map(r=>r.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var lm=0;function Zx(e){let r=`${ym}[#${lm}]`;return lm++,{time:n=>e&&console.time(`${r} ${n}`),timeEnd:n=>e&&console.timeEnd(`${r} ${n}`),warn:(...n)=>e&&Tx(...n)}}function Bx(e){return{cache:e?"no-cache":"force-cache"}}async function Ea(e,r){return yx(e)?e:Vx(e,{...r,autoDestruct:!0})}async function Vx(e,r){let{scale:n=1,workerUrl:o,workerNumber:t=1}=r||{},i=!!r?.debug,s=r?.features??!0,a=e.ownerDocument??(st?window.document:void 0),c=e.ownerDocument?.defaultView??(st?window:void 0),u=new Map,l={width:0,height:0,quality:1,type:"image/png",scale:n,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:i,fetch:{requestInit:Bx(r?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...r?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:t,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...r,__CONTEXT__:!0,log:Zx(i),node:e,ownerDocument:a,ownerWindow:c,dpi:n===1?null:96*n,svgStyleElement:km(a),svgDefsElement:a?.createElementNS(Xn,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:gx&&o&&t?t:0})].map(()=>{try{let d=new Worker(o);return d.onmessage=async m=>{let{url:h,result:g}=m.data;g?u.get(h)?.resolve?.(g):u.get(h)?.reject?.(new Error(`Error receiving message from worker: ${h}`))},d.onmessageerror=m=>{let{url:h}=m.data;u.get(h)?.reject?.(new Error(`Error receiving message from worker: ${h}`))},d}catch(d){return l.log.warn("Failed to new Worker",d),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[Px(a)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:u,drawImageCount:0,tasks:[],features:s,isEnable:d=>d==="restoreScrollPosition"?typeof s=="boolean"?!1:s[d]??!1:typeof s=="boolean"?s:s[d]??!0,shadowRoots:[]};l.log.time("wait until load"),await Fx(e,{timeout:l.timeout,onWarn:l.log.warn}),l.log.timeEnd("wait until load");let{width:p,height:f}=Wx(e,l);return l.width=p,l.height=f,l}function km(e){if(!e)return;let r=e.createElement("style"),n=r.ownerDocument.createTextNode(`
129
+ .______background-clip--text {
130
+ background-clip: text;
131
+ -webkit-background-clip: text;
132
+ }
133
+ `);return r.appendChild(n),r}function Wx(e,r){let{width:n,height:o}=r;if(qe(e)&&(!n||!o)){let t=e.getBoundingClientRect();n=n||t.width||Number(e.getAttribute("width"))||0,o=o||t.height||Number(e.getAttribute("height"))||0}return{width:n,height:o}}async function qx(e,r){let{log:n,timeout:o,drawImageCount:t,drawImageInterval:i}=r;n.time("image to canvas");let s=await Dr(e,{timeout:o,onWarn:r.log.warn}),{canvas:a,context2d:c}=Gx(e.ownerDocument,r),u=()=>{try{c?.drawImage(s,0,0,a.width,a.height)}catch(l){r.log.warn("Failed to drawImage",l)}};if(u(),r.isEnable("fixSvgXmlDecode"))for(let l=0;l<t;l++)await new Promise(p=>{setTimeout(()=>{c?.clearRect(0,0,a.width,a.height),u(),p()},l+i)});return r.drawImageCount=0,n.timeEnd("image to canvas"),a}function Gx(e,r){let{width:n,height:o,scale:t,backgroundColor:i,maximumCanvasSize:s}=r,a=e.createElement("canvas");a.width=Math.floor(n*t),a.height=Math.floor(o*t),a.style.width=`${n}px`,a.style.height=`${o}px`,s&&(a.width>s||a.height>s)&&(a.width>s&&a.height>s?a.width>a.height?(a.height*=s/a.width,a.width=s):(a.width*=s/a.height,a.height=s):a.width>s?(a.height*=s/a.width,a.width=s):(a.width*=s/a.height,a.height=s));let c=a.getContext("2d");return c&&i&&(c.fillStyle=i,c.fillRect(0,0,a.width,a.height)),{canvas:a,context2d:c}}function Im(e,r){if(e.ownerDocument)try{let i=e.toDataURL();if(i!=="data:,")return Lt(i,e.ownerDocument)}catch(i){r.log.warn("Failed to clone canvas",i)}let n=e.cloneNode(!1),o=e.getContext("2d"),t=n.getContext("2d");try{return o&&t&&t.putImageData(o.getImageData(0,0,e.width,e.height),0,0),n}catch(i){r.log.warn("Failed to clone canvas",i)}return n}function Jx(e,r){try{if(e?.contentDocument?.documentElement)return Ca(e.contentDocument.documentElement,r)}catch(n){r.log.warn("Failed to clone iframe",n)}return e.cloneNode(!1)}function Hx(e){let r=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager"),r}async function Xx(e,r){if(e.ownerDocument&&!e.currentSrc&&e.poster)return Lt(e.poster,e.ownerDocument);let n=e.cloneNode(!1);n.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc);let o=n.ownerDocument;if(o){let t=!0;if(await Dr(n,{onError:()=>t=!1,onWarn:r.log.warn}),!t)return e.poster?Lt(e.poster,e.ownerDocument):n;n.currentTime=e.currentTime,await new Promise(s=>{n.addEventListener("seeked",s,{once:!0})});let i=o.createElement("canvas");i.width=e.offsetWidth,i.height=e.offsetHeight;try{let s=i.getContext("2d");s&&s.drawImage(n,0,0,i.width,i.height)}catch(s){return r.log.warn("Failed to clone video",s),e.poster?Lt(e.poster,e.ownerDocument):n}return Im(i,r)}return n}function Kx(e,r){return kx(e)?Im(e,r):Dx(e)?Jx(e,r):Ft(e)?Hx(e):Jn(e)?Xx(e,r):e.cloneNode(!1)}function Yx(e){let r=e.sandbox;if(!r){let{ownerDocument:n}=e;try{n&&(r=n.createElement("iframe"),r.id=`__SANDBOX__${Sm()}`,r.width="0",r.height="0",r.style.visibility="hidden",r.style.position="fixed",n.body.appendChild(r),r.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',e.sandbox=r)}catch(o){e.log.warn("Failed to getSandBox",o)}}return r}var Qx=["width","height","-webkit-text-fill-color"],e_=["stroke","fill"];function Em(e,r,n){let{defaultComputedStyles:o}=n,t=e.nodeName.toLowerCase(),i=Pr(e)&&t!=="svg",s=i?e_.map(h=>[h,e.getAttribute(h)]).filter(([,h])=>h!==null):[],a=[i&&"svg",t,s.map((h,g)=>`${h}=${g}`).join(","),r].filter(Boolean).join(":");if(o.has(a))return o.get(a);let u=Yx(n)?.contentWindow;if(!u)return new Map;let l=u?.document,p,f;i?(p=l.createElementNS(Xn,"svg"),f=p.ownerDocument.createElementNS(p.namespaceURI,t),s.forEach(([h,g])=>{f.setAttributeNS(null,h,g)}),p.appendChild(f)):p=f=l.createElement(t),f.textContent=" ",l.body.appendChild(p);let d=u.getComputedStyle(f,r),m=new Map;for(let h=d.length,g=0;g<h;g++){let x=d.item(g);Qx.includes(x)||m.set(x,d.getPropertyValue(x))}return l.body.removeChild(p),o.set(a,m),m}function Cm(e,r,n){let o=new Map,t=[],i=new Map;if(n)for(let a of n)s(a);else for(let a=e.length,c=0;c<a;c++){let u=e.item(c);s(u)}for(let a=t.length,c=0;c<a;c++)i.get(t[c])?.forEach((u,l)=>o.set(l,u));function s(a){let c=e.getPropertyValue(a),u=e.getPropertyPriority(a),l=a.lastIndexOf("-"),p=l>-1?a.substring(0,l):void 0;if(p){let f=i.get(p);f||(f=new Map,i.set(p,f)),f.set(a,[c,u])}r.get(a)===c&&!u||(p?t.push(p):o.set(a,[c,u]))}return o}function t_(e,r,n,o){let{ownerWindow:t,includeStyleProperties:i,currentParentNodeStyle:s}=o,a=r.style,c=t.getComputedStyle(e),u=Em(e,null,o);s?.forEach((p,f)=>{u.delete(f)});let l=Cm(c,u,i);l.delete("transition-property"),l.delete("all"),l.delete("d"),l.delete("content"),n&&(l.delete("position"),l.delete("margin-top"),l.delete("margin-right"),l.delete("margin-bottom"),l.delete("margin-left"),l.delete("margin-block-start"),l.delete("margin-block-end"),l.delete("margin-inline-start"),l.delete("margin-inline-end"),l.set("box-sizing",["border-box",""])),l.get("background-clip")?.[0]==="text"&&r.classList.add("______background-clip--text"),bm&&(l.has("font-kerning")||l.set("font-kerning",["normal",""]),(l.get("overflow-x")?.[0]==="hidden"||l.get("overflow-y")?.[0]==="hidden")&&l.get("text-overflow")?.[0]==="ellipsis"&&e.scrollWidth===e.clientWidth&&l.set("text-overflow",["clip",""]));for(let p=a.length,f=0;f<p;f++)a.removeProperty(a.item(f));return l.forEach(([p,f],d)=>{a.setProperty(d,p,f)}),l}function r_(e,r){(Ix(e)||Ex(e)||Nx(e))&&r.setAttribute("value",e.value)}var n_=["::before","::after"],i_=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function o_(e,r,n,o,t){let{ownerWindow:i,svgStyleElement:s,svgStyles:a,currentNodeStyle:c}=o;if(!s||!i)return;function u(l){let p=i.getComputedStyle(e,l),f=p.getPropertyValue("content");if(!f||f==="none")return;t?.(f),f=f.replace(/(')|(")|(counter\(.+\))/g,"");let d=[Sm()],m=Em(e,l,o);c?.forEach((y,_)=>{m.delete(_)});let h=Cm(p,m,o.includeStyleProperties);h.delete("content"),h.delete("-webkit-locale"),h.get("background-clip")?.[0]==="text"&&r.classList.add("______background-clip--text");let g=[`content: '${f}';`];if(h.forEach(([y,_],v)=>{g.push(`${v}: ${y}${_?" !important":""};`)}),g.length===1)return;try{r.className=[r.className,...d].join(" ")}catch(y){o.log.warn("Failed to copyPseudoClass",y);return}let x=g.join(`
134
+ `),b=a.get(x);b||(b=[],a.set(x,b)),b.push(`.${d[0]}${l}`)}n_.forEach(u),n&&i_.forEach(u)}var cm=new Set(["symbol"]);async function um(e,r,n,o,t){if(qe(n)&&(Cx(n)||Ox(n))||o.filter&&!o.filter(n))return;cm.has(r.nodeName)||cm.has(n.nodeName)?o.currentParentNodeStyle=void 0:o.currentParentNodeStyle=o.currentNodeStyle;let i=await Ca(n,o,!1,t);o.isEnable("restoreScrollPosition")&&s_(e,i),r.appendChild(i)}async function dm(e,r,n,o){let t=e.firstChild;qe(e)&&e.shadowRoot&&(t=e.shadowRoot?.firstChild,n.shadowRoots.push(e.shadowRoot));for(let i=t;i;i=i.nextSibling)if(!Sx(i))if(qe(i)&&zx(i)&&typeof i.assignedNodes=="function"){let s=i.assignedNodes();for(let a=0;a<s.length;a++)await um(e,r,s[a],n,o)}else await um(e,r,i,n,o)}function s_(e,r){if(!zr(e)||!zr(r))return;let{scrollTop:n,scrollLeft:o}=e;if(!n&&!o)return;let{transform:t}=r.style,i=new DOMMatrix(t),{a:s,b:a,c,d:u}=i;i.a=1,i.b=0,i.c=0,i.d=1,i.translateSelf(-o,-n),i.a=s,i.b=a,i.c=c,i.d=u,r.style.transform=i.toString()}function a_(e,r){let{backgroundColor:n,width:o,height:t,style:i}=r,s=e.style;if(n&&s.setProperty("background-color",n,"important"),o&&s.setProperty("width",`${o}px`,"important"),t&&s.setProperty("height",`${t}px`,"important"),i)for(let a in i)s[a]=i[a]}var l_=/^[\w-:]+$/;async function Ca(e,r,n=!1,o){let{ownerDocument:t,ownerWindow:i,fontFamilies:s,onCloneEachNode:a}=r;if(t&&$x(e))return o&&/\S/.test(e.data)&&o(e.data),t.createTextNode(e.data);if(t&&i&&qe(e)&&(zr(e)||Pr(e))){let u=await Kx(e,r);if(r.isEnable("removeAbnormalAttributes")){let h=u.getAttributeNames();for(let g=h.length,x=0;x<g;x++){let b=h[x];l_.test(b)||u.removeAttribute(b)}}let l=r.currentNodeStyle=t_(e,u,n,r);n&&a_(u,r);let p=!1;if(r.isEnable("copyScrollbar")){let h=[l.get("overflow-x")?.[0],l.get("overflow-y")?.[0]];p=h.includes("scroll")||(h.includes("auto")||h.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}let f=l.get("text-transform")?.[0],d=$m(l.get("font-family")?.[0]),m=d?h=>{f==="uppercase"?h=h.toUpperCase():f==="lowercase"?h=h.toLowerCase():f==="capitalize"&&(h=h[0].toUpperCase()+h.substring(1)),d.forEach(g=>{let x=s.get(g);x||s.set(g,x=new Set),h.split("").forEach(b=>x.add(b))})}:void 0;return o_(e,u,p,r,m),r_(e,u),Jn(e)||await dm(e,u,r,m),await a?.(u),u}let c=e.cloneNode(!1);return await dm(e,c,r),await a?.(c),c}function c_(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(r){e.log.warn("Failed to destroyContext",r)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}function u_(e){let{url:r,timeout:n,responseType:o,...t}=e,i=new AbortController,s=n?setTimeout(()=>i.abort(),n):void 0;return fetch(r,{signal:i.signal,...t}).then(a=>{if(!a.ok)throw new Error("Failed fetch, not 2xx response",{cause:a});switch(o){case"arrayBuffer":return a.arrayBuffer();case"dataUrl":return a.blob().then(jx);default:return a.text()}}).finally(()=>clearTimeout(s))}function Tr(e,r){let{url:n,requestType:o="text",responseType:t="text",imageDom:i}=r,s=n,{timeout:a,acceptOfImage:c,requests:u,fetchFn:l,fetch:{requestInit:p,bypassingCache:f,placeholderImage:d},font:m,workers:h,fontFamilies:g}=e;o==="image"&&(Gn||Ia)&&e.drawImageCount++;let x=u.get(n);if(!x){f&&f instanceof RegExp&&f.test(s)&&(s+=(/\?/.test(s)?"&":"?")+new Date().getTime());let b=o.startsWith("font")&&m&&m.minify,y=new Set;b&&o.split(";")[1].split(",").forEach(S=>{g.has(S)&&g.get(S).forEach(C=>y.add(C))});let _=b&&y.size,v={url:s,timeout:a,responseType:_?"arrayBuffer":t,headers:o==="image"?{accept:c}:void 0,...p};x={type:o,resolve:void 0,reject:void 0,response:null},x.response=(async()=>{if(l&&o==="image"){let w=await l(n);if(w)return w}return!Gn&&n.startsWith("http")&&h.length?new Promise((w,S)=>{h[u.size&h.length-1].postMessage({rawUrl:n,...v}),x.resolve=w,x.reject=S}):u_(v)})().catch(w=>{if(u.delete(n),o==="image"&&d)return e.log.warn("Failed to fetch image base64, trying to use placeholder image",s),typeof d=="string"?d:d(i);throw w}),u.set(n,x)}return x.response}async function Om(e,r,n,o){if(!Nm(e))return e;for(let[t,i]of d_(e,r))try{let s=await Tr(n,{url:i,requestType:o?"image":"text",responseType:"dataUrl"});e=e.replace(f_(t),`$1${s}$3`)}catch(s){n.log.warn("Failed to fetch css data url",t,s)}return e}function Nm(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}var zm=/url\((['"]?)([^'"]+?)\1\)/g;function d_(e,r){let n=[];return e.replace(zm,(o,t,i)=>(n.push([i,xm(i,r)]),o)),n.filter(([o])=>!Sa(o))}function f_(e){let r=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${r})(['"]?\\))`,"g")}var p_=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function h_(e,r){return p_.map(n=>{let o=e.getPropertyValue(n);return!o||o==="none"?null:((Gn||Ia)&&r.drawImageCount++,Om(o,null,r,!0).then(t=>{!t||o===t||e.setProperty(n,t,e.getPropertyPriority(n))}))}).filter(Boolean)}function m_(e,r){if(Ft(e)){let n=e.currentSrc||e.src;if(!Sa(n))return[Tr(r,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(o=>{o&&(e.srcset="",e.dataset.originalSrc=n,e.src=o||"")})];(Gn||Ia)&&r.drawImageCount++}else if(Pr(e)&&!Sa(e.href.baseVal)){let n=e.href.baseVal;return[Tr(r,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(o=>{o&&(e.dataset.originalSrc=n,e.href.baseVal=o||"")})]}return[]}function g_(e,r){let{ownerDocument:n,svgDefsElement:o}=r,t=e.getAttribute("href")??e.getAttribute("xlink:href");if(!t)return[];let[i,s]=t.split("#");if(s){let a=`#${s}`,c=r.shadowRoots.reduce((u,l)=>u??l.querySelector(`svg ${a}`),n?.querySelector(`svg ${a}`));if(i&&e.setAttribute("href",a),o?.querySelector(a))return[];if(c)return o?.appendChild(c.cloneNode(!0)),[];if(i)return[Tr(r,{url:i,responseType:"text"}).then(u=>{o?.insertAdjacentHTML("beforeend",u)})]}return[]}function Dm(e,r){let{tasks:n}=r;qe(e)&&((Ft(e)||wm(e))&&n.push(...m_(e,r)),_x(e)&&n.push(...g_(e,r))),zr(e)&&n.push(...h_(e.style,r)),e.childNodes.forEach(o=>{Dm(o,r)})}async function v_(e,r){let{ownerDocument:n,svgStyleElement:o,fontFamilies:t,fontCssTexts:i,tasks:s,font:a}=r;if(!(!n||!o||!t.size))if(a&&a.cssText){let c=pm(a.cssText,r);o.appendChild(n.createTextNode(`${c}
135
+ `))}else{let c=Array.from(n.styleSheets).filter(d=>{try{return"cssRules"in d&&!!d.cssRules.length}catch(m){return r.log.warn(`Error while reading CSS rules from ${d.href}`,m),!1}}),u=n.implementation.createHTMLDocument(""),l=u.createElement("style");u.head.appendChild(l);let p=l.sheet;await Promise.all(c.flatMap(d=>Array.from(d.cssRules).map(async m=>{if(wx(m)){let h=m.href,g="";try{g=await Tr(r,{url:h,requestType:"text",responseType:"text"})}catch(b){r.log.warn(`Error fetch remote css import from ${h}`,b)}let x=g.replace(zm,(b,y,_)=>b.replace(_,xm(_,h)));for(let b of b_(x))try{p.insertRule(b,p.cssRules.length)}catch(y){r.log.warn("Error inserting rule from remote css import",{rule:b,error:y})}}}))),p.cssRules.length&&c.push(p);let f=[];c.forEach(d=>{$a(d.cssRules,f)}),f.filter(d=>bx(d)&&Nm(d.style.getPropertyValue("src"))&&$m(d.style.getPropertyValue("font-family"))?.some(m=>t.has(m))).forEach(d=>{let m=d,h=i.get(m.cssText);h?o.appendChild(n.createTextNode(`${h}
136
+ `)):s.push(Om(m.cssText,m.parentStyleSheet?m.parentStyleSheet.href:null,r).then(g=>{g=pm(g,r),i.set(m.cssText,g),o.appendChild(n.createTextNode(`${g}
137
+ `))}))})}}var y_=/(\/\*[\s\S]*?\*\/)/g,fm=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function b_(e){if(e==null)return[];let r=[],n=e.replace(y_,"");for(;;){let i=fm.exec(n);if(!i)break;r.push(i[0])}n=n.replace(fm,"");let o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,t=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let i=o.exec(n);if(i)t.lastIndex=o.lastIndex;else if(i=t.exec(n),i)o.lastIndex=t.lastIndex;else break;r.push(i[0])}return r}var w_=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,x_=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function pm(e,r){let{font:n}=r,o=n?n?.preferredFormat:void 0;return o?e.replace(x_,t=>{for(;;){let[i,,s]=w_.exec(t)||[];if(!s)return"";if(s===o)return`src: ${i};`}}):e}function $a(e,r=[]){for(let n of Array.from(e))xx(n)?r.push(...$a(n.cssRules)):"cssRules"in n?$a(n.cssRules,r):r.push(n);return r}var __=/\bx?link:?href\s*=\s*["'](?!data:)[^"']+["']/i;function S_(e){return __.test(e.innerHTML)}async function $_(e,r){let n=await Ea(e,r);if(qe(n.node)&&Pr(n.node)&&!S_(n.node))return n.node;let{ownerDocument:o,log:t,tasks:i,svgStyleElement:s,svgDefsElement:a,svgStyles:c,font:u,progress:l,autoDestruct:p,onCloneNode:f,onEmbedNode:d,onCreateForeignObjectSvg:m}=n;t.time("clone node");let h=await Ca(n.node,n,!0);if(s&&o){let _="";c.forEach((v,w)=>{_+=`${v.join(`,
138
+ `)} {
139
+ ${w}
140
+ }
141
+ `}),s.appendChild(o.createTextNode(_))}t.timeEnd("clone node"),await f?.(h),u!==!1&&qe(h)&&(t.time("embed web font"),await v_(h,n),t.timeEnd("embed web font")),t.time("embed node"),Dm(h,n);let g=i.length,x=0,b=async()=>{for(;;){let _=i.pop();if(!_)break;try{await _}catch(v){n.log.warn("Failed to run task",v)}l?.(++x,g)}};l?.(x,g),await Promise.all([...Array.from({length:4})].map(b)),t.timeEnd("embed node"),await d?.(h);let y=k_(h,n);return a&&y.insertBefore(a,y.children[0]),s&&y.insertBefore(s,y.children[0]),p&&c_(n),await m?.(y),y}function k_(e,r){let{width:n,height:o}=r,t=Rx(n,o,e.ownerDocument),i=t.ownerDocument.createElementNS(t.namespaceURI,"foreignObject");return i.setAttributeNS(null,"x","0%"),i.setAttributeNS(null,"y","0%"),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.append(e),t.appendChild(i),t}async function I_(e,r){let n=await Ea(e,r),o=await $_(n),t=Ax(o,n.isEnable("removeControlCharacter"));n.autoDestruct||(n.svgStyleElement=km(n.ownerDocument),n.svgDefsElement=n.ownerDocument?.createElementNS(Xn,"defs"),n.svgStyles.clear());let i=Lt(t,o.ownerDocument);return await qx(i,n)}async function Tm(e,r){let n=await Ea(e,r),{log:o,type:t,quality:i,dpi:s}=n,a=await I_(n);o.time("canvas to blob");let c=await Mx(a,t,i);if(["image/png","image/jpeg"].includes(t)&&s){let u=await Lx(c.slice(0,33)),l=new Uint8Array(u);return t==="image/png"?l=mx(l,s):t==="image/jpeg"&&(l=dx(l,s)),o.timeEnd("canvas to blob"),new Blob([l,c.slice(33)],{type:t})}return o.timeEnd("canvas to blob"),c}var $={};Ve($,{$brand:()=>Na,$input:()=>Kc,$output:()=>Xc,NEVER:()=>Oa,TimePrecision:()=>tu,ZodAny:()=>Vd,ZodArray:()=>Jd,ZodBase64:()=>$o,ZodBase64URL:()=>ko,ZodBigInt:()=>yr,ZodBigIntFormat:()=>Co,ZodBoolean:()=>vr,ZodCIDRv4:()=>_o,ZodCIDRv6:()=>So,ZodCUID:()=>mo,ZodCUID2:()=>go,ZodCatch:()=>vf,ZodCodec:()=>pn,ZodCustom:()=>hn,ZodCustomStringFormat:()=>mr,ZodDate:()=>ln,ZodDefault:()=>df,ZodDiscriminatedUnion:()=>Xd,ZodE164:()=>Io,ZodEmail:()=>fo,ZodEmoji:()=>po,ZodEnum:()=>pr,ZodError:()=>nk,ZodExactOptional:()=>lf,ZodFile:()=>sf,ZodFirstPartyTypeKind:()=>Nf,ZodFunction:()=>Ef,ZodGUID:()=>rn,ZodIPv4:()=>wo,ZodIPv6:()=>xo,ZodISODate:()=>oo,ZodISODateTime:()=>io,ZodISODuration:()=>ao,ZodISOTime:()=>so,ZodIntersection:()=>Kd,ZodIssueCode:()=>ok,ZodJWT:()=>Eo,ZodKSUID:()=>bo,ZodLazy:()=>$f,ZodLiteral:()=>of,ZodMAC:()=>Md,ZodMap:()=>rf,ZodNaN:()=>bf,ZodNanoID:()=>ho,ZodNever:()=>qd,ZodNonOptional:()=>Po,ZodNull:()=>Zd,ZodNullable:()=>uf,ZodNumber:()=>gr,ZodNumberFormat:()=>zt,ZodObject:()=>un,ZodOptional:()=>To,ZodPipe:()=>fn,ZodPrefault:()=>pf,ZodPreprocess:()=>wf,ZodPromise:()=>If,ZodReadonly:()=>xf,ZodRealError:()=>Ce,ZodRecord:()=>fr,ZodSet:()=>nf,ZodString:()=>hr,ZodStringFormat:()=>re,ZodSuccess:()=>gf,ZodSymbol:()=>Ld,ZodTemplateLiteral:()=>Sf,ZodTransform:()=>af,ZodTuple:()=>Qd,ZodType:()=>Z,ZodULID:()=>vo,ZodURL:()=>an,ZodUUID:()=>Xe,ZodUndefined:()=>Fd,ZodUnion:()=>dn,ZodUnknown:()=>Wd,ZodVoid:()=>Gd,ZodXID:()=>yo,ZodXor:()=>Hd,_ZodString:()=>uo,_default:()=>ff,_function:()=>xy,any:()=>Yv,array:()=>cn,base64:()=>Rv,base64url:()=>Av,bigint:()=>Gv,boolean:()=>jd,catch:()=>yf,check:()=>_y,cidrv4:()=>Tv,cidrv6:()=>Pv,clone:()=>xe,codec:()=>vy,coerce:()=>zf,config:()=>ce,core:()=>rt,cuid:()=>kv,cuid2:()=>Iv,custom:()=>Sy,date:()=>ey,decode:()=>Nd,decodeAsync:()=>Dd,describe:()=>$y,discriminatedUnion:()=>sy,e164:()=>Mv,email:()=>mv,emoji:()=>Sv,encode:()=>Od,encodeAsync:()=>zd,endsWith:()=>rr,enum:()=>zo,exactOptional:()=>cf,file:()=>py,flattenError:()=>Zr,float32:()=>Bv,float64:()=>Vv,formatError:()=>Br,fromJSONSchema:()=>zy,function:()=>xy,getErrorMap:()=>ak,globalRegistry:()=>he,gt:()=>Je,gte:()=>Se,guid:()=>gv,hash:()=>Zv,hex:()=>Fv,hostname:()=>Lv,httpUrl:()=>_v,includes:()=>er,instanceof:()=>Iy,int:()=>lo,int32:()=>Wv,int64:()=>Jv,intersection:()=>Yd,invertCodec:()=>yy,ipv4:()=>Nv,ipv6:()=>Dv,iso:()=>dr,json:()=>Cy,jwt:()=>Uv,keyof:()=>ty,ksuid:()=>Ov,lazy:()=>kf,length:()=>Ot,literal:()=>fy,locales:()=>Kr,looseObject:()=>iy,looseRecord:()=>ly,lowercase:()=>Yt,lt:()=>Ge,lte:()=>De,mac:()=>zv,map:()=>cy,maxLength:()=>Ct,maxSize:()=>pt,meta:()=>ky,mime:()=>nr,minLength:()=>tt,minSize:()=>He,multipleOf:()=>ft,nan:()=>gy,nanoid:()=>$v,nativeEnum:()=>dy,negative:()=>Ji,never:()=>Oo,nonnegative:()=>Xi,nonoptional:()=>mf,nonpositive:()=>Hi,normalize:()=>ir,null:()=>Bd,nullable:()=>on,nullish:()=>hy,number:()=>Ud,object:()=>ry,optional:()=>nn,overwrite:()=>Ze,parse:()=>kd,parseAsync:()=>Id,partialRecord:()=>ay,pipe:()=>co,positive:()=>Gi,prefault:()=>hf,preprocess:()=>Oy,prettifyError:()=>Ba,promise:()=>wy,property:()=>Ki,readonly:()=>_f,record:()=>tf,refine:()=>Cf,regex:()=>Kt,regexes:()=>ze,registry:()=>Ii,safeDecode:()=>Pd,safeDecodeAsync:()=>Ad,safeEncode:()=>Td,safeEncodeAsync:()=>Rd,safeParse:()=>Ed,safeParseAsync:()=>Cd,set:()=>uy,setErrorMap:()=>sk,size:()=>Et,slugify:()=>lr,startsWith:()=>tr,strictObject:()=>ny,string:()=>tn,stringFormat:()=>jv,stringbool:()=>Ey,success:()=>my,superRefine:()=>Of,symbol:()=>Xv,templateLiteral:()=>by,toJSONSchema:()=>to,toLowerCase:()=>sr,toUpperCase:()=>ar,transform:()=>Do,treeifyError:()=>Za,trim:()=>or,tuple:()=>ef,uint32:()=>qv,uint64:()=>Hv,ulid:()=>Ev,undefined:()=>Kv,union:()=>No,unknown:()=>Nt,uppercase:()=>Qt,url:()=>xv,util:()=>D,uuid:()=>vv,uuidv4:()=>yv,uuidv6:()=>bv,uuidv7:()=>wv,void:()=>Qv,xid:()=>Cv,xor:()=>oy});var rt={};Ve(rt,{$ZodAny:()=>yc,$ZodArray:()=>Sc,$ZodAsyncError:()=>Fe,$ZodBase64:()=>lc,$ZodBase64URL:()=>cc,$ZodBigInt:()=>yi,$ZodBigIntFormat:()=>hc,$ZodBoolean:()=>Gr,$ZodCIDRv4:()=>oc,$ZodCIDRv6:()=>sc,$ZodCUID:()=>Gl,$ZodCUID2:()=>Jl,$ZodCatch:()=>Fc,$ZodCheck:()=>ne,$ZodCheckBigIntFormat:()=>Sl,$ZodCheckEndsWith:()=>Rl,$ZodCheckGreaterThan:()=>fi,$ZodCheckIncludes:()=>Tl,$ZodCheckLengthEquals:()=>Ol,$ZodCheckLessThan:()=>di,$ZodCheckLowerCase:()=>zl,$ZodCheckMaxLength:()=>El,$ZodCheckMaxSize:()=>$l,$ZodCheckMimeType:()=>Ml,$ZodCheckMinLength:()=>Cl,$ZodCheckMinSize:()=>kl,$ZodCheckMultipleOf:()=>xl,$ZodCheckNumberFormat:()=>_l,$ZodCheckOverwrite:()=>Ul,$ZodCheckProperty:()=>Al,$ZodCheckRegex:()=>Nl,$ZodCheckSizeEquals:()=>Il,$ZodCheckStartsWith:()=>Pl,$ZodCheckStringFormat:()=>Ht,$ZodCheckUpperCase:()=>Dl,$ZodCodec:()=>Hr,$ZodCustom:()=>Hc,$ZodCustomStringFormat:()=>fc,$ZodDate:()=>_c,$ZodDefault:()=>Mc,$ZodDiscriminatedUnion:()=>Ic,$ZodE164:()=>uc,$ZodEmail:()=>Bl,$ZodEmoji:()=>Wl,$ZodEncodeError:()=>at,$ZodEnum:()=>zc,$ZodError:()=>Fr,$ZodExactOptional:()=>Rc,$ZodFile:()=>Tc,$ZodFunction:()=>qc,$ZodGUID:()=>Fl,$ZodIPv4:()=>rc,$ZodIPv6:()=>nc,$ZodISODate:()=>Ql,$ZodISODateTime:()=>Yl,$ZodISODuration:()=>tc,$ZodISOTime:()=>ec,$ZodIntersection:()=>Ec,$ZodJWT:()=>dc,$ZodKSUID:()=>Kl,$ZodLazy:()=>Jc,$ZodLiteral:()=>Dc,$ZodMAC:()=>ic,$ZodMap:()=>Oc,$ZodNaN:()=>Zc,$ZodNanoID:()=>ql,$ZodNever:()=>wc,$ZodNonOptional:()=>jc,$ZodNull:()=>vc,$ZodNullable:()=>Ac,$ZodNumber:()=>vi,$ZodNumberFormat:()=>pc,$ZodObject:()=>ug,$ZodObjectJIT:()=>$c,$ZodOptional:()=>wi,$ZodPipe:()=>xi,$ZodPrefault:()=>Uc,$ZodPreprocess:()=>Bc,$ZodPromise:()=>Gc,$ZodReadonly:()=>Vc,$ZodRealError:()=>Ee,$ZodRecord:()=>Cc,$ZodRegistry:()=>ki,$ZodSet:()=>Nc,$ZodString:()=>It,$ZodStringFormat:()=>te,$ZodSuccess:()=>Lc,$ZodSymbol:()=>mc,$ZodTemplateLiteral:()=>Wc,$ZodTransform:()=>Pc,$ZodTuple:()=>bi,$ZodType:()=>L,$ZodULID:()=>Hl,$ZodURL:()=>Vl,$ZodUUID:()=>Zl,$ZodUndefined:()=>gc,$ZodUnion:()=>Jr,$ZodUnknown:()=>bc,$ZodVoid:()=>xc,$ZodXID:()=>Xl,$ZodXor:()=>kc,$brand:()=>Na,$constructor:()=>k,$input:()=>Kc,$output:()=>Xc,Doc:()=>qr,JSONSchema:()=>fv,JSONSchemaGenerator:()=>ro,NEVER:()=>Oa,TimePrecision:()=>tu,_any:()=>_u,_array:()=>Ou,_base64:()=>Bi,_base64url:()=>Vi,_bigint:()=>mu,_boolean:()=>pu,_catch:()=>H$,_check:()=>dv,_cidrv4:()=>Fi,_cidrv6:()=>Zi,_coercedBigint:()=>gu,_coercedBoolean:()=>hu,_coercedDate:()=>Eu,_coercedNumber:()=>au,_coercedString:()=>Qc,_cuid:()=>Pi,_cuid2:()=>Ri,_custom:()=>zu,_date:()=>Iu,_decode:()=>ri,_decodeAsync:()=>ii,_default:()=>q$,_discriminatedUnion:()=>P$,_e164:()=>Wi,_email:()=>Ei,_emoji:()=>Di,_encode:()=>ti,_encodeAsync:()=>ni,_endsWith:()=>rr,_enum:()=>L$,_file:()=>Nu,_float32:()=>cu,_float64:()=>uu,_gt:()=>Je,_gte:()=>Se,_guid:()=>Yr,_includes:()=>er,_int:()=>lu,_int32:()=>du,_int64:()=>vu,_intersection:()=>R$,_ipv4:()=>ji,_ipv6:()=>Li,_isoDate:()=>nu,_isoDateTime:()=>ru,_isoDuration:()=>ou,_isoTime:()=>iu,_jwt:()=>qi,_ksuid:()=>Ui,_lazy:()=>Q$,_length:()=>Ot,_literal:()=>Z$,_lowercase:()=>Yt,_lt:()=>Ge,_lte:()=>De,_mac:()=>eu,_map:()=>U$,_max:()=>De,_maxLength:()=>Ct,_maxSize:()=>pt,_mime:()=>nr,_min:()=>Se,_minLength:()=>tt,_minSize:()=>He,_multipleOf:()=>ft,_nan:()=>Cu,_nanoid:()=>Ti,_nativeEnum:()=>F$,_negative:()=>Ji,_never:()=>$u,_nonnegative:()=>Xi,_nonoptional:()=>G$,_nonpositive:()=>Hi,_normalize:()=>ir,_null:()=>xu,_nullable:()=>W$,_number:()=>su,_optional:()=>V$,_overwrite:()=>Ze,_parse:()=>Wt,_parseAsync:()=>qt,_pipe:()=>X$,_positive:()=>Gi,_promise:()=>ek,_property:()=>Ki,_readonly:()=>K$,_record:()=>M$,_refine:()=>Du,_regex:()=>Kt,_safeDecode:()=>si,_safeDecodeAsync:()=>li,_safeEncode:()=>oi,_safeEncodeAsync:()=>ai,_safeParse:()=>Gt,_safeParseAsync:()=>Jt,_set:()=>j$,_size:()=>Et,_slugify:()=>lr,_startsWith:()=>tr,_string:()=>Yc,_stringFormat:()=>cr,_stringbool:()=>Au,_success:()=>J$,_superRefine:()=>Tu,_symbol:()=>bu,_templateLiteral:()=>Y$,_toLowerCase:()=>sr,_toUpperCase:()=>ar,_transform:()=>B$,_trim:()=>or,_tuple:()=>A$,_uint32:()=>fu,_uint64:()=>yu,_ulid:()=>Ai,_undefined:()=>wu,_union:()=>D$,_unknown:()=>Su,_uppercase:()=>Qt,_url:()=>Qr,_uuid:()=>Ci,_uuidv4:()=>Oi,_uuidv6:()=>Ni,_uuidv7:()=>zi,_void:()=>ku,_xid:()=>Mi,_xor:()=>T$,clone:()=>xe,config:()=>ce,createStandardJSONSchemaMethod:()=>ur,createToJSONSchemaMethod:()=>Mu,decode:()=>eS,decodeAsync:()=>rS,describe:()=>Pu,encode:()=>Q_,encodeAsync:()=>tS,extractDefs:()=>mt,finalize:()=>gt,flattenError:()=>Zr,formatError:()=>Br,globalConfig:()=>St,globalRegistry:()=>he,initializeContext:()=>ht,isValidBase64:()=>ac,isValidBase64URL:()=>sg,isValidJWT:()=>ag,locales:()=>Kr,meta:()=>Ru,parse:()=>Qn,parseAsync:()=>ei,prettifyError:()=>Ba,process:()=>X,regexes:()=>ze,registry:()=>Ii,safeDecode:()=>iS,safeDecodeAsync:()=>sS,safeEncode:()=>nS,safeEncodeAsync:()=>oS,safeParse:()=>Va,safeParseAsync:()=>Wa,toDotPath:()=>jm,toJSONSchema:()=>to,treeifyError:()=>Za,util:()=>D,version:()=>jl});var Pm,Oa=Object.freeze({status:"aborted"});function k(e,r,n){function o(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),r(a,c);let u=s.prototype,l=Object.keys(u);for(let p=0;p<l.length;p++){let f=l[p];f in a||(a[f]=u[f].bind(a))}}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function s(a){var c;let u=n?.Parent?new i:this;o(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Na=Symbol("zod_brand"),Fe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},at=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(Pm=globalThis).__zod_globalConfig??(Pm.__zod_globalConfig={});var St=globalThis.__zod_globalConfig;function ce(e){return e&&Object.assign(St,e),St}var D={};Ve(D,{BIGINT_FORMAT_RANGES:()=>La,Class:()=>Da,NUMBER_FORMAT_RANGES:()=>ja,aborted:()=>dt,allowsEval:()=>Ra,assert:()=>z_,assertEqual:()=>E_,assertIs:()=>O_,assertNever:()=>N_,assertNotEqual:()=>C_,assignProp:()=>ct,base64ToUint8Array:()=>Am,base64urlToUint8Array:()=>J_,cached:()=>Bt,captureStackTrace:()=>Yn,cleanEnum:()=>G_,cleanRegex:()=>Mr,clone:()=>xe,cloneDef:()=>T_,createTransparentProxy:()=>j_,defineLazy:()=>V,esc:()=>Kn,escapeRegex:()=>Re,explicitlyAborted:()=>Fa,extend:()=>Z_,finalizeIssue:()=>_e,floatSafeRemainder:()=>Ta,getElementAtPath:()=>P_,getEnumValues:()=>Ar,getLengthableOrigin:()=>Lr,getParsedType:()=>U_,getSizableOrigin:()=>jr,hexToUint8Array:()=>X_,isObject:()=>$t,isPlainObject:()=>ut,issue:()=>Vt,joinValues:()=>I,jsonStringifyReplacer:()=>Zt,merge:()=>V_,mergeDefs:()=>et,normalizeParams:()=>P,nullish:()=>lt,numKeys:()=>M_,objectClone:()=>D_,omit:()=>F_,optionalKeys:()=>Ua,parsedType:()=>z,partial:()=>W_,pick:()=>L_,prefixIssues:()=>Ie,primitiveTypes:()=>Ma,promiseAllObject:()=>R_,propertyKeyTypes:()=>Ur,randomString:()=>A_,required:()=>q_,safeExtend:()=>B_,shallowClone:()=>Aa,slugify:()=>Pa,stringifyPrimitive:()=>N,uint8ArrayToBase64:()=>Mm,uint8ArrayToBase64url:()=>H_,uint8ArrayToHex:()=>K_,unwrapMessage:()=>Rr});function E_(e){return e}function C_(e){return e}function O_(e){}function N_(e){throw new Error("Unexpected value in exhaustive check")}function z_(e){}function Ar(e){let r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function I(e,r="|"){return e.map(n=>N(n)).join(r)}function Zt(e,r){return typeof r=="bigint"?r.toString():r}function Bt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function lt(e){return e==null}function Mr(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Ta(e,r){let n=e/r,o=Math.round(n),t=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<t?0:n-o}var Rm=Symbol("evaluating");function V(e,r,n){let o;Object.defineProperty(e,r,{get(){if(o!==Rm)return o===void 0&&(o=Rm,o=n()),o},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function D_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ct(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function et(...e){let r={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function T_(e){return et(e._zod.def)}function P_(e,r){return r?r.reduce((n,o)=>n?.[o],e):e}function R_(e){let r=Object.keys(e),n=r.map(o=>e[o]);return Promise.all(n).then(o=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function A_(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function Kn(e){return JSON.stringify(e)}function Pa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Yn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function $t(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ra=Bt(()=>{if(St.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ut(e){if($t(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!($t(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Aa(e){return ut(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function M_(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var U_=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Ur=new Set(["string","number","symbol"]),Ma=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xe(e,r,n){let o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function P(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function j_(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function N(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ua(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var ja={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},La={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function L_(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=et(e._zod.def,{get shape(){let s={};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=n.shape[a])}return ct(this,"shape",s),s},checks:[]});return xe(e,i)}function F_(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=et(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete s[a]}return ct(this,"shape",s),s},checks:[]});return xe(e,i)}function Z_(e,r){if(!ut(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let s in r)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=et(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return ct(this,"shape",i),i}});return xe(e,t)}function B_(e,r){if(!ut(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=et(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return ct(this,"shape",o),o}});return xe(e,n)}function V_(e,r){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=et(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r._zod.def.shape};return ct(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return xe(e,n)}function W_(e,r,n){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=et(r._zod.def,{get shape(){let a=r._zod.def.shape,c={...a};if(n)for(let u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(let u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return ct(this,"shape",c),c},checks:[]});return xe(r,s)}function q_(e,r,n){let o=et(r._zod.def,{get shape(){let t=r._zod.def.shape,i={...t};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:t[s]}))}else for(let s in t)i[s]=new e({type:"nonoptional",innerType:t[s]});return ct(this,"shape",i),i}});return xe(r,o)}function dt(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Fa(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ie(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Rr(e){return typeof e=="string"?e:e?.message}function _e(e,r,n){let o=e.message?e.message:Rr(e.inst?._zod.def?.error?.(e))??Rr(r?.error?.(e))??Rr(n.customError?.(e))??Rr(n.localeError?.(e))??"Invalid input",{inst:t,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=o,r?.reportInput&&(a.input=s),a}function jr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Lr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function z(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function Vt(...e){let[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function G_(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Am(e){let r=atob(e),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function Mm(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function J_(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return Am(r+n)}function H_(e){return Mm(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function X_(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function K_(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var Da=class{constructor(...r){}};var Um=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Zt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Fr=k("$ZodError",Um),Ee=k("$ZodError",Um,{Parent:Error});function Zr(e,r=n=>n.message){let n={},o=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):o.push(r(t));return{formErrors:o,fieldErrors:n}}function Br(e,r=n=>n.message){let n={_errors:[]},o=(t,i=[])=>{for(let s of t.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(r(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u];u===a.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(r(s))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return o(e),n}function Za(e,r=n=>n.message){let n={errors:[]},o=(t,i=[])=>{var s,a;for(let c of t.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>o({issues:u},[...i,...c.path]));else if(c.code==="invalid_key")o({issues:c.issues},[...i,...c.path]);else if(c.code==="invalid_element")o({issues:c.issues},[...i,...c.path]);else{let u=[...i,...c.path];if(u.length===0){n.errors.push(r(c));continue}let l=n,p=0;for(;p<u.length;){let f=u[p],d=p===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),(s=l.properties)[f]??(s[f]={errors:[]}),l=l.properties[f]):(l.items??(l.items=[]),(a=l.items)[f]??(a[f]={errors:[]}),l=l.items[f]),d&&l.errors.push(r(c)),p++}}};return o(e),n}function jm(e){let r=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function Ba(e){let r=[],n=[...e.issues].sort((o,t)=>(o.path??[]).length-(t.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${jm(o.path)}`);return r.join(`
142
+ `)}var Wt=e=>(r,n,o,t)=>{let i=o?{...o,async:!1}:{async:!1},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Fe;if(s.issues.length){let a=new(t?.Err??e)(s.issues.map(c=>_e(c,i,ce())));throw Yn(a,t?.callee),a}return s.value},Qn=Wt(Ee),qt=e=>async(r,n,o,t)=>{let i=o?{...o,async:!0}:{async:!0},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(t?.Err??e)(s.issues.map(c=>_e(c,i,ce())));throw Yn(a,t?.callee),a}return s.value},ei=qt(Ee),Gt=e=>(r,n,o)=>{let t=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)throw new Fe;return i.issues.length?{success:!1,error:new(e??Fr)(i.issues.map(s=>_e(s,t,ce())))}:{success:!0,data:i.value}},Va=Gt(Ee),Jt=e=>async(r,n,o)=>{let t=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},t);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>_e(s,t,ce())))}:{success:!0,data:i.value}},Wa=Jt(Ee),ti=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Wt(e)(r,n,t)},Q_=ti(Ee),ri=e=>(r,n,o)=>Wt(e)(r,n,o),eS=ri(Ee),ni=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return qt(e)(r,n,t)},tS=ni(Ee),ii=e=>async(r,n,o)=>qt(e)(r,n,o),rS=ii(Ee),oi=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Gt(e)(r,n,t)},nS=oi(Ee),si=e=>(r,n,o)=>Gt(e)(r,n,o),iS=si(Ee),ai=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Jt(e)(r,n,t)},oS=ai(Ee),li=e=>async(r,n,o)=>Jt(e)(r,n,o),sS=li(Ee);var ze={};Ve(ze,{base64:()=>al,base64url:()=>ci,bigint:()=>hl,boolean:()=>gl,browserEmail:()=>hS,cidrv4:()=>ol,cidrv6:()=>sl,cuid:()=>qa,cuid2:()=>Ga,date:()=>ul,datetime:()=>fl,domain:()=>vS,duration:()=>Ya,e164:()=>cl,email:()=>el,emoji:()=>tl,extendedDuration:()=>aS,guid:()=>Qa,hex:()=>yS,hostname:()=>gS,html5Email:()=>dS,httpProtocol:()=>ll,idnEmail:()=>pS,integer:()=>ml,ipv4:()=>rl,ipv6:()=>nl,ksuid:()=>Xa,lowercase:()=>bl,mac:()=>il,md5_base64:()=>wS,md5_base64url:()=>xS,md5_hex:()=>bS,nanoid:()=>Ka,null:()=>vl,number:()=>ui,rfc5322Email:()=>fS,sha1_base64:()=>SS,sha1_base64url:()=>$S,sha1_hex:()=>_S,sha256_base64:()=>IS,sha256_base64url:()=>ES,sha256_hex:()=>kS,sha384_base64:()=>OS,sha384_base64url:()=>NS,sha384_hex:()=>CS,sha512_base64:()=>DS,sha512_base64url:()=>TS,sha512_hex:()=>zS,string:()=>pl,time:()=>dl,ulid:()=>Ja,undefined:()=>yl,unicodeEmail:()=>Lm,uppercase:()=>wl,uuid:()=>kt,uuid4:()=>lS,uuid6:()=>cS,uuid7:()=>uS,xid:()=>Ha});var qa=/^[cC][0-9a-z]{6,}$/,Ga=/^[0-9a-z]+$/,Ja=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ha=/^[0-9a-vA-V]{20}$/,Xa=/^[A-Za-z0-9]{27}$/,Ka=/^[a-zA-Z0-9_-]{21}$/,Ya=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,aS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Qa=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,kt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lS=kt(4),cS=kt(6),uS=kt(7),el=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dS=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,fS=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Lm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,pS=Lm,hS=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tl(){return new RegExp(mS,"u")}var rl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,il=e=>{let r=Re(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},ol=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,sl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,al=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ci=/^[A-Za-z0-9_-]*$/,gS=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,vS=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ll=/^https?$/,cl=/^\+[1-9]\d{6,14}$/,Fm="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ul=new RegExp(`^${Fm}$`);function Zm(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function dl(e){return new RegExp(`^${Zm(e)}$`)}function fl(e){let r=Zm({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${Fm}T(?:${o})$`)}var pl=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},hl=/^-?\d+n?$/,ml=/^-?\d+$/,ui=/^-?\d+(?:\.\d+)?$/,gl=/^(?:true|false)$/i,vl=/^null$/i;var yl=/^undefined$/i;var bl=/^[^A-Z]*$/,wl=/^[^a-z]*$/,yS=/^[0-9a-fA-F]*$/;function Vr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Wr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var bS=/^[0-9a-fA-F]{32}$/,wS=Vr(22,"=="),xS=Wr(22),_S=/^[0-9a-fA-F]{40}$/,SS=Vr(27,"="),$S=Wr(27),kS=/^[0-9a-fA-F]{64}$/,IS=Vr(43,"="),ES=Wr(43),CS=/^[0-9a-fA-F]{96}$/,OS=Vr(64,""),NS=Wr(64),zS=/^[0-9a-fA-F]{128}$/,DS=Vr(86,"=="),TS=Wr(86);var ne=k("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),Vm={number:"number",bigint:"bigint",object:"date"},di=k("$ZodCheckLessThan",(e,r)=>{ne.init(e,r);let n=Vm[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),fi=k("$ZodCheckGreaterThan",(e,r)=>{ne.init(e,r);let n=Vm[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),xl=k("$ZodCheckMultipleOf",(e,r)=>{ne.init(e,r),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Ta(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),_l=k("$ZodCheckNumberFormat",(e,r)=>{ne.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[t,i]=ja[r.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=r.format,a.minimum=t,a.maximum=i,n&&(a.pattern=ml)}),e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort});return}}a<t&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),Sl=k("$ZodCheckBigIntFormat",(e,r)=>{ne.init(e,r);let[n,o]=La[r.format];e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),e._zod.check=t=>{let i=t.value;i<n&&t.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),i>o&&t.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!r.abort})}}),$l=k("$ZodCheckMaxSize",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!lt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;t.size<=r.maximum||o.issues.push({origin:jr(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),kl=k("$ZodCheckMinSize",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!lt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;t.size>=r.minimum||o.issues.push({origin:jr(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Il=k("$ZodCheckSizeEquals",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!lt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=o=>{let t=o.value,i=t.size;if(i===r.size)return;let s=i>r.size;o.issues.push({origin:jr(t),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),El=k("$ZodCheckMaxLength",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!lt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;if(t.length<=r.maximum)return;let s=Lr(t);o.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Cl=k("$ZodCheckMinLength",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!lt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;if(t.length>=r.minimum)return;let s=Lr(t);o.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Ol=k("$ZodCheckLengthEquals",(e,r)=>{var n;ne.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!lt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=o=>{let t=o.value,i=t.length;if(i===r.length)return;let s=Lr(t),a=i>r.length;o.issues.push({origin:s,...a?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Ht=k("$ZodCheckStringFormat",(e,r)=>{var n,o;ne.init(e,r),e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(o=e._zod).check??(o.check=()=>{})}),Nl=k("$ZodCheckRegex",(e,r)=>{Ht.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),zl=k("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=bl),Ht.init(e,r)}),Dl=k("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=wl),Ht.init(e,r)}),Tl=k("$ZodCheckIncludes",(e,r)=>{ne.init(e,r);let n=Re(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(t=>{let i=t._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Pl=k("$ZodCheckStartsWith",(e,r)=>{ne.init(e,r);let n=new RegExp(`^${Re(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),Rl=k("$ZodCheckEndsWith",(e,r)=>{ne.init(e,r);let n=new RegExp(`.*${Re(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}});function Bm(e,r,n){e.issues.length&&r.issues.push(...Ie(n,e.issues))}var Al=k("$ZodCheckProperty",(e,r)=>{ne.init(e,r),e._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(t=>Bm(t,n,r.property));Bm(o,n,r.property)}}),Ml=k("$ZodCheckMimeType",(e,r)=>{ne.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:e,continue:!r.abort})}}),Ul=k("$ZodCheckOverwrite",(e,r)=>{ne.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var qr=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let o=r.split(`
143
+ `).filter(s=>s),t=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(t)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let r=Function,n=this?.args,t=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...n,t.join(`
144
+ `))}};var jl={major:4,minor:4,patch:3};var L=k("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=jl;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let t of o)for(let i of t._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(s,a,c)=>{let u=dt(s),l;for(let p of a){if(p._zod.def.when){if(Fa(s)||!p._zod.def.when(s))continue}else if(u)continue;let f=s.issues.length,d=p._zod.check(s);if(d instanceof Promise&&c?.async===!1)throw new Fe;if(l||d instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await d,s.issues.length!==f&&(u||(u=dt(s,f)))});else{if(s.issues.length===f)continue;u||(u=dt(s,f))}}return l?l.then(()=>s):s},i=(s,a,c)=>{if(dt(s))return s.aborted=!0,s;let u=t(a,o,c);if(u instanceof Promise){if(c.async===!1)throw new Fe;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(l=>i(l,s,a)):i(u,s,a)}let c=e._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new Fe;return c.then(u=>t(u,o,a))}return t(c,o,a)}}V(e,"~standard",()=>({validate:t=>{try{let i=Va(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Wa(e,t).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),It=k("$ZodString",(e,r)=>{L.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??pl(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),te=k("$ZodStringFormat",(e,r)=>{Ht.init(e,r),It.init(e,r)}),Fl=k("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Qa),te.init(e,r)}),Zl=k("$ZodUUID",(e,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=kt(o))}else r.pattern??(r.pattern=kt());te.init(e,r)}),Bl=k("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=el),te.init(e,r)}),Vl=k("$ZodURL",(e,r)=>{te.init(e,r),e._zod.check=n=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===ll.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!r.abort});return}let t=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),r.normalize?n.value=t.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),Wl=k("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=tl()),te.init(e,r)}),ql=k("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Ka),te.init(e,r)}),Gl=k("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=qa),te.init(e,r)}),Jl=k("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Ga),te.init(e,r)}),Hl=k("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Ja),te.init(e,r)}),Xl=k("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Ha),te.init(e,r)}),Kl=k("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Xa),te.init(e,r)}),Yl=k("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=fl(r)),te.init(e,r)}),Ql=k("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=ul),te.init(e,r)}),ec=k("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=dl(r)),te.init(e,r)}),tc=k("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Ya),te.init(e,r)}),rc=k("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=rl),te.init(e,r),e._zod.bag.format="ipv4"}),nc=k("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=nl),te.init(e,r),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),ic=k("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=il(r.delimiter)),te.init(e,r),e._zod.bag.format="mac"}),oc=k("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=ol),te.init(e,r)}),sc=k("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=sl),te.init(e,r),e._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[t,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${t}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function ac(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var lc=k("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=al),te.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ac(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function sg(e){if(!ci.test(e))return!1;let r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return ac(n)}var cc=k("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=ci),te.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{sg(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),uc=k("$ZodE164",(e,r)=>{r.pattern??(r.pattern=cl),te.init(e,r)});function ag(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let t=JSON.parse(atob(o));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}var dc=k("$ZodJWT",(e,r)=>{te.init(e,r),e._zod.check=n=>{ag(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),fc=k("$ZodCustomStringFormat",(e,r)=>{te.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),vi=k("$ZodNumber",(e,r)=>{L.init(e,r),e._zod.pattern=e._zod.bag.pattern??ui,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let t=n.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let i=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...i?{received:i}:{}}),n}}),pc=k("$ZodNumberFormat",(e,r)=>{_l.init(e,r),vi.init(e,r)}),Gr=k("$ZodBoolean",(e,r)=>{L.init(e,r),e._zod.pattern=gl,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),yi=k("$ZodBigInt",(e,r)=>{L.init(e,r),e._zod.pattern=hl,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),hc=k("$ZodBigIntFormat",(e,r)=>{Sl.init(e,r),yi.init(e,r)}),mc=k("$ZodSymbol",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),gc=k("$ZodUndefined",(e,r)=>{L.init(e,r),e._zod.pattern=yl,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),vc=k("$ZodNull",(e,r)=>{L.init(e,r),e._zod.pattern=vl,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),yc=k("$ZodAny",(e,r)=>{L.init(e,r),e._zod.parse=n=>n}),bc=k("$ZodUnknown",(e,r)=>{L.init(e,r),e._zod.parse=n=>n}),wc=k("$ZodNever",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),xc=k("$ZodVoid",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),_c=k("$ZodDate",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let t=n.value,i=t instanceof Date;return i&&!Number.isNaN(t.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:t,...i?{received:"Invalid Date"}:{},inst:e}),n}});function qm(e,r,n){e.issues.length&&r.issues.push(...Ie(n,e.issues)),r.value[n]=e.value}var Sc=k("$ZodArray",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let i=[];for(let s=0;s<t.length;s++){let a=t[s],c=r.element._zod.run({value:a,issues:[]},o);c instanceof Promise?i.push(c.then(u=>qm(u,n,s))):qm(c,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function gi(e,r,n,o,t,i){let s=n in o;if(e.issues.length){if(t&&i&&!s)return;r.issues.push(...Ie(n,e.issues))}if(!s&&!t){e.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(r.value[n]=void 0):r.value[n]=e.value}function lg(e){let r=Object.keys(e.shape);for(let o of r)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=Ua(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function cg(e,r,n,o,t,i){let s=[],a=t.keySet,c=t.catchall._zod,u=c.def.type,l=c.optin==="optional",p=c.optout==="optional";for(let f in r){if(f==="__proto__"||a.has(f))continue;if(u==="never"){s.push(f);continue}let d=c.run({value:r[f],issues:[]},o);d instanceof Promise?e.push(d.then(m=>gi(m,n,f,r,l,p))):gi(d,n,f,r,l,p)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:r,inst:i}),e.length?Promise.all(e).then(()=>n):n}var ug=k("$ZodObject",(e,r)=>{if(L.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let a=r.shape;Object.defineProperty(r,"shape",{get:()=>{let c={...a};return Object.defineProperty(r,"shape",{value:c}),c}})}let o=Bt(()=>lg(r));V(e._zod,"propValues",()=>{let a=r.shape,c={};for(let u in a){let l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let p of l.values)c[u].add(p)}}return c});let t=$t,i=r.catchall,s;e._zod.parse=(a,c)=>{s??(s=o.value);let u=a.value;if(!t(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};let l=[],p=s.shape;for(let f of s.keys){let d=p[f],m=d._zod.optin==="optional",h=d._zod.optout==="optional",g=d._zod.run({value:u[f],issues:[]},c);g instanceof Promise?l.push(g.then(x=>gi(x,a,f,u,m,h))):gi(g,a,f,u,m,h)}return i?cg(l,u,a,c,o.value,e):l.length?Promise.all(l).then(()=>a):a}}),$c=k("$ZodObjectJIT",(e,r)=>{ug.init(e,r);let n=e._zod.parse,o=Bt(()=>lg(r)),t=f=>{let d=new qr(["shape","payload","ctx"]),m=o.value,h=y=>{let _=Kn(y);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};d.write("const input = payload.value;");let g=Object.create(null),x=0;for(let y of m.keys)g[y]=`key_${x++}`;d.write("const newResult = {};");for(let y of m.keys){let _=g[y],v=Kn(y),w=f[y],S=w?._zod?.optin==="optional",C=w?._zod?.optout==="optional";d.write(`const ${_} = ${h(y)};`),S&&C?d.write(`
145
+ if (${_}.issues.length) {
146
+ if (${v} in input) {
147
+ payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
148
+ ...iss,
149
+ path: iss.path ? [${v}, ...iss.path] : [${v}]
150
+ })));
151
+ }
152
+ }
153
+
154
+ if (${_}.value === undefined) {
155
+ if (${v} in input) {
156
+ newResult[${v}] = undefined;
157
+ }
158
+ } else {
159
+ newResult[${v}] = ${_}.value;
160
+ }
161
+
162
+ `):S?d.write(`
163
+ if (${_}.issues.length) {
164
+ payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
165
+ ...iss,
166
+ path: iss.path ? [${v}, ...iss.path] : [${v}]
167
+ })));
168
+ }
169
+
170
+ if (${_}.value === undefined) {
171
+ if (${v} in input) {
172
+ newResult[${v}] = undefined;
173
+ }
174
+ } else {
175
+ newResult[${v}] = ${_}.value;
176
+ }
177
+
178
+ `):d.write(`
179
+ const ${_}_present = ${v} in input;
180
+ if (${_}.issues.length) {
181
+ payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
182
+ ...iss,
183
+ path: iss.path ? [${v}, ...iss.path] : [${v}]
184
+ })));
185
+ }
186
+ if (!${_}_present && !${_}.issues.length) {
187
+ payload.issues.push({
188
+ code: "invalid_type",
189
+ expected: "nonoptional",
190
+ input: undefined,
191
+ path: [${v}]
192
+ });
193
+ }
194
+
195
+ if (${_}_present) {
196
+ if (${_}.value === undefined) {
197
+ newResult[${v}] = undefined;
198
+ } else {
199
+ newResult[${v}] = ${_}.value;
200
+ }
201
+ }
202
+
203
+ `)}d.write("payload.value = newResult;"),d.write("return payload;");let b=d.compile();return(y,_)=>b(f,y,_)},i,s=$t,a=!St.jitless,u=a&&Ra.value,l=r.catchall,p;e._zod.parse=(f,d)=>{p??(p=o.value);let m=f.value;return s(m)?a&&u&&d?.async===!1&&d.jitless!==!0?(i||(i=t(r.shape)),f=i(f,d),l?cg([],m,f,d,p,e):f):n(f,d):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f)}});function Gm(e,r,n,o){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let t=e.filter(i=>!dt(i));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>_e(s,o,ce())))}),r)}var Jr=k("$ZodUnion",(e,r)=>{L.init(e,r),V(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),V(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),V(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),V(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(t=>t._zod.pattern);return new RegExp(`^(${o.map(t=>Mr(t.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let c=a._zod.run({value:o.value,issues:[]},t);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>Gm(a,o,e,t)):Gm(s,o,e,t)}});function Jm(e,r,n,o){let t=e.filter(i=>i.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>_e(s,o,ce())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var kc=k("$ZodXor",(e,r)=>{Jr.init(e,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let c=a._zod.run({value:o.value,issues:[]},t);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>Jm(a,o,e,t)):Jm(s,o,e,t)}}),Ic=k("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,Jr.init(e,r);let n=e._zod.parse;V(e._zod,"propValues",()=>{let t={};for(let i of r.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[a,c]of Object.entries(s)){t[a]||(t[a]=new Set);for(let u of c)t[a].add(u)}}return t});let o=Bt(()=>{let t=r.options,i=new Map;for(let s of t){let a=s._zod.propValues?.[r.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(s)}"`);for(let c of a){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});e._zod.parse=(t,i)=>{let s=t.value;if(!$t(s))return t.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),t;let a=o.value.get(s?.[r.discriminator]);return a?a._zod.run(t,i):r.unionFallback||i.direction==="backward"?n(t,i):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:s,path:[r.discriminator],inst:e}),t)}}),Ec=k("$ZodIntersection",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value,i=r.left._zod.run({value:t,issues:[]},o),s=r.right._zod.run({value:t,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>Hm(n,c,u)):Hm(n,i,s)}});function Ll(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(ut(e)&&ut(r)){let n=Object.keys(r),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),t={...e,...r};for(let i of o){let s=Ll(e[i],r[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};t[i]=s.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let t=e[o],i=r[o],s=Ll(t,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Hm(e,r,n){let o=new Map,t;for(let a of r.issues)if(a.code==="unrecognized_keys"){t??(t=a);for(let c of a.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(a);for(let a of n.issues)if(a.code==="unrecognized_keys")for(let c of a.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(a);let i=[...o].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&t&&e.issues.push({...t,keys:i}),dt(e))return e;let s=Ll(r.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var bi=k("$ZodTuple",(e,r)=>{L.init(e,r);let n=r.items;e._zod.parse=(o,t)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],a=Xm(n,"optin"),c=Xm(n,"optout");if(!r.rest){if(i.length<a)return o.issues.push({code:"too_small",minimum:a,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}let u=new Array(n.length);for(let l=0;l<n.length;l++){let p=n[l]._zod.run({value:i[l],issues:[]},t);p instanceof Promise?s.push(p.then(f=>{u[l]=f})):u[l]=p}if(r.rest){let l=n.length-1,p=i.slice(n.length);for(let f of p){l++;let d=r.rest._zod.run({value:f,issues:[]},t);d instanceof Promise?s.push(d.then(m=>Km(m,o,l))):Km(d,o,l)}}return s.length?Promise.all(s).then(()=>Ym(u,o,n,i,c)):Ym(u,o,n,i,c)}});function Xm(e,r){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[r]!=="optional")return n+1;return 0}function Km(e,r,n){e.issues.length&&r.issues.push(...Ie(n,e.issues)),r.value[n]=e.value}function Ym(e,r,n,o,t){for(let i=0;i<n.length;i++){let s=e[i],a=i<o.length;if(s.issues.length){if(!a&&i>=t){r.value.length=i;break}r.issues.push(...Ie(i,s.issues))}r.value[i]=s.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var Cc=k("$ZodRecord",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!ut(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let i=[],s=r.keyType._zod.values;if(s){n.value={};let a=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let l=r.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>_e(d,o,ce())),input:u,path:[u],inst:e});continue}let p=l.value,f=r.valueType._zod.run({value:t[u],issues:[]},o);f instanceof Promise?i.push(f.then(d=>{d.issues.length&&n.issues.push(...Ie(u,d.issues)),n.value[p]=d.value})):(f.issues.length&&n.issues.push(...Ie(u,f.issues)),n.value[p]=f.value)}let c;for(let u in t)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:c})}else{n.value={};for(let a of Reflect.ownKeys(t)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,a))continue;let c=r.keyType._zod.run({value:a,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&ui.test(a)&&c.issues.length){let p=r.keyType._zod.run({value:Number(a),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p)}if(c.issues.length){r.mode==="loose"?n.value[a]=t[a]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>_e(p,o,ce())),input:a,path:[a],inst:e});continue}let l=r.valueType._zod.run({value:t[a],issues:[]},o);l instanceof Promise?i.push(l.then(p=>{p.issues.length&&n.issues.push(...Ie(a,p.issues)),n.value[c.value]=p.value})):(l.issues.length&&n.issues.push(...Ie(a,l.issues)),n.value[c.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Oc=k("$ZodMap",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let i=[];n.value=new Map;for(let[s,a]of t){let c=r.keyType._zod.run({value:s,issues:[]},o),u=r.valueType._zod.run({value:a,issues:[]},o);c instanceof Promise||u instanceof Promise?i.push(Promise.all([c,u]).then(([l,p])=>{Qm(l,p,n,s,t,e,o)})):Qm(c,u,n,s,t,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function Qm(e,r,n,o,t,i,s){e.issues.length&&(Ur.has(typeof o)?n.issues.push(...Ie(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:i,issues:e.issues.map(a=>_e(a,s,ce()))})),r.issues.length&&(Ur.has(typeof o)?n.issues.push(...Ie(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:i,key:o,issues:r.issues.map(a=>_e(a,s,ce()))})),n.value.set(e.value,r.value)}var Nc=k("$ZodSet",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let s of t){let a=r.valueType._zod.run({value:s,issues:[]},o);a instanceof Promise?i.push(a.then(c=>eg(c,n))):eg(a,n)}return i.length?Promise.all(i).then(()=>n):n}});function eg(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var zc=k("$ZodEnum",(e,r)=>{L.init(e,r);let n=Ar(r.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(t=>Ur.has(typeof t)).map(t=>typeof t=="string"?Re(t):t.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let s=t.value;return o.has(s)||t.issues.push({code:"invalid_value",values:n,input:s,inst:e}),t}}),Dc=k("$ZodLiteral",(e,r)=>{if(L.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?Re(o):o?Re(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,t)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:e}),o}}),Tc=k("$ZodFile",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Pc=k("$ZodTransform",(e,r)=>{L.init(e,r),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new at(e.constructor.name);let t=r.transform(n.value,n);if(o.async)return(t instanceof Promise?t:Promise.resolve(t)).then(s=>(n.value=s,n.fallback=!0,n));if(t instanceof Promise)throw new Fe;return n.value=t,n.fallback=!0,n}});function tg(e,r){return r===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var wi=k("$ZodOptional",(e,r)=>{L.init(e,r),e._zod.optin="optional",e._zod.optout="optional",V(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),V(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Mr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let t=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(s=>tg(s,t)):tg(i,t)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),Rc=k("$ZodExactOptional",(e,r)=>{wi.init(e,r),V(e._zod,"values",()=>r.innerType._zod.values),V(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),Ac=k("$ZodNullable",(e,r)=>{L.init(e,r),V(e._zod,"optin",()=>r.innerType._zod.optin),V(e._zod,"optout",()=>r.innerType._zod.optout),V(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Mr(n.source)}|null)$`):void 0}),V(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),Mc=k("$ZodDefault",(e,r)=>{L.init(e,r),e._zod.optin="optional",V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>rg(i,r)):rg(t,r)}});function rg(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var Uc=k("$ZodPrefault",(e,r)=>{L.init(e,r),e._zod.optin="optional",V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),jc=k("$ZodNonOptional",(e,r)=>{L.init(e,r),V(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>ng(i,e)):ng(t,e)}});function ng(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var Lc=k("$ZodSuccess",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new at("ZodSuccess");let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),Fc=k("$ZodCatch",(e,r)=>{L.init(e,r),e._zod.optin="optional",V(e._zod,"optout",()=>r.innerType._zod.optout),V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(s=>_e(s,o,ce()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue({...n,error:{issues:t.issues.map(i=>_e(i,o,ce()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Zc=k("$ZodNaN",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),xi=k("$ZodPipe",(e,r)=>{L.init(e,r),V(e._zod,"values",()=>r.in._zod.values),V(e._zod,"optin",()=>r.in._zod.optin),V(e._zod,"optout",()=>r.out._zod.optout),V(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>pi(s,r.in,o)):pi(i,r.in,o)}let t=r.in._zod.run(n,o);return t instanceof Promise?t.then(i=>pi(i,r.out,o)):pi(t,r.out,o)}});function pi(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Hr=k("$ZodCodec",(e,r)=>{L.init(e,r),V(e._zod,"values",()=>r.in._zod.values),V(e._zod,"optin",()=>r.in._zod.optin),V(e._zod,"optout",()=>r.out._zod.optout),V(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(s=>hi(s,r,o)):hi(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>hi(s,r,o)):hi(i,r,o)}}});function hi(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(i=>mi(e,i,r.out,n)):mi(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(i=>mi(e,i,r.in,n)):mi(e,t,r.in,n)}}function mi(e,r,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},o)}var Bc=k("$ZodPreprocess",(e,r)=>{xi.init(e,r)}),Vc=k("$ZodReadonly",(e,r)=>{L.init(e,r),V(e._zod,"propValues",()=>r.innerType._zod.propValues),V(e._zod,"values",()=>r.innerType._zod.values),V(e._zod,"optin",()=>r.innerType?._zod?.optin),V(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(ig):ig(t)}});function ig(e){return e.value=Object.freeze(e.value),e}var Wc=k("$ZodTemplateLiteral",(e,r)=>{L.init(e,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=t.startsWith("^")?1:0,s=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,s))}else if(o===null||Ma.has(typeof o))n.push(Re(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,t)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),o)}),qc=k("$ZodFunction",(e,r)=>(L.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let t=e._def.input?Qn(e._def.input,o):o,i=Reflect.apply(n,this,t);return e._def.output?Qn(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let t=e._def.input?await ei(e._def.input,o):o,i=await Reflect.apply(n,this,t);return e._def.output?await ei(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new bi({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),Gc=k("$ZodPromise",(e,r)=>{L.init(e,r),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},o))}),Jc=k("$ZodLazy",(e,r)=>{L.init(e,r),V(e._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),V(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),V(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),V(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),V(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Hc=k("$ZodCustom",(e,r)=>{ne.init(e,r),L.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,t=r.fn(o);if(t instanceof Promise)return t.then(i=>og(i,n,o,e));og(t,n,o,e)}});function og(e,r,n,o){if(!e){let t={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(t.params=o._zod.def.params),r.issues.push(Vt(t))}}var Kr={};Ve(Kr,{ar:()=>dg,az:()=>fg,be:()=>hg,bg:()=>mg,ca:()=>gg,cs:()=>vg,da:()=>yg,de:()=>bg,el:()=>wg,en:()=>_i,eo:()=>xg,es:()=>_g,fa:()=>Sg,fi:()=>$g,fr:()=>kg,frCA:()=>Ig,he:()=>Eg,hr:()=>Cg,hu:()=>Og,hy:()=>zg,id:()=>Dg,is:()=>Tg,it:()=>Pg,ja:()=>Rg,ka:()=>Ag,kh:()=>Mg,km:()=>Si,ko:()=>Ug,lt:()=>Lg,mk:()=>Fg,ms:()=>Zg,nl:()=>Bg,no:()=>Vg,ota:()=>Wg,pl:()=>Gg,ps:()=>qg,pt:()=>Jg,ro:()=>Hg,ru:()=>Kg,sl:()=>Yg,sv:()=>Qg,ta:()=>ev,th:()=>tv,tr:()=>rv,ua:()=>nv,uk:()=>$i,ur:()=>iv,uz:()=>ov,vi:()=>sv,yo:()=>cv,zhCN:()=>av,zhTW:()=>lv});var RS=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function dg(){return{localeError:RS()}}var AS=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${a}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function fg(){return{localeError:AS()}}function pg(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var MS=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=pg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=pg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function hg(){return{localeError:MS()}}var US=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${N(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function mg(){return{localeError:US()}}var jS=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${a}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${N(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${I(t.values," o ")}`;case"too_big":{let i=t.inclusive?"com a m\xE0xim":"menys de",s=r(t.origin);return s?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${i} ${t.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"com a m\xEDnim":"m\xE9s de",s=r(t.origin);return s?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${i} ${t.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function gg(){return{localeError:jS()}}var LS=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${a}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${I(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function vg(){return{localeError:LS()}}var FS=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${a}`:`Ugyldigt input: forventede ${i}, fik ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${N(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${i} ${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For lille: forventede ${a} ${s.verb} ${i} ${t.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function yg(){return{localeError:FS()}}var ZS=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${a}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ist`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function bg(){return{localeError:ZS()}}var BS=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(t){return e[t]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${N(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.maximum.toString()} ${s.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.minimum.toString()} ${s.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function wg(){return{localeError:BS()}}var VS=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return`Invalid input: expected ${i}, received ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`Invalid option: expected one of ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Too big: expected ${t.origin??"value"} to have ${i}${t.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${s.unit}`:`Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function _i(){return{localeError:VS()}}var WS=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${a}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${i}${t.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function xg(){return{localeError:WS()}}var qS=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${i}${t.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function _g(){return{localeError:qS()}}var GS=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${I(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${I(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Sg(){return{localeError:GS()}}var JS=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${a}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${t.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${t.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function $g(){return{localeError:JS()}}var HS=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${a} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${N(t.values[0])} attendu`:`Option invalide : une valeur parmi ${I(t.values,"|")} attendue`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Trop grand : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Trop petit : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function kg(){return{localeError:HS()}}var XS=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${a}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${N(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u2264":"<",s=r(t.origin);return s?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${i}${t.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u2265":">",s=r(t.origin);return s?`Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Ig(){return{localeError:XS()}}var KS=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=u=>u?e[u]:void 0,o=u=>{let l=n(u);return l?l.label:u??e.unknown.label},t=u=>`\u05D4${o(u)}`,i=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?r[u]??null:null,a={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,p=c[l??""]??o(l),f=z(u.input),d=c[f]??e[f]?.label??f;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${d}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${d}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${N(u.values[0])}`;let l=u.values.map(d=>N(d));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let p=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let l=s(u.origin),p=t(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?"<=":"<",d=i(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.maximum.toString()}`}case"too_small":{let l=s(u.origin),p=t(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let g=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`}let h=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?">=":">",d=i(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${d} ${f}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let p=a[l.format],f=p?.label??l.format,m=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${I(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Eg(){return{localeError:KS()}}var YS=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${a}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${N(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${i}${t.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${i}${t.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} bude ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Cg(){return{localeError:YS()}}var QS=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${t.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${i}${t.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Og(){return{localeError:QS()}}function Ng(e,r,n){return Math.abs(e)===1?r:n}function Xt(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(r.includes(n)?"\u0576":"\u0568")}var e$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${N(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=Ng(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Xt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Xt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=Ng(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Xt(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Xt(t.origin)} \u056C\u056B\u0576\u056B ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${I(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Xt(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Xt(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function zg(){return{localeError:e$()}}var t$=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${N(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function Dg(){return{localeError:t$()}}var r$=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${N(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${i}${t.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${i}${t.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${I(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function Tg(){return{localeError:r$()}}var n$=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${a}`:`Input non valido: atteso ${i}, ricevuto ${a}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${N(t.values[0])}`:`Opzione non valida: atteso uno tra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Troppo grande: ${t.origin??"valore"} deve avere ${i}${t.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${I(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function Pg(){return{localeError:n$()}}var i$=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${I(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=r(t.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=r(t.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Rg(){return{localeError:i$()}}var o$=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${N(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${I(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Ag(){return{localeError:o$()}}var s$=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${I(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Si(){return{localeError:s$()}}function Mg(){return Si()}var a$=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${I(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),c=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${c} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${i}${s}`}case"too_small":{let i=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),c=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${c} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${I(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Ug(){return{localeError:a$()}}var Xr=e=>e.charAt(0).toUpperCase()+e.slice(1);function jg(e){let r=Math.abs(e),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var l$=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,i,s,a){let c=e[t]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[a][s?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${i}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${N(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${I(t.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[t.origin]??t.origin,s=r(t.origin,jg(Number(t.maximum)),t.inclusive??!1,"smaller");if(s?.verb)return`${Xr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.maximum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Xr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[t.origin]??t.origin,s=r(t.origin,jg(Number(t.minimum)),t.inclusive??!1,"bigger");if(s?.verb)return`${Xr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.minimum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Xr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${I(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[t.origin]??t.origin;return`${Xr(i??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Lg(){return{localeError:l$()}}var c$=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Fg(){return{localeError:c$()}}var u$=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${a}`:`Input tidak sah: dijangka ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${N(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: dijangka ${t.origin??"nilai"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: dijangka ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function Zg(){return{localeError:u$()}}var d$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${i}, ontving ${a}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${N(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} is`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function Bg(){return{localeError:d$()}}var f$=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${a}`:`Ugyldig input: forventet ${i}, fikk ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${N(t.values[0])}`:`Ugyldig valg: forventet en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Vg(){return{localeError:f$()}}var p$=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${N(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=t;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Wg(){return{localeError:p$()}}var h$=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${I(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function qg(){return{localeError:h$()}}var m$=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${a}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Gg(){return{localeError:m$()}}var g$=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${N(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function Jg(){return{localeError:g$()}}var v$=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(t){return e[t]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${a}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${N(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Prea mic: a\u0219teptat ca ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${I(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function Hg(){return{localeError:v$()}}function Xg(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var y$=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),c=Xg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),c=Xg(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Kg(){return{localeError:y$()}}var b$=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${a}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${i}${t.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Yg(){return{localeError:b$()}}var w$=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${a}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Qg(){return{localeError:w$()}}var x$=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${I(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function ev(){return{localeError:x$()}}var _$=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${I(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function tv(){return{localeError:_$()}}var S$=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function rv(){return{localeError:S$()}}var $$=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function $i(){return{localeError:$$()}}function nv(){return $i()}var k$=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${I(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${i}${t.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${i}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function iv(){return{localeError:k$()}}var I$=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${a}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${N(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function ov(){return{localeError:I$()}}var E$=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${I(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function sv(){return{localeError:E$()}}var C$=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function av(){return{localeError:C$()}}var O$=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function lv(){return{localeError:O$()}}var N$=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=z(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${N(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${s.verb} ${i}${t.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.maximum}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${s.verb} ${i}${t.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.minimum}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${I(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function cv(){return{localeError:N$()}}var uv,Xc=Symbol("ZodOutput"),Kc=Symbol("ZodInput"),ki=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let t={...o,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function Ii(){return new ki}(uv=globalThis).__zod_globalRegistry??(uv.__zod_globalRegistry=Ii());var he=globalThis.__zod_globalRegistry;function Yc(e,r){return new e({type:"string",...P(r)})}function Qc(e,r){return new e({type:"string",coerce:!0,...P(r)})}function Ei(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...P(r)})}function Yr(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...P(r)})}function Ci(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...P(r)})}function Oi(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...P(r)})}function Ni(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...P(r)})}function zi(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...P(r)})}function Qr(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...P(r)})}function Di(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...P(r)})}function Ti(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...P(r)})}function Pi(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...P(r)})}function Ri(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...P(r)})}function Ai(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...P(r)})}function Mi(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...P(r)})}function Ui(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...P(r)})}function ji(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...P(r)})}function Li(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...P(r)})}function eu(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...P(r)})}function Fi(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...P(r)})}function Zi(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...P(r)})}function Bi(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...P(r)})}function Vi(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...P(r)})}function Wi(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...P(r)})}function qi(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...P(r)})}var tu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ru(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...P(r)})}function nu(e,r){return new e({type:"string",format:"date",check:"string_format",...P(r)})}function iu(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...P(r)})}function ou(e,r){return new e({type:"string",format:"duration",check:"string_format",...P(r)})}function su(e,r){return new e({type:"number",checks:[],...P(r)})}function au(e,r){return new e({type:"number",coerce:!0,checks:[],...P(r)})}function lu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...P(r)})}function cu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...P(r)})}function uu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...P(r)})}function du(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...P(r)})}function fu(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...P(r)})}function pu(e,r){return new e({type:"boolean",...P(r)})}function hu(e,r){return new e({type:"boolean",coerce:!0,...P(r)})}function mu(e,r){return new e({type:"bigint",...P(r)})}function gu(e,r){return new e({type:"bigint",coerce:!0,...P(r)})}function vu(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...P(r)})}function yu(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...P(r)})}function bu(e,r){return new e({type:"symbol",...P(r)})}function wu(e,r){return new e({type:"undefined",...P(r)})}function xu(e,r){return new e({type:"null",...P(r)})}function _u(e){return new e({type:"any"})}function Su(e){return new e({type:"unknown"})}function $u(e,r){return new e({type:"never",...P(r)})}function ku(e,r){return new e({type:"void",...P(r)})}function Iu(e,r){return new e({type:"date",...P(r)})}function Eu(e,r){return new e({type:"date",coerce:!0,...P(r)})}function Cu(e,r){return new e({type:"nan",...P(r)})}function Ge(e,r){return new di({check:"less_than",...P(r),value:e,inclusive:!1})}function De(e,r){return new di({check:"less_than",...P(r),value:e,inclusive:!0})}function Je(e,r){return new fi({check:"greater_than",...P(r),value:e,inclusive:!1})}function Se(e,r){return new fi({check:"greater_than",...P(r),value:e,inclusive:!0})}function Gi(e){return Je(0,e)}function Ji(e){return Ge(0,e)}function Hi(e){return De(0,e)}function Xi(e){return Se(0,e)}function ft(e,r){return new xl({check:"multiple_of",...P(r),value:e})}function pt(e,r){return new $l({check:"max_size",...P(r),maximum:e})}function He(e,r){return new kl({check:"min_size",...P(r),minimum:e})}function Et(e,r){return new Il({check:"size_equals",...P(r),size:e})}function Ct(e,r){return new El({check:"max_length",...P(r),maximum:e})}function tt(e,r){return new Cl({check:"min_length",...P(r),minimum:e})}function Ot(e,r){return new Ol({check:"length_equals",...P(r),length:e})}function Kt(e,r){return new Nl({check:"string_format",format:"regex",...P(r),pattern:e})}function Yt(e){return new zl({check:"string_format",format:"lowercase",...P(e)})}function Qt(e){return new Dl({check:"string_format",format:"uppercase",...P(e)})}function er(e,r){return new Tl({check:"string_format",format:"includes",...P(r),includes:e})}function tr(e,r){return new Pl({check:"string_format",format:"starts_with",...P(r),prefix:e})}function rr(e,r){return new Rl({check:"string_format",format:"ends_with",...P(r),suffix:e})}function Ki(e,r,n){return new Al({check:"property",property:e,schema:r,...P(n)})}function nr(e,r){return new Ml({check:"mime_type",mime:e,...P(r)})}function Ze(e){return new Ul({check:"overwrite",tx:e})}function ir(e){return Ze(r=>r.normalize(e))}function or(){return Ze(e=>e.trim())}function sr(){return Ze(e=>e.toLowerCase())}function ar(){return Ze(e=>e.toUpperCase())}function lr(){return Ze(e=>Pa(e))}function Ou(e,r,n){return new e({type:"array",element:r,...P(n)})}function D$(e,r,n){return new e({type:"union",options:r,...P(n)})}function T$(e,r,n){return new e({type:"union",options:r,inclusive:!1,...P(n)})}function P$(e,r,n,o){return new e({type:"union",options:n,discriminator:r,...P(o)})}function R$(e,r,n){return new e({type:"intersection",left:r,right:n})}function A$(e,r,n,o){let t=n instanceof L,i=t?o:n,s=t?n:null;return new e({type:"tuple",items:r,rest:s,...P(i)})}function M$(e,r,n,o){return new e({type:"record",keyType:r,valueType:n,...P(o)})}function U$(e,r,n,o){return new e({type:"map",keyType:r,valueType:n,...P(o)})}function j$(e,r,n){return new e({type:"set",valueType:r,...P(n)})}function L$(e,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:o,...P(n)})}function F$(e,r,n){return new e({type:"enum",entries:r,...P(n)})}function Z$(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...P(n)})}function Nu(e,r){return new e({type:"file",...P(r)})}function B$(e,r){return new e({type:"transform",transform:r})}function V$(e,r){return new e({type:"optional",innerType:r})}function W$(e,r){return new e({type:"nullable",innerType:r})}function q$(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():Aa(n)}})}function G$(e,r,n){return new e({type:"nonoptional",innerType:r,...P(n)})}function J$(e,r){return new e({type:"success",innerType:r})}function H$(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function X$(e,r,n){return new e({type:"pipe",in:r,out:n})}function K$(e,r){return new e({type:"readonly",innerType:r})}function Y$(e,r,n){return new e({type:"template_literal",parts:r,...P(n)})}function Q$(e,r){return new e({type:"lazy",getter:r})}function ek(e,r){return new e({type:"promise",innerType:r})}function zu(e,r,n){let o=P(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:r,...o})}function Du(e,r,n){return new e({type:"custom",check:"custom",fn:r,...P(n)})}function Tu(e,r){let n=dv(o=>(o.addIssue=t=>{if(typeof t=="string")o.issues.push(Vt(t,o.value,n._zod.def));else{let i=t;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Vt(i))}},e(o.value,o)),r);return n}function dv(e,r){let n=new ne({check:"custom",...P(r)});return n._zod.check=e,n}function Pu(e){let r=new ne({check:"describe"});return r._zod.onattach=[n=>{let o=he.get(n)??{};he.add(n,{...o,description:e})}],r._zod.check=()=>{},r}function Ru(e){let r=new ne({check:"meta"});return r._zod.onattach=[n=>{let o=he.get(n)??{};he.add(n,{...o,...e})}],r._zod.check=()=>{},r}function Au(e,r){let n=P(r),o=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(d=>typeof d=="string"?d.toLowerCase():d),t=t.map(d=>typeof d=="string"?d.toLowerCase():d));let i=new Set(o),s=new Set(t),a=e.Codec??Hr,c=e.Boolean??Gr,u=e.String??It,l=new u({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),f=new a({type:"pipe",in:l,out:p,transform:((d,m)=>{let h=d;return n.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:s.has(h)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:m.value,inst:f,continue:!1}),{})}),reverseTransform:((d,m)=>d===!0?o[0]||"true":t[0]||"false"),error:n.error});return f}function cr(e,r,n,o={}){let t=P(o),i={...P(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:a=>n.test(a),...t};return n instanceof RegExp&&(i.pattern=n),new e(i)}function ht(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??he,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function X(e,r,n={path:[],schemaPath:[]}){var o;let t=e._zod.def,i=r.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,s.schema,l);else{let f=s.schema,d=r.processors[t.type];if(!d)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);d(e,r,f,l)}let p=e._zod.parent;p&&(s.ref||(s.ref=p),X(p,r,l),r.seen.get(p).isParent=!0)}let c=r.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),r.io==="input"&&$e(e)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(e).schema}function mt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=o.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(a,s[0])}}let t=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(s[0])?.id,f=e.external.uri??(m=>m);if(p)return{ref:f(p)};let d=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=d,{defId:d,ref:`${f("__shared")}#/${a}/${d}`}}if(s[1]===n)return{ref:"#"};let u=`#/${a}/`,l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=t(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let p in l)delete l[p];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
204
+
205
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(r===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(r!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function gt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},p=c.ref;if(c.ref=null,p){o(p);let d=e.seen.get(p),m=d.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,l),a._zod.parent===p)for(let g in u)g==="$ref"||g==="allOf"||g in l||delete u[g];if(m.$ref&&d.def)for(let g in u)g==="$ref"||g==="allOf"||g in d.def&&JSON.stringify(u[g])===JSON.stringify(d.def[g])&&delete u[g]}let f=a._zod.parent;if(f&&f!==p){o(f);let d=e.seen.get(f);if(d?.schema.$ref&&(u.$ref=d.schema.$ref,d.def))for(let m in u)m==="$ref"||m==="allOf"||m in d.def&&JSON.stringify(u[m])===JSON.stringify(d.def[m])&&delete u[m]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(a)}Object.assign(t,n.def??n.schema);let i=e.metadataRegistry.get(r)?.id;i!==void 0&&t.id===i&&delete t.id;let s=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,s[c.defId]=c.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?t.$defs=s:t.definitions=s);try{let a=JSON.parse(JSON.stringify(t));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:ur(r,"input",e.processors),output:ur(r,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function $e(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return $e(o.element,n);if(o.type==="set")return $e(o.valueType,n);if(o.type==="lazy")return $e(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return $e(o.innerType,n);if(o.type==="intersection")return $e(o.left,n)||$e(o.right,n);if(o.type==="record"||o.type==="map")return $e(o.keyType,n)||$e(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:$e(o.in,n)||$e(o.out,n);if(o.type==="object"){for(let t in o.shape)if($e(o.shape[t],n))return!0;return!1}if(o.type==="union"){for(let t of o.options)if($e(t,n))return!0;return!1}if(o.type==="tuple"){for(let t of o.items)if($e(t,n))return!0;return!!(o.rest&&$e(o.rest,n))}return!1}var Mu=(e,r={})=>n=>{let o=ht({...n,processors:r});return X(e,o),mt(o,e),gt(o,e)},ur=(e,r,n={})=>o=>{let{libraryOptions:t,target:i}=o??{},s=ht({...t??{},target:i,io:r,processors:n});return X(e,s),mt(s,e),gt(s,e)};var tk={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Uu=(e,r,n,o)=>{let t=n;t.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(t.minLength=i),typeof s=="number"&&(t.maxLength=s),a&&(t.format=tk[a]??a,t.format===""&&delete t.format,a==="time"&&delete t.format),u&&(t.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?t.pattern=l[0].source:l.length>1&&(t.allOf=[...l.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},ju=(e,r,n,o)=>{let t=n,{minimum:i,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?t.type="integer":t.type="number";let p=typeof l=="number"&&l>=(i??Number.NEGATIVE_INFINITY),f=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),d=r.target==="draft-04"||r.target==="openapi-3.0";p?d?(t.minimum=l,t.exclusiveMinimum=!0):t.exclusiveMinimum=l:typeof i=="number"&&(t.minimum=i),f?d?(t.maximum=u,t.exclusiveMaximum=!0):t.exclusiveMaximum=u:typeof s=="number"&&(t.maximum=s),typeof c=="number"&&(t.multipleOf=c)},Lu=(e,r,n,o)=>{n.type="boolean"},Fu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Zu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Bu=(e,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Vu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Wu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},qu=(e,r,n,o)=>{n.not={}},Gu=(e,r,n,o)=>{},Ju=(e,r,n,o)=>{},Hu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Xu=(e,r,n,o)=>{let t=e._zod.def,i=Ar(t.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},Ku=(e,r,n,o)=>{let t=e._zod.def,i=[];for(let s of t.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},Yu=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Qu=(e,r,n,o)=>{let t=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=i.source},ed=(e,r,n,o)=>{let t=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(i.minLength=s),a!==void 0&&(i.maxLength=a),c?c.length===1?(i.contentMediaType=c[0],Object.assign(t,i)):(Object.assign(t,i),t.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(t,i)},td=(e,r,n,o)=>{n.type="boolean"},rd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},nd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},id=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},od=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},sd=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ad=(e,r,n,o)=>{let t=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(t.minItems=s),typeof a=="number"&&(t.maxItems=a),t.type="array",t.items=X(i.element,r,{...o,path:[...o.path,"items"]})},ld=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object",t.properties={};let s=i.shape;for(let u in s)t.properties[u]=X(s[u],r,{...o,path:[...o.path,"properties",u]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{let l=i.shape[u]._zod;return r.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(t.required=Array.from(c)),i.catchall?._zod.def.type==="never"?t.additionalProperties=!1:i.catchall?i.catchall&&(t.additionalProperties=X(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},Qi=(e,r,n,o)=>{let t=e._zod.def,i=t.inclusive===!1,s=t.options.map((a,c)=>X(a,r,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},cd=(e,r,n,o)=>{let t=e._zod.def,i=X(t.left,r,{...o,path:[...o.path,"allOf",0]}),s=X(t.right,r,{...o,path:[...o.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c},ud=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="array";let s=r.target==="draft-2020-12"?"prefixItems":"items",a=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((f,d)=>X(f,r,{...o,path:[...o.path,s,d]})),u=i.rest?X(i.rest,r,{...o,path:[...o.path,a,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=c,u&&(t.items=u)):r.target==="openapi-3.0"?(t.items={anyOf:c},u&&t.items.anyOf.push(u),t.minItems=c.length,u||(t.maxItems=c.length)):(t.items=c,u&&(t.additionalItems=u));let{minimum:l,maximum:p}=e._zod.bag;typeof l=="number"&&(t.minItems=l),typeof p=="number"&&(t.maxItems=p)},dd=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object";let s=i.keyType,c=s._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let l=X(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});t.patternProperties={};for(let p of c)t.patternProperties[p.source]=l}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=X(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),t.additionalProperties=X(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let u=s._zod.values;if(u){let l=[...u].filter(p=>typeof p=="string"||typeof p=="number");l.length>0&&(t.required=l)}},fd=(e,r,n,o)=>{let t=e._zod.def,i=X(t.innerType,r,o),s=r.seen.get(e);r.target==="openapi-3.0"?(s.ref=t.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},pd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},hd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.default=JSON.parse(JSON.stringify(t.defaultValue))},md=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},gd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType;let s;try{s=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},vd=(e,r,n,o)=>{let t=e._zod.def,i=t.in._zod.traits.has("$ZodTransform"),s=r.io==="input"?i?t.out:t.in:t.out;X(s,r,o);let a=r.seen.get(e);a.ref=s},yd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.readOnly=!0},bd=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},eo=(e,r,n,o)=>{let t=e._zod.def;X(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},wd=(e,r,n,o)=>{let t=e._zod.innerType;X(t,r,o);let i=r.seen.get(e);i.ref=t},Yi={string:Uu,number:ju,boolean:Lu,bigint:Fu,symbol:Zu,null:Bu,undefined:Vu,void:Wu,never:qu,any:Gu,unknown:Ju,date:Hu,enum:Xu,literal:Ku,nan:Yu,template_literal:Qu,file:ed,success:td,custom:rd,function:nd,transform:id,map:od,set:sd,array:ad,object:ld,union:Qi,intersection:cd,tuple:ud,record:dd,nullable:fd,nonoptional:pd,default:hd,prefault:md,catch:gd,pipe:vd,readonly:yd,promise:bd,optional:eo,lazy:wd};function to(e,r){if("_idmap"in e){let o=e,t=ht({...r,processors:Yi}),i={};for(let c of o._idmap.entries()){let[u,l]=c;X(l,t)}let s={},a={registry:o,uri:r?.uri,defs:i};t.external=a;for(let c of o._idmap.entries()){let[u,l]=c;mt(t,l),s[u]=gt(t,l)}if(Object.keys(i).length>0){let c=t.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=ht({...r,processors:Yi});return X(e,n),mt(n,e),gt(n,e)}var ro=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=ht({processors:Yi,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return X(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),mt(this.ctx,r);let o=gt(this.ctx,r),{"~standard":t,...i}=o;return i}};var fv={};var en={};Ve(en,{ZodAny:()=>Vd,ZodArray:()=>Jd,ZodBase64:()=>$o,ZodBase64URL:()=>ko,ZodBigInt:()=>yr,ZodBigIntFormat:()=>Co,ZodBoolean:()=>vr,ZodCIDRv4:()=>_o,ZodCIDRv6:()=>So,ZodCUID:()=>mo,ZodCUID2:()=>go,ZodCatch:()=>vf,ZodCodec:()=>pn,ZodCustom:()=>hn,ZodCustomStringFormat:()=>mr,ZodDate:()=>ln,ZodDefault:()=>df,ZodDiscriminatedUnion:()=>Xd,ZodE164:()=>Io,ZodEmail:()=>fo,ZodEmoji:()=>po,ZodEnum:()=>pr,ZodExactOptional:()=>lf,ZodFile:()=>sf,ZodFunction:()=>Ef,ZodGUID:()=>rn,ZodIPv4:()=>wo,ZodIPv6:()=>xo,ZodIntersection:()=>Kd,ZodJWT:()=>Eo,ZodKSUID:()=>bo,ZodLazy:()=>$f,ZodLiteral:()=>of,ZodMAC:()=>Md,ZodMap:()=>rf,ZodNaN:()=>bf,ZodNanoID:()=>ho,ZodNever:()=>qd,ZodNonOptional:()=>Po,ZodNull:()=>Zd,ZodNullable:()=>uf,ZodNumber:()=>gr,ZodNumberFormat:()=>zt,ZodObject:()=>un,ZodOptional:()=>To,ZodPipe:()=>fn,ZodPrefault:()=>pf,ZodPreprocess:()=>wf,ZodPromise:()=>If,ZodReadonly:()=>xf,ZodRecord:()=>fr,ZodSet:()=>nf,ZodString:()=>hr,ZodStringFormat:()=>re,ZodSuccess:()=>gf,ZodSymbol:()=>Ld,ZodTemplateLiteral:()=>Sf,ZodTransform:()=>af,ZodTuple:()=>Qd,ZodType:()=>Z,ZodULID:()=>vo,ZodURL:()=>an,ZodUUID:()=>Xe,ZodUndefined:()=>Fd,ZodUnion:()=>dn,ZodUnknown:()=>Wd,ZodVoid:()=>Gd,ZodXID:()=>yo,ZodXor:()=>Hd,_ZodString:()=>uo,_default:()=>ff,_function:()=>xy,any:()=>Yv,array:()=>cn,base64:()=>Rv,base64url:()=>Av,bigint:()=>Gv,boolean:()=>jd,catch:()=>yf,check:()=>_y,cidrv4:()=>Tv,cidrv6:()=>Pv,codec:()=>vy,cuid:()=>kv,cuid2:()=>Iv,custom:()=>Sy,date:()=>ey,describe:()=>$y,discriminatedUnion:()=>sy,e164:()=>Mv,email:()=>mv,emoji:()=>Sv,enum:()=>zo,exactOptional:()=>cf,file:()=>py,float32:()=>Bv,float64:()=>Vv,function:()=>xy,guid:()=>gv,hash:()=>Zv,hex:()=>Fv,hostname:()=>Lv,httpUrl:()=>_v,instanceof:()=>Iy,int:()=>lo,int32:()=>Wv,int64:()=>Jv,intersection:()=>Yd,invertCodec:()=>yy,ipv4:()=>Nv,ipv6:()=>Dv,json:()=>Cy,jwt:()=>Uv,keyof:()=>ty,ksuid:()=>Ov,lazy:()=>kf,literal:()=>fy,looseObject:()=>iy,looseRecord:()=>ly,mac:()=>zv,map:()=>cy,meta:()=>ky,nan:()=>gy,nanoid:()=>$v,nativeEnum:()=>dy,never:()=>Oo,nonoptional:()=>mf,null:()=>Bd,nullable:()=>on,nullish:()=>hy,number:()=>Ud,object:()=>ry,optional:()=>nn,partialRecord:()=>ay,pipe:()=>co,prefault:()=>hf,preprocess:()=>Oy,promise:()=>wy,readonly:()=>_f,record:()=>tf,refine:()=>Cf,set:()=>uy,strictObject:()=>ny,string:()=>tn,stringFormat:()=>jv,stringbool:()=>Ey,success:()=>my,superRefine:()=>Of,symbol:()=>Xv,templateLiteral:()=>by,transform:()=>Do,tuple:()=>ef,uint32:()=>qv,uint64:()=>Hv,ulid:()=>Ev,undefined:()=>Kv,union:()=>No,unknown:()=>Nt,url:()=>xv,uuid:()=>vv,uuidv4:()=>yv,uuidv6:()=>bv,uuidv7:()=>wv,void:()=>Qv,xid:()=>Cv,xor:()=>oy});var no={};Ve(no,{endsWith:()=>rr,gt:()=>Je,gte:()=>Se,includes:()=>er,length:()=>Ot,lowercase:()=>Yt,lt:()=>Ge,lte:()=>De,maxLength:()=>Ct,maxSize:()=>pt,mime:()=>nr,minLength:()=>tt,minSize:()=>He,multipleOf:()=>ft,negative:()=>Ji,nonnegative:()=>Xi,nonpositive:()=>Hi,normalize:()=>ir,overwrite:()=>Ze,positive:()=>Gi,property:()=>Ki,regex:()=>Kt,size:()=>Et,slugify:()=>lr,startsWith:()=>tr,toLowerCase:()=>sr,toUpperCase:()=>ar,trim:()=>or,uppercase:()=>Qt});var dr={};Ve(dr,{ZodISODate:()=>oo,ZodISODateTime:()=>io,ZodISODuration:()=>ao,ZodISOTime:()=>so,date:()=>_d,datetime:()=>xd,duration:()=>$d,time:()=>Sd});var io=k("ZodISODateTime",(e,r)=>{Yl.init(e,r),re.init(e,r)});function xd(e){return ru(io,e)}var oo=k("ZodISODate",(e,r)=>{Ql.init(e,r),re.init(e,r)});function _d(e){return nu(oo,e)}var so=k("ZodISOTime",(e,r)=>{ec.init(e,r),re.init(e,r)});function Sd(e){return iu(so,e)}var ao=k("ZodISODuration",(e,r)=>{tc.init(e,r),re.init(e,r)});function $d(e){return ou(ao,e)}var pv=(e,r)=>{Fr.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Br(e,n)},flatten:{value:n=>Zr(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Zt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Zt,2)}},isEmpty:{get(){return e.issues.length===0}}})},nk=k("ZodError",pv),Ce=k("ZodError",pv,{Parent:Error});var kd=Wt(Ce),Id=qt(Ce),Ed=Gt(Ce),Cd=Jt(Ce),Od=ti(Ce),Nd=ri(Ce),zd=ni(Ce),Dd=ii(Ce),Td=oi(Ce),Pd=si(Ce),Rd=ai(Ce),Ad=li(Ce);var hv=new WeakMap;function sn(e,r,n){let o=Object.getPrototypeOf(e),t=hv.get(o);if(t||(t=new Set,hv.set(o,t)),!t.has(r)){t.add(r);for(let i in n){let s=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let a=s.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}var Z=k("ZodType",(e,r)=>(L.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:ur(e,"input"),output:ur(e,"output")}}),e.toJSONSchema=Mu(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(n,o)=>kd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Ed(e,n,o),e.parseAsync=async(n,o)=>Id(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Cd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Od(e,n,o),e.decode=(n,o)=>Nd(e,n,o),e.encodeAsync=async(n,o)=>zd(e,n,o),e.decodeAsync=async(n,o)=>Dd(e,n,o),e.safeEncode=(n,o)=>Td(e,n,o),e.safeDecode=(n,o)=>Pd(e,n,o),e.safeEncodeAsync=async(n,o)=>Rd(e,n,o),e.safeDecodeAsync=async(n,o)=>Ad(e,n,o),sn(e,"ZodType",{check(...n){let o=this.def;return this.clone(D.mergeDefs(o,{checks:[...o.checks??[],...n.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return xe(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Cf(n,o))},superRefine(n,o){return this.check(Of(n,o))},overwrite(n){return this.check(Ze(n))},optional(){return nn(this)},exactOptional(){return cf(this)},nullable(){return on(this)},nullish(){return nn(on(this))},nonoptional(n){return mf(this,n)},array(){return cn(this)},or(n){return No([this,n])},and(n){return Yd(this,n)},transform(n){return co(this,Do(n))},default(n){return ff(this,n)},prefault(n){return hf(this,n)},catch(n){return yf(this,n)},pipe(n){return co(this,n)},readonly(){return _f(this)},describe(n){let o=this.clone();return he.add(o,{description:n}),o},meta(...n){if(n.length===0)return he.get(this);let o=this.clone();return he.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return he.get(e)?.description},configurable:!0}),e)),uo=k("_ZodString",(e,r)=>{It.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Uu(e,o,t,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,sn(e,"_ZodString",{regex(...o){return this.check(Kt(...o))},includes(...o){return this.check(er(...o))},startsWith(...o){return this.check(tr(...o))},endsWith(...o){return this.check(rr(...o))},min(...o){return this.check(tt(...o))},max(...o){return this.check(Ct(...o))},length(...o){return this.check(Ot(...o))},nonempty(...o){return this.check(tt(1,...o))},lowercase(o){return this.check(Yt(o))},uppercase(o){return this.check(Qt(o))},trim(){return this.check(or())},normalize(...o){return this.check(ir(...o))},toLowerCase(){return this.check(sr())},toUpperCase(){return this.check(ar())},slugify(){return this.check(lr())}})}),hr=k("ZodString",(e,r)=>{It.init(e,r),uo.init(e,r),e.email=n=>e.check(Ei(fo,n)),e.url=n=>e.check(Qr(an,n)),e.jwt=n=>e.check(qi(Eo,n)),e.emoji=n=>e.check(Di(po,n)),e.guid=n=>e.check(Yr(rn,n)),e.uuid=n=>e.check(Ci(Xe,n)),e.uuidv4=n=>e.check(Oi(Xe,n)),e.uuidv6=n=>e.check(Ni(Xe,n)),e.uuidv7=n=>e.check(zi(Xe,n)),e.nanoid=n=>e.check(Ti(ho,n)),e.guid=n=>e.check(Yr(rn,n)),e.cuid=n=>e.check(Pi(mo,n)),e.cuid2=n=>e.check(Ri(go,n)),e.ulid=n=>e.check(Ai(vo,n)),e.base64=n=>e.check(Bi($o,n)),e.base64url=n=>e.check(Vi(ko,n)),e.xid=n=>e.check(Mi(yo,n)),e.ksuid=n=>e.check(Ui(bo,n)),e.ipv4=n=>e.check(ji(wo,n)),e.ipv6=n=>e.check(Li(xo,n)),e.cidrv4=n=>e.check(Fi(_o,n)),e.cidrv6=n=>e.check(Zi(So,n)),e.e164=n=>e.check(Wi(Io,n)),e.datetime=n=>e.check(xd(n)),e.date=n=>e.check(_d(n)),e.time=n=>e.check(Sd(n)),e.duration=n=>e.check($d(n))});function tn(e){return Yc(hr,e)}var re=k("ZodStringFormat",(e,r)=>{te.init(e,r),uo.init(e,r)}),fo=k("ZodEmail",(e,r)=>{Bl.init(e,r),re.init(e,r)});function mv(e){return Ei(fo,e)}var rn=k("ZodGUID",(e,r)=>{Fl.init(e,r),re.init(e,r)});function gv(e){return Yr(rn,e)}var Xe=k("ZodUUID",(e,r)=>{Zl.init(e,r),re.init(e,r)});function vv(e){return Ci(Xe,e)}function yv(e){return Oi(Xe,e)}function bv(e){return Ni(Xe,e)}function wv(e){return zi(Xe,e)}var an=k("ZodURL",(e,r)=>{Vl.init(e,r),re.init(e,r)});function xv(e){return Qr(an,e)}function _v(e){return Qr(an,{protocol:ze.httpProtocol,hostname:ze.domain,...D.normalizeParams(e)})}var po=k("ZodEmoji",(e,r)=>{Wl.init(e,r),re.init(e,r)});function Sv(e){return Di(po,e)}var ho=k("ZodNanoID",(e,r)=>{ql.init(e,r),re.init(e,r)});function $v(e){return Ti(ho,e)}var mo=k("ZodCUID",(e,r)=>{Gl.init(e,r),re.init(e,r)});function kv(e){return Pi(mo,e)}var go=k("ZodCUID2",(e,r)=>{Jl.init(e,r),re.init(e,r)});function Iv(e){return Ri(go,e)}var vo=k("ZodULID",(e,r)=>{Hl.init(e,r),re.init(e,r)});function Ev(e){return Ai(vo,e)}var yo=k("ZodXID",(e,r)=>{Xl.init(e,r),re.init(e,r)});function Cv(e){return Mi(yo,e)}var bo=k("ZodKSUID",(e,r)=>{Kl.init(e,r),re.init(e,r)});function Ov(e){return Ui(bo,e)}var wo=k("ZodIPv4",(e,r)=>{rc.init(e,r),re.init(e,r)});function Nv(e){return ji(wo,e)}var Md=k("ZodMAC",(e,r)=>{ic.init(e,r),re.init(e,r)});function zv(e){return eu(Md,e)}var xo=k("ZodIPv6",(e,r)=>{nc.init(e,r),re.init(e,r)});function Dv(e){return Li(xo,e)}var _o=k("ZodCIDRv4",(e,r)=>{oc.init(e,r),re.init(e,r)});function Tv(e){return Fi(_o,e)}var So=k("ZodCIDRv6",(e,r)=>{sc.init(e,r),re.init(e,r)});function Pv(e){return Zi(So,e)}var $o=k("ZodBase64",(e,r)=>{lc.init(e,r),re.init(e,r)});function Rv(e){return Bi($o,e)}var ko=k("ZodBase64URL",(e,r)=>{cc.init(e,r),re.init(e,r)});function Av(e){return Vi(ko,e)}var Io=k("ZodE164",(e,r)=>{uc.init(e,r),re.init(e,r)});function Mv(e){return Wi(Io,e)}var Eo=k("ZodJWT",(e,r)=>{dc.init(e,r),re.init(e,r)});function Uv(e){return qi(Eo,e)}var mr=k("ZodCustomStringFormat",(e,r)=>{fc.init(e,r),re.init(e,r)});function jv(e,r,n={}){return cr(mr,e,r,n)}function Lv(e){return cr(mr,"hostname",ze.hostname,e)}function Fv(e){return cr(mr,"hex",ze.hex,e)}function Zv(e,r){let n=r?.enc??"hex",o=`${e}_${n}`,t=ze[o];if(!t)throw new Error(`Unrecognized hash format: ${o}`);return cr(mr,o,t,r)}var gr=k("ZodNumber",(e,r)=>{vi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>ju(e,o,t,i),sn(e,"ZodNumber",{gt(o,t){return this.check(Je(o,t))},gte(o,t){return this.check(Se(o,t))},min(o,t){return this.check(Se(o,t))},lt(o,t){return this.check(Ge(o,t))},lte(o,t){return this.check(De(o,t))},max(o,t){return this.check(De(o,t))},int(o){return this.check(lo(o))},safe(o){return this.check(lo(o))},positive(o){return this.check(Je(0,o))},nonnegative(o){return this.check(Se(0,o))},negative(o){return this.check(Ge(0,o))},nonpositive(o){return this.check(De(0,o))},multipleOf(o,t){return this.check(ft(o,t))},step(o,t){return this.check(ft(o,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Ud(e){return su(gr,e)}var zt=k("ZodNumberFormat",(e,r)=>{pc.init(e,r),gr.init(e,r)});function lo(e){return lu(zt,e)}function Bv(e){return cu(zt,e)}function Vv(e){return uu(zt,e)}function Wv(e){return du(zt,e)}function qv(e){return fu(zt,e)}var vr=k("ZodBoolean",(e,r)=>{Gr.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Lu(e,n,o,t)});function jd(e){return pu(vr,e)}var yr=k("ZodBigInt",(e,r)=>{yi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Fu(e,o,t,i),e.gte=(o,t)=>e.check(Se(o,t)),e.min=(o,t)=>e.check(Se(o,t)),e.gt=(o,t)=>e.check(Je(o,t)),e.gte=(o,t)=>e.check(Se(o,t)),e.min=(o,t)=>e.check(Se(o,t)),e.lt=(o,t)=>e.check(Ge(o,t)),e.lte=(o,t)=>e.check(De(o,t)),e.max=(o,t)=>e.check(De(o,t)),e.positive=o=>e.check(Je(BigInt(0),o)),e.negative=o=>e.check(Ge(BigInt(0),o)),e.nonpositive=o=>e.check(De(BigInt(0),o)),e.nonnegative=o=>e.check(Se(BigInt(0),o)),e.multipleOf=(o,t)=>e.check(ft(o,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Gv(e){return mu(yr,e)}var Co=k("ZodBigIntFormat",(e,r)=>{hc.init(e,r),yr.init(e,r)});function Jv(e){return vu(Co,e)}function Hv(e){return yu(Co,e)}var Ld=k("ZodSymbol",(e,r)=>{mc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Zu(e,n,o,t)});function Xv(e){return bu(Ld,e)}var Fd=k("ZodUndefined",(e,r)=>{gc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Vu(e,n,o,t)});function Kv(e){return wu(Fd,e)}var Zd=k("ZodNull",(e,r)=>{vc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Bu(e,n,o,t)});function Bd(e){return xu(Zd,e)}var Vd=k("ZodAny",(e,r)=>{yc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Gu(e,n,o,t)});function Yv(){return _u(Vd)}var Wd=k("ZodUnknown",(e,r)=>{bc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ju(e,n,o,t)});function Nt(){return Su(Wd)}var qd=k("ZodNever",(e,r)=>{wc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>qu(e,n,o,t)});function Oo(e){return $u(qd,e)}var Gd=k("ZodVoid",(e,r)=>{xc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Wu(e,n,o,t)});function Qv(e){return ku(Gd,e)}var ln=k("ZodDate",(e,r)=>{_c.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Hu(e,o,t,i),e.min=(o,t)=>e.check(Se(o,t)),e.max=(o,t)=>e.check(De(o,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function ey(e){return Iu(ln,e)}var Jd=k("ZodArray",(e,r)=>{Sc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ad(e,n,o,t),e.element=r.element,sn(e,"ZodArray",{min(n,o){return this.check(tt(n,o))},nonempty(n){return this.check(tt(1,n))},max(n,o){return this.check(Ct(n,o))},length(n,o){return this.check(Ot(n,o))},unwrap(){return this.element}})});function cn(e,r){return Ou(Jd,e,r)}function ty(e){let r=e._zod.def.shape;return zo(Object.keys(r))}var un=k("ZodObject",(e,r)=>{$c.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ld(e,n,o,t),D.defineLazy(e,"shape",()=>r.shape),sn(e,"ZodObject",{keyof(){return zo(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Nt()})},loose(){return this.clone({...this._zod.def,catchall:Nt()})},strict(){return this.clone({...this._zod.def,catchall:Oo()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return D.extend(this,n)},safeExtend(n){return D.safeExtend(this,n)},merge(n){return D.merge(this,n)},pick(n){return D.pick(this,n)},omit(n){return D.omit(this,n)},partial(...n){return D.partial(To,this,n[0])},required(...n){return D.required(Po,this,n[0])}})});function ry(e,r){let n={type:"object",shape:e??{},...D.normalizeParams(r)};return new un(n)}function ny(e,r){return new un({type:"object",shape:e,catchall:Oo(),...D.normalizeParams(r)})}function iy(e,r){return new un({type:"object",shape:e,catchall:Nt(),...D.normalizeParams(r)})}var dn=k("ZodUnion",(e,r)=>{Jr.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Qi(e,n,o,t),e.options=r.options});function No(e,r){return new dn({type:"union",options:e,...D.normalizeParams(r)})}var Hd=k("ZodXor",(e,r)=>{dn.init(e,r),kc.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Qi(e,n,o,t),e.options=r.options});function oy(e,r){return new Hd({type:"union",options:e,inclusive:!1,...D.normalizeParams(r)})}var Xd=k("ZodDiscriminatedUnion",(e,r)=>{dn.init(e,r),Ic.init(e,r)});function sy(e,r,n){return new Xd({type:"union",options:r,discriminator:e,...D.normalizeParams(n)})}var Kd=k("ZodIntersection",(e,r)=>{Ec.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>cd(e,n,o,t)});function Yd(e,r){return new Kd({type:"intersection",left:e,right:r})}var Qd=k("ZodTuple",(e,r)=>{bi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ud(e,n,o,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function ef(e,r,n){let o=r instanceof L,t=o?n:r,i=o?r:null;return new Qd({type:"tuple",items:e,rest:i,...D.normalizeParams(t)})}var fr=k("ZodRecord",(e,r)=>{Cc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>dd(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType});function tf(e,r,n){return!r||!r._zod?new fr({type:"record",keyType:tn(),valueType:e,...D.normalizeParams(r)}):new fr({type:"record",keyType:e,valueType:r,...D.normalizeParams(n)})}function ay(e,r,n){let o=xe(e);return o._zod.values=void 0,new fr({type:"record",keyType:o,valueType:r,...D.normalizeParams(n)})}function ly(e,r,n){return new fr({type:"record",keyType:e,valueType:r,mode:"loose",...D.normalizeParams(n)})}var rf=k("ZodMap",(e,r)=>{Oc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>od(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...n)=>e.check(He(...n)),e.nonempty=n=>e.check(He(1,n)),e.max=(...n)=>e.check(pt(...n)),e.size=(...n)=>e.check(Et(...n))});function cy(e,r,n){return new rf({type:"map",keyType:e,valueType:r,...D.normalizeParams(n)})}var nf=k("ZodSet",(e,r)=>{Nc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>sd(e,n,o,t),e.min=(...n)=>e.check(He(...n)),e.nonempty=n=>e.check(He(1,n)),e.max=(...n)=>e.check(pt(...n)),e.size=(...n)=>e.check(Et(...n))});function uy(e,r){return new nf({type:"set",valueType:e,...D.normalizeParams(r)})}var pr=k("ZodEnum",(e,r)=>{zc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Xu(e,o,t,i),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(o,t)=>{let i={};for(let s of o)if(n.has(s))i[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new pr({...r,checks:[],...D.normalizeParams(t),entries:i})},e.exclude=(o,t)=>{let i={...r.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new pr({...r,checks:[],...D.normalizeParams(t),entries:i})}});function zo(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new pr({type:"enum",entries:n,...D.normalizeParams(r)})}function dy(e,r){return new pr({type:"enum",entries:e,...D.normalizeParams(r)})}var of=k("ZodLiteral",(e,r)=>{Dc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ku(e,n,o,t),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function fy(e,r){return new of({type:"literal",values:Array.isArray(e)?e:[e],...D.normalizeParams(r)})}var sf=k("ZodFile",(e,r)=>{Tc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ed(e,n,o,t),e.min=(n,o)=>e.check(He(n,o)),e.max=(n,o)=>e.check(pt(n,o)),e.mime=(n,o)=>e.check(nr(Array.isArray(n)?n:[n],o))});function py(e){return Nu(sf,e)}var af=k("ZodTransform",(e,r)=>{Pc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>id(e,n,o,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new at(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(D.issue(i,n.value,r));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(D.issue(s))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=t,n.fallback=!0,n)}});function Do(e){return new af({type:"transform",transform:e})}var To=k("ZodOptional",(e,r)=>{wi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>eo(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function nn(e){return new To({type:"optional",innerType:e})}var lf=k("ZodExactOptional",(e,r)=>{Rc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>eo(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function cf(e){return new lf({type:"optional",innerType:e})}var uf=k("ZodNullable",(e,r)=>{Ac.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>fd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function on(e){return new uf({type:"nullable",innerType:e})}function hy(e){return nn(on(e))}var df=k("ZodDefault",(e,r)=>{Mc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>hd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ff(e,r){return new df({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():D.shallowClone(r)}})}var pf=k("ZodPrefault",(e,r)=>{Uc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>md(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function hf(e,r){return new pf({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():D.shallowClone(r)}})}var Po=k("ZodNonOptional",(e,r)=>{jc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>pd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function mf(e,r){return new Po({type:"nonoptional",innerType:e,...D.normalizeParams(r)})}var gf=k("ZodSuccess",(e,r)=>{Lc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>td(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function my(e){return new gf({type:"success",innerType:e})}var vf=k("ZodCatch",(e,r)=>{Fc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>gd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function yf(e,r){return new vf({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var bf=k("ZodNaN",(e,r)=>{Zc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Yu(e,n,o,t)});function gy(e){return Cu(bf,e)}var fn=k("ZodPipe",(e,r)=>{xi.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>vd(e,n,o,t),e.in=r.in,e.out=r.out});function co(e,r){return new fn({type:"pipe",in:e,out:r})}var pn=k("ZodCodec",(e,r)=>{fn.init(e,r),Hr.init(e,r)});function vy(e,r,n){return new pn({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}function yy(e){let r=e._zod.def;return new pn({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var wf=k("ZodPreprocess",(e,r)=>{fn.init(e,r),Bc.init(e,r)}),xf=k("ZodReadonly",(e,r)=>{Vc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>yd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function _f(e){return new xf({type:"readonly",innerType:e})}var Sf=k("ZodTemplateLiteral",(e,r)=>{Wc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Qu(e,n,o,t)});function by(e,r){return new Sf({type:"template_literal",parts:e,...D.normalizeParams(r)})}var $f=k("ZodLazy",(e,r)=>{Jc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wd(e,n,o,t),e.unwrap=()=>e._zod.def.getter()});function kf(e){return new $f({type:"lazy",getter:e})}var If=k("ZodPromise",(e,r)=>{Gc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>bd(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function wy(e){return new If({type:"promise",innerType:e})}var Ef=k("ZodFunction",(e,r)=>{qc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>nd(e,n,o,t)});function xy(e){return new Ef({type:"function",input:Array.isArray(e?.input)?ef(e?.input):e?.input??cn(Nt()),output:e?.output??Nt()})}var hn=k("ZodCustom",(e,r)=>{Hc.init(e,r),Z.init(e,r),e._zod.processJSONSchema=(n,o,t)=>rd(e,n,o,t)});function _y(e){let r=new ne({check:"custom"});return r._zod.check=e,r}function Sy(e,r){return zu(hn,e??(()=>!0),r)}function Cf(e,r={}){return Du(hn,e,r)}function Of(e,r){return Tu(e,r)}var $y=Pu,ky=Ru;function Iy(e,r={}){let n=new hn({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...D.normalizeParams(r)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Ey=(...e)=>Au({Codec:pn,Boolean:vr,String:hr},...e);function Cy(e){let r=kf(()=>No([tn(e),Ud(),jd(),Bd(),cn(r),tf(tn(),r)]));return r}function Oy(e,r){return new wf({type:"pipe",in:Do(e),out:r})}var ok={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function sk(e){ce({customError:e})}function ak(){return ce().customError}var Nf;Nf||(Nf={});var M={...en,...no,iso:dr},lk=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function ck(e,r){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function uk(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let t=n[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}function Ny(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return M.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return M.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=uk(t,r),s=ve(i,r);return r.refs.set(t,s),r.processing.delete(t),s}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return M.null();if(t.length===0)return M.never();if(t.length===1)return M.literal(t[0]);if(t.every(s=>typeof s=="string"))return M.enum(t);let i=t.map(s=>M.literal(s));return i.length<2?i[0]:M.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return M.literal(e.const);let n=e.type;if(Array.isArray(n)){let t=n.map(i=>{let s={...e,type:i};return Ny(s,r)});return t.length===0?M.never():t.length===1?t[0]:M.union(t)}if(!n)return M.any();let o;switch(n){case"string":{let t=M.string();if(e.format){let i=e.format;i==="email"?t=t.check(M.email()):i==="uri"||i==="uri-reference"?t=t.check(M.url()):i==="uuid"||i==="guid"?t=t.check(M.uuid()):i==="date-time"?t=t.check(M.iso.datetime()):i==="date"?t=t.check(M.iso.date()):i==="time"?t=t.check(M.iso.time()):i==="duration"?t=t.check(M.iso.duration()):i==="ipv4"?t=t.check(M.ipv4()):i==="ipv6"?t=t.check(M.ipv6()):i==="mac"?t=t.check(M.mac()):i==="cidr"?t=t.check(M.cidrv4()):i==="cidr-v6"?t=t.check(M.cidrv6()):i==="base64"?t=t.check(M.base64()):i==="base64url"?t=t.check(M.base64url()):i==="e164"?t=t.check(M.e164()):i==="jwt"?t=t.check(M.jwt()):i==="emoji"?t=t.check(M.emoji()):i==="nanoid"?t=t.check(M.nanoid()):i==="cuid"?t=t.check(M.cuid()):i==="cuid2"?t=t.check(M.cuid2()):i==="ulid"?t=t.check(M.ulid()):i==="xid"?t=t.check(M.xid()):i==="ksuid"&&(t=t.check(M.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),o=t;break}case"number":case"integer":{let t=n==="integer"?M.number().int():M.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),o=t;break}case"boolean":{o=M.boolean();break}case"null":{o=M.null();break}case"object":{let t={},i=e.properties||{},s=new Set(e.required||[]);for(let[c,u]of Object.entries(i)){let l=ve(u,r);t[c]=s.has(c)?l:l.optional()}if(e.propertyNames){let c=ve(e.propertyNames,r),u=e.additionalProperties&&typeof e.additionalProperties=="object"?ve(e.additionalProperties,r):M.any();if(Object.keys(t).length===0){o=M.record(c,u);break}let l=M.object(t).passthrough(),p=M.looseRecord(c,u);o=M.intersection(l,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let f of u){let d=ve(c[f],r),m=M.string().regex(new RegExp(f));l.push(M.looseRecord(m,d))}let p=[];if(Object.keys(t).length>0&&p.push(M.object(t).passthrough()),p.push(...l),p.length===0)o=M.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=M.intersection(p[0],p[1]);for(let d=2;d<p.length;d++)f=M.intersection(f,p[d]);o=f}break}let a=M.object(t);e.additionalProperties===!1?o=a.strict():typeof e.additionalProperties=="object"?o=a.catchall(ve(e.additionalProperties,r)):o=a.passthrough();break}case"array":{let t=e.prefixItems,i=e.items;if(t&&Array.isArray(t)){let s=t.map(c=>ve(c,r)),a=i&&typeof i=="object"&&!Array.isArray(i)?ve(i,r):void 0;a?o=M.tuple(s).rest(a):o=M.tuple(s),typeof e.minItems=="number"&&(o=o.check(M.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(M.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(c=>ve(c,r)),a=e.additionalItems&&typeof e.additionalItems=="object"?ve(e.additionalItems,r):void 0;a?o=M.tuple(s).rest(a):o=M.tuple(s),typeof e.minItems=="number"&&(o=o.check(M.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(M.maxLength(e.maxItems)))}else if(i!==void 0){let s=ve(i,r),a=M.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),o=a}else o=M.array(M.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function ve(e,r){if(typeof e=="boolean")return e?M.any():M.never();let n=Ny(e,r),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>ve(u,r)),c=M.union(a);n=o?M.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>ve(u,r)),c=M.xor(a);n=o?M.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:M.any();else{let a=o?n:ve(e.allOf[0],r),c=o?0:1;for(let u=c;u<e.allOf.length;u++)a=M.intersection(a,ve(e.allOf[u],r));n=a}e.nullable===!0&&r.version==="openapi-3.0"&&(n=M.nullable(n)),e.readOnly===!0&&(n=M.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let t={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(t[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(t[a]=e[a]);for(let a of Object.keys(e))lk.has(a)||(t[a]=e[a]);return Object.keys(t).length>0&&r.registry.add(n,t),e.description&&(n=n.describe(e.description)),n}function zy(e,r){if(typeof e=="boolean")return e?M.any():M.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=ck(n,r?.defaultTarget),t=n.$defs||n.definitions||{},i={version:o,defs:t,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??he};return ve(n,i)}var zf={};Ve(zf,{bigint:()=>hk,boolean:()=>pk,date:()=>mk,number:()=>fk,string:()=>dk});function dk(e){return Qc(hr,e)}function fk(e){return au(gr,e)}function pk(e){return hu(vr,e)}function hk(e){return gu(yr,e)}function mk(e){return Eu(ln,e)}ce(_i());var gk=$.enum(["log","info","warn","error","debug"]),vk=$.object({level:gk,args:$.array($.string()),timestamp:$.number()}),yk=$.object({method:$.string(),url:$.string(),status:$.number().nullable(),ok:$.boolean().nullable(),durationMs:$.number().nullable(),requestType:$.enum(["fetch","xhr"]),startedAt:$.number(),error:$.string().optional()}),bk=$.object({message:$.string(),stack:$.string().optional(),source:$.enum(["window.onerror","unhandledrejection","console.error","react-boundary"]),timestamp:$.number()}),wk=$.object({url:$.string(),route:$.string().optional(),referrer:$.string().optional(),userAgent:$.string(),browser:$.string().optional(),os:$.string().optional(),device:$.enum(["desktop","tablet","mobile"]).optional(),viewport:$.object({width:$.number(),height:$.number()}),screen:$.object({width:$.number(),height:$.number()}),devicePixelRatio:$.number(),language:$.string(),timezone:$.string(),theme:$.enum(["light","dark"]).optional(),online:$.boolean().optional(),capturedAt:$.number()}),xk=$.object({release:$.string().optional(),gitSha:$.string().optional(),environment:$.string().optional(),featureFlags:$.record($.string(),$.union([$.string(),$.boolean(),$.number()])).optional(),user:$.object({id:$.string().optional(),email:$.string().optional(),name:$.string().optional(),organization:$.string().optional()}).optional(),extra:$.record($.string(),$.unknown()).optional()}),_k=$.object({domPath:$.string().optional(),tagName:$.string().optional(),text:$.string().optional(),boundingRect:$.object({x:$.number(),y:$.number(),width:$.number(),height:$.number()}).optional(),reactComponents:$.array($.string()).optional()}),Sk=$.object({kind:$.enum(["rect","ellipse","arrow"]),x:$.number(),y:$.number(),width:$.number(),height:$.number(),viewport:$.object({width:$.number(),height:$.number()})}),mn=$.enum(["replay","console","network","dom","screenshot","attachment"]),$k=$.object({kind:mn,key:$.string(),contentType:$.string(),byteSize:$.number().optional()}),kk=$.enum(["initiated","submitted","triaged","linked","resolved"]),Dy=$.object({comment:$.string().optional(),annotations:$.array(Sk).default([]),target:_k.optional(),env:wk,app:xk.optional(),errors:$.array(bk).default([]),consoleTail:$.array(vk).default([]),networkTail:$.array(yk).default([]),sdk:$.object({name:$.string(),version:$.string()})}),Ik=$.object({id:$.string(),projectId:$.string(),status:kk,createdAt:$.string(),submittedAt:$.string().nullable(),metadata:Dy.nullable(),assets:$.array($k).default([]),externalIssue:$.object({provider:$.string(),key:$.string(),url:$.string()}).nullable().default(null)}),XC=Ik.pick({id:!0,projectId:!0,status:!0,createdAt:!0,submittedAt:!0,externalIssue:!0}).extend({comment:$.string().optional(),url:$.string().optional(),errorCount:$.number().default(0),hasReplay:$.boolean().default(!1)}),YC=$.object({accessId:$.string(),assets:$.array($.object({kind:mn,contentType:$.string()}))}),QC=$.object({reportId:$.string(),uploads:$.array($.object({kind:mn,key:$.string(),url:$.string(),method:$.literal("PUT"),headers:$.record($.string(),$.string())})),expiresAt:$.string()}),e1=$.object({accessId:$.string(),metadata:Dy,uploadedAssets:$.array($.object({kind:mn,key:$.string(),byteSize:$.number().optional()}))}),t1=$.object({reportId:$.string(),status:$.literal("submitted")}),r1=$.object({accessId:$.string(),kind:mn,key:$.string(),contentType:$.string(),byteSize:$.number().optional()}),n1=$.object({status:$.string().optional(),q:$.string().max(200).optional(),limit:$.coerce.number().min(1).max(100).default(50),cursor:$.string().optional()}),i1=$.object({error:$.string(),message:$.string()}),Df=$.enum(["github","jira","linear"]),Ek=$.enum(["disconnected","pending","connected"]),Ck=$.object({repo:$.string().optional(),teamKey:$.string().optional(),projectKey:$.string().optional(),issueType:$.string().optional()}),Ok=$.object({provider:Df,status:Ek,account:$.string().nullable().default(null),active:$.boolean().default(!1),config:Ck.default({})}),s1=$.object({bucket:$.string().min(1),region:$.string().min(1),endpoint:$.string().url().optional(),accessKeyId:$.string().min(1),secretAccessKey:$.string().min(1),forcePathStyle:$.boolean().optional()}),Nk=$.object({bucket:$.string(),region:$.string(),endpoint:$.string().optional(),forcePathStyle:$.boolean().optional(),accessKeyIdMasked:$.string()}),zk=$.object({id:$.string(),name:$.string(),accessId:$.string(),allowedOrigins:$.array($.string()),destination:Df.nullable(),dashboardUrl:$.string().nullable().default(null),s3:Nk.nullable(),onboardedAt:$.string().nullable(),createdAt:$.string()}),a1=$.object({name:$.string().min(1).max(120),allowedOrigins:$.array($.string()).default([])}),l1=$.object({project:zk,accessId:$.string(),accessSecret:$.string()}),c1=$.object({name:$.string().min(1).max(120).optional(),allowedOrigins:$.array($.string()).optional(),onboarded:$.boolean().optional(),dashboardUrl:$.string().url().nullable().optional()}),u1=$.object({integrations:$.array(Ok)}),d1=$.object({returnUrl:$.string().url().optional()}),f1=$.object({authorizeUrl:$.string(),provider:Df});var Dk="@merittdev/horus-lens",Tk="0.0.1",Pk="http://localhost:5625",Rk=15e3,Ak=200,Mk=100,Uk=100,jk=50,Lk=30,Ty=2e3,Fk=2*1024*1024,Zk=200,Tf=2e4,Bk=2,Vk=25e5,Wk=12e4,qk=1e4,Mf="__lens_root__",Pf=class{constructor(e){if(this.capacity=e,e<=0)throw new Error("RingBuffer capacity must be > 0")}capacity;items=[];push(e){this.items.push(e),this.items.length>this.capacity&&this.items.splice(0,this.items.length-this.capacity)}drain(){return[...this.items]}tail(e){return this.items.slice(-e)}clear(){this.items=[]}get size(){return this.items.length}},Gk=class{constructor(e){this.config=e}config;async initiate(e){let r={accessId:this.config.accessId,assets:e};return this.postJson(`${this.config.endpoint}/v1/reports/initiate`,r)}async attachAsset(e,r){let n={accessId:this.config.accessId,...r};await this.postJson(`${this.config.endpoint}/v1/reports/${encodeURIComponent(e)}/assets`,n)}async uploadAsset(e,r){let n=await fetch(e.url,{method:e.method,headers:e.headers,body:r});if(!n.ok)throw new Error(`Asset upload failed (${e.kind}): ${n.status}`)}async finalize(e,r,n){let o={accessId:this.config.accessId,metadata:r,uploadedAssets:n};return this.postJson(`${this.config.endpoint}/v1/reports/${e}/finalize`,o)}async postJson(e,r,n=1){let o;for(let t=0;t<=n;t++)try{let i=await fetch(e,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)});if(!i.ok){let s=await i.text().catch(()=>"");throw new Error(`Request to ${e} failed: ${i.status} ${s}`.trim())}return await i.json()}catch(i){o=i,this.config.debug&&console.warn(`[lens] request failed (attempt ${t+1}/${n+1})`,i)}throw o}},Jk=["log","info","warn","error","debug"];function Ro(e){return e.length>Ty?`${e.slice(0,Ty)}\u2026[truncated]`:e}function Hk(e){if(e===null)return"null";if(e===void 0)return"undefined";let r=typeof e;if(r==="string")return Ro(e);if(r==="number"||r==="boolean"||r==="bigint"||r==="symbol")return String(e);if(r==="function")return`[Function: ${e.name||"anonymous"}]`;if(e instanceof Error)return Ro(e.stack?`${e.name}: ${e.message}
206
+ ${e.stack}`:`${e.name}: ${e.message}`);try{let n=new WeakSet,o=JSON.stringify(e,(t,i)=>{if(typeof i=="bigint")return String(i);if(typeof i=="function")return"[Function]";if(typeof i=="object"&&i!==null){if(n.has(i))return"[Circular]";n.add(i)}return i});return Ro(o??String(e))}catch{return Ro(String(e))}}function Xk(e){for(let r of e)if(r instanceof Error&&r.stack)return r.stack}function Kk(e,r){if(typeof console>"u")return()=>{};let n=console,o=[];for(let t of Jk){let i=n[t];if(typeof i!="function")continue;let s=(...a)=>{try{let c=a.map(Hk),u=Date.now();if(e.push({level:t,args:c,timestamp:u}),t==="error"){let l=Xk(a),p={message:c.join(" ")||"console.error",source:"console.error",timestamp:u};l&&(p.stack=l),r.push(p)}}catch{}i.apply(console,a)};n[t]=s,o.push(()=>{n[t]=i})}return()=>{for(let t of o)t()}}function gn(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function Yk(e){try{return typeof e=="string"?e:e instanceof URL?e.href:e.url}catch{return""}}function Py(e,r){return r.length>0&&e.startsWith(r)}function Qk(e){return e instanceof Error?e.message:String(e)}function eI(e,r){if(typeof window>"u")return()=>{};let n=[],o=window.fetch;if(typeof o=="function"){let i=function(s,a){let c=Yk(s),u=(a?.method??(typeof Request<"u"&&s instanceof Request?s.method:"GET")).toUpperCase();if(Py(c,r))return o.call(window,s,a);let l=Date.now(),p=gn();return o.call(window,s,a).then(f=>(e.push({method:u,url:c,status:f.status,ok:f.ok,durationMs:Math.round(gn()-p),requestType:"fetch",startedAt:l}),f),f=>{throw e.push({method:u,url:c,status:null,ok:null,durationMs:Math.round(gn()-p),requestType:"fetch",startedAt:l,error:Qk(f)}),f})};window.fetch=i,n.push(()=>{window.fetch=o})}let t=window.XMLHttpRequest;if(typeof t=="function"){let i=t.prototype,s=i.open,a=i.send,c=new WeakMap,u=function(p,f){try{c.set(this,{method:String(p).toUpperCase(),url:String(f)})}catch{}return s.apply(this,arguments)},l=function(){let p=c.get(this);if(p&&!Py(p.url,r)){let f=Date.now(),d=gn(),m=this;m.addEventListener("loadend",()=>{let h=m.status,g={method:p.method,url:p.url,status:h===0?null:h,ok:h===0?null:h>=200&&h<300,durationMs:Math.round(gn()-d),requestType:"xhr",startedAt:f};h===0&&(g.error="Network request failed"),e.push(g)},{once:!0})}return a.apply(this,arguments)};i.open=u,i.send=l,n.push(()=>{i.open=s,i.send=a})}return()=>{for(let i of n)i()}}function tI(e){if(typeof window>"u")return()=>{};let r=o=>{let t=o.error,i={message:o.message||(t instanceof Error?t.message:String(t??"Unknown error")),source:"window.onerror",timestamp:Date.now()};t instanceof Error&&t.stack&&(i.stack=t.stack),e.push(i)},n=o=>{let t=o.reason,i={message:t instanceof Error?t.message:String(t),source:"unhandledrejection",timestamp:Date.now()};t instanceof Error&&t.stack&&(i.stack=t.stack),e.push(i)};return window.addEventListener("error",r),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",n)}}var rI=class{constructor(e,r){this.windowMs=e,this.debug=r}windowMs;debug;current=[];previous=[];stopFn;warned=!1;manualBuffer=[];manualActive=!1;manualRetained=!1;manualTruncated=!1;manualStartTs=0;manualEndTs=0;start(){if(!this.stopFn&&!(typeof window>"u"||typeof document>"u"))try{let e=We({emit:(r,n)=>this.onEmit(r,n),checkoutEveryNms:this.windowMs,recordCanvas:!1,blockSelector:`#${Mf}`});this.stopFn=e??void 0}catch(e){this.warnOnce(e)}}onEmit(e,r){if(this.manualActive){let n=e.timestamp-this.manualStartTs<=Wk,o=this.manualBuffer.length<qk;n&&o?this.manualBuffer.push(e):this.manualTruncated=!0;return}r&&(this.previous=this.current,this.current=[]),this.current.push(e)}startManualRecording(){this.manualBuffer=[],this.manualTruncated=!1,this.manualStartTs=Date.now(),this.manualEndTs=0,this.manualRetained=!0,this.manualActive=!0;let e=We.takeFullSnapshot;if(this.stopFn&&typeof e=="function")try{e(!0);return}catch(r){this.warnOnce(r)}this.restart()}stopManualRecording(){return this.manualActive&&(this.manualActive=!1,this.manualEndTs=Date.now()),{durationMs:Math.max(0,this.manualEndTs-this.manualStartTs)}}discardManualRecording(){this.manualActive=!1,this.manualRetained=!1,this.manualTruncated=!1,this.manualBuffer=[]}isManualRecording(){return this.manualActive}hasManualRecording(){return this.manualRetained}isManualTruncated(){return this.manualTruncated}snapshot(){return this.manualRetained?[...this.manualBuffer]:[...this.previous,...this.current]}stop(){try{this.stopFn?.()}catch{}this.stopFn=void 0,this.current=[],this.previous=[],this.manualActive=!1,this.manualRetained=!1,this.manualBuffer=[]}restart(){try{this.stopFn?.()}catch{}this.stopFn=void 0,this.current=[],this.previous=[],this.start()}warnOnce(e){this.warned||!this.debug||(this.warned=!0,console.warn("[lens] rrweb recording unavailable; replay disabled",e))}};async function nI(e){if(typeof document>"u"||typeof window>"u")return null;try{let r=window.innerWidth*window.innerHeight||1,n=Math.sqrt(Vk/r),o=Math.max(1,Math.min(window.devicePixelRatio||1,Bk,n)),t=Tm(document.documentElement,{scale:o,type:"image/jpeg",quality:.82,filter:c=>c!==e,fetch:{requestInit:{cache:"force-cache"},bypassingCache:!1},timeout:Tf-1e3}),i=Date.now(),s=new Promise(c=>{setTimeout(()=>c(null),Tf)}),a=await Promise.race([t.catch(c=>(console.warn("[lens] screenshot capture failed:",c),null)),s]);return a||(console.warn(`[lens] screenshot unavailable after ${Date.now()-i}ms`+(Date.now()-i>=Tf-50?" (timed out)":"")),null)}catch(r){return console.warn("[lens] screenshot capture failed:",r),null}}function iI(e){if(!e)return;let r=[[/Edg\/([\d.]+)/,n=>`Edge ${n[1]??""}`.trim()],[/OPR\/([\d.]+)/,n=>`Opera ${n[1]??""}`.trim()],[/Firefox\/([\d.]+)/,n=>`Firefox ${n[1]??""}`.trim()],[/Chrome\/([\d.]+)/,n=>`Chrome ${n[1]??""}`.trim()],[/Version\/([\d.]+).*Safari/,n=>`Safari ${n[1]??""}`.trim()],[/Safari\/([\d.]+)/,()=>"Safari"]];for(let[n,o]of r){let t=e.match(n);if(t)return o(t)}}function oI(e){if(e){if(/Windows NT 10/.test(e))return"Windows 10";if(/Windows NT/.test(e))return"Windows";if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Android/.test(e))return"Android";if(/Mac OS X/.test(e))return"macOS";if(/Linux/.test(e))return"Linux"}}function sI(e){let r=typeof navigator<"u"&&typeof navigator.maxTouchPoints=="number"?navigator.maxTouchPoints>0:typeof window<"u"&&"ontouchstart"in window;return/iPad|Tablet/.test(e)||/Android/.test(e)&&!/Mobile/.test(e)?"tablet":/Mobi|iPhone|iPod|Android.*Mobile/.test(e)||r&&/Android|iPhone|iPad/.test(e)?"mobile":"desktop"}function aI(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}function lI(){try{if(typeof window>"u"||typeof window.matchMedia!="function")return;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}catch{}}function cI(){let e=typeof navigator<"u"?navigator:void 0,r=typeof location<"u"?location:void 0,n=typeof window<"u"?window:void 0,o=typeof screen<"u"?screen:void 0,t=typeof document<"u"?document:void 0,i=e?.userAgent??"",s={url:r?.href??"",userAgent:i,viewport:{width:n?.innerWidth??0,height:n?.innerHeight??0},screen:{width:o?.width??0,height:o?.height??0},devicePixelRatio:n?.devicePixelRatio??1,language:e?.language??"en",timezone:aI(),capturedAt:Date.now()};r?.pathname&&(s.route=r.pathname);let a=t?.referrer;a&&(s.referrer=a);let c=iI(i);c&&(s.browser=c);let u=oI(i);u&&(s.os=u),s.device=sI(i);let l=lI();return l&&(s.theme=l),e&&typeof e.onLine=="boolean"&&(s.online=e.onLine),s}function Ry(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,r=>`\\${r}`)}function uI(e,r=10){if(typeof Element>"u"||!(e instanceof Element))return"";let n=[],o=e,t=0;for(;o&&o.nodeType===1&&t<r;){let i=o;if(i.id){n.unshift(`#${Ry(i.id)}`);break}let s=i.tagName.toLowerCase(),a=Array.from(i.classList).filter(Boolean).slice(0,3);a.length>0&&(s+=a.map(u=>`.${Ry(u)}`).join(""));let c=i.parentElement;if(c){let u=Array.from(c.children).filter(l=>l.tagName===i.tagName);u.length>1&&(s+=`:nth-of-type(${u.indexOf(i)+1})`)}n.unshift(s),o=c,t++}return n.join(" > ")}function Af(e){if(!e)return null;if(typeof e=="function"){let r=e,n=r.displayName||r.name;return n&&n!=="Unknown"?n:null}if(typeof e=="object"){let r=e;if(r.displayName)return r.displayName;if(r.render)return Af(r.render);if(r.type)return Af(r.type)}return null}function dI(e,r=10){let n=[];try{let o=e,t=Object.keys(o).find(a=>a.startsWith("__reactFiber$"));if(!t)return n;let i=o[t],s=0;for(;i&&s<60&&n.length<r;){let a=Af(i.type);a&&n[n.length-1]!==a&&n.push(a),i=i.return,s++}}catch{}return n}function fI(e){if(!(typeof document>"u"))try{let r=document.documentElement?.outerHTML;return r?r.length>e?r.slice(0,e):r:void 0}catch{return}}function pI(e,r){let n={},o=uI(e);o&&(n.domPath=o),e.tagName&&(n.tagName=e.tagName.toLowerCase());let t=(e.textContent??"").replace(/\s+/g," ").trim().slice(0,r);t&&(n.text=t);try{let s=e.getBoundingClientRect();n.boundingRect={x:s.x,y:s.y,width:s.width,height:s.height}}catch{}let i=dI(e);return i.length>0&&(n.reactComponents=i),n}function Rf(e){return new Blob([JSON.stringify(e)],{type:"application/json"})}var Ay=class{accessId;endpoint;replayWindowMs;debug;screenshotEnabled;beforeSend;app;consoleBuffer;networkBuffer;errorBuffer;transport;replay;teardowns=[];started=!1;constructor(e){this.accessId=e.accessId,this.endpoint=(e.endpoint??Pk).replace(/\/+$/,""),this.debug=e.debug??!1,this.screenshotEnabled=e.screenshot??!0,this.beforeSend=e.beforeSend,this.app=e.app??{},this.replayWindowMs=e.replay===!1?null:e.replay?.windowMs??Rk,this.consoleBuffer=new Pf(e.maxConsoleEntries??Ak),this.networkBuffer=new Pf(e.maxNetworkEntries??Mk),this.errorBuffer=new Pf(Uk),this.transport=new Gk({accessId:this.accessId,endpoint:this.endpoint,debug:this.debug}),this.replay=this.replayWindowMs!==null?new rI(this.replayWindowMs,this.debug):void 0}start(){if(!this.started){if(typeof window>"u"){this.warn("start() called outside a browser environment; collectors not installed");return}this.started=!0,this.teardowns.push(Kk(this.consoleBuffer,this.errorBuffer)),this.teardowns.push(eI(this.networkBuffer,this.endpoint)),this.teardowns.push(tI(this.errorBuffer)),this.replay?.start()}}stop(){if(this.started){this.started=!1;for(let e of this.teardowns.splice(0))try{e()}catch{}this.replay?.stop()}}setApp(e){this.app={...this.app,...e}}captureTarget(e){return pI(e,Zk)}startRecording(){this.replay?.startManualRecording()}stopRecording(){return this.replay?.stopManualRecording()??null}discardRecording(){this.replay?.discardManualRecording()}isRecording(){return this.replay?.isManualRecording()??!1}async submitReport(e){let r=e.include??{},n=r.replay!==!1,o=r.console!==!1,t=r.network!==!1,i=r.errors!==!1,s=r.screenshot!==!1,a=r.dom!==!1,c=this.screenshotEnabled&&s?nI(e.excludeFromScreenshot):Promise.resolve(null),u=n?this.replay?.snapshot()??[]:[],l=this.errorBuffer.drain(),p=this.consoleBuffer.tail(jk),f=this.networkBuffer.tail(Lk),d=this.consoleBuffer.drain(),m=this.networkBuffer.drain(),h={annotations:e.annotations??[],env:cI(),app:this.app,errors:i?l:[],consoleTail:o?p:[],networkTail:t?f:[],sdk:{name:Dk,version:Tk}};if(e.comment!==void 0&&(h.comment=e.comment),e.target!==void 0&&(h.target=e.target),this.beforeSend){let S=this.beforeSend(h);if(!S)throw new Error("[lens] report cancelled by beforeSend");h=S}let g=[];n&&g.push({kind:"replay",contentType:"application/json",blob:Rf(u)}),o&&g.push({kind:"console",contentType:"application/json",blob:Rf(d)}),t&&g.push({kind:"network",contentType:"application/json",blob:Rf(m)});let x=a?fI(Fk):null;x&&g.push({kind:"dom",contentType:"text/html",blob:new Blob([x],{type:"text/html"})}),this.screenshotEnabled&&s&&g.push({kind:"screenshot",contentType:"image/jpeg",blob:null});for(let S of e.attachments??[])g.push({kind:"attachment",contentType:S.contentType,blob:S.blob});let y=await this.transport.initiate(g.map(S=>({kind:S.kind,contentType:S.contentType}))),_=[],v;for(let S=0;S<y.uploads.length;S++){let C=y.uploads[S],R=g[S];if(!(!C||!R)){if(R.kind==="screenshot"){v=C;continue}if(R.blob)try{await this.transport.uploadAsset(C,R.blob),_.push({kind:C.kind,key:C.key,byteSize:R.blob.size})}catch(O){this.warn(`asset upload failed (${C.kind})`,O)}}}let w=await this.transport.finalize(y.reportId,h,_);if(v){let S=v;c.then(async C=>{C&&(await this.transport.uploadAsset(S,C),await this.transport.attachAsset(w.reportId,{kind:"screenshot",key:S.key,contentType:C.type||"image/jpeg",byteSize:C.size}))}).catch(C=>{console.warn("[lens] background screenshot upload failed:",C)})}return{reportId:w.reportId}}warn(e,r){this.debug&&(r!==void 0?console.warn(`[lens] ${e}`,r):console.warn(`[lens] ${e}`))}};var Ao="lens",Ff="lens:active",hI="lense",mI="lense:active",jy=new Set(["","true","1","on","yes"]),Ly=new Set(["false","0","off","no"]);function Vf(){return typeof window<"u"&&typeof document<"u"}function Fy(e){try{let r=new URLSearchParams(window.location.search),n=r.get(e);return n!==null?n:e===Ao?r.get(hI):null}catch{return null}}function Zy(){try{let e=window.sessionStorage;return e.getItem(Ff)==="1"||e.getItem(mI)==="1"}catch{return!1}}function Zf(e){try{e?window.sessionStorage.setItem(Ff,"1"):window.sessionStorage.removeItem(Ff)}catch{}}function gI(e=Ao){if(!Vf())return!1;let r=Fy(e);if(r!==null){let n=r.trim().toLowerCase();if(Ly.has(n))return Zf(!1),!1;if(jy.has(n))return Zf(!0),!0}return Zy()}function By(e=Ao){if(!Vf())return!1;let r=Fy(e);if(r!==null){let n=r.trim().toLowerCase();if(Ly.has(n))return!1;if(jy.has(n))return!0}return Zy()}function My(){Vf()&&Zf(!1)}function vI(e=navigator.userAgent){return/Edg\//.test(e)?"Edge":/OPR\/|Opera/.test(e)?"Opera":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)&&!/Chromium/.test(e)?"Chrome":/Chromium\//.test(e)?"Chromium":/Safari\//.test(e)&&/Version\//.test(e)?"Safari":"Browser"}function yI(e=navigator.userAgent){return/Windows NT/.test(e)?"Windows":/Mac OS X|Macintosh/.test(e)?"macOS":/Android/.test(e)?"Android":/iPhone|iPad|iPod/.test(e)?"iOS":/Linux/.test(e)?"Linux":"Unknown"}function bI(){return{width:window.innerWidth||document.documentElement.clientWidth||0,height:window.innerHeight||document.documentElement.clientHeight||0}}function wI(){return(window.location.pathname||"/")+(window.location.search||"")}function U(e,r={},n=[]){let o=document.createElement(e);if(r.class&&(o.className=r.class),r.text!==void 0&&(o.textContent=r.text),r.html!==void 0&&(o.innerHTML=r.html),r.title&&(o.title=r.title),r.ariaLabel&&o.setAttribute("aria-label",r.ariaLabel),r.type&&"type"in o&&(o.type=r.type),r.placeholder&&"placeholder"in o&&(o.placeholder=r.placeholder),r.attrs)for(let[t,i]of Object.entries(r.attrs))o.setAttribute(t,i);if(r.style&&Object.assign(o.style,r.style),r.on)for(let[t,i]of Object.entries(r.on))i&&o.addEventListener(t,i);for(let t of n)t==null||t===!1||o.append(t);return o}function Uf(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var xI=class{constructor(e){this.host=e}host;layer=null;chips=null;draft=null;startX=0;startY=0;active=!1;dragging=!1;annotations=[];renderedRects=[];sessionBase=0;onExit=null;get isActive(){return this.active}get count(){return this.annotations.length}list(){return this.annotations.map(e=>({...e,viewport:{...e.viewport}}))}clear(){this.annotations=[];for(let e of this.renderedRects)e.remove();this.renderedRects=[]}start(e){this.active||(this.active=!0,this.onExit=e,this.sessionBase=this.annotations.length,this.layer=U("div",{class:"lens-annotate"}),this.layer.addEventListener("pointerdown",this.onDown),this.chips=U("div",{class:"lens-annotate-chips"},[U("span",{class:"lens-annotate-chips__label",text:"Drag to mark an area"}),U("button",{class:"lens-pick-chip__btn",text:"Cancel",on:{click:()=>this.cancel()}}),U("button",{class:"lens-pick-chip__btn lens-pick-chip__btn--primary",text:"Done",on:{click:()=>this.exit()}})]),this.host.append(this.layer,this.chips),window.addEventListener("keydown",this.onKey,!0))}cancel(){let e=this.renderedRects.splice(this.sessionBase);for(let r of e)r.remove();this.annotations.splice(this.sessionBase),this.exit()}exit(){if(!this.active)return;this.active=!1,this.dragging=!1,window.removeEventListener("keydown",this.onKey,!0),window.removeEventListener("pointermove",this.onMove,!0),window.removeEventListener("pointerup",this.onUp,!0),this.draft&&(this.draft.remove(),this.draft=null),this.layer&&(this.layer.removeEventListener("pointerdown",this.onDown),this.layer.remove(),this.layer=null),this.chips&&(this.chips.remove(),this.chips=null);let e=this.onExit;this.onExit=null,e?.()}onDown=e=>{e.preventDefault(),this.dragging=!0,this.startX=e.clientX,this.startY=e.clientY,this.draft=U("div",{class:"lens-rect"}),this.host.append(this.draft),this.position(this.draft,e.clientX,e.clientY),window.addEventListener("pointermove",this.onMove,!0),window.addEventListener("pointerup",this.onUp,!0)};onMove=e=>{this.dragging&&this.draft&&this.position(this.draft,e.clientX,e.clientY)};onUp=e=>{window.removeEventListener("pointermove",this.onMove,!0),window.removeEventListener("pointerup",this.onUp,!0),this.dragging=!1;let r=Math.min(this.startX,e.clientX),n=Math.min(this.startY,e.clientY),o=Math.abs(e.clientX-this.startX),t=Math.abs(e.clientY-this.startY);if(this.draft&&(this.draft.remove(),this.draft=null),o<6||t<6)return;let i=U("div",{class:"lens-rect"});Object.assign(i.style,{left:`${r}px`,top:`${n}px`,width:`${o}px`,height:`${t}px`}),this.host.append(i),this.renderedRects.push(i),this.annotations.push({kind:"rect",x:r,y:n,width:o,height:t,viewport:{width:window.innerWidth,height:window.innerHeight}})};position(e,r,n){let o=Math.min(this.startX,r),t=Math.min(this.startY,n);Object.assign(e.style,{left:`${o}px`,top:`${t}px`,width:`${Math.abs(r-this.startX)}px`,height:`${Math.abs(n-this.startY)}px`})}onKey=e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.exit())}},Dt=e=>`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,_I=Dt('<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>'),SI=Dt('<circle cx="12" cy="12" r="8"/><line x1="12" y1="2" x2="12" y2="6"/><line x1="12" y1="18" x2="12" y2="22"/><line x1="2" y1="12" x2="6" y2="12"/><line x1="18" y1="12" x2="22" y2="12"/>'),Bf=Dt('<line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/>'),$I=Dt('<rect x="3" y="3" width="18" height="18" rx="2" stroke-dasharray="4 3"/>'),Uy=Dt('<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>'),jf=Dt('<polyline points="20 6 9 17 4 12"/>'),kI=Dt('<line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/>'),II='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="6" fill="#ef4444"/></svg>',EI='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>',CI=[{key:"replay",label:"Replay"},{key:"console",label:"Console"},{key:"network",label:"Network"},{key:"errors",label:"Errors"},{key:"screenshot",label:"Screenshot"}],OI=class{constructor(e){this.cb=e,this.body=U("div",{class:"lens-panel__body"}),this.root=U("div",{class:"lens-panel",attrs:{role:"dialog","aria-label":"Report an issue"}},[U("div",{class:"lens-panel__head"},[U("div",{class:"lens-panel__title",text:"Report an issue"}),U("button",{class:"lens-panel__x",ariaLabel:"Close",html:Bf,on:{click:()=>this.cb.onClose()}})]),this.body]),this.renderForm()}cb;root;body;textarea;submitBtn;autoCloseTimer=null;submitting=!1;include={replay:!0,console:!0,network:!0,errors:!0,screenshot:!0};refresh(){this.submitting||this.renderForm()}focus(){this.textarea?.focus()}destroy(){this.autoCloseTimer&&clearTimeout(this.autoCloseTimer),this.root.remove()}renderForm(){let e=this.textarea?.value??"";Uf(this.body),this.textarea=U("textarea",{class:"lens-textarea",placeholder:"What's wrong? Describe the issue\u2026",ariaLabel:"Issue description"}),this.textarea.value=e,this.body.append(this.textarea,this.buildContext(),this.buildIncludes(),this.buildChips(),this.buildActions())}buildContext(){let e=this.cb.getStats(),r=[Lf(e.route||e.url,40),`${e.browser} \xB7 ${e.os}`,`${e.viewport.width}\xD7${e.viewport.height}`],n=[];return r.forEach((o,t)=>{t>0&&n.push(U("span",{class:"lens-context__dot",text:"\xB7"})),n.push(U("span",{class:"lens-context__item",text:o}))}),U("div",{class:"lens-context",title:e.url},n)}buildIncludes(){let e=this.cb.getStats(),r={console:e.console,network:e.network,errors:e.errors},n=CI.map(o=>this.buildToggle(o.key,o.label,r[o.key]));return U("div",{class:"lens-includes"},[U("span",{class:"lens-includes__label",text:"Include:"}),...n])}buildToggle(e,r,n){let o=this.include[e],t=U("button",{class:`lens-tgl${o?" is-on":""}`,attrs:{type:"button",role:"switch","aria-checked":String(o)},html:`<span class="lens-tgl__check" aria-hidden="true">${jf}</span>`});return t.append(U("span",{class:"lens-tgl__label",text:r})),typeof n=="number"&&n>0&&t.append(U("span",{class:"lens-tgl__count",text:String(n)})),t.addEventListener("click",()=>{let i=!this.include[e];this.include[e]=i,t.classList.toggle("is-on",i),t.setAttribute("aria-checked",String(i))}),t}buildChips(){let e=U("div",{class:"lens-chips"}),r=this.cb.getAnnotationCount();r>0&&e.append(NI(`${r} annotation${r===1?"":"s"}`));let n=this.cb.getRecording();if(n){let t=U("span",{class:"lens-chip lens-chip--ok lens-chip--rec"},[U("span",{text:`recording \u2713 ${Vy(n.durationMs)}`}),U("button",{class:"lens-chip__x",ariaLabel:"Discard recording",text:"\xD7",on:{click:()=>this.cb.onDiscardRecording()}})]);e.append(t)}let o=this.cb.getTarget();if(o){let t=o.domPath||o.tagName||"element",i=U("span",{class:"lens-chip lens-chip--target",title:t},[U("span",{class:"lens-chip__code",text:Lf(t,40)}),U("button",{class:"lens-chip__x",ariaLabel:"Remove element",text:"\xD7",on:{click:()=>this.cb.onRemoveTarget()}})]);e.append(i)}return e.style.display=e.childElementCount>0?"":"none",e}buildActions(){let e=U("button",{class:"lens-abtn lens-abtn--ghost lens-abtn--compact",html:$I+"<span>Mark area</span>",on:{click:()=>this.cb.onMarkArea()}}),r=U("button",{class:"lens-abtn lens-abtn--ghost lens-abtn--compact",html:II+"<span>Record steps</span>",on:{click:()=>this.cb.onRecordSteps()}}),n=U("button",{class:"lens-abtn lens-abtn--ghost",text:"Cancel",on:{click:()=>this.cb.onClose()}});return this.submitBtn=U("button",{class:"lens-abtn lens-abtn--primary lens-abtn--submit",html:kI+"<span>Submit</span>",on:{click:()=>{this.submit()}}}),U("div",{class:"lens-actions"},[U("div",{class:"lens-actions__row lens-actions__secondary"},[e,r]),U("div",{class:"lens-actions__row lens-actions__primary"},[n,this.submitBtn])])}async submit(){if(this.submitting)return;let e=this.textarea.value.trim();this.submitting=!0,this.submitBtn.disabled=!0,this.submitBtn.innerHTML="<span>Submitting\u2026</span>";try{let{reportId:r}=await this.cb.onSubmit(e,{...this.include});this.renderSuccess(r)}catch(r){this.renderError(r instanceof Error?r.message:"Something went wrong")}finally{this.submitting=!1}}renderSuccess(e){Uf(this.body);let r=U("div",{class:"lens-idpill"},[U("span",{text:e}),U("button",{ariaLabel:"Copy report id",html:Uy,on:{click:n=>{let o=n.currentTarget;zI(e).then(()=>{o.innerHTML=jf,setTimeout(()=>o.innerHTML=Uy,1200)})}}})]);this.body.append(U("div",{class:"lens-state"},[U("div",{class:"lens-state__badge lens-state__badge--ok",html:jf}),U("div",{class:"lens-state__title",text:"Report submitted"}),U("div",{class:"lens-state__msg",text:"Thanks \u2014 the team can see the full context."}),r])),this.autoCloseTimer=setTimeout(()=>this.cb.onClose(),2500)}renderError(e){Uf(this.body),this.body.append(U("div",{class:"lens-state"},[U("div",{class:"lens-state__badge lens-state__badge--err",html:Bf}),U("div",{class:"lens-state__title",text:"Submission failed"}),U("div",{class:"lens-state__msg",text:Lf(e,120)}),U("div",{class:"lens-actions"},[U("button",{class:"lens-abtn lens-abtn--ghost",text:"Cancel",on:{click:()=>this.cb.onClose()}}),U("button",{class:"lens-abtn lens-abtn--primary",text:"Retry",on:{click:()=>this.renderForm()}})])]))}};function NI(e,r,n){return U("span",{class:`lens-chip${n?" "+n:""}`,text:e,title:r??e})}function Lf(e,r){return e.length>r?e.slice(0,r-1)+"\u2026":e}function Vy(e){let r=Math.max(0,Math.round(e/1e3)),n=Math.floor(r/60),o=r%60;return`${n}:${o.toString().padStart(2,"0")}`}async function zI(e){try{await navigator.clipboard.writeText(e)}catch{}}var DI=class{constructor(e,r){this.layer=e,this.rootHost=r,this.tag=U("div",{class:"lens-highlight__tag"}),this.highlight=U("div",{class:"lens-highlight"},[this.tag]),this.hint=U("div",{class:"lens-pick-chip"},[U("span",{class:"lens-pick-chip__label",text:"Tap an element"}),U("button",{class:"lens-pick-chip__btn",text:"Cancel",on:{click:()=>this.cancel()}})]),this.layer.append(this.highlight,this.hint),this.hide()}layer;rootHost;highlight;tag;hint;current=null;active=!1;onPick=null;onCancel=null;get isActive(){return this.active}start(e,r){this.active||(this.active=!0,this.onPick=e,this.onCancel=r,this.current=null,this.hint.style.display="",window.addEventListener("pointermove",this.onMove,!0),window.addEventListener("pointerdown",this.onDown,!0),window.addEventListener("pointerup",this.onUp,!0),window.addEventListener("click",this.onClick,!0),window.addEventListener("keydown",this.onKey,!0))}stop(){this.active&&(this.active=!1,this.current=null,this.onPick=null,this.onCancel=null,this.hide(),window.removeEventListener("pointermove",this.onMove,!0),window.removeEventListener("pointerdown",this.onDown,!0),window.removeEventListener("pointerup",this.onUp,!0),window.removeEventListener("click",this.onClick,!0),window.removeEventListener("keydown",this.onKey,!0))}cancel(){let e=this.onCancel;this.stop(),e?.()}hide(){this.highlight.style.display="none",this.hint.style.display="none"}isOverlayEvent(e){return e.composedPath().includes(this.rootHost)}isCoarse(){return typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches}elementAt(e,r){let n=document.elementFromPoint(e,r);return!n||n===this.rootHost?null:n}highlightElement(e){this.current=e;let r=e.getBoundingClientRect();Object.assign(this.highlight.style,{display:"block",left:`${r.left}px`,top:`${r.top}px`,width:`${r.width}px`,height:`${r.height}px`}),this.tag.textContent=TI(e)}confirm(e){let r=this.onPick;this.suppressNextClick(),this.stop(),r?.(e)}suppressNextClick(){let e=o=>{o.preventDefault(),o.stopImmediatePropagation(),r()},r=()=>{window.removeEventListener("click",e,!0),clearTimeout(n)};window.addEventListener("click",e,{capture:!0});let n=setTimeout(r,500)}onMove=e=>{if(this.isOverlayEvent(e)||this.isCoarse())return;let r=this.elementAt(e.clientX,e.clientY);!r||r===this.current||this.highlightElement(r)};onDown=e=>{this.isOverlayEvent(e)||(e.preventDefault(),e.stopImmediatePropagation())};onUp=e=>{if(this.isOverlayEvent(e))return;e.preventDefault(),e.stopImmediatePropagation();let r=this.elementAt(e.clientX,e.clientY);if(this.isCoarse()){r&&r===this.current?this.confirm(r):r&&this.highlightElement(r);return}let n=r??this.current;n&&this.confirm(n)};onClick=e=>{this.isOverlayEvent(e)||(e.preventDefault(),e.stopImmediatePropagation())};onKey=e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.cancel())}};function TI(e){let r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",o=typeof e.className=="string"&&e.className.trim()?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";return`${r}${n}${o}`}var PI=`
207
+ :host {
208
+ all: initial;
209
+ --lens-accent: #6366f1;
210
+ --lens-accent-strong: #4f46e5;
211
+ --lens-radius: 8px;
212
+ --lens-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
213
+ --lens-z: 2147483000;
214
+ font-family: var(--lens-font);
215
+ line-height: 1.4;
216
+ }
217
+
218
+ *, *::before, *::after { box-sizing: border-box; }
219
+
220
+ .lens-layer {
221
+ position: fixed;
222
+ inset: 0;
223
+ z-index: var(--lens-z);
224
+ pointer-events: none;
225
+ font-family: var(--lens-font);
226
+ }
227
+ .lens-layer > * { pointer-events: auto; }
228
+
229
+ /* ---------------- Pill ---------------- */
230
+ .lens-pill {
231
+ position: fixed;
232
+ bottom: calc(12px + env(safe-area-inset-bottom));
233
+ left: 50%;
234
+ transform: translateX(-50%);
235
+ max-width: calc(100vw - 16px);
236
+ flex-wrap: wrap;
237
+ justify-content: center;
238
+ display: inline-flex;
239
+ align-items: center;
240
+ gap: 4px;
241
+ padding: 6px;
242
+ border-radius: 999px;
243
+ background: rgba(20, 20, 23, 0.82);
244
+ -webkit-backdrop-filter: blur(12px) saturate(180%);
245
+ backdrop-filter: blur(12px) saturate(180%);
246
+ border: 1px solid rgba(255, 255, 255, 0.12);
247
+ box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
248
+ color: #f4f4f5;
249
+ user-select: none;
250
+ transition: opacity 150ms ease, transform 150ms ease;
251
+ }
252
+ .lens-pill__dot {
253
+ display: inline-flex;
254
+ align-items: center;
255
+ justify-content: center;
256
+ width: 26px;
257
+ height: 26px;
258
+ margin-left: 4px;
259
+ border-radius: 999px;
260
+ color: #a5b4fc;
261
+ }
262
+ .lens-btn {
263
+ display: inline-flex;
264
+ align-items: center;
265
+ gap: 6px;
266
+ height: 30px;
267
+ padding: 0 12px;
268
+ border: 0;
269
+ border-radius: 999px;
270
+ background: transparent;
271
+ color: #e4e4e7;
272
+ font-family: var(--lens-font);
273
+ font-size: 13px;
274
+ font-weight: 500;
275
+ cursor: pointer;
276
+ transition: background 150ms ease, color 150ms ease;
277
+ }
278
+ .lens-btn:hover { background: rgba(255, 255, 255, 0.1); }
279
+ .lens-btn:focus-visible { outline: 2px solid var(--lens-accent); outline-offset: 1px; }
280
+ .lens-btn--primary { background: var(--lens-accent); color: #fff; }
281
+ .lens-btn--primary:hover { background: var(--lens-accent-strong); }
282
+ .lens-btn--icon { width: 30px; padding: 0; justify-content: center; }
283
+ .lens-btn--icon.is-active { background: var(--lens-accent); color: #fff; }
284
+ .lens-pill__sep {
285
+ width: 1px;
286
+ height: 18px;
287
+ background: rgba(255, 255, 255, 0.14);
288
+ margin: 0 2px;
289
+ }
290
+
291
+ /* ---------------- Picker highlight ---------------- */
292
+ .lens-highlight {
293
+ position: fixed;
294
+ z-index: calc(var(--lens-z) - 2);
295
+ pointer-events: none;
296
+ border: 2px solid var(--lens-accent);
297
+ background: rgba(99, 102, 241, 0.14);
298
+ border-radius: 3px;
299
+ transition: all 60ms linear;
300
+ display: none;
301
+ }
302
+ .lens-highlight__tag {
303
+ position: absolute;
304
+ top: -22px;
305
+ left: -2px;
306
+ padding: 1px 6px;
307
+ border-radius: 4px;
308
+ background: var(--lens-accent);
309
+ color: #fff;
310
+ font: 500 11px/1.5 var(--lens-font);
311
+ white-space: nowrap;
312
+ }
313
+ .lens-hint {
314
+ position: fixed;
315
+ bottom: 64px;
316
+ left: 50%;
317
+ transform: translateX(-50%);
318
+ padding: 6px 12px;
319
+ border-radius: 999px;
320
+ background: rgba(20, 20, 23, 0.9);
321
+ color: #e4e4e7;
322
+ font-size: 12px;
323
+ font-weight: 500;
324
+ border: 1px solid rgba(255, 255, 255, 0.12);
325
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
326
+ pointer-events: none;
327
+ }
328
+
329
+ /* ---------------- Annotation layer ---------------- */
330
+ .lens-annotate {
331
+ position: fixed;
332
+ inset: 0;
333
+ z-index: calc(var(--lens-z) - 1);
334
+ cursor: crosshair;
335
+ background: rgba(15, 15, 20, 0.04);
336
+ touch-action: none;
337
+ }
338
+ .lens-rect {
339
+ position: fixed;
340
+ border: 2px solid var(--lens-accent);
341
+ background: rgba(99, 102, 241, 0.1);
342
+ border-radius: 3px;
343
+ pointer-events: none;
344
+ }
345
+
346
+ /* ---------------- Panel ---------------- */
347
+ .lens-panel {
348
+ position: fixed;
349
+ right: 20px;
350
+ bottom: 64px;
351
+ width: min(520px, calc(100vw - 40px));
352
+ max-width: 520px;
353
+ max-height: calc(100vh - 96px);
354
+ display: flex;
355
+ flex-direction: column;
356
+ border-radius: 14px;
357
+ background: #ffffff;
358
+ color: #18181b;
359
+ border: 1px solid rgba(0, 0, 0, 0.08);
360
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
361
+ overflow: hidden;
362
+ transform-origin: bottom right;
363
+ animation: lens-in 150ms ease;
364
+ }
365
+ @keyframes lens-in {
366
+ from { opacity: 0; transform: translateY(6px) scale(0.98); }
367
+ to { opacity: 1; transform: none; }
368
+ }
369
+ .lens-panel__head {
370
+ display: flex;
371
+ align-items: center;
372
+ justify-content: space-between;
373
+ padding: 14px 16px;
374
+ border-bottom: 1px solid rgba(0, 0, 0, 0.07);
375
+ }
376
+ .lens-panel__title { font-size: 14px; font-weight: 600; }
377
+ .lens-panel__x {
378
+ display: inline-flex;
379
+ align-items: center;
380
+ justify-content: center;
381
+ width: 26px;
382
+ height: 26px;
383
+ border: 0;
384
+ border-radius: 6px;
385
+ background: transparent;
386
+ color: #52525b;
387
+ cursor: pointer;
388
+ transition: background 150ms ease;
389
+ }
390
+ .lens-panel__x:hover { background: rgba(0, 0, 0, 0.06); }
391
+ .lens-panel__body {
392
+ padding: 14px 16px;
393
+ overflow-y: auto;
394
+ display: flex;
395
+ flex-direction: column;
396
+ gap: 12px;
397
+ }
398
+ .lens-textarea {
399
+ width: 100%;
400
+ min-height: 120px;
401
+ resize: vertical;
402
+ padding: 10px 12px;
403
+ border-radius: var(--lens-radius);
404
+ border: 1px solid rgba(0, 0, 0, 0.14);
405
+ background: #fafafa;
406
+ color: inherit;
407
+ font-family: var(--lens-font);
408
+ font-size: 13px;
409
+ transition: border-color 150ms ease, box-shadow 150ms ease;
410
+ }
411
+ .lens-textarea:focus {
412
+ outline: none;
413
+ border-color: var(--lens-accent);
414
+ box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
415
+ }
416
+ /* ---- Context row: static, non-interactive page facts (muted, dot-joined) ---- */
417
+ .lens-context {
418
+ display: flex;
419
+ flex-wrap: wrap;
420
+ align-items: center;
421
+ gap: 6px;
422
+ font-size: 11.5px;
423
+ line-height: 1.4;
424
+ color: #71717a;
425
+ }
426
+ .lens-context__item { white-space: nowrap; }
427
+ .lens-context__dot { opacity: 0.55; }
428
+
429
+ /* ---- Include row: real toggles (role=switch) for which data to attach ---- */
430
+ .lens-includes {
431
+ display: flex;
432
+ flex-wrap: wrap;
433
+ align-items: center;
434
+ gap: 6px;
435
+ }
436
+ .lens-includes__label {
437
+ font-size: 11.5px;
438
+ font-weight: 600;
439
+ color: #71717a;
440
+ margin-right: 2px;
441
+ }
442
+ .lens-tgl {
443
+ display: inline-flex;
444
+ align-items: center;
445
+ gap: 5px;
446
+ padding: 4px 10px;
447
+ border-radius: 999px;
448
+ border: 1px solid rgba(0, 0, 0, 0.14);
449
+ background: #fafafa;
450
+ color: #a1a1aa;
451
+ font-family: var(--lens-font);
452
+ font-size: 11.5px;
453
+ font-weight: 600;
454
+ white-space: nowrap;
455
+ cursor: pointer;
456
+ opacity: 0.75;
457
+ transition: background 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
458
+ }
459
+ .lens-tgl:hover { opacity: 1; }
460
+ .lens-tgl:focus-visible { outline: 2px solid var(--lens-accent); outline-offset: 1px; }
461
+ .lens-tgl__check { display: none; align-items: center; }
462
+ .lens-tgl__check svg { width: 13px; height: 13px; }
463
+ .lens-tgl__count { font-weight: 500; opacity: 0.75; font-variant-numeric: tabular-nums; }
464
+ .lens-tgl.is-on {
465
+ opacity: 1;
466
+ color: var(--lens-accent-strong);
467
+ border-color: rgba(99, 102, 241, 0.5);
468
+ background: #eef2ff;
469
+ }
470
+ .lens-tgl.is-on .lens-tgl__check { display: inline-flex; }
471
+
472
+ .lens-chips { display: flex; flex-wrap: wrap; gap: 6px; }
473
+ .lens-chip {
474
+ display: inline-flex;
475
+ align-items: center;
476
+ gap: 5px;
477
+ max-width: 100%;
478
+ padding: 3px 9px;
479
+ border-radius: 999px;
480
+ background: #f4f4f5;
481
+ border: 1px solid rgba(0, 0, 0, 0.06);
482
+ color: #3f3f46;
483
+ font-size: 11.5px;
484
+ font-weight: 500;
485
+ white-space: nowrap;
486
+ overflow: hidden;
487
+ text-overflow: ellipsis;
488
+ }
489
+ .lens-chip--ok { color: #15803d; background: #f0fdf4; border-color: rgba(21, 128, 61, 0.18); }
490
+ .lens-chip--target {
491
+ max-width: 100%;
492
+ background: #eef2ff;
493
+ border-color: rgba(99, 102, 241, 0.25);
494
+ color: var(--lens-accent-strong);
495
+ }
496
+ .lens-chip__code {
497
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
498
+ font-size: 11px;
499
+ overflow: hidden;
500
+ text-overflow: ellipsis;
501
+ }
502
+ .lens-chip__x {
503
+ display: inline-flex;
504
+ border: 0;
505
+ background: transparent;
506
+ color: inherit;
507
+ cursor: pointer;
508
+ padding: 0;
509
+ opacity: 0.7;
510
+ font-size: 13px;
511
+ line-height: 1;
512
+ }
513
+ .lens-chip__x:hover { opacity: 1; }
514
+ /* ---- Actions: secondary row (mark / record) then primary row (cancel / submit) ---- */
515
+ .lens-actions { display: flex; flex-direction: column; gap: 8px; }
516
+ .lens-actions__row { display: flex; align-items: center; gap: 8px; }
517
+ /* Mark area / Record steps split the row evenly, one line, never wrap. */
518
+ .lens-actions__secondary .lens-abtn { flex: 1; min-width: 0; justify-content: center; }
519
+ /* Submit always fills remaining width; Cancel stays intrinsic. */
520
+ .lens-actions__primary .lens-abtn--submit { flex: 1; }
521
+ .lens-abtn {
522
+ display: inline-flex;
523
+ align-items: center;
524
+ justify-content: center;
525
+ gap: 6px;
526
+ height: 34px;
527
+ padding: 0 14px;
528
+ border-radius: var(--lens-radius);
529
+ border: 1px solid transparent;
530
+ font-family: var(--lens-font);
531
+ font-size: 13px;
532
+ font-weight: 600;
533
+ white-space: nowrap;
534
+ cursor: pointer;
535
+ transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
536
+ }
537
+ .lens-abtn span { white-space: nowrap; }
538
+ .lens-abtn--compact { padding: 0 10px; font-size: 12px; }
539
+ .lens-abtn svg { flex: none; }
540
+ .lens-abtn--ghost { background: transparent; border-color: rgba(0, 0, 0, 0.14); color: #3f3f46; }
541
+ .lens-abtn--ghost:hover { background: rgba(0, 0, 0, 0.04); }
542
+ .lens-abtn--primary { background: var(--lens-accent); color: #fff; }
543
+ .lens-abtn--primary:hover { background: var(--lens-accent-strong); }
544
+ .lens-abtn:disabled { opacity: 0.55; cursor: default; }
545
+ .lens-abtn:focus-visible { outline: 2px solid var(--lens-accent); outline-offset: 1px; }
546
+
547
+ .lens-state {
548
+ display: flex;
549
+ flex-direction: column;
550
+ align-items: center;
551
+ gap: 10px;
552
+ padding: 26px 18px;
553
+ text-align: center;
554
+ }
555
+ .lens-state__badge {
556
+ display: inline-flex;
557
+ align-items: center;
558
+ justify-content: center;
559
+ width: 44px;
560
+ height: 44px;
561
+ border-radius: 999px;
562
+ }
563
+ .lens-state__badge--ok { background: #dcfce7; color: #16a34a; }
564
+ .lens-state__badge--err { background: #fee2e2; color: #dc2626; }
565
+ .lens-state__title { font-size: 14px; font-weight: 600; }
566
+ .lens-state__msg { font-size: 12.5px; color: #52525b; }
567
+ .lens-idpill {
568
+ display: inline-flex;
569
+ align-items: center;
570
+ gap: 6px;
571
+ padding: 5px 10px;
572
+ border-radius: 8px;
573
+ background: #f4f4f5;
574
+ border: 1px solid rgba(0, 0, 0, 0.08);
575
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
576
+ font-size: 12px;
577
+ }
578
+ .lens-idpill button {
579
+ border: 0;
580
+ background: transparent;
581
+ color: #52525b;
582
+ cursor: pointer;
583
+ display: inline-flex;
584
+ padding: 2px;
585
+ border-radius: 4px;
586
+ }
587
+ .lens-idpill button:hover { background: rgba(0, 0, 0, 0.06); color: #18181b; }
588
+
589
+ @media (prefers-color-scheme: dark) {
590
+ .lens-panel { background: #1c1c1f; color: #f4f4f5; border-color: rgba(255, 255, 255, 0.1); }
591
+ .lens-panel__head { border-bottom-color: rgba(255, 255, 255, 0.08); }
592
+ .lens-panel__x { color: #a1a1aa; }
593
+ .lens-panel__x:hover { background: rgba(255, 255, 255, 0.08); }
594
+ .lens-textarea { background: #26262a; border-color: rgba(255, 255, 255, 0.14); color: #f4f4f5; }
595
+ .lens-context { color: #a1a1aa; }
596
+ .lens-includes__label { color: #a1a1aa; }
597
+ .lens-tgl { background: #26262a; border-color: rgba(255, 255, 255, 0.12); color: #a1a1aa; }
598
+ .lens-tgl.is-on { background: rgba(99, 102, 241, 0.18); border-color: rgba(99, 102, 241, 0.55); color: #c7d2fe; }
599
+ .lens-chip { background: #26262a; border-color: rgba(255, 255, 255, 0.08); color: #d4d4d8; }
600
+ .lens-chip--ok { color: #4ade80; background: rgba(34, 197, 94, 0.12); border-color: rgba(74, 222, 128, 0.22); }
601
+ .lens-chip--target { background: rgba(99, 102, 241, 0.16); color: #c7d2fe; }
602
+ .lens-abtn--ghost { border-color: rgba(255, 255, 255, 0.16); color: #d4d4d8; }
603
+ .lens-abtn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
604
+ .lens-state__msg { color: #a1a1aa; }
605
+ .lens-idpill { background: #26262a; border-color: rgba(255, 255, 255, 0.1); }
606
+ .lens-idpill button { color: #a1a1aa; }
607
+ .lens-idpill button:hover { background: rgba(255, 255, 255, 0.08); color: #f4f4f5; }
608
+ }
609
+
610
+ /* ---------------- Floating action chips (picker / annotator) ---------------- */
611
+ .lens-pick-chip, .lens-annotate-chips {
612
+ position: fixed;
613
+ top: calc(16px + env(safe-area-inset-top));
614
+ left: 50%;
615
+ transform: translateX(-50%);
616
+ z-index: var(--lens-z);
617
+ display: inline-flex;
618
+ align-items: center;
619
+ gap: 10px;
620
+ max-width: calc(100vw - 24px);
621
+ padding: 6px 6px 6px 14px;
622
+ border-radius: 999px;
623
+ background: rgba(20, 20, 23, 0.92);
624
+ -webkit-backdrop-filter: blur(12px) saturate(180%);
625
+ backdrop-filter: blur(12px) saturate(180%);
626
+ border: 1px solid rgba(255, 255, 255, 0.12);
627
+ box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
628
+ color: #f4f4f5;
629
+ font-size: 13px;
630
+ font-weight: 500;
631
+ }
632
+ .lens-annotate-chips { z-index: var(--lens-z); }
633
+
634
+ /* Stacking inside the shadow layer: the panel, pill and floating chips always
635
+ sit above the annotation layer/rects and picker highlight, so marked areas
636
+ never paint over interactive UI. */
637
+ .lens-panel, .lens-pill, .lens-recchip { z-index: var(--lens-z); }
638
+ .lens-pick-chip__label, .lens-annotate-chips__label { white-space: nowrap; }
639
+ .lens-pick-chip__btn {
640
+ display: inline-flex;
641
+ align-items: center;
642
+ justify-content: center;
643
+ height: 30px;
644
+ padding: 0 14px;
645
+ border: 0;
646
+ border-radius: 999px;
647
+ background: rgba(255, 255, 255, 0.12);
648
+ color: #f4f4f5;
649
+ font-family: var(--lens-font);
650
+ font-size: 13px;
651
+ font-weight: 600;
652
+ cursor: pointer;
653
+ transition: background 150ms ease;
654
+ }
655
+ .lens-pick-chip__btn:hover { background: rgba(255, 255, 255, 0.2); }
656
+ .lens-pick-chip__btn--primary { background: var(--lens-accent); }
657
+ .lens-pick-chip__btn--primary:hover { background: var(--lens-accent-strong); }
658
+
659
+ /* ---------------- Recording chip ---------------- */
660
+ .lens-rec-chip {
661
+ position: fixed;
662
+ top: calc(16px + env(safe-area-inset-top));
663
+ left: 50%;
664
+ transform: translateX(-50%);
665
+ z-index: var(--lens-z);
666
+ display: inline-flex;
667
+ align-items: center;
668
+ gap: 10px;
669
+ max-width: calc(100vw - 24px);
670
+ padding: 6px 6px 6px 14px;
671
+ border-radius: 999px;
672
+ background: rgba(20, 20, 23, 0.92);
673
+ -webkit-backdrop-filter: blur(12px) saturate(180%);
674
+ backdrop-filter: blur(12px) saturate(180%);
675
+ border: 1px solid rgba(239, 68, 68, 0.4);
676
+ box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
677
+ color: #f4f4f5;
678
+ font-size: 13px;
679
+ font-weight: 600;
680
+ }
681
+ .lens-rec-chip__dot {
682
+ width: 10px;
683
+ height: 10px;
684
+ border-radius: 999px;
685
+ background: #ef4444;
686
+ animation: lens-pulse 1.2s ease-in-out infinite;
687
+ }
688
+ @keyframes lens-pulse {
689
+ 0%, 100% { opacity: 1; transform: scale(1); }
690
+ 50% { opacity: 0.4; transform: scale(0.7); }
691
+ }
692
+ .lens-rec-chip__time { font-variant-numeric: tabular-nums; min-width: 34px; }
693
+ .lens-rec-chip__stop {
694
+ display: inline-flex;
695
+ align-items: center;
696
+ gap: 6px;
697
+ height: 30px;
698
+ padding: 0 14px;
699
+ border: 0;
700
+ border-radius: 999px;
701
+ background: #ef4444;
702
+ color: #fff;
703
+ font-family: var(--lens-font);
704
+ font-size: 13px;
705
+ font-weight: 600;
706
+ cursor: pointer;
707
+ transition: background 150ms ease;
708
+ }
709
+ .lens-rec-chip__stop:hover { background: #dc2626; }
710
+ .lens-chip--rec { gap: 6px; }
711
+
712
+ /* ---------------- Coarse pointers (touch): \u226544px targets ---------------- */
713
+ @media (pointer: coarse) {
714
+ .lens-btn { height: 44px; padding: 0 16px; }
715
+ .lens-btn--icon { width: 44px; }
716
+ .lens-pill__dot { width: 40px; height: 40px; }
717
+ .lens-abtn { height: 44px; }
718
+ .lens-tgl { min-height: 40px; padding: 4px 14px; }
719
+ .lens-panel__x { width: 44px; height: 44px; }
720
+ .lens-chip__x { min-width: 32px; min-height: 32px; align-items: center; justify-content: center; }
721
+ .lens-pick-chip__btn, .lens-rec-chip__stop { height: 40px; padding: 0 18px; }
722
+ }
723
+
724
+ /* ---------------- Bottom sheet under 640px ---------------- */
725
+ @media (max-width: 640px) {
726
+ .lens-panel {
727
+ left: 0;
728
+ right: 0;
729
+ bottom: 0;
730
+ width: 100%;
731
+ max-width: 100%;
732
+ max-height: 85dvh;
733
+ border-radius: 16px 16px 0 0;
734
+ overflow-y: auto;
735
+ padding-bottom: env(safe-area-inset-bottom);
736
+ animation: lens-sheet-in 180ms ease;
737
+ }
738
+ @keyframes lens-sheet-in {
739
+ from { opacity: 0; transform: translateY(16px); }
740
+ to { opacity: 1; transform: none; }
741
+ }
742
+ .lens-textarea { font-size: 16px; }
743
+ }
744
+ `,RI=Mf,AI=12e4,MI=class{constructor(e){this.deps=e,this.host=U("div",{attrs:{id:RI}}),this.shadow=this.host.attachShadow({mode:"open"});let r=document.createElement("style");r.textContent=PI,this.shadow.append(r),this.layer=U("div",{class:"lens-layer"}),this.shadow.append(this.layer),this.picker=new DI(this.layer,this.host),this.annotator=new xI(this.layer),this.layer.append(this.buildPill()),document.documentElement.append(this.host),window.addEventListener("keydown",this.onGlobalKey,!0)}deps;host;shadow;layer;pickBtn;picker;annotator;panel=null;target=null;destroyed=!1;recordingChip=null;recordingTimerEl=null;recordingInterval=null;recordingStartTs=0;recordedDurationMs=null;buildPill(){return this.pickBtn=U("button",{class:"lens-btn lens-btn--icon",ariaLabel:"Pick an element",title:"Pick an element",html:SI,on:{click:()=>this.togglePicker()}}),U("div",{class:"lens-pill",attrs:{role:"toolbar","aria-label":"Lens"}},[U("span",{class:"lens-pill__dot",html:_I}),U("button",{class:"lens-btn",text:"Report issue",on:{click:()=>this.open()}}),this.pickBtn,U("span",{class:"lens-pill__sep"}),U("button",{class:"lens-btn lens-btn--icon",ariaLabel:"Close Lens",title:"Close Lens",html:Bf,on:{click:()=>this.dismiss()}})])}open(){this.destroyed||(this.stopPicker(),this.panel||(this.panel=new OI({getStats:()=>this.deps.snapshotStats(),getTarget:()=>this.target,getAnnotationCount:()=>this.annotator.count,getRecording:()=>this.recordedDurationMs!==null?{durationMs:this.recordedDurationMs}:null,onRemoveTarget:()=>{this.target=null,this.panel?.refresh()},onMarkArea:()=>this.startAnnotating(),onRecordSteps:()=>this.startRecording(),onDiscardRecording:()=>this.discardRecording(),onClose:()=>this.close(),onSubmit:(e,r)=>this.submit(e,r)}),this.layer.append(this.panel.root)),this.panel.root.style.display="",this.panel.refresh(),this.panel.focus())}close(){this.panel&&(this.panel.destroy(),this.panel=null)}toggle(){this.panel&&this.panel.root.style.display!=="none"?this.close():this.open()}togglePicker(){if(this.picker.isActive){this.stopPicker();return}this.close(),this.pickBtn.classList.add("is-active"),this.picker.start(e=>{this.pickBtn.classList.remove("is-active"),this.target=this.deps.client.captureTarget(e),this.open()},()=>this.pickBtn.classList.remove("is-active"))}stopPicker(){this.picker.isActive&&this.picker.stop(),this.pickBtn.classList.remove("is-active")}startAnnotating(){this.panel&&(this.panel.root.style.display="none"),this.annotator.start(()=>{this.panel&&(this.panel.root.style.display="",this.panel.refresh())})}startRecording(){this.deps.client.isRecording()||(this.recordedDurationMs=null,this.deps.client.startRecording(),this.recordingStartTs=Date.now(),this.panel&&(this.panel.root.style.display="none"),this.showRecordingChip())}stopRecording(){let e=this.deps.client.stopRecording();this.recordedDurationMs=e?.durationMs??Date.now()-this.recordingStartTs,this.hideRecordingChip(),this.panel?(this.panel.root.style.display="",this.panel.refresh()):this.open()}discardRecording(){this.deps.client.discardRecording(),this.recordedDurationMs=null,this.panel?.refresh()}showRecordingChip(){this.recordingTimerEl=U("span",{class:"lens-rec-chip__time",text:"0:00"}),this.recordingChip=U("div",{class:"lens-rec-chip"},[U("span",{class:"lens-rec-chip__dot"}),U("span",{class:"lens-rec-chip__label",text:"Recording"}),this.recordingTimerEl,U("button",{class:"lens-rec-chip__stop",html:EI+"<span>Stop</span>",on:{click:()=>this.stopRecording()}})]),this.layer.append(this.recordingChip),this.recordingInterval=setInterval(()=>this.tickRecording(),250)}tickRecording(){let e=Date.now()-this.recordingStartTs;this.recordingTimerEl&&(this.recordingTimerEl.textContent=Vy(e)),e>=AI&&this.stopRecording()}hideRecordingChip(){this.recordingInterval&&(clearInterval(this.recordingInterval),this.recordingInterval=null),this.recordingChip&&(this.recordingChip.remove(),this.recordingChip=null),this.recordingTimerEl=null}async submit(e,r){let n=this.annotator.list(),o=await this.deps.client.submitReport({comment:e||void 0,annotations:n,target:this.target??void 0,excludeFromScreenshot:this.host,include:r});return this.target=null,this.annotator.clear(),this.recordedDurationMs=null,this.deps.client.discardRecording(),o}dismiss(){this.deps.onDismiss(),this.destroy()}onGlobalKey=e=>{(e.metaKey||e.ctrlKey)&&e.shiftKey&&(e.key==="l"||e.key==="L")&&(e.preventDefault(),this.toggle())};destroy(){this.destroyed||(this.destroyed=!0,window.removeEventListener("keydown",this.onGlobalKey,!0),this.stopPicker(),this.deps.client.isRecording()&&this.deps.client.stopRecording(),this.hideRecordingChip(),this.annotator.isActive&&this.annotator.exit(),this.annotator.clear(),this.close(),this.host.remove())}};function UI(e){return new MI(e)}function Wy(){let e={open:!1};if(typeof window>"u")return e;let r=window.Lens?.q;if(!r)return e;for(let n of r){let o=Array.from(n),t=o[0],i=o[1];switch(t){case"init":(typeof i=="string"||i&&typeof i=="object")&&(e.init=i);break;case"identify":i&&typeof i=="object"&&(e.identify=i);break;case"app":i&&typeof i=="object"&&(e.app=i);break;case"open":e.open=!0;break}}return window.Lens&&(window.Lens.q=[]),e}function br(e){if(typeof window>"u")return;let r=(...n)=>{if(!e)return;let o=n[0],t=n[1];switch(o){case"identify":t&&typeof t=="object"&&e.client.setApp({user:t});break;case"app":t&&typeof t=="object"&&e.client.setApp(t);break;case"open":e.open();break;case"init":break}};window.Lens=r}function jI(e,r){r.identify&&e.client.setApp({user:r.identify}),r.app&&e.client.setApp(r.app),r.open&&e.open()}var qy="https://cdn.lens.dev/browser.js";function Gy(e){return`<script>
745
+ (function(w,d,s,u,i){
746
+ w.Lens=w.Lens||function(){(w.Lens.q=w.Lens.q||[]).push(arguments)};
747
+ w.Lens('init', i);
748
+ var g=d.createElement(s); g.async=1; g.src=u;
749
+ var f=d.getElementsByTagName(s)[0]; f.parentNode.insertBefore(g,f);
750
+ })(window,document,'script','${e.cdnUrl??qy}','${e.accessId}');
751
+ <\/script>`}var LI=Gy({accessId:"lai_YOUR_ACCESS_ID"});function Wf(){return typeof window<"u"&&typeof document<"u"}function FI(){return document.querySelector("script[data-lens-id]")?.getAttribute("data-lens-id")??void 0}function ZI(e,r){let{accessId:n,paramName:o,force:t,...i}=e,s={},a;typeof r.init=="string"?a=r.init:r.init&&typeof r.init=="object"&&(s=r.init,typeof r.init.accessId=="string"&&(a=r.init.accessId));let c=n??FI()??a;if(!c)return null;let u={...s,...i,accessId:c};return{accessId:c,config:u}}function Mo(e={}){if(!Wf())return null;let r=Wy(),n=e.paramName??Ao;if(!(e.force===!0||gI(n)))return br(null),null;let t=ZI(e,r);if(!t)return e.debug&&console.warn("[lens] no accessId \u2014 overlay not booted"),br(null),null;let i=new Ay(t.config);i.start();let s=()=>({url:window.location.href,route:wI(),browser:vI(),os:yI(),viewport:bI(),replay:t.config.replay!==!1,console:null,network:null,errors:null}),a=null,c={client:i,open:()=>a?.open(),close:()=>a?.close(),destroy:()=>{a?.destroy(),a=null,i.stop(),My(),br(null)}};return a=UI({client:i,snapshotStats:s,onDismiss:()=>{i.stop(),My(),br(null)}}),br(c),jI(c,r),c}function Jy(){if(!Wf())return null;let e=Array.from(window.Lens?.q??[]).some(n=>n[0]==="init"),r=!!document.querySelector("script[data-lens-id]");return!e&&!r||!By()?null:Mo()}Wf()&&Jy();if(typeof window<"u"){let e=()=>Mo();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()}return Qy(BI);})();
752
+ /*! Bundled license information:
753
+
754
+ rrweb/dist/rrweb.js:
755
+ (*! *****************************************************************************
756
+ Copyright (c) Microsoft Corporation.
757
+
758
+ Permission to use, copy, modify, and/or distribute this software for any
759
+ purpose with or without fee is hereby granted.
760
+
761
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
762
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
763
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
764
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
765
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
766
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
767
+ PERFORMANCE OF THIS SOFTWARE.
768
+ ***************************************************************************** *)
769
+ */
770
+ //# sourceMappingURL=lens.min.js.map