office-viewer-react 1.0.0

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 (36) hide show
  1. package/README.md +390 -0
  2. package/dist/client/assets/DocxViewer-NgAiZAEg.css +1 -0
  3. package/dist/client/assets/DocxViewer-gwdjm0mw.js +60 -0
  4. package/dist/client/assets/LogoIcon-BcnkueZW.js +1 -0
  5. package/dist/client/assets/PptxViewer-CLNaZa_4.js +59 -0
  6. package/dist/client/assets/PptxViewer-CYMXzyIj.css +1 -0
  7. package/dist/client/assets/XlsxViewer-BNso6L-X.css +1 -0
  8. package/dist/client/assets/XlsxViewer-C2ErMokS.js +64 -0
  9. package/dist/client/assets/_commonjs-dynamic-modules-DaXrHM_S.js +1 -0
  10. package/dist/client/assets/form-C1byQJR4.js +1 -0
  11. package/dist/client/assets/index-BDMLGHcR.js +2 -0
  12. package/dist/client/assets/index-CKjGwz9R.js +12 -0
  13. package/dist/client/assets/jszip.min-BwIaN_vk.js +2 -0
  14. package/dist/client/assets/login-DEy3R1iD.js +1 -0
  15. package/dist/client/assets/register-CUUVGLJE.js +1 -0
  16. package/dist/client/assets/styles-3a3CPFIV.css +1 -0
  17. package/dist/client/robots.txt +2 -0
  18. package/dist/index.cjs +1806 -0
  19. package/dist/index.d.cts +16 -0
  20. package/dist/index.d.ts +16 -0
  21. package/dist/index.js +1769 -0
  22. package/dist/server/assets/DocxViewer-Bm8UJY-7.js +469 -0
  23. package/dist/server/assets/LogoIcon-Dx0LU3or.js +26 -0
  24. package/dist/server/assets/PptxViewer-DS7Atucw.js +213 -0
  25. package/dist/server/assets/XlsxViewer-jzIgKmN2.js +841 -0
  26. package/dist/server/assets/_tanstack-start-manifest_v-CpFqMvFH.js +4 -0
  27. package/dist/server/assets/empty-plugin-adapters-BFgPZ6_d.js +6 -0
  28. package/dist/server/assets/form-CD9otjw-.js +236 -0
  29. package/dist/server/assets/index-gQHSGxNv.js +365 -0
  30. package/dist/server/assets/login-DvbAXNSQ.js +81 -0
  31. package/dist/server/assets/register-C2G9K9kP.js +102 -0
  32. package/dist/server/assets/router-F5YKPXkV.js +229 -0
  33. package/dist/server/assets/server-6Sfy37dh.js +1523 -0
  34. package/dist/server/assets/start-dMGD6DUy.js +56 -0
  35. package/dist/server/server.js +94 -0
  36. package/package.json +120 -0
