dsh-metaphysics 0.62.3 → 0.62.5
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.
- package/CHANGELOG.md +108 -1
- package/README.md +2 -2
- package/client.almanac.js +1 -1
- package/client.bazi.js +127 -121
- package/client.chenggu.js +1 -1
- package/client.convert.js +1 -1
- package/client.daliuren.js +93 -87
- package/client.fengshui.js +1 -1
- package/client.hepan.js +126 -120
- package/client.js +19 -19
- package/client.liuyao.js +71 -65
- package/client.mbti.js +1 -1
- package/client.name.js +70 -70
- package/client.numerology.js +1 -1
- package/client.qimen.js +118 -112
- package/client.star.js +1 -1
- package/client.tarot.js +90 -84
- package/client.trend.js +117 -111
- package/client.xiaoliuren.js +1 -1
- package/client.zeri.js +1 -1
- package/client.ziwei.js +130 -124
- package/docs/assets/dsh-metaphysics-group.jpg +0 -0
- package/engine/bazi.js +71 -2
- package/engine/citations-fuwen.js +3294 -0
- package/engine/citations.js +1186 -205
- package/engine/diff.js +1 -1
- package/engine/geju.js +333 -2
- package/engine/interpret-knowledge.js +46 -10
- package/engine/interpret.js +46 -5
- package/engine/qimen.js +9 -0
- package/engine/qiongtong.js +25 -11
- package/engine/structure.js +218 -0
- package/engine/trace.js +3 -3
- package/package.json +1 -1
- package//345/221/275/347/220/206/346/216/222/347/233/230.html +1955 -251
package/client.star.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
window.__ModuleLoader__.load({id:"dsh-metaphysics",chunk:"client.star.js",factory($t){const R={};return R.fail=(function(){return{fail:(Y,B)=>{const F=new Error(B);return F.code=Y,F}}})(),R.bool=(function(){function L(a,l=!1){return a==null||a===""?l:a===!0||a===1||a==="true"||a==="1"?!0:a===!1||a===0||a==="false"||a==="0"?!1:l}const Y={lateZi:!0,trueSolar:!0,dst:!0,isLeapMonth:!1,leapAsNext:!1,cross:!1,hourUnknown:!1,diff:!1,shadow:!1,trace:!1,rectify:!1,withInterpret:!1},B={lateZi:!0,trueSolar:!0,dst:!0,hourUnknown:!1};function F(a,l){let u=a;const A=(f,w)=>{Object.is(a[f],w)||(u===a&&(u={...a}),u[f]=w)},b=f=>{u===a&&(u={...a}),delete u[f]};for(const[f,w]of Object.entries(l))if(a[f]!==void 0){if(typeof a[f]=="string"&&a[f].trim()===""){b(f);continue}A(f,L(a[f],w))}return u}function D(a){if(!a||typeof a!="object"||Array.isArray(a))return a;let l=a;for(const[u,A]of Object.entries(B)){if(a[u]===void 0)continue;if(typeof a[u]=="string"&&a[u].trim()===""){l===a&&(l={...a}),delete l[u];continue}const b=L(a[u],A);Object.is(a[u],b)||(l===a&&(l={...a}),l[u]=b)}return l}function k(a){if(!a||typeof a!="object")return a;let l=F(a,Y);for(const u of["partner","partner2"]){const A=l[u],b=D(A);b!==A&&(l===a&&(l={...a}),l[u]=b)}return l}const z=["hour","minute","longitude","verifyPast","seed","days","lunarYear","lunarMonth","lunarDay","num1","num2","num3","upper","lower","changing","count","toAge","fortuneYear","period","limit","sittingOffset","sittingDegree","facingOffset","facingDegree","year","month","day"],v=["lines","rectifyHours","answers"],j=["strokeOverrides","surnameStrokes"],g=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/;function m(a){if(typeof a!="string")return a;const l=a.trim();if(!g.test(l))return a;const u=Number(l);return Number.isFinite(u)?u:a}function O(a){let l=!1;const u={};for(const[A,b]of Object.entries(a)){const f=b===null?null:m(b);Object.is(f,b)||(l=!0),u[A]=f}return l?u:a}function $(a){if(!a||typeof a!="object")return a;let l=a;const u=(A,b)=>{Object.is(a[A],b)||(l===a&&(l={...a}),l[A]=b)};for(const A of z)if(a[A]!==void 0){if(typeof a[A]=="string"&&a[A].trim()===""){l===a&&(l={...a}),delete l[A];continue}u(A,m(a[A]))}for(const A of v){const b=a[A];if(!Array.isArray(b))continue;let f=!1;const w=b.map(o=>{if(o===null)return null;if(typeof o=="string"&&o.trim()===""){f=!0;return}const h=m(o);return Object.is(h,o)||(f=!0),h});f&&u(A,w)}for(const A of j){const b=a[A];!b||typeof b!="object"||Array.isArray(b)||u(A,O(b))}return l}return{bool:L,FLAG_DEFAULTS:Y,canonicalFlags:k,NUMERIC_KEYS:z,NUMERIC_ARRAY_KEYS:v,NUMERIC_MAP_KEYS:j,canonicalNumbers:$}})(),R.diff=(function(){const{bool:L}=R.bool||{},Y=new Set(["summary","interpret","castAt","asOf","precision","disclaimer","note","trueSolarText","civilText","offsetMinutes","input","jd","juMethod","juMethodNote","lateZiHourMode","leapPolicy","schools","bodyMasterSchool","bodyMasterNote","handle","handleError","revision","brief","briefError"]),B=o=>o!==null&&typeof o=="object";function F(o,h,d="",p=[]){if(o===h)return p;if(!B(o)||!B(h))return p.push({path:d||"(root)",from:o,to:h}),p;const x=new Set([...Object.keys(o),...Object.keys(h)]);for(const M of x){if(Y.has(M))continue;const E=d?`${d}.${M}`:M,G=o[M],q=h[M];B(G)&&B(q)?F(G,q,E,p):JSON.stringify(G)!==JSON.stringify(q)&&p.push({path:E,from:G,to:q})}return p}const D=[[/^pillars\.year\.ganzhi$/,"年柱"],[/^pillars\.month\.ganzhi$/,"月柱"],[/^pillars\.day\.ganzhi$/,"日柱"],[/^pillars\.hour\.ganzhi$/,"时柱"],[/^pillars\.\w+\.hidden/,"藏干"],[/^pillars\.\w+\.stemTenGod$/,"十神"],[/^pillars\.\w+\.kongwang/,"空亡"],[/^pillars\.\w+\.dishi$|^pillars\.\w+\.zizuo$/,"十二长生"],[/^pillars\.\w+\.nayin$/,"纳音"],[/^dayMaster\./,"日主"],[/^palaces\.(taiyuan|minggong|shengong)\./,"命身宫"],[/^palaces\.\d+\.(palace|branch|stem|ganzhi)$/,"宫位"],[/^palaces\.\d+\.stars\.\d+\.(name|brightness|type)$/,"星曜"],[/^palaces\.\d+\.shensha\./,"神煞"],[/^palaces\.\d+\.(daxian|xiaoxian)\./,"大限"],[/^palaces\.\d+\.sanfang\./,"三方四正"],[/^palaces\.\d+\./,"宫位"],[/^palaces\./,"命身宫"],[/^soul\./,"命宫"],[/^body\./,"身宫"],[/^doujun\./,"流年斗君"],[/^siZhu\.year$/,"年柱"],[/^siZhu\.month$/,"月柱"],[/^siZhu\.day$/,"日柱"],[/^siZhu\.time$/,"时柱"],[/^ju$|^juNumber$/,"局数"],[/^yuan$/,"三元"],[/^dun$/,"阴阳遁"],[/^daxian(List)?\./,"大限"],[/^fly(Chains|Composite)?\./,"飞星"],[/^pattern/,"格局"],[/^schools\./,"流派回显"],[/^dayun\.jiao\./,"起运"],[/^dayun\.toNextJieDays$/,"起运时间"],[/^dayun\.list\.(\d+)\.ganzhi$/,"大运干支"],[/^dayun\.startAge
|
|
1
|
+
window.__ModuleLoader__.load({id:"dsh-metaphysics",chunk:"client.star.js",factory($t){const R={};return R.fail=(function(){return{fail:(Y,B)=>{const F=new Error(B);return F.code=Y,F}}})(),R.bool=(function(){function L(a,l=!1){return a==null||a===""?l:a===!0||a===1||a==="true"||a==="1"?!0:a===!1||a===0||a==="false"||a==="0"?!1:l}const Y={lateZi:!0,trueSolar:!0,dst:!0,isLeapMonth:!1,leapAsNext:!1,cross:!1,hourUnknown:!1,diff:!1,shadow:!1,trace:!1,rectify:!1,withInterpret:!1},B={lateZi:!0,trueSolar:!0,dst:!0,hourUnknown:!1};function F(a,l){let u=a;const A=(f,w)=>{Object.is(a[f],w)||(u===a&&(u={...a}),u[f]=w)},b=f=>{u===a&&(u={...a}),delete u[f]};for(const[f,w]of Object.entries(l))if(a[f]!==void 0){if(typeof a[f]=="string"&&a[f].trim()===""){b(f);continue}A(f,L(a[f],w))}return u}function D(a){if(!a||typeof a!="object"||Array.isArray(a))return a;let l=a;for(const[u,A]of Object.entries(B)){if(a[u]===void 0)continue;if(typeof a[u]=="string"&&a[u].trim()===""){l===a&&(l={...a}),delete l[u];continue}const b=L(a[u],A);Object.is(a[u],b)||(l===a&&(l={...a}),l[u]=b)}return l}function k(a){if(!a||typeof a!="object")return a;let l=F(a,Y);for(const u of["partner","partner2"]){const A=l[u],b=D(A);b!==A&&(l===a&&(l={...a}),l[u]=b)}return l}const z=["hour","minute","longitude","verifyPast","seed","days","lunarYear","lunarMonth","lunarDay","num1","num2","num3","upper","lower","changing","count","toAge","fortuneYear","period","limit","sittingOffset","sittingDegree","facingOffset","facingDegree","year","month","day"],v=["lines","rectifyHours","answers"],j=["strokeOverrides","surnameStrokes"],g=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/;function m(a){if(typeof a!="string")return a;const l=a.trim();if(!g.test(l))return a;const u=Number(l);return Number.isFinite(u)?u:a}function O(a){let l=!1;const u={};for(const[A,b]of Object.entries(a)){const f=b===null?null:m(b);Object.is(f,b)||(l=!0),u[A]=f}return l?u:a}function $(a){if(!a||typeof a!="object")return a;let l=a;const u=(A,b)=>{Object.is(a[A],b)||(l===a&&(l={...a}),l[A]=b)};for(const A of z)if(a[A]!==void 0){if(typeof a[A]=="string"&&a[A].trim()===""){l===a&&(l={...a}),delete l[A];continue}u(A,m(a[A]))}for(const A of v){const b=a[A];if(!Array.isArray(b))continue;let f=!1;const w=b.map(o=>{if(o===null)return null;if(typeof o=="string"&&o.trim()===""){f=!0;return}const h=m(o);return Object.is(h,o)||(f=!0),h});f&&u(A,w)}for(const A of j){const b=a[A];!b||typeof b!="object"||Array.isArray(b)||u(A,O(b))}return l}return{bool:L,FLAG_DEFAULTS:Y,canonicalFlags:k,NUMERIC_KEYS:z,NUMERIC_ARRAY_KEYS:v,NUMERIC_MAP_KEYS:j,canonicalNumbers:$}})(),R.diff=(function(){const{bool:L}=R.bool||{},Y=new Set(["summary","interpret","castAt","asOf","precision","disclaimer","note","trueSolarText","civilText","offsetMinutes","input","jd","juMethod","juMethodNote","lateZiHourMode","leapPolicy","schools","bodyMasterSchool","bodyMasterNote","handle","handleError","revision","brief","briefError"]),B=o=>o!==null&&typeof o=="object";function F(o,h,d="",p=[]){if(o===h)return p;if(!B(o)||!B(h))return p.push({path:d||"(root)",from:o,to:h}),p;const x=new Set([...Object.keys(o),...Object.keys(h)]);for(const M of x){if(Y.has(M))continue;const E=d?`${d}.${M}`:M,G=o[M],q=h[M];B(G)&&B(q)?F(G,q,E,p):JSON.stringify(G)!==JSON.stringify(q)&&p.push({path:E,from:G,to:q})}return p}const D=[[/^pillars\.year\.ganzhi$/,"年柱"],[/^pillars\.month\.ganzhi$/,"月柱"],[/^pillars\.day\.ganzhi$/,"日柱"],[/^pillars\.hour\.ganzhi$/,"时柱"],[/^pillars\.\w+\.hidden/,"藏干"],[/^pillars\.\w+\.stemTenGod$/,"十神"],[/^pillars\.\w+\.kongwang/,"空亡"],[/^pillars\.\w+\.dishi$|^pillars\.\w+\.zizuo$/,"十二长生"],[/^pillars\.\w+\.nayin$/,"纳音"],[/^dayMaster\./,"日主"],[/^palaces\.(taiyuan|minggong|shengong)\./,"命身宫"],[/^palaces\.\d+\.(palace|branch|stem|ganzhi)$/,"宫位"],[/^palaces\.\d+\.stars\.\d+\.(name|brightness|type)$/,"星曜"],[/^palaces\.\d+\.shensha\./,"神煞"],[/^palaces\.\d+\.(daxian|xiaoxian)\./,"大限"],[/^palaces\.\d+\.sanfang\./,"三方四正"],[/^palaces\.\d+\./,"宫位"],[/^palaces\./,"命身宫"],[/^soul\./,"命宫"],[/^body\./,"身宫"],[/^doujun\./,"流年斗君"],[/^siZhu\.year$/,"年柱"],[/^siZhu\.month$/,"月柱"],[/^siZhu\.day$/,"日柱"],[/^siZhu\.time$/,"时柱"],[/^ju$|^juNumber$/,"局数"],[/^yuan$/,"三元"],[/^dun$/,"阴阳遁"],[/^daxian(List)?\./,"大限"],[/^fly(Chains|Composite)?\./,"飞星"],[/^pattern/,"格局"],[/^schools\./,"流派回显"],[/^dayun\.jiao\./,"起运"],[/^dayun\.toNextJieDays$/,"起运时间"],[/^dayun\.list\.(\d+)\.ganzhi$/,"大运干支"],[/^dayun\.startAge(Exact)?\./,"起运时间"],[/^dayun\./,"大运评分"],[/^liunian\./,"流年"],[/^jieqi\./,"节气边界"],[/^solarTime\./,"真太阳时"],[/^dayGanZhi$/,"日辰"],[/^hourZhi$/,"时支"],[/^yueJiang\./,"月将"],[/^xunKong$/,"旬空"],[/^lines\.(\d+)\./,"爻"],[/^shensha\./,"神煞"],[/^frame\./,"格局用神"],[/^strength\./,"旺衰"],[/^wuxing\./,"五行计数"],[/^relations\./,"干支关系"],[/^input\./,"输入回显"]],k=[[/^pillars\./,"四柱"],[/^shensha\./,"神煞"],[/^dayun\./,"大运"],[/^liunian\./,"流年"],[/^frame\./,"格局用神"],[/^strength\./,"旺衰"],[/^wuxing\./,"五行计数"],[/^dayMaster\./,"日主"],[/^relations\./,"干支关系"],[/^palaces\.(taiyuan|minggong|shengong)\./,"命身宫"],[/^palaces\.\d+\./,"宫位"],[/^palaces\./,"命身宫"],[/^soul\.|^body\.|^doujun\./,"命身宫"],[/^siZhu\./,"四柱"],[/^ju$|^juNumber$|^yuan$|^dun$/,"局数"],[/^daxian/,"大限"],[/^fly/,"飞星"],[/^pattern/,"格局"],[/^jieqi\./,"节气"],[/^solarTime\./,"真太阳时"],[/^input\./,"输入回显"],[/^lines\./,"爻"]],z=[[/^pillars\.(year|month|day|hour)\.ganzhi$/,"柱"],[/^palaces\.(minggong|shengong)\.ganzhi$/,"命身宫"],[/^soul\.ganzhi$/,"命宫"],[/^body\.branch$/,"身宫"],[/^siZhu\.(year|month|day|time)$/,"柱"],[/^dayun\.jiao\.at$/,"起运"],[/^dayGanZhi$/,"日辰"],[/^hourZhi$/,"时支"],[/^ju$|^juNumber$|^juName$/,"局数"],[/^dun$/,"阴阳遁"],[/^lines\.\d+\.(ganzhi|yinYang|name)$/,"爻"],[/^yueJiang\.(name|zhi)$/,"月将"]];function v(o){for(const[h,d]of D)if(h.test(o))return d;return j(o)||o}function j(o){for(const[h,d]of k)if(h.test(o))return d;return""}function g(o){for(const[h,d]of z)if(h.test(o))return d;return""}function m(o){return[...o].sort((h,d)=>h.path.localeCompare(d.path,"zh-Hans-CN",{numeric:!0}))}function O(o){if(!o.length)return"本盘不受此口径影响:所有字段一致。";const h=o.filter(M=>g(M.path)),d=[...new Set(o.map(M=>j(M.path)).filter(Boolean))],p=h.length?`根因 ${h.length} 处:`+h.slice(0,4).map(M=>`${v(M.path)} ${$(M.from)}→${$(M.to)}`).join("、")+(h.length>4?" 等":""):"无单一根因",x=d.length?`;连带影响 ${d.slice(0,6).join("、")}${d.length>6?" 等":""} ${d.length} 类,共 ${o.length} 处`:`;共 ${o.length} 处`;return p+x+"。"}const $=o=>o===void 0?"—":o===null?"null":typeof o=="string"?o:Array.isArray(o)?o.join("")||"[]":typeof o=="object"?JSON.stringify(o):String(o);function a(o,{title:h="",limit:d=12}={}){const p=[];if(h&&p.push(`【${h}】`),p.push(O(o)),!o.length)return p.join(`
|
|
2
2
|
`);const x=m(o.filter(E=>g(E.path))),M=m(o.filter(E=>!g(E.path)));if(x.length){p.push(""),p.push(" 根因(口径直接改动):");for(const E of x)p.push(` ${v(E.path).padEnd(6)} ${$(E.from)} → ${$(E.to)}`)}if(M.length){p.push(""),p.push(` 连带变化(${M.length} 处,展示前 ${Math.min(d,M.length)} 处):`);for(const E of M.slice(0,d))p.push(` ${v(E.path).padEnd(6)} ${$(E.from)} → ${$(E.to)}`);if(M.length>d){const E={};for(const G of M.slice(d)){const q=j(G.path)||"其他";E[q]=(E[q]||0)+1}p.push(" 其余:"+Object.entries(E).map(([G,q])=>`${G} ${q} 处`).join("、"))}}return p.join(`
|
|
3
3
|
`)}const l=(o,h,d,p,x,M)=>({key:o,title:h,short:d,read:E=>{const G=E[o]!==void 0?E[o]:E.schools&&E.schools[o];return M[G]?G:p},alt:E=>E===x?p:x,label:E=>M[E]||E}),u={bazi:[{key:"lateZi",title:"晚子时:23:00 后是否换日",short:"晚子时",read:o=>L(o.lateZi,!0),alt:o=>!o,label:o=>o?"换日":"不换日"},{key:"trueSolar",title:"真太阳时:是否按出生地经度修正",short:"真太阳时",read:o=>L(o.trueSolar,!0),alt:o=>!o,label:o=>o?"修正":"不修正"}],ziwei:[{key:"leapMonth",title:"闰月归月:按日切分 / 整月归次月",short:"闰月归月",read:o=>o.leapMonth==="next"||o.leapMonth==="prev"?o.leapMonth:"split",alt:o=>o==="split"?"next":"split",label:o=>({split:"按日切分",next:"整月归次月",prev:"整月归本月"})[o]||o},{key:"trueSolar",title:"真太阳时:是否按出生地经度修正",short:"真太阳时",read:o=>L(o.trueSolar,!0),alt:o=>!o,label:o=>o?"修正":"不修正"},l("brightnessSchool","亮度表:默认 / QS 七档","亮度表","default","QS",{default:"默认",QS:"QS(七档)",XD1:"XD1(七档)",ZZ:"ZZ(五档)",XD2:"XD2(五档)"}),l("gengYearSihua","庚干四化:阳武阴同 / 同科阴忌","庚干四化","GYWYT","GYWTY",{GYWYT:"阳武阴同",GYWTY:"同科阴忌",GYWFT:"府科同忌",GYWFX:"府科相忌",GYWTX:"同科相忌"}),l("tianmaSchool","天马:按年支 / 按生月","天马","year-branch","month-branch",{"year-branch":"年支","month-branch":"生月"}),l("tiankongSchool","天空:不排 / 年支顺行","天空","off","normal",{off:"不排",normal:"年支顺行","shun-jia-shi":"加生时"}),l("jiekongSchool","截空旬空:不排 / 正副双星","截空旬空","off","double",{off:"不排",single:"单星",double:"正副双星",zhanyan:"占验派"}),l("kuiyueSchool","魁钺:qs1 / qs2","魁钺","qs1","qs2",{qs1:"qs1",qs2:"qs2","zhong-yiming":"中一鸣"}),l("tianshiTianshang","天伤天使:常规 / 中州互换","天伤天使","normal","zhongzhou",{normal:"常规",zhongzhou:"中州(阴男阳女互换)"}),l("changshengSchool","长生:阴阳顺逆 / 火土起寅","长生","yin-yang-shun-ni","huo-tu",{"yin-yang-shun-ni":"阴阳顺逆","shui-tu":"水二","huo-tu":"火土(土五局起寅)"}),l("lateZishi","晚子时:归当日 / 归次日","晚子时","current-day","next-day",{"current-day":"归当日","next-day":"归次日","all-current":"全归当日","day-cur-time-next":"日归当日·时归次日"}),l("shenzhuSchool","身主:子午皆火星 / 子铃午火","身主","common","verse",{common:"子午皆火星",verse:"子铃午火(安身主诀逐字)"}),l("zuoyaoSchool","杂曜:49 颗简盘 / 61 颗全表","杂曜全表","minimal","full",{minimal:"49 颗(简盘)",full:"61 颗(加十二颗杂曜)"})],qimen:[{key:"juMethod",title:"取局流派:拆补 / 超神接气 / 置闰",short:"取局流派",read:o=>["chaibu","chaoshen","zhirun"].includes(o.juMethod)?o.juMethod:"chaibu",alt:o=>o==="chaibu"?"zhirun":"chaibu",label:o=>({chaibu:"拆补法",chaoshen:"超神接气",zhirun:"置闰法"})[o]||o},{key:"lateZiHourMode",title:"晚子时:23:00 后归当日 / 次日",short:"晚子时归日",read:o=>o.lateZiHourMode==="next-day"?"next-day":"same-day",alt:o=>o==="next-day"?"same-day":"next-day",label:o=>o==="next-day"?"归次日":"归当日"}]},A={bazi:[{path:"pillars.day.ganzhi",label:"日柱"},{path:"pillars.hour.ganzhi",label:"时柱"},{path:"strength.level",label:"旺衰"},{path:"frame.primaryName",label:"格局"},{path:"frame.yongshen.favor",label:"喜用"},{path:"dayun.jiao.at",label:"起运"}],ziwei:[{path:"soul.ganzhi",label:"命宫"},{path:"body.branch",label:"身宫支"},{path:"bureau.name",label:"五行局"},{path:"bodyMaster",label:"身主"},{path:"daxianList.0.ages",label:"起大限"}],qimen:[{path:"siZhu.day",label:"日柱"},{path:"ju",label:"局数"},{path:"zhiFu.star",label:"值符"},{path:"zhiShi.gate",label:"值使"}]};function b(o,h){let d=o;for(const p of String(h).split(".")){if(d==null)return;d=d[p]}return d}function f(o){return o==null?"—":Array.isArray(o)?o.join("、"):typeof o=="object"?"—":String(o)}function w(o,h,d){return(A[o]||[]).map(x=>{const M=f(b(h,x.path)),E=f(b(d,x.path));return{key:x.path,label:x.label,current:M,alt:E,changed:M!==E}})}return{diffObjects:F,labelOf:v,categoryOf:j,rootOf:g,sortDiffs:m,summarize:O,formatValue:$,renderDiff:a,CALIBER_SWITCHES:u,CALIBER_VIEWS:A,viewCell:f,viewRows:w}})(),R.fingerprint=(function(){const L="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function Y(k){return JSON.stringify(B(k))}function B(k){if(k===null)return null;const z=typeof k;if(z==="string")return typeof k.normalize=="function"?k.normalize("NFC"):k;if(z==="number")return Number.isFinite(k)?Object.is(k,-0)?0:k:null;if(z==="boolean")return k;if(Array.isArray(k))return k.map(B);if(z==="object"){const v=Object.create(null);for(const j of Object.keys(k).sort()){const g=k[j];g===void 0||typeof g=="function"||typeof g=="symbol"||(v[j]=B(g))}return v}return null}function F(k){const z=String(k);let v=2166136261,j=2654435769;for(let O=0;O<z.length;O+=1){const $=z.charCodeAt(O);for(const a of[$&255,$>>>8])v=Math.imul(v^a,16777619),j=Math.imul(j^a,2246822507)}let g=(v>>>0)*8+(j>>>29),m="";for(let O=0;O<7;O+=1)m=L[g%32]+m,g=Math.floor(g/32);return m}function D(k={}){const z=String(k.system||""),v=String(k.version||"dev"),j=k.seed===void 0||k.seed===null||k.seed===""?null:Number(k.seed),g=k.asOf?String(k.asOf):null,m=k.params&&typeof k.params=="object"?k.params:{},O=Y({system:z,params:m,seed:j,asOf:g}),$=Y({base:O,version:v});return{id:`LY-${F($)}`,baseId:`LY-${F(O)}`,version:v,system:z,payload:O}}return{canonicalJson:Y,shortHash:F,fingerprintOf:D}})(),R.validate=(function(){const{fail:L}=R.fail||{},Y=1600,B=2400;function F(m){return m%4===0&&m%100!==0||m%400===0}function D(m,O){return O===2?F(m)?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][O-1]||0}const k=m=>typeof m=="string"?`「${m}」`:String(m),z="引擎只接受解析好的公历字段 { year, month, day, hour?, minute? };字符串请先交给宿主层的 parseDateTime 解析";function v(m,O=""){const $=O?`${O} 的`:"";if(!m||typeof m!="object"||Array.isArray(m)){const A=m===null?"null":Array.isArray(m)?"数组":typeof m;throw L("E_INPUT",`${$}入参必须是对象(收到 ${A});${z}`)}const a=m.hour===void 0?0:m.hour,l=m.minute===void 0?0:m.minute;for(const[A,b]of[["year",m.year],["month",m.month],["day",m.day],["hour",a],["minute",l]])if(!Number.isInteger(b))throw L("E_INPUT",`${$}${A} 必须是整数(收到 ${k(b)});${z}`);if(m.year<Y||m.year>B)throw L("E_INPUT",`${$}year 超出支持范围 ${Y}–${B}(收到 ${m.year});更早的年份时区与历法口径不可靠`);if(m.month<1||m.month>12)throw L("E_INPUT",`${$}month 超出范围 1–12(收到 ${m.month})`);const u=D(m.year,m.month);if(m.day<1||m.day>u)throw L("E_INPUT",`${$}日期不存在:${m.year}-${m.month}-${m.day}(${m.year} 年 ${m.month} 月只有 ${u} 天)`);if(a<0||a>23)throw L("E_INPUT",`${$}hour 超出范围 0–23(收到 ${a})`);if(l<0||l>59)throw L("E_INPUT",`${$}minute 超出范围 0–59(收到 ${l})`);return m}function j(m,O,$){if(!m||typeof m!="object"||Array.isArray(m)){const a=m===null?"null":m===void 0?"undefined":Array.isArray(m)?"数组":typeof m;throw L("E_INPUT",`${O} 必须是对象(收到 ${a});${$}`)}return m}function g(m,O=""){const $=O?`${O}:`:"";if(m.year<Y||m.year>B)throw L("E_RANGE",`${$}晚子时按次日归后落到 ${m.year}-${String(m.month).padStart(2,"0")}-${String(m.day).padStart(2,"0")},超出可计算范围 ${Y}–${B};请把时刻挪到 23 点前,或换一天起课`);return m}return{MIN_YEAR:Y,MAX_YEAR:B,isLeapYear:F,daysInMonth:D,assertCivil:v,assertObject:j,assertShifted:g}})(),R.datetime=(function(){const{fail:L}=R.fail||{},{MIN_YEAR:Y,MAX_YEAR:B}=R.validate||{};function F(z,v){return v===2?z%4===0&&z%100!==0||z%400===0?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][v-1]}function D(z,v=""){const j=String(z??"").trim(),g=/^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(j);if(!g)return null;const m=Number(g[1]),O=Number(g[2]),$=Number(g[3]);if(O<1||O>12||$<1||$>F(m,O))return null;if(m<Y||m>B){const a=v?`${v} `:"";throw L("E_RANGE",`${a}「${g[0]}」的年份超出可计算范围(${Y}–${B},收到 ${m} 年);农历与节气表不覆盖之外的年份`)}return{year:m,month:O,day:$}}function k(z){if(typeof z!="string"||!z.trim())throw L("E_INPUT","缺少 datetime(公历日期时间),例如 1990-05-12T14:30");const v=z.trim().match(/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[T\s](\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?$/);if(!v)throw L("E_INPUT",`无法解析 datetime:「${z}」,请用 1990-05-12T14:30 这种格式`);if(v[6]!==void 0&&Number(v[6])>59)throw L("E_INPUT",`秒超出范围:${v[6]}`);const j={year:Number(v[1]),month:Number(v[2]),day:Number(v[3]),hour:Number(v[4]??0),minute:Number(v[5]??0)};if(j.month<1||j.month>12)throw L("E_INPUT",`月份超出范围:${j.month}`);const g=F(j.year,j.month);if(j.day<1||j.day>g)throw L("E_INPUT",`日期不存在:${j.year}-${j.month}-${j.day}(${j.year} 年 ${j.month} 月只有 ${g} 天)`);if(j.hour>23||j.minute>59)throw L("E_INPUT",`时间超出范围:${j.hour}:${j.minute}`);if(j.year<Y||j.year>B)throw L("E_RANGE",`年份 ${j.year} 超出可计算范围(${Y}–${B})`);return(j.year<1900||j.year>2100)&&(j.precision={level:"approx",note:`ΔT 模型仅覆盖 1900–2100,${j.year} 年按端点值外推,节气与朔望时刻可能有分钟级偏差,月柱在交节前后需复核`}),j}return{daysInMonth:F,parseYmd:D,parseDateTime:k}})(),R.lru=(function(){function L({max:Y=64,ttlMs:B=0,name:F="lru",now:D=()=>Date.now()}={}){const k=new Map,z={name:F,hits:0,misses:0,evictions:0,expirations:0},v=j=>B>0&&D()-j.at>B;return{name:F,max:Y,ttlMs:B,get(j){const g=k.get(j);if(!g||v(g)){g&&(k.delete(j),z.expirations+=1),z.misses+=1;return}return k.delete(j),k.set(j,g),z.hits+=1,g.value},set(j,g){for(k.has(j)&&k.delete(j),k.set(j,{value:g,at:D()});k.size>Y;)k.delete(k.keys().next().value),z.evictions+=1;return g},has(j){const g=k.get(j);return g?v(g)?(k.delete(j),z.expirations+=1,!1):!0:!1},delete(j){return k.delete(j)},clear(){k.clear()},get size(){return k.size},stats(){const j=z.hits+z.misses;return{name:F,size:k.size,max:Y,hits:z.hits,misses:z.misses,evictions:z.evictions,expirations:z.expirations,hitRate:j?z.hits/j:0}}}}return{createLru:L}})(),R.nayin=(function(){const L=["海中金","炉中火","大林木","路旁土","剑锋金","山头火","涧下水","城头土","白蜡金","杨柳木","泉中水","屋上土","霹雳火","松柏木","长流水","沙中金","山下火","平地木","壁上土","金箔金","覆灯火","天河水","大驿土","钗钏金","桑柘木","大溪水","沙中土","天上火","石榴木","大海水"];function Y(B){const F=(Number(B)%60+60)%60,D=L[Math.floor(F/2)];return{name:D,element:D[2]}}return{NAYIN_NAMES:L,nayinOf:Y}})(),R.sanhe=(function(){const L=[{branches:["申","子","辰"],element:"水"},{branches:["亥","卯","未"],element:"木"},{branches:["寅","午","戌"],element:"火"},{branches:["巳","酉","丑"],element:"金"}],Y=Object.fromEntries(L.map(D=>[D.branches.join(""),D.element])),B=Object.fromEntries(L.flatMap(D=>D.branches.map(k=>[k,D.element])));function F(D){return L.find(k=>k.branches.includes(D))||null}return{SANHE_GROUPS:L,SANHE:Y,SANHE_ELEMENT:B,sanheGroupOf:F}})(),R["vsop-earth"]=(function(){const L=[[1.75347045673,0,0],[.03341656453,4.66925680415,6283.0758499914],[.00034894275,4.62610242189,12566.1516999828],[3417572e-11,2.82886579754,3.523118349],[3497056e-11,2.74411783405,5753.3848848968],[3135899e-11,3.62767041756,77713.7714681205],[2676218e-11,4.41808345438,7860.4193924392],[2342691e-11,6.13516214446,3930.2096962196],[1273165e-11,2.03709657878,529.6909650946],[1324294e-11,.74246341673,11506.7697697936],[901854e-11,2.04505446477,26.2983197998],[1199167e-11,1.10962946234,1577.3435424478],[857223e-11,3.50849152283,398.1490034082],[779786e-11,1.17882681962,5223.6939198022],[99025e-10,5.23268072088,5884.9268465832],[753141e-11,2.53339052847,5507.5532386674],[505267e-11,4.58292599973,18849.2275499742],[492392e-11,4.20505711826,775.522611324],[356672e-11,2.91954114478,.0673103028],[284125e-11,1.89869240932,796.2980068164],[242879e-11,.34481445893,5486.777843175],[317087e-11,5.84901948512,11790.6290886588],[271112e-11,.31486255375,10977.078804699],[206217e-11,4.80646631478,2544.3144198834],[205478e-11,1.86953770281,5573.1428014331],[202318e-11,2.45767790232,6069.7767545534],[126225e-11,1.08295459501,20.7753954924],[155516e-11,.83306084617,213.299095438],[115132e-11,.64544911683,.9803210682],[102851e-11,.63599845579,4694.0029547076],[101724e-11,4.2667980198,7.1135470008],[99206e-11,6.20992926918,2146.1654164752],[132212e-11,3.41118292683,2942.4634232916],[97607e-11,.68101342359,155.4203994342],[85128e-11,1.29870764804,6275.9623029906],[74651e-11,1.755089133,5088.6288397668],[101895e-11,.97569280312,15720.8387848784],[84711e-11,3.67080093031,71430.69561812909],[73547e-11,4.67926633877,801.8209311238],[73874e-11,3.50319414955,3154.6870848956],[78757e-11,3.03697458703,12036.4607348882],[79637e-11,1.80791287082,17260.1546546904],[85803e-11,5.9832263126,161000.6857376741],[56963e-11,2.78430458592,6286.5989683404],[61148e-11,1.81839892984,7084.8967811152],[69627e-11,.83297621398,9437.762934887],[56116e-11,4.38694865354,14143.4952424306],[62449e-11,3.97763912806,8827.3902698748],[51145e-11,.28306832879,5856.4776591154],[55577e-11,3.47006059924,6279.5527316424],[41036e-11,5.36817592855,8429.2412664666],[51605e-11,1.33282739866,1748.016413067],[51992e-11,.18914947184,12139.5535091068],[49e-8,.48735014197,1194.4470102246],[392e-9,6.16833020996,10447.3878396044],[3557e-10,1.775968892,6812.766815086],[3677e-10,6.04133863162,10213.285546211],[36596e-11,2.56957481827,1059.3819301892],[33296e-11,.59310278598,17789.845619785],[35954e-11,1.70875808777,2352.8661537718],[40938e-11,2.39850938714,19651.048481098],[30047e-11,2.73975124088,1349.8674096588],[30412e-11,.44294464169,83996.84731811189],[23663e-11,.48473622521,8031.0922630584],[23574e-11,2.06528133162,3340.6124266998],[21089e-11,4.14825468851,951.7184062506],[24738e-11,.21484762138,3.5904286518],[25352e-11,3.16470891653,4690.4798363586],[22823e-11,5.22195230819,4705.7323075436],[21419e-11,1.42563910473,16730.4636895958],[21891e-11,5.55594302779,553.5694028424],[203e-9,.37133792946,283.8593188652]],Y=[[6283.0758499914,0,0],[.00206058863,2.67823455808,6283.0758499914],[4303419e-11,2.63512233481,12566.1516999828],[425264e-11,1.59046982018,3.523118349],[109017e-11,2.96631010675,1577.3435424478],[93479e-11,2.59211109542,18849.2275499742],[119305e-11,5.79555765566,26.2983197998],[72121e-11,1.13840581212,529.6909650946],[67784e-11,1.87453300345,398.1490034082],[6735e-10,4.40932832004,5507.5532386674],[59045e-11,2.88815790631,5223.6939198022],[55976e-11,2.17471740035,155.4203994342],[45411e-11,.39799502896,796.2980068164],[36298e-11,.46875437227,775.522611324],[28962e-11,2.64732254645,7.1135470008],[20844e-11,5.34138275149,.9803210682]],B=[[8721859e-11,1.07253635559,6283.0758499914],[99099e-10,3.14159265359,0],[294833e-11,.43717350256,12566.1516999828],[27338e-11,.05295636147,3.523118349],[16333e-11,5.18820215724,26.2983197998],[15745e-11,3.68504712183,155.4203994342],[9425e-11,.29667114694,18849.2275499742],[8938e-11,2.05706319592,77713.7714681205],[694e-10,.82691541038,775.522611324],[5061e-11,4.6624323168,1577.3435424478]],F=[[289058e-11,5.84173149732,6283.0758499914],[20712e-11,6.0498393902,12566.1516999828],[2962e-11,5.1956057957,155.4203994342],[2527e-11,3.14159265359,0],[1288e-11,4.7219761197,3.523118349]],D=[[7714e-11,4.14117321449,6283.0758499914],[1016e-11,3.27573644241,12566.1516999828]];function k(z){let v=0;for(const[g,m,O]of L)v+=g*Math.cos(m+O*z);let j=1;for(const g of[Y,B,F,D]){j*=z;for(const[m,O,$]of g)v+=m*j*Math.cos(O+$*z)}return v}return{earthL:k}})(),R.calendar=(function(){const{earthL:L}=R["vsop-earth"]||{},{createLru:Y}=R.lru||{},{bool:B}=R.bool||{},F=["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],D=["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],k=["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"];function z(_){return(285+15*_)%360}function v(_,Z,C){const te=Math.floor((14-Z)/12),V=_+4800-te,U=Z+12*te-3;return C+Math.floor((153*U+2)/5)+365*V+Math.floor(V/4)-Math.floor(V/100)+Math.floor(V/400)-32045}function j(_){const Z=_+32044,C=Math.floor((4*Z+3)/146097),te=Z-Math.floor(146097*C/4),V=Math.floor((4*te+3)/1461),U=te-Math.floor(1461*V/4),X=Math.floor((5*U+2)/153);return{year:100*C+V-4800+Math.floor(X/10),month:X+3-12*Math.floor(X/10),day:U-Math.floor((153*X+2)/5)+1}}function g(_,Z){for(let C=0;C<60;C++)if(C%10===_&&C%12===Z)return C;return-1}function m(_){const Z=(_%60+60)%60;return{index:Z,stem:F[Z%10],branch:D[Z%12],name:F[Z%10]+D[Z%12]}}function O(_){return((_+49)%60+60)%60}function $(_){const Z=_-2451545,C=Z/36525,te=Z/365250;let V=L(te)*180/Math.PI+180;V=(V%360+360)%360;const U=(5029.0966*C+1.11113*C*C-6e-6*C*C*C)/3600;V+=U,V-=.09033/3600;const X=(125.04452-1934.136261*C)*Math.PI/180,re=(280.4665+36000.7698*C)*Math.PI/180,ae=(218.3165+481267.8813*C)*Math.PI/180,pe=(-17.2*Math.sin(X)-1.32*Math.sin(2*re)-.23*Math.sin(2*ae)+.21*Math.sin(2*X))/3600;V+=pe;const ie=(357.52911+35999.05029*C-1537e-7*C*C)*Math.PI/180,me=.016708634-42037e-9*C-1267e-10*C*C,Te=1.000001018*(1-me*me)/(1+me*Math.cos(ie+(1.914602-.004817*C)*(Math.PI/180)*Math.sin(ie)));return V-=20.4898/3600/(Te||1),(V%360+360)%360}function a(_){if(_<1900){const X=_;if(X<1600)return 120;if(X<1700){const ae=X-1600;return 120-.9808*ae-.01532*ae*ae+ae*ae*ae/7129}if(X<1800){const ae=X-1700;return 8.83+.1603*ae-.0059285*ae*ae+13336e-8*ae*ae*ae-ae**4/1174e3}if(X<1860){const ae=X-1800;return 13.72-.332447*ae+.0068612*ae*ae+.0041116*ae**3-37436e-8*ae**4+121272e-10*ae**5-1699e-10*ae**6+875e-12*ae**7}const re=X-1860;return 7.62+.5737*re-.251754*re*re+.01680668*re**3-.0004473624*re**4+re**5/233174}const Z=[[1900,-2.8],[1920,21.2],[1940,24.3],[1950,29.1],[1960,33.2],[1970,40.2],[1980,50.5],[1990,56.9],[2e3,63.8],[2010,66.1],[2020,69.4],[2030,72],[2050,80],[2100,110]];if(_<=Z[0][0])return Z[0][1];for(let X=1;X<Z.length;X++)if(_<=Z[X][0]){const[re,ae]=Z[X-1],[pe,ie]=Z[X];return ae+(ie-ae)*(_-re)/(pe-re)}const[C,te]=Z[Z.length-1],V=(C-1820)/100,U=(_-1820)/100;return te+32*(U*U-V*V)}const l=8/24,u=7.7611/24,A=2425612+4/24;function b(_){return _<A?u:l}const f=Y({max:4096,name:"termInstant"}),w=1e-5,o=new Map,h=365.2422;function d(_,Z){const C=z(Z),te=v(_,1,5)-.5+Z*15.2184,V=o.get(Z);let U=V!==void 0?V+h:te;Math.abs(U-te)>20&&(U=te);for(let re=0;re<12;re++){let ae=C-$(U);if(ae=((ae+180)%360+360)%360-180,U+=ae/.98564736,Math.abs(ae)<w)break}o.set(Z,U);const X=U-a(_)/86400;return X+b(X)}function p(_,Z){const C=_*24+Z,te=f.get(C);if(te!==void 0)return te;const V=d(_,Z);return f.set(C,V),V}function x(_){const Z=Math.floor(_+.5),C=_+.5-Z,te=Math.min(1439,Math.floor(Math.round(C*86400)/60)),{year:V,month:U,day:X}=j(Z);return{year:V,month:U,day:X,hour:Math.floor(te/60),minute:te%60}}function M({year:_,month:Z,day:C,hour:te=0,minute:V=0}){return v(_,Z,C)-.5+(te*60+V)/1440}function E(_,Z,C){const te=v(_,Z,C)-v(_,1,1)+1,V=2*Math.PI*(te-81)/364;return 9.87*Math.sin(2*V)-7.53*Math.cos(V)-1.5*Math.sin(V)}const G=Y({max:8,name:"termWindow"}),q=Y({max:32,name:"termYear"}),he=Array.from({length:24},(_,Z)=>Z),be=he.filter(_=>_%2===0);function s(_,Z){const C=Z?`${_}|jie`:`${_}|all`,te=q.get(C);if(te)return te;if(Z){const U=q.get(`${_}|all`);if(U){const X=U.filter(re=>re.index%2===0);return q.set(C,X),X}}const V=[];for(const U of Z?be:he)V.push({year:_,index:U,name:k[U],jd:p(_,U)});return V.sort((U,X)=>U.jd-X.jd),q.set(C,V),V}function I(_,Z={}){const C=B(Z.jieOnly),te=C?`${_}|jie`:_,V=G.get(te);if(V)return V;const U=[...s(_-1,C),...s(_,C),...s(_+1,C)];return U.sort((X,re)=>X.jd-re.jd),G.set(te,U),U}function K(_){if(typeof _!="string"||_.length<2)return[];const Z=F.indexOf(_[0]),C=D.indexOf(_[1]);if(Z<0||C<0)return[];const te=g(Z,C);if(te<0)return[];const V=Math.floor(te/10)*10;return[D[(V+10)%12],D[(V+11)%12]]}function oe(_,Z){let C=null;for(const te of _)if(te.index%2===0)if(te.jd<=Z)C=te;else break;return C}function J(_,Z){for(const C of _)if(C.index%2===0&&C.jd>Z)return C;return null}function ne(_){const Z=x(_),C=te=>String(te).padStart(2,"0");return`${Z.year}-${C(Z.month)}-${C(Z.day)} ${C(Z.hour)}:${C(Z.minute)}`}function ue(){return[f.stats(),q.stats(),G.stats()]}return{STEMS:F,BRANCHES:D,TERM_NAMES:k,termLongitude:z,toJDN:v,fromJDN:j,sexagenaryIndex:g,ganzhiName:m,dayGanzhiIndex:O,sunLongitude:$,deltaTSeconds:a,OFFSET_MODERN:l,OFFSET_BEIJING_LOCAL:u,CUTOVER_JD:A,localOffsetFor:b,termInstantJd:p,jdToParts:x,partsToJd:M,equationOfTime:E,termWindow:I,xunKongOf:K,previousJie:oe,nextJie:J,formatJd:ne,cacheMetrics:ue}})(),R.lunar=(function(){const{toJDN:L,jdToParts:Y,termInstantJd:B,deltaTSeconds:F,localOffsetFor:D}=R.calendar||{},k=29.530588861,z=245155009766e-5,v=Math.PI/180;function j(a){const l=a/1236.85,u=z+k*a+15437e-8*l*l-15e-8*l*l*l+73e-11*l*l*l*l,A=1-.002516*l-74e-7*l*l,b=(2.5534+29.1053567*a-14e-7*l*l-11e-8*l*l*l)*v,f=(201.5643+385.81693528*a+.0107582*l*l+1238e-8*l*l*l-58e-9*l*l*l*l)*v,w=(160.7108+390.67050284*a-.0016118*l*l-227e-8*l*l*l+11e-9*l*l*l*l)*v,o=(124.7746-1.56375588*a+.0020672*l*l+215e-8*l*l*l)*v,h=-.4072*Math.sin(f)+.17241*A*Math.sin(b)+.01608*Math.sin(2*f)+.01039*Math.sin(2*w)+.00739*A*Math.sin(f-b)-.00514*A*Math.sin(f+b)+.00208*A*A*Math.sin(2*b)-.00111*Math.sin(f-2*w)-57e-5*Math.sin(f+2*w)+56e-5*A*Math.sin(2*f+b)-42e-5*Math.sin(3*f)+42e-5*A*Math.sin(b+2*w)+38e-5*A*Math.sin(b-2*w)-24e-5*A*Math.sin(2*f-b)-17e-5*Math.sin(o)-7e-5*Math.sin(f+2*b)+4e-5*Math.sin(2*f-2*w)+4e-5*Math.sin(3*b)+3e-5*Math.sin(f+b-2*w)+3e-5*Math.sin(2*f+2*w)-3e-5*Math.sin(f+b+2*w)+3e-5*Math.sin(f-b+2*w)-2e-5*Math.sin(f-b-2*w)-2e-5*Math.sin(3*f+b)+2e-5*Math.sin(4*f),d=u+h-F(2e3+l*100)/86400;return d+D(d)}function g(a){return Math.floor(a+.5)}function m(a){return Math.round((a+.5-z)/k)}function O(a,l,u){for(let A=a-1;A<=a+1;A++)for(let b=1;b<24;b+=2){const f=B(A,b),w=g(f);if(w>=l&&w<u)return{index:b,jd:f}}return null}function $(a,l,u){const A=L(a,l,u),b=g(B(a,23)),f=A<b?a-1:a,w=g(B(f,23));let o=m(w);for(;g(j(o))>w;)o--;for(;g(j(o+1))<=w;)o++;const h=g(B(f+1,23));let d=o;for(;g(j(d+1))<=h;)d++;const p=d-o;let x=-1;if(p===13)for(let G=1;G<=p;G++){const q=g(j(o+G-1)),he=g(j(o+G));if(!O(f,q,he)){x=G;break}}let M=11,E=!1;for(let G=1;G<=15;G++){const q=g(j(o+G-1)),he=g(j(o+G)),be=O(f,q,he),s=G===x;if(A>=q&&A<he){const I=Y(j(o+G-1)),K=s?(M+10)%12+1:M;return{year:f,lunarYear:E?f+1:f,month:K,day:A-q+1,isLeap:s,monthStart:`${I.year}-${String(I.month).padStart(2,"0")}-${String(I.day).padStart(2,"0")}`,hasZhongQi:!!be}}s||(M=M%12+1,M===1&&(E=!0))}throw new Error(`农历换算失败:${a}-${l}-${u}`)}return{SYNODIC:k,newMoonJd:j,dayNumberOf:g,solarToLunar:$}})(),R.geo=(function(){const{bool:L}=R.bool||{},Y=`
|
|
4
4
|
北京 116.41 39.90;上海 121.47 31.23;天津 117.20 39.13;重庆 106.55 29.56
|