@win2win/shared-ui 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,7 +40,7 @@ Facilidad de instalación, se fija a la pared con tornillos de forma sencilla. M
40
40
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...M){const u=new this(s);return M.forEach(z=>u.set(z)),u}static accessor(s){const u=(this[$internals]=this[$internals]={accessors:{}}).accessors,z=this.prototype;function Z(r){const N=normalizeHeader(r);u[N]||(buildAccessors(z,r),u[N]=!0)}return utils$1.isArray(s)?s.forEach(Z):Z(s),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:o},s)=>{let M=s[0].toUpperCase()+s.slice(1);return{get:()=>o,set(u){this[M]=u}}}),utils$1.freezeMethods(AxiosHeaders$1);function transformData(o,s){const M=this||defaults$1,u=s||M,z=AxiosHeaders$1.from(u.headers);let Z=u.data;return utils$1.forEach(o,function(N){Z=N.call(M,Z,z.normalize(),s?s.status:void 0)}),z.normalize(),Z}function isCancel$1(o){return!!(o&&o.__CANCEL__)}function CanceledError$1(o,s,M){AxiosError$1.call(this,o??"canceled",AxiosError$1.ERR_CANCELED,s,M),this.name="CanceledError"}utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(o,s,M){const u=M.config.validateStatus;!M.status||!u||u(M.status)?o(M):s(new AxiosError$1("Request failed with status code "+M.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(M.status/100)-4],M.config,M.request,M))}function parseProtocol(o){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return s&&s[1]||""}function speedometer(o,s){o=o||10;const M=new Array(o),u=new Array(o);let z=0,Z=0,r;return s=s!==void 0?s:1e3,function(X){const y=Date.now(),G=u[Z];r||(r=y),M[z]=X,u[z]=y;let V=Z,S=0;for(;V!==z;)S+=M[V++],V=V%o;if(z=(z+1)%o,z===Z&&(Z=(Z+1)%o),y-r<s)return;const R=G&&y-G;return R?Math.round(S*1e3/R):void 0}}function throttle(o,s){let M=0,u=1e3/s,z,Z;const r=(y,G=Date.now())=>{M=G,z=null,Z&&(clearTimeout(Z),Z=null),o.apply(null,y)};return[(...y)=>{const G=Date.now(),V=G-M;V>=u?r(y,G):(z=y,Z||(Z=setTimeout(()=>{Z=null,r(z)},u-V)))},()=>z&&r(z)]}const progressEventReducer=(o,s,M=3)=>{let u=0;const z=speedometer(50,250);return throttle(Z=>{const r=Z.loaded,N=Z.lengthComputable?Z.total:void 0,X=r-u,y=z(X),G=r<=N;u=r;const V={loaded:r,total:N,progress:N?r/N:void 0,bytes:X,rate:y||void 0,estimated:y&&N&&G?(N-r)/y:void 0,event:Z,lengthComputable:N!=null,[s?"download":"upload"]:!0};o(V)},M)},progressEventDecorator=(o,s)=>{const M=o!=null;return[u=>s[0]({lengthComputable:M,total:o,loaded:u}),s[1]]},asyncDecorator=o=>(...s)=>utils$1.asap(()=>o(...s)),isURLSameOrigin=platform.hasStandardBrowserEnv?((o,s)=>M=>(M=new URL(M,platform.origin),o.protocol===M.protocol&&o.host===M.host&&(s||o.port===M.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(o,s,M,u,z,Z){const r=[o+"="+encodeURIComponent(s)];utils$1.isNumber(M)&&r.push("expires="+new Date(M).toGMTString()),utils$1.isString(u)&&r.push("path="+u),utils$1.isString(z)&&r.push("domain="+z),Z===!0&&r.push("secure"),document.cookie=r.join("; ")},read(o){const s=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function combineURLs(o,s){return s?o.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):o}function buildFullPath(o,s,M){let u=!isAbsoluteURL(s);return o&&(u||M==!1)?combineURLs(o,s):s}const headersToObject=o=>o instanceof AxiosHeaders$1?{...o}:o;function mergeConfig$1(o,s){s=s||{};const M={};function u(y,G,V,S){return utils$1.isPlainObject(y)&&utils$1.isPlainObject(G)?utils$1.merge.call({caseless:S},y,G):utils$1.isPlainObject(G)?utils$1.merge({},G):utils$1.isArray(G)?G.slice():G}function z(y,G,V,S){if(utils$1.isUndefined(G)){if(!utils$1.isUndefined(y))return u(void 0,y,V,S)}else return u(y,G,V,S)}function Z(y,G){if(!utils$1.isUndefined(G))return u(void 0,G)}function r(y,G){if(utils$1.isUndefined(G)){if(!utils$1.isUndefined(y))return u(void 0,y)}else return u(void 0,G)}function N(y,G,V){if(V in s)return u(y,G);if(V in o)return u(void 0,y)}const X={url:Z,method:Z,data:Z,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:N,headers:(y,G,V)=>z(headersToObject(y),headersToObject(G),V,!0)};return utils$1.forEach(Object.keys(Object.assign({},o,s)),function(G){const V=X[G]||z,S=V(o[G],s[G],G);utils$1.isUndefined(S)&&V!==N||(M[G]=S)}),M}const resolveConfig=o=>{const s=mergeConfig$1({},o);let{data:M,withXSRFToken:u,xsrfHeaderName:z,xsrfCookieName:Z,headers:r,auth:N}=s;s.headers=r=AxiosHeaders$1.from(r),s.url=buildURL(buildFullPath(s.baseURL,s.url,s.allowAbsoluteUrls),o.params,o.paramsSerializer),N&&r.set("Authorization","Basic "+btoa((N.username||"")+":"+(N.password?unescape(encodeURIComponent(N.password)):"")));let X;if(utils$1.isFormData(M)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((X=r.getContentType())!==!1){const[y,...G]=X?X.split(";").map(V=>V.trim()).filter(Boolean):[];r.setContentType([y||"multipart/form-data",...G].join("; "))}}if(platform.hasStandardBrowserEnv&&(u&&utils$1.isFunction(u)&&(u=u(s)),u||u!==!1&&isURLSameOrigin(s.url))){const y=z&&Z&&cookies.read(Z);y&&r.set(z,y)}return s},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(o){return new Promise(function(M,u){const z=resolveConfig(o);let Z=z.data;const r=AxiosHeaders$1.from(z.headers).normalize();let{responseType:N,onUploadProgress:X,onDownloadProgress:y}=z,G,V,S,R,D;function j(){R&&R(),D&&D(),z.cancelToken&&z.cancelToken.unsubscribe(G),z.signal&&z.signal.removeEventListener("abort",G)}let C=new XMLHttpRequest;C.open(z.method.toUpperCase(),z.url,!0),C.timeout=z.timeout;function B(){if(!C)return;const U=AxiosHeaders$1.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),g={data:!N||N==="text"||N==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:U,config:o,request:C};settle(function(q){M(q),j()},function(q){u(q),j()},g),C=null}"onloadend"in C?C.onloadend=B:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(B)},C.onabort=function(){C&&(u(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,o,C)),C=null)},C.onerror=function(){u(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,o,C)),C=null},C.ontimeout=function(){let E=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded";const g=z.transitional||transitionalDefaults;z.timeoutErrorMessage&&(E=z.timeoutErrorMessage),u(new AxiosError$1(E,g.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,o,C)),C=null},Z===void 0&&r.setContentType(null),"setRequestHeader"in C&&utils$1.forEach(r.toJSON(),function(E,g){C.setRequestHeader(g,E)}),utils$1.isUndefined(z.withCredentials)||(C.withCredentials=!!z.withCredentials),N&&N!=="json"&&(C.responseType=z.responseType),y&&([S,D]=progressEventReducer(y,!0),C.addEventListener("progress",S)),X&&C.upload&&([V,R]=progressEventReducer(X),C.upload.addEventListener("progress",V),C.upload.addEventListener("loadend",R)),(z.cancelToken||z.signal)&&(G=U=>{C&&(u(!U||U.type?new CanceledError$1(null,o,C):U),C.abort(),C=null)},z.cancelToken&&z.cancelToken.subscribe(G),z.signal&&(z.signal.aborted?G():z.signal.addEventListener("abort",G)));const F=parseProtocol(z.url);if(F&&platform.protocols.indexOf(F)===-1){u(new AxiosError$1("Unsupported protocol "+F+":",AxiosError$1.ERR_BAD_REQUEST,o));return}C.send(Z||null)})},composeSignals=(o,s)=>{const{length:M}=o=o?o.filter(Boolean):[];if(s||M){let u=new AbortController,z;const Z=function(y){if(!z){z=!0,N();const G=y instanceof Error?y:this.reason;u.abort(G instanceof AxiosError$1?G:new CanceledError$1(G instanceof Error?G.message:G))}};let r=s&&setTimeout(()=>{r=null,Z(new AxiosError$1(`timeout ${s} of ms exceeded`,AxiosError$1.ETIMEDOUT))},s);const N=()=>{o&&(r&&clearTimeout(r),r=null,o.forEach(y=>{y.unsubscribe?y.unsubscribe(Z):y.removeEventListener("abort",Z)}),o=null)};o.forEach(y=>y.addEventListener("abort",Z));const{signal:X}=u;return X.unsubscribe=()=>utils$1.asap(N),X}},streamChunk=function*(o,s){let M=o.byteLength;if(M<s){yield o;return}let u=0,z;for(;u<M;)z=u+s,yield o.slice(u,z),u=z},readBytes=async function*(o,s){for await(const M of readStream(o))yield*streamChunk(M,s)},readStream=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}const s=o.getReader();try{for(;;){const{done:M,value:u}=await s.read();if(M)break;yield u}}finally{await s.cancel()}},trackStream=(o,s,M,u)=>{const z=readBytes(o,s);let Z=0,r,N=X=>{r||(r=!0,u&&u(X))};return new ReadableStream({async pull(X){try{const{done:y,value:G}=await z.next();if(y){N(),X.close();return}let V=G.byteLength;if(M){let S=Z+=V;M(S)}X.enqueue(new Uint8Array(G))}catch(y){throw N(y),y}},cancel(X){return N(X),z.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(o=>s=>o.encode(s))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),test=(o,...s)=>{try{return!!o(...s)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let o=!1;const s=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!s}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(o=>o.body)};isFetchSupported&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!resolvers[s]&&(resolvers[s]=utils$1.isFunction(o[s])?M=>M[s]():(M,u)=>{throw new AxiosError$1(`Response type '${s}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,u)})})})(new Response);const getBodyLength=async o=>{if(o==null)return 0;if(utils$1.isBlob(o))return o.size;if(utils$1.isSpecCompliantForm(o))return(await new Request(platform.origin,{method:"POST",body:o}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(o)||utils$1.isArrayBuffer(o))return o.byteLength;if(utils$1.isURLSearchParams(o)&&(o=o+""),utils$1.isString(o))return(await encodeText(o)).byteLength},resolveBodyLength=async(o,s)=>{const M=utils$1.toFiniteNumber(o.getContentLength());return M??getBodyLength(s)},fetchAdapter=isFetchSupported&&(async o=>{let{url:s,method:M,data:u,signal:z,cancelToken:Z,timeout:r,onDownloadProgress:N,onUploadProgress:X,responseType:y,headers:G,withCredentials:V="same-origin",fetchOptions:S}=resolveConfig(o);y=y?(y+"").toLowerCase():"text";let R=composeSignals([z,Z&&Z.toAbortSignal()],r),D;const j=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let C;try{if(X&&supportsRequestStream&&M!=="get"&&M!=="head"&&(C=await resolveBodyLength(G,u))!==0){let g=new Request(s,{method:"POST",body:u,duplex:"half"}),f;if(utils$1.isFormData(u)&&(f=g.headers.get("content-type"))&&G.setContentType(f),g.body){const[q,o0]=progressEventDecorator(C,progressEventReducer(asyncDecorator(X)));u=trackStream(g.body,DEFAULT_CHUNK_SIZE,q,o0)}}utils$1.isString(V)||(V=V?"include":"omit");const B="credentials"in Request.prototype;D=new Request(s,{...S,signal:R,method:M.toUpperCase(),headers:G.normalize().toJSON(),body:u,duplex:"half",credentials:B?V:void 0});let F=await fetch(D);const U=supportsResponseStream&&(y==="stream"||y==="response");if(supportsResponseStream&&(N||U&&j)){const g={};["status","statusText","headers"].forEach(c0=>{g[c0]=F[c0]});const f=utils$1.toFiniteNumber(F.headers.get("content-length")),[q,o0]=N&&progressEventDecorator(f,progressEventReducer(asyncDecorator(N),!0))||[];F=new Response(trackStream(F.body,DEFAULT_CHUNK_SIZE,q,()=>{o0&&o0(),j&&j()}),g)}y=y||"text";let E=await resolvers[utils$1.findKey(resolvers,y)||"text"](F,o);return!U&&j&&j(),await new Promise((g,f)=>{settle(g,f,{data:E,headers:AxiosHeaders$1.from(F.headers),status:F.status,statusText:F.statusText,config:o,request:D})})}catch(B){throw j&&j(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,o,D),{cause:B.cause||B}):AxiosError$1.from(B,B&&B.code,o,D)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(o,s)=>{if(o){try{Object.defineProperty(o,"name",{value:s})}catch{}Object.defineProperty(o,"adapterName",{value:s})}});const renderReason=o=>`- ${o}`,isResolvedHandle=o=>utils$1.isFunction(o)||o===null||o===!1,adapters={getAdapter:o=>{o=utils$1.isArray(o)?o:[o];const{length:s}=o;let M,u;const z={};for(let Z=0;Z<s;Z++){M=o[Z];let r;if(u=M,!isResolvedHandle(M)&&(u=knownAdapters[(r=String(M)).toLowerCase()],u===void 0))throw new AxiosError$1(`Unknown adapter '${r}'`);if(u)break;z[r||"#"+Z]=u}if(!u){const Z=Object.entries(z).map(([N,X])=>`adapter ${N} `+(X===!1?"is not supported by the environment":"is not available in the build"));let r=s?Z.length>1?`since :
41
41
  `+Z.map(renderReason).join(`
42
42
  `):" "+renderReason(Z[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return u},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError$1(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(u){return throwIfCancellationRequested(o),u.data=transformData.call(o,o.transformResponse,u),u.headers=AxiosHeaders$1.from(u.headers),u},function(u){return isCancel$1(u)||(throwIfCancellationRequested(o),u&&u.response&&(u.response.data=transformData.call(o,o.transformResponse,u.response),u.response.headers=AxiosHeaders$1.from(u.response.headers))),Promise.reject(u)})}const VERSION$1="1.9.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,s)=>{validators$1[o]=function(u){return typeof u===o||"a"+(s<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(s,M,u){function z(Z,r){return"[Axios v"+VERSION$1+"] Transitional option '"+Z+"'"+r+(u?". "+u:"")}return(Z,r,N)=>{if(s===!1)throw new AxiosError$1(z(r," has been removed"+(M?" in "+M:"")),AxiosError$1.ERR_DEPRECATED);return M&&!deprecatedWarnings[r]&&(deprecatedWarnings[r]=!0,console.warn(z(r," has been deprecated since v"+M+" and will be removed in the near future"))),s?s(Z,r,N):!0}},validators$1.spelling=function(s){return(M,u)=>(console.warn(`${u} is likely a misspelling of ${s}`),!0)};function assertOptions(o,s,M){if(typeof o!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const u=Object.keys(o);let z=u.length;for(;z-- >0;){const Z=u[z],r=s[Z];if(r){const N=o[Z],X=N===void 0||r(N,Z,o);if(X!==!0)throw new AxiosError$1("option "+Z+" must be "+X,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(M!==!0)throw new AxiosError$1("Unknown option "+Z,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(s){this.defaults=s||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(s,M){try{return await this._request(s,M)}catch(u){if(u instanceof Error){let z={};Error.captureStackTrace?Error.captureStackTrace(z):z=new Error;const Z=z.stack?z.stack.replace(/^.+\n/,""):"";try{u.stack?Z&&!String(u.stack).endsWith(Z.replace(/^.+\n.+\n/,""))&&(u.stack+=`
43
- `+Z):u.stack=Z}catch{}}throw u}}_request(s,M){typeof s=="string"?(M=M||{},M.url=s):M=s||{},M=mergeConfig$1(this.defaults,M);const{transitional:u,paramsSerializer:z,headers:Z}=M;u!==void 0&&validator.assertOptions(u,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),z!=null&&(utils$1.isFunction(z)?M.paramsSerializer={serialize:z}:validator.assertOptions(z,{encode:validators.function,serialize:validators.function},!0)),M.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?M.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:M.allowAbsoluteUrls=!0),validator.assertOptions(M,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),M.method=(M.method||this.defaults.method||"get").toLowerCase();let r=Z&&utils$1.merge(Z.common,Z[M.method]);Z&&utils$1.forEach(["delete","get","head","post","put","patch","common"],D=>{delete Z[D]}),M.headers=AxiosHeaders$1.concat(r,Z);const N=[];let X=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(M)===!1||(X=X&&j.synchronous,N.unshift(j.fulfilled,j.rejected))});const y=[];this.interceptors.response.forEach(function(j){y.push(j.fulfilled,j.rejected)});let G,V=0,S;if(!X){const D=[dispatchRequest.bind(this),void 0];for(D.unshift.apply(D,N),D.push.apply(D,y),S=D.length,G=Promise.resolve(M);V<S;)G=G.then(D[V++],D[V++]);return G}S=N.length;let R=M;for(V=0;V<S;){const D=N[V++],j=N[V++];try{R=D(R)}catch(C){j.call(this,C);break}}try{G=dispatchRequest.call(this,R)}catch(D){return Promise.reject(D)}for(V=0,S=y.length;V<S;)G=G.then(y[V++],y[V++]);return G}getUri(s){s=mergeConfig$1(this.defaults,s);const M=buildFullPath(s.baseURL,s.url,s.allowAbsoluteUrls);return buildURL(M,s.params,s.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function(s){Axios$1.prototype[s]=function(M,u){return this.request(mergeConfig$1(u||{},{method:s,url:M,data:(u||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(s){function M(u){return function(Z,r,N){return this.request(mergeConfig$1(N||{},{method:s,headers:u?{"Content-Type":"multipart/form-data"}:{},url:Z,data:r}))}}Axios$1.prototype[s]=M(),Axios$1.prototype[s+"Form"]=M(!0)});let CancelToken$1=class Zi{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let M;this.promise=new Promise(function(Z){M=Z});const u=this;this.promise.then(z=>{if(!u._listeners)return;let Z=u._listeners.length;for(;Z-- >0;)u._listeners[Z](z);u._listeners=null}),this.promise.then=z=>{let Z;const r=new Promise(N=>{u.subscribe(N),Z=N}).then(z);return r.cancel=function(){u.unsubscribe(Z)},r},s(function(Z,r,N){u.reason||(u.reason=new CanceledError$1(Z,r,N),M(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const M=this._listeners.indexOf(s);M!==-1&&this._listeners.splice(M,1)}toAbortSignal(){const s=new AbortController,M=u=>{s.abort(u)};return this.subscribe(M),s.signal.unsubscribe=()=>this.unsubscribe(M),s.signal}static source(){let s;return{token:new Zi(function(z){s=z}),cancel:s}}};function spread$1(o){return function(M){return o.apply(null,M)}}function isAxiosError$1(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$1).forEach(([o,s])=>{HttpStatusCode$1[s]=o});function createInstance(o){const s=new Axios$1(o),M=bind(Axios$1.prototype.request,s);return utils$1.extend(M,Axios$1.prototype,s,{allOwnKeys:!0}),utils$1.extend(M,s,null,{allOwnKeys:!0}),M.create=function(z){return createInstance(mergeConfig$1(o,z))},M}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function(s){return Promise.all(s)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios,createCancelToken=()=>axios.CancelToken.source();function createFetchUniq(o){const s={};return async function(u,z,Z){const r=s[Z];r&&r.cancel("Solicitud reemplazada por una nueva");const N=createCancelToken();return s[Z]=N,u?o.get(u,{params:z,cancelToken:N.token}).then(X=>{const y=(X==null?void 0:X.data)||null;return lodashExports.isNil(y)?null:y}).catch(()=>null):Promise.resolve(null)}}let fetchUniqInstance=null;function setFetchUniq(o){fetchUniqInstance=o}function getFetchUniq(){if(!fetchUniqInstance)throw new Error("fetchUniq has not been set. Please call setFetchUniq() before using it.");return fetchUniqInstance}const DEFAULT_FETCH_OPTIONS={refetchType:"active",retry:1,refetchOnMount:!1,refetchOnWindowFocus:!1,staleTime:5*60*1e3,keepPreviousData:!0};var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},define_process_env_default$1={},isServer=typeof window>"u"||"Deno"in globalThis;function noop(){}function isValidTimeout(o){return typeof o=="number"&&o>=0&&o!==1/0}function timeUntilStale(o,s){return Math.max(o+(s||0)-Date.now(),0)}function resolveStaleTime(o,s){return typeof o=="function"?o(s):o}function resolveEnabled(o,s){return typeof o=="function"?o(s):o}function replaceEqualDeep(o,s){if(o===s)return o;const M=isPlainArray(o)&&isPlainArray(s);if(M||isPlainObject$1(o)&&isPlainObject$1(s)){const u=M?o:Object.keys(o),z=u.length,Z=M?s:Object.keys(s),r=Z.length,N=M?[]:{},X=new Set(u);let y=0;for(let G=0;G<r;G++){const V=M?G:Z[G];(!M&&X.has(V)||M)&&o[V]===void 0&&s[V]===void 0?(N[V]=void 0,y++):(N[V]=replaceEqualDeep(o[V],s[V]),N[V]===o[V]&&o[V]!==void 0&&y++)}return z===r&&y===z?o:N}return s}function shallowEqualObjects(o,s){if(!s||Object.keys(o).length!==Object.keys(s).length)return!1;for(const M in o)if(o[M]!==s[M])return!1;return!0}function isPlainArray(o){return Array.isArray(o)&&o.length===Object.keys(o).length}function isPlainObject$1(o){if(!hasObjectPrototype(o))return!1;const s=o.constructor;if(s===void 0)return!0;const M=s.prototype;return!(!hasObjectPrototype(M)||!M.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(o)!==Object.prototype)}function hasObjectPrototype(o){return Object.prototype.toString.call(o)==="[object Object]"}function replaceData(o,s,M){if(typeof M.structuralSharing=="function")return M.structuralSharing(o,s);if(M.structuralSharing!==!1){if(define_process_env_default$1.NODE_ENV!=="production")try{return replaceEqualDeep(o,s)}catch(u){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${M.queryHash}]: ${u}`),u}return replaceEqualDeep(o,s)}return s}function keepPreviousData(o){return o}function shouldThrowError(o,s){return typeof o=="function"?o(...s):!!o}var FocusManager=(ht=class extends Subscribable{constructor(){super();cl(this,x1);cl(this,E1);cl(this,sl);w1(this,sl,s=>{if(!isServer&&window.addEventListener){const M=()=>s();return window.addEventListener("visibilitychange",M,!1),()=>{window.removeEventListener("visibilitychange",M)}}})}onSubscribe(){H0(this,E1)||this.setEventListener(H0(this,sl))}onUnsubscribe(){var s;this.hasListeners()||((s=H0(this,E1))==null||s.call(this),w1(this,E1,void 0))}setEventListener(s){var M;w1(this,sl,s),(M=H0(this,E1))==null||M.call(this),w1(this,E1,s(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(s){H0(this,x1)!==s&&(w1(this,x1,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(M=>{M(s)})}isFocused(){var s;return typeof H0(this,x1)=="boolean"?H0(this,x1):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},x1=new WeakMap,E1=new WeakMap,sl=new WeakMap,ht),focusManager=new FocusManager,OnlineManager=(f2=class extends Subscribable{constructor(){super();cl(this,He,!0);cl(this,he);cl(this,Qe);w1(this,Qe,s=>{if(!isServer&&window.addEventListener){const M=()=>s(!0),u=()=>s(!1);return window.addEventListener("online",M,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",M),window.removeEventListener("offline",u)}}})}onSubscribe(){H0(this,he)||this.setEventListener(H0(this,Qe))}onUnsubscribe(){var s;this.hasListeners()||((s=H0(this,he))==null||s.call(this),w1(this,he,void 0))}setEventListener(s){var M;w1(this,Qe,s),(M=H0(this,he))==null||M.call(this),w1(this,he,s(this.setOnline.bind(this)))}setOnline(s){H0(this,He)!==s&&(w1(this,He,s),this.listeners.forEach(u=>{u(s)}))}isOnline(){return H0(this,He)}},He=new WeakMap,he=new WeakMap,Qe=new WeakMap,f2),onlineManager=new OnlineManager;function pendingThenable(){let o,s;const M=new Promise((z,Z)=>{o=z,s=Z});M.status="pending",M.catch(()=>{});function u(z){Object.assign(M,z),delete M.resolve,delete M.reject}return M.resolve=z=>{u({status:"fulfilled",value:z}),o(z)},M.reject=z=>{u({status:"rejected",reason:z}),s(z)},M}function canFetch(o){return(o??"online")==="online"?onlineManager.isOnline():!0}var defaultScheduler=o=>setTimeout(o,0);function createNotifyManager(){let o=[],s=0,M=N=>{N()},u=N=>{N()},z=defaultScheduler;const Z=N=>{s?o.push(N):z(()=>{M(N)})},r=()=>{const N=o;o=[],N.length&&z(()=>{u(()=>{N.forEach(X=>{M(X)})})})};return{batch:N=>{let X;s++;try{X=N()}finally{s--,s||r()}return X},batchCalls:N=>(...X)=>{Z(()=>{N(...X)})},schedule:Z,setNotifyFunction:N=>{M=N},setBatchNotifyFunction:N=>{u=N},setScheduler:N=>{z=N}}}var notifyManager=createNotifyManager();function fetchState(o,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(s.networkMode)?"fetching":"paused",...o===void 0&&{error:null,status:"pending"}}}var QueryObserver=(E2=class extends Subscribable{constructor(s,M){super();cl(this,g1);cl(this,Sl);cl(this,R1);cl(this,Nt);cl(this,Nl);cl(this,ge);cl(this,qe);cl(this,Ne);cl(this,Ge);cl(this,Gt);cl(this,$e);cl(this,lt);cl(this,ke);cl(this,Ce);cl(this,Xe);cl(this,tt,new Set);this.options=M,w1(this,Sl,s),w1(this,Ge,null),w1(this,Ne,pendingThenable()),this.options.experimental_prefetchInRender||H0(this,Ne).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(M)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(H0(this,R1).addObserver(this),shouldFetchOnMount(H0(this,R1),this.options)?ol(this,g1,jt).call(this):this.updateResult(),ol(this,g1,F2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(H0(this,R1),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(H0(this,R1),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ol(this,g1,U2).call(this),ol(this,g1,J2).call(this),H0(this,R1).removeObserver(this)}setOptions(s){const M=this.options,u=H0(this,R1);if(this.options=H0(this,Sl).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,H0(this,R1))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ol(this,g1,v2).call(this),H0(this,R1).setOptions(this.options),M._defaulted&&!shallowEqualObjects(this.options,M)&&H0(this,Sl).getQueryCache().notify({type:"observerOptionsUpdated",query:H0(this,R1),observer:this});const z=this.hasListeners();z&&shouldFetchOptionally(H0(this,R1),u,this.options,M)&&ol(this,g1,jt).call(this),this.updateResult(),z&&(H0(this,R1)!==u||resolveEnabled(this.options.enabled,H0(this,R1))!==resolveEnabled(M.enabled,H0(this,R1))||resolveStaleTime(this.options.staleTime,H0(this,R1))!==resolveStaleTime(M.staleTime,H0(this,R1)))&&ol(this,g1,k2).call(this);const Z=ol(this,g1,C2).call(this);z&&(H0(this,R1)!==u||resolveEnabled(this.options.enabled,H0(this,R1))!==resolveEnabled(M.enabled,H0(this,R1))||Z!==H0(this,Xe))&&ol(this,g1,j2).call(this,Z)}getOptimisticResult(s){const M=H0(this,Sl).getQueryCache().build(H0(this,Sl),s),u=this.createResult(M,s);return shouldAssignObserverCurrentProperties(this,u)&&(w1(this,Nl,u),w1(this,qe,this.options),w1(this,ge,H0(this,R1).state)),u}getCurrentResult(){return H0(this,Nl)}trackResult(s,M){return new Proxy(s,{get:(u,z)=>(this.trackProp(z),M==null||M(z),Reflect.get(u,z))})}trackProp(s){H0(this,tt).add(s)}getCurrentQuery(){return H0(this,R1)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const M=H0(this,Sl).defaultQueryOptions(s),u=H0(this,Sl).getQueryCache().build(H0(this,Sl),M);return u.fetch().then(()=>this.createResult(u,M))}fetch(s){return ol(this,g1,jt).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),H0(this,Nl)))}createResult(s,M){var c0;const u=H0(this,R1),z=this.options,Z=H0(this,Nl),r=H0(this,ge),N=H0(this,qe),y=s!==u?s.state:H0(this,Nt),{state:G}=s;let V={...G},S=!1,R;if(M._optimisticResults){const P=this.hasListeners(),b0=!P&&shouldFetchOnMount(s,M),a0=P&&shouldFetchOptionally(s,u,M,z);(b0||a0)&&(V={...V,...fetchState(G.data,s.options)}),M._optimisticResults==="isRestoring"&&(V.fetchStatus="idle")}let{error:D,errorUpdatedAt:j,status:C}=V;R=V.data;let B=!1;if(M.placeholderData!==void 0&&R===void 0&&C==="pending"){let P;Z!=null&&Z.isPlaceholderData&&M.placeholderData===(N==null?void 0:N.placeholderData)?(P=Z.data,B=!0):P=typeof M.placeholderData=="function"?M.placeholderData((c0=H0(this,lt))==null?void 0:c0.state.data,H0(this,lt)):M.placeholderData,P!==void 0&&(C="success",R=replaceData(Z==null?void 0:Z.data,P,M),S=!0)}if(M.select&&R!==void 0&&!B)if(Z&&R===(r==null?void 0:r.data)&&M.select===H0(this,Gt))R=H0(this,$e);else try{w1(this,Gt,M.select),R=M.select(R),R=replaceData(Z==null?void 0:Z.data,R,M),w1(this,$e,R),w1(this,Ge,null)}catch(P){w1(this,Ge,P)}H0(this,Ge)&&(D=H0(this,Ge),R=H0(this,$e),j=Date.now(),C="error");const F=V.fetchStatus==="fetching",U=C==="pending",E=C==="error",g=U&&F,f=R!==void 0,o0={status:C,fetchStatus:V.fetchStatus,isPending:U,isSuccess:C==="success",isError:E,isInitialLoading:g,isLoading:g,data:R,dataUpdatedAt:V.dataUpdatedAt,error:D,errorUpdatedAt:j,failureCount:V.fetchFailureCount,failureReason:V.fetchFailureReason,errorUpdateCount:V.errorUpdateCount,isFetched:V.dataUpdateCount>0||V.errorUpdateCount>0,isFetchedAfterMount:V.dataUpdateCount>y.dataUpdateCount||V.errorUpdateCount>y.errorUpdateCount,isFetching:F,isRefetching:F&&!U,isLoadingError:E&&!f,isPaused:V.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:E&&f,isStale:isStale(s,M),refetch:this.refetch,promise:H0(this,Ne)};if(this.options.experimental_prefetchInRender){const P=O0=>{o0.status==="error"?O0.reject(o0.error):o0.data!==void 0&&O0.resolve(o0.data)},b0=()=>{const O0=w1(this,Ne,o0.promise=pendingThenable());P(O0)},a0=H0(this,Ne);switch(a0.status){case"pending":s.queryHash===u.queryHash&&P(a0);break;case"fulfilled":(o0.status==="error"||o0.data!==a0.value)&&b0();break;case"rejected":(o0.status!=="error"||o0.error!==a0.reason)&&b0();break}}return o0}updateResult(){const s=H0(this,Nl),M=this.createResult(H0(this,R1),this.options);if(w1(this,ge,H0(this,R1).state),w1(this,qe,this.options),H0(this,ge).data!==void 0&&w1(this,lt,H0(this,R1)),shallowEqualObjects(M,s))return;w1(this,Nl,M);const u=()=>{if(!s)return!0;const{notifyOnChangeProps:z}=this.options,Z=typeof z=="function"?z():z;if(Z==="all"||!Z&&!H0(this,tt).size)return!0;const r=new Set(Z??H0(this,tt));return this.options.throwOnError&&r.add("error"),Object.keys(H0(this,Nl)).some(N=>{const X=N;return H0(this,Nl)[X]!==s[X]&&r.has(X)})};ol(this,g1,Wi).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ol(this,g1,F2).call(this)}},Sl=new WeakMap,R1=new WeakMap,Nt=new WeakMap,Nl=new WeakMap,ge=new WeakMap,qe=new WeakMap,Ne=new WeakMap,Ge=new WeakMap,Gt=new WeakMap,$e=new WeakMap,lt=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Xe=new WeakMap,tt=new WeakMap,g1=new WeakSet,jt=function(s){ol(this,g1,v2).call(this);let M=H0(this,R1).fetch(this.options,s);return s!=null&&s.throwOnError||(M=M.catch(noop)),M},k2=function(){ol(this,g1,U2).call(this);const s=resolveStaleTime(this.options.staleTime,H0(this,R1));if(isServer||H0(this,Nl).isStale||!isValidTimeout(s))return;const u=timeUntilStale(H0(this,Nl).dataUpdatedAt,s)+1;w1(this,ke,setTimeout(()=>{H0(this,Nl).isStale||this.updateResult()},u))},C2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(H0(this,R1)):this.options.refetchInterval)??!1},j2=function(s){ol(this,g1,J2).call(this),w1(this,Xe,s),!(isServer||resolveEnabled(this.options.enabled,H0(this,R1))===!1||!isValidTimeout(H0(this,Xe))||H0(this,Xe)===0)&&w1(this,Ce,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&ol(this,g1,jt).call(this)},H0(this,Xe)))},F2=function(){ol(this,g1,k2).call(this),ol(this,g1,j2).call(this,ol(this,g1,C2).call(this))},U2=function(){H0(this,ke)&&(clearTimeout(H0(this,ke)),w1(this,ke,void 0))},J2=function(){H0(this,Ce)&&(clearInterval(H0(this,Ce)),w1(this,Ce,void 0))},v2=function(){const s=H0(this,Sl).getQueryCache().build(H0(this,Sl),this.options);if(s===H0(this,R1))return;const M=H0(this,R1);w1(this,R1,s),w1(this,Nt,s.state),this.hasListeners()&&(M==null||M.removeObserver(this),s.addObserver(this))},Wi=function(s){notifyManager.batch(()=>{s.listeners&&this.listeners.forEach(M=>{M(H0(this,Nl))}),H0(this,Sl).getQueryCache().notify({query:H0(this,R1),type:"observerResultsUpdated"})})},E2);function shouldLoadOnMount(o,s){return resolveEnabled(s.enabled,o)!==!1&&o.state.data===void 0&&!(o.state.status==="error"&&s.retryOnMount===!1)}function shouldFetchOnMount(o,s){return shouldLoadOnMount(o,s)||o.state.data!==void 0&&shouldFetchOn(o,s,s.refetchOnMount)}function shouldFetchOn(o,s,M){if(resolveEnabled(s.enabled,o)!==!1&&resolveStaleTime(s.staleTime,o)!=="static"){const u=typeof M=="function"?M(o):M;return u==="always"||u!==!1&&isStale(o,s)}return!1}function shouldFetchOptionally(o,s,M,u){return(o!==s||resolveEnabled(u.enabled,o)===!1)&&(!M.suspense||o.state.status!=="error")&&isStale(o,M)}function isStale(o,s){return resolveEnabled(s.enabled,o)!==!1&&o.isStaleByTime(resolveStaleTime(s.staleTime,o))}function shouldAssignObserverCurrentProperties(o,s){return!shallowEqualObjects(o.getCurrentResult(),s)}var VUE_QUERY_CLIENT="VUE_QUERY_CLIENT";function getClientKey(o){const s=o?`:${o}`:"";return`${VUE_QUERY_CLIENT}${s}`}function updateState(o,s){Object.keys(o).forEach(M=>{o[M]=s[M]})}function _cloneDeep(o,s,M="",u=0){if(s){const z=s(o,M,u);if(z===void 0&&vue.isRef(o)||z!==void 0)return z}if(Array.isArray(o))return o.map((z,Z)=>_cloneDeep(z,s,String(Z),u+1));if(typeof o=="object"&&isPlainObject(o)){const z=Object.entries(o).map(([Z,r])=>[Z,_cloneDeep(r,s,Z,u+1)]);return Object.fromEntries(z)}return o}function cloneDeep(o,s){return _cloneDeep(o,s)}function cloneDeepUnref(o,s=!1){return cloneDeep(o,(M,u,z)=>{if(z===1&&u==="queryKey")return cloneDeepUnref(M,!0);if(s&&isFunction$1(M))return cloneDeepUnref(M(),s);if(vue.isRef(M))return cloneDeepUnref(vue.unref(M),s)})}function isPlainObject(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const s=Object.getPrototypeOf(o);return s===null||s===Object.prototype}function isFunction$1(o){return typeof o=="function"}function useQueryClient(o=""){if(!vue.hasInjectionContext())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const s=getClientKey(o),M=vue.inject(s);if(!M)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return M}var define_process_env_default={};function useBaseQuery(o,s,M){define_process_env_default.NODE_ENV==="development"&&(vue.getCurrentScope()||console.warn('vue-query composable like "useQuery()" should only be used inside a "setup()" function or a running effect scope. They might otherwise lead to memory leaks.'));const u=useQueryClient(),z=vue.computed(()=>{var j;const R=cloneDeepUnref(s);typeof R.enabled=="function"&&(R.enabled=R.enabled());const D=u.defaultQueryOptions(R);return D._optimisticResults=(j=u.isRestoring)!=null&&j.value?"isRestoring":"optimistic",D}),Z=new o(u,z.value),r=z.value.shallow?vue.shallowReactive(Z.getCurrentResult()):vue.reactive(Z.getCurrentResult());let N=()=>{};u.isRestoring&&vue.watch(u.isRestoring,R=>{R||(N(),N=Z.subscribe(D=>{updateState(r,D)}))},{immediate:!0});const X=()=>{Z.setOptions(z.value),updateState(r,Z.getCurrentResult())};vue.watch(z,X),vue.onScopeDispose(()=>{N()});const y=(...R)=>(X(),r.refetch(...R)),G=()=>new Promise((R,D)=>{let j=()=>{};const C=()=>{if(z.value.enabled!==!1){Z.setOptions(z.value);const B=Z.getOptimisticResult(z.value);B.isStale?(j(),Z.fetchOptimistic(z.value).then(R,F=>{shouldThrowError(z.value.throwOnError,[F,Z.getCurrentQuery()])?D(F):R(Z.getCurrentResult())})):(j(),R(B))}};C(),j=vue.watch(z,C)});vue.watch(()=>r.error,R=>{if(r.isError&&!r.isFetching&&shouldThrowError(z.value.throwOnError,[R,Z.getCurrentQuery()]))throw R});const V=z.value.shallow?vue.shallowReadonly(r):vue.readonly(r),S=vue.toRefs(V);for(const R in r)typeof r[R]=="function"&&(S[R]=r[R]);return S.suspense=G,S.refetch=y,S}function useQuery(o,s){return useBaseQuery(QueryObserver,o)}const getValue=(o,s=null)=>{try{return(vue.isRef(o)?o==null?void 0:o.value:o)??s}catch{return s}};function useFetch(o,s,M,u,z){const Z=`${s}_${lodashExports.uniqueId()}`,r=useQueryClient(),N=async B=>{const F=getFetchUniq();if(!F)throw new Error("FetchUniq provider is not available");return B?F(B,getValue(M,{}),Z).then(U=>u?u(U):U):Promise.resolve(null)},X={...DEFAULT_FETCH_OPTIONS,...z},y=vue.computed(()=>[...getValue(o,[]),getValue(M,{})]),G=()=>useQuery({queryKey:y,queryFn:()=>N(getValue(s,"")),...X}),V=async()=>{r.invalidateQueries({queryKey:getValue(o),exact:!1,refetchType:X.refetchType})},{isFetching:S,isPending:R,data:D,refetch:j}=G(),C=vue.computed(()=>D.value??(z==null?void 0:z.defaultValue));return{pending:R,fetching:S,data:C,refetch:j,invalidate:V}}function useFetchPages(o,s,M,u){const z={...DEFAULT_FETCH_OPTIONS,...u},Z=`${M}_${lodashExports.uniqueId()}`,r=vue.computed(()=>{const E=formatPagination(getValue(o,{})),g=getValue(s,{});return lodashExports.cloneDeep({...g,...E})}),N=vue.computed({get(){var E;return((E=getValue(o))==null?void 0:E.page)||1},set(E){vue.isRef(o)?o.value.page=E:o.page=E}}),X=vue.computed({get(){var E;return((E=getValue(o))==null?void 0:E.rowsNumber)||0},set(E){vue.isRef(o)?o.value.rowsNumber=E:o.rowsNumber=E}}),y=(E,g)=>{const f=getFetchUniq();if(!f)throw new Error("FetchUniq provider is not available");return f(getValue(E,""),getValue(g),Z)},G=useQueryClient(),V=async()=>{G.invalidateQueries({queryKey:[getValue(M),r.value],exact:!1,refetchType:"active"})},{isFetching:S,isPending:R,data:D,refetch:j,isPlaceholderData:C}=useQuery({queryKey:[M,r],queryFn:()=>y(M,r),placeholderData:keepPreviousData,...z});vue.watch(D,E=>{X.value=(E==null?void 0:E.count)||0},{immediate:!0});const B=()=>{C.value||(N.value=Math.max(N.value-1,1))},F=()=>{C.value||(N.value=N.value+1)},U=vue.computed(()=>{var E;return((E=D.value)==null?void 0:E.items)||[]});return{pending:R,fetching:S,items:U,refetch:j,invalidate:V,count:X,page:N,prevPage:B,nextPage:F,isPlaceholderData:C}}function formatPagination(o){const s=(o.page-1)*o.rowsPerPage,M=o.rowsPerPage;return{startRow:s,fetchCount:M,sortBy:o.sortBy,descending:o.descending}}const ID_KEY="_id";function useDragAndDrop(o,s,M,u){const z=(u==null?void 0:u.idKey)??ID_KEY,Z=()=>{var S;(S=o.value)==null||S.forEach(R=>{let D=u!=null&&u.idKey?R[u.idKey]:null;D===null&&(D=lodashExports.uniqueId()),R[z]=String(D)})};vue.watch(()=>{var S;return(S=o.value)==null?void 0:S.length},()=>{Z()},{immediate:!0});function r(){return!0}function N(S){S.dataTransfer.setData("id",S.target.id),S.dataTransfer.dropEffect="move"}function X(S){if(S.preventDefault(),!S.target)return;const R=S.target.closest(s);R&&(R!=null&&R.contains(S.relatedTarget)||R.classList.remove("drag-enter"))}function y(S){if(S.preventDefault(),!S.target)return;const R=S.target.closest(s);R&&R.classList.add("drag-enter")}function G(S){S.preventDefault();const R=S.target.closest(s);if(V(R),!(R!=null&&R.draggable))return;const D=S.dataTransfer.getData("id");if(!R)return;const j=(R==null?void 0:R.id)??null;if(j===null)return;const C=lodashExports.cloneDeep(o.value),B=C.findIndex(E=>E[z]==D),F=C.findIndex(E=>E[z]==j);if(B===-1||F===-1)return;const[U]=C.splice(B,1);C.splice(F,0,U),o.value=C,M(C)}function V(S){const R=S==null?void 0:S.parentElement;if(!R)return;const D=R.children;for(let j=0;j<D.length;j++)D[j].classList.remove("drag-enter")}return{handler:r,onDragLeave:X,onDragStart:N,onDragOver:y,onDrop:G,idKey:z}}function useWidgetEvent(){const o=vue.inject("emit");return{emitEvent:(M,u)=>{o("on-event",{code:M,payload:u})}}}function useContext(){const o=vue.inject("context"),s=vue.computed(()=>o.product.value),M=o.slide,u=o.isPublic,z=o.images,Z=o.selectedPackProduct,r=vue.computed(()=>!u.value),N=vue.computed(()=>{var y;return((y=s.value)==null?void 0:y.detalle_pack)||[]}),X=vue.computed(()=>{var y;return((y=s.value)==null?void 0:y.props)||{}});return vue.watch(s,()=>{var G;const y=((G=s.value)==null?void 0:G.images)||[];z.value=y},{immediate:!0}),vue.watch(N,y=>{var G;y&&(Z.value=(G=y[0])==null?void 0:G.DETALLE)},{immediate:!0,deep:!0}),{product:s,isPublic:u,isPrivate:r,images:z,detallePack:N,productProps:X,selectedPackProduct:Z,slide:M,gamaProps:o.gamaProps,count:o.count}}const _hoisted_1$9=["id","draggable"],_hoisted_2$7=["onClick"],_hoisted_3$5={key:0,class:"row items-center justify-center bg-grey-2 media-card",style:{"border-radius":"8px",border:"1px dashed #c9c9c9"}},_hoisted_4$4={key:2,class:"media-card"},_hoisted_5$4=["src"],_hoisted_6$2={class:"video-icon"},_sfc_main$a=vue.defineComponent({__name:"ImagesMiniature",setup(o){const{images:s,slide:M,isPrivate:u}=useContext(),{emitEvent:z}=useWidgetEvent(),{handler:Z,onDragLeave:r,onDragOver:N,onDragStart:X,onDrop:y,idKey:G}=useDragAndDrop(s,".image-miniature",V=>z("update_images_position",{images:V}));return(V,S)=>vue.unref(s).length?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,style:{height:"600px","overflow-y":"auto","min-width":"100px"},onDragleave:S[1]||(S[1]=(...R)=>vue.unref(r)&&vue.unref(r)(...R)),onDragover:S[2]||(S[2]=(...R)=>vue.unref(N)&&vue.unref(N)(...R)),onDrop:S[3]||(S[3]=(...R)=>vue.unref(y)&&vue.unref(y)(...R))},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(s),(R,D)=>(vue.openBlock(),vue.createElementBlock("div",{class:"q-mb-md image-miniature",key:D,id:R[vue.unref(G)],onDragstart:S[0]||(S[0]=(...j)=>vue.unref(X)&&vue.unref(X)(...j)),draggable:vue.unref(u)},[R?(vue.openBlock(),vue.createElementBlock("div",{key:0,onClick:j=>M.value=D+1,style:vue.normalizeStyle({cursor:"pointer",borderWidth:"0.7px",borderStyle:"solid",borderRadius:"0.5rem",borderColor:D===vue.unref(M)-1?"#015979 ":"transparent"}),class:"q-py-sm q-px-sm win-card"},[R!=null&&R.location?R.tipo==="image"?(vue.openBlock(),vue.createBlock(QImg,{key:1,src:R.location,fit:"cover",class:"media-card"},null,8,["src"])):R.tipo==="video"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$4,[vue.createElementVNode("video",{src:R.location,style:{width:"100%",height:"100%",background:"black"}},null,8,_hoisted_5$4),vue.createElementVNode("div",_hoisted_6$2,[vue.createVNode(QIcon,{size:"lg",name:"o_play_circle",color:"white"})])])):vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[vue.createVNode(QIcon,{name:"upload_file",color:"grey-5",size:"33px"})]))],12,_hoisted_2$7)):vue.createCommentVNode("",!0)],40,_hoisted_1$9))),128))],32)),[[Mutation,vue.unref(Z)]]):vue.createCommentVNode("",!0)}}),ImagesMiniature=_export_sfc(_sfc_main$a,[["__scopeId","data-v-481b6fef"]]),_hoisted_1$8={class:"text-weight-medium"},_hoisted_2$6={key:0,class:"row justify-end items-center"},_sfc_main$9=vue.defineComponent({__name:"ProductCustomizableIndicator",props:{label:{default:"A medida"}},setup(o){const{productProps:s}=useContext(),M=vue.computed(()=>{var u;return!!((u=s.value)!=null&&u.a_medida)});return(u,z)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[M.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6,[vue.createVNode(QChip,{color:"accent-1","text-color":"white",size:"12px"},{default:vue.withCtx(()=>z[0]||(z[0]=[vue.createTextVNode("A medida")])),_:1,__:[0]})])):vue.createCommentVNode("",!0)]))}}),_hoisted_1$7={class:"row q-mt-md q-pa-sm",style:{"overflow-x":"auto"}},_hoisted_2$5=["onClick"],_hoisted_3$4={class:"q-pa-sm"},_hoisted_4$3={class:"text-weight-medium ellipsis"},_hoisted_5$3={class:"text-caption"},_hoisted_6$1={key:0,class:"q-mt-md"},_hoisted_7$1={class:"text-h6"},_sfc_main$8=vue.defineComponent({__name:"ProductDetallePack",setup(o){const{detallePack:s,selectedPackProduct:M,gamaProps:u}=useContext(),z=r=>{M.value=r},Z=vue.computed(()=>{var r,N;return((r=M.value)==null?void 0:r.PROPS)||((N=M.value)==null?void 0:N.props)||{}});return(r,N)=>{var X;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(s),(y,G)=>{var V,S,R,D;return vue.openBlock(),vue.createElementBlock("div",{key:G,class:vue.normalizeClass(`q-mr-md glass-card detalle-pack ${((V=vue.unref(M))==null?void 0:V.ID_PRODUCTO)==y.ID_PRODUCTO_DETALLE?"selected":""}`),onClick:j=>z(y.DETALLE)},[(R=(S=y==null?void 0:y.DETALLE)==null?void 0:S.ARCHIVOS)!=null&&R.length?(vue.openBlock(),vue.createBlock(QImg,{key:0,src:y.DETALLE.ARCHIVOS[0].LOCATION||"placeholder.webp",style:{height:"120px","border-radius":"8px"},fit:"contain"},null,8,["src"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$4,[vue.createElementVNode("div",_hoisted_4$3,vue.toDisplayString((D=y==null?void 0:y.DETALLE)==null?void 0:D.NOMBRE),1),vue.createElementVNode("div",_hoisted_5$3,vue.toDisplayString(y==null?void 0:y.CANTIDAD)+"X",1)])],10,_hoisted_2$5)}),128))]),vue.unref(M)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createElementVNode("div",_hoisted_7$1,vue.toDisplayString(vue.unref(M).NOMBRE),1),vue.createElementVNode("div",null,"SKU: "+vue.toDisplayString((X=vue.unref(M).PROPS)==null?void 0:X.sku),1),vue.createVNode(_sfc_main$e,{class:"q-mt-md","product-props":Z.value,"gama-props":vue.unref(u)},null,8,["product-props","gama-props"])])):vue.createCommentVNode("",!0)],64)}}}),ProductDetallePack=_export_sfc(_sfc_main$8,[["__scopeId","data-v-f898c9ff"]]),_hoisted_1$6={class:"product-image-header"},_hoisted_2$4={class:"product-code"},_hoisted_3$3={class:"media-count"},_sfc_main$7=vue.defineComponent({__name:"ProductImageHeader",setup(o){const{product:s,images:M,slide:u,isPrivate:z}=useContext(),Z=vue.computed(()=>{var y,G;return(((G=(y=s.value)==null?void 0:y.tags)==null?void 0:G.split(","))||[]).filter(Boolean)}),r=vue.computed(()=>{var y;return(y=s.value)==null?void 0:y.codigo}),{emitEvent:N}=useWidgetEvent(),X=()=>{var y;return N("edit_tags",{id:(y=s.value)==null?void 0:y.id})};return(y,G)=>{var V,S;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createElementVNode("div",_hoisted_2$4,vue.toDisplayString(r.value),1),vue.createElementVNode("div",{onClick:X,class:"tags",style:vue.normalizeStyle({overflowX:"auto",cursor:vue.unref(z)?"pointer":"default"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Z.value,R=>(vue.openBlock(),vue.createBlock(ProductTag,{tag:R},null,8,["tag"]))),256)),!Z.value.length&&vue.unref(z)?(vue.openBlock(),vue.createBlock(QChip,{key:0,class:"tag",size:"12px"},{default:vue.withCtx(()=>G[0]||(G[0]=[vue.createTextVNode("Editar etiquetas")])),_:1,__:[0]})):vue.createCommentVNode("",!0)],4),vue.createElementVNode("div",_hoisted_3$3,[vue.createTextVNode(vue.toDisplayString((V=vue.unref(M))!=null&&V.length?vue.unref(u):0)+"/"+vue.toDisplayString(((S=vue.unref(M))==null?void 0:S.length)||0)+" ",1),vue.createVNode(QIcon,{name:"sym_o_image",size:"sm",class:"q-ml-xs"})])])}}}),ProductImageHeader=_export_sfc(_sfc_main$7,[["__scopeId","data-v-86923709"]]),_hoisted_1$5={key:0,class:"q-mt-md text-black col-12"},_sfc_main$6=vue.defineComponent({__name:"ProductLongDescription",setup(o){const{selectedPackProduct:s,product:M}=useContext(),u=vue.computed(()=>{var z,Z;return((z=s.value)==null?void 0:z.DESCRIPCION)||((Z=M.value)==null?void 0:Z.descripcion)});return(z,Z)=>u.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[Z[0]||(Z[0]=vue.createElementVNode("div",{class:"font-bold text-h6"},"Información del producto",-1)),vue.createElementVNode("div",null,vue.toDisplayString(u.value),1)])):vue.createCommentVNode("",!0)}}),_hoisted_1$4={class:"full-width simple-grid"},_hoisted_2$3={class:"bg-grey-2 values"},_hoisted_3$2={class:"text-bold"},_hoisted_4$2={class:"text-bold"},_hoisted_5$2={class:"text-bold"},convertToMeters=(o,s)=>{switch(s){case"m":return o;case"cm":return o/100;case"mm":return o/1e3;default:throw new Error(`Unidad no soportada: ${s}`)}},getPanelesFn=o=>{const s=Number(o.ancho)||0,M=Number(o.alto)||0,u=o.unidad_de_medida||"cm",z=convertToMeters(s,u),Z=convertToMeters(M,u);let r=z*Z;return r<=0&&(r=1),N=>{const X=1/r,y=getSquareMeters(N);return Math.ceil(y*X)}},getSquareMeters=o=>{const s=Number((o==null?void 0:o.ancho)||0),M=Number((o==null?void 0:o.alto)||0);return s*M},_sfc_main$5=vue.defineComponent({__name:"ProductConfiguration",props:vue.mergeModels({product:{}},{quantity:{required:!0,default:1},quantityModifiers:{},detail:{required:!0},detailModifiers:{}}),emits:["update:quantity","update:detail"],setup(o){const s=o,M=vue.useModel(o,"quantity"),u=vue.useModel(o,"detail"),z=vue.computed(()=>lodashExports.mapKeys(s.product||{},(j,C)=>C.toUpperCase())),Z=vue.computed(()=>{var j;return((j=z.value)==null?void 0:j.PROPS)||{}}),r=vue.computed(()=>Z.value.unidad_de_medida||"cm"),N=vue.computed(()=>getPanelesFn(Z.value||{}));vue.watch(u,j=>{M.value=N.value(u.value)},{immediate:!0,deep:!0});const X=j=>j.toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2}),y=vue.computed(()=>{var C;return(Number((C=z.value)==null?void 0:C.PRECIO)||0)*M.value}),G=vue.computed(()=>getSquareMeters(u.value)),V=vue.computed(()=>{var j;return convertToMeters(Number((j=Z.value)==null?void 0:j.ancho)||0,r.value)}),S=vue.computed(()=>{var j;return convertToMeters(Number((j=Z.value)==null?void 0:j.alto)||0,r.value)}),R=vue.computed(()=>V.value*S.value),D=vue.computed(()=>{var C;const j=((C=z.value)==null?void 0:C.PRECIO)||0;return!j||!R.value?0:toCurrency(j/R.value)});return vue.watch(()=>u.value.ancho,j=>{j%V.value!==0&&(u.value.ancho=Math.ceil(j/V.value)*V.value)}),vue.watch(()=>u.value.alto,j=>{j%S.value!==0&&(u.value.alto=Math.ceil(j/S.value)*S.value)}),(j,C)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[C[6]||(C[6]=vue.createElementVNode("div",{class:"prices text-bold q-mb-md"}," Define la configuración para este producto ",-1)),vue.createElementVNode("div",_hoisted_1$4,[vue.createElementVNode("div",null,[vue.createVNode(QInput,{type:"number",outlined:"",class:"q-mb-md",modelValue:u.value.ancho,"onUpdate:modelValue":C[0]||(C[0]=B=>u.value.ancho=B),modelModifiers:{number:!0},label:"Ancho",suffix:"metros",step:V.value,min:"0"},null,8,["modelValue","step"]),vue.createVNode(QInput,{type:"number",outlined:"",modelValue:u.value.alto,"onUpdate:modelValue":C[1]||(C[1]=B=>u.value.alto=B),modelModifiers:{number:!0},label:"Alto",suffix:"metros",step:S.value,min:"0"},null,8,["modelValue","step"])]),vue.createElementVNode("div",_hoisted_2$3,[vue.createElementVNode("div",null,[vue.createTextVNode(" Área panel: "+vue.toDisplayString(X(R.value))+" m",1),C[2]||(C[2]=vue.createElementVNode("sup",null,"2",-1))]),vue.createElementVNode("div",null,[C[3]||(C[3]=vue.createTextVNode(" Importe m")),C[4]||(C[4]=vue.createElementVNode("sup",null,"2",-1)),vue.createTextVNode(": "+vue.toDisplayString(D.value),1)]),vue.createElementVNode("div",_hoisted_3$2,[vue.createTextVNode("Área total: "+vue.toDisplayString(X(G.value))+" m",1),C[5]||(C[5]=vue.createElementVNode("sup",null,"2",-1))]),vue.createElementVNode("div",_hoisted_4$2,"Paneles: "+vue.toDisplayString(M.value),1),vue.createElementVNode("div",_hoisted_5$2,"Importe total: "+vue.toDisplayString(vue.unref(toCurrency)(y.value)),1)])])],64))}}),ProductConfiguration=_export_sfc(_sfc_main$5,[["__scopeId","data-v-c9fce151"]]),_hoisted_1$3={key:0,class:"q-mt-lg"},_hoisted_2$2={class:"row justify-between q-mt-md"},_hoisted_3$1={key:0,class:"counter q-mr-lg"},_hoisted_4$1={class:"quantity"},_hoisted_5$1={key:1},_sfc_main$4=vue.defineComponent({__name:"ProductShopcartActions",setup(o){const{product:s,productProps:M}=useContext(),{emitEvent:u}=useWidgetEvent(),z=vue.computed(()=>{var V;return!!((V=M.value)!=null&&V.a_medida)}),Z=vue.ref(z.value?0:1),r=vue.ref({}),N=vue.computed(()=>z.value&&Z.value<=0),X=()=>{Z.value=Math.max(1,Z.value-1)},y=()=>{Z.value++},G=()=>{const V=lodashExports.omit(s.value,"images","table_estado");u("add_to_shopcart",{product:lodashExports.mapKeys({...V,id_producto:V.id},(S,R)=>R.toUpperCase()),quantity:Z.value,props:r.value||{}})};return(V,S)=>vue.unref(s)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[z.value?(vue.openBlock(),vue.createBlock(ProductConfiguration,{key:0,product:vue.unref(s),quantity:Z.value,"onUpdate:quantity":S[0]||(S[0]=R=>Z.value=R),detail:r.value,"onUpdate:detail":S[1]||(S[1]=R=>r.value=R)},null,8,["product","quantity","detail"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$2,[z.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$1,[vue.createVNode(IconButton,{outline:"",size:"sm",onClick:X,icon:"remove"}),vue.createElementVNode("span",_hoisted_4$1,vue.toDisplayString(Z.value),1),vue.createVNode(IconButton,{outline:"",size:"sm",custom:"",onClick:y,icon:"add"})])),vue.createVNode(_sfc_main$Q,{onClick:G,disable:N.value,main:"",label:"Agregar al carrito"},null,8,["disable"])])])):vue.createCommentVNode("",!0)}}),ProductShopcartActions=_export_sfc(_sfc_main$4,[["__scopeId","data-v-42882252"]]),_hoisted_1$2={style:{"font-size":"16px","max-height":"300px","overflow-y":"auto"}},_hoisted_2$1={key:0,class:"text-black"},_sfc_main$3=vue.defineComponent({__name:"ProductShortDescription",setup(o){const{product:s}=useContext(),M=vue.computed(()=>{var u;return((u=s.value)==null?void 0:u.descripcion_corta)||""});return(u,z)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[M.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,vue.toDisplayString(M.value),1)):vue.createCommentVNode("",!0)]))}}),_hoisted_1$1={key:0,class:"visibility-icon-container top-right"},_sfc_main$2=vue.defineComponent({__name:"PublicImageButton",setup(o){const{images:s,slide:M,isPrivate:u}=useContext(),z=vue.computed(()=>{var X;return(X=s.value[M.value-1])==null?void 0:X.id}),Z=vue.computed(()=>{var X;return(X=s.value[M.value-1])==null?void 0:X.public}),{emitEvent:r}=useWidgetEvent(),N=()=>r("change_image_visibility",{ID_ARCHIVO:z.value,PUBLICO:!Z.value});return(X,y)=>{var G;return(G=vue.unref(s))!=null&&G.length&&vue.unref(u)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[vue.createVNode(QBtn,{onClick:vue.withModifiers(N,["stop"]),size:"12px",icon:Z.value?"public":"public_off","text-color":Z.value?"green":"red",color:"white",padding:"4px",round:""},{default:vue.withCtx(()=>[vue.createVNode(QTooltip,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Z.value?"Visible al público":"Privado"),1)]),_:1})]),_:1},8,["icon","text-color"])])):vue.createCommentVNode("",!0)}}}),PublicImageButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-3a4b0b68"]]),_hoisted_1={class:"grid"},_hoisted_2={class:"images-container"},_hoisted_3={class:"carousel-container"},_hoisted_4={class:"text-h5 text-bold"},_hoisted_5={class:"row justify-between"},_hoisted_6={key:0},_hoisted_7={class:"row items-center justify-between"},_hoisted_8={class:"text-weight-medium"},_hoisted_9={class:"row"},_sfc_main$1=vue.defineComponent({__name:"LinvermediaProductDetail",props:{isPublic:{type:Boolean},fetching:{type:Boolean},scale:{},count:{},view:{default:"detail"},title:{},data:{},gamaProps:{}},emits:["on-event"],setup(o,{emit:s}){const M=s;vue.provide("emit",M);const u=o,z=vue.ref(1),{data:Z,isPublic:r,fetching:N,gamaProps:X,count:y}=vue.toRefs(u),G=vue.computed(()=>toProductLite(Z.value)),V=vue.ref(null),S=vue.ref([]),R={product:G,slide:z,isPublic:r,selectedPackProduct:V,images:S,count:y,gamaProps:X};vue.provide("context",R);const D=vue.computed(()=>{var C;return!!((C=G.value)!=null&&C.pack)}),j=()=>{var C;return M("on-event",{code:"edit_product",payload:{id:(C=G.value)==null?void 0:C.id}})};return(C,B)=>{const F=vue.resolveComponent("v-else"),U=vue.resolveComponent("ProductAvailableColors");return vue.openBlock(),vue.createBlock(Card$1,{loading:vue.unref(N)},{actions:vue.withCtx(()=>[vue.unref(r)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(IconButton,{key:0,action:"edit",sm:"",onClick:j}))]),default:vue.withCtx(()=>{var E,g,f,q,o0,c0,P;return[vue.createElementVNode("div",_hoisted_1,[vue.createElementVNode("div",_hoisted_2,[vue.createVNode(ImagesMiniature),vue.createElementVNode("div",_hoisted_3,[vue.createVNode(ProductImageHeader),vue.createVNode(_sfc_main$L,{style:{"border-radius":"8px"},items:S.value,modelValue:z.value,"onUpdate:modelValue":B[0]||(B[0]=b0=>z.value=b0),height:"600px"},null,8,["items","modelValue"]),vue.createVNode(PublicImageButton)])]),vue.createElementVNode("div",null,[vue.createElementVNode("div",_hoisted_4,vue.toDisplayString(vue.unref(capitalize)(((E=G.value)==null?void 0:E.nombre)||"")),1),vue.createElementVNode("div",_hoisted_5,[vue.unref(r)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6,"SKU: "+vue.toDisplayString((f=(g=G.value)==null?void 0:g.props)==null?void 0:f.sku),1)),vue.createVNode(F,{div:""}),!vue.unref(r)&&((q=G.value)!=null&&q.estado)?(vue.openBlock(),vue.createBlock(StateIndicator,{key:1,label:G.value.estado.name,color:G.value.estado.color},null,8,["label","color"])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_7,[vue.createVNode(ProductPrice,{product:G.value},null,8,["product"]),vue.createElementVNode("div",_hoisted_8,vue.toDisplayString(vue.unref(capitalize)(((c0=(o0=G.value)==null?void 0:o0.props)==null?void 0:c0.ubicacion)||"")),1),vue.createVNode(_sfc_main$9)]),vue.createVNode(U),vue.createVNode(_sfc_main$3),D.value?(vue.openBlock(),vue.createBlock(ProductDetallePack,{key:0})):(vue.openBlock(),vue.createBlock(_sfc_main$e,{key:1,"product-props":(P=G.value)==null?void 0:P.props,"gama-props":vue.unref(X)},null,8,["product-props","gama-props"])),vue.unref(r)?(vue.openBlock(),vue.createBlock(ProductShopcartActions,{key:2})):vue.createCommentVNode("",!0)])]),vue.createElementVNode("div",_hoisted_9,[vue.createVNode(_sfc_main$6)])]}),_:1},8,["loading"])}}}),LinvermediaProductDetail=_export_sfc(_sfc_main$1,[["__scopeId","data-v-4c10191f"]]),LINVERMEDIA_PRODUCT_DETAIL_MOCK_DATA=Object.freeze([{id:151,nombre:"Pantalla LED 3x2 P2.9 Escaparate",precio:21879.5,tipo_iva:"exento",descripcion:"Potente solución para escaparates grandes o interiores espaciosos. Con su formato cuadrado y gran superficie, es perfecta para videowalls que transmitan una imagen de marca sólida y profesional. La controladora Novastar Taurus TB50 garantiza un rendimiento óptimo y una gestión avanzada de contenidos complejos y en tiempo real.",descripcion_corta:"Pantalla LED 3x2m (6m²) 24 cabinets",estado:1,props:{sku:"LED-P29-FS",alto:"50",gama:"pantallas_led_modulares",ancho:"50",pitch:"2_9_mm",brillo:"4000_nits",peso_kg:"7",subgama:"led",a_medida:!0,material:"aluminio_fundido",ubicacion:"exterior",tipo_montaje:"matriz",proteccion_ip:"ip_65_ip_43",tasa_refresco:"3840",tipo_servicio:"full_front",consumo_maximo:"160W",consumo_medio_w:"80",usos_habituales:["eventos_estadios_mobiliario_urbano"],consumo_maximo_w:"160",tipo_instalacion:"estructura_exterior_soporte_metalico",unidad_de_medida:"cm",colores_disponibles:[],compatible_videowall:!0,propositos_generales:["publicidad_exterior_fachadas_contenido_comercial_videowall_exterior"],controladoras_compatibles:["novastar_vx_600","novastar_vx_1000","taurus_tb_40"]},tags:null,codigo:"00000073",fecha_creado:"2025-06-07T00:38:46.071Z",id_captacion:null,id_estado:"c241a8a9-51a6-4274-831c-d11503726458",id_gama:23,id_proveedor:null,paquete:0,pack:1,fecha_alta:"2025-06-06T04:00:00.000Z",documentos:[{id:909,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/c39831025394e8f0_Pantalla%20LED%20Exterior%20Mantenimiento%20Frontal%20Completo.png",public:1,tipo:"image",firmable:0,tags:null,posicion:2},{id:910,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/7eec48aa4f7a0d9d_Pantalla%20LED%20Exterior%20de%20Gran%20Brillo%20y%20Visibilidad%20500%20mmm.png",public:1,tipo:"image",firmable:0,tags:null,posicion:1},{id:911,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/51f4d42fb93178e3_to%20LED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida.png",public:1,tipo:"image",firmable:0,tags:null,posicion:3},{id:912,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/48deda3825a497a9_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",public:1,tipo:"image",firmable:0,tags:null,posicion:4},{id:913,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/eaea5eb4e9899055_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",public:1,tipo:"image",firmable:0,tags:null,posicion:5}],detalle_pack:[{ID_PRODUCTO_DETALLE_PACK:15,ID_PRODUCTO_PACK:151,ID_PRODUCTO_DETALLE:122,CANTIDAD:24,DESCUENTO:"10.00",PROPS:{alto:"2",ancho:"3"},PRINCIPAL:!0,DETALLE:{ID_PRODUCTO:122,ID_EMPRESA:1,COD_ART_MVX:"00000045",CAPTACION_COUNT:0,CODIGO_EXTERNO:null,NOMBRE:"Panel Modular LED P2.9 Exterior Frontal de Alto Brillo",DESCRIPCION:"La Pantalla LED P2.9 Exterior Frontal de Alto Brillo está diseñada para ofrecer un rendimiento impecable en los entornos más exigentes. Su pixel pitch de 2.9mm ofrece una excelente resolución para vallas publicitarias, eventos deportivos y grandes escenarios al aire libre, con un brillo de 4000 nits que garantiza visibilidad incluso bajo el sol más intenso. Fabricada en aluminio fundido, es resistente y cuenta con mantenimiento frontal, facilitando el servicio en instalaciones de pared o estructuras fijas. Con un consumo máximo de 160W y medio de 80W, para eficiencia energética. Su clasificación IP65/IP43 asegura protección contra el polvo y el agua. Tus mensaje brillarán con la máxima potencia y fiabilidad en exteriores.",DESCRIPCION_CORTA:"Robusta y brillante, la pantalla LED P2.9 Exterior con mantenimiento frontal es ideal para publicidad y eventos al aire libre bajo cualquier condición.",ID_CAPTACION:null,ID_PROVEEDOR:null,ID_PRODUCTO_REF:null,TIPO:"1",ESTADO:"1",ID_GAMA:23,ID_TIE_DEF:null,TAGS:null,PROPS:{sku:"LED-P29-FS",alto:"50",gama:"pantallas_led_modulares",ancho:"50",pitch:"2_9_mm",brillo:"4000_nits",peso_kg:"7",subgama:"led",a_medida:!0,material:"aluminio_fundido",ubicacion:"exterior",tipo_montaje:"matriz",proteccion_ip:"ip_65_ip_43",tasa_refresco:"3840",tipo_servicio:"full_front",consumo_maximo:"160W",consumo_medio_w:"80",usos_habituales:["eventos_estadios_mobiliario_urbano"],consumo_maximo_w:"160",tipo_instalacion:"estructura_exterior_soporte_metalico",unidad_de_medida:"cm",colores_disponibles:[],compatible_videowall:!0,propositos_generales:["publicidad_exterior_fachadas_contenido_comercial_videowall_exterior"],controladoras_compatibles:["novastar_vx_600","novastar_vx_1000","taurus_tb_40"]},PUBLICO:!0,PACK:!1,CONFIGURABLE:!1,GRUPO:null,PAQUETE:!1,ID_PRODUCTOS_PAQUETE:null,PRECIO:"1000.00",PRECIOS:null,ID_ESTADO:"c241a8a9-51a6-4274-831c-d11503726458",ID_SEGMENTOS:null,TIPO_IVA:"exento",FECHA_ALTA:"2025-06-01",FECHA_UPD:"2025-06-26T03:59:54.090Z",FECHA_CREADO:"2025-05-29T16:24:25.545Z",ARCHIVOS:[{ID_ARCHIVO:883,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/c39831025394e8f0_Pantalla%20LED%20Exterior%20Mantenimiento%20Frontal%20Completo.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Pantalla LED Exterior Mantenimiento Frontal Completo.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:06:30.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:122,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:1},{ID_ARCHIVO:884,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/7eec48aa4f7a0d9d_Pantalla%20LED%20Exterior%20de%20Gran%20Brillo%20y%20Visibilidad%20500%20mmm.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Pantalla LED Exterior de Gran Brillo y Visibilidad 500 mmm.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:06:42.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:122,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:2}],UNDBASICA:null,FACTORAGR:null,CONTROLLOTE:null,TIPO_CLIENTE:null}},{ID_PRODUCTO_DETALLE_PACK:16,ID_PRODUCTO_PACK:151,ID_PRODUCTO_DETALLE:144,CANTIDAD:1,DESCUENTO:"0.00",PROPS:{alto:"",ancho:""},PRINCIPAL:!1,DETALLE:{ID_PRODUCTO:144,ID_EMPRESA:1,COD_ART_MVX:"00000067",CAPTACION_COUNT:0,CODIGO_EXTERNO:null,NOMBRE:"Controladora LED Novastar Taurus TB40 (Rendimiento Superior)",DESCRIPCION:"Esta controladora asíncrona de alto rendimiento está diseñada para los proyectos más exigentes, ofreciendo una potencia de procesamiento superior y una mayor capacidad de carga de pixels. Es ideal para pantallas LED de gran tamaño, aplicaciones interactivas o proyectos que requieren actualizaciones de contenido frecuentes y complejas. Con múltiples opciones de conectividad y una estabilidad excepcional, la TB40 garantiza una gestión remota fluida y fiable de tu contenido. Su robustez y eficiencia la convierten en la elección preferida para publicidad dinámica, información en tiempo real y experiencias visuales inmersivas.",DESCRIPCION_CORTA:"La Taurus TB40 de Novastar es una controladora asíncrona de alto rendimiento, diseñada para proyectos LED complejos que exigen máxima potencia y versatilida",ID_CAPTACION:null,ID_PROVEEDOR:null,ID_PRODUCTO_REF:null,TIPO:"1",ESTADO:"1",ID_GAMA:23,ID_TIE_DEF:null,TAGS:null,PROPS:{sku:"CTRL-TB40",gama:"controladoras",serie:"novastar_taurus",subgama:"controladoras_asincronas_reproductores_multimedia",ubicacion:"panel_led_modular",proteccion_ip:"ip_20_productos_de_interior",tipo_servicio:null,sistema_operativo:"android",compatibilidad_de_senal:["red_lan_wi_fi_4_g","usb"]},PUBLICO:!0,PACK:!1,CONFIGURABLE:!1,GRUPO:null,PAQUETE:!1,ID_PRODUCTOS_PAQUETE:null,PRECIO:"279.50",PRECIOS:null,ID_ESTADO:"c241a8a9-51a6-4274-831c-d11503726458",ID_SEGMENTOS:null,TIPO_IVA:"exento",FECHA_ALTA:null,FECHA_UPD:"2025-06-26T04:00:03.280Z",FECHA_CREADO:"2025-06-02T01:55:32.799Z",ARCHIVOS:[{ID_ARCHIVO:819,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/51f4d42fb93178e3_to%20LED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"1 Controladora LED Novastar Taurus TB40 (Rendimiento Superior) Controladora LED Novastar Taurus TB40, alto rendimiento LED, señalización digital compleja, controlador asíncrono premium, publicida.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-03T23:41:18.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:144,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:null},{ID_ARCHIVO:836,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/48deda3825a497a9_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"2 Controladora LED Novastar Taurus TB40 (Rendimiento Superior) Controladora LED Novastar Taurus TB40, alto rendimiento LED, señalización digital compleja, controlador asíncrono premium, publicida (1).png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-04T00:20:58.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:144,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:null},{ID_ARCHIVO:839,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/eaea5eb4e9899055_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"3 Controladora LED Novastar Taurus TB40 (Rendimiento Superior) Controladora LED Novastar Taurus TB40, alto rendimiento LED, señalización digital compleja, controlador asíncrono premium, publicida (1).png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-04T00:30:31.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:144,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:null}],UNDBASICA:null,FACTORAGR:null,CONTROLLOTE:null,TIPO_CLIENTE:null}}]},{ID_PRODUCTO:119,ID_EMPRESA:1,COD_ART_MVX:"00000042",CAPTACION_COUNT:0,CODIGO_EXTERNO:null,nombre:"Panel Modular LED P2.5 Interior Versátil",NOMBRE:"Panel Modular LED P2.5 Interior Versátil",DESCRIPCION:"La Pantalla LED P2.5 Interior Versátil es la solución ideal para proyectos que buscan una excelente calidad de imagen con flexibilidad. Con un pixel pitch de 2.5mm, proporciona imágenes claras y brillantes para auditorios, centros comerciales, salas de conferencias y espacios de eventos. Su construcción en aluminio fundido garantiza ligereza y resistencia, facilitando la instalación y el mantenimiento (frontal y trasero). Con un brillo de 1000 nits y una frecuencia de refresco de 3840Hz, asegura una visualización óptima y fluida ya que evita el parpadeo visible tanto al ojo humano como para las cámaras de video. Es perfecta para publicidad digital, información en puntos de venta o fondos de escenario. Disfruta de un consumo energético eficiente (120W máximo / 60W medio) que reduce los costes operativos. Eleva la comunicación visual en tu negocio con esta pantalla LED de alto rendimiento.",DESCRIPCION_CORTA:"Pantalla LED P2.5 Interior ofrece un equilibrio perfecto entre alta definición y versatilidad para una amplia gama de aplicaciones en interiores.",ID_CAPTACION:null,ID_PROVEEDOR:null,ID_PRODUCTO_REF:null,TIPO:"1",ESTADO:"1",ID_GAMA:23,ID_TIE_DEF:null,TAGS:null,PUBLICO:!0,PACK:!1,CONFIGURABLE:!1,GRUPO:null,PAQUETE:!1,ID_PRODUCTOS_PAQUETE:null,PRECIO:"775.00",PRECIOS:null,ID_ESTADO:"c241a8a9-51a6-4274-831c-d11503726458",ID_SEGMENTOS:null,TIPO_IVA:"exento",FECHA_ALTA:"2025-06-01",FECHA_UPD:"2025-06-26T03:59:52.832Z",FECHA_CREADO:"2025-05-29T16:01:15.064Z",UBICACION:null,R_IMG:[{ID_ARCHIVO:885,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/3b331997a4a4555b_Panel%20Modular%20LED%20Pantalla%20LED%20Interior%20de%20Alta%20Resoluci%C3%B3n.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Panel Modular LED Pantalla LED Interior de Alta Resolución.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:11:00.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:119,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:1},{ID_ARCHIVO:886,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/e777804b4bc63fd0_Panel%20Modular%20LED%20Pantalla%20LEDInterior%20de%20Alta%20Resoluci%C3%B3n.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Panel Modular LED Pantalla LEDInterior de Alta Resolución.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:11:09.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:119,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:2},{ID_ARCHIVO:903,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/0075bc2e598888e6_T%C3%B3tem%20LED%20P2.0%20Interior%20con%20GOB%20%282%29.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Tótem LED P2.0 Interior con GOB (2).png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-06T23:58:01.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:119,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:3}],UNDBASICA:null,FACTORAGR:null,CONTROLLOTE:null,TIPO_CLIENTE:null,PROPS:{sku:"LED-P25-IN",alto:"48 ",gama:"pantallas_led_modulares",ancho:"64",pitch:"2_5_mm",brillo:"800_nits",peso_kg:"7 ",subgama:"led",a_medida:!0,material:"aluminio_fundido",ubicacion:"interior",tipo_montaje:"matriz",proteccion_ip:"ip_20_productos_de_interior",tasa_refresco:"3840",tipo_servicio:"back",consumo_maximo:"120W",consumo_medio_w:"60W",usos_habituales:["salas_de_control_estudios_de_tv_salas_de_videoconferencia_auditorios","tiendas_recepciones_hall_salas_de_espera_showrooms_galerias"],consumo_maximo_w:"1",tipo_instalacion:"anclado_a_pared_o_estructura_interior",unidad_de_medida:"cm",colores_disponibles:[],compatible_videowall:!0,propositos_generales:["publicidad_senaletica_informativo_decorativo_corporativo_contenido_comercial"],controladoras_compatibles:["novastar_vx_400","taurus_tb_2"]}},{id:371,nombre:'Pantalla LCD 65" Ultra Brillo 4K',precio:2227.5,tipo_iva:"exento",descripcion:'Eleva tu comunicación visual con la Pantalla LCD 65" 4K de Ultra Brillo. Esta impresionante pantalla, con su resolución 4K y un nivel de brillo excepcional (generalmente superior a 1500-2000 nits), es perfecta para entornos donde la visibilidad y el impacto son cruciales, como grandes escaparates, centros comerciales, aeropuertos o espacios de eventos. Su gran tamaño asegura que tu mensaje sea visible desde lejos, mientras que la claridad 4K garantiza que cada detalle se aprecie. Su diseño está optimizado para la eficiencia y la durabilidad en uso continuo. Una solución premium para proyectos que exigen la máxima calidad y presencia visual. ',descripcion_corta:'Gran formato y brillo extremo: la pantalla LCD 65" 4K de alta brillantez es ideal para espacios que demandan visibilidad impactante',estado:1,props:{sku:"LCD-65-HB",gama:"pantallas_lcd",brillo:"alta_brillantez_4_k_lcd",tamano:"65",peso_kg:">25-40",subgama:"lcd",material:"material_robusto_y_duradero",ubicacion:"escaparate",resolucion:"4_k",tipo_montaje:"mural",proteccion_ip:"ip_20_productos_de_interior",tasa_refresco:"60",tipo_servicio:null,usos_habituales:["escaparates_o_vitrinas_expuestas_al_sol","salas_de_control_estudios_de_tv_salas_de_videoconferencia_auditorios"],tipo_instalacion:"pared_o_soporte_vesa",colores_disponibles:[],propositos_generales:["publicidad_senaletica_informativo_decorativo_corporativo_contenido_comercial"],gran_formato_independiente:"si"},tags:"destacado,oferta",codigo:"T0000057",fecha_creado:"2025-05-30T04:02:19.415Z",id_captacion:null,id_estado:"c241a8a9-51a6-4274-831c-d11503726458",id_gama:23,id_proveedor:null,paquete:0,pack:0,fecha_alta:null,table_estado:{id:"c241a8a9-51a6-4274-831c-d11503726458",name:"No disponible",color:"#9c9c9c",code:"no_disponible",id_gama:23,enabled:1}},{id:167,nombre:"Pantalla LED",precio:2e4,tipo_iva:"general",descripcion:"Pantalla LED de alta calidad diseñada para aplicaciones interiores. Ofrece un brillo excepcional, resolución adaptable y un diseño ligero de aluminio, ideal para publicidad, videowalls y escaparates. Su doble cara y sistema operativo Android garantizan versatilidad y facilidad de uso.",descripcion_corta:"Pantalla LED interior de alta calidad, ligera y versátil.",estado:2,props:{gob:"si",sku:"TOT-LED-P18",alto:null,gama:"totems",ancho:null,marca:"Testing",pitch:"3_076_mm",brillo:"4500_nits",modelo:"Test",tamano:null,peso_kg:"3.5",subgama:"led",a_medida:!0,material:"aluminio",ubicacion:"interior",uso_final:"interior",doble_cara:!0,resolucion:null,subfamilia:"led",interactivo:null,profundidad:null,proteccion_ip:"ip_43_protegido_contra_objetos_de_mas_de_1_mm_y_agua_pulverizada",tipo_servicio:"front",consumo_medio_w:"200",tipo_de_montaje:"matriz",usos_habituales:[],consumo_maximo_w:"300",tipo_de_servicio:"full_front",tipo_instalacion:"montaje_interior_orientado_al_exterior",sistema_operativo:"android",colores_disponibles:["negro","blanco"],tasa_de_refresco_hz:"500",tipo_de_instalacion:"autoportante_de_suelo",propositos_generales:["publicidad_exterior_fachadas_contenido_comercial_videowall_exterior"],aplicacion_recomendada:["escaparates_o_vitrinas_expuestas_al_sol"],controladoras_compatibles:["novastar_vx_600","taurus_tb_30","novastar_vx_1000"]},tags:"destacado",codigo:"00000079",fecha_creado:"2025-06-11T03:04:21.800Z",id_captacion:null,id_estado:"c45eae87-d78c-4f2c-9f81-27eb87b5bc94",id_gama:23,id_proveedor:null,paquete:0,pack:1,fecha_alta:"2025-06-10T04:00:00.000Z",table_estado:{id:"c45eae87-d78c-4f2c-9f81-27eb87b5bc94",name:"Disponible",color:"#10c94b",code:"disponible",id_gama:23,enabled:1},images:[{id:840,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/dbd480ff0130270f_WhatsApp%20Image%202025-05-08%20at%2018.43.22%20%282%29.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:5},{id:841,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/c3416442188506c1_WhatsApp%20Image%202025-05-08%20at%2018.43.22.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:3},{id:842,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/69f7f669f37d3223_WhatsApp%20Image%202025-05-08%20at%2018.43.23.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:4},{id:843,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/08ffe62e7e731aa3_WhatsApp%20Image%202025-05-08%20at%2018.43.23%20%281%29.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:2}]},{id:379,nombre:"Controladora LED Novastar Taurus TB2 Avanzada",precio:227.5,tipo_iva:"exento",descripcion:"Esta unidad asíncrona ofrece una mayor capacidad de carga y un rendimiento mejorado respecto a la TB1, haciéndola perfecta para proyectos de señalización digital más ambiciosos. Permite la publicación de contenido de forma remota a través de múltiples opciones de conectividad (Gigabit Ethernet, Wi-Fi, 4G opcional), asegurando una actualización de mensajes fluida y fiable en cualquier momento y lugar. Su diseño robusto y estable garantiza un funcionamiento 24/7, crucial para aplicaciones comerciales, informativas o publicitarias. La TB2 es la solución robusta y eficiente para una gestión inteligente de tu señalización LED.",descripcion_corta:"Taurus TB2 es una controladora LED asíncrona potente, ideal para redes de señalización digital medianas que exigen estabilidad y gestión flexible de contenido.",estado:1,props:{sku:"CTRL-TB2",gama:"controladoras",serie:"novastar_taurus",subgama:"controladoras_asincronas_reproductores_multimedia",ubicacion:"led_modular",proteccion_ip:"ip_20_productos_de_interior",tipo_servicio:null,sistema_operativo:"android",compatibilidad_de_senal:["red_lan_wi_fi_4_g","usb"]},tags:null,codigo:"T0000065",fecha_creado:"2025-06-02T01:09:38.307Z",id_captacion:null,id_estado:"c241a8a9-51a6-4274-831c-d11503726458",id_gama:23,id_proveedor:null,paquete:0,pack:0,fecha_alta:null,table_estado:{id:"c241a8a9-51a6-4274-831c-d11503726458",name:"No disponible",color:"#9c9c9c",code:"no_disponible",id_gama:23,enabled:1}}]),LINVERMEDIA_PRODUCT_DETAIL_MOCK_PROPS={isPublic:!0,data:null,fetching:!1,scale:1,count:0,gamaProps:PROPS},LinvermediaProductDetailPropsSchema=WidgetPropsSchema.extend({view:enumType(["detail","summary"]).optional(),title:stringType().optional(),gamaProps:arrayType(recordType(stringType(),anyType()))});var momentTimezone$1={exports:{}},momentTimezone={exports:{}};//! moment.js
43
+ `+Z):u.stack=Z}catch{}}throw u}}_request(s,M){typeof s=="string"?(M=M||{},M.url=s):M=s||{},M=mergeConfig$1(this.defaults,M);const{transitional:u,paramsSerializer:z,headers:Z}=M;u!==void 0&&validator.assertOptions(u,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),z!=null&&(utils$1.isFunction(z)?M.paramsSerializer={serialize:z}:validator.assertOptions(z,{encode:validators.function,serialize:validators.function},!0)),M.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?M.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:M.allowAbsoluteUrls=!0),validator.assertOptions(M,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),M.method=(M.method||this.defaults.method||"get").toLowerCase();let r=Z&&utils$1.merge(Z.common,Z[M.method]);Z&&utils$1.forEach(["delete","get","head","post","put","patch","common"],D=>{delete Z[D]}),M.headers=AxiosHeaders$1.concat(r,Z);const N=[];let X=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(M)===!1||(X=X&&j.synchronous,N.unshift(j.fulfilled,j.rejected))});const y=[];this.interceptors.response.forEach(function(j){y.push(j.fulfilled,j.rejected)});let G,V=0,S;if(!X){const D=[dispatchRequest.bind(this),void 0];for(D.unshift.apply(D,N),D.push.apply(D,y),S=D.length,G=Promise.resolve(M);V<S;)G=G.then(D[V++],D[V++]);return G}S=N.length;let R=M;for(V=0;V<S;){const D=N[V++],j=N[V++];try{R=D(R)}catch(C){j.call(this,C);break}}try{G=dispatchRequest.call(this,R)}catch(D){return Promise.reject(D)}for(V=0,S=y.length;V<S;)G=G.then(y[V++],y[V++]);return G}getUri(s){s=mergeConfig$1(this.defaults,s);const M=buildFullPath(s.baseURL,s.url,s.allowAbsoluteUrls);return buildURL(M,s.params,s.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function(s){Axios$1.prototype[s]=function(M,u){return this.request(mergeConfig$1(u||{},{method:s,url:M,data:(u||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(s){function M(u){return function(Z,r,N){return this.request(mergeConfig$1(N||{},{method:s,headers:u?{"Content-Type":"multipart/form-data"}:{},url:Z,data:r}))}}Axios$1.prototype[s]=M(),Axios$1.prototype[s+"Form"]=M(!0)});let CancelToken$1=class Zi{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let M;this.promise=new Promise(function(Z){M=Z});const u=this;this.promise.then(z=>{if(!u._listeners)return;let Z=u._listeners.length;for(;Z-- >0;)u._listeners[Z](z);u._listeners=null}),this.promise.then=z=>{let Z;const r=new Promise(N=>{u.subscribe(N),Z=N}).then(z);return r.cancel=function(){u.unsubscribe(Z)},r},s(function(Z,r,N){u.reason||(u.reason=new CanceledError$1(Z,r,N),M(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const M=this._listeners.indexOf(s);M!==-1&&this._listeners.splice(M,1)}toAbortSignal(){const s=new AbortController,M=u=>{s.abort(u)};return this.subscribe(M),s.signal.unsubscribe=()=>this.unsubscribe(M),s.signal}static source(){let s;return{token:new Zi(function(z){s=z}),cancel:s}}};function spread$1(o){return function(M){return o.apply(null,M)}}function isAxiosError$1(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$1).forEach(([o,s])=>{HttpStatusCode$1[s]=o});function createInstance(o){const s=new Axios$1(o),M=bind(Axios$1.prototype.request,s);return utils$1.extend(M,Axios$1.prototype,s,{allOwnKeys:!0}),utils$1.extend(M,s,null,{allOwnKeys:!0}),M.create=function(z){return createInstance(mergeConfig$1(o,z))},M}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function(s){return Promise.all(s)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios,createCancelToken=()=>axios.CancelToken.source();function createFetchUniq(o){const s={};return async function(u,z,Z){const r=s[Z];r&&r.cancel("Solicitud reemplazada por una nueva");const N=createCancelToken();return s[Z]=N,u?o.get(u,{params:z,cancelToken:N.token}).then(X=>{const y=(X==null?void 0:X.data)||null;return lodashExports.isNil(y)?null:y}).catch(()=>null):Promise.resolve(null)}}let fetchUniqInstance=null;function setFetchUniq(o){fetchUniqInstance=o}function getFetchUniq(){if(!fetchUniqInstance)throw new Error("fetchUniq has not been set. Please call setFetchUniq() before using it.");return fetchUniqInstance}const DEFAULT_FETCH_OPTIONS={refetchType:"active",retry:1,refetchOnMount:!1,refetchOnWindowFocus:!1,staleTime:5*60*1e3,keepPreviousData:!0};var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},define_process_env_default$1={},isServer=typeof window>"u"||"Deno"in globalThis;function noop(){}function isValidTimeout(o){return typeof o=="number"&&o>=0&&o!==1/0}function timeUntilStale(o,s){return Math.max(o+(s||0)-Date.now(),0)}function resolveStaleTime(o,s){return typeof o=="function"?o(s):o}function resolveEnabled(o,s){return typeof o=="function"?o(s):o}function replaceEqualDeep(o,s){if(o===s)return o;const M=isPlainArray(o)&&isPlainArray(s);if(M||isPlainObject$1(o)&&isPlainObject$1(s)){const u=M?o:Object.keys(o),z=u.length,Z=M?s:Object.keys(s),r=Z.length,N=M?[]:{},X=new Set(u);let y=0;for(let G=0;G<r;G++){const V=M?G:Z[G];(!M&&X.has(V)||M)&&o[V]===void 0&&s[V]===void 0?(N[V]=void 0,y++):(N[V]=replaceEqualDeep(o[V],s[V]),N[V]===o[V]&&o[V]!==void 0&&y++)}return z===r&&y===z?o:N}return s}function shallowEqualObjects(o,s){if(!s||Object.keys(o).length!==Object.keys(s).length)return!1;for(const M in o)if(o[M]!==s[M])return!1;return!0}function isPlainArray(o){return Array.isArray(o)&&o.length===Object.keys(o).length}function isPlainObject$1(o){if(!hasObjectPrototype(o))return!1;const s=o.constructor;if(s===void 0)return!0;const M=s.prototype;return!(!hasObjectPrototype(M)||!M.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(o)!==Object.prototype)}function hasObjectPrototype(o){return Object.prototype.toString.call(o)==="[object Object]"}function replaceData(o,s,M){if(typeof M.structuralSharing=="function")return M.structuralSharing(o,s);if(M.structuralSharing!==!1){if(define_process_env_default$1.NODE_ENV!=="production")try{return replaceEqualDeep(o,s)}catch(u){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${M.queryHash}]: ${u}`),u}return replaceEqualDeep(o,s)}return s}function keepPreviousData(o){return o}function shouldThrowError(o,s){return typeof o=="function"?o(...s):!!o}var FocusManager=(ht=class extends Subscribable{constructor(){super();cl(this,x1);cl(this,E1);cl(this,sl);w1(this,sl,s=>{if(!isServer&&window.addEventListener){const M=()=>s();return window.addEventListener("visibilitychange",M,!1),()=>{window.removeEventListener("visibilitychange",M)}}})}onSubscribe(){H0(this,E1)||this.setEventListener(H0(this,sl))}onUnsubscribe(){var s;this.hasListeners()||((s=H0(this,E1))==null||s.call(this),w1(this,E1,void 0))}setEventListener(s){var M;w1(this,sl,s),(M=H0(this,E1))==null||M.call(this),w1(this,E1,s(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(s){H0(this,x1)!==s&&(w1(this,x1,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(M=>{M(s)})}isFocused(){var s;return typeof H0(this,x1)=="boolean"?H0(this,x1):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},x1=new WeakMap,E1=new WeakMap,sl=new WeakMap,ht),focusManager=new FocusManager,OnlineManager=(f2=class extends Subscribable{constructor(){super();cl(this,He,!0);cl(this,he);cl(this,Qe);w1(this,Qe,s=>{if(!isServer&&window.addEventListener){const M=()=>s(!0),u=()=>s(!1);return window.addEventListener("online",M,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",M),window.removeEventListener("offline",u)}}})}onSubscribe(){H0(this,he)||this.setEventListener(H0(this,Qe))}onUnsubscribe(){var s;this.hasListeners()||((s=H0(this,he))==null||s.call(this),w1(this,he,void 0))}setEventListener(s){var M;w1(this,Qe,s),(M=H0(this,he))==null||M.call(this),w1(this,he,s(this.setOnline.bind(this)))}setOnline(s){H0(this,He)!==s&&(w1(this,He,s),this.listeners.forEach(u=>{u(s)}))}isOnline(){return H0(this,He)}},He=new WeakMap,he=new WeakMap,Qe=new WeakMap,f2),onlineManager=new OnlineManager;function pendingThenable(){let o,s;const M=new Promise((z,Z)=>{o=z,s=Z});M.status="pending",M.catch(()=>{});function u(z){Object.assign(M,z),delete M.resolve,delete M.reject}return M.resolve=z=>{u({status:"fulfilled",value:z}),o(z)},M.reject=z=>{u({status:"rejected",reason:z}),s(z)},M}function canFetch(o){return(o??"online")==="online"?onlineManager.isOnline():!0}var defaultScheduler=o=>setTimeout(o,0);function createNotifyManager(){let o=[],s=0,M=N=>{N()},u=N=>{N()},z=defaultScheduler;const Z=N=>{s?o.push(N):z(()=>{M(N)})},r=()=>{const N=o;o=[],N.length&&z(()=>{u(()=>{N.forEach(X=>{M(X)})})})};return{batch:N=>{let X;s++;try{X=N()}finally{s--,s||r()}return X},batchCalls:N=>(...X)=>{Z(()=>{N(...X)})},schedule:Z,setNotifyFunction:N=>{M=N},setBatchNotifyFunction:N=>{u=N},setScheduler:N=>{z=N}}}var notifyManager=createNotifyManager();function fetchState(o,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(s.networkMode)?"fetching":"paused",...o===void 0&&{error:null,status:"pending"}}}var QueryObserver=(E2=class extends Subscribable{constructor(s,M){super();cl(this,g1);cl(this,Sl);cl(this,R1);cl(this,Nt);cl(this,Nl);cl(this,ge);cl(this,qe);cl(this,Ne);cl(this,Ge);cl(this,Gt);cl(this,$e);cl(this,lt);cl(this,ke);cl(this,Ce);cl(this,Xe);cl(this,tt,new Set);this.options=M,w1(this,Sl,s),w1(this,Ge,null),w1(this,Ne,pendingThenable()),this.options.experimental_prefetchInRender||H0(this,Ne).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(M)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(H0(this,R1).addObserver(this),shouldFetchOnMount(H0(this,R1),this.options)?ol(this,g1,jt).call(this):this.updateResult(),ol(this,g1,F2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(H0(this,R1),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(H0(this,R1),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ol(this,g1,U2).call(this),ol(this,g1,J2).call(this),H0(this,R1).removeObserver(this)}setOptions(s){const M=this.options,u=H0(this,R1);if(this.options=H0(this,Sl).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,H0(this,R1))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ol(this,g1,v2).call(this),H0(this,R1).setOptions(this.options),M._defaulted&&!shallowEqualObjects(this.options,M)&&H0(this,Sl).getQueryCache().notify({type:"observerOptionsUpdated",query:H0(this,R1),observer:this});const z=this.hasListeners();z&&shouldFetchOptionally(H0(this,R1),u,this.options,M)&&ol(this,g1,jt).call(this),this.updateResult(),z&&(H0(this,R1)!==u||resolveEnabled(this.options.enabled,H0(this,R1))!==resolveEnabled(M.enabled,H0(this,R1))||resolveStaleTime(this.options.staleTime,H0(this,R1))!==resolveStaleTime(M.staleTime,H0(this,R1)))&&ol(this,g1,k2).call(this);const Z=ol(this,g1,C2).call(this);z&&(H0(this,R1)!==u||resolveEnabled(this.options.enabled,H0(this,R1))!==resolveEnabled(M.enabled,H0(this,R1))||Z!==H0(this,Xe))&&ol(this,g1,j2).call(this,Z)}getOptimisticResult(s){const M=H0(this,Sl).getQueryCache().build(H0(this,Sl),s),u=this.createResult(M,s);return shouldAssignObserverCurrentProperties(this,u)&&(w1(this,Nl,u),w1(this,qe,this.options),w1(this,ge,H0(this,R1).state)),u}getCurrentResult(){return H0(this,Nl)}trackResult(s,M){return new Proxy(s,{get:(u,z)=>(this.trackProp(z),M==null||M(z),Reflect.get(u,z))})}trackProp(s){H0(this,tt).add(s)}getCurrentQuery(){return H0(this,R1)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const M=H0(this,Sl).defaultQueryOptions(s),u=H0(this,Sl).getQueryCache().build(H0(this,Sl),M);return u.fetch().then(()=>this.createResult(u,M))}fetch(s){return ol(this,g1,jt).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),H0(this,Nl)))}createResult(s,M){var c0;const u=H0(this,R1),z=this.options,Z=H0(this,Nl),r=H0(this,ge),N=H0(this,qe),y=s!==u?s.state:H0(this,Nt),{state:G}=s;let V={...G},S=!1,R;if(M._optimisticResults){const P=this.hasListeners(),b0=!P&&shouldFetchOnMount(s,M),a0=P&&shouldFetchOptionally(s,u,M,z);(b0||a0)&&(V={...V,...fetchState(G.data,s.options)}),M._optimisticResults==="isRestoring"&&(V.fetchStatus="idle")}let{error:D,errorUpdatedAt:j,status:C}=V;R=V.data;let B=!1;if(M.placeholderData!==void 0&&R===void 0&&C==="pending"){let P;Z!=null&&Z.isPlaceholderData&&M.placeholderData===(N==null?void 0:N.placeholderData)?(P=Z.data,B=!0):P=typeof M.placeholderData=="function"?M.placeholderData((c0=H0(this,lt))==null?void 0:c0.state.data,H0(this,lt)):M.placeholderData,P!==void 0&&(C="success",R=replaceData(Z==null?void 0:Z.data,P,M),S=!0)}if(M.select&&R!==void 0&&!B)if(Z&&R===(r==null?void 0:r.data)&&M.select===H0(this,Gt))R=H0(this,$e);else try{w1(this,Gt,M.select),R=M.select(R),R=replaceData(Z==null?void 0:Z.data,R,M),w1(this,$e,R),w1(this,Ge,null)}catch(P){w1(this,Ge,P)}H0(this,Ge)&&(D=H0(this,Ge),R=H0(this,$e),j=Date.now(),C="error");const F=V.fetchStatus==="fetching",U=C==="pending",E=C==="error",g=U&&F,f=R!==void 0,o0={status:C,fetchStatus:V.fetchStatus,isPending:U,isSuccess:C==="success",isError:E,isInitialLoading:g,isLoading:g,data:R,dataUpdatedAt:V.dataUpdatedAt,error:D,errorUpdatedAt:j,failureCount:V.fetchFailureCount,failureReason:V.fetchFailureReason,errorUpdateCount:V.errorUpdateCount,isFetched:V.dataUpdateCount>0||V.errorUpdateCount>0,isFetchedAfterMount:V.dataUpdateCount>y.dataUpdateCount||V.errorUpdateCount>y.errorUpdateCount,isFetching:F,isRefetching:F&&!U,isLoadingError:E&&!f,isPaused:V.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:E&&f,isStale:isStale(s,M),refetch:this.refetch,promise:H0(this,Ne)};if(this.options.experimental_prefetchInRender){const P=O0=>{o0.status==="error"?O0.reject(o0.error):o0.data!==void 0&&O0.resolve(o0.data)},b0=()=>{const O0=w1(this,Ne,o0.promise=pendingThenable());P(O0)},a0=H0(this,Ne);switch(a0.status){case"pending":s.queryHash===u.queryHash&&P(a0);break;case"fulfilled":(o0.status==="error"||o0.data!==a0.value)&&b0();break;case"rejected":(o0.status!=="error"||o0.error!==a0.reason)&&b0();break}}return o0}updateResult(){const s=H0(this,Nl),M=this.createResult(H0(this,R1),this.options);if(w1(this,ge,H0(this,R1).state),w1(this,qe,this.options),H0(this,ge).data!==void 0&&w1(this,lt,H0(this,R1)),shallowEqualObjects(M,s))return;w1(this,Nl,M);const u=()=>{if(!s)return!0;const{notifyOnChangeProps:z}=this.options,Z=typeof z=="function"?z():z;if(Z==="all"||!Z&&!H0(this,tt).size)return!0;const r=new Set(Z??H0(this,tt));return this.options.throwOnError&&r.add("error"),Object.keys(H0(this,Nl)).some(N=>{const X=N;return H0(this,Nl)[X]!==s[X]&&r.has(X)})};ol(this,g1,Wi).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ol(this,g1,F2).call(this)}},Sl=new WeakMap,R1=new WeakMap,Nt=new WeakMap,Nl=new WeakMap,ge=new WeakMap,qe=new WeakMap,Ne=new WeakMap,Ge=new WeakMap,Gt=new WeakMap,$e=new WeakMap,lt=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Xe=new WeakMap,tt=new WeakMap,g1=new WeakSet,jt=function(s){ol(this,g1,v2).call(this);let M=H0(this,R1).fetch(this.options,s);return s!=null&&s.throwOnError||(M=M.catch(noop)),M},k2=function(){ol(this,g1,U2).call(this);const s=resolveStaleTime(this.options.staleTime,H0(this,R1));if(isServer||H0(this,Nl).isStale||!isValidTimeout(s))return;const u=timeUntilStale(H0(this,Nl).dataUpdatedAt,s)+1;w1(this,ke,setTimeout(()=>{H0(this,Nl).isStale||this.updateResult()},u))},C2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(H0(this,R1)):this.options.refetchInterval)??!1},j2=function(s){ol(this,g1,J2).call(this),w1(this,Xe,s),!(isServer||resolveEnabled(this.options.enabled,H0(this,R1))===!1||!isValidTimeout(H0(this,Xe))||H0(this,Xe)===0)&&w1(this,Ce,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&ol(this,g1,jt).call(this)},H0(this,Xe)))},F2=function(){ol(this,g1,k2).call(this),ol(this,g1,j2).call(this,ol(this,g1,C2).call(this))},U2=function(){H0(this,ke)&&(clearTimeout(H0(this,ke)),w1(this,ke,void 0))},J2=function(){H0(this,Ce)&&(clearInterval(H0(this,Ce)),w1(this,Ce,void 0))},v2=function(){const s=H0(this,Sl).getQueryCache().build(H0(this,Sl),this.options);if(s===H0(this,R1))return;const M=H0(this,R1);w1(this,R1,s),w1(this,Nt,s.state),this.hasListeners()&&(M==null||M.removeObserver(this),s.addObserver(this))},Wi=function(s){notifyManager.batch(()=>{s.listeners&&this.listeners.forEach(M=>{M(H0(this,Nl))}),H0(this,Sl).getQueryCache().notify({query:H0(this,R1),type:"observerResultsUpdated"})})},E2);function shouldLoadOnMount(o,s){return resolveEnabled(s.enabled,o)!==!1&&o.state.data===void 0&&!(o.state.status==="error"&&s.retryOnMount===!1)}function shouldFetchOnMount(o,s){return shouldLoadOnMount(o,s)||o.state.data!==void 0&&shouldFetchOn(o,s,s.refetchOnMount)}function shouldFetchOn(o,s,M){if(resolveEnabled(s.enabled,o)!==!1&&resolveStaleTime(s.staleTime,o)!=="static"){const u=typeof M=="function"?M(o):M;return u==="always"||u!==!1&&isStale(o,s)}return!1}function shouldFetchOptionally(o,s,M,u){return(o!==s||resolveEnabled(u.enabled,o)===!1)&&(!M.suspense||o.state.status!=="error")&&isStale(o,M)}function isStale(o,s){return resolveEnabled(s.enabled,o)!==!1&&o.isStaleByTime(resolveStaleTime(s.staleTime,o))}function shouldAssignObserverCurrentProperties(o,s){return!shallowEqualObjects(o.getCurrentResult(),s)}var VUE_QUERY_CLIENT="VUE_QUERY_CLIENT";function getClientKey(o){const s=o?`:${o}`:"";return`${VUE_QUERY_CLIENT}${s}`}function updateState(o,s){Object.keys(o).forEach(M=>{o[M]=s[M]})}function _cloneDeep(o,s,M="",u=0){if(s){const z=s(o,M,u);if(z===void 0&&vue.isRef(o)||z!==void 0)return z}if(Array.isArray(o))return o.map((z,Z)=>_cloneDeep(z,s,String(Z),u+1));if(typeof o=="object"&&isPlainObject(o)){const z=Object.entries(o).map(([Z,r])=>[Z,_cloneDeep(r,s,Z,u+1)]);return Object.fromEntries(z)}return o}function cloneDeep(o,s){return _cloneDeep(o,s)}function cloneDeepUnref(o,s=!1){return cloneDeep(o,(M,u,z)=>{if(z===1&&u==="queryKey")return cloneDeepUnref(M,!0);if(s&&isFunction$1(M))return cloneDeepUnref(M(),s);if(vue.isRef(M))return cloneDeepUnref(vue.unref(M),s)})}function isPlainObject(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const s=Object.getPrototypeOf(o);return s===null||s===Object.prototype}function isFunction$1(o){return typeof o=="function"}function useQueryClient(o=""){if(!vue.hasInjectionContext())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const s=getClientKey(o),M=vue.inject(s);if(!M)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return M}var define_process_env_default={};function useBaseQuery(o,s,M){define_process_env_default.NODE_ENV==="development"&&(vue.getCurrentScope()||console.warn('vue-query composable like "useQuery()" should only be used inside a "setup()" function or a running effect scope. They might otherwise lead to memory leaks.'));const u=useQueryClient(),z=vue.computed(()=>{var j;const R=cloneDeepUnref(s);typeof R.enabled=="function"&&(R.enabled=R.enabled());const D=u.defaultQueryOptions(R);return D._optimisticResults=(j=u.isRestoring)!=null&&j.value?"isRestoring":"optimistic",D}),Z=new o(u,z.value),r=z.value.shallow?vue.shallowReactive(Z.getCurrentResult()):vue.reactive(Z.getCurrentResult());let N=()=>{};u.isRestoring&&vue.watch(u.isRestoring,R=>{R||(N(),N=Z.subscribe(D=>{updateState(r,D)}))},{immediate:!0});const X=()=>{Z.setOptions(z.value),updateState(r,Z.getCurrentResult())};vue.watch(z,X),vue.onScopeDispose(()=>{N()});const y=(...R)=>(X(),r.refetch(...R)),G=()=>new Promise((R,D)=>{let j=()=>{};const C=()=>{if(z.value.enabled!==!1){Z.setOptions(z.value);const B=Z.getOptimisticResult(z.value);B.isStale?(j(),Z.fetchOptimistic(z.value).then(R,F=>{shouldThrowError(z.value.throwOnError,[F,Z.getCurrentQuery()])?D(F):R(Z.getCurrentResult())})):(j(),R(B))}};C(),j=vue.watch(z,C)});vue.watch(()=>r.error,R=>{if(r.isError&&!r.isFetching&&shouldThrowError(z.value.throwOnError,[R,Z.getCurrentQuery()]))throw R});const V=z.value.shallow?vue.shallowReadonly(r):vue.readonly(r),S=vue.toRefs(V);for(const R in r)typeof r[R]=="function"&&(S[R]=r[R]);return S.suspense=G,S.refetch=y,S}function useQuery(o,s){return useBaseQuery(QueryObserver,o)}const getValue=(o,s=null)=>{try{return(vue.isRef(o)?o==null?void 0:o.value:o)??s}catch{return s}};function useFetch(o,s,M,u,z){const Z=`${s}_${lodashExports.uniqueId()}`,r=useQueryClient(),N=async F=>{const U=getFetchUniq();if(!U)throw new Error("FetchUniq provider is not available");return F?U(F,getValue(M,{}),Z).then(E=>u?u(E):E):Promise.resolve(null)},X={...DEFAULT_FETCH_OPTIONS,...z},y=vue.computed(()=>[...getValue(o,[]),getValue(M,{})]),G=()=>useQuery({queryKey:y,queryFn:()=>N(getValue(s,"")),...X}),V=async()=>{r.invalidateQueries({queryKey:getValue(o),exact:!1,refetchType:X.refetchType})},{isFetching:S,isPending:R,data:D,refetch:j,error:C}=G(),B=vue.computed(()=>D.value??(z==null?void 0:z.defaultValue));return{pending:R,fetching:S,data:B,refetch:j,invalidate:V,error:C}}function useFetchPages(o,s,M,u){const z={...DEFAULT_FETCH_OPTIONS,...u},Z=`${M}_${lodashExports.uniqueId()}`,r=vue.computed(()=>{const g=formatPagination(getValue(o,{})),f=getValue(s,{});return lodashExports.cloneDeep({...f,...g})}),N=vue.computed({get(){var g;return((g=getValue(o))==null?void 0:g.page)||1},set(g){vue.isRef(o)?o.value.page=g:o.page=g}}),X=vue.computed({get(){var g;return((g=getValue(o))==null?void 0:g.rowsNumber)||0},set(g){vue.isRef(o)?o.value.rowsNumber=g:o.rowsNumber=g}}),y=(g,f)=>{const q=getFetchUniq();if(!q)throw new Error("FetchUniq provider is not available");return q(getValue(g,""),getValue(f),Z)},G=useQueryClient(),V=async()=>{G.invalidateQueries({queryKey:[getValue(M),r.value],exact:!1,refetchType:"active"})},{isFetching:S,isPending:R,data:D,refetch:j,isPlaceholderData:C,error:B}=useQuery({queryKey:[M,r],queryFn:()=>y(M,r),placeholderData:keepPreviousData,...z});vue.watch(D,g=>{X.value=(g==null?void 0:g.count)||0},{immediate:!0});const F=()=>{C.value||(N.value=Math.max(N.value-1,1))},U=()=>{C.value||(N.value=N.value+1)},E=vue.computed(()=>{var g;return((g=D.value)==null?void 0:g.items)||[]});return{pending:R,fetching:S,error:B,items:E,refetch:j,invalidate:V,count:X,page:N,prevPage:F,nextPage:U,isPlaceholderData:C}}function formatPagination(o){const s=(o.page-1)*o.rowsPerPage,M=o.rowsPerPage;return{startRow:s,fetchCount:M,sortBy:o.sortBy,descending:o.descending}}const ID_KEY="_id";function useDragAndDrop(o,s,M,u){const z=(u==null?void 0:u.idKey)??ID_KEY,Z=()=>{var S;(S=o.value)==null||S.forEach(R=>{let D=u!=null&&u.idKey?R[u.idKey]:null;D===null&&(D=lodashExports.uniqueId()),R[z]=String(D)})};vue.watch(()=>{var S;return(S=o.value)==null?void 0:S.length},()=>{Z()},{immediate:!0});function r(){return!0}function N(S){S.dataTransfer.setData("id",S.target.id),S.dataTransfer.dropEffect="move"}function X(S){if(S.preventDefault(),!S.target)return;const R=S.target.closest(s);R&&(R!=null&&R.contains(S.relatedTarget)||R.classList.remove("drag-enter"))}function y(S){if(S.preventDefault(),!S.target)return;const R=S.target.closest(s);R&&R.classList.add("drag-enter")}function G(S){S.preventDefault();const R=S.target.closest(s);if(V(R),!(R!=null&&R.draggable))return;const D=S.dataTransfer.getData("id");if(!R)return;const j=(R==null?void 0:R.id)??null;if(j===null)return;const C=lodashExports.cloneDeep(o.value),B=C.findIndex(E=>E[z]==D),F=C.findIndex(E=>E[z]==j);if(B===-1||F===-1)return;const[U]=C.splice(B,1);C.splice(F,0,U),o.value=C,M(C)}function V(S){const R=S==null?void 0:S.parentElement;if(!R)return;const D=R.children;for(let j=0;j<D.length;j++)D[j].classList.remove("drag-enter")}return{handler:r,onDragLeave:X,onDragStart:N,onDragOver:y,onDrop:G,idKey:z}}function useWidgetEvent(){const o=vue.inject("emit");return{emitEvent:(M,u)=>{o("on-event",{code:M,payload:u})}}}function useContext(){const o=vue.inject("context"),s=vue.computed(()=>o.product.value),M=o.slide,u=o.isPublic,z=o.images,Z=o.selectedPackProduct,r=vue.computed(()=>!u.value),N=vue.computed(()=>{var y;return((y=s.value)==null?void 0:y.detalle_pack)||[]}),X=vue.computed(()=>{var y;return((y=s.value)==null?void 0:y.props)||{}});return vue.watch(s,()=>{var G;const y=((G=s.value)==null?void 0:G.images)||[];z.value=y},{immediate:!0}),vue.watch(N,y=>{var G;y&&(Z.value=(G=y[0])==null?void 0:G.DETALLE)},{immediate:!0,deep:!0}),{product:s,isPublic:u,isPrivate:r,images:z,detallePack:N,productProps:X,selectedPackProduct:Z,slide:M,gamaProps:o.gamaProps,count:o.count}}const _hoisted_1$9=["id","draggable"],_hoisted_2$7=["onClick"],_hoisted_3$5={key:0,class:"row items-center justify-center bg-grey-2 media-card",style:{"border-radius":"8px",border:"1px dashed #c9c9c9"}},_hoisted_4$4={key:2,class:"media-card"},_hoisted_5$4=["src"],_hoisted_6$2={class:"video-icon"},_sfc_main$a=vue.defineComponent({__name:"ImagesMiniature",setup(o){const{images:s,slide:M,isPrivate:u}=useContext(),{emitEvent:z}=useWidgetEvent(),{handler:Z,onDragLeave:r,onDragOver:N,onDragStart:X,onDrop:y,idKey:G}=useDragAndDrop(s,".image-miniature",V=>z("update_images_position",{images:V}));return(V,S)=>vue.unref(s).length?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,style:{height:"600px","overflow-y":"auto","min-width":"100px"},onDragleave:S[1]||(S[1]=(...R)=>vue.unref(r)&&vue.unref(r)(...R)),onDragover:S[2]||(S[2]=(...R)=>vue.unref(N)&&vue.unref(N)(...R)),onDrop:S[3]||(S[3]=(...R)=>vue.unref(y)&&vue.unref(y)(...R))},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(s),(R,D)=>(vue.openBlock(),vue.createElementBlock("div",{class:"q-mb-md image-miniature",key:D,id:R[vue.unref(G)],onDragstart:S[0]||(S[0]=(...j)=>vue.unref(X)&&vue.unref(X)(...j)),draggable:vue.unref(u)},[R?(vue.openBlock(),vue.createElementBlock("div",{key:0,onClick:j=>M.value=D+1,style:vue.normalizeStyle({cursor:"pointer",borderWidth:"0.7px",borderStyle:"solid",borderRadius:"0.5rem",borderColor:D===vue.unref(M)-1?"#015979 ":"transparent"}),class:"q-py-sm q-px-sm win-card"},[R!=null&&R.location?R.tipo==="image"?(vue.openBlock(),vue.createBlock(QImg,{key:1,src:R.location,fit:"cover",class:"media-card"},null,8,["src"])):R.tipo==="video"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$4,[vue.createElementVNode("video",{src:R.location,style:{width:"100%",height:"100%",background:"black"}},null,8,_hoisted_5$4),vue.createElementVNode("div",_hoisted_6$2,[vue.createVNode(QIcon,{size:"lg",name:"o_play_circle",color:"white"})])])):vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[vue.createVNode(QIcon,{name:"upload_file",color:"grey-5",size:"33px"})]))],12,_hoisted_2$7)):vue.createCommentVNode("",!0)],40,_hoisted_1$9))),128))],32)),[[Mutation,vue.unref(Z)]]):vue.createCommentVNode("",!0)}}),ImagesMiniature=_export_sfc(_sfc_main$a,[["__scopeId","data-v-481b6fef"]]),_hoisted_1$8={class:"text-weight-medium"},_hoisted_2$6={key:0,class:"row justify-end items-center"},_sfc_main$9=vue.defineComponent({__name:"ProductCustomizableIndicator",props:{label:{default:"A medida"}},setup(o){const{productProps:s}=useContext(),M=vue.computed(()=>{var u;return!!((u=s.value)!=null&&u.a_medida)});return(u,z)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[M.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6,[vue.createVNode(QChip,{color:"accent-1","text-color":"white",size:"12px"},{default:vue.withCtx(()=>z[0]||(z[0]=[vue.createTextVNode("A medida")])),_:1,__:[0]})])):vue.createCommentVNode("",!0)]))}}),_hoisted_1$7={class:"row q-mt-md q-pa-sm",style:{"overflow-x":"auto"}},_hoisted_2$5=["onClick"],_hoisted_3$4={class:"q-pa-sm"},_hoisted_4$3={class:"text-weight-medium ellipsis"},_hoisted_5$3={class:"text-caption"},_hoisted_6$1={key:0,class:"q-mt-md"},_hoisted_7$1={class:"text-h6"},_sfc_main$8=vue.defineComponent({__name:"ProductDetallePack",setup(o){const{detallePack:s,selectedPackProduct:M,gamaProps:u}=useContext(),z=r=>{M.value=r},Z=vue.computed(()=>{var r,N;return((r=M.value)==null?void 0:r.PROPS)||((N=M.value)==null?void 0:N.props)||{}});return(r,N)=>{var X;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(s),(y,G)=>{var V,S,R,D;return vue.openBlock(),vue.createElementBlock("div",{key:G,class:vue.normalizeClass(`q-mr-md glass-card detalle-pack ${((V=vue.unref(M))==null?void 0:V.ID_PRODUCTO)==y.ID_PRODUCTO_DETALLE?"selected":""}`),onClick:j=>z(y.DETALLE)},[(R=(S=y==null?void 0:y.DETALLE)==null?void 0:S.ARCHIVOS)!=null&&R.length?(vue.openBlock(),vue.createBlock(QImg,{key:0,src:y.DETALLE.ARCHIVOS[0].LOCATION||"placeholder.webp",style:{height:"120px","border-radius":"8px"},fit:"contain"},null,8,["src"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$4,[vue.createElementVNode("div",_hoisted_4$3,vue.toDisplayString((D=y==null?void 0:y.DETALLE)==null?void 0:D.NOMBRE),1),vue.createElementVNode("div",_hoisted_5$3,vue.toDisplayString(y==null?void 0:y.CANTIDAD)+"X",1)])],10,_hoisted_2$5)}),128))]),vue.unref(M)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createElementVNode("div",_hoisted_7$1,vue.toDisplayString(vue.unref(M).NOMBRE),1),vue.createElementVNode("div",null,"SKU: "+vue.toDisplayString((X=vue.unref(M).PROPS)==null?void 0:X.sku),1),vue.createVNode(_sfc_main$e,{class:"q-mt-md","product-props":Z.value,"gama-props":vue.unref(u)},null,8,["product-props","gama-props"])])):vue.createCommentVNode("",!0)],64)}}}),ProductDetallePack=_export_sfc(_sfc_main$8,[["__scopeId","data-v-f898c9ff"]]),_hoisted_1$6={class:"product-image-header"},_hoisted_2$4={class:"product-code"},_hoisted_3$3={class:"media-count"},_sfc_main$7=vue.defineComponent({__name:"ProductImageHeader",setup(o){const{product:s,images:M,slide:u,isPrivate:z}=useContext(),Z=vue.computed(()=>{var y,G;return(((G=(y=s.value)==null?void 0:y.tags)==null?void 0:G.split(","))||[]).filter(Boolean)}),r=vue.computed(()=>{var y;return(y=s.value)==null?void 0:y.codigo}),{emitEvent:N}=useWidgetEvent(),X=()=>{var y;return N("edit_tags",{id:(y=s.value)==null?void 0:y.id})};return(y,G)=>{var V,S;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createElementVNode("div",_hoisted_2$4,vue.toDisplayString(r.value),1),vue.createElementVNode("div",{onClick:X,class:"tags",style:vue.normalizeStyle({overflowX:"auto",cursor:vue.unref(z)?"pointer":"default"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Z.value,R=>(vue.openBlock(),vue.createBlock(ProductTag,{tag:R},null,8,["tag"]))),256)),!Z.value.length&&vue.unref(z)?(vue.openBlock(),vue.createBlock(QChip,{key:0,class:"tag",size:"12px"},{default:vue.withCtx(()=>G[0]||(G[0]=[vue.createTextVNode("Editar etiquetas")])),_:1,__:[0]})):vue.createCommentVNode("",!0)],4),vue.createElementVNode("div",_hoisted_3$3,[vue.createTextVNode(vue.toDisplayString((V=vue.unref(M))!=null&&V.length?vue.unref(u):0)+"/"+vue.toDisplayString(((S=vue.unref(M))==null?void 0:S.length)||0)+" ",1),vue.createVNode(QIcon,{name:"sym_o_image",size:"sm",class:"q-ml-xs"})])])}}}),ProductImageHeader=_export_sfc(_sfc_main$7,[["__scopeId","data-v-86923709"]]),_hoisted_1$5={key:0,class:"q-mt-md text-black col-12"},_sfc_main$6=vue.defineComponent({__name:"ProductLongDescription",setup(o){const{selectedPackProduct:s,product:M}=useContext(),u=vue.computed(()=>{var z,Z;return((z=s.value)==null?void 0:z.DESCRIPCION)||((Z=M.value)==null?void 0:Z.descripcion)});return(z,Z)=>u.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[Z[0]||(Z[0]=vue.createElementVNode("div",{class:"font-bold text-h6"},"Información del producto",-1)),vue.createElementVNode("div",null,vue.toDisplayString(u.value),1)])):vue.createCommentVNode("",!0)}}),_hoisted_1$4={class:"full-width simple-grid"},_hoisted_2$3={class:"bg-grey-2 values"},_hoisted_3$2={class:"text-bold"},_hoisted_4$2={class:"text-bold"},_hoisted_5$2={class:"text-bold"},convertToMeters=(o,s)=>{switch(s){case"m":return o;case"cm":return o/100;case"mm":return o/1e3;default:throw new Error(`Unidad no soportada: ${s}`)}},getPanelesFn=o=>{const s=Number(o.ancho)||0,M=Number(o.alto)||0,u=o.unidad_de_medida||"cm",z=convertToMeters(s,u),Z=convertToMeters(M,u);let r=z*Z;return r<=0&&(r=1),N=>{const X=1/r,y=getSquareMeters(N);return Math.ceil(y*X)}},getSquareMeters=o=>{const s=Number((o==null?void 0:o.ancho)||0),M=Number((o==null?void 0:o.alto)||0);return s*M},_sfc_main$5=vue.defineComponent({__name:"ProductConfiguration",props:vue.mergeModels({product:{}},{quantity:{required:!0,default:1},quantityModifiers:{},detail:{required:!0},detailModifiers:{}}),emits:["update:quantity","update:detail"],setup(o){const s=o,M=vue.useModel(o,"quantity"),u=vue.useModel(o,"detail"),z=vue.computed(()=>lodashExports.mapKeys(s.product||{},(j,C)=>C.toUpperCase())),Z=vue.computed(()=>{var j;return((j=z.value)==null?void 0:j.PROPS)||{}}),r=vue.computed(()=>Z.value.unidad_de_medida||"cm"),N=vue.computed(()=>getPanelesFn(Z.value||{}));vue.watch(u,j=>{M.value=N.value(u.value)},{immediate:!0,deep:!0});const X=j=>j.toLocaleString("es-ES",{minimumFractionDigits:2,maximumFractionDigits:2}),y=vue.computed(()=>{var C;return(Number((C=z.value)==null?void 0:C.PRECIO)||0)*M.value}),G=vue.computed(()=>getSquareMeters(u.value)),V=vue.computed(()=>{var j;return convertToMeters(Number((j=Z.value)==null?void 0:j.ancho)||0,r.value)}),S=vue.computed(()=>{var j;return convertToMeters(Number((j=Z.value)==null?void 0:j.alto)||0,r.value)}),R=vue.computed(()=>V.value*S.value),D=vue.computed(()=>{var C;const j=((C=z.value)==null?void 0:C.PRECIO)||0;return!j||!R.value?0:toCurrency(j/R.value)});return vue.watch(()=>u.value.ancho,j=>{j%V.value!==0&&(u.value.ancho=Math.ceil(j/V.value)*V.value)}),vue.watch(()=>u.value.alto,j=>{j%S.value!==0&&(u.value.alto=Math.ceil(j/S.value)*S.value)}),(j,C)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[C[6]||(C[6]=vue.createElementVNode("div",{class:"prices text-bold q-mb-md"}," Define la configuración para este producto ",-1)),vue.createElementVNode("div",_hoisted_1$4,[vue.createElementVNode("div",null,[vue.createVNode(QInput,{type:"number",outlined:"",class:"q-mb-md",modelValue:u.value.ancho,"onUpdate:modelValue":C[0]||(C[0]=B=>u.value.ancho=B),modelModifiers:{number:!0},label:"Ancho",suffix:"metros",step:V.value,min:"0"},null,8,["modelValue","step"]),vue.createVNode(QInput,{type:"number",outlined:"",modelValue:u.value.alto,"onUpdate:modelValue":C[1]||(C[1]=B=>u.value.alto=B),modelModifiers:{number:!0},label:"Alto",suffix:"metros",step:S.value,min:"0"},null,8,["modelValue","step"])]),vue.createElementVNode("div",_hoisted_2$3,[vue.createElementVNode("div",null,[vue.createTextVNode(" Área panel: "+vue.toDisplayString(X(R.value))+" m",1),C[2]||(C[2]=vue.createElementVNode("sup",null,"2",-1))]),vue.createElementVNode("div",null,[C[3]||(C[3]=vue.createTextVNode(" Importe m")),C[4]||(C[4]=vue.createElementVNode("sup",null,"2",-1)),vue.createTextVNode(": "+vue.toDisplayString(D.value),1)]),vue.createElementVNode("div",_hoisted_3$2,[vue.createTextVNode("Área total: "+vue.toDisplayString(X(G.value))+" m",1),C[5]||(C[5]=vue.createElementVNode("sup",null,"2",-1))]),vue.createElementVNode("div",_hoisted_4$2,"Paneles: "+vue.toDisplayString(M.value),1),vue.createElementVNode("div",_hoisted_5$2,"Importe total: "+vue.toDisplayString(vue.unref(toCurrency)(y.value)),1)])])],64))}}),ProductConfiguration=_export_sfc(_sfc_main$5,[["__scopeId","data-v-c9fce151"]]),_hoisted_1$3={key:0,class:"q-mt-lg"},_hoisted_2$2={class:"row justify-between q-mt-md"},_hoisted_3$1={key:0,class:"counter q-mr-lg"},_hoisted_4$1={class:"quantity"},_hoisted_5$1={key:1},_sfc_main$4=vue.defineComponent({__name:"ProductShopcartActions",setup(o){const{product:s,productProps:M}=useContext(),{emitEvent:u}=useWidgetEvent(),z=vue.computed(()=>{var V;return!!((V=M.value)!=null&&V.a_medida)}),Z=vue.ref(z.value?0:1),r=vue.ref({}),N=vue.computed(()=>z.value&&Z.value<=0),X=()=>{Z.value=Math.max(1,Z.value-1)},y=()=>{Z.value++},G=()=>{const V=lodashExports.omit(s.value,"images","table_estado");u("add_to_shopcart",{product:lodashExports.mapKeys({...V,id_producto:V.id},(S,R)=>R.toUpperCase()),quantity:Z.value,props:r.value||{}})};return(V,S)=>vue.unref(s)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[z.value?(vue.openBlock(),vue.createBlock(ProductConfiguration,{key:0,product:vue.unref(s),quantity:Z.value,"onUpdate:quantity":S[0]||(S[0]=R=>Z.value=R),detail:r.value,"onUpdate:detail":S[1]||(S[1]=R=>r.value=R)},null,8,["product","quantity","detail"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$2,[z.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$1,[vue.createVNode(IconButton,{outline:"",size:"sm",onClick:X,icon:"remove"}),vue.createElementVNode("span",_hoisted_4$1,vue.toDisplayString(Z.value),1),vue.createVNode(IconButton,{outline:"",size:"sm",custom:"",onClick:y,icon:"add"})])),vue.createVNode(_sfc_main$Q,{onClick:G,disable:N.value,main:"",label:"Agregar al carrito"},null,8,["disable"])])])):vue.createCommentVNode("",!0)}}),ProductShopcartActions=_export_sfc(_sfc_main$4,[["__scopeId","data-v-42882252"]]),_hoisted_1$2={style:{"font-size":"16px","max-height":"300px","overflow-y":"auto"}},_hoisted_2$1={key:0,class:"text-black"},_sfc_main$3=vue.defineComponent({__name:"ProductShortDescription",setup(o){const{product:s}=useContext(),M=vue.computed(()=>{var u;return((u=s.value)==null?void 0:u.descripcion_corta)||""});return(u,z)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[M.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,vue.toDisplayString(M.value),1)):vue.createCommentVNode("",!0)]))}}),_hoisted_1$1={key:0,class:"visibility-icon-container top-right"},_sfc_main$2=vue.defineComponent({__name:"PublicImageButton",setup(o){const{images:s,slide:M,isPrivate:u}=useContext(),z=vue.computed(()=>{var X;return(X=s.value[M.value-1])==null?void 0:X.id}),Z=vue.computed(()=>{var X;return(X=s.value[M.value-1])==null?void 0:X.public}),{emitEvent:r}=useWidgetEvent(),N=()=>r("change_image_visibility",{ID_ARCHIVO:z.value,PUBLICO:!Z.value});return(X,y)=>{var G;return(G=vue.unref(s))!=null&&G.length&&vue.unref(u)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[vue.createVNode(QBtn,{onClick:vue.withModifiers(N,["stop"]),size:"12px",icon:Z.value?"public":"public_off","text-color":Z.value?"green":"red",color:"white",padding:"4px",round:""},{default:vue.withCtx(()=>[vue.createVNode(QTooltip,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Z.value?"Visible al público":"Privado"),1)]),_:1})]),_:1},8,["icon","text-color"])])):vue.createCommentVNode("",!0)}}}),PublicImageButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-3a4b0b68"]]),_hoisted_1={class:"grid"},_hoisted_2={class:"images-container"},_hoisted_3={class:"carousel-container"},_hoisted_4={class:"text-h5 text-bold"},_hoisted_5={class:"row justify-between"},_hoisted_6={key:0},_hoisted_7={class:"row items-center justify-between"},_hoisted_8={class:"text-weight-medium"},_hoisted_9={class:"row"},_sfc_main$1=vue.defineComponent({__name:"LinvermediaProductDetail",props:{isPublic:{type:Boolean},fetching:{type:Boolean},scale:{},count:{},view:{default:"detail"},title:{},data:{},gamaProps:{}},emits:["on-event"],setup(o,{emit:s}){const M=s;vue.provide("emit",M);const u=o,z=vue.ref(1),{data:Z,isPublic:r,fetching:N,gamaProps:X,count:y}=vue.toRefs(u),G=vue.computed(()=>toProductLite(Z.value)),V=vue.ref(null),S=vue.ref([]),R={product:G,slide:z,isPublic:r,selectedPackProduct:V,images:S,count:y,gamaProps:X};vue.provide("context",R);const D=vue.computed(()=>{var C;return!!((C=G.value)!=null&&C.pack)}),j=()=>{var C;return M("on-event",{code:"edit_product",payload:{id:(C=G.value)==null?void 0:C.id}})};return(C,B)=>{const F=vue.resolveComponent("v-else"),U=vue.resolveComponent("ProductAvailableColors");return vue.openBlock(),vue.createBlock(Card$1,{loading:vue.unref(N)},{actions:vue.withCtx(()=>[vue.unref(r)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(IconButton,{key:0,action:"edit",sm:"",onClick:j}))]),default:vue.withCtx(()=>{var E,g,f,q,o0,c0,P;return[vue.createElementVNode("div",_hoisted_1,[vue.createElementVNode("div",_hoisted_2,[vue.createVNode(ImagesMiniature),vue.createElementVNode("div",_hoisted_3,[vue.createVNode(ProductImageHeader),vue.createVNode(_sfc_main$L,{style:{"border-radius":"8px"},items:S.value,modelValue:z.value,"onUpdate:modelValue":B[0]||(B[0]=b0=>z.value=b0),height:"600px"},null,8,["items","modelValue"]),vue.createVNode(PublicImageButton)])]),vue.createElementVNode("div",null,[vue.createElementVNode("div",_hoisted_4,vue.toDisplayString(vue.unref(capitalize)(((E=G.value)==null?void 0:E.nombre)||"")),1),vue.createElementVNode("div",_hoisted_5,[vue.unref(r)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6,"SKU: "+vue.toDisplayString((f=(g=G.value)==null?void 0:g.props)==null?void 0:f.sku),1)),vue.createVNode(F,{div:""}),!vue.unref(r)&&((q=G.value)!=null&&q.estado)?(vue.openBlock(),vue.createBlock(StateIndicator,{key:1,label:G.value.estado.name,color:G.value.estado.color},null,8,["label","color"])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_7,[vue.createVNode(ProductPrice,{product:G.value},null,8,["product"]),vue.createElementVNode("div",_hoisted_8,vue.toDisplayString(vue.unref(capitalize)(((c0=(o0=G.value)==null?void 0:o0.props)==null?void 0:c0.ubicacion)||"")),1),vue.createVNode(_sfc_main$9)]),vue.createVNode(U),vue.createVNode(_sfc_main$3),D.value?(vue.openBlock(),vue.createBlock(ProductDetallePack,{key:0})):(vue.openBlock(),vue.createBlock(_sfc_main$e,{key:1,"product-props":(P=G.value)==null?void 0:P.props,"gama-props":vue.unref(X)},null,8,["product-props","gama-props"])),vue.unref(r)?(vue.openBlock(),vue.createBlock(ProductShopcartActions,{key:2})):vue.createCommentVNode("",!0)])]),vue.createElementVNode("div",_hoisted_9,[vue.createVNode(_sfc_main$6)])]}),_:1},8,["loading"])}}}),LinvermediaProductDetail=_export_sfc(_sfc_main$1,[["__scopeId","data-v-4c10191f"]]),LINVERMEDIA_PRODUCT_DETAIL_MOCK_DATA=Object.freeze([{id:151,nombre:"Pantalla LED 3x2 P2.9 Escaparate",precio:21879.5,tipo_iva:"exento",descripcion:"Potente solución para escaparates grandes o interiores espaciosos. Con su formato cuadrado y gran superficie, es perfecta para videowalls que transmitan una imagen de marca sólida y profesional. La controladora Novastar Taurus TB50 garantiza un rendimiento óptimo y una gestión avanzada de contenidos complejos y en tiempo real.",descripcion_corta:"Pantalla LED 3x2m (6m²) 24 cabinets",estado:1,props:{sku:"LED-P29-FS",alto:"50",gama:"pantallas_led_modulares",ancho:"50",pitch:"2_9_mm",brillo:"4000_nits",peso_kg:"7",subgama:"led",a_medida:!0,material:"aluminio_fundido",ubicacion:"exterior",tipo_montaje:"matriz",proteccion_ip:"ip_65_ip_43",tasa_refresco:"3840",tipo_servicio:"full_front",consumo_maximo:"160W",consumo_medio_w:"80",usos_habituales:["eventos_estadios_mobiliario_urbano"],consumo_maximo_w:"160",tipo_instalacion:"estructura_exterior_soporte_metalico",unidad_de_medida:"cm",colores_disponibles:[],compatible_videowall:!0,propositos_generales:["publicidad_exterior_fachadas_contenido_comercial_videowall_exterior"],controladoras_compatibles:["novastar_vx_600","novastar_vx_1000","taurus_tb_40"]},tags:null,codigo:"00000073",fecha_creado:"2025-06-07T00:38:46.071Z",id_captacion:null,id_estado:"c241a8a9-51a6-4274-831c-d11503726458",id_gama:23,id_proveedor:null,paquete:0,pack:1,fecha_alta:"2025-06-06T04:00:00.000Z",documentos:[{id:909,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/c39831025394e8f0_Pantalla%20LED%20Exterior%20Mantenimiento%20Frontal%20Completo.png",public:1,tipo:"image",firmable:0,tags:null,posicion:2},{id:910,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/7eec48aa4f7a0d9d_Pantalla%20LED%20Exterior%20de%20Gran%20Brillo%20y%20Visibilidad%20500%20mmm.png",public:1,tipo:"image",firmable:0,tags:null,posicion:1},{id:911,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/51f4d42fb93178e3_to%20LED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida.png",public:1,tipo:"image",firmable:0,tags:null,posicion:3},{id:912,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/48deda3825a497a9_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",public:1,tipo:"image",firmable:0,tags:null,posicion:4},{id:913,estado:1,aprobado:-1,id_producto:151,id_captacion:null,id_tipo_documento:28,id_documento_firmado:null,location:"https://w2w-files.s3.amazonaws.com/linvermedia/eaea5eb4e9899055_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",public:1,tipo:"image",firmable:0,tags:null,posicion:5}],detalle_pack:[{ID_PRODUCTO_DETALLE_PACK:15,ID_PRODUCTO_PACK:151,ID_PRODUCTO_DETALLE:122,CANTIDAD:24,DESCUENTO:"10.00",PROPS:{alto:"2",ancho:"3"},PRINCIPAL:!0,DETALLE:{ID_PRODUCTO:122,ID_EMPRESA:1,COD_ART_MVX:"00000045",CAPTACION_COUNT:0,CODIGO_EXTERNO:null,NOMBRE:"Panel Modular LED P2.9 Exterior Frontal de Alto Brillo",DESCRIPCION:"La Pantalla LED P2.9 Exterior Frontal de Alto Brillo está diseñada para ofrecer un rendimiento impecable en los entornos más exigentes. Su pixel pitch de 2.9mm ofrece una excelente resolución para vallas publicitarias, eventos deportivos y grandes escenarios al aire libre, con un brillo de 4000 nits que garantiza visibilidad incluso bajo el sol más intenso. Fabricada en aluminio fundido, es resistente y cuenta con mantenimiento frontal, facilitando el servicio en instalaciones de pared o estructuras fijas. Con un consumo máximo de 160W y medio de 80W, para eficiencia energética. Su clasificación IP65/IP43 asegura protección contra el polvo y el agua. Tus mensaje brillarán con la máxima potencia y fiabilidad en exteriores.",DESCRIPCION_CORTA:"Robusta y brillante, la pantalla LED P2.9 Exterior con mantenimiento frontal es ideal para publicidad y eventos al aire libre bajo cualquier condición.",ID_CAPTACION:null,ID_PROVEEDOR:null,ID_PRODUCTO_REF:null,TIPO:"1",ESTADO:"1",ID_GAMA:23,ID_TIE_DEF:null,TAGS:null,PROPS:{sku:"LED-P29-FS",alto:"50",gama:"pantallas_led_modulares",ancho:"50",pitch:"2_9_mm",brillo:"4000_nits",peso_kg:"7",subgama:"led",a_medida:!0,material:"aluminio_fundido",ubicacion:"exterior",tipo_montaje:"matriz",proteccion_ip:"ip_65_ip_43",tasa_refresco:"3840",tipo_servicio:"full_front",consumo_maximo:"160W",consumo_medio_w:"80",usos_habituales:["eventos_estadios_mobiliario_urbano"],consumo_maximo_w:"160",tipo_instalacion:"estructura_exterior_soporte_metalico",unidad_de_medida:"cm",colores_disponibles:[],compatible_videowall:!0,propositos_generales:["publicidad_exterior_fachadas_contenido_comercial_videowall_exterior"],controladoras_compatibles:["novastar_vx_600","novastar_vx_1000","taurus_tb_40"]},PUBLICO:!0,PACK:!1,CONFIGURABLE:!1,GRUPO:null,PAQUETE:!1,ID_PRODUCTOS_PAQUETE:null,PRECIO:"1000.00",PRECIOS:null,ID_ESTADO:"c241a8a9-51a6-4274-831c-d11503726458",ID_SEGMENTOS:null,TIPO_IVA:"exento",FECHA_ALTA:"2025-06-01",FECHA_UPD:"2025-06-26T03:59:54.090Z",FECHA_CREADO:"2025-05-29T16:24:25.545Z",ARCHIVOS:[{ID_ARCHIVO:883,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/c39831025394e8f0_Pantalla%20LED%20Exterior%20Mantenimiento%20Frontal%20Completo.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Pantalla LED Exterior Mantenimiento Frontal Completo.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:06:30.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:122,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:1},{ID_ARCHIVO:884,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/7eec48aa4f7a0d9d_Pantalla%20LED%20Exterior%20de%20Gran%20Brillo%20y%20Visibilidad%20500%20mmm.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Pantalla LED Exterior de Gran Brillo y Visibilidad 500 mmm.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:06:42.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:122,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:2}],UNDBASICA:null,FACTORAGR:null,CONTROLLOTE:null,TIPO_CLIENTE:null}},{ID_PRODUCTO_DETALLE_PACK:16,ID_PRODUCTO_PACK:151,ID_PRODUCTO_DETALLE:144,CANTIDAD:1,DESCUENTO:"0.00",PROPS:{alto:"",ancho:""},PRINCIPAL:!1,DETALLE:{ID_PRODUCTO:144,ID_EMPRESA:1,COD_ART_MVX:"00000067",CAPTACION_COUNT:0,CODIGO_EXTERNO:null,NOMBRE:"Controladora LED Novastar Taurus TB40 (Rendimiento Superior)",DESCRIPCION:"Esta controladora asíncrona de alto rendimiento está diseñada para los proyectos más exigentes, ofreciendo una potencia de procesamiento superior y una mayor capacidad de carga de pixels. Es ideal para pantallas LED de gran tamaño, aplicaciones interactivas o proyectos que requieren actualizaciones de contenido frecuentes y complejas. Con múltiples opciones de conectividad y una estabilidad excepcional, la TB40 garantiza una gestión remota fluida y fiable de tu contenido. Su robustez y eficiencia la convierten en la elección preferida para publicidad dinámica, información en tiempo real y experiencias visuales inmersivas.",DESCRIPCION_CORTA:"La Taurus TB40 de Novastar es una controladora asíncrona de alto rendimiento, diseñada para proyectos LED complejos que exigen máxima potencia y versatilida",ID_CAPTACION:null,ID_PROVEEDOR:null,ID_PRODUCTO_REF:null,TIPO:"1",ESTADO:"1",ID_GAMA:23,ID_TIE_DEF:null,TAGS:null,PROPS:{sku:"CTRL-TB40",gama:"controladoras",serie:"novastar_taurus",subgama:"controladoras_asincronas_reproductores_multimedia",ubicacion:"panel_led_modular",proteccion_ip:"ip_20_productos_de_interior",tipo_servicio:null,sistema_operativo:"android",compatibilidad_de_senal:["red_lan_wi_fi_4_g","usb"]},PUBLICO:!0,PACK:!1,CONFIGURABLE:!1,GRUPO:null,PAQUETE:!1,ID_PRODUCTOS_PAQUETE:null,PRECIO:"279.50",PRECIOS:null,ID_ESTADO:"c241a8a9-51a6-4274-831c-d11503726458",ID_SEGMENTOS:null,TIPO_IVA:"exento",FECHA_ALTA:null,FECHA_UPD:"2025-06-26T04:00:03.280Z",FECHA_CREADO:"2025-06-02T01:55:32.799Z",ARCHIVOS:[{ID_ARCHIVO:819,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/51f4d42fb93178e3_to%20LED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"1 Controladora LED Novastar Taurus TB40 (Rendimiento Superior) Controladora LED Novastar Taurus TB40, alto rendimiento LED, señalización digital compleja, controlador asíncrono premium, publicida.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-03T23:41:18.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:144,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:null},{ID_ARCHIVO:836,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/48deda3825a497a9_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"2 Controladora LED Novastar Taurus TB40 (Rendimiento Superior) Controladora LED Novastar Taurus TB40, alto rendimiento LED, señalización digital compleja, controlador asíncrono premium, publicida (1).png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-04T00:20:58.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:144,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:null},{ID_ARCHIVO:839,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/eaea5eb4e9899055_ED%2C%20se%C3%B1alizaci%C3%B3n%20digital%20compleja%2C%20controlador%20as%C3%ADncrono%20premium%2C%20publicida%20%281%29.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"3 Controladora LED Novastar Taurus TB40 (Rendimiento Superior) Controladora LED Novastar Taurus TB40, alto rendimiento LED, señalización digital compleja, controlador asíncrono premium, publicida (1).png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-04T00:30:31.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:144,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:null}],UNDBASICA:null,FACTORAGR:null,CONTROLLOTE:null,TIPO_CLIENTE:null}}]},{ID_PRODUCTO:119,ID_EMPRESA:1,COD_ART_MVX:"00000042",CAPTACION_COUNT:0,CODIGO_EXTERNO:null,nombre:"Panel Modular LED P2.5 Interior Versátil",NOMBRE:"Panel Modular LED P2.5 Interior Versátil",DESCRIPCION:"La Pantalla LED P2.5 Interior Versátil es la solución ideal para proyectos que buscan una excelente calidad de imagen con flexibilidad. Con un pixel pitch de 2.5mm, proporciona imágenes claras y brillantes para auditorios, centros comerciales, salas de conferencias y espacios de eventos. Su construcción en aluminio fundido garantiza ligereza y resistencia, facilitando la instalación y el mantenimiento (frontal y trasero). Con un brillo de 1000 nits y una frecuencia de refresco de 3840Hz, asegura una visualización óptima y fluida ya que evita el parpadeo visible tanto al ojo humano como para las cámaras de video. Es perfecta para publicidad digital, información en puntos de venta o fondos de escenario. Disfruta de un consumo energético eficiente (120W máximo / 60W medio) que reduce los costes operativos. Eleva la comunicación visual en tu negocio con esta pantalla LED de alto rendimiento.",DESCRIPCION_CORTA:"Pantalla LED P2.5 Interior ofrece un equilibrio perfecto entre alta definición y versatilidad para una amplia gama de aplicaciones en interiores.",ID_CAPTACION:null,ID_PROVEEDOR:null,ID_PRODUCTO_REF:null,TIPO:"1",ESTADO:"1",ID_GAMA:23,ID_TIE_DEF:null,TAGS:null,PUBLICO:!0,PACK:!1,CONFIGURABLE:!1,GRUPO:null,PAQUETE:!1,ID_PRODUCTOS_PAQUETE:null,PRECIO:"775.00",PRECIOS:null,ID_ESTADO:"c241a8a9-51a6-4274-831c-d11503726458",ID_SEGMENTOS:null,TIPO_IVA:"exento",FECHA_ALTA:"2025-06-01",FECHA_UPD:"2025-06-26T03:59:52.832Z",FECHA_CREADO:"2025-05-29T16:01:15.064Z",UBICACION:null,R_IMG:[{ID_ARCHIVO:885,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/3b331997a4a4555b_Panel%20Modular%20LED%20Pantalla%20LED%20Interior%20de%20Alta%20Resoluci%C3%B3n.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Panel Modular LED Pantalla LED Interior de Alta Resolución.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:11:00.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:119,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:1},{ID_ARCHIVO:886,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/e777804b4bc63fd0_Panel%20Modular%20LED%20Pantalla%20LEDInterior%20de%20Alta%20Resoluci%C3%B3n.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Panel Modular LED Pantalla LEDInterior de Alta Resolución.png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-05T15:11:09.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:119,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:2},{ID_ARCHIVO:903,LOCATION:"https://w2w-files.s3.amazonaws.com/linvermedia/0075bc2e598888e6_T%C3%B3tem%20LED%20P2.0%20Interior%20con%20GOB%20%282%29.png",ID_ARCHIVO_FIRMADO:null,ID_ARCHIVO_FUENTE:null,FIRMABLE:!1,DETALLE_FIRMA:null,FILENAME:"Tótem LED P2.0 Interior con GOB (2).png",FILETYPE:"image",ID_TIPO_DOCUMENTO:28,DESCRIPCION:null,OBSERVACION:null,TAGS:null,TAG_TEMPORAL:null,APROBADA:"-1",ESTADO:1,SUBIDO_POR:null,APROBADO_POR:null,FECHA_SUBIDA:"2025-06-06T23:58:01.000Z",FECHA_APROBADO:null,ID_CONTACTO:null,ID_PRODUCTO:119,ID_PRODUCTO_PEDIDO:null,ID_INGRESO:null,ID_DEUDA:null,ID_GARANTIA:null,ID_CAPTACION:null,PUBLICO:!0,PRINCIPAL:!1,POSICION:3}],UNDBASICA:null,FACTORAGR:null,CONTROLLOTE:null,TIPO_CLIENTE:null,PROPS:{sku:"LED-P25-IN",alto:"48 ",gama:"pantallas_led_modulares",ancho:"64",pitch:"2_5_mm",brillo:"800_nits",peso_kg:"7 ",subgama:"led",a_medida:!0,material:"aluminio_fundido",ubicacion:"interior",tipo_montaje:"matriz",proteccion_ip:"ip_20_productos_de_interior",tasa_refresco:"3840",tipo_servicio:"back",consumo_maximo:"120W",consumo_medio_w:"60W",usos_habituales:["salas_de_control_estudios_de_tv_salas_de_videoconferencia_auditorios","tiendas_recepciones_hall_salas_de_espera_showrooms_galerias"],consumo_maximo_w:"1",tipo_instalacion:"anclado_a_pared_o_estructura_interior",unidad_de_medida:"cm",colores_disponibles:[],compatible_videowall:!0,propositos_generales:["publicidad_senaletica_informativo_decorativo_corporativo_contenido_comercial"],controladoras_compatibles:["novastar_vx_400","taurus_tb_2"]}},{id:371,nombre:'Pantalla LCD 65" Ultra Brillo 4K',precio:2227.5,tipo_iva:"exento",descripcion:'Eleva tu comunicación visual con la Pantalla LCD 65" 4K de Ultra Brillo. Esta impresionante pantalla, con su resolución 4K y un nivel de brillo excepcional (generalmente superior a 1500-2000 nits), es perfecta para entornos donde la visibilidad y el impacto son cruciales, como grandes escaparates, centros comerciales, aeropuertos o espacios de eventos. Su gran tamaño asegura que tu mensaje sea visible desde lejos, mientras que la claridad 4K garantiza que cada detalle se aprecie. Su diseño está optimizado para la eficiencia y la durabilidad en uso continuo. Una solución premium para proyectos que exigen la máxima calidad y presencia visual. ',descripcion_corta:'Gran formato y brillo extremo: la pantalla LCD 65" 4K de alta brillantez es ideal para espacios que demandan visibilidad impactante',estado:1,props:{sku:"LCD-65-HB",gama:"pantallas_lcd",brillo:"alta_brillantez_4_k_lcd",tamano:"65",peso_kg:">25-40",subgama:"lcd",material:"material_robusto_y_duradero",ubicacion:"escaparate",resolucion:"4_k",tipo_montaje:"mural",proteccion_ip:"ip_20_productos_de_interior",tasa_refresco:"60",tipo_servicio:null,usos_habituales:["escaparates_o_vitrinas_expuestas_al_sol","salas_de_control_estudios_de_tv_salas_de_videoconferencia_auditorios"],tipo_instalacion:"pared_o_soporte_vesa",colores_disponibles:[],propositos_generales:["publicidad_senaletica_informativo_decorativo_corporativo_contenido_comercial"],gran_formato_independiente:"si"},tags:"destacado,oferta",codigo:"T0000057",fecha_creado:"2025-05-30T04:02:19.415Z",id_captacion:null,id_estado:"c241a8a9-51a6-4274-831c-d11503726458",id_gama:23,id_proveedor:null,paquete:0,pack:0,fecha_alta:null,table_estado:{id:"c241a8a9-51a6-4274-831c-d11503726458",name:"No disponible",color:"#9c9c9c",code:"no_disponible",id_gama:23,enabled:1}},{id:167,nombre:"Pantalla LED",precio:2e4,tipo_iva:"general",descripcion:"Pantalla LED de alta calidad diseñada para aplicaciones interiores. Ofrece un brillo excepcional, resolución adaptable y un diseño ligero de aluminio, ideal para publicidad, videowalls y escaparates. Su doble cara y sistema operativo Android garantizan versatilidad y facilidad de uso.",descripcion_corta:"Pantalla LED interior de alta calidad, ligera y versátil.",estado:2,props:{gob:"si",sku:"TOT-LED-P18",alto:null,gama:"totems",ancho:null,marca:"Testing",pitch:"3_076_mm",brillo:"4500_nits",modelo:"Test",tamano:null,peso_kg:"3.5",subgama:"led",a_medida:!0,material:"aluminio",ubicacion:"interior",uso_final:"interior",doble_cara:!0,resolucion:null,subfamilia:"led",interactivo:null,profundidad:null,proteccion_ip:"ip_43_protegido_contra_objetos_de_mas_de_1_mm_y_agua_pulverizada",tipo_servicio:"front",consumo_medio_w:"200",tipo_de_montaje:"matriz",usos_habituales:[],consumo_maximo_w:"300",tipo_de_servicio:"full_front",tipo_instalacion:"montaje_interior_orientado_al_exterior",sistema_operativo:"android",colores_disponibles:["negro","blanco"],tasa_de_refresco_hz:"500",tipo_de_instalacion:"autoportante_de_suelo",propositos_generales:["publicidad_exterior_fachadas_contenido_comercial_videowall_exterior"],aplicacion_recomendada:["escaparates_o_vitrinas_expuestas_al_sol"],controladoras_compatibles:["novastar_vx_600","taurus_tb_30","novastar_vx_1000"]},tags:"destacado",codigo:"00000079",fecha_creado:"2025-06-11T03:04:21.800Z",id_captacion:null,id_estado:"c45eae87-d78c-4f2c-9f81-27eb87b5bc94",id_gama:23,id_proveedor:null,paquete:0,pack:1,fecha_alta:"2025-06-10T04:00:00.000Z",table_estado:{id:"c45eae87-d78c-4f2c-9f81-27eb87b5bc94",name:"Disponible",color:"#10c94b",code:"disponible",id_gama:23,enabled:1},images:[{id:840,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/dbd480ff0130270f_WhatsApp%20Image%202025-05-08%20at%2018.43.22%20%282%29.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:5},{id:841,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/c3416442188506c1_WhatsApp%20Image%202025-05-08%20at%2018.43.22.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:3},{id:842,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/69f7f669f37d3223_WhatsApp%20Image%202025-05-08%20at%2018.43.23.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:4},{id:843,location:"https://w2w-landings.s3.amazonaws.com/linvermedia_test/08ffe62e7e731aa3_WhatsApp%20Image%202025-05-08%20at%2018.43.23%20%281%29.jpeg",id_producto:167,public:1,tag_temporal:null,tipo:"image",estado:1,posicion:2}]},{id:379,nombre:"Controladora LED Novastar Taurus TB2 Avanzada",precio:227.5,tipo_iva:"exento",descripcion:"Esta unidad asíncrona ofrece una mayor capacidad de carga y un rendimiento mejorado respecto a la TB1, haciéndola perfecta para proyectos de señalización digital más ambiciosos. Permite la publicación de contenido de forma remota a través de múltiples opciones de conectividad (Gigabit Ethernet, Wi-Fi, 4G opcional), asegurando una actualización de mensajes fluida y fiable en cualquier momento y lugar. Su diseño robusto y estable garantiza un funcionamiento 24/7, crucial para aplicaciones comerciales, informativas o publicitarias. La TB2 es la solución robusta y eficiente para una gestión inteligente de tu señalización LED.",descripcion_corta:"Taurus TB2 es una controladora LED asíncrona potente, ideal para redes de señalización digital medianas que exigen estabilidad y gestión flexible de contenido.",estado:1,props:{sku:"CTRL-TB2",gama:"controladoras",serie:"novastar_taurus",subgama:"controladoras_asincronas_reproductores_multimedia",ubicacion:"led_modular",proteccion_ip:"ip_20_productos_de_interior",tipo_servicio:null,sistema_operativo:"android",compatibilidad_de_senal:["red_lan_wi_fi_4_g","usb"]},tags:null,codigo:"T0000065",fecha_creado:"2025-06-02T01:09:38.307Z",id_captacion:null,id_estado:"c241a8a9-51a6-4274-831c-d11503726458",id_gama:23,id_proveedor:null,paquete:0,pack:0,fecha_alta:null,table_estado:{id:"c241a8a9-51a6-4274-831c-d11503726458",name:"No disponible",color:"#9c9c9c",code:"no_disponible",id_gama:23,enabled:1}}]),LINVERMEDIA_PRODUCT_DETAIL_MOCK_PROPS={isPublic:!0,data:null,fetching:!1,scale:1,count:0,gamaProps:PROPS},LinvermediaProductDetailPropsSchema=WidgetPropsSchema.extend({view:enumType(["detail","summary"]).optional(),title:stringType().optional(),gamaProps:arrayType(recordType(stringType(),anyType()))});var momentTimezone$1={exports:{}},momentTimezone={exports:{}};//! moment.js
44
44
  //! version : 2.30.1
45
45
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
46
46
  //! license : MIT
@@ -63,4 +63,4 @@ Facilidad de instalación, se fija a la pared con tornillos de forma sencilla. M
63
63
  `)){const X0=document.createElement("div");X0.append(s0?document.createTextNode(s0):document.createElement("br")),this.editorDiv.append(X0)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(c0,P,b0){const a0=super.deserialize(c0,P,b0);return ut(a0,V,c0.fontSize),ut(a0,N,E.Util.makeHexColor(...c0.color)),ut(a0,X,c0.value),a0}serialize(){if(this.isEmpty())return null;const c0=q._internalPadding*this.parentScale,P=this.getRect(c0,c0),b0=f.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:T(this,N));return{annotationType:E.AnnotationEditorType.FREETEXT,color:b0,fontSize:T(this,V),value:T(this,X),pageIndex:this.pageIndex,rect:P,rotation:this.rotation}}};let o0=q;u=new WeakMap,z=new WeakMap,Z=new WeakMap,r=new WeakMap,N=new WeakMap,X=new WeakMap,y=new WeakMap,G=new WeakMap,V=new WeakMap,S=new WeakSet,R=function(c0){const P=a0=>{this.editorDiv.style.fontSize=`calc(${a0}px * var(--scale-factor))`,this.translate(0,-(a0-T(this,V))*this.parentScale),ut(this,V,a0),nt(this,F,U).call(this)},b0=T(this,V);this.addCommands({cmd:()=>{P(c0)},undo:()=>{P(b0)},mustExec:!0,type:E.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},D=new WeakSet,j=function(c0){const P=T(this,N);this.addCommands({cmd:()=>{ut(this,N,this.editorDiv.style.color=c0)},undo:()=>{ut(this,N,this.editorDiv.style.color=P)},mustExec:!0,type:E.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},C=new WeakSet,B=function(){const c0=this.editorDiv.getElementsByTagName("div");if(c0.length===0)return this.editorDiv.innerText;const P=[];for(const b0 of c0)P.push(b0.innerText.replace(/\r\n?|\n/,""));return P.join(`
64
64
  `)},F=new WeakSet,U=function(){const[c0,P]=this.parentDimensions;let b0;if(this.isAttachedToDOM)b0=this.div.getBoundingClientRect();else{const{currentLayer:a0,div:O0}=this,s0=O0.style.display;O0.style.display="hidden",a0.div.append(this.div),b0=O0.getBoundingClientRect(),O0.remove(),O0.style.display=s0}this.width=b0.width/c0,this.height=b0.height/P},It(o0,"_freeTextDefaultContent",""),It(o0,"_l10nPromise"),It(o0,"_internalPadding",0),It(o0,"_defaultColor",null),It(o0,"_defaultFontSize",10),It(o0,"_keyboardManager",new g.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],q.prototype.commitOrRemove]])),It(o0,"_type","freetext"),s.FreeTextEditor=o0},(o,s,M)=>{var u,z,Z,r,N,X,y,G,V,S,R,D,j,C,B,F,U,E,g,f,q,o0,c0,P,b0,a0,O0,s0,X0,H,Q,$,l0,_,v,t0,n0,p0,Z0,W0,h0,N0,u0,D0,f0,A0,J,e0,d0,M0,r0,L0,S0,w0,C0,j0,P0,E0,Q0,$0,o1,Y0,v0,d1,i1,k1,m1,g0,M1,W1;Object.defineProperty(s,"__esModule",{value:!0}),s.InkEditor=void 0;var Z1=M(1),b1=M(140),wl=M(141);const A1=16,h1=class extends b1.AnnotationEditor{constructor(I0){super({...I0,name:"inkEditor"}),et(this,U),et(this,g),et(this,q),et(this,c0),et(this,b0),et(this,O0),et(this,X0),et(this,Q),et(this,l0),et(this,v),et(this,n0),et(this,Z0),et(this,h0),et(this,u0),et(this,f0),et(this,J),et(this,d0),et(this,r0),et(this,S0),et(this,P0),et(this,Q0),et(this,o1),et(this,v0),et(this,i1),et(this,m1),et(this,M1),et(this,u,0),et(this,z,0),et(this,Z,0),et(this,r,this.canvasContextMenu.bind(this)),et(this,N,this.canvasPointermove.bind(this)),et(this,X,this.canvasPointerleave.bind(this)),et(this,y,this.canvasPointerup.bind(this)),et(this,G,this.canvasPointerdown.bind(this)),et(this,V,new Path2D),et(this,S,!1),et(this,R,!1),et(this,D,!1),et(this,j,null),et(this,C,0),et(this,B,0),et(this,F,null),this.color=I0.color||null,this.thickness=I0.thickness||null,this.opacity=I0.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(I0){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink2_aria_label"].map(F0=>[F0,I0.get(F0)]))}static updateDefaultParams(I0,F0){switch(I0){case Z1.AnnotationEditorParamsType.INK_THICKNESS:h1._defaultThickness=F0;break;case Z1.AnnotationEditorParamsType.INK_COLOR:h1._defaultColor=F0;break;case Z1.AnnotationEditorParamsType.INK_OPACITY:h1._defaultOpacity=F0/100}}updateParams(I0,F0){switch(I0){case Z1.AnnotationEditorParamsType.INK_THICKNESS:nt(this,U,E).call(this,F0);break;case Z1.AnnotationEditorParamsType.INK_COLOR:nt(this,g,f).call(this,F0);break;case Z1.AnnotationEditorParamsType.INK_OPACITY:nt(this,q,o0).call(this,F0)}}static get defaultPropertiesToUpdate(){return[[Z1.AnnotationEditorParamsType.INK_THICKNESS,h1._defaultThickness],[Z1.AnnotationEditorParamsType.INK_COLOR,h1._defaultColor||b1.AnnotationEditor._defaultLineColor],[Z1.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*h1._defaultOpacity)]]}get propertiesToUpdate(){return[[Z1.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||h1._defaultThickness],[Z1.AnnotationEditorParamsType.INK_COLOR,this.color||h1._defaultColor||b1.AnnotationEditor._defaultLineColor],[Z1.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??h1._defaultOpacity))]]}rebuild(){super.rebuild(),this.div!==null&&(this.canvas||(nt(this,f0,A0).call(this),nt(this,J,e0).call(this)),this.isAttachedToDOM||(this.parent.add(this),nt(this,d0,M0).call(this)),nt(this,m1,g0).call(this))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,T(this,j).disconnect(),ut(this,j,null),super.remove())}setParent(I0){!this.parent&&I0?this._uiManager.removeShouldRescale(this):this.parent&&I0===null&&this._uiManager.addShouldRescale(this),super.setParent(I0)}onScaleChanging(){const[I0,F0]=this.parentDimensions,_0=this.width*I0,t1=this.height*F0;this.setDimensions(_0,t1)}enableEditMode(){!T(this,S)&&this.canvas!==null&&(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",T(this,G)))}disableEditMode(){this.isInEditMode()&&this.canvas!==null&&(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",T(this,G)))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){T(this,S)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),ut(this,S,!0),this.div.classList.add("disabled"),nt(this,m1,g0).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus({preventScroll:!0}))}focusin(I0){super.focusin(I0),this.enableEditMode()}canvasPointerdown(I0){I0.button===0&&this.isInEditMode()&&!T(this,S)&&(this.setInForeground(),I0.preventDefault(),I0.type!=="mouse"&&this.div.focus(),nt(this,O0,s0).call(this,I0.offsetX,I0.offsetY))}canvasContextMenu(I0){I0.preventDefault()}canvasPointermove(I0){I0.preventDefault(),nt(this,X0,H).call(this,I0.offsetX,I0.offsetY)}canvasPointerup(I0){I0.preventDefault(),nt(this,u0,D0).call(this,I0)}canvasPointerleave(I0){nt(this,u0,D0).call(this,I0)}render(){if(this.div)return this.div;let I0,F0;this.width&&(I0=this.x,F0=this.y),super.render(),h1._l10nPromise.get("editor_ink2_aria_label").then(z1=>{var N1;return(N1=this.div)===null||N1===void 0?void 0:N1.setAttribute("aria-label",z1)});const[_0,t1,B0,q0]=nt(this,c0,P).call(this);if(this.setAt(_0,t1,0,0),this.setDims(B0,q0),nt(this,f0,A0).call(this),this.width){const[z1,N1]=this.parentDimensions;this.setAt(I0*z1,F0*N1,this.width*z1,this.height*N1),ut(this,D,!0),nt(this,d0,M0).call(this),this.setDims(this.width*z1,this.height*N1),nt(this,h0,N0).call(this),nt(this,M1,W1).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return nt(this,J,e0).call(this),this.div}setDimensions(I0,F0){const _0=Math.round(I0),t1=Math.round(F0);if(T(this,C)===_0&&T(this,B)===t1)return;ut(this,C,_0),ut(this,B,t1),this.canvas.style.visibility="hidden",T(this,u)&&Math.abs(T(this,u)-I0/F0)>.01&&(F0=Math.ceil(I0/T(this,u)),this.setDims(I0,F0));const[B0,q0]=this.parentDimensions;this.width=I0/B0,this.height=F0/q0,T(this,S)&&nt(this,r0,L0).call(this,I0,F0),nt(this,d0,M0).call(this),nt(this,h0,N0).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(I0,F0,_0){var t1,B0;const q0=super.deserialize(I0,F0,_0);q0.thickness=I0.thickness,q0.color=Z1.Util.makeHexColor(...I0.color),q0.opacity=I0.opacity;const[z1,N1]=q0.pageDimensions,F1=q0.width*z1,Y1=q0.height*N1,U1=q0.parentScale,I1=I0.thickness/2;ut(q0,u,F1/Y1),ut(q0,S,!0),ut(q0,C,Math.round(F1)),ut(q0,B,Math.round(Y1));for(const{bezier:q1}of I0.paths){const zl=[];q0.paths.push(zl);let B1=U1*(q1[0]-I1),H1=U1*(Y1-q1[1]-I1);for(let bl=2,ql=q1.length;bl<ql;bl+=6){const Te=U1*(q1[bl]-I1),ae=U1*(Y1-q1[bl+1]-I1),ie=U1*(q1[bl+2]-I1),ct=U1*(Y1-q1[bl+3]-I1),je=U1*(q1[bl+4]-I1),T0=U1*(Y1-q1[bl+5]-I1);zl.push([[B1,H1],[Te,ae],[ie,ct],[je,T0]]),B1=je,H1=T0}const rl=nt(this,C0,j0).call(this,zl);q0.bezierPath2D.push(rl)}const J1=nt(t1=q0,v0,d1).call(t1);return ut(q0,Z,Math.max(A1,J1[2]-J1[0])),ut(q0,z,Math.max(A1,J1[3]-J1[1])),nt(B0=q0,r0,L0).call(B0,F1,Y1),q0}serialize(){if(this.isEmpty())return null;const I0=this.getRect(0,0),F0=this.rotation%180==0?I0[3]-I0[1]:I0[2]-I0[0],_0=b1.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:Z1.AnnotationEditorType.INK,color:_0,thickness:this.thickness,opacity:this.opacity,paths:nt(this,P0,E0).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,F0),pageIndex:this.pageIndex,rect:I0,rotation:this.rotation}}};let ll=h1;u=new WeakMap,z=new WeakMap,Z=new WeakMap,r=new WeakMap,N=new WeakMap,X=new WeakMap,y=new WeakMap,G=new WeakMap,V=new WeakMap,S=new WeakMap,R=new WeakMap,D=new WeakMap,j=new WeakMap,C=new WeakMap,B=new WeakMap,F=new WeakMap,U=new WeakSet,E=function(I0){const F0=this.thickness;this.addCommands({cmd:()=>{this.thickness=I0,nt(this,m1,g0).call(this)},undo:()=>{this.thickness=F0,nt(this,m1,g0).call(this)},mustExec:!0,type:Z1.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},g=new WeakSet,f=function(I0){const F0=this.color;this.addCommands({cmd:()=>{this.color=I0,nt(this,h0,N0).call(this)},undo:()=>{this.color=F0,nt(this,h0,N0).call(this)},mustExec:!0,type:Z1.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},q=new WeakSet,o0=function(I0){I0/=100;const F0=this.opacity;this.addCommands({cmd:()=>{this.opacity=I0,nt(this,h0,N0).call(this)},undo:()=>{this.opacity=F0,nt(this,h0,N0).call(this)},mustExec:!0,type:Z1.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},c0=new WeakSet,P=function(){const{parentRotation:I0,parentDimensions:[F0,_0]}=this;switch(I0){case 90:return[0,_0,_0,F0];case 180:return[F0,_0,F0,_0];case 270:return[F0,0,_0,F0];default:return[0,0,F0,_0]}},b0=new WeakSet,a0=function(){const{ctx:I0,color:F0,opacity:_0,thickness:t1,parentScale:B0,scaleFactor:q0}=this;I0.lineWidth=t1*B0/q0,I0.lineCap="round",I0.lineJoin="round",I0.miterLimit=10,I0.strokeStyle=`${F0}${(0,wl.opacityToHex)(_0)}`},O0=new WeakSet,s0=function(I0,F0){this.canvas.addEventListener("contextmenu",T(this,r)),this.canvas.addEventListener("pointerleave",T(this,X)),this.canvas.addEventListener("pointermove",T(this,N)),this.canvas.addEventListener("pointerup",T(this,y)),this.canvas.removeEventListener("pointerdown",T(this,G)),this.isEditing=!0,T(this,D)||(ut(this,D,!0),nt(this,d0,M0).call(this),this.thickness||(this.thickness=h1._defaultThickness),this.color||(this.color=h1._defaultColor||b1.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=h1._defaultOpacity)),this.currentPath.push([I0,F0]),ut(this,R,!1),nt(this,b0,a0).call(this),ut(this,F,()=>{nt(this,v,t0).call(this),T(this,F)&&window.requestAnimationFrame(T(this,F))}),window.requestAnimationFrame(T(this,F))},X0=new WeakSet,H=function(I0,F0){const[_0,t1]=this.currentPath.at(-1);if(this.currentPath.length>1&&I0===_0&&F0===t1)return;const B0=this.currentPath;let q0=T(this,V);B0.push([I0,F0]),ut(this,R,!0),B0.length<=2?(q0.moveTo(...B0[0]),q0.lineTo(I0,F0)):(B0.length===3&&(ut(this,V,q0=new Path2D),q0.moveTo(...B0[0])),nt(this,n0,p0).call(this,q0,...B0.at(-3),...B0.at(-2),I0,F0))},Q=new WeakSet,$=function(){if(this.currentPath.length===0)return;const I0=this.currentPath.at(-1);T(this,V).lineTo(...I0)},l0=new WeakSet,_=function(I0,F0){ut(this,F,null),I0=Math.min(Math.max(I0,0),this.canvas.width),F0=Math.min(Math.max(F0,0),this.canvas.height),nt(this,X0,H).call(this,I0,F0),nt(this,Q,$).call(this);let _0;if(this.currentPath.length!==1)_0=nt(this,Z0,W0).call(this);else{const q0=[I0,F0];_0=[[q0,q0.slice(),q0.slice(),q0]]}const t1=T(this,V),B0=this.currentPath;this.currentPath=[],ut(this,V,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(B0),this.paths.push(_0),this.bezierPath2D.push(t1),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(nt(this,f0,A0).call(this),nt(this,J,e0).call(this)),nt(this,m1,g0).call(this))},mustExec:!0})},v=new WeakSet,t0=function(){if(!T(this,R))return;ut(this,R,!1),Math.ceil(this.thickness*this.parentScale);const I0=this.currentPath.slice(-3),F0=I0.map(B0=>B0[0]),_0=I0.map(B0=>B0[1]),{ctx:t1}=(Math.min(...F0),Math.max(...F0),Math.min(..._0),Math.max(..._0),this);t1.save(),t1.clearRect(0,0,this.canvas.width,this.canvas.height);for(const B0 of this.bezierPath2D)t1.stroke(B0);t1.stroke(T(this,V)),t1.restore()},n0=new WeakSet,p0=function(I0,F0,_0,t1,B0,q0,z1){const N1=(F0+t1)/2,F1=(_0+B0)/2,Y1=(t1+q0)/2,U1=(B0+z1)/2;I0.bezierCurveTo(N1+2*(t1-N1)/3,F1+2*(B0-F1)/3,Y1+2*(t1-Y1)/3,U1+2*(B0-U1)/3,Y1,U1)},Z0=new WeakSet,W0=function(){const I0=this.currentPath;if(I0.length<=2)return[[I0[0],I0[0],I0.at(-1),I0.at(-1)]];const F0=[];let _0,[t1,B0]=I0[0];for(_0=1;_0<I0.length-2;_0++){const[I1,J1]=I0[_0],[q1,zl]=I0[_0+1],B1=(I1+q1)/2,H1=(J1+zl)/2,rl=[t1+2*(I1-t1)/3,B0+2*(J1-B0)/3],bl=[B1+2*(I1-B1)/3,H1+2*(J1-H1)/3];F0.push([[t1,B0],rl,bl,[B1,H1]]),[t1,B0]=[B1,H1]}const[q0,z1]=I0[_0],[N1,F1]=I0[_0+1],Y1=[t1+2*(q0-t1)/3,B0+2*(z1-B0)/3],U1=[N1+2*(q0-N1)/3,F1+2*(z1-F1)/3];return F0.push([[t1,B0],Y1,U1,[N1,F1]]),F0},h0=new WeakSet,N0=function(){if(this.isEmpty()){nt(this,S0,w0).call(this);return}nt(this,b0,a0).call(this);const{canvas:I0,ctx:F0}=this;F0.setTransform(1,0,0,1,0,0),F0.clearRect(0,0,I0.width,I0.height),nt(this,S0,w0).call(this);for(const _0 of this.bezierPath2D)F0.stroke(_0)},u0=new WeakSet,D0=function(I0){this.canvas.removeEventListener("pointerleave",T(this,X)),this.canvas.removeEventListener("pointermove",T(this,N)),this.canvas.removeEventListener("pointerup",T(this,y)),this.canvas.addEventListener("pointerdown",T(this,G)),setTimeout(()=>{this.canvas.removeEventListener("contextmenu",T(this,r))},10),nt(this,l0,_).call(this,I0.offsetX,I0.offsetY),this.addToAnnotationStorage(),this.setInBackground()},f0=new WeakSet,A0=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",h1._l10nPromise.get("editor_ink_canvas_aria_label").then(I0=>{var F0;return(F0=this.canvas)===null||F0===void 0?void 0:F0.setAttribute("aria-label",I0)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},J=new WeakSet,e0=function(){ut(this,j,new ResizeObserver(I0=>{const F0=I0[0].contentRect;F0.width&&F0.height&&this.setDimensions(F0.width,F0.height)})),T(this,j).observe(this.div)},d0=new WeakSet,M0=function(){if(!T(this,D))return;const[I0,F0]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*I0),this.canvas.height=Math.ceil(this.height*F0),nt(this,S0,w0).call(this)},r0=new WeakSet,L0=function(I0,F0){const _0=nt(this,i1,k1).call(this),t1=(I0-_0)/T(this,Z),B0=(F0-_0)/T(this,z);this.scaleFactor=Math.min(t1,B0)},S0=new WeakSet,w0=function(){const I0=nt(this,i1,k1).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+I0,this.translationY*this.scaleFactor+I0)},C0=new WeakSet,j0=function(I0){const F0=new Path2D;for(let _0=0,t1=I0.length;_0<t1;_0++){const[B0,q0,z1,N1]=I0[_0];_0===0&&F0.moveTo(...B0),F0.bezierCurveTo(q0[0],q0[1],z1[0],z1[1],N1[0],N1[1])}return F0},P0=new WeakSet,E0=function(I0,F0,_0,t1){const B0=[],q0=this.thickness/2;let z1,N1;for(const F1 of this.paths){z1=[],N1=[];for(let Y1=0,U1=F1.length;Y1<U1;Y1++){const[I1,J1,q1,zl]=F1[Y1],B1=I0*(I1[0]+F0)+q0,H1=t1-I0*(I1[1]+_0)-q0,rl=I0*(J1[0]+F0)+q0,bl=t1-I0*(J1[1]+_0)-q0,ql=I0*(q1[0]+F0)+q0,Te=t1-I0*(q1[1]+_0)-q0,ae=I0*(zl[0]+F0)+q0,ie=t1-I0*(zl[1]+_0)-q0;Y1===0&&(z1.push(B1,H1),N1.push(B1,H1)),z1.push(rl,bl,ql,Te,ae,ie),nt(this,Q0,$0).call(this,B1,H1,rl,bl,ql,Te,ae,ie,4,N1)}B0.push({bezier:z1,points:N1})}return B0},Q0=new WeakSet,$0=function(I0,F0,_0,t1,B0,q0,z1,N1,F1,Y1){if(nt(this,o1,Y0).call(this,I0,F0,_0,t1,B0,q0,z1,N1))Y1.push(z1,N1);else{for(let U1=1;U1<F1-1;U1++){const I1=U1/F1,J1=1-I1;let q1=I1*I0+J1*_0,zl=I1*F0+J1*t1,B1=I1*_0+J1*B0,H1=I1*t1+J1*q0;q1=I1*q1+J1*B1,zl=I1*zl+J1*H1,B1=I1*B1+J1*(I1*B0+J1*z1),H1=I1*H1+J1*(I1*q0+J1*N1),q1=I1*q1+J1*B1,zl=I1*zl+J1*H1,Y1.push(q1,zl)}Y1.push(z1,N1)}},o1=new WeakSet,Y0=function(I0,F0,_0,t1,B0,q0,z1,N1){const F1=(3*_0-2*I0-z1)**2,Y1=(3*t1-2*F0-N1)**2,U1=(3*B0-I0-2*z1)**2,I1=(3*q0-F0-2*N1)**2;return Math.max(F1,U1)+Math.max(Y1,I1)<=10},v0=new WeakSet,d1=function(){let I0=1/0,F0=-1/0,_0=1/0,t1=-1/0;for(const B0 of this.paths)for(const[q0,z1,N1,F1]of B0){const Y1=Z1.Util.bezierBoundingBox(...q0,...z1,...N1,...F1);I0=Math.min(I0,Y1[0]),_0=Math.min(_0,Y1[1]),F0=Math.max(F0,Y1[2]),t1=Math.max(t1,Y1[3])}return[I0,_0,F0,t1]},i1=new WeakSet,k1=function(){return T(this,S)?Math.ceil(this.thickness*this.parentScale):0},m1=new WeakSet,g0=function(){let I0=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.isEmpty())return;if(!T(this,S)){nt(this,h0,N0).call(this);return}const F0=nt(this,v0,d1).call(this),_0=nt(this,i1,k1).call(this);ut(this,Z,Math.max(A1,F0[2]-F0[0])),ut(this,z,Math.max(A1,F0[3]-F0[1]));const t1=Math.ceil(_0+T(this,Z)*this.scaleFactor),B0=Math.ceil(_0+T(this,z)*this.scaleFactor),[q0,z1]=this.parentDimensions;this.width=t1/q0,this.height=B0/z1,ut(this,u,t1/B0),nt(this,M1,W1).call(this);const N1=this.translationX,F1=this.translationY;this.translationX=-F0[0],this.translationY=-F0[1],nt(this,d0,M0).call(this),nt(this,h0,N0).call(this),ut(this,C,t1),ut(this,B,B0),this.setDims(t1,B0);const Y1=I0?_0/this.scaleFactor/2:0;this.translate(N1-this.translationX-Y1,F1-this.translationY-Y1)},M1=new WeakSet,W1=function(){const{style:I0}=this.div;T(this,u)>=1?(I0.minHeight="16px",I0.minWidth=`${Math.round(T(this,u)*A1)}px`):(I0.minWidth="16px",I0.minHeight=`${Math.round(A1/T(this,u))}px`)},et(ll,C0),It(ll,"_defaultColor",null),It(ll,"_defaultOpacity",1),It(ll,"_defaultThickness",1),It(ll,"_l10nPromise"),It(ll,"_type","ink"),s.InkEditor=ll},(o,s,M)=>{var u,z,Z,r,N,X,y,G;Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationLayer=void 0;var V=M(1),S=M(142),R=M(139),D=M(166),j=M(167);const C=1e3,B=new WeakSet;function F(A0){return{width:A0[2]-A0[0],height:A0[3]-A0[1]}}class U{static create(J){switch(J.data.annotationType){case V.AnnotationType.LINK:return new g(J);case V.AnnotationType.TEXT:return new f(J);case V.AnnotationType.WIDGET:switch(J.data.fieldType){case"Tx":return new o0(J);case"Btn":return J.data.radioButton?new P(J):J.data.checkBox?new c0(J):new b0(J);case"Ch":return new a0(J)}return new q(J);case V.AnnotationType.POPUP:return new s0(J);case V.AnnotationType.FREETEXT:return new H(J);case V.AnnotationType.LINE:return new Q(J);case V.AnnotationType.SQUARE:return new $(J);case V.AnnotationType.CIRCLE:return new l0(J);case V.AnnotationType.POLYLINE:return new _(J);case V.AnnotationType.CARET:return new t0(J);case V.AnnotationType.INK:return new n0(J);case V.AnnotationType.POLYGON:return new v(J);case V.AnnotationType.HIGHLIGHT:return new p0(J);case V.AnnotationType.UNDERLINE:return new Z0(J);case V.AnnotationType.SQUIGGLY:return new W0(J);case V.AnnotationType.STRIKEOUT:return new h0(J);case V.AnnotationType.STAMP:return new N0(J);case V.AnnotationType.FILEATTACHMENT:return new u0(J);default:return new E(J)}}}class E{constructor(J){let{isRenderable:e0=!1,ignoreBorder:d0=!1,createQuadrilaterals:M0=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.isRenderable=e0,this.data=J.data,this.layer=J.layer,this.page=J.page,this.viewport=J.viewport,this.linkService=J.linkService,this.downloadManager=J.downloadManager,this.imageResourcesPath=J.imageResourcesPath,this.renderForms=J.renderForms,this.svgFactory=J.svgFactory,this.annotationStorage=J.annotationStorage,this.enableScripting=J.enableScripting,this.hasJSActions=J.hasJSActions,this._fieldObjects=J.fieldObjects,e0&&(this.container=this._createContainer(d0)),M0&&(this.quadrilaterals=this._createQuadrilaterals(d0))}_createContainer(){let J=arguments.length>0&&arguments[0]!==void 0&&arguments[0];const{data:e0,page:d0,viewport:M0}=this,r0=document.createElement("section");r0.setAttribute("data-annotation-id",e0.id),e0.noRotate&&r0.classList.add("norotate");const{pageWidth:L0,pageHeight:S0,pageX:w0,pageY:C0}=M0.rawDims,{width:j0,height:P0}=F(e0.rect),E0=V.Util.normalizeRect([e0.rect[0],d0.view[3]-e0.rect[1]+d0.view[1],e0.rect[2],d0.view[3]-e0.rect[3]+d0.view[1]]);if(!J&&e0.borderStyle.width>0){r0.style.borderWidth=`${e0.borderStyle.width}px`;const $0=e0.borderStyle.horizontalCornerRadius,o1=e0.borderStyle.verticalCornerRadius;if($0>0||o1>0){const v0=`calc(${$0}px * var(--scale-factor)) / calc(${o1}px * var(--scale-factor))`;r0.style.borderRadius=v0}else if(this instanceof P){const v0=`calc(${j0}px * var(--scale-factor)) / calc(${P0}px * var(--scale-factor))`;r0.style.borderRadius=v0}switch(e0.borderStyle.style){case V.AnnotationBorderStyleType.SOLID:r0.style.borderStyle="solid";break;case V.AnnotationBorderStyleType.DASHED:r0.style.borderStyle="dashed";break;case V.AnnotationBorderStyleType.BEVELED:(0,V.warn)("Unimplemented border style: beveled");break;case V.AnnotationBorderStyleType.INSET:(0,V.warn)("Unimplemented border style: inset");break;case V.AnnotationBorderStyleType.UNDERLINE:r0.style.borderBottomStyle="solid"}const Y0=e0.borderColor||null;Y0?r0.style.borderColor=V.Util.makeHexColor(0|Y0[0],0|Y0[1],0|Y0[2]):r0.style.borderWidth=0}r0.style.left=100*(E0[0]-w0)/L0+"%",r0.style.top=100*(E0[1]-C0)/S0+"%";const{rotation:Q0}=e0;return e0.hasOwnCanvas||Q0===0?(r0.style.width=100*j0/L0+"%",r0.style.height=100*P0/S0+"%"):this.setRotation(Q0,r0),r0}setRotation(J){let e0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.container;const{pageWidth:d0,pageHeight:M0}=this.viewport.rawDims,{width:r0,height:L0}=F(this.data.rect);let S0,w0;J%180==0?(S0=100*r0/d0,w0=100*L0/M0):(S0=100*L0/d0,w0=100*r0/M0),e0.style.width=`${S0}%`,e0.style.height=`${w0}%`,e0.setAttribute("data-main-rotation",(360-J)%360)}get _commonActions(){const J=(e0,d0,M0)=>{const r0=M0.detail[e0];M0.target.style[d0]=D.ColorConverters[`${r0[0]}_HTML`](r0.slice(1))};return(0,V.shadow)(this,"_commonActions",{display:e0=>{const d0=e0.detail.display%2==1;this.container.style.visibility=d0?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:d0,print:e0.detail.display===0||e0.detail.display===3})},print:e0=>{this.annotationStorage.setValue(this.data.id,{print:e0.detail.print})},hidden:e0=>{this.container.style.visibility=e0.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e0.detail.hidden})},focus:e0=>{setTimeout(()=>e0.target.focus({preventScroll:!1}),0)},userName:e0=>{e0.target.title=e0.detail.userName},readonly:e0=>{e0.detail.readonly?e0.target.setAttribute("readonly",""):e0.target.removeAttribute("readonly")},required:e0=>{this._setRequired(e0.target,e0.detail.required)},bgColor:e0=>{J("bgColor","backgroundColor",e0)},fillColor:e0=>{J("fillColor","backgroundColor",e0)},fgColor:e0=>{J("fgColor","color",e0)},textColor:e0=>{J("textColor","color",e0)},borderColor:e0=>{J("borderColor","borderColor",e0)},strokeColor:e0=>{J("strokeColor","borderColor",e0)},rotation:e0=>{const d0=e0.detail.rotation;this.setRotation(d0),this.annotationStorage.setValue(this.data.id,{rotation:d0})}})}_dispatchEventFromSandbox(J,e0){const d0=this._commonActions;for(const M0 of Object.keys(e0.detail)){const r0=J[M0]||d0[M0];r0==null||r0(e0)}}_setDefaultPropertiesFromJS(J){if(!this.enableScripting)return;const e0=this.annotationStorage.getRawValue(this.data.id);if(!e0)return;const d0=this._commonActions;for(const[M0,r0]of Object.entries(e0)){const L0=d0[M0];L0&&(L0({detail:{[M0]:r0},target:J}),delete e0[M0])}}_createQuadrilaterals(){let J=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!this.data.quadPoints)return null;const e0=[],d0=this.data.rect;for(const M0 of this.data.quadPoints)this.data.rect=[M0[2].x,M0[2].y,M0[1].x,M0[1].y],e0.push(this._createContainer(J));return this.data.rect=d0,e0}_createPopup(J,e0){let d0=this.container;this.quadrilaterals&&(J||(J=this.quadrilaterals),d0=this.quadrilaterals[0]),J||((J=document.createElement("div")).classList.add("popupTriggerArea"),d0.append(J));const M0=new X0({container:d0,trigger:J,color:e0.color,titleObj:e0.titleObj,modificationDate:e0.modificationDate,contentsObj:e0.contentsObj,richText:e0.richText,hideWrapper:!0}).render();M0.style.left="100%",d0.append(M0)}_renderQuadrilaterals(J){for(const e0 of this.quadrilaterals)e0.classList.add(J);return this.quadrilaterals}render(){(0,V.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(J){let e0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const d0=[];if(this._fieldObjects){const M0=this._fieldObjects[J];if(M0)for(const{page:r0,id:L0,exportValues:S0}of M0){if(r0===-1||L0===e0)continue;const w0=typeof S0=="string"?S0:null,C0=document.querySelector(`[data-element-id="${L0}"]`);!C0||B.has(C0)?d0.push({id:L0,exportValue:w0,domElement:C0}):(0,V.warn)(`_getElementsByName - element not allowed: ${L0}`)}return d0}for(const M0 of document.getElementsByName(J)){const{exportValue:r0}=M0,L0=M0.getAttribute("data-element-id");L0!==e0&&B.has(M0)&&d0.push({id:L0,exportValue:r0,domElement:M0})}return d0}}class g extends E{constructor(J){let e0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(J,{isRenderable:!0,ignoreBorder:!(e0==null||!e0.ignoreBorder),createQuadrilaterals:!0}),et(this,u),et(this,Z),this.isTooltipOnly=J.data.isTooltipOnly}render(){const{data:J,linkService:e0}=this,d0=document.createElement("a");d0.setAttribute("data-element-id",J.id);let M0=!1;return J.url?(e0.addLinkAttributes(d0,J.url,J.newWindow),M0=!0):J.action?(this._bindNamedAction(d0,J.action),M0=!0):J.attachment?(this._bindAttachment(d0,J.attachment),M0=!0):J.setOCGState?(nt(this,Z,r).call(this,d0,J.setOCGState),M0=!0):J.dest?(this._bindLink(d0,J.dest),M0=!0):(J.actions&&(J.actions.Action||J.actions["Mouse Up"]||J.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(d0,J),M0=!0),J.resetForm?(this._bindResetFormAction(d0,J.resetForm),M0=!0):this.isTooltipOnly&&!M0&&(this._bindLink(d0,""),M0=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((r0,L0)=>{const S0=L0===0?d0:d0.cloneNode();return r0.append(S0),r0}):(this.container.classList.add("linkAnnotation"),M0&&this.container.append(d0),this.container)}_bindLink(J,e0){J.href=this.linkService.getDestinationHash(e0),J.onclick=()=>(e0&&this.linkService.goToDestination(e0),!1),(e0||e0==="")&&nt(this,u,z).call(this)}_bindNamedAction(J,e0){J.href=this.linkService.getAnchorUrl(""),J.onclick=()=>(this.linkService.executeNamedAction(e0),!1),nt(this,u,z).call(this)}_bindAttachment(J,e0){J.href=this.linkService.getAnchorUrl(""),J.onclick=()=>{var d0;return(d0=this.downloadManager)===null||d0===void 0||d0.openOrDownloadData(this.container,e0.content,e0.filename),!1},nt(this,u,z).call(this)}_bindJSAction(J,e0){J.href=this.linkService.getAnchorUrl("");const d0=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const M0 of Object.keys(e0.actions)){const r0=d0.get(M0);r0&&(J[r0]=()=>{var L0;return(L0=this.linkService.eventBus)===null||L0===void 0||L0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0.id,name:M0}}),!1})}J.onclick||(J.onclick=()=>!1),nt(this,u,z).call(this)}_bindResetFormAction(J,e0){const d0=J.onclick;d0||(J.href=this.linkService.getAnchorUrl("")),nt(this,u,z).call(this),this._fieldObjects?J.onclick=()=>{d0==null||d0();const{fields:M0,refs:r0,include:L0}=e0,S0=[];if(M0.length!==0||r0.length!==0){const P0=new Set(r0);for(const E0 of M0){const Q0=this._fieldObjects[E0]||[];for(const{id:$0}of Q0)P0.add($0)}for(const E0 of Object.values(this._fieldObjects))for(const Q0 of E0)P0.has(Q0.id)===L0&&S0.push(Q0)}else for(const P0 of Object.values(this._fieldObjects))S0.push(...P0);const w0=this.annotationStorage,C0=[];for(const P0 of S0){const{id:E0}=P0;switch(C0.push(E0),P0.type){case"text":{const $0=P0.defaultValue||"";w0.setValue(E0,{value:$0});break}case"checkbox":case"radiobutton":{const $0=P0.defaultValue===P0.exportValues;w0.setValue(E0,{value:$0});break}case"combobox":case"listbox":{const $0=P0.defaultValue||"";w0.setValue(E0,{value:$0});break}default:continue}const Q0=document.querySelector(`[data-element-id="${E0}"]`);Q0&&(B.has(Q0)?Q0.dispatchEvent(new Event("resetform")):(0,V.warn)(`_bindResetFormAction - element not allowed: ${E0}`))}if(this.enableScripting){var j0;(j0=this.linkService.eventBus)===null||j0===void 0||j0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:C0,name:"ResetForm"}})}return!1}:((0,V.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),d0||(J.onclick=()=>!1))}}u=new WeakSet,z=function(){this.container.setAttribute("data-internal-link","")},Z=new WeakSet,r=function(A0,J){A0.href=this.linkService.getAnchorUrl(""),A0.onclick=()=>(this.linkService.executeSetOCGState(J),!1),nt(this,u,z).call(this)};class f extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str)})}render(){this.container.classList.add("textAnnotation");const J=document.createElement("img");return J.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",J.alt="[{{type}} Annotation]",J.dataset.l10nId="text_annotation_type",J.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(J,this.data),this.container.append(J),this.container}}class q extends E{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(J){if(this.data.hasOwnCanvas){var e0;((e0=J.previousSibling)===null||e0===void 0?void 0:e0.nodeName)==="CANVAS"&&(J.previousSibling.hidden=!0),J.hidden=!1}}_getKeyModifier(J){const{isWin:e0,isMac:d0}=V.FeatureTest.platform;return e0&&J.ctrlKey||d0&&J.metaKey}_setEventListener(J,e0,d0,M0){e0.includes("mouse")?J.addEventListener(e0,r0=>{var L0;(L0=this.linkService.eventBus)===null||L0===void 0||L0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:d0,value:M0(r0),shift:r0.shiftKey,modifier:this._getKeyModifier(r0)}})}):J.addEventListener(e0,r0=>{var L0;(L0=this.linkService.eventBus)===null||L0===void 0||L0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:d0,value:M0(r0)}})})}_setEventListeners(J,e0,d0){for(const[r0,L0]of e0){var M0;(L0==="Action"||(M0=this.data.actions)!==null&&M0!==void 0&&M0[L0])&&this._setEventListener(J,r0,L0,d0)}}_setBackgroundColor(J){const e0=this.data.backgroundColor||null;J.style.backgroundColor=e0===null?"transparent":V.Util.makeHexColor(e0[0],e0[1],e0[2])}_setTextStyle(J){const e0=["left","center","right"],{fontColor:d0}=this.data.defaultAppearanceData,M0=this.data.defaultAppearanceData.fontSize||9,r0=J.style;let L0;const S0=w0=>Math.round(10*w0)/10;if(this.data.multiLine){const w0=Math.abs(this.data.rect[3]-this.data.rect[1]-2),C0=w0/(Math.round(w0/(V.LINE_FACTOR*M0))||1);L0=Math.min(M0,S0(C0/V.LINE_FACTOR))}else{const w0=Math.abs(this.data.rect[3]-this.data.rect[1]-2);L0=Math.min(M0,S0(w0/V.LINE_FACTOR))}r0.fontSize=`calc(${L0}px * var(--scale-factor))`,r0.color=V.Util.makeHexColor(d0[0],d0[1],d0[2]),this.data.textAlignment!==null&&(r0.textAlign=e0[this.data.textAlignment])}_setRequired(J,e0){e0?J.setAttribute("required",!0):J.removeAttribute("required"),J.setAttribute("aria-required",e0)}}class o0 extends q{constructor(J){super(J,{isRenderable:J.renderForms||!J.data.hasAppearance&&!!J.data.fieldValue})}setPropertyOnSiblings(J,e0,d0,M0){const r0=this.annotationStorage;for(const L0 of this._getElementsByName(J.name,J.id))L0.domElement&&(L0.domElement[e0]=d0),r0.setValue(L0.id,{[M0]:d0})}render(){const J=this.annotationStorage,e0=this.data.id;this.container.classList.add("textWidgetAnnotation");let d0=null;if(this.renderForms){var M0;const L0=J.getValue(e0,{value:this.data.fieldValue});let S0=L0.value||"";const w0=J.getValue(e0,{charLimit:this.data.maxLen}).charLimit;w0&&S0.length>w0&&(S0=S0.slice(0,w0));let C0=L0.formattedValue||((M0=this.data.textContent)===null||M0===void 0?void 0:M0.join(`
65
65
  `))||null;C0&&this.data.comb&&(C0=C0.replaceAll(/\s+/g,""));const j0={userValue:S0,formattedValue:C0,lastCommittedValue:null,commitKey:1};this.data.multiLine?(d0=document.createElement("textarea"),d0.textContent=C0??S0,this.data.doNotScroll&&(d0.style.overflowY="hidden")):(d0=document.createElement("input"),d0.type="text",d0.setAttribute("value",C0??S0),this.data.doNotScroll&&(d0.style.overflowX="hidden")),this.data.hasOwnCanvas&&(d0.hidden=!0),B.add(d0),d0.setAttribute("data-element-id",e0),d0.disabled=this.data.readOnly,d0.name=this.data.fieldName,d0.tabIndex=C,this._setRequired(d0,this.data.required),w0&&(d0.maxLength=w0),d0.addEventListener("input",E0=>{J.setValue(e0,{value:E0.target.value}),this.setPropertyOnSiblings(d0,"value",E0.target.value,"value"),j0.formattedValue=null}),d0.addEventListener("resetform",E0=>{const Q0=this.data.defaultFieldValue??"";d0.value=j0.userValue=Q0,j0.formattedValue=null});let P0=E0=>{const{formattedValue:Q0}=j0;Q0!=null&&(E0.target.value=Q0),E0.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var r0;d0.addEventListener("focus",Q0=>{const{target:$0}=Q0;j0.userValue&&($0.value=j0.userValue),j0.lastCommittedValue=$0.value,j0.commitKey=1}),d0.addEventListener("updatefromsandbox",Q0=>{this.showElementAndHideCanvas(Q0.target);const $0={value(o1){j0.userValue=o1.detail.value??"",J.setValue(e0,{value:j0.userValue.toString()}),o1.target.value=j0.userValue},formattedValue(o1){const{formattedValue:Y0}=o1.detail;j0.formattedValue=Y0,Y0!=null&&o1.target!==document.activeElement&&(o1.target.value=Y0),J.setValue(e0,{formattedValue:Y0})},selRange(o1){o1.target.setSelectionRange(...o1.detail.selRange)},charLimit:o1=>{var Y0;const{charLimit:v0}=o1.detail,{target:d1}=o1;if(v0===0){d1.removeAttribute("maxLength");return}d1.setAttribute("maxLength",v0);let i1=j0.userValue;i1&&!(i1.length<=v0)&&(i1=i1.slice(0,v0),d1.value=j0.userValue=i1,J.setValue(e0,{value:i1}),(Y0=this.linkService.eventBus)===null||Y0===void 0||Y0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:i1,willCommit:!0,commitKey:1,selStart:d1.selectionStart,selEnd:d1.selectionEnd}}))}};this._dispatchEventFromSandbox($0,Q0)}),d0.addEventListener("keydown",Q0=>{var $0;j0.commitKey=1;let o1=-1;if(Q0.key==="Escape"?o1=0:Q0.key!=="Enter"||this.data.multiLine?Q0.key==="Tab"&&(j0.commitKey=3):o1=2,o1===-1)return;const{value:Y0}=Q0.target;j0.lastCommittedValue!==Y0&&(j0.lastCommittedValue=Y0,j0.userValue=Y0,($0=this.linkService.eventBus)===null||$0===void 0||$0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:Y0,willCommit:!0,commitKey:o1,selStart:Q0.target.selectionStart,selEnd:Q0.target.selectionEnd}}))});const E0=P0;P0=null,d0.addEventListener("blur",Q0=>{if(!Q0.relatedTarget)return;const{value:$0}=Q0.target;if(j0.userValue=$0,j0.lastCommittedValue!==$0){var o1;(o1=this.linkService.eventBus)===null||o1===void 0||o1.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:$0,willCommit:!0,commitKey:j0.commitKey,selStart:Q0.target.selectionStart,selEnd:Q0.target.selectionEnd}})}E0(Q0)}),(r0=this.data.actions)!==null&&r0!==void 0&&r0.Keystroke&&d0.addEventListener("beforeinput",Q0=>{var $0;j0.lastCommittedValue=null;const{data:o1,target:Y0}=Q0,{value:v0,selectionStart:d1,selectionEnd:i1}=Y0;let k1=d1,m1=i1;switch(Q0.inputType){case"deleteWordBackward":{const g0=v0.substring(0,d1).match(/\w*[^\w]*$/);g0&&(k1-=g0[0].length);break}case"deleteWordForward":{const g0=v0.substring(d1).match(/^[^\w]*\w*/);g0&&(m1+=g0[0].length);break}case"deleteContentBackward":d1===i1&&(k1-=1);break;case"deleteContentForward":d1===i1&&(m1+=1)}Q0.preventDefault(),($0=this.linkService.eventBus)===null||$0===void 0||$0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:v0,change:o1||"",willCommit:!1,selStart:k1,selEnd:m1}})}),this._setEventListeners(d0,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Q0=>Q0.target.value)}if(P0&&d0.addEventListener("blur",P0),this.data.comb){const E0=(this.data.rect[2]-this.data.rect[0])/w0;d0.classList.add("comb"),d0.style.letterSpacing=`calc(${E0}px * var(--scale-factor) - 1ch)`}}else d0=document.createElement("div"),d0.textContent=this.data.fieldValue,d0.style.verticalAlign="middle",d0.style.display="table-cell";return this._setTextStyle(d0),this._setBackgroundColor(d0),this._setDefaultPropertiesFromJS(d0),this.container.append(d0),this.container}}class c0 extends q{constructor(J){super(J,{isRenderable:J.renderForms})}render(){const J=this.annotationStorage,e0=this.data,d0=e0.id;let M0=J.getValue(d0,{value:e0.exportValue===e0.fieldValue}).value;typeof M0=="string"&&(M0=M0!=="Off",J.setValue(d0,{value:M0})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const r0=document.createElement("input");return B.add(r0),r0.setAttribute("data-element-id",d0),r0.disabled=e0.readOnly,this._setRequired(r0,this.data.required),r0.type="checkbox",r0.name=e0.fieldName,M0&&r0.setAttribute("checked",!0),r0.setAttribute("exportValue",e0.exportValue),r0.tabIndex=C,r0.addEventListener("change",L0=>{const{name:S0,checked:w0}=L0.target;for(const C0 of this._getElementsByName(S0,d0)){const j0=w0&&C0.exportValue===e0.exportValue;C0.domElement&&(C0.domElement.checked=j0),J.setValue(C0.id,{value:j0})}J.setValue(d0,{value:w0})}),r0.addEventListener("resetform",L0=>{const S0=e0.defaultFieldValue||"Off";L0.target.checked=S0===e0.exportValue}),this.enableScripting&&this.hasJSActions&&(r0.addEventListener("updatefromsandbox",L0=>{const S0={value(w0){w0.target.checked=w0.detail.value!=="Off",J.setValue(d0,{value:w0.target.checked})}};this._dispatchEventFromSandbox(S0,L0)}),this._setEventListeners(r0,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],L0=>L0.target.checked)),this._setBackgroundColor(r0),this._setDefaultPropertiesFromJS(r0),this.container.append(r0),this.container}}class P extends q{constructor(J){super(J,{isRenderable:J.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const J=this.annotationStorage,e0=this.data,d0=e0.id;let M0=J.getValue(d0,{value:e0.fieldValue===e0.buttonValue}).value;typeof M0=="string"&&(M0=M0!==e0.buttonValue,J.setValue(d0,{value:M0}));const r0=document.createElement("input");if(B.add(r0),r0.setAttribute("data-element-id",d0),r0.disabled=e0.readOnly,this._setRequired(r0,this.data.required),r0.type="radio",r0.name=e0.fieldName,M0&&r0.setAttribute("checked",!0),r0.tabIndex=C,r0.addEventListener("change",L0=>{const{name:S0,checked:w0}=L0.target;for(const C0 of this._getElementsByName(S0,d0))J.setValue(C0.id,{value:!1});J.setValue(d0,{value:w0})}),r0.addEventListener("resetform",L0=>{const S0=e0.defaultFieldValue;L0.target.checked=S0!=null&&S0===e0.buttonValue}),this.enableScripting&&this.hasJSActions){const L0=e0.buttonValue;r0.addEventListener("updatefromsandbox",S0=>{const w0={value:C0=>{const j0=L0===C0.detail.value;for(const P0 of this._getElementsByName(C0.target.name)){const E0=j0&&P0.id===d0;P0.domElement&&(P0.domElement.checked=E0),J.setValue(P0.id,{value:E0})}}};this._dispatchEventFromSandbox(w0,S0)}),this._setEventListeners(r0,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],S0=>S0.target.checked)}return this._setBackgroundColor(r0),this._setDefaultPropertiesFromJS(r0),this.container.append(r0),this.container}}class b0 extends g{constructor(J){super(J,{ignoreBorder:J.data.hasAppearance})}render(){const J=super.render();J.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(J.title=this.data.alternativeText);const e0=J.lastChild;return this.enableScripting&&this.hasJSActions&&e0&&(this._setDefaultPropertiesFromJS(e0),e0.addEventListener("updatefromsandbox",d0=>{this._dispatchEventFromSandbox({},d0)})),J}}class a0 extends q{constructor(J){super(J,{isRenderable:J.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const J=this.annotationStorage,e0=this.data.id,d0=J.getValue(e0,{value:this.data.fieldValue}),M0=document.createElement("select");B.add(M0),M0.setAttribute("data-element-id",e0),M0.disabled=this.data.readOnly,this._setRequired(M0,this.data.required),M0.name=this.data.fieldName,M0.tabIndex=C;let r0=this.data.combo&&this.data.options.length>0;this.data.combo||(M0.size=this.data.options.length,this.data.multiSelect&&(M0.multiple=!0)),M0.addEventListener("resetform",j0=>{const P0=this.data.defaultFieldValue;for(const E0 of M0.options)E0.selected=E0.value===P0});for(const j0 of this.data.options){const P0=document.createElement("option");P0.textContent=j0.displayValue,P0.value=j0.exportValue,d0.value.includes(j0.exportValue)&&(P0.setAttribute("selected",!0),r0=!1),M0.append(P0)}let L0=null;if(r0){const j0=document.createElement("option");j0.value=" ",j0.setAttribute("hidden",!0),j0.setAttribute("selected",!0),M0.prepend(j0),L0=()=>{j0.remove(),M0.removeEventListener("input",L0),L0=null},M0.addEventListener("input",L0)}const S0=j0=>{const P0=j0?"value":"textContent",{options:E0,multiple:Q0}=M0;return Q0?Array.prototype.filter.call(E0,$0=>$0.selected).map($0=>$0[P0]):E0.selectedIndex===-1?null:E0[E0.selectedIndex][P0]};let w0=S0(!1);const C0=j0=>{const P0=j0.target.options;return Array.prototype.map.call(P0,E0=>({displayValue:E0.textContent,exportValue:E0.value}))};return this.enableScripting&&this.hasJSActions?(M0.addEventListener("updatefromsandbox",j0=>{const P0={value(E0){var Q0;(Q0=L0)===null||Q0===void 0||Q0();const $0=E0.detail.value,o1=new Set(Array.isArray($0)?$0:[$0]);for(const Y0 of M0.options)Y0.selected=o1.has(Y0.value);J.setValue(e0,{value:S0(!0)}),w0=S0(!1)},multipleSelection(E0){M0.multiple=!0},remove(E0){const Q0=M0.options,$0=E0.detail.remove;Q0[$0].selected=!1,M0.remove($0),Q0.length>0&&Array.prototype.findIndex.call(Q0,o1=>o1.selected)===-1&&(Q0[0].selected=!0),J.setValue(e0,{value:S0(!0),items:C0(E0)}),w0=S0(!1)},clear(E0){for(;M0.length!==0;)M0.remove(0);J.setValue(e0,{value:null,items:[]}),w0=S0(!1)},insert(E0){const{index:Q0,displayValue:$0,exportValue:o1}=E0.detail.insert,Y0=M0.children[Q0],v0=document.createElement("option");v0.textContent=$0,v0.value=o1,Y0?Y0.before(v0):M0.append(v0),J.setValue(e0,{value:S0(!0),items:C0(E0)}),w0=S0(!1)},items(E0){const{items:Q0}=E0.detail;for(;M0.length!==0;)M0.remove(0);for(const $0 of Q0){const{displayValue:o1,exportValue:Y0}=$0,v0=document.createElement("option");v0.textContent=o1,v0.value=Y0,M0.append(v0)}M0.options.length>0&&(M0.options[0].selected=!0),J.setValue(e0,{value:S0(!0),items:C0(E0)}),w0=S0(!1)},indices(E0){const Q0=new Set(E0.detail.indices);for(const $0 of E0.target.options)$0.selected=Q0.has($0.index);J.setValue(e0,{value:S0(!0)}),w0=S0(!1)},editable(E0){E0.target.disabled=!E0.detail.editable}};this._dispatchEventFromSandbox(P0,j0)}),M0.addEventListener("input",j0=>{var P0;const E0=S0(!0);J.setValue(e0,{value:E0}),j0.preventDefault(),(P0=this.linkService.eventBus)===null||P0===void 0||P0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:w0,changeEx:E0,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(M0,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],j0=>j0.target.value)):M0.addEventListener("input",function(j0){J.setValue(e0,{value:S0(!0)})}),this.data.combo&&this._setTextStyle(M0),this._setBackgroundColor(M0),this._setDefaultPropertiesFromJS(M0),this.container.append(M0),this.container}}const O0=class extends E{constructor(A0){var J,e0,d0;const{data:M0}=A0;super(A0,{isRenderable:!O0.IGNORE_TYPES.has(M0.parentType)&&!!((J=M0.titleObj)!==null&&J!==void 0&&J.str||(e0=M0.contentsObj)!==null&&e0!==void 0&&e0.str||(d0=M0.richText)!==null&&d0!==void 0&&d0.str)})}render(){this.container.classList.add("popupAnnotation");const A0=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(A0.length===0)return this.container;const J=new X0({container:this.container,trigger:Array.from(A0),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),e0=this.page,d0=V.Util.normalizeRect([this.data.parentRect[0],e0.view[3]-this.data.parentRect[1]+e0.view[1],this.data.parentRect[2],e0.view[3]-this.data.parentRect[3]+e0.view[1]]),M0=d0[0]+this.data.parentRect[2]-this.data.parentRect[0],r0=d0[1],{pageWidth:L0,pageHeight:S0,pageX:w0,pageY:C0}=this.viewport.rawDims;return this.container.style.left=100*(M0-w0)/L0+"%",this.container.style.top=100*(r0-C0)/S0+"%",this.container.append(J.render()),this.container}};let s0=O0;It(s0,"IGNORE_TYPES",new Set(["Line","Square","Circle","PolyLine","Polygon","Ink"]));class X0{constructor(J){this.container=J.container,this.trigger=J.trigger,this.color=J.color,this.titleObj=J.titleObj,this.modificationDate=J.modificationDate,this.contentsObj=J.contentsObj,this.richText=J.richText,this.hideWrapper=J.hideWrapper||!1,this.pinned=!1}render(){var J,e0;const d0=document.createElement("div");d0.classList.add("popupWrapper"),this.hideElement=this.hideWrapper?d0:this.container,this.hideElement.hidden=!0;const M0=document.createElement("div");M0.classList.add("popup");const r0=this.color;if(r0){const w0=.7*(255-r0[0])+r0[0],C0=.7*(255-r0[1])+r0[1],j0=.7*(255-r0[2])+r0[2];M0.style.backgroundColor=V.Util.makeHexColor(0|w0,0|C0,0|j0)}const L0=document.createElement("h1");L0.dir=this.titleObj.dir,L0.textContent=this.titleObj.str,M0.append(L0);const S0=S.PDFDateString.toDateObject(this.modificationDate);if(S0){const w0=document.createElement("span");w0.classList.add("popupDate"),w0.textContent="{{date}}, {{time}}",w0.dataset.l10nId="annotation_date_string",w0.dataset.l10nArgs=JSON.stringify({date:S0.toLocaleDateString(),time:S0.toLocaleTimeString()}),M0.append(w0)}if((J=this.richText)===null||J===void 0||!J.str||(e0=this.contentsObj)!==null&&e0!==void 0&&e0.str&&this.contentsObj.str!==this.richText.str){const w0=this._formatContents(this.contentsObj);M0.append(w0)}else j.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:M0}),M0.lastChild.classList.add("richText","popupContent");Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const w0 of this.trigger)w0.addEventListener("click",this._toggle.bind(this)),w0.addEventListener("mouseover",this._show.bind(this,!1)),w0.addEventListener("mouseout",this._hide.bind(this,!1));return M0.addEventListener("click",this._hide.bind(this,!0)),d0.append(M0),d0}_formatContents(J){let{str:e0,dir:d0}=J;const M0=document.createElement("p");M0.classList.add("popupContent"),M0.dir=d0;const r0=e0.split(/(?:\r\n?|\n)/);for(let L0=0,S0=r0.length;L0<S0;++L0){const w0=r0[L0];M0.append(document.createTextNode(w0)),L0<S0-1&&M0.append(document.createElement("br"))}return M0}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class H extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0}),this.textContent=J.data.textContent}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const J=document.createElement("div");J.classList.add("annotationTextContent"),J.setAttribute("role","comment");for(const e0 of this.textContent){const d0=document.createElement("span");d0.textContent=e0,J.append(d0)}this.container.append(J)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Q extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0),r0=this.svgFactory.createElement("svg:line");return r0.setAttribute("x1",J.rect[2]-J.lineCoordinates[0]),r0.setAttribute("y1",J.rect[3]-J.lineCoordinates[1]),r0.setAttribute("x2",J.rect[2]-J.lineCoordinates[2]),r0.setAttribute("y2",J.rect[3]-J.lineCoordinates[3]),r0.setAttribute("stroke-width",J.borderStyle.width||1),r0.setAttribute("stroke","transparent"),r0.setAttribute("fill","transparent"),M0.append(r0),this.container.append(M0),this._createPopup(r0,J),this.container}}class $ extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0),r0=J.borderStyle.width,L0=this.svgFactory.createElement("svg:rect");return L0.setAttribute("x",r0/2),L0.setAttribute("y",r0/2),L0.setAttribute("width",e0-r0),L0.setAttribute("height",d0-r0),L0.setAttribute("stroke-width",r0||1),L0.setAttribute("stroke","transparent"),L0.setAttribute("fill","transparent"),M0.append(L0),this.container.append(M0),this._createPopup(L0,J),this.container}}class l0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0),r0=J.borderStyle.width,L0=this.svgFactory.createElement("svg:ellipse");return L0.setAttribute("cx",e0/2),L0.setAttribute("cy",d0/2),L0.setAttribute("rx",e0/2-r0/2),L0.setAttribute("ry",d0/2-r0/2),L0.setAttribute("stroke-width",r0||1),L0.setAttribute("stroke","transparent"),L0.setAttribute("fill","transparent"),M0.append(L0),this.container.append(M0),this._createPopup(L0,J),this.container}}class _ extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0);let r0=[];for(const S0 of J.vertices){const w0=S0.x-J.rect[0],C0=J.rect[3]-S0.y;r0.push(w0+","+C0)}r0=r0.join(" ");const L0=this.svgFactory.createElement(this.svgElementName);return L0.setAttribute("points",r0),L0.setAttribute("stroke-width",J.borderStyle.width||1),L0.setAttribute("stroke","transparent"),L0.setAttribute("fill","transparent"),M0.append(L0),this.container.append(M0),this._createPopup(L0,J),this.container}}class v extends _{constructor(J){super(J),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class t0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),this.data.hasPopup||this._createPopup(null,this.data),this.container}}class n0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0);for(const r0 of J.inkLists){let L0=[];for(const w0 of r0){const C0=w0.x-J.rect[0],j0=J.rect[3]-w0.y;L0.push(`${C0},${j0}`)}L0=L0.join(" ");const S0=this.svgFactory.createElement(this.svgElementName);S0.setAttribute("points",L0),S0.setAttribute("stroke-width",J.borderStyle.width||1),S0.setAttribute("stroke","transparent"),S0.setAttribute("fill","transparent"),this._createPopup(S0,J),M0.append(S0)}return this.container.append(M0),this.container}}class p0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.classList.add("highlightAnnotation"),this.container)}}class Z0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.classList.add("underlineAnnotation"),this.container)}}class W0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.classList.add("squigglyAnnotation"),this.container)}}class h0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.classList.add("strikeoutAnnotation"),this.container)}}class N0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),this.data.hasPopup||this._createPopup(null,this.data),this.container}}class u0 extends E{constructor(J){var e0;super(J,{isRenderable:!0});const{filename:d0,content:M0}=this.data.file;this.filename=(0,S.getFilenameFromUrl)(d0,!0),this.content=M0,(e0=this.linkService.eventBus)===null||e0===void 0||e0.dispatch("fileattachmentannotation",{source:this,filename:d0,content:M0})}render(){var J,e0;this.container.classList.add("fileAttachmentAnnotation");let d0;return this.data.hasAppearance?d0=document.createElement("div"):(d0=document.createElement("img"),d0.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(this.data.name)?"paperclip":"pushpin"}.svg`),d0.classList.add("popupTriggerArea"),d0.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((J=this.data.titleObj)!==null&&J!==void 0&&J.str||(e0=this.data.contentsObj)!==null&&e0!==void 0&&e0.str||this.data.richText)&&this._createPopup(d0,this.data),this.container.append(d0),this.container}_download(){var J;(J=this.downloadManager)===null||J===void 0||J.openOrDownloadData(this.container,this.content,this.filename)}}const D0=class{static render(A0){var J,e0;const{annotations:d0,div:M0,viewport:r0,accessibilityManager:L0}=A0;(0,S.setLayerDimensions)(M0,r0);const S0={data:null,layer:M0,page:A0.page,viewport:r0,linkService:A0.linkService,downloadManager:A0.downloadManager,imageResourcesPath:A0.imageResourcesPath||"",renderForms:A0.renderForms!==!1,svgFactory:new S.DOMSVGFactory,annotationStorage:A0.annotationStorage||new R.AnnotationStorage,enableScripting:A0.enableScripting===!0,hasJSActions:A0.hasJSActions,fieldObjects:A0.fieldObjects};let w0=0;for(const C0 of d0){if(C0.noHTML)continue;if(C0.annotationType!==V.AnnotationType.POPUP){const{width:E0,height:Q0}=F(C0.rect);if(E0<=0||Q0<=0)continue}S0.data=C0;const j0=U.create(S0);if(!j0.isRenderable)continue;const P0=j0.render();if(C0.hidden&&(P0.style.visibility="hidden"),Array.isArray(P0))for(const E0 of P0)E0.style.zIndex=w0++,nt(J=D0,N,X).call(J,E0,C0.id,M0,L0);else P0.style.zIndex=w0++,j0 instanceof s0?M0.prepend(P0):nt(e0=D0,N,X).call(e0,P0,C0.id,M0,L0)}nt(this,y,G).call(this,M0,A0.annotationCanvasMap)}static update(A0){const{annotationCanvasMap:J,div:e0,viewport:d0}=A0;(0,S.setLayerDimensions)(e0,{rotation:d0.rotation}),nt(this,y,G).call(this,e0,J),e0.hidden=!1}};let f0=D0;N=new WeakSet,X=function(A0,J,e0,d0){const M0=A0.firstChild||A0;M0.id=`${S.AnnotationPrefix}${J}`,e0.append(A0),d0==null||d0.moveElementInDOM(e0,A0,M0,!1)},y=new WeakSet,G=function(A0,J){if(J){for(const[e0,d0]of J){const M0=A0.querySelector(`[data-annotation-id="${e0}"]`);if(!M0)continue;const{firstChild:r0}=M0;r0?r0.nodeName==="CANVAS"?r0.replaceWith(d0):r0.before(d0):M0.append(d0)}J.clear()}},et(f0,N),et(f0,y),s.AnnotationLayer=f0},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorConverters=void 0;function M(u){return Math.floor(255*Math.max(0,Math.min(1,u))).toString(16).padStart(2,"0")}s.ColorConverters=class{static CMYK_G(u){let[z,Z,r,N]=u;return["G",1-Math.min(1,.3*z+.59*r+.11*Z+N)]}static G_CMYK(u){let[z]=u;return["CMYK",0,0,0,1-z]}static G_RGB(u){let[z]=u;return["RGB",z,z,z]}static G_HTML(u){let[z]=u;const Z=M(z);return`#${Z}${Z}${Z}`}static RGB_G(u){let[z,Z,r]=u;return["G",.3*z+.59*Z+.11*r]}static RGB_HTML(u){let[z,Z,r]=u;return`#${M(z)}${M(Z)}${M(r)}`}static T_HTML(){return"#00000000"}static CMYK_RGB(u){let[z,Z,r,N]=u;return["RGB",1-Math.min(1,z+N),1-Math.min(1,r+N),1-Math.min(1,Z+N)]}static CMYK_HTML(u){const z=this.CMYK_RGB(u).slice(1);return this.RGB_HTML(z)}static RGB_CMYK(u){let[z,Z,r]=u;const N=1-z,X=1-Z,y=1-r;return["CMYK",N,X,y,Math.min(N,X,y)]}}},(o,s,M)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.XfaLayer=void 0;var u=M(154);s.XfaLayer=class{static setupStorage(z,Z,r,N,X){const y=N.getValue(Z,{value:null});switch(r.name){case"textarea":if(y.value!==null&&(z.textContent=y.value),X==="print")break;z.addEventListener("input",G=>{N.setValue(Z,{value:G.target.value})});break;case"input":if(r.attributes.type==="radio"||r.attributes.type==="checkbox"){if(y.value===r.attributes.xfaOn?z.setAttribute("checked",!0):y.value===r.attributes.xfaOff&&z.removeAttribute("checked"),X==="print")break;z.addEventListener("change",G=>{N.setValue(Z,{value:G.target.checked?G.target.getAttribute("xfaOn"):G.target.getAttribute("xfaOff")})})}else{if(y.value!==null&&z.setAttribute("value",y.value),X==="print")break;z.addEventListener("input",G=>{N.setValue(Z,{value:G.target.value})})}break;case"select":if(y.value!==null)for(const G of r.children)G.attributes.value===y.value&&(G.attributes.selected=!0);z.addEventListener("input",G=>{const V=G.target.options,S=V.selectedIndex===-1?"":V[V.selectedIndex].value;N.setValue(Z,{value:S})})}}static setAttributes(z){let{html:Z,element:r,storage:N=null,intent:X,linkService:y}=z;const{attributes:G}=r,V=Z instanceof HTMLAnchorElement;G.type==="radio"&&(G.name=`${G.name}-${X}`);for(const[S,R]of Object.entries(G))if(R!=null)switch(S){case"class":R.length&&Z.setAttribute(S,R.join(" "));break;case"dataId":break;case"id":Z.setAttribute("data-element-id",R);break;case"style":Object.assign(Z.style,R);break;case"textContent":Z.textContent=R;break;default:(!V||S!=="href"&&S!=="newWindow")&&Z.setAttribute(S,R)}V&&y.addLinkAttributes(Z,G.href,G.newWindow),N&&G.dataId&&this.setupStorage(Z,G.dataId,r,N)}static render(z){const Z=z.annotationStorage,r=z.linkService,N=z.xfaHtml,X=z.intent||"display",y=document.createElement(N.name);N.attributes&&this.setAttributes({html:y,element:N,intent:X,linkService:r});const G=[[N,-1,y]],V=z.div;if(V.append(y),z.viewport){const D=`matrix(${z.viewport.transform.join(",")})`;V.style.transform=D}X!=="richText"&&V.setAttribute("class","xfaLayer xfaFont");const S=[];for(;G.length>0;){var R;const[D,j,C]=G.at(-1);if(j+1===D.children.length){G.pop();continue}const B=D.children[++G.at(-1)[1]];if(B===null)continue;const{name:F}=B;if(F==="#text"){const E=document.createTextNode(B.value);S.push(E),C.append(E);continue}let U;if(U=B!=null&&(R=B.attributes)!==null&&R!==void 0&&R.xmlns?document.createElementNS(B.attributes.xmlns,F):document.createElement(F),C.append(U),B.attributes&&this.setAttributes({html:U,element:B,storage:Z,intent:X,linkService:r}),B.children&&B.children.length>0)G.push([B,-1,U]);else if(B.value){const E=document.createTextNode(B.value);u.XfaText.shouldBuildText(F)&&S.push(E),U.append(E)}}for(const D of V.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))D.setAttribute("readOnly",!0);return{textDivs:S}}static update(z){const Z=`matrix(${z.viewport.transform.join(",")})`;z.div.style.transform=Z,z.div.hidden=!1}}},(o,s,M)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SVGGraphics=void 0;var u=M(142),z=M(1),Z=M(3);let r=class{constructor(){(0,z.unreachable)("Not implemented: SVGGraphics")}};s.SVGGraphics=r;{let N=function(g){let f=[];const q=[];for(const o0 of g)o0.fn!=="save"?o0.fn==="restore"?f=q.pop():f.push(o0):(f.push({fnId:92,fn:"group",items:[]}),q.push(f),f=f.at(-1).items);return f},X=function(g){if(Number.isInteger(g))return g.toString();const f=g.toFixed(10);let q=f.length-1;if(f[q]!=="0")return f;do q--;while(f[q]==="0");return f.substring(0,f[q]==="."?q:q+1)},y=function(g){if(g[4]===0&&g[5]===0){if(g[1]===0&&g[2]===0)return g[0]===1&&g[3]===1?"":`scale(${X(g[0])} ${X(g[3])})`;if(g[0]===g[3]&&g[1]===-g[2])return`rotate(${X(180*Math.acos(g[0])/Math.PI)})`}else if(g[0]===1&&g[1]===0&&g[2]===0&&g[3]===1)return`translate(${X(g[4])} ${X(g[5])})`;return`matrix(${X(g[0])} ${X(g[1])} ${X(g[2])} ${X(g[3])} ${X(g[4])} ${X(g[5])})`};const G={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},V="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/1999/xlink",R=["butt","round","square"],D=["miter","round","bevel"],j=function(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",q=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(URL.createObjectURL&&typeof Blob<"u"&&!q)return URL.createObjectURL(new Blob([g],{type:f}));const o0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let c0=`data:${f};base64,`;for(let P=0,b0=g.length;P<b0;P+=3){const a0=255&g[P],O0=255&g[P+1],s0=255&g[P+2];c0+=o0[a0>>2]+o0[(3&a0)<<4|O0>>4]+o0[P+1<b0?(15&O0)<<2|s0>>6:64]+o0[P+2<b0?63&s0:64]}return c0},C=function(){const g=new Uint8Array([137,80,78,71,13,10,26,10]),f=new Int32Array(256);for(let P=0;P<256;P++){let b0=P;for(let a0=0;a0<8;a0++)b0=1&b0?3988292384^b0>>1&2147483647:b0>>1&2147483647;f[P]=b0}function q(P,b0,a0,O0){let s0=O0;const X0=b0.length;a0[s0]=X0>>24&255,a0[s0+1]=X0>>16&255,a0[s0+2]=X0>>8&255,a0[s0+3]=255&X0,s0+=4,a0[s0]=255&P.charCodeAt(0),a0[s0+1]=255&P.charCodeAt(1),a0[s0+2]=255&P.charCodeAt(2),a0[s0+3]=255&P.charCodeAt(3),s0+=4,a0.set(b0,s0),s0+=b0.length;const H=function(Q,$,l0){let _=-1;for(let v=$;v<l0;v++){const t0=255&(_^Q[v]);_=_>>>8^f[t0]}return-1^_}(a0,O0+4,s0);a0[s0]=H>>24&255,a0[s0+1]=H>>16&255,a0[s0+2]=H>>8&255,a0[s0+3]=255&H}function o0(P){let b0=P.length;const a0=65535,O0=Math.ceil(b0/a0),s0=new Uint8Array(2+b0+5*O0+4);let X0=0;s0[X0++]=120,s0[X0++]=156;let H=0;for(;b0>a0;)s0[X0++]=0,s0[X0++]=255,s0[X0++]=255,s0[X0++]=0,s0[X0++]=0,s0.set(P.subarray(H,H+a0),X0),X0+=a0,H+=a0,b0-=a0;s0[X0++]=1,s0[X0++]=255&b0,s0[X0++]=b0>>8&255,s0[X0++]=255&~b0,s0[X0++]=(65535&~b0)>>8&255,s0.set(P.subarray(H),X0),X0+=P.length-H;const Q=function($,l0,_){let v=1,t0=0;for(let n0=l0;n0<_;++n0)v=(v+(255&$[n0]))%65521,t0=(t0+v)%65521;return t0<<16|v}(P,0,P.length);return s0[X0++]=Q>>24&255,s0[X0++]=Q>>16&255,s0[X0++]=Q>>8&255,s0[X0++]=255&Q,s0}function c0(P,b0,a0,O0){const s0=P.width,X0=P.height;let H,Q,$;const l0=P.data;switch(b0){case z.ImageKind.GRAYSCALE_1BPP:Q=0,H=1,$=s0+7>>3;break;case z.ImageKind.RGB_24BPP:Q=2,H=8,$=3*s0;break;case z.ImageKind.RGBA_32BPP:Q=6,H=8,$=4*s0;break;default:throw new Error("invalid format")}const _=new Uint8Array((1+$)*X0);let v=0,t0=0;for(let N0=0;N0<X0;++N0)_[v++]=0,_.set(l0.subarray(t0,t0+$),v),t0+=$,v+=$;if(b0===z.ImageKind.GRAYSCALE_1BPP&&O0){v=0;for(let N0=0;N0<X0;N0++){v++;for(let u0=0;u0<$;u0++)_[v++]^=255}}const n0=new Uint8Array([s0>>24&255,s0>>16&255,s0>>8&255,255&s0,X0>>24&255,X0>>16&255,X0>>8&255,255&X0,H,Q,0,0,0]),p0=function(N0){if(!Z.isNodeJS)return o0(N0);try{let u0;u0=parseInt(process.versions.node)>=8?N0:Buffer.from(N0);const D0=require$$6.deflateSync(u0,{level:9});return D0 instanceof Uint8Array?D0:new Uint8Array(D0)}catch(u0){(0,z.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+u0)}return o0(N0)}(_),Z0=g.length+36+n0.length+p0.length,W0=new Uint8Array(Z0);let h0=0;return W0.set(g,h0),h0+=g.length,q("IHDR",n0,W0,h0),h0+=12+n0.length,q("IDATA",p0,W0,h0),h0+=12+p0.length,q("IEND",new Uint8Array(0),W0,h0),j(W0,"image/png",a0)}return function(P,b0,a0){return c0(P,P.kind===void 0?z.ImageKind.GRAYSCALE_1BPP:P.kind,b0,a0)}}();class B{constructor(){this.fontSizeScale=1,this.fontWeight=G.fontWeight,this.fontSize=0,this.textMatrix=z.IDENTITY_MATRIX,this.fontMatrix=z.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=z.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=G.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(f,q){this.x=f,this.y=q}}let F=0,U=0,E=0;s.SVGGraphics=r=class{constructor(g,f){let q=arguments.length>2&&arguments[2]!==void 0&&arguments[2];(0,u.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new u.DOMSVGFactory,this.current=new B,this.transformMatrix=z.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=g,this.objs=f,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!q,this._operatorIdMapping=[];for(const o0 in z.OPS)this._operatorIdMapping[z.OPS[o0]]=o0}getObject(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return typeof g=="string"?g.startsWith("g_")?this.commonObjs.get(g):this.objs.get(g):f}save(){this.transformStack.push(this.transformMatrix);const g=this.current;this.extraStack.push(g),this.current=g.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(g){this.save(),this.executeOpTree(g),this.restore()}loadDependencies(g){const f=g.fnArray,q=g.argsArray;for(let o0=0,c0=f.length;o0<c0;o0++)if(f[o0]===z.OPS.dependency)for(const P of q[o0]){const b0=P.startsWith("g_")?this.commonObjs:this.objs,a0=new Promise(O0=>{b0.get(P,O0)});this.current.dependencies.push(a0)}return Promise.all(this.current.dependencies)}transform(g,f,q,o0,c0,P){const b0=[g,f,q,o0,c0,P];this.transformMatrix=z.Util.transform(this.transformMatrix,b0),this.tgrp=null}getSVG(g,f){this.viewport=f;const q=this._initialize(f);return this.loadDependencies(g).then(()=>(this.transformMatrix=z.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(g)),q))}convertOpList(g){const f=this._operatorIdMapping,q=g.argsArray,o0=g.fnArray,c0=[];for(let P=0,b0=o0.length;P<b0;P++){const a0=o0[P];c0.push({fnId:a0,fn:f[a0],args:q[P]})}return N(c0)}executeOpTree(g){for(const f of g){const q=f.fn,o0=f.fnId,c0=f.args;switch(0|o0){case z.OPS.beginText:this.beginText();break;case z.OPS.dependency:break;case z.OPS.setLeading:this.setLeading(c0);break;case z.OPS.setLeadingMoveText:this.setLeadingMoveText(c0[0],c0[1]);break;case z.OPS.setFont:this.setFont(c0);break;case z.OPS.showText:case z.OPS.showSpacedText:this.showText(c0[0]);break;case z.OPS.endText:this.endText();break;case z.OPS.moveText:this.moveText(c0[0],c0[1]);break;case z.OPS.setCharSpacing:this.setCharSpacing(c0[0]);break;case z.OPS.setWordSpacing:this.setWordSpacing(c0[0]);break;case z.OPS.setHScale:this.setHScale(c0[0]);break;case z.OPS.setTextMatrix:this.setTextMatrix(c0[0],c0[1],c0[2],c0[3],c0[4],c0[5]);break;case z.OPS.setTextRise:this.setTextRise(c0[0]);break;case z.OPS.setTextRenderingMode:this.setTextRenderingMode(c0[0]);break;case z.OPS.setLineWidth:this.setLineWidth(c0[0]);break;case z.OPS.setLineJoin:this.setLineJoin(c0[0]);break;case z.OPS.setLineCap:this.setLineCap(c0[0]);break;case z.OPS.setMiterLimit:this.setMiterLimit(c0[0]);break;case z.OPS.setFillRGBColor:this.setFillRGBColor(c0[0],c0[1],c0[2]);break;case z.OPS.setStrokeRGBColor:this.setStrokeRGBColor(c0[0],c0[1],c0[2]);break;case z.OPS.setStrokeColorN:this.setStrokeColorN(c0);break;case z.OPS.setFillColorN:this.setFillColorN(c0);break;case z.OPS.shadingFill:this.shadingFill(c0[0]);break;case z.OPS.setDash:this.setDash(c0[0],c0[1]);break;case z.OPS.setRenderingIntent:this.setRenderingIntent(c0[0]);break;case z.OPS.setFlatness:this.setFlatness(c0[0]);break;case z.OPS.setGState:this.setGState(c0[0]);break;case z.OPS.fill:this.fill();break;case z.OPS.eoFill:this.eoFill();break;case z.OPS.stroke:this.stroke();break;case z.OPS.fillStroke:this.fillStroke();break;case z.OPS.eoFillStroke:this.eoFillStroke();break;case z.OPS.clip:this.clip("nonzero");break;case z.OPS.eoClip:this.clip("evenodd");break;case z.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case z.OPS.paintImageXObject:this.paintImageXObject(c0[0]);break;case z.OPS.paintInlineImageXObject:this.paintInlineImageXObject(c0[0]);break;case z.OPS.paintImageMaskXObject:this.paintImageMaskXObject(c0[0]);break;case z.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(c0[0],c0[1]);break;case z.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case z.OPS.closePath:this.closePath();break;case z.OPS.closeStroke:this.closeStroke();break;case z.OPS.closeFillStroke:this.closeFillStroke();break;case z.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case z.OPS.nextLine:this.nextLine();break;case z.OPS.transform:this.transform(c0[0],c0[1],c0[2],c0[3],c0[4],c0[5]);break;case z.OPS.constructPath:this.constructPath(c0[0],c0[1]);break;case z.OPS.endPath:this.endPath();break;case 92:this.group(f.items);break;default:(0,z.warn)(`Unimplemented operator ${q}`)}}}setWordSpacing(g){this.current.wordSpacing=g}setCharSpacing(g){this.current.charSpacing=g}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(g,f,q,o0,c0,P){const b0=this.current;b0.textMatrix=b0.lineMatrix=[g,f,q,o0,c0,P],b0.textMatrixScale=Math.hypot(g,f),b0.x=b0.lineX=0,b0.y=b0.lineY=0,b0.xcoords=[],b0.ycoords=[],b0.tspan=this.svgFactory.createElement("svg:tspan"),b0.tspan.setAttributeNS(null,"font-family",b0.fontFamily),b0.tspan.setAttributeNS(null,"font-size",`${X(b0.fontSize)}px`),b0.tspan.setAttributeNS(null,"y",X(-b0.y)),b0.txtElement=this.svgFactory.createElement("svg:text"),b0.txtElement.append(b0.tspan)}beginText(){const g=this.current;g.x=g.lineX=0,g.y=g.lineY=0,g.textMatrix=z.IDENTITY_MATRIX,g.lineMatrix=z.IDENTITY_MATRIX,g.textMatrixScale=1,g.tspan=this.svgFactory.createElement("svg:tspan"),g.txtElement=this.svgFactory.createElement("svg:text"),g.txtgrp=this.svgFactory.createElement("svg:g"),g.xcoords=[],g.ycoords=[]}moveText(g,f){const q=this.current;q.x=q.lineX+=g,q.y=q.lineY+=f,q.xcoords=[],q.ycoords=[],q.tspan=this.svgFactory.createElement("svg:tspan"),q.tspan.setAttributeNS(null,"font-family",q.fontFamily),q.tspan.setAttributeNS(null,"font-size",`${X(q.fontSize)}px`),q.tspan.setAttributeNS(null,"y",X(-q.y))}showText(g){const f=this.current,q=f.font,o0=f.fontSize;if(o0===0)return;const c0=f.fontSizeScale,P=f.charSpacing,b0=f.wordSpacing,a0=f.fontDirection,O0=f.textHScale*a0,s0=q.vertical,X0=s0?1:-1,H=q.defaultVMetrics,Q=o0*f.fontMatrix[0];let $=0;for(const v of g){if(v===null){$+=a0*b0;continue}if(typeof v=="number"){$+=X0*v*o0/1e3;continue}const t0=(v.isSpace?b0:0)+P,n0=v.fontChar;let p0,Z0,W0,h0=v.width;if(s0){let N0;const u0=v.vmetric||H;N0=v.vmetric?u0[1]:.5*h0,N0=-N0*Q;const D0=u0[2]*Q;h0=u0?-u0[0]:h0,p0=N0/c0,Z0=($+D0)/c0}else p0=$/c0,Z0=0;(v.isInFont||q.missingFile)&&(f.xcoords.push(f.x+p0),s0&&f.ycoords.push(-f.y+Z0),f.tspan.textContent+=n0),W0=s0?h0*Q-t0*a0:h0*Q+t0*a0,$+=W0}f.tspan.setAttributeNS(null,"x",f.xcoords.map(X).join(" ")),s0?f.tspan.setAttributeNS(null,"y",f.ycoords.map(X).join(" ")):f.tspan.setAttributeNS(null,"y",X(-f.y)),s0?f.y-=$:f.x+=$*O0,f.tspan.setAttributeNS(null,"font-family",f.fontFamily),f.tspan.setAttributeNS(null,"font-size",`${X(f.fontSize)}px`),f.fontStyle!==G.fontStyle&&f.tspan.setAttributeNS(null,"font-style",f.fontStyle),f.fontWeight!==G.fontWeight&&f.tspan.setAttributeNS(null,"font-weight",f.fontWeight);const l0=f.textRenderingMode&z.TextRenderingMode.FILL_STROKE_MASK;if(l0===z.TextRenderingMode.FILL||l0===z.TextRenderingMode.FILL_STROKE?(f.fillColor!==G.fillColor&&f.tspan.setAttributeNS(null,"fill",f.fillColor),f.fillAlpha<1&&f.tspan.setAttributeNS(null,"fill-opacity",f.fillAlpha)):f.textRenderingMode===z.TextRenderingMode.ADD_TO_PATH?f.tspan.setAttributeNS(null,"fill","transparent"):f.tspan.setAttributeNS(null,"fill","none"),l0===z.TextRenderingMode.STROKE||l0===z.TextRenderingMode.FILL_STROKE){const v=1/(f.textMatrixScale||1);this._setStrokeAttributes(f.tspan,v)}let _=f.textMatrix;f.textRise!==0&&(_=_.slice(),_[5]+=f.textRise),f.txtElement.setAttributeNS(null,"transform",`${y(_)} scale(${X(O0)}, -1)`),f.txtElement.setAttributeNS(V,"xml:space","preserve"),f.txtElement.append(f.tspan),f.txtgrp.append(f.txtElement),this._ensureTransformGroup().append(f.txtElement)}setLeadingMoveText(g,f){this.setLeading(-f),this.moveText(g,f)}addFontStyle(g){if(!g.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const f=j(g.data,g.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${g.loadedName}"; src: url(${f}); }
66
- `}setFont(g){const f=this.current,q=this.commonObjs.get(g[0]);let o0=g[1];f.font=q,this.embedFonts&&!q.missingFile&&!this.embeddedFonts[q.loadedName]&&(this.addFontStyle(q),this.embeddedFonts[q.loadedName]=q),f.fontMatrix=q.fontMatrix||z.FONT_IDENTITY_MATRIX;let c0="normal";q.black?c0="900":q.bold&&(c0="bold");const P=q.italic?"italic":"normal";o0<0?(o0=-o0,f.fontDirection=-1):f.fontDirection=1,f.fontSize=o0,f.fontFamily=q.loadedName,f.fontWeight=c0,f.fontStyle=P,f.tspan=this.svgFactory.createElement("svg:tspan"),f.tspan.setAttributeNS(null,"y",X(-f.y)),f.xcoords=[],f.ycoords=[]}endText(){var g;const f=this.current;f.textRenderingMode&z.TextRenderingMode.ADD_TO_PATH_FLAG&&(g=f.txtElement)!==null&&g!==void 0&&g.hasChildNodes()&&(f.element=f.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(g){g>0&&(this.current.lineWidth=g)}setLineCap(g){this.current.lineCap=R[g]}setLineJoin(g){this.current.lineJoin=D[g]}setMiterLimit(g){this.current.miterLimit=g}setStrokeAlpha(g){this.current.strokeAlpha=g}setStrokeRGBColor(g,f,q){this.current.strokeColor=z.Util.makeHexColor(g,f,q)}setFillAlpha(g){this.current.fillAlpha=g}setFillRGBColor(g,f,q){this.current.fillColor=z.Util.makeHexColor(g,f,q),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(g){this.current.strokeColor=this._makeColorN_Pattern(g)}setFillColorN(g){this.current.fillColor=this._makeColorN_Pattern(g)}shadingFill(g){const f=this.viewport.width,q=this.viewport.height,o0=z.Util.inverseTransform(this.transformMatrix),c0=z.Util.applyTransform([0,0],o0),P=z.Util.applyTransform([0,q],o0),b0=z.Util.applyTransform([f,0],o0),a0=z.Util.applyTransform([f,q],o0),O0=Math.min(c0[0],P[0],b0[0],a0[0]),s0=Math.min(c0[1],P[1],b0[1],a0[1]),X0=Math.max(c0[0],P[0],b0[0],a0[0]),H=Math.max(c0[1],P[1],b0[1],a0[1]),Q=this.svgFactory.createElement("svg:rect");Q.setAttributeNS(null,"x",O0),Q.setAttributeNS(null,"y",s0),Q.setAttributeNS(null,"width",X0-O0),Q.setAttributeNS(null,"height",H-s0),Q.setAttributeNS(null,"fill",this._makeShadingPattern(g)),this.current.fillAlpha<1&&Q.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Q)}_makeColorN_Pattern(g){return g[0]==="TilingPattern"?this._makeTilingPattern(g):this._makeShadingPattern(g)}_makeTilingPattern(g){const f=g[1],q=g[2],o0=g[3]||z.IDENTITY_MATRIX,[c0,P,b0,a0]=g[4],O0=g[5],s0=g[6],X0=g[7],H="shading"+E++,[Q,$,l0,_]=z.Util.normalizeRect([...z.Util.applyTransform([c0,P],o0),...z.Util.applyTransform([b0,a0],o0)]),[v,t0]=z.Util.singularValueDecompose2dScale(o0),n0=O0*v,p0=s0*t0,Z0=this.svgFactory.createElement("svg:pattern");Z0.setAttributeNS(null,"id",H),Z0.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Z0.setAttributeNS(null,"width",n0),Z0.setAttributeNS(null,"height",p0),Z0.setAttributeNS(null,"x",`${Q}`),Z0.setAttributeNS(null,"y",`${$}`);const W0=this.svg,h0=this.transformMatrix,N0=this.current.fillColor,u0=this.current.strokeColor,D0=this.svgFactory.create(l0-Q,_-$);if(this.svg=D0,this.transformMatrix=o0,X0===2){const f0=z.Util.makeHexColor(...f);this.current.fillColor=f0,this.current.strokeColor=f0}return this.executeOpTree(this.convertOpList(q)),this.svg=W0,this.transformMatrix=h0,this.current.fillColor=N0,this.current.strokeColor=u0,Z0.append(D0.childNodes[0]),this.defs.append(Z0),`url(#${H})`}_makeShadingPattern(g){switch(typeof g=="string"&&(g=this.objs.get(g)),g[0]){case"RadialAxial":const f="shading"+E++,q=g[3];let o0;switch(g[1]){case"axial":const c0=g[4],P=g[5];o0=this.svgFactory.createElement("svg:linearGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"x1",c0[0]),o0.setAttributeNS(null,"y1",c0[1]),o0.setAttributeNS(null,"x2",P[0]),o0.setAttributeNS(null,"y2",P[1]);break;case"radial":const b0=g[4],a0=g[5],O0=g[6],s0=g[7];o0=this.svgFactory.createElement("svg:radialGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"cx",a0[0]),o0.setAttributeNS(null,"cy",a0[1]),o0.setAttributeNS(null,"r",s0),o0.setAttributeNS(null,"fx",b0[0]),o0.setAttributeNS(null,"fy",b0[1]),o0.setAttributeNS(null,"fr",O0);break;default:throw new Error(`Unknown RadialAxial type: ${g[1]}`)}for(const c0 of q){const P=this.svgFactory.createElement("svg:stop");P.setAttributeNS(null,"offset",c0[0]),P.setAttributeNS(null,"stop-color",c0[1]),o0.append(P)}return this.defs.append(o0),`url(#${f})`;case"Mesh":return(0,z.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${g[0]}`)}}setDash(g,f){this.current.dashArray=g,this.current.dashPhase=f}constructPath(g,f){const q=this.current;let o0=q.x,c0=q.y,P=[],b0=0;for(const a0 of g)switch(0|a0){case z.OPS.rectangle:o0=f[b0++],c0=f[b0++];const O0=o0+f[b0++],s0=c0+f[b0++];P.push("M",X(o0),X(c0),"L",X(O0),X(c0),"L",X(O0),X(s0),"L",X(o0),X(s0),"Z");break;case z.OPS.moveTo:o0=f[b0++],c0=f[b0++],P.push("M",X(o0),X(c0));break;case z.OPS.lineTo:o0=f[b0++],c0=f[b0++],P.push("L",X(o0),X(c0));break;case z.OPS.curveTo:o0=f[b0+4],c0=f[b0+5],P.push("C",X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3]),X(o0),X(c0)),b0+=6;break;case z.OPS.curveTo2:P.push("C",X(o0),X(c0),X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3])),o0=f[b0+2],c0=f[b0+3],b0+=4;break;case z.OPS.curveTo3:o0=f[b0+2],c0=f[b0+3],P.push("C",X(f[b0]),X(f[b0+1]),X(o0),X(c0),X(o0),X(c0)),b0+=4;break;case z.OPS.closePath:P.push("Z")}P=P.join(" "),q.path&&g.length>0&&g[0]!==z.OPS.rectangle&&g[0]!==z.OPS.moveTo?P=q.path.getAttributeNS(null,"d")+P:(q.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(q.path)),q.path.setAttributeNS(null,"d",P),q.path.setAttributeNS(null,"fill","none"),q.element=q.path,q.setCurrentPoint(o0,c0)}endPath(){const g=this.current;if(g.path=null,!this.pendingClip)return;if(!g.element){this.pendingClip=null;return}const f="clippath"+F++,q=this.svgFactory.createElement("svg:clipPath");q.setAttributeNS(null,"id",f),q.setAttributeNS(null,"transform",y(this.transformMatrix));const o0=g.element.cloneNode(!0);if(this.pendingClip==="evenodd"?o0.setAttributeNS(null,"clip-rule","evenodd"):o0.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,q.append(o0),this.defs.append(q),g.activeClipUrl){g.clipGroup=null;for(const c0 of this.extraStack)c0.clipGroup=null;q.setAttributeNS(null,"clip-path",g.activeClipUrl)}g.activeClipUrl=`url(#${f})`,this.tgrp=null}clip(g){this.pendingClip=g}closePath(){const g=this.current;if(g.path){const f=`${g.path.getAttributeNS(null,"d")}Z`;g.path.setAttributeNS(null,"d",f)}}setLeading(g){this.current.leading=-g}setTextRise(g){this.current.textRise=g}setTextRenderingMode(g){this.current.textRenderingMode=g}setHScale(g){this.current.textHScale=g/100}setRenderingIntent(g){}setFlatness(g){}setGState(g){for(const[f,q]of g)switch(f){case"LW":this.setLineWidth(q);break;case"LC":this.setLineCap(q);break;case"LJ":this.setLineJoin(q);break;case"ML":this.setMiterLimit(q);break;case"D":this.setDash(q[0],q[1]);break;case"RI":this.setRenderingIntent(q);break;case"FL":this.setFlatness(q);break;case"Font":this.setFont(q);break;case"CA":this.setStrokeAlpha(q);break;case"ca":this.setFillAlpha(q);break;default:(0,z.warn)(`Unimplemented graphic state operator ${f}`)}}fill(){const g=this.current;g.element&&(g.element.setAttributeNS(null,"fill",g.fillColor),g.element.setAttributeNS(null,"fill-opacity",g.fillAlpha),this.endPath())}stroke(){const g=this.current;g.element&&(this._setStrokeAttributes(g.element),g.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const q=this.current;let o0=q.dashArray;f!==1&&o0.length>0&&(o0=o0.map(function(c0){return f*c0})),g.setAttributeNS(null,"stroke",q.strokeColor),g.setAttributeNS(null,"stroke-opacity",q.strokeAlpha),g.setAttributeNS(null,"stroke-miterlimit",X(q.miterLimit)),g.setAttributeNS(null,"stroke-linecap",q.lineCap),g.setAttributeNS(null,"stroke-linejoin",q.lineJoin),g.setAttributeNS(null,"stroke-width",X(f*q.lineWidth)+"px"),g.setAttributeNS(null,"stroke-dasharray",o0.map(X).join(" ")),g.setAttributeNS(null,"stroke-dashoffset",X(f*q.dashPhase)+"px")}eoFill(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const g=this.svgFactory.createElement("svg:rect");g.setAttributeNS(null,"x","0"),g.setAttributeNS(null,"y","0"),g.setAttributeNS(null,"width","1px"),g.setAttributeNS(null,"height","1px"),g.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(g)}paintImageXObject(g){const f=this.getObject(g);f?this.paintInlineImageXObject(f):(0,z.warn)(`Dependent image with object ID ${g} is not ready yet`)}paintInlineImageXObject(g,f){const q=g.width,o0=g.height,c0=C(g,this.forceDataSchema,!!f),P=this.svgFactory.createElement("svg:rect");P.setAttributeNS(null,"x","0"),P.setAttributeNS(null,"y","0"),P.setAttributeNS(null,"width",X(q)),P.setAttributeNS(null,"height",X(o0)),this.current.element=P,this.clip("nonzero");const b0=this.svgFactory.createElement("svg:image");b0.setAttributeNS(S,"xlink:href",c0),b0.setAttributeNS(null,"x","0"),b0.setAttributeNS(null,"y",X(-o0)),b0.setAttributeNS(null,"width",X(q)+"px"),b0.setAttributeNS(null,"height",X(o0)+"px"),b0.setAttributeNS(null,"transform",`scale(${X(1/q)} ${X(-1/o0)})`),f?f.append(b0):this._ensureTransformGroup().append(b0)}paintImageMaskXObject(g){const f=this.getObject(g.data,g);if(f.bitmap){(0,z.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const q=this.current,o0=f.width,c0=f.height,P=q.fillColor;q.maskId="mask"+U++;const b0=this.svgFactory.createElement("svg:mask");b0.setAttributeNS(null,"id",q.maskId);const a0=this.svgFactory.createElement("svg:rect");a0.setAttributeNS(null,"x","0"),a0.setAttributeNS(null,"y","0"),a0.setAttributeNS(null,"width",X(o0)),a0.setAttributeNS(null,"height",X(c0)),a0.setAttributeNS(null,"fill",P),a0.setAttributeNS(null,"mask",`url(#${q.maskId})`),this.defs.append(b0),this._ensureTransformGroup().append(a0),this.paintInlineImageXObject(f,b0)}paintFormXObjectBegin(g,f){if(Array.isArray(g)&&g.length===6&&this.transform(g[0],g[1],g[2],g[3],g[4],g[5]),f){const q=f[2]-f[0],o0=f[3]-f[1],c0=this.svgFactory.createElement("svg:rect");c0.setAttributeNS(null,"x",f[0]),c0.setAttributeNS(null,"y",f[1]),c0.setAttributeNS(null,"width",X(q)),c0.setAttributeNS(null,"height",X(o0)),this.current.element=c0,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(g){const f=this.svgFactory.create(g.width,g.height),q=this.svgFactory.createElement("svg:defs");f.append(q),this.defs=q;const o0=this.svgFactory.createElement("svg:g");return o0.setAttributeNS(null,"transform",y(g.transform)),f.append(o0),this.svg=o0,f}_ensureClipGroup(){if(!this.current.clipGroup){const g=this.svgFactory.createElement("svg:g");g.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(g),this.current.clipGroup=g}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",y(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(o){var s=__webpack_module_cache__[o];if(s!==void 0)return s.exports;var M=__webpack_module_cache__[o]={exports:{}};return __webpack_modules__[o].call(M.exports,M,M.exports,__w_pdfjs_require__),M.exports}var __webpack_exports__={};return(()=>{var o=__webpack_exports__;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AbortException",{enumerable:!0,get:function(){return s.AbortException}}),Object.defineProperty(o,"AnnotationEditorLayer",{enumerable:!0,get:function(){return Z.AnnotationEditorLayer}}),Object.defineProperty(o,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return s.AnnotationEditorParamsType}}),Object.defineProperty(o,"AnnotationEditorType",{enumerable:!0,get:function(){return s.AnnotationEditorType}}),Object.defineProperty(o,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return r.AnnotationEditorUIManager}}),Object.defineProperty(o,"AnnotationLayer",{enumerable:!0,get:function(){return N.AnnotationLayer}}),Object.defineProperty(o,"AnnotationMode",{enumerable:!0,get:function(){return s.AnnotationMode}}),Object.defineProperty(o,"CMapCompressionType",{enumerable:!0,get:function(){return s.CMapCompressionType}}),Object.defineProperty(o,"FeatureTest",{enumerable:!0,get:function(){return s.FeatureTest}}),Object.defineProperty(o,"GlobalWorkerOptions",{enumerable:!0,get:function(){return X.GlobalWorkerOptions}}),Object.defineProperty(o,"InvalidPDFException",{enumerable:!0,get:function(){return s.InvalidPDFException}}),Object.defineProperty(o,"MissingPDFException",{enumerable:!0,get:function(){return s.MissingPDFException}}),Object.defineProperty(o,"OPS",{enumerable:!0,get:function(){return s.OPS}}),Object.defineProperty(o,"PDFDataRangeTransport",{enumerable:!0,get:function(){return M.PDFDataRangeTransport}}),Object.defineProperty(o,"PDFDateString",{enumerable:!0,get:function(){return u.PDFDateString}}),Object.defineProperty(o,"PDFWorker",{enumerable:!0,get:function(){return M.PDFWorker}}),Object.defineProperty(o,"PasswordResponses",{enumerable:!0,get:function(){return s.PasswordResponses}}),Object.defineProperty(o,"PermissionFlag",{enumerable:!0,get:function(){return s.PermissionFlag}}),Object.defineProperty(o,"PixelsPerInch",{enumerable:!0,get:function(){return u.PixelsPerInch}}),Object.defineProperty(o,"PromiseCapability",{enumerable:!0,get:function(){return s.PromiseCapability}}),Object.defineProperty(o,"RenderingCancelledException",{enumerable:!0,get:function(){return u.RenderingCancelledException}}),Object.defineProperty(o,"SVGGraphics",{enumerable:!0,get:function(){return y.SVGGraphics}}),Object.defineProperty(o,"UnexpectedResponseException",{enumerable:!0,get:function(){return s.UnexpectedResponseException}}),Object.defineProperty(o,"Util",{enumerable:!0,get:function(){return s.Util}}),Object.defineProperty(o,"VerbosityLevel",{enumerable:!0,get:function(){return s.VerbosityLevel}}),Object.defineProperty(o,"XfaLayer",{enumerable:!0,get:function(){return G.XfaLayer}}),Object.defineProperty(o,"build",{enumerable:!0,get:function(){return M.build}}),Object.defineProperty(o,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return s.createValidAbsoluteUrl}}),Object.defineProperty(o,"getDocument",{enumerable:!0,get:function(){return M.getDocument}}),Object.defineProperty(o,"getFilenameFromUrl",{enumerable:!0,get:function(){return u.getFilenameFromUrl}}),Object.defineProperty(o,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return u.getPdfFilenameFromUrl}}),Object.defineProperty(o,"getXfaPageViewport",{enumerable:!0,get:function(){return u.getXfaPageViewport}}),Object.defineProperty(o,"isDataScheme",{enumerable:!0,get:function(){return u.isDataScheme}}),Object.defineProperty(o,"isPdfFile",{enumerable:!0,get:function(){return u.isPdfFile}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return u.loadScript}}),Object.defineProperty(o,"normalizeUnicode",{enumerable:!0,get:function(){return s.normalizeUnicode}}),Object.defineProperty(o,"renderTextLayer",{enumerable:!0,get:function(){return z.renderTextLayer}}),Object.defineProperty(o,"setLayerDimensions",{enumerable:!0,get:function(){return u.setLayerDimensions}}),Object.defineProperty(o,"shadow",{enumerable:!0,get:function(){return s.shadow}}),Object.defineProperty(o,"updateTextLayer",{enumerable:!0,get:function(){return z.updateTextLayer}}),Object.defineProperty(o,"version",{enumerable:!0,get:function(){return M.version}});var s=__w_pdfjs_require__(1),M=__w_pdfjs_require__(138),u=__w_pdfjs_require__(142),z=__w_pdfjs_require__(161),Z=__w_pdfjs_require__(162),r=__w_pdfjs_require__(141),N=__w_pdfjs_require__(165),X=__w_pdfjs_require__(149),y=__w_pdfjs_require__(168),G=__w_pdfjs_require__(167)})(),__webpack_exports__})())})(pdf_min$2);var pdf_minExports=pdf_min$2.exports;const pdf_min=getDefaultExportFromCjs(pdf_minExports),pdf_min$1=Object.freeze(Object.defineProperty({__proto__:null,default:pdf_min},Symbol.toStringTag,{value:"Module"})),pdf_minF72cfa08=Object.freeze(Object.defineProperty({__proto__:null,p:pdf_min$1},Symbol.toStringTag,{value:"Module"}));exports.Button=_sfc_main$Q,exports.Card=Card$1,exports.DEFAULT_FETCH_OPTIONS=DEFAULT_FETCH_OPTIONS,exports.DynamicCarousel=_sfc_main$L,exports.DynamicForm=_sfc_main$r,exports.IconButton=IconButton,exports.IndicatorColor=IndicatorColor$1,exports.ProductPrice=ProductPrice,exports.ProductProps=_sfc_main$e,exports.ProductTag=ProductTag,exports.SectionSpinner=SectionSpinner,exports.SectionsContainer=SectionsContainer,exports.StateIndicator=StateIndicator,exports.WidgetsIndex=WidgetsIndex,exports.createFetchUniq=createFetchUniq,exports.default=W2WSharedUi,exports.getFetchUniq=getFetchUniq,exports.setFetchUniq=setFetchUniq,exports.useDragAndDrop=useDragAndDrop,exports.useFetch=useFetch,exports.useFetchPages=useFetchPages,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
66
+ `}setFont(g){const f=this.current,q=this.commonObjs.get(g[0]);let o0=g[1];f.font=q,this.embedFonts&&!q.missingFile&&!this.embeddedFonts[q.loadedName]&&(this.addFontStyle(q),this.embeddedFonts[q.loadedName]=q),f.fontMatrix=q.fontMatrix||z.FONT_IDENTITY_MATRIX;let c0="normal";q.black?c0="900":q.bold&&(c0="bold");const P=q.italic?"italic":"normal";o0<0?(o0=-o0,f.fontDirection=-1):f.fontDirection=1,f.fontSize=o0,f.fontFamily=q.loadedName,f.fontWeight=c0,f.fontStyle=P,f.tspan=this.svgFactory.createElement("svg:tspan"),f.tspan.setAttributeNS(null,"y",X(-f.y)),f.xcoords=[],f.ycoords=[]}endText(){var g;const f=this.current;f.textRenderingMode&z.TextRenderingMode.ADD_TO_PATH_FLAG&&(g=f.txtElement)!==null&&g!==void 0&&g.hasChildNodes()&&(f.element=f.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(g){g>0&&(this.current.lineWidth=g)}setLineCap(g){this.current.lineCap=R[g]}setLineJoin(g){this.current.lineJoin=D[g]}setMiterLimit(g){this.current.miterLimit=g}setStrokeAlpha(g){this.current.strokeAlpha=g}setStrokeRGBColor(g,f,q){this.current.strokeColor=z.Util.makeHexColor(g,f,q)}setFillAlpha(g){this.current.fillAlpha=g}setFillRGBColor(g,f,q){this.current.fillColor=z.Util.makeHexColor(g,f,q),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(g){this.current.strokeColor=this._makeColorN_Pattern(g)}setFillColorN(g){this.current.fillColor=this._makeColorN_Pattern(g)}shadingFill(g){const f=this.viewport.width,q=this.viewport.height,o0=z.Util.inverseTransform(this.transformMatrix),c0=z.Util.applyTransform([0,0],o0),P=z.Util.applyTransform([0,q],o0),b0=z.Util.applyTransform([f,0],o0),a0=z.Util.applyTransform([f,q],o0),O0=Math.min(c0[0],P[0],b0[0],a0[0]),s0=Math.min(c0[1],P[1],b0[1],a0[1]),X0=Math.max(c0[0],P[0],b0[0],a0[0]),H=Math.max(c0[1],P[1],b0[1],a0[1]),Q=this.svgFactory.createElement("svg:rect");Q.setAttributeNS(null,"x",O0),Q.setAttributeNS(null,"y",s0),Q.setAttributeNS(null,"width",X0-O0),Q.setAttributeNS(null,"height",H-s0),Q.setAttributeNS(null,"fill",this._makeShadingPattern(g)),this.current.fillAlpha<1&&Q.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Q)}_makeColorN_Pattern(g){return g[0]==="TilingPattern"?this._makeTilingPattern(g):this._makeShadingPattern(g)}_makeTilingPattern(g){const f=g[1],q=g[2],o0=g[3]||z.IDENTITY_MATRIX,[c0,P,b0,a0]=g[4],O0=g[5],s0=g[6],X0=g[7],H="shading"+E++,[Q,$,l0,_]=z.Util.normalizeRect([...z.Util.applyTransform([c0,P],o0),...z.Util.applyTransform([b0,a0],o0)]),[v,t0]=z.Util.singularValueDecompose2dScale(o0),n0=O0*v,p0=s0*t0,Z0=this.svgFactory.createElement("svg:pattern");Z0.setAttributeNS(null,"id",H),Z0.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Z0.setAttributeNS(null,"width",n0),Z0.setAttributeNS(null,"height",p0),Z0.setAttributeNS(null,"x",`${Q}`),Z0.setAttributeNS(null,"y",`${$}`);const W0=this.svg,h0=this.transformMatrix,N0=this.current.fillColor,u0=this.current.strokeColor,D0=this.svgFactory.create(l0-Q,_-$);if(this.svg=D0,this.transformMatrix=o0,X0===2){const f0=z.Util.makeHexColor(...f);this.current.fillColor=f0,this.current.strokeColor=f0}return this.executeOpTree(this.convertOpList(q)),this.svg=W0,this.transformMatrix=h0,this.current.fillColor=N0,this.current.strokeColor=u0,Z0.append(D0.childNodes[0]),this.defs.append(Z0),`url(#${H})`}_makeShadingPattern(g){switch(typeof g=="string"&&(g=this.objs.get(g)),g[0]){case"RadialAxial":const f="shading"+E++,q=g[3];let o0;switch(g[1]){case"axial":const c0=g[4],P=g[5];o0=this.svgFactory.createElement("svg:linearGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"x1",c0[0]),o0.setAttributeNS(null,"y1",c0[1]),o0.setAttributeNS(null,"x2",P[0]),o0.setAttributeNS(null,"y2",P[1]);break;case"radial":const b0=g[4],a0=g[5],O0=g[6],s0=g[7];o0=this.svgFactory.createElement("svg:radialGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"cx",a0[0]),o0.setAttributeNS(null,"cy",a0[1]),o0.setAttributeNS(null,"r",s0),o0.setAttributeNS(null,"fx",b0[0]),o0.setAttributeNS(null,"fy",b0[1]),o0.setAttributeNS(null,"fr",O0);break;default:throw new Error(`Unknown RadialAxial type: ${g[1]}`)}for(const c0 of q){const P=this.svgFactory.createElement("svg:stop");P.setAttributeNS(null,"offset",c0[0]),P.setAttributeNS(null,"stop-color",c0[1]),o0.append(P)}return this.defs.append(o0),`url(#${f})`;case"Mesh":return(0,z.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${g[0]}`)}}setDash(g,f){this.current.dashArray=g,this.current.dashPhase=f}constructPath(g,f){const q=this.current;let o0=q.x,c0=q.y,P=[],b0=0;for(const a0 of g)switch(0|a0){case z.OPS.rectangle:o0=f[b0++],c0=f[b0++];const O0=o0+f[b0++],s0=c0+f[b0++];P.push("M",X(o0),X(c0),"L",X(O0),X(c0),"L",X(O0),X(s0),"L",X(o0),X(s0),"Z");break;case z.OPS.moveTo:o0=f[b0++],c0=f[b0++],P.push("M",X(o0),X(c0));break;case z.OPS.lineTo:o0=f[b0++],c0=f[b0++],P.push("L",X(o0),X(c0));break;case z.OPS.curveTo:o0=f[b0+4],c0=f[b0+5],P.push("C",X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3]),X(o0),X(c0)),b0+=6;break;case z.OPS.curveTo2:P.push("C",X(o0),X(c0),X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3])),o0=f[b0+2],c0=f[b0+3],b0+=4;break;case z.OPS.curveTo3:o0=f[b0+2],c0=f[b0+3],P.push("C",X(f[b0]),X(f[b0+1]),X(o0),X(c0),X(o0),X(c0)),b0+=4;break;case z.OPS.closePath:P.push("Z")}P=P.join(" "),q.path&&g.length>0&&g[0]!==z.OPS.rectangle&&g[0]!==z.OPS.moveTo?P=q.path.getAttributeNS(null,"d")+P:(q.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(q.path)),q.path.setAttributeNS(null,"d",P),q.path.setAttributeNS(null,"fill","none"),q.element=q.path,q.setCurrentPoint(o0,c0)}endPath(){const g=this.current;if(g.path=null,!this.pendingClip)return;if(!g.element){this.pendingClip=null;return}const f="clippath"+F++,q=this.svgFactory.createElement("svg:clipPath");q.setAttributeNS(null,"id",f),q.setAttributeNS(null,"transform",y(this.transformMatrix));const o0=g.element.cloneNode(!0);if(this.pendingClip==="evenodd"?o0.setAttributeNS(null,"clip-rule","evenodd"):o0.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,q.append(o0),this.defs.append(q),g.activeClipUrl){g.clipGroup=null;for(const c0 of this.extraStack)c0.clipGroup=null;q.setAttributeNS(null,"clip-path",g.activeClipUrl)}g.activeClipUrl=`url(#${f})`,this.tgrp=null}clip(g){this.pendingClip=g}closePath(){const g=this.current;if(g.path){const f=`${g.path.getAttributeNS(null,"d")}Z`;g.path.setAttributeNS(null,"d",f)}}setLeading(g){this.current.leading=-g}setTextRise(g){this.current.textRise=g}setTextRenderingMode(g){this.current.textRenderingMode=g}setHScale(g){this.current.textHScale=g/100}setRenderingIntent(g){}setFlatness(g){}setGState(g){for(const[f,q]of g)switch(f){case"LW":this.setLineWidth(q);break;case"LC":this.setLineCap(q);break;case"LJ":this.setLineJoin(q);break;case"ML":this.setMiterLimit(q);break;case"D":this.setDash(q[0],q[1]);break;case"RI":this.setRenderingIntent(q);break;case"FL":this.setFlatness(q);break;case"Font":this.setFont(q);break;case"CA":this.setStrokeAlpha(q);break;case"ca":this.setFillAlpha(q);break;default:(0,z.warn)(`Unimplemented graphic state operator ${f}`)}}fill(){const g=this.current;g.element&&(g.element.setAttributeNS(null,"fill",g.fillColor),g.element.setAttributeNS(null,"fill-opacity",g.fillAlpha),this.endPath())}stroke(){const g=this.current;g.element&&(this._setStrokeAttributes(g.element),g.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const q=this.current;let o0=q.dashArray;f!==1&&o0.length>0&&(o0=o0.map(function(c0){return f*c0})),g.setAttributeNS(null,"stroke",q.strokeColor),g.setAttributeNS(null,"stroke-opacity",q.strokeAlpha),g.setAttributeNS(null,"stroke-miterlimit",X(q.miterLimit)),g.setAttributeNS(null,"stroke-linecap",q.lineCap),g.setAttributeNS(null,"stroke-linejoin",q.lineJoin),g.setAttributeNS(null,"stroke-width",X(f*q.lineWidth)+"px"),g.setAttributeNS(null,"stroke-dasharray",o0.map(X).join(" ")),g.setAttributeNS(null,"stroke-dashoffset",X(f*q.dashPhase)+"px")}eoFill(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const g=this.svgFactory.createElement("svg:rect");g.setAttributeNS(null,"x","0"),g.setAttributeNS(null,"y","0"),g.setAttributeNS(null,"width","1px"),g.setAttributeNS(null,"height","1px"),g.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(g)}paintImageXObject(g){const f=this.getObject(g);f?this.paintInlineImageXObject(f):(0,z.warn)(`Dependent image with object ID ${g} is not ready yet`)}paintInlineImageXObject(g,f){const q=g.width,o0=g.height,c0=C(g,this.forceDataSchema,!!f),P=this.svgFactory.createElement("svg:rect");P.setAttributeNS(null,"x","0"),P.setAttributeNS(null,"y","0"),P.setAttributeNS(null,"width",X(q)),P.setAttributeNS(null,"height",X(o0)),this.current.element=P,this.clip("nonzero");const b0=this.svgFactory.createElement("svg:image");b0.setAttributeNS(S,"xlink:href",c0),b0.setAttributeNS(null,"x","0"),b0.setAttributeNS(null,"y",X(-o0)),b0.setAttributeNS(null,"width",X(q)+"px"),b0.setAttributeNS(null,"height",X(o0)+"px"),b0.setAttributeNS(null,"transform",`scale(${X(1/q)} ${X(-1/o0)})`),f?f.append(b0):this._ensureTransformGroup().append(b0)}paintImageMaskXObject(g){const f=this.getObject(g.data,g);if(f.bitmap){(0,z.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const q=this.current,o0=f.width,c0=f.height,P=q.fillColor;q.maskId="mask"+U++;const b0=this.svgFactory.createElement("svg:mask");b0.setAttributeNS(null,"id",q.maskId);const a0=this.svgFactory.createElement("svg:rect");a0.setAttributeNS(null,"x","0"),a0.setAttributeNS(null,"y","0"),a0.setAttributeNS(null,"width",X(o0)),a0.setAttributeNS(null,"height",X(c0)),a0.setAttributeNS(null,"fill",P),a0.setAttributeNS(null,"mask",`url(#${q.maskId})`),this.defs.append(b0),this._ensureTransformGroup().append(a0),this.paintInlineImageXObject(f,b0)}paintFormXObjectBegin(g,f){if(Array.isArray(g)&&g.length===6&&this.transform(g[0],g[1],g[2],g[3],g[4],g[5]),f){const q=f[2]-f[0],o0=f[3]-f[1],c0=this.svgFactory.createElement("svg:rect");c0.setAttributeNS(null,"x",f[0]),c0.setAttributeNS(null,"y",f[1]),c0.setAttributeNS(null,"width",X(q)),c0.setAttributeNS(null,"height",X(o0)),this.current.element=c0,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(g){const f=this.svgFactory.create(g.width,g.height),q=this.svgFactory.createElement("svg:defs");f.append(q),this.defs=q;const o0=this.svgFactory.createElement("svg:g");return o0.setAttributeNS(null,"transform",y(g.transform)),f.append(o0),this.svg=o0,f}_ensureClipGroup(){if(!this.current.clipGroup){const g=this.svgFactory.createElement("svg:g");g.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(g),this.current.clipGroup=g}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",y(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(o){var s=__webpack_module_cache__[o];if(s!==void 0)return s.exports;var M=__webpack_module_cache__[o]={exports:{}};return __webpack_modules__[o].call(M.exports,M,M.exports,__w_pdfjs_require__),M.exports}var __webpack_exports__={};return(()=>{var o=__webpack_exports__;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AbortException",{enumerable:!0,get:function(){return s.AbortException}}),Object.defineProperty(o,"AnnotationEditorLayer",{enumerable:!0,get:function(){return Z.AnnotationEditorLayer}}),Object.defineProperty(o,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return s.AnnotationEditorParamsType}}),Object.defineProperty(o,"AnnotationEditorType",{enumerable:!0,get:function(){return s.AnnotationEditorType}}),Object.defineProperty(o,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return r.AnnotationEditorUIManager}}),Object.defineProperty(o,"AnnotationLayer",{enumerable:!0,get:function(){return N.AnnotationLayer}}),Object.defineProperty(o,"AnnotationMode",{enumerable:!0,get:function(){return s.AnnotationMode}}),Object.defineProperty(o,"CMapCompressionType",{enumerable:!0,get:function(){return s.CMapCompressionType}}),Object.defineProperty(o,"FeatureTest",{enumerable:!0,get:function(){return s.FeatureTest}}),Object.defineProperty(o,"GlobalWorkerOptions",{enumerable:!0,get:function(){return X.GlobalWorkerOptions}}),Object.defineProperty(o,"InvalidPDFException",{enumerable:!0,get:function(){return s.InvalidPDFException}}),Object.defineProperty(o,"MissingPDFException",{enumerable:!0,get:function(){return s.MissingPDFException}}),Object.defineProperty(o,"OPS",{enumerable:!0,get:function(){return s.OPS}}),Object.defineProperty(o,"PDFDataRangeTransport",{enumerable:!0,get:function(){return M.PDFDataRangeTransport}}),Object.defineProperty(o,"PDFDateString",{enumerable:!0,get:function(){return u.PDFDateString}}),Object.defineProperty(o,"PDFWorker",{enumerable:!0,get:function(){return M.PDFWorker}}),Object.defineProperty(o,"PasswordResponses",{enumerable:!0,get:function(){return s.PasswordResponses}}),Object.defineProperty(o,"PermissionFlag",{enumerable:!0,get:function(){return s.PermissionFlag}}),Object.defineProperty(o,"PixelsPerInch",{enumerable:!0,get:function(){return u.PixelsPerInch}}),Object.defineProperty(o,"PromiseCapability",{enumerable:!0,get:function(){return s.PromiseCapability}}),Object.defineProperty(o,"RenderingCancelledException",{enumerable:!0,get:function(){return u.RenderingCancelledException}}),Object.defineProperty(o,"SVGGraphics",{enumerable:!0,get:function(){return y.SVGGraphics}}),Object.defineProperty(o,"UnexpectedResponseException",{enumerable:!0,get:function(){return s.UnexpectedResponseException}}),Object.defineProperty(o,"Util",{enumerable:!0,get:function(){return s.Util}}),Object.defineProperty(o,"VerbosityLevel",{enumerable:!0,get:function(){return s.VerbosityLevel}}),Object.defineProperty(o,"XfaLayer",{enumerable:!0,get:function(){return G.XfaLayer}}),Object.defineProperty(o,"build",{enumerable:!0,get:function(){return M.build}}),Object.defineProperty(o,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return s.createValidAbsoluteUrl}}),Object.defineProperty(o,"getDocument",{enumerable:!0,get:function(){return M.getDocument}}),Object.defineProperty(o,"getFilenameFromUrl",{enumerable:!0,get:function(){return u.getFilenameFromUrl}}),Object.defineProperty(o,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return u.getPdfFilenameFromUrl}}),Object.defineProperty(o,"getXfaPageViewport",{enumerable:!0,get:function(){return u.getXfaPageViewport}}),Object.defineProperty(o,"isDataScheme",{enumerable:!0,get:function(){return u.isDataScheme}}),Object.defineProperty(o,"isPdfFile",{enumerable:!0,get:function(){return u.isPdfFile}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return u.loadScript}}),Object.defineProperty(o,"normalizeUnicode",{enumerable:!0,get:function(){return s.normalizeUnicode}}),Object.defineProperty(o,"renderTextLayer",{enumerable:!0,get:function(){return z.renderTextLayer}}),Object.defineProperty(o,"setLayerDimensions",{enumerable:!0,get:function(){return u.setLayerDimensions}}),Object.defineProperty(o,"shadow",{enumerable:!0,get:function(){return s.shadow}}),Object.defineProperty(o,"updateTextLayer",{enumerable:!0,get:function(){return z.updateTextLayer}}),Object.defineProperty(o,"version",{enumerable:!0,get:function(){return M.version}});var s=__w_pdfjs_require__(1),M=__w_pdfjs_require__(138),u=__w_pdfjs_require__(142),z=__w_pdfjs_require__(161),Z=__w_pdfjs_require__(162),r=__w_pdfjs_require__(141),N=__w_pdfjs_require__(165),X=__w_pdfjs_require__(149),y=__w_pdfjs_require__(168),G=__w_pdfjs_require__(167)})(),__webpack_exports__})())})(pdf_min$2);var pdf_minExports=pdf_min$2.exports;const pdf_min=getDefaultExportFromCjs(pdf_minExports),pdf_min$1=Object.freeze(Object.defineProperty({__proto__:null,default:pdf_min},Symbol.toStringTag,{value:"Module"})),pdf_minF72cfa08=Object.freeze(Object.defineProperty({__proto__:null,p:pdf_min$1},Symbol.toStringTag,{value:"Module"}));exports.Button=_sfc_main$Q,exports.Card=Card$1,exports.DEFAULT_FETCH_OPTIONS=DEFAULT_FETCH_OPTIONS,exports.DynamicCarousel=_sfc_main$L,exports.DynamicForm=_sfc_main$r,exports.IconButton=IconButton,exports.IndicatorColor=IndicatorColor$1,exports.ProductPrice=ProductPrice,exports.ProductProps=_sfc_main$e,exports.ProductTag=ProductTag,exports.SectionSpinner=SectionSpinner,exports.SectionsContainer=SectionsContainer,exports.StateIndicator=StateIndicator,exports.WidgetsIndex=WidgetsIndex,exports.createFetchUniq=createFetchUniq,exports.default=W2WSharedUi,exports.getFetchUniq=getFetchUniq,exports.getValue=getValue,exports.setFetchUniq=setFetchUniq,exports.useDragAndDrop=useDragAndDrop,exports.useFetch=useFetch,exports.useFetchPages=useFetchPages,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});