@tuoyuan/module-page-select 1.1.2 → 1.1.4

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.
@@ -1,2 +1,2 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue"),require("@tuoyuan/gateway-request-lib")):"function"===typeof define&&define.amd?define([,],t):"object"===typeof exports?exports["module-page-select"]=t(require("vue"),require("@tuoyuan/gateway-request-lib")):e["module-page-select"]=t(e["Vue"],e["GatewayRequestLib"])})("undefined"!==typeof self?self:this,function(e,t){return function(){var r={7523:function(e,t,r){"use strict";r.r(t);var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i),s=a()(o());s.push([e.id,".module-page-select[data-v-3fb01432]{width:100%}.selection-preview[data-v-3fb01432]{margin-top:8px;padding:8px 12px;background:#f0f9ff;border:1px solid #91d5ff;border-radius:4px;font-size:13px}.preview-label[data-v-3fb01432]{color:#666;font-size:12px;margin-bottom:4px}.preview-value[data-v-3fb01432]{color:#1890ff;font-weight:500}.config-form[data-v-3fb01432]{margin-top:16px}.array-editor[data-v-3fb01432]{display:flex;flex-direction:column;gap:8px}.array-item[data-v-3fb01432]{display:flex;align-items:center;gap:8px;padding:8px;background:#f5f5f5;border-radius:4px}.array-item-fields[data-v-3fb01432]{display:flex;flex:1;gap:8px}",""]),t["default"]=s},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n="undefined"!==typeof t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,i){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);n&&a[l[0]]||("undefined"!==typeof i&&("undefined"===typeof l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},8868:function(e,t){"use strict";t.A=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r}},778:function(e,t,r){var n=r(7523);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var o=r(5292).A;o("2bfa4e08",n,!0,{sourceMap:!1,shadowMode:!1})},5292:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});r(4114);function n(e,t){for(var r=[],n={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],c=i[2],u=i[3],l={id:e+":"+o,css:s,media:c,sourceMap:u};n[a]?n[a].parts.push(l):r.push(n[a]={id:a,parts:[l]})}return r}var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},f=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,r,o){u=r,f=o||{};var a=n(e,t);return m(a),function(t){for(var r=[],o=0;o<a.length;o++){var s=a[o],c=i[s.id];c.refs--,r.push(c)}t?(a=n(e,t),m(a)):a=[];for(o=0;o<r.length;o++){c=r[o];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete i[c.id]}}}}function m(e){for(var t=0;t<e.length;t++){var r=e[t],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(y(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(y(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function y(e){var t,r,n=document.querySelector("style["+d+'~="'+e.id+'"]');if(n){if(u)return l;n.parentNode.removeChild(n)}if(p){var o=c++;n=s||(s=g()),t=b.bind(null,n,o,!1),r=b.bind(null,n,o,!0)}else n=g(),t=w.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var v=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=v(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function w(e,t){var r=t.css,n=t.media,o=t.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(d,t.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},3092:function(e){"use strict";e.exports=t},9274:function(t){"use strict";t.exports=e},9306:function(e,t,r){"use strict";var n=r(4901),o=r(6823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},679:function(e,t,r){"use strict";var n=r(1625),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},8551:function(e,t,r){"use strict";var n=r(34),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},9617:function(e,t,r){"use strict";var n=r(5397),o=r(5610),i=r(6198),a=function(e){return function(t,r,a){var s=n(t),c=i(s);if(0===c)return!e&&-1;var u,l=o(a,c);if(e&&r!==r){while(c>l)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4527:function(e,t,r){"use strict";var n=r(3724),o=r(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,r){"use strict";var n=r(9504);e.exports=n([].slice)},6319:function(e,t,r){"use strict";var n=r(8551),o=r(9539);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){o(e,"throw",a)}}},2195:function(e,t,r){"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:function(e,t,r){"use strict";var n=r(2140),o=r(4901),i=r(2195),a=r(8227),s=a("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=c(e),s))?r:u?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},7740:function(e,t,r){"use strict";var n=r(9297),o=r(5031),i=r(7347),a=r(4913);e.exports=function(e,t,r){for(var s=o(t),c=a.f,u=i.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},2211:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},2106:function(e,t,r){"use strict";var n=r(283),o=r(4913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},6840:function(e,t,r){"use strict";var n=r(4901),o=r(4913),i=r(283),a=r(9433);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279:function(e,t,r){"use strict";var n=r(6840);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},9433:function(e,t,r){"use strict";var n=r(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},3724:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,r){"use strict";var n=r(4576),o=r(34),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6837:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw new t("Maximum allowed index exceeded");return e}},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(e,t,r){"use strict";var n=r(4576),o=n.navigator,i=o&&o.userAgent;e.exports=i?String(i):""},9519:function(e,t,r){"use strict";var n,o,i=r(4576),a=r(2839),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),e.exports=o},6518:function(e,t,r){"use strict";var n=r(4576),o=r(7347).f,i=r(6699),a=r(6840),s=r(9433),c=r(7740),u=r(2796);e.exports=function(e,t){var r,l,f,d,p,h,m=e.target,g=e.global,y=e.stat;if(l=g?n:y?n[m]||s(m,{}):n[m]&&n[m].prototype,l)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(l,f),d=h&&h.value):d=l[f],r=u(g?f:m+(y?".":"#")+f,e.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(l,f,p,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},8745:function(e,t,r){"use strict";var n=r(616),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6080:function(e,t,r){"use strict";var n=r(7476),o=r(9306),i=r(616),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9565:function(e,t,r){"use strict";var n=r(616),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:function(e,t,r){"use strict";var n=r(3724),o=r(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},7476:function(e,t,r){"use strict";var n=r(2195),o=r(9504);e.exports=function(e){if("Function"===n(e))return o(e)}},9504:function(e,t,r){"use strict";var n=r(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},7751:function(e,t,r){"use strict";var n=r(4576),o=r(4901),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851:function(e,t,r){"use strict";var n=r(6955),o=r(5966),i=r(4117),a=r(6269),s=r(8227),c=s("iterator");e.exports=function(e){if(!i(e))return o(e,c)||o(e,"@@iterator")||a[n(e)]}},81:function(e,t,r){"use strict";var n=r(9565),o=r(9306),i=r(8551),a=r(6823),s=r(851),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new c(a(e)+" is not iterable")}},5966:function(e,t,r){"use strict";var n=r(9306),o=r(4117);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},4576:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,r){"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){"use strict";e.exports={}},397:function(e,t,r){"use strict";var n=r(7751);e.exports=n("document","documentElement")},5917:function(e,t,r){"use strict";var n=r(3724),o=r(9039),i=r(4055);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(e,t,r){"use strict";var n=r(9504),o=r(9039),i=r(2195),a=Object,s=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3706:function(e,t,r){"use strict";var n=r(9504),o=r(4901),i=r(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},1181:function(e,t,r){"use strict";var n,o,i,a=r(8622),s=r(4576),c=r(34),u=r(6699),l=r(9297),f=r(7629),d=r(6119),p=r(421),h="Object already initialized",m=s.TypeError,g=s.WeakMap,y=function(e){return i(e)?o(e):n(e,{})},v=function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}};if(a||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw new m(h);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var w=d("state");p[w]=!0,n=function(e,t){if(l(e,w))throw new m(h);return t.facade=e,u(e,w,t),t},o=function(e){return l(e,w)?e[w]:{}},i=function(e){return l(e,w)}}e.exports={set:n,get:o,has:i,enforce:y,getterFor:v}},4209:function(e,t,r){"use strict";var n=r(8227),o=r(6269),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4376:function(e,t,r){"use strict";var n=r(2195);e.exports=Array.isArray||function(e){return"Array"===n(e)}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,r){"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r===l||r!==u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},4117:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},34:function(e,t,r){"use strict";var n=r(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},6395:function(e){"use strict";e.exports=!1},5810:function(e,t,r){"use strict";var n=r(34),o=r(1181).get;e.exports=function(e){if(!n(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},757:function(e,t,r){"use strict";var n=r(7751),o=r(4901),i=r(1625),a=r(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},2652:function(e,t,r){"use strict";var n=r(6080),o=r(9565),i=r(8551),a=r(6823),s=r(4209),c=r(6198),u=r(1625),l=r(81),f=r(851),d=r(9539),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,y,v,b,w,x,I,S=r&&r.that,C=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),N=!(!r||!r.INTERRUPTED),k=n(t,S),E=function(e){var t=g;return g=void 0,t&&d(t,"normal"),new h(!0,e)},j=function(e){return C?(i(e),N?k(e[0],e[1],E):k(e[0],e[1])):N?k(e,E):k(e)};if(O)g=e.iterator;else if(P)g=e;else{if(y=f(e),!y)throw new p(a(e)+" is not iterable");if(s(y)){for(v=0,b=c(e);b>v;v++)if(w=j(e[v]),w&&u(m,w))return w;return new h(!1)}g=l(e,y)}x=O?e.next:g.next;while(!(I=o(x,g)).done){var M=I.value;try{w=j(M)}catch(F){if(!g)throw F;d(g,"throw",F)}if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},1385:function(e,t,r){"use strict";var n=r(9539);e.exports=function(e,t,r){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{r=n(e[o].iterator,t,r)}catch(i){t="throw",r=i}if("throw"===t)throw r;return r}},9539:function(e,t,r){"use strict";var n=r(9565),o=r(8551),i=r(5966);e.exports=function(e,t,r){var a,s;o(e);try{if(a=i(e,"return"),!a){if("throw"===t)throw r;return r}a=n(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw r;if(s)throw a;return o(a),r}},9462:function(e,t,r){"use strict";var n=r(9565),o=r(2360),i=r(6699),a=r(6279),s=r(8227),c=r(1181),u=r(5966),l=r(7657).IteratorPrototype,f=r(2529),d=r(9539),p=r(1385),h=s("toStringTag"),m="IteratorHelper",g="WrapForValidIterator",y="normal",v="throw",b=c.set,w=function(e){var t=c.getterFor(e?g:m);return a(o(l),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return f(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:f(n,r.done)}catch(o){throw r.done=!0,o}},return:function(){var r=t(this),o=r.iterator,i=r.done;if(r.done=!0,e){var a=u(o,"return");return a?n(a,o):f(void 0,!0)}if(i)return f(void 0,!0);if(r.inner)try{d(r.inner.iterator,y)}catch(s){return d(o,v,s)}if(r.openIters)try{p(r.openIters,y)}catch(s){if(o)return d(o,v,s);throw s}return o&&d(o,y),f(void 0,!0)}})},x=w(!0),I=w(!1);i(I,h,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?g:m,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,b(this,o)};return n.prototype=t?x:I,n}},684:function(e){"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(n){return!0}}},4549:function(e,t,r){"use strict";var n=r(4576);e.exports=function(e,t){var r=n.Iterator,o=r&&r.prototype,i=o&&o[e],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(s){s instanceof t||(a=!1)}if(!a)return i}},7657:function(e,t,r){"use strict";var n,o,i,a=r(9039),s=r(4901),c=r(34),u=r(2360),l=r(2787),f=r(6840),d=r(8227),p=r(6395),h=d("iterator"),m=!1;[].keys&&(i=[].keys(),"next"in i?(o=l(l(i)),o!==Object.prototype&&(n=o)):m=!0);var g=!c(n)||a(function(){var e={};return n[h].call(e)!==e});g?n={}:p&&(n=u(n)),s(n[h])||f(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},6269:function(e){"use strict";e.exports={}},6198:function(e,t,r){"use strict";var n=r(8014);e.exports=function(e){return n(e.length)}},283:function(e,t,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),a=r(9297),s=r(3724),c=r(350).CONFIGURABLE,u=r(3706),l=r(1181),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var n=f(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&d(this).source||u(this)},"toString")},741:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},7819:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},2360:function(e,t,r){"use strict";var n,o=r(8551),i=r(6801),a=r(8727),s=r(421),c=r(397),u=r(4055),l=r(6119),f=">",d="<",p="prototype",h="script",m=l("IE_PROTO"),g=function(){},y=function(e){return d+h+f+e+d+"/"+h+f},v=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),r="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&n?v(n):b():v(n);var e=a.length;while(e--)delete w[p][a[e]];return w()};s[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[p]=o(e),r=new g,g[p]=null,r[m]=e):r=w(),void 0===t?r:i.f(r,t)}},6801:function(e,t,r){"use strict";var n=r(3724),o=r(8686),i=r(4913),a=r(8551),s=r(5397),c=r(1072);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);var r,n=s(t),o=c(t),u=o.length,l=0;while(u>l)i.f(e,r=o[l++],n[r]);return e}},4913:function(e,t,r){"use strict";var n=r(3724),o=r(5917),i=r(8686),a=r(8551),s=r(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"===typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7347:function(e,t,r){"use strict";var n=r(3724),o=r(9565),i=r(8773),a=r(6980),s=r(5397),c=r(6969),u=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=c(t),l)try{return f(e,t)}catch(r){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},8480:function(e,t,r){"use strict";var n=r(1828),o=r(8727),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2787:function(e,t,r){"use strict";var n=r(9297),o=r(4901),i=r(8981),a=r(6119),s=r(2211),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1625:function(e,t,r){"use strict";var n=r(9504);e.exports=n({}.isPrototypeOf)},1828:function(e,t,r){"use strict";var n=r(9504),o=r(9297),i=r(5397),a=r(9617).indexOf,s=r(421),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&c(l,r);while(t.length>u)o(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},1072:function(e,t,r){"use strict";var n=r(1828),o=r(8727);e.exports=Object.keys||function(e){return n(e,o)}},8773:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},4270:function(e,t,r){"use strict";var n=r(9565),o=r(4901),i=r(34),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},5031:function(e,t,r){"use strict";var n=r(7751),o=r(9504),i=r(8480),a=r(3717),s=r(8551),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?c(t,r(e)):t}},8235:function(e,t,r){"use strict";var n=r(9504),o=r(9297),i=SyntaxError,a=parseInt,s=String.fromCharCode,c=n("".charAt),u=n("".slice),l=n(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){var r=!0,n="";while(t<e.length){var h=c(e,t);if("\\"===h){var m=u(e,t,t+2);if(o(f,m))n+=f[m],t+=2;else{if("\\u"!==m)throw new i('Unknown escape sequence: "'+m+'"');t+=2;var g=u(e,t,t+4);if(!l(d,g))throw new i("Bad Unicode escape at: "+t);n+=s(a(g,16)),t+=4}}else{if('"'===h){r=!1,t++;break}if(l(p,h))throw new i("Bad control character in string literal at: "+t);n+=h,t++}}if(r)throw new i("Unterminated string at: "+t);return{value:n,end:t}}},7750:function(e,t,r){"use strict";var n=r(4117),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},6119:function(e,t,r){"use strict";var n=r(5745),o=r(3392),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,r){"use strict";var n=r(6395),o=r(4576),i=r(9433),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,r){"use strict";var n=r(7629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},4495:function(e,t,r){"use strict";var n=r(9519),o=r(9039),i=r(4576),a=i.String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610:function(e,t,r){"use strict";var n=r(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5397:function(e,t,r){"use strict";var n=r(7055),o=r(7750);e.exports=function(e){return n(o(e))}},1291:function(e,t,r){"use strict";var n=r(741);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},8014:function(e,t,r){"use strict";var n=r(1291),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},8981:function(e,t,r){"use strict";var n=r(7750),o=Object;e.exports=function(e){return o(n(e))}},2777:function(e,t,r){"use strict";var n=r(9565),o=r(34),i=r(757),a=r(5966),s=r(4270),c=r(8227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,r){"use strict";var n=r(2777),o=r(757);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},2140:function(e,t,r){"use strict";var n=r(8227),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},655:function(e,t,r){"use strict";var n=r(6955),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},3392:function(e,t,r){"use strict";var n=r(9504),o=0,i=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},7040:function(e,t,r){"use strict";var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,r){"use strict";var n=r(3724),o=r(9039);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(e,t,r){"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8227:function(e,t,r){"use strict";var n=r(4576),o=r(5745),i=r(9297),a=r(3392),s=r(4495),c=r(7040),u=n.Symbol,l=o("wks"),f=c?u["for"]||u:u&&u.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},4114:function(e,t,r){"use strict";var n=r(6518),o=r(8981),i=r(6198),a=r(4527),s=r(6837),c=r(9039),u=c(function(){return 4294967297!==[].push.call({length:4294967296},1)}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=u||!l();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=o(this),r=i(t),n=arguments.length;s(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return a(t,r),r}})},8111:function(e,t,r){"use strict";var n=r(6518),o=r(4576),i=r(679),a=r(8551),s=r(4901),c=r(2787),u=r(2106),l=r(4659),f=r(9039),d=r(9297),p=r(8227),h=r(7657).IteratorPrototype,m=r(3724),g=r(6395),y="constructor",v="Iterator",b=p("toStringTag"),w=TypeError,x=o[v],I=g||!s(x)||x.prototype!==h||!f(function(){x({})}),S=function(){if(i(this,h),c(this)===h)throw new w("Abstract class Iterator not directly constructable")},C=function(e,t){m?u(h,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===h)throw new w("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):h[e]=t};d(h,b)||C(b,v),!I&&d(h,y)&&h[y]!==Object||C(y,S),S.prototype=h,n({global:!0,constructor:!0,forced:I},{Iterator:S})},116:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),c=r(1767),u=r(9539),l=r(4549),f=l("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(e){s(this);try{a(e)}catch(n){u(this,"throw",n)}if(f)return o(f,this,e);var t=c(this),r=0;return i(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},7588:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),c=r(1767),u=r(9539),l=r(4549),f=l("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(e){s(this);try{a(e)}catch(n){u(this,"throw",n)}if(f)return o(f,this,e);var t=c(this),r=0;i(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},1701:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),a=r(8551),s=r(1767),c=r(9462),u=r(6319),l=r(9539),f=r(684),d=r(4549),p=r(6395),h=!p&&!f("map",function(){}),m=!p&&!h&&d("map",TypeError),g=p||h||m,y=c(function(){var e=this.iterator,t=a(o(this.next,e)),r=this.done=!!t.done;if(!r)return u(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){a(this);try{i(e)}catch(t){l(this,"throw",t)}return m?o(m,this,e):new y(s(this),{mapper:e})}})},3579:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),c=r(1767),u=r(9539),l=r(4549),f=l("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(e){s(this);try{a(e)}catch(n){u(this,"throw",n)}if(f)return o(f,this,e);var t=c(this),r=0;return i(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3110:function(e,t,r){"use strict";var n=r(6518),o=r(7751),i=r(8745),a=r(9565),s=r(9504),c=r(9039),u=r(4376),l=r(4901),f=r(5810),d=r(757),p=r(2195),h=r(655),m=r(7680),g=r(8235),y=r(3392),v=r(4495),b=r(7819),w=String,x=o("JSON","stringify"),I=s(/./.exec),S=s("".charAt),C=s("".charCodeAt),O=s("".replace),P=s("".slice),N=s([].push),k=s(1.1.toString),E=/[\uD800-\uDFFF]/g,j=/^[\uD800-\uDBFF]$/,M=/^[\uDC00-\uDFFF]$/,F=y(),V=F.length,T=!v||c(function(){var e=o("Symbol")("stringify detection");return"[null]"!==x([e])||"{}"!==x({a:e})||"{}"!==x(Object(e))}),B=c(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),_=T?function(e,t){var r=m(arguments),n=D(t);if(l(n)||void 0!==e&&!d(e))return r[1]=function(e,t){if(l(n)&&(t=a(n,this,w(e),t)),!d(t))return t},i(x,null,r)}:x,A=function(e,t,r){var n=S(r,t-1),o=S(r,t+1);return I(j,e)&&!I(M,o)||I(M,e)&&!I(j,n)?"\\u"+k(C(e,0),16):e},D=function(e){if(l(e))return e;if(u(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?N(r,o):"number"!=typeof o&&"Number"!==p(o)&&"String"!==p(o)||N(r,h(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(u(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}};x&&n({target:"JSON",stat:!0,arity:3,forced:T||B||!b},{stringify:function(e,t,r){var n=D(t),o=[],i=_(e,function(e,t){var r=l(n)?a(n,this,w(e),t):t;return!b&&f(r)?F+(N(o,r.rawJSON)-1):r},r);if("string"!=typeof i)return i;if(B&&(i=O(i,E,A)),b)return i;for(var s="",c=i.length,u=0;u<c;u++){var d=S(i,u);if('"'===d){var p=g(i,++u).end-1,h=P(i,u,p);s+=P(h,0,V)===F?o[P(h,V)]:'"'+h+'"',u=p}else s+=d}return s}})}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}!function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){o.p=""}();var i={};return function(){"use strict";if(o.r(i),o.d(i,{default:function(){return y}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(o.p=t[1])}var r=o(9274);const n={class:"module-page-select"},a={key:0,class:"selection-preview"},s={class:"preview-value"},c={key:4,class:"array-editor"},u={class:"array-item-fields"};function l(e,t,o,i,l,f){const d=(0,r.resolveComponent)("a-option"),p=(0,r.resolveComponent)("a-select"),h=(0,r.resolveComponent)("a-form-item"),m=(0,r.resolveComponent)("a-divider"),g=(0,r.resolveComponent)("a-input"),y=(0,r.resolveComponent)("a-input-number"),v=(0,r.resolveComponent)("a-textarea"),b=(0,r.resolveComponent)("a-button"),w=(0,r.resolveComponent)("a-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",n,[(0,r.createVNode)(w,{layout:"vertical",size:"small"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(h,{label:"选择模块"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(p,{modelValue:l.selectedModuleId,"onUpdate:modelValue":t[0]||(t[0]=e=>l.selectedModuleId=e),onChange:f.handleModuleChange,onFocus:f.handleModuleFocus,placeholder:"请选择模块",loading:l.moduleLoading,"allow-clear":"","allow-search":"",size:"small"},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(f.moduleOptions,e=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:e.id,value:e.id},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange","onFocus","loading"])]),_:1}),(0,r.createVNode)(h,{label:"选择页面"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(p,{modelValue:l.selectedPageId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.selectedPageId=e),onChange:f.handlePageChange,onFocus:f.handlePageFocus,placeholder:"请选择页面",disabled:!l.selectedModuleId,loading:l.pageLoading,"allow-clear":"","allow-search":"",size:"small"},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(f.pageOptions,e=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:e.id,value:e.id},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange","onFocus","disabled","loading"])]),_:1}),l.selectedModuleName&&l.selectedPageName?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[t[2]||(t[2]=(0,r.createElementVNode)("div",{class:"preview-label"},"当前选择:",-1)),(0,r.createElementVNode)("div",s,(0,r.toDisplayString)(l.selectedModuleName)+" - "+(0,r.toDisplayString)(l.selectedPageName),1)])):(0,r.createCommentVNode)("",!0),l.showConfigForm?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createVNode)(m,null,{default:(0,r.withCtx)(()=>[...t[3]||(t[3]=[(0,r.createTextVNode)("页面配置",-1)])]),_:1}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(l.configFields,(e,n)=>((0,r.openBlock)(),(0,r.createBlock)(h,{key:n,label:e.label,field:n},{default:(0,r.withCtx)(()=>["text"===e.type?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,"model-value":f.getNestedValue(n,e),placeholder:e.placeholder||"","onUpdate:modelValue":t=>f.setNestedValue(n,e,t)},null,8,["model-value","placeholder","onUpdate:modelValue"])):"number"===e.type?((0,r.openBlock)(),(0,r.createBlock)(y,{key:1,"model-value":f.getNestedValue(n,e),placeholder:e.placeholder||"",style:{width:"100%"},"onUpdate:modelValue":t=>f.setNestedValue(n,e,t)},null,8,["model-value","placeholder","onUpdate:modelValue"])):"textarea"===e.type?((0,r.openBlock)(),(0,r.createBlock)(v,{key:2,"model-value":f.getNestedValue(n,e),placeholder:e.placeholder||"","auto-size":{minRows:3,maxRows:6},"onUpdate:modelValue":t=>f.setNestedValue(n,e,t)},null,8,["model-value","placeholder","onUpdate:modelValue"])):"select"===e.type?((0,r.openBlock)(),(0,r.createBlock)(p,{key:3,"model-value":f.getNestedValue(n,e),placeholder:"请选择","onUpdate:modelValue":t=>f.setNestedValue(n,e,t)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,e=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:e.value,value:e.value,label:e.label},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]),_:2},1032,["value","label"]))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):"array"===e.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(f.getNestedValue(n,e),(o,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i,class:"array-item"},[(0,r.createElementVNode)("div",u,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.itemFields,(t,a)=>((0,r.openBlock)(),(0,r.createBlock)(g,{key:a,"model-value":o[a],placeholder:t.title||a,"onUpdate:modelValue":t=>f.updateArrayItem(n,e,i,a,t),style:{flex:"1","margin-right":"8px"}},null,8,["model-value","placeholder","onUpdate:modelValue"]))),128))]),(0,r.createVNode)(b,{type:"text",status:"danger",size:"small",onClick:t=>f.removeArrayItem(n,e,i)},{default:(0,r.withCtx)(()=>[...t[4]||(t[4]=[(0,r.createTextVNode)(" 删除 ",-1)])]),_:1},8,["onClick"])]))),128)),(0,r.createVNode)(b,{type:"dashed",long:"",size:"small",onClick:t=>f.addArrayItem(n,e)},{default:(0,r.withCtx)(()=>[...t[5]||(t[5]=[(0,r.createTextVNode)(" + 新增 ",-1)])]),_:1},8,["onClick"])])):(0,r.createCommentVNode)("",!0)]),_:2},1032,["label","field"]))),128))],64)):(0,r.createCommentVNode)("",!0),l.showConfirmButton?((0,r.openBlock)(),(0,r.createBlock)(b,{key:2,type:"primary",long:"",size:"small",onClick:f.handleConfirm,disabled:!l.selectedModuleId||!l.selectedPageId,style:{"margin-top":"16px"}},{default:(0,r.withCtx)(()=>[...t[6]||(t[6]=[(0,r.createTextVNode)(" 确认选择 ",-1)])]),_:1},8,["onClick","disabled"])):(0,r.createCommentVNode)("",!0)]),_:1})])}o(4114),o(8111),o(116),o(7588),o(1701),o(3579),o(3110);var f=o(3092),d={name:"ModulePageSelect",props:{modelValue:{type:Object,default:()=>({})},moduleId:{type:String,default:""},pageId:{type:String,default:""},autoEcho:{type:Boolean,default:!0}},emits:["update:modelValue","change","error"],data(){return{modules:[],pages:[],selectedModuleId:"",selectedPageId:"",selectedModuleName:"",selectedPageName:"",currentPage:null,configFields:{},formData:{},showConfigForm:!1,moduleCache:null,pageCache:{},showConfirmButton:!0,lastConfirmedState:null,moduleLoading:!1,pageLoading:!1,echoModuleName:"",echoPageName:"",appliedEchoKey:""}},computed:{pageType(){const e=this.modelValue?.type||"mobile";return"mobile"===e?2:1},moduleOptions(){return this.withFallbackOption(this.modules,this.selectedModuleId,this.echoModuleName,"模块")},pageOptions(){return this.withFallbackOption(this.pages,this.selectedPageId,this.echoPageName,"页面")}},watch:{modelValue:{deep:!0,handler(){this.applyEcho()}},moduleId(){this.applyEcho()},pageId(){this.applyEcho()}},mounted(){this.applyEcho()},methods:{normalizeId(e){return null===e||void 0===e?"":String(e)},resolveEchoSource(){const e=this.modelValue&&"object"===typeof this.modelValue?this.modelValue:{};return{moduleId:this.normalizeId(e.module_id||this.moduleId),pageId:this.normalizeId(e.page_id||this.pageId),moduleName:e.module_name||"",pageName:e.page_name||"",config:e.config}},withFallbackOption(e,t,r,n){const o=Array.isArray(e)?e:[];return t?o.some(e=>this.normalizeId(e.id)===t)?o:[{id:t,name:r||`${n}(${t})`},...o]:o},async applyEcho(){const e=this.resolveEchoSource();if(!e.moduleId&&!e.pageId)return;const t=JSON.stringify([e.moduleId,e.pageId]);if(t!==this.appliedEchoKey&&(this.appliedEchoKey=t,this.selectedModuleId=e.moduleId,this.selectedPageId=e.pageId,this.echoModuleName=e.moduleName,this.echoPageName=e.pageName,this.selectedModuleName=e.moduleName,this.selectedPageName=e.pageName,e.config&&"object"===typeof e.config&&(this.formData={...e.config}),this.showConfirmButton=!1,this.lastConfirmedState=JSON.stringify({moduleId:e.moduleId,pageId:e.pageId,config:e.config}),this.autoEcho)){if(!this.selectedModuleId&&this.selectedPageId){const e=await this.lookupModuleIdByPage(this.selectedPageId);e&&(this.selectedModuleId=e)}await this.loadModules(),this.syncModuleName(),this.selectedModuleId&&await this.loadPages(this.selectedModuleId,this.selectedPageId)}},syncModuleName(){if(!this.selectedModuleId)return;const e=this.modules.find(e=>this.normalizeId(e.id)===this.selectedModuleId);e&&(this.selectedModuleName=e.name,this.echoModuleName=e.name)},async lookupModuleIdByPage(e){try{const t=await this.fetchPagesFromAPI(),r=t.find(t=>this.normalizeId(t.id)===this.normalizeId(e));return r?this.normalizeId(r.moduleId):""}catch(t){return console.error("反查页面所属模块失败:",t),""}},async loadModules(){try{if(this.moduleCache)return void(this.modules=this.moduleCache);this.moduleLoading=!0;const e=await this.fetchModulesFromAPI();this.modules=e,this.moduleCache=e}catch(e){console.error("加载模块列表失败:",e),this.$emit("error",{type:"loadModules",error:e})}finally{this.moduleLoading=!1}},async fetchModulesFromAPI(){try{const e=await(0,f.request)({api:"/api/assembly-center.extend_module.list",params:{page_no:1,page_size:1e3},config:{access_token:!0}}),t=e?.data?.list||[];return Array.isArray(t)?t.map(e=>({id:this.normalizeId(e.id),name:e.name})):(console.error("modules 不是数组:",t),[])}catch(e){throw console.error("获取模块列表失败:",e),e}},async handleModuleFocus(){0===this.modules.length&&(await this.loadModules(),this.syncModuleName())},async handlePageFocus(){this.selectedModuleId&&0===this.pages.length&&await this.loadPages(this.selectedModuleId,this.selectedPageId)},async handleModuleChange(){this.pages=[],this.selectedPageId="",this.selectedPageName="",this.currentPage=null,this.showConfigForm=!1,this.formData={},this.showConfirmButton=!0,this.echoPageName="",this.selectedModuleId?(this.syncModuleName(),await this.loadPages(this.selectedModuleId)):(this.selectedModuleName="",this.echoModuleName="")},async loadPages(e,t=""){const r=this.normalizeId(e);try{if(this.pageCache[r])this.pages=this.pageCache[r];else{this.pageLoading=!0;const e=await this.fetchPagesFromAPI(r);this.pages=e,this.pageCache[r]=e}const e=this.normalizeId(t||this.pageId);if(e&&this.pages.length>0){const t=this.pages.find(t=>this.normalizeId(t.id)===e);t&&(this.selectedPageId=e,this.selectedPageName=t.name,this.echoPageName=t.name,this.currentPage=t,this.loadPageConfig(t))}}catch(n){console.error("加载页面列表失败:",n),this.$emit("error",{type:"loadPages",error:n})}finally{this.pageLoading=!1}},async fetchPagesFromAPI(e=""){try{const t=await(0,f.request)({api:"/api/assembly-center.extend_module.page_list",params:{...e?{module_id:e}:{},type:this.pageType,page_no:1,page_size:1e3},config:{access_token:!0}}),r=t?.data?.list||[];return Array.isArray(r)?r.map(e=>({id:this.normalizeId(e.id),moduleId:this.normalizeId(e.module_id),name:e.name,options:e.options||{}})):(console.error("pages 不是数组:",r),[])}catch(t){throw console.error("获取页面列表失败:",t),t}},handlePageChange(){if(this.showConfirmButton=!0,this.selectedPageId){const e=this.pages.find(e=>this.normalizeId(e.id)===this.normalizeId(this.selectedPageId));e&&(this.selectedPageName=e.name,this.echoPageName=e.name,this.currentPage=e,this.loadPageConfig(e))}else this.selectedPageName="",this.echoPageName="",this.currentPage=null,this.showConfigForm=!1,this.formData={}},loadPageConfig(e){e.options&&"object"===typeof e.options&&Object.keys(e.options).length>0?(this.configFields=this.parseConfigSchema(e.options),this.showConfigForm=!0,this.modelValue?.config?this.formData=this.deepClone(this.modelValue.config):this.initFormData()):(this.configFields={},this.showConfigForm=!1,this.formData={})},deepClone(e){if(null===e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(e=>this.deepClone(e));const t={};return Object.keys(e).forEach(r=>{t[r]=this.deepClone(e[r])}),t},getNestedValue(e,t){if(t.parentKey&&t.subKey)return this.formData[t.parentKey]?.[t.subKey]??"";const r=this.formData[e];return"array"===t.type?Array.isArray(r)?r:[]:r??""},setNestedValue(e,t,r){t.parentKey&&t.subKey?(this.formData[t.parentKey]||(this.formData[t.parentKey]={}),this.formData[t.parentKey][t.subKey]=r):this.formData[e]=r},addArrayItem(e,t){this.formData[e]||(this.formData[e]=[]);const r={};Object.keys(t.itemFields||{}).forEach(e=>{r[e]=""}),this.formData[e].push(r)},removeArrayItem(e,t,r){this.formData[e]&&Array.isArray(this.formData[e])&&this.formData[e].splice(r,1)},updateArrayItem(e,t,r,n,o){this.formData[e]&&this.formData[e][r]&&(this.formData[e][r][n]=o)},parseConfigSchema(e){const t={};return e.properties&&Object.keys(e.properties).forEach(r=>{const n=e.properties[r];if("array"===n.type){const e={};n.items&&"object"===n.items.type&&n.items.properties&&Object.keys(n.items.properties).forEach(t=>{const r=n.items.properties[t];e[t]={title:r.title||t,type:r.type||"string"}}),t[r]={label:n.title||r,type:"array",placeholder:n.description||"",default:n.default||[],itemFields:e}}else"object"===n.type&&n.properties?Object.keys(n.properties).forEach(e=>{const o=n.properties[e],i=`${r}.${e}`;t[i]={label:o.title||e,type:this.mapSchemaType(o.type),placeholder:o.description||"",options:o.enum?o.enum.map((e,t)=>({label:o.enumDescriptions?.[t]||e,value:e})):null,default:o.default,parentKey:r,subKey:e}}):t[r]={label:n.title||r,type:this.mapSchemaType(n.type),placeholder:n.description||"",options:n.enum?n.enum.map((e,t)=>({label:n.enumDescriptions?.[t]||e,value:e})):null,default:n.default}}),t},mapSchemaType(e){const t={string:"text",number:"number",integer:"number",boolean:"select"};return t[e]||"text"},initFormData(){const e={};Object.keys(this.configFields).forEach(t=>{const r=this.configFields[t],n=void 0!==r.default?r.default:"";r.parentKey&&r.subKey?(e[r.parentKey]||(e[r.parentKey]={}),e[r.parentKey][r.subKey]=n):e[t]=n}),this.formData=e},handleConfirm(){if(!this.selectedModuleId||!this.selectedPageId)return;const e=this.modules.find(e=>this.normalizeId(e.id)===this.normalizeId(this.selectedModuleId)),t=this.pages.find(e=>this.normalizeId(e.id)===this.normalizeId(this.selectedPageId));if(!e||!t)return void console.error("未找到选中的模块或页面");const r={module_id:e.id,module_name:e.name,page_id:t.id,page_name:t.name,type:2===this.pageType?"mobile":"pc",config:this.showConfigForm?{...this.formData}:void 0};this.lastConfirmedState=JSON.stringify({moduleId:this.selectedModuleId,pageId:this.selectedPageId,config:r.config}),this.appliedEchoKey=JSON.stringify([this.normalizeId(e.id),this.normalizeId(t.id)]),this.showConfirmButton=!1,this.$emit("update:modelValue",r),this.$emit("change",r)}}},p=(o(778),o(8868));const h=(0,p.A)(d,[["render",l],["__scopeId","data-v-3fb01432"]]);var m=h;m.install=function(e){e.component(m.name,m)},"undefined"!==typeof window&&window.Vue&&window.Vue.use(m);var g=m,y=g}(),i}()});
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue"),require("@tuoyuan/gateway-request-lib")):"function"===typeof define&&define.amd?define([,],t):"object"===typeof exports?exports["module-page-select"]=t(require("vue"),require("@tuoyuan/gateway-request-lib")):e["module-page-select"]=t(e["Vue"],e["GatewayRequestLib"])})("undefined"!==typeof self?self:this,function(e,t){return function(){var r={5291:function(e,t,r){"use strict";r.r(t);var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i),s=a()(o());s.push([e.id,".module-page-select[data-v-70a1b8ff]{width:100%}.selection-preview[data-v-70a1b8ff]{margin-top:8px;padding:8px 12px;background:#f0f9ff;border:1px solid #91d5ff;border-radius:4px;font-size:13px}.preview-label[data-v-70a1b8ff]{color:#666;font-size:12px;margin-bottom:4px}.preview-value[data-v-70a1b8ff]{color:#1890ff;font-weight:500}.config-form[data-v-70a1b8ff]{margin-top:16px}.array-editor[data-v-70a1b8ff]{display:flex;flex-direction:column;gap:8px}.array-item[data-v-70a1b8ff]{display:flex;align-items:center;gap:8px;padding:8px;background:#f5f5f5;border-radius:4px}.array-item-fields[data-v-70a1b8ff]{display:flex;flex:1;gap:8px}",""]),t["default"]=s},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n="undefined"!==typeof t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,i){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);n&&a[l[0]]||("undefined"!==typeof i&&("undefined"===typeof l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},8868:function(e,t){"use strict";t.A=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r}},6498:function(e,t,r){var n=r(5291);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var o=r(5292).A;o("4611a84c",n,!0,{sourceMap:!1,shadowMode:!1})},5292:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});r(4114);function n(e,t){for(var r=[],n={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],u=i[2],c=i[3],l={id:e+":"+o,css:s,media:u,sourceMap:c};n[a]?n[a].parts.push(l):r.push(n[a]={id:a,parts:[l]})}return r}var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,c=!1,l=function(){},f=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,r,o){c=r,f=o||{};var a=n(e,t);return m(a),function(t){for(var r=[],o=0;o<a.length;o++){var s=a[o],u=i[s.id];u.refs--,r.push(u)}t?(a=n(e,t),m(a)):a=[];for(o=0;o<r.length;o++){u=r[o];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete i[u.id]}}}}function m(e){for(var t=0;t<e.length;t++){var r=e[t],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(y(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(y(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function y(e){var t,r,n=document.querySelector("style["+d+'~="'+e.id+'"]');if(n){if(c)return l;n.parentNode.removeChild(n)}if(p){var o=u++;n=s||(s=g()),t=b.bind(null,n,o,!1),r=b.bind(null,n,o,!0)}else n=g(),t=w.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var v=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=v(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function w(e,t){var r=t.css,n=t.media,o=t.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(d,t.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},3092:function(e){"use strict";e.exports=t},9274:function(t){"use strict";t.exports=e},9306:function(e,t,r){"use strict";var n=r(4901),o=r(6823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},6469:function(e,t,r){"use strict";var n=r(8227),o=r(2360),i=r(4913).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},679:function(e,t,r){"use strict";var n=r(1625),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},8551:function(e,t,r){"use strict";var n=r(34),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},9617:function(e,t,r){"use strict";var n=r(5397),o=r(5610),i=r(6198),a=function(e){return function(t,r,a){var s=n(t),u=i(s);if(0===u)return!e&&-1;var c,l=o(a,u);if(e&&r!==r){while(u>l)if(c=s[l++],c!==c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4527:function(e,t,r){"use strict";var n=r(3724),o=r(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,r){"use strict";var n=r(9504);e.exports=n([].slice)},6319:function(e,t,r){"use strict";var n=r(8551),o=r(9539);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){o(e,"throw",a)}}},2195:function(e,t,r){"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:function(e,t,r){"use strict";var n=r(2140),o=r(4901),i=r(2195),a=r(8227),s=a("toStringTag"),u=Object,c="Arguments"===i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),s))?r:c?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},7740:function(e,t,r){"use strict";var n=r(9297),o=r(5031),i=r(7347),a=r(4913);e.exports=function(e,t,r){for(var s=o(t),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||u(e,f,c(t,f))}}},2211:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},2106:function(e,t,r){"use strict";var n=r(283),o=r(4913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},6840:function(e,t,r){"use strict";var n=r(4901),o=r(4913),i=r(283),a=r(9433);e.exports=function(e,t,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&i(r,c,s),s.global)u?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279:function(e,t,r){"use strict";var n=r(6840);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},9433:function(e,t,r){"use strict";var n=r(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},3724:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,r){"use strict";var n=r(4576),o=r(34),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6837:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw new t("Maximum allowed index exceeded");return e}},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(e,t,r){"use strict";var n=r(4576),o=n.navigator,i=o&&o.userAgent;e.exports=i?String(i):""},9519:function(e,t,r){"use strict";var n,o,i=r(4576),a=r(2839),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(n=l.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),e.exports=o},6518:function(e,t,r){"use strict";var n=r(4576),o=r(7347).f,i=r(6699),a=r(6840),s=r(9433),u=r(7740),c=r(2796);e.exports=function(e,t){var r,l,f,d,p,h,m=e.target,g=e.global,y=e.stat;if(l=g?n:y?n[m]||s(m,{}):n[m]&&n[m].prototype,l)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(l,f),d=h&&h.value):d=l[f],r=c(g?f:m+(y?".":"#")+f,e.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(l,f,p,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},8745:function(e,t,r){"use strict";var n=r(616),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6080:function(e,t,r){"use strict";var n=r(7476),o=r(9306),i=r(616),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9565:function(e,t,r){"use strict";var n=r(616),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:function(e,t,r){"use strict";var n=r(3724),o=r(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},7476:function(e,t,r){"use strict";var n=r(2195),o=r(9504);e.exports=function(e){if("Function"===n(e))return o(e)}},9504:function(e,t,r){"use strict";var n=r(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},7751:function(e,t,r){"use strict";var n=r(4576),o=r(4901),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851:function(e,t,r){"use strict";var n=r(6955),o=r(5966),i=r(4117),a=r(6269),s=r(8227),u=s("iterator");e.exports=function(e){if(!i(e))return o(e,u)||o(e,"@@iterator")||a[n(e)]}},81:function(e,t,r){"use strict";var n=r(9565),o=r(9306),i=r(8551),a=r(6823),s=r(851),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new u(a(e)+" is not iterable")}},5966:function(e,t,r){"use strict";var n=r(9306),o=r(4117);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},4576:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,r){"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){"use strict";e.exports={}},397:function(e,t,r){"use strict";var n=r(7751);e.exports=n("document","documentElement")},5917:function(e,t,r){"use strict";var n=r(3724),o=r(9039),i=r(4055);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(e,t,r){"use strict";var n=r(9504),o=r(9039),i=r(2195),a=Object,s=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3706:function(e,t,r){"use strict";var n=r(9504),o=r(4901),i=r(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},1181:function(e,t,r){"use strict";var n,o,i,a=r(8622),s=r(4576),u=r(34),c=r(6699),l=r(9297),f=r(7629),d=r(6119),p=r(421),h="Object already initialized",m=s.TypeError,g=s.WeakMap,y=function(e){return i(e)?o(e):n(e,{})},v=function(e){return function(t){var r;if(!u(t)||(r=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}};if(a||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw new m(h);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var w=d("state");p[w]=!0,n=function(e,t){if(l(e,w))throw new m(h);return t.facade=e,c(e,w,t),t},o=function(e){return l(e,w)?e[w]:{}},i=function(e){return l(e,w)}}e.exports={set:n,get:o,has:i,enforce:y,getterFor:v}},4209:function(e,t,r){"use strict";var n=r(8227),o=r(6269),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4376:function(e,t,r){"use strict";var n=r(2195);e.exports=Array.isArray||function(e){return"Array"===n(e)}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,r){"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r===l||r!==c&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},4117:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},34:function(e,t,r){"use strict";var n=r(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},6395:function(e){"use strict";e.exports=!1},5810:function(e,t,r){"use strict";var n=r(34),o=r(1181).get;e.exports=function(e){if(!n(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},757:function(e,t,r){"use strict";var n=r(7751),o=r(4901),i=r(1625),a=r(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},2652:function(e,t,r){"use strict";var n=r(6080),o=r(9565),i=r(8551),a=r(6823),s=r(4209),u=r(6198),c=r(1625),l=r(81),f=r(851),d=r(9539),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,y,v,b,w,x,I,C=r&&r.that,S=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),N=!(!r||!r.INTERRUPTED),P=n(t,C),E=function(e){var t=g;return g=void 0,t&&d(t,"normal"),new h(!0,e)},j=function(e){return S?(i(e),N?P(e[0],e[1],E):P(e[0],e[1])):N?P(e,E):P(e)};if(k)g=e.iterator;else if(O)g=e;else{if(y=f(e),!y)throw new p(a(e)+" is not iterable");if(s(y)){for(v=0,b=u(e);b>v;v++)if(w=j(e[v]),w&&c(m,w))return w;return new h(!1)}g=l(e,y)}x=k?e.next:g.next;while(!(I=o(x,g)).done){var M=I.value;try{w=j(M)}catch(B){if(!g)throw B;d(g,"throw",B)}if("object"==typeof w&&w&&c(m,w))return w}return new h(!1)}},1385:function(e,t,r){"use strict";var n=r(9539);e.exports=function(e,t,r){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{r=n(e[o].iterator,t,r)}catch(i){t="throw",r=i}if("throw"===t)throw r;return r}},9539:function(e,t,r){"use strict";var n=r(9565),o=r(8551),i=r(5966);e.exports=function(e,t,r){var a,s;o(e);try{if(a=i(e,"return"),!a){if("throw"===t)throw r;return r}a=n(a,e)}catch(u){s=!0,a=u}if("throw"===t)throw r;if(s)throw a;return o(a),r}},9462:function(e,t,r){"use strict";var n=r(9565),o=r(2360),i=r(6699),a=r(6279),s=r(8227),u=r(1181),c=r(5966),l=r(7657).IteratorPrototype,f=r(2529),d=r(9539),p=r(1385),h=s("toStringTag"),m="IteratorHelper",g="WrapForValidIterator",y="normal",v="throw",b=u.set,w=function(e){var t=u.getterFor(e?g:m);return a(o(l),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return f(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:f(n,r.done)}catch(o){throw r.done=!0,o}},return:function(){var r=t(this),o=r.iterator,i=r.done;if(r.done=!0,e){var a=c(o,"return");return a?n(a,o):f(void 0,!0)}if(i)return f(void 0,!0);if(r.inner)try{d(r.inner.iterator,y)}catch(s){return d(o,v,s)}if(r.openIters)try{p(r.openIters,y)}catch(s){if(o)return d(o,v,s);throw s}return o&&d(o,y),f(void 0,!0)}})},x=w(!0),I=w(!1);i(I,h,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?g:m,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,b(this,o)};return n.prototype=t?x:I,n}},684:function(e){"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(n){return!0}}},4549:function(e,t,r){"use strict";var n=r(4576);e.exports=function(e,t){var r=n.Iterator,o=r&&r.prototype,i=o&&o[e],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(s){s instanceof t||(a=!1)}if(!a)return i}},7657:function(e,t,r){"use strict";var n,o,i,a=r(9039),s=r(4901),u=r(34),c=r(2360),l=r(2787),f=r(6840),d=r(8227),p=r(6395),h=d("iterator"),m=!1;[].keys&&(i=[].keys(),"next"in i?(o=l(l(i)),o!==Object.prototype&&(n=o)):m=!0);var g=!u(n)||a(function(){var e={};return n[h].call(e)!==e});g?n={}:p&&(n=c(n)),s(n[h])||f(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},6269:function(e){"use strict";e.exports={}},6198:function(e,t,r){"use strict";var n=r(8014);e.exports=function(e){return n(e.length)}},283:function(e,t,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),a=r(9297),s=r(3724),u=r(350).CONFIGURABLE,c=r(3706),l=r(1181),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var n=f(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&d(this).source||c(this)},"toString")},741:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},7819:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},2360:function(e,t,r){"use strict";var n,o=r(8551),i=r(6801),a=r(8727),s=r(421),u=r(397),c=r(4055),l=r(6119),f=">",d="<",p="prototype",h="script",m=l("IE_PROTO"),g=function(){},y=function(e){return d+h+f+e+d+"/"+h+f},v=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),r="java"+h+":";return t.style.display="none",u.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&n?v(n):b():v(n);var e=a.length;while(e--)delete w[p][a[e]];return w()};s[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[p]=o(e),r=new g,g[p]=null,r[m]=e):r=w(),void 0===t?r:i.f(r,t)}},6801:function(e,t,r){"use strict";var n=r(3724),o=r(8686),i=r(4913),a=r(8551),s=r(5397),u=r(1072);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);var r,n=s(t),o=u(t),c=o.length,l=0;while(c>l)i.f(e,r=o[l++],n[r]);return e}},4913:function(e,t,r){"use strict";var n=r(3724),o=r(5917),i=r(8686),a=r(8551),s=r(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"===typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7347:function(e,t,r){"use strict";var n=r(3724),o=r(9565),i=r(8773),a=r(6980),s=r(5397),u=r(6969),c=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(r){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},8480:function(e,t,r){"use strict";var n=r(1828),o=r(8727),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2787:function(e,t,r){"use strict";var n=r(9297),o=r(4901),i=r(8981),a=r(6119),s=r(2211),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},1625:function(e,t,r){"use strict";var n=r(9504);e.exports=n({}.isPrototypeOf)},1828:function(e,t,r){"use strict";var n=r(9504),o=r(9297),i=r(5397),a=r(9617).indexOf,s=r(421),u=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&u(l,r);while(t.length>c)o(n,r=t[c++])&&(~a(l,r)||u(l,r));return l}},1072:function(e,t,r){"use strict";var n=r(1828),o=r(8727);e.exports=Object.keys||function(e){return n(e,o)}},8773:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},4270:function(e,t,r){"use strict";var n=r(9565),o=r(4901),i=r(34),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},5031:function(e,t,r){"use strict";var n=r(7751),o=r(9504),i=r(8480),a=r(3717),s=r(8551),u=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?u(t,r(e)):t}},8235:function(e,t,r){"use strict";var n=r(9504),o=r(9297),i=SyntaxError,a=parseInt,s=String.fromCharCode,u=n("".charAt),c=n("".slice),l=n(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){var r=!0,n="";while(t<e.length){var h=u(e,t);if("\\"===h){var m=c(e,t,t+2);if(o(f,m))n+=f[m],t+=2;else{if("\\u"!==m)throw new i('Unknown escape sequence: "'+m+'"');t+=2;var g=c(e,t,t+4);if(!l(d,g))throw new i("Bad Unicode escape at: "+t);n+=s(a(g,16)),t+=4}}else{if('"'===h){r=!1,t++;break}if(l(p,h))throw new i("Bad control character in string literal at: "+t);n+=h,t++}}if(r)throw new i("Unterminated string at: "+t);return{value:n,end:t}}},7750:function(e,t,r){"use strict";var n=r(4117),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},6119:function(e,t,r){"use strict";var n=r(5745),o=r(3392),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,r){"use strict";var n=r(6395),o=r(4576),i=r(9433),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,r){"use strict";var n=r(7629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},4495:function(e,t,r){"use strict";var n=r(9519),o=r(9039),i=r(4576),a=i.String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610:function(e,t,r){"use strict";var n=r(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5397:function(e,t,r){"use strict";var n=r(7055),o=r(7750);e.exports=function(e){return n(o(e))}},1291:function(e,t,r){"use strict";var n=r(741);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},8014:function(e,t,r){"use strict";var n=r(1291),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},8981:function(e,t,r){"use strict";var n=r(7750),o=Object;e.exports=function(e){return o(n(e))}},2777:function(e,t,r){"use strict";var n=r(9565),o=r(34),i=r(757),a=r(5966),s=r(4270),u=r(8227),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,u=a(e,l);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,r){"use strict";var n=r(2777),o=r(757);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},2140:function(e,t,r){"use strict";var n=r(8227),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},655:function(e,t,r){"use strict";var n=r(6955),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},3392:function(e,t,r){"use strict";var n=r(9504),o=0,i=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},7040:function(e,t,r){"use strict";var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,r){"use strict";var n=r(3724),o=r(9039);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(e,t,r){"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8227:function(e,t,r){"use strict";var n=r(4576),o=r(5745),i=r(9297),a=r(3392),s=r(4495),u=r(7040),c=n.Symbol,l=o("wks"),f=u?c["for"]||c:c&&c.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(c,e)?c[e]:f("Symbol."+e)),l[e]}},4423:function(e,t,r){"use strict";var n=r(6518),o=r(9617).includes,i=r(9039),a=r(6469),s=i(function(){return!Array(1).includes()}),u=i(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||u},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4114:function(e,t,r){"use strict";var n=r(6518),o=r(8981),i=r(6198),a=r(4527),s=r(6837),u=r(9039),c=u(function(){return 4294967297!==[].push.call({length:4294967296},1)}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=c||!l();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=o(this),r=i(t),n=arguments.length;s(r+n);for(var u=0;u<n;u++)t[r]=arguments[u],r++;return a(t,r),r}})},8111:function(e,t,r){"use strict";var n=r(6518),o=r(4576),i=r(679),a=r(8551),s=r(4901),u=r(2787),c=r(2106),l=r(4659),f=r(9039),d=r(9297),p=r(8227),h=r(7657).IteratorPrototype,m=r(3724),g=r(6395),y="constructor",v="Iterator",b=p("toStringTag"),w=TypeError,x=o[v],I=g||!s(x)||x.prototype!==h||!f(function(){x({})}),C=function(){if(i(this,h),u(this)===h)throw new w("Abstract class Iterator not directly constructable")},S=function(e,t){m?c(h,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===h)throw new w("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):h[e]=t};d(h,b)||S(b,v),!I&&d(h,y)&&h[y]!==Object||S(y,C),C.prototype=h,n({global:!0,constructor:!0,forced:I},{Iterator:C})},116:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),u=r(1767),c=r(9539),l=r(4549),f=l("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(e){s(this);try{a(e)}catch(n){c(this,"throw",n)}if(f)return o(f,this,e);var t=u(this),r=0;return i(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},7588:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),u=r(1767),c=r(9539),l=r(4549),f=l("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(e){s(this);try{a(e)}catch(n){c(this,"throw",n)}if(f)return o(f,this,e);var t=u(this),r=0;i(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},1701:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),a=r(8551),s=r(1767),u=r(9462),c=r(6319),l=r(9539),f=r(684),d=r(4549),p=r(6395),h=!p&&!f("map",function(){}),m=!p&&!h&&d("map",TypeError),g=p||h||m,y=u(function(){var e=this.iterator,t=a(o(this.next,e)),r=this.done=!!t.done;if(!r)return c(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(e){a(this);try{i(e)}catch(t){l(this,"throw",t)}return m?o(m,this,e):new y(s(this),{mapper:e})}})},3579:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),u=r(1767),c=r(9539),l=r(4549),f=l("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(e){s(this);try{a(e)}catch(n){c(this,"throw",n)}if(f)return o(f,this,e);var t=u(this),r=0;return i(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9112:function(e,t,r){"use strict";var n=r(6518),o=r(3724),i=r(4576),a=r(7751),s=r(9504),u=r(9565),c=r(4901),l=r(34),f=r(4376),d=r(9297),p=r(655),h=r(6198),m=r(4659),g=r(9039),y=r(8235),v=r(4495),b=i.JSON,w=i.Number,x=i.SyntaxError,I=b&&b.parse,C=a("Object","keys"),S=Object.getOwnPropertyDescriptor,k=s("".charAt),O=s("".slice),N=s(/./.exec),P=s([].push),E=/^\d$/,j=/^[1-9]$/,M=/^[\d-]$/,B=/^[\t\n\r ]$/,F=0,V=1,T=function(e,t){e=p(e);var r=new z(e,0,""),n=r.parse(),o=n.value,i=r.skip(B,n.end);if(i<e.length)throw new x('Unexpected extra character: "'+k(e,i)+'" after the parsed data at: '+i);return c(t)?_({"":o},"",t,n):o},_=function(e,t,r,n){var o,i,a,s,c,p=e[t],m=n&&p===n.value,g=m&&"string"==typeof n.source?{source:n.source}:{};if(l(p)){var y=f(p),v=m?n.nodes:y?[]:{};if(y)for(o=v.length,a=h(p),s=0;s<a;s++)A(p,s,_(p,""+s,r,s<o?v[s]:void 0));else for(i=C(p),a=h(i),s=0;s<a;s++)c=i[s],A(p,c,_(p,c,r,d(v,c)?v[c]:void 0))}return u(r,e,t,p,g)},A=function(e,t,r){if(o){var n=S(e,t);if(n&&!n.configurable)return}void 0===r?delete e[t]:m(e,t,r)},D=function(e,t,r,n){this.value=e,this.end=t,this.source=r,this.nodes=n},z=function(e,t){this.source=e,this.index=t};z.prototype={fork:function(e){return new z(this.source,e)},parse:function(){var e=this.source,t=this.skip(B,this.index),r=this.fork(t),n=k(e,t);if(N(M,n))return r.number();switch(n){case"{":return r.object();case"[":return r.array();case'"':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new x('Unexpected character: "'+n+'" at: '+t)},node:function(e,t,r,n,o){return new D(t,n,e?null:O(this.source,r,n),o)},object:function(){var e=this.source,t=this.index+1,r=!1,n={},o={},i=!1;while(t<e.length){if(t=this.until(['"',"}"],t),"}"===k(e,t)&&!r){t++,i=!0;break}var a=this.fork(t).string(),s=a.value;t=a.end,t=this.until([":"],t)+1,t=this.skip(B,t),a=this.fork(t).parse(),m(o,s,a),m(n,s,a.value),t=this.until([",","}"],a.end);var u=k(e,t);if(","===u)r=!0,t++;else if("}"===u){t++,i=!0;break}}if(!i)throw new x("Unterminated object at: "+t);return this.node(V,n,this.index,t,o)},array:function(){var e=this.source,t=this.index+1,r=!1,n=[],o=[],i=!1;while(t<e.length){if(t=this.skip(B,t),"]"===k(e,t)&&!r){t++,i=!0;break}var a=this.fork(t).parse();if(P(o,a),P(n,a.value),t=this.until([",","]"],a.end),","===k(e,t))r=!0,t++;else if("]"===k(e,t)){t++,i=!0;break}}if(!i)throw new x("Unterminated array at: "+t);return this.node(V,n,this.index,t,o)},string:function(){var e=this.index,t=y(this.source,this.index+1);return this.node(F,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,r=t;if("-"===k(e,r)&&r++,"0"===k(e,r))r++;else{if(!N(j,k(e,r)))throw new x("Failed to parse number at: "+r);r=this.skip(E,r+1)}if("."===k(e,r)){var n=r+1;if(r=this.skip(E,n),n===r)throw new x("Failed to parse number's fraction at: "+r)}if("e"===k(e,r)||"E"===k(e,r)){r++,"+"!==k(e,r)&&"-"!==k(e,r)||r++;var o=r;if(r=this.skip(E,r),o===r)throw new x("Failed to parse number's exponent value at: "+r)}return this.node(F,w(O(e,t,r)),t,r)},keyword:function(e){var t=""+e,r=this.index,n=r+t.length;if(O(this.source,r,n)!==t)throw new x("Failed to parse value at: "+r);return this.node(F,e,r,n)},skip:function(e,t){for(var r=this.source;t<r.length;t++)if(!N(e,k(r,t)))break;return t},until:function(e,t){t=this.skip(B,t);for(var r=k(this.source,t),n=0;n<e.length;n++)if(e[n]===r)return t;throw new x('Unexpected character: "'+r+'" at: '+t)}};var R=g(function(){var e,t="9007199254740993";return I(t,function(t,r,n){e=n.source}),e!==t}),U=v&&!g(function(){return 1/I("-0 \t")!==-1/0});n({target:"JSON",stat:!0,forced:R},{parse:function(e,t){return U&&!c(t)?I(e):T(e,t)}})},3110:function(e,t,r){"use strict";var n=r(6518),o=r(7751),i=r(8745),a=r(9565),s=r(9504),u=r(9039),c=r(4376),l=r(4901),f=r(5810),d=r(757),p=r(2195),h=r(655),m=r(7680),g=r(8235),y=r(3392),v=r(4495),b=r(7819),w=String,x=o("JSON","stringify"),I=s(/./.exec),C=s("".charAt),S=s("".charCodeAt),k=s("".replace),O=s("".slice),N=s([].push),P=s(1.1.toString),E=/[\uD800-\uDFFF]/g,j=/^[\uD800-\uDBFF]$/,M=/^[\uDC00-\uDFFF]$/,B=y(),F=B.length,V=!v||u(function(){var e=o("Symbol")("stringify detection");return"[null]"!==x([e])||"{}"!==x({a:e})||"{}"!==x(Object(e))}),T=u(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),_=V?function(e,t){var r=m(arguments),n=D(t);if(l(n)||void 0!==e&&!d(e))return r[1]=function(e,t){if(l(n)&&(t=a(n,this,w(e),t)),!d(t))return t},i(x,null,r)}:x,A=function(e,t,r){var n=C(r,t-1),o=C(r,t+1);return I(j,e)&&!I(M,o)||I(M,e)&&!I(j,n)?"\\u"+P(S(e,0),16):e},D=function(e){if(l(e))return e;if(c(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?N(r,o):"number"!=typeof o&&"Number"!==p(o)&&"String"!==p(o)||N(r,h(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(c(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}};x&&n({target:"JSON",stat:!0,arity:3,forced:V||T||!b},{stringify:function(e,t,r){var n=D(t),o=[],i=_(e,function(e,t){var r=l(n)?a(n,this,w(e),t):t;return!b&&f(r)?B+(N(o,r.rawJSON)-1):r},r);if("string"!=typeof i)return i;if(T&&(i=k(i,E,A)),b)return i;for(var s="",u=i.length,c=0;c<u;c++){var d=C(i,c);if('"'===d){var p=g(i,++c).end-1,h=O(i,c,p);s+=O(h,0,F)===B?o[O(h,F)]:'"'+h+'"',c=p}else s+=d}return s}})}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}!function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){o.p=""}();var i={};return function(){"use strict";if(o.r(i),o.d(i,{default:function(){return v}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(o.p=t[1])}var r=o(9274);const n={class:"module-page-select"},a={key:0,class:"selection-preview"},s={class:"preview-value"},u={key:4,class:"array-editor"},c={class:"array-item-fields"},l={key:2,style:{display:"flex",gap:"8px","margin-top":"16px"}};function f(e,t,o,i,f,d){const p=(0,r.resolveComponent)("a-option"),h=(0,r.resolveComponent)("a-select"),m=(0,r.resolveComponent)("a-form-item"),g=(0,r.resolveComponent)("a-divider"),y=(0,r.resolveComponent)("a-input"),v=(0,r.resolveComponent)("a-input-number"),b=(0,r.resolveComponent)("a-textarea"),w=(0,r.resolveComponent)("a-button"),x=(0,r.resolveComponent)("a-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",n,[(0,r.createVNode)(x,{layout:o.layout,size:"small"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(m,{label:"选择模块"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(h,{modelValue:f.selectedModuleId,"onUpdate:modelValue":t[0]||(t[0]=e=>f.selectedModuleId=e),onChange:d.handleModuleChange,onFocus:d.handleModuleFocus,placeholder:"请选择模块",loading:f.moduleLoading,"allow-clear":"","allow-search":"",size:"small"},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.moduleOptions,e=>((0,r.openBlock)(),(0,r.createBlock)(p,{key:e.id,value:e.id},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange","onFocus","loading"])]),_:1}),(0,r.createVNode)(m,{label:"选择页面"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(h,{modelValue:f.selectedPageId,"onUpdate:modelValue":t[1]||(t[1]=e=>f.selectedPageId=e),onChange:d.handlePageChange,onFocus:d.handlePageFocus,placeholder:"请选择页面",disabled:!f.selectedModuleId,loading:f.pageLoading,"allow-clear":"","allow-search":"",size:"small"},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.pageOptions,e=>((0,r.openBlock)(),(0,r.createBlock)(p,{key:e.id,value:e.id},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange","onFocus","disabled","loading"])]),_:1}),f.selectedModuleName&&f.selectedPageName?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[t[2]||(t[2]=(0,r.createElementVNode)("div",{class:"preview-label"},"当前选择:",-1)),(0,r.createElementVNode)("div",s,(0,r.toDisplayString)(f.selectedModuleName)+" - "+(0,r.toDisplayString)(f.selectedPageName),1)])):(0,r.createCommentVNode)("",!0),f.showConfigForm?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createVNode)(g,null,{default:(0,r.withCtx)(()=>[...t[3]||(t[3]=[(0,r.createTextVNode)("页面配置",-1)])]),_:1}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(f.configFields,(e,n)=>((0,r.openBlock)(),(0,r.createBlock)(m,{key:n,label:e.label,field:n},{default:(0,r.withCtx)(()=>["text"===e.type?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,"model-value":d.getNestedValue(n,e),placeholder:e.placeholder||"","onUpdate:modelValue":t=>d.setNestedValue(n,e,t)},null,8,["model-value","placeholder","onUpdate:modelValue"])):"number"===e.type?((0,r.openBlock)(),(0,r.createBlock)(v,{key:1,"model-value":d.getNestedValue(n,e),placeholder:e.placeholder||"",style:{width:"100%"},"onUpdate:modelValue":t=>d.setNestedValue(n,e,t)},null,8,["model-value","placeholder","onUpdate:modelValue"])):"textarea"===e.type?((0,r.openBlock)(),(0,r.createBlock)(b,{key:2,"model-value":d.getNestedValue(n,e),placeholder:e.placeholder||"","auto-size":{minRows:3,maxRows:6},"onUpdate:modelValue":t=>d.setNestedValue(n,e,t)},null,8,["model-value","placeholder","onUpdate:modelValue"])):"select"===e.type?((0,r.openBlock)(),(0,r.createBlock)(h,{key:3,"model-value":d.getNestedValue(n,e),placeholder:"请选择","onUpdate:modelValue":t=>d.setNestedValue(n,e,t)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,e=>((0,r.openBlock)(),(0,r.createBlock)(p,{key:e.value,value:e.value,label:e.label},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]),_:2},1032,["value","label"]))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):"array"===e.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.getNestedValue(n,e),(o,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i,class:"array-item"},[(0,r.createElementVNode)("div",c,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.itemFields,(t,a)=>((0,r.openBlock)(),(0,r.createBlock)(y,{key:a,"model-value":o[a],placeholder:t.title||a,"onUpdate:modelValue":t=>d.updateArrayItem(n,e,i,a,t),style:{flex:"1","margin-right":"8px"}},null,8,["model-value","placeholder","onUpdate:modelValue"]))),128))]),(0,r.createVNode)(w,{type:"text",status:"danger",size:"small",onClick:t=>d.removeArrayItem(n,e,i)},{default:(0,r.withCtx)(()=>[...t[4]||(t[4]=[(0,r.createTextVNode)(" 删除 ",-1)])]),_:1},8,["onClick"])]))),128)),(0,r.createVNode)(w,{type:"dashed",long:"",size:"small",onClick:t=>d.addArrayItem(n,e)},{default:(0,r.withCtx)(()=>[...t[5]||(t[5]=[(0,r.createTextVNode)(" + 新增 ",-1)])]),_:1},8,["onClick"])])):(0,r.createCommentVNode)("",!0)]),_:2},1032,["label","field"]))),128))],64)):(0,r.createCommentVNode)("",!0),o.confirmButton&&f.internalShowConfirmButton?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createVNode)(w,{type:"primary",style:{flex:"1"},size:"small",onClick:d.handleConfirm,disabled:!f.selectedModuleId||!f.selectedPageId},{default:(0,r.withCtx)(()=>[...t[6]||(t[6]=[(0,r.createTextVNode)(" 确认选择 ",-1)])]),_:1},8,["onClick","disabled"]),o.showCancelButton?((0,r.openBlock)(),(0,r.createBlock)(w,{key:0,style:{flex:"1"},size:"small",onClick:d.handleCancel},{default:(0,r.withCtx)(()=>[...t[7]||(t[7]=[(0,r.createTextVNode)(" 取消 ",-1)])]),_:1},8,["onClick"])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)]),_:1},8,["layout"])])}o(4423),o(4114),o(8111),o(116),o(7588),o(1701),o(3579),o(9112),o(3110);var d=o(3092),p={name:"ModulePageSelect",props:{modelValue:{type:Object,default:()=>({})},moduleId:{type:String,default:""},pageId:{type:String,default:""},autoEcho:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},layout:{type:String,default:"vertical",validator:e=>["horizontal","vertical","inline"].includes(e)},confirmButton:{type:Boolean,default:!0}},emits:["update:modelValue","change","error","cancel"],data(){return{modules:[],pages:[],selectedModuleId:"",selectedPageId:"",selectedModuleName:"",selectedPageName:"",selectedOrientation:"portrait",currentPage:null,configFields:{},formData:{},showConfigForm:!1,moduleCache:null,pageCache:{},internalShowConfirmButton:!0,lastConfirmedState:null,moduleLoading:!1,pageLoading:!1,echoModuleName:"",echoPageName:"",appliedEchoKey:""}},computed:{pageType(){const e=this.modelValue?.type||"mobile";return"mobile"===e?2:1},moduleOptions(){return this.withFallbackOption(this.modules,this.selectedModuleId,this.echoModuleName,"模块")},pageOptions(){return this.withFallbackOption(this.pages,this.selectedPageId,this.echoPageName,"页面")}},watch:{modelValue:{deep:!0,handler(){this.applyEcho()}},moduleId(){this.applyEcho()},pageId(){this.applyEcho()}},mounted(){this.applyEcho()},methods:{normalizeId(e){return null===e||void 0===e?"":String(e)},resolveEchoSource(){const e=this.modelValue&&"object"===typeof this.modelValue?this.modelValue:{};return{moduleId:this.normalizeId(e.module_id||this.moduleId),pageId:this.normalizeId(e.page_id||this.pageId),moduleName:e.module_name||"",pageName:e.page_name||"",config:e.config}},withFallbackOption(e,t,r,n){const o=Array.isArray(e)?e:[];return t?o.some(e=>this.normalizeId(e.id)===t)?o:[{id:t,name:r||`${n}(${t})`},...o]:o},async applyEcho(){const e=this.resolveEchoSource();if(!e.moduleId&&!e.pageId)return;const t=JSON.stringify([e.moduleId,e.pageId]);if(t!==this.appliedEchoKey&&(this.appliedEchoKey=t,this.selectedModuleId=e.moduleId,this.selectedPageId=e.pageId,this.echoModuleName=e.moduleName,this.echoPageName=e.pageName,this.selectedModuleName=e.moduleName,this.selectedPageName=e.pageName,e.config&&"object"===typeof e.config&&(this.formData={...e.config}),this.internalShowConfirmButton=!1,this.lastConfirmedState=JSON.stringify({moduleId:e.moduleId,pageId:e.pageId,config:e.config}),this.autoEcho)){if(!this.selectedModuleId&&this.selectedPageId){const e=await this.lookupModuleIdByPage(this.selectedPageId);e&&(this.selectedModuleId=e)}await this.loadModules(),this.syncModuleName(),this.selectedModuleId&&await this.loadPages(this.selectedModuleId,this.selectedPageId)}},syncModuleName(){if(!this.selectedModuleId)return;const e=this.modules.find(e=>this.normalizeId(e.id)===this.selectedModuleId);e&&(this.selectedModuleName=e.name,this.echoModuleName=e.name)},async lookupModuleIdByPage(e){try{const t=await this.fetchPagesFromAPI(),r=t.find(t=>this.normalizeId(t.id)===this.normalizeId(e));return r?this.normalizeId(r.moduleId):""}catch(t){return console.error("反查页面所属模块失败:",t),""}},async loadModules(){try{if(this.moduleCache)return void(this.modules=this.moduleCache);this.moduleLoading=!0;const e=await this.fetchModulesFromAPI();this.modules=e,this.moduleCache=e}catch(e){console.error("加载模块列表失败:",e),this.$emit("error",{type:"loadModules",error:e})}finally{this.moduleLoading=!1}},async fetchModulesFromAPI(){try{const e=await(0,d.request)({api:"/api/assembly-center.extend_module.list",params:{page_no:1,page_size:1e3},config:{access_token:!0}}),t=e?.data?.list||[];return Array.isArray(t)?t.map(e=>({id:this.normalizeId(e.id),name:e.name})):(console.error("modules 不是数组:",t),[])}catch(e){throw console.error("获取模块列表失败:",e),e}},async handleModuleFocus(){0===this.modules.length&&(await this.loadModules(),this.syncModuleName())},async handlePageFocus(){this.selectedModuleId&&0===this.pages.length&&await this.loadPages(this.selectedModuleId,this.selectedPageId)},async handleModuleChange(){this.pages=[],this.selectedPageId="",this.selectedPageName="",this.currentPage=null,this.showConfigForm=!1,this.formData={},this.internalShowConfirmButton=!0,this.echoPageName="",this.selectedModuleId?(this.syncModuleName(),await this.loadPages(this.selectedModuleId)):(this.selectedModuleName="",this.echoModuleName=""),!this.confirmButton&&this.selectedModuleId&&this.emitChange()},async loadPages(e,t=""){const r=this.normalizeId(e);try{if(this.pageCache[r])this.pages=this.pageCache[r];else{this.pageLoading=!0;const e=await this.fetchPagesFromAPI(r);this.pages=e,this.pageCache[r]=e}const e=this.normalizeId(t||this.pageId);if(e&&this.pages.length>0){const t=this.pages.find(t=>this.normalizeId(t.id)===e);t&&(this.selectedPageId=e,this.selectedPageName=t.name,this.echoPageName=t.name,this.currentPage=t,this.loadPageConfig(t))}}catch(n){console.error("加载页面列表失败:",n),this.$emit("error",{type:"loadPages",error:n})}finally{this.pageLoading=!1}},async fetchPagesFromAPI(e=""){try{const t=await(0,d.request)({api:"/api/assembly-center.extend_module.page_list",params:{...e?{module_id:e}:{},type:this.pageType,page_no:1,page_size:1e3},config:{access_token:!0}}),r=t?.data?.list||[];return Array.isArray(r)?r.map(e=>({id:this.normalizeId(e.id),moduleId:this.normalizeId(e.module_id),name:e.name,options:e.options||{}})):(console.error("pages 不是数组:",r),[])}catch(t){throw console.error("获取页面列表失败:",t),t}},handlePageChange(){if(this.internalShowConfirmButton=!0,this.selectedPageId){const e=this.pages.find(e=>this.normalizeId(e.id)===this.normalizeId(this.selectedPageId));e&&(this.selectedPageName=e.name,this.echoPageName=e.name,this.currentPage=e,this.loadPageConfig(e))}else this.selectedPageName="",this.echoPageName="",this.currentPage=null,this.showConfigForm=!1,this.formData={};!this.confirmButton&&this.selectedModuleId&&this.selectedPageId&&this.emitChange()},loadPageConfig(e){e.options&&"object"===typeof e.options&&Object.keys(e.options).length>0?(this.configFields=this.parseConfigSchema(e.options),this.showConfigForm=!0,this.modelValue?.config?this.formData=this.deepClone(this.modelValue.config):this.initFormData()):(this.configFields={},this.showConfigForm=!1,this.formData={})},deepClone(e){if(null===e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(e=>this.deepClone(e));const t={};return Object.keys(e).forEach(r=>{t[r]=this.deepClone(e[r])}),t},getNestedValue(e,t){if(t.parentKey&&t.subKey)return this.formData[t.parentKey]?.[t.subKey]??"";const r=this.formData[e];return"array"===t.type?Array.isArray(r)?r:[]:r??""},setNestedValue(e,t,r){t.parentKey&&t.subKey?(this.formData[t.parentKey]||(this.formData[t.parentKey]={}),this.formData[t.parentKey][t.subKey]=r):this.formData[e]=r},addArrayItem(e,t){this.formData[e]||(this.formData[e]=[]);const r={};Object.keys(t.itemFields||{}).forEach(e=>{r[e]=""}),this.formData[e].push(r)},removeArrayItem(e,t,r){this.formData[e]&&Array.isArray(this.formData[e])&&this.formData[e].splice(r,1)},updateArrayItem(e,t,r,n,o){this.formData[e]&&this.formData[e][r]&&(this.formData[e][r][n]=o)},parseConfigSchema(e){const t={};return e.properties&&Object.keys(e.properties).forEach(r=>{const n=e.properties[r];if("array"===n.type){const e={};n.items&&"object"===n.items.type&&n.items.properties&&Object.keys(n.items.properties).forEach(t=>{const r=n.items.properties[t];e[t]={title:r.title||t,type:r.type||"string"}}),t[r]={label:n.title||r,type:"array",placeholder:n.description||"",default:n.default||[],itemFields:e}}else"object"===n.type&&n.properties?Object.keys(n.properties).forEach(e=>{const o=n.properties[e],i=`${r}.${e}`;t[i]={label:o.title||e,type:this.mapSchemaType(o.type),placeholder:o.description||"",options:o.enum?o.enum.map((e,t)=>({label:o.enumDescriptions?.[t]||e,value:e})):null,default:o.default,parentKey:r,subKey:e}}):t[r]={label:n.title||r,type:this.mapSchemaType(n.type),placeholder:n.description||"",options:n.enum?n.enum.map((e,t)=>({label:n.enumDescriptions?.[t]||e,value:e})):null,default:n.default}}),t},mapSchemaType(e){const t={string:"text",number:"number",integer:"number",boolean:"select"};return t[e]||"text"},initFormData(){const e={};Object.keys(this.configFields).forEach(t=>{const r=this.configFields[t],n=void 0!==r.default?r.default:"";r.parentKey&&r.subKey?(e[r.parentKey]||(e[r.parentKey]={}),e[r.parentKey][r.subKey]=n):e[t]=n}),this.formData=e},emitChange(){if(!this.selectedModuleId||!this.selectedPageId)return;const e=this.modules.find(e=>this.normalizeId(e.id)===this.normalizeId(this.selectedModuleId)),t=this.pages.find(e=>this.normalizeId(e.id)===this.normalizeId(this.selectedPageId));if(!e||!t)return void console.error("未找到选中的模块或页面");const r={module_id:e.id,module_name:e.name,page_id:t.id,page_name:t.name,type:2===this.pageType?"mobile":"pc",config:this.showConfigForm?{...this.formData}:void 0};this.lastConfirmedState=JSON.stringify({moduleId:this.selectedModuleId,pageId:this.selectedPageId,config:r.config}),this.appliedEchoKey=JSON.stringify([this.normalizeId(e.id),this.normalizeId(t.id)]),this.internalShowConfirmButton=!1,this.$emit("update:modelValue",r),this.$emit("change",r)},handleConfirm(){this.emitChange()},handleCancel(){if(this.showCancelButton){if(this.lastConfirmedState){const e=JSON.parse(this.lastConfirmedState);this.selectedModuleId=e.moduleId,this.selectedPageId=e.pageId,e.config&&(this.formData=this.deepClone(e.config))}else this.selectedModuleId="",this.selectedPageId="",this.selectedModuleName="",this.selectedPageName="",this.formData={},this.showConfigForm=!1;this.internalShowConfirmButton=!1,this.$emit("cancel")}}}},h=(o(6498),o(8868));const m=(0,h.A)(p,[["render",f],["__scopeId","data-v-70a1b8ff"]]);var g=m;g.install=function(e){e.component(g.name,g)},"undefined"!==typeof window&&window.Vue&&window.Vue.use(g);var y=g,v=y}(),i}()});
2
2
  //# sourceMappingURL=module-page-select.umd.min.js.map