update
Browse files- build/client/_app/immutable/chunks/entry.OGBLgOl5.js +3 -0
- build/client/_app/immutable/entry/app.puY0pAKV.js +7 -0
- build/client/_app/immutable/entry/start.X-pmad89.js +1 -0
- build/client/_app/immutable/nodes/1.ksnB_OTm.js +1 -0
- build/client/_app/immutable/nodes/4.RlacoBBv.js +38 -0
- build/client/_app/version.json +1 -1
- build/prerendered/index.html +6 -6
- build/server/chunks/1-ynF1YR5f.js +9 -0
- build/server/chunks/1-ynF1YR5f.js.map +1 -0
- build/server/chunks/4-_Zro_ypn.js +9 -0
- build/server/chunks/4-_Zro_ypn.js.map +1 -0
- build/server/chunks/_page.svelte-Xvcum4KP.js +61 -0
- build/server/chunks/_page.svelte-Xvcum4KP.js.map +1 -0
- build/server/index.js +1 -1
- build/server/index.js.map +0 -0
- build/server/manifest.js +3 -3
- build/server/manifest.js.map +1 -1
build/client/_app/immutable/chunks/entry.OGBLgOl5.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{n as ie,s as rt,t as at}from"./scheduler.YAOc3RFa.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function st(e){return e.split("%25").map(decodeURI).join("%25")}function it(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ce({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,s){if(s==="get"||s==="getAll"||s==="has")return o=>(n(o),a[s](o));t();const i=Reflect.get(a,s);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ne=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&C.delete(pe(e)),Ne(e,t));const C=new Map;function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}function gt(e,t){const n=pe(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&C.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=pt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function _t(e,t,n){if(C.size>0){const r=pe(e,n),a=C.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);C.delete(r)}}return window.fetch(t,n)}function pe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${ht(...a)}"]`}return r}const mt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function yt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${vt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=mt.exec(c),[,g,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!g,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":g?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],g=a[o+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Et({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:g,params:u}=yt(o),f={id:o,exec:h=>{const p=g.exec(h);if(p)return bt(p,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Oe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Re(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=[];function ge(e,t=ie){let n;const r=new Set;function a(o){if(rt(e,o)&&(e=o,n)){const c=!U.length;for(const l of r)l[1](),U.push(l,e);if(c){for(let l=0;l<U.length;l+=2)U[l][0](U[l+1]);U.length=0}}}function s(o){a(o(e))}function i(o,c=ie){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||ie),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}const A=globalThis.__sveltekit_f2s69p?.base??"",kt=globalThis.__sveltekit_f2s69p?.assets??A,St="1710356765812",je="sveltekit:snapshot",$e="sveltekit:scroll",De="sveltekit:states",At="sveltekit:pageurl",N="sveltekit:history",F="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},H=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function _e(){return{x:pageXOffset,y:pageYOffset}}function x(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ie={...z,"":z.hover};function Ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Fe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ve(e)}}function ue(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||te(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=n?.origin===H&&e.hasAttribute("download");return{url:n,external:a,target:r,download:s}}function Y(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=x(o,"preload-code")),a===null&&(a=x(o,"preload-data")),t===null&&(t=x(o,"keepfocus")),n===null&&(n=x(o,"noscroll")),s===null&&(s=x(o,"reload")),i===null&&(i=x(o,"replacestate")),o=Ve(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ie[r??"off"],preload_data:Ie[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Le(e){const t=ge(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}function Rt(){const{set:e,subscribe:t}=ge(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${kt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==St;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function te(e,t){return e.origin!==H||!e.pathname.startsWith(t)}const It=-1,Lt=-2,Pt=-3,Tt=-4,Ut=-5,xt=-6;function Nt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===It)return;if(s===Pt)return NaN;if(s===Tt)return 1/0;if(s===Ut)return-1/0;if(s===xt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const g=new Map;r[s]=g;for(let f=1;f<o.length;f+=2)g.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let f=1;f<o.length;f+=2)u[o[f]]=a(o[f+1]);break;default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==Lt&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const qe=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...qe];const Ot=new Set([...qe]);[...Ot];function jt(e){return e.filter(t=>t!=null)}class ne{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ge{constructor(t,n){this.status=t,this.location=n}}class me extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}const $t="x-sveltekit-invalidated",Dt="x-sveltekit-trailing-slash";function J(e){return e instanceof ne||e instanceof me?e.status:500}function Ct(e){return e instanceof me?e.text:"Internal Error"}const T=Oe($e)??{},q=Oe(je)??{},Vt=history.pushState,ye=history.replaceState,L={url:Le({}),page:Le({}),navigating:ge(null),updated:Rt()};function we(e){T[e]=_e()}function Ft(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;q[n];)delete q[n],n+=1}function j(e){return location.href=e.href,new Promise(()=>{})}function Pe(){}let re,de,W,I,he,$;const Me=[],X=[];let O=null;const He=[],qt=[];let V=[],y={branch:[],error:null,url:null},ve=!1,Z=!1,Te=!0,G=!1,D=!1,Be=!1,be=!1,Ee,w,k,S,Q;async function Xt(e,t,n){document.URL!==location.href&&(location.href=location.href),$=e,re=Et(e),I=document.documentElement,he=t,de=e.nodes[0],W=e.nodes[1],de(),W(),w=history.state?.[N],k=history.state?.[F],w||(w=k=Date.now(),ye.call(history,{...history.state,[N]:w,[F]:k},""));const r=T[w];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(he,n):Kt(location.href,{replaceState:!0}),zt()}function Ke(e){X.some(t=>t?.snapshot)&&(q[e]=X.map(t=>t?.snapshot?.capture()))}function ze(e){q[e]?.forEach((t,n)=>{X[n]?.snapshot?.restore(t)})}function Ue(){we(w),Re($e,T),Ke(k),Re(je,q)}async function Ye(e,t,n,r){return K({type:"goto",url:Ce(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function Gt(e){return O={id:e.id,promise:We(e).then(t=>(t.type==="loaded"&&t.state.error&&(O=null),t))},O.promise}async function fe(e){const t=re.find(n=>n.exec(Xe(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Je(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),S=e.props.page,Ee=new $.root({target:t,props:{...e.props,stores:L,components:X},hydrate:!0}),ze(k);const r={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(a=>a(r)),Z=!0}async function ee({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(A&&(e.pathname===A||e.pathname===A+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=ot(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:jt(n).map(f=>f.node.component),page:S}};i!==void 0&&(c.props.form=i);let l={},d=!S,g=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const h=n[f],p=y.branch[f];h?.data!==p?.data&&(d=!0),h&&(l={...l,...h.data},d&&(c.props[`data_${g}`]=l),g+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==S.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:S.data}),c}async function ke({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);c.dependencies.add(h)}};const g={route:new Proxy(a,{get:(u,f)=>(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:lt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)}),async fetch(u,f){let h;u instanceof Request?(h=u.url,f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f}):h=u;const p=new URL(h,n);return o&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),Z?_t(h,p.href,f):gt(h,f)},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function xe(e,t,n,r,a,s){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(Me.some(o=>o(new URL(i))))return!0;return!1}function Se(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}async function We({id:e,invalidating:t,url:n,params:r,route:a}){if(O?.id===e)return O.promise;const{errors:s,layouts:i,leaf:o}=a,c=[...i,o];s.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?a.id!==y.route.id:!1,u=Mt(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||xe(f,g,d,u,v.server?.uses,r));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await et(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const p=l?.nodes;let R=!1;const E=c.map(async(_,m)=>{if(!_)return;const v=y.branch[m],b=p?.[m];if((!b||b.type==="skip")&&_[1]===v?.loader&&!xe(R,g,d,u,v.universal?.uses,r))return v;if(R=!0,b?.type==="error")throw b;return ke({loader:_[1],url:n,params:r,route:a,parent:async()=>{const oe={};for(let se=0;se<m;se+=1)Object.assign(oe,(await E[se])?.data);return oe},server_data_node:Se(b===void 0&&_[0]?{type:"skip"}:b??null,_[0]?v?.server:void 0)})});for(const _ of E)_.catch(()=>{});const P=[];for(let _=0;_<c.length;_+=1)if(c[_])try{P.push(await E[_])}catch(m){if(m instanceof Ge)return{type:"redirect",location:m.location};let v=J(m),b;if(p?.includes(m))v=m.status??v,b=m.error;else if(m instanceof ne)b=m.body;else{if(await L.updated.check())return await j(n);b=await M(m,{params:r,url:n,route:{id:a.id}})}const B=await Ht(_,P,s);return B?await ee({url:n,params:r,branch:P.slice(0,B.idx).concat(B.node),status:v,error:b,route:a}):await Qe(n,{id:a.id},b,v)}else P.push(void 0);return await ee({url:n,params:r,branch:P,status:200,error:null,route:a,form:t?void 0:null})}async function Ht(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ae({status:e,error:t,url:n,route:r}){const a={};let s=null;if($.server_loads[0]===0)try{const l=await et(n,[!0]);if(l.type!=="data"||l.nodes[0]&&l.nodes[0].type!=="data")throw 0;s=l.nodes[0]??null}catch{(n.origin!==H||n.pathname!==location.pathname||ve)&&await j(n)}const o=await ke({loader:de,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Se(s)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await ee({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}function Ae(e,t){if(!e||te(e,A))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Xe(n);for(const a of re){const s=a.exec(r);if(s)return{id:e.pathname+e.search,invalidating:t,route:a,params:it(s),url:e}}}function Xe(e){return st(e.slice(A.length)||"/")}function Ze({url:e,type:t,intent:n,delta:r}){let a=!1;const s=nt(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return G||He.forEach(o=>o(i)),a?null:s}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=Pe,block:d=Pe}){const g=Ae(t,!1),u=Ze({url:t,type:e,delta:n?.delta,intent:g});if(!u){d();return}const f=w,h=k;l(),G=!0,Z&&L.navigating.set(u.navigation),Q=c;let p=g&&await We(g);if(!p){if(te(t,A))return await j(t);p=await Qe(t,{id:null},await M(new me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Q!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(o>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Ye(new URL(p.location,t).href,{},o+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await j(t);if(Me.length=0,be=!1,we(f),Ke(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=s?0:1,m={[N]:w+=_,[F]:k+=_,[De]:i};(s?ye:Vt).call(history,m,"",t),s||Ft(w,k)}if(O=null,p.props.page.state=i,Z){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(qt.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){V=V.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}Ee.$set(p.props),Be=!0}else Je(p,he);const{activeElement:R}=document;await at();const E=n?n.scroll:a?_e():null;if(Te){const _=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));E?scrollTo(E.x,E.y):_?_.scrollIntoView():scrollTo(0,0)}const P=document.activeElement!==R&&document.activeElement!==document.body;!r&&!P&&Jt(),Te=!0,p.props.page&&(S=p.props.page),G=!1,e==="popstate"&&ze(k),u.fulfil(void 0),V.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Qe(e,t,n,r){return e.origin===H&&e.pathname===location.pathname&&!ve?await ae({status:r,error:n,url:e,route:t}):await j(e)}function Bt(){let e;I.addEventListener("mousemove",s=>{const i=s.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(s){r(s.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(s=>{for(const i of s)i.isIntersecting&&(fe(i.target.href),n.unobserve(i.target))},{threshold:0});function r(s,i){const o=Fe(s,I);if(!o)return;const{url:c,external:l,download:d}=ue(o,A);if(l||d)return;const g=Y(o);if(!g.reload)if(i<=g.preload_data){const u=Ae(c,!1);u&&Gt(u)}else i<=g.preload_code&&fe(c.pathname)}function a(){n.disconnect();for(const s of I.querySelectorAll("a")){const{url:i,external:o,download:c}=ue(s,A);if(o||c)continue;const l=Y(s);l.reload||(l.preload_code===z.viewport&&n.observe(s),l.preload_code===z.eager&&fe(i.pathname))}}V.push(a),a()}function M(e,t){if(e instanceof ne)return e.body;const n=J(e),r=Ct(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Kt(e,t={}){return e=Ce(e),e.origin!==H?Promise.reject(new Error("goto: invalid URL")):Ye(e,t,0)}function zt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ue(),!G){const r=nt(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};He.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ue()}),navigator.connection?.saveData||Bt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Fe(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:s,download:i}=ue(n,A);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=Y(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;if(a||o.reload){Ze({url:r,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=r.href.split("#");if(d!==void 0&&l===ce(location)){const[,g]=y.url.href.split("#");if(g===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(D=!0,we(w),e(r),!o.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(te(s,A))return;const i=t.target,o=Y(i);if(o.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=r?.getAttribute("name");l&&c.append(l,r?.getAttribute("value")??""),s.search=new URLSearchParams(c).toString(),K({type:"form",url:s,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??s.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[N]){const n=t.state[N];if(Q={},n===w)return;const r=T[n],a=t.state[De]??{},s=new URL(t.state[At]??location.href),i=t.state[F],o=ce(location)===ce(y.url);if(i===k&&(Be||o)){e(s),T[w]=_e(),r&&scrollTo(r.x,r.y),a!==S.state&&(S={...S,state:a},Ee.$set({page:S})),w=n;return}const l=n-w;await K({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Q})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,ye.call(history,{...history.state,[N]:++w,[F]:k},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&L.navigating.set(null)});function e(t){y.url=t,L.page.set({...S,url:t}),L.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:s,data:i,form:o}){ve=!0;const c=new URL(location.href);({params:a={},route:s={id:null}}=Ae(c,!1)||{});let l;try{const d=r.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=tt(p.uses)),ke({loader:$.nodes[f],url:c,params:a,route:s,parent:async()=>{const R={};for(let E=0;E<h;E+=1)Object.assign(R,(await d[E]).data);return R},server_data_node:Se(p)})}),g=await Promise.all(d),u=re.find(({id:f})=>f===s.id);if(u){const f=u.layouts;for(let h=0;h<f.length;h++)f[h]||g.splice(h,0,void 0)}l=await ee({url:c,params:a,branch:g,status:t,error:n,form:o,route:u??null})}catch(d){if(d instanceof Ge){await j(new URL(d.location,location.href));return}l=await ae({status:J(d),error:await M(d,{url:c,params:a,route:s}),url:c,route:s})}l.props.page&&(l.props.page.state={}),Je(l,e)}async function et(e,t){const n=new URL(e);n.pathname=dt(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Dt,"1"),n.searchParams.append($t,t.map(a=>a?"1":"0").join(""));const r=await Ne(n.href);if(!r.ok){let a;throw r.headers.get("content-type")?.includes("application/json")?a=await r.json():r.status===404?a="Not Found":r.status===500&&(a="Internal Error"),new ne(r.status,a)}return new Promise(async a=>{const s=new Map,i=r.body.getReader(),o=new TextDecoder;function c(d){return Nt(d,{Promise:g=>new Promise((u,f)=>{s.set(g,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:g}=await i.read();if(d&&!l)break;for(l+=!g&&l?`
|
| 2 |
+
`:o.decode(g,{stream:!0});;){const u=l.indexOf(`
|
| 3 |
+
`);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return a(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=tt(h.uses),h.data=c(h.data))}),a(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=s.get(h);s.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function tt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Jt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function nt(e,t,n,r){let a,s;const i=new Promise((c,l)=>{a=c,s=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}export{Xt as a,L as s};
|
build/client/_app/immutable/entry/app.puY0pAKV.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{s as B,a as U,o as q,b as D,t as j}from"../chunks/scheduler.YAOc3RFa.js";import{S as z,i as M,a as W,r as d,g as F,k as b,u as p,v as P,w as g,f as w,e as G,c as H,b as J,j as A,x as h,t as K,m as Q,n as X,y as L,z as k,A as v,B as I,C as E,D as y}from"../chunks/index.YaTsDjJO.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},N={},R=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in N)return;N[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let u=c.length-1;u>=0;u--){const m=c[u];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((u,m)=>{o.addEventListener("load",u),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&I(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;p(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&w(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&I(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;p(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&w(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&I(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){L();const l=e;p(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){t&&w(n),a[10](null),e&&y(e,t)}}}function O(a){let e,n=a[6]&&S(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=J(e);n&&n.l(s),s.forEach(w),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),h(e,"position","absolute"),h(e,"left","0"),h(e,"top","0"),h(e,"clip","rect(0 0 0 0)"),h(e,"clip-path","inset(50%)"),h(e,"overflow","hidden"),h(e,"white-space","nowrap"),h(e,"width","1px"),h(e,"height","1px")},m(i,s){b(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=S(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&w(e),n&&n.d()}}}function S(a){let e;return{c(){e=K(a[7])},l(n){e=Q(n,a[7])},m(n,i){b(n,e,i)},p(n,i){i&128&&X(e,n[7])},d(n){n&&w(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,u){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let _=a[5]&&O(a);return{c(){n.c(),i=W(),_&&_.c(),s=d()},l(o){n.l(o),i=F(o),_&&_.l(o),s=d()},m(o,u){r[e].m(o,u),b(o,i,u),_&&_.m(o,u),b(o,s,u),c=!0},p(o,[u]){let m=e;e=l(o),e===m?r[e].p(o,u):(L(),p(r[m],1,1,()=>{r[m]=null}),P(),n=r[e],n?n.p(o,u):(n=r[e]=t[e](o),n.c()),g(n,1),n.m(i.parentNode,i)),o[5]?_?_.p(o,u):(_=O(o),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null)},i(o){c||(g(n),c=!0)},o(o){p(n),c=!1},d(o){o&&(w(i),w(s)),r[e].d(o),_&&_.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:_=null}=e;U(i.page.notify);let o=!1,u=!1,m=null;q(()=>{const f=i.page.subscribe(()=>{o&&(n(6,u=!0),j().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function T(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function V(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function C(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,_=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,_,o,u,m,i,s,T,V,C]}class oe extends z{constructor(e){super(),M(this,e,ne,te,B,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>R(()=>import("../nodes/0.v59Tj1BY.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>R(()=>import("../nodes/1.ksnB_OTm.js"),__vite__mapDeps([4,1,2,5]),import.meta.url),()=>R(()=>import("../nodes/2.uZCWA2bl.js"),__vite__mapDeps([6,1,2,7,8]),import.meta.url),()=>R(()=>import("../nodes/3.myy2411H.js"),__vite__mapDeps([9,1,2,7,10]),import.meta.url),()=>R(()=>import("../nodes/4.RlacoBBv.js"),__vite__mapDeps([11,1,2,7,8]),import.meta.url)],le=[],fe={"/":[2],"/chat":[3],"/recognition":[4]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
|
| 2 |
+
function __vite__mapDeps(indexes) {
|
| 3 |
+
if (!__vite__mapDeps.viteFileDeps) {
|
| 4 |
+
__vite__mapDeps.viteFileDeps = ["../nodes/0.v59Tj1BY.js","../chunks/scheduler.YAOc3RFa.js","../chunks/index.YaTsDjJO.js","../assets/0.X-S7iW2B.css","../nodes/1.ksnB_OTm.js","../chunks/entry.OGBLgOl5.js","../nodes/2.uZCWA2bl.js","../chunks/each.-oqiv04n.js","../chunks/LoadingSpinner.lpyOX3pg.js","../nodes/3.myy2411H.js","../assets/3.IbYo8nT0.css","../nodes/4.RlacoBBv.js"]
|
| 5 |
+
}
|
| 6 |
+
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
| 7 |
+
}
|
build/client/_app/immutable/entry/start.X-pmad89.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{a as t}from"../chunks/entry.OGBLgOl5.js";export{t as start};
|
build/client/_app/immutable/nodes/1.ksnB_OTm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{s as E,n as b,c as S}from"../chunks/scheduler.YAOc3RFa.js";import{S as x,i as k,e as _,t as f,a as q,c as g,b as d,m as h,f as p,g as y,k as u,l as v,n as $}from"../chunks/index.YaTsDjJO.js";import{s as C}from"../chunks/entry.OGBLgOl5.js";const H=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},P={subscribe(s){return H().page.subscribe(s)}};function j(s){let t,r=s[0].status+"",n,o,i,c=s[0].error?.message+"",l;return{c(){t=_("h1"),n=f(r),o=q(),i=_("p"),l=f(c)},l(e){t=g(e,"H1",{});var a=d(t);n=h(a,r),a.forEach(p),o=y(e),i=g(e,"P",{});var m=d(i);l=h(m,c),m.forEach(p)},m(e,a){u(e,t,a),v(t,n),u(e,o,a),u(e,i,a),v(i,l)},p(e,[a]){a&1&&r!==(r=e[0].status+"")&&$(n,r),a&1&&c!==(c=e[0].error?.message+"")&&$(l,c)},i:b,o:b,d(e){e&&(p(t),p(o),p(i))}}}function w(s,t,r){let n;return S(s,P,o=>r(0,n=o)),[n]}let D=class extends x{constructor(t){super(),k(this,t,w,j,E,{})}};export{D as component};
|
build/client/_app/immutable/nodes/4.RlacoBBv.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{s as ae,n as O,o as ye}from"../chunks/scheduler.YAOc3RFa.js";import{S as oe,i as de,e as y,c as F,h as M,j as w,k as x,f as v,A as ue,a as E,b,B as he,g as k,l as f,C as pe,w as U,u as I,v as Fe,D as ce,q as me,y as we,t as Q,H as K,m as W,E as Z,n as be}from"../chunks/index.YaTsDjJO.js";import{e as N}from"../chunks/each.-oqiv04n.js";import{L as Ee}from"../chunks/LoadingSpinner.lpyOX3pg.js";var J=fe;function fe(){var l=[].slice.call(arguments),e=!1;typeof l[0]=="boolean"&&(e=l.shift());var i=l[0];if($(i))throw new Error("extendee must be an object");for(var t=l.slice(1),s=t.length,n=0;n<s;n++){var r=t[n];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var o=r[a];if(e&&ke(o)){var u=Array.isArray(o)?[]:{};i[a]=fe(!0,Object.prototype.hasOwnProperty.call(i,a)&&!$(i[a])?i[a]:u,o)}else i[a]=o}}return i}function ke(l){return Array.isArray(l)||{}.toString.call(l)=="[object Object]"}function $(l){return!l||typeof l!="object"&&typeof l!="function"}function Ce(l){return l&&l.__esModule?l.default:l}class ee{on(e,i){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(i),this}emit(e,...i){this._callbacks=this._callbacks||{};let t=this._callbacks[e];if(t)for(let s of t)s.apply(this,i);return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+e,{args:i})),this}makeEvent(e,i){let t={bubbles:!0,cancelable:!0,detail:i};if(typeof window.CustomEvent=="function")return new CustomEvent(e,t);var s=document.createEvent("CustomEvent");return s.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),s}off(e,i){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;let t=this._callbacks[e];if(!t)return this;if(arguments.length===1)return delete this._callbacks[e],this;for(let s=0;s<t.length;s++)if(t[s]===i){t.splice(s,1);break}return this}}var ge={};ge=`<div class="dz-preview dz-file-preview">
|
| 2 |
+
<div class="dz-image"><img data-dz-thumbnail=""></div>
|
| 3 |
+
<div class="dz-details">
|
| 4 |
+
<div class="dz-size"><span data-dz-size=""></span></div>
|
| 5 |
+
<div class="dz-filename"><span data-dz-name=""></span></div>
|
| 6 |
+
</div>
|
| 7 |
+
<div class="dz-progress">
|
| 8 |
+
<span class="dz-upload" data-dz-uploadprogress=""></span>
|
| 9 |
+
</div>
|
| 10 |
+
<div class="dz-error-message"><span data-dz-errormessage=""></span></div>
|
| 11 |
+
<div class="dz-success-mark">
|
| 12 |
+
<svg width="54" height="54" viewBox="0 0 54 54" fill="white" xmlns="http://www.w3.org/2000/svg">
|
| 13 |
+
<path d="M10.2071 29.7929L14.2929 25.7071C14.6834 25.3166 15.3166 25.3166 15.7071 25.7071L21.2929 31.2929C21.6834 31.6834 22.3166 31.6834 22.7071 31.2929L38.2929 15.7071C38.6834 15.3166 39.3166 15.3166 39.7071 15.7071L43.7929 19.7929C44.1834 20.1834 44.1834 20.8166 43.7929 21.2071L22.7071 42.2929C22.3166 42.6834 21.6834 42.6834 21.2929 42.2929L10.2071 31.2071C9.81658 30.8166 9.81658 30.1834 10.2071 29.7929Z"></path>
|
| 14 |
+
</svg>
|
| 15 |
+
</div>
|
| 16 |
+
<div class="dz-error-mark">
|
| 17 |
+
<svg width="54" height="54" viewBox="0 0 54 54" fill="white" xmlns="http://www.w3.org/2000/svg">
|
| 18 |
+
<path d="M26.2929 20.2929L19.2071 13.2071C18.8166 12.8166 18.1834 12.8166 17.7929 13.2071L13.2071 17.7929C12.8166 18.1834 12.8166 18.8166 13.2071 19.2071L20.2929 26.2929C20.6834 26.6834 20.6834 27.3166 20.2929 27.7071L13.2071 34.7929C12.8166 35.1834 12.8166 35.8166 13.2071 36.2071L17.7929 40.7929C18.1834 41.1834 18.8166 41.1834 19.2071 40.7929L26.2929 33.7071C26.6834 33.3166 27.3166 33.3166 27.7071 33.7071L34.7929 40.7929C35.1834 41.1834 35.8166 41.1834 36.2071 40.7929L40.7929 36.2071C41.1834 35.8166 41.1834 35.1834 40.7929 34.7929L33.7071 27.7071C33.3166 27.3166 33.3166 26.6834 33.7071 26.2929L40.7929 19.2071C41.1834 18.8166 41.1834 18.1834 40.7929 17.7929L36.2071 13.2071C35.8166 12.8166 35.1834 12.8166 34.7929 13.2071L27.7071 20.2929C27.3166 20.6834 26.6834 20.6834 26.2929 20.2929Z"></path>
|
| 19 |
+
</svg>
|
| 20 |
+
</div>
|
| 21 |
+
</div>
|
| 22 |
+
`;let ze={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2097152,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,defaultHeaders:!0,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init(){},params(l,e,i){if(i)return{dzuuid:i.file.upload.uuid,dzchunkindex:i.index,dztotalfilesize:i.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:i.file.upload.totalChunkCount,dzchunkbyteoffset:i.index*this.options.chunkSize}},accept(l,e){return e()},chunksUploaded:function(l,e){e()},binaryBody:!1,fallback(){let l;this.element.className=`${this.element.className} dz-browser-not-supported`;for(let i of this.element.getElementsByTagName("div"))if(/(^| )dz-message($| )/.test(i.className)){l=i,i.className="dz-message";break}l||(l=d.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(l));let e=l.getElementsByTagName("span")[0];return e&&(e.textContent!=null?e.textContent=this.options.dictFallbackMessage:e.innerText!=null&&(e.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize(l,e,i,t){let s={srcX:0,srcY:0,srcWidth:l.width,srcHeight:l.height},n=l.width/l.height;e==null&&i==null?(e=s.srcWidth,i=s.srcHeight):e==null?e=i*n:i==null&&(i=e/n),e=Math.min(e,s.srcWidth),i=Math.min(i,s.srcHeight);let r=e/i;if(s.srcWidth>e||s.srcHeight>i)if(t==="crop")n>r?(s.srcHeight=l.height,s.srcWidth=s.srcHeight*r):(s.srcWidth=l.width,s.srcHeight=s.srcWidth/r);else if(t==="contain")n>r?i=e/n:e=i*n;else throw new Error(`Unknown resizeMethod '${t}'`);return s.srcX=(l.width-s.srcWidth)/2,s.srcY=(l.height-s.srcHeight)/2,s.trgWidth=e,s.trgHeight=i,s},transformFile(l,e){return(this.options.resizeWidth||this.options.resizeHeight)&&l.type.match(/image.*/)?this.resizeImage(l,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(l)},previewTemplate:Ce(ge),drop(l){return this.element.classList.remove("dz-drag-hover")},dragstart(l){},dragend(l){return this.element.classList.remove("dz-drag-hover")},dragenter(l){return this.element.classList.add("dz-drag-hover")},dragover(l){return this.element.classList.add("dz-drag-hover")},dragleave(l){return this.element.classList.remove("dz-drag-hover")},paste(l){},reset(){return this.element.classList.remove("dz-started")},addedfile(l){if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){l.previewElement=d.createElement(this.options.previewTemplate.trim()),l.previewTemplate=l.previewElement,this.previewsContainer.appendChild(l.previewElement);for(var e of l.previewElement.querySelectorAll("[data-dz-name]"))e.textContent=l.name;for(e of l.previewElement.querySelectorAll("[data-dz-size]"))e.innerHTML=this.filesize(l.size);this.options.addRemoveLinks&&(l._removeLink=d.createElement(`<a class="dz-remove" href="javascript:undefined;" data-dz-remove>${this.options.dictRemoveFile}</a>`),l.previewElement.appendChild(l._removeLink));let i=t=>(t.preventDefault(),t.stopPropagation(),l.status===d.UPLOADING?d.confirm(this.options.dictCancelUploadConfirmation,()=>this.removeFile(l)):this.options.dictRemoveFileConfirmation?d.confirm(this.options.dictRemoveFileConfirmation,()=>this.removeFile(l)):this.removeFile(l));for(let t of l.previewElement.querySelectorAll("[data-dz-remove]"))t.addEventListener("click",i)}},removedfile(l){return l.previewElement!=null&&l.previewElement.parentNode!=null&&l.previewElement.parentNode.removeChild(l.previewElement),this._updateMaxFilesReachedClass()},thumbnail(l,e){if(l.previewElement){l.previewElement.classList.remove("dz-file-preview");for(let i of l.previewElement.querySelectorAll("[data-dz-thumbnail]"))i.alt=l.name,i.src=e;return setTimeout(()=>l.previewElement.classList.add("dz-image-preview"),1)}},error(l,e){if(l.previewElement){l.previewElement.classList.add("dz-error"),typeof e!="string"&&e.error&&(e=e.error);for(let i of l.previewElement.querySelectorAll("[data-dz-errormessage]"))i.textContent=e}},errormultiple(){},processing(l){if(l.previewElement&&(l.previewElement.classList.add("dz-processing"),l._removeLink))return l._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple(){},uploadprogress(l,e,i){if(l.previewElement)for(let t of l.previewElement.querySelectorAll("[data-dz-uploadprogress]"))t.nodeName==="PROGRESS"?t.value=e:t.style.width=`${e}%`},totaluploadprogress(){},sending(){},sendingmultiple(){},success(l){if(l.previewElement)return l.previewElement.classList.add("dz-success")},successmultiple(){},canceled(l){return this.emit("error",l,this.options.dictUploadCanceled)},canceledmultiple(){},complete(l){if(l._removeLink&&(l._removeLink.innerHTML=this.options.dictRemoveFile),l.previewElement)return l.previewElement.classList.add("dz-complete")},completemultiple(){},maxfilesexceeded(){},maxfilesreached(){},queuecomplete(){},addedfiles(){}};var xe=ze;class d extends ee{static initClass(){this.prototype.Emitter=ee,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}getAcceptedFiles(){return this.files.filter(e=>e.accepted).map(e=>e)}getRejectedFiles(){return this.files.filter(e=>!e.accepted).map(e=>e)}getFilesWithStatus(e){return this.files.filter(i=>i.status===e).map(i=>i)}getQueuedFiles(){return this.getFilesWithStatus(d.QUEUED)}getUploadingFiles(){return this.getFilesWithStatus(d.UPLOADING)}getAddedFiles(){return this.getFilesWithStatus(d.ADDED)}getActiveFiles(){return this.files.filter(e=>e.status===d.UPLOADING||e.status===d.QUEUED).map(e=>e)}init(){if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(d.createElement(`<div class="dz-default dz-message"><button class="dz-button" type="button">${this.options.dictDefaultMessage}</button></div>`)),this.clickableElements.length){let t=()=>{this.hiddenFileInput&&this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=document.createElement("input"),this.hiddenFileInput.setAttribute("type","file"),(this.options.maxFiles===null||this.options.maxFiles>1)&&this.hiddenFileInput.setAttribute("multiple","multiple"),this.hiddenFileInput.className="dz-hidden-input",this.options.acceptedFiles!==null&&this.hiddenFileInput.setAttribute("accept",this.options.acceptedFiles),this.options.capture!==null&&this.hiddenFileInput.setAttribute("capture",this.options.capture),this.hiddenFileInput.setAttribute("tabindex","-1"),this.hiddenFileInput.style.visibility="hidden",this.hiddenFileInput.style.position="absolute",this.hiddenFileInput.style.top="0",this.hiddenFileInput.style.left="0",this.hiddenFileInput.style.height="0",this.hiddenFileInput.style.width="0",d.getElement(this.options.hiddenInputContainer,"hiddenInputContainer").appendChild(this.hiddenFileInput),this.hiddenFileInput.addEventListener("change",()=>{let{files:s}=this.hiddenFileInput;if(s.length)for(let n of s)this.addFile(n);this.emit("addedfiles",s),t()})};t()}this.URL=window.URL!==null?window.URL:window.webkitURL;for(let t of this.events)this.on(t,this.options[t]);this.on("uploadprogress",()=>this.updateTotalUploadProgress()),this.on("removedfile",()=>this.updateTotalUploadProgress()),this.on("canceled",t=>this.emit("complete",t)),this.on("complete",t=>{if(this.getAddedFiles().length===0&&this.getUploadingFiles().length===0&&this.getQueuedFiles().length===0)return setTimeout(()=>this.emit("queuecomplete"),0)});const e=function(t){if(t.dataTransfer.types){for(var s=0;s<t.dataTransfer.types.length;s++)if(t.dataTransfer.types[s]==="Files")return!0}return!1};let i=function(t){if(e(t))return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:t=>this.emit("dragstart",t),dragenter:t=>(i(t),this.emit("dragenter",t)),dragover:t=>{let s;try{s=t.dataTransfer.effectAllowed}catch{}return t.dataTransfer.dropEffect=s==="move"||s==="linkMove"?"move":"copy",i(t),this.emit("dragover",t)},dragleave:t=>this.emit("dragleave",t),drop:t=>(i(t),this.drop(t)),dragend:t=>this.emit("dragend",t)}}],this.clickableElements.forEach(t=>this.listeners.push({element:t,events:{click:s=>((t!==this.element||s.target===this.element||d.elementInside(s.target,this.element.querySelector(".dz-message")))&&this.hiddenFileInput.click(),!0)}})),this.enable(),this.options.init.call(this)}destroy(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,d.instances.splice(d.instances.indexOf(this),1)}updateTotalUploadProgress(){let e,i=0,t=0;if(this.getActiveFiles().length){for(let n of this.getActiveFiles())i+=n.upload.bytesSent,t+=n.upload.total;e=100*i/t}else e=100;return this.emit("totaluploadprogress",e,t,i)}_getParamName(e){return typeof this.options.paramName=="function"?this.options.paramName(e):`${this.options.paramName}${this.options.uploadMultiple?`[${e}]`:""}`}_renameFile(e){return typeof this.options.renameFile!="function"?e.name:this.options.renameFile(e)}getFallbackForm(){let e,i;if(e=this.getExistingFallback())return e;let t='<div class="dz-fallback">';this.options.dictFallbackText&&(t+=`<p>${this.options.dictFallbackText}</p>`),t+=`<input type="file" name="${this._getParamName(0)}" ${this.options.uploadMultiple?'multiple="multiple"':void 0} /><input type="submit" value="Upload!"></div>`;let s=d.createElement(t);return this.element.tagName!=="FORM"?(i=d.createElement(`<form action="${this.options.url}" enctype="multipart/form-data" method="${this.options.method}"></form>`),i.appendChild(s)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),i??s}getExistingFallback(){let e=function(t){for(let s of t)if(/(^| )fallback($| )/.test(s.className))return s};for(let t of["div","form"]){var i;if(i=e(this.element.getElementsByTagName(t)))return i}}setupEventListeners(){return this.listeners.map(e=>(()=>{let i=[];for(let t in e.events){let s=e.events[t];i.push(e.element.addEventListener(t,s,!1))}return i})())}removeEventListeners(){return this.listeners.map(e=>(()=>{let i=[];for(let t in e.events){let s=e.events[t];i.push(e.element.removeEventListener(t,s,!1))}return i})())}disable(){return this.clickableElements.forEach(e=>e.classList.remove("dz-clickable")),this.removeEventListeners(),this.disabled=!0,this.files.map(e=>this.cancelUpload(e))}enable(){return delete this.disabled,this.clickableElements.forEach(e=>e.classList.add("dz-clickable")),this.setupEventListeners()}filesize(e){let i=0,t="b";if(e>0){let s=["tb","gb","mb","kb","b"];for(let n=0;n<s.length;n++){let r=s[n],a=Math.pow(this.options.filesizeBase,4-n)/10;if(e>=a){i=e/Math.pow(this.options.filesizeBase,4-n),t=r;break}}i=Math.round(10*i)/10}return`<strong>${i}</strong> ${this.options.dictFileSizeUnits[t]}`}_updateMaxFilesReachedClass(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}drop(e){if(!e.dataTransfer)return;this.emit("drop",e);let i=[];for(let t=0;t<e.dataTransfer.files.length;t++)i[t]=e.dataTransfer.files[t];if(i.length){let{items:t}=e.dataTransfer;t&&t.length&&t[0].webkitGetAsEntry!=null?this._addFilesFromItems(t):this.handleFiles(i)}this.emit("addedfiles",i)}paste(e){if(Ae(e?.clipboardData,t=>t.items)==null)return;this.emit("paste",e);let{items:i}=e.clipboardData;if(i.length)return this._addFilesFromItems(i)}handleFiles(e){for(let i of e)this.addFile(i)}_addFilesFromItems(e){return(()=>{let i=[];for(let s of e){var t;s.webkitGetAsEntry!=null&&(t=s.webkitGetAsEntry())?t.isFile?i.push(this.addFile(s.getAsFile())):t.isDirectory?i.push(this._addFilesFromDirectory(t,t.name)):i.push(void 0):s.getAsFile!=null&&(s.kind==null||s.kind==="file")?i.push(this.addFile(s.getAsFile())):i.push(void 0)}return i})()}_addFilesFromDirectory(e,i){let t=e.createReader(),s=r=>Ue(console,"log",a=>a.log(r));var n=()=>t.readEntries(r=>{if(r.length>0){for(let a of r)a.isFile?a.file(o=>{if(!(this.options.ignoreHiddenFiles&&o.name.substring(0,1)==="."))return o.fullPath=`${i}/${o.name}`,this.addFile(o)}):a.isDirectory&&this._addFilesFromDirectory(a,`${i}/${a.name}`);n()}return null},s);return n()}accept(e,i){this.options.maxFilesize&&e.size>this.options.maxFilesize*1048576?i(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):d.isValidFile(e,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(i(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,i):i(this.options.dictInvalidFileType)}addFile(e){e.upload={uuid:d.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=d.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,i=>{i?(e.accepted=!1,this._errorProcessing([e],i)):(e.accepted=!0,this.options.autoQueue&&this.enqueueFile(e)),this._updateMaxFilesReachedClass()})}enqueueFiles(e){for(let i of e)this.enqueueFile(i);return null}enqueueFile(e){if(e.status===d.ADDED&&e.accepted===!0){if(e.status=d.QUEUED,this.options.autoProcessQueue)return setTimeout(()=>this.processQueue(),0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}_enqueueThumbnail(e){if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=this.options.maxThumbnailFilesize*1048576)return this._thumbnailQueue.push(e),setTimeout(()=>this._processThumbnailQueue(),0)}_processThumbnailQueue(){if(this._processingThumbnail||this._thumbnailQueue.length===0)return;this._processingThumbnail=!0;let e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,i=>(this.emit("thumbnail",e,i),this._processingThumbnail=!1,this._processThumbnailQueue()))}removeFile(e){if(e.status===d.UPLOADING&&this.cancelUpload(e),this.files=_e(this.files,e),this.emit("removedfile",e),this.files.length===0)return this.emit("reset")}removeAllFiles(e){e==null&&(e=!1);for(let i of this.files.slice())(i.status!==d.UPLOADING||e)&&this.removeFile(i);return null}resizeImage(e,i,t,s,n){return this.createThumbnail(e,i,t,s,!0,(r,a)=>{if(a==null)return n(e);{let{resizeMimeType:o}=this.options;o==null&&(o=e.type);let u=a.toDataURL(o,this.options.resizeQuality);return(o==="image/jpeg"||o==="image/jpg")&&(u=ve.restore(e.dataURL,u)),n(d.dataURItoBlob(u))}})}createThumbnail(e,i,t,s,n,r){let a=new FileReader;a.onload=()=>{if(e.dataURL=a.result,e.type==="image/svg+xml"){r?.(a.result);return}this.createThumbnailFromUrl(e,i,t,s,n,r)},a.readAsDataURL(e)}displayExistingFile(e,i,t,s,n=!0){if(this.emit("addedfile",e),this.emit("complete",e),!n)this.emit("thumbnail",e,i),t&&t();else{let r=a=>{this.emit("thumbnail",e,a),t&&t()};e.dataURL=i,this.createThumbnailFromUrl(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,r,s)}}createThumbnailFromUrl(e,i,t,s,n,r,a){let o=document.createElement("img");return a&&(o.crossOrigin=a),n=getComputedStyle(document.body).imageOrientation=="from-image"?!1:n,o.onload=()=>{let u=h=>h(1);return typeof EXIF<"u"&&EXIF!==null&&n&&(u=h=>EXIF.getData(o,function(){return h(EXIF.getTag(this,"Orientation"))})),u(h=>{e.width=o.width,e.height=o.height;let p=this.options.resize.call(this,e,i,t,s),c=document.createElement("canvas"),m=c.getContext("2d");switch(c.width=p.trgWidth,c.height=p.trgHeight,h>4&&(c.width=p.trgHeight,c.height=p.trgWidth),h){case 2:m.translate(c.width,0),m.scale(-1,1);break;case 3:m.translate(c.width,c.height),m.rotate(Math.PI);break;case 4:m.translate(0,c.height),m.scale(1,-1);break;case 5:m.rotate(.5*Math.PI),m.scale(1,-1);break;case 6:m.rotate(.5*Math.PI),m.translate(0,-c.width);break;case 7:m.rotate(.5*Math.PI),m.translate(c.height,-c.width),m.scale(-1,1);break;case 8:m.rotate(-.5*Math.PI),m.translate(-c.height,0);break}Te(m,o,p.srcX!=null?p.srcX:0,p.srcY!=null?p.srcY:0,p.srcWidth,p.srcHeight,p.trgX!=null?p.trgX:0,p.trgY!=null?p.trgY:0,p.trgWidth,p.trgHeight);let C=c.toDataURL("image/png");if(r!=null)return r(C,c)})},r!=null&&(o.onerror=r),o.src=e.dataURL}processQueue(){let{parallelUploads:e}=this.options,i=this.getUploadingFiles().length,t=i;if(i>=e)return;let s=this.getQueuedFiles();if(s.length>0){if(this.options.uploadMultiple)return this.processFiles(s.slice(0,e-i));for(;t<e;){if(!s.length)return;this.processFile(s.shift()),t++}}}processFile(e){return this.processFiles([e])}processFiles(e){for(let i of e)i.processing=!0,i.status=d.UPLOADING,this.emit("processing",i);return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}_getFilesWithXhr(e){return this.files.filter(i=>i.xhr===e).map(i=>i)}cancelUpload(e){if(e.status===d.UPLOADING){let i=this._getFilesWithXhr(e.xhr);for(let t of i)t.status=d.CANCELED;typeof e.xhr<"u"&&e.xhr.abort();for(let t of i)this.emit("canceled",t);this.options.uploadMultiple&&this.emit("canceledmultiple",i)}else(e.status===d.ADDED||e.status===d.QUEUED)&&(e.status=d.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}resolveOption(e,...i){return typeof e=="function"?e.apply(this,i):e}uploadFile(e){return this.uploadFiles([e])}uploadFiles(e){this._transformFiles(e,i=>{if(this.options.chunking){let t=i[0];e[0].upload.chunked=this.options.chunking&&(this.options.forceChunking||t.size>this.options.chunkSize),e[0].upload.totalChunkCount=Math.ceil(t.size/this.options.chunkSize)}if(e[0].upload.chunked){let t=e[0],s=i[0];t.upload.chunks=[];let n=()=>{let r=0;for(;t.upload.chunks[r]!==void 0;)r++;if(r>=t.upload.totalChunkCount)return;let a=r*this.options.chunkSize,o=Math.min(a+this.options.chunkSize,s.size),u={name:this._getParamName(0),data:s.webkitSlice?s.webkitSlice(a,o):s.slice(a,o),filename:t.upload.filename,chunkIndex:r};t.upload.chunks[r]={file:t,index:r,dataBlock:u,status:d.UPLOADING,progress:0,retries:0},this._uploadData(e,[u])};if(t.upload.finishedChunkUpload=(r,a)=>{let o=!0;r.status=d.SUCCESS,r.dataBlock=null,r.response=r.xhr.responseText,r.responseHeaders=r.xhr.getAllResponseHeaders(),r.xhr=null;for(let u=0;u<t.upload.totalChunkCount;u++){if(t.upload.chunks[u]===void 0)return n();t.upload.chunks[u].status!==d.SUCCESS&&(o=!1)}o&&this.options.chunksUploaded(t,()=>{this._finished(e,a,null)})},this.options.parallelChunkUploads)for(let r=0;r<t.upload.totalChunkCount;r++)n();else n()}else{let t=[];for(let s=0;s<e.length;s++)t[s]={name:this._getParamName(s),data:i[s],filename:e[s].upload.filename};this._uploadData(e,t)}})}_getChunk(e,i){for(let t=0;t<e.upload.totalChunkCount;t++)if(e.upload.chunks[t]!==void 0&&e.upload.chunks[t].xhr===i)return e.upload.chunks[t]}_uploadData(e,i){let t=new XMLHttpRequest;for(let u of e)u.xhr=t;e[0].upload.chunked&&(e[0].upload.chunks[i[0].chunkIndex].xhr=t);let s=this.resolveOption(this.options.method,e,i),n=this.resolveOption(this.options.url,e,i);t.open(s,n,!0),this.resolveOption(this.options.timeout,e)&&(t.timeout=this.resolveOption(this.options.timeout,e)),t.withCredentials=!!this.options.withCredentials,t.onload=u=>{this._finishedUploading(e,t,u)},t.ontimeout=()=>{this._handleUploadError(e,t,`Request timedout after ${this.options.timeout/1e3} seconds`)},t.onerror=()=>{this._handleUploadError(e,t)};let a=t.upload!=null?t.upload:t;a.onprogress=u=>this._updateFilesUploadProgress(e,t,u);let o=this.options.defaultHeaders?{Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}:{};this.options.binaryBody&&(o["Content-Type"]=e[0].type),this.options.headers&&J(o,this.options.headers);for(let u in o){let h=o[u];h&&t.setRequestHeader(u,h)}if(this.options.binaryBody){for(let u of e)this.emit("sending",u,t);this.options.uploadMultiple&&this.emit("sendingmultiple",e,t),this.submitRequest(t,null,e)}else{let u=new FormData;if(this.options.params){let h=this.options.params;typeof h=="function"&&(h=h.call(this,e,t,e[0].upload.chunked?this._getChunk(e[0],t):null));for(let p in h){let c=h[p];if(Array.isArray(c))for(let m=0;m<c.length;m++)u.append(p,c[m]);else u.append(p,c)}}for(let h of e)this.emit("sending",h,t,u);this.options.uploadMultiple&&this.emit("sendingmultiple",e,t,u),this._addFormElementData(u);for(let h=0;h<i.length;h++){let p=i[h];u.append(p.name,p.data,p.filename)}this.submitRequest(t,u,e)}}_transformFiles(e,i){let t=[],s=0;for(let n=0;n<e.length;n++)this.options.transformFile.call(this,e[n],r=>{t[n]=r,++s===e.length&&i(t)})}_addFormElementData(e){if(this.element.tagName==="FORM")for(let i of this.element.querySelectorAll("input, textarea, select, button")){let t=i.getAttribute("name"),s=i.getAttribute("type");if(s&&(s=s.toLowerCase()),!(typeof t>"u"||t===null))if(i.tagName==="SELECT"&&i.hasAttribute("multiple"))for(let n of i.options)n.selected&&e.append(t,n.value);else(!s||s!=="checkbox"&&s!=="radio"||i.checked)&&e.append(t,i.value)}}_updateFilesUploadProgress(e,i,t){if(e[0].upload.chunked){let s=e[0],n=this._getChunk(s,i);t?(n.progress=100*t.loaded/t.total,n.total=t.total,n.bytesSent=t.loaded):(n.progress=100,n.bytesSent=n.total),s.upload.progress=0,s.upload.total=0,s.upload.bytesSent=0;for(let r=0;r<s.upload.totalChunkCount;r++)s.upload.chunks[r]&&typeof s.upload.chunks[r].progress<"u"&&(s.upload.progress+=s.upload.chunks[r].progress,s.upload.total+=s.upload.chunks[r].total,s.upload.bytesSent+=s.upload.chunks[r].bytesSent);s.upload.progress=s.upload.progress/s.upload.totalChunkCount,this.emit("uploadprogress",s,s.upload.progress,s.upload.bytesSent)}else for(let s of e)s.upload.total&&s.upload.bytesSent&&s.upload.bytesSent==s.upload.total||(t?(s.upload.progress=100*t.loaded/t.total,s.upload.total=t.total,s.upload.bytesSent=t.loaded):(s.upload.progress=100,s.upload.bytesSent=s.upload.total),this.emit("uploadprogress",s,s.upload.progress,s.upload.bytesSent))}_finishedUploading(e,i,t){let s;if(e[0].status!==d.CANCELED&&i.readyState===4){if(i.responseType!=="arraybuffer"&&i.responseType!=="blob"&&(s=i.responseText,i.getResponseHeader("content-type")&&~i.getResponseHeader("content-type").indexOf("application/json")))try{s=JSON.parse(s)}catch(n){t=n,s="Invalid JSON response from server."}this._updateFilesUploadProgress(e,i),200<=i.status&&i.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],i),s):this._finished(e,s,t):this._handleUploadError(e,i,s)}}_handleUploadError(e,i,t){if(e[0].status!==d.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){let s=this._getChunk(e[0],i);if(s.retries++<this.options.retryChunksLimit){this._uploadData(e,[s.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(e,t||this.options.dictResponseError.replace("{{statusCode}}",i.status),i)}}submitRequest(e,i,t){if(e.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}if(this.options.binaryBody)if(t[0].upload.chunked){const s=this._getChunk(t[0],e);e.send(s.dataBlock.data)}else e.send(t[0]);else e.send(i)}_finished(e,i,t){for(let s of e)s.status=d.SUCCESS,this.emit("success",s,i,t),this.emit("complete",s);if(this.options.uploadMultiple&&(this.emit("successmultiple",e,i,t),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}_errorProcessing(e,i,t){for(let s of e)s.status=d.ERROR,this.emit("error",s,i,t),this.emit("complete",s);if(this.options.uploadMultiple&&(this.emit("errormultiple",e,i,t),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}static uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let i=Math.random()*16|0;return(e==="x"?i:i&3|8).toString(16)})}constructor(e,i){super();let t,s;if(this.element=e,this.clickableElements=[],this.listeners=[],this.files=[],typeof this.element=="string"&&(this.element=document.querySelector(this.element)),!this.element||this.element.nodeType==null)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");d.instances.push(this),this.element.dropzone=this;let n=(s=d.optionsForElement(this.element))!=null?s:{};if(this.options=J(!0,{},xe,n,i??{}),this.options.previewTemplate=this.options.previewTemplate.replace(/\n*/g,""),this.options.forceFallback||!d.isBrowserSupported())return this.options.fallback.call(this);if(this.options.url==null&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(this.options.uploadMultiple&&this.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");if(this.options.binaryBody&&this.options.uploadMultiple)throw new Error("You cannot set both: binaryBody and uploadMultiple.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes),this.options.renameFilename!=null&&(this.options.renameFile=r=>this.options.renameFilename.call(this,r.name,r)),typeof this.options.method=="string"&&(this.options.method=this.options.method.toUpperCase()),(t=this.getExistingFallback())&&t.parentNode&&t.parentNode.removeChild(t),this.options.previewsContainer!==!1&&(this.options.previewsContainer?this.previewsContainer=d.getElement(this.options.previewsContainer,"previewsContainer"):this.previewsContainer=this.element),this.options.clickable&&(this.options.clickable===!0?this.clickableElements=[this.element]:this.clickableElements=d.getElements(this.options.clickable,"clickable")),this.init()}}d.initClass();d.options={};d.optionsForElement=function(l){if(l.getAttribute("id"))return d.options[Se(l.getAttribute("id"))]};d.instances=[];d.forElement=function(l){if(typeof l=="string"&&(l=document.querySelector(l)),l?.dropzone==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return l.dropzone};d.discover=function(){let l;if(document.querySelectorAll)l=document.querySelectorAll(".dropzone");else{l=[];let e=i=>(()=>{let t=[];for(let s of i)/(^| )dropzone($| )/.test(s.className)?t.push(l.push(s)):t.push(void 0);return t})();e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return(()=>{let e=[];for(let i of l)d.optionsForElement(i)!==!1?e.push(new d(i)):e.push(void 0);return e})()};d.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i];d.isBrowserSupported=function(){let l=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))l=!1;else{d.blacklistedBrowsers!==void 0&&(d.blockedBrowsers=d.blacklistedBrowsers);for(let e of d.blockedBrowsers)if(e.test(navigator.userAgent)){l=!1;continue}}else l=!1;return l};d.dataURItoBlob=function(l){let e=atob(l.split(",")[1]),i=l.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(e.length),s=new Uint8Array(t);for(let n=0,r=e.length,a=0<=r;a?n<=r:n>=r;a?n++:n--)s[n]=e.charCodeAt(n);return new Blob([t],{type:i})};const _e=(l,e)=>l.filter(i=>i!==e).map(i=>i),Se=l=>l.replace(/[\-_](\w)/g,e=>e.charAt(1).toUpperCase());d.createElement=function(l){let e=document.createElement("div");return e.innerHTML=l,e.childNodes[0]};d.elementInside=function(l,e){if(l===e)return!0;for(;l=l.parentNode;)if(l===e)return!0;return!1};d.getElement=function(l,e){let i;if(typeof l=="string"?i=document.querySelector(l):l.nodeType!=null&&(i=l),i==null)throw new Error(`Invalid \`${e}\` option provided. Please provide a CSS selector or a plain HTML element.`);return i};d.getElements=function(l,e){let i,t;if(l instanceof Array){t=[];try{for(i of l)t.push(this.getElement(i,e))}catch{t=null}}else if(typeof l=="string"){t=[];for(i of document.querySelectorAll(l))t.push(i)}else l.nodeType!=null&&(t=[l]);if(t==null||!t.length)throw new Error(`Invalid \`${e}\` option provided. Please provide a CSS selector, a plain HTML element or a list of those.`);return t};d.confirm=function(l,e,i){if(window.confirm(l))return e();if(i!=null)return i()};d.isValidFile=function(l,e){if(!e)return!0;e=e.split(",");let i=l.type,t=i.replace(/\/.*$/,"");for(let s of e)if(s=s.trim(),s.charAt(0)==="."){if(l.name.toLowerCase().indexOf(s.toLowerCase(),l.name.length-s.length)!==-1)return!0}else if(/\/\*$/.test(s)){if(t===s.replace(/\/.*$/,""))return!0}else if(i===s)return!0;return!1};typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(l){return this.each(function(){return new d(this,l)})});d.ADDED="added";d.QUEUED="queued";d.ACCEPTED=d.QUEUED;d.UPLOADING="uploading";d.PROCESSING=d.UPLOADING;d.CANCELED="canceled";d.ERROR="error";d.SUCCESS="success";let Le=function(l){l.naturalWidth;let e=l.naturalHeight,i=document.createElement("canvas");i.width=1,i.height=e;let t=i.getContext("2d");t.drawImage(l,0,0);let{data:s}=t.getImageData(1,0,1,e),n=0,r=e,a=e;for(;a>n;)s[(a-1)*4+3]===0?r=a:n=a,a=r+n>>1;let o=a/e;return o===0?1:o};var Te=function(l,e,i,t,s,n,r,a,o,u){let h=Le(e);return l.drawImage(e,i,t,s,n,r,a,o,u/h)};class ve{static initClass(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}static encode64(e){let i="",t,s,n="",r,a,o,u="",h=0;for(;t=e[h++],s=e[h++],n=e[h++],r=t>>2,a=(t&3)<<4|s>>4,o=(s&15)<<2|n>>6,u=n&63,isNaN(s)?o=u=64:isNaN(n)&&(u=64),i=i+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=s=n="",r=a=o=u="",h<e.length;);return i}static restore(e,i){if(!e.match("data:image/jpeg;base64,"))return i;let t=this.decode64(e.replace("data:image/jpeg;base64,","")),s=this.slice2Segments(t),n=this.exifManipulation(i,s);return`data:image/jpeg;base64,${this.encode64(n)}`}static exifManipulation(e,i){let t=this.getExifArray(i),s=this.insertExif(e,t);return new Uint8Array(s)}static getExifArray(e){let i,t=0;for(;t<e.length;){if(i=e[t],i[0]===255&i[1]===225)return i;t++}return[]}static insertExif(e,i){let t=e.replace("data:image/jpeg;base64,",""),s=this.decode64(t),n=s.indexOf(255,3),r=s.slice(0,n),a=s.slice(n),o=r;return o=o.concat(i),o=o.concat(a),o}static slice2Segments(e){let i=0,t=[];for(;;){var s;if(e[i]===255&e[i+1]===218)break;if(e[i]===255&e[i+1]===216)i+=2;else{s=e[i+2]*256+e[i+3];let n=i+s+2,r=e.slice(i,n);t.push(r),i=n}if(i>e.length)break}return t}static decode64(e){let i,t,s="",n,r,a,o="",u=0,h=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn(`There were invalid base64 characters in the input text.
|
| 23 |
+
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
|
| 24 |
+
Expect errors in decoding.`),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");n=this.KEY_STR.indexOf(e.charAt(u++)),r=this.KEY_STR.indexOf(e.charAt(u++)),a=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),i=n<<2|r>>4,t=(r&15)<<4|a>>2,s=(a&3)<<6|o,h.push(i),a!==64&&h.push(t),o!==64&&h.push(s),i=t=s="",n=r=a=o="",u<e.length;);return h}}ve.initClass();function Ae(l,e){return typeof l<"u"&&l!==null?e(l):void 0}function Ue(l,e,i){if(typeof l<"u"&&l!==null&&typeof l[e]=="function")return i(l,e)}function Me(l){let e,i='<div class="dropzone-file flex flex-col items-center justify-center w-full h-46 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"><div class="dz-message flex flex-col items-center justify-center pt-5 pb-6"><svg class="w-8 h-8 mb-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"></path></svg> <p class="mb-2 text-sm text-gray-500 dark:text-gray-400"><span class="font-semibold">Нажмите для выбора файла</span> или перетащите его в это окно</p> <p class="text-xs text-gray-500 dark:text-gray-400">PDF (Макс. 100Мб)</p></div></div>';return{c(){e=y("div"),e.innerHTML=i,this.h()},l(t){e=F(t,"DIV",{class:!0,"data-svelte-h":!0}),M(e)!=="svelte-1lbnqsf"&&(e.innerHTML=i),this.h()},h(){w(e,"class","flex items-center justify-center w-full")},m(t,s){x(t,e,s)},p:O,i:O,o:O,d(t){t&&v(e)}}}function De(l,e,i){let{onFileUploaded:t}=e,{onSuccessResponse:s}=e,{onFileSelected:n}=e;return ye(()=>{new d(".dropzone-file",{url:"https://muryshev-cb-api.hf.space/recognize",method:"post",paramName:"file",maxFilesize:100,parallelUploads:1,uploadMultiple:!1,clickable:!0,autoProcessQueue:!0,previewTemplate:`
|
| 25 |
+
<div class="dz-preview dz-file-preview flex flex-row items-center justify-center w-full gap-2">
|
| 26 |
+
|
| 27 |
+
<div class="dz-filename"><span data-dz-name></span></div>
|
| 28 |
+
<div class="dz-size" data-dz-size></div>
|
| 29 |
+
|
| 30 |
+
<div class="dz-progress w-1/4 h-5 bg-gray-200 rounded-full dark:bg-gray-700"><div class="dz-upload bg-blue-600 text-xs font-medium text-blue-100 text-center p-0.5 leading-none rounded-full h-5" data-dz-uploadprogress></div></div>
|
| 31 |
+
<div class="dz-success-mark"><span></span></div>
|
| 32 |
+
<div class="dz-error-mark"><span></span></div>
|
| 33 |
+
<div class="dz-error-message"><span data-dz-errormessage></span></div>
|
| 34 |
+
</div>`,init(){this.on("addedfile",function(r){}),this.on("uploadprogress",function(r,a,o){a==100&&t&&t()}),this.on("success",function(r,a){s&&s(a)}),this.on("error",function(r,a){console.error("Upload error:",a)})}})}),l.$$set=r=>{"onFileUploaded"in r&&i(0,t=r.onFileUploaded),"onSuccessResponse"in r&&i(1,s=r.onSuccessResponse),"onFileSelected"in r&&i(2,n=r.onFileSelected)},[t,s,n]}class Re extends oe{constructor(e){super(),de(this,e,De,Me,ae,{onFileUploaded:0,onSuccessResponse:1,onFileSelected:2})}}function te(l,e,i){const t=l.slice();return t[8]=e[i],t}function ie(l,e,i){const t=l.slice();return t[11]=e[i],t[13]=i,t}function se(l){let e,i,t,s,n="Анализируем документ...",r;return i=new Ee({props:{size:4}}),{c(){e=y("div"),ue(i.$$.fragment),t=E(),s=y("div"),s.textContent=n,this.h()},l(a){e=F(a,"DIV",{class:!0});var o=b(e);he(i.$$.fragment,o),o.forEach(v),t=k(a),s=F(a,"DIV",{class:!0,"data-svelte-h":!0}),M(s)!=="svelte-10uxcau"&&(s.textContent=n),this.h()},h(){w(e,"class","w-20"),w(s,"class","min-h-full place-self-center")},m(a,o){x(a,e,o),pe(i,e,null),x(a,t,o),x(a,s,o),r=!0},i(a){r||(U(i.$$.fragment,a),r=!0)},o(a){I(i.$$.fragment,a),r=!1},d(a){a&&(v(e),v(t),v(s)),ce(i)}}}function le(l){let e,i=N(l[2]),t=[];for(let s=0;s<i.length;s+=1)t[s]=re(te(l,i,s));return{c(){e=y("div");for(let s=0;s<t.length;s+=1)t[s].c();this.h()},l(s){e=F(s,"DIV",{class:!0});var n=b(e);for(let r=0;r<t.length;r+=1)t[r].l(n);n.forEach(v),this.h()},h(){w(e,"class","flex gap-2 flex-wrap mt-4 items-stretch")},m(s,n){x(s,e,n);for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(e,null)},p(s,n){if(n&4){i=N(s[2]);let r;for(r=0;r<i.length;r+=1){const a=te(s,i,r);t[r]?t[r].p(a,n):(t[r]=re(a),t[r].c(),t[r].m(e,null))}for(;r<t.length;r+=1)t[r].d(1);t.length=i.length}},d(s){s&&v(e),me(t,s)}}}function ne(l){let e,i,t,s=l[13]+1+"",n,r,a,o="Тип документа:",u,h,p=l[11]["Тип документа"]+"",c,m,C,j="Атрибуты:",P,S,T,D=l[11].Атрибуты.replaceAll(`
|
| 35 |
+
`,"<br>")+"",H,_,Y="Текст:",B,L,A,R=l[11]["Текст документа"].replaceAll(`
|
| 36 |
+
`,"<br>")+"";return{c(){e=y("div"),i=y("h4"),t=Q("Документ №"),n=Q(s),r=E(),a=y("span"),a.textContent=o,u=E(),h=y("span"),c=Q(p),m=E(),C=y("p"),C.textContent=j,P=E(),S=y("span"),T=new K(!1),H=E(),_=y("p"),_.textContent=Y,B=E(),L=y("p"),A=new K(!1),this.h()},l(z){e=F(z,"DIV",{class:!0});var g=b(e);i=F(g,"H4",{class:!0});var q=b(i);t=W(q,"Документ №"),n=W(q,s),q.forEach(v),r=k(g),a=F(g,"SPAN",{class:!0,"data-svelte-h":!0}),M(a)!=="svelte-13vzox7"&&(a.textContent=o),u=k(g),h=F(g,"SPAN",{});var G=b(h);c=W(G,p),G.forEach(v),m=k(g),C=F(g,"P",{class:!0,"data-svelte-h":!0}),M(C)!=="svelte-ou6jp1"&&(C.textContent=j),P=k(g),S=F(g,"SPAN",{class:!0});var X=b(S);T=Z(X,!1),X.forEach(v),H=k(g),_=F(g,"P",{class:!0,"data-svelte-h":!0}),M(_)!=="svelte-1uydxbi"&&(_.textContent=Y),B=k(g),L=F(g,"P",{class:!0});var V=b(L);A=Z(V,!1),V.forEach(v),g.forEach(v),this.h()},h(){w(i,"class","mb-2 mt-2 text-lg font-bold tracking-tight text-gray-900 dark:text-white"),w(a,"class","mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white"),w(C,"class","mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white"),T.a=null,w(S,"class","mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white"),w(_,"class","mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white"),A.a=null,w(L,"class","font-normal text-gray-700 dark:text-gray-400"),w(e,"class","block max-w-full p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700 mb-5")},m(z,g){x(z,e,g),f(e,i),f(i,t),f(i,n),f(e,r),f(e,a),f(e,u),f(e,h),f(h,c),f(e,m),f(e,C),f(e,P),f(e,S),T.m(D,S),f(e,H),f(e,_),f(e,B),f(e,L),A.m(R,L)},p(z,g){g&4&&p!==(p=z[11]["Тип документа"]+"")&&be(c,p),g&4&&D!==(D=z[11].Атрибуты.replaceAll(`
|
| 37 |
+
`,"<br>")+"")&&T.p(D),g&4&&R!==(R=z[11]["Текст документа"].replaceAll(`
|
| 38 |
+
`,"<br>")+"")&&A.p(R)},d(z){z&&v(e)}}}function re(l){let e,i,t=N(l[8]),s=[];for(let n=0;n<t.length;n+=1)s[n]=ne(ie(l,t,n));return{c(){e=y("div");for(let n=0;n<s.length;n+=1)s[n].c();i=E(),this.h()},l(n){e=F(n,"DIV",{class:!0});var r=b(e);for(let a=0;a<s.length;a+=1)s[a].l(r);i=k(r),r.forEach(v),this.h()},h(){w(e,"class","grow min-h-full")},m(n,r){x(n,e,r);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(e,null);f(e,i)},p(n,r){if(r&4){t=N(n[8]);let a;for(a=0;a<t.length;a+=1){const o=ie(n,t,a);s[a]?s[a].p(o,r):(s[a]=ne(o),s[a].c(),s[a].m(e,i))}for(;a<s.length;a+=1)s[a].d(1);s.length=t.length}},d(n){n&&v(e),me(s,n)}}}function Ie(l){let e,i,t,s,n,r,a;t=new Re({props:{onFileUploaded:l[3],onSuccessResponse:l[5],onFileSelected:l[4]}});let o=l[1]&&se(),u=l[0]&&le(l);return{c(){e=y("main"),i=y("div"),ue(t.$$.fragment),s=E(),n=y("div"),o&&o.c(),r=E(),u&&u.c(),this.h()},l(h){e=F(h,"MAIN",{class:!0});var p=b(e);i=F(p,"DIV",{class:!0});var c=b(i);he(t.$$.fragment,c),c.forEach(v),s=k(p),n=F(p,"DIV",{class:!0});var m=b(n);o&&o.l(m),m.forEach(v),r=k(p),u&&u.l(p),p.forEach(v),this.h()},h(){w(i,"class","flex gap-2 flex-wrap mt-4 items-stretch"),w(n,"class","flex space-x-2 flex-row justify-center mt-20"),w(e,"class","bg-gray-100 min-h-screen p-8")},m(h,p){x(h,e,p),f(e,i),pe(t,i,null),f(e,s),f(e,n),o&&o.m(n,null),f(e,r),u&&u.m(e,null),a=!0},p(h,[p]){h[1]?o?p&2&&U(o,1):(o=se(),o.c(),U(o,1),o.m(n,null)):o&&(we(),I(o,1,1,()=>{o=null}),Fe()),h[0]?u?u.p(h,p):(u=le(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},i(h){a||(U(t.$$.fragment,h),U(o),a=!0)},o(h){I(t.$$.fragment,h),I(o),a=!1},d(h){h&&v(e),ce(t),o&&o.d(),u&&u.d()}}}function Ne(l,e,i){let t=!1,s=!1,n=[];function r(){console.log("File uploaded!"),i(1,s=!0)}function a(){i(1,s=!0),i(0,t=!1),i(2,n=[])}function o(u){console.log("Success response:",u),i(0,t=!0),i(1,s=!1),i(2,n=u)}return[t,s,n,r,a,o]}class Oe extends oe{constructor(e){super(),de(this,e,Ne,Ie,ae,{})}}export{Oe as component};
|
build/client/_app/version.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"version":"
|
|
|
|
| 1 |
+
{"version":"1710356765812"}
|
build/prerendered/index.html
CHANGED
|
@@ -6,10 +6,10 @@
|
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 7 |
|
| 8 |
<link href="./_app/immutable/assets/0.X-S7iW2B.css" rel="stylesheet">
|
| 9 |
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
| 10 |
-
<link rel="modulepreload" href="./_app/immutable/chunks/entry.
|
| 11 |
<link rel="modulepreload" href="./_app/immutable/chunks/scheduler.YAOc3RFa.js">
|
| 12 |
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
| 13 |
<link rel="modulepreload" href="./_app/immutable/chunks/index.YaTsDjJO.js">
|
| 14 |
<link rel="modulepreload" href="./_app/immutable/nodes/0.v59Tj1BY.js">
|
| 15 |
<link rel="modulepreload" href="./_app/immutable/nodes/2.uZCWA2bl.js">
|
|
@@ -21,7 +21,7 @@
|
|
| 21 |
|
| 22 |
<script>
|
| 23 |
{
|
| 24 |
-
|
| 25 |
base: new URL(".", location).pathname.slice(0, -1)
|
| 26 |
};
|
| 27 |
|
|
@@ -30,8 +30,8 @@
|
|
| 30 |
const data = [null,null];
|
| 31 |
|
| 32 |
Promise.all([
|
| 33 |
-
import("./_app/immutable/entry/start.
|
| 34 |
-
import("./_app/immutable/entry/app.
|
| 35 |
]).then(([kit, app]) => {
|
| 36 |
kit.start(app, element, {
|
| 37 |
node_ids: [0, 2],
|
|
|
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 7 |
|
| 8 |
<link href="./_app/immutable/assets/0.X-S7iW2B.css" rel="stylesheet">
|
| 9 |
+
<link rel="modulepreload" href="./_app/immutable/entry/start.X-pmad89.js">
|
| 10 |
+
<link rel="modulepreload" href="./_app/immutable/chunks/entry.OGBLgOl5.js">
|
| 11 |
<link rel="modulepreload" href="./_app/immutable/chunks/scheduler.YAOc3RFa.js">
|
| 12 |
+
<link rel="modulepreload" href="./_app/immutable/entry/app.puY0pAKV.js">
|
| 13 |
<link rel="modulepreload" href="./_app/immutable/chunks/index.YaTsDjJO.js">
|
| 14 |
<link rel="modulepreload" href="./_app/immutable/nodes/0.v59Tj1BY.js">
|
| 15 |
<link rel="modulepreload" href="./_app/immutable/nodes/2.uZCWA2bl.js">
|
|
|
|
| 21 |
|
| 22 |
<script>
|
| 23 |
{
|
| 24 |
+
__sveltekit_f2s69p = {
|
| 25 |
base: new URL(".", location).pathname.slice(0, -1)
|
| 26 |
};
|
| 27 |
|
|
|
|
| 30 |
const data = [null,null];
|
| 31 |
|
| 32 |
Promise.all([
|
| 33 |
+
import("./_app/immutable/entry/start.X-pmad89.js"),
|
| 34 |
+
import("./_app/immutable/entry/app.puY0pAKV.js")
|
| 35 |
]).then(([kit, app]) => {
|
| 36 |
kit.start(app, element, {
|
| 37 |
node_ids: [0, 2],
|
build/server/chunks/1-ynF1YR5f.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const index = 1;
|
| 2 |
+
let component_cache;
|
| 3 |
+
const component = async () => component_cache ??= (await import('./error.svelte-Cp_s7qHF.js')).default;
|
| 4 |
+
const imports = ["_app/immutable/nodes/1.ksnB_OTm.js","_app/immutable/chunks/scheduler.YAOc3RFa.js","_app/immutable/chunks/index.YaTsDjJO.js","_app/immutable/chunks/entry.OGBLgOl5.js"];
|
| 5 |
+
const stylesheets = [];
|
| 6 |
+
const fonts = [];
|
| 7 |
+
|
| 8 |
+
export { component, fonts, imports, index, stylesheets };
|
| 9 |
+
//# sourceMappingURL=1-ynF1YR5f.js.map
|
build/server/chunks/1-ynF1YR5f.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"1-ynF1YR5f.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.ksnB_OTm.js\",\"_app/immutable/chunks/scheduler.YAOc3RFa.js\",\"_app/immutable/chunks/index.YaTsDjJO.js\",\"_app/immutable/chunks/entry.OGBLgOl5.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,EAAE;AACpL,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
|
build/server/chunks/4-_Zro_ypn.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const index = 4;
|
| 2 |
+
let component_cache;
|
| 3 |
+
const component = async () => component_cache ??= (await import('./_page.svelte-Xvcum4KP.js')).default;
|
| 4 |
+
const imports = ["_app/immutable/nodes/4.RlacoBBv.js","_app/immutable/chunks/scheduler.YAOc3RFa.js","_app/immutable/chunks/index.YaTsDjJO.js","_app/immutable/chunks/each.-oqiv04n.js","_app/immutable/chunks/LoadingSpinner.lpyOX3pg.js"];
|
| 5 |
+
const stylesheets = [];
|
| 6 |
+
const fonts = [];
|
| 7 |
+
|
| 8 |
+
export { component, fonts, imports, index, stylesheets };
|
| 9 |
+
//# sourceMappingURL=4-_Zro_ypn.js.map
|
build/server/chunks/4-_Zro_ypn.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"4-_Zro_ypn.js","sources":["../../../.svelte-kit/adapter-node/nodes/4.js"],"sourcesContent":["\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/recognition/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/4.RlacoBBv.js\",\"_app/immutable/chunks/scheduler.YAOc3RFa.js\",\"_app/immutable/chunks/index.YaTsDjJO.js\",\"_app/immutable/chunks/each.-oqiv04n.js\",\"_app/immutable/chunks/LoadingSpinner.lpyOX3pg.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA8C,CAAC,EAAE,QAAQ;AACpH,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,wCAAwC,CAAC,kDAAkD,EAAE;AACtO,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
|
build/server/chunks/_page.svelte-Xvcum4KP.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { c as create_ssr_component, v as validate_component, d as each, e as escape } from './ssr-vVkKLCDq.js';
|
| 2 |
+
import 'dropzone';
|
| 3 |
+
|
| 4 |
+
const LoadingSpinner = create_ssr_component(($$result, $$props, $$bindings, slots) => {
|
| 5 |
+
let { size = 8 } = $$props;
|
| 6 |
+
let { label = "" } = $$props;
|
| 7 |
+
if ($$props.size === void 0 && $$bindings.size && size !== void 0)
|
| 8 |
+
$$bindings.size(size);
|
| 9 |
+
if ($$props.label === void 0 && $$bindings.label && label !== void 0)
|
| 10 |
+
$$bindings.label(label);
|
| 11 |
+
return `<div role="status"><svg aria-hidden="true" class="${"w-" + escape(size, true) + " h-" + escape(size, true) + " text-gray-200 animate-spin dark:text-gray-600 fill-blue-600"}" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"></path></svg> <span class="sr-only" data-svelte-h="svelte-xxmjpt">Загрузка...</span> ${label ? `<span>${escape(label)}</span>` : ``}</div>`;
|
| 12 |
+
});
|
| 13 |
+
const UploadZone = create_ssr_component(($$result, $$props, $$bindings, slots) => {
|
| 14 |
+
let { onFileUploaded } = $$props;
|
| 15 |
+
let { onSuccessResponse } = $$props;
|
| 16 |
+
let { onFileSelected } = $$props;
|
| 17 |
+
if ($$props.onFileUploaded === void 0 && $$bindings.onFileUploaded && onFileUploaded !== void 0)
|
| 18 |
+
$$bindings.onFileUploaded(onFileUploaded);
|
| 19 |
+
if ($$props.onSuccessResponse === void 0 && $$bindings.onSuccessResponse && onSuccessResponse !== void 0)
|
| 20 |
+
$$bindings.onSuccessResponse(onSuccessResponse);
|
| 21 |
+
if ($$props.onFileSelected === void 0 && $$bindings.onFileSelected && onFileSelected !== void 0)
|
| 22 |
+
$$bindings.onFileSelected(onFileSelected);
|
| 23 |
+
return `<div class="flex items-center justify-center w-full" data-svelte-h="svelte-1lbnqsf"><div class="dropzone-file flex flex-col items-center justify-center w-full h-46 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"><div class="dz-message flex flex-col items-center justify-center pt-5 pb-6"><svg class="w-8 h-8 mb-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"></path></svg> <p class="mb-2 text-sm text-gray-500 dark:text-gray-400"><span class="font-semibold">Нажмите для выбора файла</span> или перетащите его в это окно</p> <p class="text-xs text-gray-500 dark:text-gray-400">PDF (Макс. 100Мб)</p></div></div></div>`;
|
| 24 |
+
});
|
| 25 |
+
const Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {
|
| 26 |
+
let dataLoaded = false;
|
| 27 |
+
let dataLoading = false;
|
| 28 |
+
let result = [];
|
| 29 |
+
function handleFileUploaded() {
|
| 30 |
+
console.log("File uploaded!");
|
| 31 |
+
dataLoading = true;
|
| 32 |
+
}
|
| 33 |
+
function handleFileSelected() {
|
| 34 |
+
dataLoading = true;
|
| 35 |
+
dataLoaded = false;
|
| 36 |
+
result = [];
|
| 37 |
+
}
|
| 38 |
+
function handleSuccessResponse(response) {
|
| 39 |
+
console.log("Success response:", response);
|
| 40 |
+
dataLoaded = true;
|
| 41 |
+
dataLoading = false;
|
| 42 |
+
result = response;
|
| 43 |
+
}
|
| 44 |
+
return ` <main class="bg-gray-100 min-h-screen p-8"><div class="flex gap-2 flex-wrap mt-4 items-stretch">${validate_component(UploadZone, "UploadZone").$$render(
|
| 45 |
+
$$result,
|
| 46 |
+
{
|
| 47 |
+
onFileUploaded: handleFileUploaded,
|
| 48 |
+
onSuccessResponse: handleSuccessResponse,
|
| 49 |
+
onFileSelected: handleFileSelected
|
| 50 |
+
},
|
| 51 |
+
{},
|
| 52 |
+
{}
|
| 53 |
+
)}</div> <div class="flex space-x-2 flex-row justify-center mt-20">${dataLoading ? `<div class="w-20">${validate_component(LoadingSpinner, "LoadingSpinner").$$render($$result, { size: 4 }, {}, {})}</div> <div class="min-h-full place-self-center" data-svelte-h="svelte-10uxcau">Анализируем документ...</div>` : ``}</div> ${dataLoaded ? `<div class="flex gap-2 flex-wrap mt-4 items-stretch">${each(result, (document) => {
|
| 54 |
+
return `<div class="grow min-h-full">${each(document, (item, key) => {
|
| 55 |
+
return `<div class="block max-w-full p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700 mb-5"><h4 class="mb-2 mt-2 text-lg font-bold tracking-tight text-gray-900 dark:text-white">Документ №${escape(key + 1)}</h4> <span class="mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white" data-svelte-h="svelte-13vzox7">Тип документа:</span> <span>${escape(item["Тип документа"])}</span> <p class="mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white" data-svelte-h="svelte-ou6jp1">Атрибуты:</p> <span class="mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white"><!-- HTML_TAG_START -->${item["Атрибуты"].replaceAll("\n", "<br>")}<!-- HTML_TAG_END --></span> <p class="mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white" data-svelte-h="svelte-1uydxbi">Текст:</p> <p class="font-normal text-gray-700 dark:text-gray-400"><!-- HTML_TAG_START -->${item["Текст документа"].replaceAll("\n", "<br>")}<!-- HTML_TAG_END --></p> </div>`;
|
| 56 |
+
})} </div>`;
|
| 57 |
+
})} </div>` : ``} </main>`;
|
| 58 |
+
});
|
| 59 |
+
|
| 60 |
+
export { Page as default };
|
| 61 |
+
//# sourceMappingURL=_page.svelte-Xvcum4KP.js.map
|
build/server/chunks/_page.svelte-Xvcum4KP.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"_page.svelte-Xvcum4KP.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/recognition/_page.svelte.js"],"sourcesContent":["import { c as create_ssr_component, e as escape, v as validate_component, f as each } from \"../../../chunks/ssr.js\";\nimport \"dropzone\";\nconst LoadingSpinner = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n let { size = 8 } = $$props;\n let { label = \"\" } = $$props;\n if ($$props.size === void 0 && $$bindings.size && size !== void 0)\n $$bindings.size(size);\n if ($$props.label === void 0 && $$bindings.label && label !== void 0)\n $$bindings.label(label);\n return `<div role=\"status\"><svg aria-hidden=\"true\" class=\"${\"w-\" + escape(size, true) + \" h-\" + escape(size, true) + \" text-gray-200 animate-spin dark:text-gray-600 fill-blue-600\"}\" viewBox=\"0 0 100 101\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\" fill=\"currentColor\"></path><path d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\" fill=\"currentFill\"></path></svg> <span class=\"sr-only\" data-svelte-h=\"svelte-xxmjpt\">Загрузка...</span> ${label ? `<span>${escape(label)}</span>` : ``}</div>`;\n});\nconst UploadZone = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n let { onFileUploaded } = $$props;\n let { onSuccessResponse } = $$props;\n let { onFileSelected } = $$props;\n if ($$props.onFileUploaded === void 0 && $$bindings.onFileUploaded && onFileUploaded !== void 0)\n $$bindings.onFileUploaded(onFileUploaded);\n if ($$props.onSuccessResponse === void 0 && $$bindings.onSuccessResponse && onSuccessResponse !== void 0)\n $$bindings.onSuccessResponse(onSuccessResponse);\n if ($$props.onFileSelected === void 0 && $$bindings.onFileSelected && onFileSelected !== void 0)\n $$bindings.onFileSelected(onFileSelected);\n return `<div class=\"flex items-center justify-center w-full\" data-svelte-h=\"svelte-1lbnqsf\"><div class=\"dropzone-file flex flex-col items-center justify-center w-full h-46 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600\"><div class=\"dz-message flex flex-col items-center justify-center pt-5 pb-6\"><svg class=\"w-8 h-8 mb-4 text-gray-500 dark:text-gray-400\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 20 16\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2\"></path></svg> <p class=\"mb-2 text-sm text-gray-500 dark:text-gray-400\"><span class=\"font-semibold\">Нажмите для выбора файла</span> или перетащите его в это окно</p> <p class=\"text-xs text-gray-500 dark:text-gray-400\">PDF (Макс. 100Мб)</p></div></div></div>`;\n});\nconst Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n let dataLoaded = false;\n let dataLoading = false;\n let result = [];\n function handleFileUploaded() {\n console.log(\"File uploaded!\");\n dataLoading = true;\n }\n function handleFileSelected() {\n dataLoading = true;\n dataLoaded = false;\n result = [];\n }\n function handleSuccessResponse(response) {\n console.log(\"Success response:\", response);\n dataLoaded = true;\n dataLoading = false;\n result = response;\n }\n return ` <main class=\"bg-gray-100 min-h-screen p-8\"><div class=\"flex gap-2 flex-wrap mt-4 items-stretch\">${validate_component(UploadZone, \"UploadZone\").$$render(\n $$result,\n {\n onFileUploaded: handleFileUploaded,\n onSuccessResponse: handleSuccessResponse,\n onFileSelected: handleFileSelected\n },\n {},\n {}\n )}</div> <div class=\"flex space-x-2 flex-row justify-center mt-20\">${dataLoading ? `<div class=\"w-20\">${validate_component(LoadingSpinner, \"LoadingSpinner\").$$render($$result, { size: 4 }, {}, {})}</div> <div class=\"min-h-full place-self-center\" data-svelte-h=\"svelte-10uxcau\">Анализируем документ...</div>` : ``}</div> ${dataLoaded ? `<div class=\"flex gap-2 flex-wrap mt-4 items-stretch\">${each(result, (document) => {\n return `<div class=\"grow min-h-full\">${each(document, (item, key) => {\n return `<div class=\"block max-w-full p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700 mb-5\"><h4 class=\"mb-2 mt-2 text-lg font-bold tracking-tight text-gray-900 dark:text-white\">Документ №${escape(key + 1)}</h4> <span class=\"mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white\" data-svelte-h=\"svelte-13vzox7\">Тип документа:</span> <span>${escape(item[\"Тип документа\"])}</span> <p class=\"mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white\" data-svelte-h=\"svelte-ou6jp1\">Атрибуты:</p> <span class=\"mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white\"><!-- HTML_TAG_START -->${item[\"Атрибуты\"].replaceAll(\"\\n\", \"<br>\")}<!-- HTML_TAG_END --></span> <p class=\"mb-2 mt-2 text-md font-bold tracking-tight text-gray-900 dark:text-white\" data-svelte-h=\"svelte-1uydxbi\">Текст:</p> <p class=\"font-normal text-gray-700 dark:text-gray-400\"><!-- HTML_TAG_START -->${item[\"Текст документа\"].replaceAll(\"\\n\", \"<br>\")}<!-- HTML_TAG_END --></p> </div>`;\n })} </div>`;\n })} </div>` : ``} </main>`;\n});\nexport {\n Page as default\n};\n"],"names":[],"mappings":"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"}
|
build/server/index.js
CHANGED
|
@@ -1280,7 +1280,7 @@ const options = {
|
|
| 1280 |
<div class="error">
|
| 1281 |
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
| 1282 |
},
|
| 1283 |
-
version_hash: "
|
| 1284 |
};
|
| 1285 |
async function get_hooks() {
|
| 1286 |
return {};
|
|
|
|
| 1280 |
<div class="error">
|
| 1281 |
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
| 1282 |
},
|
| 1283 |
+
version_hash: "f2s69p"
|
| 1284 |
};
|
| 1285 |
async function get_hooks() {
|
| 1286 |
return {};
|
build/server/index.js.map
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
build/server/manifest.js
CHANGED
|
@@ -10,12 +10,12 @@ return {
|
|
| 10 |
assets: new Set(["favicon.png","robots.txt"]),
|
| 11 |
mimeTypes: {".png":"image/png",".txt":"text/plain"},
|
| 12 |
_: {
|
| 13 |
-
client: {"start":"_app/immutable/entry/start.
|
| 14 |
nodes: [
|
| 15 |
__memo(() => import('./chunks/0-7JVNtqYj.js')),
|
| 16 |
-
__memo(() => import('./chunks/1-
|
| 17 |
__memo(() => import('./chunks/3-IytyG301.js')),
|
| 18 |
-
__memo(() => import('./chunks/4-
|
| 19 |
],
|
| 20 |
routes: [
|
| 21 |
{
|
|
|
|
| 10 |
assets: new Set(["favicon.png","robots.txt"]),
|
| 11 |
mimeTypes: {".png":"image/png",".txt":"text/plain"},
|
| 12 |
_: {
|
| 13 |
+
client: {"start":"_app/immutable/entry/start.X-pmad89.js","app":"_app/immutable/entry/app.puY0pAKV.js","imports":["_app/immutable/entry/start.X-pmad89.js","_app/immutable/chunks/entry.OGBLgOl5.js","_app/immutable/chunks/scheduler.YAOc3RFa.js","_app/immutable/entry/app.puY0pAKV.js","_app/immutable/chunks/scheduler.YAOc3RFa.js","_app/immutable/chunks/index.YaTsDjJO.js"],"stylesheets":[],"fonts":[],"uses_env_dynamic_public":false},
|
| 14 |
nodes: [
|
| 15 |
__memo(() => import('./chunks/0-7JVNtqYj.js')),
|
| 16 |
+
__memo(() => import('./chunks/1-ynF1YR5f.js')),
|
| 17 |
__memo(() => import('./chunks/3-IytyG301.js')),
|
| 18 |
+
__memo(() => import('./chunks/4-_Zro_ypn.js'))
|
| 19 |
],
|
| 20 |
routes: [
|
| 21 |
{
|
build/server/manifest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\",\"robots.txt\"]),\n\tmimeTypes: {\".png\":\"image/png\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {\"start\":\"_app/immutable/entry/start.
|
|
|
|
| 1 |
+
{"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\",\"robots.txt\"]),\n\tmimeTypes: {\".png\":\"image/png\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {\"start\":\"_app/immutable/entry/start.X-pmad89.js\",\"app\":\"_app/immutable/entry/app.puY0pAKV.js\",\"imports\":[\"_app/immutable/entry/start.X-pmad89.js\",\"_app/immutable/chunks/entry.OGBLgOl5.js\",\"_app/immutable/chunks/scheduler.YAOc3RFa.js\",\"_app/immutable/entry/app.puY0pAKV.js\",\"_app/immutable/chunks/scheduler.YAOc3RFa.js\",\"_app/immutable/chunks/index.YaTsDjJO.js\"],\"stylesheets\":[],\"fonts\":[],\"uses_env_dynamic_public\":false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/3.js')),\n\t\t\t__memo(() => import('./nodes/4.js'))\n\t\t],\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/api\",\n\t\t\t\tpattern: /^\\/api\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/env/search_version\",\n\t\t\t\tpattern: /^\\/api\\/env\\/search_version\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/env/search_version/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/chat\",\n\t\t\t\tpattern: /^\\/chat\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm\",\n\t\t\t\tpattern: /^\\/llm\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm/chat\",\n\t\t\t\tpattern: /^\\/llm\\/chat\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/chat/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm/health\",\n\t\t\t\tpattern: /^\\/llm\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/health/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/export\",\n\t\t\t\tpattern: /^\\/log\\/export\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/export/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/response\",\n\t\t\t\tpattern: /^\\/log\\/response\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/response/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/response/export/excel\",\n\t\t\t\tpattern: /^\\/log\\/response\\/export\\/excel\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/response/export/excel/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/recognition\",\n\t\t\t\tpattern: /^\\/recognition\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/search\",\n\t\t\t\tpattern: /^\\/search\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/search/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/search/health\",\n\t\t\t\tpattern: /^\\/search\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/search/health/_server.ts.js'))\n\t\t\t}\n\t\t],\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t}\n\t}\n}\n})();\n\nexport const prerendered = new Set([\"/\"]);\n"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK,CAAC;AACX,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC,CAAC;AACvC,CAAC;AACD;AACA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAC9C,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC;AACpD,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,wCAAwC,CAAC,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC,CAAC,wCAAwC,CAAC,yCAAyC,CAAC,6CAA6C,CAAC,sCAAsC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC;AACjb,EAAE,KAAK,EAAE;AACT,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG;AACH,EAAE,MAAM,EAAE;AACV,GAAG;AACH,IAAI,EAAE,EAAE,MAAM;AACd,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAAuC,CAAC,CAAC;AAC3E,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,yBAAyB;AACjC,IAAI,OAAO,EAAE,iCAAiC;AAC9C,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA0D,CAAC,CAAC;AAC9F,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,OAAO;AACf,IAAI,OAAO,EAAE,aAAa;AAC1B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE,IAAI;AAClB,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,MAAM;AACd,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAAuC,CAAC,CAAC;AAC3E,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,WAAW;AACnB,IAAI,OAAO,EAAE,kBAAkB;AAC/B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA4C,CAAC,CAAC;AAChF,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,aAAa;AACrB,IAAI,OAAO,EAAE,oBAAoB;AACjC,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA8C,CAAC,CAAC;AAClF,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,aAAa;AACrB,IAAI,OAAO,EAAE,oBAAoB;AACjC,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA8C,CAAC,CAAC;AAClF,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,eAAe;AACvB,IAAI,OAAO,EAAE,sBAAsB;AACnC,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAAgD,CAAC,CAAC;AACpF,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,4BAA4B;AACpC,IAAI,OAAO,EAAE,qCAAqC;AAClD,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA6D,CAAC,CAAC;AACjG,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,cAAc;AACtB,IAAI,OAAO,EAAE,oBAAoB;AACjC,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE,IAAI;AAClB,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,SAAS;AACjB,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA0C,CAAC,CAAC;AAC9E,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,gBAAgB;AACxB,IAAI,OAAO,EAAE,uBAAuB;AACpC,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAAiD,CAAC,CAAC;AACrF,IAAI;AACJ,GAAG;AACH,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI,CAAC;AACf,GAAG;AACH,EAAE;AACF,CAAC;AACD,CAAC,IAAI;AACL;AACY,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC;;;;"}
|