Lines 1-29javascript
1"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("@vtj/core"),f=require("@vtj/utils"),L=require("vue"),es=require("vue-router");function pi(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const ve=pi(L);/**!
2 * Copyright (c) 2026, VTJ.PRO All rights reserved.
4 * @author CHC chenhuachun1549@dingtalk.com
6 * @license <a href="https://vtj.pro/license.html">MIT License</a>
7 */const be="0.18.14";var P=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(P||{});const dt=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch",
8`),h=s(l),p=u(h);return c(p)}catch(l){return console.error("CSS scoping failed:",l),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,h=>h).replace(/([^{}@]+)(?=\s*{)/g,h=>{const p=h.trim();return!p||p.startsWith("@")||p.includes(`[${e}]`)||i(p)?h:`${p}[${e}]`})}}const bi=750;function ls(t,e,s){let i;typeof t<"u"?i=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),i=375);const r=s||bi;return e*i/r}function hs(t,e){let s=!1,i=!1,r=!1,n="";for(let a=0;a<e.length;a++){const u=e[a];if(u ...
9`}catch(r){console.error("Failed to read cssRules from adopted stylesheet:",r)}}),s){const i=t.createElement("style");i.textContent=s,t.head.appendChild(i)}}async function ps(t,e){const s=await globalThis.fetch(e).then(i=>i.text()).catch(()=>"");s&&Ke(globalThis,t,s)}function wt(
10`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(W).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=o.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&e.allowHas ...
11`),cooked:this.value},this.next(),s.tail=this.type===o.backQuote,this.finishNode(s,"TemplateElement")};S.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var s=
12`;break;default:t+=String.fromCharCode(s);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}};C.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(o.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};C.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
13`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ft(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(t){var s=this.pos-1;return this.invalidStringToken(s,"Invalid escape sequence in template string"),null}default:if(e>=48&&e<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseIn ...
14 (function anonymous(${e.join(",")}){
17 `;return r.evaluate(n)}Object.defineProperty(jt,"__IS_FUNCTION_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});class Y{constructor(e){this.value=e}}class ue{constructor(e){this.value=e}}class ie{constructor(
18`)+a;const u=r?`
LowEval
Package source references a known benign dynamic code generation pattern.
dist/index.cjsView on unpkg · L16 20`:`with(${s?"{}":"$scope || {}"}) { ${a} }`;return sr?new Function("$scope",u)(e):ir(u,e)}catch(n){if(f.logger.error("parseExpression.error",n,t,e?.__self??e),n&&(n.info=t.value),Oe(n),i)throw n}}function q(t,e,s=!1,i=!1,r=!1){const n=Ce(t,e,s,i,r);if(typeof n!="function"&&(f.logger.error("parseFunction.error","not a function",t,e?.__self??e),i))throw new Error(`"${t.value}" not a function`);return n}function R(t){return t&&t.type==="JSExpression"}function F(t){return typeof t=="object"&&t&&t.type==="JSFunction"}function Js(t){return R(t)||F(t)}function rr(t){return Js(t)?t.value.startsWith("{ ...
24 })()`}:vs(t.value)?{type:"JSFunction",value:`() => { ${t.value}}`}:t}function Pr(t,e,s,i){const r=["passive","capture","once"],n={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.
25 ${t.value.value} = v?.target.value;
26 }`:"(v) => {}"};return{[R(t.arg)?e.__parseExpression(t.arg):t.arg||"value"]:e.__parseExpression(t.value),onInput:e.__parseFunction(s)}}function Lr(t,e,s){const i={type:"JSFunction",value:e.value?.value?`(v) => {
28 }`:"(v) => {}"},r=s.__parseFunction(i),n=Ht(R(e.modifiers)?s.__parseExpression(e.modifiers):e.modifiers),a=R(e.arg)?s.__parseExpression(e.arg):e.arg||"modelValue";return{[a]:s.__parseExpression(e.value),[`onUpdate:${a}`]:n.length&&r?t.withModifiers(r,n)
Long lines were clipped for display.