const _0x1b3295=_0x4bfe;(function(_0x2448d6,_0x1295af){const _0x214212=_0x4bfe,_0x117787=_0x2448d6();while(!![]){try{const _0x3cf30b=parseInt(_0x214212(0x8b))/0x1+-parseInt(_0x214212(0x91))/0x2+-parseInt(_0x214212(0xd4))/0x3*(-parseInt(_0x214212(0x94))/0x4)+-parseInt(_0x214212(0xcd))/0x5*(-parseInt(_0x214212(0xd3))/0x6)+-parseInt(_0x214212(0xc9))/0x7*(-parseInt(_0x214212(0xbe))/0x8)+-parseInt(_0x214212(0xa4))/0x9*(-parseInt(_0x214212(0x8a))/0xa)+-parseInt(_0x214212(0xc1))/0xb*(parseInt(_0x214212(0xc4))/0xc);if(_0x3cf30b===_0x1295af)break;else _0x117787['push'](_0x117787['shift']());}catch(_0x4cde97){_0x117787['push'](_0x117787['shift']());}}}(_0x33cf,0x6b89c));function _0x33cf(){const _0x4dc4af=['7lCPfUz','#amily2_drawer_icon','[Amily-重构]\x20宫殿模块已按蓝图竣工。','append','5PyYQvg','
紧急报告:在扩展区域建造Amily2号府邸时发生意外。
','closest','toggleClass','get','#extensions_settings2','2666856FMmYWl','2334117yYXOsa','#amily2_main_drawer','/assets/hanlinyuan.html','.drawer-content','[Amily2号]\x20从缓存加载模型列表\x20(','2609510mZswep','128384PSZTqI','#expiry_info','\x0a\x20\x20\x20\x20\x20\x20紧急报告:无法加载Amily2号府邸内饰。
','authorized','.openIcon','function','openIcon','openDrawer\x20closedDrawer','.inline-drawer-content','data','/script.js','closedIcon\x20openIcon','resizing','find','remove','/assets/Amily2-AdditionalFeatures.html','setItem','after','closedIcon','#extensions_settings2\x20#amily2_chat_optimiser','getItem','#amily2_main_drawer\x20.drawer-toggle','6058312MSBEyd','error','closedDrawer\x20openDrawer','198RKykZu','[Amily-建设部]\x20紧急报告:加载模块化蓝图时发生意外:','info','1022004HvxVZE','removeClass','initialized','parse','length'];_0x33cf=function(){return _0x4dc4af;};return _0x33cf();}import{getSlideToggleOptions}from'/script.js';import{slideToggle}from'/lib.js';function _0x4bfe(_0x5bf111,_0x207b50){const _0x33cfc7=_0x33cf();return _0x4bfe=function(_0x4bfe62,_0x53ca73){_0x4bfe62=_0x4bfe62-0x86;let _0x52f9c2=_0x33cfc7[_0x4bfe62];return _0x52f9c2;},_0x4bfe(_0x5bf111,_0x207b50);}import{extension_settings,renderExtensionTemplateAsync}from'/scripts/extensions.js';import{extensionName,defaultSettings}from'../utils/settings.js';import{checkAuthorization,displayExpiryInfo,pluginAuthStatus}from'../utils/auth.js';import{updateUI,setAvailableModels,populateModelDropdown,applyUpdateIndicator}from'./state.js';import{bindModalEvents}from'./bindings.js';import{fetchSupportedModels}from'../core/api.js';import{bindHistoriographyEvents}from'./historiography-bindings.js';import{bindHanlinyuanEvents}from'./hanlinyuan-bindings.js';import{showContentModal}from'./page-window.js';const extensionFolderPath=_0x1b3295(0xa9)+extensionName;async function loadSettings(){const _0x4fd061=_0x1b3295;extension_settings[extensionName]={...defaultSettings,...extension_settings[extensionName]||{}},checkAuthorization();const _0x13b98d=localStorage[_0x4fd061(0xbc)]('plugin_auto_login')===_0x4fd061(0x93);console[_0x4fd061(0x9b)]('[Amily2-调试]\x20授权状态:\x20'+pluginAuthStatus[_0x4fd061(0xab)]+_0x4fd061(0xa8)+_0x13b98d);_0x13b98d&&pluginAuthStatus[_0x4fd061(0xab)]&&console[_0x4fd061(0x9b)](_0x4fd061(0x9c));$(_0x4fd061(0x8c))[_0x4fd061(0x99)](displayExpiryInfo()),updateUI();if(pluginAuthStatus['authorized']&&extension_settings[extensionName]['apiUrl']){const _0x134001=localStorage['getItem'](_0x4fd061(0xa6));if(_0x134001){const _0x20f9ed=JSON[_0x4fd061(0xc7)](_0x134001);console['log'](_0x4fd061(0x89)+_0x20f9ed['length']+'个)'),setAvailableModels(_0x20f9ed),populateModelDropdown();}else toastr[_0x4fd061(0xc3)]('正在自动加载模型列表...','Amily2号'),setTimeout(async()=>{const _0x297d8a=_0x4fd061,_0x55c777=await fetchSupportedModels();_0x55c777[_0x297d8a(0xc8)]>0x0&&(setAvailableModels(_0x55c777),localStorage[_0x297d8a(0xb8)](_0x297d8a(0xa6),JSON['stringify'](_0x55c777)),populateModelDropdown());},0x1f4);}}async function initializePanel(_0x161695,_0x4eba2c){const _0x465614=_0x1b3295;if(_0x161695[_0x465614(0xb1)](_0x465614(0xc6)))return;try{const _0x2b94fd=await $[_0x465614(0xd1)](extensionFolderPath+_0x465614(0x92));_0x161695['html'](_0x2b94fd);const _0x42f162=_0x161695[_0x465614(0xb5)]('#amily2_chat_optimiser');if(_0x42f162[_0x465614(0xc8)]){const _0x1dd14c=await $[_0x465614(0xd1)](extensionFolderPath+_0x465614(0xb7)),_0x337ecb='