@@ -0,0 +1 @@
1
+ import{c as o}from"./LogoIcon-BcnkueZW.js";const r=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],c=o("chevron-left",r);const n=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],i=o("chevron-right",n);function a(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{c as C,i as a,a as c};
@@ -0,0 +1 @@
1
+ import{R as E,j as z,r as B,a as ss}from"./index-CKjGwz9R.js";import{c as Be,a as os}from"./LogoIcon-BcnkueZW.js";var Ge=e=>e.type==="checkbox",Ie=e=>e instanceof Date,ie=e=>e==null;const ir=e=>typeof e=="object";var Y=e=>!ie(e)&&!Array.isArray(e)&&ir(e)&&!Ie(e),ar=e=>Y(e)&&e.target?Ge(e.target)?e.target.checked:e.target.value:e,lr=(e,r)=>r.split(".").some((t,s,o)=>!isNaN(Number(t))&&e.has(o.slice(0,s).join("."))),ns=e=>{const r=e.constructor&&e.constructor.prototype;return Y(r)&&r.hasOwnProperty("isPrototypeOf")},rt=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Z(e){if(e instanceof Date)return new Date(e);const r=typeof FileList<"u"&&e instanceof FileList;if(rt&&(e instanceof Blob||r))return e;const t=Array.isArray(e);if(!t&&!(Y(e)&&ns(e)))return e;const s=t?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=Z(e[o]));return s}const ke={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},pe={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},be={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ct="form",cr="root",dr=["__proto__","constructor","prototype"];var We=e=>/^\w*$/.test(e),G=e=>e===void 0,st=e=>e.split(/[.[\]'"]/g).filter(Boolean),p=(e,r,t)=>{if(!r||!Y(e))return t;const s=We(r)?[r]:st(r);if(s.some(n=>dr.includes(n)))return t;const o=s.reduce((n,a)=>ie(n)?void 0:n[a],e);return G(o)||o===e?G(e[r])?t:e[r]:o},de=e=>typeof e=="boolean",ae=e=>typeof e=="function",U=(e,r,t)=>{let s=-1;const o=We(r)?[r]:st(r),n=o.length,a=n-1;for(;++s<n;){const c=o[s];let m=t;if(s!==a){const u=e[c];m=Y(u)||Array.isArray(u)?u:isNaN(+o[s+1])?{}:[]}if(dr.includes(c))return;e[c]=m,e=e[c]}};const vt=E.createContext(null);vt.displayName="HookFormControlContext";const xt=()=>E.useContext(vt);var ur=(e,r,t,s=!0)=>{const o={};for(const n in e)Object.defineProperty(o,n,{get:()=>{const a=n;return r._proxyFormState[a]!==pe.all&&(r._proxyFormState[a]=!s||pe.all),t&&(t[a]=!0),e[a]}});return o};const wt=rt?E.useLayoutEffect:E.useEffect;function is(e){const r=xt(),{control:t=r,disabled:s,name:o,exact:n}=e||{},[a,c]=E.useState(()=>({...t._formState,defaultValues:t._defaultValues})),m=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return wt(()=>t._subscribe({name:o,formState:m.current,exact:n,callback:u=>{!s&&c({...t._formState,...u,defaultValues:t._defaultValues})}}),[o,s,n]),E.useEffect(()=>{m.current.isValid&&t._setValid(!0)},[t]),E.useMemo(()=>ur(a,t,m.current,!1),[a,t])}var le=e=>typeof e=="string",ft=(e,r,t,s,o)=>le(e)?(s&&r.watch.add(e),p(t,e,o)):Array.isArray(e)?e.map(n=>(s&&r.watch.add(n),p(t,n))):(s&&(r.watchAll=!0),t),mt=e=>ie(e)||!ir(e);function ue(e,r,t=new WeakSet){if(e===r)return!0;if(mt(e)||mt(r))return Object.is(e,r);if(Ie(e)&&Ie(r))return Object.is(e.getTime(),r.getTime());const s=Object.keys(e),o=Object.keys(r);if(s.length!==o.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of s){const a=e[n];if(!(n in r))return!1;if(n!=="ref"){const c=r[n];if(Ie(a)&&Ie(c)||(Y(a)||Array.isArray(a))&&(Y(c)||Array.isArray(c))?!ue(a,c,t):!Object.is(a,c))return!1}}return!0}function as(e){const r=xt(),{control:t=r,name:s,defaultValue:o,disabled:n,exact:a,compute:c}=e||{},m=E.useRef(o),u=E.useRef(c),C=E.useRef(void 0),h=E.useRef(t),_=E.useRef(s);u.current=c;const[w,T]=E.useState(()=>{const M=t._getWatch(s,m.current);return u.current?u.current(M):M}),S=E.useCallback(M=>{const R=ft(s,t._names,M||t._formValues,!1,m.current);return u.current?u.current(R):R},[t._formValues,t._names,s]),O=E.useCallback(M=>{if(!n){const R=ft(s,t._names,M||t._formValues,!1,m.current);if(u.current){const se=u.current(R);ue(se,C.current)||(T(se),C.current=se)}else T(R)}},[t._formValues,t._names,n,s]);wt(()=>((h.current!==t||!ue(_.current,s))&&(h.current=t,_.current=s,O()),t._subscribe({name:s,formState:{values:!0},exact:a,callback:M=>{O(M.values)}})),[t,a,s,O]),E.useEffect(()=>t._removeUnmounted());const L=h.current!==t,F=_.current,j=E.useMemo(()=>{if(n)return null;const M=!L&&!ue(F,s);return L||M?S():null},[n,L,s,F,S]);return j!==null?j:w}function ls(e){const r=xt(),{name:t,disabled:s,control:o=r,shouldUnregister:n,defaultValue:a,exact:c=!0}=e,m=lr(o._names.array,t),u=E.useMemo(()=>p(o._formValues,t,p(o._defaultValues,t,a)),[o,t,a]),C=as({control:o,name:t,defaultValue:u,exact:c}),h=is({control:o,name:t,exact:c}),_=E.useRef(e),w=E.useRef(o.register(t,{...e.rules,value:C,...de(e.disabled)?{disabled:e.disabled}:{}}));_.current=e;const T=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!p(h.errors,t)},isDirty:{enumerable:!0,get:()=>!!p(h.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!p(h.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!p(h.validatingFields,t)},error:{enumerable:!0,get:()=>p(h.errors,t)}}),[h,t]),S=E.useCallback(j=>w.current.onChange({target:{value:ar(j),name:t},type:ke.CHANGE}),[t]),O=E.useCallback(()=>w.current.onBlur({target:{value:p(o._formValues,t),name:t},type:ke.BLUR}),[t,o._formValues]),L=E.useCallback(j=>{const M=p(o._fields,t);M&&M._f&&j&&(M._f.ref={focus:()=>ae(j.focus)&&j.focus(),select:()=>ae(j.select)&&j.select(),setCustomValidity:R=>ae(j.setCustomValidity)&&j.setCustomValidity(R),reportValidity:()=>ae(j.reportValidity)&&j.reportValidity()})},[o._fields,t]),F=E.useMemo(()=>({name:t,value:C,...de(s)||h.disabled?{disabled:h.disabled||s}:{},onChange:S,onBlur:O,ref:L}),[t,s,h.disabled,S,O,L,C]);return E.useEffect(()=>{const j=o._options.shouldUnregister||n;o.register(t,{..._.current.rules,...de(_.current.disabled)?{disabled:_.current.disabled}:{}});const M=(R,se)=>{const Q=p(o._fields,R);Q&&Q._f&&(Q._f.mount=se)};if(M(t,!0),j){const R=Z(p(o._defaultValues,t,p(o._options.defaultValues,t,_.current.defaultValue)));U(o._defaultValues,t,R),G(p(o._formValues,t))&&U(o._formValues,t,R)}return!m&&o.register(t),()=>{(m?j&&!o._state.action:j)?o.unregister(t):M(t,!1)}},[t,o,m,n]),E.useEffect(()=>{o._setDisabledField({disabled:s,name:t})},[s,t,o]),E.useMemo(()=>({field:F,formState:h,fieldState:T}),[F,h,T])}const cs=e=>e.render(ls(e)),kt=E.createContext(null);kt.displayName="HookFormContext";const ds=()=>E.useContext(kt),us=({children:e,watch:r,getValues:t,getFieldState:s,setError:o,clearErrors:n,setValue:a,setValues:c,trigger:m,formState:u,resetField:C,reset:h,handleSubmit:_,unregister:w,control:T,register:S,setFocus:O,subscribe:L})=>{const F=E.useMemo(()=>({watch:r,getValues:t,getFieldState:s,setError:o,clearErrors:n,setValue:a,setValues:c,trigger:m,formState:u,resetField:C,reset:h,handleSubmit:_,unregister:w,control:T,register:S,setFocus:O,subscribe:L}),[n,T,u,s,t,_,S,h,C,o,O,a,c,L,m,w,r]);return E.createElement(kt.Provider,{value:F},E.createElement(vt.Provider,{value:F.control},e))};var _t=(e,r,t,s,o)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:o||!0}}:{},fr=e=>Array.isArray(e)?e.filter(Boolean):[],Xe=e=>Array.isArray(e)?e:[e],Pt=()=>{let e=[];return{get observers(){return e},next:o=>{for(const n of e)n.next&&n.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(n=>n!==o)}}),unsubscribe:()=>{e=[]}}};function mr(e,r){const t={};for(const s in e)if(e.hasOwnProperty(s)){const o=e[s],n=r[s];if(o&&Y(o)&&n){const a=mr(o,n);Y(a)&&(t[s]=a)}else e[s]&&(t[s]=n)}return t}var ne=e=>Y(e)&&!Object.keys(e).length,Vt=e=>e.type==="file",Qe=e=>{if(!rt)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},br=e=>e.type==="select-multiple",Ft=e=>e.type==="radio",fs=e=>Ft(e)||Ge(e),dt=e=>Qe(e)&&e.isConnected;function ms(e,r){const t=r.slice(0,-1).length;let s=0;for(;s<t;){if(ie(e)){e=void 0;break}e=e[r[s]],s++}return e}function bs(e){for(const r in e)if(e.hasOwnProperty(r)&&!G(e[r]))return!1;return!0}function X(e,r){if(le(r)&&Object.prototype.hasOwnProperty.call(e,r))return delete e[r],e;const t=Array.isArray(r)?r:We(r)?[r]:st(r),s=t.length===1?e:ms(e,t),o=t.length-1,n=t[o];return s&&delete s[n],o!==0&&(Y(s)&&ne(s)||Array.isArray(s)&&bs(s))&&X(e,t.slice(0,-1)),e}var ps=e=>{for(const r in e)if(ae(e[r]))return!0;return!1};function pr(e){return Array.isArray(e)||Y(e)&&!ps(e)}function bt(e,r={}){for(const t in e){const s=e[t];pr(s)?(r[t]=Array.isArray(s)?[]:{},bt(s,r[t])):G(s)||(r[t]=!0)}return r}function pt(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){const r=e.map(t=>pt(t));return r.some(t=>t!==void 0)?r:void 0}if(Y(e)){const r={};for(const t in e){const s=pt(e[t]);G(s)||(r[t]=s)}return Object.keys(r).length?r:void 0}}}function Oe(e,r,t){t||(t=bt(r));for(const s in e){const o=e[s];if(pr(o))G(r)||mt(t[s])?t[s]=bt(o,Array.isArray(o)?[]:{}):Oe(o,ie(r)?{}:r[s],t[s]);else{const n=r[s];t[s]=!ue(o,n)}}return pt(t)||{}}const Dt={value:!1,isValid:!1},zt={value:!0,isValid:!0};var gr=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!G(e[0].attributes.value)?G(e[0].value)||e[0].value===""?zt:{value:e[0].value,isValid:!0}:zt:Dt}return Dt},hr=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:s})=>G(e)?e:r?e===""?NaN:e&&+e:t&&le(e)?new Date(e):s?s(e):e;const jt={isValid:!1,value:null};var yr=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,jt):jt;function Mt(e){const r=e.ref;return Vt(r)?r.files:Ft(r)?yr(e.refs).value:br(r)?[...r.selectedOptions].map(({value:t})=>t):Ge(r)?gr(e.refs).value:hr(G(r.value)?e.ref.value:r.value,e)}var gs=(e,r,t,s)=>{const o={};for(const n of e){const a=p(r,n);a&&U(o,n,a._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:s}},et=e=>e instanceof RegExp,Le=e=>G(e)?e:et(e)?e.source:Y(e)?et(e.value)?e.value.source:e.value:e,Tt=e=>({isOnSubmit:!e||e===pe.onSubmit,isOnBlur:e===pe.onBlur,isOnChange:e===pe.onChange,isOnAll:e===pe.all,isOnTouch:e===pe.onTouched});const Lt="AsyncFunction";var hs=e=>!!e&&!!e.validate&&!!(ae(e.validate)&&e.validate.constructor.name===Lt||Y(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Lt)),ys=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ut=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(`${s}.`)));const $e=(e,r,t,s)=>{for(const o of t||Object.keys(e)){const n=p(e,o);if(n){const{_f:a,...c}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],o)&&!s)return!0;if(a.ref&&r(a.ref,a.name)&&!s)return!0;if($e(c,r))break}else if(Y(c)&&$e(c,r))break}}};function $t(e,r,t){const s=p(e,t);if(s||We(t))return{error:s,name:t};const o=t.split(".");for(;o.length;){const n=o.join("."),a=p(r,n),c=p(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(c&&c.type)return{name:n,error:c};if(c&&c.root&&c.root.type)return{name:`${n}.root`,error:c.root};o.pop()}return{name:t}}var vs=(e,r,t,s)=>{t(e);const{name:o,...n}=e;return ne(n)||s&&Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!s||pe.all))},xs=(e,r,t)=>!e||!r||e===r||Xe(e).some(s=>s&&(t?s===r:s.startsWith(r)||r.startsWith(s))),ws=(e,r,t,s,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(r||e):(t?s.isOnBlur:o.isOnBlur)?!e:(t?s.isOnChange:o.isOnChange)?e:!0,ks=(e,r)=>!fr(p(e,r)).length&&X(e,r),Bt=(e,r,t)=>{const s=p(e,t),o=Array.isArray(s)?s:[];return U(o,cr,r[t]),U(e,t,o),e};function Gt(e,r,t="validate"){if(le(e)||Array.isArray(e)&&e.every(le)||de(e)&&!e)return{type:t,message:le(e)?e:"",ref:r}}var je=e=>Y(e)&&!et(e)?e:{value:e,message:""},Wt=async(e,r,t,s,o,n)=>{const{ref:a,refs:c,required:m,maxLength:u,minLength:C,min:h,max:_,pattern:w,validate:T,name:S,valueAsNumber:O,mount:L}=e._f,F=p(t,S);if(!L||r.has(S))return{};const j=c?c[0]:a,M=I=>{o&&j.reportValidity&&(j.setCustomValidity(de(I)?"":I||""),j.reportValidity())},R={},se=Ft(a),Q=Ge(a),k=se||Q,K=(O||Vt(a))&&G(a.value)&&G(F)||Qe(a)&&a.value===""||F===""||Array.isArray(F)&&!F.length,ce=_t.bind(null,S,s,R),Fe=(I,P,H,$=be.maxLength,W=be.minLength)=>{const oe=I?P:H;R[S]={type:I?$:W,message:oe,ref:a,...ce(I?$:W,oe)}};if(n?!Array.isArray(F)||!F.length:m&&(!k&&(K||ie(F))||de(F)&&!F||Q&&!gr(c).isValid||se&&!yr(c).isValid)){const{value:I,message:P}=le(m)?{value:!!m,message:m}:je(m);if(I&&(R[S]={type:be.required,message:P,ref:j,...ce(be.required,P)},!s))return M(P),R}if(!K&&(!ie(h)||!ie(_))){let I,P;const H=je(_),$=je(h);if(!ie(F)&&!isNaN(F)){const W=a.valueAsNumber||F&&+F;ie(H.value)||(I=W>H.value),ie($.value)||(P=W<$.value)}else{const W=a.valueAsDate||new Date(F),oe=V=>new Date(new Date().toDateString()+" "+V),ge=a.type=="time",ye=a.type=="week";le(H.value)&&F&&(I=ge?oe(F)>oe(H.value):ye?F>H.value:W>new Date(H.value)),le($.value)&&F&&(P=ge?oe(F)<oe($.value):ye?F<$.value:W<new Date($.value))}if((I||P)&&(Fe(!!I,H.message,$.message,be.max,be.min),!s))return M(R[S].message),R}if((u||C)&&!K&&(le(F)||n&&Array.isArray(F))){const I=je(u),P=je(C),H=!ie(I.value)&&F.length>+I.value,$=!ie(P.value)&&F.length<+P.value;if((H||$)&&(Fe(H,I.message,P.message),!s))return M(R[S].message),R}if(w&&!K&&le(F)){const{value:I,message:P}=je(w);if(et(I)&&!F.match(I)&&(R[S]={type:be.pattern,message:P,ref:a,...ce(be.pattern,P)},!s))return M(P),R}if(T){if(ae(T)){const I=await T(F,t),P=Gt(I,j);if(P&&(R[S]={...P,...ce(be.validate,P.message)},!s))return M(P.message),R}else if(Y(T)){let I={};for(const P in T){if(!ne(I)&&!s)break;const H=Gt(await T[P](F,t),j,P);H&&(I={...H,...ce(P,H.message)},M(H.message),s&&(R[S]=I))}if(!ne(I)&&(R[S]={ref:j,...I},!s))return R}}return M(!0),R};const _s={mode:pe.onSubmit,reValidateMode:pe.onChange,shouldFocusError:!0},vr={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Vs(e={}){let r={..._s,...e},t={...Z(vr),isLoading:ae(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},s={},o=Y(r.defaultValues)||Y(r.values)?Z(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:Z(o),a={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},m,u=0;const C={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...C};let _={...h};const w={array:Pt(),state:Pt()},T=r.criteriaMode===pe.all,S=i=>l=>{clearTimeout(u),u=setTimeout(i,l)},O=async i=>{if(!a.keepIsValid&&!r.disabled&&(h.isValid||_.isValid||i)){let l;r.resolver?(l=ne((await ce()).errors),L()):l=await P({fields:s,onlyCheckValid:!0,eventType:ke.VALID}),l!==t.isValid&&w.state.next({isValid:l})}},L=(i,l)=>{!r.disabled&&(h.isValidating||h.validatingFields||_.isValidating||_.validatingFields)&&((i||Array.from(c.mount)).forEach(d=>{d&&(l?U(t.validatingFields,d,l):X(t.validatingFields,d))}),w.state.next({validatingFields:t.validatingFields,isValidating:!ne(t.validatingFields)}))},F=()=>{t.dirtyFields=Oe(o,n)},j=(i,l=[],d,f,g=!0,y=!0)=>{if(f&&d&&!r.disabled){if(a.action=!0,y&&Array.isArray(p(s,i))){const b=d(p(s,i),f.argA,f.argB);g&&U(s,i,b)}if(y&&Array.isArray(p(t.errors,i))){const b=d(p(t.errors,i),f.argA,f.argB);g&&U(t.errors,i,b),ks(t.errors,i)}if((h.touchedFields||_.touchedFields)&&y&&Array.isArray(p(t.touchedFields,i))){const b=d(p(t.touchedFields,i),f.argA,f.argB);g&&U(t.touchedFields,i,b)}(h.dirtyFields||_.dirtyFields)&&F(),w.state.next({name:i,isDirty:$(i,l),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else U(n,i,l)},M=(i,l)=>{U(t.errors,i,l),w.state.next({errors:t.errors})},R=i=>{t.errors=i,w.state.next({errors:t.errors,isValid:!1})},se=i=>{const l=We(i)?[i]:st(i);let d=n,f=o;for(let g=0;g<l.length-1;g++){const y=l[g];if(d=ie(d)?d:d[y],f=ie(f)?f:f[y],d===null&&f!==null)return!0}return!1},Q=(i,l,d,f)=>{const g=p(s,i);if(g){if(se(i))return;const y=G(p(n,i)),b=p(n,i,G(d)?p(o,i):d);G(b)||f&&f.defaultChecked||l?U(n,i,l?b:Mt(g._f)):ge(i,b),a.mount&&!a.action&&(O(),y&&t.isDirty&&(h.isDirty||_.isDirty)&&($()||(t.isDirty=!1,w.state.next({...t}))))}},k=(i,l,d,f,g)=>{let y=!1,b=!1;const A={name:i};if(!r.disabled){if(!d||f){(h.isDirty||_.isDirty)&&(b=t.isDirty,t.isDirty=A.isDirty=$(),y=b!==A.isDirty);const D=ue(p(o,i),l);b=!!p(t.dirtyFields,i),D!==t.isDirty?t.dirtyFields=Oe(o,n):D?X(t.dirtyFields,i):U(t.dirtyFields,i,!0),A.dirtyFields=t.dirtyFields,y=y||(h.dirtyFields||_.dirtyFields)&&b!==!D}if(d){const D=p(t.touchedFields,i);D||(U(t.touchedFields,i,d),A.touchedFields=t.touchedFields,y=y||(h.touchedFields||_.touchedFields)&&D!==d)}y&&g&&w.state.next(A)}return y?A:{}},K=(i,l,d,f)=>{const g=p(t.errors,i),y=(h.isValid||_.isValid)&&de(l)&&t.isValid!==l;if(r.delayError&&d?(m=S(()=>M(i,d)),m(r.delayError)):(clearTimeout(u),m=null,d?U(t.errors,i,d):X(t.errors,i)),(d?!ue(g,d):g)||!ne(f)||y){const b={...f,...y&&de(l)?{isValid:l}:{},errors:t.errors,name:i};t={...t,...b},w.state.next(b)}},ce=async i=>(L(i,!0),await r.resolver(n,r.context,gs(i||c.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),Fe=async i=>{const{errors:l}=await ce(i);if(L(i),i)for(const d of i){const f=p(l,d);f?c.array.has(d)&&Y(f)&&!Object.keys(f).some(g=>!Number.isNaN(Number(g)))?Bt(t.errors,{[d]:f},d):U(t.errors,d,f):X(t.errors,d)}else t.errors=l;return l},I=async({name:i,eventType:l})=>{if(e.validate){const d=await e.validate({formValues:n,formState:t,name:i,eventType:l});if(Y(d))for(const f in d){const g=d[f];g&&q(`${ct}.${f}`,{message:le(g.message)?g.message:"",type:g.type||be.validate})}else le(d)||!d?q(ct,{message:d||"",type:be.validate}):Te(ct);return d}return!0},P=async({fields:i,onlyCheckValid:l,name:d,eventType:f,context:g={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(g.runRootValidation=!0,!await I({name:d,eventType:f})&&(g.valid=!1,l)))return g.valid;for(const y in i){const b=i[y];if(b){const{_f:A,...D}=b;if(A){const J=c.array.has(A.name),fe=b._f&&hs(b._f),me=h.validatingFields||h.isValidating||_.validatingFields||_.isValidating;fe&&me&&L([A.name],!0);const Re=await Wt(b,c.disabled,n,T,r.shouldUseNativeValidation&&!l,J);if(fe&&me&&L([A.name]),Re[A.name]&&(g.valid=!1,l)||(!l&&(p(Re,A.name)?J?Bt(t.errors,Re,A.name):U(t.errors,A.name,Re[A.name]):X(t.errors,A.name)),e.shouldUseNativeValidation&&Re[A.name]))break}!ne(D)&&await P({context:g,onlyCheckValid:l,fields:D,name:y,eventType:f})}}return g.valid},H=()=>{for(const i of c.unMount){const l=p(s,i);l&&(l._f.refs?l._f.refs.every(d=>!dt(d)):!dt(l._f.ref))&&Ee(i)}c.unMount=new Set},$=(i,l)=>!r.disabled&&(i&&l&&U(n,i,l),!ue(re(),o)),W=(i,l,d)=>ft(i,c,{...a.mount?n:G(l)?o:le(i)?{[i]:l}:l},d,l),oe=i=>fr(p(a.mount?n:o,i,r.shouldUnregister?p(o,i,[]):[])),ge=(i,l,d={},f=!1)=>{const g=p(s,i);let y=l;if(g){const b=g._f;b&&(!b.disabled&&U(n,i,hr(l,b)),y=Qe(b.ref)&&ie(l)?"":l,br(b.ref)?[...b.ref.options].forEach(A=>A.selected=y.includes(A.value)):b.refs?Ge(b.ref)?b.refs.forEach(A=>{(!A.defaultChecked||!A.disabled)&&(Array.isArray(y)?A.checked=!!y.find(D=>D===A.value):A.checked=y===A.value||!!y)}):b.refs.forEach(A=>A.checked=A.value===y):Vt(b.ref)?b.ref.value="":(b.ref.value=y,b.ref.type||w.state.next({name:i,values:f?n:Z(n)})))}(d.shouldDirty||d.shouldTouch)&&k(i,y,d.shouldTouch,d.shouldDirty,!0),d.shouldValidate&&ee(i)},ye=(i,l,d,f=!1)=>{for(const g in l){if(!l.hasOwnProperty(g))return;const y=l[g],b=i+"."+g,A=p(s,b);(c.array.has(i)||Y(y)||A&&!A._f)&&!Ie(y)?ye(b,y,d,f):ge(b,y,d,f)}},V=(i,l,d,f)=>{const g=p(s,i),y=c.array.has(i),b=f?l:Z(l),A=p(n,i),D=ue(A,b);if(D||U(n,i,b),y)w.array.next({name:i,values:f?n:Z(n)}),(h.isDirty||h.dirtyFields||_.isDirty||_.dirtyFields)&&d.shouldDirty&&(F(),w.state.next({name:i,dirtyFields:t.dirtyFields,isDirty:$(i,b)}));else{const J=Array.isArray(b)&&!b.length||ne(b);!g||g._f||ie(b)||J?ge(i,b,d,f):ye(i,b,d,f)}if(!D){const J=Ut(i,c),fe=f?n:Z(n);w.state.next({...J&&t,name:a.mount||J?i:void 0,values:fe})}},xe=(i,l,d={})=>V(i,l,d,!1),He=(i,l={})=>{const d=ae(i)?i(n):i;if(!ue(n,d)){n={...n,...d};for(const f of c.mount)V(f,p(d,f),l,!0);w.state.next({...t,name:void 0,type:void 0,values:n}),l.shouldValidate&&O()}},Me=async i=>{a.mount=!0;const l=i.target;let d=l.name,f=!0;const g=p(s,d),y=D=>{f=Number.isNaN(D)||Ie(D)&&isNaN(D.getTime())||ue(D,p(n,d,D))},b=Tt(r.mode),A=Tt(r.reValidateMode);if(g){let D,J;const fe=l.type?Mt(g._f):ar(i),me=i.type===ke.BLUR||i.type===ke.FOCUS_OUT,Re=!ys(g._f)&&!e.validate&&!r.resolver&&!p(t.errors,d)&&!g._f.deps||ws(me,p(t.touchedFields,d),t.isSubmitted,A,b),at=Ut(d,c,me);U(n,d,fe),me?(!l||!l.readOnly)&&(g._f.onBlur&&g._f.onBlur(i),m&&m(0)):g._f.onChange&&g._f.onChange(i);const lt=k(d,fe,me),ts=!ne(lt)||at;if(!me&&w.state.next({name:d,type:i.type,values:Z(n)}),Re)return(h.isValid||_.isValid)&&(r.mode==="onBlur"?me&&O():me||O()),ts&&w.state.next({name:d,...at?{}:lt});if(!r.resolver&&e.validate&&await I({name:d,eventType:i.type}),!me&&at&&w.state.next({...t}),r.resolver){const{errors:Ot}=await ce([d]);if(L([d]),y(fe),f){const rs=$t(t.errors,s,d),It=$t(Ot,s,rs.name||d);D=It.error,d=It.name,J=ne(Ot)}}else L([d],!0),D=(await Wt(g,c.disabled,n,T,r.shouldUseNativeValidation))[d],L([d]),y(fe),f&&(D?J=!1:(h.isValid||_.isValid)&&(J=await P({fields:s,onlyCheckValid:!0,name:d,eventType:i.type})));f&&(g._f.deps&&(!Array.isArray(g._f.deps)||g._f.deps.length>0)&&ee(g._f.deps),K(d,J,D,lt))}},De=(i,l)=>{if(p(t.errors,l)&&i.focus)return i.focus(),1},ee=async(i,l={})=>{let d,f;const g=Xe(i);if(r.resolver){const y=await Fe(G(i)?i:g);d=ne(y),f=i?!g.some(b=>p(y,b)):d}else i?(f=(await Promise.all(g.map(async y=>{const b=p(s,y);return await P({fields:b&&b._f?{[y]:b}:b,eventType:ke.TRIGGER})}))).every(Boolean),!(!f&&!t.isValid)&&O()):f=d=await P({fields:s,name:i,eventType:ke.TRIGGER});return w.state.next({...!le(i)||(h.isValid||_.isValid)&&d!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:d}:{},errors:t.errors}),l.shouldFocus&&!f&&$e(s,De,i?g:c.mount),f},re=(i,l)=>{let d={...a.mount?n:o};return l&&(d=mr(l.dirtyFields?t.dirtyFields:t.touchedFields,d)),G(i)?d:le(i)?p(d,i):i.map(f=>p(d,f))},Ae=(i,l)=>({invalid:!!p((l||t).errors,i),isDirty:!!p((l||t).dirtyFields,i),error:p((l||t).errors,i),isValidating:!!p(t.validatingFields,i),isTouched:!!p((l||t).touchedFields,i)}),Te=i=>{const l=i?Xe(i):void 0;l?.forEach(d=>X(t.errors,d)),l?l.forEach(d=>{w.state.next({name:d,errors:t.errors})}):w.state.next({errors:{}})},q=(i,l,d)=>{const f=(p(s,i,{_f:{}})._f||{}).ref,g=p(t.errors,i)||{},{ref:y,message:b,type:A,...D}=g;U(t.errors,i,{...D,...l,ref:f}),w.state.next({name:i,errors:t.errors,isValid:!1}),d&&d.shouldFocus&&f&&f.focus&&f.focus()},qe=(i,l)=>ae(i)?w.state.subscribe({next:d=>"values"in d&&i(d.values||W(void 0,l),d)}):W(i,l,!0),Ce=i=>w.state.subscribe({next:l=>{if(xs(i.name,l.name,i.exact)&&vs(l,i.formState||h,es,i.reRenderRoot)){const d={...n};i.callback({values:d,...t,...l,defaultValues:o})}}}).unsubscribe,ze=i=>(a.mount=!0,_={..._,...i.formState},Ce({...i,formState:{...C,...i.formState}})),Ee=(i,l={})=>{for(const d of i?Xe(i):c.mount)c.mount.delete(d),c.array.delete(d),l.keepValue||(X(s,d),X(n,d)),!l.keepError&&X(t.errors,d),!l.keepDirty&&X(t.dirtyFields,d),!l.keepTouched&&X(t.touchedFields,d),!l.keepIsValidating&&X(t.validatingFields,d),!r.shouldUnregister&&!l.keepDefaultValue&&X(o,d);w.state.next({values:Z(n)}),w.state.next({...t,...l.keepDirty?{isDirty:$()}:{}}),!l.keepIsValid&&O()},Se=({disabled:i,name:l})=>{if(de(i)&&a.mount||i||c.disabled.has(l)){const g=c.disabled.has(l)!==!!i;i?c.disabled.add(l):c.disabled.delete(l),g&&a.mount&&!a.action&&O()}},nt=(i,l={})=>{let d=p(s,i);const f=de(l.disabled)||de(r.disabled),g=!c.registerName.has(i)&&d&&d._f&&!d._f.mount;return U(s,i,{...d||{},_f:{...d&&d._f?d._f:{ref:{name:i}},name:i,mount:!0,...l}}),c.mount.add(i),d&&!g?Se({disabled:de(l.disabled)?l.disabled:r.disabled,name:i}):Q(i,!0,l.value),{...f?{disabled:l.disabled||r.disabled}:{},...r.progressive?{required:!!l.required,min:Le(l.min),max:Le(l.max),minLength:Le(l.minLength),maxLength:Le(l.maxLength),pattern:Le(l.pattern)}:{},name:i,onChange:Me,onBlur:Me,ref:y=>{if(y){c.registerName.add(i),nt(i,l),c.registerName.delete(i),d=p(s,i);const b=G(y.value)&&y.querySelectorAll&&y.querySelectorAll("input,select,textarea")[0]||y,A=fs(b),D=d._f.refs||[];if(A?D.find(J=>J===b):b===d._f.ref)return;U(s,i,{_f:{...d._f,...A?{refs:[...D.filter(dt),b,...Array.isArray(p(o,i))?[{}]:[]],ref:{type:b.type,name:i}}:{ref:b}}}),Q(i,!1,void 0,b)}else d=p(s,i,{}),d._f&&(d._f.mount=!1),(r.shouldUnregister||l.shouldUnregister)&&!(lr(c.array,i)&&a.action)&&c.unMount.add(i)}}},it=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&$e(s,De,c.mount),Jr=i=>{de(i)&&(w.state.next({disabled:i}),$e(s,(l,d)=>{const f=p(s,d);f&&(l.disabled=f._f.disabled||i,Array.isArray(f._f.refs)&&f._f.refs.forEach(g=>{g.disabled=f._f.disabled||i}))},0,!1))},Et=(i,l)=>async d=>{let f;d&&(d.preventDefault&&d.preventDefault(),d.persist&&d.persist());let g=Z(n);if(w.state.next({isSubmitting:!0}),r.resolver){const{errors:y,values:b}=await ce();L(),t.errors=y,g=Z(b)}else await P({fields:s,eventType:ke.SUBMIT});if(c.disabled.size)for(const y of c.disabled)X(g,y);if(X(t.errors,cr),ne(t.errors)){w.state.next({errors:{}});try{await i(g,d)}catch(y){f=y}}else l&&await l({...t.errors},d),it(),setTimeout(it);if(w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ne(t.errors)&&!f,submitCount:t.submitCount+1,errors:t.errors}),f)throw f},Xr=(i,l={})=>{p(s,i)&&(G(l.defaultValue)?xe(i,Z(p(o,i))):(xe(i,l.defaultValue),U(o,i,Z(l.defaultValue))),l.keepTouched||X(t.touchedFields,i),l.keepDirty||(X(t.dirtyFields,i),t.isDirty=l.defaultValue?$(i,Z(p(o,i))):$()),l.keepError||(X(t.errors,i),h.isValid&&O()),w.state.next({...t}))},St=(i,l={})=>{const d=i?Z(i):o,f=Z(d),g=ne(i),y=f;if(l.keepDefaultValues||(o=d),!l.keepValues){if(l.keepDirtyValues){const b=new Set([...c.mount,...Object.keys(Oe(o,n))]);for(const A of Array.from(b)){const D=p(t.dirtyFields,A),J=p(n,A),fe=p(y,A);D&&!G(J)?U(y,A,J):!D&&!G(fe)&&xe(A,fe)}}else{if(rt&&G(i))for(const b of c.mount){const A=p(s,b);if(A&&A._f){const D=Array.isArray(A._f.refs)?A._f.refs[0]:A._f.ref;if(Qe(D)){const J=D.closest("form");if(J){J.reset();break}}}}if(l.keepFieldsRef)for(const b of c.mount)xe(b,p(y,b));else s={}}if(r.shouldUnregister){if(n=l.keepDefaultValues?Z(o):{},l.keepFieldsRef)for(const b of c.mount)U(n,b,p(y,b))}else n=Z(y);w.array.next({values:{...y}}),w.state.next({values:{...y}})}c={mount:l.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!l.keepIsValid||!!l.keepDirtyValues||!r.shouldUnregister&&!ne(y),a.watch=!!r.shouldUnregister,a.keepIsValid=!!l.keepIsValid,a.action=!1,l.keepErrors||(t.errors={}),w.state.next({submitCount:l.keepSubmitCount?t.submitCount:0,isDirty:g?!1:l.keepDirty?t.isDirty:l.keepValues?$():!!(l.keepDefaultValues&&!ue(i,o)),isSubmitted:l.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:g?{}:l.keepDirtyValues?l.keepDefaultValues&&n?Oe(o,n):t.dirtyFields:l.keepDefaultValues&&i?Oe(o,i):l.keepDirty?t.dirtyFields:{},touchedFields:l.keepTouched?t.touchedFields:{},errors:l.keepErrors?t.errors:{},isSubmitSuccessful:l.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Rt=(i,l)=>St(ae(i)?i(n):i,{...r.resetOptions,...l}),Qr=(i,l={})=>{const d=p(s,i),f=d&&d._f;if(f){const g=f.refs?f.refs[0]:f.ref;g.focus&&setTimeout(()=>{g.focus(),l.shouldSelect&&ae(g.select)&&g.select()})}},es=i=>{t={...t,...i}},Nt={control:{register:nt,unregister:Ee,getFieldState:Ae,handleSubmit:Et,setError:q,_subscribe:Ce,_runSchema:ce,_updateIsValidating:L,_focusError:it,_getWatch:W,_getDirty:$,_setValid:O,_setFieldArray:j,_setDisabledField:Se,_setErrors:R,_getFieldArray:oe,_reset:St,_resetDefaultValues:()=>ae(r.defaultValues)&&r.defaultValues().then(i=>{Rt(i,r.resetOptions),w.state.next({isLoading:!1})}),_removeUnmounted:H,_disableForm:Jr,_subjects:w,_proxyFormState:h,get _fields(){return s},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return o},get _names(){return c},set _names(i){c=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:ze,trigger:ee,register:nt,handleSubmit:Et,watch:qe,setValue:xe,setValues:He,getValues:re,reset:Rt,resetField:Xr,resetDefaultValues:(i,l={})=>{if(o=Z(i),!l.keepDirty){const d=Oe(o,n);t.dirtyFields=d,t.isDirty=!ne(d)}l.keepIsValid||O(),w.state.next({...t,defaultValues:o})},clearErrors:Te,unregister:Ee,setError:q,setFocus:Qr,getFieldState:Ae};return{...Nt,formControl:Nt}}function fn(e={}){const r=E.useRef(void 0),t=E.useRef(void 0),[s,o]=E.useState(()=>({...Z(vr),isLoading:ae(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ae(e.defaultValues)?void 0:e.defaultValues}));if(!r.current)if(e.formControl)r.current={...e.formControl,formState:s},e.defaultValues&&!ae(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...c}=Vs(e);r.current={...c,formState:s}}const n=r.current.control;return n._options=e,wt(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>o({...n._formState,defaultValues:n._defaultValues}),reRenderRoot:!0});return o(c=>({...c,isReady:!0})),n._formState.isReady=!0,a},[n]),E.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),E.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),E.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),E.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),E.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==s.isDirty&&n._subjects.state.next({isDirty:a})}},[n,s.isDirty]),E.useEffect(()=>{var a;e.values&&!ue(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),!((a=n._options.resetOptions)===null||a===void 0)&&a.keepIsValid||n._setValid(),t.current=e.values,o(c=>({...c}))):n._resetDefaultValues()},[n,e.values]),E.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=E.useMemo(()=>ur(s,n),[n,s]),r.current}const Ht=(e,r,t)=>{if(e&&"reportValidity"in e){const s=p(t,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},gt=(e,r)=>{for(const t in r.fields){const s=r.fields[t];s&&s.ref&&"reportValidity"in s.ref?Ht(s.ref,t,e):s&&s.refs&&s.refs.forEach(o=>Ht(o,t,e))}},qt=(e,r)=>{r.shouldUseNativeValidation&&gt(e,r);const t={};for(const s in e){const o=p(r.fields,s),n=Object.assign(e[s]||{},{ref:o&&o.ref});if(Fs(r.names||Object.keys(e),s)){const a=Object.assign({},p(t,s));U(a,"root",n),U(t,s,a)}else U(t,s,n)}return t},Fs=(e,r)=>{const t=Yt(r).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(s=>Yt(s).match(`^${t}\\.\\d+`))};function Yt(e){return e.replace(/[\[\]]/g,"")}function xr(e,r,t){function s(c,m){var u;Object.defineProperty(c,"_zod",{value:c._zod??{},enumerable:!1}),(u=c._zod).traits??(u.traits=new Set),c._zod.traits.add(e),r(c,m);for(const C in a.prototype)C in c||Object.defineProperty(c,C,{value:a.prototype[C].bind(c)});c._zod.constr=a,c._zod.def=m}const o=t?.Parent??Object;class n extends o{}Object.defineProperty(n,"name",{value:e});function a(c){var m;const u=t?.Parent?new n:this;s(u,c),(m=u._zod).deferred??(m.deferred=[]);for(const C of u._zod.deferred)C();return u}return Object.defineProperty(a,"init",{value:s}),Object.defineProperty(a,Symbol.hasInstance,{value:c=>t?.Parent&&c instanceof t.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class As extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Cs={};function wr(e){return Cs}function Es(e,r){return typeof r=="bigint"?r.toString():r}const kr=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Ye(e){return typeof e=="string"?e:e?.message}function _r(e,r,t){const s={...e,path:e.path??[]};if(!e.message){const o=Ye(e.inst?._zod.def?.error?.(e))??Ye(r?.error?.(e))??Ye(t.customError?.(e))??Ye(t.localeError?.(e))??"Invalid input";s.message=o}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}const Vr=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(r,Es,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ss=xr("$ZodError",Vr),Fr=xr("$ZodError",Vr,{Parent:Error}),Rs=e=>(r,t,s,o)=>{const n=s?Object.assign(s,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new As;if(a.issues.length){const c=new(o?.Err??e)(a.issues.map(m=>_r(m,n,wr())));throw kr(c,o?.callee),c}return a.value},Ns=Rs(Fr),Os=e=>async(r,t,s,o)=>{const n=s?Object.assign(s,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new(o?.Err??e)(a.issues.map(m=>_r(m,n,wr())));throw kr(c,o?.callee),c}return a.value},Is=Os(Fr);function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},ht.apply(null,arguments)}function Zt(e,r){try{var t=e()}catch(s){return r(s)}return t&&t.then?t.then(void 0,r):t}function Ps(e,r){for(var t={};e.length;){var s=e[0],o=s.code,n=s.message,a=s.path.join(".");if(!t[a])if("unionErrors"in s){var c=s.unionErrors[0].errors[0];t[a]={message:c.message,type:c.code}}else t[a]={message:n,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(C){return C.errors.forEach(function(h){return e.push(h)})}),r){var m=t[a].types,u=m&&m[s.code];t[a]=_t(a,r,t,o,u?[].concat(u,s.message):s.message)}e.shift()}return t}function Ds(e,r){for(var t={},s=function(){var o=e[0],n=o.code,a=o.message,c=o.path.join(".");if(!t[c])if(o.code==="invalid_union"&&o.errors.length>0){var m=o.errors[0][0];t[c]={message:m.message,type:m.code}}else t[c]={message:a,type:n};if(o.code==="invalid_union"&&o.errors.forEach(function(h){return h.forEach(function(_){return e.push(ht({},_,{path:[].concat(o.path,_.path)}))})}),r){var u=t[c].types,C=u&&u[o.code];t[c]=_t(c,r,t,n,C?[].concat(C,o.message):o.message)}e.shift()};e.length;)s();return t}function mn(e,r,t){if(t===void 0&&(t={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(e))return function(s,o,n){try{return Promise.resolve(Zt(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(a){return n.shouldUseNativeValidation&&gt({},n),{errors:{},values:t.raw?Object.assign({},s):a}})},function(a){if((function(c){return Array.isArray(c?.issues)})(a))return{values:{},errors:qt(Ps(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(e))return function(s,o,n){try{return Promise.resolve(Zt(function(){return Promise.resolve((t.mode==="sync"?Ns:Is)(e,s,r)).then(function(a){return n.shouldUseNativeValidation&&gt({},n),{errors:{},values:t.raw?Object.assign({},s):a}})},function(a){if((function(c){return c instanceof Ss})(a))return{values:{},errors:qt(Ds(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const zs=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],js=Be("eye-off",zs);const Ms=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ts=Be("eye",Ms);const Ls=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Us=Be("hard-drive",Ls);const $s=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Bs=Be("layers",$s);const Gs=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ws=Be("shield-check",Gs);function bn(){return z.jsxs("div",{className:"flex flex-col items-center gap-3",children:[z.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl",style:{backgroundColor:"#2563eb",boxShadow:"0 0 0 1px rgba(37,99,235,0.22), inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 20px 0 rgba(37,99,235,0.30)"},children:z.jsx(os,{size:30})}),z.jsxs("div",{className:"flex select-none flex-col items-center",style:{gap:2},children:[z.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.22em] text-blue-600",children:"Office"}),z.jsx("span",{className:"text-[24px] font-bold leading-none tracking-[-0.02em] text-slate-900",children:"Viewer"})]}),z.jsx("p",{className:"mt-0.5 max-w-xs text-center text-[13.5px] leading-relaxed text-slate-500",children:"Securely view Word, Excel and PowerPoint files directly in your browser."})]})}function pn(){return z.jsx("div",{className:"border-t border-slate-100 px-8 py-5 sm:px-12 sm:py-6",children:z.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-7 gap-y-3",children:[z.jsxs("div",{className:"flex items-center gap-1.5",children:[z.jsx(Ws,{className:"h-3.5 w-3.5 shrink-0 text-slate-400"}),z.jsx("span",{className:"whitespace-nowrap text-[11.5px] text-slate-400",children:"Secure Access"})]}),z.jsxs("div",{className:"flex items-center gap-1.5",children:[z.jsx(Us,{className:"h-3.5 w-3.5 shrink-0 text-slate-400"}),z.jsx("span",{className:"whitespace-nowrap text-[11.5px] text-slate-400",children:"Runs Locally"})]}),z.jsxs("div",{className:"flex items-center gap-1.5",children:[z.jsx(Bs,{className:"h-3.5 w-3.5 shrink-0 text-slate-400"}),z.jsx("span",{className:"whitespace-nowrap text-[11.5px] text-slate-400",children:"Word, Excel & PowerPoint"})]})]})})}function Kt(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Hs(...e){return r=>{let t=!1;const s=e.map(o=>{const n=Kt(o,r);return!t&&typeof n=="function"&&(t=!0),n});if(t)return()=>{for(let o=0;o<s.length;o++){const n=s[o];typeof n=="function"?n():Kt(e[o],null)}}}}function qs(...e){return B.useCallback(Hs(...e),e)}function Ar(e){const r=B.forwardRef((t,s)=>{let{children:o,...n}=t,a=null,c=!1;const m=[];Jt(o)&&typeof Ze=="function"&&(o=Ze(o._payload)),B.Children.forEach(o,_=>{if(Xs(_)){c=!0;const w=_;let T="child"in w.props?w.props.child:w.props.children;Jt(T)&&typeof Ze=="function"&&(T=Ze(T._payload)),a=Zs(w,T),m.push(a?.props?.children)}else m.push(_)}),a?a=B.cloneElement(a,void 0,m):!c&&B.Children.count(o)===1&&B.isValidElement(o)&&(a=o);const u=a?Js(a):void 0,C=qs(s,u);if(!a){if(o||o===0)throw new Error(c?ro(e):to(e));return o}const h=Ks(n,a.props??{});return a.type!==B.Fragment&&(h.ref=s?C:u),B.cloneElement(a,h)});return r.displayName=`${e}.Slot`,r}var Cr=Ar("Slot"),Ys=Symbol.for("radix.slottable"),Zs=(e,r)=>{if("child"in e.props){const t=e.props.child;return B.isValidElement(t)?B.cloneElement(t,void 0,e.props.children(t.props.children)):null}return B.isValidElement(r)?r:null};function Ks(e,r){const t={...r};for(const s in r){const o=e[s],n=r[s];/^on[A-Z]/.test(s)?o&&n?t[s]=(...c)=>{const m=n(...c);return o(...c),m}:o&&(t[s]=o):s==="style"?t[s]={...o,...n}:s==="className"&&(t[s]=[o,n].filter(Boolean).join(" "))}return{...e,...t}}function Js(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Xs(e){return B.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ys}var Qs=Symbol.for("react.lazy");function Jt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qs&&"_payload"in e&&eo(e._payload)}function eo(e){return typeof e=="object"&&e!==null&&"then"in e}var to=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ro=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Ze=ss[" use ".trim().toString()];function Er(e){var r,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(t=Er(e[r]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}function Sr(){for(var e,r,t=0,s="",o=arguments.length;t<o;t++)(e=arguments[t])&&(r=Er(e))&&(s&&(s+=" "),s+=r);return s}const Xt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qt=Sr,Rr=(e,r)=>t=>{var s;if(r?.variants==null)return Qt(e,t?.class,t?.className);const{variants:o,defaultVariants:n}=r,a=Object.keys(o).map(u=>{const C=t?.[u],h=n?.[u];if(C===null)return null;const _=Xt(C)||Xt(h);return o[u][_]}),c=t&&Object.entries(t).reduce((u,C)=>{let[h,_]=C;return _===void 0||(u[h]=_),u},{}),m=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((u,C)=>{let{class:h,className:_,...w}=C;return Object.entries(w).every(T=>{let[S,O]=T;return Array.isArray(O)?O.includes({...n,...c}[S]):{...n,...c}[S]===O})?[...u,h,_]:u},[]);return Qt(e,a,m,t?.class,t?.className)},so=(e,r)=>{const t=new Array(e.length+r.length);for(let s=0;s<e.length;s++)t[s]=e[s];for(let s=0;s<r.length;s++)t[e.length+s]=r[s];return t},oo=(e,r)=>({classGroupId:e,validator:r}),Nr=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),tt="-",er=[],no="arbitrary..",io=e=>{const r=lo(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return ao(a);const c=a.split(tt),m=c[0]===""&&c.length>1?1:0;return Or(c,m,r)},getConflictingClassGroupIds:(a,c)=>{if(c){const m=s[a],u=t[a];return m?u?so(u,m):m:u||er}return t[a]||er}}},Or=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const o=e[r],n=t.nextPart.get(o);if(n){const u=Or(e,r+1,n);if(u)return u}const a=t.validators;if(a===null)return;const c=r===0?e.join(tt):e.slice(r).join(tt),m=a.length;for(let u=0;u<m;u++){const C=a[u];if(C.validator(c))return C.classGroupId}},ao=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),s=r.slice(0,t);return s?no+s:void 0})(),lo=e=>{const{theme:r,classGroups:t}=e;return co(t,r)},co=(e,r)=>{const t=Nr();for(const s in e){const o=e[s];At(o,t,s,r)}return t},At=(e,r,t,s)=>{const o=e.length;for(let n=0;n<o;n++){const a=e[n];uo(a,r,t,s)}},uo=(e,r,t,s)=>{if(typeof e=="string"){fo(e,r,t);return}if(typeof e=="function"){mo(e,r,t,s);return}bo(e,r,t,s)},fo=(e,r,t)=>{const s=e===""?r:Ir(r,e);s.classGroupId=t},mo=(e,r,t,s)=>{if(po(e)){At(e(s),r,t,s);return}r.validators===null&&(r.validators=[]),r.validators.push(oo(t,e))},bo=(e,r,t,s)=>{const o=Object.entries(e),n=o.length;for(let a=0;a<n;a++){const[c,m]=o[a];At(m,Ir(r,c),t,s)}},Ir=(e,r)=>{let t=e;const s=r.split(tt),o=s.length;for(let n=0;n<o;n++){const a=s[n];let c=t.nextPart.get(a);c||(c=Nr(),t.nextPart.set(a,c)),t=c}return t},po=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),s=Object.create(null);const o=(n,a)=>{t[n]=a,r++,r>e&&(r=0,s=t,t=Object.create(null))};return{get(n){let a=t[n];if(a!==void 0)return a;if((a=s[n])!==void 0)return o(n,a),a},set(n,a){n in t?t[n]=a:o(n,a)}}},yt="!",tr=":",ho=[],rr=(e,r,t,s,o)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:s,isExternal:o}),yo=e=>{const{prefix:r,experimentalParseClassName:t}=e;let s=o=>{const n=[];let a=0,c=0,m=0,u;const C=o.length;for(let S=0;S<C;S++){const O=o[S];if(a===0&&c===0){if(O===tr){n.push(o.slice(m,S)),m=S+1;continue}if(O==="/"){u=S;continue}}O==="["?a++:O==="]"?a--:O==="("?c++:O===")"&&c--}const h=n.length===0?o:o.slice(m);let _=h,w=!1;h.endsWith(yt)?(_=h.slice(0,-1),w=!0):h.startsWith(yt)&&(_=h.slice(1),w=!0);const T=u&&u>m?u-m:void 0;return rr(n,w,_,T)};if(r){const o=r+tr,n=s;s=a=>a.startsWith(o)?n(a.slice(o.length)):rr(ho,!1,a,void 0,!0)}if(t){const o=s;s=n=>t({className:n,parseClassName:o})}return s},vo=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,s)=>{r.set(t,1e6+s)}),t=>{const s=[];let o=[];for(let n=0;n<t.length;n++){const a=t[n],c=a[0]==="[",m=r.has(a);c||m?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(a)):o.push(a)}return o.length>0&&(o.sort(),s.push(...o)),s}},xo=e=>({cache:go(e.cacheSize),parseClassName:yo(e),sortModifiers:vo(e),postfixLookupClassGroupIds:wo(e),...io(e)}),wo=e=>{const r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let s=0;s<t.length;s++)r[t[s]]=!0;return r},ko=/\s+/,_o=(e,r)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:a}=r,c=[],m=e.trim().split(ko);let u="";for(let C=m.length-1;C>=0;C-=1){const h=m[C],{isExternal:_,modifiers:w,hasImportantModifier:T,baseClassName:S,maybePostfixModifierPosition:O}=t(h);if(_){u=h+(u.length>0?" "+u:u);continue}let L=!!O,F;if(L){const Q=S.substring(0,O);F=s(Q);const k=F&&a[F]?s(S):void 0;k&&k!==F&&(F=k,L=!1)}else F=s(S);if(!F){if(!L){u=h+(u.length>0?" "+u:u);continue}if(F=s(S),!F){u=h+(u.length>0?" "+u:u);continue}L=!1}const j=w.length===0?"":w.length===1?w[0]:n(w).join(":"),M=T?j+yt:j,R=M+F;if(c.indexOf(R)>-1)continue;c.push(R);const se=o(F,L);for(let Q=0;Q<se.length;++Q){const k=se[Q];c.push(M+k)}u=h+(u.length>0?" "+u:u)}return u},Vo=(...e)=>{let r=0,t,s,o="";for(;r<e.length;)(t=e[r++])&&(s=Pr(t))&&(o&&(o+=" "),o+=s);return o},Pr=e=>{if(typeof e=="string")return e;let r,t="";for(let s=0;s<e.length;s++)e[s]&&(r=Pr(e[s]))&&(t&&(t+=" "),t+=r);return t},Fo=(e,...r)=>{let t,s,o,n;const a=m=>{const u=r.reduce((C,h)=>h(C),e());return t=xo(u),s=t.cache.get,o=t.cache.set,n=c,c(m)},c=m=>{const u=s(m);if(u)return u;const C=_o(m,t);return o(m,C),C};return n=a,(...m)=>n(Vo(...m))},Ao=[],te=e=>{const r=t=>t[e]||Ao;return r.isThemeGetter=!0,r},Dr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Co=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Eo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,So=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,No=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,we=e=>Co.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),he=e=>!!e&&Number.isInteger(Number(e)),ut=e=>e.endsWith("%")&&N(e.slice(0,-1)),ve=e=>Eo.test(e),jr=()=>!0,Io=e=>So.test(e)&&!Ro.test(e),Ct=()=>!1,Po=e=>No.test(e),Do=e=>Oo.test(e),zo=e=>!v(e)&&!x(e),jo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Mo=e=>_e(e,Lr,Ct),v=e=>Dr.test(e),Ne=e=>_e(e,Ur,Io),sr=e=>_e(e,Ho,N),To=e=>_e(e,Br,jr),Lo=e=>_e(e,$r,Ct),or=e=>_e(e,Mr,Ct),Uo=e=>_e(e,Tr,Do),Ke=e=>_e(e,Gr,Po),x=e=>zr.test(e),Ue=e=>Pe(e,Ur),$o=e=>Pe(e,$r),nr=e=>Pe(e,Mr),Bo=e=>Pe(e,Lr),Go=e=>Pe(e,Tr),Je=e=>Pe(e,Gr,!0),Wo=e=>Pe(e,Br,!0),_e=(e,r,t)=>{const s=Dr.exec(e);return s?s[1]?r(s[1]):t(s[2]):!1},Pe=(e,r,t=!1)=>{const s=zr.exec(e);return s?s[1]?r(s[1]):t:!1},Mr=e=>e==="position"||e==="percentage",Tr=e=>e==="image"||e==="url",Lr=e=>e==="length"||e==="size"||e==="bg-size",Ur=e=>e==="length",Ho=e=>e==="number",$r=e=>e==="family-name",Br=e=>e==="number"||e==="weight",Gr=e=>e==="shadow",qo=()=>{const e=te("color"),r=te("font"),t=te("text"),s=te("font-weight"),o=te("tracking"),n=te("leading"),a=te("breakpoint"),c=te("container"),m=te("spacing"),u=te("radius"),C=te("shadow"),h=te("inset-shadow"),_=te("text-shadow"),w=te("drop-shadow"),T=te("blur"),S=te("perspective"),O=te("aspect"),L=te("ease"),F=te("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...M(),x,v],se=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],k=()=>[x,v,m],K=()=>[we,"full","auto",...k()],ce=()=>[he,"none","subgrid",x,v],Fe=()=>["auto",{span:["full",he,x,v]},he,x,v],I=()=>[he,"auto",x,v],P=()=>["auto","min","max","fr",x,v],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...k()],oe=()=>[we,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],ge=()=>[we,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ye=()=>[we,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],V=()=>[e,x,v],xe=()=>[...M(),nr,or,{position:[x,v]}],He=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Me=()=>["auto","cover","contain",Bo,Mo,{size:[x,v]}],De=()=>[ut,Ue,Ne],ee=()=>["","none","full",u,x,v],re=()=>["",N,Ue,Ne],Ae=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[N,ut,nr,or],qe=()=>["","none",T,x,v],Ce=()=>["none",N,x,v],ze=()=>["none",N,x,v],Ee=()=>[N,x,v],Se=()=>[we,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ve],breakpoint:[ve],color:[jr],container:[ve],"drop-shadow":[ve],ease:["in","out","in-out"],font:[zo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ve],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ve],shadow:[ve],spacing:["px",N],text:[ve],"text-shadow":[ve],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",we,v,x,O]}],container:["container"],"container-type":[{"@container":["","normal","size",x,v]}],"container-named":[jo],columns:[{columns:[N,v,x,c]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:se()}],"overflow-x":[{"overflow-x":se()}],"overflow-y":[{"overflow-y":se()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[he,"auto",x,v]}],basis:[{basis:[we,"full","auto",c,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,we,"auto","initial","none",v]}],grow:[{grow:["",N,x,v]}],shrink:[{shrink:["",N,x,v]}],order:[{order:[he,"first","last","none",x,v]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:Fe()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:Fe()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],"inline-size":[{inline:["auto",...ge()]}],"min-inline-size":[{"min-inline":["auto",...ge()]}],"max-inline-size":[{"max-inline":["none",...ge()]}],"block-size":[{block:["auto",...ye()]}],"min-block-size":[{"min-block":["auto",...ye()]}],"max-block-size":[{"max-block":["none",...ye()]}],w:[{w:[c,"screen",...oe()]}],"min-w":[{"min-w":[c,"screen","none",...oe()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",t,Ue,Ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Wo,To]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ut,v]}],"font-family":[{font:[$o,Lo,r]}],"font-features":[{"font-features":[v]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,x,v]}],"line-clamp":[{"line-clamp":[N,"none",x,sr]}],leading:[{leading:[n,...k()]}],"list-image":[{"list-image":["none",x,v]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",x,Ne]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[N,"auto",x,v]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[he,x,v]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,v]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x,v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:xe()}],"bg-repeat":[{bg:He()}],"bg-size":[{bg:Me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},he,x,v],radial:["",x,v],conic:[he,x,v]},Go,Uo]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:De()}],"gradient-via-pos":[{via:De()}],"gradient-to-pos":[{to:De()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,x,v]}],"outline-w":[{outline:["",N,Ue,Ne]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",C,Je,Ke]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",h,Je,Ke]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[N,Ne]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",_,Je,Ke]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[N,x,v]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[x,v]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xe()}],"mask-repeat":[{mask:He()}],"mask-size":[{mask:Me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,v]}],filter:[{filter:["","none",x,v]}],blur:[{blur:qe()}],brightness:[{brightness:[N,x,v]}],contrast:[{contrast:[N,x,v]}],"drop-shadow":[{"drop-shadow":["","none",w,Je,Ke]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",N,x,v]}],"hue-rotate":[{"hue-rotate":[N,x,v]}],invert:[{invert:["",N,x,v]}],saturate:[{saturate:[N,x,v]}],sepia:[{sepia:["",N,x,v]}],"backdrop-filter":[{"backdrop-filter":["","none",x,v]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[N,x,v]}],"backdrop-contrast":[{"backdrop-contrast":[N,x,v]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,x,v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,x,v]}],"backdrop-invert":[{"backdrop-invert":["",N,x,v]}],"backdrop-opacity":[{"backdrop-opacity":[N,x,v]}],"backdrop-saturate":[{"backdrop-saturate":[N,x,v]}],"backdrop-sepia":[{"backdrop-sepia":["",N,x,v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,v]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",x,v]}],ease:[{ease:["linear","initial",L,x,v]}],delay:[{delay:[N,x,v]}],animate:[{animate:["none",F,x,v]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,x,v]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[x,v,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],zoom:[{zoom:[he,x,v]}],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x,v]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":V()}],"scrollbar-track-color":[{"scrollbar-track":V()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x,v]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[N,Ue,Ne,sr]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Yo=Fo(qo);function Ve(...e){return Yo(Sr(e))}const Zo=Rr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ko=B.forwardRef(({className:e,variant:r,size:t,asChild:s=!1,...o},n)=>{const a=s?Cr:"button";return z.jsx(a,{className:Ve(Zo({variant:r,size:t,className:e})),ref:n,...o})});Ko.displayName="Button";const Wr=B.forwardRef(({className:e,type:r,...t},s)=>z.jsx("input",{type:r,className:Ve("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...t}));Wr.displayName="Input";const Jo=B.forwardRef(({className:e,...r},t)=>{const[s,o]=B.useState(!1);return z.jsxs("div",{className:"relative",children:[z.jsx(Wr,{type:s?"text":"password",className:Ve("pr-10",e),ref:t,...r}),z.jsx("button",{type:"button",tabIndex:-1,"aria-label":s?"Hide password":"Show password",onClick:()=>o(n=>!n),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 transition-colors hover:text-slate-600",children:s?z.jsx(js,{className:"h-4 w-4","aria-hidden":"true"}):z.jsx(Ts,{className:"h-4 w-4","aria-hidden":"true"})})]})});Jo.displayName="PasswordInput";var Xo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qo=Xo.reduce((e,r)=>{const t=Ar(`Primitive.${r}`),s=B.forwardRef((o,n)=>{const{asChild:a,...c}=o,m=a?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),z.jsx(m,{...c,ref:n})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{}),en="Label",Hr=B.forwardRef((e,r)=>z.jsx(Qo.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Hr.displayName=en;var qr=Hr;const tn=Rr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Yr=B.forwardRef(({className:e,...r},t)=>z.jsx(qr,{ref:t,className:Ve(tn(),e),...r}));Yr.displayName=qr.displayName;const gn=us,Zr=B.createContext(null),hn=({...e})=>z.jsx(Zr.Provider,{value:{name:e.name},children:z.jsx(cs,{...e})}),ot=()=>{const e=B.useContext(Zr),r=B.useContext(Kr),{getFieldState:t,formState:s}=ds();if(!e)throw new Error("useFormField should be used within <FormField>");if(!r)throw new Error("useFormField should be used within <FormItem>");const o=t(e.name,s),{id:n}=r;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...o}},Kr=B.createContext(null),rn=B.forwardRef(({className:e,...r},t)=>{const s=B.useId();return z.jsx(Kr.Provider,{value:{id:s},children:z.jsx("div",{ref:t,className:Ve("space-y-2",e),...r})})});rn.displayName="FormItem";const sn=B.forwardRef(({className:e,...r},t)=>{const{error:s,formItemId:o}=ot();return z.jsx(Yr,{ref:t,className:Ve(s&&"text-destructive",e),htmlFor:o,...r})});sn.displayName="FormLabel";const on=B.forwardRef(({...e},r)=>{const{error:t,formItemId:s,formDescriptionId:o,formMessageId:n}=ot();return z.jsx(Cr,{ref:r,id:s,"aria-describedby":t?`${o} ${n}`:`${o}`,"aria-invalid":!!t,...e})});on.displayName="FormControl";const nn=B.forwardRef(({className:e,...r},t)=>{const{formDescriptionId:s}=ot();return z.jsx("p",{ref:t,id:s,className:Ve("text-[0.8rem] text-muted-foreground",e),...r})});nn.displayName="FormDescription";const an=B.forwardRef(({className:e,children:r,...t},s)=>{const{error:o,formMessageId:n}=ot(),a=o?String(o?.message??""):r;return a?z.jsx("p",{ref:s,id:n,className:Ve("text-[0.8rem] font-medium text-destructive",e),...t,children:a}):null});an.displayName="FormMessage";export{bn as B,gn as F,Wr as I,Jo as P,pn as T,mn as a,hn as b,rn as c,sn as d,on as e,an as f,Ko as g,fn as u};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DocxViewer-gwdjm0mw.js","assets/index-CKjGwz9R.js","assets/jszip.min-BwIaN_vk.js","assets/_commonjs-dynamic-modules-DaXrHM_S.js","assets/LogoIcon-BcnkueZW.js","assets/DocxViewer-NgAiZAEg.css","assets/XlsxViewer-C2ErMokS.js","assets/XlsxViewer-BNso6L-X.css","assets/PptxViewer-CLNaZa_4.js","assets/PptxViewer-CYMXzyIj.css"])))=>i.map(i=>d[i]);
2
+ import{r as a,j as e,_}from"./index-CKjGwz9R.js";import{c as i,a as R,L as V}from"./LogoIcon-BcnkueZW.js";const F=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],C=i("chevron-down",F);const O=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],W=i("circle-alert",O);const B=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],H=i("cloud-upload",B);const q=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],M=i("file-exclamation-point",q);const X=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],S=i("file-text",X);const K=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],D=i("presentation",K);const U=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]],E=i("sheet",U);const G=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],J=i("x",G);function Q({onFile:t,config:l}){const c=a.useRef(null),[w,o]=a.useState(!1),[x,s]=a.useState(!1),p=a.useCallback(r=>{const h=r?.[0];if(!h)return;const k="."+(h.name.split(".").pop()?.toLowerCase()??"");if(!l.accept.split(",").map(d=>d.trim()).includes(k)){s(!0),setTimeout(()=>s(!1),3e3);return}t(h)},[t,l.accept]),{icon:m,iconStyle:j,heading:b,description:v,dropHint:N,subtitle:u}=l;return e.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center px-6",children:[e.jsx("div",{className:"mb-8",children:e.jsx("div",{className:"flex h-18 w-18 items-center justify-center rounded-2xl",style:j,children:e.jsx(m,{className:"h-9 w-9 text-white",strokeWidth:1.5})})}),e.jsx("h1",{className:"text-center text-3xl font-bold tracking-tight text-foreground sm:text-4xl",children:b}),e.jsx("p",{className:"mt-3 max-w-md text-center text-muted-foreground",children:v}),e.jsxs("button",{type:"button",onClick:()=>c.current?.click(),onDragOver:r=>{r.preventDefault(),o(!0)},onDragLeave:()=>o(!1),onDrop:r=>{r.preventDefault(),o(!1),p(r.dataTransfer.files)},className:`mt-10 flex w-full flex-col items-center justify-center gap-4 rounded-2xl border-2 border-dashed px-8 py-16 text-center transition-colors ${x?"border-red-300 bg-red-50/70":w?"border-primary bg-accent":"border-page-border bg-page hover:border-primary/50"}`,children:[x?e.jsxs(e.Fragment,{children:[e.jsx(W,{className:"h-10 w-10 text-red-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-red-600",children:"Wrong file type"}),e.jsxs("p",{className:"mt-1 text-sm text-red-400",children:["This section only accepts ",l.accept," files"]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(H,{className:"h-10 w-10 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground",children:N}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:u})]})]}),e.jsx("input",{ref:c,type:"file",accept:l.accept,className:"hidden",onChange:r=>p(r.target.files)})]})]})}const Y=a.lazy(()=>_(()=>import("./DocxViewer-gwdjm0mw.js"),__vite__mapDeps([0,1,2,3,4,5])).then(t=>({default:t.DocxViewer}))),Z=a.lazy(()=>_(()=>import("./XlsxViewer-C2ErMokS.js"),__vite__mapDeps([6,1,3,4,7])).then(t=>({default:t.XlsxViewer}))),ee=a.lazy(()=>_(()=>import("./PptxViewer-CLNaZa_4.js"),__vite__mapDeps([8,1,2,3,4,9])).then(t=>({default:t.PptxViewer})));function te(t){const l=t.split(".").pop()?.toLowerCase();return l==="docx"?"docx":l==="xlsx"?"xlsx":l==="pptx"?"pptx":"unsupported"}const se={docx:{label:"Word Document",icon:S,cls:"bg-word text-word-foreground"},xlsx:{label:"Excel Spreadsheet",icon:E,cls:"bg-excel text-excel-foreground"},pptx:{label:"PowerPoint Presentation",icon:D,cls:"bg-powerpoint text-powerpoint-foreground"}},ae=[{id:"docs",label:"Docs Viewer",icon:S,color:"text-slate-400",activeColor:"text-blue-600",accentColor:"bg-blue-600",activeBg:"bg-blue-50"},{id:"excel",label:"Excel Viewer",icon:E,color:"text-slate-400",activeColor:"text-emerald-600",accentColor:"bg-emerald-500",activeBg:"bg-emerald-50"},{id:"ppt",label:"PPT Viewer",icon:D,color:"text-slate-400",activeColor:"text-orange-500",accentColor:"bg-orange-400",activeBg:"bg-orange-50"}],P={docx:"docs",xlsx:"excel",pptx:"ppt"},oe={docs:{accept:".docx",icon:S,iconStyle:{background:"linear-gradient(145deg, #1e40af 0%, #2563eb 55%, #93c5fd 100%)",boxShadow:"0 0 0 1px rgba(37,99,235,0.18), inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 20px rgba(37,99,235,0.38)"},heading:"Word Document Viewer",description:"Open Word documents directly in your browser — text, tables, images and charts rendered locally. Nothing leaves your device.",dropHint:"Drop your .docx file here, or click to browse",subtitle:"Accepts .docx files only"},excel:{accept:".xlsx",icon:E,iconStyle:{background:"linear-gradient(145deg, #166534 0%, #16a34a 55%, #86efac 100%)",boxShadow:"0 0 0 1px rgba(22,163,74,0.18), inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 20px rgba(22,163,74,0.38)"},heading:"Excel Spreadsheet Viewer",description:"Open Excel spreadsheets directly in your browser — cell styles, merged cells and formulas rendered locally. Nothing leaves your device.",dropHint:"Drop your .xlsx file here, or click to browse",subtitle:"Accepts .xlsx files only"},ppt:{accept:".pptx",icon:D,iconStyle:{background:"linear-gradient(145deg, #9a3412 0%, #ea580c 55%, #fdba74 100%)",boxShadow:"0 0 0 1px rgba(234,88,12,0.18), inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 20px rgba(234,88,12,0.38)"},heading:"PowerPoint Viewer",description:"Open PowerPoint presentations directly in your browser — all slides, layouts and charts rendered locally. Nothing leaves your device.",dropHint:"Drop your .pptx file here, or click to browse",subtitle:"Accepts .pptx files only"}},y=72,ne=264,le=24,A="cubic-bezier(0.4, 0, 0.2, 1)",re=`width 300ms ${A}, box-shadow 300ms ${A}`,ie="opacity 180ms ease, max-width 300ms ease, margin-left 280ms ease";function xe(){const[t,l]=a.useState(null),[c,w]=a.useState(!1),[o,x]=a.useState("docs"),[s,p]=a.useState(!1),[m,j]=a.useState("scroll"),[b,v]=a.useState("scroll");a.useEffect(()=>w(!0),[]);const N=async n=>{const d=await n.arrayBuffer(),f=te(n.name);l({name:n.name,kind:f,data:d}),f!=="unsupported"&&x(P[f])},u=()=>l(null),r=t&&t.kind!=="unsupported"?se[t.kind]:null,h=r?.icon??M,k=s?ne:y;return e.jsxs("div",{className:"flex h-screen flex-col bg-slate-50",children:[e.jsxs("header",{className:"fixed inset-x-0 top-0 z-30 flex h-[72px] items-center justify-between border-b border-slate-200/70 bg-white px-8",style:{boxShadow:"0 1px 4px 0 rgba(15,23,42,0.07)"},children:[e.jsxs("div",{className:"flex items-center gap-3.5",children:[e.jsx("div",{className:"flex h-[48px] w-[48px] shrink-0 items-center justify-center rounded-[14px]",style:{backgroundColor:"#2563eb",boxShadow:"0 0 0 1px rgba(37,99,235,0.22), inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 22px 0 rgba(37,99,235,0.30)"},children:e.jsx(R,{size:24})}),e.jsxs("div",{className:"flex select-none flex-col justify-center",style:{gap:1},children:[e.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-blue-600",children:"Office"}),e.jsx("span",{className:"text-[24px] font-bold leading-none tracking-[-0.03em] text-slate-900",children:"Viewer"})]})]}),(o==="ppt"||o==="docs"||t)&&e.jsxs("div",{className:"flex items-center gap-3",children:[o==="docs"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"select-none text-[12.5px] font-medium text-slate-400",children:"View Mode"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:b,onChange:n=>v(n.target.value),className:"appearance-none cursor-pointer rounded-lg border border-slate-200 bg-white py-2 pl-3.5 pr-8 text-[13px] font-medium text-slate-700 shadow-sm transition-colors hover:border-slate-300 focus:border-blue-400 focus:outline-none focus:ring-2 focus:ring-blue-400/20",children:[e.jsx("option",{value:"scroll",children:"Continuous Scroll"}),e.jsx("option",{value:"navigation",children:"Page Navigation"})]}),e.jsx(C,{className:"pointer-events-none absolute right-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400"})]})]}),o==="ppt"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"select-none text-[12.5px] font-medium text-slate-400",children:"View Mode"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:m,onChange:n=>j(n.target.value),className:"appearance-none cursor-pointer rounded-lg border border-slate-200 bg-white py-2 pl-3.5 pr-8 text-[13px] font-medium text-slate-700 shadow-sm transition-colors hover:border-slate-300 focus:border-blue-400 focus:outline-none focus:ring-2 focus:ring-blue-400/20",children:[e.jsx("option",{value:"scroll",children:"Vertical Scroll"}),e.jsx("option",{value:"navigation",children:"Slide Navigation"})]}),e.jsx(C,{className:"pointer-events-none absolute right-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400"})]})]}),(o==="ppt"||o==="docs")&&t&&e.jsx("div",{className:"h-5 w-px shrink-0 bg-slate-200"}),t&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:`flex h-8.5 w-8.5 shrink-0 items-center justify-center rounded-xl ${r?.cls??"bg-slate-100 text-slate-500"}`,children:e.jsx(h,{className:"h-4.25 w-4.25"})}),e.jsx("span",{className:"max-w-90 truncate text-[14px] font-medium text-slate-600",children:t.name}),e.jsx("div",{className:"mx-1 h-5 w-px shrink-0 bg-slate-200"}),e.jsxs("button",{onClick:u,className:"inline-flex items-center gap-1.5 rounded-xl border border-slate-200 bg-white px-4 py-1.75 text-[13.5px] font-medium text-slate-600 transition-all duration-150 hover:border-slate-300 hover:bg-slate-50 hover:text-slate-900",children:[e.jsx(J,{className:"h-3.5 w-3.5"}),"Close file"]})]})]})]}),e.jsxs("div",{className:"flex flex-1 overflow-hidden pt-[72px]",children:[e.jsxs("aside",{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{width:k,transition:re,boxShadow:s?"3px 0 28px 0 rgba(15,23,42,0.11)":"3px 0 0 0 rgba(15,23,42,0)"},className:"fixed bottom-0 left-0 top-[72px] z-[25] flex flex-col overflow-hidden border-r border-slate-200/70 bg-white",children:[e.jsx("div",{className:"shrink-0 px-3 pb-2 pt-8",style:{minHeight:52},children:e.jsx("p",{className:"select-none whitespace-nowrap pl-0.75 text-[10.5px] font-semibold uppercase tracking-[0.11em] text-slate-400",style:{opacity:s?1:0,transition:"opacity 200ms ease"},children:"Viewers"})}),e.jsx("nav",{className:"flex flex-col gap-1",children:ae.map(({id:n,label:d,icon:f,color:L,activeColor:$,accentColor:I,activeBg:T})=>{const g=o===n,z=g?T:s?"":"group-hover:bg-slate-100";return e.jsxs("div",{className:"group relative",children:[g&&e.jsx("div",{className:`absolute bottom-1.5 left-0 top-1.5 w-0.5 rounded-r-full ${I}`}),e.jsxs("button",{onClick:()=>{x(n),t&&t.kind!=="unsupported"&&P[t.kind]!==n&&u()},style:{paddingLeft:s?le:(y-40)/2,paddingRight:s?8:(y-40)/2},className:`relative flex w-full items-center rounded-md transition-colors duration-150 ${s?"py-3.5":"py-3"} ${g?$:`${L} hover:text-slate-600 ${s?"hover:bg-slate-50":""}`}`,children:[e.jsx("div",{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-xl transition-colors duration-200 ${z}`,children:e.jsx(f,{className:"h-5 w-5 shrink-0",strokeWidth:g?2.25:1.75})}),e.jsx("span",{style:{maxWidth:s?160:0,opacity:s?1:0,marginLeft:s?12:0,overflow:"hidden",whiteSpace:"nowrap",transition:ie},className:"text-[14.5px] font-medium tracking-[-0.01em]",children:d})]}),!s&&e.jsxs("div",{className:"pointer-events-none absolute left-full top-1/2 z-50 ml-3 -translate-y-1/2 whitespace-nowrap rounded-lg bg-slate-900 px-3 py-1.75 text-[13px] font-medium text-white opacity-0 shadow-xl transition-opacity duration-150 group-hover:opacity-100",children:[d,e.jsx("span",{className:"absolute right-full top-1/2 -translate-y-1/2 border-4 border-transparent border-r-slate-900"})]})]},n)})}),e.jsx("div",{className:"mt-auto border-t border-slate-100 px-[22px] py-5",style:{opacity:s?1:0,transition:"opacity 200ms ease"},children:e.jsx("p",{className:"whitespace-nowrap text-[12px] leading-relaxed text-slate-400",children:".docx · .xlsx · .pptx"})})]}),e.jsxs("div",{style:{marginLeft:y},className:"flex flex-1 flex-col overflow-hidden",children:[e.jsxs("main",{className:`flex-1 ${t?.kind==="pptx"&&m==="navigation"?"overflow-hidden":"overflow-auto"}`,children:[!t&&e.jsx("div",{className:"flex min-h-full items-center justify-center px-8 py-16",children:e.jsx("div",{className:"w-full max-w-150",children:e.jsx(Q,{onFile:N,config:oe[o]},o)})}),t&&!c&&e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(V,{className:"h-8 w-8 animate-spin text-slate-300"})}),t&&c&&t.kind==="unsupported"&&e.jsx("div",{className:"flex h-full items-center justify-center p-12",children:e.jsxs("div",{className:"mx-auto w-full max-w-md rounded-2xl border border-slate-200 bg-white px-12 py-12 text-center",style:{boxShadow:"0 1px 4px 0 rgba(15,23,42,0.06)"},children:[e.jsx(M,{className:"mx-auto h-12 w-12 text-slate-300"}),e.jsx("h2",{className:"mt-6 text-[20px] font-semibold tracking-tight text-slate-800",children:"Unsupported file type"}),e.jsxs("p",{className:"mt-3 text-[14.5px] leading-relaxed text-slate-500",children:["Please use a supported format:"," ",e.jsx("strong",{className:"font-semibold text-slate-700",children:".docx"}),","," ",e.jsx("strong",{className:"font-semibold text-slate-700",children:".xlsx"})," or"," ",e.jsx("strong",{className:"font-semibold text-slate-700",children:".pptx"}),".",e.jsx("br",{}),"Legacy formats (.doc, .xls, .ppt) are not supported."]}),e.jsx("button",{onClick:u,className:"mt-8 rounded-xl bg-blue-600 px-7 py-[10px] text-[14px] font-semibold text-white transition-colors duration-150 hover:bg-blue-700",children:"Try another file"})]})}),t&&c&&t.kind!=="unsupported"&&e.jsxs(a.Suspense,{fallback:e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(V,{className:"h-8 w-8 animate-spin text-slate-300"})}),children:[t.kind==="docx"&&e.jsx(Y,{data:t.data,mode:b}),t.kind==="xlsx"&&e.jsx(Z,{data:t.data}),t.kind==="pptx"&&e.jsx(ee,{data:t.data,mode:m})]})]}),e.jsx("footer",{className:"shrink-0 border-t border-slate-200/70 bg-white px-8 py-3",children:e.jsxs("p",{className:"text-center text-[12px] text-slate-400",children:["Powered by"," ",e.jsx("span",{className:"font-semibold text-slate-500",children:"Virtualan Software"})]})})]})]})]})}export{xe as component};